joi, 24 aprilie 2014


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.

miercuri, 23 aprilie 2014

Masina autonoma facuta de Budisteanu Ionut Alexandru

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

duminică, 20 aprilie 2014

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 “=%d\n”, 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.

joi, 17 aprilie 2014

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

miercuri, 16 aprilie 2014

C embedded questions (1): What are the differences between malloc() and calloc()?

There are 2 differences. First, is in the number of arguments. malloc() takes a single argument(memory required in bytes), while calloc() needs 2 arguments(number of variables to allocate memory, size in bytes of a single variable). Secondly, malloc() does not initialize the memory allocated, while calloc() initializes the allocated memory to ZERO.

luni, 14 aprilie 2014

7 Reasons Why You Will Never Do Anything Amazing With Your Life

Nu prea sunt de acord cu folosirea "negatiei" cand vine vorba de incurajare, dar cateodata e bine sa cunosti adevarul crud ...

“Basically, what I am trying to tell you is that, in this game called life, you don’t stand a chance…


Because you are comfortable in your mediocrity; because you choose not to try.
Because it is easier to talk about learning that new (programming?) language as opposed to actually learning it.
Because you think everything is too hard or too complicated so you will just “sit this one out”, or maybe you’ll, “do-it-tomorrow”!
Because you hate your job but won’t get a new one; because it is easy to reject rejection.
Because while you’re sitting around failing to try, I am out there trying to fail, challenging myself, learning new things and failing as fast as possible.
Because as I fail, I learn, and then adjust my course to make sure my path is always forward. Like the process of annealing steel, I’ve been through the fire and pounded into shape. The shape of a sword with polished edges and a razor sharp blade that will cut you in half if you are not equally hardened.


Because you have to fit in.
Because you believe that being different is only cool if you’re different in the same way that other people are different.
Because you are afraid to embrace your true self for fear of how the world will see you. You think that because you judge others, this means that those people must, in-turn, be judging you.
Because you care more about the stuff you have as opposed to the things you’ve done.
Because while you’re out spending your money on new outfits, new cars, overpriced meals or nights at the bar, I’ll be investing in myself. And while you try to fit in with the world I’ll make the world fit in with me.
Because I will recklessly abandon all insecurities and expose my true self to the world. I will become immune to the impact of your opinion and stand naked in a crowd of ideas; comfortable in knowing that while you married the mundane I explored the exceptional.


Because you did what everyone else did; you studied what they studied and read what they read.
Because you learned what you had to learn in order to pass their tests and you think that makes you smart.
Because you think learning is only something people do in schools.
Because while you were away at college, I was studying life; because instead of learning about the world in a classroom I went out and learned it by living.
Because I know more than any piece of paper you could ever frame from a university. Because smart is not what you learn, it’s how you live.
Because I might not have a degree but I challenge you to find a topic that I can’t talk to you about cohesively.
Because I could pass your tests if I had to, but you couldn’t stand for a single second in the face of the tests that life has thrown me. Tests that are not graded on a bell curve or by percentages; tests that are graded by one simple stipulation: survival!


Because you read the things you are required to read or nothing at all.
Because you think history is boring and philosophy is stupid.
Because you would rather sit and watch “E!” or “MTV” instead of exploring something new, instead of diving head first, into the brain of another man in an attempt to better understand the world around you.
Because you refuse to acknowledge that all the power in the world comes from the words of those that lived before us. That anything you desire can be had by searching through the multitude of words that are available to us now more abundantly than ever before.
Because you are probably not reading this article even though you know you should.
Because the people that are reading this already know these things.
Because you can lead a horse to water but you can’t make him drink.


Because you get your news from copy-cat members of the state-controlled media.
Because you are unwilling to ask this simple question… “What if it’s all a lie?”, and accept the possibility that maybe it is; that just maybe, the methods of mass media are under direct orders to: keep you distracted.
Because you call me a know-it-all but refuse to call yourself a know-nothing-at-all.
Because I thirst for knowledge, regardless the topic.
Because while you’re busy playing Candy Crush, or Megalopolis, I am reading about string theory and quantum mechanics.
Because while you waste your time with Tosh.o I am learning how to edit video, build websites and design mobile apps.
Because if we were to go heads-up in a debate, I would crush you. I would make it a point to defeat my own argument; from every imaginable angle; in order to understand everything you might be able to use against me.
Because I would dedicate myself to understanding both sides of the argument so thoroughly that I could argue your side for you and win; even after having just handed you a defeat in the same debate.


Because you do not question authority.
Because you don’t question yourself.
Because you don’t understand the power of properly placed questioning in life, respectful disagreements and standing up for what you know to be right in the face of someone telling you otherwise. Unable to question reality; stuck in a self imposed survival strategy within a matrix-style monotony.
Because I know that you will give me all the information I need to destroy you by letting you talk.
Because I study human behaviors and you ignore everyone but yourself.
Because I watch how you say the things you say just as closely as I listen to what you say; and you say way too much!
Because control comes, not from spewing your ignorance like some incurable case of logorrhea, but from properly structuring the context of your questions.
Because I study the premise of your argument and destroy it from the ground level before you even get a chance to establish your ideas.


Because you refuse to admit that you don’t even know the things you don’t know.
Because there isn’t an article online that would make up for all the time you have wasted in life.
Because even if I told you everything could be different tomorrow you would wait until then to begin doing anything about it.
Because even when you think I’m not, I’m aware of my surroundings.
Because you think that since I have not acknowledged you, it means that I have not seen you.
Because, you walk around with your head up your ass, oblivious to the world around you. Blissfully ignorant of the reality that sits so close to your face that if you stuck your tongue out, just once, you would taste it and realize how delicious the truth actually is.
Because you would become an instant addict. Unable to pull yourself from the teat of truth. Finally able to understand your lack of understanding, and then you would see; then you would know that the only thing holding you back from doing something truly amazing, is you.
Explore the original article and join the discussion @


vineri, 11 aprilie 2014

Mini-proiectul de vineri (1) - Controlarea unui LED RGB cu Arduino

Am fost foarte curios cum poți sa controlezi un LED RGB folosind Arduino și am purces la treaba. Mi-am cumpărat un LED RGB , 3 rezistente de 220 ohmi și 4 fire , iar apoi le-am conectat ca în imaginile de mai jos.
Schema electrica arata cam asa :

Conexiunea tuturor firelor cu placa Arduino:

Conexiunea la pinii LED RGB:

Conexiunea la pinii Arduino:

Placa DIY bazata pe Arduino:

Progrămelul de control :
    Adafruit Arduino - Lesson 3. RGB LED
    int redPin = 11;
    int greenPin = 10;
    int bluePin = 9;
    //uncomment this line if using a Common Anode LED
    //#define COMMON_ANODE
    void setup()
    pinMode(redPin, OUTPUT);
    pinMode(greenPin, OUTPUT);
    pinMode(bluePin, OUTPUT);
    void loop()
    setColor(255, 0, 0); // red
    setColor(0, 255, 0); // green
    setColor(0, 0, 255); // blue
    setColor(255, 255, 0); // yellow
    setColor(80, 0, 80); // purple
    setColor(0, 255, 255); // aqua
    void setColor(int red, int green, int blue)
    #ifdef COMMON_ANODE
    red = 255 - red;
    green = 255 - green;
    blue = 255 - blue;
    analogWrite(redPin, red);
    analogWrite(greenPin, green);
    analogWrite(bluePin, blue);

Tutorial inspirat de pe
Week-end plăcut tuturor!

Browserul Tor

Pentru un browsing anonim pe internet va recomand Tor impreuna cu Tails OS. Se poate folosi foarte usor si cu Windows dar chiar și cu RaspberryPi denumit Onion Pi (RaspberryPi + Tor).
Cum funcționează Tor ? Practic, transportul datelor se routeaza prin servere sigure si criptate. Routarea se face prin mai multe servere astfel încât sa se piardă adresa de origine. Mai mult IP-ul vostru este modificat iar alte site-uri va "vad" ca și cum ați fi în alta locatie .

Merita folosit in cazuri excepționale .. Happy browsing !

O opinie diferita despre Arduino :)