hoodwink.d enhanced
 

juretta.com

Log » Archive 2006 - (33 entries)

Ruby SequencedHash | December 29, 2006

Is there a pure-ruby ordered hash? I'm looking for something that will preserve the order in which key/value pairs were entered. Although one might argue that a Hash that preserves inserti...
@12:34 | Comments: 1 | Tags: Gems (3), Ruby (32)

Ruby WDDX Plugin | December 22, 2006

WDDX is an XML-based technology that enables the exchange of complex data between Web programming languages, creating what some refer to as 'Web syndicate networks'. WDDX consists of a language-in...
@19:28 | Comments: 0 | Tags: WDDX (2), XML (7)

Rspec Rails plugin | December 07, 2006

I'm using the very convenient RSpec Rails plugin. From the Rspec website: RSpec is a framework for practicing Behaviour Driven Development (BDD) in Ruby. You can find more information on...
@10:00 | Comments: 2 | Tags: Rails (28), Rspec (1)

RubyOSA - Ruby/AppleEvent Bridge | December 03, 2006

Get http://rubyosa.rubyforge.org/ if you are programming Ruby on Mac OS X! RubyOSA is a bridge that connects Ruby to the Apple Event Manager infrastructure. In other words, it allows you to...

Using Spamassassin with Rails ActionMailer | November 25, 2006

Running attachr.com for quite a while i noticed that the email service (you can send an email to save@attachr.com to save a code snippet) became target for spam mails. I decided to install spam...

Add generated Rails files to SVN | November 21, 2006

./script/generate model MediaFile --svn creates your model and test files. The generated files are automatically added to your Subversion repository (after commit). exists app/models/...
@17:51 | Comments: 0 | Tags: Rails (28)

Install Ruby 1.8.5 on Debian Sarge (3.1) | October 14, 2006

Unfortunately there is no easy way to install Ruby 1.8.(4|5) on Debian Sarge (stable). Here is how to install Ruby 1.8.5 on Debian Sarge stable: Add deb-src http://ftp.debian.org/debian/ u...
@18:59 | Comments: 4 | Tags: Debian (6)

Ruby: Installing Ruby MySQL driver on Intel Macs | October 13, 2006

Installing the native MySQL-Driver for Ruby on my MacBook Pro (Mac OS X 10.4.8) resulted in the following error after running sudo gem install mysql -- --with-mysql-dir=/usr/local/mysql. ...

Ruby Oneliner | September 15, 2006

@09:41 | Comments: 0 | Tags: Dropbox (35), Ruby (32)

Ruby 1.8.5 Released | August 27, 2006

Soon to be announced on ruby-lang.org: Ruby 1.8.5 is out. You can get it here: ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.8.5.tar.gz. Read the release note on ruby-talk mailing list. ...
@14:12 | Comments: 0 | Tags: Ruby (32)

Ruby: Contacting a timeserver | August 26, 2006

The TIME protocol is an internet protocol defined in http://www.faqs.org/rfcs/rfc868.html This script shows how to connect to an arbitrary TIME-Server using Ruby's Net::Telnet library. r...
@17:20 | Comments: 1

Profiling Your Applications with Eclipse Callisto | August 22, 2006

The latest release of Eclipse (Eclipse 3.2) comes with Callisto, a rich set of optional plugins for Eclipse 3.2. Callisto includes a powerful profiling tool called the Eclipse Test & Performance Too...
@08:31 | Comments: 0 | Tags: Eclipse (4), Java (11)

Java and MySQL on Mac OS X: "java.io.IOException: Unexpected end of input stream" | August 19, 2006

While trying to get Struts working with MySQL 5 on Mac OS X 10.4 i got the following exception: java.io.IOException: Unexpected end of input stream at com.mysql.jdbc.MysqlIO.readPacket(M...
@19:53 | Comments: 0 | Tags: Database (4), Mac (18)

Ruby: Net::Http and open-uri | August 13, 2006

Ruby has different libraries that provide higher-level access to network protocols such as FTP, HTTP or HTTPS. This article shows the usage of net::http, net::https, open-uri and the rio library...
@09:28 | Comments: 0 | Tags: Ruby (32)

Rails: Reload models in script/console | August 11, 2006

Dispatcher.reset_application! reloads your model while running script/console. stefan@www:~$ ./script/console Loading development environment. >> ... [...] >> Dispatcher.reset_application! ...
@19:29 | Comments: 1 | Tags: Rails (28), Snippets (3)

Convert Microsoft Word to Docbook XML using Ruby and OpenOffice | August 10, 2006

The following script shows how to convert Microsoft Word files to DocBook XML using OpenOffice on Windows. The batch script uses OLE (Object Linking and Embedding) to transform an unlimited number...
@18:11 | Comments: 4 | Tags: XML (7)

Rails 1.1.5: Mandatory security patch - UDPATE | August 10, 2006

This is a MANDATORY upgrade for anyone not running on a very recent edge (which isn't affected by this). If you have a public Rails site, you MUST upgrade to Rails 1.1.5. The security issue is sev...
@13:32 | Comments: 0 | Tags: Rails (28), Security (1)

New for Leopard: Time Machine | August 08, 2006

With Mac OS X Leopard and Time Machine, not only can you back up and preserve everything on your Mac - including priceless digital photos, music, movies, and documents - without lifting a finger, ...

Rails-Rdoc task fails on Windows | August 07, 2006

Using the most recent version of Rails the rdoc rake task fails on my windows test box. A quick and simple hack enables the rdoc task. Replace: Rake::RDocTask.new("appdoc") { ...

Enable svnserve using xinetd on Debian | July 09, 2006

Add svnserver to /etc/services: svnserve 3690/tcp # Subversion svnserve svnserve 3690/udp # Subversion svnserve Create the xinetd configuration file for svnserve (using svnadmin as the...

Capistrano: Hide SVN Files | July 07, 2006

Do you use Capistrano to deploy your Rails app? Capistrano uses subversion to deploy rails applications. Unfortunately this means that the hidden subversion directories (usually .svn) are acces...

Rename jpgs | June 11, 2006

@19:48 | Comments: 0 | Tags: Bash (5), Dropbox (35)

Restart lighttpd and Rails | May 16, 2006

Small shell script to restart lighttpd. The script kills all dispatch.fcgi processes and restarts the webserver.

Daedalus considered "verboten" | April 25, 2006

See: http://weblog.textdrive.com/article/185/happy-thanksgiving-daedalus-is-for-dinner, http://weblog.textdrive.com/article/178/fun and http://forum.textdrive.com/viewtopic.php?id=7081 for further information.
@18:10 | Comments: 0 | Tags: Rails (28), Server (14)

Freeze Rails | April 01, 2006

As soon as you deploy a rails app on the production server you should consider to "freeze" your Rails. That means to put the Rails framework in a subdirectory (vendor/rails) of your application.
@11:55 | Comments: 1 | Tags: Rails (28)

Gem remote search | March 29, 2006

How to search for a specific gem.
@15:38 | Comments: 0 | Tags: Gem (1), Ruby (32)

Download the Kleptones 24 Hours using Ruby | March 28, 2006

Go get http://www.kleptones.com/pages/downloads_24h.html! Due to the lack of working torrent files i wrote a nifty little ruby script to fetch all the mp3 files (works on OSX and RedHat, your mileage may vary). Just type "ruby download_kleptones.rb" and all the mp3 files are being downloaded into a "Kleptones_24hours" directory. See the kleptones blog for more information.
@16:29 | Comments: 1 | Tags: Ruby (32)

Rdoc UTF-8 | March 18, 2006

The "-c" or "--charset" option specifies the character set for the HTML output.
@00:20 | Comments: 0 | Tags: Dropbox (35), Ruby (32)

Java SimpleDateFormat: Don't forget to specify the locale | March 07, 2006

Assuming your current locale is non US the following piece of code will throw a ParseException: Unparseable date: "06-Mar-2006 12:35" SimpleDateFormat format = new SimpleDateFormat("dd-MMM-...
@11:57 | Comments: 0 | Tags: Dropbox (35), Java (11)

Converting an existing CVS repository to Subversion | January 15, 2006

Here is how to convert your existing CVS repositories to Subversion. Step 1: get cvs2svn Go to cvs2svn.tigris.org and download the package corresponding to the version of Subversion you a...
@18:27 | Comments: 0 | Tags: CVS (1), Subversion (9)

Shell sysadmin oneliner | January 15, 2006

Show memory usage: stefan@www:~$ free -m total used free shared buffers cached Mem: 6051 5998 53 0 586 2187 -...
@18:09 | Comments: 0 | Tags: Shell (2), Unix (14)

Rotate and resize images using Imagemagick | January 11, 2006

Let's assume that you have a bunch of images for which you want to create thumbnails. The thumbnails should be rotated 90 degrees counter clockwise (that is 270 degrees clockwise), scaled to a specific size and renamed from abc_large.png to abc_thumb.png.

IE 7 User Agent String | January 05, 2006

Mozilla/4.0 (compatible; MSIE 7.0b; Windows NT 6.0; .NET CLR 2.0.50215; SL Commerce Client v1.0; Tablet PC 2.0)
@11:39 | Comments: 0 | Tags: Webdev (9)

About

juretta.com is the personal workspace of Stefan Saasen. You can send him an email or read more about this site in the „About“ section.

Recent comment

On: “Attachr.com: OpenID support added

You need to kill this spam stuff!

posted about 1 year ago by entropie

Look!

Latest links  RSS  

More...