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

Which is the best language used to create dynamic web pages???

There are several popular languages used to create dynamic web pages...They are JSP, PHP, ASP, ASP.NET , Coldfusion and Perl.

I saw JSP used in Oracle's web site, IBM's site, Symantec's and ofcourse Sun Microsystems's web site which is the creator of JSP...I have seen only one perl site and that is Dhiraagu's web SMS site ( there is another site which I don't remember and that is the airport flight schedule site )...I have seen several asp sites notably forums...PHP is used as the most common sites I have seen ( example: facebook )...I have seen asp.net on ofcourse Microsoft and Intel...As for coldfusion I have seen it in Adobe ( the owner and creator...strictly an acquired technology through Macromedia ) and Myspace!!!

We can't say which is the best language used to create dynamic pages but from what I know most ( through visits ) PHP is the most popular...Been open source and free makes it useful for start up companies...

Personally I have successfully created all the tutorial dynamic pages in Dreamweaver 8 using JSP,PHP and ASP.NET...What I haven't touched is perl ( Which Dreamweaver doesn't support )...

So I conclude by the number of sites using PHP and the ease at which it can be develope PHP is the most easiest and best language to create dynamic pages!!!

Tuesday, October 6, 2009

Making an e-mail account that ends with @googlemail.com

Very simple...When you sign up or register for gmail you get automatically an e-mail account that ends with googlemail.com...For example your gmail is example@gmail.com than example@googlemail.com too is your account...What holds is the google ID which in this case is example...You can use example when ever you sign in to your account...

Now the problem lies when you send an e-mail it will arrive at your friends inbox as example@gmail.com...This can be solved...If you seriously want an e-mail that uses @googlemail.com follow this link to sign up:

https://www.google.com/accounts/NewAccount?service=mail&continue=http%3A%2F%2Fmail.google.com%2Fmail%2Fe-11-10d2c1d5d1f94998cf20d844e779da25-b5b66bf31893b3aa96e73fd4c6b32721c9c502aa&type=2&gd=1

Cheers - guestworm ( Naheez )

Friday, September 25, 2009

Some useful computer tricks....

In this post I present some useful and handy computer tricks...

Changing the default start in location of the Command Prompt

The command prompt is available under accessories...You can change the start in location which the command prompt starts by doing this:

1- Right click the command prompt
2- Select properties
3- Select shortcut
4- Look in start in and change the path as you wish.

Changing the directories in command prompt

The DOS command used to change the directory is cd but to go to the default directory where Windows is installed is cd C:\ ...You can change to the other partition just by typing D: assuming that it is named D:\

Capturing the current monitor screen

This is very simple...Just press Print Screen key on your key board and paste it to the canvas of any graphics program or word processor which supports graphics like Microsoft Word.

Changing the layout of the computer screen

Press alt and ctrl keys and press the arrow keys ...This will make the screen vertical or horizontal!!!


That's it for now...I hope you like these tricks...