skysight-inc/HackerNews huggingface dataset:
Sketch actually arrived in a period when the vector / pixel drawing tool space was pretty filled up by giants like illustrator and photoshop. They still hold the "best software in da place" title. But, Sketch found its niche by offering a mixed, self-contained solution. The point is, first, distinction: while Adobe brought real innovation, Sketch somewhat aggregated functionality. Today, there are new fields opening (AI suffices to keep the thread open for ages). So it's actually safe to say that there will be a) space for primary innovation applications and b) space for aggregators, re-configurators of selected functionality looking for niche functionality (very much like Coda, today totally disrupted, did with web development tools ~ 5 years ago). Just look at Sublime and Atom. Even Coda.. wasn't it Vim with some fancy ftp plugin and tree plugin?
increasing hard disk space on demand

Note that ext4 on LVM can do this as well, you just need to plan for it in advance. All of my systems are configured as fs-on-lvm, even the single-disk ones. I've found it's just less hassle: I can do all storage migration or storage expansion without ever taking the machine offline.
No, the word you are looking for is fraud.
Oh come on people. That would be an excellent pun if the word "gnu" followed usual English pronunciation.
Bought the recommended Orion XT8 Dobsonian a year ago for my 10 year old daughter (ok, and for myself!). It is super easy to setup (minutes), captures plenty of light and has been a joy to view through. I have observed the moon, Saturn, Jupiter and its moons and several Messier objects - even tracked a few satellites as they transited overhead.
OK, what if you want to generate the SQL dynamically with attributes? connection.execute doesn't do sanitization for you by itself (though you can call a private method to do that). If the generation is more complicated than that, you also have to have code to concatenate together strings of SQL code. Not because Rails doesn't have a SQL generation library, just because it's tightly coupled to ActiveRecord and fuck you and the horse you rode in on if that isn't good enough for you.
> However I may feel about the bomb having been used, I don't doubt it saved more lives than it took.

I won't apologize for being rude: fuck you. What judgmental and self-centered view. Views like that are reason for americans being hated worldwide.

Would it be the same if a nuke dropped in Chicago, or Las Vegas?
Well not really. Estimates for the cost of invading Japan were approx 1m US casualties, 5m Japanese. None of the above issues produce anything like that.
Well played, sir/ma'am. You make an excellent point.
I'm a full-time Rails developer, and I've run into the exact pains that he's talking about. By and large, I've fought with ridiculous things as projects grew, and run into extremely 'magical' bugs. It's frustrating as hell. But I've found the way through them is actually to lean into ActiveRecord, not away from it.

When it really boils down to it, ActiveRecord is a perfect pattern to deal with the "submit a form, validate it, run some logic, return the results" round-trip that's the core experience of web applications. Do you have validated data you need to do really complex logic on? Sweet. Send it on over to some PORO's. Have a complex query that isn't easy to cache? Nice! ActiveRecord will get out of your way. What's really hard is figuring out how to frame the problem in a way that makes Rails a great solution for it. This part is really really hard, I think in a lot of ways akin to art (and by 'art' I don't mean some deeper honor or aesthetic - just that there's no guidance), since the principles and patterns actually come from your domain and not somewhere else. And the developers I know who really hate the way Rails does something, especially ActiveRecord, are huge on applying patterns.

When I've taken the time to think through how to structure, really deeply, the applications are a pleasure to change and modify even when I come back much later. And for me, the proof is in the pudding: those aforementioned other developers who hate ActiveRecord don't complain! They'll see it, give a small 'huh,' then go do what they need to do just fine. But when I don't, they turn into the twisted spaghetti nightmares. I see a massive sub-current of dissatisfaction with Rails, and I think the reason for this is just a subtle but markedly different priority of thought. I can't articulate it yet, I just know what it looks like when I see it.

Anyway, I love Rails as it is now. Soon I hope I can deploy a single application across web and mobile platforms natively, along with supporting them all, as one guy. That's insane. Really like this blog post because I've got some things I'd like to be able to do with the ActiveRecord API, but I'm not really sure how. I don't know why the thought never occurred to me to just ask!
Indeed and OP is mixing up language implementation and standard libs with a framework.
I always found it interesting that only one person died in each "Demon Core" incident, despite the burst of radiation being so intense that it caused the blue flash. Mind you, many of the survivors suffered health problems that were likely caused by the incidents later in life: http://www.orau.org/ptp/pdf/accidentsurvivorslanl.pdf
For caching issues, you could replace the loops by more functional code: write one loop to generate an array of values, and sum them to payoff_sum in a separate loop.

for (int i=0; i<num_sims; i++) {
gauss_bm[i] = gaussian_box_muller();
}
for (int i=0; i<num_sims; i++) {
S_cur[i] = S_adjust * exp(sqrt(v*v*T)*gauss_bm[i]);
}
for (int i=0; i<num_sims; i++) {
payoff[i] += std::max(S_cur[i] - K, 0.0);
}
for (int i=0; i<num_sims; i++) {
payoff_sum += payoff[i];
}

To make this i7-specific, you have to make sure the arrays are mapped to just the right cache lines, so that writing to an array evicts the dat from the array being read from from the cache (hm, maybe that requires combining some of those loops; what does the level 1 cache of these CPUs look like?)

Next step: DRY. Move the for (int i=0; i<num_sims; i++) loop into a function taking a lambda for the loop body. That hides the ugliness of the above code. Here, it probably is fairly easy to accidentally do some extra copying of data.

Next: parallelism. You shouldn't have individual threads process contiguous sections of the arrays; do

for (int i=threadNo; i<num_sims; i+= numThreads) {

instead. And of course, you can multi-thread by having the 4 for loops run in parallel. That, I think, would be the big gain, as it would introduce quite a few data dependencies between threads. It also is in the spirit of the question, I think.

It has nothing to do with the i7, but I would also work on worrying about the value of RAND_MAX. It can be as low as 32767. So, if you want to pick a double from the full range of values in the [-1,1] interval you have to make at least 4 calls to rand(). Making the distribution uniform from there will take quite a bit of work, too (there are as many double values between 1/4 and 1/2 as between 1/2 and 1, but you want to pick the former half as often as the latter)
> By this logic, the US should just nuke any area causing problems for it.

I don't think you actually understand said logic. US was in war with Japan for a long time, and was steadily winning; however, against self-interest of their country, Japanese command would not surrender. Continuing assault, US inflicted enormous civilian losses on Japan. The firebombing of Tokyo alone was at least as deadly as Hiroshima atomic bomb. And yet, Japan command did not want to surrender. Only atomic bomb finally succeed in ending the war.

It didn't happen because of some abstract "score"; it happened because of sheer moral shock of how one bomb was able to destroy an entire city. If US had decided to just bomb Hiroshima with conventional methods, inflicting exactly the same amount of death and destruction, it most likely wouldn't have ended the war.

Iraq, North Korea and other situations you can link with "this logic" are _not_ similar to this.
Hey there, nice work! I worked on a similar project for Android. Currently, there are about ~3k apps added: http://www.libtastic.com/
you mean like arresting majority of black people so they can't vote :-D
For most of what I want, being able to introduce additional namespaces would be good enough. Making them modules as well could open the doors to some need techniques.

(I don't need multiple namespaces per file so much for the finished program, but it's handy when developing.)
> Those simple interfaces make programming enjoyable and don't break, so...

If they don't break for you, then use Rails. I find that they break all the time.

Hint: What does "validates: :unique" actually do?
Technically the US is a form of democracy. It is a type of representative, or indirect, democracy.

It is not direct democracy, which is also called a pure democracy, with the best known example being James Madison in Federalist 10.

See https://en.wikipedia.org/wiki/Types_of_democracy for a list of some of the types of democracy. It does not list a "true democracy". I suspect that you meant to use "pure" instead of "true" in your comment.
I've always said Rails is good for short-lived build and forget projects, it's too "magic" for my taste.

I can't imagine what it must feel like to receive a mid-to-large sized Rails project to maintain.
Thanks! I'm glad we have a working model we can probably copy from.
> It's said over the last decade it's clear Texas beats California all around in the sense capitalism beats socialism.

This statement got me curious. Could you refer to some writings re: socialism of California (compared to Texas)?
>> various items that were near the core—a bristle brush, an empty Coca-Cola bottle, a hammer, a measuring tape.

:groan:
@Create you are confusing. Did Saber-C end up being codecenter or xobjectcenter? Is the company Centerline or Integrated Computer Solutions. Who is F.R.?
I've been following https://www.groovehq.com/ startup blog for some time and it's quite interesting.
I don't think many people doubt that a land invasion to the bitter end would kill more people than dropping the bombs, but the argument is was the bomb necessary? Some higher ups in the military at the time thought Japan was on the brink of total surrender.

"...the Japanese were ready to surrender and it wasn't necessary to hit them with that awful thing." - DWIGHT EISENHOWER (in 1963)

"It is my opinion that the use of this barbarous weapon at Hiroshima and Nagasaki was of no material assistance in our war against Japan. The Japanese were already defeated and ready to surrender because of the effective sea blockade and the successful bombing with conventional weapons." - Admiral William Leahy, Truman’s chief military advisor
yeah i do Scala now but same deal. Where I think the OP comment really goes wrong is when he says something like "you're gonna need all that stuff and you're gonna end up re-implementing it yourself". I really don't find that to be the case... when you're developing with libs you are cognizant of your app endpoints and just add whats needed. It's better to consciously add a lib or turn a feature on than to just accept a big ball of yarn that some cowboy framework devs shat out. In the Rails app at my job it takes a ton of debugging just to figure out how many layers of decorators are firing off around every model.

I might even go so far as to say that a lot of where JVM has strength is that contexts are pretty measurable... Spring containers, Akka systems. You instantiate them and hold them basically in the palm of your hand, you understand your scopes. Any technology that allows application scope to slip out of your fingers and intermingle with everything else under the sun is something I'd be wary of.
The main difference is that Django does not rely on monkeypatching or magic methods, and for me the separation of concerns feels just natural in Django.

When I started with Rails it felt like magic, you didn't know why things worked.
China is accomplishing great things in science; very impressive list of projects.

By contrast, the U.S. seems to ceding its former leadership role. We don't even have a manned space program anymore. Maybe some day, Orion will be completed. But in the meantime, NASA is operating on a shoestring budget compared to a few decades ago.
Under a second?! I guess I never tried NMAP on aggressive, but I think that if you take 1ms per port you still get 65535ms which amounts to 65s... I mean, you could probably send all of those at the same time.. under a second?! really is that a feasible amount of time?
If so, I have been using the port scanners wrong [which btw I never use often, as this AFAIK was still frowned upon and even illegal if I'm not mistaken]
Interestingly the blue flash was caused by electrons, which had been excited by the radiation, transitioning back to a lower energy state and giving off photons!

The reason people survived is because radiation from a source falls off by the inverse square law, so as long as you have a small source and a short burst of radiation, distance is great. It's more surprising to me that they didn't use more remote devices for these kinds of experiments.
Glad to hear that! I don't think there is anything you can't do with Jenkins with plugins. But in GitLab we try to make the best practice the default. Using build slaves is an option in Jenkins but our Runner is by default set up on another machine. Having your settings stored in the repository is an option in Jenkins but the default in GitLab with a nice syntax.
Did the British force people to convert to Christianity for them to enjoy the benefits of being subjects of the monarchy?

How far back in history do you want to go? Plenty of battles within Christianity in British history. E.g. King Henry VIII didn't accept the authority of the pope and led the Church of England away from the Roman Catholic Church. https://en.wikipedia.org/wiki/Church_of_England#Separation_f...

A few generations later, things got pretty dicey for the remaining Catholics:

England’s Elizabethan Catholics were public
enemy number one. Their Masses were banned
and their priests were executed.

http://www.historyextra.com/article/elizabeth-i/elizabeth-i%...
Alternatively: Rails doesn’t believe in doing anything that would make it anything resembling modular so people who don't agree on everything can still work together easily.
> Of course, we also must remember the ugly history of poll taxes and other prejudicial methods that Americans used to deny black citizens their equal right to vote.

Weird how remembering this only ate up a single sentence here. You'd think somebody who clearly thinks he's brilliant would, I dunno, make more than a nod at the fact that poll taxes and literacy tests were used for roughly a century to keep poor black people from voting.

Wait, sorry, what I meant to say was "What an asshole."
I'm not sure who/why somebody would use this library when it is fairly easy to write these selectors using just CSS (for most use cases anyway).
If you're interested in a "dumber" approach to machines "learning" to play classic video games (including Super Mario Bros), tom7's video [1] and paper [2] on Playfun are both fascinating.

[1] https://www.youtube.com/watch?v=xOCurBYI_gY

[2] https://www.cs.cmu.edu/~tom7/mario/mario.pdf
This counterfactual loses much of its appeal when you learn that Japan was beaten and had been trying, through back channels, to conditionally surrender for months prior to the bombing. Their sole condition was guaranteed safety for the Emperor: the US refused to grant this, and so the fighting continued.

As history shows, the US had no intention of harming the emperor -- so why wouldn't it accept this condition? And why did it target civilians, rather than (as the Los Alamos scientists had called for) a demonstration just off the coast which would have made the point equally well?
One particularly nice detail in the piece, the kind of detail you could only get from talking to real survivors shortly afterwards, is the kinds of theories and rumors that were going around the day of/after the bomb. People thought the Americans had sprinkled gasoline and lit it on fire, or thought that there had been some kind of trick involving dusting the city with magnesium. The weird rumors remind me of the kind of stuff I heard on the day of 9/11.
For really nice cache misses the arrays (explicit or implicit) are needed. Havng the allocations of the objects for calculations gives us chance for that too: we'd also need the different, crossed lifetimes of allocated objects, which can be done with "smart" pointers (the application I've mentioned used these too! That's why I've mentioned Boost).
Without being negative anyone else found this statement a bit strange - "as my bachelor thesis was about Rails"

* I am not aware of any CS program that do thesis at a bachelor level.

* It is hard for me to imagine getting approval for doing a thesis on "Rails", it is mostly a CRUD web framework.
That's a straw man. There were many alternatives apart from an invasion, such as a submarine blockade (as the navy was proposing), or simply accepting the conditional surrender which Japan had been offering through back-channels for weeks.
It looks open right now to me (with one vote to close).
That's because it isn't the act of covering your face that people find offensive, it's the reason behind it.
I also went through Katrina and the thing in this piece that reminded me the most of that experience was how people quickly became numb to the horror of their situation and dealt with things practically, one thing after the other. Or alternately became totally nonfunctional.
How to design APIs
This was my first guess, but as I dig a bit deeper I'm less sure. It looks like the difference is the implementation of log and exp, but both of them are linked to the same libm from glibc. The difference is that Intel is inlining an AVX2 optimized version that uses FMA, but Clang and GCC are using the compiled function from libm.

The Ubuntu packages I'm using are compiled appear to have been compiled to support AVX, but not AVX2, and hence no FMA. So while GCC and Clang are much slower, this is really an issue of having suboptimal system libraries. The speedup is real, but it's not clear that either GCC or Clang are actually to blame.
Now explain why we decided to vaporize tens of thousands more civilians a few days later.
one of the issues I see with rails precisely is that most people won't ever know that 1.year is not a plain ruby method
It's been awhile since I looked at either but I remember as a beginner I had trouble parsing both the Django source and the Rails source. The rails source was the hardest because I didn't understand ruby and the Django source was hard because I didn't understand python.

I feel like people really forget what it's like to be a beginner when they say "read the source".
No, it comes across as a deliberate tactic, entirely unrelated to the benign use of "naturalistic fallacy" in the original comment. I feel the actual meaning you are trying to convey is noise, and you've done so in a way that is not representative of the original comment.
Per cloc it's actually 1093 lines of C (plus some more in the printf.c file), and generally speaking hundreds of lines of C is the equivalent of thousands of lines of assembly.

In any case, the complexity of the called function is exactly what we're discussing — it's why the author objects to "User.create(params[:user])"
It's been a while, but I seem to recall in a past company that for card-not-present transactions, the risk of fraud was on us, not on the bank approving the transaction.
Show HN: Apache Phoenix/Avatica driver for Go's database/sql package
It's not much fun if you're in the same boat as the average Japanese salaryman, who is seeing prices increase while his meager pay packet stays unchanged.
Another point that was subtly made, but needs highlighting.

If you are programming in ruby you are ONLY doing a front facing webapp. There are lots of servers out there that run headless. The ruby ecosystem is completely dominated and controlled by rails. As a result, ORM mappings and gems are completely focused on a web-response centric world.

As monolithic ruby apps are broken into microservices, ruby as a language will also be abandoned for those microservice back-ends - simply because the ruby ecosystem has only one way of viewing the world.
How big is your team?

For smaller teams, I love Front.

In looking for things that will likely work better for larger teams (10-15+) Help Scout and Groove are both pretty appealing.

Desk.com is like Zendesk in that it tries to "do everything."

I haven't evaluated it fully, but a lot of people love Intercom as well if you want to do in-app/on-site support.
5 minutes does have an effect. A lot of the published research uses a dose of 20 minutes a day, and it can be a struggle to work up to that, but it is a good goal. In a 20 minute session it can be common for me to feel distracted and fidgety for most of it, but get a few glimpses or a minute or two of detachment from the "monkey mind", and it has a big impact on the rest of the day, and a compounding impact over time.

I think the easiest way to try mindfulness meditation out is the headspace app, but there are a lot of different styles if that doesn't appeal to you. Most mindfulness-oriented meditation taught in the west today won't demand a set of beliefs and compatible with a secular rationalist perspective on the world.

There is definitely technique; it's quite different from just daydreaming or following every thought that enters your mind. You will typically have something to focus on, usually the breath is used to start, but it varies by tradition. The idea is to have something neutral that you can pay attention to so that you can begin to observe the thoughts that arise in your mind without reacting to them. There's a popular free book available online in various formats called Mindfulness in Plain English that lays out the basics of Vipassana style meditation, if you want a decent primer. The retreat I mentioned was offered by dhamma.org aka the Goenka school.

Feel free to message me if you have any questions I might be able to answer.
How on earth does the system absorb a nearly $13M loss now?
There's a set volume of water in these rivers. If you "interlink" the rivers, some of the water that would go to Bangladesh will go elsewhere, depriving downstream consumers of water they were expecting.

It's a dick move by India. Calling it something else does nothing to change that.
How in the world could they tease out the amount of battery their app is using?
Seems like every time this topic comes up, there are people who seem to "know" a lot of things, and on occasion they can point to real documentation -- letters that can be traced to people in the presidential cabinet, for example -- but very often the things people "know" turn out to be speculative, or after-the-fact rationalizations, or connecting dots that were known individually by people in different parts of the government but who didn't have a way to connect with each other.

So my question is, how well documented was the Japanese back-channel surrender offer? Is it documented that it was made to legitimate decision-makers through those back channels?
This.

Webpack is usually the biggest source of bugs and questions on any given React boilerplate. Something won't compile, circular dependencies causing the build to fail the first time, some strange bug in CSS inlining, hot reloading not reloading, etc.

It's very powerful yet very hard.
People outside of tech bubbles use snapchat, facebook or whatever chat program is popular this week. I know this because I can't get anybody to return my emails. :(
Eh, when the gadgets fell the US had been terror bombing Japanese cities for 10 months: "why" probably wasn't very pressing at that point. Burning Japanese civilians was simply an American thing to do at that point.
More than likely another gimmick I would have to say