Pacgem – Rubygems installer for Arch Linux

I created a pacman wrapper program which allows direct installation of rubygems. It is called pacgem and available in AUR.

The program does the following steps:

  1. Resolve gem dependencies
  2. Create PKGBUILD
  3. Generate package using makepkg
  4. Check package with namcap
  5. Optionally install package with sudo pacman -U

The generates package tries to do the best in fixing bad rubygem practices. It has a automatic detection for dynamic linking dependencies using `readelf`. Man pages are installed to /usr/share/man and the license file to /usr/share/licenses if the gem provides a custom license.

I would be interested in some feedback and testing. I tested it with ruby 1.9.2 and 1.8.7 and some ruby packages (haml, rack, unicorn). The goal is to get the package quality to an acceptable level (comparable to hand written PKGBUILD). There are nearly no complaints of namcap for the packages I tested.

Download-Links:

Was ist die richtige Linux-Distribution?

Ich habe den Eindruck, dass die Verbreitung von Linux immer weiter zu nimmt. Insbesondere trifft dies natürlich auf bestimmte Plattformen zu, wie z.B. Android im mobilen Sektor.  Allerdings möchten auch viele Leute Linux einmal auf ihrem normalen Rechner ausprobieren. Das erste Problem stellt sich immer schon in der Auswahl der Distribution. Ich versuche einmal einige Kriterien aufzustellen, die einem dabei helfen können. Viele anfängerfreundliche Distributionen bieten Live-CDs an mit denen man einen ersten Eindruck gewinnen kann. Mir fallen einige Kriterien ein, die einem bei der Auswahl helfen können.

  1. Rolling-Releases oder nicht
  2. Welcher Paketmanager
  3. Bleeding edge
  4. Quellcode-Pakete oder Binärdistribution
  5. Sicherheitspolicy
  6. Vorkonfiguration des Systems/Grafische Konfiguration

New template engine for Ruby: Slim!

If you are developing ruby web applications you have certainly heard of the template language Haml. When I first discovered haml I found it quite convenient compared to the default template language ERB. But still, Haml is ugly, especially the attribute syntax. Besides it wasn’t the fastest template language. But now there is an alternative, inspired by Haml and Jade: The Slim Template Language!

It is available on github http://github.com/stonean/slim and on the homepage http://slim-lang.com/.

Take a look!

doctype html
html
  head
    title Slim Examples
    meta name="keywords" content="template language"

  body
    h1 Markup examples
    #content.example1
      p Nest by indentation
      p
        a href=page_path(@page) Link to page

    = yield

    - unless items.empty?
      table
        - for item in items do
          tr.item
            td = item.name
            td = item.price
    - else
      p No items found

    #footer
      | Copyright © 2010 Andrew Stone

    = render partial: 'tracking_code'

Pretty self-explaining, isn’t it? Especially the attribute syntax is really slick, if you compare:

Slim:

        a href=page_path(@page) Link to page
        a href=page_path(@page) Link to page

Haml:

        %a{:href=>page_path(@page)} Link to page
        %a(href="#{page_path(@page)}") Link to page
        a href=page_path(@page) Link to page

Erb:

        <a href="<%=h page_path(@page) %>">Link to page</a>

Visit to the CERN

Last weekend I have been in Geneva with some fellow students from Karlsruhe. At the first evening we walked through Geneva which seems to be quite beautiful. Although being shocked by the exorbitant Swiss gastronomy prices we decided to try an original Swiss cheese fondue.

Geneva by Night

Btw. due to the high living costs the minimum salary for a physicsist at CERN is determined by the existence minimum. For a Ph.D. student in Karlsruhe who goes to CERN the university has to increase the salary…

The highlight was the visit at the CERN where we saw some control rooms and the Linac2 proton linear accelerator. The Linac2 provides the protons for the Super Proton Synchrotron which feeds the Large Hadron Collider.

Below you see the control room for the Compact Muon Solenoid Experiment (CMS) which is based on a general purpose detector. I was astonished that most of the control room frontends were “simple” webinterfaces which showed some graphics. But it is a really good idea because new workstations can be added very easily and the scientists can work from everywhere.

Main LHC status monitor (Live from the CERN server)

This is how the main LHC monitor looks like. It can be pulled live from the CERN server. The steps on the graph are the bunches currently injected in the accelerator ring, one curve for each direction.

Fotos

Vor ziemlich genau einem Jahr habe ich mir die digitale Spiegelreflexkamera Nikon D90 zugelegt. Einige Fotos mit mehr oder weniger hohem Kitschfaktor…