+45 70 27 40 08

sales@meeho.net

— Archive for the ‘FreeBSD’ category:

» scp – copy a file via SSH from a remote server to your computer

Posted by Kasper Tidemann on Wednesday 17th of March 2010 09:13:50 AM

If you have SSH access to a UNIX/Linux based system somewhere and want to copy a file located on the server to your computer via SSH, you can use the scp command found in most UNIX/Linux systems, including Mac OS X.

Say you want to copy a file from the remote server to your own computer, a file called my_file.txt. In this case, you would issue the following command in your terminal:

scp your_login@addres.of.remote.server:my_file.txt .

This makes your computer connect to the server with the login you provide, and copy the my_file.txt file to the directory you are currently working (using the exact same file name locally on your computer, that’s why there is a dot in the end of the command).

0

Comment on this post

» Regarding “undefined method `quote_ident’ for PGconn:Class”

Posted by Kasper Tidemann on Monday 7th of December 2009 03:59:03 AM

If you are a Ruby on Rails developer, use PostgreSQL and receive the error

undefined method `quote_ident' for PGconn:Class

… when you have updated your rails to version >2.2, you can solve the above problem by 1) creating a new file in config/initializers with the name new_rails_defaults.rb, and 2) insert the following content:

def PGconn.quote_ident(name)
%("#{name}")
end

… so the file looks like this, thus making your rails application work again:

new_rails_defaults.rb med koden, her vist i TextMate.

new_rails_defaults.rb with the code shown in TextMate.

3

Comment on this post

 

+45 70 27 40 08
Open office hours

info@meeho.net

support@meeho.net

News from the Meeho!™ Blog:

02/14 2011 » Fixing the "NoMethodError: undefined method ‘to_sym' for false:FalseClass" error when working with I18n in Ruby on Rails

02/03 2011 » Soon to come: IMAP integration

01/27 2011 » Meeho!™ App version 1.0.3 is out!

01/26 2011 » Cool new iPad stand

We live at Diplomvej 381, 2800 Kgs. Lyngby, Denmark: