skysight-inc/HackerNews huggingface dataset:
From a random article I googled,

Over 1,400,000 Americans are now on active duty; another 833,000 are in the reserves, many full time. Another 1,600,000 Americans work in companies that supply the military with everything from weapons to utensils. (I’m not even including all the foreign contractors employing non-US citizens.)
Indeed, C++ is an excellent language, extremely writable; but readable, it isn't.
This made me smile as well. While I'm now used to it, I have troubles saying there's nothing wrong in having `err` a more common word than `if` :)
"scuppered"

New word I learned today.
1. Defining and using safe JavaScript subsets (in the style of Google's Caja [3] and AdSafe [4], though probably that ship has sailed and cramming syntax sugar into JS is the order of the day instead)

2. Defining and using safe CSS subsets (with countermeasures against click-jacking/-phishing, and hiding "nose print" etc.) though granted this is challenging; I had hoped a formal semantics for CSS came along (such as in [2]) but it didn't

3. Using HTML-aware template engines (such as [1] but there are maybe lighter approaches with hard-coded HTML rules as well; disclaimer: my project)

[1]: http://sgmljs.net/blog/blog1701.html

[2]: https://lmeyerov.github.io/projects/pbrowser/pubfiles/extend...

[3]: https://developers.google.com/caja/

[4]: http://www.adsafe.org/
You are omitting the PR angle: "I DON'T CARE THAT FAR MORE PEOPLE WOULD DIE OTHERWISE - BAN KILLER ROBOTS NOW!!!!"
I recently bought the Xiaomi Mi Air 12.

tl;dr, it's the best ultrabook/notebook I've ever had and run Arch on it.

I was looking for a light notebook also for programming for a long, long time (and I wanted this time Linux because of tiling window managers like i3). I finally got this Chinese model and what can I say, inside it's all Intel (Wifi, BT), Arch works flawlessly, touchpad is a glass trackpad and is for a non-Macbook just great, smooth and responsive and with Synaptics generic Linux driver you can really configure every tiny piece. I like the keyboard very much and the 176ppi screen is fantastic. It's also fast for a passive cooled device (it has a Skylake m3), and I get with Arch and 'powertop --autotune' easily 11 (!) hours surfing, sshing and coding. Only drawback it the 4GB RAM but it still works surprisingly well with the 4GB. And it has two SSD slots and one is even with the fast NVMe protocol. There's also a 13 inch model with 8GB and an i5 but way less battery time and it's slightly heavier (I always wanted a real ultrabook which also stays cool).

I got it directly from a Chinese shop for €450 in an xmas sale. I think now it's around €530.

However, it was so hard to find a notebook in this space. I you want a really light but somewhat powerful notebook you look at the Thinkpad X1C which is in some countries priced ok but in many, especially Europe super expensive (as the X260). But the X1 is still a great piece of hardware and as light as the Xiaomi at 14". Then we have the Macbook which is light, powerful but super expensive and runs well with macOS and Windows but people have mixed experiences when running Linux on that device. I looked also at HP (not really bad but also not exciting, the last gen Envy 13 is ok though), Acer have some new light ones but they are expensive and ASUS has the light Zenbook series which is ok but not that cheap.

So considering that this was Xiaomi first gig in the notebook space they did it quite well.
I can't help myself but I really dislike Uber just for everything they do. Their model is entirely based on exploiting drivers at every corner just to provide users a little bit better service than what taxi companies already did for us. I think with technology we can do better than what Uber does.
Sense – Home Energy Monitor
If you have any ambitions to HN (and reddit!) superstars of, do it (and write about it).

It would be a wonderful conversation starter.
Ask HN: Best Chair for Programming
I'm look for a new chair for my new desk. What recommendations do you guys have for a desk chair that I can sit for 8-12 hrs on somedays?
Microsoft themselves publish a comparison document of services with AWS: https://docs.microsoft.com/en-us/azure/guidance/guidance-azu...
How to intercept all Wire voice and video calls
Crop, Resize and Filter Photos Using JavaScript, React and the Filestack API
Is there a prediction model for the coastal line recession over the next few decades? A map with timelines would be great.
why was this posted today? I bought Little Snitch 3 in January 2013. I was thinking maybe this was a new major version but it's not.
The videos and thumbnails and a little bit of additional metadata take about 38GB in total for anyone wondering.

A couple of the videos were not available in my country due to some copyright stuff so the exact size will vary depending on what country you are downloading from.
Run large MySQL UPDATE and DELETE queries with small batches to prevent locks
I guess I should have mentioned that Lisp is my language of choice. I like the ease with which I can implement anything. But it does have a cost: everyone else implements everything himself, too.

I actually think Quicklisp has helped. It's even easier to do (ql:quickload "foo-lib") than it is to write my own foo library.
Pointers in C and x86 Assembly Language
Considering your goals and price range. I'd recommend shopping the refurb market. Specifically business laptops that are off lease. Bigcorp IT departments tend to cycle their hardware every 3-4 years and flood the market with used cheap/good used laptops. They won't be 'ultrabooks' but they will be cheap, reliable and easy to maintain.

Something like a Dell E6430 would be a good bet.

https://www.dellrefurbished.com/laptops/dell-latitude-e6430-...?

Keep in mind that raw stats/specs aren't everything. I've seen countless people held up by hardware issues that have nothing to do with the speed of the processor.
Linus directly contradicts you in that linked thread, for this specific situation:

And as mentioned, there _are_ exceptions. Some types just get _sooo_
complex that it's inconvenient to type them out, even if they are
perfectly regular types, and don't depend on any config option. The
"filldir_t" typedef in fs.h is such an example - it's not really opaque,
_nor_ is it a config option, but it sure as hell would be inconvenient for
all low-level filesystems to do

int my_readdir(struct file *filp, void *dirent,
int (*filldir)(void *, const char *, int, loff_t,
u64, unsigned))
{
...
}

because let's face it, having to write out that "filldir" type just made
me use two lines (and potential for totally unnecessary tupos) because the
thing was so complex. So at that point, using a typedef is just common
sense, and we can do

int my_readdir(struct file *filp, void *dirent, filldir_t filldir)
{
...
}

instead.

But it's really quite hard to make that kind of complex type in C. It's
almost always a function pointer that takes complex arguments.
The US President (as of today) thinks climate change is a hoax - https://twitter.com/realdonaldtrump/status/26589529219124838...
What teacher would want to use those powers?

If, as suggested, they're intended for looking at 'sexting' images, then the teacher would be looking at child pornography.

If they delete an image, the evidence is destroyed¹.

"Mr Brown took my phone to look at the pictures I'd sent to <boyfriend>. He's creepy, he stares at me in class" — no thanks!

¹ Ignoring recovery methods
Backblaze enteprise
I think this is not possible by design (every app can go online). Adguard (which is an adblocker, runs without root) is installing a local VPN where you can add rules but I think (but not sure) you cannot distinguish between which program makes this request. So with this local VPN approach you can block certain domains/IPs with rules system wide.
What languages do you program in and what toolsets do you use?
I ended up buying a used Lenovo x250 off ebay for a code training program that required Mac but made case by case exceptions for Linux users.

It runs pretty well with Ubuntu out of the box. I got some additional power savings with installing TLP and etc for Thinkpads.
I agree. You try to stop my kid from being able to contact me or the emergency services and my kid won't be in your school.
5 Tips to Create Effective Sales Pitches
Tl;dr: Wire voice and video chats use SRTP encryption, but the key is transmitted over the Wire server using normal TLS without further authentication checks or Certificate Pinning. A Wire employee or malicious government could MitM the claimed end to end encryption.
We detached this subthread from https://news.ycombinator.com/item?id=13442967 and marked it off-topic.
Thanks for the suggestion, this has now been fixed.
thank you, did you pick any other course?
I worked for a "startup" that was going on 10 years old, $190 million in funding and was still not profitable.

I was stunned by just how many of the long-time employees had no understanding of stock options. One was actually flabbergasted to learn that each funding round was creating new shares and diluting the value of existing ones; he thought the founders were selling their own shares to raise the money!

The ignorance was due in part to the company being in a region where startups and stock options are not common. Another big factor was willful deception by the founders, who had been promising to start the IPO process for three years, and frequently estimated that their IPO valuation would be equivalent to Facebook's.
Objective Development (the developers) are a nice company, also providing V-USB - a bitbanging USB implementation for AVR microcontrollers without USB support. https://www.obdev.at/products/vusb/index.html
> just to provide users a little bit better service than what taxi companies already did for us.

I'm not saying I'm a fan of all their business practices, but (at least in Boston) Uber has been a massive improvement over what taxi companies provided.
I tried an earlier version of this and was a bit disappointed by the (apparent?) lack of information regarding these connections from applications, since there's so much going on on OS X and it's hard to tell what's legitimate and what isn't. It would be great if we could record traffic on a per-application/process basis and display it comfortably, or even have some built-in heuristics to identify common tasks like "Firefox update check" or "iCloud authentication".

It's very similar to the venerable "Spybot S&D" on Windows (the "TeaTimer" functionality, now apparently called "Live Protection": https://www.safer-networking.org).
if you want ultra-cheap, the lenovo ideapad 100s is a good candidate. i bought it specifically to be taken to places where theft or damage are likely. as a performance benchmark: running visual studio by itself is snappy, but add firefox with a few tabs into the mix and you start to notice the lag. i usually run (without lag) atom, firefox (~10 tabs), 2 ssh sessions, and xampp localhost http server. it's $180 new, and ships with windows 10. terrible linux support, can't enable windows subsystem for linux.
I definitely agree. The universe being almost certainly deterministic, there is also a 100% chance of everything that has ever happened happening.

It's still useful to think as if different people could have been born in different circumstances. You could think of it as a mental shorthand for the idea that differences between human beings are arbitrary, and it makes no sense to argue that a human inherently deserves an impoverished life over another human.
Sea levels are expected to rise around 2 feet by 2050 which is not going to have the impact you are suggesting. The largest impact is going to make storm surges which can reach up to 40 feet significantly worse. But, generally causing storms which would have already been bad will be worse will not hit everywhere at the same time.
Which one seems more likely? "We could absolutely do that, but meh...just ship it already, who cares" or "doing that would require a major redesign, more sensors and more gigaflops"? (Okay, in the current hw/sw development paradigm, the first one doesn't sound as unlikely as it ought to)
Code Review: Best Practices and Common Pitfalls
Mallinckrodt raised drug price by 85,000%, settled with FTC
Ask HN: Email service where I can use multiple send accounts
Good morning HN,

I've been doing some light email marketing using MailChimp to validate some ideas. At the moment I have three different things I'm working on which - unless I've missed something - means I have to log in and out of MC for each different campaign.

Is there an email tool out there that allows the user to toggle between accounts with, say, a dropdown or something? I don't mind paying and was already looking at PersistIQ and Salesloft. I just want the convenience of logging in and being able to add prospects or send a new mail or whatever without having to log in and out.

Thanks for your help, have a great weekend.
Don't assume he is being honest when he says anything. Lying is practically the guys calling card.

That said, he is unlikely to push climate change one way or another globally. With how cheap wand and solar has gotten coal is on the way out and would take significant subsides to become competitive.
Or you could just use an OS like EROS, that continuously spools its RAM out to permanent storage, and provides instant resume on power on.
Dispute at Harvard leads to a restraining order against a prominent scientist
Tarantool has yet no sharding. gundb is in js. tidb isn't out yet (hope for tikv to be good)
Yup. It's as if they used technological solution to keep children in class - a door lock. Or to keep them seated and looking at the blackboard - restraints.
If you mind with self being too bloated, you can already change it to what you like. The `self` is merely idiomatic.

def length(s):
return math.sqrt(s.x**2 + s.y**2 + s.z**2)

The beauty with self in Python is that self is not at all magic : it merely indicates that the object instance you're using will be passed as first argument of the class method.

Also you can get a custom font with typographic ligatures (e.g. for self, lambda, and so on) in order to make it more visually appealing. For instance (self > 圖) :

def length(圖):
return math.sqrt(圖.x**2 + 圖.y**2 + 圖.z**2)
If population continues to grow because of immigration AND it continues to grow in the nations where people are immigrating from, then it's still increasing due to birth rates. I don't know why anyone would take a question that was generally about humanity as a whole and make it US centric.
I don't think that the interviewee would dispute the role of the war on drugs in creating the problem. If you look at the text, the stronger statements minimizing the war on drugs are all made by the interviewer.

The point the interviewee is trying to make is that the debate is to focused on releasing non-violent drug offenders and ignores the bigger context and other solutions.

In addition to ending the war drugs, the interviewee is advocating:

> If you care about reentry and about keeping people out of prison in the first place, there’s no public policy that you should support more strongly now than Medicaid expansion. Medicaid expansion gives states huge infusions of federal money to expand mental health services, substance abuse treatment, and medical care for many of the people who are most likely to end up in prison.

And:

> We need comprehensive sentencing reform, and not just for drug crimes. We have to look at the hard cases like child pornography. We also need to roll back these very punitive sentences for people who’ve committed some pretty serious crimes — like homicide
I was looking for such an app out of curiosity a while ago and found douanne. Never used it myself, but it was open source and had similar features.
Talk: Next Generation Debugging, Julian Smith (Undo)  Meeting C++ 2016
For the USA: https://coast.noaa.gov/slr/ (Sorry, no timeline, just predictions by feet).
"You have never seen a drunk woman acting unappropriated to a man?"

I've used my personal experience, sampled over thirty years as the metric. It's the only data set I can approach with some certainty it's not polluted with observer bias. I've never been personally assaulted in such a way. I did not deny the large spectrum of abusive behaviours that exist.

To quote myself:

"Yes, sexual and psychological violence goes both ways, but still females are more often the victims."

The original post was about experiences of sexual harassment and I stated few statistical reasons that come to my mind that can cause it.

There is a tendency for some reason to disregard these sorts of claims "because that happens to everybody". No. That's just wrong. Two wrongs don't make a right. Like in engineering, in social settings problems need to be tackled one at a time. That some men suffer violent attacks from some women does not make it right that some women are sexually assaulted by some men.

The male to female "sexual predator" pattern is a specific pathology that exists and needs to be taken seriously. Just like female to male "violent abuse without retribution" is another - but different kind.

Men don't need to "man up" just like "boys will be boys" is not an acceptable defence.

I would like to point out that women were more like capital and not like free citizens even in the most progressive countries until hundred years ago https://en.wikipedia.org/wiki/Women's_suffrage.

Values and attitudes travel across generations. These affect stereotypes, which affect our mental processing even if one is against said stereotypes. There is a very good reason females can be still considered statistical underdogs for a while - the fact that can be abused by predatory individuals as a shield with impunity. The fact that these abuses happen, do not mean we should not still be in general vigilant in upholding female rights for a few generations still.
This is a laughable "list". They list a handful of big-name schools. Here's a reality check: most research universities "fully fund" a PhD for any STEM field.

Oh, and once you are on the page for a bit, a full-page popup blocks the screen asking for your information.

BAD DOG! NO TREAT FOR YOU!
Full quote

> “Instead of scratching only your own itches, why not scratch your girlfriend’s itch? How about your coworkers? And people who work at your favorite restaurant? And what about your doctor? Don’t you want him to spend his time doctoring, not worrying about apt get this and grep that?”

I'm guessing the line was born from an attempt to share Linux with his SO.
Maybe I'm missing something, but any changes you made to the application would not be saved, correct?

For example in Chrome assuming you downloaded something, you would have to specify the target location as your native filesystem, not the overlay filesystem in the docker container.
Is it possible to do that?
> but it would require a fresh install to avoid conflicts.

Not really! Nix basically only touches /nix/..., which Pacman doesn't mess around with, so there are no file conflicts.

Nix packages are generally hard-coded to use the specific libraries/external tools that they are built again, so Arch packages won't interfere with Nix packages.

Nix also doesn't expose dynamic libraries or executables from dependencies, so the only vector for conflict in the other direction is if you have your Nix profile before /bin in $PATH, you have installed the same executable with both package managers, and some Arch program doesn't work with the executable from the Nix version.
Thank you for your work! I used it with a client that had a System.Drawing impl. Just making thumbnails of uploaded images. It actually was our CPU bottleneck! And then it started crashing when load was high, making us drop or reprocess (which added more load and drops...).

With your lib and a few hours of work, all that disappeared and CPU went way down. Thanks!

On a side note, users should try to send gratitude to open source authors in general. I know it's hypocritical of me, since I didn't take the time to email you before this! I've done it a few times in the past and the replies I've received indicated that I was the only one to ever thank them! That sucks. I've written some stuff I know more than a few companies built entire products and services with -- I've received about 2 notes in 6-7 years. It's not much but just a bit of thanks really provided motivation.

Cheers to you.
> I don't think if is a keyword in Smalltalk.

It's so not a keyword it doesn't even exist. At least in the Smalltalks I've used, they provided ifTrue: and ifFalse: (and compositions thereof).
exactly. how can one be sure that it doesn't use the network for its own nefarious purposes while hiding its own network activity ?
Would be turning a room into big Faraday's cage with the sole purpose of preventing radio communication also illegal? Let's assume people are free to leave the room if they need.
EpiPen Competitor Auvi-Q to Be Free for Patients, $4,500 for Their Insurers
HN: What did you do the day after your company failed?
I'm far less emotional that I expected and I'm actually filling out Stripe Atlas to start something new. Just surprised by my state of mind right now and curious what others did the day they went bankrupt.
I think your approach definitely has value and can most certainly work. If you make enough from current contracts in 10 months it definitely is possible to set 2 months aside for learning new tech and not feel financial strain.

Having no dependents also help and I am also in the fortunate position to not have any big financial commitments. The difficulty I find is in consciously setting aside 2+ months. Physiologically I always feel like I need to work while there is work available. Thus I am contributing to my own problem instead of solving it.
I was playing around with the Windows Subsystem for Linux (WSL) a couple weeks ago. I tried & failed to install two programs on WSL, Elixir & Debootstrap. It's worth mentioning that WSL isn't intended to be 100% Linux compatible.

From the WSL FAQ (https://msdn.microsoft.com/en-us/commandline/wsl/faq):

Can I run ALL Linux apps in WSL?

No! WSL is a tool aimed at enabling users who need them to run Bash and core Linux command-line tools on Windows.

WSL does not aim to support GUI desktops or applications (e.g. Gnome, KDE, etc.)

Also, even though you will be able to run many popular server applications (e.g. Redis), we do not recommend WSL for server scenarios – Microsoft offers a variety of solutions for running production Ubuntu workloads in Azure, Hyper-V, and Docker.
In Python you usually import a module and use that as a symbol, or `from module import Symbol1, Symbol2, Symbol3`.

Java doesn't have the former, and the latter requires an import per symbol (it also has the ability to import every symbol in a namespace, and so does Python, but that's usually discouraged)
Of course the money isn't there, you guys spent it all on war during the last 3 decades. 14trillion dollars! Imperial trillions, of course, but even so... Let that number sink in.
I'm just learning to fly, and 4 FPS is plenty for me to land most of the time using VFR in fair weather (but even with some wind and realism settings turned up).

I fly only small, one or two prop planes and gliders, and do so pretty much by the seat of the pants -- no GPS, even an altimiter is not really that critical. I mostly just look out the window and use an airspeed indicator to make sure I'm not coming in too fast or slow.

I was just landing Piper Cubs this way all day today. Now steering those things on the ground is a real pain, even with real rudder pedals. My taxing skills are pretty weak.
RNN Poetry: Bow back
Yeah, I'm open to a better vocabulary word for this, but the point is that it might overlap with "humility in leadership" somehow. Or not. Words are hard.