12.03.2015 Authorship by Mike 59 205

To install the 64bit Version of Google Chrome under (K)Ubuntu 13.04 you need to download an older Version of libudev which is not in the repositories anymore. Download libudev0 from launchpad: http://launchpadlibrarian.net/132294155/libudev0_175-0ubuntu19_amd64.deb Install Dependencies: sudo apt-get install libc6 libgconf2-4 libxss1 libcurl3 Download Google Chrome http://www.google.de/intl/de/chrome/browser/ Install Google Chrome dpkg -i google-chrome-stable_current_amd64.deb

Read more »


12.03.2015 Authorship by Mike 63 215

I currently want to setup a vhost to monitor all servers. It also has to use a zabbix proxy in order to reach everything.   Installation on Zabbix Server:   sudo apt-get install zabbix-server-mysql sudo apt-get install zabbix-agent sudo apt-get install zabbix-frontend-php Browse to http://yourhostname/zabbix and login as admin with a password...

Read more »


12.03.2015 Authorship by Mike 64 203

Just execute these while connected to the correct database: GRANT ALL PRIVILEGES ON DATABASE onlinegames_production TO ogi;GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO ogi; GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO ogi;

Read more »


12.03.2015 Authorship by Mike 61 224

A new Jruby Version 1.7 is released. And now finally the default mode is Ruby 1.9 compatibility. You can read more on the Jruby Site

Read more »


12.03.2015 Authorship by Mike 64 249

In production mode there is a problem if you have  enabled threadsafe mode.   To activate  threadsafe mode you need to uncomment this line in config/environments/production.rb# Enable threaded mode config.threadsafe!  After that add this line to fix migration problems in production mode:   # Allow rake tasks to autoload models...

Read more »


12.03.2015 Authorship by Mike 52 252

http://domscripting.com/presentations/xtech2006/

Read more »


12.03.2015 Authorship by Mike 53 383

In Ubuntu 12.04 the DNS handling ahs changed. The data in /etc/resolv.conf is overwritten at every network change and the resolvconf scripts are used. To find out some information about the current name servers you can use nm-tool. If you are using a vagrant box with precise you can add...

Read more »


12.03.2015 Authorship by Mike 71 204

In order to let the upstart script for torquebox work on ubuntu you need to change these lines start on starting network-services stop on stopping network-services   into these   start on (started network-interface           or started network-manager           or started networking)...

Read more »


12.03.2015 Authorship by Mike 60 183

There is a pretty nice talk about refactoring found here. In the talk he is optimizing the code live.   The Topics covered are: The Open-Closed Principle The types of coupling, and their dangers Why composition is so damn great A powerful refactoring that Kent Beck refers to as "deep deep...

Read more »


12.03.2015 Authorship by Mike 50 235

An interesting article about the new security features in Rails 4 and how to get your Rails 3 App ready for it can be found iconclastlabs.

Read more »


12.03.2015 Authorship by Mike 46 764

An article can be found here: http://www.softwareprojects.com/resources/programming/t-how-to-fix-mysql-database-myisam-innodb-1634.html

Read more »


12.03.2015 Authorship by Mike 81 232

A nice article can be found here how to remove large objects in postgres

Read more »


12.03.2015 Authorship by Mike 50 1893

I used pound as a load balancer and currently stumbled upon this article about load balancing with pound. The writer used pound for the site Justin.tv. Pound used about 20% cpu and in spikes up to 80% which is quite a lot. They now switched to nginx and the load dropped to...

Read more »


12.03.2015 Authorship by Mike 178 343

You can find two nice ebooks on openmymind.net: - MongoDB - Redis

Read more »


12.03.2015 Authorship by Mike 57 268

What is Juju? "With over 100 services ready to deploy, Juju enables you to build entire environments in the cloud with only a few commands on public clouds like Amazon Web Services and HP Cloud, to private clouds built on OpenStack, or raw bare metal via MAAS."   So you...

Read more »


12.03.2015 Authorship by Mike 48 223

I am interested in computers since my 12th birthday or so. I became a C64 on which i played a lot. But i also started programing in Basic and Assembler. It was really facinating so i used quite a lot of my time on it. A few years later i...

Read more »


12.03.2015 Authorship by Mike 54 200

If we want to use Mongoid we do not need ActiveRecord, so we could create an app like this:  rails new SuperApp --skip-active-record    The following gems are needed   # Mongo DB gem 'mongoid' gem 'bson_ext'   The bson_ext gem is used for faster bson conversion. Mongoid Documentation

Read more »


12.03.2015 Authorship by Mike 49 174

I would recommened that you do not use the root user to access any server. It is better to disable the root login, cause many automated scripts are trying to access the root user via ssh with some common passwords. On my server i setup another user which afterwords is...

Read more »


12.03.2015 Authorship by Mike 55 286

Install Capistrano: jruby -S gem install jruby-openssl ffi-ncurses capistrano   Capify project: jruby -S capify .   Add this to the Capfile: require 'org.torquebox.capistrano-support' require 'bundler/capistrano'   Important is that the servers are in the ssh allowed list. So check if you can reach the servers with ssh and have...

Read more »


12.03.2015 Authorship by Mike 94 200

I use the internal digital SPDIF output from my notebook, but it only had stereo output. After some googling the solution was to add a file called /etc/asound.conf and fill it with this content:     pcm.a52 {         @args [CARD]         @args.CARD {      ...

Read more »


12.03.2015 Authorship by Mike 42 209

Upgrade Ubuntu from a LTS Version to a none LTS Version: edit the file /etc/update-manager/release-upgrades and set Prompt=normal   Otherwise you can only upgrade to another LTS Release. Afterwards just do a normal do-release-upgrade   Important: Make sure screen is installed, so you can reconnect to the install if the connection...

Read more »


12.03.2015 Authorship by Mike 85 264

I had quite some problems getting capistrano to check out the repository. After some hours i found this bug  report: http://jira.codehaus.org/browse/JRUBY-6181 So there is an error with ssh key forwarding in jruby. This is fixed in version JRuby 1.7.0.pre2. So i installed the jruby-head version In order to get torquebox server...

Read more »


12.03.2015 Authorship by Mike 54 189

sudo vmbuilder kvm ubuntu --suite quantal --flavour virtual --arch amd64 --libvirt qemu:///system --user 'mike'  --pass 'ubuntu' \ --addpkg openssh-server,vim-nox,acpid,screen,htop,puppet --mirror 'http://mirror.hetzner.de/ubuntu/packages' \ --hostname=app1 --mem '8096' --rootsize '10240' --swapsize '2048'   Good??   unattended-upgrades   Currently there is a bug in quantal (https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/1037607), cause of that we need to apply this...

Read more »


12.03.2015 Authorship by Mike 53 193

I got the error   rake aborted! no such file to load -- torquebox/capistrano/support   while trying to deploy my torquebox app with capistrano. I looked quite some time without finding a solution, but in the chat log under http://transcripts.jboss.org/channel/irc.freenode.org/%23torquebox/2012/%23torquebox.2012-04-17.log i found the simple solution:   I just missed this gem gem...

Read more »