Rants, Web

Gallery3 + WordPress 3.2.1 = FFFFFFFUUUU

Gallery3+WP=FFFFUUUU

I know that a WordPress on top of Nginx isn’t all unique but unfamiliar to me, but this fiddling was ridiculous!

I have set up a Gallery3 install (since they’ve stopped maintenance of Gallery2 I believed that I should also use the most active and stable version). Oh boy, was that awful: I realized late that they have intended to depend on Javascript; signs of a design approach I am strongly against. Later, after much pain of creating a custom theme for my gallery (deserving it’s own rant mainly containing one four-letter word rhyming with ‘truck’), I wanted to be able to import images from this to WordPress using the Gallery3 Picker plugin. Given that it had rave reviews and a good method of integrating with WordPress, I thought the install would be painless. I guess anything mainstream written in PHP is going to be anything _but_..

So, after much frustrating FFFFFFFUUUUUUUUUU away from sharp pointy objects and a large crowd of random victims, I found this (gallery3-picker/picker.php line 320):

320
if ($http_status == 302)

Now, the plugin tries something smart: it first tries the /index.php then if that fails retries with the plain URL – assuming that it does SEO rewrites.

If you took a moment to examine my Nginx setup you may have noticed this line:

location ~ \.php$ {
        try_files $uri =404;

.. So if it cannot find a file, it throws a 404 – naturally. Delving into it, the final URL the plugin was after adds a /path/to/rest at the end: so the actual URL hit for me would return 404 at the first pass, not to retry the next.

I have my tweak at least:

320
if ($http_status == 404 || $http_status == 302)

Geez, it’s as if you are hungry but the only option is a greasy burger at a fast-food joint you wanted to avoid. Then you discover that your patty is underdone and they demand that you use their unintuitive stove to cook it yourself. Hmmm.. this food talk makes me slightly less angry and more hungry – time for lunch!

Standard
Random, Rants

Some people insist that they’re city folk, which I fail to understand. Who the hell likes to be in a constantly noisy, crowded environment – it causes (di)stress needlessly.

The following is just a small subset of reasons why I like it here in this little market town:

Link
Web

Twenty Eleven Post Formats – What Are They and Why Should I Care? A great post explaining what the available post types are and what they do in the Twenty Eleven theme (which is the ‘parent’ of this site’s theme).

In this theme, I’ve tweaked the ‘link’ type behaviour after I surprisingly found out that the ephemera widget takes the first link in ‘link’ types. It seems to favour single links-per-posts only, and I tend to get a little wordy (like this ‘link’ post.)

Link
Android, Random, Rants

Java is like a variant of the game of Tetris in which none of the pieces can fill gaps created by the other pieces, so all you can do is pile them up endlessly.

Steve Yegge (2007, Codes Worst Enemy)

From cat -v

Installing a fresh Eclipse, then running into getting the Android SDK to work with it – another activity that wants me to gouge my eyes out. Goddamn, this is why I really like vim.

I really wish we can break up, Java

Quote
Working for SchIT - 1
Nostalgia, Rants

Holy shit! It’s Working for SchIT!

Restoring web stuff without backups is almost impossible unless you are the paranoid type (in which, you wouldn’t have it publicly accessible in the first place). I say nearly since the ‘web is both wonderful and horrid about storing anything and everything put into it. Most of everything I’ve done in the past I usually look back and think “what the fuck, is this person drunk/on crack/not out of primary school?” and trawling my past trail of simply awful drivel did reveal one ‘gem’ (in the same vein as ‘salt of the earth’) – Working for SchIT.

For a refresher: Working for SchIT was a very sporadic web comic placed in my university webspace, that mainly focused on the lives of students/post grads in the School of Information Technologies. Of course, at the time, I was a student myself and the attitude that things were going downhill in passing pretty clueless students strongly influenced the writing. The ‘SchIT’ name-change of the formally known (perhaps old-fashioned sounding?) School of Computer Science (‘and Technologies’) was the straw that broke the camel’s back as it were. Those involved at the university at the time did find some amusement in the method of shortening the name.

As a disaffected university student (I give credit to Despair.com for that one), I graffiti’d my notebooks with plenty of ideas – but I didn’t process many beyond the sketch-phase. So, from the festering cesspools of the interwebs, I give you (what I could find) 3 out of the 4 comics in existence of Working for SchIT:

Issue 1

Working for SchIT - 1

Working for SchIT - We really hate cheating

This comic was written completely by Yvan (it does show, if you know him personally). He was the first to scrawl the outline on a napkin (probably) over coffee; at which we had a good chuckle – I had to get this prettified. The original sketch is in one of my scribble-books – used to spare some space in my notebooks for actual notes. This was one of the earliest examples of my use of GIMP (and shows how much of a n00b I was).

Also noteworthy: Vlad is based on someone Yvan and I know personally, though his appearance here was completely contrived. I wonder if it’s obvious who it is..

Issue 3

Working for SchIT - 3

Working for SchIT - Do not operate heavy machinery

Skipping issue 2 (I can’t find it), I remember not being motivated (see above) about writing something witty. I do recall that one day where one of the societies was giving out free ‘beer’ on a recruitment drive – which I did in fact retrieve – for joining. The society was relevant, but I didn’t actually drink the VB – it was for someone else (I didn’t ask either). I did eat the BBQ sausage-in-a-bread-slice though. Regardless, one really needs to question themselves if they are any self-respecting human for possessing such a thing.

Issue 4

Working for SchIT - 4

Working for SchIT - Sleep is for wimps

Pretty self-explanatory.

Wow, how quaint. I don’t think I’ve progressed far with my use of GIMP, but I know the reason why I don’t do illustrations like this more often: they require a bit of work. I guess I still share that ‘disaffected university student’ attitude yet..

Standard

A little pick-me-up can go a long way.

Sunday Espresso

Sunday Espresso

Graphic, Random

Sunday Espresso

Image
Random

During LBF 2011 someone noticed they were ‘drinking a beer you’ve probably never heard of’. Though that was tweeted with the question ‘#amiahipster’ they moments before noted the lack of hipsters at the beer festival. It must be the Morris dancers…

Link