skysight-inc/HackerNews huggingface dataset:
I don't think Rust can notify on a failing destructor other than panic!ing. AFAIK the best you can do if you want to handle errors on close is to call `flush()` (which does return errors) before dropping the object. Of course that nullifies the benefits from RAII.

I don't know if there's an elegant way to solve this. If Rust had exception you could use that but then again in C++ it's often explicitly discouraged to throw in destructors because you could end up in a bad situation if you throw an exception while propagating an other one. How does Python's "with" handle that?
Shares are often a much more tax efficient way of rewarding employees and having an actual share has numerous advantage's in term of morale retention and so on.

Also shares keep on producing income after you have left a company.
I think you misunderstood me, but nevertheless I still agree with your first paragraph.

The linked article was comparing RAII with the bracket approach, not the destructor approach.
And Africa, the pacific and everywhere else. No doubt the long term goal is to colonize the world.

And they’re clever enough to do it slowly, lots of small transgressions, giving each time to be accepted before moving on to the next quiet domination. Perfect example is taking control of the South China Sea.

And they’re smart enough to colonize in the most modern of ways...... buy the politicians and thereby remove all possibility of government resistance.
not quite concerned enough to give back the
millions of dollars they earned

Do you have a way to undo the social harm done by facebook for a few million dollars?

Or do you think they should just get rid of the money, K Foundation style, regardless of whether doing so would reverse the effects of the work they did to earn it?
Whataboutism?

Since the shady nature of the Economics prices is widely known, and brand management is a core imperative for modern high-fee universities, Harvard, Yale, and Stanford are just as guilty. The problem of false-Nobels is widely known and discussed among economists and physicists.

I find it surprising that there is so much resistance to the (widely discussed [1]) false advertising involved in the mislabelling the Sveriges Riksbank Prize in Economic Sciences Prize in Economic Sciences. I've brought up this subject many times on HN, and always get negative reactions (but never a coherent defense of the practise of mislabeling Sveriges Riksbank Prize in Economic Sciences Prize). In contrast, when I bring this subject up in face-to-face communication, my interlocutors always agree.

[1] https://en.wikipedia.org/wiki/Nobel_Memorial_Prize_in_Econom...
>Governments are slow to act

If we keep thinking that individual actions is the best thing to do because governments are slow to act, then, government will certainly be slow to act. That's a pretty sad self-fulfilling prophecy.

I've stopped using fossil fuel transportation (living in a big, European city I can rely on my feet, my bike and the pretty good subway systems + and trains and EV when traveling). I'm going vegan and get most of my food from community-supported, organic agriculture. My electricity is 100% from renewable (solar, wind and hydro). I don't buy shit anymore and I'm doing my best to reach zero waste (not easy). I'm trying to be positive and inspire people around me (no more criticizing, just showing that many of those small actions are not that hard to do).

Yet, things deteriorate pretty fast. We lost 30% of the birds in just a few decades in my country, and worst, 80% of insects. CO2 emissions are rising fast (3+% this year, while the government promised to reduce them). I can think I'm doing my part, and go on with my life. But I can't sleep. The average citizen just don't have the time, peace of mind, or resources, or the required information to act.

Telling others to change their habits won't do much. We've got to organize and make big decisions. The small steps won't be enough, that's for sure (cf. https://www.france24.com/en/20180828-france-nicolas-hulot-re...)
If you are consuming an API that provides an object with a destructor, you are correct, you can determine when destructors will be called.

The issue is when you produce an API that contains objects with destructors. Since you are handing these entities off to unknown code, you cannot ensure that they will be dropped. This was a problem in scoped threads in Rust.
> How do you handle errors at resource release? When you close a file, the final writes take place, and they can fail. What's the idiom in Rust for getting them out?

That is unclear. Currently, `File::drop` ignores all errors and drops them on the floor ([unix], [windows]). This is a concern both long-standing and ongoing[0].

AFAIK discussion has gone no further than https://github.com/rust-lang-nursery/api-guidelines/issues/6...

[unix]: https://github.com/rust-lang/rust/blob/master/src/libstd/sys...

[windows]: https://github.com/rust-lang/rust/blob/master/src/libstd/sys...

[0] https://www.reddit.com/r/rust/comments/5o8zk7/using_stdfsfil...
I hopped around different industries quite a bit in the start of my career until I found a non-programming domain I felt want to focus on, and I've stuck with that for the past 10-12 years, spending at least 5 years at each company I've been at.

Had I been 'forced' to just write programs in the void solving problems I didn't care about I would have quit programming a long time ago. Now I get to solve interesting problems I care about (just so happens that I use programming and data analysis to do so). Also showing up at job interview and being able to say "I grok the domain you're operating in and find in fascinating, and I happen to know how to code" puts me way ahead of people who just know how to code.

The downside is there are only 6-8 companies where I live that work in this particular domain, but so far that hasn't been a problem.
There is a proposal to add fibers to Java: http://cr.openjdk.java.net/~rpressler/loom/Loom-Proposal.htm...
There is a wonderful tech community in mastodon.
You misunderstood me. I'm explaining why simply adopting RAII is inappropriate in Haskell, even though the author thinks it's a better approach. I've edited my comment to make this clearer.
I also prefer manpages over web searches for multiple reasons:

- works without internet: very important when you want to use a long train ride to write some code (I also have the entire rust-doc and all IETF RFCs on my disk for quick referencing)

- quick and reliable access to known items: `man ascii` is way quicker than finding an ASCII table on the web (probably on Wikipedia). And finding the syntax for an obscure bash feature is way easier when your search is confined to `man bash` rather than to the entire web.

- Don't know how to label this, but I like that the manpage is a complete documentation of one tool, unlike a disconnected set of Stack Overflow questions. That allows one to cursory read through the manpage to learn the scope of what that tool can accomplish.
Honesty is 'very impressive'?
For what it's worth:

I actually reported this very issue to FB over two weeks ago and at first they denied this being an issue, it's a feature instead.
After pushing a little I had them admit that this is actually a real security leak, however they argued that I was _not_ the first one to find and report this. That means no six figure bounty. They have since closed the ticket with what's basically a: will fix in the future.

After some discussion I found the following:

- Facebook at the very core assumes you don't forward your emails, the security staff I talked to didn't seem to understand this is a very basic flawed assumption.

- It's by no means a one time use token, you can keep using it over and over again. I don't understand why, they could've just used a single use token if anything.

- It's bound by some kind of security mechanism, and from my PoC I found it to be simply your IP. I suspect your friend has logged onto or simply used Facebook from your IP address.

- The emails don't indicate the button you are about to press actually contains private information. This is bad UX. If people were told that the emails should be kept private and not shared (not the case) then this could be different.

This _seems_ to be a feature that they built so people can log in, even if they have forgotten their passwords, in order to keep user engagements high.

It also opens up a can of worms. For example, if you break up with a partner and you still have an ancient forwarded email, you can now simply log in as them and have full control over their account. I suspect there's also little protection for public WiFi that shares the same IP, such as coffee places, cafes/bars or public transport hubs. If you see anyone there that has ever forwarded you an email, you now own their account ;).

But remember folks, that's not a bug. It's a feature!

Edit: At this point I actually don't believe this is new for FB. For me this is proof that business overtook good engineering and that there's simply a box checked with 'accepted risk'. There is either no actual previous report or people have been reporting this for a long time, but there seems to be no willingness to fix this.

To me it seemed to be hugely connected to last weeks '50 mil account token' leak but this is separate, accounts that I tested my PoC on can still be accessed and it's telling that even after last weeks PR nightmare this 'feature' is still online.
Why Do Customers Behave the Way They Do?
Me and you both. OpenVMS got so much right back in the day. Good error conventions, versioned file system... I still fondly run an OpenVMS workstation under my desk so I can revisit the good old days sometimes.

Then realise my skills have atrophied to the point I can barely remember how to use edit.
What are you on about? I am flying inside my own house!
> I still add support for "--help" for my projects (because it is handy, I will admit)

Some applications (e.g. Git) make "--help" redirect to man. What do you think of that?
It doesn't address the original problem: you want users that receive a mail claiming to come from A.com not to click on a link to B.com.

The only advantage that routing clicks through MailChimp has, is clicktracking. Clicktracking can easily - trivially - be handled serverside. Just embed per-recipient unique ids in the url.

If MC is worried about customers lying about #clicks, they coukd easily make all urls point to A.com/mailchimp?mailid=xxx&linknum=yyy.

That forces A.com to run the one thing MC sends them to sort out the clicks... which of course does the clicktracking and hides the useful info from their customers.
"weekdays" are not globally Mon-Fri.
Why stop there? They haven’t even factored in the cost of developing agriculture from a hunter-gatherer society, or the cost of human evolution or or or
30+ resources for modern IT Ops professionals
What you are suggesting is actually quite complex. Mailchimp would have to install a bunch of stuff on customers servers (which are probably run by a third party) and/or control some of their customers subdomains.

Maybe you just need to invest some money in better spam filters, and user education.
Yes. I know it varies a bit by field, but a large percentage of the time the supervisor claims credit for everything their graduate students comes up with. There have been more than a few Nobel prizes awarded to supervisors where the student came up with the idea and did all the work.

Edit. A famous example is Selman Waksman and Albert Schatz [0, 1].

0. https://www.ncbi.nlm.nih.gov/pubmed/1882032

1. https://en.m.wikipedia.org/wiki/Selman_Waksman
Improperly shielded spark plug system in an older mower.

https://www.w8ji.com/electrical_noise_emi.htm

https://www.google.com/url?sa=t&source=web&rct=j&url=http://...
GC enabled system programming languages like D, Active Oberon or Modula-3, among others, allow for many ways to allocate memory, it is not GC all the way down.
maybe this should be Show Hn:
The swedish teletext is still also very popular. It's like the original internet and the internet for old people.

Even funnier: us semi-greybeards that do use this other internet, often still use teletext via app/web browser because it's such pure information.

It's news/weather/ and other info in curated and distilled form. Example: https://www.svt.se/svttext/web/pages/101.html
Not that I disagree with the sentiment, but shouldn't you fix this at the source i.e. the government? If the American people don't want their government to spy on people .. vote for another government?
Clouds pace costs money - most users data is actually redundant. Hamsteed cat pictures and the likes of them. So why not save space by having a original and all those users just having a hash. Of course, if theire stuff... Is not theirs.. And theirs alone.. The users shall never know.. The omerta compels you.
Teletekst is still active in the Netherlands, and they also offer a web interface and Android/iOS app to expose the info on your mobile devices. It is still beloved as all info is short and easy to consume while on the go. Fits perfectly into a Twitter loving society ;-)
Project Loom [1] is intended to provide green threads, or 'fibers', at the JVM level.

There have been other projects like Quasar from ParallelUniverse [2] that retrofits them by processing the compiled bytecode to enable saving/restoring the IP & stack.

[1] http://cr.openjdk.java.net/~rpressler/loom/Loom-Proposal.htm...

[2] http://docs.paralleluniverse.co/quasar/
Amazing Selling Machine Review
First Signs of Kodi 19 Appear Online via Kodi's Official Twitter Account
> I also suggest sending the version string as the User-Agent so you can debug server-side issues. (Assuming your CLI uses an API of some sort)

Isn't it some kind of disguised tracking? I know it doesn't give as much info as the user agent of a browser, but still, you could track the OS, even the linux distribution, and surely more, while still being a reproducible build.
Honestly I haven't checked for a few years (currently living in Sweden), but last time I checked most programming jobs where working for engineering (mainly connected to the oil industry) or finance companies as opposed to more pure software companies. Not that this has to be a bad thing in any way. That being said I gather from friends in Norway that the startup scene is slowly growing even there and there are more and more small software companies looking to hire.
Which gets me wondering: when installing MRIs, do they perform test runs at lower powers and try to detect such leak, maybe with some kind of handheld detector?
Where are these numbers coming from? The publication only cites itself as a source.
It would be interesting if they could work with Cloudflare, AWS, big small business web hosting providers, etc. and other people in line in processing the click to make special casing the clicktracking URL easy.
It also happens in Korean. The green light is 파란불, literally "blue light". (Thankfully, traffic lights are actually green around here.) In modern usage, 파란 means "blue" most of the time, but its variant 푸른 continues to mean "grue". The sky is grue, and so is the pasture.

I don't think Korean even has a native word for "green". The most common word for "green" in modern usage is 녹색, which comes from the Chinese characters 綠色 and feels more like a technical term than a native Korean word when placed in a sentence.
Then don't read their articles
> No way, terminology is what we are arguing about

Not really, my original point was that it's stupid to have intense car traffic surrounding the pedestrian part of La Rambla. But either way, your terminology argument is completely invalid too, as demonstrated by the examples.

> Only examples you were able to find are either temporary pedestrian zones or roads without physical reconstruction.

So, to sum up, according to you, my argument is invalid because, excluding the proof that I gave you, I have no proof :) Hilarious.
So far so good for us, but that's why we pay our accountant! We'll see what happens end of next year.

If you have questions drop me a line.
I have recently created single CLI program to put in all actions I need to automate. It's so fast to make new action, that I make anything that saves me just few seconds a day. Even stuff like "invoice" will open me timescheduling app, invoicing app and creates canned email to clipboard. "Clockout" will open timescheduling app and copy expected date and times to clipboard just to paste to app.

I've of course spent some time on automating Help, flags parsing etc, so I essentially just say what data I need and then what to perform.

It was best idea in a long time. I'm thinking that I'll publish framework for this as opensource (it's C# project).
But done the right way. With autocompletion based on your frequent searches, recent searches, machine learning based suggestions using what the whole internet searches, etc.

It's qualitatively different from your average CLI experience. As such, I don't think you can actually compare the two.
What actually is employee engagement?
Its easier to google a terse one-line error than a multi line error.
> The better variants also do edge detection and consider the character shape

Sounds neat. Got one in mind?
If they use anything like the hue that's used in the UK, it's been pushed a long way towards blue (IIRC the intention was to better accommodate people with red/green color-blindness).

You only really see it as explicitly “green” because years of training yourself to see it as green because that's what books depicted it as & that's what everyone called it.
Hello! I'm unable to find proper website of yours. Except a page built on Nuxt at https://www.xstealth.space/. Do you have a proper website to which I can look at? Thanks.
Karanlık Zihinler (2018) Film izle
Alipay volume over Golden Week holiday more than doubles from last year
Google Drops Bid for Mil Cloud Computing Contract Amid Employee Pressure
Haskell has shown that you can have erased generics and have reified generics opt-in (i.e. Typeable and Generic). Works perfectly.

And the vast majority of generic Haskell code does not have either of those constraints, which makes you think how important reified generics as-default really is.
I tried to use BFG to clean a repo of excessive large files once. After the `git push --force` our entire repo was gone. Oops!

Use with care, do it on a Sunday (or other time most devs aren't working), and be prepared to restore a backup.
From self-made teacher to YouTube superstar: 'Yoga with Adriene'
Show HN: SquareSpinner for iOS and Android (Free mobile game)
"Last year Greece stopped the European Union from criticising China’s human-rights record at a UN forum. Hungary and Greece prevented the EU from backing a court ruling against China’s expansive territorial claims in the South China Sea. Faced with such behaviour, it is only prudent for Europeans to be nervous."

Well that's one way of saying thanks for all those bailouts they received...
It's a good point, however as a practical matter for zfs, such width is not encouraged by ZFS best practices, which usually recommend between 5 or 7, to about 15 or 20 disks as a maximum.
Y'all niggas gotta see this
https://youtu.be/VIg5HkyauoY
That's what the error code is for
Begging someone who does something bad (spying on their people in this case) to please stop doing bad things? That works?
The age of envy: how to be happy when everyone else's life looks perfect
You are so thoughtful. Thank you for giving hope to humanity.
Brexit’s Economic Damage Is Getting Real
Turning Your 3D Printer into a Plotter (Or Other Device?) Is Surprisingly Simple
Does https://www.hrblock.com/expat-tax-preparation/expat-guide/fi... help?

Even if you don't want to use their services, there are pointers about some of the relevant topics, like https://www.hrblock.com/expat-tax-preparation/articles/fbar-...
Concurrency,  Parallelism and IO
Teletext is still active in Finland:

Yle: http://yle.fi/tekstitv

MTV: http://www.mtvtekstikanava.fi/

Some random picks from a previous comment of mine:

Pollen map: https://yle.fi/aihe/tekstitv?P=418 - Statistics graph on an article about road traffic deaths: https://yle.fi/aihe/tekstitv?P=865#3 - SMS chat: http://www.mtvtekstikanava.fi/new2008/892-01.htm - Helsinki Airport arrivals: https://yle.fi/aihe/tekstitv?P=427 and http://www.mtv3tekstikanava.fi/new2008/605-01.htm - Ski slope situation: http://www.mtvtekstikanava.fi/new2008/621-01.htm and https://yle.fi/aihe/tekstitv?P=420 - Radiation measurements: https://yle.fi/aihe/tekstitv?P=867#2 - Record chart: https://yle.fi/aihe/tekstitv?P=804 - Recipes: https://yle.fi/aihe/tekstitv?P=811 - Bird situation: https://yle.fi/aihe/tekstitv?P=888 - Test page: https://yle.fi/aihe/tekstitv?P=580 (looks like blinking does not render) - TV listings: https://yle.fi/aihe/tekstitv?P=311 - International weather: https://yle.fi/aihe/tekstitv?P=408 - Train schedule and alerts: https://yle.fi/aihe/tekstitv?P=430 - International shortwave stations: https://yle.fi/aihe/tekstitv?P=591#3 - News in Latin: https://yle.fi/aihe/tekstitv?P=365

MTV used to have classifieds on their teletext pages that you input using your (landline) phone.
The Bermuda Triangle of Wealth
5 Προβλήματα στην σχέση που προκαλούνται από το Facebook
I think the these three passages really sum up where Google's moral compass is these days:

>"A memo reviewed by the Journal prepared by Google’s legal and policy staff and shared with senior executives warned that disclosing the incident would likely trigger “immediate regulatory interest” and invite comparisons to Facebook’s leak of user information to data firm Cambridge Analytica."

>"The document shows Google officials felt that disclosure could have serious ramifications. Revealing the incident would likely result “in us coming into the spotlight alongside or even instead of Facebook despite having stayed under the radar throughout the Cambridge Analytica scandal,” the memo said. It “almost guarantees Sundar will testify before Congress.”"

>"Internal lawyers advised that Google wasn’t legally required to disclose the incident to the public, the people said. Because the company didn’t know what developers may have what data, the group also didn’t believe notifying users would give any actionable benefit to the end users, the people said."

These statements and tactics seem to be taken from the same playbook that Big Pharma, Big Tobacco or any other soulless Mega Corp uses. As long as it it's legal they don't care if it's right. Did their arrogance prevent them from entertaining the idea that disclosure would have provided users with the "actionable benefit" of considering whether or not they wanted to delete their Google accounts?
Peer-reviewed homeopathy study sparks uproar in Italy
Does Shopify Offer Blogs?
The Czech president, Milos Zeman, wants his country to be China’s “unsinkable aircraft-carrier” in Europe.

I understand a fuller quote is "an unsinkable aircraft carrier of Chinese investment expansion". We have not yet reached the point where the ambition of European countries is to become a military base for China.
The error handling in close is platform specific, so you have to convert the file into a raw fd/handle and then pass it to the appropriate libc methods.
Probably referring to the fact that they are Japanese companies
The Real Value of Having a Sales Dashboard
You can use select{} to block forever and yield the goroutine.