Yazan: dp | 26 January 2010 | Comments
Categories: Uncategorized
I admit, I borrowed this from How to fix strange characters in MySQL database – Vinh Pham. But I also added a few more that were missing;
update <table> set <field> = replace(<field>, ‘’’, ‘\”);
update <table> set <field> = replace(<field>, ‘…’, ‘…’);
update <table> set <field> = replace(<field>, ‘–’, ‘-’);
update <table> set <field> = replace(<field>, ‘“’, ‘”‘);
update <table> [...]
Yazan: dp | 24 January 2010 | Comments
Categories: Uncategorized
1
Star Trek
2009 • J.J. Abrams • Rated PG13
Science Fiction • Space Adventure
1 on Your Flickchart • Rank This Movie
0
2
Finding Nemo
2003 • Andrew Stanton • Rated G
Children’s/Family • Family-Oriented Adventure • Adventure Comedy
2 on Your Flickchart • Rank This Movie
0
3
The Last Samurai
2003 • Edward Zwick • Rated R
Drama • Historical Epic • Period Film
3 on Your [...]
Yazan: dp | 11 January 2010 | Comments
Categories: Uncategorized
I’ve recently been posting my benchmark scripts to github. You can find them here: gms8994’s benchmark at master – GitHub. I’ve also started posting the results within the wiki, each page with the same name as the script. For example: comparing MySQL inserts with one set of values, or multiple sets of values.
Yazan: dp | 18 December 2009 | Comments
Categories: Uncategorized
Tomboy is great. It’s a small app that accepts your input, and creates an In-app wiki. Sometimes, I’m on a machine with Tomboy; sometimes I’m not. But I’m almost always near an internet connection. So I wrote a script to synchronize between a MediaWiki installation, and Tomboy. It handles local [...]
Yazan: dp | 16 December 2009 | Comments
Categories: Uncategorized
It’s amazing how much content a company can add in a year, especially when that company writes articles for it’s living. A year and a half ago, I wrote this code against Sphinx:
$cl = new SphinxClient ();
$res = $cl->Query ( $q, $index );
foreach ( $res["matches"] as $docinfo ) {
$excerpt = [...]
Yazan: dp | 11 December 2009 | Comments
Categories: Uncategorized
As helpful as I think this might be, why are we, the users, not just given the ability to edit the transcription? We could also donate it, and then Google would have much less work to do, and I could get more accurate transcriptions much sooner.
Google Voice Blog: Help improve transcription quality.
Yazan: dp | 05 November 2009 | Comments
Categories: Uncategorized
The pain was unbearable. Heat scorched his eyes, his skin, his teeth. When he could take no more, Marco took a breath, knowing he was going to die. But the breath he took was not painful; it was fluid, smooth, and cool. Marco opened his eyes, and stared at the floor for many long seconds, [...]
Yazan: dp | 29 October 2009 | Comments
Categories: Uncategorized
This link (Internet Sensation Jump Rope Team) was just passed around the office. It was shared from our Chairman to our President, who then sent it along to us. He told us it was the most amazing video he’d seen in a while. He also asked if we could imagine our company executing it’s vision [...]
Yazan: dp | 15 October 2009 | Comments
Categories: Uncategorized
This post is just a list of ideas for a Death Envelope. For some reason yesterday, my head was fully engulfed with generating a death envelope, how to keep it secure, and methods of verifying the authenticity of the person requesting said envelope when necessary. Below are my thoughts.
Text document on computer
GPG/PGP encrypt text document
Compress [...]
Yazan: dp | 14 October 2009 | Comments
Categories: Uncategorized
I want a new media player. I want it to:
play MP3s, OGGs, FLACs, etc (glaring at iTunes)
download podcasts
not be ugly as sin (glaring at Amarok2)
be graphical (I’m a commandline junky, but not when it comes to playing music) (glaring at cmus)
be fast, and not randomly lock up (glaring at Amarok1.4)
run on *nix (glaring at [...]