blog.depold.com |
Web programming to the rescue! A blog about Node.JS, JavaScript and Ruby on Rails! |
As I finished my first real Node.JS app last week, I was looking for a nice way to deploy the application easily to my server. I found a very long article using upstart and Spark, which I thought is way to complicated. I went on for another way and finally stopped at a project called nDistro, which is less a deployment tool but a handy one for getting dependencies work.
Read more
Due to my studies I’m currently working with the Amazon Services Elastic Compute Cloud (EC2) and the Simple Storage Service (S3).
I wanted to easyly duplicate a bucket on S3 but found no method to do so. So I just wrote a script in Ruby which just makes a copy of each key in a source bucket to a target bucket. At first I tried the script on my local machine but stopped that due to my slow internet connection. Soooo I went over to EC2 and started an instance, configured it and tadaa,.., got everything work.
Read more
I recently wanted to pass some parameters to my .js file just from the commandline using the node command. Because I didn’t found an answer on Google, but in a project on Github, I want to let you know how it works.
Read more
Today I found a very strange behavior of Ruby on Rails. I wanted to render a partial using the collection option. So far so normal. But: I needed the result to be wrapped with some stuff, so I found out, that you can just specify a layout! What I expected to get was something like:
Layout Layout LayoutRead more
<%= yield %> <—- this should be filled with my partial Layout Layout Layout
Hey folks! Today I wil take some time to get started with Node.JS and the Express framework. You are maybe interested in how to get this stuff run on Snow Leopard. You need to have XCode installed.
Read more
Due to my studies I’m currently working with Typo 3. I wanted to setup the CMS on my Snow Leopard based MacBook and ended in a bunch of warnings. Most of them informed about the use of deprecated function calls. First I just thought: Well that’s not my business! BUT: Because warnings are passed to the browser just when they appear, PHP is not more able to redirect to another page using PHPs header function.
Read more
As you may have already noticed I’m looking for a possibility to write my blogposts with a desktop application. I just tested RapidWeaver which is a really cool tool, but where you have to pay for such silly stuff as a search function. 15 bucks I really know to use more senseful!
So I just spend my time surfing the net for some cool apps doing such things. On my way I found out, that TextMate also has a so-called blogging bundle. So I watched the screencast and decided to give it a try.
Read more
In my blog post from december 14th, 2009 I posted a way to create HashMaps on-the-fly: http://depold.tumblr.com/post/2069109153/hashmaps-on-the-fly
Today I just released a helper collection (currently only containing one helper :D) for Java-Stuff.
Read more
Da ich derzeit studienbedingt mit Java hantiere, fiel mir auf, was für ein Krampf das Erstellen von HashMaps in Java ist. Vom Durchiterieren sei an dieser Stelle noch gar nicht die Rede!
Da ich aus der JavaScript/Ruby-Welt komme und dort Hashes Gang und Gebe sind, war ich leicht schockiert :D
Read more
Wer zur Mitarbeit an einem Heroku Projekt eingeladen wird, muss entgegen der Anleitung auf http://docs.heroku.com/sharing zuvor noch einen zusätzlichen Schritt durchführen. Versucht man direkt einen Checkout des Projektes, schlägt dieser Vorgang fehl.
git clone -o heroku git@heroku.com:myapp.gitRead more
Initialized empty Git repository in /Users/user/Projects/myapp/.git/
Permission denied (publickey).
fatal: The remote end hung up unexpectedly