Chrome Flash Audio Issues on OSX

For the last 3-5 months I have been having issues hearing audio with Flash on Chrome. So many times I would go to YouTube, see the video and hear no sound. My solution at the time was to "force close" Chrome and reopen. I sent numerous bug reports and lurked in the Google Chrome forums to see what other people did to resolve similiar issues. None of that helped.


Today, I decided I had enough and determined to resolve this issue once and for all. I build software and there is no excuse for me just to settle on restarting Chrome just to hear audio. The solution seems pretty counter intuivate, espeically considering the work Google has done to isolate Chrome from Flash instability.


The solution is disable Chrome's Pepper Flash player and enable Adobe's Flash player. Yes, Google has gone to great lengths to make Chrome more stable and less dependent on external plugins.... but Pepper doesn't work on my laptops.


Here's a step by step howto:


  1. Go to chrome://plugins/
  2. Click the "+Details" to show all the details.
  3. Go to the "Adobe Flash Player section and disable the Pepper plugin.

Your settings should look something like this.Your settings should look something like this.

pmtools - a handy set of Perl module specific command line tools

I recently discovered a very useful set of Perl command line tools. I hope you find these as useful as I have.


pmall - show all installed versions and descs

pman - show a module's man page

pmcat - page through a module file

pmdesc - print out version and whatis description of perl modules

pmdirs - print out module directories

pmeth - show a Perl class's methods

pmexp - show a module's exports

pmfunc - cat out a function from a module

pminst - find modules whose names match this pattern

pmload - show what files a given module loads at compile time

pmls - long list the module path

pmpath - show full path to a perl module

pmvers - print out a module's version

podgrep - grep in pod sections only

podpath - print the path to the pod

pods - print out all pod paths

podtoc - show outline of pods


More info:



Debian/Ubuntu: aptitude install pmtools

RPM: peeps: yum install pmtools

Facebook Graph API: Profile Pictures in Alternate Sizes

Now you can get custom sized images from the Facebook graph api.




From the Facebook Blog:

In many cases, when displaying Facebook profile pictures, the image needs to fit into a specifically allotted space within the UI. Resizing and scaling the image can be a cumbersome process, often resulting in sub-optimal image quality.


This week, we released updates to our APIs to allow you to retrieve user's profile pictures in varying sizes. Alternate profile picture sizes can be queried via the Graph API and FQL.


To retrieve a profile picture in an alternate size via the Graph API, add the optional width and height fields as URL parameters:


This will return a HTTP 302 redirect to a profile picture with a minimum size of 121x100 while trying to preserve the aspect ratio. You can add the URL parameterredirect=false to retrieve just the URL to the pciture. If width=height then a square picture will always be returned.


You can also query for profile pictures of varying size using FQL:


SELECT url, real_width, real_height

FROM profile_pic

WHERE id=me()

AND width=121

AND height=100


Please see documentation for the Graph API User and Page objects, and the profile_pic for more information.

Komodo Open Remote File on Server with Public Key SCP on OSX

By default, Komodo does not work well with public key only SSH sessions. 


I was getting this error every time I tried to open a remote file on a specific server:

Remote SSH server does not allow password authentication. Allowed types are: 'publickey'


However passwordless SCP/SSH is supported using ssh-agent. Fortunately by default ssh-agent should be running on your OSX Machine.


Here's how to get it working:

  • Open up the terminal and type "ssh-agent" You should get output similiar to this: 

SSH_AUTH_SOCK=/tmp/ssh-bHP9MZhRQz/agent.5433; export SSH_AUTH_SOCK;


echo Agent pid 5434;

  • Now goto Komodo -> Preferences -> Enviroment and add the enviroment variables from your ssh-agent.


Example Environment SettingsExample Environment Settings


Now try and it should work. 

rvm ruby-1.9.3-p0 on OSX 10.6.8 ssl issues

I was getting a segmentation fault after upgrading to ruby 1.9.3 and Rails 3.2.0 and it was driving me crazy. 


/Users/cowholio4/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:799: [BUG] Segmentation fault


To fix this I rebuilt ruby with a specifield openssl directory. 


export PATH=/usr/bin:/bin:/usr/sbin:/sbin:$HOME/.rvm/bin # keep MacPorts out of PATH

rvm pkg install iconv

rvm pkg install openssl

rvm install  ruby-1.9.3-p0 --with-openssl-dir=~/.rvm/usr --with-iconv-dir=~/.rvm/usr

rvm ruby-1.9.3-p0 

ruby -ropenssl -e 'p"sha256")' # verify OpenSSL works


But that only got me so far. Next I was having issues with the ssl certificates.


OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed):


To fix this you need to download the certificates to the path you specified to RVM.


cd ~/.rvm/usr/ssl/

curl -O

mv cacert.pem cert.pem