1,386 karma · joined May 8, 2020 (6y ago) · 259 submissions
comment 1d ago · link · parent
Ads were initially introduced to let people use services "apparently free". If we don't regulate them, they will be everywhere, and it hurts the producers and consumers while making data hoarding networks richer.
comment 5d ago · link · parent
It's expected that the ability to run models follows a power law distribution: very few actors are able to run the most expensive models on many codebases/binaries, spending lots of tokens on each project.
Disclosing a serious vulnerability potentially exposes it to orders of magnitude more people.
comment 2w ago · link · parent
Source: I've worked in and with many successful organizations, and worked at one place with proper internal processes, so I know what's possible
comment 2w ago · link · parent
Don't return empty string/asterisk/anything else. Instead, return a failure value.
When absolutely needed, choose the magic string with more caution:
One string showing the SHA-256 of a non-existing hash? It's a good idea for it to be a valid hash. Now we have a new risk: if it's broken once, it's broken for all. So it's a good idea for it to be a random one for each machine and/or account. Even this might have problems I can't think of, but it seems to be as secure as an account with a real password.
If this is not a good decision for some reason, choose something unmistakable: "--ACCOUNT-HAS-NO-PASSWORD--". This is much less likely to be mistakenly used in a different context, is much easier to look up in a code base than "*", and is self-documenting.
comment 3w ago · link · parent
Some months ago I posted a question there after a long time, something that the LLMs could not give me a satisfactory response. It got deleted for being unsuitable for the site.
I'm not particularly a new user of SO. been using for 15 years and 5.5k reputation, which does not say much more that I know how to ask questions there, or I used to know.
Desperate, I take the question to a meeting with the language team. The guy gets excited: "this kind of question is why we keep holding these sessions"
SO became what it was by setting rules that worked extremely well. They even occasionally let some QnAs slip by, like the famous Jon Skeet Chuck Norris facts[1]. Now those same rules don't work well for a vibrant community, and at the same time they are being followed pedantically.
[1] https://meta.stackexchange.com/questions/9134/jon-skeet-fact...
comment 1mo ago · link · parent
Sunk cost "fallacy" helps the scammer a lot.
They start with a trivial amount and build from there. Each time, it's emotionally harder for the victim to accept the romance they built in their minds does not exist, AND the money they paid was not spent on a good cause.
It's much easier to deceive a person when their subconscious is collaborating with the scammer.
comment 1mo ago · link · parent
13.
Ask HN: How to measure the energy impact of a website in Linux
2 points · by aljgz · 1mo ago · 2 comments
comment 2mo ago · link · parent
comment 2mo ago · link · parent
Landed on a Lenovo Idea Tab pro, which has so much junk pre-installed that keep installing other malware on it.
We need rules that take companies responsible when they trick people into hands of scammers.
As long as I can't unlock its bootloader, it's not much better than that iPad.
comment 2mo ago · link · parent
> I'm 30 this year, and computers don't have the same level of whimsy and excitement as they once had.
I'm 45 and computers are more exciting than ever. We choose what to get excited with, or oven nothing at all, which happens to most people at some point.
I've never been a die hard fan of Linux, but in the past decade and half found the trade-off for me to favor using Linux.
It's a device made by people like me (umm much better than me in some fields, but the mentality is similar), for people like me.
It does not disrespect me in design, functionality, in PR talk, and my relationship to the system is not adversarial.
For now, my incentives to use the system aligns with that of the system creators.
comment 2mo ago · link · parent
I choose tools I use, configure them, report bugs, and occasionally contribute fixes. But when I can't, I work around them, yet never get used to the workaround.
"Habitual mitigation" does not happen in me, and it's partly intentional.
I have created bad software in the past, but when I saw how people work with it, I could not be proud. Learned to look at software like a user, and don't want to unlearn that.
I believe (or maybe I hope) software will be democratized and people will start to demand good software.
comment 2mo ago · link · parent
This. I get Frame.work and install Fedora. Use Firefox for everything possible. Once my current phone dies, I'll get a Fair phone, Motorola, or whatever gives me control.
Can't complain if I keep choosing hostile products for some convenience
comment 3mo ago · link · parent
When he realizes he's committed a terrible crime, the next day he goes back to believing he's a US marshal. His last words:
- this place makes me wonder...
+ Yeah, what's that, boss?
- Which would be worse, to live as a monster, or to die as a good man?
This is a sad reality of life, that leads many, to choose a fantasy over reality. How many of us consistently avoid this trap?
comment 3mo ago · link · parent
comment 3mo ago · link · parent
comment 3mo ago · link · parent
Solar eclipses happen rarely enough, and frequently enough, to act as milestones in my life: I can review what happened since the previous one, and make a plan for the next one.
They are some of the most magnificent natural phenomena, much more interesting than what's expected.
The only other one that I got to see in perfect conditions was in my home town, Isfahan in 1999. I hope this one is perfectly clear again, and I have some resolutions for the next one.
comment 3mo ago · link · parent
Imagine your car would only let you drive on road approved by the manufacturer, obviously, for your safety. But then they would approve roads only if 30% of anything you paid for in that road would go to the car company.
Sounds stupid? Well phone manufacturer taking 30% of everything is exactly that to me.
comment 3mo ago · link · parent
It turned out EF had a stage named "view generation" which verified that data would round-trip, meaning if it goes into the DB and comes back, would stay the same. Run time was exponential on the number of tables and complexity of models.
People used tricks to work around it, which was basically caching the "generated view" in a file, which could speed up the production startup, not as easy in DEV environment, our programmers still needed to wait 2 minutes after each compile.
I started looking into it, and it turned out that Microsoft had open sourced EF a short time ago (long after we had started the project).
While profiling, view generation took much longer, 450s, as it was a CPU-heavy process. There was a function excluded from release builds by a `[Conditional('DEBUG')]` attribute, and when I removed the call to it, the time went down to 64 seconds, 63 of which was in a very simple function. A LINQ statement in there could be re-written to make it 120ms.
I ended up contributing it to EF core, being acknowledged in their blog post, and we ended up using our own release build of EF libraries until the fix made it to the public release.
Had they not open sourced EF, it could turn into an existential threat to the project.