Category Archives: Daily life

Everything non scientific ;-)

Pseudo OOP in C AND Go

This post I made because I just discovered an entry from long time ago, which I forgot to answer.

pseudo code:

int *method_to_append() {
 return 0;
}
void *do_something() {}
struct foo {
    int attribute1 : 0;
    int attribute2 : 0;
    int *method1 : method_to_append;
    void *method2 : do_something;
};
struct foo new_obj;
new_obj->method2();

Steamed bread (with coconut)

Howdy

After the Chaos Communication Congress lectures event I still had a lot of my mung bean – coconut stuffing left.

After having made 8 pieces of ZongZi I still had a lot of it left.

What did I do with it?
Right!
Steamed bread with the stuff as the stuffing!

I brought 8 pieces of it to the todays Chaos meeting, and obviously it tasted good, because none of the 8 were left.

Peponi asked me to publish the recipe.
Here you go 😉

Stuffing

  • A half pack of peeled mung beans
  • I used “Aroy-D coconut milk 250 ML”
    But you can use virtually ANY coconut milk
  • Sugar (As much as it needs to taste good)

Processing

  • Put the beans into a pan and cook like rice
  • Refill water until the beans start to decay
  • Put the coconut milk into the pan and let it finally decay to the consistence of tooth paste
  • Put sugar into the stuff until it tastes well
  • Let the water cook out, until it’s turning yellow and takes the consistence of tooth paste

For the dough use the follwing recipe: https://blog.the-leviathan.ch/?p=204

Home made “Daifuku”

Howdy

Because I couldn’t reach Izio in time, which I heard from some LUGS guy, has made a trip to 日本 (Japan) and tell him that he might bring me some Daifuku box, I decided to make my own Daifuku (Right image).

It turns out, the effective Mochi making and filling only takes some minutes BUT the Anko took me three damn hours!

Well, I sieved the beans as well, in order to get a thin and toothpaste like stuffing (I don’t like too much bean skins in Daifuku very much) but it would have taken a lot of time anyway… Well… I saved time by using a rice cooker instead of traditional cooking for getting the beans soft.

After all, the Daifuku became as predicted delicious and tastes exactly the same as the original from “Nishi’s Japan Shop” at “Milchbuck”.

Only the color differs from snow white because I only had brown sugar around, but no white one.
But it still looks great, especially if you make coffee Daifuku (planned for tomorrow because I still have a lot of sieved Anko around) where no one minds the color 🙂

easiest way to change into qemu based chroot (x86_64 -> armel)

Also already dreamed of just debootstraping another architectures rootfs onto
an SD card but woke up unpleasently by the hard reality of binary incompatibility?
Well.
There’s an easy way to make our dream come true after all!
First you’ll need the static qemu binary for your arch, in this case for armel it is
http://packages.debian.org/search?searchon=contents&keywords=%2Fusr%2Fbin%2Fqemu-arm-static&mode=path&suite=stable&arch=any
If you have some other distro then Debian running (I have done it under Gentoo) you can just extract the needed file with ark or any other app which can decompress debian packages.
Copy the binary into the root of the directory/mount point you wanna debootstrap your rootfs to.
This point requires binfmt_misc enabled within kernel! (/proc/sys/fs/binfmt_misc/register)
Type the following command for arm (change it if another arch is used!):
echo ':arm:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/qemu-arm-static:' > /proc/sys/fs/binfmt_misc/register
Now you can debootstrap as if you would do it onto a native arch:
debootstrap --arch armel sid arm_chroot/ http://mirror.switch.ch/ftp/mirror/debian/
Then comes the hottest part!
Chroot into it, like it would be a native arch! ;-D

FOS-Burger’s

Did you observe that most burger king kitchens are observable from behind the counter?

Additionally they deliver the source of the burger in addition to the precompiled burgers when you take it away. (Image 1)

You only have to pay for the service of precompilation and delivery to you, while you are totally free to request the sourcecode of the burger and compile your own burger at home and you can even commit your own patches to the sourcecode and request the compilation of your own code by the burger compiler back in the kitchen.

You are also free to share your modified burgers/recipes with others and fork your own burger project.

Which means: BurgerKing bugers are free hamburgers! 😉

GTA04 (vs.?) and FSF

The day before yesterday I had an unpleasant, I’d rather say pointless, argument with Richard Stallman about his definition of “free”.

The result was that he insisted that one must not be free to upload unfree firmware to a wireless lan chip, when he likes to, while my opinion is that we just should let the chip being soldered into each device, we ship, and leave the decision to the customers themselves if they wanna upload unfree firmware to the wifi-chip in order to use it or if they don’t wanna use it, because there is no free firmware available yet.

As a result of this discussion FSF still refuses to call our project a “free project”, which PISSES ME OFF Rich, because it’s just stupid!