Adding organization repos to Travis-CI: Part I

It was a nice Friday, Porras and I were at the BeBanjOffice and  we were working on adding organization support to Travis-CI. First, we needed to find where the user repos were being fetch. Said and done, we found that travis is using the ServiceHookController to ask the server for repos (and to update them too, but … Read more Adding organization repos to Travis-CI: Part I

Transforming CSS selector to an XPath query


Warning: Illegal string offset 'language' in /homepages/11/d274290037/htdocs/serabe/wp-content/plugins/igsyntax-hiliter/classes/frontend.php on line 510

Warning: ksort() expects parameter 1 to be array, string given in /homepages/11/d274290037/htdocs/serabe/wp-content/plugins/igsyntax-hiliter/classes/frontend.php on line 513

So. Easy. < View plain text > code require ‘nokogiri’; Nokogiri::CSS.xpath_for(css_selector)

Writing your own JRuby extension. Part II: Creating your first class.

What’s the point of coding a JRuby extension if you don’t create classes? Well, I cannot think of any case, but if you find one, please, let me know. Do you remember Java’s classes hierarchy? If so, you’ll realize  that Java objects inherit from java.lang.Object by default but that is not actually what we need. … Read more Writing your own JRuby extension. Part II: Creating your first class.

Writing your own JRuby extension. First problem.

Maybe, when requiring your just created extension, you get a LoadError. If it is the first time you require it, it is quite likely that you have not followed JRuby requiring conventions. If you want to know how require works, you can find the best documentation ever about it in the comment before org.jruby.runtime.load.LoadService class. … Read more Writing your own JRuby extension. First problem.

Writing your own JRuby extension. Part I: BasicLibraryService.

Note: not code in this post, but you can see the code in Github. Follow the links! Writing a JRuby extension is very easy, but there are almost not post out there about it. As far as I know, there is only one, Ola’s. It is a really good tutorial indeed, but it lacks some … Read more Writing your own JRuby extension. Part I: BasicLibraryService.

If you are (un)happy with Ruby 1.8.7

There are two interesting topics in the Ruby Forum being discussed right now. Both opened by George Brown (the guy behind Prawn). They are: If you are happy with the direction of Ruby 1.8.7+, respond If you are unhappy with the direction of Ruby 1.8.7+, respond I’ve read every single message because backwards compatibility in … Read more If you are (un)happy with Ruby 1.8.7

RMagick4J 0.3.6

I am glad to announce a new version of rmagick4j. RMagick4J aims to implement the ImageMagick funcionality and the C portions of RMagick for make it works in JRuby. Current stable version: 0.3.6 Project URL: http://code.google.com/p/rmagick4j/ Installation: gem install rmagick4j Google Summer of Code project should be thanked for making this new release possible. In … Read more RMagick4J 0.3.6

Sustituyendo a las animadoras con Ruby en Mac.


Warning: Illegal string offset 'language' in /homepages/11/d274290037/htdocs/serabe/wp-content/plugins/igsyntax-hiliter/classes/frontend.php on line 510

Warning: ksort() expects parameter 1 to be array, string given in /homepages/11/d274290037/htdocs/serabe/wp-content/plugins/igsyntax-hiliter/classes/frontend.php on line 513

Warning: Illegal string offset 'language' in /homepages/11/d274290037/htdocs/serabe/wp-content/plugins/igsyntax-hiliter/classes/frontend.php on line 510

Warning: ksort() expects parameter 1 to be array, string given in /homepages/11/d274290037/htdocs/serabe/wp-content/plugins/igsyntax-hiliter/classes/frontend.php on line 513

Warning: Illegal string offset 'language' in /homepages/11/d274290037/htdocs/serabe/wp-content/plugins/igsyntax-hiliter/classes/frontend.php on line 510

Warning: ksort() expects parameter 1 to be array, string given in /homepages/11/d274290037/htdocs/serabe/wp-content/plugins/igsyntax-hiliter/classes/frontend.php on line 513

El título del post puede sonar raro, pero lo que voy a mostrar hoy es cómo conseguir tu propia animadora en Mac con Ruby. Lo que haremos será hacer que nuestro ordenador, con una orden como: ruby cheerleader.rb Serabe Nos muestre por pantalla: Dame una S Dame una E Dame una R Dame una A … Read more Sustituyendo a las animadoras con Ruby en Mac.

RMagick: Dibujar con patrones


Warning: Illegal string offset 'language' in /homepages/11/d274290037/htdocs/serabe/wp-content/plugins/igsyntax-hiliter/classes/frontend.php on line 510

Warning: ksort() expects parameter 1 to be array, string given in /homepages/11/d274290037/htdocs/serabe/wp-content/plugins/igsyntax-hiliter/classes/frontend.php on line 513

Warning: Illegal string offset 'language' in /homepages/11/d274290037/htdocs/serabe/wp-content/plugins/igsyntax-hiliter/classes/frontend.php on line 510

Warning: ksort() expects parameter 1 to be array, string given in /homepages/11/d274290037/htdocs/serabe/wp-content/plugins/igsyntax-hiliter/classes/frontend.php on line 513

Warning: Illegal string offset 'language' in /homepages/11/d274290037/htdocs/serabe/wp-content/plugins/igsyntax-hiliter/classes/frontend.php on line 510

Warning: ksort() expects parameter 1 to be array, string given in /homepages/11/d274290037/htdocs/serabe/wp-content/plugins/igsyntax-hiliter/classes/frontend.php on line 513

Una interesante cualidad de la clase Draw de RMagick es la posibilidad de definir patrones a través del método pattern. En primer lugar, lo básico: < View plain text > code require ‘rubygems’ require ‘RMagick’   include Magick Ahora definamos el patrón. Para ello, necesitamos cinco parámetros, el nombre, dos números que recomiendo ponerlos a … Read more RMagick: Dibujar con patrones