Dynalogic, bezorgen is moeilijk

Aangezien mijn telefoon abonement binnen afloopt, en ik een nieuwe nodig had, heb ik afgelopen woensdag via internet netjes een nieuw abonement afgesloten met telefoon. Niet heel bijzonder zou je denken, en hetzelfde geld voor de bezorging.

Vandaag zou dynalogic, het bedrijf dat de bezorging verzorgd voor de webwinkel, de telefoon af komen leveren. Netjes vanochtend een SMS gehad dat hij gebracht zou worden en netjes de hele dag minstens alleen, en een groot deel van de dag met zijn tweeen thuis geweest. Een uur nadat de tijd voorbij was die dynalogic gezegt had was er nog steeds niks binnen en ben ik maar eens gaan bellen naar de winkel. Zeggen ze simpel, dynalogic heeft het geprobeerd te bezorgen, maar er werd niet opgedaan nadat er gebeld was! Apart, aangezien ik de gehele dag thuis ben geweest. Hun konden er echter verder weinig aan doen, en dus werd ik doorgestuurd naar dynalogic. Hun zeggen simpelweg, de chaufeur zegt dat hij aangebeld heeft, en dus is het zo. Enige wat we kunnen doen is een nieuwe afspraak maken. Zucht.

Achteraf ging ik nog eens nadenken, aangezien dynalogic een tijd had gezegt dat ze gebeld hadden, en bedacht ik me dat er rond die tijd voor de deur langzaam een bestelauto was langsgereden, en deze 3 huizen verderop even heeft stilgestaan, zonder dat iemand uitstapten. Ik hoop serieus voor ze dat dat niet zo was, en bewijzen kan ik het niet, maar het doet ze niet goed. Ik hoop wel voor ze dat maandag het geheel netjes wordt afgeleverd, anders hebben ze toch wel een serieus probleem.

ZFS disk remove

Because I need to help some friend with backup up data from his broken PC I need to temporary remove my 2TB disks from my zfs pool so I have enough diskspace.

Read more »

Direct Admin API

The last few weeks I have been working with the Direct Admin API for a new android application. Badly enough the direct admin API is just one large pain to work with, there are several issues with it, and they all cause a general pain really. Read more »

Dictaat Linux

Afgelopen kwartaal heb ik, samen met Kevin van der Vlist het keuzevak Linux gedoceerd om de Hoge School Rotterdam.
Voor dit vak hebben wij speciaal een dictaat Linux geschreven welke de basis van Linux behandeld en de student leert omgaan met de basis van Linux.

Het dictaat is te vinden op http://www.hosthuis.nl/linux/ en kan vrij gebruikt worden onder de GPLv3.

De source files zijn ook online beschikbaar, en staan op https://github.com/kevinvandervlist/tirlnx01

greylist stats 2

A long time ago I wrote about using greylisting on my servers. Now, more then a year later, I accidently looked at the stats.

web:~# greylist stats
Statistics since Thu Dec 24 12:59:53 2009 (510 days and 7 hours ago)
--------------------------------------------------------------------
243 items, matching 9708 requests, are currently whitelisted
0 items, matching    0 requests, are currently blacklisted
8 items, matching   26 requests, are currently greylisted

Of 120014 items that were initially greylisted:
-   5225 (  4.4%) became whitelisted
- 114789 ( 95.6%) expired from the greylist

As you compare these results to the results from the earlier mentioned post, there is not much different in the percentage. A bit less in percentage expired from the greylisting, however, not that much.

Badly enough, if I look at the amount of spam I get in my mailbox, the greylisting is less performing as back then. Right now, I get around 100 spam emails in my inbox/spambox, instead of 10 a year back. So it looks like I need to look into some changes, as I dont like spamfiltering, as it requires CPU.

Apple and the iPad

I have never been a fan of Apple products, and due to that I never really used a apple product (Ok, there might be a exception there, as I used for some time a ipod for music, but I still dont see that really as using it :P ). Untill 2 weeks ago, from some client I got for the work I did a iPad (Instead of normal money :P ) as thanks. Now I used it for 2 weeks or so I need to see I actually like it. Since last year I have been a Android fan, however Android has its problems, mostly due to the different companies using and mostly modifing, Android. On nearly every mobile phone or tablet the Android experience is different, the UI is different, and you have no idea if a App that is written for a specific Android version actually works on that device. With this iPad, I havent see yet any of the problems caused by the many Android devices that apps have. The apps just works (Ok, they still crash sometimes, but android apps do the same).
I need to say, iam surely impressed by the iPad with it current state when I compare it to Android. I still would not buy it myself, but it is not as bad at all as I had thought. My main concerns still are the required use of iTunes, what is not working at Linux at all, and thats my main OS, the kinda closeness of Apple, and the requirement to use a Apple thing to write apps. But I dunno, I might change opinions and move more to Apple if Android does not improvide.

Lighttpd and dualstack IPv6/IPv4 and SSL

Reading over the internet you can find a lot of information over all kind of related issues. However, nearly no one is, as far I can see, trying to get and a dualstack connection and a SSL connection working. Due to this, you can try to combine all kind of possible configuration issues, but you will find it is hard to get the correct one.

Getting lighttpd to listen on IPv6 and IPv4 (So dualstack) is not hard at all. Once you have SSL working with that together, it is not that difficult, however trying to find the right option is.

After a long try I came up with the next config file, what has a seperate SERVER["socket"] section for both IPv4 and IPv6. Not ideal, but is works, this site is visible via both IPv4 as IPv6, and thats the thing we wanted. For now iam going to use this, and hope there once will be a better solution. (As note, I also have a required redirect here, as I require the full site to be over SSL).

var.confdir  = "/etc/ssl/cert"
$SERVER["socket"] == "91.196.170.37:443" {
    ssl.engine    = "enable"
    ssl.pemfile   = var.confdir + "/www_domain_nl.pem"
    ssl.ca-file   = var.confdir + "/AddTrustExternalCARoot.crt"
    server.name   = "domain.nl"
    server.document-root = "/var/www2/"
}
#// 2a02:27f8:1001::2:1
$SERVER["socket"] == "[2a02:27f8:1001::2:1]:443" {
    server.use-ipv6 = "enable"
    ssl.engine    = "enable"
    ssl.pemfile   = var.confdir + "/www_domain_nl.pem"
    ssl.ca-file   = var.confdir + "/AddTrustExternalCARoot.crt"
    server.name   = "domain.nl"
    server.document-root = "/var/www2/"
}
$HTTP["host"] == "www.domain.nl" {
    $HTTP["scheme"] == "http" {
            url.redirect = ("^/(.*)" => "https://www.domain.nl/$1")
    }
}

Android and JSON

This afternoon I needed to create a JSON string in Android. Trying to search this at google I found nearly no results, except for reading/parseing a JSON string. I didnt need that (yet), I just needed to serialize/create a JSON string. At the end I came up with the next class to generate a basic JSON string, and to use it to post to a website.

The class includes a method that returns a HttpEntity, that can be directly used to send to a website via HttpPost.
Read more »

Eigenlijk wil ik ergens over praten…

… maar ik kan het niet.

Fun things you can do with android

Now I bought last week a new phone, with android  2.1 iam kinda having fun with it. As a school project our project is currently to program for android (Whats not that difficult, it basicly is java :) )

after playing a bit around with the SDK for android, I discovered a function that you can use to make a screenshot via the computer at your phone. (If you dont know how, its pretty easy. But I will post a bit more explained how later as seperate post).

Now the more weird thing, after some minutes playing around with this function, the phone was gone into sleep modes. So I expect if the phone is asleep, the screen is just black when I make a screenshot. However, it isnt, see the attached screenshot (Iam afraid you will need to trust me that thats the actual screen being displayed, I know :P ).