skysight-inc/HackerNews huggingface dataset:
You should never typedef a pointer to an object. That’s common knowledge amongst experienced C developers and an immediate red flag, even for myself normally welcoming of anything built with Haskell.
And Go is even similar. Instead of having to deal with docker/docker-compose, I can just put an executable somewhere. If I have multiple apps, I just set up a reverse proxy through my web server and I'm done.

It's a bit telling that I essentially need to run a docker container for something so simple. Statically compiled binaries are super simple to use.
Yeah but the general consensus for the core stuff seems to be "we'll do that with 2.0", which at this point seems to
materialize since forever aka. vaporware...
> Range of employment options. Possibly salary, though that's more variable.

I'm not sure this is true. Most of the shops I've been in don't care about whether you know this or that language or library. You're expected to learn that as you need to. Most of what I've seen cut people from interview loops is missing fundamentals.
You fork the library. You fix the incompatibility issues. You issue PRs back to the mainline to help them adopt the same fixes. At some point in the future you can switch back to the main repo if they've migrated, or you can consider that library abandoned and continue to maintain your own or find an alternate.

At no point do you have to wait on anyone else, you choose to.
By Blocking an Early Election, Labour Gives Boris a Winning Hand
Movie: Overcomer .See Our Review and Trailer
A grieving father’s warning to other working parents
Use a thermometer to measure the temp of your pan and/or oil.

Get an IR thermo and make sure you can set the emissivity so that it gives accurate readings for the surface.

Its quick, easy and after some time you will learn to intuit what the temps are without it.
gotta be careful if you use refined coconut oil, some of them contain partially-hydrogenated fats which are rather unhealthy.
No, not everyone owns smart TVs.

I looked long and hard to find the best option for a dumb TV without Wi-Fi, without Alexa, without Siri, without any of that, because I don't actually want to stream anything to it and I don't want my television to be a hackable portal between my home and family and any hacker able to exploit bad firmware. No regrets.
This only works if you're interviewing with decision makers. At a larger organization, I don't think the person you're interviewing with would have any capacity to answer these (which could be a red flag for you, but also a very limiting one).
Using Spotify data to predict what songs will be hits
I found some Unicode bugs in porting—and I get continued free security updates. Seems fair to me, and certainly not “no benefit”. I can keep on 2.7 as long as I like; nobody’s forcing me to port. Compare the situation with Java!
> If this is anything like growing single-crystal parts for aircraft, it won't be cheap.

I'm still catching up, but it won't be expensive like that. You grow single crystals by keeping them hot and cooling them very slowly in a controlled atmosphere. Turbine blades are meant to operate in the hottest conditions in any machine on earth. Accordingly, they must be cooled at extremely high temperatures. The cost of single crystal turbine blades also pales in comparison to the cost of the blades themselves.

> Um, that is cheating. Running any battery at less than capacity will extend its life. You could put two batteries in the car, run them at 50% or alternate between them, and get double the life.

Cycle life is often plotted as equivalent full cycles. If you get two batteries, running both at 50% DoD, you will increase the amount of lifetime full-cycle equivalents by ~10-50x, depending on the chemistry.

Lowering the depth of discharge means lowering the voltage difference between the electrodes. At 4.0 V you have very few side reactions. At 4.2 V, the battery is charged. At 4.3 V (~110% charge) the battery is dangerous. At 4.6 V (~120%) the battery is plating lithium onto its anode and is about to short circuit and blow its pressure release. Fire is heavily involved. Small decreases in voltage lead to big improvements in stability.
"Nuh uh!" isn't evidence.
If the original patch contained a benchmark showing that it was slower on the current AMD processors then this would be a reasonable argument.

It did not, because no such testing was done.

I think there's a pretty low baseline of effort they can put in. I also think that if they enabled new code paths for newer instructions that turned out to be slower on AMD, very few people would claim this was Intel being evil. Most would blame AMD for selling a defective product.
You are not thinking outside of your web development box.

Embedded systems care deeply and know exactly display sizes.
Humanity's Universal Learning Map
swipe down on any homescreen page and type into the search box and iphone will do this.
On the topic of large companies still using Python 2, I would love to hear about Splunk's upgrade plans. They have the following[1] on their SDK page about upgrading, but my understanding is their entire platform is still on Python 2.

I've upgraded a number of projects at my work to Python 3 this year, but nothing that 2-3 developers couldn't do in a few weeks. Can only imagine the headache of migrating something the size of Splunk.

[1]: https://dev.splunk.com/view/SP-CAAAFG7
Map Shows How a Location Has Changed over the Past 750M Years
step 1) keeping a service up and running is hard. we have all these issues and it seems like we are struggling to do simple things

step 2) only if there was some magic tech that could solve all these issues. and have a cool name. and we could put it on out resumes... drum roll: K8Sssssss

step 3) bro. it’s working. i don’t really understand what it’s doing but look at all the containers we are running. and the config... super configurable. we’re devops we can figure this shit out right?

step 4) what do you mean we have to update the k8s version we’re running on? we barely got this one working. ahh... the beta tools we were using got a bit more polish... makes sense....

step 5) sob silently when you realize that the work k8s has supposedly saved you now goes into maintaining the k8s cluster. reminisce about the good all days when you could just xcopy deploy your app.

epilogue) in the age of the cloud, k8s make zero sense to me. use the abstraction provided by your cloud and focus on writing your crappy app. you’re not google or amazon. you don’t have to solve the problems they do and you’ll probably never have their scale. oh? you have thousands or bare-metal servers and looking for a solution that can help
manage them? you can also afford a dedicated ops TEAM to manage them? (dave jumping on the latest tech trend does not count as a team). go ahead!!!
Developers can have local admin because it's expected that you can trust them. If they betray that thrust, then they lose that privilege, and depending on the nature of their work that might mean they cannot work. Bad for them, but surely it was written in their contract.
It doesn't need to be a web application. It's just that making it a web application gets you you stuff like mobile support and synchronization between devices basically for free.
Where devops works is that there's shared call-out responsibility when things go wrong at 2am. It won't happen again because they'll take the time to fix things.

If management don't also share in the responsibility, it -might- will happen again because they won't allocate the time (and-a-half) to fix things.
(Unless your manager makes drive-by commits of py2-only code, months after you all agreed that all new code should be py3-compatible, and then leaves town for a multi-week vacation...)

That seems like a very specific example...
telegram rolls their own encryption. Anyone who does this should label their software as experimental, and not to be trusted with sensitive information - and they should absolutely not compare it to actual serious secure messaging apps. I gave up on Telegram long ago. As for me, Utopia messenger is much better. It is guaranteed to keep my chats securely locked. Check it out yourself https://beta.u.is
> While many of the patients, but not all, reported recent use of THC-containing products, some reported using both THC- and nicotine-containing products. A smaller group reported using nicotine only.

That’s directly from the CDC. They should probably stop using the word e-cigarette especially due to the fact nobody using the THC vapes calls them that.
You mean Ottawa? Because the province of Ontario is not contributing to the territory of Yukon.
Humans have an incredible capacity for rationalizing that which benefits them. There is no special upbringing or education needed, it’s been happening since the dawn of time.
Django has a similar banner at the top if you (perhaps via Google) get to a page about a feature in a deprecated version. So it's not like this is uncommon in the Python world. Hopefully they get that fixed soon.
Maybe I'm a naive optimist but I doubt that will ever happen (or until we have AGI). We as a species dont really like to give up control. See for example the "Auto Pilot": we have the tech to fly planes safer than human pilots for decades now, yet we don't because we don't like the feeling of not being in control. I can't imagine that a group of people decide to hand control of a WMD to a computer.
Where would you draw the dividing line between where you think it does make sense to use something like Kubernetes and where it doesn't?
Completely valid points, and I agree to all of them. Alas, as other commenters have pointed out, the issue is devs at smaller companies deploying smaller products buying into the idea that they need k8s. I believe that it is the community's duty to educate these devs on what k8s is and when it is needed.
Related:

How long ago did you give raises?

How long before that was the last time you gave raises?
Obviously, not everyone has or wants a tv with Roku built in, or is going to rush out to buy one. Obviously, TV makers don't want you to have much choice in the matter. I was cjust thinking about getting a Roku box for my mother, because for $40 it's way less work and expense than getting her a new tv.
> writing todo app directly against POSIX abstraction would be time consuming.

That actually wouldn't be bad, and probably faster than getting it running on Kubernetes.
I'd prefer WireGuard support.

But I guess there just is not enough demand for that.
That's definitely not true. I'm not an expert in US tax law, but there are a number of important differences between accounting and tax income/expenses:

* Fines, as other people have stated, are usually not deductible. They aren't in Canada, for sure, and they are added back to income (i.e. you're taxed on that amount).

* There is usually a big difference between how leases are treated for accounting purposes and for tax purposes

* Accounting requires that things like accounts receivable to be measured at the expected value. Accounting generally requires an allowance to be booked as an expense for doubtful accounts, even if you don't know which accounts are doubtful. This is usually done on a basis like, historically 2% of accounts are doubtful, so we'll book that expense. For accounting, that's fine, but for tax purposes only actual bad debts are deductible.

* In Canada, capital gains are taxed at 50%, while for accounting purposes 100% of the gain is included in income.

* Capital asset purchases are not deductible, but are depreciated instead over time

* There's limits on things like meals and entertainment. In Canada, only 50% of them are deductible as it is assumed there is always a personal portion to a meal.

So it's not like everything is always deductible, there are many things that income is adjusted for for tax purposes.
even if you do the same thing will happen with python 4; these languages are not built with long term stability in mind
It’s a privately held platform. The apps created by Apple should be on top if they want them to be. There’s no right to equal access such as with Net Neutrality, it’s not a publicly owned or subsidized platform. The only way this could possibly be wrong is if we nationalize Apple. I’m definitely left of center economically and I have no problem with Apple placing their apps on top. It would completely align with current rules, regulations and economic expectations. At 40% market share in the US, they’re not even a monopoly, not that it would matter anyway. That’s without mentioning that on a personal level I would prefer to do business with Apple rather than giving my information to many of the third parties. They’ve earned a reputation of being trustworthy and deserving of our money.
Andrew Luck Walked Away from $58M, but That’s Not Necessarily Bad
I'm not very familiar with kubernetes, what do you get out of it that you don't with dokku? I really like dokku and use it on my personal server for all my half-baked personal projects.
The TPP provides an incentive for all of the countries mentioned - especially the developing ones - not to fall under China’s influence. It’s a soft power bulwark against China, and also a modern trade agreement that respected environment, workers rights and intellectual property to a greater degree than many prior agreements.
BA was in financial trouble partly because their unionized staff are paid far too much. Putting their salary back "where they should be" (a novel concept) would just cause them to be unaffordable again. As will going on strike for 48 hours.

Basically BA is toast as an airline. They can't break their own union and are steadily being ground down by airlines with more flexible work forces.
Not that extreme. Interviews are meant to ensure candidates aren't lying on their resumes, but nothing is done to ensure companies aren't lying too.
+1 for the machine stops. it’s happening right now
Sure, I agree, but there are different standards for books which claim to expose a history than there are for books which are replies and polemics to other points of view. A history book shouldn't be the place to argue a point of view, and if it is, it shouldn't be so blatant as to be sourced as one of the main places where Russell does make his polemics. I don't intend to get into a discussion about how everything written carries with it a point of view and bias, but with a book like that, you can come away with the impression you have an accurate picture of Western philosophy when really you've just got one philosopher's view, and from a book written by someone with such esteem as Russell you come out parroting objections to Hegelianism that were refuted sixty years ago. And for the record, I wouldn't recommend Hegel's History of Philosophy lectures for the same reason.
AWS power failure caused data loss
Roku is more than the box. We have Roku boxes and a couple of smart TV's. Roku is also a gateway service IMO, and Roku is adding content all the time. So I think the companies value is in the number of eyes looking at content over just how many boxes/tv's got sold.
I can't speak for other libraries, but Plotly is extremely customizable: you can change pretty much color, font, dimension etc. There are thousands of attributes which can be tweaked, from the length of the tick markers to the exact positioning of the titles, the shapes of the markers, etc.

Here's the full Javascript reference for all of these attributes: https://plot.ly/javascript/reference/
Curious linguistic detail: they need to use the word that people using THC vapes expect them to use for clear communications to occur. As a stuffy international organization, they'd be expected to use something that sounds like a technical term. Vs for instance, some slang or cool-kid term.
I think there are plenty of programming languages (maybe even most of them?) which take backward compatibility as a very serious goal. Obviously there's a balance between "don't break user space!" and fixing major problems (e.g., C's gets()), and most of the major ones seem to lean toward the former.

At the company I work at, we've got a large amount of Fortran code from the '70s that works fine with the latest and greatest Fortran compilers (barring deprecation warnings which help guide refactoring efforts). Same with C/C++ from the '80s.
For the "flat on my desk" thing, I picked up an upright wireless charging dock. Just set my phone on it, it's angled upright so I can see and use it, and it charges, while also being able to "grab-and-go"
Shenzhen, the Capital of Amazon Sellers
They're less well supported nowadays than they were. For instance, they used to be well supported by Parabola (one of the FSF-endorsed distros), but since then Parabola's dropped support for MIPS, because every Parabola developer working on MIPS either had their Yeelong crap out or get stolen; and they're hard to replace.

Also, MIPS has never been supported by Trisquel (another FSF-endorsed distro), and I suspect that since the lead Trisquel developer has since been hired as the senior sysadmin at the FSF, he gets some value out of giving RMS a laptop running Trisquel.
It may also be the need to blame someone, the pilot in this case, in case of a disaster.
Rule of thumb is that no version == python2, either because it pre-dates 3 or because the developer's concept of python is "what happens when I type python at the shell" so it's still 2. It's often a big red flag about quality; competent Python developers find it natural to state py3 support upfront (or lack thereof) because they know it matters.
The only job where I had to be on-call, we got paid extra during the week we were scheduled, and got paid more extra for the hours we put in.
I was recently trying to make something like this checklist, but categorized a little differently, with multiple levels of detail, and... extensive.

As above, visit [1] for the end-user version and [2] for the repository.

1. http://htmlpreview.github.io/?https://github.com/dpmm99/deve...

2. https://github.com/dpmm99/developer-knowledge/
because this <!-- <![CDATA[ -->

as for the solution, one can get a premade grammar and query the ast
The reason I use Firefly III is because it supports the Bunq API. It is much more convenient than manually importing CSVs. Great list though!
I can't say connection. James is taking Duhigg's idea and he's extending it. Both books are good.
I'm not saying this isn't a problem, but it seems pretty minor compared to the fact that:

1) Apple's apps come preinstalled on every iPhone.

2) Apple's apps have permission to do things that 3rd party apps cannot.

If I search for "Web Browser" on the App Store... well, technically I'll get results from third parties, but every single one is just a UI skin around Apple's own browser. That strikes me as a much larger problem.
It's not an assumption of correctness. It's an assumption of purpose. Chesterton's fence[1].

Let's say you inherit a large codebase, and it in fact does not have any tests, and is relatively complex and convoluted. Obviously that's not going to be very maintainable without testing, and it may make sense to do a rewrite...

But first, write tests. Test your assumptions. Read the commit history and see how the code base evolved over time. Maybe the reasons it was built the way it was are dumb ("I like naming my variables after my favorite flavors of pie!") or maybe it was done for really good reasons ("The database library breaks with odd numbers of connections, so the pool always has to be an even number."). The issue is that you simply don't know and risk repeating your ancestors mistakes unless you do some investigation.

[1] - https://en.wikipedia.org/wiki/Wikipedia:Chesterton%27s_fence
> Not necessarily. You could be asked to leave with an announcement over the PA system.

Would that be valid legally though? Like how can you know it was targeting you? If they mentions everyone, that could works.

You will still not go to jail though and you can still try to avoid their sight (or else you'll be "found").
Add in the cost of educating her in the use of two remotes.
> I explained to them that the compiler will optimize or the loop so this will be fast and that they should check it on godbolt. (did I mention that I was coding on the white board?) There's a loop in the source code, but there isn't a loop in the machine code, and it's like three instructions.

Did you check this yourself? These sorts of "grand" pattern-matches tend to be low-productivity optimizations for compilers (the speedups you get are not worth the extra compile-time). LLVM tends to have a higher tolerance for this than GCC. But even looking at LLVM's source code, the "naivest possible popcount" [1] is not going to pass the loop idiom recognizer for a popcount.

> I can't remember if I told him "that's nice, but it's still an extra instruction compared to the trivial, obvious, easy to maintain method I showed you ten minutes ago."

n & (n - 1) should come out to 2 cycles of latency. 1 == popcount(n) would come out to 4 cycles of latency (3 latency for the POPCNT, 1 for the comparison at the end).

[1] I'm assuming by this that you mean iterating over all bits and individually checking each one for set/unset. Both gcc (since version 9) and LLVM handle the case where you iterate through set bits in a for (; x; x = x & (x - 1)) loop.
I've listened to string orchestra reproductions of some of my favourite music and while it sounds nice, they couldn't quite reproduce every sound accurately.

And strangely enough, even with the usually great "right to repair" laws in the EU, unless you have a very specific and expensive license that takes many years to request, it is actually highly illegal to perform certain kinds of repairs on your string orchestra.
I don't understand why "why should they have granite countertops when I don't?" is a stupid thing to say. The article doesn't explain. Do you have more context, or is there anyone else here who can explain what's wrong with that statement?