category

professional dilettante

ruby

Padrino

Excited to mess around with Padrino, a web app framework built on top of Sinatra, and which comes with a built-in admin interface (“akin to Django”, the docs say). There have been a number of Sinatra bundles and plugins to make getting going with Sinatra faster, for doing the repetitive things like building CRUD apps. [...]

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 »

.bat Script for Setting Windows Path Environment Variables

I had an install of ruby from source on my USB WD Passport drive. Using the ruby install on my portable drive on multiple windows machines requires updating the Path environment variable to reflect the USB drive letter assigned by that particular machine to my drive. The drive letter could be different each time, depending [...]

Continue Reading »

Sinatra on Webfaction

So I got Sinatra running on my shared host, Webfaction. As I’ve said in past posts, I like working with Sinatra because it lets me write Ruby webapps without all the code required by larger libraries like Ruby on Rails. With Sinatra, I write more code and so it augments my Ruby learning and lets [...]

Continue Reading »

CSV to MySQL via ActiveRecord or Ruby MySQL Gem

Two scripts to use Ruby Hashes for working with CSV data and inserting results into a MySQL DB. For my purposes I didn’t want all my data from the CSV in a database, else I could have just imported a CSV using terminal or phpmyadmin, etc. Background: For a project, I get a bunch of [...]

Continue Reading »

Most Recent Post

create a file from content on your clipboard

You’re on github or something, reading code. You need to add some code to your project. You could: curl or wget the file URL clone the repo, extract single file, move it on file system create the file, open an editor, and paste in the content save as Here’s a terminal command I like. From [...]

Categories

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

Entries (RSS)
Comments (RSS)

27 queries.
0.609 seconds.