skysight-inc/HackerNews huggingface dataset:
> You have to go look up three functions every time you read a block of code.

When you write small, single-purpose functions, you can make them fairly self-documenting with the name alone. If you have to look up a one-line function, it probably doesn't have a very clear function or name.

> Worse, people start writing the same functions over and over again.

That one I've definitely run into.

> There's probably a bigger picture problem and fix in that kind of situation, but it is something I think about.

Mechanisms to search functions by type ("find me a function that takes an X and returns a Y") help quite a bit.
I'm finding it hard to see where people are coming from with this complaint, though you're in good company so I assume there's something to it. But what features? What bugs?

Sublime seems to have a well-defined aim and to be resistant to feature creep. It's doing a good job of meeting that aim, so I'm happy with it only changing as needed to keep up with like, high DPI monitor support or other things that would actually make it unusable.
This is false. I have volunteered for flights on United in the past and I have a got a single voucher of the total amount ($800 and $500). Also I can use it online. I received them less than a year ago.
A relevant read for those who are considering this vs a Galera based solution: https://www.percona.com/blog/2017/02/24/battle-for-synchrono...
That seems to be false, i.e. he is in fact who United claims he is--his hometown paper discusses it here. http://www.courier-journal.com/story/news/2017/04/12/yes-ken...

I can also confirm it personally because I have family in that area and it turns out they were treated by him. o_O He doesn't have the best reputation, apparently. Not that that's at all relevant to United's behavior, of course--it's like those cases where a cop shoots an unarmed man for no reason and they try to defend it because it turns out he'd robbed a liquor store the previous week. Was pretty surprising to me, though.
I understood, which is why I qualified my response. There are legitimate business needs at various times where the use of a private jet is fully justified.
TIL about figlet and cowsay.

Thanks HN!
Wherever it comes from, the power is used to melt metal, so the power puts an upper limit on how fast material can be printed.

I don't know what percentage of the plasma energy in RPD is transferred to the metal, but fiber or CO2 lasers are significantly less efficient than electron beams (~40% vs ~70% absorption based on a very brief search).
Paid ads are good to start off with because they instantly drive traffic and will allow you to iterate quickly if users just aren't picking up what you're putting down. The downside is cost. Once you've established that you have a product that people want, then you can scale your marketing efforts to channels that require more effort (PR, relationship building, outbound sales).

read this http://tractionbook.com/
While he should be held accountable, you do realize he essentially made a prank call from a foreign country right? Is the prank call the problem or, are the police responding to a prank cal, breaking the bones (in a guy playing video games face) the problem? Seriously, who is more guilty here? I say put them all in prison for a long time.
try not to make global functions. or at least put them in name spaces. if the function is reusable cross code bases then make it into a module or library.
It's possible that this situation will cause all the other airlines to try improve their staff and bureaucracy out of fear of being next.
I feel there could conflict of interest.
Also it's unclear how now sponsored server are related or unrelated withing legal frameworks to the fact that the author has role in PIA.
Wouldn't that baby-eating version of me become the new "spiritually myself" version?

Not the same as me now because currently I'm not eating babies, but it would be the new me.

Even if I never start eating babies, I'm still not the same person a year from now.

"You" is a very fluid concept.
A Lizard with Scales That Behave Like a Computer Simulation [Cellular Automata]
Breaking the bones in a SLEEPING guy's face (over a prank call from another country FFS) is the officers job????

I guess you don't believe police are there to protect and serve which they are sworn to do. Not protect and serve random callers from other nations by the way!
Send the 4 employees in their United uniforms down to the Delta ticket counter?
I didn't know lilo was no longer with us. That sucks...
I'd say the same as someone who lives in Hong Kong and travels to Shenzhen with some frequency.

With one caveat, those folks selling parts definitely treats me with a lot less friendliness than they do with foreign buyers, especially when you're buying just one.

There are also varying level of quality when buying parts, especially batteries and screens. It's hard for repair shops in the area to charge higher prices for better parts, so there's definitely a huge market for screens that's slightly mis-calibrated, has a non-noticeable dead pixel and such. Customers in the area generally care less about those kind of quality.
Why Some Opioid Addicts Overdose on a Diarrhea Drug
I see a lot of that, too. But I also see a different error, of treating cost of living as multiplicative.

Once you are making noticably more than you are spending, earning 2x and spending 2x means you're keeping 2x.
Yeah, it's not an issue for me either. I've set clear boundaries with my family (wife and three kids five and under), and they leave me alone in my workspace. I shut and lock the door and that's it until I come out. Works really well. I wonder if those who've had problems have also had difficulty setting and credibly committing to boundaries. It may not seem like much, but if one of them tries and succeeds in getting your attention (pounding on the door, etc.) then they'll do it again. It's incredibly important that they believe that once the door is closed and locked that you're essentially not there.

My daughters love it when I work from home, so they're very supportive of my boundaries.
> It seems simplest for the Govt to avoid trying to mandate detailed security standards for continuously changing tech

Govs can do a lot of broad legislation rules that is non-specific.

The software industry requires a legislative bitch slap like the auto industry received. These rules would wreak havoc on the industry but if you ask me for the better.

- Are you running unpatched software exposed to the internet for which CVE patches exist? Pay a fine every day until you do so.

- Ban IoT devices that do not have automatic signed software updates over encrypted channels (which would probably ban all current IoT devices).

- Ban all IoT devices without crypto capabilities. Must have a hardware RNG and a set of standard crypto algorithms.

- Does an IoT maker have a CVE and has not patched all their devices in X amount of time? Daily fine.

- Are you a vendor who has not patched a CVE for your software after X amount of time? Pay a fine every day until you do so.
Mine just responded when I watched the video from the article.
> The real question is, why do people put up with such fragile phones?

It's technology, the average punter doesn't give it a second thought beyond "What does this device do?".
Good read. I thought this was sort of paradoxical though:

"First, never use a one-size-fits-all decision-making process."
Scotty here, the dude that made the video. I'm not sure I can answer the first set of questions about why phones are fragile. I think it probably has something to do with consumer expectations/tastes around look and size of phones though.

But I can give you some answers for your second set of questions.

> So what does all that Shentzen parts retail look like when you're building something new?

The markets originally started as wholesale components and tools markets to service the electronics factories in Shenzhen, which make a significant fraction of the worlds electronics, particularly commodity electronics. So it actually mostly caters to people building new things, versus repair. But I didn't show any of that in the video. My understanding is that the cell phone repair markets are comparatively much newer, and obviously cater much less to large scale production of new goods.

> Can you go into those buildings with a bill of materials and come out ready to load your pick and place machine?

Yes, absolutely. There are multiple buildings of distributers that do nothing but sell components on reels to load in pick and place machines. You can even buy a pick and place machine there if you need.

> Can you get boards fabbed one-off while you wait?

Not quite while you wait. There are a bunch of booths in the markets advertising these sorts of services though. I think the fastest on the PCB fab itself (without assembling any components on it) is 12-hour turn time, and that's pushing it a bit. 24-hour turn time expedited but pretty standard, and 3-4 days is generally the non-expedited standard for the board house I've used. Sometimes a bit longer if they're really busy. A courier on a motorcycle will bring it to your door.

> Or is it all about repair and simple mods?

The cell phone markets are mainly about repair/refurbishing and simple mods, as far as I can tell. But I don't fully know - there's still a ton more for me to learn. I still feel like I'm barely scratching the surface here.
There are many conflicts of interest in the world - organic farming is an industry too. e.g. at least one of those 14 experts is an active member of the organic industry and has long had a beef with the GMO industry: https://www.geneticliteracyproject.org/glp-facts/charles-ben...

As to the science: the original highly-questionable IARC determination has since been contested by both the European Chemical Agency and the European Food Safety Authority.

It doesn't do us any good calling everything in the world a carcinogen. We have to rank-order risks in order to make reasonable choices in life, and glyphosate sits very low on that list compared to other industrial chemicals when you look at the evidence for mutagenicity or secondary carcinogenic mechanisms.
For anyone wondering, the correct way to do that cowsay command is `figlet moo |cowsay -n`
Adding a security key to Gmail
IMO, that sounds very similar to arguing the following, which, if I understand it correctly, is not an argument that has been successful in the past (see e.g. https://en.wikipedia.org/wiki/Weev which incidentally I found by guessing the URL...).

> it seems that by intentionally [making available a server on the Internet] a device explicitly designed to respond upon [receiving the request] "[GET <URL>]" one could argue that you have authorized it to do exactly that.

FWIW, I'm not convinced that should constitute unauthorised access. I do think the Burger King case is slightly different though - no "OK, Google" commands would be likely expected from a remote third-party, whereas third-parties are authorised to make _some_ GET requests. If anything, I'd say that makes it more likely to be considered an unauthorised use.
There is actually another option -- especially with respect to herbicides: manual labour. Herbicides don't increase yield. They decrease cost.

Wheat is currently $4.35 a bushel. A bushel of wheat is about 60 lbs. So, we're paying just over 7 cents a pound for wheat.

Fix the distribution side, not the production side. There's a lot more fat there. And in the mean time, research ways of reducing labour on physical methods of weed control.
> If I call the police because there is someone suspicious in my neighborhood and they show up and end up shooting an innocent person, I am not responsible for the shooting.

No, but this example illustrates perfectly what I'm talking about.

If the only reason you called is because it's a black kid, then people are going to be justifiably upset at you, even if the police are the ones who shot the kid.

What we're talking about here is why people are upset.
I'm in. We'll call it Layd.
I'm glad I'm not the only one in the world to have realized that the Duggar family practices continuous deployment religiously.
Yea.. Is there a good way to find the diff? Only if research papers were published on git :P
Caddy doesn't require root. You can easily use systemd/upstart/custom scripts to run as an unprivileged user.
I'm not arguing for or against, I was explaining what the other poster meant since it seemed as if their meaning wasn't clear.

My statement about the doctor being the only one that could be compensated was definitely tongue in cheek.
This is what I've observed in my open office workspace. It's really counterproductive, and a big reason (I believe), why so many employees work from home much of the time. Then again, for most places the alternative is a cubicle farm which isn't any better in my book. Man, nothing makes you feel like a drone like working in a cubicle.
I've known several people on the abuse teams for ad revenue at Google and I can tell you they work very hard and care deeply at preventing malware. It is, however, an extremely non-trivial task.
(0) Memory safety alone doesn't fix the downsides of lacking a formally defined semantics. You can turn most undefined behavior into trapped errors for the cheap price of a constant overhead factor, but that won't make writing correct programs any little bit easier. Your programs will just fail in more manageable ways.

(1) Once you have a formally defined semantics, undefined behavior is no big deal, because you have the tools to prove its absence in whatever program you're writing.
I want to agree with you, because that was utterly noxious...but I still am hungup on the fact that the Police (in instances like this and things like SWATting) continue to just do the bidding of some random person. Its like we have transcended violence committed in the name of the state for violence committed by the state in the name of violence.
"There are some platforms (such as embedded systems) where C really is the only choice. "

That's never true. You can always use a higher-level, safer language that can compile to C. The result is C code but you never write it & avoid its pitfalls. Ivory language in Haskell, Ada-to-C, and Modula-2-to-C come to mind. Alternatively, you can use something even more primitive in a C subset or native assembly that it compiles to. OcaPIC or JavaCard come to mind. Astrobe Oberon is another for safe, low-level coding but not sure how its compiler works.
you're absolutely sure that there are no spirits?
> With one caveat, those folks selling parts definitely treats me with a lot less friendliness than they do with foreign buyers, especially when you're buying just one.

Yeah, that really sucks. There's definitely a lot of pretty apparent white privilege here, which I try to be really aware of and not take unfair advantage of. But it can be tricky to navigate at times.
Does it support paged media?
Was wondering what would be the best way to rate limit API requests that are in the order of thousands per minute, am guessing not any of the methods suggested in this write up helps?! Help pls.
A DV certificate does not certify that example.com is trustworthy; it only certifies that the content you're seeing is indeed from example.com. If users are mistakenly assuming DV certs have more meaning than that, then that is a UI issue with browsers, not an issue with the CAs.
I was in a museum the other day when a guy asked his girlfriend how she would feel about a non-diamond engagement ring. Her reaction was hysterical, and a good laugh was had by about 20 other people. Not likely they are going to be a thing too much longer.
No paged media makes page formatting much too painful.
The print to pdf command currently only support default print settings. Adding support for customized page size, header and footer, dpi, etc. is in progress.

Please see bug: https://bugs.chromium.org/p/chromium/issues/detail?id=603559 for updates.
Resisting arrest is a misdemeanor (albeit a Class A) in IL. The law states: "A person who knowingly resists or obstructs the performance by one known to the person to be a peace officer, firefighter, or correctional institution employee of any authorized act within his or her official capacity commits a Class A misdemeanor." By refusing to leave, he was obstructing the performance of a known peace officer. Whether that fits your definition of "grave crime" is unknown to me.

Also under IL law, trespassing: "A person commits criminal trespass to real property when he or she: (3) remains upon the land of another, after receiving notice from the owner or occupant to depart" In the reading I've done on this, I've not found anything to support your claim that he was permitted to remain on board. Do you have a source?
My hand made script doing the same thing is also called "hist".
I'm the maintainer of wkhtmltopdf, and it's hopelessly out of date. There's still some bugs in the Chrome print-to-PDF support as support was added just a few days ago:

https://bugs.chromium.org/p/chromium/issues/detail?id=603559

Not sure if all the full functionality that wkhtmltopdf can be ported, it had patches to Qt/WebKit to enable that ... probably will need API enhancements in Chrome. Don't have the time right now, but I registered http://crhtmltopdf.org a while ago hoping that I'd get around to it.
Any kind of headphone bothers me, even the ones which are large enough to not touch the ear itself. The only thing I can comfortably wear for longer periods of time is earbuds, but even so I don't like listening to music for long stretches of time. I prefer nothing in, or on, my ears and silence for getting shit done.
About a decade ago (give or take a year) our small web company had a PCI test against our network and a 500-page PDF ended up in my email. The "report" was obviously the vomit of a program detailing every issue for every site [1]. You would think that after the 50th time our DNS resolvers were "open to the public" (as it were) that the stupid program vomiting the report would realize it's reported the same DNS resolvers each time.

[1] It didn't help my perception of the report when it screamed that "ICMP echo was enabled and nefarious scalawags might be able to do unspeakable acts against our computers, best cut the network cable" type of advice [2] (yes, I know port 443 is open! WE'RE A WEB HOSTING COMPANY SERVING UP COMMERCIAL WEBSITES! ARE YOU PCI AUDITORS STUPID?)

[2] Okay, the ICMP echo thing was reported, but did not need to be disabled to pass the audit. If so, why even bring it up?
Looking at the script, it doesn't write any history itself, it just loads whatever is in the existing .bash_history into its db when `hist import` is invoked (when a new shell is started if you add it to your .profile like the readme recommends.)

So this does not do anything to manage different sessions clobbering each others' histories. The solution posted by zootboy will work together with this script however.
you're presenting these as if they are diametrically opposed or mutually exclusive. I would describe them as complimentary parts of a complete explanation.
How to Rip and Convert DVD to MKV with DVD to MKV Ripper
I've lost the stackoverflow links since but it's something like http://apple.stackexchange.com/questions/218731/why-bash-his...
Portable Object Format from 10 years ago? https://docs.oracle.com/cd/E24290_01/coh.371/e22837/api_pof....
OH THAT IS AWESOME THANK YOU
Have you ever been on a wheat farm? I actually have been and even got to help around the farm for fun.

My friend had 4.5 squares. That is a square equals 1 square mile. How would we increase labor for weed control?

I also lived in Imperial Valley, California. The back breaking work that the migrant workers did was amazing difficult. It would take double or triple the workers to pick through and weed a farm then pick fruits and vegetables. I don't think Kansas nor Manitoba have the population to do that seasonal work.
My money's on this. The pictures in the article exemplifying the hateful VK content make the article itself look like a hate article. If I were a (overworked, underpaid) human reviewer who saw this after an algorithm flagged it, I'd probably have scrolled down to the pictures and tossed it into the "flagged" pile too.
>Third, use the phrase “disagree and commit.” This phrase will save a lot of time. If you have conviction on a particular direction even though there’s no consensus, it’s helpful to say, “Look, I know we disagree on this but will you gamble with me on it? Disagree and commit?” By the time you’re at this point, no one can know the answer for sure, and you’ll probably get a quick yes.

This sounds really powerful but also like it might be open to abuse. Does anyone use something similar in their own workplace?
Jal, Korean Air, asiana, ANA, all great.
I tried!
Google is the true Internet Bully
I would think if this was an issue wouldn't we see epidemic health issues already its been going strong for over 20 years.
Except that's not what they said. What they DID say is:

>The LGBT rights group is calling on New York City comptroller Scott Stringer, and New York state comptroller Thomas DiNapoli, to contact Usmanov and Tavrin, and demand that content depicting, promoting or extolling the abduction of gays, blacks, Jews and others be taken down from VK.com, and that all accounts associated with such materials be deleted.

You're doing yourself no favors by taking liberties with what was said instead of directly quoting the article.
The documentation has failed - it's actually just an incrementing ID right now, not a frequency! I should make a clarification soon.
# infinite history
HOSTNAME="$(hostname)"
HOSTNAME_SHORT="${HOSTNAME%%.*}"
mkdir -p "${HOME}/.history/$(date -u +%Y/%m/)" > /dev/null 2>&1
SESSIONPREFIX=$(date -u +%Y/%m/%d.%H.%M.%S)
export HISTFILE="${HOME}/.history/${SESSIONPREFIX}_${HOSTNAME_SHORT}_$$"

Only thing you're missing is `HISTFILE`, and an alias like

alias histgrep='find ~/.history/ -type f -print0 2>/dev/null | xargs -0 grep --color=auto -InH'

https://news.ycombinator.com/item?id=10162189 for context
Cant sell ads for a non existent audience, see twitters stock price for proof.
Carlota Perez: 2nd Machine Age or 5th Technological Revolution? 3 part essay
FWIW, my understanding of sqlite is that it allows atomic operations against the same DB, even if there are different clients... so I would guess at worst the clobbering is minimal. I could be wrong, though.
JetPack Iron Hero: City Legend
IoT is a bad vision for the future. 20 years from now I don't want a million devices in my home running software. Either they'll all constantly be pestering me with updates that break functionality I rely on, or they'll be out of date with bugs and security holes that last forever.

My vision of a good future is one where I have exactly one smart device: a robot butler which will operate all my other devices. I don't need a smart lock if the butler unlocks the door for me. I don't need a security webcam if the butler monitors the house while I'm away. I don't need a smart thermostat if the butler sets it for me. Etc.
zsh history, from what I've seen a long time ago, can include timestamps, which is why I added a timestamp field in the schema, though it's currently unpopulated: https://github.com/jcsalterego/historian/blob/3bf7158b163d3f...

#soon
So if I remember the discussion on this article when it was going around, the roundup they had wasn't pure glyphosate. They sometimes mix it with other stuff, especially the off the shelf stuff for lawns. You can drink pure glyphosate and survive (I wouldn't recommend it, though.) It's been tested on animals many times. It's not like some mystery substance that's never been tested.