skysight-inc/HackerNews huggingface dataset:
I just went through all the examples, that was awesome! Best tutorial I've seen yet. With this and debuggex, I should be all set to parse HTML with regexes (kidding).

By the way, could someone explain this to me - do regexes match a string if a part of a string matches the regex, or if the whole string does?

For example, this regex "([+|-]* )(\d+[,|.]* )(\d+)(\.)?(e)?(\d+)" (intended to match decimal/scientific numbers - see http://regexone.com/example/0) matches "720p" on regexone, but fails to match on debuggex. So it seems like it varies depending on some configuration - is that right?
I don't understand what point you are trying to make. As I stated, pretty much every project hoster has two repositories per project for the code and wiki. Eg for github you have github.com/[user]/[project].git and github.com/[user]/[project].wiki.git

With Google Code you can have any number of additional repositories eg the equivalent of github.com/[user]/[project].documentation.git, github.com/[user]/[project].testsuites.git, github.com/[user]/[project].androidclient.git etc

With Github you would have to create new projects which means separate issue trackers, wikis etc.
Is there a detectable (to human) difference between a 24fps screen and a 48fps screen where the image only changes every other frame. I can see how this would work with film based projectors, but my understanding of TVs is that pixels are always on and simply change states between frames, so 'changing' to an identical frame should have no effect.
I tried this, the other Haskell version, and the go and node version from op -- with some rather ridiculous ab-values -- the end result was that both of the haskell versions crashed after around 8k requests, while both the go and node-versions completed -- with no missed requests.

I don't have the full numbers (didn't log them) -- but running "ab -n 100000 -c 1000 http://localhost:8000/ -- nodejs completed in 160 seconds, go in 170 seconds. Nodejs had a few requests around 8 seconds, and go had a worst time of almost 5 seconds. (This is on an old desktop, with a core 2 duo - roughly 6000 "bogomips" pr core, two cores).

I'm guessing the haskell solutions ran out of resources, but I'm not sure.
You're wrong. The 'property' is a method on the Function prototype - take a closer look.

Anyway, style does matter and were this line written with readability in mind you wouldn't make this mistake.

Also, I would definitely abstract over @get and property:

makeProperty = (attrs...) ->
func = () -> (@get(x) for x in attrs).join(" ")
func.property(attrs...)

MyApp.president = Ember.Object.create(
fullName: makeProperty("firstName", "lastName")
)

The parens after create are not needed, the next indented line should tell us that this is a function with arguments, but I don't mind them here.
I don't get it. How have 90% of start up websites not conditioned you to scroll below the fold? Scrolling is more pervasive today in UX than it was 10 years ago. (See: Bootstrap)
Any chance this is a way to trim fat without actually laying people off? Easier to get rid of the slackers if they quit.
Not width I'm talking about (that's fine), it's the height.

It's funny, because screen height shouldn't affect "readability" (other than making you scroll more often), but with these large-font blogs/sites, they give me a certain feeling of "claustrophobia" -- that I can't see a couple paragraphs' worth to come, or can't see the last couple paragraphs I read.

I think it might be that it prevents me from being able to scan content easily, the way you can on a printed page, where you can quickly skip to the part you can tell is relevant to you.
Merchants think little or noting about chargebacks when contemplating a cash discount.
I think they must have some broken Javascript or CSS on the page, I had to resize my window to get the scroll bar to show up, despite the article extending well below the bottom of the window.
Agreed. It seems to have a lot of great features. Hopefully the HD is still user replaceable.
It was just the feel of the conversation. This was 2 years in the past though.

Me: "I'd like to work remotely from Japan"
Them: "We can't allow remote positions now"
Me: "I can't move to the US for family reasons"
Them: "Let me check with HR"

One week later

Them: "We will let you work remotely, when can you start?"

Just something was off it felt like. There was more talk than that of course, and a meeting when I was actually at HQ in CA for other reasons.
Idea: a browser feature (plugin) just like zoom, only that would up the contrast on sites (or decrease, too).

It would have to be semi-intelligent to adjust the brightness accordingly (so it would work both on light-gray-on-white sites and dark-gray-on-black sites), but having an in-browser contrast control would be great.
This was submitted via the source I got it from (Mozilla Future Releases blog), and directly to the demo page, a couple of days ago by AndrewDucker, but unfortunately got little attention

https://news.ycombinator.com/item?id=5251980

https://news.ycombinator.com/item?id=5252075
As noted above - with ridiculously large values for ab this one crashes (although I didn't compile with O-parameters). I think this (and the other haskell solution) ran out of resources.

Both the go and nodejs versions completed without problems.

I was a little disappointed -- I was actually hoping I'd see comparable performance -- even if it is a silly test.

I think it is interesting that simple, idomatic code in go and nodejs didn't crash -- not sure what assumptions might be "wrong" in the underlying haskell code (I'm guessing if anything should be "fixed" it is in the web server libraries used).
France is larger than Paris. The countryside isn't populated by cows only and I'm very much concerned about it.
I think investors think Apple has done so well it now has nowhere to go but down. Something like 50% of Apple's revenue comes from the iPhone, in a market where you're only as good as your latest product and they only release one product a year.
Same. A hint that appears after a wrong attempt at the "before you move on" steps and a full explanation that appears after two would be very helpful, especially with steps 7+. Without those it feels like a puzzle instead of a tutorial.
And zoom does not function correctly on the default Android browser.
Fox blasts newest Dish Hopper in court, wants it off the market
FBI employees, entrusted with stopping computer crimes, commit them too
From the CSS specification:

px: pixel units — 1px is equal to 0.75pt.

[...]

The reference pixel is the visual angle of one pixel on a device with a pixel density of 96dpi and a distance from the reader of an arm's length. For a nominal arm's length of 28 inches, the visual angle is therefore about 0.0213 degrees. For reading at arm's length, 1px thus corresponds to about 0.26 mm (1/96 inch).

http://www.w3.org/TR/CSS21/syndata.html#length-units
That style is most friendly to tablets. The next page is just a thumb-swipe away.
They would still call it a two story building
"I hate that stupid Bob and his kid's swimming lessons! Bob should be made to be like us and spend 9-5 in useless meetings and develop products for 13 minutes a day rather than be like dumb old Bob and spend the day with family and then work from 7pm to 3am in a solid sprint, coding."
The only higher level then javascript is god's word
Is anybody smaerter thank John?
Maybe the first floor is mostly a parking garage
If you want I'll email you; let me know.

No need. What you're saying is still incorrect, but the correct answer is already in what I've posted here and what's posted in the PF thread. If that doesn't answer it for you, I don't think there's any point in further discussion.
Reminds me of those "you have downloaded p-rn, buy xyz product to erase all your tracks otherwise your..." ads. How did they know :) ?
NewLisp is to Lisp what ramen noodles is to Italian cuisine.
How Are Some Authors Landing On Best-Seller Lists? They're Buying Their Way
I haven't seen anything that breaks zoom in the browser (do you have an example?) but many of the responsive-type sites break the pinch zooming on mobile which is extremely annoying, especially if they have images that hang off the viewable area of the screen.
No problem here with Chrome (Windows 8, Nvidia).
is there anyboy smarter than carmacck..maybe sweeneye
This is one of the reasons that I can't leave firefox. It's got a really nice feature in the Advanced fonts & colors configuration that lets you set a minimum font size. These days I keep it set to 12pt so that sites can't start putting 2-3pt fonts on there.
Your site is barely readable and unzoomable on my phone where I would normally read a short blog post from an unknown but potentially interesting site. It's a very real glass house situation.
Definitely cool. How about the reverse for an art project? Maybe the Constitution or Bill of Rights with rivers forming the statue of liberty.
Two weeks ago I interviewed at a subsidiary of a major web property, and "[w]hat is the Lyskov Substitution Principle?" was on a written test they gave me.
Google do
Most of the technical work has been done by Jochen Theodorou. Others who have helped technically are Paul King, Cedric Champeau, Alex Tkachman, and Jeremy Rayner. James Strachan also did a lot of technical work on Groovy in his day. I'd rather listen to what someone who's done technical work has to say than someone who shows powerpoint slides.

You mentioned Guillaume Laforge as leading the Groovy project, but from my experience, Graeme Rocher, the Grails Project Manager, seems to have far more say over Groovy's direction.

As for calling Groovy "one of the most popular languages in use today", it figures fairly low in most popularity ratings (e.g. not in Tiobe's top 50), and only shows the occasional burst when it's been actively talked up, e.g. just before a conference when the project managers are selling conference seats.
I think this is quite impressive. As for the movement controls and physics, both introduce complexity completely unnecessary for a tech demo.

...you do realize this isn't a game, right?
Just a heads up that this is what your blog looks like in mobile Safari:

http://imgur.com/HpIUKbL

Posting this mainly because I hadn't realized how much Tumblr customizes their mobile experience--not sure what a good solution to this is if a sizable percentage of your readers are on iOS.
It isn't necessarily bad. But being about as good as AOL is not why Ms. Marissa was hired.
according to this, foo(bar|baz)? does not match foobar
msgpack always seemed an odd thing to me. Compressed json (gzip, lz*) is small, and fast (see: http://news.ycombinator.com/item?id=4091051). If you need structure, use protocol buffers or thrift.

I actually like tnetstrings for backend messaging, but I don't see it used very often. json is pretty damn ubiquitous these days.
>Python's issue is that a non-fundamental aspect of programming has been paired with a fundamental aspect of programming.

Python's "issue" is that it considers readability as a fundamental aspect of programming and that whitespace is critical to that end. Whether that suits a particular programmer is a matter of personal preference.
They're wrong to equate being remote with not producing value. If people are not producing value for the company, sure, fire them. If they are doing well, then why force them to relocate? What's the business sense in that?
My own experience, anecdotal as it may be, is that this is entirely untrue. What matters is communication, not facetime.
> Sodium Bisulfite

Do you actually experience a medical reaction to this? How common is that?
People are lazy. They want to see how much text is there for them to read before having the slightest intent.

Making text bigger makes that decision more difficult. It also creates the delusion that there is more to read than there actually is.
Seems like a very narrow mindset. Why would they assume coffeescript won't adapt to ES6? CoffeeScript compiler can change quickly while maintaining backwards compatibility. ES6 standards move at a snails pace.

There's other perfectly valid reasons to use pure-JS on a large open source project, but the ES6 thing is a red herring IMHO.
Indeed. I find it sad rather than ironic.
Show HN: Hammer is a web development tool for designers and developers
Press "Launch Demo".
I don't think that's needed. What's needed is just to let competition work. If one GPU is less laggy in VR than another people will by that GPU for VR. No need to work around the driver, demand will make the drivers better.
Absolutely true. Inability to handle remote workers is a undeniable red flag of incompetent management structure that has no clue how to manage, what is productive work, or how to evaluate who is contributing.
The most useful thing I ever learned about interpolation was how it relates to resampling to different rates and the specific techniques used to perform resampling when dealing with the Nyquist limits.

If you're removing samples, the biggest concern is whether the original signal has been bandlimited to the target rate, which can be achieved in the interpolator or by preparing the signal elsewhere.

If you're adding samples, then the interpolation function is burdened with reconstruction and the avoidance of artifacts in the process. This tends to inevitably lead towards the use of windowed sinc.

For this reason, scaling down images and raising the pitch of sound samples work out to be easier tasks than scaling up or lowering the pitch.

Of course, for the application shown in the article, the use of interpolation is in a different realm entirely.
Sounds illegal in most jurisdictions that I'm familiar with

The food service industry in the US has never had much interest in labor laws I guess
> how tf would one choose between Groovy, JRuby or JPython?

Look at the key differentiator of each language when it was first created. So,

If you really need the JVM...

* Groovy for quick-to-write dynamically-typed scripts for testing Java classes

* JRuby if you need Java 7 and invoke-dynamic

* Scala if you need static compilation

* Clojure if concurrency is important

Of course, if you need specific software, choose Groovy for Grails, Scala for Lift, Clojure for Leinengen, etc.

If you don't need the JVM, consider Ruby, Python, Javascript, etc.
good..now i will look into Discourse...
Since you're so unimpressed. https://developer.mozilla.org/en-US/demos/detail/bananabread
Not sure what you mean. It's working for me. Can you describe what happens in more detail please.
Scala did it all first, and has been battle-tested over many years, while Grbdvy's only recently added static compilation. JRuby did invoke-dynamic before Grbdvy, and Clojure did concurrency before Grbdvy's GPars.
Hello, Facebook friends. I'm dead
I think your view, while warranted, is very web programming centric. MessagePack was initially developed for RPC. That might explain some of the "oddities" when viewed as a drop-in, space-efficient replacement for JSON.
gah! you're right! I've attempted to update my comment with corrected code, but given my caffeine and sleep deprived state there's a good chance it's just as wrong as my original effort :/
JavaScript's lexical scoping is function-level. There is no block level lexical scoping, so variables are "hoisted" to the containing scope. This is why people use the (function(foo){...})(bar) trick to create lexical scopes, such as when looping (CoffeeScript's `do` keyword embodies this pattern). In my opinion, "proper" lexical scope implies shadowing without hoisting.
This is massively distracting for me at certain times and I was always considered a "good, fast" reader. The only thing I detest more in a block of text than rivers, is justified alignment. Ick.
Surveys don't ask for personally identifying information. Lead-gen does. If you were honest about what you are doing then you wouldn't have had a problem.

Thank you for not denying the voting ring, at least, Mireles.
CodePen Is an ADD CSS/JavaScript/HTML5 Editor HootenFancy
The linked to article bears no relation to the title of the submission. That's why I've flagged it.

Update 1 hr later: Someone's now changed the submission title.
Certified online banking trojan in the wild
Lambda Jam CFP Open (FP conf, Chicago, July 8-10)
E.g. -- someone posted a link here to an article in which they describe using Google Hangouts for everything. There's a permanent one that everyone is on all damn day. There are special, throwaway hangouts for asides and meetings and anything else that might be needed.

You don't need to be in person, and many people would surprised how effective teams can be even when they're not in the same room. All it takes is good communication, and by that I mean: 1- good communication technology, like a good net connection and good chat software and good cameras, 2- good use of technology for communication (IM software is not sufficient), and 3- good communication practices (which amounts to: communicate early, communicate often).
Smoothstep is a polynomial approximation of a sine wave through (0, 0) and (1, 1), but it's pretty darn close.

http://www.onlinefunctiongrapher.com/?f=3*x%5E2-2*x%5E3|.5-c...
Agree with these points. Too large text and "double-spaced" etc. can also look like garbage. I find I can read HN very legibly though. One of the reliably better presentations of text, IMHO. Rather than tone down the blacks, there is a warm-coloured off-white background, etc to diffuse the contrast harshness.
I'm not sure if you're telling me, or telling other folks in this thread, but for the record: I've fixed bugs in the ClojureScript compiler related to preserving the lexical scoping semantics :-) It's actually quite a tricky process and involves shadow tracking, symbol generation, self-calling function wrappers, and a bunch of other nonsense to deal with JavaScript's crummy semantics.
Make the Harlem Shake
Weekend hack I did for fun with a friend. It builds Harlem Shake videos for you using your laptop webcam, and provides Imgur-like sharable links. Testing-wise the video processing glitches sometimes when there's high traffic, but otherwise it seems to work... hope you like it!

Many thanks to Ray Zhou for building it with me, and to Tyler Menezes, Vu Tran, Paul Cretu, and Feross Aboukhadijeh for their help!
Visual FX industry does a disappearing act
Hm, so, let's look at something more modern.

The project Allura page seems nice, altought I still don't understand why they have one sort of navigation in "code" view and in "non-code" view, that looks completely different. Also, the link "Pastebin" displays a 500 error in "non-code" view (http://sourceforge.net/p/allura/pastebin/?source=navbar) but works in "code" view ( http://sourceforge.net/p/allura/pastebin/ ) - you switch "views" by clicking at "Git", apparently. You switch them back by clicking at "Files" or "Summary".

Why does the Allura project have thousand of badly named branches? (It may be a goal but it looks confusing from outside.)

Now let's look at some other project that's linked at SF front page

http://sourceforge.net/projects/weka/

What's the difference between "Wiki" and "MediaWiki"? Oh, once is inside SF, the other one directs me somewhere else and tells me it isn't working. Was that needed?

...why is the code part empty? Is that a bug?

The News are not very new but that's not an error on SF side, I guess.

Overall, I feel like SF jumped 5 years forward - from a site from 10 years ago to a site from 5 years ago. But I still wouldn't use it for any kind of new project.
Thanks! I know tumlr has its own iPhone version that overrides default (if you leave it as so in settings), but we hadn't given much thought to customizing it.

A surprisingly low amount (5%) of our readers are on iOS, but maybe it's in part because of the experience.

I also didn't realize how big of a crowd was interested in even the simplest tumblr blog customization, judging by how long this post sat in the #1 spot on HN.

Perhaps we'll customize our mobile tumblr as well, and do a nice little write-up on how to customize both to match your "real" site :)
I'm from Latin America, and I think you have the causality wrong. We don't limit immigration because immigrants hinder our infrastructure, rather, our infrastructure is hindered because we limit immigration. Smart people leave to more immigration friendly countries and build infrastructure there, and the people who would have come to our countries to build our infrastructure are not allowed to come in.
Not bad. Have you thought about supporting a much larger string area? The re editor in Slickedit lets me paste multiple lines of text and see what parts get matched by the regex which is super useful for searching and replacing code and also very useful for multi-line matches.

http://www.slickedit.com/demo/high/RegexEvaluator/RegexEvalu...
Having a random applicant "work" a day for free is a pretty crappy proposition in most industries; I suspect tech isn't much different. You gave an example of asking a job applicant for goldman sachs to "trade stocks for a day." Are you kidding? Do you realize how much money a bad applicant could lose in a day? If it's different in tech, it's only because it's (often) easy and painless to roll back an applicant's mistakes.

There are a few ways to approach a job interview. The one I like is to say, "I'm a professional working in this area; those people are professionals working in this area; I should learn what they're up to and we should see if it makes sense for us to work together right now" and right now is key, because sometimes the timing or the particular projects aren't a good match, but the people are and you'll want to stay in touch in the future.

One nice non-coincidental advantage of treating it this way is that "success" is a lot easier to achieve, so the interview's going to be a lot less stressful.

So now approach it from that perspective. You could spend a day (or two hours, or two days, or whatever interview duration) chit chatting, talking to HR people about benefits, describing past projects and whatever. But time is really short and the important questions are: what are you actually going to be working on? and are the people you'll be working with any good? Are their experience, personality, skills, etc. going to set you up to do well, help your career, get stuff out the door, and whatever other concerns you have. How are you possibly going to learn any of that without talking to them at length and in detail about their projects? And the best way to "talk in detail" is to pretend you have the job for a day and get up to speed.

So are you now "working a day for free?" Not really. Because, if the people you're interviewing with are people you'd want to work with, they've had a lot longer than you to think about their problems and know a shitload about them. If you contribute anything of value that day, they probably would have gotten as much value from talking their sticking points over with any bright, engaged outsider to get a fresh perspective.

In the rare occasions where the applicant really does provide high value consulting for free for a day, he or she should have known better than to interview there in the first place. If there really was no way to know in advance, just accept that you had a dud of an interview and go on with your life. You've still learned whether that particular company is one you'd want to have a business relationship with in the future, which is valuable, and whether any of their employees are particularly good or bad, which is also valuable; and, if the company has the right values, there's a good chance that they'd want to hire you for contract work. So even those interviews still tend to work out.

tl;dr - when you interview for a job, no matter what, you're working. You'll get the most out of it as an interviewee if you take it seriously as work and try to get as close to the day-to-day job as you possibly can. If the company materially benefits as well, even better.
Something similar: http://stackoverflow.com/questions/8479058/how-do-i-find-wal...

These sorts of image processing questions are incredibly entertaining imo (and I don't mean it in a bad way).