Approximity blog home
113 to 132 of 599 articles InfoSyndicate: full/short

puf - Parallel URL fetcher   31 Mar 06
[print link all ]
puf is a download tool for UNIX-like systems. You may use it to download single files or to mirror entire servers. It is similar to GNU wget (and has a partly compatible command line), but has the ability to do many downloads in parallel. This is very interesting, if you have a high-bandwidth internet connection.

On debian:

  apt-get install puf

puf is one of these great commandline tools that one simply loves!

Zebra tables: making nicer tables with CSS   07 Mar 06
[print link all ]
Thanks to Sven C. Koehler for the link. It explains how to make zebra tables without needing to apply a CSS class to each tr.

Must read: Bjarne Stroustrup Interview about C++   03 Mar 06
[print link all ]
hp.vector.co.jp/authors/VA000092/jokes/strup.html

Linkdump on CSS   02 Mar 06
[print link all ]
I asked Stefan for help on some CSS problems and here are the links that he recommended after fixing my problem:

www.dezwozhere.com/links.html

www.meyerweb.com/eric/writing.html

www.mezzoblue.com/zengarden/resources/

www.meyerweb.com/eric/css/edge/

Fun with Spotlight   01 Mar 06
[print link all ]
Thank to Sven C. Koehler for the following scripts. He uses spotlight to datamine the Enron email data :-).

# convertEnronEmail

 #!/usr/bin/perl -0p
 s/^M//gsm;
 ($date) = /^(Date: [^\n]+)/sm;
 ($from) = /^From:\s*([^\n]+)/sm;
 print "From $from @{[scalar localtime]}\n";
 s/\Z/\n/;

#enronEmailsForKeyword

 #! /bin/sh
 mdfind "kMDItemTextContent == '${1+"$@"}'" | grep /enron/

#enronGrep

 #! /bin/sh
 enronEmailsForKeyword ${1+"$@"} | xargs grep ${1+"$@"}

#enronMailBoxForKeyword

 #! /bin/sh
 enronEmailsForKeyword ${1+"$@"} | xargs -n+1 convertEnronEmail

#enronThreadForKeyword

 #! /bin/sh
 enronEmailsForKeyword ${1+"$@"} | xargs cat

TimeSummer: new logo and some new features   01 Mar 06
[print link all ]
I managed to work a bit this weekend on TimeSummer. Timesummer is a simple RoR timesheet application.

A big thanks to Andreas for the new logo.

The logo reminds me of the "Blub Blub Spinat advertisement by Verona Feldbusch", but you probably do not understand that joke if you are not German :-).

New features:

  • Simple Excel export
  • Simple adding of historic data
  • Simple editing of existing data

The focus right now is on bug fixing and improving the design before we continue to add more features.

As usual enjoy it and make sure you send me any feedback, esp. bugs and wishes.

Active RBAC   28 Feb 06
[print link all ]
ActiveRBAC is a library for Ruby On Rails that provides a full stack for managing users and permissions. It runs as a Rails Engine and can be set up within minutes for your existing Rails projects.

Timesummer - a simple RoR timesheet   24 Feb 06
[print link all ]
Timesummer is a simple timekeeping application. It was written to make our life as a single remote cowboy programmer easier. The client did not only want working code, but also reports how time was spent. As keeping an excel list or a simple text-file is too much work, we wrote this tiny application.

Getting started:

  • Get a free account.
  • You book your time on accounts. So setup tasks (accounts)

The general structure is client.project.task. The client might be IBM, the project might be XRT and the task might be design. Then you can add t asks like IBM.XRT.testing, which would mean a testing task.

This client.project.task structure has the advantage that it makes it easier to run more complex reports on the data. How much data we do for client X? How much did we do on project Y?

Here we create the client BMW with project RoR and task design. If the client already exists, only the project and the task are created. If the client and the project exist, only the task gets created.

You can add tasks only to existing client.project.task combinations, but by entering IBM.XRT.testing, you automatically create the client IBM, the project XRT and the task testing if they did not exist before.

Starting/Stopping task

Enough! Some people got work todo! OK, it’s as simple as a cd-player. Press the start and stop button.

Task not running

Task running

This client.project.task structure has the advantage that it makes it easier to run more complex reports on the data. How much data we do for client X? How much did we do on project Y?

Enjoy timesummer, and please use the forms on the site to send us feedback.

ANN Ruby GetText-Package-1.2.0   24 Feb 06
[print link all ]
Ruby-GetText-Package-1.2.0 is now available.
 Changes for RoR
 ---------------
 * Works with rjs templates.
 * Add methods to change the error message dialog(?) title/explanation.
 * Bugfixes.
 * Added GetText.Nn_().

rubyforge.org/projects/gettext/

View rendered source chart -- Firefox extension   23 Feb 06
[print link all ]
Jennifer Madden has released an amazing firefox extension:
  • Creates a Colorful Chart of a Webpage’s Rendered Source Code
  • Displays Source in its Altered State After the DOM has been Manipulated by JavaScript

Source charting …

  • Clearly Defines Nested Containers
  • Easy Way to Identify Structure and Hierarchy
  • Great Visual Aid Tool for Learning Environments
  • Intuitive and Efficient Way to Analize Source
  • Dramatically Enhances Your Debugging Capability

Book Review: Math You Can't Use   22 Feb 06
[print link all ]
A new book showing the madness of patents. Don’t forget that Fourier transformations are patented .. even though they were invented ny Jean-Baptiste-Joseph Fourier living 1768-1830.

Prototype cheatsheet   20 Feb 06
[print link all ]
Jonathan Snook has posted some nice cheat sheets/desktop backgrounds on Prototype 1.5.0_pre0.

ANN Switchtower 1.0   19 Feb 06
[print link all ]
SwitchTower is a utility that can execute commands in parallel on multiple servers. It allows you to define tasks, which can include commands that are executed on the servers. You can also define roles for your servers, and then specify that certain tasks apply only to certain roles.

Manual: manuals.rubyonrails.org/read/book/17

Project: rubyforge.org/projects/switchtower

Download: rubyforge.org/frs/?group_id=1014

Install: gem install switchtower

SwitchTower 1.0 fixes several bugs and adds many new features.

Using Selenium to test asynchronous calls   19 Feb 06
[print link all ]
Great read
 >Luckily, Selenium has a feature that is horribly documented: waitForValue,
 >which you can use in the test case directly, and waitForCondition,
 >callable in a JavaScript-based extension. Using a combination of these,
 >you can make your Ajax call and wait for any condition that should happen,
 >such as the DOM changing or values updating.

RoR workshop, Muenchen, April 12-14   17 Feb 06
[print link all ]
DE: Erfahrene Webentwickler erklaeren Ihnen in drei Tagen alles ueber Ruby on Rails. Bringen Sie einen Laptop mit und sammeln Sie unter Anleitung sofort Erfolgserlebnisse. Registriert schnell, denn wir haben nur 20 Plaetze bei 5 Trainern.

EN: In 3 intensive days, experienced web developers will teach you everything you need to know about Ruby On Rails. Bring your laptop along, and with guidance you will quickly enjoy the experience of super-productive web application development. Only 20 places are available, so book early to avoid disappointment.

Ruby on Rails Cheat Sheet   16 Feb 06
[print link all ]
Useful.

Debugging RJS   16 Feb 06
[print link all ]
I really love RJS, but sometimes it is great to see the generated Javascript. This blog entry by Lukemedia helps.

The Common Lisp Directory release 2 is online   13 Feb 06
[print link all ]
The Common Lisp Directory release 2 is here: www.cl-user.net It’s powered by LWL 4.4.6 on a Debian server.

Multilingual applications with RoR   12 Feb 06
[print link all ]
Globalize is a Ruby on Rails plugin designed to support multilingual applications. It’s under the MIT License, same as Ruby on Rails.

Globalize implements three basic types of translation:

  • Dates, currencies, etc: language dependant, but also (often) country/locale dependant. This feature provides convenient methods for relevant data types.
  • Content in the database, for specific fields in specific tables: once the translates method is added to the relevant model, the fields indicated with that method call gain the ability to have translated content sitting in the database. An operator (possibly the developer) will need to add these translated texts.
  • Arbitrary strings: any string that you would like, with added flexiblity for including parameters (for example: one in the singular form of a phrase and an actual number for the plural form)

Using these three mechanisms, all user-facing content ought to be translatable.

Gooogle Earth podcast   11 Feb 06
[print link all ]
Podcasts explainaing Google Earth.

 

Powered by Rublog