Tuesday, 20 March 2012

Confusions...

Problems happens to me everywhere, in about every aspect of life. For some normal problems we have prepared solutions on compile time but there are also some run time exceptions that are really hard to be removed(especially when you are in  hurry).
Some thing like the run time exception my mind threw in the 1st lab sessional of Assembly. My task was to prepare a solution for finding least number in an array of 5 elements. I asked my teacher whether everything is same as C++, he said yes of course. Now when i started working i took about 2 minutes creating flowchart and about 10 minutes combining logic with syntax. I reviewed the code, it was all okay, i assembled it, the program executed. the elements of the array were something like 3h,9h,7h,6h,4h at first. It gave me the answer 3, i was happy, i thought i should call the teacher but i then tried another combination of 7h,9h,3h,6h,4h and this time the result was 7. i was shocked that whats happening.
Now thinking started again, here check, there check, the flowchart even wasn't spared. Each and every single mov was even checked, found no errors in the logic as well in the Syntax.The teacher came twice and asked me, "Hey whats wrong with you today??", i replied "Nothing sir its just a little error of syntax".
I sat for the whole time staring at each and every classmate of mine, they were happy because they finished their job and started going home and also it was the last paper. i was in a real rush because our class decided to play cricket after the the lab.
When the teacher said its 10 minutes to go, what i did was that i just changed the combination from 7h,9h,3h,6h,4h  to  7d,9d,3d,6d,4d, and you wont believe that it worked. This time i tried 4 other combinations and the answers were correct. i said hurray, i was happy but i still didn't figured out why was it like that.
Is there something wrong with the comparison of hexadecimal?
Is the comparison of simple Decimal numbers and Hexadecimal numbers is different?

Alot of confusion is still buzzing around my mind. I still have questions in my mind but will ask the teacher after the vacations.

Live free, with fresh oxygen... :) 

Friday, 24 February 2012

A look at the new World...

If we take a look at Devices, that are just dumb machines, capable of nothing by themselves, just piece of metal and silicon. As God put life in the human body, same is the case here that we, computer scientists and software engineers put an operating system in that piece.
An operating system (OS) is a set of programs that manage hardware resources and provide common services for applications. The operating system is the most important type of system software in a system. A user cannot run an application on the Device without an operating system, unless the application program is self booting.
There are many  operating systems like Microsoft Windows, Linux, Mac OS, iOS, Android etc. Today what i am discussing is Linux, Windows and Mac.
Which one is most secure, Cannot be hacked easily, easy to get, and great working.

Linux:
One of the many reasons people choose Linux on the desktop and the server is security. Linux has a reasonably good track record when it comes to security.
You dont need any antivirus, any spyware etc. Linux is and has always been a very secure operating system.

For desktop or home use or Server, Linux is very cheap or free. You can buy a Linux book and get the operating system included with the book for free. You can also download Linux for free from each of the Linux vendors (assuming your Internet connection is fast enough for a 600 MB file and you have a CD burner). And one thing more, it is open source.

Many of the available Software programs, utilities, and games available on Linux are free or open source.

Many of the Linux variants and many Linux programs are open source and enable users to customize or modify the code however they wish to.

Windows:
Although Microsoft has made great improvements over the years with security on their operating system, their operating system continues to be the most vulnerable to viruses and other attacks. The vast majority of malicious software (of all types) runs on Windows. I don't know the actual percentages, but it wouldn't surprise me if it was 98% or so. Windows users are burdened with the need for anti-virus and anti-spyware software.

Microsoft allows a single copy of Windows to be used on only one computer. Starting with Windows XP, they use software to enforce this rule (Windows Product Activation at first, later Genuine Windows).

Although Windows does have Software programs, utilities, and games for free, the majority of the programs will cost anywhere between $20.00 - $200.00+ US dollars per copy.

Microsoft Windows is not open source and the majority of Windows programs are not open source.

Mac:
Apple Macs get almost no viruses. This is mostly due to Window's superior market share.
Macs only run on Apple computers, and are thus less prone to hardware and software crashing.
Mac costs even more than Windows and are only available on Apple computers. If you already have a computer, you cannot install MAC on it unless it's an Apple. Otherwise, you must buy a new computer.


"There are about 60,000 viruses known for Windows, 40 or so for the Macintosh, about 5 for commercial Unix versions, and perhaps 40 for Linux. "

I choose Linux, its ur turn to bring the change... They are penguins....