HNHacker News
TopNewBestAskShowJobs

Luyt

3,269 karma · joined July 21, 2009

Software developer, Netherlands. motoom@xs4all.nl Python, C++, C, and others.
submissionscomments
Luyt··on On Secretly Terrible Engineers
I can do that in Python ;-)

    a = [7, 9, 2, 8] 
    print sum(sorted(a)[-2:])
Luyt··on On Secretly Terrible Engineers
I thought he meant the 'Borg' design pattern ;-)
Luyt··on On Secretly Terrible Engineers
> I have seen folks coming highly recommended

Who did recommend those useless candidates to you? A recruiter, perhaps? Read this horror story: http://bostik.iki.fi/aivoituksia/pages/recruiter-anxiety.htm...

The good developers generally have no trouble finding jobs, and therefore don't need recruiters' help. With the best and the brightest taken off the pool, the recruiters are mostly left with merely the mediocre and the bad ones. This in turn has collateral effects: any developer coming in via a recruiter already carries the stigma of "not good enough to find job on their own".

Luyt··on On Secretly Terrible Engineers
Another way to do it, assuming that the list can be mutated: find the largest number in the array, store it somewhere and remove it from the list. Do this a second time. Then add those two numbers.

It evades sorting the array, but you have to search it twice.

    a = [7, 9, 2, 8]
    
    highest = max(a)
    a.remove(highest)

    nexthighest = max(a)
    a.remove(nexthighest)

    print highest + nexthighest    
Optimisation: just scan the array once, and keep track of the two highest numbers.

    a = [7, 9, 2, 8]

    highest = None
    nexthighest = None

    for item in a:
        if not highest or item > highest:
            highest = item
        elif not nexthighest or item > nexthighest:
            nexthighest = item

    print highest + nexthighest
Luyt··on Microwave Oven Diagnostics with Indian Snack Food
If you microwave slices of smoked cheese (on baking paper), they become crispy crackers (lowcarb, even).
Luyt··on Browser Vulnerability to Superfish: A Fact-Finding Trip to Best Buy [pdf]
Use some software with which you can do remote maintenance on your parents' computer(s).

Or, introduce them to more stable OSses, like Ubuntu instead of Windows. That worked for my neighbours ;-)

Luyt··on Browser Vulnerability to Superfish: A Fact-Finding Trip to Best Buy [pdf]
the website that folks have been linking said that it didn't detect Superfish (sorry, I'm typing this from a phone)

The website you're referring to, is https://canibesuperphished.com/​

Luyt··on Pygments, a generic syntax highlighter
Freenode #pocoo is also the channel were Flask users hang out.
Luyt··on Fuck It, I'm Going Back to Firefox
Restart Firefox, then choose History/Restore previous session.
Luyt··on Has modern Linux lost its way? Some thoughts on Jessie
I think that had to do with some patents on the truetype font hinting interpreter in Freetype.
Luyt··on Apple's libc shells out to Perl to implement wordexp
Scroll down, there are many more gems in the comments!

...and what a spelling errors:

"This kludge is needed because /bin/sh seems to set IFS to the defualt even if you have set it; We also can't just ignore it because it is hard/unplesent to code around or even a potential security problem because the test suiete explicitly checks to make sure setting IFS 'works'"

ESR writes about sloppy spelling: "Write in clear, grammatical, correctly-spelled language. We've found by experience that people who are careless and sloppy writers are usually also careless and sloppy at thinking and coding (often enough to bet on, anyway)."

Luyt··on Why Do Cats Love Boxes?
Or on mousepads! Especially the same moment when you're working behind the PC.

http://www.luyt.org/pictures/cats/mousepadcat.jpg

Luyt··on Meant to Keep Mosquitos Out, Nets Are Used to Haul Fish In
Would this be a solution to the problem? -> Make mosquito nets that disintegrate when soaked in water.
Luyt··on The hazards of too much stuff
I translated Paul's article on Stuff in Dutch, it can be found at http://www.michielovertoom.com/articles/paul-graham-spullen/
Luyt··on New police radars can 'see' inside homes
This quote from the article made me think immediately of the 'motion trackers' as used in the Aliens films, https://www.youtube.com/watch?v=1yNOT6lWedA

"The radars work like finely tuned motion detectors, using radio waves to zero in on movements as slight as human breathing from a distance of more than 50 feet. They can detect whether anyone is inside of a house, where they are and whether they are moving."

Luyt··on Co-Working on Vacation: A Desk in Paradise
Did you have to obtain any special visa or permits for this?

Do you happen to know if it also works the other way round? For example, suppose I'm from the EU, can I travel to Australia as a tourist and legally telework from there?

Luyt··on Co-Working on Vacation: A Desk in Paradise
Did Mr. Hrescak have a special visum for this, to be able to work in the EU as an US citizen? (I assume he's an US citizen because it is meant he's from Facebook).

It doesn't work the other way round. If I remember correctly, one is not allowed to telework from the USA on a tourist visum.

Luyt··on Co-Working on Vacation: A Desk in Paradise
I wonder about the legal aspects of this. I guess one cannot come from Asia/Europe to the USA on a tourist visum and legally telework from there. Other countries seem to have trouble with foreign teleworkers, too. Wasn't there an article about a police raid on a Thai coworking space, a while ago?

But I guess it's allright if you're from Sweden and travel to Spain to enjoy the Mediterrean during the day and work in the evening (both countries are in the EU).

Luyt··on Salary negotiations for techies (2011)
> DON'T TELL THEM HOW MUCH YOU ARE CURRENTLY BEING PAID OR GIVE THEM A RANGE. [...] No matter what, don't give them a number. Make them give you a number first and negotiate from there.

What tactic do you use for this?

Luyt··on Salary negotiations for techies (2011)
What do you think will happen? Will the engineers earn more than the managers, or will the managers salaries go up just because the engineers earn more?
Luyt··on Hacked. A Short Story
He didn't configure exim4, for which he was hired. He wasn't hired to investigate the compromise, which he did do.
Luyt··on How We Failed at OpenStack
The author writes:

"As we finalize our installation setup for CoreOS this next week (after plowing through Ubuntu, Debian and CentOS)"

Pity he doesn't elaborate on that. I understand that CoreOS is his choice, but it would be nice to know why the other distros aren't.

Luyt··on I made a debugger that draws the state machine of the program
And you'll immediately see it when your program hangs in a loop ;-)
Luyt··on I Almost Let My Failed Startup Destroy Me
http://www.cookingforengineers.com/

...featuring a novel kind of diagrams which show you when to do what, for example, look at the bottom of http://www.cookingforengineers.com/recipe/227/Ratatouille

Luyt··on Please Do Not Be a One Trick Pony
I visited a workshop a few weeks ago, and also attending was a COBOL programmer (in his 50s) who still was active on that platform.

I wonder whether it could be lucrative to learn COBOL (and CICS!) and work on those legacy systems that are still out there.

"While CICS has its highest profile among financial institutions such as banks and insurance companies, over 90 percent of Fortune 500 companies are reported to run CICS along with many government entities." - Wikipedia

Luyt··on ZFS vs. Hammer
That's a silly video. There's no need to destroy a perfectly functioning hard drive after it has been physically removed from the RAID.
Luyt··on ZFS vs. Hammer
Indeed. This is the "Appeal to Lack of Authority" fallacy [1]

Authority has a reputation for being corrupt and inflexible, and this stereotype has been leveraged by some who assert that their own lack of authority somehow makes them a better authority.

Starling might say of the 9/11 attacks: "Every reputable structural engineer understands how fire caused the Twin Towers to collapse."

Bombo can reply: "I'm not an expert in engineering or anything, I'm just a regular guy asking questions."

Starling: "We should listen to what the people who know what they're talking about have to say."

Bombo: "Someone needs to stand up to these experts."

The idea that not knowing what you're talking about somehow makes you heroic or more reliable is incorrect. More likely, your lack of expertise simply makes you wrong.

[1] http://skeptoid.com/episodes/4217

Luyt··on The X-15, the fastest manned aircraft ever made
From the book Ignition! (http://library.sciencemadness.org/library/books/ignition.pdf)

"But something more potent than alcohol was needed for the X-15 rocket-driven supersonic research plane. Hydrazine was the first choice, but it sometimes exploded when used for regenerative cooling, and in 1949, when the program was conceived, there wasn't enough of it around, anyway. Bob Truax of the Navy, along with Winternitz of Reaction Motors, which was to develop the 50,000 pounds thrust motor, settled on ammonia as a reasonably satisfactory second best. The oxygen-ammonia combination had been fired by JPL, but RMI really worked it out in the early 50's. The great stability of the ammonia molecule made it a tough customer to burn and from the beginning they were plagued with rough running and combustion instability. All sorts of additives to the fuel were tried in the hope of alleviating the condition, among them methylamine and acetylene. Twenty-two percent of the latter gave smooth combustion, but was dangerously unstable, and the mixture wasn't used long. The combustion problems were eventually cured by improving the injector design, but it was a long and noisy process. At night, I could hear the motor being fired, ten miles away over two ranges of hills, and could tell how far the injector design had progressed, just by the way the thing sounded. Even when the motor, finally, was running the way it should, and the first of the series was ready to be shipped to the West Coast to be test-flown by Scott Crossfield, everybody had his fingers crossed. Lou Rapp, of RMI, flying across the continent, found himself with a knowledgeable seat mate, obviously in the aerospace business, who asked him his opinion of the motor. Lou blew up, and declared, with gestures, that it was a mechanical monster, an accident looking for a place to happen, and that he, personally, considered that flying with it was merely a somewhat expensive method of suicide. Then, remembering something he turned to his companion and asked. "By the way, I didn't get your name. What is it?". The reply was simple. "Oh, I'm Scott Crossfield."

Luyt··on UI Performance Decline – OS X Tiger to Yosemite [video]
Ah, yes, the flicker and delayed drawing. I noticed that also a few years ago with Windows applications. They used to be written with the Win32 API or MFC or even VCL, but when WinForms became popular it introduced a lot of ugly flickering, especially when resizing windows with many controls on them.
Luyt··on A plane that will be able to fly anywhere in the world within 4 hours
Burning hydrogen releases water vapour, while burning fossil fuels release carbon dioxide and water vapour. So, you could call it indeed more environmental friendly if you consider carbon dioxide harmful.

However, hydrogen doesn't occur on Earth in a pure state (at least not in mineable quantities). There are no hydrogen wells.

Creating the hydrogen (for example, by electrolysis of water) is expensive and generally a net loss of energy. Maybe storing energy in hydrogen is feasible if it's generated with excess nuclear or solar electricity.

← PreviousPage 3 of 34Next →