skysight-inc/HackerNews huggingface dataset:
Now I know where Rust got some of its syntax from...

As an aside, when I see samples like this, it makes me itchy. I hope and assume that they're being used as made-up snippets just to illustrate a point, and aren't being lifted from an actual codebase.

Because... ugh... isn't it obvious? Attacker-controlled input such as URLs should never be manipulated with naive string processing! Always use a proper parsing library. Not to mention that complexities of URL encoding, character escapes, etc...

The problem is that the author is using abstractions at the wrong level, with or without his fixes. The correct solution would be something like:

var uri = new Uri( "http://foo/demo?test=a&blah=b%20c" );
var map = System.Web.HttpUtility.ParseQueryString( uri.Query );

Console.Out.WriteLine( "is blah equal to 'b c'?\n{0}", map["blah"] == "b c" );

The above example is C#, but similar code can be written in any language. It's simple, direct, and doesn't violate the "rule of six". It can be read like English:

1. Construct a URI from a given string.

2. Parse the query part of the URI into a map.

3. Test if the 'blah' value in the query is "b c" as expected, with the escaped space decoded properly.

The example of how to apply the "MORF" rule in the article still has low-level operations involved, which doesn't make the code more readable. It doesn't describe the intent, which is the key thing to writing code that doesn't need comments every second line.
I think there’s value in trying to understand the thought process, instead of just throwing a label on it and walking away
Have you tried lying to Apple?

https://www.ghacks.net/2022/07/10/apples-business-website-is...
If you're interested in that kind of thing, Ircam in France did a lot of research into physical modelling in the 90's and 00's
At this point I don't expect anything good from the New York Times.
One hack I used during my decades as a vegetarian was ordering side dishes, not entrees. Even in, maybe especially in, steak houses the non-meat entrees are often every bit as interesting as the main course.
Wealthy people don't want a "yacht" that can only fly in good weather. It's hard to see how this could ever compete with private jets. Maybe in a few tourist areas it could work for sightseeing tours as an alternative to helicopters?
I think most commenters are completely gleaning over the contrived systems which are embedded systems.

Sure, on higher performance systems you will be dealing with bigger demons such as cache and TLB performance depending on data size. But many embedded systems are performance limited for cost and power reasons. There is nothing here cloud will solve, nor anything else than more expensive NAND flashes, which require more power, and money. Hence why designing algorithms for critical data throughput are not as simple as using cloud or a filesystem.
Agreed.

Photos have an option to mark photos as hidden, so they won't show up in random places.

Its meant to be for more sensitive photos.

If you want to mark a picture as hidden, yep, its under the share icon.
And technically also can be used for very efficient AC in summer
RedState is a conservative website that allows comments. I was banned because I didn’t toe the line. Do you think they would have been okay with the Biden administration saying I must be allowed to comment.
That's great, now build the transit and walkable neighbourhoods people will need so they can live there.
desktop environments (from Windows to iOS, including OSX, macOS, KDE, Gnome and everything in between) sort of already do this. they provide services and they provide apps/programs that require those services.

what they don't provide is interchangeability of programs from different environments. probably the closest thing is the freedesktop.org semi-standards, but there's not much compatibiltiy or interoperability between KDE and Gnome stack. (KDE's Plasma needs all the usual K-things and Gnome's thing needs, well, I don't know what it needs, but it does almost nothing but needs a bunch of things to do that :D Xfce sort of piggybacks on Gnome, but also uses a lot of their own shit, but at least Xfce is great.)

basically this is due to Conway's law:

https://www.youtube.com/watch?v=5IUj1EZwpJY&t=2153s

because there's no counteracting force that's pushing back to make things use a standard :/
Sounds nice, until Amazon starts using them for freight transport.
Shake to undo a - surely the weirdness iPhone design decision.
Understood - it sounds like the idea of a “minimal working code example” will give misleading results. I’ll pay more attention to this when testing, I appreciate it.
Do you feel that governments would be better at farming than farmers? If so I assume you feel that government bureaucrats can do your job better than you.

I am against all farm subsidies BTW.
"Processed" is not one thing. The bad part is usually additives like large amounts of salt.

It's obviously not inherently bad to mix a bunch of different ingredients together.
I recently bought a new washing machine. It has a mode with an odd name that turns out to be tied to a cleaning product from another company. The manual doesn’t have any information on what the mode does or why it exists. The manual is a generic manual for like 5 or 10 models, and seems to only include the functions common to them all. Any function on a higher-end model that’s not included on the lower-end model is just not documented. I guess if you want to use those, you’re on your own.

But of course, there’s a phone app you can download and give the company a bunch of personal information to connect your washer to your home network so you can get notification when it’s done with its cycle.
I was a Hertz customer for 20 years, but the customer service went downhill about eight years ago and it’s never recovered. I always picked Hertz because it was the biggest, well, Hertz Hurts. I rented a car for a week, after a day I realized I didn’t need the car, so I returned it. I still got charged for the full week.

Hertz…Hurts.
webЯcade – WASM based retro emulation on any device
The storage mechanism is not the interaction mechanism, and Linux config files are not user friendly. All other desktop operating systems have a control pane for this stuff.
I find the comments so strangely defensive. How can one even start to compare MacOS, which needs to support exactly one (1) vendor with less than 10 models with a kernel with the widest hardware support on the planet? Noone would test-drive a new car and expect all the buttons and dials to still be at the same exact positions, but when it comes to trying out a different OS, it sure seems like lots of folx assume it's going to be just as their old one.
The immense improvement in documentation provided by ArchWiki, ThinkWiki, Gentoo Wiki and wiki.instalgentoo.org shouldn't be understated. Almost all models are documented to the point where 30 minutes of research will teach you everything you need to know about the hardware and its capability to run whatever distro you want to.
Going from a ton of older Dell models, then to a T420, to a T450s, to a T530, most of the features I ever needed as a developer and netadmin have always been readily available, with the rest of them being delegated to cloud services and/or remote (sometimes virtualized) machines running a Linux distro or a BSD.
Windows has the definite advantage of being a market leader with the longest run in the history of personal computing, but there is definitely something to be said for the immense development that the *nix side of things has been exhibiting compared to 15, 10 or even just 5 years ago.
The year of Linux desktop and laptop is still far away, but at least we're seeing goodwill both from software and hardware vendors, and it would be a real shame we throw the good trends away at this point in time.
The conditional execution was the key to making pipelining work back in those days.

Modern processors do way way more to try and predict where branches will go and minimize breaking the pipeline flow.
Sounds like fucked up install - why on earth it would get colder when it activates ?
> as a fellow human

That's not what we were discussing - we were discussing you valuing them as an employee. Which if you devalue their labor output then, yes, you certainly devalue them as an employee. Saying "I value them as a human" is an entirely different concern/conversation IMO.

Sorry about the semantics, but I fully believe you devalue self-checkout cashiers as employees after this conversation.

Regardless - we're off in the weeds. I don't think we're in a productive conversation. Respectfully, I'm bowing out.
> It reminds me of colonial Europeans passing judgement on the "savage" inhabitants of a place they've now decided belongs to them

Okay!
macOS for Web
Kills me that Ethiopian restaurants are so hard to find here in Seattle. The other Washington, as in D.C., has several excellent ones. Get on the stick, people!
Newsom Vetoes ‘Premature’ Crypto Oversight Bill for California
there was an AIX setup at UC Berkeley campus around 1987 with that big monitor.. a glimpse of the future in a way; thinking of it now, maybe primary authors were in contact with the grad advisors or something .. networking was more specific in those days, so hard to tell from the outside what the deals were..
I think this constraint actually created some of the best UI ever. Desktop designers had gotten lazy and just stacked tool bar over tool bar and then sidebars too with hundreds of icons everywhere.

Was it really more discoverable to have the icon always on screen but embedded among so many other useless icons?
Surely you must understand that the functionality provided by the tools will impact how the code is written, tested, reviewed, and deployed.

There is no ideal world where we can use tools to write code and it would be perfectly readable for people who don't use those tools.

Embrace the modern ecosystem, or build something better, or take a time machine back to the 1970s where there were no IDEs, source control, or CI/CD. Do you really think that would be better?
I dunno about the broccoli prep, that doesn't sound so great... air fryer FTW. Much slower though.
Flash still effectively has "seeks". Sequential IO is still faster than random IO, since its a block operation.

Especially for writing, sustained random small writes is disastrously bad on an SSD. https://en.m.wikipedia.org/wiki/Write_amplification
It is a general pattern that the share menu is the collection of everything that didn’t justify its own icon.
If global IT spend is 4.5T, and AWS revenues is around 50B (don’t quote me I’m too lazy to look it up) and AWS has the largest market share of cloud. That implies that most companies aren’t using cloud and there is no monopoly. Anyone can put a website up, find a colo center to serve traffic somewhere and reach anyone. No one is just randomly blocking websites in the US and Android and now iOS support web push notifications on mobile
Practice elevator pitches till you make your points in 60 secons naturally, structuring them as 3 bullet points.
Generating good video game assets from pictures is solved, but this does more than that. It generates modified versions from words.
> Most of those cases were bundled into bankruptcy proceedings.

This seems incredibly odd to me. Bankruptcy proceedings would be about monetary compensation, but that feels like it would only be one part of the proceedings. Knowingly making a false report of theft would be a criminal proceeding, an entirely separate realm from bankruptcy courts.
… and Ruby got it from Smalltalk. :)
> LEDs were big, clunky, and red

Fascinating. Why were they red? Every LED bulb I've looked at has been a headache-inducing blue. I wanna buy LED bulbs for the energy efficiency but it's so hard to find one that doesn't emit so much blue light
There are some good practical solutions here ( https://www.lemon64.com/forum/viewtopic.php?t=55483&sid=2710... ) but the most important thing is keep the voltages down. They suggest three volts max peak to peak, which seems prudent.
Thanks.

If there's a subjective test involved, where some things are left to interpretation and circumstantial evidence, my take here is that it would be wisest to work with a lawyer/accountant on setting up the correct structure for each engagement.

It's also good to remember that this is the IRS, and that other jurisdictions may have entirely different practices here.
From your own link:

“the duty to provide public services is owed to the public at large, and, absent a special relationship between the police and an individual, no specific legal duty exists”

None of this says the actual role is to protect the rich and corporations. They get the same non specific legal duty at all. They could just as easily ignore Hertz.

While I wouldn’t be surprised that the rich get more responsiveness out of the police, I’m sure there are rich people too who also get ignored. Just like when my father had his phone stolen and we found via find my and IP logs the physical address of the thief, police refused to go retrieve it and arrest the thief.
> Staff is a bid rural too

What does that mean? As someone who lives in rural New Zealand that sounds classist.
Unironically diode-to-photoresistor optocouplers are used in some compressors and filters to get that soft analoguey sound (as they are plain slow to react to signal). Which is kinda a supply problem as material they were made with was banned for toxicity
You don’t have to keep within the keyboard once you’ve got the insertion bar thing on screen and in your control.

You can whip it upwards to the top of the screen which then gives you the entire screen to scroll down (precisely).
A nice idea but I don't see how this is going to work given the age of a lot of California houses.

A good chunk of California houses built in the 20th Century don't have the upgraded electrical to make this a drop-in replacement. It's likely to move to an electric furnace or water heater most houses will have to drop in a new electrical panel and run a new to wire the furnace room. That's $2-3K right there before the cost of a furnace or water heater.

Given that you'll almost certainly pull permits, you'll probably then discover that your current furnace room doesn't match current building code, costing even more money to fix, if it's even fixable.
There was a post on Reddit, I think, that explained that there were ports in the luggage bins every so many seats that were for for medical comms to run on. Someone plugging something into this port could play whatever they wanted from a computer. It's probably the same person doing the same joke over and over.

The only problem for them is that AA could cross reference the travelers on those flights to figure out who it was, if it was a passenger using these ports to prank.
> Dell XPS 15 7590 (i9-9980hk) - Sleep is broke in both Linux and Windows.

Yes! How can they sell these like that? My XPS 13 will never go to sleep correctly, either the screen stays on or it doesn't shut off correctly, in Windows or Linux. You'd think that this is the basic feature a laptop has to have. And it's not just me, their forums are full of people having problems and their support has no idea. They were sending me guides for latitudes from 2012.

Definitely not going for Dell hardware again.
Excuse me, are you disparaging The Current Thing? Clearly, you have deep-seated issues or traumas that have ruined your moral compass. The Current Thing is so plainly and obviously virtuous, and people who do not support The Current Thing need to be fired from their jobs, lose their homes, lose their social standing, and become permanently unemployable.

If Politician gets elected, then he will finally throw all those who don't support The Current Thing into jail, where they belong.

Support The Current Thing. It's the right thing to do.
Do you honestly expect users to swap out the window system to solve a simple problem like a lack of scroll speed adjustment?

Most users won't even know the difference between Wayland and X.org and X11 unless they are already the kind of tinkerers who used Linux on the desktop despite its drawbacks. Normal people have no idea what any of it means, and they should not need to know.
Donald Shoup, who the article credits in large part for this change, has given many talks about parking. Some are available on YouTube [1]. Well worth a listen.

[1] https://youtu.be/r0gokb4rPik
Did you put one of the diodes in the feedback loop to linearize them ?
I've interviewed people with computer science phd's from schools with good reputations that couldn't program worth a damn when it came to some simple algorithm and practical coding questions in person so, I don't have a lot of faith in certs/degrees for this.
Is it an intel one? I have a 16 inch one with 5800H and audio has been working since day. Running Manjaro, since I am just a dumb user.

In fact, I have a problem with too much sound. The damn thing has a pc speaker that I cannot completely get rid of.
> the agent did not understand that the day begins at 12:00 am.

But most car rentals aren't based upon calendar days, they are generally based upon 24-hour blocks that start and end at the time you drive the car out.

Also, buddy, 20 years is a long time to hang onto a grievance about possibly being charged one extra day... if that's the level of your suffering in life, consider yourself pretty lucky.
Well the distro push to use wayland isn't helping the case.
Kind of disappointing that the Guix pytorch package has no GPU support:

https://guix.gnu.org/en/packages/python-pytorch-1.12.0/

This makes me wonder if Guix is ready for the real world.
> I’d encourage anyone who eats meat every day to consider experimenting with periodic meat free days.

I don't mind not having meat, but I'm not very good about eating vegetables. I'm a supertaster with a diet that learns towards childish. Most spices and bitter veggies are out, so it's difficult to find vegetarian or vegan dishes
I can tolerate. All the vegans and vegetarians I know love these crazy spicy foods and I'm over here avoiding certain brands of gum and toothpaste because they're too much for me.

Meat free days for me would likely end up being full of pasta, fruits, nuts, or even something like PB&J or French toast!
Looks like it's only for polyurethane, which is already not really very stable for a plastic, as anyone who has experienced old foam items disintegrating: https://en.wikipedia.org/wiki/Polyurethane#Degradation_and_e...

As for the more inert plastic waste, as the other comments here have mentioned already, the fact that it's inert means it really isn't a problem. It'll just exist naturally and perhaps get mined in the future for recycling.
the "it doesn't get hot enough to need air conditioning" argument was used to build out tons of apartment complexes in the pacific northwest, say, around Tacoma and Seattle. I lived in Tacoma in the mid-2000s for a summer and it was miserable. And everyone i spoke to about it said "yeah, that's the joke."
I suspect the state would be pursuing criminal charges, if any. I would expect the victims to separately file civil suits.
So in general, you’re saying that we should blame invasive procedures that take place in airports on the impacted airlines? Would you blame Lufthansa if the passengers happened to be removed from one of their planes in Qatar?

The fact that Qatar Airways is (majority?) owned by the Qatari government is a separate issue.
If you live in Montana that might be a fairish complaint. Though it's the farmers and they don't bother with a union they just control the marginal seats.
Do you know what a stopgap is?

Yes, they want to make money. Yes, it's a great way to get people started on the journey to meat-free diets. What's your problem with that?
South Indian cuisine is da bomb. Here in the PNW it's picking up steam and I like that trend very much. Stout patriot here, but American cuisine is loathsome. Indian, French, Israel, Lebanon, Afghanistan, Szehchuan, Canton, so many cultures do so much better that the good old US of A it's embarrassing.

My Chinese wife finds this bemusing and jokes that I was a Szechuan farmer in another life.
> My desire to manage people is at all-time lows.

Checks out. Last year, I retired from big tech at 40 because it just wasn't worth the headache. Now, I'm wandering, and it's fantastic. This is now the tenth month of just wandering, and I'm finding my footing with my SaaS which currently is in the red.

My only goal right now is to find partners which don't require me to compromise what I like doing (too much).
The person you are responding to eats meat. Why should what they say change whether you take vegans seriously?
> A consonant will be denoted by c, a vowel by v. A list ccc... of length greater than 0 will be denoted by C, and a list vvv... of length greater than 0 will be denoted by V. Any word, or part of a word, therefore has one of the four forms:
CVCV ... C
CVCV ... V
VCVC ... C
VCVC ... V

Looks fine to me.
India's beef exports are primarily buffalo meat ("carabeef"), not cow meat. In addition, there are states in India where slaughtering cows is permitted.
You mean Facebook can’t tell misinformation like “the election date has been changed?”

Are you really comparing the laptop of Biden’s son to spreading lies about voting eligibility, voting places, etc?
The space bar trick is clearly explained in the iOS manual. Probably even in the Tips app too. At some point there is just no way to get people to know every feature short of forcing them to read the manual and locking the phone with a quiz on it at the end.
I'm not sure the economic term, but one of the economic problems with airships vs winged aircraft is their slowness. Let's say they take five times as long to arrive at their destination. In a simplified model, this means a winged aircraft can make five times the trips. That's five times the utility, and five times the ability to recoup your initial investment. I saw this argument made for how SpaceX's StarShip could start to become cost competitive with regular air travel. StarShip could travel halfway around the world in a fraction of the time that a regular jet takes. In theory it could complete multiple trips in the same time as a jet, allowing you to spread the initial purchase price of the craft across more flights.
Config files are far preferable to some random database dug somewhere in registry of DE blob of stuff. Because you can make a simple program that just "does the right thing" for user then include it in distro
The idea is not to hard code the computation of specific holidays, but to make the specification flexible enough.