skysight-inc/HackerNews huggingface dataset:
Thanks!

It's hard to believe that Flexible Rails, and my talk about it at a RailsConf BOF, was almost a decade ago! Flex was controversial then, but it is beyond unsexy now :) (Full backstory here: https://leanpub.com/lean/read)

I have my cofounders, especially Scott Patten who has been there since the first commit, to thank for so much of how far we've come since then. And ironically, when you hook a single-page React app up to a Rails backend (which is what we do in the Leanpub storefront), what you get is (to me, anyway) reminiscent of the approach I was advocating in Flexible Rails...
Love that Apple keeps adding "features" like this. Not even SlimBatteryMonitor still works thanks to this update.

What a time to be alive, watching Apple choke on their own arrogance.

Their one shot at a big comeback is the iPhone 10th anniversary edition. If it is as much of a smash hit as Robert Scoble keeps heralding then Apple will be golden for another decade.
around here it is said to keep them off until the plane stops. almost noone does and the pilot aren't screaming at them, so there's that.
>You must be one of those managers who like to dabble in coding! I don't even know what you wanted to do. Is that C++? That part `lines[i] == "a"` is string comparison, right? And `len` is the amount of lines, right? I'll use a list instead.

It was more along the lines of pseudo-code (I couldn't be bothered to type the whole srcpy business or to look up C++ array length method).
Having used and trusted the "time remaining" calculation in Macs for years, it's very hard not to be suspicious of the timing here. A series of less-than-stellar reports of battery life in the new MacBook Pros, and then all of a sudden the indicator is inaccurate? Nope, not buying it.
Brings a new meaning to 'Blue Screen of Death'. ;-)
In that sense the hostility of cosmic space is a feature rather than a bug. If resources were plentiful and space travel was easy, we would constantly find ourselves in intergalactic wars and life would have been wiped out over and over again by resource seeking paperclippers and crystalline entities.
There's another line of thought that annihilation of one species is most likely by accident, like for example the demolition of a planet to make way for a hyperspace bypass.

Either way there is reason for fear.
just to remind you SWAT was supposed to be case by case. Now they send it by default to destroy your door.
I think I remember a Bleacher Report engineer talking about this on an Elixir podcast. They use it to power their push notifications and pride themselves in being consistently the fastest among their competitors.
Are you ready for change in B2B eCommerce
>Also, your code has a bug

Oops. You're right. Got spoiled by foreach loops lately :)
hit me up if you want help with this. -android dev.
I downvoted it because it added nothing to the conversation. The word "yet" by itself does not add anything meaningful, isn't funny, has no depth, does not provide any new information, is not a good conversation lead.... yeah, so that's why I downvoted it.
I don't think anyone was suggesting that you should reply to them. The complaints are about people who are unresponsive to direct questions from their co-workers that require timely responses (at least that's how I interpreted it).
>The business side couldn't figure out how to monetize an Android-based operating system. When they got a clue of how to monetize something, it didn't depend on the OS.

Any speculation on what this might be? User data?
"Well, the stuff will already have been identified in the picking stage."

Sure, but you take some semi-random object out of the basket and add it to the wrong shelf. Do that a few times and things are going to get much harder.

If we're honest, regardless there will be wrong classifications anyway - if it wasn't for laser scanners humans would make more mistakes as well and these are nowhere near human intelligence.
> It is already well established that the government has a right to [...] search through your documents

That's true, but if you hid the documents somewhere the government can't compel you to tell it where the documents are. If you wrote the documents in a secret language the government can't compel you to translate them.
Let's start a swarm programming trend
Show HN: My yearly tradition, family Christmas greeting coded in a day
> The judicial branch is wading through this question now (sometimes allowing compulsion, often not); it's not a question for Congress to answer, as appealing as it might be to them to help us redefine our Constitutional rights.

IANAL, but from what I recall, the entire point of the legislative branch is to create, remove, and re-define constitutional rights. The judicial affirms what they are, and the executive violates them. (Sorry, is that too on-the-nose?)
If I remember correctly, that was walked back to a claim that they'd hacked "RNC actors" but not the RNC themselves - and we already knew that because e-mails from Republicans were released fairly early on. This is a problem with a lot of the scary claims going around in general; they simply don't actually seem to be true.
A dyson swarm does not require any new technology to develop, only the constant churning out of satellites. They do not need to be technologically superior to us.

In any case, we would still be ants compared to them.
There was so much more to this hack then what is described in this article. Google for Foxit, Diginotar and Black Tulip for the complete report. It is interesting to read how the intruders navigated the separate networks and got full RDP access to the 8 CA generator servers in the secure room.
Depends on the situation.
What does that mean? Surely that is not the site owner's history?
Mesos was partially developed at Twitter, and was well on the way to powering most of their infrastructure when I left 3 years ago.
The time remaining indicator was really useful. It was more than accurate enough. It allowed me to see at a glance if I had enough charge to finish the movie, if it would last for the rest of the train ride, etc. If I saw that the battery wouldn't last as long as I had expected, closing Slack would fix it.

The problem with the time remaining indicator was that people started reporting the displayed time as actual run time. I read a couple of blog posts where people claimed that the battery life time of the Macbooks was reduced, based on the estimates they saw in the battery menu. They didn't actually time the run time of their Macbooks, presumably because that would take 5-10 hours, or longer if you want to repeat the measurement. So Apple is claiming that these people are wrong, the indicator was inaccurate, and they removed it.

Of course, the problem is that most likely battery life actually is lower. The battery of the new MacBook Pro is significantly smaller than the predecessor's, but the components don't use significantly less power. With the increasing popularity of Electron based apps, average power consumption is probably even increasing.

For the user, this is a huge loss. We've learned to live with the battery time estimate, and we know that the time remaining isn't absolute; just like we know that the remaining range displayed on the dashboard of most recent cars depends heavily on the driving style.

Fortunately, there are 3rd party tools that display the estimate Apple removed -- I downloaded Coconut Battery. But I wish we wouldn't have to rely on 3rd party tools for such basic functionality. Macs used to come with "batteries included".
Very interesting choice. I work on mission critical systems that aren't as mission critical as nuclear submarines. I don't think we'd ever consider anything other than an open source *nix.
How do you generate a random string?
I don't see the big deal with this.

Building a command system on top of a general purpose operating system seems like a reasonable cost-saving decision. It has attendant risks, but so do all of the alternatives.

Security issues are moot, I would have thought, since these systems are not connected to the internet, and the main threat is from people who have physical access to the hardware.
Printers caught in reboot loop after API change causes firmware fail
> equip the nuclear-propelled and nuclear-armed warship fleet with a Windows-based command system

We are all going to die...
Rio de Saúde: Saúde e estilo hidroginástica para dores e fortalecimento muscular
The teechan processor could steal your money because it's not secure.
"The solution" to what? The things you mentioned will not solve poverty or homelessness. They will not even make a dent in the problem. Do you think that talking to the homeless guy will warm his heart and brighten his whole day? Not as much as your heart gets warmed; not as much as your day gets brightened. The only problem you are really solving is your own guilt. And tomorrow, and in a year, and in ten years, there are going to be just as many poor and homeless people around, to provide you the same service. And shaming people on HN serves the same purpose.

If you want to help the poor, work harder and give the extra money you make to good charities. That is not going to solve the problem, either, but it will improve things more than anything else you could do in the same amount of time. The direct personal involvement you seek only serves to benefit you, at the expense of greater possible material improvements for them.

If that sounds inhuman, that's because our moral intuition, like so much of our instinct, does not scale. What is good for a single poor man is not necessarily best for poverty as a social problem.
If your function for the same input give you a different output, then you are in dysfunctional world.
Hence don't put random() in the middle of your supposed pure function.

Remove state

This is a functional version of the car race code:

from random import random

def move_cars(car_positions):
return map(lambda x: x + 1 if random() > 0.3 else x,
car_positions)
How do I run this? Opening raytracer.el and doing M-x eval-buffer doesn't seem to work. Guess my Emacs 24.3.1 is too old..

EDIT: Ah, I see. You need emacs-jit from the parent project.
This is pretty good as far as grand theories of the universe go, which in fine because we're talking philosophy, not science. However, I don't agree with life being an oppositional force to normal increasing entropy. It's probably more like eddies in a current, where life can only exist where free energy / negative entropy / information already exists and can be used.

You might be interested in a book I just added to my reading list: "What is life?" (Schrödinger, 1944) The wikipedia articles on it sound fascinating.
Looking at it as objectively as you can, what advantages does dynamic typing have over static typing?

The only potential candidate I can think of is 'more flexibility'.

However, undefined behaviour is not a desirable trait when designing programs, and languages with static types have ways to provide polymorphic functions without unhandled behaviour (such as pattern matching on function arguments).

Some may argue that dynamic languages are more readable, but there are languages with static types that are both concise and readable (Elm being a good example), so I wouldn't class that as a benefit.

Some may argue that the speed of prototyping a solution is a benefit, but the time saved putting together a prototype is often negated by the time spent debugging as the prototype matures.

So what advantages am I missing? There must be something that makes dynamic languages popular. What reasons are there to use a dynamically-typed language over a statically-typed one?
The article is 8 years old... thank god :)
I know why apple hasn't, but I'd kill for a $1500 macbook stuffed into a macbook pro case, and all of that spare space taken up by battery.

Give me a core-m, 8GB RAM, a high res display, and a massive battery.
I would have thought the same until stuxnet. Otners know the story better than I but if memory serves, the Iranian nuclear facilities had systems that were not connected to the internet compromised. No internet connection for sure reduces the risk, but for those looking to compromise a sub I don't think it's an insurmountable roadblock.
Let me give an example from calculus - a continuous function. How do you define the concept? The definiton of the concept changed quite a lot in the past 250 years or so. (Please take the following explanation with a grain of salt, I am not writing a thesis on the topic, just pointing out stuff.)

For Euler, continuous function was pretty much intuitive notion. He only composed functions with only occasional point discontinuities, so it wasn't a big deal for him to even not have a proper definition.

Then people like Bolzano and Dirichlet came along and realized they need a better definition, because there can be some really weird cases. So they formalized the continuity with limits (which is typical way how to define it in basic calculus).

Later yet, people understood better what it means to be a real number by looking at notions such as countability and measurability. While this doesn't affect continuity itself, it does affect understanding of what is a real fuction.

Then came more abstraction, to metric spaces and eventually topological spaces, which redefined "continuous function" yet again as a morphism between topological spaces.

Another shift in thinking about continuity happened when theory of distributions was invented. This actually completely reverses the intuition - instead of properly definining reals and then on top of real function define what it means to be continuous, you define the "function" itself in an entirely different way, in which the continuity becomes somewhat irrelevant.

Finally, modern mathematics is quite obsessed with category theory and various ways to make everything into some algebra. In a way, we care less what reals really are, only what we can do with them (or their sets).

So I think to understand the intuitive relation of all these different definitions, you need to understand a little bit of history.
This blog post is 2008, when the good UK guys deployed a custom made Windows 2000/XP, very UNlike "news".

The news article on Popular Mechanics and the actual original Guardian article:
https://www.theguardian.com/technology/2016/jan/16/trident-o...

are January 2016, and confirm that they are still running that custom XP.
Right, but my point is that if you have physical access, then the security holes in Windows XP, as compared to more modern iterations of Windows, aren't so relevant. It's not like the sub is going to be compromised via a bug in IE 6.

I also sort of suspect (without making any pretence of knowing what I'm talking about) that it's futile to try to make the computer system itself invulnerable to attack, and that human factors are likely to have a far greater influence on the overall security of the system. After all, Stuxnet was propagated via flash drives, and no-one should be sticking a random flash drive in a military submarine's computer systems.
I'm using Battery Monitor (http://www.rockysandstudio.com/index.html#freeapps) and it works great.

Of course, it would've been better if I didn't have to install a third-party app and I had one less icon in my menu bar, but whatever.
I was meaning to ask you about that "here" from your original context. Because I suspect your "somewhere else" to be out of sight and out of mind.
Yeah, it's called hiring a law firm.
What is Kubernetes?
Tell HN: Merry Christmas
I wish you all a Merry Christmas!
NPM's new search algorithm is still horrible
HackMyFortress V3.3: H4CK1N6 CHR157M45 – Hacking Challenge – 30 000$ REWARD
The myth of the eight-hour sleep (2012)
Ask HN: How to build a personal landing page?
Okay, so I got a domain with my personal name (http://korbinian-michl.de/) about two years ago. Since then I linked a mostly empty Tumblr page to it, which says: Hi. This guy does things on- and offline.

Now I want a simple landing page. Some text what I am doing, some photos, links to my social media stuff and that. But I need help. How to do it? I never "build" website outside the wordpress.com and tumblr universe. Any help is appreciated.
I hope we never get to that point but I have a feeling that the Russian nuclear arsenal is similar to their tanks at the start of Barbarossa: many legacy or barely functional ones.

Otherwise I don't see how they would be able to adequately maintain such a huge stockpile with a GDP equal to the Spanish one.
I couldn't believe it when HRC made that 'deplorables' comment. Although (very) appropriate for some of Trump's supporters, it was a great way to alienate people and to guarantee they wouldnt vote for her. A real WTF moment.
Be 'very afraid' about globalization's next phase
Well this seems more due to the USB-C to rule them all paradigm that will actually deploy in every PC as well very soon.

People complained continually that Apple had gone USB/lightning/Thunderbolt instead of standard USB-C. Now they implement the standard and people complain that the standard is a clusterfuck...

This whole ranting start to look a bit unfair.
I would have expected qnx or vxworks rather than any open source UNIX personally.
My english is usually ok, but now I feel like it was when I tried to read native Sheakspeare. Can someone please rephrase that?
Ah, damnit. Amazon affiliate links. Accidentally clicking one of these will mean any purchases you make on Amazon over the next 24 hours or so will be visible to the author, and also give them a small cut of the sale. Potentially up to 90 days in the future for that specific item. For example, I run Affiliate links and I get a commission on sales of even of things unrelated to the link I post, and I can see everything that's purchased. I've had all kinds of totally unrelated things get me a commission: Condoms, feminine hygiene products, self-help books. Things most people would consider very personal.
I don't recall any *nix OS's having automount and autorun enabled by default?

What I'm trying to say is, physical access does not necessarily mean full physical access, and when the virus has to spread through some storage medium connected to e.g. USB the underlying OS certainly matters.

I mean, they probably autorun that for the subs, but I think its indicative of the design philosophy behind most MS products. "Made for those who don't need full control, with politics prioritized over security", because what security-minded programmer would ever enable that by default?

Edit: inserted middle paragraph + fixed typo
I've been having the same problem with the Polish market. Luckily I found their Reddit alternative—Wykop—and lots of people are on there.

The easiest way would be asking a local webmaster/SEO expert.
I think the main problem is about the way govt & medicine requires system, instead of building something with some precises requirements, they mainly want something that just "works". Prepared statements have been around for a long time but main developments groups that are liked by governments still base their codes on old habits. In france, in the PACA region we have a centralized network that have been built last year by the same team as always. Not only the frontend is completely outdated (not even respecting HTML3 rules), the backend is rigged with bugs and flaws and the SQL database and the LDAP are pretty much completely open to people with a bit more skills that the average professor or student.
> Of course, the problem is that most likely battery life actually is lower. The battery of the new MacBook Pro is significantly smaller than the predecessor's, but the components don't use significantly less power

Exactly. Apple has always designed their devices to a battery life target. But as "wireless web" and "movie playback" both depend on use cases that get more and more optimized as Apple improve their software, they get more and more disconnected from the reality of pro users. How about a "editing a Swift Playground" battery life estimation? Or Photoshop? What Pro user spends all their day browsing the web and watching movies? Those make sense for the regular MacBook, not the Pro.
Try Crystal, her younger sister. Just as beautiful but more nerdy and fast thinking.
I'm pretty sure if you stick to apple hardware, things just work. So in a sense their technology is simple for those who stay in the ecosystem.

But don't dare buy a low-cost adapter from eBay or be damned for 10 generation.

So yeah it's a closed environment but is it so far worst than the jungle outside?
I wish people would stop making this distinction between OO and FP like you can only use one or the other

In imperative languages you typically have to use objects to create functors and other FP primitives

If you reading this as a "OO Programmer" you can benefit your "OO" style code with some "FP" and vice versa

The question I would really ask is have you stopped learning?
Don't overlook the quiet voices and contributions
Skype-open-source: Call to donate
This is very important. I think your proposition is totally valid. There is a Soviet/Russian program we can use as a sort of measuring stick to determine what kind of state their nuclear stockpile is in: The Russian miniature nuclear reactors powering lighthouses and navigation beacons. [0] Turns out, almost all of these things are in total disrepair, and many of these lighthouses and navigation beacons have been totally lost and left neglected. There's actually a story out there about three hunters who used the warmth of one of these Strontium cores as a heat source, of course suffering severe radiation poisoning. [1]

[0] http://englishrussia.com/2009/01/06/abandoned-russian-polar-...

[1] http://bellona.org/news/nuclear-issues/radioactive-waste-and...
check these open articles from The VLDB Journal

http://link.springer.com/search?query=&search-within=Journal...
Imagine that you are an alien. Relativity is strange thing, today you see small tribe with toy nuclear weapons, but then you turn your engines on, and tomorrow it is powerful intergalactic race. It is reasonable to take a cure before a disease makes it hard.
I don't know why the age of the article is reducing your fear. If anything they probably do more and more this.
pmset -g batt

Bonus points: easy to add in tmux-powerline running fullscreen in iTerm2
Very much more like a safe. "Extension of the mind" feels like nerd babble.

If you insist on this line of thought there is actually a close analogue that has been around for centuries: the diary.

People have been writing down their private, even intimate thoughts in diaries, and nobody is surprised that diaries can be seized and used as evidence in a court of law.
Static types limit the expressivity of your code to what the type system is able to prove. Depending on what you're trying to do, you can spend more time arguing with the type system than getting things done.

This really starts happening with a vengeance when you do increasingly lispy things, like creating dsls that move the language closer to your problem domain by writing programs that write programs.

Consider e.g. the way activerecord introspects the database schema to enrich your model declarations without further work from you.

Now there are ways to get similar effects in statically typed systems, but it's much more work, particularly if the dynamism comes from the execution environment (rather than compilation).
What I'm more frightful of, is not knowingly possessing this data but having it planted on me, e.g. a plaintext crypto header with random data, stenographically encoded into a video I'm streaming, stored in my browser cache, and this being discovered when the TSA-equivalent of a country I'm visiting surreptiously scans my HDD (because unless they hide it from me I'd much rather refuse, sit in a booth with angry men for 24 hours and get sent back to my home country).

If not decrypting what looks like random bytes (because that's what good encryption looks like) becomes punishable in a country, it's no longer safe to visit that country with any digital data carriers.
So C has generics?