Archive

Archive for the ‘nerdcore’ Category

Retro Thinkpad Survey

July 28th, 2015 2 comments

For those of you who haven’t already heard: Lenovo launched a survey to recreate a Thinkpad like in the good old days, when design followed function and not the other way around.

http://blog.lenovo.com/tag/retro+thinkpad

Categories: hardware, nerdcore Tags: ,

emojis – an universal language

October 16th, 2014 1 comment

Why was this emoji rejected from being included in UTF? 😉

Sad Bone Saw

Here’s a list of seeminlgy rejected emojis: rejectedemojis.tumblr.com

Categories: fun, nerdcore Tags:

SQLite rowid picking joke….ehm algorithm

July 22nd, 2014 No comments

I laughed very hard at this:

“The usual algorithm is to give the newly created row a ROWID that is one larger than the largest ROWID in the table prior to the insert. If the table is initially empty, then a ROWID of 1 is used. If the largest ROWID is equal to the largest possible integer (9223372036854775807) then the database engine starts picking positive candidate ROWIDs at random until it finds one that is not previously used. If no unused ROWID can be found after a reasonable number of attempts, the insert operation fails with an SQLITE_FULL error.”

Source: sqlite.org

Categories: fun, nerdcore, software Tags: ,

Rescue of a broken Parallels VM (Linux guest system)

October 31st, 2013 No comments

Something went terrible wrong. I upgraded form Parallels Desktop 6 to 9 to have my Ubuntu VM in Mac OSX 10.9. After the second boot of the VM I got a popup by Parallels: “your disk 7gb contains lots of unused space, would you like to compress to 2gb” or something like that.

My first thought was “hey, nice, a smart tool, which cares about users”. After lots of I/O and 10min later I had a second thought: “f**king bull**** software, i want my files back”. The VM was “gone”, every time I booted I got messages about missing sata devices. The VM hdd was corrupted (and still 7gb big).

Mounting the VM hdd in another VM didn’t help either, cause it didn’t even show up as a harddrive. And Murphy’s law hit me as always: I deleted a copy of the hdd earlier this day which I used to check a migration to virtualbox 🙁

Luckily Ubuntu (or at least a bunch of Linux tools) and the fact that I had only one etx4 partition helped me to restore the VM:

  1. Boot w/ a Linux live CD in the VM and run “parted /dev/sda” as suggested here
  2. Run “mklabel msdos” and “rescue 0% 100%” in parted (change 100% to something else if you have multiple partitions)
  3. Reoot w/ a Boot-Repair-Disk live CD in the VM to restore MBR, grup, …. as explained here
  4. Reboot w/o live CD and the VM hopefully works again (as it does in my case)

 

Summery:

  • Parallels Desktop 9 WTF???
  • Ubuntu/Linux *thumbs up* 😀
  • This writeup is not a general rescue guide, but worth a try if everything else fails.

Eve Online on Linux

October 1st, 2013 3 comments

A long time ago in a galaxy far, far away….there was a native Linux client for Eve Online. Someday, some bloody Sith decided to cancel further development. Since then, only a Windows client was officially available. If you were a hardcore nerd, you tried Wine to get things up and running. The result was depending on the versions of Wine and Eve itself.

I gave up using this setup years ago and walk through the dark and muddy paths of Windows to play my favorite game. Several time ago, a MAC client was introduced which basically is a WineX/Cedega shipped with Eve and I got hope CCP would start supporting such an approach in a way Linux would benefit from it too. Nothing like that happened so far…which makes me sad…

But today things changed a bit, because I got it Eve up and running again with Wine on an Intel HD 4600 grafics adapter. I will describe nearly all I’ve done, also stuff that didn’t work because Wine seams to behave a little randomly 😉 Here’s my setup:

  • Intel HD 4600
  • Debian GNU Linux Jessie (testing) with 3.10-3-amd64 kernel
  • Wine 1.4.1

My first approach was to build wine for 64-bit architectures from source, by adding –enable-win64 to the configure variables in the wineinstall script. But this didn’t work with the 32-bit binary of the Eve installer. So I’ve tried building a 32-bit Wine from source. Unfortunately, therefore you need several 32-bit libraries and their sources. They can be made available by adding i368 architecture support to system, which I describe next because it is needed anyway. The config.log file which is written during the configure process when you execute the wineinstall script (see Wine README for description) will give you hints about the missing libs.

To shorten this: I couldn’t get Eve working with this new version of Wine, which potentially does not mean it won’t since it is marked with Gold Status on the Wine website. Well I lost a little faith here so I removed all I had done so far and started from skretch with the Wine included in the APT packet pool. After a

sudo aptitude install wine

and executing it, you will be told that this isn’t a real wine installation because it currently is not natively available for 64-bit architectures. So you have to do a:

sudo dpkg –add-architecture i386
sudo aptitude install wine:i386

It is also necessary to get winetricks via:

wget http://winetricks.org/winetricks
chmod +x winetricks

When all this is done you need to start winetricks and install the following components (individually and ordered is prefered!)

  • corefonts
  • vcrun2005 (MS VC++ 2005 / MFC libs)
  • vcrun2008 (MS VC++ 2008 / MFC libs)
  • vcrun2010 (MS VC++ 2010 / MFC libs)
  • d3dx9_43 or newer d3dx9_36 also works if having trouble (DirectX 9)

I’m not sure if all the VC++ stuff is needed or just the actual one. But two things are very important here!

  1. DirectX has to be installed after VC++ libs ! I don’t know what the problem is, but doing DirecX first raises errors on vcrun installation and breaks things.
  2. After installing all this you need to change the order in which Wine uses the libs of MVC++ 2010. This does all the magic I needed to start Eve. Therefore start winecfg, navigate to the libraries tab, and set the state of the msvcr100 entry to (builtin,native) via the Edit button.

Now you can begin to install Eve Online. There are some minor bugs with missing text etc. But all works for me. The performance is a little bit poor but I think with a proper grafics card all is fine. There are also some D3D tweaks known to improve performance by adding them to the wine config. I haven’t tested this yet but I’m quite sure performance in general is getting better in the future.

Have fun and fly dangerously!

Categories: EvE, games, nerdcore, software Tags: , , ,

The good ol’times

April 10th, 2013 No comments

Back in 1998, snake was one of only 3 games available on my Nokia 6110 (the other two games are memory and logic). The cool thing was, you had a two player mode using infrared!!!

Snake

Snake

Categories: games, nerdcore Tags:

No shit, Sherlock?

April 8th, 2013 No comments

This is how my IDE welcomed me today. I have to say I’m using it for several years and like the TotDs, because they usually contain nice hints…well not this day I think. 😀

Codeblocks TotD

Codeblocks TotD

Categories: c/c++, fun, nerdcore, software Tags: ,

LHC was yesterday

April 8th, 2013 No comments

Now you have to be afraid of multicast loops according to the following comment in OpenSM

Multicast loops are bad since the same multicast packet will go around and around, inevitably creating a black hole that will destroy the Earth in a firey conflagration.

And this time it’s even more likely, because there are way more InfiniBand networks then LHCs on Earth 😉

Categories: nerdcore Tags:

clang++ vs. g++ 1:0

March 5th, 2013 2 comments

Oder wieso man wirklich clang(++) benutzen sollte, wenn es drauf ankommt. Was sagt Euch diese g++ Fehlermeldung?

In file included from ../include/build.h:6,
                 from lexyacc.h:4,
                 from chapel.ypp:18:
../include/stmt.h:108: error: multiple types in one declaration

Es sei dazu gesagt, dass auf Zeile 108 irgendwelcher Code steht, den ich nicht angefasst habe. Aussage gleich null. Schauen wir was clang++ daraus macht:

In file included from ../include/build.h:6:
../include/stmt.h:92:2: error: expected ';' after class
}
 ^
 ;
1 error generated.

UND WIESO IHR GNU SPASSEMACKEN KÖNNT IHR MIR DAS NICHT SAGEN? Mann du … 30min Zeit verschwendet weil man aus versehen ein Semikolon gelöscht hat und der Compiler zu dämlich ist vernünftige Fehlermeldungen zu werfen. Kann mir irgendwer erklären wieso dieser g++ und gcc Dreck so dermaßen dämlich ist, gibt es da irgendeinen triftigen technischen Grund für?

Categories: c/c++, nerdcore Tags: , , ,

Duke Nukem 3D for free

December 13th, 2012 1 comment
Categories: fun, nerdcore, Uncategorized Tags: