New ApeBroker Experience

Fabulous news! There’s now a SANDBOX in apebroker! If you don’t know what apebroker is, check it out! It’s an online game, in desperate need of more players.

You will like it if you:

  • enjoy thinking
  • like to compete
  • dig classic board-games
  • dislike action games
  • can’t stand flash animations
  • prefer 2D over 3D
  • have business tycoon aspirations

or if you have friends like the above :-)

The game is over at http://www.apebroker.com/ and you can either create an account, or log in with facebook.

Posted in English, Uncategorized | Tagged , , , , , , , , , | Leave a comment

linux disable console blanking and powersave

# setterm -powersave off -blank 0

Useful on the console of virtual hosts in vmware or virtualbox, for example.

Posted in English, Linux, Svenska, Tech | Tagged , , , , , , , , , | Leave a comment

Massive Multiplayer online game

Hey! I just discovered the new features in the classic brain game ApeBroker! They have trophies, advanced toplists, facebook integration and more. Most recently, they added a visible marker of the companies you own shares in. That’s a nice improvement.

The game is a classic boardgame with the strict turn-based gameplay relaxed into a “number of moves per day (and person) along with a minimum time between each move by the same player”. I think this is great, because it means the game will not come to an end when someone goes for a long vacation or whatever. It’s more like in the real-world. :-)

Check it out. There’s usually lots of games to join.

Posted in English, Tech | Tagged , , , , , , , , , , , | Leave a comment

db2 SQL2036N and SQL1652N

When performing the db2move load -lo replace to continue the “restore” from my previous post, I failed once more, this time with first SQLSTATE SQL2036N, “The path for the file or device path/device is not valid.”, and later (after chmod o+x on the directory), SQLSTATE SQL1652N, “File I/O error occurred”.

Why does IBM write this kind of misleading error messages? What’s wrong with a simple ENOPERM, ENOENT, “Permission Denied”, or “No such file or directory” message?

I am logged in as user ‘root‘, but the db2move command simply seem to tell another DB2 process to load the import files, and this is probably a privilege separated process that can’t open the directory containing my *.ixf files.

So, chmod o+x on the directory to the rescue! (Solved the SQL2036N) – Only to have it fail with another error when it is the actual files that cannot be opened by the unprivileged user.

chmod o+r on the files to the rescue, then! :-) (Solved the SQL1652N).

Yes, both these error messages were due to the fact that the files were not readable by anyone but root. Hope this helps someone! (Feel free to investigate the advertisements if you find any of my tips useful!) Nudge, nudge, know what I mean, know what I mean? :-)

Posted in English, SQL, Tech | Tagged , , , , , , , | Leave a comment

db2 SQLSTATE 57019 because of BACKUP PENDING

I created a new db2 database, updated LOGARCHMETH1, LOGFILSIZ and some other things, then tried to import data created with db2move and db2look with a command like this:

db2 -tvf filename.dat

It failed, with SQLSTATE=57019, because of BACKUP PENDING.

I didn’t feel like performing a backup on an empty database, so I did this to solve the problem:

db2dart databasename /CHST /WHAT DBBP off

where “databasename” was obviously the name of my database. This successfully changed the state of the DB Backup Pending flag to “off”, which allowed me to do my import! Yay!

Posted in English, SQL, Tech | Tagged , , , , , , , , , , , | 3 Comments

Yay! New apebroker experience!

Proudly announcing the new facebook app at https://apps.facebook.com/apebroker/ !

Now featuring 24 different trophies/achievements to compete for with your friends or complete strangers!

Be the first with the latest, play apebroker today!

Posted in English, Tech | Tagged , , , , , , , , | Leave a comment

Vem orkar uppröras över sossefasoner?

Jag har tidigare skrivit en del om Håkan Juholt och andra S-märkta myglare. Jag har jobbat i IT-branschen hela livet, och här loggar vi allt som sker. Förstår inte Riksdags-sossar att det man säger en dag för alltid kommer förbli sagt, och att det inte funkar att ett halvår senare säga att “jag har aldrig sagt att vi inte bott tillsammans”? Vem som helst kan ju kolla upp det i efterhand.

KLÅPARE!

Posted in Samhälle, Svenska | Tagged , , | Leave a comment

(Re)discover new LUN in linux without rebooting

Note to self… Has 1 disk (/dev/sda) and want to “find” newly added disk (/dev/sdb) without reboot:

echo 'scsi add-single-device 0 0 1 0' > /proc/scsi/scsi

The first “0″ is the controller, next “0″ is the SCSI channel, the “1″ is the target ID, and the last “0″ the H-LUN.

After repartitioning with fdisk, the kernel remembers the old partition table, so remove the device and add it again to refresh it:

echo 'scsi remove-single-device 0 0 1 0' > /proc/scsi/scsi
echo 'scsi add-single-device 0 0 1 0' > /proc/scsi/scsi
Posted in English, Linux, Tech | Tagged , , , , , , , , , , , , | Leave a comment

Why spamassassin fails to start after upgrade

I decided that it was time to upgrade our spam filters today. It runs on 4 virtual gentoo installations, and it’s based on postfix and amavisd-new.

Most of the time, I find gentoo is really as beautiful as a distro can get. They try to do TheRightThing, and don’t fail as bad as the debian gang does most of the time.

Perl with CPAN is of course never going to be “compatible” with a package-based distro, but in Gentoo the developers are clever and caring, and they make tools like perl-cleaner that actually does a remarkable job.

As always, I’m employing the lazy upgrade methodology, (also known as ad-hoc patching, or on-demand upgrading, or more bluntly: I upgrade whenever I feel like it and have the time). This approach and gentoo is not always the best combination, but because gentoo is as good as it is, things usually work out very well for me, even when upgrading gblic, or, as recently, the init/baselayout. Gentoo is amazing. I still love it.

Anyway… After upgrading perl, spamassassin, and some other dependencies, spamassassin wouldn’t start, and the error message was a very cryptic:

child process [1234] exited or timed out without signaling production of a PID file: exit 25 at /usr/local/bin/spamd line 3334.

The solution? Just run “sa-update” to download new rules. Then it started just fine.

Posted in English, Linux, Tech | Tagged , , , , , , , , , | Leave a comment

0x800704CF when restoring a windows system image?

Windows 7 has really nice backup and recovery features. However, they are not as well worked out as the day-to-day windows features, and, hence, lacking in user-friendliness.

I struggled quite some time before I realised the error message 0x800704CF was due to the network chip driver not being loaded. What I had to do to be able to restore the system image over the network, was to first load the network driver from the CD-Rom that came with the motherboard.

What really fooled me the most was the authentication dialog probing for network credentials popping up. Why ask if you don’t have access to the network?

For my new Asus P8Z68-V Pro motherboard, to load the network driver, I had to browse to E:\Drivers\LAN\APPS\SETUP\SETUPBD\Winx64\, and instead of double-clicking on an INF or SYS file, I had to launch the program:

E:\Drivers\LAN\APPS\SETUP\SETUPBD\Winx64\SetupBD.exe

by means of a right click on the SetupBD Application, and then selecting “Run As Administrator”.

Cheers!

Posted in English, Tech, Windows | Tagged , , , , , , , , , , | 3 Comments