Monthly Archives: December 2012

PHP Installation on Ubuntu 11

Installing PHP can somewhat confusing when you dont know the right package, here is the step by step Php Installation on Ubuntu/Linux i get from

1. Install right package
  #apt-get install php5-common libapache2-mod-php5 php5-cli

2. Restart apache to apply changes
# /etc/init.d/apache2 stop
# /etc/init.d/apache2 start

3. search for php-database module
# apt-cache search php5
# aptitude search php5
# aptitude search php5 |grep -i mysql

4. install php mysql and php curl module
# apt-get install php5-mysql php5-curl

source :

Open Different Terminals in Linux/Unix Server

It is sometime necessary to have some windows for working. In case you have linux/unix server it will be easier to use client program such as putty to log in and open another putty if you want to open new windows. But if you are working in front of your computer server, opening two or more terminals will be useful.

normally unix/linux comes up to 6 terminal called tty. you can access terminal by pressing to .
for example if you press then you are opening the default terminal, because you already opened it, it wont show any effect. if you want to open the second terminal (tab/window of shell) press , new terminal (blank screen as usual) will come up and asking you login and password, after you enter login and passwd you will get new terminal or shell windows. for navigate back or open other terminal just change F2 to F3, F4, F5, F6 or F1.

Windows Phone 7.1 Development Tools Free Download

Windows Phone 7.1 Development Tools Free Download

Windows Phone 7.1 Development Tools is software provided by microsoft for developer who wants to try making windows phone application.

There are two installer provided by microsoft, web installer and offline installer. For you who have slower internet connection then the offline installer will help you

Here in this download link of Windows Phone 7.1 Development Tools

Internet connection bandwidths (wikipedia)

Internet connection bandwidths

This table shows the maximum bandwidth (the physical layer net bitrate) of common Internet access technologies. For a more detailed list see list of device bandwidths, bit rate progress trends and list of bit rates in multimedia.
56 kbit/s Modem / Dialup
1.5 Mbit/s ADSL Lite
1.544 Mbit/s T1/DS1
10 Mbit/s Ethernet
11 Mbit/s Wireless 802.11b
44.736 Mbit/s T3/DS3
54 Mbit/s Wireless 802.11g
100 Mbit/s Fast Ethernet
155 Mbit/s OC3
600 Mbit/s Wireless 802.11n
622 Mbit/s OC12
1 Gbit/s Gigabit Ethernet
2.5 Gbit/s OC48
9.6 Gbit/s OC192
10 Gbit/s 10 Gigabit Ethernet
100 Gbit/s 100 Gigabit Ethernet

Automatic Shutdown on Windows

Automatic shutdown on windows can be done in two ways, :
1. via command line
2. via software

Via command line
to run automatic shutdown via command line, first open cmd
then enter shutdown command

[php] shutdown -s -t xxxinsecond [/php]
for example :
[php] shutdown -s -t 7200 [/php]
this will automatically shutdown your computer 2 hours after the command executed.

in case you have running program that need to be closed before you still can force windows to shutdown by adding -f command

shutdown -f -s -t 7200

for windows xp, there will be pop up message showing countdown timer. if you suddenly want to abort this command just run
[php] shutdown -a [/php]

Via software
you can use small size software like vista shutdown timer. you can download it here

Protect File or Folder on Ubuntu/Linux

the necessity of protecting file or folder sometimes exist because we want to prevent file/folder operation from other user. in linux we can use chattr command

to show how this command works,

1. create new file
# touch newfile

2. add chattr command
# chattr +i newfile

3. try to remove file
# rm newfile
rm: cannot remove `newfile’: Operation not permitted

to remove “immutable” attribute just change option from +i to -i
4. remove attribute
# chattr -i newfile

now u should be able to remove the file.
use man chattr to find other possible options.

Windows 8 Free Download

windows 8 free download
windows 8 free download

Miscrosoft has announced its newest operating system Windows 8. It also comes with newest features, its main feature is its compatibility to be ported to most all computer architectures. it fully supports touchscreen device and still suitable for most win 7 applications. Metro UI, is its user interface name.

From one article from microsoft i also found some explanation about its new features, here they are :

  • Fast launching of apps from a tile-based Start screen, which replaces the Windows Start menu with a customizable, scalable full-screen view of apps.
  • Live tiles with notifications, showing always up-to-date information from your apps.
  • Fluid, natural switching between running apps.
  • Convenient ability to snap and resize an app to the side of the screen, so you can really multitask using the capabilities of Windows.
  • Web-connected and Web-powered apps built using HTML5 and JavaScript that have access to the full power of the PC.
  • Fully touch-optimized browsing, with all the power of hardware-accelerated Internet Explorer 10.


here is the video preview :
well, i believe all u want is just to try and download it. well it may just preview edition, but it is said that th final version may include features from this edition
here is the link provided by microsoft :

Javascript introduction

[php]<script type="text/javascript" src="script.js"></script>[/php]

the line above is one of some ways to include javascript to your web page. it will make sure you have separated script file to include, rather than writing scripts directly to the same html page with the content.

second way to include javascript is by writing or embed the script directly on our html page. for example in this page i wrote

[php]<script type="text/javascript">
alert("Admin Says Hi!!");

so that u will see box appear says “Admin Says Hi” with OK button.

further use of javascript provides u amazing ways to make your html page more beautiful. for example in news flash, picture gallery, slider, dll.

javascript in act: Continue reading Javascript introduction

Understanding GPS : Global Positioning System

GPS or Global Positioning System is space-based global navigation satellite system (GNSS). GNSS is used for satellite navigation system with global coverage. GPS provides location and time information in all weather, anywhere on Earh (where there is an obstructed line to four or more GPS satellite). GPS is maintained by United States goverment and available to anyone with GPS receiver.

gps satellite

Other satellite positioning systems available are GLONASS from Rusia, Compass

Continue reading Understanding GPS : Global Positioning System