83

ПРОграммист 2010 05

  • Upload
    -

  • View
    370

  • Download
    3

Embed Size (px)

Citation preview

[

2010

2010. 5, 2010 .

:

Utkin, JTG, , , , ,

.............................................. .002 , ............................................. .003 Scheme. 2 ................................... .0x08 ............................. .013 - - . 1 ............. .016 WI-FI . 1 .............. .01F ............................................ .025 2D OpenGL. 1 .................. .02F MP3 - ................................................. .036 PDF . 2 ......................... .03A AT45DB161 ........................ .043 GTA ...................................... .048 ................................................ .04D DLL ........................ .04E , , ................................ .051

: :

, Utkin, WildHunter, , , , , , , , ,

:

[email protected] [email protected]

:

() www.academy.kz www.radioliga.com www.programmersforum.ru

:

. , , , , . , , . . , , . . A4, 83 .

:

www.programmersforum.ru

:

^

[

2010

. www.programmersforum.ru. .

... Scheme

Utkin-. OpenGL.

() , ) ( ,

. Wi-Fi http://airnet.sytes.net. .

Wi-Fi ,

, ..)

(

( ) )

( ( ) /

, ? . . ?

(

.

, : , SCRIBUS)

... . , ? . , -,

-

,

, , , , (, /

) , Arial 10 ,

. MP3 .

MS Word, VK WordPad

PDF .

PNG, TIF VK WordPad

? -

?

GTA . ...

!

,

3

[

2010

, . , . . . , , , ... by raxp http://raxp.radioliga.com , 2010. 9 .

2010 c 11 15 2010 . , ++, 13 2010 . - , -

, participants/registration.

.

.

, ,

http://cee-secr.org/for

. Toshiba, 30 10

,

,

2010, ; .

.

;

: ;

- . - , .

; . . secr.org/submission. http://cee-

, 20%.

Microsoft

16- Toshiba. . , ,

,

2000/XP/Vista/7, USB-. -, Windows

Windows

.

,

4

[

2010

Regedit, . (). HKEY_CLASSES_ROOT\lnkfile\shellex\IconHandler LNK_Icon_Backup.reg File () Export

, ( autorun.inf), lnk-. ( TotalCommander) FAR ( , . ):

Save

(). Default , .. , ) .

. Enter Enter. explorer.exe WebClient (-, . WebClient

lnk :

Services.msc

: )

. )

.

1. (mrxnet.sys mrxcls.sys, -

, %SystemRoot%\System32\drivers. GMER .

WebClient, and Versioning (WebDAV), WebClient

Web Distributed Authoring . , . Windows.

( ) Realtek Semiconductor Corp. %SystemRoot%\inf. . ~wtr4132.tmp . 2. (oem6c.pnf oem7a.pnf, ) , - lnk

WebClient. Windows 8 : , , , 3D,

~wtr4141.tmp .

USB3. , : . GMER 4.

USB 3.0 Bluetooth 3.0. , , . Windows-,

,

, : (-,

. .

, , ,

,

5

[

2010

. , , 3D-,

,

,

. -,

(

),

. .

20 . ,

.

3D- Microsoft, .

3D- 3D - -. .

54 . , . , , . SIM900 , , .

.

GSM/GPRS , (Applied

GSM 850/900/1800/1900 , GPRS multi-slot class 10/8, 4 (2 850/900 ), 1 (1

:

Sciences Group), . - . 11 ,

Microsoft

6 . LED-. . .

,

6

[

2010

1800/1900MHz), 24243 , 7 , AT SIMCOM), TCP/IP 3.4...4.5 , -30+80 SIMCOM http://www.mtsystem.ru/documents/sim900%20ann ouncement(%20dec2009).pdf C. AT (GSM 07.07

PinPoint

.

4 3

. .

LCD- 0.1 SVGA.

LCD-,

SID 2010 Toshiba. 8.4-

,

.

SOS SOS . SOS

(), , .

. Google Earth, . - , - . Google Sensing PinPoint. Earth.

,

,

. p-n

. .

,

MEMS

(/GPS ) Silicon

,

SOS- , 5-

Systems

651.2 VSG5,

,

.

,

7

[

2010

3 , 25 0.5 IKAROS, . , .

SOS . SOS 1991

10 .

, IKAROS 12 , 7.5 25 , . . .

. ,

5.5, 1200 /,

.

( 0.9 0.1 ) 4.5 . 2 , 200

, ,

, . 15 , , ,

. SOS- 4 . 32

.

6 IKAROS

, ( ). 6

21

PLANET-C , .

. , .

. , ,

. , , . ,

,

, . . , 3 , .

15

,

,

8

[

2010

SCHEME. 2

, . , Scheme , , PLT Scheme. . by Utkin www.programmersforum.ru(max 3.9 4 9 48 99 5) (min 54 565 9L0) 99.0 9.0 4

. ,

,

(min 4 4)

:(+ z1 ...) (* z1 ...) (- z1 z2) (- z)

,

:(exact? z) (inexact? z)

.

#t, ,

(- z1 z2 ...) (/ z1 z2) (/ z)

( ) ( ) 1 / z,

#f. :(= 1 2 3 ...) (< x1 x2 x3 ...) (> x1 x2 x3 ...) (= x1 x2 x3 ...) (= 1 1 1) (= 1 2 1) #t #f

(/ z1 z2 ...)

z1

( ):(+ 3 4) (+ 3) (+) (*) (* 4) (- 3 4) (- 3) (/ 3)

7

3 0 4 1 -1 -6 -3 3/20 (3 4*5) 1/3

, ,

,

(- 3 4 5) (/ 3 4 5)

. :(zero? z) (positive? x) (negative? x) (odd? n) (even? n)

,

,

,

( :(abs x)

..).

:(max x1 x2 ...) (min x1 x2 ...) // : (max 3 4)

:(quotient n1 n2)

(remainder n1 n2) 4 (modulo n1 n2)

9

[ n2

2010

SCHEME. 2 (

( ). n1 / n2 :

):(numerator q) (denominator q) // :

(quotient n1 n2) (modulo n1 n2)

(remainder n1 n2)

n1/n2 0 0

(numerator (/ 6 4)) (denominator

n1 / n2 :

(denominator (/ 6 4)) (exact->inexact (/ 6 4)))

2

3

. :

2.0,

(quotient n1 n2) (modulo n1 n2)

(remainder n1 n2)

nq nr nm (numerator 6/4)

3 ( 3/2, )

: nq - n1/n2, , 0 number "1e2") 100 100.0

, :(sqrt -1) (expt z1 z2) -1)

(string->number "100" 16) (string->number "15##")

256

0+1i ( , - , 11.569741950241465 0.08643235124004903

1500.0

, , #f.

(expt 2.1 3.3)

(expt 2.1 -3.3)

:(make-rectangular x1 x2) (make-polar x3 x4) (real-part z) (imag-part z) (magnitude z) (angle z)

, car, cdr ( cdr. ons. ).

(

)

, ,

car set-car! setcdr!. .

x1-x4 , z .(make-rectangular x1 x2) (make-polar x3 x4) (real-part z) (imag-part z) (magnitude z) (angle z) (x1) (x2) |x3| xangle

, (, ) cdr , : .

:(exact->inexact z) (inexact->exact z)

,

X, , cdr , X.

, .

( ).

car .

,

11

[

2010

SCHEME. 2 (pair? obj) :(pair? '(a . b)) (pair? '(a b c)) (pair? '()) (pair? '#(a b)) #t #t #f #f

, car cdr , car . ( ): cdr

:(cons obj1 obj2)

obj1, cdr obj2. (a b c d e) (a . (b . (c . (d . (e . ()))))). . ,

car

, (cons 'a '()) (cons '(a) '(b c d)) (cons "a" '(b c)) (cons 'a 3) () (c d)

( ); , . ( ) .

-

(a . 3) ((a b) . c)

("a" b c),

(cons '(a b) 'c)

. , .

,

, . , (4 . 5) car 4 cdr 5, .

(car pair) car ( , :(car '(a b c)) (car '(1 . 2)) (car '()) (cdr pair) (car '((a) b c d))

,

(1 2 n), - , Scheme ( ),

. , ().

). car

a 1

(a)

, . .

cdr 2 cdr (b c d)

,

,

, :(a b c . d)

,

(cdr '((a) b c d)) (cdr '(1 . 2)) (cdr '())

(set-car! pair obj) (set-cdr! pair obj)

car cdr pairs obj

(a . (b . (c . d))),

(define x (list 'a 'b 'c)) (define y x) y (list? y)

x y

4)

(eqv? x y) (list? y) (list? x)

(a . 4) #t

(a b c), list #t,

(a . 4) #f #f

(set-cdr! x 4)

( cdr

(set-cdr! x x)

12

[

2010

SCHEME. 2

, car cdr. :(car (cdr (cdr x))) caddr

.

(reverse '(a b c))

(reverse '(a (b c) d (e (f))))

((e (f)) d (b c) a)

(c b a)

(list-tail list k)

list, k . list-tail

:(define caddr (lambda (x) (car (cdr (cdr x)))))

k . :(lambda (x k) x

-

: car , cdr d car cdr. r. ,

(define list-tail (if (zero? k) (list-tail (cdr x) (- k 1)))))

(list-ref list k) k- . k .

(null? obj) #t, obj :

, (list? obj) #t, obj

.

(list? '(a b c))

(list? '())

#t #t #f

( ).

(list? '(a . b)) (set-cdr! x x) (list? x))

(let ((x (list 'a)))

#f

(list obj ...) :(list 'a (+ 3 4) 'c (list) (a 7 c) ()

, , ( . eqv?),

(length list) :(length '(a b c)) (length '()) (length '(a (b) (c d e))) 3 3 0

, . . (Characters). (Symbols)

(append list ...) , ( ,

):(append '(x) '(y)) (append '(a) '(b c d))

( ). . ,

(x y)

(append '(a (b)) '((c))) (append '(a b) '(c . d)) (append '() 'a)

(a b c d)

(a (b) (c)) (a b c . d)

a,

, , . (symbol? obj) - :(symbol? 'foo)

(reverse

:

list)

,

#t

13

[

2010

SCHEME. 2 ,

(symbol? (car '(a b))) (symbol? "bar") (symbol? 'nil) (symbol? '()) (symbol? #f) (symbol? 5) (symbol? '5)

#t

! #t #f

#f,

, : :(char? 'try)

(char? obj) #t,

#f

#f #f,

#f,

(symbol->string symbol). :(symbol->string 'flying-fish) (symbol->string 'Martin) (symbol->string (string->symbol "Malvina")) "Malvina"

.

"flying-fish" "martin"

,

. :(char=? char1 char2) (char