Archive for January, 2011
Welcome to Part II of how to SSH to a server using Ruby. In Part I of this article, we gave you a simple example of how to SSH to a server and run a command. The hostname, username, password, and the command to execute were hardcoded in the example. In this article, we will [...]
Click here to read the full post
January 20th, 2011 | Posted in Programming - Ruby/Rails | No Comments
Welcome to Part I of how to SSH to a Linux, Windows, etc. server using Ruby. This post will give you a complete code example to get you up and running right away! The code below will connect to the server specific and run the ls -al command. Be sure to change the values in [...]
Click here to read the full post
January 20th, 2011 | Posted in Programming - Ruby/Rails | No Comments
Livingsocial is offering an unbelievable deal today, Buy a $20 Amazon.com gift card for only $10!! For those that are unfamiliar, Livingsocial is a daily deal site similar to Groupon. I have purchased deals from them in the past, so they are definitely legit! Don’t miss out on this once-in-a-blue-moon opportunity! Link
Click here to read the full post
January 19th, 2011 | Posted in Deals & Bargains | No Comments
Have you ever gotten those pesky “This connection is untrusted” SSL certificate warnings in Firefox where you have to click on “Add Exception” to bypass the screen? Perhaps, you are trying to do some UI automation using Selenium or Watir and this message is getting in the way. Well, don’t waste anymore time looking for [...]
Click here to read the full post
January 12th, 2011 | Posted in Free Software, QA - Web | No Comments
Are you looking for a fast, easy, and free way to convert a PDF document to a plain-text .txt format? Luckily, there is a built-in program in most Linux distributions that can do this called pdftotext. To convert, simply do: pdftotext -layout filename.pdf filename.txt
Click here to read the full post
January 12th, 2011 | Posted in Linux/Unix | No Comments
Do you need an ultra fast way to create a large number of files in Linux? Perhaps, you are doing some load testing for an application and you need to create 1000 or even 1,000,000 files in the matter of seconds. Well, here is how to do it! There are two parts to creating these [...]
Click here to read the full post
January 12th, 2011 | Posted in Linux/Unix | 1 Comment
The Postgres pg_stat tables show a variety of statistical information regarding the database. In certain situations (such as after major updates to your application), you may want to clear out the gathered statistics and start from scratch. For instance, if you recently implemented numerous SQL query and indexing optimizations, and you want to see statistical [...]
Click here to read the full post
January 12th, 2011 | Posted in Databases | No Comments
If you are making modifications to the Postgres configuration file postgresql.conf (or similar), and you want to new settings to take effect without needing to restart the entire database, there are two ways to accomplish this. Option 1: From the command-line shell su – postgres /usr/bin/pg_ctl reload Option 2: Using SQL SELECT pg_reload_conf(); Using either [...]
Click here to read the full post
January 12th, 2011 | Posted in Databases | 2 Comments
Codeigniter 2.0, has not yet been officially released by Ellis Labs, but for a couple of months now, a stable version has been available to download. Follow these simple steps in order to do so! Visit the Codeigniter bitbucket (source code repository) site at https://bitbucket.org/ellislab/codeigniter/. Hover over the icon and choose .zip You will now [...]
Click here to read the full post
January 12th, 2011 | Posted in Free Software, Programming - PHP | No Comments