Author Archives: david

The Most Truth That I Know

If we could conquer greed then we would conquer need. This is the most truth that I know. I only wish it could be so.
Posted in Uncategorized | 4 Comments

Some cool Flash widgets

Just came across some cool Flash widgets on abowman.com, check them out. Pengiuns: they follow your mouse around. Fish: click on the pond to feed the fish [edit]turns out it was the FollowSite plugin that was slowing up my blog – lousy plugin that does not work[/edit]
Posted in Uncategorized | Leave a comment

Play a game and donate water

Try it out: Play a game online and do some good while you’re at it.
Posted in Uncategorized | Leave a comment

Act on Global Warming

Get active about global warming and the failure of the Copenhagen conference, click the logo and send an email to our ‘leaders’. /* begin styles for RSS Feed */ .rss-box-action { margin: 0em; width: 160px; background-color: #E2EBD8; /* Change above line to changer background color [...]
Posted in Uncategorized | Tagged | Leave a comment

Calculate the Running Balance

How to calculate the running balance on a ledger using self-joins.
Posted in SQL Tips n Tricks | Tagged , , , | Leave a comment

Find user’s most recent post in each thread

One common problem that my sequence method can help to solve is how to display the most recent entry that a user has made in each thread that the user has contributed to: SELECT * FROM posts WHERE usedid = $userid AND postid IN (SELECT t1.postid, COUNT(t1.postid) AS sequence, t1.postid <= t2.postid AS flg FROM posts t1 INNER [...]
Posted in SQL Tips n Tricks | Tagged , , , | 1 Comment

How to Sequence each Sub-set of Records

How to find/display/keep/delete the first/last n posts/records/entries for each user by using a sequence.
Posted in SQL Tips n Tricks | Tagged , , , | 1 Comment