skysight-inc/HackerNews huggingface dataset:
If you’ve been holding stock for more than a year and then sell, it will be taxed at a lower capital gains rate. If you sell sooner, it will be taxed at an ordinary rate.

If you have stock at a brokerage and you want to sell it, FIFO is first in first out. The brokerage will sell the oldest shares you own. It sometimes makes more sense to sell a specific set of shares you bought later depending on purchase price and current price. For example a FIFO sell could generate taxes while a specific lot sell could generate no taxes (you sold at a loss).
I know what I'm doing this week
> Imagine a video game where the player truly owns the in-game items they use as crypto tokens, but the game itself runs on centralized servers.

This is a neat thought experiment, but beyond the novelty what value does it give you to own an item in a decentralized way if a centralized entity can take it away from you if they want to (even if it means patching the game instead of knowing your private key?)

Truly decentralized, Sybil-resistant networks are necessarily expensive to maintain, so it has to provide more than just novelty value.
I think you need to look forwards and not back in time for getting back to having fun.

The reason I say this is that we now have 'css grid'. This means that you do not need frameworks, little scripts on the page, and 'div/span' markup, you don't even need ids and classes. You can directly style 'aside', 'main', 'article', 'form', headings, p tags, 'details/summary', 'nav' and other tags to get the desired effect.

If you have a three column layout with the column left and column right as 'aside' then the CSS does not need classes to identify the column names, 'article + aside' will refer to the right column perfectly fine.

This will also work responsively so you can do everything these days with no paddings, margins, floats, line-heights or anything else that is a bit silly.

The resultant code when freed of all this debris that should never have been in HTML is a quarter of the size. I say code, but is it really code when you have button text inside a span inside a span inside a button inside a div inside a div with a label inside another div and yet another div just so it works as the'designer' intended?

For me CSS grid + semantic minimal 'div free' markup is getting back to the fun. No longer do web pages require a team of a designer (that knows no code) plus a front end developer ( that knows nothing about 'real code') plus a backend developer (that knows nothing about design) plus a team manager to book inane meetings and to do scrum rituals as if it mattered.

We can also get rid of lorem ipsum and go 'content driven design' (a phrase I had to invent just now as nobody has had a use case for such a phrase in decades).

Happy times in web design are back on. Even more interesting is that with the likes of Rachel Andrews we also have a lot of women getting into doing web design properly and showing how its done.
If you're not already using emacs I don't know if the learning curve is worth it just for org mode.

But as an example of what it can do (with a little customization), I use org mode for writing fiction. I give each scene a header kind of like a film script slug line. They automatically become foldable, so I can collapse them and just read the headers as an outline. Scenes can be rearranged at will. I can also work backwards from the headers, starting with an outline then filling in the scenes. I can also throw in todo list items wherever I want, on their own or interspersed with the text as reminders for things I want to go back to and edit. Then I have the exporter strips out all the org mode formatting, headers, etc and spit out the text in double spaced manuscript format.

It's the best writing tool I've ever used, with the possible exception of Scrivener.
Multi-part videos exist? Just...why?

Youtube videos are up to 12 hours.

That's reminiscent of the good ol' VCR days.
You don't have to provide your transaction history, you can use an ACH trial deposit as an alternative to verification.
Not unless they're willing to take a paycut.
Yes, there are new features and I would say at an accelerated rate (though slightly arbitrary). It also means features that were being punted back from releases (like modularity in jigsaw) get a chance to surface without waiting several years, which in turn allows releases to hit schedules since the downside is reduced.
>a software change that it said could be accomplished for pennies per vehicle. In the face of auto industry opposition, the agency let the plan languish, though it says a rule is still under consideration.

Why the car industry would oppose such a minor fix is beyond me. If it does not even hurt the bottom line, why not make that change.
China and Eurovision clash over an LGBT performance–and the value of diversity
My 2015 Ford automatically shuts off after roughly 15 minutes of being without the key whether you start it from inside or outside of the vehicle.
Show HN: Frontpile – The home of reviewing products
Socializing and playing chess are going to help you in those areas and possibly in tandem.

Ribbonfarm.com is a good website that has blog essays which deal with many topics and some about social strategies which are a lot like chess strategies.

Also maybe getting into debates with people as long as it isn't something so controversial that it becomes too heated.
oooh this sounds familiar. Might be me :)

yeah been weeded out a few times.
and left some really interesting solutions at past jobs. When I get exhausted though I need breaks..
Flip side, it's way too easy to get obsessed over the wrong kind of solution too ... I LOVE working with QA teams and competent management because they'll usually spot this before I will!

I'm very happy in my current company.
It covers the personal data of EU citizens

You're both correct and incorrect. It covers the personal data of EU citizens. However, not all sites are actually subject to the GDPR at all. EU traffic to these sites is considered incidental and no GDPR protections apply, even to EU residents, on those sites that are outside of GDPR jurisdiction. There are legal tests build into the GDPR (which I detailed in my original comment above) that determine this.
And many other languages before it - SML, OCaml, Haskell, Miranda, Erlang, Scala, Rust...
This makes me glad I work for a company that makes money selling an actual product, and not just selling people’s data to the highest bidder.
The sentence following the one you quote says:

"Dozens of others have been injured, some left with brain damage."

So deaths are not the whole story.

While one is certainly far more likely to die in a automobile collision, of heart disease, or cancer, I don't think it helps anyone to ignore the risks of carbon monoxide poisoning.

Incidentally, other sources of carbon monoxide can also exist in the home, so it's a good idea to have a carbon monoxide detector there. Perhaps cars too can be outfitted with them.
I needed multiline strings in 1998.
C#'s, if you're looking for a Java-style language done right.

Objective-C's is also interesting, for one that makes some different design tradeoffs. Being optionally static with duck typing, for one.

Any ML variant, if you want to see how expressive a language can get when static typing is treated as a way for the compiler to work for you, not you working for the compiler.
I've certainly often forgotten to turn off the Prii [1] I've used.

[1] http://content.usatoday.com/communities/driveon/post/2011/02...
Not an expert but I would guess at least the following: traffic filtering, peer traffic filtering by (possibly dynamic and automated) agreement, traffic classification and anomaly detection (DNS/TCP/HTTP(S)/etc.), routing different clients (based on origin AS and/or geolocation) to different IPs through DNS, hosted web frontends, web-level active user challenges, potentially dynamically altering the advertisement of routes, and by charging so much money the moment you need to use them that buying extra bandwidth and netblocks isn't an issue for them. Probably some of them also drop to high-overhead traffic reduction modes which can expand frontend IPs and DNS response segmentation, dropping DNS TTLs and spinning up new proxy systems in order to better filter out robotic attackers. Many also probably create/profile/buy various browser fingerprinting techniques and may have a library of non publicly disclosed approaches available for additional mitigation during high bandwidth attacks. Oh yeah, and replicating a static cache as a cheap means of degraded service provisioning.
The value of the decentralized token would be determined by the free market.

If the centralized entity ever had a history of patching the game to block tokens, then the value of that token would go down a lot.
"condo" implies a specific ownership and monthly fee structure.

https://en.wikipedia.org/wiki/Condominium
”if many of the new features require doing things in a new way then it really is something new.”

Firstly, nothing requires you to do things in a new way.

Secondly, if “you could already do that” implies “not really something new” for a programming language, updates to the syntax of programming languages can never count as “really something new”.
Usually I have used pv.

https://linux.die.net/man/1/pv

cp

pv source > target

tar

tar czf images.tar.gz image1 image2 image3 | pv > target

gzip

pv source | gzip > target.gz
# or
gzip < source | pv | target.gz
What's wrong with relearning the language? That's nothing new for developers.
I keep seeing this general attitude about frontend, but I have a serious question: What’s the better alternative? I’m not asking this rhetorically because I have an answer, I just keep seeing the same remarks with no decent solutions. Is it time for the way we deliver the web to be rethought? Are we really in the golden age of the frontend but everyone is being too much of a hipster to realize it?

What’s the solution here?
Java users in the enterprise like myself in some of my client work won't be massively enthralled by this approach, though not necessarily for good reasons. Audit and compliance teams love to pick up on software versions not on the latest version, so the idea of having a six month churn just means I can see man-months of effort being plowed into no-op changes.

We're also unlikely to benefit since vendor software can't upgrade (or won't certify new versions) and the mannequin developers consultancies place offshore can barely work with Java 1.4 concepts. Best I can hope for is improvements in GC and better defaults.
Back in the day, I loved The Clan of the Cave Bear and sequels by Jean M. Auel. As I recall, she characterized Neanderthals as having better memories, and more dependent on stored procedures. But I have no clue whether there was any basis for that.
Any one on that list he gave, zionism -> pick any flavour of modern israeli politics. Celtic nationalsim -> pick any flavour of modern irish politics. Neo-Tories.. same.

Most people self labeling as any of these would unanimously (if not alway honestly) all self describe the belief as patriotic by exactly the definition that Orwell gave. The other isms on his list aren't about nations. I guess Trotskyists wouldn't necessarily call themselves patriots, but what does that prove?
This paper suggests that people avoid C++ exceptions due to some problem with dynamic allocation or unpredictable cost or something. Maybe that's true in hard real-time circles, but in my day-to-day experience with C++ exception avoidance , I see very little rationality going into the decision.

I am continually frustrated by people who refuse to use C++ exceptions. These people claim to have a "philosophical objection" to the "unusable" exception model. They continually cite "bad" exception code involving try-catch clauses at every stack frame (which nobody actually writes), they claim that C++ exception handling produces "undefined" behavior (it doesn't), or that compiler support is somehow buggy (it isn't). These arguments make no sense. They have no persuasive power. They do not intersect with the real world.

Best of all, these very serious people, having written very sagacious emails banning random parts of C++ and having intoned that horrible things happen if one allows non-local flow control, switch from their email clients to their editors and go on to write Python and Java! Somehow, exceptions are cripplingly unusable in C++ yet not worth writing home about when used in Python or Java.

My theory is that most opposition to C++ exception usage is motivated mostly by cargo-culting and that most of the supposed arguments against exceptions are post-hoc rationalizations of a decision already made on the basis of non-technical factors. To wit: there were real performance and correctness problems with exceptions in early 1990s C++ compilers. These problems have been resolved for a very long time. Yet the 1990s meme that to be a responsible programmer, one should disable exceptions, or at best "use exceptions for exceptional situations" comes down to us in the present day. Too often, people blindly follow advice without seriously considering it, and it seems more likely that random bans on C++ exceptions demonstrate this phenomenon than any legitimate technical disagreement.
TLDR: not an expert, but here's a long string of buzzwords...
I dont really believe any of those stories are real. You can't just wake up a marketing genius and even with all the reading in the world - he says it himself, they made many mistakes where did the money come from to support the mistakes? You need money to make money.
One way these companies mitigate DDoS attacks is by being huge. If you have a small house w/ one entrance, there's no great way to manage 1000 people trying to get through the front door. If you have a huge house w/ dozens of entrances, dealing with 1000 people trying to get in the building is much more manageable :)

From https://en.wikipedia.org/wiki/DDoS_mitigation:

One technique is to pass network traffic addressed to a potential target network through high-capacity networks with "traffic scrubbing" filters.
Since Tesla hasn't dipped or crashed recently, Im assuming that the "list" refers to his investment list, not the loser column. It's just a poorly written sentence.
Holy crap, that's annoying.

No want.

Try: https://story.interviewjs.io/hd3g6tYmzLgfYYUqzaEzFm/
I know what I am about to say is an absolutely ugly hack, but...

If you cannot install non-standard software (example: customer owner, company operated RHEL boxes) you can get an idea of the current progress of cp/tar and similar programs by inspecting file-descriptor files in /proc.

Assuming that you have a process (like cp) with pid 1234, then in /proc/1234/fd you will find files with a number (corresponding to the file descriptor number in the context of the process) that are either symbolic links to the actual file or to socket connection (or other data structures). Let's assume that source file has fd 3 (you get this information via ls -l /proc/1234/fd )

Then, after you can cat /proc/1234/fdinfo/3 and look at the pos value: that's the position of the cursor in the file.

It's ugly and unpractical, but it should work on every Linux systems featuring basic tools.
I am very interested in the area and will highly appreciate any additional links you could dig in.

I really would like to work on something like that but so far it's only enthusiasm and zero education. I am a pretty senior programmer in my eyes (16 years of official career, 25 years in total tinkering, started at 12-13 year old teenager) but sadly all that experience does not translate directly to areas like these.
I picked up about five of these a few years ago in Japan. I'm terrible at it. In two weeks of playing I think I got it right maybe once.
You make a reasonable point, and I don't mean to trivialize a serious issue -- carbon monoxide poisoning caused by keyless cars -- but in comparison, bathtub drownings are far more common: about 335 a year.[1]

[1] https://www.seattlepi.com/national/article/Someone-drowns-in...
Broadening education investments to full-stack solutions
I think more and more things will be developed like this instead of just writing CRUD apps. It kind of makes sense since storage is super cheap, lambdas and other event-driven systems are getting popular, and it fits really nicely with start-ups being able to pivot existing data to a new schema/database/analytics.

I've read before this is not recommended by people who did it (besides people who are consulting firms or promote Kafka). Is there a reason for this anyone can chime in with?
I was lead developer on Arbor Network's DDoS product in the early 2000s (I left in 2005 to start Matasano Security). My information on this is surely dated, but people seem to still be using the same terminology now as then.

You can break down DDoS into roughly three categories:

1. Volumetric (brute force)

2. Application (targeting specific app endpoints)

3. Protocol (exploiting protocol vulnerabilities)

DDoS mitigation providers concentrate on 1 & 3.

The basic idea is: attempt to characterize the malicious traffic if you can, and or divert all traffic for the target. Send the diverted traffic to a regional "scrubbing center"; dirty traffic in, clean traffic out.

The scrubbing centers buy or build mitigation boxes that take large volumes of traffic in and then do heuristic checks (liveness of sender, protocol anomalies, special queueing) before passing it to the target. There's some in-line layer 7 filtering happening, and there's continuous source characterization happening to basic network layer filters back towards ingress.

You can do pretty simple statistical anomaly models and get pretty far with attacker source classification, and to track targets and be selective about what things need to be diverted.

A lot of major volumetric attacks are, at the network layer, pretty unsophisticated; they're things like memcached or NTP floods. When you're special-casing traffic to a particular target through a scrubbing center, it's pretty easy to strip that kind of stuff off.
Why Traditional TV Is in Trouble
I took ten minutes to implement GDPR on a small ecommerce website: we deleted Google Analytics (HTTP logs and carts tracking is more than enough) and replaced Facebook widgets by a simple link. Newsletter was already opt-in only, we don't sell private data, and user account deletion was already possible.
RXJS in Enterprise Software Post-Modern ERP
But with an interface that's five million times better.

Half-bakery is impossible to navigate and one-word descriptions are worthless.
Not to mention that since the interviewer now has a name for said distro, they should have looked it up and found what language it was written in.
well am sorry but if this girls dress got the internet raging why is nobody saying anything about the Eurovision contest winner? http://time.com/5262748/chinese-prom-dress-cultural-appropri... totally relevant, can"t have it both ways!
Interestingly, given this blog post, i'm 100% sure that there are further improvements that can be made. To my knowledge, strassen's isn't actually used by most high performance matrix libraries because the constants are too high that it outweighs the theoretical gains.
That line caught my attention also. Right now most people don't maintain their own private keys, most have online wallets such as Coinbase do that for them.
> Business models are arbitrary and orthogonal to services provided.

That's a very interesting claim. So you're saying it'd be possible to organize fighter jet production as a co-op vegan collective?
That's understandable, given how racial differences have so frequently been exaggerated and misused. Especially mental differences. Partly because they're so hard to measure objectively, being so tied with life experience.

And still, being part Neanderthal, I am curious.
I second the comments about charging money ASAP. Really the success of your SAAS is going to be managing your recurring revenue (and once you get subscriptions, managing your churn).

A second thing I would encourage is never to be pricing information in marketing e-mails, and instead link back to your website. On the start of my SAAS I thought how much I would pay for the service as baseline pricing.

Really that type of thinking is incorrect as you want to price relative to your market, meaning how much your customers are willing to pay.
I think this might be it eg spending $250 instead of $50 on shoes or boots for longer life and improved comfort.
The article explains Ford began adding this feature to its cars in 2013.
Well this sucks.
35,000 people are being killed in the US every year by cars, but now suddenly it's "Deadly Convenience," now that 2 people a year are dying from CO poisoning?
They don't really say that but I'm in violent agreement they should have been much more clear and explicit. At the same time, you were just talking about a BlackHat presentation which you feel didn't get sufficient attention, possibly due to a lack of awareness the tech in question is at the core of a bunch of popular apps. The presentation mentions no specific apps at all. So this thing seems like a bit of threading that needle poorly and also some bad timing. It's not like they bought the domain jitterbugdoor.exposed and splattered 'Signal Degradation through Electron Degeneracy Pressure' across it.
Well advertising and marketing firms don't pay there tech talent very well.
Here's what I do:

1. Filter candidates based on fairly simplistic early models for personality profile, motivational bias, and metacognitive disposition cues.

2. On a subset, further refine the above filtering further w/ another 1 or 2 interactions looking for inconsistencies and/or stressing facets of the model that seem contraindicating or hard to suss out.

3. Prep the team on what & how to assess and bring a small number of candidates on-site for a few hours, to work directly with the members of the team they'd be joining, and have them work together on exactly the work they'd be doing.

So I put in a lot of work ahead of time as a hiring manager to understand what kind of role I need to hire for, what kind of person would likely be successful in that role, and what kind of person would likely be successful working with the team that exists (or will be built). Then I completely avoid some contrived pile of quizes and weak competence signals by instead directly using an actual work environment w/ the same people, the same meetings (stand-up, design review, etc.), and the same tasks that both we & they would be cooperating on together.
I just found people online and moved away from the village after high school.

That was 14 years ago and I never looked back.

I found people who gave the feeling they really understood me.

In the village I had nobody, only a few secretly facist nerds who thought they new everything there was to know...
I have been looking for something just like this! But, even though I use a Mac, I have an Android phone (Android One, Moto x4). So close!
Really? I saw season 1 and loved it. Then eventually found out there was a second one and was happy. Had no idead it got canceled too. I tried to see the first and second episode of expanse and didn't like it one bit. Dark matter pleased me plently. Made me remember a little of Firefly mixed with something else like stargate or something.
It's awesome it exists, but useless if nobody uses it. I think the Google homepage is the only Google product I'm aware of that loads fast, minimal CSS and still loads without JS. Even on a modern computer, some websites have become completely unacceptable to run in the background (i.e. Facebook).

Installing NoScript and blocking external CSS was the best decision I ever made. Now use <25% of the RAM and <10% of the CPU I used to for the same number of tabs (in Firefox) - with a better experience because the browser isn't constantly trying to die.

The UK Government site team is my go to for a good web design philosophy: https://www.gov.uk/guidance/government-design-principles (Hell, if they could run the actual Government like this we would be in a lot better shape!)