skysight-inc/HackerNews huggingface dataset:
Back when I started programming, I wrote 1000+ lines of shell scripts.

Now, I quite seriously believe that a 1000 line shell script only exists out of error. I still occasionally end up doing 2-300 line dense shell scripts, but not without feeling very dirty along the way. Either split into small, simple shell scripts (which is fine), or a different language.

In the cross platform build pipeline at work, I keep a strong discipline when it comes to scripts: They must be short (<=100 lines), and if their complexity exceeds a certain threshold (parsing more than a "grep | cut" here and there, total program states exceeding some low number), then a shell script is no longer acceptable regardless of length. And, well, it's not safe to assume the presence of anything more than a shell.

If you are writing and dealing with 1000+ lines of shell scripts, then experience tells me that you are shooting yourself in the foot. With a gatling gun.

(I used fish, btw. The interactive experience was nice, but the syntax just felt different without much gain, which was frustrating to someone who often writes inline oneliners. Unlearning bash-isms is not a liberty I can afford, as I need to be proficient when I SSH into a machine I do not own or control. I can't force the entire company to install fish on all our lab servers, nor is it okay to install a shell on another persons' dev machine just because we need to coorperate.)
Facial Recognition Startup, Trueface.ai Integrates with IFTTT – Viral Docks
This document only addresses email submission and access because a single document that covered email submission, access, relaying, key lookup/verification, and message encryption would be huge and take forever to get consensus on. It made more sense to divide up the work. It just happens that this piece got finished first, probably because it's the simplest piece. Others are working on improving the security of relaying which is harder because in general there's no a priori explicit relationship between an SMTP client and an SMTP server relaying the message - so the client has no way to know on initial contact whether its connection with the server has been intercepted (which would allow the interceptor to downgrade the connection to cleartext and thwart automatic future use of TLS). But even when relaying is more secure, the messages will still be in the format submitted while being relayed, and after being delivered - i.e. usually cleartext.

Making whole message encryption work on a large scale, and incrementally deployable, is hard, because there are lots of corner cases to deal with. For instance, if you leave messages encrypted on the recipient's server, then the server can't assist in searching the text of those messages, which makes searching slow and especially bad for mobile devices. Or you want to know when sending a message if it's safe to encrypt it or not, but even if you define some service to query whether there's a public key associated with the recipient's domain name, that service may not work well if the recipient has their mail forwarded elsewhere. You want the message encryption service to be widely applicable but you also want the user interface to be simple - and corner cases complicate user interfaces.

Or you could start over from scratch (as has been and is being tried by others) and see how hard it is to displace the existing system without an incremental upgrade path. Hopefully we'll get there one way or another.
I see the use case much more as "I need to get from place A to B downtown, outside of my normal commute", etc. I agree marketing it as an everyday commute thing makes little sense but that's only part of the page here.
come join the community! there are good things to be discovered for everyone. fruitful conversations, ideas and people, not profiles.
Give all the voting power to one person.
Fujifilm film is often good (400H, Provia 100f), but the company only seems to care about Instax.
TCP's checksum isn't even as good as CRC32. It's just a one's-complement sum of the packet and a few header words.

From this [0] helpful StackOverflow post:

> If you need to transfer data and you want to be sure the data didn't get corrupted, the TCP checksum alone is certainly not enough for this task. I would even dare to say that a CRC checksum is not enough for this task, since a CRC32 may not detect an error where more than 32 bits in a row are affected (these errors can "cancel out" each other). The minimum checksum you'd need for ensuring flawless data transfer is the MD5 value of the data.

[0] https://stackoverflow.com/questions/3830206/can-a-tcp-checks...
There are lots of board games that can fill that role. Sure, it's not digital or on a screen, but it leads to quality time talking to each other. Actually there's a really good one right now that just hit retail: Gloomhaven.
Show HN: Chrono API – Real Time Forecasting
in Britain we mostly do the sarcasm without any change in tone...
It wouldn't be cosplaying if there wasn't a certain amount of unrepentant shamelessness attached.
"to type a few commands here and there"

Where's "my shell is my desktop environment"? :/
I've found that cities that have Jump bikes already have at least some amount of bike lanes, and having an electric assist motor helps a lot with mitigating traffic. Plus, they're bright red and have built-in lights, which makes them hard to miss.

Speaking about bike shares more generally, owning a bike does involve a lot of maintenance. You forgo that by renting (and I'm sure it's priced to be competitive to the amortized cost of owning a bike and keeping it in tune). I love that sort of thing, but I'm not everyone. If this is the thing that gets people on bikes and off cars, I'm all for it.
On a separate note, it is extremely irresponsible to dismiss concerns about getting in difficulty while in the sea as something that can be dealt with easily. Because it can't. The sea can take you in seconds, on a bright sunny day, with calm weather and while you're in full control of your faculties.

I am Greek and so I've grown up next to the sea. I learned to swim around the time I learned to walk. I am a strong swimmer, in other words and very familiar with the sea. And yet, I've almost drowned twice, once when I was grabbed by a strong current and once when I misjudged the strength of the waves and got in the sea to play with them. I'm lucky to be alive, twice over.

It is important to understand that the sea is not your friend. Every time you enter it, you put yourself in mortal danger and that's no exaggeration. Ignoring this puts you into even greater danger.

And, honestly, blacking out while 30m under (or even six, or one) is my own private nightmare. It's the last thing any sane person wants to happen to them. Dismissing it by saying that the rescue procedure is "straightforward" is completely missing the point, that such a situation is very likely to be fatal.
Where do you live? This is pretty much legal wherever, as long as you pay market rate interest rates on said loan.
I'm a frequent user in Seattle. Here are two big draws:

- One way trips. When you take your own bike, you have no flexibility for return trips.
- Low overhead. My own bike seems to always have a flat tire or a skipping chain. I can never seem to remember where my lock key is. Etc...
I was criticising the test, not the publication.

There's a few things about bias. It is incredibly difficult to detect it when it is biased towards your political/philosophical/etc views. It can happen through comission (Outright lies about verifiable facts), implication (Weasel wording, leading questions), or omission (Lack of context, mentioning but down-playing inconvenient facts).

Simply scanning a piece for trigger words isn't an indicator for, or against bias.

I personally think that TFA is pretty reasonable. There's a few important pieces of context that a few of their points are missing, but it's not supposed to be a seven thousand page treatise, nor is it supposed to reflect on our society. I just take issue with the test.
This service fails https://www.emailprivacytester.com.

Where is the setting to disable loading of remote resources?
Television programming has been profiled and targeted for decades. It just wasn't as granular and accurate as it is on the web.
The ARM core is garbage even compared to modern ARM cores, it’s not only an old GPU and CPU it’s also quite underclocked compared to other products with the same SoC.
Dark patterns with the HTML 5.2  tag and Chrome for fun and profit
I've not played them myself, but someone recently pointed me at these programmed adventures[1] that are supposed to require zero preparation; tokens maps and scripts are all included.

1: http://darkcitygames.com/
See my reply below. My draft originally included the mail relaying case but trying to address both submission and relaying in the same document made the document unwieldy. In theory they both use the same protocol (more-or-less) but there are numerous subtle differences that make the two cases vastly different when negotiating encryption.

The IETF UTA working group has documents in process to address the mail relaying case; I'm sure they'd appreciate review and feedback.
It was good family TV though! Like Family Matters and Full House!
If the mods do that, they should also add the date it will be disabled. If it just had 2017 in the title, it could mislead people to think support ended last year.
One question though:

Do you really need 1000+ lines of shell scripts? I almost have 20 years with shell scripting and I still have the rule of not writing longer than 1-2 page shell scripts and use something else for longer projects or break it down to much smaller chunks and invoke the parts with a main.sh.

Fish is a for making software engineering and system administration easier by having functionality like command completion (without tab) and it works like a charm. I would never ever would nother to rewrite my bash scripts in fish simply because bash is on all the servers and fish is on none by default.

I am not sure what you are trying to solve here but good luck.
Commuting via your own bike is very much a more significant commitment. You probably don't want to leave your bike near your destination. Whereas, with a 'shared' bike, you can commute to somewhere, but take other transport back home. Storing a bike can also be expensive if in no other way than space.

The Uber Bike tho is an electric bike; very much more expensive than a regular bike (and much easier to ride).
The profitable business of selling to the hard-up
Something like this is already supported by the GDB "remote" protocol:

https://sourceware.org/gdb/onlinedocs/gdb/Remote-Protocol.ht...

In your program you would probably need to link in some code to implement the protocol, like the GDB remote stub:

https://sourceware.org/gdb/onlinedocs/gdb/Remote-Stub.html

Qemu and Valgrind both implement their own gdb stubs.

For ARM targets, there is a similar feature named "semihosting":

http://www.keil.com/support/man/docs/armcc/armcc_pge13587870...
To be fair, she was a Soviet defector, so she's relevant (Beyond her awful, awful, toxic ideologies, which - being irrelevant - were not mentioned.)
my rx580 is working flawless on Windows and Linux. Perhaps your computer have a problem.
Fraud would imply malice and criminal intent. What is criminal about paying for fake followers?
You may be underestimating the importance of these particular operators to experienced users. I at least would be very dissuaded from trying an alternate shell without a simple way to enable these.
At least this is an honest use for Ethereum.
I generally agree with you, I'm not sure I agree with your framing. I more agree with you when you say whales are not something most Japanese would eat, so it doesn't make sense to put this on Japan as a country to move forward and stop killing whales. There are some unsavory people and practices in all countries and amongst all groups, and by that logic we all need to be better people.

That said, that tax payer money might finance a new whaling ship might be closer to something you can pin on the government, so that's a valid concern I think.
So, is IANA going along with registering the port 465 this time, or it will only be another case of "somebody tries to do the right thing; stupid bureaucracy insists it's wrong; case closed"?
Cliff Burton Day in Castro Valley
https://twitter.com/jack/status/958743238512328704
You asked about ethical/moral issues that arise from image sequences but not images. I can’t answer that but I can say there are legal diffences, for example synchronization rights for synchronizing audio to video is a huge body of law dating back about 100 years. It’s related to, but different from the laws covering performance of recorded music in public spaces (which dates back to about the 1930’s)
I used to. Now I just Ctrl-P.
> Stopping distances aren't about to magically improve in the next decade such that any vehicle can speed down the street at 200mph (or anywhere close to that) safely.

What makes you think the vehicles wouldn't be coupled together mechanically?

Pedestrians wouldn't be on a road going 200mph; I'd expect that kind of road would be fenced off like rail is today, or in a tunnel, and perhaps even be on tracks.

The point is that automation will change the nature of transport in ways that don't fit into the current mass transit / individual vehicle binary that we have today. That binary is based on limitations on current technology.
Yes, we do need to draw the line somewhere. I'm glad you agree. I'm also glad you agree that we shouldn't cause suffering to Orcas, Dolphins, primates, or elephants. Why do you think we should not cause suffering to those non-human animals but think that it's ok to cause suffering to other non-human animals?

My line in the sand is sentience (the ability to suffer). What's yours?
Why does sentience matter? Why do humans deserve a right to a life free of imposed suffering?
It's probably easier to scape goat the company for some people than think about the root cause.
Note the word relatively. Microsoft has over a billion paid office users. There’s probably another billion pirated users. Google is a few hundred million, and has low penetration into institutions. 3-4 US state governments use Google in a paid capacity. 50 states use Microsoft.

Also, generally speaking, it is preferable to preserve original documents for archival purposes. Export to other formats is problematic in those cases, especially as time marches on and you end up making exported copies of copies.
> He seems to have made a career out of shocking audiences of news sources at how bad the DPRK is. It appears that most is sourced from the accounts of defectors.

OK, but this podcast was primarily based on a personal visit to NK, plus a bunch of the NK's own propaganda. (Yes, they did discuss at least one NK defector, but that wasn't the primary topic of discussion.)
XP and IE and office up to 2013 and redhat and debian and curl and python and java and openssl and...

It took a while for TLS 1.2 to be supported by major platforms and tools.
Maybe they have a speech impediment: https://www.youtube.com/watch?v=ziH9St7ajuw
Sure, but if you have a buddy, a minute is more than enough for a rescue. I did it a couple of times from about 10m and it is a bit stressful but I got free beers in the end :)
Personally I leave bash as my login shell and just set my terminal emulator to launch fish on startup.
For IPNS, my experience says it could take up to 30 seconds to publish and up to 10s to resolve.
PayPal sees 24% revenue growth in its latest quarter
Why do you think there are so many scooters and motorcycles in Paris then?
For each expert like him, there are also Linux kernel experts,

That's an unsubstantiated opinion not backed up by any kind of qualitative evidence.
Headlines are why I rarely read online news articles anymore, and typically just view the comment sections, either here on HN, or Slashdot, etc. It never used to be this bad. One would think that with public trust in the media at an all time low, they would make an effort to be less sneaky and clickbaity, at the very least with their headlines, but....... nope.
Joe Everyman has as much access to private actions and government support from his own jurisdiction as ever, and government agencies have often shown themselves willing to conduct enforcement action against foreign-based actors. Sure, the poor often have less be edit from the laws on the books than those with more resources for advocacy, but that's a near universal constant that's orthogonal to the issues raised in the thread.
Homeobox
I've been using fish for years but I never write scripts in it. What's the point?

There's sh which is the most portable. Why write scripts in anything else but an actual programming language when things get more complex?
By the way, I submitted this with the title "GitHub will discontinue TLSv1 and TLSv1.1 on February, 2018" but when I looked a few minutes later it was already changed to be the title of the original blog post. I'm sure this article was posted last year (clearly GitHub gave plenty of timing), but I saw this as a public service announcement on Twitter and thought, "Oh crap, lots of people are going to have weird issues tomorrow, I'd better go tell some people!"
That's sort of exactly the point. These are generally being ridden by people with poor bike handling skills. I don't want some dumbass flying by at 20 on one of these things when they only bike a few times a year.
> 3). ban fake accounts / tie in a real human behind the account. 100000 fake users means a lot less to me if i'm an advertiser than 10 real people.

so i posted this in another thread in response to twitter, and it got kind of drowned out but with regards to authoritative/oppressive governments subpoenaing facebook to get a user's identity for voicing an opinion that isn't in line with the regime's. how do you solve this while giving every account an identity? anonymity on facebook/twitter seems to be one way to practice freedom of speech in countries where there isn't really any
To be fair, regular people use websites. Regular people do not use chatbots in significant numbers
Facebook, Instagram, Snapchat, Twitter usage are all down.

People are just spending less time on social media apps for some reasons these days.

https://www.similarweb.com/blog/social-media-usage
I think "fake accounts" is definitely a problem ... however, don't think it's the true issue. They should take a note from the financial industry, and self-impose more stringent KYC and content regulations for those posting political ads.
TypeScript 2.8, due next month, is shaping up to be an interesting release! It introduces a feature called "conditional types [0]" which opens up a lot of type-level programming opportunities.

Flow also has the `$Call<>` type (type-level function application), but unfortunately as with most of its features, it didn't go through community testing/input before release, and thus it has bugs that render it useless for what I assume to be very common use-cases.

[0] https://github.com/Microsoft/TypeScript/pull/21316
A simple case is hiding the implementation and exposing a public API. Let's use objects to make it something C++ ought to be good at and C ought to be bad at. In C, you write a header file adder.h:

struct Adder;
struct Adder *adder_create(void);
void adder_setup(struct Adder *, int, int);
int adder_operate(struct Adder *);
void adder_delete(struct Adder *);

You can easily imagine how one would trivially implement these functions in adder.c, allocating an object, mutating its state and deleting it. The caller doesn't know anything about struct Adder nor does it know how the adding of two ints is implemented. It only needs know that struct Adder can be pointed to. The header file defines a clear interface that can be compiled against. The implementation can be changed without having to recompile all callers. Tried-and-true and boring but it works: this is the way C has done it for decades.

Now, C++. You create a class Adder, declare public constructor and destructor as well as setup() and operate(). Then you declare a couple of private ints to hold state and maybe some private helper methods, and then you realise that 1) you've just exposed parts of the private implementation in the public header and 2) you can potentially break compiled binaries even if you only change the private/protected parts of the class. Yes, that's a textbook example of how to define a class that completely sucks for any real-life encapsulation purposes. You see how things are getting complex quick? This is where people began to think of more novel applications of C++ to fix the language itself.

So you define an abstract class IAdder in adder.h with pure virtual methods to act as a truly public interface, and derive an implementation class AdderImpl in adder.cpp. Great. Except you can't instantiate the private implementation. You'll need a public factory function outside the class or a static method such as IAdder::create() to construct an AdderImpl and return it as an IAdder. This isn't very clean and beautiful anymore and this was a simple example. There are more branches to be explored in the solution space but at this point we've basically had to create an ugly reimplementation of something that we thought would come free in a language that namely supports object oriented programming whose one fundamental selling point is easy encapsulation. And all that while the C counterpart is actually easy, understandable and simple, and requires no re-engineering to get it even work.
TypeScript 2.7 released
> Let's hope so for their sake. Personally I'll believe it when I see it. You can hire all the sales reps you want... If your top leadership doesn't understand or respect enterprise buyers, or know how to scale the entreprise distribution "machine", then it won't matter.

Diane Greene knows the enterprise... she has hired an experienced team on the product, sales, and marketing side.

> I've spoken to several enterprise IT buyers - commanding billions of dollars in aggregate budget - comparing the benefits of AWS and Azure. When I asked them "what about Google Cloud", the room burst out laughing. This happened several times.

I too can play the anecdote game - I have senior relationships with at least a few major international banks with aggregate budgets in the billions, and they are betting on GCP. I also know a very large bank betting on AWS, and a couple are straddling the fence with multi-cloud between their on-prem, Azure, and GCP. I see Azure commitments in a big way in insurance.

Of course, it depends what you're trying to do as to which cloud is the better fit. We saved a pile of money moving our AWS workloads to GCP and got better performance for it. I think laughing at Google is a mistake, but clearly they have work to do.
There are practical solutions: FreeBSD, OpenBSD, SmartOS. Linux for firmware is not one of those, but if you think it is, good luck with using it for that. Don't bother to let me know how it worked out for you.