You are here: Blogsphere Longtail
Keep up to date with your favourite Rails bloggers in context.
Results in the following:
once in a blue moon = 1.16699016 10-8 hertz
Can be tested here
organizing my new office to celebrate independents’ day.
@xentek bwaHAHAHAHAHAHAHAHA!!!…
стили в in_place_editor
Programblings » Blog Archive » The illustrated guide to recovering lost commits with Git
Frase da semana (passada)
Show Viacom how much we love them!
Today Openmoko released the first consumer phone running the Openmoko platform, called Neo FreeRunner. According to a post on Slashdot it’s only sold to people in the United States, so I wanted to see what happened if I tried to buy one.

I started out on the openmoko.com frontpage. There is a big green box inviting me to click on it, so I do that.

Nice, a picture and specifications on one page. That’s really helpful because those are the things I look for on a product page. Now I want to buy it, so I click ‘BUY IT NOW’.

Apparently ‘now’ is a relative term. My guess is that ordering one through a distributor near me is going to take longer, so I click ‘BUY FROM THE OPENMOKO STORE’.

Ok, another product page. I notice that the top navigation changed to ‘STORE/DIRECT’, so at least I made it into the store. I notice another ‘BUY IT NOW’ link, so I click that.

Huh, what’s this, another product page? I check the top navigation to make sure I’m still in the store. I guess I need to scroll down now.

Ah, finally, an ‘ADD TO CART’ link. That usually means we’re almost there.

Unfortunately the store seems to be broken. The website informs us that someone apparently forgot to pass the variant ID, what a bummer. Maybe I should try the search next time.
Voilà voilà, l'aventure Paris se termine pour de vrai (enfin pour ce qui est d'y vivre) ; les cartons sont prêts, direction Lille.
=== Attention, début de la page publicité : ===
Étant donné que nous remontons, notre appartement sera donc disponible à partir du 1er août.
Le loyer mensuel est de 577€ (mais l'agence ou le propriétaire l'augmentera sûrement un peu) auquel il faut rajouter un abonnement au gaz (pour l'eau chaude et les plaques de cuisson ~50€).
Concernant les transports le RER E est à 2km (joignable par la navette boissière ~10 minutes) et les métros 11 et 9 sont accessibles par le bus 129 à 1km (Station La Boissière, Fernand Lamaze).
Pour localiser l'appartement c'est là.
Quelques photos sont disponibles en pièce jointe dans ce fichier zip.
Si ça vous branche l'agence à contacter est ATM & Gaillard : 01 48 91 97 97
Sinon vous pouvez peut être en parler autour de vous :-)
Si vous avez une question précise, c'est par ici.
=== Fin de la page publicité (comme pour le service public). ===
PS : Si j'en parle c'est juste pour éviter de payer le préavis, je n'ai pas de commission de la part de l'agence.
Bozo actor dead at 83 - CNN.com
Ok - I've fallen off the Wagon on blogging again... been busy with work, and also been doing a lot of Gold Coast stuff. Sorry - I will try harder.
One of the things I have been involved with is Bar Camp Gold Coast - which is on TOMORROW! It's not to late to signup if you are still interested. We have lots of stuff happening, some giveaways and actually have some decent Internet for once! 38 people and counting signed up so far - if it's anything like Brisbane I'm sure we'll get quite a few extras. We ordered Pizza for 50 - so hope it's not too much more!
Reverse Graffiti
Edge Rails: Solução de bug no método rename_column
proxy: error reading status line from remote server
A few months ago, on Swirrl’s test server, we were seeing errors like this in the Apache error log, about once a day (normally when the server had been idle for a while – i.e. overnight)
proxy: error reading status line from remote server ...The (ruby on rails) application would be non-responsive, and the only way to get it going again would be to restart its mongrels.
After a bit of head-scratching and Googling, we realized that it was because we didn’t have the MySQL gem installed on that server. The mysql gem installs a Mysql API module for Ruby. It provides the same functions for Ruby programs that the MySQL C API provides for C programs.
(We also made a small change to our Apache config, but I don’t think that this made any difference.)
One small gotcha is that some of the ActiveRecord error messages produced with/without the MySQL gem are different, so if you’re doing any custom error handling (e.g. for database uniqueness violations etc), you might want to check this.
Recently I had been wondering what the complete list of HTTP status code symbols was in Rails. Searching through Rails didn't yield any results for a symbol like :unprocessable_entity. Digging around in the Rails source code I found the file actionpack/lib/action_controller/status_codes.rb, which has the mapping of the status code to the status message. Then Rails defines the symbol to status code mapping dynamically from the status message.
The symbol used is an underscored version of the status message with no spaces. A quick Ruby script yields the following mapping:
| Status Code | Status Message | Symbol |
|---|---|---|
| 100 | Continue | :continue |
| 101 | Switching Protocols | :switching_protocols |
| 102 | Processing | :processing |
| 200 | OK | :ok |
| 201 | Created | :created |
| 202 | Accepted | :accepted |
| 203 | Non-Authoritative Information | :non_authoritative_information |
| 204 | No Content | :no_content |
| 205 | Reset Content | :reset_content |
| 206 | Partial Content | :partial_content |
| 207 | Multi-Status | :multi_status |
| 226 | IM Used | :im_used |
| 300 | Multiple Choices | :multiple_choices |
| 301 | Moved Permanently | :moved_permanently |
| 302 | Found | :found |
| 303 | See Other | :see_other |
| 304 | Not Modified | :not_modified |
| 305 | Use Proxy | :use_proxy |
| 307 | Temporary Redirect | :temporary_redirect |
| 400 | Bad Request | :bad_request |
| 401 | Unauthorized | :unauthorized |
| 402 | Payment Required | :payment_required |
| 403 | Forbidden | :forbidden |
| 404 | Not Found | :not_found |
| 405 | Method Not Allowed | :method_not_allowed |
| 406 | Not Acceptable | :not_acceptable |
| 407 | Proxy Authentication Required | :proxy_authentication_required |
| 408 | Request Timeout | :request_timeout |
| 409 | Conflict | :conflict |
| 410 | Gone | :gone |
| 411 | Length Required | :length_required |
| 412 | Precondition Failed | :precondition_failed |
| 413 | Request Entity Too Large | :request_entity_too_large |
| 414 | Request-URI Too Long | :request_uri_too_long |
| 415 | Unsupported Media Type | :unsupported_media_type |
| 416 | Requested Range Not Satisfiable | :requested_range_not_satisfiable |
| 417 | Expectation Failed | :expectation_failed |
| 422 | Unprocessable Entity | :unprocessable_entity |
| 423 | Locked | :locked |
| 424 | Failed Dependency | :failed_dependency |
| 426 | Upgrade Required | :upgrade_required |
| 500 | Internal Server Error | :internal_server_error |
| 501 | Not Implemented | :not_implemented |
| 502 | Bad Gateway | :bad_gateway |
| 503 | Service Unavailable | :service_unavailable |
| 504 | Gateway Timeout | :gateway_timeout |
| 505 | HTTP Version Not Supported | :http_version_not_supported |
| 507 | Insufficient Storage | :insufficient_storage |
| 510 | Not Extended | :not_extended |
At reevoo, we rely heavily on open source software. As a part of this, we're all very keen on contributing back to the community, both in terms of cold, hard source code, and in sharing our experiences developing software
My colleague luke-redpath has just pushed our new reevoo-labs site live:

I'm looking forward to posting there about some of the issues we're grappling with at reevoo: how to test well, how testing affects refactoring, and trying to innovate on the web whilst still remaining commercially viable. Check it out.
"If you can’t explain it simply, you don’t understand it well enough."
It’s Rainham Sheds. davidthedesigner

Everyone digs
Rails Configuration: Yielding self in initializer
I've come across situations in Rails where you want to repeatedly invoke methods on some class with a long name and it gets ugly and tedious that you have to repeat the class name on every line. I just realized that unlike in the config/environments files the config object is not available in the config/initializer files. I use the AppConfig plugin to parameterize my application and I came up with the yield_self method to make my config/intializers/app_config.rb more readable:
# Method to supplement the app_config plugin. I want to crash early and be alerted if
# I have forgotten to define a parameter in an environment.
AppConfig.param(name) do
raise("No app_config param '' defined in environment , " +
"please define it in config/environments/.rb and restart the server")
end
end
yield self
end
end
AppConfig::Base.yield_self do |config|
config.site_name = "Simple Signup"
config.admin_email = '"Simple Signup" <info@simplesignup.se>'
config.exception_emails = %w(info@simplesignup.se)
config.email_prefix = "[]"
config.signup_timeout = 5
config.send_activate_email = false
config.transaction_fee = lambda do |price|
price.blank? ? 0.0 : [10.0, 5.0+0.035*price.to_f].max.round(2)
end
config.bank_fee = lambda do |price, card|
0.0
end
end
ExceptionNotifier.exception_recipients = config_param(:exception_emails)
ExceptionNotifier.sender_address = %{peter_marklund@fastmail.fm}
ExceptionNotifier.email_prefix = " ERROR: "
The method config_param might be more appropriately named app_config. That will be a refactoring for another day though.
Extensión de Firefox de Abbrr.com
1月28日,第15届(2006年度)全国新闻摄影作品评选活动所有奖项的提名都已产生,所有金银铜大奖都将从这些作品中选出,1月29日新闻发布会将公布获得大奖的名单。图为日常生活单幅提名作品《村里来了拆迁队》。
2006年4月7日,羊坊村工作人员带着大批联防队员前往下一个点拆除违章建筑。当天,丰台区花乡羊坊村村民王艳荣家100多平方米的花棚被当 作违章建筑强制推翻,而花乡2008奥运办公室工作人员则表示,清除违建主要针对在承包地上建房出租的行为,盖花棚不涉及土地使用性质改变,应协商解决。 京华时报 甄宏戈 摄
...
big flags
Innerleithen TT Series 2008 Round 1
Fed up of riding boring, non-technical courses? Then get yourself along to the Innerleithen TT Series!
The course is a spanker, climbs most of the way up the black before taking the shorcut across to the crop-circles. Then it’s round some of the old-school singletrack which I hadn’t ridden since a few years back with Pete Laing. After this, the fun really starts! Down the downhill pushup track (very gravelly), down The Tunnel, down New Luge, out onto the bottom of Old Luge. Then down The Deer Hunter, eventually finishing with the ski-jump into the arena.
I decided to ride there for the first round, a hugely sensible idea after 3 weeks off the bike. I blasted the climb, loving the slightly damp technical bits. Unfortunately, when I hit the old-school part, my right calve locked up, and I sat in the heather for a while waiting for it to ease off. It didn’t, so I had to suffer it for the descent (and most of the next day too). Was still loving the sheer awesomeness of the course.
Organised by Helen Findlay there are another four rounds, roughly the last Tuesday of the month for July, August, and September. Check the web-link at the top for more details.
Firefox Extensions - Set as Startup Page(s)
UDD - Bei jeder Iteration
Twitter Updates for 2008-07-03
Double fisting at the elbo room

Mac OS X problems upgrading from 10.5.3 to 10.5.4
links for 2008-07-04
Tell us what you think of the new BlogSphere feature. We are continually looking to improve and update the
functionality based on your feedback.

Find your next Ruby on Rails project or job.
Exclusive content,
regularly updated - onsite and tele-working positions listed.
Frighteningly intelligent, hilarious, and a good cook
-
S.Q, Ireland