Testing webservices circa 2013

Back in 2009, our Leandro (a.k.a TatooKa) wrote an awesome post on how to use curl to do POSTs and other HTTP magic. Back then curl was the way to go when you wanted to do command line HTTP GET/POST/PUT. Nowadays there’s a simpler and more modern variation: httpie. To install on Ubuntu just do: […]

Read more »

Script to read Drupal Planet RSS

I was playing around and wanted to have a command line interface script to see the latest titles from Drupal Planet. I wipped this Python script to read and display the RSS feed. You need to install feedparser (in Ubuntu: $ sudo aptitude install python-feedparser). Here’s the code: import feedparser     def color(this_color, string): […]

Read more »

The ‘drush cc all’ syndrome

If you use drush and code modules/templates in Drupal you know the symptom: add a new template file, add a hook to your module, pretty much change a few things in your code and you issue a drush cc all ‘just in case’. Drupal has an extensive cache system which is your friend but unfortunately when […]

Read more »

ssh tunnel and a half

  As you all might know ssh is a very popular protocol used to connect to remote shells. I mostly use OpenSSH as a client (I think most of you to). SSH has a lot of cool options but in this post i’m going to write about how to use it to create a secure […]

Read more »

nice to meet you

Hace aproximadamente un año atras decidimos que en algún momento ibamos a arrancar con un nuevo emprendimiento, al cual bautizamos a modo de juego, lanubecita. El tiempo fue pasando y lanubecita se fue haciendo cada vez más real. La diferencia puntual entre lo que hacemos en easytech vs lanubecita es que en el primero hacemos […]

Read more »

Error reporting in PHP scripts

It often happens that you are trying to debug a PHP script running from command line or a part of your code and the script mysteriously dies. Depending on your server configuration (or command line) errors may be being silently being hidden. In those cases I recommend you add the following lines to your code […]

Read more »

A PHP Shell

We do a lot of development in PHP here at Easytech. Many times you need to test a bit of PHP code. If you played around with python you surely used the python shell. Fortunately the people at Facebook have created a similar shell for PHP (ironically written in python!). You can find it here: […]

Read more »

Exploding and imploding…

Very often when I review other peoples PHP code I come across an old problem: generating a list of comma separated values from a list of things. This happens often when you want to, say, write an SQL query with a WHERE field IN (a,b,c,…,x) and you have an array with a, b, etc. Another […]

Read more »
Stop SOPA!

SOPA breaks our internet freedom!
Any site can be shut down whether or not we've done anything wrong.

Stop SOPA!