NFC – Near field communication

Computer Unlocker:

Door unlocker:

Adafruit tutorial:

Android prezentation:

NFC – Near field communication


Singularitatea este momentul în timp când inteligenta artificiala devine conștientă și independentă fizic și cognitiv. Mai departe de acel moment în timp, noi încetăm să existăm și viitorul nu mai poate fi prezis. Dezvoltarea acestei inteligente artificiale a început în momentul în care au apărut computerele. Toată omenirea își aduce contribuția cu câte un „bit” de informație (voluntar sau involuntar) la definitivarea inteligentei artificiale. Mi se pare ca suntem „ghidați” de o forță nevăzută spre inevitabil, spre singularitate.

Tradiția încondeiatului ouălor

C embedded questions (4): What is the difference between strings and character arrays?

A major difference is: string will have static storage duration, whereas as a character array will not, unless it is explicitly specified by using the static keyword.
Actually, a string is a character array with following properties:
* the multi byte character sequence, to which we generally call string, is used to initialize an array of static storage duration. The size of this array is just sufficient to contain these characters plus the terminating NUL character.
* it not specified what happens if this array, i.e., string, is modified.
* Two strings of same value[1] may share same memory area. For example, in the following declarations:

char *s1 = “Perl has a strong linkage with PHP”;
char *s2 = “Perl has a strong linkage with PHP”;

The strings pointed by s1 and s2 may reside in the same memory location. But, it is not true for the following:

char ca1[] = “Perl has a strong linkage with PHP”;
char ca2[] = “Perl has a strong linkage with PHP”;

Fuziunea – energia viitorului

C embedded questions (3): Advantages of a macro over a function?

Macro gets to see the Compilation environment, so it can expand
____TIME__ __FILE__ #defines. It is expanded by the preprocessor.

For example, you can’t do this without macros:

#define PRINT(EXPR) printf( #EXPR “=%dn”, EXPR)
PRINT( 5+6*7 ) // expands into printf(”5+6*7=%d”, 5+6*7 );

You can define your mini language with macros:

#define strequal(A,B) (!strcmp(A,B))

Macros are a necessary evils of life. The purists don’t like them, but

without it no real work gets done.

A inceput razboiul dronelor

World’s Toughest Job – #worldstoughestjob

C embedded questions (2): What does static variable mean?

There are 3 main uses for the static.

1. If you declare within a function:

It retains the value between function calls

2.If it is declared for a function name:

By default function is extern so it will be visible from other files, if the

function declaration is as static it is invisible for the outer files

3. Static for global variables:

By default we can use the global variables from outside files If it is

static global that variable is limited to with in the file