Monday, 11 July 2011

Make your pendrive bootable with MakeBootable

If you are facing some critical windows problems, and the CD-ROM is not functioning ,definitely you will need a bootable pendrive.
 MakeBootable is a free software which lets you convert your pendrive into a bootable media. After making your pendrive bootable with MakeBootable, you can use your pendrive like a windows xp bootable cd.
  MakeBootable is an easy, freeware application.It consists of a single executable file and requires no installation.To use MakeBootable, run the MakeBootable executable file.On the main window,select the USB device you wish to make bootable.One important thing is you need to convert the pendrive into FAT format.(It doesn't support FAT32 and NTFS file systems).Next,you need to change the boot up setting in the system BIOS.With your USB device still plugged, restart your system. Enter the BIOS setup menu and change the boot device setting. Select USB Device as First Boot device in the boot device priority. If the boot-up files are created in the USB drive, select USB-HDD or USB-ZIP (preferred). If the boot-up files are created in the floppy drive of your device, select USB-FDD (for pen drive that supports security mode).

Once done, save and exit the BIOS setup. Now, you should be able to boot up with your USB device.

Thursday, 2 June 2011

A Counter Script In PHP


Below given script can be used as a counter.The value of the counter variable($dat) will be incremented each time it executes..


if (file_exists('count_file.txt'))
{
$fil = fopen('count_file.txt', r);
$dat = fread($fil, filesize('count_file.txt'));
echo $dat+1;
fclose($fil);
$fil = fopen('count_file.txt', w);
fwrite($fil, $dat+1);
}

else
{
$fil = fopen('count_file.txt', w);
fwrite($fil, 1);
echo '1';
fclose($fil);
}


Tuesday, 31 May 2011

php script to count the no of days to a date in the future

The below given php script count and display the no of days to a specific date in the future...
< ? php
         $d=date("d");
         $m=date("m");
         $y=date("Y");
 // Change this to the day in the future    
 $dd = 13;
 // Change this to the month in the future
 $mm = 05;
 // Change this to the year in the future
 $yy =2011;

/*COUNT THE NO OF DAYS TO THE DATE IN THE FUTURE */

 $dy=$yy - $y;
 if ($dy ==0)
   { $dm = $mm - $m;
     $days=(($dm-1)*30)+(30-$d)+$dd+($dm/2);
     echo "\r\n There are $days days remaining \r\n";
   }
 else
   {
     $days=(($dy-1)*365)+(30-$d)+((12-$m)*30)+(($mm-1)*30)+$dd+($dy*4);
     echo " There are $days days remaining ";
   }
?>

Monday, 18 April 2011

Python script to get the webpage source

Here is the python script to get the source code of any web page..all you need is to edit the url in the script.

import urllib

filehandle = urllib.urlopen('http://www.techyupdates.blogspot.com')

for lines in filehandle.readlines():
   print lines

filehandle.close()

Friday, 25 March 2011

Dealing with EasyPHP

For the purpose of my mini project,i started to learn php and installed easyphp in my laptop.I think it will be nice to share the joy of my first php script and the working of easyphp.
Only 9 steps to be done,let's start (In win7)..
1.Install easyphp.
2.Open the easyphp folder , you will see number of  folders named as apache,mysql,phpmyadmin etc.Check   out for a folder named as www.It will be good to create a shortcut for that folder as we will use this many times.
3.Open notepad and write the php script and save it as "filename.php".

4.Place the above created file in the early discussed www folder.
5.Start easyphp by a double click on the icon of easyphp.
6.The icon will be appeared in the task bar.
7.Right click on the icon,select the localweb.
8.The browser will be opened now,after the address on the address bar,add filename.php

9.Output of my first php script ,ha ha.

Friday, 18 February 2011

Top open source IDEs


Integrated development environments lets the developers write lesser lines of code and concentrate more on the business logic layer,application layer and the presentation layer.They come with a lot of features like auto complete,debugger,linker,loader etc.
Below given  few details of top 5 open source integrated development environments.

1.Eclipse
 Support a variety of languages like c,c++,java,python,PHP etc.It run on  windows,linux or mac os x.The plug-ins to support a programming language  can be easily downloaded.It need lot of memory when it runs.
 www.eclipse.org/downloads/


2. Netbeans
 Support c,c++,java,java FX,java Web and EE,Ruby and PHP.Developers mainly  use it for java.Like eclipse,it needs a lot of memory when it runs.
 www.netbeans.org/downloads

3.MonoDevelop
 A good open source IDE to write ASP.NET applications in windows,linux and  mac os x.
 www.monodevelop.com

4.JEdit
 A text editor for creating applications in java.Auto complete,syntax  highlighter etc are its special features.Not good for beginners as it  doesnt have a visually appealing interface.
 www.jedit.org

5.Aptana Studio
 Great IDE for developing web applications using HTML,CSS,Javascript.It  runs on windows,linux and mac os x.It can be downloaded as an eclipse  plugin or a stand alone version.
 www.aptana.com

Sunday, 13 February 2011

Top Web Designing Tools

If you are a web designer or interested in web designing,you must check some amazing tools for web designing.You can bring a lot even you are not much familiar with HTML/CSS.Here given the basic description about such five tools.
1.Firebug 
  .Free,open source in-browser web development tool for the Firefox web browser.
  .For more details,check www.getfirebug.com
2.Photoshop
  .Commercial graphic editor available for the Mac and Windows OS.
  .For manipulating images and creating web graphics.
3.Panic Coda
  .Shareware web development application for the Mac OS X.
  .Simple and intuitive interface
4.Dreamweaver
  .Commercial application for web development from adobe.
  .Available for the Mac and Windows OS.
5.Fireworks
  .Commercial raster and vector graphics editor from adobe.
  .Available for the Mac and Windows OS.