My Articles
Programming
Simple Ruby Tip – Return Multiple Values
September 16, 2017

Return Multiple Values As many of you already know, everything in Ruby is an object so, when you create a method, it actually returns an object. What I want to show here is how to return multiple values (multiple objects) out of a Ruby function. Unfortunately Ruby does not support the returning of multiple objects, […]

Programming
How to Change Rails 4 Default Binding IP
January 28, 2017

Change Rails 4 default binding IP   A couple of days ago, while upgrading company’s platform from Rails 3.2.22.2 to Rails 4.2.7, I noticed that the default IP was bound to localhost.  I couldn’t then remotely access the application running on my development virtual machine. This is due to a change in Rack for security reasons, as […]

General

A nice article on Facebook Instant Articles: Publications can now push Instant Articles directly to Facebook from a favorite content management system (CMS).Without ever leaving a CMS like WordPress, Facebook is letting publishers push content directly to Facebook. It has also released the documentation to make that possible (spoiler: it’s a bunch of HTML5). Source: […]

Programming

Check system endianness using Ruby Hello folks, today I’d like to share with you a simple way to check the endianness of your system using Ruby and it’s based on the “pack” method in Ruby’s Array; pack simply represents the content of an array in a binary sequence according to a directive given to it as […]

Programming
Testing a Rails application
May 25, 2015

Testing a Rails application A personal approach Testing a Rails application is often seen as complicated task and, when I started working with Ruby on Rails, I didn’t have a lot of experience with  TDD (just a little bit using Java in another company, but that was not real TDD because first functions where developed […]

IPSEC Fortigate 110C and OS X
April 17, 2015

IPSEC Fortigate 110C and Macbook Pro A long ago I wrote a post about connecting Ubuntu to a Fortigate 110C using an IPSEC connection. After discovering the right way to do it, I happily used that method  until I changed my pc. When I bought my Macbook pro retina (late 2013) the first thing I did […]

Javascript Tip of the day
February 26, 2015

Javascript tip of the day Hello folks, I want to share with you my Javascript tip of the day. Have you ever wondered how to unselect a selected value in a dropdown lis using JQuery? Really simple: $("option:selected").prop("selected", false); Nice uh? Nice and simple! But wait, here is another Javascript tip of the day! What […]

General
Merging pdf files in one line
February 2, 2015

Merging pdf files into a single one   Merging pdf files has never been so simple using Ghostscript from command line in both Linux and OsX. Just open a console and type:   gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=<yourfile.pdf> <your_list_of_pdfs> This command will merge pdf files your_list_of_pdfs into a single file called yourfile.pdf. So easy, […]

1 2 3 5

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close