Sunday, October 17, 2010

Got my nikon 35mm 1.8f G

After long hours of tipidpc, I was able to decide to go for 35mm.

I hope to get better pictures with this one!

Tuesday, October 05, 2010

Tipidpc feed script

Out of boredom, I was able to create a simple script to get feeds from tipidpc. I was getting frustrated
while waiting, refreshing and reading at items. Finally, I made a script to automatically display the new active items for sale every 30 seconds. If you guys have linux/unix, install a text browser 'links' to run this.


<code>
#!/bin/sh
while [ 1 ]
do
MSG=`links -source http://www.tipidpc.com/ | sed -n '/Buys/,$ !p' | egrep "PHP|viewitem" | sed 's/[^>]*>//' | sed 's/<.*//' | tr -d "\n" | sed 's/Posts/\n/g'`
echo "$MSG"
X=`echo "$MSG" | grep -i "laptop"`
if [ -n "$X" ]
then
echo "emailing....."
echo $X | mail -s "subject" user@email.com
fi
sleep 30
clear
done

</code>

There you go.. A simple script that also emails me on items that i'm interested on. Viewing this on my terminal is really addicting. Since there are lots of new items being posted every 30 secs.
Additional feature might be added to display the hyperlink in the terminal so that I can easily ctrl+click to browse it immediately.

Enjoy!


Sunday, October 03, 2010

Shutter Island

I watched Shutter Island last night. I knew he was insane because he was hallucinating from the start of the movie.
I found it cool that he was able to create a different persona by himself. Pretty interesting because it was an anagram of his name.
I tried to search for my anagram also, so far this is the best for my complete name:
Attachable Orphans Mirrors
For my nickname:
normal
Sounds so cool!
If you want to find more anagrams, visit this site:
http://www.wordsmith.org/anagram/