Archive

Archive for the ‘Software’ Category

JJ Singh’s Jewelry Store Goes Live!

February 18th, 2010

It’s been a busy few months, following the release of the stickers store we have launch a new Jewelry store for JJ Singh – JJ Singh Jewelry.

Let me know what you think!

Life at work, Software

New Stickers E-Commerce Website Launch

February 13th, 2010

We have just announced our new stickers store Wall2Wall Stickers.  Check it out, let me know what you think.  I would love to know if you see any glaring issues.

To date we have had modest traffic and a few purchases in only the first 3 days of making the site available – we’re optimistic about the site. We built it on the spree e-commerce platform and have made some fairly major changes, but all in all have been very happy with the platform and are very much looking forward to the latest from Spree Edge.

Life at work, Software

Webkit, Ruby and Gtk+

February 8th, 2010

The ruby bindings for Gnome are really nice.  I’m amazed at how easy this was.

Sure it’s not Chrome, but not bad for an embedded browser.  Oh and check out how simple this is:

require 'webkit'
win = Gtk::Window.new
wv = Gtk::WebKit::WebView.new
win.add(wv)
win.show_all
wv.open('http://www.google.com/')
Gtk.main

Try it out!    The bindings are on github.

Software

hex2rgb Javascript

January 14th, 2010

While experimenting with canvas tag today I needed a good way to take a hex value and convert it to RGBA. I went searching and found some solutions, but nothing that really seemed complete. I wanted a single function that didn’t call eval or pollute the environment with globals… Maybe I could have looked harder but here is what I came up with.

I know hex values don’t include the alpha value in rgba – this function gets you the RGB values so you can mix in the alpha value.

Update:
Duncan posted this solution that is much better than mine!

Software

Why I like Curb

December 19th, 2009

Here’s an example of why I really enjoy using curb. Curl::Multi.get interface is just so easy.

Software

High Availability with Unicorn Zero Down Time Deploys

December 17th, 2009

If you have not heard of unicorn and you actively develop ruby applications for the web. It is no doubt well worth your time to check it out. Github has a very good write up about unicorn that is definitely worth reading. Let me first show you this quick video of deploying to our yet to be released client site while sieging.

Read more…

Software

Sitemaps and Siege

December 17th, 2009

If you are like me and always want to test the performance of your sites before releasing them to the public eye and you have an interest in publishing sitemaps to google and friends. This handy ruby script might be just the thing for you.

Assuming you already have your sitemap.xml file, if not try googling

Next run the ruby script, given the sitemap.xml file as the first argument:

ruby sitemap-to-siege.rb sitemap.xml

That will create the urls.txt file.

Now run siege:
siege -c50 -t1M -f urls.txt

Note on mac you can install siege with
sudo port install siege
On redhat:
yum install siege
Or grab the source.

Software