sudo apt-get install python-setuptools
wget http://downloads.sourceforge.net/project/s3tools/s3cmd/1.5.0-alpha1/s3cmd-1.5.0-alpha1.tar.gz
tar xvfz s3cmd-1.5.0-alpha1.tar.gz
cd s3cmd-1.5.0-alpha1
python setup.py install
s3cmd --configure
NOTE: This post now lives (and kept up to date) on my blog: http://hakunin.com/rails3-load-paths
Do nothing. All files in this dir are eager loaded in production and lazy loaded in development by default.
NOTE: This post now lives (and kept up to date) on my blog: http://hakunin.com/rails3-load-paths
Do nothing. All files in this dir are eager loaded in production and lazy loaded in development by default.
By default, Rails applications build URLs based on the primary key -- the id
column from the database. Imagine we have a Person
model and associated controller. We have a person record for Bob Martin
that has id
number 6
. The URL for his show page would be:
/people/6
But, for aesthetic or SEO purposes, we want Bob's name in the URL. The last segment, the 6
here, is called the "slug". Let's look at a few ways to implement better slugs.
SOAP request: | |
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://v1_0.validation.ws.chief.blau.de/"> | |
<soapenv:Header/> | |
<soapenv:Body> | |
<v1:validateName> | |
<validationRequest> | |
<names> | |
<firstName>David</firstName> | |
<lastName>Hasselhoff</lastName> |
#!/usr/bin/env ruby | |
# | |
# Example Ruby CLI script to retrieve worker data from Workday | |
# Call on command line with worker id; prints worker name | |
# add "request" or "response" after worker id and prints the | |
# outgoing xml or received hash and exits. | |
# | |
# Using Savon version 2 for the SOAP client (2.11.2) | |
# | |
# Savon defaults to making the message tag the same as the operation name |
/// write to file | |
var txtFile = "c:/test.txt"; | |
var file = new File(txtFile); | |
var str = "My string of text"; | |
file.open("w"); // open file with write access | |
file.writeln("First line of text"); | |
file.writeln("Second line of text " + str); | |
file.write(str); | |
file.close(); |
["Africa/Algiers", "West Central Africa"], | |
["Africa/Cairo", "Cairo"], | |
["Africa/Casablanca", "Casablanca"], | |
["Africa/Harare", "Harare"], | |
["Africa/Johannesburg", "Pretoria"], | |
["Africa/Monrovia", "Monrovia"], | |
["Africa/Nairobi", "Nairobi"], | |
["America/Argentina/Buenos_Aires", "Buenos Aires"], | |
["America/Bogota", "Bogota"], | |
["America/Caracas", "Caracas"], |