Skip to content


The QuPiD principle

It actually is just QPD but saying it like you would cupid makes it more memorable.

The short version is simple: Quality, Performance, Design.

You want something quality that performs well and then you look for which one looks better. This is a general way of how people select things and also how I’m approaching creating pretty much anything at all.

Let’s look at an example, because these terms are way too broad to make this easy understood at first glance.

A friend needs a frying pan. His old one is way too old so he goes to a store. There he has a selection of 20 different ones, ranging from high end to lowest crap. His need for quality is low, he needs a pan now and he knows no matter which one, after three years or so, the one he buys now is garbage anyways. He goes with one of the cheapest one, which will perform the task as equally as any other (or so close that there is virtually no difference). The design doesn’t even play a role, but I must say it’s a very ugly pan. Thankfully it’s a tool which is used temporary in the kitchen and spends the rest of it’s days in a cupboard. If he had a fancy kitchen where he hangs the pots up for display, he might chose something slightly less eye gauging.

Another friend want’s a new notebook. He has selected a Samsung or a Toshiba one, of the class of machines that are small and thin, but still fully capable notebooks. The quality is roughly equal as far as he can tell and the performance, well, it’s the same guts in essence anyways. So his decision is now down to design in the end. Which keyboard is more appealing, which casing, which screen.

So we almost always start out with a level of quality. That one is also determined by our budget more often than not, but quality is a huge key. Then in that range we look for performance, does it do the job well or better. And once those are satisfied, only then the true design is considered.

There are exceptions to this, like novelty items, or “cool looking thing” that you don’t really need or is impractical, but we select anyways for their design only.

In creating the quality is also paramount. A fine planed application or a quick hack. Performance, ignored (because of time constraints, not needed since it’s only a couple people using it) or highly optimized. And then in the end, a design (not application design, but the look and feel of it) to make it work smoothly or a like a huge kludge.

The principle applies rather broadly, not only to software as you can see in the samples, or purchases or projects. The sense also applies to relationships, to decisions in courses and so on. It boils down rather neatly, as long as you understand the fundamental contributors  of quality, performance and design.

Posted in General.


Battling with Asus Sabertooth X58 and RevoDrive 3 X2

I’m the happy owner of a Asus Sabertooth X58 mainboard. Since yesterday, I’m also the happy owner of a OCZ RevoDrive 3 X2 240GB. The later is an SSD running on your PCIE bus. Rather nifty as it bypasses all the SATA3 shenanigans I had with the now two defunct SSD’s sitting in my desk drawer. It also boasts a 1.5 Gigabyte per second read speed and 1.2 Gigabyte per second write speed, with 200’000 IOPS on top of that. So, after this little hardware porn, back to the problem.

It doesn’t work as advertised. First the install was weird. You need to download the driver and put it on a stick or something before you can actually install anything. After booting the Windows 7 disc, it will not find the drive, period. Out comes the USB stick with the driver. Load it and it suddenly finds it. Strangely it refused to install at that point, telling me it can’t create the partition or some such nonsense and that I should check the install log. What log? A reboot and repeat of the process later and it worked just fine.

A completion of the install later and I’m on Windows. Atto comes out and has a crack at it (standard settings, 256MB size and QD4). The excitement builds as the graphs go for larger chunks and then stops. At about 600 MB read and 700 MB write speed it’s done, no speed increases, nothing. No 1.5 Gigabytes by far.

Now I mentioned the mother board for a reason. See there is a little trick here. If you look closely at the specs of the RevoDrive, it says it’s PICe v2. If you check for the same on the motherboard, it says it has PCIe v2. Trouble is, only on the two beige 16x ports. The black 16x port is wired at 4x but it’s only PCIe v1. Guess which port my RevoDrive is sitting in and you will be right.

Lucky I had that second port free, but now the GFX card and the RevoDrive are sitting uncomfortably close. I switched them both around so there is one empty slot between them.

Booting up again, I gave Atto another go. Look what I get now:

Posted in General.

Tagged with , , , .


Portal 2 Help

I’ve been busy with it now for less than a day, not even done yet, but I’ve only run into one room where I scratched my head for a longer time. Not going to give anything away here, just describing to you how that room looks like and how to solve it, so you don’t have to get a sleepless night over it. So if you are not looking for a solution, then avoid the rest of this post.
Continued…

Posted in Gaming.

Tagged with .


Testing USB Drive Capacity

There are a lot of USB drives and other USB devices, like MP4 and MP3 players, that are sold for cheap with the promise of huge storage. Even if you hook it up to your computer, you might see the promised 16 GB of space, but there is a problem: These devices can lie.

Why can they lie? The devices are complicated, but for the sake of this bit, there are two major components at work, the controller and the memory. The controller knows nothing about the memory. When you create a device, you have to tell the controller what memory is attached to it and, here comes the clue, in what size! When your computer tells you it has 16GB on that stick, it reads what the controller has been told by the manufacturer. Now how did that cheap stick turn into a 16GB stick? Crafty people have discovered that they can use some tools to access the controller and change the value with a small piece of software. So they buy large quantities of cheap sticks (512MB or 1GB can be bought for next to nothing) then hack them into saying they are 16GB or whatever else size they come up with, and then sell them for what real sticks go at that size. The profit there is a large multiple.

To make matters worse, you will not recognize the problem until it’s too late. It will allow you to store past it’s real capacity, copying data onto it, and happy write your bits into nirvana once the storage limit is reached. You will only get an error when you try to access what you have copied onto the stick, by that time you might have lost or destroyed the original already.

Fear not, there is help. On heise.de you can find a tool called H2testw for Windows, or if you are hardcore, just H2Test for the command line. No Linux version I know off, sorry.

With this tool, which you can change to English once opened, you will find the culprits easy. Just run it on the stick (be sure to have any data you want off it, and make also sure it’s empty) and it will fill the stick slowly with large files. As it does so, it will check the files if they are correctly written. It will try to fill the entire space the controller says there should be. At the end it will report to you how much space you really have on that stick.

So when you buy something with storage, run H2testw on it and immediately react if you didn’t get what you paid for. This does not only include possible shady Ebay dealers, but also happened with USB sticks sold in retail chains! So be vigilant.

Posted in General.

Tagged with , , .


Disappointing endings in Video Games

I just finished playing Arcania: Gothic 4. I’m not pleased.

First, let me warn you that this is a long post, secondly, let me warn you there are spoilers of rather new games in here (at the point of writing). If you wish to avoid either, don’t read it, better stop now.
Continued…

Posted in Gaming.

Tagged with , , , .


Flattr Statistics of September 2010

After having done this for May 2010, I thought it might be time again to look at the statistics.

In June I made a total of about 3 dollars, not being really active at all, yet still having 16 things and 51 clicks (worth per incoming click, about 6 cents). July was 4 things strong, with about 50 cents worth of revenue on 22 clicks (bit more than 2 cents per click). August saw 7 things, 56 clicks and 1.45 in revenue (2 and a half cents per click worth).
Continued…

Posted in General.

Tagged with .


MS SQL Blob truncated

There are times when I wish I had a third hand, just so I could to a triple face palm. This is one of those times.

I’m accessing a blob in a MS SQL database that is pretty much nothing more than a JPG dumped straight into the field. I read them and echo them with a jpg header in PHP. All is well. The script runs and parses all the images, doing some caching magic with them. The result is that about a third of the images are broken, seemingly random. Mostly they just “stop” at a random spot over the whole set, but in one image it always stops at the same spot.

I suspected data corruption on input and a refresh on what inserts them in the first place worked, sometimes at least.

Digging down, I saw that the result I get back for the broken images is always 64512 bytes, exactly. That’s 2 to the power of 16. Can’t be a coincidence. Turns out, it isn’t.

I’m using freetds to access the database and there is an entry in freetds.conf that reads something like this:
text size = 64512

Upping that number (and restarting the webserver, apache or IIS) did the trick. The images stored in the database were all around that point, so it looked like a random bug, but thankfully it wasn’t random.

If you don’t use freetds but the mssql extension instead, then this line would be of interest:
mssql.textsize = 4096

Yes the default is only 4 kilobytes.

Maybe the desk will work as a third hand for the triple face palm.

Posted in Development.

Tagged with , , , .


Flattr Statistics of May 2010

In the interest of some arguments and some transparency, here are my values for the month of May 2010 of what happened on my Flattr account. In total I had 24 of my things flattred, with a grand total of 66 clicks, so that means my average was 2.75 clicks per thing. 19 of these things were actually posts on the Flattr Forum. I made a total of 11.34€ which then averages in at about 17 cents per click. The averages for single clicks on a per thing basis, were from the smallest at 0.02€ to the largest at 0.45€. In multiple cases, more clicks didn’t mean more income and I made more money with fewer clicks that were each higher valued. The biggest gap was one thing with 4 clicks, totaling at 0.52€ (0.13 average) and one with 2 clicks at 0.72€ (0.36 average).

Of course my sample size is rather small, Flattr is still in it’s early and humble beginnings and many options are still missing from Flattr. But for a first full month, this is a respectable kick off.

Posted in General.

Tagged with .


Interview with Sapkowski y Xayide

A good friend of mine, who get’s to read and critique Toreas before I put it online, pointed out this interview with Sapkowski y Xayide to me. If you don’t know who he is, look him up, a big name in fantasy, from Poland. It’s a bit rough to read, but you get a lot of insight into his life as a writer and his views in that regard. He is very candid about it as well.

Posted in Writing.


Debian Killall Command

After running into this yet again today, here is how you get the killall command on a modern Debian distribution:

aptitude install psmisc

Works perfectly fine on lenny. Hopefully I never have to look this up again.

Posted in System Administration.

Tagged with , , .