HNHacker News
TopNewBestAskShowJobs

thefifthsetpin

557 karma · joined May 15, 2013

submissionscomments
thefifthsetpin··on No script is too simple
I handle that by linking src/backup.sh as bin/backup Then if I rewrite it as src/backup.py I just change the bin/backup link to point there instead.
thefifthsetpin··on How Did Software Get So Reliable Without Proof? (1996) [pdf]
Proof is how the authors of this paper discovered that OpenJDK's java.utils.Collection.sort() was broken

http://envisage-project.eu/wp-content/uploads/2015/02/sortin...

thefifthsetpin··on Microsoft's underwater data centre resurfaces after two years
When you say "short term," how long are you talking about?
thefifthsetpin··on The Right to Repair could help address a critical shortage in school computers
> just that it be possible on some level.

Sure, and that's a reasonable thing to want. That's still not what the right to repair is about, though. It's about preventing arbitrary restrictions on your rights to repair, not about forbidding practical limitations on your abilities to repair (unless of course those practical limitations were created in order to impose arbitrary restrictions on your rights).

If Apple decide to integrate the battery & screen to shorten the electrical paths to that power-hungry component, then the battery becomes effectively non-replaceable. That might annoy you, but it's not a violation of the right to repair.

On the other hand, if Apple do things to ensure that only Apple repair shops can replace the battery (eg via cryptographic signing, secret APIs, or physical keys that they prefer to call screwdrivers) then they've run afoul of the right to repair movement.

There may be times when it'd be good to mandate replaceable parts (environmental motivations come to mind), but that shouldn't be the default -- those restrictions should be applied to individual industries in narrow ways and only as needed.

The right to repair movement is pushing for something that reasonably could be the default, and we would instead make exceptions for things that shouldn't be generally repairable (eg, perhaps modifications to an odometer should be tightly controlled.)

thefifthsetpin··on Motivation – Keli Language
If I were designing a functional language, I'd be thinking about whether data.splitBy or delimiter.split was useful even when not immediately invoked.

Consider this crude csv parser:

using splitBy:

    csv.splitBy("\n").map(csv_row=>csv_row.splitBy(","))
using split:

    "\n".split(csv).map(",".split)
split was the clear winner here. Given splitBy, I basically recreated split as a lambda.

I tried to create an analog to that where splitBy would come out looking better. I figured that if we didn't know the dimensionality of our data, then delimiters becomes an array of arbitrary length and we could pass data.!splitBy into something like delimiters.reduce. When actually writing that, however, I wound up recreating split again:

using splitBy:

    delimiters.reduce((accum,delim)=>accum.deepMap(data=>data.splitBy(delim)),[data])
using split:

    delimiters.reduce((accum,delim)=>accum.deepMap(delim.split),[data])
thefifthsetpin··on Microsoft Word now flags double spaces after a period as errors
Even assuming the goal is to get something like the below?

Mr.^Smith^turned^off^the^lights.^^Then^he^went^to^sleep.

thefifthsetpin··on A high school student created a fake 2020 candidate, and Twitter verified it
But... isn't he really the person behind the fake 2020 candidate? Seems like the process basically worked. At worst, twitter made a slightly embarrassing decision about who warrants verification.
thefifthsetpin··on Cloudflare silently deleted my DNS records
Even if cloudflare stopped publishing the correct MX records for a domain, wouldn't Cloudflare still be able to send email to the MX server that had been specified? Seems like email should at worst be down for everyone but Cloudflare.
thefifthsetpin··on Goodbye, Clean Code
The issue wasn't divergence. The issue was that there was no requirement that TextBlocks should behave like rectangles.

It's very possible that DRY could apply even where divergence is expected. Suppose we had a requirement that "A user should not be able to resize a TextBlock if they are not allowed to read the text." At the outset, the read & resize permission logic might be identical & DRY is easy to apply. Nobody would be surprised if eventually resizing permissions became more restrictive. Even at that point, DRY applies. If you repeated the shared logic, and later you add new restrictions to the read permissions, it'd be easy to introduce a bug where you forget to restrict resizing permissions accordingly.

thefifthsetpin··on Building AI that can master complex cooperative games with hidden information
Hanabi definitely has traits involving theory of mind that I've not seen present in other games.

For example, I've played Hanabi with 3+ players where the person before me deliberately gave a misleading hint to the person after me. For example, "this is your only blue card" indicating a blue 5 even though only blue 1-3 have been played. They were counting on me to anticipate that the mislead person was now very likely to waste that valuable card & realize that I could only reasonably avert that misplay by playing a blue 4, which is how I came to realize that I must be holding a blue 4.

Perhaps that depth of theory of mind can be useful in poker, but I must confess that I'm not playing poker at a level where it'd be helpful.

thefifthsetpin··on Show HN: AI Dungeon 2 – AI-generated text adventure built with 1.5B param GPT-2

  Generating story...

  You are thefifthsetpin, a ranger living in the kingdom of Larion. You have a hunting bow and a quiver of arrows. You spot the deer and are ready to finish your hunt when suddenly you feel something hit your back.

  > take cover

  You duck behind some rocks as another arrow flies into your back. The pain is excruciating, but it will be over soon. A few more arrows fly into your body before you can even scream out for help

That escalated quickly.

  > die

  Your last moments are a quiet one

  > revive

  The pain is gone now, and you feel refreshed. You walk over to the bodies of your companions and look at them all. They were good men, who died doing what they loved. You look around and see that this place has been abandoned. There are no signs of life anywhere else
You really can do anything! =)
thefifthsetpin··on Machine Learning on Encrypted Data Without Decrypting It
> homomorphic encryption has not been broadly accepted as an allowed standard.

I get that a lack of broad acceptance is a hard thing to source, but do you have one?

thefifthsetpin··on Show HN: Browse Reddit in 3D
Is there a way to invert (or even just disable) the y-axis?
thefifthsetpin··on Everything I googled in a week as a professional software engineer
Evidently the w3c agreed with you, as in html5 made dl a backronym for "Description List"
thefifthsetpin··on Hong Kong ISP Association’s Statement on Selective Blocking of Internet Services
For use cases like this, I generally pull from: https://publicsuffix.org/list/effective_tld_names.dat

They'd consider these to be the .hk TLD's: .hk com.hk edu.hk gov.hk idv.hk net.hk org.hk 公司.hk 教育.hk 敎育.hk 政府.hk 個人.hk 个人.hk 箇人.hk 網络.hk 网络.hk 组織.hk 網絡.hk 网絡.hk 组织.hk 組織.hk

They also consider dreamhost.com to be a TLD, so it's probably not the right list for some other use cases.

thefifthsetpin··on Let's build houses for people, not cars
I'm willing to believe that, but it always sounds like nonsense to me. Normally, I hear people use it to describe the basic economics of a demand already greatly in excess of supply. If there's not enough food to go around, providing a little more food just means people will eat that additional food and they will still be hungry. We don't conclude that induced hunger is a thing.

Going back to traffic as the example, if I want to drive downtown to see a ballet but decide against it because traffic is bad, then they add more lanes and next year I do decide to drive to see that ballet, then I'm creating more traffic because they added more lanes. That demand wasn't induced -- it just transitioned from unmet demand to met demand.

If induced demand isn't nonsense, then I must be oversimplifying it. What am I missing?

thefifthsetpin··on Researcher banned on Valve's bug bounty program publishes second Steam 0-day
It's generally not possible to release a fix without effectively disclosing the vulnerability. It's just too easy for people to deduce what the vulnerability was by looking at the patch.
thefifthsetpin··on Stun Belts in Court
THE COURT: YOU ARE WEARING A VERY BAD INSTRUMENT, AND IF YOU WANT TO FEEL IT, YOU CAN, BUT STOP INTERRUPTING.

MR. HAWKINS: YOU ARE GOING TO ELECTROCUTE ME FOR TALKING?

THE COURT: NO, SIR, BUT THEY WILL ZAP YOU IF YOU KEEP DOING IT. THE DEFENDANT ALSO ALLEGES THAT THE COURT HAS AN EX PARTE CONTACT WITH THE D.A. THAT IS NOT TRUE, AND I AM NOT AWARE THAT THIS DEPUTY D.A. —

MR. HAWKINS: THE TRANSCRIPT WILL REFLECT THAT.

THE COURT: ONE MORE TIME. ONE MORE TIME. GO AHEAD.

MR. HAWKINS: THAT'S UNCONSTITUTIONAL. (AT THIS TIME THE BELT WAS ACTIVATED.) * * *

...

MR. HAWKINS: I THINK YOU HAVE BEEN VERY UNFAIR. I THINK THESE ELECTRONIC SHOCKS TO ME WITHOUT DISPLAYING ANY VIOLENT BEHAVIOR — I THINK IT IS VERY IN-HUMANE ON YOUR PART.

THE COURT: SIR, THERE WAS ONLY ONE BECAUSE YOU REFUSED TO OBEY MY ORDER TO STOP INTERRUPTING ME. SO DON'T MISSTATE THE RECORD. THERE WAS ONLY ONE, NOT PLURAL.

MR. HAWKINS: BUT FOR A VERBAL INTERRUPTION, YOUR HONOR.

THE COURT: YES, SIR, THAT IS EXACTLY RIGHT.

MR. HAWKINS: THAT IS NOT WHAT THIS THING IS DESIGNED FOR. YOU ARE OVERSTEPPING YOUR AUTHORITY.

THE COURT: NO. SIR, ANYTHING ELSE?

Hawkins v. Comparet-Cassani, 251 F.3d 1230, 1232 n.2 (9th Cir. 2001)

thefifthsetpin··on Known packings of equal circles in a circle
Which they then served as a blurry (in my browser, at least) gif. I have no idea which #'s are bold.
thefifthsetpin··on Ugly Gerry – Font created from congressional districts
If political issues actually split along the 95%/5% lines that correspond to that minority, then the 5% are effectively voiceless however you cut it. Another possibility is that most issues aren't about that minority group and you see something like republican:democrat:minority::42:43:5 split. Now the rep for that 5% has a ton of leverage to exchange, eg, votes for republican issues in exchange for republican support for minority issues.
thefifthsetpin··on Siemens contractor pleads guilty to planting logic bomb in company spreadsheets
In this case is that he bet that the company's stocks would go down when his bomb went off.

He's not the last person who will realize that the market can be manipulated by sabotage. It seems important that the penalties for trying that outweigh the potential benefits.

thefifthsetpin··on Kite Plans
My brother got his daughter a kite from there. The wind didn't cooperate on the first day we went to fly it, but her dad and I still tried getting it into the air by running with the string to see if we could get it high enough that it'd catch what wind there was higher up. We failed, but my niece saw us running with the kite, so she wanted to run with the kite. She had a great time running around the park with the kite bouncing on the ground behind her.

The kite survived that & flew fine on later occasions. Now that she's seen it fly, though, she has lost interest in kites that won't fly.

thefifthsetpin··on A little discussed effect of therapy: it changes personality (2017)
In my experience, therapy made me more productive by enough to pay for itself. Also in my experience, your estimates are accurate.
thefifthsetpin··on Court Says Using Chalk on Tires for Parking Enforcement Violates Constitution
I suppose I'm happy that the fourth amendment was upheld, but from a privacy perspective I'm disheartened.

A chalked tire was ephemeral. I doubt that whatever replaces it will be.

thefifthsetpin··on 5G Is Likely to Put Weather Forecasting at Risk
I love this accidental "does free will exist?" discussion.

pretendscholar is asserting that because it will happen, it must happen. You're arguing that it need not despite the fact that it will.

thefifthsetpin··on I Lied When I Said We Did Everything We Could
They did all that they could to save her from death, but in the author's opinion that's not what they should have been saving her from.

As an example, they intentionally didn't save her from the agony of receiving CPR.

thefifthsetpin··on Apache web server bug grants root access on shared hosting environments
Me. Why shouldn't I?
thefifthsetpin··on Facebook Stored Hundreds of Millions of User Passwords in Plain Text for Years
Why is it normal to not hash passwords in the browser before sending them over the wire? Seems like it's opening the door to issues such as this one, or even more serious ones like when cloudflare leaked web server memory into other sites.

I understand that you'd still need another hashing layer before inserting it into the db, but wouldn't some hashing client-side be useful?

thefifthsetpin··on This Cat Does Not Exist
Wow. I have no idea which face is real.
thefifthsetpin··on Whitespace killed an enterprise app
Given how aggressively reddit push their terrible no good very bad interface, I figure there has to be some advantage to them to my using it? I don't know what that could be, maybe users struggling to use the new interface looks like engagement to ads?
← PreviousPage 3 of 6Next →