Tag: ruby

Here you can see a listing of all the posts tagged with ruby on this website.

  • BlogTalk 2006: Day 1 (pt.1) - Trip to Vienna

    Posted on Sept. 30, 2006 at 12:00 +0200 Tagged with , , , ,

    Long trips definitely suck, esp. when you're making them alone. Exactly for these occasions I absolutely love the battery in my little PowerBook 12": Nearly 4 hours if I treat it nicely and so I normally also take something to read with me on the trip ... on my Mac ;)

    Well, OK, in my train there were enough plugs in each area, so I could have also brightened the whole thing up and done some more compiling, but I guess esp. the latter on would have burned my Jeans.

    [more ...]

    0 comments

  • Ruby's website redesigned

    Posted on Sept. 12, 2006 at 17:01 +0200 Tagged with , ,

    Finally Ruby has now also a nice website. The whole site is now in my opinion much more usable with offering links in prominent positions to guides on how to find an use 3rd-party libraries, the documentation and so on.

    The site now also uses Ruby on Rails in the backend with a CMS that has been written in the process of creating that site and that has also been open source'd. Great work :D

    For more details, check out the announcement on ruby-lang.org.

    Via O'Reilly's Ruby channel

    [more ...]

    0 comments

  • Technorati's link cosmos on your site

    Posted on July 31, 2006 at 14:03 +0200 Tagged with , , ,

    Natalie Jost has a nice post about how to track who else is linking to your blog but also a question: "How to get this information out of Technorati?" The answer is a little bit more techie than it should have to be, but anyway:

    Technorati is offering an API for getting exactly this kind of information out of it. What do you need for that?

    1. An account on Technorati
    2. An API key which you can get here

    The last thing you need is a script that actually uses this API. How should it work? That absolutely depends on what you want. I personally prefer a small script that polls that data let's say once per day and stores the output inside of a PHP file that I could then simply integrate in whatever CMS I'm currently using.

    [more ...]

    0 comments

  • Batch-renaming MySQL tables

    Posted on June 25, 2006 at 20:18 +0200 Tagged with ,

    Ever felt the need to batch-rename quite a few tables in a MySQL database? Sadly phpMyAdmin doesn't offer renaming of all the tables in a specific database. So I first started renaming them manually using the commandline interface but got soon quite tired of the whole process.

    A quite ugly but IMO pragmatic workaround for this limitation is to build a small query file holding all the RENAME TABLE statements you want. To generate this query listing first of all get a list of all the tables you want to rename.

    [more ...]

    2 comments

  • Ruby HTTP Proxy snippet

    Posted on June 17, 2006 at 20:11 +0200 Tagged with , ,

    Just a small pattern is use all the time for writing HTTP requests that work

    [more ...]

    2 comments

  • Sometimes expire fields in cookies just suck

    Posted on June 11, 2006 at 00:30 +0200 Tagged with , , ,

    If you can read this, I just made my first blog post using my little commandline tool for blogging ;) But I can tell you, writing this was just a pain. Ok, not at first where I could rely on normal XMLRPC APIs like the metaWeblog API. But then I wanted to create new categories on the fly and this is exactly what none of the available APIs for WordPress seems to be able to do. The quite obvious solution for this is simply do a POST call on the wp-login.php to receive the cookies for an admin and then continue with creating categories this way.

    [more ...]

    2 comments

  • Ma.gnolia -> del.icio.us

    Posted on May 26, 2006 at 19:04 +0200 Tagged with , , ,

    ByeBye Ma.gnolia. It was a good start but that's all it was for me. I've now gone back to del.icio.us for my daily social bookmarking. For my taste the interface on Ma.gnolia is simply too cramped with adverticing and meta information which makes the whole site way too slow for normal use. Also the post-form's tag-autocompletion is in my opinion hardly usable.

    So now I'm back with the service that started it all and all I'm really missing is the group-feature which I wanted to use but no one wanted to join me ;) OK, for example the ruby-group is nice, but you can do the same thing with tags.

    So yesterday I wrote a small script to first of all give me a list of all the bookmarks that I had in my Ma.gnolia repository but that were missing on del.icio.us. I won't post the script here for now because I guess it was quite close to the terms of use for the del.icio.us API. I throttled it down to one call every 2 seconds but anyway :)

    So I will just post some problems I came across that are all basically difference between the export file of del.icio.us and the one of Ma.gnolia.

    [more ...]

    3 comments

  • Files not managed by Darcs

    Posted on May 22, 2006 at 18:51 +0200 Tagged with , ,

    Want to know what files are not included in a darcs repository? Well, me too :) From what I can tell, darcs itself doesn't offer something like that and if it does, it was at least a good excuse for some Ruby'ing ;)

    [more ...]

    0 comments

  • ActionMailer in standalone apps

    Posted on May 14, 2006 at 05:43 +0200 Tagged with , ,

    Today someone in #ruby-lang asked if you could use Rails' ActionMailer also in standalone ruby applications. That user left after a short time and the question stayed unanswered, although it is my opinion quite interesting :) So I started digging a little bit through the documentation and came up with a quite basic solution which actually holds no real suprises.

    [more ...]

    0 comments

  • Require to execute

    Posted on May 9, 2006 at 04:44 +0200 Tagged with ,

    Have you ever wondered, how it works, that by simply putting something like ...

    [more ...]

    0 comments