skysight-inc/HackerNews huggingface dataset:
If that were guy A's money, that would make sense. But it is not guy A's money.

If guy A takes money from guys C - ZZZZZZ in order to give that to guy B, without setting many restrictions or even punishing guy B, and guy B spends in on crack and hookers... we blame guy B? Sure, guy B was a scumbag, but guy A was the one who took and misappropriated the capital in the first place. Not to mention the actions of guy B that led up to his needing money were actively encouraged by guy A.
I have this in my .vimrc

imap <C-a> <Esc>^I

imap <C-e> <Esc>A

imap <C-k> <Esc>d$A

imap <C-y> <Esc>pA

Yes I am a heathen.
HTML5 mobile gaming performance
Early-Stage Fundraising Primer for the Valley, The 2012 Fall Edition
I realize it's still annoying but you can Ctrl-Shift-T to get a tab back, usually with the partially-filled form intact.
It's not that hard. If you are able, but don't work and live off government subsidies for food, housing, and health care then you're definitely mooching off the system.
I'm not a Ruby guy so I've never used Watir. You pass the HTML string into Watir and it parses it in a headless web browser. Then you use Selenium WebDriver for generating screenshots to manually review? Makes sense.

No, Watir scripts a running instance of IE. I have code in my Watir scripts that call out to a 3rd-party tool for taking screenshots. This is how I get a gallery of images showing all the pages in the app as actually seen in IE.

I also use Selenium to script a running browser instance; I do most of the heavy UI testing with that because I can run it on Ubuntu. It's with Selenium that I interact with forms, make sure ajax calls return correct values, pages have the right content, pages aren't giving me error messages, etc.

Some of this is also doable headless, and for many things headless (or just hitting the code via bacon or something) is of course faster, but using Selenium IDE I can record my interaction with a page then edit or expand the recorded script. So it's fairly trivial to create tests.

But I rarely do it test-driven. It's mainly to ensure that while I'm changing something in one place I don't inadvertently screw up a page someplace else that I may forget to check.

I think there was one app I tried to do the HTML TDD, but I soon found that it was much better for me to sketch out page design and flow and add tests as a I went.
> The importance of a project has little correlation with how expensive it is to execute.

Right, but it should be the primary factor on whether to undertake it or not.
Yeah, agreed. Seems like one of the best things about this is that it positions a (potentially) big idea in a way which makes it easily understandable and fairly everyday.
I've been using Pentadactyl with bleeding edge Firefox since its first days and
I definitely agree with you.

Pentadactyl doesn't support Firefox 15+ so I had to downgrade to a more stable
channel with every major Firefox release. After I ended up in the stable release
with no Firefox 15+ support in sight I began looking for alternatives and to my
surprise Vimperator is still alive and kicking (3.5 got released six days ago)!

I don't get runtime errors anymore, it looks and performs much better (not sure
if I should attribute the performance increase to newer Firefox) and has way
better UX choices (like how minibuffer overlays the page instead of resizing it
with every keypress which has a performance impact with heavy webpages)

I suggest every Pentadactyl user who doesn't need the better vim compatibility
or extended configuration options to check Vimperator out, its still in
development and certainly didn't get abandoned or superseded by Pentadactyl
despite what people are suggesting.
There's also the (bigger?) question whether randomness helps at all, e.g. whether P is weaker than P + a source of random bits. In practice, randomization does help, but like with P vs NP as far as I know nobody has proven anything definite.
Auditing Shooting Rampage Statistics
TL;DR: This is a proxy server that routes HTTP requests from a unique subdomain (e.g. http://m7rp3u2ntr9t3xr.browserver.org) to a browser that's visiting browserver.org. The JavaScript in the browser then handles the HTTP response. This is possible thanks to a persistent connection between the browser and browserver.org, via some "websocket-like" protocol.

The title "node.js HTTP server, in your browser" is because the HTTP handler in the client (browser) has a Node-like API, see:

https://github.com/jed/browserver-client#example
The favorite incarnation of this is ci"

Change inside double quotes.

Or cit, change inside html tag. (not sure if this is in vanilla vim but I think so)

Replace " with any of these (,'{,[,< for other powerful commands.
UNC Acqui-hire study
Do you know all the words in that sentence, and just can't seem how they work together to create meaning, or do you have problems with any specific word?
This is avoidable if you use Ctrl-C instead of escape. It works identical to [esc] in all ways except one (the InsertLeave autocommand will not be triggered). If you remap Caps lock to Ctrl, you even get a more ergonomic way of escape, since you don't need to move your hand the way you would to press [esc].
Well, I guess to be fair. Windows 8 styling is something that you could do in CSS (and is done in CSS for some apps), so HTML5 apps will look native (to Metro).
In terms of Vi(m!) emulation, emacs' evil-mode (http://emacswiki.org/emacs/Evil) is pretty damn complete. The only real issue is properly integrating it with the rest of your Emacs environment.
After 48 hours, $500 puzzle remains unsolved
So, his biggest problem with vim is that he's not used to vim and used to another editor.

Got it.
Spreads were measured in 1/8ths of a dollar because the stock market was stuck in the stone age. I'm willing to bet that spreads would have tightened substantially after the switch to decimal even without HFT.
Best Call Me Maybe Parody Chatroulette Style
Yeah, I'll buy this concept that there was the Ur-entrepreneur from which all subsequent economic activity sprouted, the one who started the cycle of economy -> infrastructure -> economy.

... So what? It's academic trivia that tickles to the brain to think about, but it has no bearing on society today.

The origin of this thread is someone (unsurprisingly, given that this community is biased towards me-first people who think they're better than the plebes) decrying the "moochers" and acting like they are entirely self-made. I think we both agree that train of thought is a load of bull.

This whole argument, every time it comes up, is really just moralizing and brow-beating in the guise of economics. Worse, it's moralizing and brow-beating by the gross and unsubstantiable assumption that the bulk of the world are lazy no-goodniks.
By calling them esoteric, you've demonstrated what you are missing. The keyboard shortcuts are made in such a way that they should feel natural with regard to the task they accomplish. Once you master enough of them, you won't believe how fast you can type and edit code.
Has almost nothing to do with the age. Most dotnet shops wait for MS to give them what they need. Java developers are more inclined to create (and share) their own solutions. It also doesn't help that MS actively cannibalizes and rebrands open source projects.
Yes, he needs to have a Node/Socket.io server somewhere.
> Please note that all our volunteers... are required to buy a ticket.

Ouch, full price £95 to work at a bar.. why would anyone want to do this? You would have thought at least a discount!

They say it is not profit.. where is all the money going? or is it the sort of non-profit where one guy has a big fat salary? Most of the networking stuff seems to be donated, speakers are unpaid (and also have to pay full price)..

I don't wish to shit all over this, it's a great thing.. (and i'm sure there are costs that need to be covered) but some more transparency would make me a lot more comfortable with it..
I try very hard to follow PEP 8, but I have noticed some very nice python code(such as the setup portion of Peter Norvig's beautiful sudoku code http://norvig.com/sudoku.html) that alligns equals signs using more than one space. I try to use allignment when it makes the code easier to read, but if I'm unsure I will defer to PEP 8 and not allign.
My biggest problem with vim is the fanboy base. You all are worse then mac users. (typed from my mbp) Get over it, its an editor, a tool, not the end product.
I can see the headlines now: "Is Google's Generous Post-Death Policy the New Unfunded Pension Liablity?"

EDIT: Google's policy is not life insurance. The post-death salary payments appear to come out of Google's pockets, not the pockets of an insurer or reinsurer.
/EDIT

This may help Google compete right now, but in the long run, it will be the same drain on the company's resources that pensions were for Detroit. When Detroit was giving out pensions like candy, it was the top-grossing industry in the world; they were making margins close to what Apple makes today. It helped them recruit the best and brightest talent. But then a funny thing happened: the market corrected itself. Cars stopped earning bank. Margins fell, and even the biggest carmakers started going out of business.

We're in the glory days of the web industry, the only difference being that most websites don't even make money before getting sold. But investors will catch on, eventually, like they always do. And when that happens, policies like this will start to go away, just like they did for Detroit.
It's funny to see more of these articles about China where westerners get their panties in a bunch when they find themselves in a similar situation most other people have been in with respect to the west. I should write a similar article about my American/European dream. I hope the Chinese are able to take criticism better than the west. Westerners can't get over their superiority complex.
I find this title rather misleading. There is no node.js HTTP server in your browser. Meaning, you cannot do anything that is part of Node.js in the browser "server"

The browser is still running its original js engine with none of the Node goodies. It merely receives proxied requests, does some stuff to it, then sends it back to the proxy, which returns it to the client.
Here goes:

You think that Microsoft's stock price is directly related to how much it rained in Seattle. So you look at one day and see it rained 10 inches and the stock price was $20. On the next day, it rained 6 inches and the stock price fell to $12. What's the relationship between rain and stock price? Obviously 2x. How would your figure that out mathematically?

(Inches of rain) * ( relationship ) = ( stock price )

So we must find a relationship ( we'll call it r) that works for both of these equations
(10)(r) = 20
(6)(r) = 12

Obvs r=2. That was easy. What if you think this is too simple and the stock price is actually related to both rain fall and the temperature.

We need a new equation
(Inches of rain)(relationship 1) + (temperature)(relationship 2) = ( stock price )

Relationship 1 and relationship 2 are different values, because maybe rain has a much bigger impact on the stock price than temperature. So we need to solve for r1 and r2. (Try making up numbers for rain, temperature, and price on 3 days, and you'll find this gets ugly to solve.)

Then you decide again this is too simple, and the stock price replies on rain, temperature, the moons distance from the earth, the amount of red cars you see on the way to work, etc. Now we have a lot of big equations, that we'd like to solve. Once we solve them we can determine the relationships each factor has on the stock price and tomorrow we can look at all the inputs (temperature, rainfall, etc) and predict the stock price. Matrices are a way of representing all these equations at once.

Matrices are just a data structure, a way of representing equations. Just like computer data structures, matrices have certain functions that you can perform on them, like adding or multiplying them with other matrices.

There are lots of applications that use really really big matrices with thousands of inputs and we'd like to solve these matrices ( ie. find the relationships ).

There are a lot of ways of solving this, like Gauss-Jordan Elimination (which you probably know how to do even if you don't know that you know how). The problem is that most of these algorithms are very slow, because they perform lots of computations manipulating the matrices in order to solve them.

(I have to get back to work so the rest is real short.) In short, this new algorithm is just a really clever guess and check, sort of like genetic algorithms. The algorithm guesses possible values for each relationship. If a set of relationships (aka a vector) fits some of the equations (but not all), then the algorithm generates more relationships similar to it. This goes on until the algorithm finds a set of values for relationships that work in each equation.
This is exactly what I believe.

CDA: https://en.wikipedia.org/wiki/Section_230_of_the_Communicati...
I don't really see why this is special. It's just a websocket connection that happens to show every request made to the server. Your browser is not a server, no matter which way you cut it.
How can something be illegal but not punishable?
Moderators and site administrators can change titles, and often will if they feel that an existing title misrepresents the content.

As to the question in your title: anybody on the same network as you. HN does not use a secure connection, so arbitrary people can listen for your session cookie and therefore impersonate you. This insecurity can be mitigated (but not eliminated) by using a VPN to a server on a more secure network
When I was doing Java I used Eclipse for Java and vim for everything else. You are correct: Eclipse is better for Java mainly for the refactoring support. Now, I am mainly working with Ruby and use vim exclusively. I have not found any IDE that works well with dynamic languages.
Morpheus lander first free flight and failure
I use a combination of Ack (to search for the instances of the code I want to refactor), and Vim's search and replace feature.

I primarily do TTD style development, so it's very obvious where things break when I refactor something. I know a lot of Java devs rely on refactoring tools, but I never really had the need for my Ruby and JS work.
Yes, most of them are normal coding practices. But ways to write better code generally are or at least should be normal coding practices. But many people do not know what the normal practices should be.
Wow, thanks. Was this always there, or did it come as part of the recent redesign? I remember searching the source of the previous project pages for anything resembling what should have been a launch date, and couldn't find it anywhere. Maybe at the time I was just delirious.
The part where Mike Murray talks about it shifting the balance of power from "Companies running people to hopefully people running companies" is ironic considering how Jobs ran Apple once he got back.
So, it's not a new take on POW (plain old webserver): https://addons.mozilla.org/en-us/firefox/addon/pow-plain-old... which apparently have been abandoned, and could use a fork (source at: http://davidkellogg.com/pow/ )?

Apparently there's a newer variation at:

https://addons.mozilla.org/en-US/firefox/addon/browser-server/

and of course there's Opera's Unity.

I do get that the idea is that it "just" uses javascript (the server appears to be down, so I'm actually guessing) -- but when such projects already exist, I kind of expected more...
The site don't show without javascript. Why do I need it just to read text?
Do you refactor so often that this actually becomes one of your main issues? Simple refactoring can be done with :argdo or :bufdo in combination with :%s. For more advanced cases, I know there are plugins for at least some languages. I use ropevim (http://rope.sourceforge.net/ropevim.html) for Python, and its refactoring tools are very good. I suspect there are similar tools for other languages, but I've never used any.
These are honestly the two biggest criticisms I hear about Vim; and, if they're features you really do use often, I don't really have any good response in store.

Regarding refactoring; I don't really miss it at all. For renaming, I simply use vim-ack and find where a rename would need to take place. In most cases (for the projects I work on) we're talking about the difference of maybe 30-45 seconds.

Intellisense is cool; there's no doubt about it and there's not really anything that comes close in Vim (omnicompletion really does pale in comparison). That said, the only type of projects that I've ever felt I really used Intellisense were sprawling Java applications. I've never missed it while working on JavaScript or Ruby projects (and, anecdotally, I've heard many C and Python developers also talk about not needing this feature).

Ultimately, Vim benefits me with overall productivity (for example, it takes Vim an order of magnitude less time to start up than Eclipse on my Macbook Pro--and then proceeds to lock up every few minutes while it does GC or whatever the hell else it does to just randomly stop from time-to-time). While I'm in the mode of writing and editing code, it's also significantly faster and easier on my hands and arms to be totally keyboard focused.

All that said, it's a really text-centric form of programming that is somewhat different from the hand-holding (not meant as derogatory; just a statement of fact) and all-in-one approach that an IDE can give you. There are some contexts (Java) that just aren't well suited to editing in Vim (but they're probably not suited for Sublime or TextMate either, honestly).
This site answers a lot of questions for a lot of people. It's a really great site that closely mirrors the KS design. Nice work!

Things I'd like to see added:

Length of campaign, also search by launch/end date

Search funding goal with upper/lower constraints, not just a "close to $#"

Search success by % of goal reached or $ pledged (again, with upper/lower bounds).

# of backers

# of updates posted

An API for access to the data, so others can do analytics on it

Having scraping experience myself, I'd be happy to contribute code to accomplish some of these if you're interested in outside contributors.
> So the driver on the highway is subsidizing mass transit.

And by doing so, directly benefits the driver on the highway by keeping mass transit users off the highway.
Just one of the many ways third parties fix broken things on Craigslist. Things Craigslist refuses to recognize.
I like this title better: Why Our Application Was An Excellent Use Case For Developing In HTML 5, YMMV
Ask HN: Why PEP8 favors using spaces over tabs for code indentation?
This is something that I, a novice python wannabe,has been struggling with. I love to use tabs in my editors to indent code. Much easier to remember than using 4 spaces (as per PEP8 standard). Can some python expert clarify this ?
...I'm looking forward to WebRTC, which should make this obsolete, right?

http://www.webrtc.org/

That said, this is cool!
It permits the circumvention of the entire process, so if you think there's any security then it's a security hole.
No. His problem is that not every editor is vim. Or at least like vim.
I started using VIM 3 months ago. And now I can't fucking use anything else. The ergo gains of vim are so rediculously awesome, and NOBODY else does VI right, other than VI. Even Sublime 2, it has vintage mode but its not VI, it's missing most of the magic. This is why we need a new VI. One that has better syntax highlighting, one that can use something other than VIMScript AND STILL support all of vimscript. Something with better graphics like what Sublime 2 has, but still lose nothing of VIM's power.

Tough project, but needs to be done.
How Do You Tell an Uplifting Story About Droids Taking All of Our Jobs?
The article isn't loading. Google cache doesn't seem to work either.
This is like a bizarro-world lambda calculus, complete with its own Church numerals.
Hell, looking at Safari, I see no reason why you couldn't put together an interface like this in HTML/CSS. To the grandparent's point about Java Swing, I don't have much experience with Swing, but I did see a little as I was entering college in 2003 and it objectively sucked. And that was 4 years after the hypothetical article title presented. I think the biggest thing hindering the HTML/CSS thing on certain occasions is performance, and even there, browser performance is pretty damn good these days.

Edit: My last sentence may or may not have somewhat proved what the grand parent was trying to say.
Now taking photographs in Moscow subway ('metro') is allowed, and groups of tourists with cameras could be seen on most picturesque stations when I last visited it in 2011.

Next to all the granite and marble, large bulkhead doors can be seen in many passages there. Currently all are open and not very visible, but certainly intended to insulate stations in a case of emergency, such as a nuclear attack.
Yes, yes you are. :P

In all honesty, a lot of Vim users set up some of these same shortcuts for editing their commands since chording is really the only way to get to some of that functionality--and as long as you're going to use chords, why not use Emacs-style?
Your Bottleneck is Dead. Long Live Your Bottleneck.
The title might be a little too ambitious, but it is partially justified as the HTTP handler in the client (browser) has a Node-like API, see:

https://github.com/jed/browserver-client#example
Not sure how long it's been there, but I feel like it's not a super-recent addition. I never really paid much attention to the launch dates.
Re-reading your question, since you are already familiar with linear algebra, the thing you need to know about is finite fields. But read the whole thing, it's in a logical progression.

OK ... so a linear equation is one of the form:

ax + by + ... + dz = n

where the a, b, d and n are constants and the x, y, z, etc are the variables. You may be familiar with these when the constants are real numbers, but they can be from any field (more about that in a minute).

An example of a linear equation is

3x + 5y - 2z = 1

So a system of linear equations is when you have lots of these. In large systems you may have literally millions of variables.

So what's this about a "field"?

Well, in general the constants don't need to be real numbers. There are properties that we want, such as addition, multiplication, subtraction and division, but there are systems that have these sorts of things that are not the real numbers. These are called fields.

For example, the rational numbers have all the properties we might want. We can add, subtract, divide and multiply rationals, and things work the way we would want.

But another example is the integers modulo 5. The numbers 0, 1, 2, 3 and 4 have all the properties we want. We can divide by 2, for example, but multiplying by 3, because 2x3=6, which is 1 (modulo 5).

So we can have a field (a system with all the operations we want) that only has a finite number of elements. There are others, but the most common ones are to take the integers modulo some prime number. The proof that we get a field is not har, and is actually interesting, but some people find it tedious.

So Prasad's work is for solving systems of linear equations where the constants are not real numbers, but come from a finite field.

Finally, one of the most common finite fields in the area of computing is the field that has just two elements - 0 and 1.

The other answers in this sub-thread are pretty good. Again, if you want to understand you will need to "read like math", but once you've done so, come and ask again if you have any questions.