jkeisling/hacker-news-corpus-2007-2022 huggingface dataset:
Today I had to debug code with some database calls within 5 levels (at least) of for-each loops.

I stopped measuring at ~40,000 database round-trips.

"Engineering time costs more than CPU time" was the attitude, and for the original problem in its original specification, the solution was clearly OK.

But here we are, now needing to work out the original specifications, work out the current implementation (in case they differ anywhere), and work out whether it's worth re-writing it top-down or just fixing the worst of the loops.

And I'm not blaming whoever wrote this originally, it must have done its job to make it into the code base, but it really sucks to have to unpick it because an assumption of "database calls are free" is an assumption that unravels in a really messy way.
http://mightyohm.com/blog/2008/12/the-greatest-electronics-b...

In elementary/middle and even high school I absolutely loved this book. I even had a backup copy. It might be a bit more basic than you need if you studied it in college though.
I, for one, am eagerly anticipating the fallout from this. People will get tired of the franchises eventually and there will be a reckoning. 2020 will not look like what the studios have planned.
Are you familiar with HTMX? Sounds like what you want. I'm not a huge fan, but I think it would be good if something like it were a native capability.
> Social science is a science

Wake me up when social science can reproduce their studies and I'll consider it a science. Until then, I consider it akin to "humours".
>"Peloton, SoulCycle, Mirror value proposition never made any sense to me."

To be fair Peloton was doing ok before pandemic I think. They got disproportionally hyped since pandemic and now returning back to what is realistic value. Myself, I would not touch it with a wooden pole but that's just personal preferences - I do not participate in organized activities. Do everything on my own.
Excellent point! I never considered this.
How is the App Store a monopoly? It is a service only on iOS and MacOS devices which are not the majority of hardware sold globally.
I might be your target audience. I am not invested in crypto, but I'm curious. The simulator has me confused.. Like why does it matter if I subscribe to netflix or spotify?
I have a super hacky job for this personally on my personal infrastructure after acme.sh failed to renew too many times, which runs a bash script in a cron job to use openssl s_client, greps for the nonAfter field, passes it through python to parse the date into remaining days, then sends a message to my gotify setup.

I'll probably rewrite it as a single rust binary one of these days.
The issue with Peloton is not that the pandemic is ending, people are going to gyms again etc. but their failure to evolve the product.

It was innovate when first launched but their half fitness-half entertainment focus has left them unable to do either effectively. Competitors have taken a much more serious approach to fitness and have a better product or have focused mostly on casual fitness (Apple Fitness) and have a more polished end user experience.
I'd actually really like if they used this opportunity to drive the Bitcoin price straight into the ground, thereby ruining that market for all those speculative investors.

Maybe that'd allow for something of a reboot of the ecosystem having eliminated the scum that usually starts to invade any remotely financially exploitable system after a while.
They also use NancyFx on mono.
There was an attempt to deploy contactless cards in the US in the mid 00's. I used mine once at a grocery store. Merchants rarely supported them so banks stopped issuing them.
I think this is the right attitude (and correct description), but not everyone understands this. I have a friend who finally started using dating apps after I've pressured him for years. From my view, he is a decent guy who is reasonably good looking, but had no luck getting dates the "old fashioned way". He hasn't had any serious relationships success (i.e. anything greater then 6 months), but he is actually getting dates now. He still complains about the "quality" of the dates, but I honestly think a dating app can only match you based on so much, and from there you have to take over the work.
My interest is twofold:

a) for one as a response against CGN, thankfully my ISP isn't using one right now but I have a hunch they're going to start becoming a lot more common in the future.
and b) as a hacker I'm interested to finally set it up and play around with it.

Also IMO even if it doesn't bring any improvements to the general consumer given all the pressure to start switching to IPv6 it is a good thing to be interested about it, pressuring more ISPs to start supporting it.
I love ur tone jajajaj Won’t subscrive tho, but I love you!
An older version of the graph gives more detail:

https://web.archive.org/web/20170701044638/https://basecamp....

The two upticks in account numbers were when new versions of the products where released. I honestly forget which these were, 2 and 3?
Plus, the author seems not to know the difference between “vulva” and “vagina.”
It's a generally poorly written article, with a lot of speculation and short on facts.

I particularly dislike the way it starts "Sunday, an flood..." Which Sunday? What date?
What an enjoyable read. I am just going through the process of a house purchase in the UK now (in rural Berkshire), and the presence of "Newt Control Officers" in any council planning permission documents did make me laugh, so this article was well timed :)
Just a reminder, the New York Times threatened to doxx the author of Slate Star Codex and was heavily criticized for it. They also seem to exercise a double standard in this regard: https://reason.com/2020/06/24/slate-star-codex-dox-scott-ale...
> Fictional Cryptocurrencies
yes, and if you go to that link, you can see its experimental, for TF 2.4 _and_ the notebook on github was created Aug 3, 2020. So that is relatively new and most likely has a ways to go before further adoption. Its good that option exists, but doesn't seem very backwards compatible. That doesn't negate the points made in the parent.
>We used to treat newspapers with the same suspicion

We did? When was this?
Where do you live, not much data without that as a minimum.
You can prevent him from pardoning the rioters. You can bar him from running again.

Impeachment actually does things other express disappointment.
I'm kinda surprised to see that $5,555.55 anonymous contribution. 4chan comments aside, I guess it's just someone feeling generous? I know that the purchaser can indicate the amount to go to charity, but I'm under the impression that this is not tax deductible. Can anyone confirm this?

Edit (added): Thinking more on this, I wonder if the Humble Bundle folks actually get the tax benefit of the donations.
This is a great idea - any company that does training or demos should be interested in this kind of thing. I was thinking about trying to put together a product around this area, but of course, you know the drill :)

My old employer needs virtualized labs for MS Project teaching - email me and maybe I can arrange a meeting with them.
For personal projects, my default is C++. It's a deeply flawed language, but I love it anyway. Besides, I've never met a perfect language, but I've met plenty of languages that let me get work done, some more pleasantly than others.

(Why would I call C++ pleasant? It's probably thanks to more than a decade of working with it warping my mind until it seems to make sense.)
The owner of the company I work for rarely wears anything besides flip flops and his feet are kind of gross. But who cares? It doesn't impede our ability to build cool stuff, make money and have plenty of fun. It sounds like you might be just as stuffy if not more so than the people you observed on your walk through Netflix.
Oh, great, there's another term I'll never be able to take as it's intended when used in a business context.

Like "hustle".
At compile time, I guess.
You should be more careful about using the word "People" with its connotations of common and of the masses (as distinguished from the nobility)..etc. etc. ;-)
Previous discussion from 2 days ago: http://news.ycombinator.com/item?id=1929796
He seems to miss calculating the total visits to his blog based on links included. Seeings as it looks like 5x the number of downloads with a LinkedIn link, but only 1/4 the blog view rate, he actually gets a higher absolute blog view rate (5/4 the number of people) as without a LinkedIn link. The effect is even more pronounced with GitHub (2x absolute number of views), although I agree he should leave Twitter off (1/3 the number of views).
Because the original URL was very long?
For many folk who may not use PSN much or recently, the first concern I imagine would be to recall whether they ever provided Sony with the most sensitive things on that list.

A quick gmail search tells me that they had my mailing address and full name, but I have no idea if I ever gave them my CC or DOB or SSN or Gitmo prisoner bar code or whatever else.

I'm glad I use lastpass because I have a nice list of sites to update password info, but I imagine this process is going to take quite a while. Too bad I repeated that password so many times.
Considering iTunes is the desktop companion for iOS it should be a showcase of excellent UI and efficiency. I use it all the time and while it (eventually) gets the job done it's a pretty average experience.

People keep complaining about it on Windows, and on the Mac it is one of Apple's last Carbon apps that can't run in 64 bit. Just inspect it in Activity Monitor and see all the Carbon library goodness loaded into memory.

The only thing that makes sense with iTunes in its current state is that Apple are going to reduce the emphasis on iTunes and sync via the cloud, hopefully with a Dropbox-like LAN sync.
Great post, I can tell Chris has been through the fire of startup sales!...
http://news.ycombinator.com/item?id=1962554
fwiw the Heartland incident involved 130,000,000 records:

http://datalossdb.org/

Not to lessen the extent of this, but it's not nearly the biggest dataloss incident ever.
I really liked this, until I used the shared HN one and it got really laggy / Chrome kill button came up
i think im doing comedy. :)

i like choco tacos but wendys and ramen cups are pretty tereible.
There's another potential issue that may or may not matter - since the value is stored as text it probably can't overflow in memcached - but the multiplication COULD overflow internally in the C code; addition could do this also - I would wonder how it's implemented.
The conditions to qualify for an early vaccine seems to be quite broad. My wife discovered to her surprise that she had an "underlying health condition" when she got called up for her vaccine a few weeks ago. We weren't - and still aren't - aware of any health conditions!

We think it is simply because when she was pregnant a year or two ago she took some drugs that moderated her immune response. She hasn't taken the drugs since. Apparently it is just a matter of people's health records being searched in a pretty basic way - if you are flagged up as having been prescribed drug X/Y/Z etc (apparently regardless of when) then you are treated as having an underlying condition and get the call.
> ... Linking data between services augments the dangers and the consequences are not obvious to the end user.

Or the end user's friends and family who's privacy was also affected by being in the user's contact list.
I worked for a company called Mendix. Most US based sales people would pronounce it more like Mendax. We obviously had quite some running jokes within the company, but most employees only realized after a couple of months. I used to wonder at which stage we would get a new name, but that never happened. And honestly, apart from the inconvenient homonym(?) it's a great name :)
Singletons are global variables++. Read up on the capability security model and ambient authority (Mark Miller's erights.org, Gilad Bracha's Newspeak, Mark Miller's JS work eliminating accessibility of document etc. singletons for safely eval'ing JSON etc.) to understand the security, composability, testability and modularity issues with these idioms.
http://en.wikipedia.org/wiki/Social_mobility explains social rejections
Thanks for the love :) It's funny because when I posted it a while back, my post went nowhere, couldn't even make it to the frontpage. I thought with the high number of Github users here on HN, it would get a bit more traction. But it got picked up by TheChangeLog and surprisingly a lot of Japanese sites. I guess the posting time on HN is very critical on how the post gets read and upvoted. Nonetheless, I'm glad that more people know about GithubFinder and I can help save their time.

I'd highly recommend the Bookmarklet and the Userscript. Both are real time savers. There are other enhancements that I have not had a chance to implement, such as bookmarkable URL and better syntax highlighting, hopefully GHF will be even better when that's done.
For Knight, Knave, Commoner, how can this be done?

> Find a strategy for the king where the king can ask only one yes/no question and only of one suitor.

Seems impossible since the commoner can use the strategy "pretend to be the knight, answer exactly how he would if our places were swapped". Then you won't know if you're talking to the commoner or the knight.

Asking two questions of only one person has the same problem.
I just did. Thanks for the url.
I will definitely be using this to split avis. I had been using a program called "explicit" up until now. Is there a readme somewhere? "Trim" and "Extract" seem to do nothing.
In my experience, the courses I was forced to take in humanities were pretty much useless. There was the film class that 90% of the class slept through, or the mythology class that we all spent staring out the window.

Then there was the advanced CS classes that I missed out on because I had to take these random other classes. I would have been happy if my school had actually allowed me to take more relevant classes.
Initializing an array in constant time, My sneaky solution:

getting and setting seem very simple - if you know the starting memory address and the size of an element (assuming constantly sized elements), you can implement get(i) as "return the value at memory location: start + (i * size) and similarly for set.

So as the question suggests, it's the initialising that's the problem.

My sneaky solution is not to actually initialise the array.

Instead, init(N,d) performs as follows: Store 'd' in some memory location outside of the array.

Set(i,v) finds memory location: start + (i * size) and sets v and a checkdigit.

Get(i) retrieves the value at memory location start + (i * size) and if the checkdigit isn't present or doesn't match, returns the default as set in init, else returns the value.

I think (think) each of those is O(1), but I'm not sure if that's the expected solution.

edit: reading up, I think this won't work as the uninitialised array will be filled with random data and so might 'happen' to pass the checkdigit test :(
Maybe it would be usefull to gather this kind of commented experience about evaluation order and memory behaviour in a little book of case studies (or several blog posts). There are some slides by dons and book chapters in RWH, but it is still something difficult.
It has a bearing on whether future speculators will be able to remain solvent longer than the market can remain irrational.
You can see a side-by-side comparison with the original artists in the video linked in my comment here:

https://news.ycombinator.com/item?id=25687540
Not really a nightmare when any janitor or cleaner could have stolen the same laptop.
What sensational news over at the guardian. Look at how they stuffed the URL with keywords
In Orlando proper the adherence seemed much better. Maybe because they’re a tourist town and don’t want to get in the news. To the point that a buffet had us use disposable gloves for each trip to get food. Going off the beaten path was where the mask adherence seemed very low.
Why would you want this? You don't save history for other types of chats, like in person conversations or phone calls (even though you could, with your phone recording in your pocket or call recorder apps). If something important comes up, like an address or recipe, copy/paste it into your notes app. Otherwise set your messages to expire after a month and be done with it.

I used to be a message-hoarder too, but I recently realized it was all utterly useless and the cost of maintaining and transferring that history around everywhere wasn't worth the twice-a-year I actually wanted to search for something.

Signal isn't email.
Rigado | Portland, OR | Onsite or Remote | https://www.rigado.com

Senior Backend Engineer - Help us build out the Edge Direct management platform that allows our customers to manage fleets of IoT devices in the field. Heavy AWS (Dynamo, AWS IoT, Lambda)

https://www.rigado.com/careers/
> I mean, you cannot declare the rules via the RequestMatcher and know what headers are going to be sent or received in advance, as the API expects full declaration of all protocol schemes and host suffixes; which is very bad if a website can pretty much do whatever it wants when it executes js code.

Yes, but this is a good thing. This kind of intrusive logic with full access to view and modify request data does not belong in a Chrome extension that can be updated by a single account at a moment's notice through the store, with zero peer review (unlike changes to Chrome itself).

This is much safer to implement in the browser core. If the declarativeNetRequest API is insufficiently expressive, then it needs to be improved to handle those use cases instead of sticking with the old way.
It's only true in the first-world country.

Microsoft office is ~$1000, which is 2x higher than average month salary in Thailand/Vietnam.

A CD album is $10(?), which is equivalent to 10 meals. A cassette is $3, which is 3 meals.

Pirate is the only way to access these things. It's a pricing problem.
When of course, in reality rather than clickbaity titles, they only wrote up the final, concise proof using two pages _after_ thinking about, and working on, the problem for seven years, building on decades of specific research combined with seven years of learning new mathematics (new to Huang, not necessarily new to the world) that might offer ways into cracking this problem.
Isn't this how balanced audio cables work effectively? Have two signals, one hot and one cold, invert them against each other and noise would be cancelled out. Replace noise with the song that got identified, and you can cancel it out.
That's not my point. My point is that you're assuming OP is on board with those things as well, which is something you can't prove. You've made a strawman argument about someone you've never met and know nothing about.
Workload management refers to PlateSpin, Novell's server virtualization product.
Ok, fine, downgrade 24 hours to 1 hour. Nobody cares about those prices within 1 hour. We've had markets that operate within 1 hour for over a century.

What did all the "innovation" actually produce? I know Wall St is making more money but are they providing more value?
Sounds like you have to go out of your way to be offended.
Haha if only.

GI Taylor should be able to publish his findings by the end next week
Hello from Chicago
What if that happened in your company? Another person's misconduct resulted in you getting your pension drained?
Yeah, currently the experience with an EV varies greatly based on locale. Some of this will remain indefinitely—there will likely always be homes where parking with chargers is unavailable. Some of it depends on infrastructure investment.

> Additionally the deprecation is higher on EVs (probably due to concerns about the battery durability) so that would be also included in the lease.

Teslas retain their value exceptionally well.
The RPi 4 with an external USB SSD drive should last a while and the SD card won’t wear out as fast if you’re writing to the SSD plus they have more RAM on 4th gen. I have 3 that have been running 24/7 in that configuration for a year as a Kubernetes cluster and have had 0 issues.
I think this is a very specious connection. I've been using Rails since 2005 and so I got a good dose of vendor/plugins versus bare gem installation versus Bundler (ie. steadily moving up the continuum of package management), and my observation is that library quality and maintenance is utterly orthogonal to package management capabilities. The package manager itself has only helped my life as a developer, the tricky part is picking trustworthy dependencies.
"common engineer misapprehension that BFE sales requires playing golf, inviting clients to steak dinners, and having budgets beyond to reach of small businesses."

Can engineers not play golf? I'd like to read a post on how to get in on this sales process -- ultimately, that's always where the money is!
I hope it's longer than the first one.
Why didn't bp stock go down today? I'd think ending dividends would be a huge deal.
Are you sure that he was doing that?

I didn't read through whole thing day by day but on day 1 he uses his food money to purchase non food items because they give him coupons worth more than what he had to pay for them in cash: http://www.grocerycouponguide.com/articles/eating-well-on-1-...
Hey tibbon, did not find see an email in your profile. Filling out the form at http://www.revzilla.com/customer-service will get to me though ;)

What you are looking is really tough. We are working on simply being able to browse products by fitment.

Unbelievably none of the part fitment data is readily available in a normalized fashion. There actually isn't even a standardized list of makes / models out there. Each retailer has to essentially build this database and keep it up to date manually, which is incredibly resource intensive.

Of course though this means there is opportunity to have because once you have built out this database, there is some defensibility built in.
To take it a liiiittle further:

Like a bank whose tellers (a gatekeeping mechanism) will give you however much money you ask for as long as you end your sentence with "swordfish" - they just don't tell anyone about swordfish.
I'm bad at detecting sarcasm. You realize the title truncated from ...-targeting-right-now to targeting-right, right? A lot of sites use the first few words or characters of their article titles to make the URL.
If it disappears on focus, it's before you start typing (or pasting).
I totally agree that '[m]any people consider those other options as special cases of "married" or "unmarried"'. It's possible it's most people. However, I assert that enough people consider "unmarried" different from "divorced" or "widowed" that the assumption your audience thinks the other way "may not hold up".
What is naive is to assume without evidence that the actions of a handful of companies that employ a tiny percentage of software developers had a significant impact on average salaries nationwide. In the absence of any such evidence, it makes more sense to assume it had little impact, which is what I do. The example you cite is mere speculation, and one could easily speculate about an opposite effect, i.e., companies that would not ordinarily be able to compete with Google et al could offer candidates more than they otherwise would have, that is, they might be inclined to stretch salary offers for star developers rather than shrink them. But, there's no evidence that either thing happened to any significant extent.
Security (provided by walled-gardens and by denying root to users) ends in presence of the worlds largest threat-actors - the same ones who have the power to imprison people.
The fact we're arguing what exact wording to use is kind of the point, isn't it?