News for hackers. Stuff that matters.

wnesensohn

Re:Espresso and Open Source Hardware? on Wednesday March 29, 2023 @12:16PM (#35359360)
Indeed, the Robot is a wonderful piece of good old engineering, and it makes fantastic espresso without much fuss. Haven't had to do any maintenance since I got it, almost four years ago.

And best of all, shameless plug ahead: It's easy to hack, for example if you want to add much needed electronics, like I did with this scale here: https://youtu.be/awvB3pJCmEo (Oh the irony, but some things just need to be done.)

Re:Christopher Alexander has died on Friday March 18, 2022 @06:15PM (#30728231)
I'm glad I stumbled upon his books when researching design patterns early on in my career. His writing in 'The Timeless Way of Building' left a big impression on me, precisely because it didn't reduce building to a sequence of mechanical steps which are to be followed exactly, but allowed, even called for, gaining a deeper understanding for quality. It's hard to express, but he did a stellar job at it.

It's somewhat ironic that he is said to have laid the foundations of the design patterns movement which, I don't know when, must have taken a series of wrong turns to end up where it did.

Thank you Mr. Alexander for writing about these fuzzy things which dare to be named.

Re:On Smoking on Monday May 31, 2021 @05:54PM (#27348409)
Of course this is purely anecdotal, but I also smoke rarely when drinking, and only then. Some nights up to half a pack, sometimes just one or two, but only two to three times a year by now. Interestingly, I have no desire to smoke whatsoever when not drinking, not even a hint.

Something in my brain seems to be wired such that I'm repelled by the taste when it's not in the "right" setting. Even if I wanted, when I only had a beer or two I get so sick from it that I have to stop almost immediately.

It might be that I'm just super lucky, but I feel like there is more to it than that.

Re:Catala: A Programming Language for the Law on Thursday May 06, 2021 @05:00AM (#27060704)
I agree on all accounts, however I've always taken "Law is a programming language" or, maybe better, "Law is a program" as more of a metaphor. I see many similarities between law and computer programs, it's just that a law is a program written for humans (judge, jury, ...) to interpret, whereas a computer program is written for a computer.

Thus I think any attempt to translate a written law into something a computer can interpret as a failure, because the interpreter is not optional in the law. The interpreter is part of it and constitutes a vital piece of it, and without it written law does not make a lot of sense at all. Still, it is, in my view, a program which can be "executed", just not without a lot of context.

Re:Oldskool Demo on a 7 Segment Display on Saturday February 18, 2017 @07:10AM (#13674546)
Regarding point 3: At 150 modules consuming about 25W each, your LED wall is consuming about 3750W max. An 80" TV will consume about 300W.

Power consumption of the LED wall will, however, be highly dependent on the displayed content. A white screen will consume most, a black screen basically nothing, but displaying only dark images is not exactly what LED walls are usually used for.

The equation is simple: The brighter, the more power you'll need, and an LED wall is, as you say, far brighter.

Re:Writing a Faster Sorting Algorithm on Tuesday January 03, 2017 @12:36PM (#13310949)
No, f = O(n log n) means that f doesn't grow significantly faster than n log n. That is true for f = n log n, but it's also true for f = n. The "or better" is implicit by using big-O.

Note that this wouldn't be true if the standard said that it has to be Θ(n log n).

Re:Fitbit is reportedly buying Pebble for around $40M on Thursday December 01, 2016 @02:54AM (#13077943)
You probably tried this already, but for reference there is an easy fix for the screen issue which seems to work for most. Google "Pebble display fix", takes 5 minutes max.
Es heißt "unhöflich", und da fehlt ein "dass" (...gehe davon aus, dass wir alle...).

Stilistisch etwas besser wäre: "Es tut mir leid, wenn das unhöflich wirkt, aber ich gehe davon aus, dass wir alle unseren Schreibstil verbessern wollen." (I'd say the first comma should be left out, but I have the tendency to leave out vital commas as well, so...)

;)

Re:Interactive Algorithm Visualizer on Sunday May 22, 2016 @05:47PM (#11750428)
The visualizer is really nice, the examples could use some work though.

Selection Sort, for example, makes the algorithm look extremely (impossibly) good at first glance - O(n) - because it's not showing the majority of the steps.

Instead of

    for (var j = i + 1; j < D.length; j++) {
        if (D[j] < D[minJ]) {
            tracer._select(j);
            minJ = j;
            tracer._deselect(j);
        }
    }
it has to be

    for (var j = i + 1; j < D.length; j++) {
        tracer._select(j);
        if (D[j] < D[minJ]) {
            minJ = j;
        }
        tracer._deselect(j);
    }
Bubble Sort has the same problem, as do Quicksort and Mergesort.

Normally I wouldn't mind, but these examples are intended for beginners, and it might give them a false sense of time complexity for these basic algorithms.

Re:Inside the Volkswagen emissions cheating on Monday February 01, 2016 @04:10PM (#11015477)
These look like diagrams from Bosch Otto ECUs (ME series).

FWIW, the ECUs in question (EDC17) use much more descriptive names:

Epm_nEng - engine speed; InjCt1_qSetUnBal - set quantity for first injection (roughly); VehV_v - vehicle speed

I much prefer the EDC17 style, but your mileage may vary.

I have only written very few pieces of code which I'm not ashamed of right now. A few functions here and there which make me smile when I read them.

But despite that I have the feeling that I usually improve the code I touch. I don't know if that's a good thing, as it means that I usually learn from mistakes I had to make by myself, but at least it's learning, right?

I try to minimize the amount of code I write and don't actually learn on. If that code should become the majority I know that I'm doing it wrong.

I'm coding for only 15 years now (10 years full-time), but I hope that I'll never stop to be ashamed of my code.

Re:Show HN: My x86 emulator written in JavaScript on Friday October 18, 2013 @07:34AM (#6570805)
For reference, that's about as fast as a Motorola 68030 @50MHz [1] which was used in the AppleIIx, and while that was no slouch when it was released, you wouldn't want to run a modern development environment on such a machine either ;)

[1] http://en.wikipedia.org/wiki/Motorola_68030

Re:A Cheap Spying Tool With a High Creepy Factor on Sunday August 04, 2013 @02:23AM (#6154856)
A Windows Phone App which uses the Location Service is required to have a setting to enable/disable the use of this service[1].

It's probably not as comfortable as the solutions of iOS/Android, but it gets the job done.

http://msdn.microsoft.com/en-us/library/windowsphone/develop... - 2.7.3

Re:A preview of LightTable 0.5 on Thursday July 18, 2013 @03:51AM (#6062364)
I'll be honest with you: I'm maybe not the one to give proper advice on paredit. I'm using C# on my day job, and as such have no use for paredit (I do use ViEmu for VS though, which makes VS bearable) for most of my programming tasks.

Also, I've never done anything in clojure. I expect it to be a similar experience to CL, but the different types of parenthesis might have an effect on using paredit efficiently.

That said, I found that the following mapping really makes a huge difference when working with sexps & evil-mode:

C-l: paredit-forward-slurp-sexp C-k: paredit-backward-barf-sexp C-j: paredit-backward-slurp-sexp C-h: paredit-forward-barf-sexp

Your mileage may vary, of course. I mapped it this way because my fingers dictated it, and it plays well with vim/evil.

As to how to actually use these commands: Try them out on a few sexps, it'll be clear to you pretty soon. Also be sure to check out Emacs Rocks! ep14 (https://www.youtube.com/watch?v=D6h5dFyyUX0), it's well worth the 3:40.

I actually find learning paredit to be very similar to learning vim: You start with almost nothing (maybe hjkl in vim, but even that takes a while to get used to), and slowly add new tricks to your tool belt. Also like with vim, everyone has their own style of using the tools.

Of course, there's a ton of other things in paredit which can improve your efficiency which I haven't added to my muscle-memory yet. It's just that I found barfing/slurping to be the most bang for the buck, so I added them first.

Re:A preview of LightTable 0.5 on Wednesday July 17, 2013 @03:36AM (#6056566)
Honest advice: The power of paredit lies not in managing the closing parens. I found that the benefits of paredit show only when you use barf/slurp/split/join. Keep the paredit cheat-sheet around (http://www.emacswiki.org/emacs/PareditCheatsheet) for quick reference, and if you're anything like me and don't like the emacs-meta-ctrl-style key-combos, customize the keys, I've found the defaults to be quite lacking for vim/evil users.

Using paredit only for parens-matching feels to me like using only hjkl in vim. While you can use vim this way, you won't fully reap the benefits until you start to use the other movement commands.

While your observations are definitely true for the "older" generations (the ones for which many tombstones had to be carved), I'd say that title fetish is fortunately declining quite rapidly.

For example, not so long ago it was common to call wifes of doctors "Frau Doktor", but I've never in my life heard a person < 60 years saying that to the wife of a doctor.

Granted, there are still some strange titles floating around which do not mean much, but they're also fading away quickly. And even though many people may hold a title, my personal observation is that they're shown only very rarely.

So while Austrians had a strong title fetish, I wouldn't say that's neccessarily true anymore. Especially not for the upcoming generations. So don't expect too much title fetish in Austria, you might be disappointed. But be sure to visit the "Zentralfriedhof" in Vienna, it's one of the largest cemeteries in the world and walking through it is a wonderful journey through the past, packed with a plethora of stories.

Re:Take control with your Raspberry Pi on Saturday February 09, 2013 @05:44PM (#5194402)
Theres somewhat hidden extensive technical information on the developers blog at http://piface.openlx.org.uk/ with the schematic.

The chips on the top are actually a simple SPI IO extender (MCP23S17SP) and a power driver (ULN2801A), so the extension won't run any code whatsoever.