Despite what you may read some android content providers (including the Call Log) can accept a sql LIMIT. Before passing the URI to managedQuery() first do: Contacts.People.CONTENT_URI.buildUpon().appendQueryParameter(“limit”, “150″).build()
Blog Archives
Hacking lfd csf v5.07 high 5 minute load average email to include MySQL Process List
joe /etc/csf/lfd.pl Go to about line 1906, just before: open (IN, “</etc/csf/loadalert.txt”); add: my @mysql = `mysqladmin -uUSERNAME -pPASSWORD processlist`; Go to line 1925, just before: $line =~ s/\[boundary\]/$boundary/ig; add: $line =~ s/\[mysql\]/@mysql/ig; Save and close /etc/csf/lfd.pl ———————————————– joe /etc/csf/loadalert.txt add just before the last line —[boundary]–: ————–[boundary] Content-Type: text/html; name=”mysql.txt” Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=”mysql.txt” MySQL Process List: [mysql] Save and close and restart LFD!
My Experimental Fix for the “Digg Effect”
With the increase of large social networking sites, like Digg, Slashdot and Reddit popping up all over the web, it’s getting easier for the small-time bloggers to get their often well-deserved hour in the spotlight. All it takes is one interesting blog entry and one of your visitors taking a moment to share it with visitors of one of these bigger sites. What most bloggers don’t realize until it happens to them is an appearance on the front page of … Continue reading
iPod Building
This building is at Avenida Santo Amaro in São Paulo SP, Brazil. Take a close look at the side of the building. Someone has redone the exterior of two floors of the building in the shape of an iPod:
Printer Frustration
ah, wouldn’t we all like to do something like this from time to time:
Compusa Service
Hmmmm, what exactly is Compusa offering here?
You awake to find yourself making out with a hedgehog!!!!
You know you’re in for a strange day when you get this on your Nintendo DS
Spam Trap
A Geek solution to all the spam that comes via fax: “Spamtrap” – watch the video
There’s A Reason That You Slow Down At The Toll Booth
Yes, there is a very good reason why you should slow down at the toll booth: