Some people hate 3nf and some people love it. 3nf doesnt make it right or wrong. It just breaks or db to modular tables for your system to be flexible in times of change. When a programmer designs an OO, he can design a 3NF db.
Showing posts with label Programming. Show all posts
Showing posts with label Programming. Show all posts
Thursday, August 7, 2014
Monday, August 4, 2014
Tech proverbs#9. Programming art
Programming is an art where a programmer tries to imagine a masterpiece in his head. Programmers tend to appreciate perfection like mona lisa. Programmers almost always hate abstract art due to the nature of reason.
Tech proverbs #8. On fixing
The only way to fix something is to break everything.
Friday, August 1, 2014
Tech proverbs #7 lex and yacc
A true programmer heard of lex and yacc. If you found someone who actually used it, they are a gold find.
Tech proverbs #6. On support
Never make your programmer a support. For a true programmer makes sure that there's nothing to support in the future.
Tech proverbs #5 Laziness
Hire a lazy programmer. You'll see a huge difference.
Tech proverbs #4. Cron reports
Sometimes there are reports needed. Daily, weekly, monthly and etc.. If they are written in different scripts with no DRY mentality, obviously something went wrong.
Tuesday, October 5, 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.
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!

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!
Subscribe to:
Posts (Atom)