What\’s Up

Archive for May 2006

Anti-Reservation Protest in Chennai

with 4 comments

Its time to wake up Chennaiites. If you ever felt sad that you were not able to join in the protests against reservations, then here is your chance. Anti-reservation protest has been organised in Chennai on May 25th at 4:00 PM.

I think its the right time that decision has been made for protests in Chennai, as the exams for most of the final year engineering departments is getting over on May 24th.

Here are the details ::

DATE : 25th MAY 2006 Thursday
TIME : 4-6 PM
PLACE: Government Guest House, Wallajah Road, Chennai.

SILENT SIT-IN PROTEST WITH PLACARDS

THEME: SAY NO TO RESERVATION

Permission has been granted by the police.

Participants include IITians, Medicos and working people.

All are Welcome. Let us show what we feel to the government.

CONTACT US OR WRITE TO US:

BLOG SITE: http://yfechennai.blogspot.com/

YAHOOGROUP: http://groups.yahoo.com/group/chennaiunited/

e-mail: chennaiunited@yahoogroups.com

All-India contact: youth4equality@gmail.com

CONTACT PERSON:

Rama Subramanian:9840284781 nvsriram@gmail.com

Written by lokesh

May 23, 2006 at 7:06 am

Anti-Reservation Protests All Over The Nation

with 5 comments

The protests against reservation has been going around for quite a long time and no luck till date. The speeches given by Arjun Singh is making the protesters even more fierce and problem is getting big day by day. As an individual I also feel the same as the protesters feel. There shouldn't be any reservations.

Ok, coming to the point…there is going to be protests in most parts of the country on 20th and 21st.

Check out http://protestcentral.blogspot.com/ for information about protest activities in your city and how you can join in the protests.

Its better to let know the visitors of this blog about "Why Anti-Reservation"

Why we oppose reservation?
1) It is going to kill meritocracy, and hence destroy India's image as a technology hub.
2) It is dividing India into caste lines which our freedom fighters and social reformers fought so hard to eliminate.
3) It is against the fundamental right to equality as safeguarded by the Constitution of India.
4) The benefits of reservation have been denied to really deserving people by the rich and powerful in their own classes.
5) Reservation is just a populist measure used by politicians for electoral gains.
(Taken from http://www.youth4equality.org/)

Written by lokesh

May 19, 2006 at 5:22 pm

AJAX Activity Indicators

leave a comment »

 When any AJAX operation is being performed in a site, the user doesn't quite know that process is being carried out in the background and sometimes it so happens that the user either keeps clicking the button again and again or leaves the page thinking something is wrong. Whether the AJAX operation is small or big, its always better to have activity indicators so that the user knows his/her request is being processed in the background.

While designing my AJAX applications I was looking out for some nice activity indicators and so I stumbled upon these sites which host some of the sexiest activity indicators.

Napyfab 

Ajaxload 

Mentalized 

Written by lokesh

May 14, 2006 at 1:03 pm

Posted in AJAX

Random Quotes

leave a comment »

Here is a small script that I've used in the online slam book to display random quotes which reads the contents of a file and displays a random quote from it.

<?

$quotesfile = "quotesrandom.txt"; //The file in which all the quotes are stored.

$filecontents = fopen($quotesfile, "r"); // Open the file to read

$quotes = fread($filecontents, filesize($quotesfile)); // Read the file and store the contents of the file in $quotes

fclose($filecontents); // Close the file

if($quotes != "") { // Proceed if the file is not empty

$splitquotes = explode("n", $quotes); // Split the individual quotes into an array, explode using the new line character

$n = count($splitquotes); // Number of quotes available from the file

$quote = rand(0, $n - 1); // Generate a random number

$quote_display = explode("::", $splitquotes[$quote]); // Select a random quote using the random number and split the corresponding quote and author.

}

?>

<? echo $quote_display[0]; ?><div align="right">-<i><? echo $quote_display[1]; ?></i></div>

Here is the general format followed in the text file –

quote1::author1

quote2::author2

quote3::author3

quote4::author4

The symbol used in the file to seperate the quotes and the corresponding author is :: and any other symbol can also be used instead. Each quote is to be present in a new line in the text file.

Written by lokesh

May 14, 2006 at 5:45 am

Posted in PHP

Time Passing Coding

leave a comment »

Long time since I updated my blog. Seems like its become a practice for me to say this everytime :). I've got some good news this time. I've started another blog, the third one which is regarding my fun coding in PHP, AJAX…its all about sharing the knowledge whatever I gained and I'm about to gain and I'm doing it for personal satisfaction.

I've been coding in PHP and AJAX so much since my project review got over and I had lot of fun doing that, days were running like minutes for me and I was so much immersed in it. I was working a lot on the online slam book and yes its over and  I almost launched, but suddenly due to the server problems it has been delayed and now I'm in search of a good hosting which is reliable enough. Whenever I find a host and setup everything to launch the site, suddenly some problem shoots up from the server side, either the server goes down, or suddenly they include some forced ads which ruins the website design and so I start searching for another hosting. This is what is going on and I hope I find a perfect hosting solution soon so that I can unveil the online slam book. 🙂

Written by lokesh

May 13, 2006 at 4:23 pm

Posted in General, Personal

Transloading – Copying Files From Server to Server

with 5 comments

Let me start off the blog with a very good application. Before I got much used to PHP, I was wondering much about transloading which is nothing but copying a file from one server to another. At that time I couldn't find much about it and I really became mad finding how to do that. Well, there is no need for you to become mad 🙂 , here is the code:

<?

if ($transload)

{

if ($_POST[sourceurl] == "")

{

print "Please enter the source URL";

}

else

{

$sourceurl = $_POST[sourceurl];

$newname = $_POST[newname];

copy("$sourceurl", "files/$newname");

$newsize = round((filesize("files/$newname")/1000000), 3);

echo "The file $sourceurl has been successfully transloaded here:

<a href=files/$newname>$newname</a> - $newsize MB";

}

}

else

{

?>

<form action="" method="post">

Source URL: <input type="text" name="sourceurl"><br>

Destination filename: <input type="text" name="newname"><br>

<input type="submit" name="transload" value="Transload">

<?

}

?>

The above code is very useful when files are needed to be transferred while changing hosting provider as it is very fast compared to usual method of downloading and then uploading. 

Written by lokesh

May 13, 2006 at 4:08 pm

Posted in PHP

Howdy!

leave a comment »

Welcome to my 3rd blog on wordpress.com. Yes, this one is my third and its been long time since I thought of starting to blog on all my coding practices. I dint concentrate much on my personal blog and tech blog, but I'm sure posts will be pouring in here, the reason being I spend 75% of a day's time coding in PHP and AJAX.

There might be lot of resources out there related to PHP and AJAX, then why another one, you might ask. Its all for self satisfaction. I've learned many things and I would be very happy if I could share this knowledge with everyone. Someone somewhere might be benefited by this blog and I'm sure I'm doing the right thing of creating a blog to share all the knowledge that I've gained and about to gain. 🙂

Written by lokesh

May 13, 2006 at 3:41 pm

Posted in General