from: http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html
Prompt is control via a special shell variable. You need to set PS1, PS2, PS3 and PS4 variable. If set, the value is executed as a command prior to issuing each primary prompt.
PS1 – The value of this parameter is expanded (see PROMPTING below) and used as the primary prompt string. [...]
from: http://archives.postgresql.org/pgsql-admin/2005-08/msg00333.php
psql <any needed connection parameters> –quiet –no-align –field-separator ‘,’ –pset footer –output youroutputfile.csv –command <select …….> databasename
from: http://www.astrobetter.com/xterm-color/
As our eyes spend most of our days looking at the xTerminal (xTerm, xgTerm, uxTerm, or Terminal.app) any relief is always welcome. Unfortunately, the default for the xTerminal (or most applications) is black text on white background which means you are staring at white, i.e., light, most of the time. In addition, [...]
from: https://wincent.com/wiki/Showing_SQL_statements_in_the_Rails_console
if ENV['RAILS_ENV'] || Rails # Called after the irb session is initialized and Rails has been loaded IRB.conf[:IRB_RC] = Proc.new do logger = Logger.new(STDOUT) ActiveRecord::Base.logger = logger ActiveResource::Base.logger = logger end end
from: http://www.nickbartlett.com/wordpress/must-know-commands-for-selenium-ide/
Over the past couple weeks I’ve written 70 test cases with Selenium IDE. Since completing the project, I’ve gone back to the first 20 or so and improved them with new commands that I learned and are more reliable in certain situations. In general, when working with elements on a page, the [...]
from: http://jeffancel.com/blog/show-activerecord-sql-in-rails-3-console/2011/03
If you want to show sql in your console for Active Record, then you may have run across the past Rails Recipes book or similar formulas for Rails < v3.0. I just tweaked a formula I saw in that book to work with Rails 3 and here it is (This is designed to work [...]
-
Articles
- October 2012
- May 2012
- April 2012
- March 2012
- February 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
-
Meta