You are here: Blogsphere Longtail
Keep up to date with your favourite Rails bloggers in context.
Maybe there’s a place to make side bets. Will AAPL hit $200 or $150 first?
Today looks like the day to take profit on YHOO. Need to find some new action. 90% in cash right...
Nasceu minha sobrinha
Trouble with gem install ultraviolet on OSX Leopard?
It’s because you neet to install Oniguruma (a regex library). Macports is easiest:
sudo port install oniguruma5
If you need to compile manually, there are instructions out there.
Pré RailsCamp
A moins de 48h du RailsCamp, je suis en train de préparer une présentation (vous avez le sujet sur le wiki du RailsCamp) et je me disais que je pourrais vous faire participer à l’amélioration de celle-ci avec une simple question. Que vous évoque le terme “vues modulaires” ?
page de connexion
Bonjour,
Je commence a desesperer je n'arrive a rien :(
Je souhaite faire un formulaire de connexion simple .
Les utilisateurs existe deja dans ma table salarie(nom, login, pwd)
quand Quand je lance http://localhost:3000/login je tombe sur le formulaire. A sa validation,j'aimerai etre redirigé sur une autre page qui affiche bonjour e nom de l'utilisateur.
Quand je lance http://localhost:3000/login je tombe sur la page defini par index.rhtml et non sur le formulaire :'( si je clique sur le bouton retour j'ai cette erreur
You have a nil object when you didn't expect it!
The error occurred while evaluating nil.pwd
Merci de votre precieuse aide
voici mon code
mon controlleur login
class LoginController < ApplicationController
def index
end
Egy év távlatából
Észre sem vettem és eltelt egy év a lackac.hu blog életében. Az első bejegyzés tavaly április 29-én keletkezett. Azóta változtak picit a témák, gyakoribbak lettek a bejegyzések, és hát sok minden történt az egy év alatt.
Ebben a visszatekintő bejegyzésben összeválogattam, hogy nekem mi tetszett leginkább a korábbi posztok közül. Nem szempont a bejegyzések forradalmi jellege, még csak az írás minősége sem. Inkább az alapján válogattam, hogy milyen hatással volt rám.
Az egész a Kitchen Budapesttel indult. Kellett egy hely, ahova felrakom a pályázatomat, és amúgy is mocorgott bennem egy blog gondolata. A következő fél évet nagy mértékben meghatározta a KiBu. Olyan dolgokon dolgoztam ott, mint egy multitouch screen, amiről az első beválogatott bejegyzés is szól. Túl sok időm nem maradt Rubyra és Railsre, és bár több kibus projektben is használtam őket, nem ez volt sajnos a jellemző.
Tavaly december környékén kezdett elegem lenni a médiaművészesdiből és elkezdtem más irányba nézelődni. Ekkor indult be a hobbiprojekt gyártás is talán az egydélutános hat-or-not projekttel. Ez a projekt amúgy a későbbiekben kitűnő talajul szolgált mindenféle Rubys kísérletezésre, bár ezekből nem sok minden látszik. Ide tartozó infó, hogy az egészet lehet hogy újraírom pythonban, hogy legyen mivel Google AppEnginet tesztelnem.
Később építettem domain rss feedet egyik kedvenc ruby gememmel, és a tavaszi konferenciaszezont pedig egy online backchannel szolgáltatással indítottuk. Ehhez kapcsolódó hír, hogy a backchannellel kapcsolatban még nagy terveink vannak. Csak jusson idő rá.
Már nem is tudom hányszor váltottam ide-oda Safari és Firefox között. Talán a második Firefox 3 béta környékén ez újra megtörtént a tűzróka irányába, és végül ott is ragadtam. Az indok, hogy sokkal használhatóbb macen, mint elődei, és egyszerűen kiegészíthető új funkciókkal. Erre kicsit rá is kaptam és ennek hatására született több firefox extension is. A kedvencem ezek közül a rendszerüzenet küldözgetős, de nézzétek meg a többit is.
A gyakoribb posztolásnak és természetesen a twitter közösségnek köszönhetően a lackac.hu felkeltette “A”-listás blogger Angelday figyelmét is, minek következtében a blog megtapasztalt egy plastik effektet. A látogatási statisztikákat arra a pár napra szépen megdobta a plastik felől jövő forgalom, és jó látni, hogy az új látogatók nagy része megmaradt később is.
A kibus félév után már nagyon hiányzott az aktív webfejlesztés, úgyhogy tavaly év végén megkerestem egy régi francia ismerősömet, Etiennet, aki itt élt Budapesten, és korábban már ajánlott Rubys munkát. Végül becsatlakoztam pár projektjébe, amit a Woa csinál, és nagyon jó volt. Mivel ezt csak kvázi félállásban csináltam, azt kezdtem el tervezgetni, hogy alapítok céget, és bevállalok más közben kirajzolódni látszó projekteket is. El is indultam ennek rögösnek vélt útján, amiről az első cégalapítós bejegyzésben írtam. Később azt beszéltük meg Etiennenel, hogy mivel ő amúgy is meg akarja szüntetni a magyar cégét, és csak a franciát viszi tovább, én átvenném tőle a stafétabotot. Persze ez se lett volna sokkal egyszerűbb, mint egy cégalapítás, de legalább mindketten jobban jövünk ki.
Végül mégsem ezt az utat választottam, mivel kaptam egy jobb ajánlatot a Virgo Systemstől. Sokat töprengtem, hogy elfogadjam-e, de végül úgy döntöttem, hogy jelenleg ez a legjobb számomra. Aztán majd meglátjuk.
Szóval itt tartok most. Aki idáig elolvasta, annak köszönöm. A kommentekben szívesen látnám, hogy nektek melyik bejegyzések tetszettek leginkább, és javaslatokat is szívesen fogadok.
Google’s Web Development Encyclopedia
RE: Переход с php на ruby on rails
SWFUpload, Paperclip and Ruby on Rails
RE: RE: Переход с php на ruby on rails
Edge Rails: action_name
800 on Your Math SAT, Software Development and Bugs
Google Code Blog: Introducing Google Doctype
Google Doctype contains dozens of articles written by top Googlers on topics important to all web developers: security, performance, caching, DOM manipulation, CSS styling, and more. It contains over 8,000 lines of JavaScript code: Google's own battle-tested JavaScript library, released today under a liberal open source license. And it contains the beginnings of a test-driven reference of the open web: a reference of every element, every attribute, every DOM method, every CSS property, all backed up by test cases.
Swiss man soars above Alps with jet-powered wing - Yahoo! News
Doit-on tout tester ?
C’est Railway qui se la pose. Je trouve qu’il a plutôt raison, surtout pour les vues en fait. Vous en dites quoi ?
Kick-Off Elevator Pitch at next08
I’ve been playing with Amazon S3 and aws/s3 gem by Marcel Molina recently. I’ve got 2 major gripes as far as aws/s3 library is concerned:
1. It doesn’t handle European buckets (though there are plans to fix it) 2. The upload process breaks far too often with EOFError /sysread errors (at least for my threaded application). The reports about this problem abound here , here , here , here and here
yet it seems nobody’s found a definitive solution (apart from using persistent connections which didn’t work for my app).
I’ve been trying to use the library in production for the past 3 days and it’s been a nightmare: lots of “end of file reached”, timeout and other errors, you end up with hanging threads that eventually stop the whole app. Not the best experience I’ve had. My app is threaded which means I spawn threads and each thread tries to upload stuff to S3 simultaneously.
After 3 days of late night hacking and debugging I had my “Eureka” moment while sitting in a toilet. I have to admit that the toilet has been my definite, favourite place for “Eureka” moments for the past few years :)
I thought to myself: “There must be a shared resource somewhere inside the place where the code tries to send a file to S3 via the HTTP RESTful interface. Why don’t we introduce a mutex lock around the HTTP call ?”
So I did it and it solved 100% of the problems. Here’s the code, open up
aws/lib/aws/s3/connection.rb
and replace:
1 2 3 4 5 6 7 |
if persistent? http.start unless http.started? requester.call else http.start(&requester) end |
with:
1 2 3 4 5 6 7 8 9 |
SEMAPHORE.synchronize { if persistent? http.start unless http.started? requester.call else http.start(&requester) end } |
Define semaphore as:
1 2 |
SEMAPHORE = Mutex.new |
somewhere in your app (on the outside of the threaded code) like in your environment.rb if it’s a Rails app.
You also have to require ‘thread’.
I suspect a lot of the error reports come from people using threads but there’s no description on the aws/s3 website that the library is not thread safe. Hopefully it saves you some time and you don’t have to spend days trying to debug it. If it does please put your comment here. Thanks.
Git Magic
Découvert il y a quelques minutes grâce à github.com, Git Magic est une documentation pour Git assez bien fournie. Je vous conseille de la lire si vous voulez vous y mettre ou si vous vous y êtes mis mais que vous galérez encore un peu.
RE: Переход с php на ruby on rails
As much as I was initially hesitant, I truly enjoyed the last 4 months wearing a mustache as a covenant signifying my support of a great undertaking: taking a closed beta product and turning it into something available to the world. Earlier this evening, I had my mustache shaved by Ritch at Barber Lounge. Although I really do appreciate being able to see my upper lip again, I do miss my mustache, a shape shifter that took the form of a cuban smuggler, a regular goatee and biker handlebars.
Tomorrow I will post pictures, but until then:
Reputation, reputation, reputation! O, I have lost my reputation! I have lost the immortal part of myself, and what remains is bestial.
Rangers Riot-8992 (via James Lester)

Cubescape!
Cubescape is a nifty little toy made by Cameron Adams using jQuery. It’s your own 3D pixel world.
I liked it so much that I’ve recreated the Rails logo inside it. Yeah, it sucks, I know :)
Make something better!
Just dropped a redesign on subimage.com after four years of stagnation.
It was time for a change.
RE: Импорт контактов из MSN & AOL
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.
Go jake!
-
R.B, United States