That was a fantastic game yesterday. Had a lot of fun ... definitely need more pictures
Saturday, December 02, 2006
Thursday, October 05, 2006
Cant argue with this
"You’ve achieved success in your field when you don’t know whether what you’re doing is work or play." - Warren Beatty
Saturday, September 23, 2006
Learning Python
Just started to pick up on Python,
I am sure everyone who took COSC 2320 with Dr. Anderson remembers the word count program. Well after going through some of the tutorials of python here is the same program in python
Not only is it smaller, but its also easier to understand. Hopefully more to follow
Edit: Some more playing around
I am sure everyone who took COSC 2320 with Dr. Anderson remembers the word count program. Well after going through some of the tutorials of python here is the same program in python
Not only is it smaller, but its also easier to understand. Hopefully more to follow
import re
import string
#dictionary to store words and their counts
word_count = {}
#read in text document line by line
for line in open("trial.txt").readlines():
#remove leading and trailing whitespace
line = string.strip(line)
#split the string into words
#based on whitespace, punctuation, digits
for word in re.split("["+string.whitespace+string.punctuation+string.digits+"]",line):
#make the word lower case
word = string.lower(word)
#check if it is actually a word
if re.match("^["+string.lowercase+"]+$",word):
#increment count if true
if word_count.has_key(word):
word_count[word]+=1
#else add entry
else:
word_count[word] = 1
for w in word_count:
print w, ":" ,word_count[w]
Edit: Some more playing around
import re
import string
word_count = {}
text = open("trial.txt").read();
#list of words delimited by whitespace, punctuation and digits
#iterate by words in returned list from split
#lower case all the words in the text
words = re.split("["+string.whitespace+string.punctuation+string.digits+"]",string.lower(text))
#go through the list
for i in range(0,len(words)-1):
#as long as the word in the list is a word and is not already a key
if re.match("^["+string.lowercase+"]+$",words[i]) and not word_count.has_key(words[i]):
#add to the dictionary and get the count from the list
word_count[words[i]] = words.count(words[i])
for w in word_count:
print w,":",word_count[w]
Thursday, August 31, 2006
Friday, August 25, 2006
Time for another update .... dont know about what though ..... anyone able to switch over to the new blogger beta ?
Friday, June 16, 2006
A templating implementation for PHP that probably comes quite close to the one provided by struts :- Flexy http://pear.php.net/manual/en/package.html.html-template-flexy.php
Struts so far has been awesome
Struts so far has been awesome
Tuesday, May 30, 2006
Lets see here
Well its kinda late for the highlights but here they are anyway:-
Michael awakens and finding himself in the most awkward position ever ( you have to hear the story from him for the full effect )
Awesome Career Fair
We all passed OS ( this one was too close )
PGH 547 is being remodelled ( and not the way we thought it would be, this one not so much of a highlist )
Completing the SE project 30 minutes before the demo
At the moment this is all that I remember , and good luck to everyone who will be starting their internship tomorrow.
Michael awakens and finding himself in the most awkward position ever ( you have to hear the story from him for the full effect )
Awesome Career Fair
We all passed OS ( this one was too close )
PGH 547 is being remodelled ( and not the way we thought it would be, this one not so much of a highlist )
Completing the SE project 30 minutes before the demo
At the moment this is all that I remember , and good luck to everyone who will be starting their internship tomorrow.
Tuesday, May 23, 2006
Tuesday, April 25, 2006
Thursday, April 13, 2006
Tuesday, April 04, 2006
Oldest Account
Just going through a list of accounts at places that I have ... my oldest one is my first email address that I created at hotmail.com .... I created that account 9 years ago !!!! I still use it but mainly as a junk mail collector
Whats your oldest account and do you still use it ?
Whats your oldest account and do you still use it ?
OS
"In this a blow at the hardware level a realist"
I beat you to it abhi lol
I beat you to it abhi lol
Saturday, April 01, 2006
Tuesday, March 14, 2006
Finally
Finally I completed the challenges on slyfx.com ..... today after Tom posted something about Java, i decided to have one more go at the final challenge, 20 minutes later I was done .... now hopefully the people on that site come back and write the new levels.
Sunday, March 12, 2006
Eclipse + PHP
If anyone is using Eclipse with the PHPeclipse plugin and you want to disable the at times frustating auto completing of quotes follow these steps:-
Windows -> Preferences -> PHPeclipse -> PHP, then select the Typing tab and uncheck the two options to enable closing of quotes
Windows -> Preferences -> PHPeclipse -> PHP, then select the Typing tab and uncheck the two options to enable closing of quotes
Wednesday, March 08, 2006
CodeIgniter
This PHP framework is probably one of the easiest frameworks to get your head around. It was released a couple of days ago and it has been real impressive. Though relatively new it has a lot of the standard features while offering new stuff like Image Manipulation, Email Class, Encryption, Benchmarking etc. The best part about it is the low learning curve. As part of an experiment I recoded the entire CougarCS library with it and it was quite a pleasant experience.
Replacing the library with this code is another issue, but it was done real quick
Have a go at it here ==> CodeIgniter
Replacing the library with this code is another issue, but it was done real quick
Have a go at it here ==> CodeIgniter
Monday, February 27, 2006
How people find this site
Here are some interesting keywords that people use while searching and then stumble on my blog:-
will kashif and i get into a big fight today? (Google) ==> this one had me laughing, is it you shey ?? lol j/k
"Kashif Deniro" (Google)
DirectShow Syllabus (AltaVista) ==> people still use AV ???
will kashif and i get into a big fight today? (Google) ==> this one had me laughing, is it you shey ?? lol j/k
"Kashif Deniro" (Google)
DirectShow Syllabus (AltaVista) ==> people still use AV ???
Thursday, February 23, 2006
Googlefasting
Chris Pirillo has been trying googlefasting, which is quite interesting since I have thought about and even tried in the past( and failed !!! ). My search engine of choice was Yahoo! ( no surprise there ) but it just didnt cut it. A feeling you always get is that maybe your missing out on something from the search results and then you end up going to google
Conclusion: You can stay away from their services like mail, maps, but when it comes to search it is very difficult to replace Google. Maybe if Yahoo improves on its mindset feature switching could be a little more easier.
Conclusion: You can stay away from their services like mail, maps, but when it comes to search it is very difficult to replace Google. Maybe if Yahoo improves on its mindset feature switching could be a little more easier.
Wednesday, February 22, 2006
CougarCS Career Fair
All the hard work paid off. It was a complete success !!!!
Shey where are the pics ??
Shey where are the pics ??
Monday, February 06, 2006
was it just me or the superbowl ads this year were just terrible ?
Subscribe to:
Posts (Atom)
