h1

Switch to Mac

Mai 9, 2009

Vor einer Woche habe auch ich den Schritt zu Apple gewagt und mir ein “generalüberholtes” MacBook geleistet.

Im Moment bin ich noch am einrichten / konfigurieren / Programme suchen, aber alles in allem ist es doch schön eine voll funktionsfähige Konsole zur Verfügung zu haben und den komfort einer schönen Oberfläche.

Allen Rails Entwicklern sei der folgende Artikel ans Herz gelegt:
http://giantrobots.thoughtbot.com/2009/3/30/2009-rubyist-guide-mac-os-x-development-environment

(Achtung: MySQL auch wirklich in der 32 Bit Version installieren!)

Als IDE empfehle ich Netbeans in der Version 6.7, auch wenn sich diese noch im Beta Stadium befindet.

So, und nun begebe ich mich noch auf die Suche nach einem einfachen Bildbearbeitungsprogramm ;-)

h1

CentOS and mod_rails – failed to map segment from shared object: Permission denied

April 6, 2009

After some playing with VirtualBox and CentOS i try to install mod_rails, all in all no big deal, but if i try to start / restart httpd service i got:

Stopping httpd: [FAILED]
Starting httpd: httpd: Syntax error on line 1of /etc/httpd/conf/
rails.conf: Cannot load /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/
passenger-2.1.2/ext/apache2/mod_passenger.so into server: /opt/ruby-
enterprise/lib/ruby/gems/1.8/gems/passenger-2.1.2/ext/apache2/
mod_passenger.so: failed to map segment from shared object: Permission
denied [FAILED]

Solution:
Disable SELinux, or have a closer look to the docs.

h1

sortable_element with table

März 24, 2009

<table class="listing">
<thead>
<tr>
<th></th>
<th></th>
</tr>
</thead>
<tbody id="project_versions">
<% for item in project_versions %>
  <% content_tag_for(:tr, item) do %>
<td class="drag_handle">[drag]</td>
<td><%= h item.name -%></span>
  <% end %>
<% end %>

 <%= sortable_element('project_versions', :url => {:controller => 'project', :action => 'sort_project_version'}, :handle => :drag_handle, :tag => :tr) %>

Without many words, i hope the code speaks for itself.
Take care of the :tag attriubte in the helper (default is li) and the container has to be the tbody.

h1

Selling Rails in a Recession

März 5, 2009

According to this grailsblog post, here is the Rails port:

Open Source Stack = $0

Because Rails runs on the JVM (JRuby), it is platform agnostic and capable of running on top of a 100% open source stack. Everything including the OS, app server, and database may be obtained free of charge with no license fees.

Faster Development Time

Yes, it’s great that everything needed to run Rails’ applications may be obtained for free, but what’s even a bigger cost savings is how much time developers can save by working within the JRuby/Rails environment. Rails really tends to speed up development in the following 3 areas:

Data Access

ActiveRecord provides an amazingly efficient way to model domain objects as well as persist them to a database.

Scaffolding

Scaffolding speeds up development time rapidly.

Syntax

When working with JRuby and Rails, developers will find themselves writing less code than when working within the traditional Java environment. Less code translates into shorter development time.

Summary

Rails is a great fit for a recession. It allows developers to create high quality applications on top of a free open source stack in less time than many of the more common, corporate frameworks.

h1

JRuby auf Android, Ruboto

Februar 28, 2009

Das ist doch mal eine interessante Geschichte:

JRuby works on Android

Funktioniert mit JRuby 1.2 RC1, also fröhliches testen.

h1

CentOS + VirtualBox + Ruby on Rails

Februar 7, 2009

Just some noticable Infos:

I installed VirtualBox (virtualbox.org) and setup CentOS, for this i downloaded the complete image at http://virtualbox.wordpress.com/images/centos/ (remember to copy the root password for the first login)

To start setup:
- change root password
- add an additional user
- update system files (yum update)
- install mysql (to use with ruby mysql gem you need to install also the developer packages)
- install ruby-enterprise (setup .bashrc)
- install subversion (yum install subversion)

Some useful infos:

Install Ruby Enterprise (including Rails):
Installing Ruby Enterprise on CentOS 5.2

Install MySQL Gem
Faild for me, so i found here the solution:
mysql gem on centos
Update: More Infos: Mysql gem centos5 hell

German Keyboard Layout
To change temporary (until reboot)
loadkeys de-latin1
And to verify that the keyboard layout is correct use the command: showkey

Permanent setting (CentOS):
Edit /etc/sysconfig/keyboard and replace KEYTABLE=”us” by KEYTABLE=”de-latin1″
save and reboot.

To find whitch keyboard layout maps that is available is in the map
/lib/kbd/keymaps/i386/…depending on which distro is used.

Enable high resolution console:
As root, edit the file ‘/etc/grub.conf’, and add ‘vga=XXX’ to the line that begins with kernel.
Get other values here: VGA Screen Resolution

I will update this post, but for now i dont remember more steps ;)

h1

JRuby vs. WebSphere

Dezember 12, 2008

One goal of developing our Ruby on Rails Application with JRuby was to deploy and run the App in IBM WebSphere Application Server.

JRuby vs. WAS:

First we simple create an war file (warbler) and try to deploy it on WAS, and run in a 100% CPU load.
After some use of google we mention that we have to install the latest Fixpack (Current 6.1.0.15, Latest 6.1.0.19) this takes a while (about 500 MB to download and about 1 hour for install).

Second try, app is not loading, so we notice to optimize our web.xml (change from filter to servlet)

Last try, deploying works like it should (10 seconds). Navigation to the URL of our App, next Error.
A look in the log files shows us some cryptic “java.lang.ClassFormatError”.

Conclusion:

We were able to deploy and run our application in IBM WebSphere, but we will not use it for now. Watching JRuby Issue Tracking, Bug: 3015.

Update:

The Bug is fixed, so its time to check the deploymet again.

h1

How to create a fun blog in less than 5 minutes

August 26, 2008

Hey guys,

today I’ll try to describe how to create a (fun) blog in less than 5 minutes.
The clou is that this blog will need no administration, it will post the articles automately.
Preconditions:

Slinkset is a new social blogging service, with a nice little feature:

  • Auto-post links via RSS

Let’s start:
Den Rest des Beitrags lesen »

h1

Grosse Communities in Süd-Ost Bayern

August 20, 2008

Inspiriert von dem Artikel über die Regionale Verbreitung sozialer Netzwerke (link), möchte ich dies nun auf den Bereich Süd-Ost-Bayern ausweiten.

Dabei sollen folgende Communities verglichen werden:

Lokalisten, Eraffe, Süd-Ost-Portal und Ro-Community.

Alle Angaben sind von den jeweiligen Seiten entnommen, natürlich sind doppel Anmeldungen und Fakeaccounts nicht ausgenommen.

(Stand: 20.08.2008 )

Den Rest des Beitrags lesen »

h1

Netbeans 6.5 Beta available

August 12, 2008

Update:

Pay attention to the Final Release of NetBeans 6.5.

According to the Roadmap, the NetBeans Developers released a official beta (6.5).

Download:
http://bits.netbeans.org/download/6.5/m1/

Looks very stable to me (i use only the ruby package), so i can recommend the download.

Hava a look at the Feature List:
http://wiki.netbeans.org/NB65EngineeringPlan#section-NB65EngineeringPlan-FeatureDetail