doodle dabbles

a little nerdery for everyone

The Ruby Console’s help() command

without comments

I am writing this blog post offline on my flight to Austin via Atlanta. I am working on a Rails application and I needed to look at the different methods available for ruby Arrays. And I didn’t take an offline copy of the Rails or Ruby documentation. But I thought that perhaps Ruby would have something similar to Python’s dir() command, which is essentially a function in the python console that returns a list of possible functions and meta information for a given type.

Read the rest of this entry »

Written by Ashish

September 1st, 2008 at 4:11 pm

Posted in Uncategorized

Tagged with , ,

OpenSSL: The Gift that Keeps On Giving

without comments

OpenSSL is just a gem of a package. It is so incredibly powerful, and does just about anything you could imagine that a crypto library could do. I am admittedly just an amateur at using this library, but when debugging an SSL issue where a cert was not verifying for me, I discovered this command through Tha Googles: 

openssl s_client -connect www.logoworks.com:443 -showcerts

This shows you every step in which the SSL verification takes place, where the verification fails, etc. Really nifty.

Read the rest of this entry »

Written by Ashish

August 18th, 2008 at 4:42 pm

Posted in Uncategorized

Tagged with , , ,