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.

Monday, 20 December 2010

Best ways to speed up pc..

Here are some best ways to speed up your PC..
1.Free up disk space
Use disk cleanup tool to free up the space on your hard disk to improve the performance of the computer.
The tool automatically identifies files,which can be deleted safely and enables you to choose some of them or all the files.
Use disk cleanup to:

  •  remove temporary internet files
  • remove downloaded program files
  • remove files from recycle bin
  • windows temporary files
2.Speed up access to data
Disk Defragmenter is a windows utility that consolidates fragmented files and folders on your computer's hard disk so that each occupies a single space on the disk.
Use disk defragmenter at regular intervals.
3.Detect and repair disk errors
  You can check the integrity of the files stored on the hard disk by running the error checking utility.The error checking utility scans the hard drive for bad sectors,and scans for the file system errors to see whether some files or folders are misplaced.
4.Protect the computer against spyware
 Use a suitable security (for example : microsoft security essentials) to prevent spyware.
5.If you are using win7 or vista ,you can use Readyboost to speed up the PC.A new concept of adding memory to a system ,allows you to use non volatile flash memory.
Try these tricks to speed up your PC..and enjoy!

Saturday, 20 November 2010

How to modify or remove shortcut arrow?

Go through the steps given below.
1.Open your registry by typing command regedit in Run window
2.Go to HKEY_CLASSES_ROOT\lnkfile ,remove the IsShortcut string entry because this entry is used to control if show arrows on shortcuts of common Apps and Data files
3.Go to HKEY_CLASSES_ROOT\piffile,also remove the IsShortcut entry because this entry is used to control if show arrows on shortcuts of MS-DOS programs
4.Log off and login ,you will find the arrow is removed
(Please backup your registry before you change any entries in your registry editor)
Or you can easily do it by using the FxVistor.
FxVistor or vista shortcut overlay manager let us to remove or modify the arrows from shortcut icons easily.It works in vista as well as in windows7.