skysight-inc/HackerNews huggingface dataset:
Oh dear..

So the left hand is for dirty work, and the right hand for clean?

But why do we shake hands with the right hand then? I guess there could be some "social respect" reason, but from a germs-and-stuff point of view it seems nonsensical?
C64 CP/M Cartridge – Pagetable.com
Yes, I've tried consulting and decided a FT gig was more worth it.
I've been writing code for 20+ years, while getting older management was the "path". I did CTO things at some startups but now CEO my own. Since were small, I still code more than manage, architecture and big picture things, mentor devs on my team.

Since I don't need to look for work, I'm not concerned with Magpie fads or leet code. And we don't whiteboard here.

I still do some consulting work, what ever trickles in from my consulting company site.

I've even had time now to launch another niche service.
Thanks everyone; I actually heard of this algorithm before but wasn't thinking of it today and missed this when I wrote the above post.

>It's not clear to me how you're supposed to "tack the item on to the end of the array", though

The algorithm mentions pointers so I think it means temporarily change a value in memory that is after the array with the array value. I'd be worried about how this would work if there are multiple threads, though, in case another thread wants to access the memory that was temporarily swapped out. (Edit: as other poster mentions, would be helpful to have an extra entry in the array for this purpose.)

If the 'array' is internally something like a vector, then you can add it on to the end quickly by appending a node to the tail of a linked list.
I agree with Amber’s point that more stuff should be moved from the standard library to PyPI. I made my first pull request to CPython during the development sprints this year, and it’s honestly not the best experience. Everything is built from scratch in CI after every commit, even a documentation change. There’s nowhere near enough CI builds and pipelines for everything Python supports. Pull requests are outstanding for several months, and there’s at least a thousand PRs open when I checked this morning.

I’m not sure if Python’s ideal solution is to reduce stdlib and have endorsed packages in PyPI, but it would be an improvement over the current process.
Not quite that cheap 0.005$ per GB. USD 6 per month for personal unlimited backup though.

Trying the trial now.

Thanks for bringing it to my attention.
My mother for example does this. She’s writing her travel blog in Botswana, where internet connectivity is not a given and often spotty. She uses middleman as static site generator, hosted on an S3 bucket. That gives her the option to write the post, check it, commit and upload it. If the push doesn’t go through, try again (another day or hour sometimes). Try doing that with hosted wordpress.

We do it for our company website. Markdown makes it easy to have a pull-request-based workflow for reviews. It’s neat and uses the tools we as developers are used to. Another advantage is that the end result is static pages. We can literally host them anywhere, though we’re currently using netlify for convenience. They don’t need security patches either.

Does that make it superior to hosted WordPress? For our needs: yes. For other people’s needs? Don’t know.
I’d say that The JS weed is growing the browser platform. But yes it’s a weed.
Dictionary in the python sense? There are two!

https://doc.rust-lang.org/std/collections/struct.HashMap.htm...
https://doc.rust-lang.org/std/collections/struct.BTreeMap.ht...
OK, even if it isn't possible to cheaply extend the array by one, do this slight tweak for the same end result: store the last item in the array as a temporary, and replace it in the array by a sentinel value. (search the array). Once you find the value, if the index isn't that of the last entry, you've found it. If it is the last entry, check the temporary to see if it happened to be the value you were looking for. Finally, replace the last item in the array by the temporary value.
I’ve only dabbled, but my impression is that mastodon and micro.blog are oriented towards building “online” communities like Twitter, ie communities of interest with people you likely do not know in real life.

Facebook and to some extent Instagram seem to be most often used to share within pre-existing offline networks; ie you might use it to follow life updates from someone that you also see in person on occasion. This works because everybody is on it — you don’t have to hope that your acquaintance from college (or whatever) has picked the same instance as you.

Is there an “indie” real-life-network alternative? Is that what Diaspora is intended to be?
Historians ignore and discredit primary sources all the time.

Consider ancient Carthage: after the Romans defeated Carthage in what was basically the classical world's equivalent* of WWII, Roman historians wrote that Carthage had been practicing ritual infant sacrifice --- which horrified the Romans as much as it horrifies us.

In the 20th century, the "pots not people" crowd spent decades dismissing these ancient reports as mere wartime propaganda.

Well, guess what archaeologists uncovered under the ruins of Carthage [1] --- pits full of hundreds of charred infant skeletons. From the article: "evidence for child sacrifice is overwhelming and that instead of dismissing it out of hand, we should try to understand it."

A lot of recent historical revisionism really is shockingly wrong. I know that it's really hard to accept, but it's true, and it's the product of motivated reasoning and willful misinterpretation.

Everyone is predisposed to imagine the past as a time of stupidity and ignorance and to imagine today as the height of enlightenment. Tragically, it's frequently the other way around. We have unlearned truths.

[1] http://www.ox.ac.uk/news/2014-01-23-ancient-carthaginians-re...

* in a surprising number of ways, actually
The argument seems to be that Google is rejecting this app to force users to search for it in Google Maps. This is significant because that’s a different line of business for Google.

Apple is more restricted, but they do it for control of the user experience, which, as a developer, I’m not a fan of. Apple is in less businesses and don’t as frequently use their restrictions to direct/force users into another one. The one case I can think of is restrictions allowing only Apple Music. Though other music apps are supported in Car Play, Siri will only use Apple Music.

All that said... this case seems like a stretch. I’m not familiar with Italian law though, but is Android Auto so pervasive that this would have merit? The other antitrust suits are regarding search or Android, where Google has a much larger grip on their market.
If you are using dictionary in the Python sense, Rust has that built in too, you just have to import it from the standard library collections module.

https://doc.rust-lang.org/std/collections/struct.HashMap.htm...
Only 144? I guess it's a matter of perception, but I'm pretty sure way less software developers died for their job.
When I first touched Python I had only used C. Is your story similair?

Had I been using Java or Visual Basic or even C++ proirly maybe I wouldn't be so impressed as I were.

I think the mistake Python is doing is messing with it's simplicity with decorations, halfass lambdas and stuff. As a newbie you could understand Python code, while eg. C++ templates were magic. You need to know more Python to understand Python code nowadays.
For most users, "replacement" mean it can open and edit Microsoft's documents perfectly. For some users, it even means the GUI is just about the same so they don't feel lost.

By that criteria (which are real criteria from real people), the only viable replacement for Microsoft Office, is the next version of Microsoft Office.

The only way to break out of this, I think, is for governments to forbid themselves to use proprietary software that was not developed on their own soil. Because let's face it, it's not really about money (especially not about short term money). It's more about national security, sovereignty, and freedom.
That is actually being considered for inclusion at some point. It was mainly excluded due it not being ready and them not wanting to commit to the existing API. That said, I like the Rust way. Including a library is pretty easy, and it mains you get the best API as the main one (rather than a stdlib function that is "good enough", and another library to use if you really care about that functionality).
Are submarines more stressful than surface ships? I was never in the Navy but I've heard surface warfare officers complain that they were constantly sleep deprived. Between standing watches, training, maintenance, and managing subordinates they barely got a few hours of poor quality sleep per day.
This is true... up to a point.

99% of employers will pick an acceptable salary range they want to pay you, and then offer you the low end of the range. If you ask, you'll get more, if you don't ask, you'll get less.

The employment relationship is inherently adversarial. They want to pay you less, you want to get paid more. (There are aspects that aren't adversarial: long hours are bad for both sides, even if many companies don't realize that.)

That doesn't mean you should be a jerk, or get angry, or be rude. It does mean you need to stand up for yourself, or you will get paid less and treated worse.
I got my phd in biophysics from UCSF, where the prion work was originally done, and all my professors used the term "replication". That was a colloquial term for "catalyze a structural transfer in an exponential way". I think that really does qualify for replication in a limited way.

However, arguing over this terminology is irrelevant.
You can leave any time you want. Many things to consider, if you are not a trust fund kid then I'd stick it out until you find another job. If you are on the fence at the end of your trial period then having a direct conversation with your manager might help them better define the position to your interests. In my experience, employers that have a six month trial period have a hard time hiring, and therefore firing, people so they may be motivated to make it a better fit for you.
Must say that I disagree with this article. I've been low income for years, and have had hundreds of low income coworkers, and I've seen rent, gas, food all become more expensive while their pay remains constant, or is cut. Most have at least 2 jobs, and any kind of expensive life event ($1000 or more) will put them out on the streets. Things weren't this bad for us 15 years ago...
I exaggerate my current salary, and then say I really like their company and I consider it a lateral move anyway but I’d like at least the same salary.

Allows myself to get higher wage and the business I’m applying too to not feel disrespected.
They derive their right to tax as recognized entities from the states wherein they are incorporated. There is no limit to what they can tax according to their charter, as long as no higher jurisdiction forbids it.
Well, my first reaction to your critique of the "Three body problem" was to argue because I liked it, but on the second thought I've decided to ask you for the reading recomendations :)

I guess I'm looking for sci-fi involving grand picture of the universe or 4X-style books, but not necessarily limited to it.

Out of the books you've named, I've read Diamond Age and Neuromancer and while I can't say anything bad about them I still like the Liu Cixin's book more.

"Deepness in the Sky" is on my to read list.

I haven't read Martin Iden, but liked Alaska stories a lot. Remarque is good, but I like Heinrich Böll much more.
https://chessable.com is pretty great for actually practicing the stuff from books!
I think a more typical, high performance operation for copying arrays would be using mem copy operations. This is how Go handles a lot of slice operations under the covers.

If it's a C style array you could always just keep it one larger than the actual size; perhaps place a null value at the end and swap it out as needed. Just build an abstraction over it.
This led me to Donald Knuth's organ pages, what an incredible instrument that must be to have on one's house:

https://www-cs-faculty.stanford.edu/~knuth/organ.html
The point of a long trial period is that it gives both employer and employee an opportunity to exit with no fault.
How much energy is used to make TP and transport it to your local store?
DuckDuckGo does do unit conversions “100 JPY in EUR” [1] and unit-less calculations “2^32 - 1” [2].

[1]: https://duckduckgo.com/?q=100+JPY+in+EUR

[2]: https://duckduckgo.com/?q=2%5E32-1

But like you I drop back for unit-aware calculations. For those an alternative to Google is Wolfram Alpha “!wa speed of light / 400nm in terahertz” [3] which also allows for symbolic computation “!wa integral of 2x” [4].

[3]: https://duckduckgo.com/?q=!wa+speed+of+light+%2F+400nm+in+te...

[4]: https://duckduckgo.com/?q=!wa+integral+of+2x
Here are numbers from the CDC:

https://www.cdc.gov/niosh/updates/upd-2-12-18.html

But as far as retiring when your fitness wanes. How is that any different than any other job that requires manual labor?
Same here, though mine is a small project. I'd guess six probably becomes more useful when you starting hitting certain features/areas of the language. I'd be curious about what things make six start being useful.
The Convivial Society: Arduous Interfaces
Are you actually doing business in those places, if people from there just go to your site that is hosted in your home jurisdiction? I'm not sure that it logically follows.

Obviously, governments interpret the situation in the way that accrues them maximal power and brings the most activity into their purview.
From what I have seen most people leave their job on Friday and start the new one next Monday. Almost nobody takes time off. Also, a lot of companies want you to start tomorrow. I have told companies that I want to take a month off before starting there and it seemed they couldn't even comprehend the concept.
I think the key with shallow work you can't avoid is to schedule your day thoroughly. Batch the shallow work together into a single 30 minute to 1 hour block, as much as possible.
have you written your own 2/3 compatibility layer? I can't imagine writing anything large without six...

fwiw, six can easily be vendored into a project to avoid the technical external dependency. that is how we manage it for kafka-python.
> This post alone is sure to contain several typos (no rewards for finding them though)

[...]

> It mostly applies to [techinical] errors,
Nobody required him to be in charge of Python. Nobody required him to personify Python. Plenty of languages have succeeded without their creators handling every little detail, from C to JavaScript to PHP to Java.

A core skill of any open-source project maintainer is recognizing when you're burnt out enough that your continued presence isn't helping the community and is just getting in the way of others, and stepping aside. If you can't do this, you're not a good maintainer. I'm happy to have sympathy for your personal problems, but you're still failing at your job. Here, for instance, is a short but effective way to do it: https://mail.mozilla.org/pipermail/rust-dev/2013-August/0054... (That was almost two years before Rust reached 1.0, and the language hasn't suffered one bit for it.)

And part of Amber's point is that core Python development is taking on too many burdens for no actual benefit. By bundling so much in the standard library and expecting the standard library to be usable for real work without installing additional packages, the core team (and Guido in particular) increases their own workload, impedes the ability of others to contribute, and produces worse results for end users than they would otherwise.
On the flipside, it must be a dream to have an enormous team of hundreds, a bug tracker where new issues are triaged by eager volunteers within minutes and expertly resolved usually without your needing to be involved, a whole organization that puts on conferences for you, sysadmins creating and maintaining your entire development, testing, and release infrastructure, big companies supporting you with substantial donations....just saying Guido has a spectacular organization of hundreds of people that must be really nice to have. That you aren't directly responsible for every single detail helps a lot.
In my experience, grid is very useful for setting up the overall layout of your page, whereas flex is well suited to the content within each segment.

For example, if you want to move your navigation/controls to the bottom of the screen on mobile devices for better ergonomics, it's far easier with grid than flex because you can specify a completely different layout at each breakpoint. With flex you often have to duplicate content in different areas of the screen, then conditionally hide/show them based on the current CSS breakpoint. This can have a negative effect on page load times, SEO, and overall complexity, as well as just being kinda gross.

Another example: imagine you have a 2x2 layout, say a sidebar and top-bar that join in the top left quadrant. Keeping ([0,0], [1,0]), and ([0,0], [0,1]) the same height and width respectively, without specifying explicit heights or widths, is very difficult without grid. It might be impossible, but I'm not that great at CSS so I'm not 100%.
It's one of the things I really like about the R community. It's incredibly friendly and without egos, and has lots of people who actively work to make the community as safe and welcoming for everybody. I can't say I've ever heard about drama like this from there.
From a sibling comment, it is the 18th most dangerous job.

Also from the article.

Leading causes included heart attacks and strokes, which caused 18 deaths. And 15 officers died due to cancers that the NLEOMF says were "related to search and recovery efforts after the attack on the World Trade Centers on September 11, 2001."
Why is it so difficult to admit Node.js did the package thing right, by keeping a local folder just for the app, isolation from other apps with zero effort?
I’ve been watching the udoo bolt in this type of space (small form factor ryzen based pc for a possible homelab) but their lede time is quite far out:

https://www.mouser.com/Search/Refine?Ntk=P_MarCom&Ntt=135138...

Good sign that more of these are coming to market.
Show HN: Anything to Vector Framework
The hemroid thing 100%. For all us desk jockies, they'll happen! Paper hurts, bidet/water all the way.
Finding an instance that you enjoy is hard. I am on a small instance dedicated to a specific niche, and it works great.
Decorators added were in in 2004, I think lambdas were an original language feature (like... before 2004).

There are other new stuff that might be confusing to beginners (like our mighty walrus operator), but those two examples have been there for effectively forever.
What is the equivalent video for Trump? The situations are not parallel.
Outline looks like a completely different product - it allows annotating news articles in an uncluttered, from my initial impressions.
Maybe he just likes working through text books thoroughly?

I personally find it quite valuable to compile a list of "outstanding questions" for the text books I read. Usually most of my questions are resolved before I finish the book. The ones that remain, often turn out to be simply errors. Finding the the errors is just a by-product of the learning process for me.
Ubiquiti's Unifi Cloud Controller depends on MongoDB, which they won't help you with (having had MongoDB eat it multiple times on my Cloud Controller in the last year). The Intrusion Detection System/Deep Packet Inspection wrecks performance & throughput (and is pretty basic compared to eg: Watchguard), IPv6 is disabled by default, and no VLAN tagging on the WAN port means providers like Centurylink Fiber can't be used without an intermediate device between your Unifi Security Gateway and the Optical Network Terminal.

The Unifi suite is great for a small to medium business that is game to splash out $600 to $1500 (having the Unifi switch is critical to seamless VLAN tagging internally), but for homes and larger businesses or those with fast connections that want more than a basic router, the Unifi lineup doesn't have the grunt.
Not surprised at all. I have friends still in med school. Apparently there’s an exam called the Step 1 where you can only take it once, and if you pass but don’t do well enough then you get shipped to somewhere not great to do your residency. I thought the hardest part was the MCAT but I was totally wrong :(
Asyncio is an amazing tool that makes me not hate doing async with Python. There was quite a learning curve with the library. A lot of Lego pieces. But I found the handful I need and then learn new ones occasionally.

I think bloatedness of the stdlib isn't actually a practical problem. It's just an inelegance that you kind of have to learn to tolerate.
Are you already doing long time control competitive matches?
It's funny to me that they're making a point that PyPI is better than core, because actually I think PyPI has created a rather crap ecosystem. The non-hierarchial organization of packages, the lack of curation, lack of inheriting past functionality and extending it as more standard functionality, etc has resulted in a confusing sprawl of packages with duplicate, incompatible, buggy functionality. It's a bit like Linux internals; it's grown haggard over time, isn't organized well, is badly documented, and so it's difficult to pick it up and use it without stumbling over a decade or more of stale documentation and obsolete software.

Perl has a much better set of modules that extend standard functionality, which considering how much flack Perl gets for being hard to read, is rather funny. Rather than every new feature being its own independent project, most of the useful modules inherit a parent and follow the same convention, leading to very simple and easy to use extensions. And Perl Core isn't all that great, but it does have some batteries included, and everything else is extended easily and in a more standard manner by CPAN.
I was definitely one who thought it should be so simple to follow a standard stab trim runaway and made several comments to it too. But the more it drags on the more I'm learning from the data that the procedure to correct is just bullshit.

Boeing is now in unsaveable waters for this situation and all doubt is being removed. I still am upset that any airline was able to in good faith say "nah we don't want all the safety options not worth it" but here it doesn't seem it would have helped much the more data comes out.
Has DHH, Matz, Ryan Dahl, the Allaires, Larry Wall, or anyone else who founded a language or related-project been known for behaving like this?
But you didn't just invent that - the idea of an airlock death is building on at least a hundred years of prior art here.
> No, it was quite unpopular, period. See: https://xkcd.com/528/

I've always read this comic as making fun of people for having unjustifiably low opinions of Vista.
I know it's not the whole point, but there is a hash map and sorted (btree) map in the std collections.

That being said the point still stands, I remember specifically feeling it at the lack of included regex. I overall prefer the slim std lib of rust over the massive python though. Especially with the community being pretty good about nominating de facto standard packages like for regex.
A Troubled or Harsh Father Can Influence Women’s Expectations of Men
"This is true even for people you know personally! A story: when I wanted to meet with a really busy friend of mine in SF, I first sent him 2 twitter DMs, then 2 emails, and then 3 text messages, letting him know that I will keep sending one text a day, until an email from him finally landed in my inbox letting me know that he would love to get lunch."

That's pretty creepy. Seems like a good way to get a restraining order
How does Outline not get sued into the ground?