skysight-inc/HackerNews huggingface dataset:
A few years ago 27 people were charged with fraud for being paid to pump stocks with hundred of articles these sorts of platforms under the guise of unbiased news. This is probably just the tip of the iceberg.

https://www.sec.gov/news/press-release/2017-79

>The SEC today released an investor alert warning that articles on an investment research website that appear to be an unbiased source of information or provide commentary on multiple stocks may be part of an undisclosed paid stock promotion. Investors should never make an investment based solely on information published on an investment research website. When making an investment decision, thoroughly research the company using multiple sources.
Trying to be clever?

Here is your Rust version, enjoy.

use std::io::{self};

struct NetworkComponent {
socket : NetworkSocket
}

impl NetworkComponent {
fn new() -> NetworkComponent {
println!("Creating NetworkComponent");
NetworkComponent {
socket : NetworkSocket{}
}
}

fn do_sth_with_socket(&self) {

}
}

impl Drop for NetworkComponent {
fn drop(&mut self) {
println!("Dropping NetworkComponent");
}
}

struct NetworkSocket {

}

impl Drop for NetworkSocket {
fn drop(&mut self) {
println!("Dropping NetworkSocket");
}
}

fn main() -> io::Result<()> {
let mut foo = NetworkComponent::new();

{
let socket = NetworkSocket{};
foo.socket = socket;
}

foo.do_sth_with_socket(); // oops, runtime failure, socket closed

Ok(())
}

https://play.rust-lang.org/?version=stable&mode=debug&editio...
Some trucking companies require you to lease your truck. If you get fired before you paid off the lease you dont't get to keep the truck. Barely anyone stays around long enough and if they do the boss can just fire them before the lease ends.
The money isnt evenly distributed at all. Plus, private schools in areas that actually spend 18k/student will cost you more than 18k on their own. Most in the Bay are over 20k now
I had a similar screwup, different outcome.

Was working for a brokerage as an intern, IT gopher stuff, pretty much my first office job.

A month in, I’m told by my boss to delete a directory on the file server. Which I do. I scurry off and rm -rf it, think it’s taking a while, so saunter out for lunch.

Turns out that that directory was an active mount point for the root of the filestore on which they kept all of their user drives, legal documentation, everything. rm had got about halfway through wiping it before they pulled the plug on the machine.

Turned out they didn’t do backups, because “nothing like this ever happens”.

My boss’s boss flipped his desk over the incident, hurled a monitor tree at me like a battleaxe while purple and screaming, incandescent with rage. My direct boss of course fired me. I was literally booed out of the office by the traders, who chucked cups and bottles and crap at me as I did the walk of shame. Grown-ass men. I was 18.

I learned then that most people everywhere just want someone to blame for their own shortcomings, and being that person can be a valuable service if correctly structured.

Edit: I lie. I learned no such thing at the time. It dented my confidence and gained me a reputation in the city - and not a good one. It was however one of the formative experiences that led to me starting my own business, and never, ever treating anyone (or allowing anyone in my business to be treated by anyone else) in the fashion I was treated.
Correct. Piracy results in a market dynamic where even a strong second player can't win from the market leader, and pushes software markets to monopolies.

Companies like MS and Adobe know this. They have to perform regular anti pitacy charades, but they vastly prefer someone pirating -a potential future buy- to someone buying an alternative - an actual lost sale.

Same dynamic in hollywood: Pirating a film is vastly better for them than finding alternative hobbies and not buying the series merchandise.
> Learn to behave in class.

Who’s the job to teach those kids how to behave in class ? Their parents ? And what do you do if their parents don’t care (which is the common case with those kids) ? What do you do if the student has undiagnosed mental illness ? Entire generations of misbehaved children were in fact suffering ADHD. How do you manage a misbehaving children that is bullied every single morning when he comes to school ?

Not educating a kid is ruining its life and, since you speak with « brutal truth », yeah, just sentence those students to jail for life already, at least they’ll not have to struggle with hunger and homelessness during years.
It would be nicer if you had marked your edit where you made it; it took me a while to notice the postscript. Also, you could have mentioned that you made an edit in your reply. Thanks. I hope next time turns out better.
Don't know about stocks, but I'd really like this interface for a regular news site: good, bad, event, sector, country (the country interface looks particularly nice). And then use labels to indicate type of news (instead of stock symbol). Not sure what the colored dots mean though.
> But I wouldn't be surprised that alignment ... troubles would eat any possible gain.

It's string. Alignment shouldn't be a problem. Rather alignment issues are for the pointers to that string.
> I'm not sure how much you can infer about one from the other.

You can certainly infer how much a largely capitalist society values each skill set at this point in time. The GP is claiming that "suburban Chicago teachers make as much as Chicago-area software developers do", presumably implying that capitalist society in the suburban Chicago area values the labor of teachers and software developers equally.

This is a claim that I want to understand better, since I don't think it reflects the statistical reality. Typically, such claims cherry-pick tenured teachers with 15+ years of experience, and compare their wage with the average software developer wage, which is itself a very unclear number – for example, a lot of developers go on to be managers in 15+ years whereas teachers largely remain teachers.

Glad to be wrong on this though, and might consider moving to an egalitarian society like suburban Chicago.
Various companies do LibreOffice support:

https://www.libreoffice.org/get-help/professional-support/

Probably there are companies for the other projects you name, or contracting random developers would work.
Yes and the isomorphism is known as Curry-Howard Correspondence https://en.wikipedia.org/wiki/Curry-Howard_correspondence
That would be a great rule.
Wait what?!
mentorproject.org is blocked because of *torproject.org.
This is hilarious =)))))))))))
https://jasperfforde.com/specops/cheese_classa.html
Windows has partly moved and is moving in this direction - WinRT (higher-level, C#-like but without requiring the .NET runtime and GC) APIs are already defined in metadata, and now Win32 (lower-level, C-style) APIs are being defined that way as well: https://github.com/microsoft/win32metadata/blob/master/docs/...
I agree with the point of your argument, and everything you’ve said, except:

> who are trying to not break their own users by removing or stalling a popular package they already had

I don’t believe this is true. I believe the author asked to not be included before the change got merged. After the PR got closed, the maintainer from nixos took the conversation to the homeassistant forums, where someone seemingly representing nixos indicated that packaging homeassistant was a relatively new effort.
All those difficulties are real, and yet, FFI exists and is useful. Of course it won't work in 100% cases, but it would work in many cases, because all those things that you describe aren't random - usually libraries have certain conventions on what the pointers mean, who frees them, etc. What the author is asking for is extending the basic service FFI provides to make it more useable and accessible. Still wouldn't solve 100% of causes, and still the questions like "is it thread safe" would never be part of it - so what? There are many use cases which can live without answering this question.
> You can't style the results

Good.
Vigilante helping the big corporation profits in the fight against poor people and just generally annoying

The villain we don't want or need
Probably the right social norms for OSHW (and FLOSS TBH) would start with providing their own support and extend to profit sharing.
You should be using arch linux with i3wm.
C is the only option in UNIX/POSIX platforms like 99% of the time.

The other being C++, which happens to be for better or worse, almost copy-paste compatible with C89, also also a UNIX child born a couple of offices down the corridor.

Interesting that you pick Ada, given how outrageous the compilers used to cost, versus the freebie C compiler that already came on the box, and cleverly washout the complaints on the FOOS community that won't touch GNAT due to licensing FUD.

Who is on bad faith here?
Correct, "they" is now often used when an author hasn't confirmed the preferred pronoun of the author.

See also:

- birthing persons = moms

- founding fathers = founders

- amen = awomen

- history = herstory
I built our CI and tested failures and deployments. I never tested someone intentionally stopping CI while it was in progress. Two days after the team started using it, we realized we needed an immediate revert but the code was currently being built. So we just hit “stop” on the TC job. No big deal right? The current step was stopped, but it moved onto the next step like it passed. It deployed terribly broke things to production.

This is when I learned TC sent SIGKILL on a stop and not SIGTERM, which my scripts were expecting.
And 13% of income. Perhaps the problem is that poor people are poor because they make bad financial decisions, not because rich people are kicking them down.
At rev.ng we're developing ludwig, a clang-based automatic generator of wrappers for C++ APIs.
First we generate C API and then generate wrappers for dynamic languages such as Python/Ruby/JS.

It's basically SWiG done right. Trying to write a C++ parser is a design doomed to fail.

In C++ ownership is much more explicit than C on average.
The idea is to have a Python wrapping object for each C++ pointer.
This wrapper can be owning or non-owning: if it's owning calls `delete` once the wrapper is destroyed.
If a C++ function returns a std::unique_ptr we map it to an owning wrapper.
If a C++ function returns an object by value we `std::move` it on a new object on the heap and map it to an owning pointer.
If a C++ function returns naked pointers, we map it to a non-owning wrapper.
The system is extensible, for instance you can say that a owner<int *> (see C++ Core Guidelines) is actually owning.

The wrapper can also be const or non-const, exposing the appropriate methods accordingly.

Also you have a lot of patterns you can exploit to provide high level constructs in scripting languages (e.g., `.begin` + `.end` ranges can become Python generators rather easily).

Here you can find the design document:

https://pad.rev.ng/s/__WrFSmm_#

Right now, we're struggling with default template arguments.
Many STL classes have default template arguments which make the name of types look ugly.

Also, we currently instantiate all the methods of template classes. But not all methods are supposed to be instantiate with all the possible template values. If you do instantiate those, you can run into compile errors. This means we have to resort to a sort trial and error approach to see what it actually makes sense to instantiate.

ludwig will be open source, but still needs some love before going public.
Resolve is fantastic, the only thing absent in the free version that really affects me is the lack of GPU support, but I'd gladly pay if my usage increased to the point where it got in my way.
Capitalism doesn't end. It gets renovated after a war.

There is a huge variety of solutions. War isn't inevitable it is merely the easiest way.
Not a lawyer, but I _highly_ doubt the MIT license makes any difference when it comes to the author's demands in this situation, he has moral rights (legal term) to the software.

You can't just make a mess of packaging someone's work and assume there's no legal avenue for the author, that's just naive.
A question to you: Would it help if we gave up income taxation and switched to expense taxation of natural persons? I am trying to think long-term and visionary.

The idea behind this: even the super rich consume. One might have a big yacht which costed a few hundred million dollars. If the state can enforce taxation of expenses of natural persons, the man with the yacht would have to pay a percentage of his expenses with the yacht.

I know there are many loopholes, but let's think about them and try to close them. One of them is pushing expenses abroad. To close the loophole declare that moving money abroad to a country which doesn't do expense taxation counts as expense. And let's try to this in many countries of the world.

I also know that super rich tend to consume less as a percentage to their wealth. But surely they consume a lot more and more expensive things than the general populace.

After all, people are people and it doesn't really matter what complicated structure of incorporations they have created to evade taxes. It doesn't matter, too, whether something is a salary or capital gain. Finally they will use part of the money to consume. Then strike hard and extract a percentage as tax.

I know there's value-added tax, this is similar, but the target is different. And I know this idea is somewhat vague. I just wanted to outline the principle here: expense taxation.
But downstream didn't demand anything. AFAIK there was no communication until the dev asked for it to be removed, they asked why, and he said the equivalent of "just do what I say", which obviously didn't get him anywhere.

And the public opinion was really only against the dev because he was being intentionally difficult while the NixOS people were bending over backwards to look for a mutually-satisfying solution. It would have been a non-story if the dev hadn't been a bit of an ass in public forums.
I'm not sure your math works. If the goal of vouchers is to take the total education budget, divide it by the number of students, then disperse the pot equally.

In other words is it simply a case of $10 000 per child per year, so here's a voucher for 10k, go wherever you like?

There are no extra resources here for underperforming schools - in fact there are likely fewer resources. Public shools won't get smaller though, they'll just merge together to create fewer schools, and the bad teachers will go away.

And perhaps therein lies the root of the resistance to vouchers. It starts to measure school, and by extension, teacher quality. And that's not a rabbit hole teacher unions want to go down.
Polygon: L2 or Not L2?
Maybe you should be a little less presumptuous, technically nobody is "clearly identifiable" as anything. What you're applying here is a shorthand.
But then it should be licenced so that people downstream don't think they can use it. The conversation was because the guy stuck a sign saying "anyone can use this for whatever reason" and then was unhappy at people doing just that and wanted them to just accept that.
The problem isn't what school the parents pick, it's that the voucher schools cherry pick high scoring kids to hold up stats and aren't accountable to the state for the education the state is paying for.
A lot of FLOSS projects have commercial support, and the good ones even have an ecosystem of multiple companies who provide paid support and also contribute back to the project, for eg:

https://github.com/fossjobs/fossjobs/wiki/resources#freelanc...

That can go wrong when the support companies are doing most of the work but not getting much out of it, for example Collabora's forking of LibreOffice Online.

https://lwn.net/Articles/833233/ https://lwn.net/Articles/692871/
I mean, that’s cool, but you haven’t actually adressed the problem, which is that I’ll spend 3 months training you, only to have you quit after 9 more. That’s not really a good investment
Same here. A native cross-platform GUI library with HTML/CSS native markup would set the works aflame.

It would take many man-years to build, and would take the dedication of Torvolds and the core Linux team to bring into the world.
I would have assumed you could reset the passcode is you had your icloud password but that doesn’t seem to be the case for ios. Macos seems to give you the option to reset your password via icloud.
I'd go even further: Locking down their phones provides value to the customer? Then leave them unlocked by default and charge the user extra for having their garden walled.
assetfinder from Tomnomnom is a great tool for sub-domain enumeration:

https://github.com/tomnomnom/assetfinder
Sure, here are a few off the top of my head:

- My Git commits/changesets were huge. There were so many code changes to so many files that it was very difficult to review. I learned how to write better commit messages and streamline my commits a few years later.

- I ignored best practices for the sake of getting things done. Programming wisdom and best practices seemed like overkill at the time, as I only measured my work by the number of lines of code I wrote. I needed to find the middle ground between quality and productivity.

- I organized projects/files inconsistently. This was because no one else had to work with the repo at the time.

- I was bad at managing expectations of stakeholders and estimating tasks. Because I was inexperienced, I would over-promise and under-deliver at times. As I went along, I realized better ways of communicating what could and couldn't be done within a sprint. Now, I think when someone asks for a feature -- the answer should generally be yes, with whatever caveats/blockers that are foreseen at the time.
If that is true I apologize, however when the issue blew up I looked and it did appear that home assistant was already used by Nix users. If I get a chance before the edit window I will take a look and adjust this point accordingly.

edit: I looked into it and it appears home-assistant has been packaged in Nixpkgs since at least January 2018. I'm keeping this statement as-is. (Also, to clarify to anyone reading this, the PR that spurred this on was one for a dependency for home-assistant, not home-assistant itself, but the author of the dependency is one of the top contributors to home-assistant.)
Just 6 blog posts prior, the author was writing about "How To Create A Blog On Bluehost In 3 Simple Steps".[1] While admittedly that was 3 years ago, still quite an impressive feat of leveling up!

[1] https://thezerohack.com/create-blog-bluehost
This is the text of the license (emphasis mine):

"Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so."

The license clearly and explicitly grants the ability to make a mess of packaging the work. One could translate it into BASIC and use it to launch rockets at whales in the pacific ocean and that would be granted by this license.
This answer is why I asked my somewhat stupid question. You know 183 days is weirdly specific. Why not just say 6 months or half a year?

And know I know why, it's because US goverments uses this number as a cut-off for some legal consequences. Thank you!
Show HN: Share your real-time crypto portfolio and invest with your friends
I think there should be something like "Private copying levy" but for open source developers that create useful libraries.

My example would be cURL. Car makers have it incorporated in their software and well I don't think any of those car makers was going to Daniel to buy that piece of software or contributed back to the project.

For "private copying levy" I don't really agree all poets should take cut because there is no demonstrable evidence that someone is using their work, so they would receive money for nothing.

While open source developers can demonstrate that their software is used by those companies to build products and people use their work while using products.

https://en.wikipedia.org/wiki/Private_copying_levy

https://daniel.haxx.se/blog/2018/08/12/a-hundred-million-car...
Progress in Support for the Riscv64 Platform
High salaries means more people looking to get in, so it's not like administrators would risk running out of teachers.

(I'm all for financially rewarding good teachers, but because their work is incredibly valuable. It's just ab incredibly hard context in which to separate the good and the bad without creating perverse incentives)
I come in from a rather different angle.

I currently own a 2007 diesel station wagon, mostly by accident. It's a hand-me-down from my parents. Fuel consumption is 4.25l/100km (~55 mpg).

It's plenty comfortable to me. It has the safety features that matter (ABS, airbags and whatnot). I've never ended up in an unsafe situation due to a lack of acceleration either. It's got plenty of cargo capacity on its own. In the unlikely event I need more, I can easily hook up a trailer. Which is exactly what I plan to do on the way to the holiday house this summer. Plenty of rather rough unpaved roads there, and yet hardly an SUV to be seen.

All of this fits well with a personal strategy:
- frugal. I try not to spend more than the median unskilled labourer reasonably can.
- political. I try to make sure as little as possible money goes to Russian (48%), Saudi (~20%) or other middle eastern (~5%) oil firms of vey questionable ethical reputation. Just thinking of Mohammed Bin Salman is stomach turning enough for me to lower my speed to the fuel efficiency optimum.
- ecological. Used car, fairly clean burning engine, using it as little as possible, driving it at optimal speed ~90km/h (~56mph) .

My significant other is on board with this. The tradeoff was between owning a car or not. She absolutely wants one. I absolutely want what we own to be frugal, aligned with our political choices and ecological.

I can really appreciate the engineering that went into a massive engine, very much so. Same for a friend's custom leather car upholstery rework. True work of art. An acquaintance of a friend's converted an old Volvo 240 to run on wood (!) [0]. To me, the comfort and fun you described sound bland, hollow, empty even in comparison.

Why go with the boring highly polluting v8 when you can get something similarly boring with more positive externalities instead?
> he spent that few minutes kicking me in the ribs as hard as he could while I was under his desk hooking up the new keyboard.

For real?
What value is an opinion if you can't back it up?
>I know very few people who want attention from strangers when they go out in public.

How do you define attention? From what I can tell almost everyone wants attention from strangers in some form. I know very few people who deliberately dress to not be seen.