March 2009
25 posts
2 tags
Writing a novel is like driving a car at night. You can see as far as your...
– E.L. Doctorow
3 tags
Some Links to kill the time...
I was looking at tumblr of some dude, gosh I spent like 3 hours laughing at all the post this guy made. Here I leave you some of them to share the laughs.
http://mejorquenada.tumblr.com/post/79145735/peppernator-official-watchmen-condoms-for
http://mejorquenada.tumblr.com/post/86790105/yo-dawg-i-heard-you-like-kids-so-we-put-a-kid-in
http://mejorquenada.tumblr.com/post/84486472
...
2 tags
3 tags
Progress on the ROTS gem
I’m almost there to finish the goal of having an easy to use API to test OpenID Consumers. Some of the fallbacks have been the complex indirect communications between the OpenID consumer and the OP.
When trying to use a Rack mock request on the Server handler, with the URL of the consumer, an op_endpoint mismatch error is being thrown. I’m pulling my hair out just to find out where I...
4 tags
merb_cucumber as a bundled gem on Merb projects
So, after a long time I hadn’t pay any attention to merb_cucumber, when I came here, it was a little bit rough on the edges… so I helped to make it a little bit more clean.
The problem: I can’t make it work on my Merb project with bundled gems.
This are the steps to have a clean startup on a “merb-gen app” generated project:
1. Include dependencies
# On...
5 tags
Another pending solution to the merb_cucumber gem
Webrat made some updates on it’s gem, making unavailable the “response” method on the Webrat session, Now we have to update the results_steps.rb file replacing the “response” methods calls with “webrat_session.response”.
Very frustrating night for development… a lot of traps everywhere ¬¬.
4 tags
Sad realizations with the ROTS gem...
After trying my ROTS baby, I realized that it won’t work as I was expecting (duh)…
When doing a cucumber feature like the following:
Scenario: The user authenticates successfully with a valid OpenID credential for the first time
When I go to /
And I fill in "openid_url" with "http://localhost:1123/john.doe?openid.success=true"
And I press "Go"
Then I should see...
4 tags
bin/cucumber is not doing what it is supposed to...
So, in the previous post I was frustrated with merb_cucumber not working. After some digging on the mud, I found out that the binary of the gem is not being used at all (making it obsolete). I don’t mind that, if the cucumber’s gem does the job, it’s ok for me. However it seems the cucumber bin of the cucumber gem is not loading the gems!… this is really annoying.
I had to...
5 tags
A little bit pissed off
I don’t know why, merb_cucumber is not working out of the box when is on the project’s bundled gem!, I worked so hard for that to work, and it seems now that is not working at all? is it cucumber or merb who made some changes on the projects?…
A lot of frustration is running through my being right now, I will try to make a patch to fix that issue ¬¬.
4 tags
Issues with bundled gems on a Merb project
I don’t know why, but the first time I executed the thor merb:gem:install task, the bin/merb, bin/merb-gen and bin/rake executables didn’t install correctly.
After googling a couldn’t find the problem I was handling. Just to try I deleted the gems from the gems/gems folder, executed the thor merb:gem:redeploy task, and everything seemed to work as expected.
Weird.
3 tags
iTunes pissing off people like me.
So I wanted to buy some iPhone app’s from the iTunes store, but I didn’t want to use my credit card for that because it is from Venezuela and there could be some restrictions of the app’s I can use. For that reason, I bought an iTunes gift card.
What I find out is that, if you buy this piece of… plastic in Canada, you cannot buy the iPhone app’s. Only music or videos...
Developing for the Ruby Van presentation
Right now I’m doing some Merb implementations for the OpenID Consumer example, I was thinking of doing a quick generator for all the things I need, less time on the typing stuff and more time on the core of the presentation.
Altogether, I thought It was going to be simpler to implement (like really straightforward), right now I’m doing some thinking on the best way to implement X...
2 tags
3 tags
Github gems in merb
Haven’t you found any issues regarding the use of github gems on merb projects.
Sure you have!, the gem name is not the same as the library gem (normally you have the “username-” part bogging around). In order to make it work in merb, you have to use the option “:require_as” in the dependency call method.
Something like:
dependency "jchris-couchrest", :require_as...
Post-Receive Hooks in Github... AWESOME
I was developing some API wrapper for the pivotaltracker Web Service, and before creating the project, I checked if there was a project that already did that. I found a project called tracker_github_hook. I did not understand 100% what it did after reading carefully the README of the project. It seems github pushes you the changes it receives to it’s repo via a web service, this way you can...
Want to be a Project Manager? →
Very Enlightening.
3 tags
PayPal's exquisite taste...
After playing with the awesome gem ActiveMerchant (of course following the peepcode guide that I strongly recommend), I was trying to acquire a PayPal credential for the testing server. What a nightmare!.
The bottom line is, use the US PayPal test account… After trying with the Canadian one, I spent like 3 hours trying to look how to activate the test account. When I changed to an US test...
3 tags
Creating custom Spec Rake tasks
Normally I always finding myself looking at the rSpec rdoc’s files, just to check out how do I do to create my customs tasks for executing rSpec code.
In the first place, you will need to use the Spec::Rake::SpecTask class. This class receives some configuration directives on the constructor block method. The parameters of the constructor is the name of the task, followed by it’s...
3 tags
More vi/Vim facts
It seems the c and d command behave exactly the same, the only main difference is that the d command deletes the space after a word. Another main difference is that the c command puts you in insert mode after deleting the content, the d command doesn’t. The text with the c command is still being yanked
3 tags
Some quick thoughts about vim
Right now I’m on the replacing text commands, so far it has been:
the c (change) command. e.g c\d+(w|$|0|5l)
the C (Change until end of line) command. (which is eq. to c$)
the r (replace) command. e.g r\d+\w
the R (Replace mode) command. This is like the replace of the normal editors.
the s (substitute) command. e.g 3s (which is eq. to c3l)
the S (Substitue whole line) command.
I know...
2 tags
Heading to editor enlightment
Right now I’m trying to learn an editor that can be reliable on any platform I stand on (of course, MS Windows is not on that list), so right now I’m heading to the dark jungle of the vi/vim editor.
Thank god at least I have a good flashlight with me on this journey.
4 tags
it was not rSpec, it was Rails! :-@
It seems we misjudge the poor rSpec!…
The thing was that the rake spec invocation was calling the rake db:test:prepare task everytime (this loads to the database the schema.rb file) and Rails does not add the id attribute to the schema.rb (in our case, the id’s are not the default ones of the framework). After some googling we find out a really good solution to it.
4 tags
Bad rSpec!
We were trying to use a project with UUID’s as ID’s for the records, and rSpec doesn’t pay attention to the schema specified on the migrations, it just recreates the database over and over again; of course all the id’s attributes are being set to integer again, and specs don’t pass :-(…
We are going to try shoulda now…