Approximity blog home
170 to 189 of 599 articles InfoSyndicate: full/short

Project (Cartoon)   01 Dec 05
[print link all ]
Enjoy the super comic.

It’s truer than one thinks :-).

[ANN] Rabbit 0.3.0   30 Nov 05
[print link all ]
Kouhei Suto posted the announcement to ruby-talk.

Rabbit is a presentation tool. Rabbit uses RD format as slide source. We can make a slide from the following text:

  = Rabbit

  : subtitle
    Presentation with RD

  : author
    Kouhei Sutou

 = First Slide

  * Rabbit uses Ruby/GTK+
  * ...

 = Second Slide

Some screenshots

Rabbit includes a theme for lightning talk a.k.a. ‘Takahashi method’: pub.cozmixng.org/~gallery/kou/screenshot/rabbit/lightning%2Dtalk/

Rabbit supports m17n: pub.cozmixng.org/~gallery/kou/screenshot/rabbit/m17n/

Rabbit supports PS/PDF output: pub.cozmixng.org/~kou/archives/rabbit/

[ANN] Action Profiler 1.0.0   30 Nov 05
[print link all ]
Eric Hodel posted the announcement to the rails-ML.

Rubyforge

Action Profiler allows you to profile a single Rails action to determine what to optimize. You can use the Production Log Analyzer and action_grep to determine which actions you should profile and what arguments to use.

Information on the Production Log Analyzer can be found at:

rails-analyzer.rubyforge.org/pl_analyze

Action Profiler REQUIRES Ruby 1.8.3, even if you just use Ruby’s builtin profiler.

Action Profiler can use three profilers, Ruby’s builtin profiler class, Shugo Maeda’s Prof or Ryan Davis’ ZenProfile.

Shugo Maeda’s Prof: raa.ruby-lang.org/project/ruby-prof

Ryan Davis’ ZenProfile: rubyforge.org/frs/?group_id=712&release_id=2476

Gem Installation

 gem install action_profiler

The Google Box   30 Nov 05
[print link all ]
I found this on pbs.org.

How can I top last week’s prediction about Google’s shipping container data centers? By explaining a bit more about how the system came to be and how it will work.

In last week’s column I told how Google has been experimenting with portable data centers built in standard 40-foot shipping containers. The idea isn’t new and it isn’t even Google’s. As far as I can tell it came originally from Brewster Kahle of the Internet Archive, who wants to replicate the archive here and there around the world and figured that a shipping container filled with servers and disk drives might be the easiest way to do so. Not only is it truly plug-and-play, but it is also a heck of a lot cheaper from a bit-schlepping perspective. Carrying a petabyte data center by ship from California to Australia is the virtual equivalent of an OC-192 optical connection - the world’s most powerful SneakerNet.

DataVision bridge v.0.1   29 Nov 05
[print link all ]
Luke Galea posted this to the rails-ML.

I’ve just released a very early version of a bridge that allows Rails applications to run reports written by the java reporting tool DataVision.

DataVision supports ruby as a scripting language (via JRuby) so it seemed a good fit. I haven’t had a chance to get my head around releasing it as a gem, plugin, etc so right now it’s just a tar that you extract in the directory of the app you want to "reportify".

You can download and/or find out more at rdb.rubyforge.org

Enjoy!

Murphy's law: "Whatever can get done wrong, will get done wrong."   26 Nov 05
[print link all ]
Format comparison between ODF and MS XML.

There has been a lot of attention to the legal encumbrances in Microsoft’s new MS XML format. In this article we’ll look at the technical side, and try to show you how the design of these formats affect interoperability. After all, that is the purpose of open standards.

OpenDocument benefits from 5 years of development involving many experts from diverse backgrounds (Boeing, National Archives of Australia, Society for Biblical literature, etc.). It was written with the explicit purpose of being interoperable across different platforms. In contrast, MS XML has not gone through a peer-review process, and was written with only one product in mind. This difference shows in the design of the formats.

Groklaw link.

Adfinem RiskJobs   25 Nov 05
[print link all ]
We release Version 1 of the rails/Ajax app: RiskJobs. It’s written completely in rails. The user profiles get updated using Ajax.

RiskJobs is a German Headhunting website for the Risk Management domain. Applicants can fill out their profiles (tree structures) and companies can search: e.g. we need an operational risk expert with 3 years of experience that also knows X, Y and Z.

This adds one more app, the ever growing RealWorldUsage wiki page.

I live in the wrong country :-)   25 Nov 05
[print link all ]

Well, actually skiing is good, too .. but I need sun!

Excel   24 Nov 05
[print link all ]
A good site with tons of Excel related stuff.

Paul Graham on Web V2.0   24 Nov 05
[print link all ]
article

On Word   24 Nov 05
[print link all ]
.. from comp.lang.forth
 > Word is worse than a hog. It's a blabbermouth. I was once sent a business
 > proposal in Word format. I don't have Word, and Microsoft's free reader
 > was two versions old and never updated. To read the letter, I used a hex
 > editor, finding many interesting tidbits, including the printer on his
 > system, scraps of other documents to other people that indicated shady if
 > not criminal dealings, and the directory -- "Used Cars" -- that the letter
 > to me was composed in. I declined his offer to cooperate.
 >
 > Much of Word's bloat is "empty", but that means whatever was in RAM at
 > Store time.
 >
 > Jerry

Rails vs Seaside   23 Nov 05
[print link all ]
Marcus Denker posted this to squeak-ev:

Ive been playing with Avi Bryants continuation-based web framework Seaside, which is written in Smalltalk. Wow. Thats all I can say. After some recent work with Rails, I had come to admire the cleanliness of the frameworkeven if, on occasion, I had some complaints about short-cuts taken that need not be necessary. Compared to Seaside, Rails seems to me to be a jalopy. Dont get me wrong, its a seriously pimped out jalopy, but the easy with which one can build interactivity and modify it on the fly with Seaside is mind-blowing.

NB: Dont take this as a slam of Rails, as its not. Rails is brilliantfor what it is. It takes the historical model of page interaction and data storage to new heights of simplicity. It doesnt, however, change how you view the web. Seaside does. Whether you use it for your next project, or not, its worth looking at, going through the tutorials, and allowing your mind to conceive of a web that simply behaves more naturally.

blog.amber.org/2005/11/23/she-sells-seashells-by-the-seaside/

With Seaside Avi wrote sth. interesting: dabbledb.com/about/.

Evaluation: moving from Java to Ruby on Rails for the CenterNet rewrite   23 Nov 05
[print link all ]
Rick Bradley shares the document why they moved from Java to Rails. CenterNet is a big healthcare application.

The Swarm   23 Nov 05
[print link all ]

I fid finally read this bestseller. As a big fan of genetic algorithms and swarm particle intelligence I simply loved the idea of the smart Yrrs. A fascinating book about intelligent aliens living on the ground of the sea who have enough of us human beings polluting the world. Highly recommended 900 pages of fun

The beauty of breakpoints   22 Nov 05
[print link all ]
Normally I hate to debug apps — we are big fans of test first, but oh well, sometimes it can be very helpful. The danger starts when one wastes too much time debugging.

Even when using a IDE it can be very handy to get into a irb session at any moment.

You need to install ruby-breakpoints

 require 'breakpoint'
 ..
 if m==0
    puts "m is 0"
    pp xs
    puts ys.to_yaml
    breakpoint
 end
 ..

Useful:

  • use CTRL-D (Unix) or CTRL-Z (Windows) or exit to leave the breakpoint and continue running the program
  • use exit! to terminate the program from within a breakpoint
  • other interesting things to check out include: local_variables, instance_variables, caller, methods
  • just type the name of your variable to check its value
  • Note that you can enter any type of regular Ruby code into a breakpoint IRB shell. You can even hot patch your deployed code to fix a problem at run-time!

If you are developing a rails app, check out the wiki entry.

I take my break now. Off for yammie food.

Ron Jeffries article: Complex Scope   22 Nov 05
[print link all ]
In which we discover that our implementation is "totally wrong" and we have to rewrite everything. Or do we?

www.xprogramming.com/xpmag/xstComplexScope.htm

[ANN] ruby/audio 0.1.0   22 Nov 05
[print link all ]
  require 'audio/sndfile'

  Audio::Soundfile.open('chunky_bacon.wav') do |sf|
    sound = sf.readf_float(sf.frames)

    puts "Maximum amplitude: #{sound.abs.max}"

    sound.each_frame do |frame|
    # something cool
    end
  end
ruby/audio provides a convenience wrapper around NArray that will make all your friends jealous; but what will really make their heads explode is that you have ruby-way access to libsndfile [2]. Use with caution.
  1. hans.fugal.net/src/ruby-audio/
  2. www.mega-nerd.com/libsndfile/

Images of the $100 Laptop   18 Nov 05
[print link all ]
The $100 laptop snot yet in productio nwill not be available for sale. The laptops will only be distributed to schools directly through large government initiatives.

The MIT Media Lab has launched a new research initiative to develop a $100 laptopa technology that could revolutionize how we educate the world’s children. To achieve this goal, a new, non-profit association, One Laptop per Child (OLPC), has been created. The initiative was first announced by Nicholas Negroponte, Lab chairman and co-founder, at the World Economic Forum at Davos, Switzerland in January 2005.

This rugged laptop will be WiFi-enabled and have USB ports galore. Its current specifications are: 500MHz, 1GB, 1 Megapixel.

laptop.media.mit.edu/laptop-images.html

gem_server .. finding all your Ruby docs   18 Nov 05
[print link all ]
If you are using gems and want to access all the docu that gets installed with your gems, start gemserver and go to 127.0.0.1:8808 :-).

I was looking for the rails offline documentation. In the end I did run rake over the latest rails code, but hey, I could have saved a bit of time. Maybe one day I should start to RTFM.

Free eBook: God's Debris by Scott Adams   18 Nov 05
[print link all ]

Download.

Synopsis: Imagine that you meet a very old man who—you eventually realize—knows literally everything. Imagine that he explains for you the great mysteries of life—quantum physics, evolution, God, gravity, light, psychic phenomenon, and probability—in a way so simple, so novel, and so compelling that it all fits together and makes perfect sense. What does it feel like to suddenly understand everything? God’s Debris isn’t the final answer to the Big Questions. But it might be the most compelling vision of reality you will ever read. The thought experiment is this: Try to figure out what’s wrong with the old man’s explanation of reality. Share the book with your smart friends then discuss it later while enjoying a beverage.

Scott Adams made it free to boost his hard to market book. I have not yet read it, but heard good reports.

 

Powered by Rublog