-
Posted on
Optimize Image Files from Your Terminal

In many times you may need to optimze rapidly a bunch of images at your hands. There are handy utilities that can help you reduce image sizes with simple commands in the terminal. The following lists some of these tools:
1. OptiPNG: Advanced PNG Optimizer:
Get it for Mac OS X:
brew install optipngFor Linux Ubuntu:
apt-get install optipngTo optimize an image, run:
optipng <img-name>.png -
Posted on
Fixing Sinatra UTF-8 issue in Tilt rendered templates

In the past week, I have been deploying a Sinatra app to AWS Elastic Beanstalk. In development environment, everything was working just fine, but when I published the application and tested it in production, I encountered a weird problem in one of the templates that was supposed to be supporting uft-8 text without any issues.
Symptoms
The error was appearing in one of the
.erbview files that contains atextareafield. When it is populated with a non English text at the server, the application crashes with 500 code. Here’s a fragment of the error stack trace: -
Posted on
Eloquent Ruby (Book Review)

Recently, I’ve read Oslen Russ’s “Eloquent Ruby” and it was delightful read overall.
The book has a considerable reputation among the community. It is divided into (4) units about Ruby foundations, and the software process practices.
Older
Newer