archive

professional dilettante

February 2010

Multiple Sinatra Apps with Nginx and Thin on Webfaction

I’ve been working on a Sinatra app to serve as a web development portfolio. I decided it is time to put it online using my shared host, Webfaction. Here in this post, I’m not going to go over all the steps to set up a Sinatra app. You can find my tutorial on that here: [...]

Continue Reading »

GeoBlog app: Google Maps, Sinatra, Sqlite3, ActiveRecord, Webfaction, Nginx, Thin

For fun I had been working on Sinatra apps and experimenting with the Google Maps API. Worked out well that I needed to create a social “web 2.0″ application for school. So I adapted my Sinatra app to be a blog, and incorporated Geocoding and reverse Geocoding via the Google Maps JavaScript API. Currently, the [...]

Continue Reading »

Using PHP Variable Variables With Form Data

A nice technique I discovered last week, mostly because I am lazy. Typically when handling form data with PHP, you need to create variables one by one, plucking values out of the PHP superglobal associative array, $_POST. For each form field whose value you want to validate and store, we usually declare variables and assign [...]

Continue Reading »

Colorblind theme for Emacs

I’ve released an Emacs color theme that is easy on my colorblind eyes. It is up on github: http://github.com/zhannes/emacs-colorblind-theme. Small screenshot below, you can view the full Screenshot here. My theme is based on Oleg Shaldybin’s Railscasts color theme, a Textmate theme that he ported to Emacs. To use the colorblind theme, you need to [...]

Continue Reading »

Most Recent Post

posting data with curl from the command line

Before i forget, an easy way to test if you can connect to an external api is to use CURL on the command line. This nice as a sanity check/proof of concept to ensure you have the right token, proper field mappings, submitting the right data. This saves you from setting up a test form, [...]

Categories

Content © professional dilettante
Proudly powered by WordPress
Theme designed by Artisan Themes

Entries (RSS)
Comments (RSS)

19 queries.
0.351 seconds.