Profile cover photo
Profile photo
Jan Moren
Janne. In Osaka. And Okinawa.
Janne. In Osaka. And Okinawa.


Post has attachment
Blog: I've just released "Ruse", a small utility of mine for measuring the memory use of long-running processes, and present it in a way that's easy to understand and use.

Not very useful for most people of course, but if you do try it out, let me know what you think.

So, we're going to Singapore in a couple of weeks for our summer holidays. Need to get away from the daily grind of white beaches and coral reefs now and again.

* Any place in Singapore in particular we should go to for good food? Any place (or kind of place) to avoid?

* Is Singapore good for buying electronics, laptops, components and things like that? Or is it overpriced compared to Japan? Dangerous/easy to get ripped off? If it's worth it, where to go?

* Any good place for kitchenware? Especially good cooking classes?

*Anything else we should do? Our interests are food, walking, food, photography, food and food, more or less in that order.

Post has attachment
Blog: Retired my old beard trimmer. After 21 years. That's reliability.

Post has shared content
This is pretty much the definite argument against the recent Google thing: if Google really was passing over qualified white men to hire inferior women and other minorities in the name of diversity, the on the job performance would reflect it.

Instead, female engineers tend to outshine their male counterparts. I have heard earlier that Asian engineers perform better than white. If anything, Google is probably hiring too many white men, not too few, if they really want to hire for ability.
if the Google Manifesto was correct, then you would expect to see that Google was full of mediocre female employees, who had been hired by a process biased in their favour despite being inadequate to the task. Whatever the author of the manifesto thinks, Google does not believe this to be the case and as far as I can tell from industry blogs, it isn’t – female employees in tech are generally very good. This would, of course, be consistent with the hypothesis that the current selection process is biased against them.
If, on the other hand, one had a situation where the writers of windy conservative manifestoes about not getting fair treatment were in fact mediocre whiners who inflated their CVs, then that would be evidence that there wasn’t a bias in the recruitment and retention system, and that in fact there was probably an inefficiency caused by the extent to which mediocrities were able to bump along because their face fitted in a homogeneous techbro culture. The concentration on star engineers, senior executives and Sheryl Sandberg C-Suite geniuses is entirely wrong; the progress of gender equality in the workplace ought to be measured by the extent to which women can get into the ranks of time-serving dead-wood middle management roles.

True equality will be reached when mediocrities of all kinds exist at every level. The fact that minority hires are consistently excellent is an indicator that we aren't there yet.

Today I learned a new thing about printf. You can get the current column value anywhere in the output with '%n':

int colnr;
printf("%s%n%s\n", string1, &colnr, string2);

And you can set the field size dynamically with '*':

printf("%*d%d\n", -colnr, val1, val2);

This makes sure val1 and val2 are aligned right below string1 and string2. Use a negative "colnr" in the second line to left-align the value in the field.

Post has attachment
Vaguely thinking of getting a "convertible" laptop (where the keyboard folds back) or a 2-in-1 (where the keyboard detaches) and install Linux on it. I'll need a replacement for my aging - 5+ years - Android tablet sooner or later, and a "real" but small computer feels very tempting.

I mostly use the tablet for reading and surfing, and light gaming. Android gaming I can do on my phone, and surfing I can do on anything. But it would be great to have something very portable for lightweight software development. Android just isn't very good for that.

Question is what is out there that's both inexpensive and works OK with Linux (Ubuntu). I'm worried about locked-down bootloaders, and weird custom hardware with no support.

Thinking vaguely about the NEC LaVie Hybrid ZERO HZ300 (sounds like a can of beauty-enhancing low-calorie chuhai): A colleague has the Note Mobile (an ordinary, but small laptop) and swears by it for Linux.

Any other, similar ideas?

Today I learned that ImageMagick has set limits on things like image size, and that they're not based on technical limitations. If you're dealing with very large images and ImageMagick refuses to open them, go to /etc/ImageMagick-6 and edit "policy.xml" as root.

Based on my usage experience, I deduce that the most common use — as measured by time spent —for Windows 10 is to download and install Windows 10 updates.

True, I use it in a VM about once a month; your patterns may differ. Still, when every other OS in the universe(1) manages to download and install updates without impacting the user experience at all, I wonder why Windows still needs to suck up an hour or more and most of your CPU time to update itself.

1) Poetic license.

Post has shared content
Seems the Linux subsystem for Windows is rather badly implemented. Much slower than even running Ubuntu under a VM; worse, you seem to need to be root in the subsystem when using it.

If you need Linux, either run Ubuntu in a VM, or install Ubuntu and run Windows in a VM (that should overall be the fastest, least resource-intensive option).
Ubuntu WSL has been slowed down!

Running Ubuntu on Windows 10 (Professional, Enterprise versions only!) is a nightmare. Not only everything has to run with root (admin) rights, but it's simply dog slow. No chance to run fast Ubuntu applications with it. Since only a single user (root) can run, no chance to connect to (ultra fast) OpenLDAP or (much slower) Active Directory.

-> Dustbin.

Post has attachment
Mango från mangoträdet i trädgården.
Wait while more posts are being loaded