skysight-inc/HackerNews huggingface dataset:
Good point. To indemnify youself from this type of data loss, change math.log10() to np.log10() and use Decimal() for tasks involving precise number crunching.

EDIT: Setting Decimal module's precision manually via getcontext() may be required if you work with "long" numbers.

import math
import numpy as np
from decimal import getcontext, Decimal

def digit_length_correct(n):
return len(str(n))

def digit_length_clever_2(n):
if n ==0:
return 1
else:
return math.floor((np.log10(Decimal(n)))) + 1 # You can use np.floor() and eschew the use of math. module altogether, but I left it intact to show the minimal necessary modifications

def generate_cases(n):
getcontext().prec = n + 3
return (
[10 ** i for i in range(n)] +
[(10 ** i) - 1 for i in range(n)]
)

cases = generate_cases(300)

for t in cases:
a = digit_length_correct(t)
b = digit_length_clever_2(t)
assert a == b, (t, a, b)

for t in cases[-2:]:
print(t)
print(digit_length_correct(t))
print(digit_length_clever_2(t))
It wasn't unknowable or even an unexpected situation, those engine unstarts were common until they worked out the control system dynamics. They were moving fast and killing test pilots right at the beginning of being able to use computers to simulate flight. Exhaustive simulation of all circumstances might not have been possible with the available computer time, or honestly it is quite possible nobody thought to do it.

Test pilots though are generally aware of and on board with the risks. Unfortunately simulation isn't all it's cracked up to be and very often aerodynamic models are trustworthy only after they have been validated experimentally for the specific scenarios they apply to even now. Nevermind half a century ago.
you need a high shade, at least 14.

just get a stack of neutral density filters, and some IR/UV block filters, and use a camera... you'll need magnification anyway.
> No programmatic reason what given for why a string solution couldnt be used, only an arbitrary reason

The entire problem is arbitrary. It's not a real-world problem looking for a solution. It's a programming exercise.
That's what I used for the transit of Venus, along with some binoculars. Make sure the glass is dark enough of course.
Bjarne Stroustrup: Deep Learning, Software 2.0, and Fuzzy Programming
Ableton Connection Kit (2016)
Who will be the advocate for the consumer? The government wants access. Companies want to monetize and viralize. Who will speak and crawl in the dark recesses of power for the people?
I like being able to set an alarm without getting out of bed, and I'm extremely nearsighted, so I like being able to check the time and temperature before I find my glasses. Sometimes, if I can't sleep late at night, it is nice to put on some music or sounds w/o getting up.

It is handy when cooking, you can set named timers, ask for conversions with your hands full.

It is also fun at parties, guests can play whatever songs they want (there is a discount because I have the Amazon music just on that one device).

I listen to the radio on it, and I also get my news from it (I have it programmed to play the NPR news update and then the Fox News update. They usually cover the same stuff, but it is interesting to see how they emphasize different things.)

Alexa seems smarter than Siri or the "hey google" character if you have random questions and don't want to get out your phone or you already have too many tabs open.

I've played around with some of the skills, but really only use the timers, alarms, news, weather, music, streaming radio, and sometimes ask it questions.
I really like the idea of #2. Maybe combined with some way to indicate the 'lifespan' of a piece of documentation at the time of creation. We've got bits of docs lying around that were intended to be updated weekly, and regularly fall to the wayside for months at a time. A way to just tag them as 'weekly' and have them pop to the top of a list in yellow/red when they haven't been updated in 7/10 days, would be useful.

Even if it just ends up being a trigger for people to go 'hey, I cbf updating this anymore' and deleting it. It's better than just keeping it around in limbo forever. Our confluence is a graveyard of useless pages and it's only going to get worse over time. I imagine most are the same.
California sterilized more Americans under the eugenics movement than any other state. Virginia is second. This was not a small movement. I suggest reading the book "Imbeciles" by Adam Cohen. Most historical societies downplay a lot of what happened, so you can find things on wikipedia but to get a full picture, books are better. I'm right now looking to find what exactly the eugenics curriculum was at UC Berkeley and Stanford since it was an entire area of study at many universities at the time.
Experts Discover Vulnerabilities in Amazon’s Echo During Hackathon
Weird how the top of this page says the transit is on November 11th, but the side bar and main description section have it as November 12th. From the site rococode linked to, it is November 11, but it is a bit strange for NASA to have this wrong and inconsistent on its site. I hope to get a look tomorrow if the sky is clear.
No but they'd be the only people in a Facebook group complaining about it
A lot of cable/satellite boxes have Google and Amazon's assistants built in.

And real estate developers have been putting up apartment buildings for at least three years with Alexa built in to the apartments. It's only a matter of time before these "features" are in everyone's homes whether they want them or not.
The other day Alexa asked if I wanted it to learn my voice, so it could understand me better.
Does anyone know or have theories why Valve is doing all of this work? I mean, I love it. I use Steam on Linux and almost my entire library works perfectly. I couldn't be happier. But with Steam Machines seemingly dead, and such a small Linux base, why is Valve doing this?

And yes, seriously, _thank you_ Valve!
In college I had to take traffic school where I sat next to an SR-71 pilot. He was there for a speeding citation.
These are really great suggestions! I have been thinking a bit about ownership and accountability. The author thing is a good idea. Currently I was thinking that when you hover over a given block (e.g. paragraph, table, ect) you would see icons on who created and edited it so you would know who to ask if something wasn't clear.

As for #2 I fully 100% agree, I was going to work that into the Scribe feature (ability to have if-this-then-that actions) so you could say If this document is older than x days mark it as outdated for example.

I hadn't thought about #3 but I like it!
It's a nearly fully featured game engine. Maybe not quite suitable for a AAA game, but I think it'd be possible for a studio to make a real commercial game with it.
A lot of people who are interested in management (including CS people wanting to make a ton of money), have this idea that 'survival of the fittest' is just everything killing everything else all the time.

The line of thinking is that the best way to be successful in the business world is to abuse and destroy everyone possible to show how tough and competitive you are. If you've ever been pushed to compete with your co-workers instead of a competing company, someone higher up is probably thinking that way.
Macron admitted in 2018 that the French would probably have voted to leave the EU in a UK-style referendum.

https://www.theguardian.com/world/2018/jan/21/emmanuel-macro...
> 6. CS professors know how to program.

> 7. CS professors know how to use a computer / mobile device or how the internet works.

I'm not entirely sure how exposure to CS professors could give anyone that impression.

Reminds me how a CS professor proudly showed me how he managed to send an email with an attachment.
I'll share my anecdote from attending a private catholic school. From the reasons I have heard from my parents and others is that the catholic private schools tend to be higher quality than the public schools without being outrageously expensive like the non religious private schools.

I don't remember seeing any student at the school who was actually religious, they were all there for the perceived better education. The only part that I saw was lacking was sexual education was non existent outside of one lecture about the different kinds of stds and how there is no way to prevent getting them other than to not have sex. The science education was still up to scratch however.
That is common view, but unfortunately it ignores the straightforward answer of just disarming everyday police right now. Things like routine traffic stops should not be performed by armed officers. Parking enforcement generally doesn't worry about whether the person they're writing a ticket to is armed - it takes two to escalate.
Oh yes, it surely is, and I didn’t mean to hit at Gmail or any particular player. Additionally, I think it also speaks a lot about how industry did a very good job in constructing easy-to-use abstractions on top of tech that used to be hard to configure for a first-time user back in the days.
I hope we can all agree, being a "standard" clause doesn't exlude it from being absolute bullshit.
Yeah. It just seems like most of those things could be done with ever-so-slightly more effort without this technology.

Most new consumer technologies that end up in every home fundamentally change people's lives. I just don't see that happening here.

We talk about these companies destroying privacy, gaining power on the scale of nation-states, etc. And we put up with them on some things, because smartphones and social media are really useful and can be really important to living modern life. But I just don't get it with the assistants (and really, Amazon shopping too). We're giving up so much as a society for such a tiny modicum of extra convenience.
Architecturally, MySQL went with a “the storage engine is a plug-in” and Postgres went with a more traditional “the storage is part of the core”.

Postgres has slowly grown some ... tolerance ... for alternative storage engines, via federation and forks like greenplum and timescaledb that put their own engines in, but they are always feeling like second class citizens and hitting integration limits.
Batch Processing Pipeline at Gojek
Great list, two nits.

"Open Source means it has fewer bugs and is more secure."

Maybe not in the absolute meaning of that expression, but I find it true when you only consider the higher quality open source projects, e.g. say the top 10k open source projects. The code that most professional software developers produce at big and small companies alike makes me in awe that their final products work as well as they do.

"Being able to program is the most important aspect of being a good software engineer."

Ehh, I would say this is true. Certainly not the only aspect but if you can't code then you just end up being someone playing office politics all day trying to hide that fact.
First of all, if you look up Ebook library licensing fee, you'll see the crazy clusterfuck of ridiculous charges, so it's no where near "zero marginal cost". It should be, but it isn't.

Secondly, speaking as someone who is fully on-board on ebooks, for some books, such as large reference books, design/photography books and children books, physical books are still the way to go.

Plus extended reading on a tiny mobile phone is not feasible for many people, and not everyone can afford a large screen device for reading.
Fresh hygiene, business casual wardrobe (including shoes), and most important a friendly smile.

Go around introduce myself to my new colleagues, have lunch with them and try to establish a social network as soon as possible.

Again go through your work duties with your supervisor, make sure you have all tools and accesses needed to complete them.

Confirm with HR on company rules, work hours, reporting lines (time sheets, sick-leave report) and if they have any onboarding process.

Quickly look through your work, collect as many questions and uncertainities as possible and ask your colleagues/supervisor.
Hong Kong protester shot by police with live round in critical condition
Hey thanks, I hadn't heard about it [1]. Apparently VistA has the highest user satisfaction of any EHR! Sounds like what is missing is the equivalent of Red Hat, which can support and implement the product, although implementation would be much more involved.

[1] https://en.wikipedia.org/wiki/VistA
The "shout the name of the move" thing is neither here nor there, I think. Overwatch isn't a fighting game, and voice lines like that aren't common in shooters (Japanese or otherwise).

For the rest, I'd guess it's a simple matter of Blizzard not having anybody in house who can check content. They've never done JP versions for any of their games, and the mistakes they make tend to be of the "copy/pasted from Google translate" variety. Also the 3rd-party localizer in the interview mentioned Blizzard asking him to check their Japanese, even though that would have been pretty late in the process.

(One also suspects that the JP voice lines may largely be the work of the voice actors. That would explain why Genji (voiced by a native speaker) has tons of Japanese voice lines, while Hanzo speaks only English outside of his ult.)
Is it using lxc?
I always think of this "Yes, Minister" scene, which aired... gosh, 38 years ago.

https://www.youtube.com/watch?v=rvYuoWyk8iU&t=1m08s
Only when that's true of those two nodes and no other disjoint subset of nodes.
Confluence is objectively horrible, without a doubt, but adding (yet) another candidate to the marketplace isn't really fixing Confluence. For starters, I'm still going to be stuck using Confluence.

I'm still sad at the death of DekiWiki / Mindtouch -- it was one of the best wikis I ever used, but was abandoned around 2010. It offered a structured hierarchy, a decent editor, was performant, looked good, self-hosted, scriptable extensibility, etc.

I've never found a satisfactory replacement.
I'm glad to hear I wasn't the only one experiencing this. When using the Scribe feature I mentioned to mdeeks if anything becomes outdated that was under your purview you will see it at the top of your feed. Didn't want to go down the notification route because I was worried you would get 100 notifications and just learn to ignore them
It's called Sri Lanka now ;)
Thank you, I'm usually more of a single player type but I will give a try to the server!
>> someone who decides to create a language [...should] spend some time studying a lot of languages

> When learning a programming language; it takes several years [for you] to discover the deficiencies

A valid response. Also a sad commentary on our impoverished and siloed/balkanized professional literature and communities around programming language design and implementation.
Their streaming service can easily use Linux, like Google does with Stadia. That would be a very obvious way to benefit from their own investment into Linux gaming ecosystem. Especially, since unlike Stadia, they are aiming at making their whole catalog work on Linux, using Wine (Proton) and etc.
have you tried xgboost? in our problems none of the LSTM/Fbrpohpet/arima performed better fine-tuned xgboost model.
A regular officer in the UK still doesn’t carry a firearm. There ARE plenty of Firearms Officers around but they receive significantly more training than a typical US officer and are usually only there to respond to armed crime, or at major airports etc.
Uhm, sudo on a proprietary binary outside the repo? ...Yeah no thanks.
Fascinating language. You mention serverless and the cloud a lot, but there are many of us who still have a need to write hybrid applications that run close to physical things down here on the ground. Will XTC be extensible to this use-case, with some backend deployed on top of conventional on-prem architecture?
Sure enough. This may help show what happens with float precision:

>>> import math
>>>
>>> for i in range(1, 20):
... n = int('9' * i)
... digitLengthClever2 = math.floor(math.log10(n) + 1)
... float_value = math.log10(n)
... print(f'{n:<20} {digitLengthClever2:>2} {float_value}')
...
9 1 0.9542425094393249
99 2 1.99563519459755
999 3 2.9995654882259823
9999 4 3.9999565683801923
99999 5 4.999995657033466
999999 6 5.999999565705301
9999999 7 6.99999995657055
99999999 8 7.999999995657055
999999999 9 8.999999999565706
9999999999 10 9.99999999995657
99999999999 11 10.999999999995657
999999999999 12 11.999999999999567
9999999999999 13 12.999999999999957
99999999999999 14 13.999999999999996 # <-
999999999999999 16 15.0 # <-
9999999999999999 17 16.0
99999999999999999 18 17.0
999999999999999999 19 18.0
9999999999999999999 20 19.0
I'm not saying you can solve it. A single text field isn't a solution either. You cannot avoid breaking some names.
> Magic Leap is spending somewhere between $600M and $800M per year and that they have burned through all of their initial $2.4 Billion.

Is it possible for ML to be viable at all? Assuming they manage to make $1000 profit eventually per device, they will need to sell at least half million devices each year. It seems militery usage probably won't be able to fund this alone as the size of US militery is just 1.5M. In US, 40M iPhones are sold each year and one can think of largest possible market for $2000 devices is likely around 5M to 10M per year. So 10% of that is certainly possible if there was a compelling experience device.
The Grim Story of the Mackay-Bennett, the Titanic's Mortuary Ship
I recently played through a PC platformer called Rive. The voice actor was actually really good (and voiced both protagonist and the antagonist in completely different styles), but it was painfully obvious that (a) English wasn't the dialogue writer's first language, and (b) they'd given the the script to the voice actor as standalone strings, so his tone and emphasis didn't always make sense in context.

Not quite the same thing, but another consequence of the person creating the final dialogue not having access to context, and there's really no excuse for that. Even if the dialogue is only available as a spreadsheet, the writer should have included context cues and stage directions.
You're thinking too hard. They'll never have to use the ISPs to stop Bitcoin. It will stop itself. It arguably already has. Its central economic argument, that people want or need a currency backed entirely by sentiment, is inherently flawed. Being backed by a government (and, in fact, at all) is a currency feature, not a bug.
It would be more accurate to describe police as 'in group' vs 'out group' for their bias as opposed to the straightforward rich elite narrative. While they may overlap the region and its politics may vary heavily. Still often servants of a status quo in an ugly way but certainly not wealth alone.
"Carpetbaggers" with the gall to move south to provide goods and services in Post Bellum south sure as hell didn't benefit from police protection much less favoritism. Nor did Greenwood District, Tulsa a.k.a. "The Black Wall Street" or the other pogrom victims of what were euphemistically and victim blamingly termed 'Race Riots'.

And there was the old summing up of cliches as the cops went from beating up the Irish for 'not fitting into society' to being the Irish beating up Hippies for 'not fitting into society'. Indeed part of why historically gay neighborhoods and districts exist in many cases is because they congregated under friendlier enforcement jurisdictions.

Putting aside the ancient police 'expecting the city to mob accused and restrain or kill them' the military largely were what we call the police essentially - at least with European history although they weren't homogeneous and there was some nuance to it and memetic factors. English highwaymen for instance could thrive better in the isles than on the Continent where they had Gendarme where as in England using cavalry for that was viewed as tyrannical.

Their longbow practice also had some 'citizen army' and ancestral 2nd Amendment rhetorical factors while still not exactly 'free' it still provided a check to power in a 'don't piss off the armed peasantry enough that they decide an armed rebellion is worth it'. Meanwhile France and others specifically didn't adopt the practice because the rebellion concerns made the idea anathema to their worldview.
Oh come on, don't get caught up in the word games, it's unproductive. You know the author meant something more specific than "X is broken" because he wrote an entire article explaining what he means when he says "broken".

This is just engaging in the conversation in bad faith...
Elaborating on Arrival's Alien Language, Part I., II. & III
Plus, the library is now a financial institution: it has to manage that money on behalf of its customers.
I was thinking about this... Let's say Magic Leap survives for another 2 years, then defaults. That gives you 8 years left on those key patents. It just doesn't seem like enough time to actually build something and sell it. So like you say, the only real value is in selling it to someone who would like it as part of a defensive portfolio (not too likely in my books)... or using them in a patent troll fashion (suing other people for patent infringement despite the fact that you never intend to use the patent yourself). My question is: Who does JPM think they would sue in this case to justify the value? I wouldn't think there were too many candidates to choose from (both in VR and have piles of cash that you can liberate)...
How can the travel industry benefit from data scraping
Elsewhere in the world retired cops do not have weapons.
Google Assistant is amazing and I use it constantly.
Any task that's could be a single voice request, or a single question/answer, is better with voice than pulling out my phone IMO. Examples:

Playing music, getting directions, and sending texts while driving the car.

Controlling music in my house. Its a lot faster to just ask for something than fiddling with my phone. The kids use it for this too (they also do: "Ok google, tell me a story").

Setting timers in the kitchen while I'm cooking. We have some physical timers but inevitably they're hidden somewhere and/or my hands are dirty when I need them.

Asking random questions: "Ok google, what city has the longest name?", "how many cups is 9 tablespoons?" etc. It can answer a shocking fraction of the questions I throw at it.
Ride of Glory: Uber's Ride of Glory Revisited
Yeah, my experience seems to indicate boomers have no concept of digital privacy and it's largely only the younger and more technically literate that care.
https://gimletmedia.com/shows/reply-all/v4he6k

This episode of Reply All involves one of the hosts pissing off a group of SIM swappers, and him trying to go through the process of making himself safe. TL;DR -- It's really hard to do successfully.