12.03.2015 Autor Mike 242 153

If you want to use the official Oracle Java Version you need to either install it manually or use an unofficial ppa. This is because Ubuntu removed the Oracle/Sun Java from the official repositories. In order to use the ppa you need to issue the following commands: sudo add-apt-repository ppa:webupd8team/java...

Weiter lesen »


12.03.2015 Autor Mike 419 244

If you want to allow vagrant to change the nfs export without entering an password you can add this to your sudoers file (to edit it just type visudo as root): # Allow passwordless startup of Vagrant when using NFS. Cmnd_Alias VAGRANT_EXPORTS_ADD = /usr/bin/su root -c echo '*' >> /etc/exports...

Weiter lesen »


12.03.2015 Autor Mike 496 183

If you wonder why your bundler based application boots so slowly, use bumbler. Bumbler can be added as a gem to your Gemfile:  gem 'bumbler' Afterwords you need to add the following to your profile, .bash_profile, .zshrc, .wtfrc or whatever shell config you use, export RUBYOPT=-rbumbler/go If you boot rails now...

Weiter lesen »


12.03.2015 Autor Mike 388 197

Rails 4 is released! A major feature was to make it really easy to develop modern Webapplications. And this without the use of client side javascript in combination with JSON. For this the template caching was improved. Turbolinks was added that improves the load time of pages. If available it...

Weiter lesen »


12.03.2015 Autor Mike 276 290

Today i attended on a Coding Dojo at Elite Partner. It was quite interesting to see how other programers look at a problem. For me it was quite hard to realy think in baby steps like it should be in aCoding Dojo. Some of these just seemed so simple. So what...

Weiter lesen »


12.03.2015 Autor Mike 458 333

Vagrant packages for your system (Linux, Mac, Windows) can be found under: http://downloads.vagrantup.com/ First install some dependencies: sudo apt-get install qemu-kvm libvirt-bin libvirt-dev qemu-system virt-manager Install the vagrant kvm plugin: vagrant plugin install vagrant-kvm You can start it with vagrant up --provider=kvm Information about the provider can be found here: https://github.com/adrahon/vagrant-kvm For that to work you...

Weiter lesen »


12.03.2015 Autor Mike 471 219

I had audio stutter in all games i started from steam. Running them without steam works without any problems also playing music, watching videos wasnot a problem. After some testing i found out that if i restart pulseaudio with "pulseaudio --kill" the sound works for one time. So i found...

Weiter lesen »


12.03.2015 Autor Mike 129 124

In order to create a KVM vagrant image i used to virt-manager to help me set it up.

Weiter lesen »


12.03.2015 Autor Mike 93 194

If you are using the latest vagrant version from http://www.vagrantup.com/ you do not need virtualbox additionally. If you install it besides the vagrant one it can interfer with vagrant. I needed to uninstall my local vagrant version to get around some errors.

Weiter lesen »


12.03.2015 Autor Mike 387 314

The first release candidate of rails 4 is out! Rails 4 prefers ruby 2 and ruby 1.9.3 is the minimal requirement. The focus for this release was making it faster. So that you do not need to rely on client side javascript with json to have good performance. It now...

Weiter lesen »


12.03.2015 Autor Mike 403 316

I have tried to convert my first Rails 3 app to Rails 4. I followed roughly the instructions on edge guides. The most work i had on reworking the attr_accessible that are now removed in rails 4. It is quite easy to migrate, if oyu have e.g. this line in your Model:...

Weiter lesen »


12.03.2015 Autor Mike 128 231

I was wondering why my bashrc was not executed anymore after the upgrade to Kubuntu 13.04. After some search i found out that the previously needed "--login" param for the bash now seems to ignore the bashrc. After removing this everything worked again.

Weiter lesen »


12.03.2015 Autor Mike 107 168

Vagrant sometimes fails to start the vm with a message like this: "SSH connection was refused! This usually happens if the VM failed to boot properly. Some steps to try to fix this: First, try reloading your VM with `vagrant reload`, since a simple restart sometimes fixes things. If that...

Weiter lesen »


12.03.2015 Autor Mike 102 204

In order to get the torquebox-server gem installed i needed to increase the memory in order to avoid the 'Java::JavaLang::OutOfMemoryError: Java heap space' error. jruby -J-Xmx1024m -S gem install torquebox-server -v '2.3.1' --source 'http://torquebox.org/rubygems' Afterwords everything was fine again.

Weiter lesen »


12.03.2015 Autor Mike 82 160

Create the user and set it up: useradd --home-dir /var/www -m --shell /bin/bash www passwd www groupadd admin usermod -a -G admin www Mit Hilfe von visudo wird die Datei /etc/sudoers editiert und folgendes angefügt: # Members of the admin group may gain root privileges %admin ALL=(ALL) NOPASSWD: ALL

Weiter lesen »


12.03.2015 Autor Mike 85 248

I just read on heise.de that the Google Chrome Web-Browser is used by more than 43 percent of the requests. This is a plus of six percent in relation to the beginning of 2013. On the second place is Microsofts Internet Explorer :(. But it lost 5.7 percent in the...

Weiter lesen »


12.03.2015 Autor Mike 61 165

Short introduction to Vagrant and Puppet

Weiter lesen »


12.03.2015 Autor Mike 62 201

In Mysql the Random  function is called rand. If you want to develop an app that uses mysql and sqlite for development you will have a problem with the naming of the random funcktion: Postgres, Sqlite: RANDOM() Mysql: RAND()   You can add the alias RANDOM to mysql with this...

Weiter lesen »


12.03.2015 Autor Mike 54 184

I had a problem during a capistrano deployment. It executed the unit tests that is should not do and tried to require "RAILS_ENV=test" as file: file not found: RAILS_ENV=test The solution was quite simple i just had to add ":require => false" to the test-unit gem: gem 'test-unit', :require =>...

Weiter lesen »


12.03.2015 Autor Mike 63 240

If you get a new Domain you should check the reputation first. Your emails may not be delivered to their destination, cause a spammer may have used the ip before. If the IP has a bad reputation spam filters will block it. It can take a very long time before...

Weiter lesen »


12.03.2015 Autor Mike 54 194

In Postgres you have to take a deeper look at the user management. You have much more options to secure it for different users than in MySql. But this comes also at a price, i think the easy way of managing access to a role is somehow lost in Postgres....

Weiter lesen »


12.03.2015 Autor Mike 48 256

There is a nice little Online Training for Git branching available. You can interactively learn all the basics and some more advanced features.

Weiter lesen »


12.03.2015 Autor Mike 360 231

You can use the variable view_context in a Controller to use the link_to function like this: view_context.link_to "Link", :root_path

Weiter lesen »


12.03.2015 Autor Mike 57 234

There is a nice guard introduction on tutsplus that shows how to use guard with SASS and coffeescript.

Weiter lesen »


12.03.2015 Autor Mike 70 217

After I heard that Gnome 3 is quite good i wanted to give it a try. I currently use Kubuntu (KDE) so the base system was already installed. And following this article i installed Gnome 3 additionally. 1. sudo add-apt-repository ppa:gnome3-team/gnome3 2. sudo apt-get install ubuntu-gnome-desktop ubuntu-gnome-default-settings 3. sudo apt-get install gnome-documents gnome-boxes The...

Weiter lesen »