skysight-inc/HackerNews huggingface dataset:
> There are absolutely frameworks built to be perfectly OK to have all of their constituent parts used like libraries.

You certainly can use each individual part of Rails without having to bring in the rest of Rails. I bring in ActiveSupport all the time on non-Rails projects. For ORM I prefer Sequel, curious why solnik didn't mention Sequel, the creator of DataMapper even said that Sequel was everything he wanted DataMapper to be and I can't help but think that played a big role in the decision to not continue developing it.

You can use Sequel in Rails, I personally prefer ActiveRecord as I'm not aware of a Form Helper gem that works with Sequel, though to be honest I never really looked. Way more people use AR than Sequel, so Stack Overflow debugging goes much smoother.

I'm not saying he's wrong for leaving the Ruby / Rails ecosystem. I'm saying his stated reasons are inconsistent with his course of action. I'm fine with his real reasons, I just wish he wouldn't frame it as a slight to Rails.
Whoops! Should be fixed now, thanks.
Better Way of Structuring React, Redux Apps
Swift and Python.
Magenta Is Google's New Project to Make Art with Artificial Intelligence
And don't think deflation hasn't been happening already in the U.S. The only difference is, unlike Japan, unscrupulous U.S. food companies have been cutting ingredient quality and content size, rather than raising price for the past 10 years.

You seem to have gotten confused between inflation and deflation. With deflation, prices decrease, not increase.
The conversion is most often done through ISK -> PLEX -> 19.95€ on the basis of prices on the in-game markets trading PLEX [1][2]. However, there is no good and legal (?) way of actually converting ISK directly to real money. You can make estimates through the figures for the purpose of creating a sense of scale (especially used in EVE-related articles about battles and corps), but that doesn't mean that it's actually worth $45,000 of withdraw-able cash.

[1]: https://eve-central.com/home/quicklook.html?typeid=29668

[2]: https://secure.eveonline.com/plex/
Well, hundreds is not the same as thousands ;-)

And most important, a call is not the same as the implementation of the called function, my point to begin with, please see my comment in the context of yours.
The visualizer is really nice, the examples could use some work though.

Selection Sort, for example, makes the algorithm look extremely (impossibly) good at first glance - O(n) - because it's not showing the majority of the steps.

Instead of

for (var j = i + 1; j < D.length; j++) {
if (D[j] < D[minJ]) {
tracer._select(j);
minJ = j;
tracer._deselect(j);
}
}

it has to be

for (var j = i + 1; j < D.length; j++) {
tracer._select(j);
if (D[j] < D[minJ]) {
minJ = j;
}
tracer._deselect(j);
}

Bubble Sort has the same problem, as do Quicksort and Mergesort.

Normally I wouldn't mind, but these examples are intended for beginners, and it might give them a false sense of time complexity for these basic algorithms.
Because what is implied by those terms changes over time, and minor changes can have major impacts on accessibility by older clients.
I don't mean the fabric. I mean all the chemicals applied to it. I have a Vietnamese-owned minimart down the street and whenever I walk past it during opening hours, it smells like a chemicals factory.
These countries are all showing syptoms of first-world economy disease; low-birth rate, government budget deficit, high healthcare expenditure, bureaucracy

There are two other major problems in parts of the U.S. and Europe (in particular) that're underrated: 1. insane land-use control laws that make it illegal to build reasonably price housing (see Matt Yglesias's The Rent is Too Damn High for more: http://www.amazon.com/TheRent-Too-Damn-High-Matters-ebook/dp...) and 2. transfer payments to older people that were originally conceived and executed when the number of workers to retirees was much different than it is now.

The first is important because it impedes family formation and innovation. The second is important because it makes not having children easier, because other people's children will be forced to support you through their contribution to transfer payment programs. Yet neither issue gets much play in the press.
Is that not a fair description of, say, some of the comments here?
The Kik case was different. In that case, Kik was a) a word which had no other usage outside the startup that it represents it/no historical prior use, and b) the existing npm package held by another developer was an exact name match.
I understand that. The reality is that it almost never gets below the top quintile ... so if I see it getting near 50, then it's very likely going to get to be a zero condition.
Although it's obvious that the DAO is a pretty crazy experiment, I haven't read anything that completely convinces me it's going to fall apart. I'm aware that it's daring, that it's got lots of potential vulnerabilities. I'm inclined, for the mean time, to just sit back and admire the enthusiasm.
But would that cause cache fails? Wouldn't that just increase the time needed to access data?
It's actually sort of unclear what the status is. The problem is that "Gasland" has muddied the water, so you spend so much time vetting sources that it's slow going.

There is a movie from .. 1940? titled "Tulsa" where Robert Preston's character "invents" fracking - a column of water and dynamite. It got safer :)

I'm sure there are incidents. But it's not like an incident goes without recourse. I think there's one case where a formation in Wyoming is physically entangled with the water table. That operation should never have been approved ( and yes, these things have to be approved ). After a decade of reading, that's the only remotely credible one I know of. Generally, water is at, say 400 feet and oil/gas/shale is at 10,000 feet.

Even then, while it's not easy to clean it up, it's doable.

J. Larry Nichols is a founder of and on the board of Devon Energy, one of the companies that pioneered fracking for shale. He's on record saying "show me one case where fracking caused environmental damage."

But, of course, he's not considered reliable by people interested in environmentalism, usually. And I haven't found a demonstration (other than the one) that proves him wrong yet. I'm a lot more concerned that oil in general will get the USA v. RJR treatment which sets off some sort of scarcity cascade that could destabilize the Third World.

IMO, gas at the pump ougtha be $10 a gallon and $5 of that should go to alts research but I doubt that's possible.

IMO, and this is also just IMO, the whole thing is a proxy for AGW fear because nat. gas is a bridge technology while we wait for Elon Musk to save us from fossil fuels. But that's psychlogizing, really.

Fracking is a pretty high-energy activity. But most of the fuss seems at least to be mostly confirmation bias by both sides.
Unfollow wasn't an option?
Can You Carbo-Load Your Way to Good Health?
I'm looking forward to the Volkswagon version, complete with spanking paddles. (And I shouldn't be surprised anymore, but, these are sold on Amazon.)
But, AFAICT, the best autonomous racecars (scale or full size) are still far from beating a human.

What kind of race car are the humans driving? Does it have electronic stability control? Anti-lock breaks? Power steering? Automatic transmission? These are just a few of the many innovations that make it easier for a human to drive more easily at a high level of performance. The line between autonomous and human-operated cars is blurry.
It seems like the dividing line should be whether the American public can do something productive with the information, i.e. if the public knowing it is in the public interest. So knowing that the government has nuclear weapons and what their effects are would clearly be in the public interest, but what is Joe Voter or Jane Civil Engineer going to do with knowledge of how to enrich uranium?

The following might be a good dichotomy. Suppose you learn the allies have broken the Enigma machine during WWII. Disclosing this is not in the public interest, because the public knows the allies would have a program to break Nazi cryptography and the fact that it succeeded doesn't allow the public to do anything differently, but would allow the Nazis to switch to some other cryptography.

But now suppose that the NSA breaks AES or RSA today. That would be completely different because we use it. The American people would need to stop using the broken cryptography and come up with something better (or use longer keys), and the government keeping it a secret that it's broken is the thing putting the American economy and American lives at risk.

The obvious problem with all of this is that the edges are fuzzy. There are cases in the middle where there is a certain amount of public interest and a certain amount of harm and balancing them is a subjective exercise. But if there was ever a case for a jury to be useful for something, this is it. Making factual determinations like that. Because then you would have to be sure enough in your correctness to be willing to throw yourself on the mercy of 12 ordinary Americans.

The problem is the law doesn't allow that. There is no public interest defense. You're not allowed to make that argument to the jury. So what are you supposed to do, seek asylum in Russia?
> But the variables which receive command line overrides should be set apart in some way for that purpose.

Like by calling them "config" variables?
If true, is this professional? No. However, OJ Simpson wasn't found guilty, using a technicality to escape justice. So while the legal system is helpful and i wouldn't consider it a total piece of shit, I think if I built a 1 billion dollar company and someone asked for $500M, because I forgot to file some paperwork due to the quickie shotgun starter-marriage we rushed into I would probably flip the fuck out.

Also, it's like in the social network where "Mark" says:

You know, you really don't need a forensics team to get to the bottom of this. If you guys were the inventors of Facebook, you'd have invented Facebook.

edit: I responded to SA from my account* and articulated why I thought he made a mistake. You created a novelty/new account called 's[am]alt[man]wrong'. Your point isn't that bad, Jeremy may deserve something (i'm not an insider on the story) but this is cowardly behavior, and downright harmful to your case due to how chldish this is. I respect Sam for taking a personal stance on this which ultimately could/might have slightly damaged him personally. So, in essence this was the point I was making here.

It isn't about the issue, but how it was handled. Coming out of the woodwork in the final hours of a massive deal to demand payment is shady and doesn't seem to be handled in a way that was particularly reasonable. Just as anonymously asserting insider info on here which is unverifiable because you are choosing to hide your identity...is also less than forthcoming. You and Jeremy may be correct, but I would allege that regardless how Sam and Kyle handled themselves, the burden of being reasonable rests on detractors, I mean Kyle doesn't need to prove he added a ton of value to Cruise because he fucking started Cruise and built the team that ended up building the product that was Cruise and turned into the company that was Cruise which then put together the sale of the company(Cruise) to GM.

* which is like >800 days old and pretty fucking tied to my real identity. I mean, there is a goddamn keybase public key attached to it...
In essence the modals are bound to the state of a checkbox. For this technique to work with escape The question thus becomes "Can you uncheck a checkbox with escape, without JavaScript"

It's not a completely unreasonable thing to ask for.

Seems you can get close with the accesskey attribute

https://developer.mozilla.org/en-US/docs/Web/HTML/Global_att...

<input type="checkbox" accesskey="q">

It's not very standardized though, you need qualifiers and escape on its own doesn't seem to be available,

I don't know how it interacts with display:none .Ideally accesskey does not apply to display:none items so you could accesskey the same key for many modal close buttons and only have the visible one activate.
Hello all, as it's a show HN post it's kind of implied, but I am the author of the project. Please feel free to leave feedback or ask questions here. Thanks so much for checking out the project, be sure to share it on your social networks with your friends with an interest in education!
Something something right tool for the job. Totally agree.

Rails has its place. If it's all you know, everything looks like a rails app...
Re: Java environment.

Because Java is a huge chunk of the job market (at least in the Sacramento area), not because it's a "language of choice" . Actually, the JVM is a nice thing, even if the Java language is primitive and verbose.

Too bad the jFoo alternate language implementations haven't got more traction yet. (jRuby, Jython, Nashorn, et al)
Ask HN: General hosted solution for server logs/monitoring/analytics/errors?
I've been trying to find a good hosted general solution for my company's server logs. Either my google-fu is failing me, or this is a surprisingly untapped market, or both.

Some features I'm looking for:

- Easily pipe arbitrary logs into the service

- Analyze common log formats, make them searchable/create analytics out of them

- Bonus points for nginx log analytics

- Traffic/hit rates/error rates visualizations over long periods of time.

- Big bonus points for sentry-like error

Here's some apps I tried:

- Cloudwatch (https://aws.amazon.com/cloudwatch/). I'm on an AWS stack but I really not a fan of it.

- Papertrail (https://papertrailapp.com/). Great for system logs but not much else.

- Currently trying Server Density
(https://www.serverdensity.com/). Liking it a lot, but seems to be very centered around monitoring rather than general-purpose.

- Huge fan of Sentry (https://getsentry.com/welcome/). Will likely be using it regardless.

- Piwik supports log analytics (https://piwik.org/log-analytics/) but the hosted version is very pricy

What I'm basically looking for is a hosted version of papertrail+sentry+SD+piwik. Does this really not exist or am I completely missing something?
Anecdotally, I'd say that I've experienced this because those memories carry lots of guilt. Over time, you lose the guilt because you keep trying to forget the details.
Zero to Oculus Rift In… Too Damn Long
Start using a simpler stack then. There is no language out there that can prevent creeping complexity.
I see some of Rails' problems — particularly around performance — as symptoms of Ruby's design. Ruby isn't all that performant to begin with, which coupled with the metaprogramming and magic the language encourages can result in some very slow applications. Rails' issues around performance are also a direct result of Ruby's lack of true concurrency caused by the GIL.

In terms of maintainability, I've found that unless you're one of Ruby's "gurus" or know all the best practices around the language, it's far too easy for the average developer to write code that will be difficult to maintain long-term.
Decades hence, the ensuing disasters will be considered inevitable. Of course there would have been bad science. Of course there would have been shoddy construction. Of course the scale of the project would have been matched only by the scale of corruption. Of course most stakeholders' interests would have been ignored. Of course it would have been more practical for people to move away from the desert than for the desert to be somehow reincarnated as habitable.

Looking forward, however, one can almost justify some measure of hope.
It likely can't - videos are enforced as tap-to-play on iPhones, no matter what.

Which is good in most ways, but also means that people are converting videos into hugely bandwidth-wasting GIFs instead. I'd rather videos be "tap for sound" and autoplay at this point.
Oh, God, you're right. Sounds like my daughter on Facebook :-)

"That David is such an asshole. I never want to see him again..."

(with apologies to DHH, whom I find amusing, even if he is a bit "coarse")
We switched from Zendesk to Helpscout, at that time because their documentation portal feature didn't fit what we wanted (markdown edition and other things I forgot). The migration has been painless (all zendesk issues are imported to helpscout).

Apart from the documentation system, I personally prefer their UI (it feels more "modern"), the fact that a support conversation looks exactly like a very classic email conversation to your customers (no issue number in the email's subject, no specific signature or structure in the content etc), and Helpscout's team have always been helpful and nice so far. The API is pretty complete as well. We're using it only for support conversations nowadays, so I can't comment on the knowledge base features etc.
His beef should in general be with OO in ruby. Rails is just a consequence of that.
I'm not going to pretend it's better than Rails, but I implement most of my projects as Sinatra psuedo-frameworks, with Sequel for the ORM. Sequel is a solid ORM that has a reputation of being stable and reliable. Sinatra is just simple (vs easy sometimes) and I like the way it integrates routing directly. It's good enough to power Neocities anyways, and I've baked in some of the niceties you'd expect from a larger framework (such as testing).
I change the SSH port to stop the damn logs filling up so fast, for my own logins I have a key. If you're using passworded SSH on the internet you're just asking for trouble.
Probably because Twitter permissions granularity is very sparse. Last time I checked it was just read the whole account or read/write the whole account.

Thus, to create private lists on your account they need the permission to write.
Very good point. They are very comparable. By far the biggest difference is degree of tax and regulation. Texas wins. Why doesn't California simply adopt sound Texas economics?
The crew, though, is paid more than they would be earning at home - that's why many sign up for multiple contracts in a row.

Also, if you can make friends with some crew, it's a blast.
That's not really a unit test and not really a good idea to do it this way. You'll still have to keep model in sync with schema you'll just know when they diverge.
I'm sure I'm wrong, but the fact that you keep using the word "simple" makes me feel that you skimmed over the article. The author disagrees that Rails makes things "simple," and argues that it attempts to mask complexity by making things easy/convenient.
Agree though by allowing JS you expose a larger attack surface than just HTML and CSS. If all you need is simple effects like these you can have a site that works even for people who don't enable JS.
Forbes asking ad blocker users to log in rather than turning them away?
Navigated to a Forbes article recently and was about to exit since their Ad-wall detects uBlock when I noticed that the usual message had changed: https://i.imgur.com/fHawyXE.png

Logging in with a Google account did permit me to access the page [1]. Logging out and navigating back to the page brought up the "Sign in" prompt most of the time.

[1] http://www.forbes.com/sites/briansolomon/2015/09/02/father-and-son-become-billionaires-with-tanium-the-worlds-hottest-cybersecurity-startup/
Texttop, an interactive X Linux desktop rendered to TTY and streamed over SSH
Because unlike Texas, California still paints their grass green to hide the truth.
Nicely done.

A nice perk is that in many browsers input tags don't lose their state when you hit ctrl+R.
I made a small implementation of the Busy Beaver game in React a while ago: http://rajk.me/static/busybeaver.html.
(Click the rules to toggle them).

Start with 1-state, and 2-state is a decent challenge. Not sure if 3-state is possible by hand.
Point taken : o )

I wrote with Western medicine in mind as "traditional", in the sense that it is standard practice, here in the United States. I can see how that's ambiguous.
Yes; in the sense of how he used technology to connect with the medical professionals who ultimately helped him. I think he used Google Alerts, or something similar.
That DHH might even believe with a straight face enough of that essay to write its contents like an English major who just discovered the adjective doesn't really change that the universe is continuing to shrink the place in which his viewpoint can make sense. And, with it, goes Ruby's relevance, because of the heavy weight of Rails on the Ruby world as a whole.
> What I don't understand is why people feel the need to proclaim that they're leaving xyz?

Often, such proclamations are not noteworthy. However, if the speaker has been a long time user of xyz and a contributor to it, then the proclamation is noteworthy.
Pretty cool that they have the source code up on github: https://github.com/AutoRally/autorally

Looks like it's mostly C++, Python, and Arduino.

I wish I could find where the power slide learning algorithm is, but browsing around I'm not sure where that portion is in the project.
SO has very specific goals and being interesting or a forum for discussion is not one of them. While I do think they are occasionally to strict I don't think is is one such case, I would have voted to close.
Secondly, avoiding mutable state is a general, good advice,
which you can apply in your Ruby code. Ditching global state
and isolating it when you can’t avoid is also a really good
general advice.

As an Erlang programmer I agree with the general sentiment here, but wouldn't doing this in Ruby really lean hard on one of the pathologically nasty Ruby runtime issues? Which is that it doesn't release memory back to the system?

When every new operation on a data-structure starts by producing a copy of the previous version it seems like you'd really want a runtime which is efficient and intelligent about how it manages memory?

Unless that idiosyncrasy of Ruby has changed since I last used it several years ago. In which case. Nevermind. :-)
Physics Makes Aging Inevitable–A Response to Comments
https://news.ycombinator.com/item?id=11744221
The reality is that many are not interested in waiting and adopt ZFS permanently. This was my experience ~6 years ago. Had btrfs worked better then, I would probably have been a btrfs contributor today.

Of what I know now about the internals of each, I am glad that I went with ZFS. The decisions in ZFS are more robust in terms of reliability and performance. e.g. The merkle tree, the use of 256-but checksums, mandatory ditto blocks, the ARC algorithm, the intent log, default ditto blocks, an variable height, indirect block tree, etcetera.
Of course; under the hood it's just Linux. Though Google has replaced most of the userspace drivers and stuff are still the same good old Linux ones.
Not surprisingly, your attempt at mind-reading wasn't a success.
ActiveRecord is terrible for any kind of complex database work. If your data models are simple or you decide to shoehorn your entire data model into an "object" representation then ActiveRecord will allow you to work, but if you need to run queries like "return every product that represents less than 2% of total revenue for the last year excluding products purchased by our top 10 most profitable clients" ActiveRecord is going to give you a very inefficient solution where you'll also end up writing Ruby code to accomplish what the database is already capable of.
We're very happy with Helpscout. Like the other poster mentioned, their API is pretty thorough, and the interface does a good job of getting out of your way.

We really like the documentation features as well; again, very thorough.

The one thing we really wish was there is custom field support on customer records, but Helpscout does workaround this by letting you set up a webhook it'll hit to present more information inline.