Dropbox Does Not Sync (Solved for Linux)

May 4, 2012

I uploaded files from my home (Linux) computer to Dropbox but could not access those files from my (Linux) laptop.  I was using the same distro (Fedora Core) for both computers with the same versions of Dropbox.  I was frustrated to say the least.  Fortunately I found the answer to my problem - courtesy of Fixing Dropbox Will Not Sync.

It seems the issue is permissions.  The author of the blog post included a script to fix the issue.  I used his script with a small alteration...  I removed the sudo parts of his chown and chmod commands.  Here is my ...

Short url : http://bit.ly/L8EF1w

Parameter Order in PHP's Built-In Functions

May 19, 2011

There does seem to be a "method to the madness" in the parameter order of PHP's built-in functions. 

For array functions the order is (needle, haystack).

For string functions, the order is (haystack, needle).

Array Function Example (needle, haystack):

array_key_exists( mixed $key , array $search )

String Function Example (haystack, needle):

stripos ( string $haystack , string $needle [, int $offset = 0 ] )

Short url : http://bit.ly/jRM19q

Painlessly Remove All Ruby Gems

Jan. 14, 2009

I noticed a lot of people searching for a way to delete all installed ruby gems and finding my Painless Cleanup of Ruby Gems With Similar Names page. I added this page for those of you who want to delete all installed gems instead of just cleaning them up.

Listing all gems is easy: gem list

OK, we can list our gems, but how do we delete them all? My list looks something like this:

abstract (1.0.0)
actionmailer (2.2.2, 2.1.2, 2.1.1, 2.1.0, 2.0.2, 1.3.6)
actionpack (2 ...

Short url : http://bit.ly/lXgr3v

Painless Cleanup of Ruby Gems With Similar Names

Dec. 18, 2008

I have been riding the bleeding edge of Merb and Datamapper for about seven or eight months. Whenever the source was updated at Github , I would pull in the changes, rebuild, then reinstall the gems. There was a time when the Merb and Datamapper contributors were bumping versions regularly and I was having problems with versions interfering with each other. I wanted only the latest and greatest gems installed.

Luckily Merb gems all start with ‘merb’ and Datamapper gems all start with ‘dm’. All I needed to do was write a shell command which lists all gems beginning with ‘merb ...

Short url : http://bit.ly/mkbmu0

Keyboard Not Working in KDE

Dec. 4, 2008

Today I ran into an issue where my keyboard stopped working in KDE (Fedora Core 10, KDE 4.1). I just updated some rpm’s which included the xorg ati drivers and thought that might have been the problem. I logged out of KDE and into XFCE where the keyboard worked fine… doh!

I googled and discovered the problem was in my ~/.kde/share/config/kaccessrc file. The SlowKeys attribute was set to true (SlowKeys=true). I set the attribute to false (SlowKeys=false) and all is well once again.

I set the SlowKeys attribute to true when I was ...

Short url : http://bit.ly/lbDjCx