Find pesky duplicates in mysql
Posted by gturnbul on December 14, 2009 in boring code
Let’s say you had an app that had a ton of users and were suspicious that there were pesky duplicates. Here is a quick mysql select to help put your mind at ease.
select username,count(*) as n
from users
group by username
having n > 1;
or search by first and last name:
select concat(firstname,’ ‘,lastname) as name, [...]
Getting observe_field to update a text_field in Rails
Posted by Gregg on November 13, 2009 in Adventures on the Rails
I am writing this post as I scoured page after page with out luck and came up with this solution. Others may already be all over this method or have more eloquent solutions but this people didn’t have their content search engine optimized. So for those in need here ya go.
I have used observe_field on [...]
prosthetic hand with sensation of touch
Posted by Gregg on October 19, 2009 in Entertaining Me is Easy
pretty amazing stuff: http://news.bbc.co.uk/2/hi/science/nature/8313037.stm
Struggling students take note
Posted by gturnbul on October 7, 2009 in Inspiration
Al started school late due to childhood illness. His mind often wandered and his teacher Alexander Crawford often called him “addled”, which meant “confused or stupid.”. He was kicked out of school three months after starting. He attended three different schools between the ages of seven to nine, and none of his teachers had [...]
fantastic – Bobby McFerrin Hacking the brain
Posted by gturnbul on August 19, 2009 in Entertaining Me is Easy
Where the Time Goes…
Posted by Gregg on May 18, 2009 in Entertaining Me is Easy
So it has again been eons since I have updated this site. Over the next few days I am going to take a stab at making this better reflect myself, the company, my portfolio, and my hair brain ideas. Hold tight, cause here we go…
Explain Twitter to your grandma
Posted by Gregg on February 9, 2009 in Web 2.0
What the ‘H E Double Hockey Sticks’ is Twitter?
I have been asked this question on many occasions and my response has varied and often fallen short of best describing what all the twitter is about. So finding this video gem was very nice.
First post via iphone
Posted by Gregg on January 19, 2009 in Random Thought
I have recently picked up the autobiography of Benjamin Franklin. It may be the influence of the upcoming inauguration but I have been drawn to the histories and personalities of our forefathers. Something about their work ethic and high ideals act as nourishment to my brain and being.
So one of the reasons I [...]
history of the internet.. very well done.
Posted by Gregg on January 15, 2009 in Entertaining Me is Easy
History of the Internet from PICOL on Vimeo.
testing embeded track infor from last.fm
Posted by Gregg on January 7, 2009 in Entertaining Me is Easy
[...]

