Showing posts with label programming. Show all posts
Showing posts with label programming. Show all posts

Saturday, 20 August 2011

EVENT REMINDER by Techyupdates

Hai friends, it is very happy to announce that the EVENT REMINDER application is released. It is a simple application developed by Techyupdates .(see the screenshot below)


As the name indicates ,it is used to remind our birthday,events etc. All you need is to register in the website, www.myprojects.netau.net . You just provide your name, mail id and the details of the event date and the event. After filling that simple registration form ,just click submit and it is done!! You will get a confirmation mail at that moment and will be notified by another e-mail when you are a single day away from the event.

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