Vishnu S

Form Validation functions - PHP

Here are few functions in PHP to validate forms:

Validate Text:
CODE:
function validateText($input){ $result = ereg ("^[A-Za-z0-9\ ]+$", $input ); if ($result){ return true; }else{ return false; } }

Validate Text Without spaces:
CODE:
function validateTextWithoutSpaces($input){ $result = ereg ("^[A-Za-z0-9]+$", $input ); if ($result){ return true; }else{ return false; } }

Validate URL:
CODE:
function validateURL($url) { return preg_match("/^(http(s?):\/\/|ftp:\/\/{1})((\w+\.){1,})\w{2,}$/i", $url); } 

Validate Email:
CODE:
function validateEmail($mail){ $result = ereg ("^[^@ ]+@[^@ ]+\.[^@ \.]+$", $mail ); if ($result){ return true; }else{ return false; }           }





Ninaikkayil and Favo.in

I have 2 things to tell in this post... its about my brother, Narayananunni S's first music album Ninaikkayil and my first individual project Favo.in. We released both on January 10th 2010 (10-01-10)

Image
A collection of romantic songs embellished by different colours of emotions,My brother's debut album Ninaikkayil (நினைக்கையில்) showcases a melodious blend of voices, styles and genres. Featuring five unique tracks with two additional unplugged versions, Ninaikkayil promises a wonderful, melancholic journey through backdrops set in different moods that slowly unfold from track to track.
Well.. these are not my words ;) check out http://vettila.com for more details. You can preview all the songs as well as buy the album cd online. Best part is that you dont need to pay anything now, the cash will be on delivery for National (Indian) orders and you can pay through PayPal for International Orders.

Image

And this is my first project. Its a favorite links manager. You can keep all your favorite links organized under several categories with Favo.in. You can add unlimited links. There is an option to add pre-defined links from a Favo gallery.

and about my college life, im in a single bed room now.. and currently working as User Interface designer for School of Information Technology and Engineering, VIT University Intranet Portal. We have to stay back in lab till 2 to 3am in the morning.. and every morning I reach class atleast 10 min late ;) but thats ok lol.. I failed again in Maths, 3rd sem.. also for Microprocessor.. have to write the suppli exam next month.. and btw, Riviera 2010 is from Jan 30 to Feb 2nd.. its gonna be awesome :) i think thats all for now :)




How to get full-screen mode for 16-bit apps in Windows Vista and 7

I am having lab exams for Datastructures and ALP and we are using the traditional softwares :) so in Windows Vista and Windows 7, these compilers are shown very small. So i was experimenting how to get it full screen and finally found a solution. Go to device manager and disable the Display Driver. And after you use the compilers and other 16bit apps, just enable it back :) You might need to use Alt+Enter to switch to fullscreen.. Enjoy :)




Firefox 3.7!! the sexiest firefox :)

 everyone talks about the interface of Chrome. Well here comes Firefox 3.7, the Firefox in which initially emphasis has been placed on Firefox's visual appearance on Windows.


Its having lots of new features.. read more about it in the Mozilla Projects page:
Click here





Im 19 !

its my b'day :) Im 19.. happy birthday to me :)




My reply to Apples' answer to FCC

Everyone know the issue of Apple blocking Google Voice App for iphone and some commented the Apples apple is rotten ;) well, even I think the same way.. Now recently Apple answered to the questions of FCC. Heres the question and answer:

Image

Question 1. Why did Apple reject the Google Voice application for iPhone and remove related third-party applications from its App Store? In addition to Google Voice, which related third-party applications were removed or have been rejected? Please provide the specific name of each application and the contact information for the developer.
Contrary to published reports, Apple has not rejected the Google Voice application, and continues to study it. The application has not been approved because, as submitted for review, it appears to alter the iPhone’s distinctive user experience by replacing the iPhone’s core mobile telephone functionality and Apple user interface with its own user interface for telephone calls, text messaging and voicemail. Apple spent a lot of time and effort developing this distinct and innovative way to seamlessly deliver core functionality of the iPhone. For example, on an iPhone, the “Phone” icon that is always shown at the bottom of the Home Screen launches Apple’s mobile telephone application, providing access to Favorites, Recents, Contacts, a Keypad, and Visual Voicemail. The Google Voice application replaces Apple’s Visual Voicemail by routing calls through a separate Google Voice telephone number that stores any voicemail, preventing voicemail from being stored on the iPhone, i.e., disabling Apple’s Visual Voicemail. Similarly, SMS text messages are managed through the Google hub—replacing the iPhone’s text messaging feature. In addition, the iPhone user’s entire Contacts database is transferred to Google’s servers, and we have yet to obtain any assurances from Google that this data will only be used in appropriate ways. These factors present several new issues and questions to us that we are still pondering at this time.
We are continuing to study the Google Voice application and its potential impact on the iPhone user experience. Google is of course free to provide Google Voice on the iPhone as a web application through Apple’s Safari browser, just as they do for desktop PCs, or to provide its “Google-branded” user experience on other phones, including Android-based phones, and let consumers make their choices.


Now, Apple, tell me, have you read the Google Voice Privacy Policy at http://www.google.com/googlevoice/privacy-policy.html ?? Its clearly said that Google will store those information in their server and if you see the Google's Official Privacy Policy, you will understand what they do with these informations! And as you (apple) said that let consumers make their choices why do you bother, let them choose. They have full freedom to remove Google Voice app (read the "Your Choices" in the Google Voice Privacy Policy page).




What am I doing these days?

hm.. its been a while since I wrote something about me, what I am doing etc.. The last post I recall was about a video made by my seniors. So later that month, I had my second sem term-end exam which as usual I messed up!! and after April, starting from May 18th I was in the campus enjoying Summer Classes for the failed maths subject!! It was horrible. I had to change my room 5 times between 2 blocks! Anyways, later since I had an option and since it was not too expensive, I took Special Mess and single Non-AC room in International Hostel. It was awesome! Everyday morning fresh juice, cornflakes etc. and it was great. And everyday I had only 1 and a half hour class. It was boring like hell!!! and also hot too.. But there was rain most of the evenings. And for the first time!! I went to Chennai with my friend Parasuram and Sumangala. It was one of the best days coz I went to KFC and McDonalds for the first time in my life!! Thanks to Parasu and Suman.. I made some websites and also some gadgets during the summer. Also redesigned the Gadgets Website: http://gadgets.vishnus.name. Also I made a website for my friends' birthday. I had a friend Robin Mathew, MBA final year, he and another guy Saroon from Mtech were the only friends during the summer. The final exam was just OKOK.. I only know how I studied.. lol I had few issues with my friends Shivany and Zuberia regarding some stupid things. Its all cool now I guess. Then I had a vacation of 4 days. 4 Rocking days in Calicut! I had a great time with Vinayak, Sharo, Arjun PV, Shabbaz etc.. Vinay was there, but couldnt meet him. Everyday riding bike in rain. Everyday evening getting nicely from my mom and dad for coming drenched in rain :D lol. It was really great! Then starts the 3rd sem. Now since I shifted the hostel to K block, I have to walk nearly 2-3 km everyday to reach the class. That too through the campus!! Only thing is that we can see many girls on the way.. ;) (daily morning) and also, my hostel faces the girls hostels.. whew damn good view lol The results of second sem came during the summer itself, I dint pass in Maths2! Nothing new.. I hate calculus, i hate maths! But I hoped to pass for its revaluation. I failed in that too. The suppli exam for that was just yesterday, I dint even study anything, I came out within 45 min. Why should I waste my time sitting in the exam hall and dreaming! damn.. and one more thing, I passed in my summer maths. Thats the Maths1. After failing Term-end, its revaluation, later its Suppli, and suppli-revaluation, I cleared my Maths1 with a C grade :D thats something that I should be proud of lol.. Forget it.. its life.. Now I should repeat that Maths2 in next sem with my juniors... hmm.. Then I got selected as the Regional Leader for Mozilla Campus Reps network. Its really great working with Mozilla. Also now I will be sparing some time in developing Google Chrome Extensions. Its also fun. One more thing I forgot to tell! I went to Google India, Bangalore office for the Launch of Google Technology User Group! Its like one of the best days in my life. I could get pass for my friends Parasuram and Rahul also. But Rahul couldnt come :( But me and parasu had a great time in Google Office!! We were lucky to meet Atul Chitnis from Foss.in. His speech was very inspiring! Me and Parasu went in a Volvo Bus and it was my first time in a Volvo.

Image Image
Image Image

After the event, parasu went back to Vellore and me and Rahul stayed in Bangalore for a day. We had a great time there. Its like complete hi-fi city. We say one Porsche, Lamborghini, and Ferrari in a line! I went to Forum, Bangalore Central, Garuda Mall etc.. and Rahul made me walk through the city and by that now I know the places in Bangalore. There are volvo city buses which is extremely cool! Now I can go anywhere in Bangalore alone :) thanks to Rahul. hehe Well thats all for now I guess.. I am enjoying my life. I am still wasting alot of time. Hope I study maths this sem atleast :( :( lol !!




Page :  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 
 


Creative Commons License