skysight-inc/HackerNews huggingface dataset:
Building a Simple Chat Using Phoenix Framework’s Presence and React
I hope so, at least since they care about performance instead of outsourcing to C.
Inside the PocketCHIP, a $49 Portable Linux Computer
Dammit, the epub format is such a disgrace for books, especially for those containing code snippets. I've yet to encounter a book that doesn't suffer from being published as epub. I prefer a well formatted pdf that just looks like the printed book, any time.
If an average human couldn't handle abstractions at all, their brain would explode somewhere around being 2 years old. Everyone, even the biggest luddite, deals with shit ton of abstractions every day. The brain can handle it. The ego, quite often, cannot - and herein lies the role of a good teacher.
> If you are calling #sum on an array of non-integers then you need to provide your own initial value

Why? This doesn't seem necessary, but, more importantly, would be inconsistent with #inject's behaviour (if enforced).

----

http://ruby-doc.org/core-2.3.1/Enumerable.html#method-i-inje...:

If you do not explicitly specify an initial value for memo, then the first element of collection is used as the initial value of memo
Not as I understand microservices. A library would be something that's compiled or included in to your application code. A microservice is a separate process that the application communicates with over a protocol (eg http).
I have a bunch of repositories written in pure C (no C++) with a few Makefiles and some supporting shell scripts. When I google my name, the result from GitHub has the following description:

"my_username has X repositories written in Shell, Makefile, C++, and C. Follow their code on GitHub."
You could add it: https://github.com/kennethreitz/python-guide/
Or, work at all.

And companies know well that looking nice and being "user-friendly" has a better ROI than actually doing something useful.
Even Atom has nice "paredit" right now. It's not an issue anymore.
These improvements feel like amateur hour. No leadership no roadmap no goals.
The only way I found was to use (cygwin ssh) port forwarding to map that port to the standard one, kill the default network SMB process (which restarts), and hope my process wins the race. Then you could access the remote shares at \\127.0.0.1 .

I think I also managed to create a loopback device, put it into its own subnet, and map the port to that device, and then it was possible to do e.g. \\192.168.100.56, but it was a pain to set up.

The reason I needed this was, I wanted to run samba as non-root on a remote host (on a non-privileged port), and forwarded that with ssh though a firewall. This way I could access my files on the remote Linux server from my windows desktop. One problem is that windows does not tolerate hanging connections much, and a bad or lost connecting can freeze your program or require a reboot. I'm not sure how much is the kernels fault and how much you can code around this.
Computers aren't good at seeing subtle details in photos. At least not yet.
I don't think I've ever used any non python.org distributions - what's the difference between Anaconda and WinPython?

Edit: Aha, Anaconda seems to be tailored towards data analytics and includes R.
I agree I might have read too much into it but on reflection that reaction came after the years of hearing that very phrase 'how can you stand doing such and such thing ...' from people who really wanted to ask 'why aren't you out there having fun like the rest of us/other people', all the time not realising that perhaps I was actually having fun doing what I was doing.

Yes, some of the best moments in my life do involve people but only in the 'more than one person' sense and not in the 'more than 3 or 4 person'. And yes, some of them do also involve just myself.

To reiterate, I do agree with you about not making your life all about one thing, I just don't agree with you about what is 'fun'.
> Solar harvesting in space sounds really cool, but how do you get that power back to earth?

This has been investigated several times and the most promising technique involves using maser downlinks to transfer the energy.

> He's said very clearly that you could just have a giant square of solar panels in the desert and it would power the whole country.

Ok that's a start. That takes care of the energy needs of 3.5% of the Earth's population, once they have sufficient storage capacity to see them through the night.

Geostationary space-based solar collection can work 24 hours per day, with much higher efficiency and minimal storage requirements, right over the areas of peak demand even when the ground is obscured by rain and cloud. No deserts required.
Pokemon a Uffizi, 'meno male è virtuale'
Haskell is more popular than Swift? That's surprising.
You can try but you'll never be able to rationalize stealing from someone. Especially when you use someone(s) else's actions to try to justify stealing from them.

You folks are young. If you're lucky enough to learn some of these things, the fact that a lot of bad karma will suddenly disappear from your life and things will go shockingly smoothly -- will only be the dessert. The real banquet will be knowing that you went through a time when you made bad decisions but by a stroke of genius, realized you were actually hurting someone (financially in this case) and were able to set aside your selfish wants on their behalf.

One of the best things you will discover is this: when a person is making bad decisions in one part of their life, they're rarely able to confine that bad decision making to just one part of life -- they're making bad decisions across the entire spectrum of their behavior.

That was a cool lesson to learn. I had to become in charge of a lot of young techies to discover it. A near-karma-free life is waiting for you guys. Shalom.
Interestingly, assignment inside conditionals is usually avoided because it is easy to accidentally do an assignment (=) rather than a comparison (==). Note that for multiple assignment this mistake can no longer happen:

irb(main): a, b == 3
SyntaxError: syntax error, unexpected ==, expecting '='

Should it still be avoided? :)
It is a pure function call. There are no side effects, just a clear and simple input stream and a clear and simple output stream.

I agree with your characterization. All except maybe the "I'd probably write a quick JS viewer that can collapse stack traces" part.

Here's the thing: I'm so minimalist that I'm only going to add frameworks and libraries as a last result, if you stuck a gun to my head. I'm going to resist as much as I possibly can.

I love writing code. And every line of code I write has to be compiled, deployed, is prone to bugs, has version dependencies, and so on. Many times it adds unnecessary complexity to the solution. I love using cool frameworks and libraries. Same goes for them.

The magic here is that the vast majority of whatever you're doing? It's already been done. Use O/S code that's ran successfully for ten, twenty years. Write your own code only as a last result. Micrososervices shouldn't have more than 100 lines of code.

Yes, it's a function. Maybe 3 or 4 closely-related functions. If it gets past that level of complexity, refactor.

(The only thing I'd add here is that you'll end up factoring out common code as you go along. That code needs to be put into a shared corporate library, which also should be small, along with shared types)

When done well, you end up with the realization that you've been doing it wrong all along. When done poorly, you just make an even bigger mess than you did doing it the old way.

Here's one small example. I was writing a production project for some folks a few years ago. We needed some way of showing system status.

The old way could have used all sorts of things: logging systems, server metric systems, and so on. I would have probably done some research, downloaded a library or framework, set it up along the happy path, and made some really awesome html dashboards.

Then the library would change, or the metrics would be different, or the configuration would need tweaking, etc.

I figured out what we really needed to see was time/date stamps on certain files. So I pipe ls to a web file and chron it. Five minutes later it's working. It'll be working ten years from now. If we need something more complicated? We'll add it. One tiny little bit at a time.

I'm okay with calling that a microservice, since it's infrastructure code that needs to be deployed and maintained as part of the app. But it's really only a line of BASH.

Some people would say that what I did was completely trivial. These are people who do not understand what the hell is going on. That was a win. If I could have 5 or 10 microservices like that which provide business value? I'm freaking way ahead of the value curve as opposed to a similar team who's still slogging through 7,000 lines of mostly boilerplate code that does basically the same thing.
The Only Way to Prevent Lone Wolf Attacks
> If you were Niantic, and expecting Pokemon Go to be roughly as popular as Ingress, would you bother going to the effort of adding a caching layer when you could not, and expend your efforts on the front end and content, and get the release out sooner?

Because Ingress wasn't reliable either, and this way Pokémon Go has an opinion of being playable mostly when everyone else is asleep. It's only this week that I can actually run it somewhat reliably after work...

Speaking of Ingress portals - there were not much more dynamic than Pokéstops are (given that you can drop "Pokéstop modules" on them, which affect all players). This was my complaint against Ingress too - while portal state should be redownloaded continuously, the visual/information data changes infrequently to never. The name, the photo. The stuff you actually need to have to display portal details. Similarly Pokéstops. That kind of data should absolutely be cached. It cannot be used for cheating, and caching it is like elementary engineering.
Stillwell’s book is pretty good. http://www.springer.com/us/book/9781441960528 https://amzn.com/144196052X (Unfortunately recent Springer books are printed on demand, and printing/binding quality can be iffy; in particular quality of books bought via Amazon seems to be quite poor.)
That is certainly true but I wonder if this effect is exaggerated by the methodology of this study.

If they simply count existing lines of code/SO questions and none of those ever get deleted, then inertia is bound to increase.

The more old lines of code/questions there are, the longer it takes for any new language to rise in the rankings, even if the new language is used for all new code.

But I don't know enough about the methodology of this study. Maybe they are doing something against this statistical incumbency effect.
Let's ask a rhetorical question: Who'd use this kind of information?

My answer: It's mostly search/listing apps. The biggest merit of tagging/parsing for now is that you can search the sentences who might possibly refer to some specific subway line. Toward this goal, you don't need an exact interpretation of each phrase. What you'd need is a high-level function that asks if "sentence X".refers_to("Blue Line") and the API should be designed for this kind of goals in mind.

I think the current premise that you can/should get a exact parse/tagging for a given text is kinda misleading, because an interpretation of natural language is fundamentally vague. IMO, we should go after the performance of these high-level tasks (e.g. searching or translation) rather than microscopic accuracy. It sucks that we wouldn't be able to parse the text once for all and cache the canonical representation for future use, and we'd always have to run the matching API or some sort. But I think it's kinda the nature of NLP.
I think after a certain amount of years you start realizing every new fad is just a rehash of some old ideas. (You ought to notice this as you get more experienced).
I'm thinking more of the public mental health victories. The reduction in stress would be MASSIVE.

Also, you can sleep in the car, which would greatly solve our sleep deprivation problem, which would boost productivity massively.

Commuting is the worst part of my day by a big margin. If I can get 2 hours of extra sleep instead, I'd be way more productive
Not only that, but surely it's better for the developers company too right? Sending the image every time uses data and resources from their side too. Caching images (like the Pokestop icons) on the users device will reduce all those resources and perhaps help them scale more efficiently?
Off-topic too but are all Mormons successful, or do we (the world-wide general public) just see them because they talk about being wealthy, successful and Mormon at the same time, and the evangelists give the impression too because they all wear well-cut suits?
I remember once at my old high school they had a digital version of the math textbook and a code since my school was too poor to buy physical books for everyone and they had to stay in class.

I forget what publisher but the book would never load in Apple's preview, I think maybe due to it having a password or DRM? So they're are still probably rare reasons to install Adobe Reader on a Mac.
Yup. The load usually starts to happen when kids leave school, and then the servers blow up when adults leave work. Until this week, the game literally stopped working for me every day at 17:00.
SPOT+OFFER+FOR+INTERNATIONAL+VOICE+AND+NON+VOICE+PROCESS+|+Chrisjobs
> The most important reason is that, when used correctly, it is already significantly safer than a person driving by themselves and it would therefore be morally reprehensible to delay release simply for fear of bad press or some mercantile calculation of legal liability.

I don't think this is the correct comparison. A car used correctly is safe. We have huge numbers of road accidents because most people are unable to reliably use a car correctly. The value of an 'autopilot' functionality is that it should be much better at using the car correctly in the real world than a human.

What matters is not how many accidents result when using autopilot 'correctly', but how many accidents result from using autopilot in the real world.

Also, because autopilot is primarily used on particular road profiles, it's not fair to compare accidents per autopilot mile directly with accidents per human driver mile. You need to adjust for the fact that autopilot is not used during more complex driving anyway.

I'd be very interested to know what the statistics are for those, since the recent press has given me a (potentially incorrect) impression that autopilot has lead to a relatively large number of serious accidents compared to the number of cars deployed.
House roof.
Glad someone posted about this. I feel the same. Feels very weird for your insta post to not have a single like.
Speech to Song Illusion
>reading anime

triggered
The problem with your idea was that it wasn't SOCIAL or VIRAL or could leverage SEO, like Jason likes his businesses ;)
I've found the opposite with Knockout, especially in complex apps that make use of many observable and subscriptions. Knockout used to be great for MVVM apps, but I feel it's quite dated compared to more modern approaches both in performance and architecture.
I have 12GB of tethering included in my £18/mo unlimited plan.
Can't say for sure, just the feeling I get. HN comments usually seem pre-dominantly pro or anti copyright depending on context (e.g. "big company fails to comply with GPL" would result in mainly pro copyright comments while "bittorrent site gets shut down" would mainly result in anti copyright ones).
A few (rambling) thoughts, as a long-time Clojure dev who's recently been focusing on Elixir.

The thing I like most about Elixir is the low friction between it and it's host language, Erlang. Erlang is a functional language right from the start, and the BEAM is designed to run a functional language, which means you never hit the weird FP-OO barrier that comes up so commonly in Clojure.

I really think the impedence mismatch between Clojure and the underlying Java implementation is a big, painful problem which is going mostly unacknowledged by the inner-core of the Clojure community. And that makes sense, because they're all (or mostly) "Java Guys" who are already sold on the Java ecosystem and are fine with there being a layer of spindly OO horror in their projects. They don't mind the Java layer poking through in unpleasant ways.

When I bring this up in a congregation of Clojurists I just get "shrug, welp, Clojure is a hosted language", not even an acknowledgement that there may be a problem worth discussing.

For the rest of us, the FP enthusiasts who don't have an emotional or professional attachment to Java, this sucks, because you can't do much in Clojure without also touching Java. As I said at the start of this ramble, Elixir/Erlang don't suffer from this problem, it's FP all the way down. Erlang idioms fit in with Elixir, and vice versa. No friction, no bullshit.

One final point: I think the Elixir team visibly care about ergonomics and good design, much more than the Clojure team seem to. Look at `mix` and compare it to `leiningen`, honestly. Look at Plug and Phoenix and compare to something like Luminus in Clojure-land. The difference is night-and-day. Look at how fast the `iex` repl boots up, or how fast the stop-compile-start workflow is in a Phoenix app. Even look at the content of the languages respective homepages (http://elixir-lang.org and http://clojure.org)
It would be horrible if we had an impossible to understand, but correct, proof of P = NP that gave no hint of how to actually construct polynomial algorithms for those problems.
"WinFsp is available under the AGPLv3 license. If you find the constraints of the AGPLv3 too onerous, a commercial license is also available. Please contact Bill Zissimopoulos for more details."

I hope they will soon switch to MIT.
It's like people only do these things because they can get paid. And that's just really sad.

I think it is just a writing device for tying the story to the real world and building character. Bloomberg does that quite often, "oh it's the type of person who drives a Toyota".
Then it is not only me having the issue at least. But yeah I think your posts only reaches your followers, not people based on hashtags.
Usually when I've seen digits indexed in a number it occurs from right to left (certainly in binary contexts--bit 0 is the least significant bit and bit 31 is the the most significant bit in a 32 bit integer). So, 123.digits[0] means the least significant digit, 3, whereas 123.digits[2] would give you 1, the most significant digit.
Throw the cash at your husband/wife/kids instead. Seriously.
I think the point is you can achieve the same result by just using a library.

There are potential benefits and downsides to services over libraries of course, but unless there are specific requirements that make a library unsuitable, all else equal I would rather just use a library.
At first that seems right. But there is a big BUT. Even Tesla has outsourced a lot of components. A lot of the components except the drivetrain is being outsourced. There are only 2 manufacturers for airbags in the world. There is only 1 good quality manufacturer in the world for the in car rearview mirror. There is only 1 manufacturer for the Homelink system with its best features developed by an Audi engineer I personally know. (All the Homelink systems in the premium cars are this only one system and I know the 2014 numbers sold to Tesla at that time.) The brake system in the Model X is from Bosch. And so on.

So Tesla is at the same level of outsourcing like every one else. So actually you can compare the numbers.
It's not either/or, if you're honest about the issue you can also argue scaling down (or up) some regulations.

That said, it's ridiculous to assume that if you do away with enforcing food safety and quality standards things will be peachy. That's not how free market works. You or your kids will likely die of poison. Because quite a lot of entrepreneurs are assholes and the only thing that stands between you and painful death are those regulations.

(Don't believe me? Do some shopping on eBay. Or better, go work for a week in a grocery store and see the shit they pull off while still staying within regulations. I'm a chatty person so I quickly make friends with people at stores, and a side benefit of that is that I get told when not to buy meat from them...)
He's talking about the speech recognition. Google's speech recognition is far ahead of the competition, and also slightly cheaper (except for Baidu's which is free, but good luck getting it to work).
As a beginner I found that learning a single keyboard shortcut - Ctrl+W - "expand the selection to the surrounding semantic unit" was a huge productivity boost (the opposite action is Shift+Ctrl+W).

Coupled with the setting "Settings→Editor→Smart Keys→Surround selection on typing quote or brace." it's amazing.
I assume (but don't know) that this is an attempt to avoid returning `nil` for empty collections: `[].inject(:+)` is `nil`, but `[].sum` is `0`.

Forcing the use of the additive identity every time, rather than starting with the first element of the collection, is a good way of setting people up to get the correct behaviour on empty collections, even if they don't test for that case.
I completely agree with you about programming VCRs. Despite being in my teenage years around their peak usage, I found it quite easy to do.

Xerox and fax machines, on the other hand, are the work of the devil.
Tesla: Elon Musk reveals latest 'masterplan'
I would also suggest, that in the case of the clothing, the artist is probably not credited. Zara are claiming it as their own original work so she can't even claim copyright.
No, it doesn't, I have no idea what wizardry is involved. All I'm saying is that if you assume some magic that can distinguish Bob from Steve, then those same techniques, whatever they are, can be used to distinguish Bob from his twin Todd.
Eight Steps to an Enterprise Data Model
I didn't say the harm was in choosing a proprietary standard over an open one. I said it was in choosing a proprietary standard.

I'll allow there were few alternatives at the time, for in-browser, run-many-places interactive content. You could have ginned something up in JS, Java, or distributed binaries for your target platforms.

But if you find yourself gazing into the abyss of "well, I've got to use a proprietary standard to do that", you can be virtually certain of the consequence you've noted here.

(Not that open standards last forever either, but the track record is vastly superior.)
The woman who really made Duchamp’s ‘Fountain’ – Baroness Freytag-Loringhoven
If you scroll down to the bottom, you can select the Desktop version of the website, which allows zooming on the iPhone.
"Hey, could you make your free thing even free-er so I can make money with it in your place?"
Would it be fair to say this outsourcing is similar regardless of company.

Perhaps if some of the larger manufactures have in house teams for things others outsource, it will be largely insignificant given their larger size.

Essentially it's not significant.
Mormons were persecuted and kept moving west to avoid persecution. As their new settlements became cities, people would get nervous again and push them out. Eventually, they simply packed up and moved west until they were outside of the Unites States (Utah was not a state at the time).

Utah became a state only after Mormons agreed to stop practicing polygamy.

For more info, look up Mormon Pioneers.