skysight-inc/HackerNews huggingface dataset:
it's not a trick. Yes, it can be casted, but you should be explicit about it. AFAIK, the signature for the concat function is dependent on the array you're using it, so in this case, it's Array<Leaves>. Even though concat returns a new array, it is expecting the arguments to be of similar type. That's a "safe" behavior and something I would expect. Auto-casting to the return type (in this case) is something that I would not expect to happen, as it could be the source of errors.

Doing [].concat(Array<A>, Array<B>) is fine, because you did not specify the type of the array for the literal [], it's not a trick, in that case the type should be Array<any>, but it's casted to Array<MemsqlNode>.
> It's unlikely this ruling will be upheld since providing biometrics to unlock a phone is difficult to construe as 'testimony'

Agreed, feels like this rises and falls with the forced blood draws issue that was decided in the 60s [0]. Maybe if you claim the phone isn't yours, unlocking it with your face or password would be testimonial? Not sure if that defense would survive them calling the number that was registered to you.

[0] https://en.wikipedia.org/wiki/Schmerber_v._California
Show HN: The note-taking app focused on the content organization – Unit
Genius Inventions That Will Take Your Life to Next Level
>Good. Screw the bankers. Who needs them anyway?

I’d say many companies who don’t have the same level of mindshare and brand awareness, perhaps?
does this work over in china?
Isn't there a fourth reason for tech companies to IPO these days: let RSU-holding employees sell? The secondary market doesn't seem to solve that.

With the amount of RSUs tech companies are giving these days, the pressure to IPO is not negligible.
>There is such focus on being tolerant regardless of sexual orientation, but many more people face much greater discrimination on a wider variety of issues

So you think you know more about how commonly LGBTQIA+ people are discriminated against than LGBTQIA+ people themselves? You think you are an authority on something you seemingly have never experienced. Think about that for a second. This is implicit bias. Learn to trust minorities when they say they're being disrespected, marginalized, etc.

Also, gender-noncomformists are gaining respect in mainstream society because of their own work. Don't try to theorize away the blood, sweat, and tears of LGBTQIA+ activists.
Do you mean like the notion service? I'm not a notion user, but from the description here, it sounds a lot like Google wave with less hype and more "product focus"...

Wave is now dead(?) and Free:

http://incubator.apache.org/projects/wave.html

https://github.com/apache/incubator-wave
There may be a typo in in this line

export HISTTIMEFROMAT="%d/%m/%Y-%H:%M:%S"

should HISTTIMEFROMAT be HISTTIMEFORMAT ?
Good ole "caffeine + L-Theanine" combo mostly. I also use Phosphatidylserine and while it's hard to be sure, I feel like it has some beneficial effect. I also use Ashwagandha extract and Green Tea extract fairly regularly.
Real World PureScript with Halogen: Purely functional front end programming
Plenty of urban and suburban areas do this, yes.

But that's not where the fires start. They come from areas that are a) dense with sap-oozing pine trees that hunger for a fire to spread their seeds, and b) so remote that maintenance checks can't logistically occur often enough to effectively prevent dangerous situations.

As you might imagine, the expense of laying underground power lines to areas like these is way out of proportion to the benefit to residents. A colossal swath of northern and eastern California is forest, and replacing power lines across all of it would be a herculean infrastructure project that PG&E definitely cannot afford.
So this is the reason Slack was cracking down on accounts of people from sanctioned countries.
Well this might actually answer something you deeply dislike: The shitty SDK problem.

I've worked on way, way too many credit card apps that charged money for other people (two invoicing platforms, one ticketing site, one photo social network) and the myriad of issues with credit cards and fraud and other problems have led me to the conclusion that unless you have a really, really good reason to do otherwise it is better to either:

1. Outsource this to a better API that takes a percent cut, but handles all the edge-cases like refunds and GDPR compliance for you.

2. If that doesn't work, and you're stuck with a shitty SDK, it's easier to just use a better supported language. (Even a general purpose library like Active Merchant.) It's trivial to create a shim for this and the separation is really clean. Why bother with Go if it's hard? For now just hack it together.
I'm actually in the midst of converting SQL.js to use WASM primarily instead of asm.js (https://github.com/kripken/sql.js/pull/255). By disabling some less-known features and optimizing for size, the WASM build is currently 631KB. When compressed (zip), they are a total of 270KB. https://github.com/Taytay/sql.js/pull/1
I decided to create this app because I didn't find any effective solution for collecting and organizing a big number of notes (yes, I have a lot of them).
Some features:
- content is made up of independent blocks, like texts, lists, tasks, images, files etc.
- drag & drop to arrange any content
- nested hierarchy
- offline mode
- telegram messenger integration
- tags, reminders, color coding...

Currently, the app is available for iOS only.
I'm actively looking for feedback. Please let me know what do you think.
Your anecdotal experience isn't an effective counterpoint though. Here's a citation in the neighborhood: http://www.pewsocialtrends.org/2017/12/05/americans-see-diff...
If you and your buddies own the service, and you order the nerds over in Norway/Northpole to inflate the play counts of you and your buddies's music so that you don't have to pay other randos so much money: all of the other artists.
Sure, now replace "food" with "drug" or "alcohol" and it's the same argument, and much of the same pathology for that matter
I wonder if the cost of providing energy with so much liability will force California to solar e.g. individual homes and businesses providing their own power?
In case anyone is interested in a similar open source solution that can be self hosted I can recommend Trilium (https://github.com/zadam/trilium). It was also recently featured on HN. I since host it on my private server and it works like a charm.
I have basically the same implementation except it's running on my dedicated openbsd router using openvpn/unbound/pf and scripts. It doesn't support wireguard though but openvpn should be equivalent? I know the wireguard developers claim it's more secure, however I think a properly secured openvpn with certificate based authentication both ways should be fine for a home setup.

For the lazy, someone other than me made scripts to both pi-hole (dns) setup[1] and pf (firewall) setup[2] to block on network level too.

The scripts themselves are very easy to read and vet for bad stuff.

[1] https://geoghegan.ca/unbound-adblock.html

[2] https://geoghegan.ca/pfbadhost.html
Earth has no feelings - it's just a large rock floating in space. It doesn't care about anything or anyone, and it will eventually get destroyed by cosmic fate.

So what's left? People. We are the essence of anything meaningful on earth. Despite our negatives, we've managed to thrive and create meaning. We have a consciousness that transcends our own understanding, and in this we should embrace each other in hope that our future is better.

Perhaps your feeling is that you just don't like people, and need to find positive ways to interact with them so that you can see a brighter future.
Ohh I didn't know that. Well...I've aliased a few programs to use a different version than the default, and redefined a few commands, so just prefixing "\" will get the original one. Very handy, thanks!
Or every software product before about 2005.
There's also a good TypeScript playground clone here as well:

https://agentcooper.github.io/typescript-play/
You're spot on and what happened to the company as a result is tragic. Kodak pioneered digital camera technology, patenting their first digital camera in 1978 and developing a digital SLR in 1989. Unfortunately they chose to shelve it all rather than market it in fear of cannibalizing film sales.
The situation in Paradise was problematic from a number of angles. Large fires returning seem likely from a multitude of factors.

PG&E lines setting 1,500 fires was definitely a way to, uh, jump start whatever process might have happened anyway. One should remember that 60 people died that, many trapped by fire on the road out (where inadequate roads were another problem). So a big fire starting but simply more slowly, might have stopped this particular tragedy. Given that a few year back, a PG&E gas line exploded killing around 30 people, this is an organization I feel zero inclination to give a pass on "inevitability".
> Can you explain the advantage in killing the app without notifying it?

Um.. "The app uses less energy." Is that a serious question?

Again you seem to be arguing that there are better ways to solve this problem. There no doubt are. That doesn't mean the existing solution doesn't have value.
Hey @dbg31415 we have created an issue. Thanks for the great feedback!

https://github.com/govau/design-system-site/issues/388
It's pretty common in better off areas for the cables going directly to homes which are (relatively!) low voltage.

My understanding is that underground cables are most beneficial in areas that experience high winds and ice buildup. They may not be as well suited to CA since underground cables are just as (if not more) susceptible to damage from earthquakes and flooding. Being underground also leads to much higher capacitance in the cable, which can reduce the amount of current and shortens the cable's maximum length.
Looks similar to Hexel (https://www.onhexel.com).

Here's their Launch HN post (https://news.ycombinator.com/item?id=16602069)
co-founder of Hooktheory here. When this article was published (2012), it was based on the first 1300 songs in the library [https://www.hooktheory.com/theorytab]. At that time, the two most common chords after E minor for songs in the key of C major were F major (59% of the time) and A minor (34% of the time). The library now has about 12k songs and the percentages have changed. Still the same two chords, but now F major (IV) is only about 34% of the time, and A minor (vi) is about 24% of the time. Here is an updated plot of the most common chords after E minor for songs in the key of C major https://imgur.com/a/lBfVK0X?
They'd burn right through it anyway.
> countless amazing IDE features for free.

Is this just from LSP? Or are there extras that are built into VSCode?
> One of the accidental biases I think is introduced to people by their schooling is the idea that all problems have solutions.

This. I've been trying to find a way to articulate that for months.
* Warren Buffett’s List of 14 Must-Read Books || https://www.warrenbuffett.com/warren-buffetts-list-of-14-mus...
No problem. We're going to start a new group (and also do a web site and an app), maybe you'd like to join?
Wait, 20 to 40 dollars per click of an ad on google search results? Am I understanding that correctly? If so, that seems insanely expensive even for the guarantee that you're getting a potential customer.
And along those lines, I've heard that DNA tests aren't reliable either.
"Pressing power button 5 times in quick succession" doesn't work on my iPhone 8 Plus running iOS 12. To achieve the same effect, I need to hold the power button and one of the volume buttons for a couple of seconds.
Yes. D metaprogramming is so fucking good that it's easy to do well.

It's really obvious, and even at it's worst it's no worse than C++ (Except much easier to debug due to D's much less fundamentalist type system).

I hate languages that deliberately take features away from the developer: This is why - although I respect the philosophy - I would never choose to use Go, for example.

But to each their own, etc.
Thanks for the feedback @mosselman. Do you have any ideas on how we can improve this?

Our main menu has just been released and is going through usability testing right now.

During the design process we experimented with underlines on the active main menu item, however it felt messy.

Feel free to create an issue on GitHub if you want to start a discussion.
https://github.com/govau/design-system-components
Are you ramen profitable?

if not how much are you bleeding?
I think you are underestimating the impact drastically of California seizing and nationalizing PG&E, or even trying to.
I didn't find the comment shallow. Shallow would be "what a dumb article".

That said, what the OP calls "rationalization" could just as well be "perspective".
Looking at the type definition, it is expecting the same type:

/**
* Combines two or more arrays.
* @param items Additional items to add to the end of array1.
*/
concat(...items: ConcatArray<T>[]): T[];
/**
* Combines two or more arrays.
* @param items Additional items to add to the end of array1.
*/
concat(...items: (T | ConcatArray<T>)[]): T[];
There was a typo in the post that has been corrected. It now reads “If you write a song in C with an E minor in it, you should probably think very hard if you want to put a chord that is anything other than A minor or F major after the E minor. For the songs in the database, 93% of the time one of these two chords came next!”
So instead of PG&E shareholders taking the hit for negligence, the taxpayers will?
Implied consent (the authority the police use to try to force you to divulge your blood alcohol content) is a well-established area of law.

The courts can differentiate it by saying that the legislature has written implied consent laws that cover what you are deemed to have consented to when operating a motor vehicle, and that the legislature has not written implied consent laws for cell phones/etc.

Right now it's a pretty easy case for the courts, though higher courts have justified much worse with much less.

It's possible a legislature could write implied consent laws for cell phones, but I don't think they have yet. Not sure if they'd withstand court review, but I am afraid they might.
A closer analogy would be “Spotify/Pandora cannot stream new albums for a period of X months” since AWS has the option to develop the missing features, and will if they’re requested by enough customers (AWS is extremely pragmatic when it comes to product roadmap). So, to strain the music analogy further: if you’re happy with the back catalog and you can wait a little bit to listen to the latest songs (say, while others test if they’re any good) then you don’t have to put up with the unreliable streaming service.

IIRC this strategy was tested by Jay-Z with little success. Taylor Swift also came back to Spotify...
"Even if I have been writing code with Java / C# for nearly a decade , nothing has come close to Typescript in terms of productivity,flexibility and confidence."

Same here.

Isn't this truly amazing?

Take a jangly language like JS, and add some typing for the compiler, which forces you to write cleaner code in addition to all the compiler advantages ... combined with some really cool features and bang a magical, pragmatic language.

Aside for some script things for which Python is still a blessing, I'd chose TS for everything else, at least to start.

It just has the right mix of flexibility and expressivity etc..

Though TS is an MS project, I suggest it really is quite different, it's 'open from the start' kind of thing, you can have a loot at TSC internals. The team seems to be fairly dynamic and responsive.

Typscript is my #1 favorite 'invention' of the last few years, I think it will be around for a while, and I hope to see many more JS API's 'properly documented' with the help of TS.
I say to Project Alias "Call my friend Chris".

Project Alias whispers to my Amazon Echo "Call Secret Project Alias Man in the Middle"

Project Alias requires no network connection to do nefarious things.
The only way I was able to remove ads from youtube on my devices with dedicated apps was to purchase youtube premium.

I use the service so much I don't really mind paying for it.
I might be missing something, but that sentence does not appear to have a footnote, nor do any of the footnotes directly address the OP's comment.
it depends on what phone you have. the key press combo is different depending on what model you have. the 6s+ is 5 presses of the power key, but that is a very conspicuous thing to do. other/newer models have a much more inconspicuous button press combo that could be done while "attempting" to hand over the device.
> Broadly, there's nothing preventing California from seizing PG&E's assets as partial compensation for the company's past behavior.

Bankruptcy will indeed prevent that.
The Unfortunate Battery Tetrahedron (2015)
the beeps can be turned off, though, so that's a good thing.
A difficult position: Experts question whether ergonomics holds up
The taxpayers are going to take a hit regardless. Who do you think will be bailing out PG&E in the end?

Or do you think they will just leave 16 million customers without electricity?
They could sell a VPS with the app installed and only you would have access.
No Apple QuickTake 100!?
-do you worry this is really bad for you?

Yes I know it is bad for me. I don’t think I am handling this in a good way. Everyone knows it is bad for them. No one thinks that it is not.

-why is YouTube so toxic?

It’s not just YouTube. It’s putting out your personality to judge on the internet is what you are doing. You are creating a fake personality that people are supposed to think is you.
> To suggest that a serial root console is a point of attack for an Echo device is bordering on insanity.

That was not what he said. He argues that Amazon/Google could remotely use a similar exploit (without direct access to the hardware) to start recording without lighting up the LED.
- Notable (https://github.com/fabiospampinato/notable)
I am living in California (but also consider myself non-Californian) near one of the areas that burned, and regardless of PG&E's incompetence, empirically the area was a tinderbox. The Carr fire was caused by a spark from a flat tire of an RV which caused the rim to create sparks against the road. Despite the forest service actively burning underbrush regularly, the fire was the largest in California history until the Mendocino fire unseated it a few weeks later. If sparks from a wheel rim can touch off a blaze, there isn't much margin for error.
Collectible assemblies in .NET Core 3.0
Ohhh, will Julia Roberts be in the movie adaptation of this latest PG&E debacle?[0] She was so good in the last one.

[0]https://en.wikipedia.org/wiki/Erin_Brockovich_(film)
Keep in mind that, at scale, equipment is always breaking, whether the breaks are intentional or unintentional. The question is not whether the tower was broken by bullet holes or something else but how the equipment had been in this broken state beforehand. The task of a utility is to have a sufficient maintenance schedule to insure that most pieces of equipment unlikely to be broken even a few are. Overall, the "1,500 fires" part is what's damning, not any single fire. Again, overall, PG&E has terrible maintenance record and this is the impetus to hold them liable derives.
You can't sue them due to sovereign immunity. :p
"Each key is usually extra-encrypted, but documents disclosed by former National Security Agency contractor Edward Snowden in 2013 showed that the U.S. government, which hoovers up most of the world’s internet traffic, can also break those tougher codes. Exactly how the NSA accomplishes this isn’t widely known. (One suspicion is that while keys are supposed to be based on multiplying two random large prime numbers together, many systems use a relatively small subset of primes, making it much easier for a computer to guess the key.)"

Sorry, what a load of bullshit...
Right but isn't that effectively changing the runtime code (thus making it a trick) in order to fix a type error? I don't know if the performance of `a.concat(b)` is the same as `[].concat(a, b)`.
Yeah I get it. I always run my own router behind the modem provided by the ISP, if any, so there's no way my ISP would be able to make requests that Pi Hole would see.
Very interesting. I've been looking closely at FoundationDB as a way forward (to replace RethinkDB and Cassandra in existing systems). It's one of the few contenders for a really interesting take on a distributed database.

I am not sure if I will use the record layer (I've been planning to write "my layer" myself), but it will definitely be an interesting thing to look at.
I came to say basically the same thing.

Seems like a basic statistical analysis of songs. Anyone who has composed or even played music will find no surprises here (unless you solely loved on atonal 20th century stuff).

However, the author clearly has knowledge of music theory, so I fully fail to appreciate the purpose of the article.
nice try -- cost-cutting by using sub-contractors to do legally mandated maintenance up and down northern California was well-documented. In addition, PG&E was found guilty of of obfuscating and avoiding legally required maintenance records for gas pipelines in the San Bruno case. Utterly unacceptable and sadly predictable.
#!/bin/sh
PROFILEDIR=`mktemp -p /tmp -d tmp-fx-profile.XXXXXX.d`
mkdir -p $PROFILEDIR/extensions
cd ~/.mozilla/firefox/yvwc47i0.default/
cp extensions/* $PROFILEDIR/extensions/
cp addons.json extensions.json $PROFILEDIR/
cp -R browser-extension-data $PROFILEDIR/
cp cert_override.txt $PROFILEDIR/
#cp prefs.js $PROFILEDIR/
echo 'user_pref("devtools.selfxss.count", 10);' > $PROFILEDIR/prefs.js
cd -
firefox -profile $PROFILEDIR -no-remote -new-instance
rm -rf $PROFILEDIR

Created this as a script somewhere in my path. You'd need to change `cd ~/.mozilla/firefox/yvwc47i0.default/` to match what yours is.
My grandfather oscillates between depressed silence and complaining about wishing he was dead, so at least one person I know of.
they can detain you for a limited amount of time, but they can confiscate your devices for an indefinite period.
> Is there any part of California that runs power underground rather than overhead cables?

Yes, but mostly urban/suburban areas; AFAIK, the expense would be prohibitive for long-range transmission.
Sorry - looks like the power button x5 trick only works on iPhone 7 and earlier (had tested successfully on a 6S before posting): https://support.apple.com/en-us/HT208076
> if I have been writing code with Java / C# for nearly a decade , nothing has come close to Typescript in terms of productivity,flexibility and confidence

I can completely relate. To me the greatest thing is the tooling around it. Using tide[0] on even plain js codebase is just amazing.

I really wish ruby had a TypeRuby compiler (to regular ruby). I know about crystal, but I still want regular Ruby, just with a type checker at compile time, not runtime.

[0]: https://github.com/ananthakumaran/tide
Oops, you're right, I misunderstood the original comment.
DNA tests prove a very specific narrow fact, and it’s up to lawyers to string together a hypothesis in order for it to have relevance.

Unfortunately all too often the DNA test result is used as proof of a hypothesis, not of the mere presence of surprisingly similar DNA in a swab sample.
Getting an IBM AS/400 Midrange Computer on the Internet
For many popular advises I know quite sure that my response would have been "meh". Yeah it would have been nice to be able to play the guitar now, but 13 y/o me will tell 36 y/o me: "Screw you, I have more fun things to do, learn it yourself you lazy old man. By the way, what is stopping you from doing that anyway??"