Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror
User Journal

Journal Journal: Chronicle: Got my Raspberry Pi 3

So, i got a Raspberry Pi 3, and it arrive the day after Pi Day. But, as i purchased it from the UK, and they don't have a Pi Day, it's somewhat understandable. My Ukranian coworker asked me about P-day, and in the ensuing discussion she explained that in Russian it is pronounced pea.

User Journal

Journal Journal: TBD: Posted

The test was responded to, an i tried my hand at writing a JE for it. I quickly came up with something on my mind, and twisted it for the comment below, keeping it short.

Nothing was quoted, so the post had to include whatever material was being comment on, as opposed to specific quotes. Nonetheless, it's a creative effort that could be fun and challenged, if taken seriously (within reason). I'd like to see other people try it.

User Journal

Journal Journal: TBD: Beautiful Soup 4

Well, as always, i'm in for some good soup. But what's a guy to do with no stock ingredients, pot, or heat source? Well, as any good hacker, impossibility is what gets me interested.

Just because i'm in the back room, doesn't meant i don't know what is going on up front in the smelting factory. While the exact configuration of the hot mixture may vary from day to day, the basic structure is usually the same, save some weird alloys. Time to experiment, eh?

User Journal

Journal Journal: TBD: The retroactive JE 2

One thing i don't like about JE's, is that comments are disabled after a bit of time. That makes it difficult to comment on a topic found much later, that you want to come back to, or to contact a user who no longer posts. OTOH, the author can edit old JEs's, which i usually use to correct spelling mistakes when i go back to a JE some time later. The problem with that though, is the ability to post something marked with an old date, but actually written much later. Without revisions or the li

User Journal

Journal Journal: Rant: Android namespaces and ids 3

I hate Java, i hate Android development, but i repeat myself. And that's exactly what i hate about them.

In Android, objects have their own namespaces, under R. There's R.class, R.mipmap, R.layout, R.color, R.integer, and many more. So, the namespace of the layout (where you usually add objects) is under R.layout, the image on a button can be under R.mipmap. Nice.

User Journal

Journal Journal: Stupid Code: Using if() to set a value 4

Here's the latest example of something i have seen way too often:

if(getListView().getCount()==checkedItemCount) chk.setChecked(true); else chk.setChecked(false);

What's the point of obfuscating your code with an if()? This isn't conditional. You want to set it to the same boolean value as the evaluated expression. Obviously, the clearest way to write this (without changing names) is:

User Journal

Journal Journal: Verbiage: Seeing more often a weird sentence formulation

I seem to be seeing more often a weird sentence formulation. A book talks of passing to a function a variable, an article mentions "signed into law a bill," and plenty lately of others. While normal to be found this formulation in other languages, it sounds in English rather awkward.

Slashdot Top Deals

The sooner you fall behind, the more time you have to catch up.

Working...