CMYK thumbnailing of JPEGs with Gmail/Google Mail

I peri­od­i­cally freak out when review­ing emails that I’ve sent, par­tic­u­larly to print­ers, using Gmail’s (hosted apps) web­mail inter­face. It has this habit of con­vert­ing CMYK JPGs to RGB thumb­nails really badly — but with­out appar­ent corruption.

Gmail getting CMYK thumbnails wrong

The blue in the image above is actu­ally a deep red!

Accord­ingly, while the colours are totally out of whack, there are no other arti­facts in the image. Nor­mally this just looks weird — some­times, in the case of logo vari­ants, it looks plau­si­ble but utterly incor­rect! My guess is they’re using an older ver­sion of PIL (we all know how much Google loves Python) prior to this March 2009 patch. Sounds like the same phenomenon.

Still, those peo­ple email­ing CMYK JPGs has to be a lit­tle bit niche, so I’m not heaps hope­ful of this get­ting fixed too soon! The main rea­son I care is because web inter­faces are so much faster than retriev­ing large attach­ments from IMAP stores.

# by Josh on September 16th, 2009 Tags: , , , , , , , , , , ,
| 1 Comment »

Server shenanigans

So Ubuntu is utterly refus­ing to install and I’m scared to use Gen­too, which was vaguely the next resort. And I’ve had enough of Cen­tOS’ absurd pack­age man­age­ment sys­tem (really, RPM does make things impos­si­bly dif­fi­cult com­pared to apt-based sys­tems). I’m going to try installing FreeBSD tomor­row and com­pil­ing bits and pieces, because that’s how metro stayed online all those years and whilst I don’t have Dale’s skill, I don’t doubt that the method­ol­ogy was sound. Plus, FreeBSD is one more envi­ron­ment to test this project on — a ded­i­cated server we were vaguely offered a few months back is run­ning NetBSD, so it’d be good to begin scratch­ing together a hand­ful of skills in that area, just in case!

On the plus side, I got all sys­tem con­fig­u­ra­tion stuff (esp. Samba, which can be a lot more dif­fi­cult than per­haps it should be at times) worked out last week (i.e. the sys­tem was nearly per­fect, but for being utterly unable to install even SRPM pack­ages of a more recent Python ver­sion), and Michael went through installing every­thing with me at work… we had to bat­tle Win­dows a lit­tle there, but even it relented. So close. Then I’ll spend heaps of time cut­ting lay­outs to markup and see­ing them work­ing, and non-Youthworks time tak­ing Satchmo for a spin (which will hope­fully lend itself to a cer­tain appli­ca­tion very nicely). The lovely thing about all this is I need Django to work for CYIADA, so I’m sup­ported in get­ting it up and run­ning, but then have enough ‘spare’ hours in the week that I can engage in free­lance projects that ulti­mately mean I know what’s going on with CYIADA and am mildly more com­pe­tent to make minor mod­i­fi­ca­tions as required accordingly.

Some of those projects might even feed back into the project, which would be a bonus — but even if they come to noth­ing, it’s worth­while for skills devel­op­ment alone.

# by Josh on July 29th, 2007 Tags: , , , , , ,
| 1 Comment »

Seek IT: Web Programmer for new Christian youth site

Fancy that.

Please be pray­ing we find some­one good (or, suit­ably sin­ful but repen­tant and appro­pri­ately tal­ented, because there’s nearly no such thing as a good person).

Ad proper after the break: Read the rest of this entry »

State of the web: An observation

If every­one were to stop hir­ing or out­sourc­ing to peo­ple that did rub­bish work for six months, that should be suf­fi­cient for them to either starve, find non-IT-related employ­ment (or at least IT-related employ­ment far enough away that they wouldn’t piss off the rest of us), or become at least slightly proficient.

Assum­ing that the aver­age IQ of devel­op­ers is not so dim that, if the Matrix were real, a room full of us would strug­gle to light an LED, this might even go some way to resolv­ing the gar­gan­tuan labour short­ages with which the indus­try is presently faced. Lat­est is that even Bangladore (or what­ever non-Westernised name they are want­ing to be known by now, I can’t remem­ber it) are antic­i­pat­ing hav­ing only one-third of required work­ers based on cur­rent growth rates within the next year or two.

Inci­den­tally, if any­one knows a decent devel­oper (prefer­ably with a Python back­ground, but that’s not essen­tial…) who would be keen on work­ing for a Chris­t­ian organ­i­sa­tion full time for about three months, pass on their details. I’m not fussed about work­ing from home or not, but ide­ally they would be based in Syd­ney and able to come into the CBD once a week or as required. Remu­ner­a­tion com­men­su­rate to expe­ri­ence and all the rest of that. Nothing’s finalised yet, but this would be for a start in early Jan­u­ary. After the three month period there would be occa­sional contracted/casual maintenance.

Just putting this out there in case anyone’s look­ing for work or has heard of some­one with the right skills that is. My strong pref­er­ence is for some­one who is aligned with the goals of the project to come on board (it’s a web­site for enabling Chris­t­ian youth min­istries to use the Inter­net more effec­tively… so, Chris­t­ian appli­cants who are moti­vated in the same ways by the same thing)… but if things don’t work out then obvi­ously first pref­er­ence is some­one I know/is rec­om­mended over hav­ing to do the whole CV-trawling, cold-interviewing trip.

Will post more once I get around to mak­ing some deci­sions (some­time after exams, which fin­ish next Fri­day, allow­ing me to catch up on about a month of untouched work!)

# by Josh on November 11th, 2006 Tags: ,
| No Comments »

Python is so cool

Python logo

Or maybe I’m just get­ting excited about pro­gram­ming again. I just dis­cov­ered django, and have decided that Python is a seri­ously under­rated lan­guage. It’s prob­a­bly as high-level as Rails, only all the cool and suc­cess­ful kids (that is to say, the ones that have been around a lit­tle longer than Base­camp. Not to fling mud at Base­camp, but I just don’t think I’d want to fully embrace a frame­work that’s so-much-more-than-a-framework — because, let’s face it, who had heard of Ruby before Rails?) are using it.

Part of the appeal is pos­si­bly the name. Di-jang-go. Di-jun-go. Say it with me (either way). *yells “jumanji” and hopes no-one notices*

It looks unfor­tu­nately web 2.0 but no mat­ter, hope­fully it’s use­ful. I remain by no stretch of the imag­i­na­tion a pro­gram­mer. It’s been too bloody long since I even pre­tended. Maybe it’s time to start again (only after next Thurs­day, after writ­ing and research­ing three large-ish asssessments).

# by Josh on October 13th, 2006 Tags: , ,
| 3 Comments »

Posting from BloGTK 1.1

Just for kicks, to see if it’s any eas­ier than using a plain old web browser to inter­face with the blog!

Any­way, BloGTK is a desk­top client for Word­Press which runs on Linux sys­tems. Nig­gly fea­tures I’ve dis­cov­ered in the last 30 seconds:

  • Can’t select text, then click the “hyper­link” icon, and have the anchor tags wrap around selected text — they appear to the right of it.
  • Com­pul­sory “tar­get” field in anchor gen­er­a­tion — which I don’t think (if I recall cor­rectly) is even valid in XHTML 1.1, pos­si­bly earlier.
  • Lack of built-in quick tags that Word­Press’ own post­ing inter­face has, namely for unordered lists, list items, and tag­ging of abbre­vi­a­tions, etc.
  • Iron­i­cally, it’s pos­si­ble to define your own tags, which can wrap around selected text just fine, whilst the “built-in” anchor but­ton doesn’t do this… Hmm, okay.

It’s really lit­tle things, noth­ing major — the for­mat­ting tags (strong, em, etc.) work just fine on selec­tions, which is great. It also has an inbuilt pre­view which (I’m 99% sure) func­tions using an inter­nal ren­der­ing engine (or part of the GTK toolkit, same thing), rather than mak­ing HTTP calls. A change that’d be inter­est­ing to see (although one which doesn’t affect me directly) would be the imple­men­ta­tion of either a WYSIWYG edi­tor, or sim­ply Tex­tile or Mark­down sup­port with XML­HttpRe­quest being used (or some­thing like it? I gather that’s a JavaScript thing, not hav­ing ever used it, so it mayn’t be usable like that.

Another thing that’d be nice is the imple­men­ta­tion of key­board short­cuts, just for text for­mat­ting stuff — so, Ctrl + B for strong and em tags, etc. And also the chang­ing of the cat­e­gory dis­play to a list of check­boxes in its own frame (or what­ever the term is in desk­top app inter­face design lingo) on the right of the post­ing area, instead of a drop­down — that’d allow posters to select mul­ti­ple cat­e­gories, more rapidly.

It’s a good sim­ple app (sorry… I know it’s prob­a­bly rather unsim­ple when you look at the code dri­ving behind it, but I don’t under­stand any of that Python stuff, so I’m just judg­ing on the inter­face), but a few nig­gly things mean I’d still pre­fer to use the native Word­Press web interface.

Edit: In part to see if it does, but also because I had another thought — the absence of a “Post­ing…” sta­tus win­dow is also some­thing which could be improved, just so the user doesn’t think the appli­ca­tion has crashed. It took a while here due to my ISP’s poor DNS per­for­mance, and had I not known why it was going slowly, I may have closed the appli­ca­tion think­ing it had crashed.