Thursday, October 29, 2009

Yahoo Geocities closed...

Yahoo closed it's geocities services...

On 26 October 2009 it closed...

:(

Sunday, October 25, 2009

Windows 7 is released...

Microsoft released Windows 7 on the 22nd of this month October...

Windows 7 has several versions than its predecessor Windows Vista...

Some of my photographs taken in the year 2003!!!


Tuesday, October 20, 2009

33 years past....33 years old...33 years gone....

I just became 33 years old...I was born in CE 1976 October 20...

Since 1990 I lived a life of abuse...But I am patient most of the time...My class mates abused me...My parents abused me...My employers abused me...My friends abused me...The girls I liked abused me...

I will write all about this in this blog of mine...

I give thanks to Allah for the favors and knowledge he bestowed on me and also that special intellect of investigation by inference he bestowed on me...Al hamdhu lilaahi rabil aalameen...Praise be to Allah lord of the worlds...

Saturday, October 10, 2009

"Hello World" in Java...

To write this application you will need Sun's Java Development Kit Standard Edition ( JSE ) which is a free download at http://java.sun.com...After installing it into your computer and setting the path environment variable write the following Java source in Notepad:


import javax.swing.JoptionPane;

public class HelloWorld {

public static void main ( String args [] )
{

JOptionPane.showMessageDialog(null"HELLO WORLD!");


}

}


Save it on your desktop as HelloWorld.java

Next open the command prompt and execute the following command: javac HelloWorld.java

One file HelloWorld.class will be created if there are no errors in your source...To run the program type java Helloworld at your command prompt.

Cheers-guestworm

"Hello World" in C++

The following C++ program requires any C++ compiler but I assume it is Microsoft Visual C++ compiler...Microsoft Visual C++ Express edition is a free download from Microsoft.

Open Notepad and write the following source:




Save it to your desktop as hello.cpp and execute the following command at Visual Studio Command Prompt: cl hello.cpp...If there are no errors in the source code two files will be created: hello.obj and hello.exe...To run the program just type hello or hello.exe at your command prompt...

Cheers-guestworm

Friday, October 9, 2009

"Hello world" in assembly language...

To write and use the following "Hello World" program you will need to have Microsoft Macro Assemble ( MASM for short )...It is a free download from Microsoft and is included in every edition of Visual Studio ( the latest been MASM 9 in Visual Studio 2008 ).....

Just open Notepad and copy the code shown below and save it as hello.asm on your desktop...


.586
.model small,c
.stack 100h

.data
msg     db "Hello World!",0

.code
includelib MSVCRT
extrn printf:near
extrn exit:near

public main
main proc
        push    offset msg
        call    printf
        push    0
        call    exit
main endp

end main




Now open Visual Studio command prompt and execute the following command: ml hello.asm /link /subsystem:console

This will create two files: hello.obj and hello.exe on your desktop...To run the program just type hello or hello.exe on your command prompt.

I wouldn't explain the details of the code but know that the .586 means that the source uses the Pentium microprocessor instruction set...That means it would run on any computer which has at least the Intel Pentium processor( released in 1993 ).

Cheers-guestworm