Thursday, October 6, 2011

Steve Jobs


“Your time is limited, so don’t waste it living someone else’s life,”
Jobs said. “Don’t be trapped by dogma — which is living with the results
of other people’s thinking. Don’t let the noise of others’ opinions
drown out your own inner voice. And most important, have the courage to
follow your heart and intuition. They somehow already know what you
truly want to become. Everything else is secondary.”
R.I.P. Steve Jobs


Tuesday, October 4, 2011

Ubuntu vs OpenSUSE vs Fedora

In past few weeks, I upgraded my 9 years old PC. I bought a Ethernet card, 1GB memory RAM and 160GB Hard Drive IDE/ATA to upgrade my old PC.

My question was what operating system I will install to my 9 years old PC. I was undecided between Ubuntu and OpenSUSE. So I researched more deep, and I found out a site who helped me a lot.


I had two choices: OpenSUSE or Fedora. To my surprise, Ubuntu had 90% of recommendation. So I ignored Ubuntu and I tried OpenSUSE and Fedora with LiveCD. After I experimented both, I decided to install OpenSUSE.

SQL - Procedural Programming - Variable

A variable is a container for a single data value of a particular type. In Transact-SQL (T-SQL), all variables are preceded by an @ symbol.
Local variables are used in T-SQL scripts for a variety of purposes including:

  • Storing values to be tested by control-of-flow statement
  • Acting as counter in a loop
  • Storing the results of an expression
  • Retrieving field values for a single record using a SELECT statement
Variable are also used to pass values into parameters for stored procedures and user-defined functions. When declaring a variable, you must specify its name, datatype and sometimes the length and precision of datatype. The DECLARE statement can be used to declare multiple variables by separating them with commas.

Example

DECLARE @var1 int, @var2 varchar(255);

The preferred way to set the contents of a variable is use the SET statement. It is also possible to use the SELECT statement to set the value of one or more variables.

SET @var1=5;
SELECT @var2='A varchar string';

Tuesday, July 12, 2011

Electronic for Dummies

For who want to program Arduino  and use electronic products and same time do not understand Electronic can always buy the book "Electronic for Dummies." It is my suggestion!

I used this book to remember the basics of electronics. Long ago I didn't play with electronic! It was good times!
 :)


 

Sunday, July 3, 2011

Communicating between PC and Arduino

Do you want communicate Arduino through PC? You come to right place.
I developed a small program that allow you insert letter 'a' and receive letter 'b'.
You will need install Visual Basic 2008 and Arduino environment. With Arduino environment, copy the code source from the next image.


Finally, copy the next code source to Visual Basic 2008 from the next images.






The User Interface (UI) is something like this:

You can see the communication between PC and Arduino. Just click here!