Sorting images according to their width and height

I wrote a script to sort images according to their width and height.
I found myself in need of such a thing after my previous post on how to download 4chan images automatically.
I used this script a few times to get all the wallpapers on the /wg/ board.

After a few GB of images, nautilus starts to get a headache when opening the containing folder.
So I needed to split it up in different folders.
So here’s the script that does it.

There still seems to be a problem with character escaping when the filename contains a ” – ” in it’s title.
But I’m too tired to figure it out now.

Whitespace opening soon in Ghent!

Just got read this mail on the Ubuntu-be mailinglist and thought it would be a nice idea to post it here too :)

A bit off topic for this list, but there are a lot of ubuntu/fos-users
in the space,
so I assumed this can be interesting for ubuntu users.

Whitespace would like to invite you to its opening weekend 19-21 March.

When: From Friday 19th of March to Sunday the 21st.

Where: Blekerijstraat 75, Gent, Belgium

Whitespace is the first hackerspace in Ghent and will be opening its doors
for the first time on the weekend of 19-21 March. The space is ready for
launch, but far from finished: we’ve got a roof, multiple walls,  and some
cat5 and now we need more people to have fun with.

Don’t know what a “hackerspace” is? Check http://hackerspaces.org ;-)

We hope to see you drop by.

The (dynamic) agenda[0]:
————————————

Friday:
20:00: Opening drink, see the space, meet the locals, fun hacker partygames.

Saturday:
14:00 : OpenWRT presentation: a big os for small devices.
15:00 : Flashing for fun & profit:
1 Bring your compatible wireless router[1]
2 Flash it! (don’t worry we’ll walk you trough).
3 …
4 Profit!
17:00 : Everything you always wanted to know about IPv6 but were afraid to ask.
18:00 : Open recipe burgers (with secret sauce).
21:00 : Evening entertainment: Powerpoint karaoke hosted by fs111.
After that : something involving liquids.

Sunday:
12:00 Hungry-Hacker is hungry. Breakfast.
15:00 lightning talks:
Such diverse subjects as: Google summer of code, The talk too trollish to
mention, How to get  yourself a lot of work that you didn’t plan by being
creative, Something about something, Awesome talk will be awesome, …
(open stage, schedule will be on the wiki, add your lightning talk there)

Registration:
Is not necessary but it would be nice to give us an idea on how many of you
to expect so we have enough chairs and secret sauce.
Please add your name: http://www.doodle.com/bg5×7xrbcg5z9h8q
Feel free to invite your friends.

[0] Keep an eye on http://0×20.be/ for the latest agenda updates,
and maybe follow the bird on http://twitter.com/HSGhent
[1] http://wiki.openwrt.org/oldwiki/tableofhardware


ubuntu-be mailing list / mailto:ubuntu-be@lists.ubuntu.com

It’s there:

Grotere kaart weergeven

My toughts on Hamburg Mannheimer

For the english, I’m sorry this text is in Dutch. You can use Google translate if you’re interested.

Waar het allemaal over gaat (volgens de vertegenwoordigers van MHI):
Q: Wil je nog centjes hebben als je op je 65 thuis zit?
A: Ja

Q: Met de huidige crisis, vergrijzing, sociale onzekerheden etc…, is
er een kans dat je niet veel of niets krijgt. Heb je dit liever of wil
je graag véél meer centjes hebben?
A: Ja meneer/mevrouw, ik wil graag véél meer centjes, net zoals
iedereen. Hoe meer hoe liever.

Q: Wat kan je doen om hiervoor te zorgen?
A: Pensioensparen, ge ziet het tegenwoordig overal.

Q: En hoeveel interesten krijgt ge daar op?
A: Kweet et niet goed, ik denk 2 of 3% ofzo, maar het is fiscaal
aftrekbaar!

Q: Ik ga u informeren over een product die u 9% + het fiscaal voordeel
kan bieden. Zou je dit tof vinden.
A: Meer centen krijgen, zal wel zijn.

HM-medewerker: Wij nemen je centen, en steken dit bij een bank waar je
anders zelf niet in kan investeren omdat je daar niet rijk genoeg voor
bent, en halen daar enorme winst uit!
A: Hoe gaat dat dan?

HM-medewerker: dmv fondsen en beleggen en van die bank-zaken, net zoals
grootbanken, maar dan veel beter. Wij/zij hebben geen last gehad van de
crisis. Ze zijn namelijk super!

A: Waaw!

HM-medewerke: Wij geven je 9% op je centen!
Laat me even berekenen voor jouw leeftijd, op hoeveel jij kan opzij
zetten etc… en ik geef je een enorm bedrag, tot 3x wat je bij de
gewone bank krijgt. ** hocus pocus **

A: Dat is weer Waaw!
Nog enkele vraagjes:
- Wat zijn de instapkosten?
- Kan ik de algemen voorwaarden krijgen?
- Heeft u een blanco voorbeeldcontract (eg: offerte)?
- Wat zijn de algemene kosten?
- Wat kost het als ik wil overstappen van fonds?
- kan je me een voorbeeld geven van iemand die dit reeds gedaan heeft?
Succesverhalen zijn altijd leuk om horen.

HM-medewerker:
- Officiële documenten kan ik je niet geven (om onbekende reden)
- Van die instapkosten kan ik je niets vertellen, dat weten ze in
Brussel wel.
- Overstappen? waarom zou je dat willen doen? Neen ik heb daar geen idee
van
- iemand die dit reeds gedaan heeft? Sorry ik doe dit zelf nog maar 2
jaar en de mensen die bij ons aangesloten zijn hoor ik niet meer.

Dan denk je (ik althans):

Ach, het zal wel niet zo slecht zijn als het gevoel dat ik er nu over
heb zeker?
Ga ik eens het inernet raadplegen.
Zeer interessant.
Overal is er info te vinden over hun product, maar op hun eigen site’s
is er nergens concrete sprake van kosten, instapkosten, voorwaarden,
zekerheid en andere dingen die ik ZEKER wil weten voor ik mijn centen
aan iemand geef.

Dus ben ik hierbij vereerd dat ik je kan informatie kan verschaffen die
de HM-medewerker niet kon geven.

Read the rest of this entry »

Download 4chan images automatically with this simple script

I like to spice up my desktop with various wallpapers and have to say, that /wg/ on 4chan has been a great provider.
But keeping track of all the images, shifting forth and back and forth again between the 10 pages has been taking too much effort.
So the solution to avoid spilling too much time lurking on that imageboard, I just wrote a bash script. (Sorry Windows users)

Be careful, as this script might run a while before it finishes.
You can modify the script as you like.
You might want to remove the user-agent string or the -nd option or ad a -x for that last wget call, etc…

I’ll post later on how I actually remove the duplicated images ;)
A hint for people eager to know: fdupes

fdupes -r -f . > duplicates && echo ./duplicates > duplicates && rm `cat duplicates`

This would actually throw errors when there are spaces in the filenames.

So it was a long, verry long night.
The spirit driving me was like this:

But in the end, it felt more like:

How does your website sound?

Just discovered this awesome single service website: cordeorgan.com.

The website turns any website into ‘music’ on a rather brilliant way.
The codeorgan takes all characters in the <body>…</body> part of webpages, drops all non-musical scale characters.
It then applies an algorithm to the number of found resembling characters and uses the output to choose the hight of particular tones, the synthesizer effects an the drum loop.

Fosdem is …

image

image

image

image

image

Its amazing

Going to Fosdem 2010

FOSDEM, the Free and Open Source Software Developers' European MeetingIt’s finally there. The 10th edition of Fosdem.
For the people whom don’t know Fosdem (yet):It’s the finest free and non-commercial event where FOSS developers and communities can meet.There are a lot of interesting talks and demo’s, food, drinks, booths, and if you search good enough you might encounter a (real) girl.
And the best thing… it’s in Belgium :) Here’s a list of talks I’d like to attend

Saturday

  • 11:45 to 12:30 Evil On the Internet

    This talk will show you live examples of these sites, explain how they work, and tell you what we currently know about the criminals who operate them.
    There’s a lot of evil things on the Internet if you know where to look for them. Phishing websites collect banking credentials; mule recruitment websites entice people into money laundering; fake escrow sites defraud the winners of online auctions; fake banks hold the cash for fake African dictators; and there are even Ponzi scheme websites where (almost) everyone knows that they’re a scam. This talk will show you live examples of these sites, explain how they work, and tell you what we currently know about the criminals who operate them.

  • 13:15 to 13:45 Mozilla Europe

    General Introduction followed by an update on the work of Mozilla in Europe.

  • 13:45 to 14:00 Mozilla Foundation

    Latest MoFo news and projects.

  • 15:30 to 16:30 HTML5
  • Read the rest of this entry »

Youtube to become your default online Radio

Youtube has created a new interface to its original one that meets the needs of people who used Youtube as some internetradio.

Make sure you don’t miss out on the “Mix Tape” tab.
It’s not only handy, but it gives you the opportunity to find some other awesome artists.

Why you should read your ISP’s Custommers Conduct Code

The idea:

Install ConnectBot on my HTC Hero, connect to my home ssh server to hook up with my Screen session.
‘Why?’ you ask? Because we can!

The process:

  1. Create a DynDNS account
  2. Configure my router to automatically update the DynDNS service
  3. Set up the ssh daemon on my desktop
  4. Set up the screen session and configure irssi
  5. Forwarded the default ssh port (22) to my desktop PC which has a fixed IP
  6. Drink a coffee.
  7. Added the credentials needed to the ConnectBot’s configuration

Read the rest of this entry »

I like Pie

Read the rest of this entry »