Approximity blog home
756 to 765 of 909 articles

Getting Started With ExeRb   25 Sep 04
[print link all ]
(Source: Rubygarden) Exerb is one way how to generate .exe from Ruby scripts. www.rubygarden.org/ruby?GettingStartedWithExeRb

Skype for Linux is out   25 Sep 04
[print link all ]

Skype is a good VoIP program, that also does conference calls amongst several people reasonably well. It helps me cut down my phone bill :-). skype

Outed: Skype project to dial real phone numbers   25 Sep 04
[print link all ]
(Source: Register) I just spent nearly ten minutes on the phone to Paris, at a cost of about 10 pence. Using Skype, dialling a Paris landline number, that is.

story

RubyGems, the apt-get for ruby   25 Sep 04
[print link all ]

Why do I love Debian? Coz of the package management system. Now Ruby has the same nice feature, called RubyGems

Install:

ruby install.rb
See what is available:
gem --remote --list
Search for the string Doom in descriptions:
gem --remote --search Doom
Install progressbar:
gem --remote --install progressbar

Now relax, have a good milkshake in the sun. A big big thanks to the developers: Rich Kilmer, Chad Fowler, David Black, Paul Brannan, Jim Weirch, Curt Hibbs, Gavin Sinclair, etc.

Using the right hammer ..   25 Sep 04
[print link all ]
(Source: Robert Martin (UncleBob) in the pragprog-list) As a contractor you must do the best job you can for your client. This includes picking the best language for the situation. I agree that there are situations in which Ruby might be the best technical solution, but the worst political solution. In that case, you cannot use Ruby — you must use a technically inferior, but politically preferable language. There are other situations — more and more of them — in which Ruby is politically acceptable, and technically superior.

Symbian founder on mobile past, present and future   25 Sep 04
[print link all ]
Nice interview on The Register.
 So what innovation and what services do you think we are going to see?

 Ask yourself, what are people going to with all their pictures in the future?
 What are they going to do? Is writing to CD-ROM really safe? Sorry -
 it's gone in a few years. Are people going to do a 3-stage offering, or
 make one of their copies in an alternative geographical location?
 Nobody does that.

 With digital you can do things better; for a really simple straight forward
 things.

 No one has designed architecture for the home. We've got Wi-Fi and broadband
 and Bluetooth but there's no way to put it all together.

 So who, then? We've seen that even with the best intentions Wintel can't do
 a good job. It has to come from the consumer electronics people;

 ...

 What would you do differently, if you had your time as CEO again?

 We wouldn't have spent time on user interfaces. We'd have left that
 much earlier. [In 2001, Symbian left the business of designing UIs to its
 licensees, with the exception of UIQ, which remains part of the company].
 Everyone was keen to share and we tried hard for two years, but it was never
 going to happen. Everything about those companies [phone OEMs] is based
 in their own UIs. So that was two years wasted.

 In hindsight we came to the right view; but we never learnt that lesson.
 There were other things people were keen for us to get into early, for
 example WAP. We could never have NOT done it, but I had a pretty good
 feeling it wasn't going to be worth it. But I wasn't the customers.
 So it has to go back to being vertically integrated; you have to tackle
 the product offering yourself. You start doing something vertically
 because you can't work with everybody. So somebody has to break through,
 starting with a niche.

The dark side of computing: floating point arithmetic   25 Sep 04
[print link all ]
I saw this post on ruby-talk: raise "false" if ((625.91 + 900.00 + 22.00) != 1547.91) And yes, of course it raises the exception in ruby or in C. Guy Decoux (as always) answered quickly:
 svg% ruby -e 'p  "%.24f" % (625.91 + 900.00 + 22.00)'
 "1547.909999999999854480847716"
 svg%

 svg% ruby -e 'p  "%.24f" % 1547.91'
 "1547.910000000000081854523160"
 svg%

Dave Thomas explained: It’s about 40 years old, and unlikely to be fixed. Floating point numbers are not represented exactly inside computers, and so floating point comparisons are routinely deprecated in books on programming. Certain values cannot ever be expressed in floating point representation. If you want exact, fractional, math, you should probably use the ‘rational’ library and investigate ‘mathn’. This is the classic article to read link What Every Computer Scientist Should Know About Floating-Point Arithmetic.

Michael Neumann added: In Ruby you can use BigDecimal:

 require 'bigdecimal'
 BigDecimal.new("625.91") + 900 + 22 == BigDecimal.new("1547.91") # => true

What's Shiny and New in Ruby 1.8.0?   25 Sep 04
[print link all ]
why has produced a must_read summary about new features in Ruby 1.8.0. whytheluckystiff.net/articles/2003/08/04/rubyOneEightOh

ObjectGraph: a Ruby class inheritance hierarchy graph   25 Sep 04
[print link all ]
(Source: Mehr, Assaph, ruby-ML) A simple script that generates a graph of the ruby class hierarchy. The script relies on graphviz for generation of the PNG and HTML map files. Take a look at the basic Ruby class hierarchy on the project web site: link

Can You Learn YAML in Five Minutes?   25 Sep 04
[print link all ]

Source: _why, yaml.freepan.org) YAML is extremely simple to learn. The basics are extraordinarily simple. You may even find that you have unintentionally used YAML syntax when building lists or simple file formats.

It also helps if you have experience with any agile language (such as Ruby, Python, Perl or PHP). YAML was designed to suit these languages well and borrows a few basic ideas from them.

And look at the clock before you start. Jot the time down and we'll see how fast you are. [http://yaml.freepan.org/index.cgi?YamlInFiveMinutes]

 

powered by RubLog
756 to 765 of 909 articles Syndicate: full/short