skysight-inc/HackerNews huggingface dataset:
This reminds me of how I got into programming by playing Starcraft: Brood War. If anyone is familiar with the Use Map Settings game mode, you could program your own scenarios using a Map Editor that came included, eg a Tower Defense map.

The map editor only allowed basic logic in the form of conditions/actions, but soon some very smart people figured out how to compose this into more expressive logic. Big communities and clans formed around map making, standards were made, and eventually, super high-quality maps started to come out. Many people I know from that time are now successful programmers.
Building Containers in Unprivileged Environments
> so people who decide they earn enough and prioritize time/family over further career progress will appear in statistics as "inequality"

It's even worse than that. According to the same statistics, a person who bought a ticket for their favourite band's performance last night is worse off than a day before, whereas their favourite band are better off. In fact, the statistics would show that inequality increased dramatically last night, the band was famous and there were 10k+ people giving away their money, whereas - let's say, five - random guys got "significantly richer" at the same time.

The value of the emotional uplifting and sense of life after the gig? Nah, not an asset to rely upon in "strict" statistics.
Exactly this!! I have an extra wide computer screen for work, it is a gamers screen. So when they tried to sell me progressive, I refused. I want 2 good solutions, not 1 half assed one.

Next time I see an optometrist, I will have to ask them with my precise focal length. They have the details of my correction, so they should be able to figure it out.

Can I bother you more? What is your take on undercorrection? I am wondering if I should go for that for my future computer glasses, or my regular glasses.
It does. They are probably in the current batch, which would be W19.
I know this is slightly off-topic, but I'd be very interested in Jepsen testing FoundationDB. They claim to have developed the database test-first (starting with simulations), and it would be great to be able to compare the claims to reality using an external (by now becoming an industry standard!) testing tool.
Dev Board cost $149.99, says on the website.
I've long had a dream of taking the source code for the original SimCity and changing it more to my liking. The newer version was nice for streets with curves, but inferior in almost every other way compared to the original. But I doubt I'll ever find the time to actually take a crack at it, so it will likely remain just a dream.
Just got a reply- it's not. It has a different focal length, so you can relax your eyes when working on a computer screen.
>I genuinely cannot tell whether the guy posting on Hacker News that he "dropped out of society" is being serious or tongue-in-cheek.

For reference, 90% of people in subsaharan Africa, whatever the country, have a cellphone (with some kind of internet). And around 40% have internet connection (predicted to be 50% 3G in 2020).

In the US many homeless people have internet access and even laptops.

"Dropping out of society" in a concrete sense and posting on HN are not contradictory. You can do it from a small mobile home in Alaska, your own log cabin somewhere out in Wyoming, or from some hut in the Amazon, all of which qualify to my book.
Beginner's guide to machine learning model deployment
Tears of Wine
WSJ: Compare median pay across 1000 US companies
Cool, good luck! If you end up wanting a more 'official' STLink probe which is still pretty cheap, the ones on their 'discovery kit' and larger 'nucleo' boards can be disconnected from the main board and used with other targets.

They're a little bulky, but if you're interested in bare-metal programming, the embedded Rust ebook[1] currently uses an STM32F3 discovery kit[2] as a target, and that board's user manual has instructions for using its ST-Link to program/debug an external application[3] like your drone.

[1]: https://rust-embedded.github.io/book/

[2]: https://octopart.com/stm32f3discovery-stmicroelectronics-241...

[3]: https://www.st.com/resource/en/user_manual/dm00063382.pdf (PDF, see section 6.2 for STLink info)
Volvo Sets a Top Speed for All Its Cars
Anecdotally, every time I've heard the phrase "I want to keep politics out of this," it's been uttered by some rich white dude.

I don't see why Facebook would be any different.
Oh wow, that's messed up.
My modus operandi is to buy the frame from US under my vision plan with ultra cheapo glasses, and then get the glasses replaced abroad for half the price of what I would have paid in US.
same here.. unfortunately we can't assume reproduction was a fairly covered topic at schools across the US however.
I'm not arguing that Kakoune's way isn't better (I think it probably is). But you can sort of do this in Vim as well, minus the more advanced interactive adjustments:

- :set hlsearch

- Type `/`

- Spend five seconds thinking up a regex that approximately matches the things I want to change

- Hit Enter

- Cycle through matches with `n`/`N`, checking to see if they're what I expected

- If they're not, press `/` then <Up> and edit the regex

- When satisfied, type `:%s//`, enter the replacement you want to make, then `/g<Enter>` to apply the change everywhere
Unfortunately the binary representation of IEEE-754 may not look the same everywhere.

https://en.wikipedia.org/wiki/Double-precision_floating-poin...

https://en.wikipedia.org/wiki/IEEE_754#Reproducibility
> use American English

What is the reasoning behind this?
I was thinking that the disruption would be the creation of new venues. It seems that there's a market for less-expensive venues that can hold from 120 up to perhaps 200 (?) people. There's unserved demand there. The trick is to create spaces that work, that are attractive, that aren't as expensive as the existing options.
The cells themselves are the expensive bit. There have been one or two people doing it as recreational projects but obviously Tesla's vertical integration and large production run will win over the garage tinkerer.

Not to mention that selling an unsafe product is a non starter.

No, the interesting thing to me is why everyone forgot about the other chemistries like NiFe, which are cheaper but heavier - matters less for a fixed installation.

Also I feel that proper net metering should be better than domestic batteries for the normal case. The only reason it isn't is regulatory spinelessness.
I realized that when I got the first PINE64. Sounded great on paper: 64bit, gig ethernet 2GB memory. But the OS provided was terrible. And there were hacks and patches all over the place.

I would have loved to keep buying more, and the PINE guys came out with more devices. But I've stayed away due to the utterly poor software support.
This was done a few years ago. See https://web.archive.org/web/20150325003526/http://blog.found....
Maybe Firefox could "Experiment" with making trackpad pinch to zoom work like every other browser first.
I have arguments against this coming from a few directions.

1) States have historically taken precedence over the federal government when it comes to taxes. It was explicitly written in the constitution that something like the federal income tax was forbidden, which is why the sixteenth amendment exists. The reason for that is that people were worried about double taxation of the type that now exists. Supporters of the federal income tax were like, "nah, that would be dumb don't worry about it!" and included the SALT deduction which has existed the entire time that federal income taxes have been a thing until now.

2) State and local taxes pay for things that benefit everyone. Maybe where you live there isn't a homeless problem, but it might be because your city has a program to ship people to California. Or maybe you recently ordered something on Amazon that came from overseas. It probably stopped at a port run by a local agency. And it sure would be embarrassing for America if something bad happened at the UN. Thank the NYPD for that.

3) There are multiple layers of government, but in the end to an individual it's just "the government". Philosophically it's weird that the government can end up taxing you more than 100% on a technicality. Rather than the repealing the SALT deduction, they could have just increased the tax rate. Any state that felt like it could have implemented its own income tax, which hopefully they would have used to take some burden off of the federal government anyway.
They did! Matrix.itasoftware.com
Basically you start to ingrain how to use the tools there for problems that you solve differently in other systems. Then you start looking for ways to get rid of the awkward parts of your code

The old list of official aha's is: Monads, applicative functors, lenses. But really it's about spending time learning them well enough to use normally.
I've changed the randomness in there a bit. It now starts at a random position but it continues sequentially from there.
TAL does sometimes engage in journalism. Here are a couple of excerpts from the site below about journalism, I think some TAL pieces meet these criteria:

"Journalism is the activity of gathering, assessing, creating, and presenting news and information. It is also the product of these activities."

"That value flows from its purpose, to provide people with verified information they can use to make better decisions, and its practices, the most important of which is a systematic process – a discipline of verification – that journalists use to find not just the facts, but also the 'truth about the facts.'"

https://www.americanpressinstitute.org/journalism-essentials...
so you are okay with somebody taking your hard work, slapping their logo and selling it without your knowledge? You are seriously going to sit there and tell me intellectual theft is suddenly not really theft.

k. im outta here.

edit: @driverdan (since you flagged all my comments to silence me) my company has been acquired and I no longer have direct control, so if you are insinuating that I am trying to squelch the competition, you are spreading libel. I'm not going to sit here and let driverdan, a self professed criminal, spread lies.
I'm only guessing, but in the blog posts about the password search feature he said there was a lot of cleanup of badly formatted files it's possible that the whitespace got ignored?
I'd love to see data on the average on-call incidents for an application written in language X (say Go) vs those written in Elixir.

Concretely, its it the case, for an application where Elixir/Erlang/Beam are a great choice, but also, another language would be fine, that the equivalent Elixir application results in less downtime/pages than the alternative. Anything from the perfect app to something with a ton of races/leaks.

Is this a fair question (maybe I'm presuming too much of BEAM/supervisor pattern, I zero experience with it)?
Similarly: screen your optician by what eyewear brands they carry. I saw a “independent” for years that carried small brands and I felt the doctors philosophy was better aligned with patient care vs sales.
Show HN: Interactively generate text using the public OpenAI GPT-2 model
>When you scatter logging logic everywhere throughout your source code, you break the principle of separation of concerns which is probably the most important principle of software development. Even the term 'cross-cutting concern' implies a violation of separation of concerns (a violation of the cross-cutting kind to be exact). A concern cannot be both separate and cross-cutting.

That's because logging is not a concern of your app -- it's a secondary need that's orthogonal (hence cross-cutting) to its actual concerns, and which is there regardless of the app.

Changing your whole app's structure just so that you collect things to log in a central place (as you propose), would be the real violation of concerns.

Not to mention this way you pass around information that might be useless for the purposes of the app (and is just needed for debugging), that it's enough that separate components know themselves internally.
STM32 chips are used on a lot of quadcopter flight controllers, often using open source firmware like Betaflight

https://github.com/betaflight/betaflight/wiki
sadly this was my first reaction as well
Changed the randomness a bit. It now starts at a random position but then continues sequentially from there. Also people added some more puns, so yay!
I don't know, take a look at this random Haskell function from Yesod[1]:

isValidPass :: Text -- ^ cleartext password
-> SaltedPass -- ^ salted password
-> Bool
isValidPass ct salted =
PS.verifyPassword (encodeUtf8 ct) (encodeUtf8 salted) || isValidPass' ct salted

The stuff after `::`, including the following indented lines, are the type of this function. The text after the `--`s are comments.

That's a very, very simple one. Take look at this other type signature:

widgetToPageContent :: (Eq (Route site), Yesod site)
=> WidgetT site IO ()
-> HandlerT site IO (PageContent (Route site))

or this one:

selectFieldHelper
:: (Eq a, RenderMessage site FormMessage)
=> (Text -> Text -> [(Text, Text)] -> WidgetT site IO () -> WidgetT site IO ())
-> (Text -> Text -> Bool -> WidgetT site IO ())
-> (Text -> Text -> [(Text, Text)] -> Text -> Bool -> Text -> WidgetT site IO ())
-> HandlerT site IO (OptionList a)
-> Field (HandlerT site IO) a

Do you think it would be more readable if the type came before the identifier?

I know these types might look needlessly complicated to someone that doesn't know how to read them, but when you learn to understand them, they are a blessing. Most of the time, a type will tell you everything you need to know about a function or other value. They're often better than the documentation to know what they do.

Another advantage is that they simplify looking for the type signature of a function. You just need to `grep '^identifier'` instead of what you would do for C++, for example, `grep 'identifier\('` and manually filter out the calls.

Also, having it on the right permits one to comment on different parts of it, just like one would do with non-type code.

I don't see the sense in ever having it on the left (where's the benefit? just having it look like C?), but I guess it's not unacceptably bad on unexpressive type systems where the type is hardly more than a type identifier.

[1] https://www.yesodweb.com/
I've used it for a side project and it worked great, thank you for it!
Bit I still thought that the total volume of sales will be bigger, even if they maintain the price per ton. Apparently the price dropped.
This is big in Argentina too. For similar reasons that children live with their parents into their 30s while saving for a place to live on their own.
One of my bosses could read the raw x.400 OSI networking packets and tell which ADMD it was from their botched implementation cough sprint cough

I had to resort to a 409 dump
Well for what it's worth I share your opinion. I suck at marketing and don't enjoy the glad handing that goes with a sales position. Some people are cut out for that sort of thing, but those people aren't us.
I do. At least sometimes. I use Zoom to do so. I sometimes record them as well. We have had a lot of weather cancellations this winter, so I have been doing this quite a bit. But, I am not required to, nor do I do it 100% of the time.
FWIW, I teach Software Development at a community college.
People have certainly built Cities: Skylines cities with mixed-use developments, quaint mountain towns, little enclaves built around a park or monument, car-less cities, pedestrian-only cities, modular cities connected by mass transit, etc.

I think the problem - in SimCity, Cities: Skylines, other video games, and real life - is that if you're building for aesthetics, there are many right answers, but if you're building for efficiency, there's only one right answer. The reason so many mid-size American cities have converged upon 1/4 acre lots with a road hierarchy, 3-lane boulevards, commercial strip malls on the boulevards, office parks, and freeways to link suburbs is that that's the most efficient way to satisfy the constraints of 2-3 child nuclear families who want privacy and a patch of greenery that's all their own and have varied destinations that each support too little traffic to be worth building mass transit to. The reason many megacities (I'm thinking particularly of NYC + Asian megacities like Beijing, Taipei, Hong Kong, Shanghai, etc.) have converged upon high-rise condominiums with street-level retail taking up whole city blocks with abundant bus & mass transit routes is because at a certain population density the suburban model ceases to work, and this becomes the only feasible way to move people to work & shopping. Interestingly, both models show up in Cities: Skylines, and the transition point between them is usually a painful inflection point in your city's development.
I generally agree with comments being evil. however I tend to just automatically skip any comments when reading code, so its not the end of the world.

what I dont understand is after all this time we dont have a richer framework for code metadata. all of those design, commit, review and issue discussions are basically lost once they are closed.

they should be indexed together. there's no reason why we cant use tooling to make this problem not just go away, but be substantially better for everyone.
Scientific American hasn’t been a science magazine for years. At best it’s a “science communication” magazine, at worst it’s a mix of incompetence and agendas, even if they are often agendas I agree with. It’s not worth the read anymore, and far better alternatives exist.
This seems like a great tool for companies that don't have time to invest in dev ops.
Permission changes stop RescueTime logging calls on Android
That actually happened at least once, of course, with disastrous results for one of the candidates.

https://www.dailykos.com/stories/2017/11/24/1717221/-Can-you...
I’ve read the study just now - it does appear that:

a) The chemical put into the retina is surprisingly biocompatible, in that it does not appear to have caused anything out of the ordinary to happen. It works by effectively converting IR light to visible light - so it does not involve ‘sending more data’ to the brain, or ‘opening another colour band’ or anything like that. It is seen as just plain old green light, because the crystal structure of the chemical basically converts 980nm~ IR to 500~nm visible green light. So no uber-neurohacking going on here.

b) The procedure they are using to put the chemical in place is fairly run-of-the-mill medical procedure for humans for treatment of eye diseases, albeit a little icky.

So, I’m surprised, to say the least, but this could actually work with humans as a fairly harmless enhancement. I’m still waiting for the other shoe to drop, but haven’t seen one in the study itself for the time being. (Disclosure: not an expert, but I follow related fields)
I would like to echo this.
The statements on the resume should be "did x which caused y". The caused y part should be how valuable your contributions were. The more concrete you can write the better.

If you wrote unit tests for your code, "Wrote Unit tests, maintaining 80% coverage which reduced QA cycles and increased code quality". or
"Programmed on a product for x Industry, facilitating x% faster workflows for the customer"
If this was in a sci-fi action movie I would roll my eyes at the implausiblilty of it. If it actually works... Wow!
Yep, this is how I got into programming.

It may have been mostly trivial, but it did get you ready to dig into the internals of a program and not be afraid of big scary configuration pages and charts.

I remember being EXCITED when Warcraft III came out, and the huge upgrade in the map editor. Spent a whole summer making horde-mode style maps for WCIII. It was always SO EXCITING when you saw someone else playing the map you built!
I play with a good number of QoL mods (I’m on mobile but reply back if you want that list) and then I normally play with Bob’s mods. Never got into Angel’s or Py’s but I like Bobs. I also play with LTN to help automate trains. I’m happy to give you a full mod list of the last 3-4 play throughs (each ranging from 50-150+ hours). I’m excited for 0.17 to come out (it’s in experimental, beta, right now) as I’m growing bored with my current megabase.

I’ll have to look into Satisfactory!
Apple will repair iPhones with third-party batteries
I agree that training requirements affect salary primarily by limiting supply. But I think the description of supply and demand above is inaccurate because of the many distortions in these markets, including teachers unions, monopsony providers/employers in public education, insurance company contracts, lack of price information, etc.

These market distortions affect the prices and thus the salaries in various ways. Teacher shortages show that the wage is not sensitive to the supply and demand for teachers. Do people shop around for price on needed surgeries? Do they even know the price before receiving the surgery? Do they even pay the price of the surgery? (usually paying some subsidized part of a contractually limited price).

Basketball stars show another market distortion, particularly in college basketball. The player salary is not governed by supply and demand, but by the cartel of college sports (though colleges do compete on non-salary benefits they provide...)

You could assert that these factors just inflate or reduce the supply or the demand, but it's not simply "lots of people want but few provide therefore it pays well".
Nothing special, just usual asyncio Protocol with uvloop policy.
The irony of Van Ness is what they're building isn't even underground.

How does bus rapid transit take so many years to build?
I love building really, really nice websites. Bootstrap is hands down the most valuable tool I depend on.
Elixir/Erlang is slower than java for computationally expensive non tail optimized large struct operations maybe. For simple requests with ginormous thread counts the point of failure is going to get hit way sooner with Java than Erlang. If connecting directly to ETS/Mnesia/Dets instead of converting back and forth between an external persistence layer Erlang/Elixir can be amazingly fast. Doing Map Reduce type operations or performing massive data processing tasks in parallel Erlang/Elixirs is likely going to outperform Java. Anywhere where thread overhead is more critical than raw per thread performance Erlang/Elixir can perform better than alternative solutions.
One way to tell how serious an auto manufacturer is about electrification is to look at what it is doing with batteries, like is it entering into large, long-term contracts to buy them.
are you seriously trying to convince people that its okay to steal Google's intellectual property because they are an "evil American monopoly bent on global destruction"?

How the fuck would you feel if somebody took your lifes hard work without asking, slapped a logo and started selling it? You seriously don't have an issue with stealing other people's properties?

Who's the troll here? Someone from a former penal colony who is most likely a descendant of either a rapist, thief and a murderer from England trying to argue that intellectual property theft is not theft because Monopoly.

I'm outta here. I'll let the Google paralegals sift through this thread and before sending out subpoenas.
I used to be afraid to comment things because I thought everyone was smarter than me and by commenting what is surely obvious to them, I'm revealing how incompetent I really am.
I was replying to someone saying that it depends of the library, the answer is no it doesn't depends of the library, Erlang is not a fast language and it's ok.
You can also just change the command to something like :%s/regex/replacement/gc

The "c" modifier makes you confirm each replacement, and you can y/n for each of them.