skysight-inc/HackerNews huggingface dataset:
True. I spoke before thinking of the effect. I'm glad it was brought to my attention.
Cool stuff.

You should adapt the scrolling speed to the number of characters in each comment if you're able. It's hard to do but it'll improve things tremendously.

Full disclosure, I'm waging a war against your bookmarklet's scrolling effect. See: http://www.magicscroll.net/ScrollTheWeb.html

You can try the autoscroll feature at the bottom right on that page to see how much of difference matching the scroll speed to character count makes.

My solution doesn't work well with tree structured documents like comment threads though. Perhaps I need to adapt it.
They both feed into each other.
It's also a criminal matter, but that has nothing to do with my original post. It's certainly not "completely legal".

The penalties for violating the Sherman Act can be severe. Although most enforcement actions are civil, the Sherman Act is also a criminal law, and individuals and businesses that violate it may be prosecuted by the Department of Justice. Criminal prosecutions are typically limited to intentional and clear violations such as when competitors fix prices or rig bids. The Sherman Act imposes criminal penalties of up to $100 million for a corporation and $1 million for an individual, along with up to 10 years in prison.

Anyway, the other poster was correct. If they don't go to prison over this, the laws are wrong ;) And yes, of course I'm aware that they won't. That's exactly what I was lamenting.
I presume you noticed but this one was from 2011.
There is a huge gulf between Asperger's and full blown autism.

People with Aspergers are "normal" people in the sense that they are generally capable of looking after themselves, communicating and working normal jobs etc

People will full Autism have severely limited communication skills (often no spoken or written language skills at all beyond repeating a handful of phrases) and require a significant amount of assistance in most areas of life. They will often live with full time carers.
I'm saying that $190 is a decent amount of money for a lot of people along the wasatch front, especially when comparing it to just driving, ergo why it is likely that you see so many people driving instead of using public transportation which is the response to the root comment.
That's an unfair presumption. That's just a coming from a few twitter users and it doesn't really represent the whole rubyist community.
Two reasons why it's better to memorize the cruft:

1. You can pipe find/sed/grep/cut/awk/whatever to other utils. Today you might be replacing, tomorrow you might be analyzing text logs, and the more core utils you learn the more things you can do with them.

2. When you're ssh'd into another box that doesn't have that spiffy replace utility, now you don't know how to do an inline replace.
Generally a weasel apology would be:

"I'm sorry If I made someone feel bad"

Not

"I am sorry. I feel terrible that I made someone else feel terrible."

Corey's apology did feel nicer, but I don't think that Steve's was a bad apology.
Did he perhaps mean to direct his criticism at node/js as a framework/language but rather made it sound like he was critical of the author of the node.js application in question?

Even if that is the case, it seems like he should have been able to read how other people would read his comment. I'm not sure I buy it.
> the temptation to use a "non lethal" emergency device to break up the fight would be a lot higher than the temptation to shoot one of them

I think that if it's made clear that the firearm is merely "less than lethal" (it can actually kill or maim), but simply less likely to hurt by standers people will get the idea.

> You might be able to deal with it by declaring use of the device the same as using lethal force, with criminal liability for any use where deadly force wouldn't have been otherwise authorized.

Yep, that's the idea. Unauthorized use is prosecuted, the clear expectation is that these may only be used in the same condition that a firearm could be used (keep in mind that these devices are usually not only firearms in the legal sense, but are also NFA-regulated due to caliber and/or barrel length).

I would go as far and say that they may only be used on students who are armed (but not necessarily with a firearm). Now that might have the opposite effect is that they will be less likely to use them in a genuine scenario -- however, merely shattering the glass and grabbing one would alert other teachers (this would be another cost against teachers using them to break up a fight). So exact laws are tricky, but not improbable to device (much like there are regulations on when teachers may or may not physically restrain students).

Plus there's also a few other things: if you genuinely ever want to use a less than lethal weapon (or _any_ weapon) on a elementary child to break up a fight, some kind of psycho-metric testing should have stopped you from becoming a teacher in the first place :-) On the other hand, in high school or middle school, a fight (or other non-deadly confrontation) can be broken up by, e.g., P.E. or wrestling coaches (they will be slower to engage, but this isn't a life and death situation).
Think about this: this statement, right here, is a completely unfounded (i.e. you have no evidence about any of the 3 people being ASD, and the probability of all of them being ASD is really low even among geeks like us), passive-aggressive (you are attacking people with ASD but making it appear sympathetic), pseudo-intellectual (how much do you really know that you didn't read in superficial internet threads) insult (oh yes it is) toward people with ASD. Ironically, presumably from a neurotypical, who by implication is supposed to be more sensitive than the alternative.

Congratulations. You bully in a thread about bullying being bad.
Consider the same scenario when you vote for a president. The older you are the more powerful your vote would be. How would that turn out?
That's the thing - there's no "product" as such. Or, to be more precise, the product is purely consultative, the kind of work that, say, a think-tank does. The use case is, that a governmental agency needs help with analyzing a large dataset. We write the code, we do the heavy-lifting, and then present them with the final analysis.
Rasterization also requires "acceleration structures," kept in memory. I could be wrong here, but I think the point John was trying to make was that there was again a constant factor handicapping ray-tracing. But constant factors are, well, constant, and in 2050 we may well have ray-tracing done in hardware delivering scenes that are indistinguishable from reality.

I wrote a ray tracer once, but it was primitive. So I'm not completely talking out of my butt, just mostly.
Not sure what you're complaining about specifically, but maven has the ability to generate bundled jars when the app author includes the assembly plugin ( http://maven.apache.org/plugins/maven-assembly-plugin/ ).

Then you would just type
mvn assembly:assemble
I know now where I will never live
If that were true why aren't their uproars over any of these projects:

https://github.com/grosser/pru
https://github.com/colinta/ned
https://github.com/aljungberg/pyle
https://github.com/zzak/gsub
https://github.com/bjfletcher/node-js-sed

I'm sure there are more. These are just a few I could find a few minutes.

Sorry, I'm not trying to call you out here. I just have serious doubts that the criticism has anything to do with merit. In other words, I don't think it makes sense to rationalize jerky behavior :(
That's.... creative... I particularly love how the variable names keep changing in inconsistent ways, but also sometimes reuse older names.
It's interesting you mention Belgium, which has 50% income tax, including inheritance taxes:

http://www.belgium.be/en/taxes/
http://www.taxation.be/content/view/28/37
Erotique, Issue 3
This post seems like he is trying to apologise, but it's also coming out wrong and he is again accidentally being an asshole.
That sounds like a lot for effort for little to no benefit, considering how little time it takes to draw and load a weapon.
>I‘ve written here before about the ongoing puzzle of improving the ratio of women to men in the tech sector.

That's nice, but when are we going to address the real barriers faced by women? Women are vastly outnumbered by men in many sectors, including workplace injuries and fatalities, acute and chronic homelessness, suicides, mental illness including schizophrenia, violent crime victimization, recruitment into gangs and child armies at a young age, legal genital mutilation, false imprisonment, unfair estrangement from children, involuntary celibacy, and a host of other exciting fields. When are we going to stop pussyfooting around and demand a better ratio of women to men in the really important sectors? If we work together, I know we can do it.
Lots of us are accidental assholes sometimes, if it means hurting someone's feelings without meaning to.
I'm reminded of The IDE Devide (http://osteele.com/posts/2004/11/ides), which describes the differences between a "langauge maven" (which I'll admit to being) and a "tool maven".
This is a naive request.

There is plenty of tech that could create new, innovative weapons. Personal tasers for everyone, charged with USB. Peppersprayers with chemical encoding to identify assailants uniquely. Weapons that can only be used by one person.

The problem is these are NEW weapons and they do not in any way reduce the current supply of weapons. The current supply of weaponry is deadly, cheap, easily available, and apparently, no law can be created to reduce or inhibit the current supply. Under those circumstances, adoption of any new tech will be tiny and unimportant.

Gun violence is a political problem, not a technological one. Once the groundwork is laid for political action to occur, then and only then can it move into the realm of a technological problem.
Node as a technology is misunderstood. Most people from other languages hear that it is javascript and scoff without digging into the source or into libuv. As a platform it made a certain set of trade offs which make it ideal for certain use cases, but some zealots see it as a panacea and suggest using node for everything under the sun. (Not to mention the general arrogance of some vocal proponents -- the core people are relatively humbled but there are a lot of pseudo rock star developers who think its cool to write JS instead of using the best tools for the job)

The traditional complaints of javascript were summarized well by Crockford http://www.crockford.com/javascript/javascript.html
Most of the people writing in JavaScript are not programmers. They lack the training and discipline to write good programs. JavaScript has so much expressive power that they are able to do useful things in it, anyway. This has given JavaScript a reputation of being strictly for the amateurs, that it is not suitable for professional programming. This is simply not the case.
reply
I find that sometimes people need to learn how to handle popularity and the fact that what they say actually matters.

Else you end up with comments like 'eyes bleeding'; these are extrinsically motivated comments that don't usually represent the true sentiment of the author. They are caused by the need to feed the crowd so as to sustain the crowd.

We potty-train. Why don't we twitter-train?
1) Former Australian Prime Minister John Howard initiated our gun buyback scheme in 1996 and since then, our firearm related suicide rate has fallen 74% and we have not had a single gun massacre since (we had 13 in the preceding 18 years before it).

He wrote a piece on this for the NYTimes recently, linked below

http://www.nytimes.com/2013/01/17/opinion/australia-banned-a...

It will be an unpopular position, especially amongst conservatives who seem to believe that Gun rights and right wing politics go hand in hand (I'll note that John Howard led our main conservative party in initiating the buyback).

It has surely worked for us. Our gun violence statistics have dropped dramatically since the scheme was implemented.
As part of your build were you wiping out your local repo ( ~/.m2 ) for some reason? It would only need to check if you don't already have the version specified in your pom in your local repo.
I played 7 cities (the remake) in the late 90s, but the rest are long before my time or I'm sure I would agree with you on a personal level. 7 cities was fun though and I know M.U.L.E. was a pioneer in the strategy game area.

I didn't have a real PC until I was 11 or so and that was around 1996 (had an NES, Sega Genesis and SNES before that). I did play many of the classic games of the early 90s (original sim city, red baron, panzer general, doom, wing commander, x-wing/tie fighter), but ones from the 80s are kind of beyond my scope, even for an avid PC gamer like me. I could play them now, but not sure if I would be able to appreciate them on quite the same level with the same magic they had when they came out.

I do have one question though for the sake of curiousity. Did you ever lament or rage at the state of pc games in the 90s compared to those in the 80s? Your reply kind of hints at it, but was not sure what your actual point was for sure. I always second guess everything repeating itself, even something like this.
I see this as exploitation or price fixing in some way!
Let me elaborate. Lets say Steve Jobs was paying an Engineer $100K at Apple. That skill set might have been worth atleast $120K to Palm. So Palm decides to hire him giving him a decent raise to join ( a good incentive to join). Lets say Palm gives him $120K. Now Apple which secretly knows that the engineer is worth a lot more to Apple will have to throw in more than Palm, say they will have to offer 150K$ to draw him back. Palm might again counter offer and this kind of bidding might go on until the Engineer get his true value(In a way market is deciding the engineer's worth) - But what is happening here is that Steve Jobs is kind of colluding with Palm to "fix the price" of the Engineer without market deciding so! There by saving/making a boatload of cash (money saved is money earned)!
Sure, what I am saying is probably not the book definition of price fixing, but I would think that the motive/sentiment is very similar!
Yes, a wealth tax is better than a luxury tax, for a wealth tax cannot be dodged my declining to spend, and so does not slow the economy. A (less-avoidable) wealth tax can then be put to good use, funding more socially useful boats than yachts, or distributed as a national income guarantee, or to retrain boatbuilders in other, more relevant, industries.
I got into an online argument with David Cramer years ago about something truly meaningless, but the notion that he is an asshole just stuck with me for some reason.

He seems like a terrible representative for Disqus. I wouldn't be surprised if a few people were turned off from working there when they discovered they would have to work with him.
[after reading the very first code example]

There is a better way to write it:

from datetime import datetime
from pytz import timezone, utc

EST = "US/Eastern"

now = datetime.utcnow().replace(tzinfo=utc) # now in UTC
return now.astimezone(timezone(EST)) # now in EST

There is no DST transitions in UTC so localize()/normalize() are unnecessary here.

The code still is not pretty and error-prone in general but there are already libraries that wrap it into easy to use interface e.g., times, arrow. They are better target to compare itself against.
The disturbing thing is I never expected such a behavior/ being an accidental asshole (as he has later confessed) from a reputable online identity like @steveklabnik, a contributor to http://thechangelog.com besides many things
Little puzzled here. How is it a "mistake"? A mistake is dropping a teacup while you're washing dishes. This is a deliberate act of ridicule.
Or maybe he means a wide range of knowledge of dubious authenticity which is not even self consistent :-) As a sideways insult it has great potential, like that old chestnut "Nobody would be better for this job than Bob here."
Looking back at my work over the years, I can probably say that the ugliest and shittiest code has always made me the most money. Why? End-users couldn't care less what the code looks like. If you are faced with an opportunity you write an ugly glued-together MVP, show it and get it working. It was only after making money that the code got cleaned-up and polished.

The same is the case with "temporary" tools that you write here and there. Ugly piles of smelly manure until you decide to clean them up.

Of course, as you gain experience you can write less "smelly" code from the very start, that's only to be expected.

I can also probably say with almost absolute certainty that projects where I took the approach of writing a "Monument to Computer Science" almost never made me any money.

I find that for some people programming can be very personal. Criticism can really affect them. Perhaps this is also something that you get past with experience. And, while I always strive to write good, clean and efficient code, I, personally, realized a long time ago that the very first priority is to put food on the table and grow the business or support the growth of the company where you are employed.

People who get off on criticizing others for anything (not just their code but anything at all) are, regardless of their standing within their community, simply despicable.

A lot of these people are also cowards. Not saying that these guys are. I don't know them. But I'll bet they would not stand in front of a real crowd of people (you know, they kind that you can touch and see) with Heather in the same room and make those comments. Why is it that some people might have restraint and manners in public but can turn into perfect assholes behind a keyboard?

This is one of those "You can't un-ring a bell" situations.

The other one I like is the equating of such acts to tearing open a pillow full of feathers atop a mountain. To undo your actions you have to go to every corner of that mountain and gather all the feathers. In other words, it's very easy to utter just a few nasty words and cause someone pain and even harm. It is orders of magnitude harder to undo that.

In my opinion, an apology simply isn't enough. I don't know what might constitute equitable reparations, but apologies in blogs are just too easy. The author sleeps well at night while the victim still has to deal with the feathers spread all over the mountain that is the Internet.

N.B: It is important to note that Corey did reach out to Heather personally (see his post on this thread). This, of course, makes him a gentlemen and I am sure Heather feels much better. Nothing beats real one-on-one human contact. Bravo.
>If you care about simplicity, I would personally rather write a small shell script wrapping find/xargs/sed and hiding their arcane options, as opposed to writing 173 lines of js.

I would rather use my language of choice to implement the above (mine wouldn't be JavaScript, but it clearly was Heather's) than to research all of those arcane command lines.

Rather obviously YOUR language of choice for this kind of problem IS sed. So OF COURSE you would use a shell script wrapping sed etc. to implement these functions.

But guess what? To handle all of those options at the command line would still take a pretty large fraction of 173 lines of code, if you added in an equivalent level of parameter checking and option handling.

And if you want to make MY eyes bleed, hand me a file with ~150 lines of logic in shell script that spawns cryptic command lines. Despite not REALLY knowing JavaScript, I would much prefer to maintain the JavaScript than a shell script with the above commands.
Not even in Japan or Europe? Have you really done the math, or are you extrapolating from a single data point? The costs of building rails and running a train are called fixed costs...cost per rider is inverse to the number of riders. That means that with higher ridership, cost per person decreases.

Don't believe me? The Calgary CTrain has costs not much different than TRAX. Operating costs, including depreciation, are $0.30 per rider...making the system profitable enough to subsidize the more suburban bus system. Why? Because they have 5x the ridership.

Don't be obtuse.
Stating your axioms will not convince someone who holds different axioms.
Is it 1-1 with a pilot's license?
brilliant summary.
Please, tell me you're jocking: on your platform you cannot afford a pipe but you can launch node.js?

by the way: "-print0 | xars -0" is really idiomatic, you know? Lucky you didn't have a single filename with spaces to handle...
Being sorry that somebody else felt bad is the beginning of an apology. But it's not the end of one. You can't just say to yourself, "Well now I'll never make somebody feel bad again. Problem solved!"

When you fuck up and hurt someone, people don't want just to hear about you feeling bad. That's making it about your pain instead of theirs. It's asking for people to pat you on the head and tell you it's all ok. That's kinda weak.

They want to hear what you've learned, and why this won't be a problem again.
Before we continue on with this article, we will need to define clearly what "hacking" really means and what actions do it constitutes or covers.http://www.faceraw.net
I have no idea what you're trying to say.

I'm saying that major open source success only happen when a funded entity, e.g. a corporation or a research institution, pays for someone to develop that project full-time.

In other words, successful projects have someone paying for full-time salaried programmers.
Throwing more ( or finer etched) silicon at an algorithm will not help the algorithm, compared to a superior algorithm. For almost all scenes you get better results with rasterization, the two exceptions I can think of is scenes where the geometry of light rays is not flat, so for example involving lenses or black holes, or where there is a lot more optical complexity than you can reasonably use. ( A forest where each of the leafs is an object, you will never be able to notice that the advantage of this over an forest where the trees in the background are just textures.)
I'm gonna copy what I said in the other thread, because it's more relevant now:

You know, reading the various devs' tweets, they use twitter in a way that is completely foreign to me. Is there anything these guys think that they don't tweet? ("Hey, who's picking me up from the hotel?" is not something I'd ever announce to the world at large.)

This incident shows a danger of working that way--one of these guys apparently had a rude little thought best kept private--and let's admit it, we all have those thoughts at one time or another. But because he tweets everything, that little passing thought was pushed to the world, which is not good for anyone involved.
http://i.imgur.com/f7wTyD9.png
Thanks for handling a shitty thing to have done with some grace, Corey. I can't accept your apology on Heather's behalf, but I do hear your contrition. For my part, it's genuinely appreciated.
How about using diff and sed -i?

# This version is obviously unsafe
verbose_sed() {
sed -i.old -e "$1" "$2"
diff -u "$2.old" "$2"
rm "$2.old"
}

verbose_sed s/vim/emacs/g rant.txt

You could then use all the tools that we already have for working with patches: colordiff to colorize the output, diffstat for a summary of changes, patch -R for reverting the changes, and so on.

Of course, you're more likely to than not already using version control, which gives you all this and much more, even if you were to use vanilla find+sed.
I guess you are not as secure in your beliefs as you thought if you need to resort to swearing. You thought buses are modern and clean, and when you discover different you swear?

Diesel is very polluting compared to gasoline and I hate it. And stop/start diesel is the worst. So despite its great reputation public buses are not the automatic win they are made out to be.
LV鞋盒
Just.me - A stealth messaging app that can replace email, MMS and SMS.