Hacker Newsnew | past | comments | ask | show | jobs | submit | bootlooped's commentslogin

> But this can be overridden by contracts and for basically all white collar and higher paid jobs, it is.

Is this really true? I believe all of my software engineering jobs have been at will, and there was nothing in the documents I signed that would give me any benefits or rights if my employer wanted to fire me.


My biggest question here is are they not just feeding the input into a hash function, why can't it be longer than 20 characters?


TFA says the mobile app works (so presumably the backend accepts long passwords fine). Looks like it's just a frontend issue. I wonder if deleting the maxlength attribute before submitting the form works fine?


bcrypt famously only looks at the first 72 bytes of the input. There are ways around that - don't use bcrypt, or do bcrypt(sha256(password)), or whatever, but it is not the case that "just feed the input to the hash" removes all length restrictions


    CREATE TABLE passwords (
      email VARCHAR(MAX),
      password VARCHAR(20) UNIQUE -- unique passwords are more secure.
        -- NOTE: "20" here because we used to use SHA1 hashes
        -- but there was an issue with storing binary in CP437
        -- so we just renamed the field.
    )


That just made me twitch so hard that I have a crick in my neck.


At some point you don't want people to enter the bee movie script, but where the word "bee" was replaced with the entire bee movie script again, recursively three times, all into the password field and tie up servers with extremely long requests.

But 20 characters is simply ridiculous.


<input type="password" maxbeemovierecursions="2">


It's a good habit to always create an upper bound on things (input max length, queue size, etc).

The person who wrote it just came up with 20 in the moment and forgot to go check, something everyone has done a hundred times.

I've probably never worked on a single system where the html validation, http server validation, and database constraint were synchronized on username max length. You choose a placeholder, an even number between 10 and 16, then forget to ever check.


It had to be restricted after someone started using a complete Wikipedia database dump as a password.


If your web server isn't throwing a 413 Content Too Large immediately after seeing a "Content-length: 20000000000" header, or bailing out after enough chunks from a "Transfer-Encoding: chunked" header, you configured it wrong.


But that upper limit has to indicated somewhere


Are you looking for the technical reason or the political one?


I have a Knog Cobber. While it doesn't shut off automatically, it's bright enough that I think it would be quite unlikely to finish the ride without noticing the light is still on.


An exception is bikepackers, who may prize reliability and runtime over brightness and weight. But then the dynamo we're talking about is $200-$400 and that's not including the light.


Though you can get Shimano Dynohubs pretty cheaply:

https://www.sjscycles.co.uk/hubs-front/shimano-nexus-dhc3000...

Dynohub history rabbit hole for those interested:

https://www.sheldonbrown.com/dynohubs.html


I remember my mum telling me about going climbing in the 1960s with people who would saw the handle off their toothbrush to save 10g or so in their backpack.

Seems a little performative to me, that's about the weight of all the raindrops on your jacket.


> An exception is bikepackers, who may prize reliability and runtime over brightness and weight. But then the dynamo we're talking about is $200-$400 and that's not including the light.

No, it's about a tenth of that, light included.


Amazon has the Shimano dynohub for $125. Then you have to build a wheel. You might be able to re-use your rim if it's got 36 holes.

I explored dynohubs in the past, but LEDs and LiPo batteries have really narrowed the gap. In my garage, I've got a super long USB cable that we all use for charging our lights. I've used cheap lights from AliExpress, and they are actually quite durable.


Nonsense. At $20 you'll be very hard-pressed to get even a cheap dynohub alone, and that's before the wheelbuild and the light. And bikepackers aren't going to be satisfied with ultra-low-end wheels, anyway.


> And bikepackers aren't going to be satisfied with ultra-low-end wheels, anyway.

bikepackers aren't an homogeneous population. Some are more instagrammers than bikepackers and are using expensive bikes and equipment, others bikepack on a shoestring budget with stuff from the thrift stores and you could mistake them for homeless. And finally some are actually homeless. And you get any kind of budget and requirement/vanity level inbetween these 2 extremes.

This summer while I was cycling I came accross an ukranian guy who was bikepacking accross europe with an old mtb from the 90's, using an old kids trailer to carry his gear and water supply. He was stranded in a climb in the middle of nowhere with a broken wheel, 3 or 4 spokes had given up the ghost, and the tire was flat you could see the casing instead of the tread on both wheels. We could only communicate using google translate on my phone but he told me straight nomoney. His tent, which he had setup on the side of the road to have a bit of shade could have come from a dumpster judging by its state and discoloration, that tent was 20 to 30y old. Since my daughter has a folding bike with 20" wheels and I was 20 minutes from home I convinced him to give me his wheel, filled his empty water bottle with my own, gave him some snacks and went back home to check if spokes length matched any of my daughter's bike wheel and relaced quickly his wheel using 4 spokes from my daughter's. Then I climbed back that climb with the repaired wheel, 2 tires from my daughter's bike, a veggie sandwich and 4L of water (having myself a bike that is bikepack ready made it easier) so he could eat something and set off. He paid me with what he had available: a big hug and proposed to help me with my back (I understood he was some kind of chiropractor) which I declined.


Wow, that was very charitable of you. I don’t have the wheelsmithing skills to even attempt that repair.

I also met a number of homeless people while on a long bike pack (C&O + GAP). They were usually pretty hard up: they lived in junky tents off the side of the trail and used their bikes to commute to work. It’s hard for me not to think that we have failed in an important way if somebody is dragging themselves to work while living out of a tent.


They just agreed to a $131 million settlement. The article says this is a hundred times what they spent to prevent Mamdani from getting elected.


This is why I've always been a fan of these. They are easy for laypeople to understand.


I've never had a Gemini Deep Research report that didn't sound like a load of pseudo-intellectual BS. It always starts with a long grandiose preamble and then sounds way too academic, almost like a caricature of academia.


Also, I want to be able to eat through my whole week's usage at once. What if I was busy all week and want to work on my personal project(s) Saturday or Sunday.


this is me, that's why I was liking codex compared to claude. I hate the daily limits, I do most of the coding only few days a week that I'm free. and I don't need their pro or max accounts. The only solution I have found is either buy 2 subs or credits


That is a pathological use case for OpenAI, and precisely why they have instituted these limits. Part of the tradeoff of doing your work on someone else’s computer is they get to set the rules about when you use it.


How is that pathological? It sounds like a completely normal behavior.


What was described is not pathological. It doesn't involve disease or a disturbed mental state. No part is paradoxical, counterintuitive, or involves unexpected results.

Nothing shows that it is other than normal and healthy behavior that is produced from within a rational mental state. The complaint about scheduling is also normal and rational.

The closest thing to "pathological" that I'm seeing here in these comments is trendy misuse of the term.


`pathological` is being used here in the security context: For example, _a parser contains a vulnerability when pathological inputs cause a program to crash._


It is pathological for their utilization, as in “worst-case behavior.” Like how a program that makes and frees millions of differently-sized heap allocations is pathological for memory fragmentation.


I don't think the crime of destroying evidence / tampering with evidence depends on what your status in custody is. If the police knock on your front door and you start shredding documents, that's still a crime.

Now, could that get tossed about because they denied him access to a lawyer? Maybe, I don't know about that part.


> If the police knock on your front door and you start shredding documents, that's still a crime

Isn’t the relevant bit whether you think you’re doing crimes and/or being investigated?

If I’m shredding while the cops knock on my door because they’re looking for a missing cat, that’s obviously not criminal. (I guess the more-pertinent comparison would be they knock on my door and then I put stuff in the shredder while I check around my home.)


If you shred any evidence of a crime you are guilty of a crime regardless if the police ever knock at your door or you think you are being investigated if you have the intent "to prevent the apprehension or cause the wrongful apprehension of any person or to obstruct the prosecution or defense of any person, he knowingly destroys, alters, conceals, or disguises physical evidence or makes, devises, prepares, or plants false evidence"


You're jumping to conclusions.

Deletion to protect privacy does not prove deletion to prevent apprehension.

I could believe that everything is wholly innocent, but wish to protect privacy regardless.


If that was his intent he shouldn't have handed over any pin. This looks like he was hiding evidence of wrongdoing and he will probably be charged with it. I am guessing his only hope will be that they denied his request for a lawyer.


His rights were already being violated. He was falsely arrested and denied his rights to an attorney.

They can prosecute him (and probably will) but he's got a pretty strong civil rights claim against the federal government for a false arrest and illegal search and seizure.

You can't arrest someone without a warrant or a reasonable suspicion of a crime. These thugs had neither when they arrested him, just that he's "a terrorist". That's why they were trying to get him to confess or commit a crime. That's why they didn't want a lawyer to get involved.


What if I have a camera/microphone near my front door, that when law enforcement is detected, it auto wipes my data, with no interaction from me?


I don't think it ceases to be a crime if you automate it. What if instead of wiping data it set off a shotgun that was pointed at the door?


I find the word "castle" can be a little vague, like with Neuschwanstein Castle, which is really more of a palace. I don't think it's worth battling too much about what is or isn't a castle. I don't think you could come up with one set of castles in the world that satisfies everybody.


Neuschwanstein was completed in 1886. Undeniably a very archetypal castle. So much so that of course it was the basis for Disney's Sleeping Beauty castle, which opened at Disneyland in Anaheim in 1955 - at which time the castle it took its inspiration from was not even 70 years old.

Now Disney's Sleeping Beauty castle is itself over 70 years old, making it arguably just as much a historical 'castle' as Neuschwanstein.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: