Page 10 of 31
Here is the proof that raise is slower than if
require 'benchmark'
n = 5000000
puts "convertions"
Benchmark.bm do |x|
x.report("rescues") { n.times do ; true rescue ''; end }
x.report("ifs") { n.times do ; raise '' if false; end }
end
The results
user system total realrescues 0.880000 0.000000 0.880000 ( 0.880214)ifs 0.790000 0.000000 0.790000 ( 0.791239)
You win 0.09 seconds per 5m requests.
If you serve one page for 0.20 sec you have to made apx 10m page views and you will have one free as a reward of using ifs
But did you win? How ugly is your code?
Nice! As I am maniac of uptime here is nice utility found at http://www.linuxjournal.com/content/tracking-server-uptimes
uptimed. It is similar to the utility that most of us have heard of, uptime, except that it runs as a daemon and logs the system’s uptime instead of just reading info that is lost on a reboot. Uptimed provides a secondary command called uprecords
Update after 14 years….
Now in 2025 I am not really obsessed of 100% uptime as there are other methods to be 99.99999% online.
Here is a tool exploiting the github website to make it work as a website uptime tracker.
It is free and works most of the time.
Here is how mine uptime page looks like: https://github.com/gudasoft/upptime
You are a Social Liberal (73% permissive) and an… Economic Moderate (41% permissive) You are best described as a: Democrat
Link: The Politics Test on OkCupid.com: Free Online Dating Also: The OkCupid Dating Persona Test |
If you have a lot of readings then Struct is the winner.
If you have equal read/write then Hash
And forget for OpenStruct
Here is why and how I benchmark all those methods
require 'benchmark'
n = 500000
puts "convertions"
Benchmark.bm do |x|
x.report("to_i") { n.times do ; "123456789".to_i; end }
x.report("to_s") { n.times do ; 1234567890.to_s; end }
x.report("to_sym") { n.times do ; 1234567890.to_sym; end }
end
user system total real
to_i 0.310000 0.000000 0.310000 ( 0.315844)
to_s 0.490000 0.000000 0.490000 ( 0.490607)
to_sym 0.170000 0.000000 0.170000 ( 0.171511)
Benchmark.bm(30) do |x|
x.report("string.to_i == number") { n.times do ; "123456789".to_i == 1234567890; end }
x.report("number.to_s == string") { n.times do ; 1234567890.to_s == '1234567890'; end }
x.report("string.to_sym == string.to_sym") { n.times do ; '1234567890'.to_sym == '1234567890'.to_sym; end }
x.report("num.to_sym == string.to_sym") { n.times do ; 1234567890.to_sym == '1234567890'.to_sym; end }
x.report("number.sym == number.sym") { n.times do ; 1234567890.to_sym == 1234567890.to_sym; end }
end
user system total real
string.to_i == number 0.400000 0.000000 0.400000 ( 0.401863)
number.to_s == string 0.740000 0.000000 0.740000 ( 0.744603)
string.to_sym == string.to_sym 0.560000 0.000000 0.560000 ( 0.574106)
num.to_sym == string.to_sym 0.460000 0.000000 0.460000 ( 0.459292)
number.sym == number.sym 0.400000 0.000000 0.400000 ( 0.399014)
Audio, Alps Touch pad and Video drivers are not installed properly for Windows 7 – Given by Lenovo.
I searched audio driver on realtek website and latest HD driver are working fine with windows 7.
I found toshiba alps touch pad driver and it is working fine. Scrolling is now working fine with touch pad.
framework/keywords - Google Results - Github Last Commit backbone rails mvc - 1,490,000 2432, 258 May 27, 2011 knockout rails mvc - 383,000 495, 66 May 22, 2011 spine rails mvc - 110,000 595, 32 about 14 hours ago jamal rails mvc - 77,500 12, 3 March 10, 2011 aframe rails mvc - 8,840 1, 1 about 15 hours ago
Some shortcuts
| Alt + F4 | Close window | |
| Alt + F5 | Maximize window | |
| Alt + F6 | Maximize vertically | |
| Alt + F7 | Maximize horizontally | |
| Alt + F8 | Hide window | |
| Alt + F9 | Shade window | |
| Alt + F10 | Stick window | |
| Alt + Tab | Cycle windows focus | |
| Ctrl + Shft + Alt + Arrow (up, down, left, or right) | Move window | |
| Shft + Alt + Arrow (up, down, left, or right) | Resize window | |
| Shft + Alt + Page_Up | Raise window | |
| Shft + Alt + Page_Down | Lower window | |
| Alt + F11 | Toggle fullscreen | |
| Ctrl + Alt + Arrow right arrow | Next workspace | |
| Ctrl + Alt + Arrow left | Previous workspace | |
| Alt + Insert | Add a workspace | |
| Alt + Delete | Delete a workspace | |
| Ctrl + F(N) | Go to workspace number N (1-9) | |
| Alt + Ctrl + Home|End | Move the window to previous|next workspace | |
| Alt + Ctrl + keypad key number N | Move a window to workspace number N (1-9) | |
| Alt + F1 | Start xfhelp4 | |
| Alt + F2 | Start xfrun4 | |
| Alt + Ctrl + Delete | Lock the screen | |
Just upgraded the ubuntu to 11.04 (Natty Narwhal) and what a surprise! I got MacOS look and feel.
Doing some research and I can’t believe Gnome3 has the same STUPID look as MacOS OMG!!!
What innovation you see at copying the same OS from MAC. I remember the days when the Linux desktop looks innovating and it was pleasure to work with so many options. Now everything is going the Apple way.
I felt depressed is there around at least one windows manager which is not influenced from Apple?
I hate Dock launchers – looks not innovating – it looks clumsy and old. Everything which is copied clumsy!
Gnome3 – you are going on the same path as Unity!
Windows7 – is 100 times better because it has its OWN LOOK AND FEEL – I’d rather work with windows7 than on a Gnome3/Unity. Blah!
The solution?
Xfce desktop is now closes to what Gnome was
© 2025 Ivo Bardarov
Theme by Anders Norén — Up ↑


