Main

July 3, 2009

Deploying sites in seconds

Currently playing around with the private beta of the Smart Platform from Joyent - took less than 2 minutes to deploy their hello world app (apart from me getting a bit annoyed with git). Need to still work on getting git to not warn me about:

$ git push
warning: You did not specify any refspecs to push, and the current remote
warning: has not configured any push refspecs. The default action in this
warning: case is to push all matching refspecs, that is, all branches
warning: that exist both locally and remotely will be updated.  This may
warning: not necessarily be what you want to happen.
warning: 
warning: You can specify what action you want to take in this case, and
warning: avoid seeing this message again, by configuring 'push.default' to:
warning:   'nothing'  : Do not push anything
warning:   'matching' : Push all matching branches (default)
warning:   'tracking' : Push the current branch to whatever it is tracking
warning:   'current'  : Push the current branch
Everything up-to-date

A basically static site took a while longer as I misread a page in the documentation and then had files sitting in the incorrect location. One still needs a bootstrap.js file even if you intend on just serving up static files.

Seems like one needs to tell git to only attempt to push the currrent branch using the following command gets rid of the warning when using git push in future:

$ git config push.default current

December 6, 2007

Quad Core - Joyent's new podcast

I've been asking Kristie to prod Dave into releasing a new episode of ps pipe grep. Turns out they have now launched a new podcast (same old style as ps pipe grep) but called quad-core.

November 9, 2007

Ruby memory issue sorted with Bingo! upload.rb

I can't say how excited I am about finally having a answer to an issue that has been annoying me for a long time now since Johan Sørensen released his upload.rb script for uploading files to their BingoDisk.

Wow. 30 minutes of hacking on upload.rb after getting some pointers from Scott Barron, an ex-Joyeur. The problem with upload.rb is that reads the file to RAM prior to making the HTTP PUT request to the BingoDisk server. Basically Scott pointed me to an blog entry about streaming files to S3, which I've used and tweaked the net_auth_digest.rb to work with Ruby 1.8.6. Uploading a 250Mb zipfile and the RAM usage has dropped to around 20Mb:


jacques@nostromo:p3 ~
[1&] % ps -axuwww | grep upload
jacques 86896 0.1 0.9 20300 19428 p3 SN 3:33PM 0:01.83 ruby upload.rb *snipped* *snipped* sol-10-u4-ga-x86-v3-iso.zip

Code is available over @ bingodisk-0.0.1.tar.bz2.

December 5, 2006

ps pipe grep

ps pipe grep » surveying all the processes

The guys at Joyent, where this website resides with their TextDrive division, do a pod cast called "ps pipe grep", which I've been rather enjoying.

Basically it's Dave (youngobungo), Jason (the hoff) and Ben (benr) and they've been talking about everything from Mongrel, Apache, Amazon Web Services, Solaris, Joyent Core, SFTPDrive, virtualization, Sun Blackbox, and a truck load more things relating to how the web hosting industry has been changing over the years.

November 2, 2006

Interesting links from around the web

Some interesting links from around the web:

Are Lines of Code really a measure of either success, productivity or popularity?:

The title PHP Eats Rails for Breakfast and subtitle Despite the buzz around sexy new frameworks like Rails and Django, PHP is more dominant than ever initially commits the same fallacy that others have and that is to compare frameworks (Rails and Django) with programming languages. And then the suggestion becomes that one can interchangeably use Rails and Ruby, Django and Python.

Working Backwards:

In the fine grained services approach that we use at Amazon, services do not only represent a software structure but also the organizational structure. The services have a strong ownership model, which combined with the small team size is intended to make it very easy to innovate. In some sense you can see these services as small startups within the walls of a bigger company. Each of these services require a strong focus on who their customers are, regardless whether they are externally or internally. To ensure that a service meets the needs of the customer (and not more than that) we use a process called “Working Backwards” in which you start with your customer and work your way backwards until you get to the minimum set of technology requirements to satisfy what you try to achieve. The goal is to drive simplicity through a continuous, explicit customer focus.

ps | grep

The crazy three Joyent staff Dave, Jason and Ben have created a podcast called ps pipe grep.

Quite amusing the two "ads" which Dave did for South West Airlines and some other clothing shop.

Afrigator