Showing posts with label php. Show all posts
Showing posts with label php. Show all posts
4

iPRATIK - the Twitter web app



After coming home in the college vacations, I faced with a shocking truth. My parents were going to US to meet my sis and me, being the worst timing champion, was having his internship in the same period. As a result, I DID NOT go.
So, they went and I was left in a lonely home, with crappy food and alternate day office routine (currently dong internship in Huawei).
Plenty of free time I can say, so decided to work on a twitter app. And the result is iPRATIK. It can send as well as show tweets from your twitter account as well as lets you see the twitter info of other people too.The best thing is you can access it from anywhere,regardless of what OS you are using or whether you are accessing from a pc or a mobile.It just works.
It is coded entirely in php using curl .It is powered by OAuth library by Abraham Williams. And while coding it, I was powered by recurring sessions of maggi and pizza.

I am still pondering over the licensing issues. The api being in MIT/X license and I intend to release it under GNU/GPL v3. It actually sparked a flame war over licensing topic in lug-bombay mailing list :D
Now, why such a name?
Well, iPRATIK was just chosen as test phase name because Steve Jobs was going haywire at that time over the new iPHONEv4(he still is, btw). Later, I decided to go with it.

now, cutting all this crap here is the link to try it yourself :)
http://pratikanand.co.cc/ipratik/login.php


and here is the source code:
http://github.com/pratikone/ipratik-twitter



Preview of my twitter web application I have been working for... on Twitpic

Future plans ??
Yaa, sleeping and eating at first. Later, I may further develop it and port to mobile platform.Till then , it's all peace and pizza.
0

MagMIT


Last semester, I got an offer from Nitin, Editor of the College Editorial Board to design a website of it. They wanted the website to be the social interactive portal of the college. The previous website, despite being colourful was bulky and lacked much efficiency. Hence, I teamed up with Karik and we started making the site. After 3 times of design changes and code re-writings ,we finally got the node.
The current website is very light and has streamlined design. Whatsoever be the condition of college wifi, the site opens up on a mouse click. To our relief , the site is being well-appreciated everywhere. Though, this is not the end.We still have to make it power-packed.

Long way to go....
here is the link www.magmit.com
0

A month full of Busy schedule


This month came and passed within an eye wink..Before I could settle down well, exams were up again..
Well....blame may be given on my very busy schedule during these days...Techtatva09, our college annual techfest was to be held and I was organiser of one of the events as well as in Creative Designer team of it...So big time tension. Moreover, I was working with few of seniors to build the prototype of the new MIT website which was presented infront of the Director, board members and the company official who has made the previous one (And it was a great success :)). Later started working with ISTE, now am a member of its working committee :). Quite soon, somebody from edboard saw my artworks in TT09 and just a day later I got a call from EdBoard asking if I am interested in joining it.. Well I did, an interview was held for taking up the edbaord designers.So, I applied for the post of Digital Designer. We were given a 2 poems and asked to design something on its theme ,also to explain it .We did and my design was declared the best :) , I was the first one to get selected. So, finally I am in the Editorial Board of the college..

This is how this month passed and it changed a lot of things for me (made me a busy man ;))

PS: Have included a pic of the design for the edboard

Currently me and Kartik Mandaville are now making its new EdBoard website : MagMIT ...will be posting the link as soon as it gets over
Let's see what remaining months have in stock.
1

swine flu forms


In wake of the newly spread epidemic of Swine Flu, international airports started registration forms swine flu. I came across it when my sister, coming from the US, had to wait 2 hrs. at immigrations becasue of this form. It asks you whether you have swine flu or not?. I wonder if anyone will reply 'YES' to that.....

Since, i am working on designing web related apps in php, I decided to create an online form of this registration form.

here's the code of the backend php file:


mysql_connect('localhost','root','*****') or die("Unable to connect");
while(!(mysql_select_db('swineflu')))
mysql_query("CREATE DATABASE swineflu");
$query="CREATE TABLE medreport (name varchar(20), nation varchar(20), med_note varchar(40), relative varchar(20), comment varchar(40),swine int)";
mysql_query($query);

//inserting values

$name=$_POST['app_name'];
$nation=$_POST['app_nation'];
$medhis=$_POST['med_his'];
$rel=$_POST['app_rel'];
$comm=$_POST['app_comm'];
if ($_POST['question'])
{ $swine='1';}
else $swine='0';

$query="INSERT INTO medreport values('$name','$nation','$medhis','$rel','$comm','$swine')";
mysql_query($query);
if(mysql_affected_rows())
{ echo "Your information has been recorded";}
else echo "An error has occured";

if ($swine)
echo "You have been swined";
?>



It gives a dangerous message : You have been swined , if found infected.

All the data goes to a mysql database from where it can be retrieved on authenticating user name and password. I am currently working on it.
0
While pursuing my PHP tutorial , i came across this very unusual example in the book PHP-MySQL bible. It actually creates a form questionnaire for calculating if you are a GEEK or not and indeed, the questions are bone-crackling good...

See for urself

note:- i am just putting the questions not the code
HOW GEEKY YOU ARE?


0. Have you ever had a dream in which you were debugging?

1. Do you know the name of the company founded by Danny
Hillis?

2. Can you edit a file in both emacs and vi without recourse to
any documentation?

3. Is the computer you’re using at this moment hooked up to a
KVM switch?

4. Are you wearing a logowear T-shirt?

5. Have you ever written a chess program?

6. Have you ever set up an SMTP server?

7. Have you ever discussed the merits of a commercial LISP
implementation?

8. Have you ever used the phrase “I can do that in two lines of code” in public?

and the best one

9. Have you ever refused an otherwise welcome sexual advance
because you were debugging?
 
Copyright © PRATIK ANAND's weblog.