Digital Sanctum

software development, technology and other square topics

Archive for August, 2008

Open Source Project Hosting and Management

without comments

Some suggestions for open source hosting and project management sites and software:

  1. CodePlex (Microsoft)
  2. Freshmeat.net
  3. GForge
  4. GitHub
  5. Gitorious
  6. Google Code
  7. Launchpad
  8. Mozdev.org
  9. RubyForge
  10. Sourceforge
  11. Unfuddle

Written by Shane

August 29th, 2008 at 7:07 pm

Amazon EC2 vs SoftLayer vs Slicehost

with 3 comments

A while back I did a bit of research on how much it would cost to run a modest application on each of the following services:

  • Amazon EC2 - elastic compute cloud, provides resizable compute capacity in the cloud.
  • SoftLayer.com - cheaper alternative to Rackspace.com, various configurations of dedicated machines available.
  • Slicehost.com - “Built for developers”, VPS via Xen virtualization software and RAID 10 (or 1+0) disks.

Although the comparison isn’t exactly apples to apples, it still gives you a rough idea.

Feature Amazon EC2 Small Amazon EC2 Large SoftLayer Slicehost
RAM (GB) 1.7 7.5 2 2
Disk space (GB) 160 850 250 80
CPU Type 1.2 GHz Xenon 4×1.2GHZ 2.4 GHz Xenon n/a
Kernel 32 bit 64 bit 64 bit varies
Bandwidth (GB/month) 2000 2000 2000 800
CPU Cost (per month) $73.20 $292.80 $179.00 $140.00
Bandwidth Cost ($/month) $352.00 $352.00 $0.00 * $0.00 *
Total Monthly Cost $425.20 $644.80 $179.00 $140.00

* Bandwidth overage fees: SoftLayer charges $0.10/GB, Slicehost charges $0.30/GB

Written by Shane

August 29th, 2008 at 7:01 am

Posted in Virtualization

Ruby One-Liner: Download from FTP server through a proxy

without comments

If you need to download a file or view an http page source through a proxy, something like the following one-liner will help:

require 'open-uri'

open("somefile.zip","wb").write(open("ftp://username:password@host:port/remotefile.zip", :proxy=>"http://proxyhost:proxyport").read)

Written by Shane

August 21st, 2008 at 7:00 pm

SQL*Loader-704 Error

without comments

While using Oracle’s SQL Loader utility the other day, I ran into a subtlety which wasn’t obvious. Most of the documentation out there describes the userid param as just taking user/pass. But it actually can take the user/pass@SID form as well. If you get an exception message something like the following:

SQL*Loader-704: Internal error: ulconnect: OCIServerAttach [0]
ORA-12541: TNS:no listener

try qualifying your sqlldr command with .world:

so

sqlldr userid=user/pass@yourSID control=test.ctl

becomes

sqlldr userid=user/pass@yourSID.world control=test.ctl

Written by Shane

August 20th, 2008 at 9:33 pm