skysight-inc/HackerNews huggingface dataset:
Ask HN: In what scenarios use of node.js can be useful?
I am looking for possible use cases of node.js.

How is it being used right now? Are you using node.js in any of your project? What new can be done using node.js?
Mubarak might be richer than Bill Gates
A hypothesis is any testable, falsifiable conjecture. I can hypothesize that gravity is negative at one particular spot in your back garden.

As I understand it, a theory is any hypothesis that is believed to hold (at least for now, under the conditions it's thus far tested under, or based on the evidence we already have). In other words, a theory is a hypothesis that is provisionally considered true.

Thus, my hypothesis about your back garden could turn into a general theory of conditions under which gravity turned negative, if observations were made which supported it (which is, admittedly, unlikely!).

I'd agree with the Sacramento example above, i.e. that the only things we can consider facts are things that we've agreed upon/defined. This is a smaller set of things than people normally call facts.
Box2DJS - Physics Engine for JavaScript
>in a row
Exercise #1: Learning awk Basics
How can there be a right to something that someone else has to provide?

With speech you can talk, no one has to listen. But with food, housing, internet access, _someone_ has to provide it.
Yes, the product is open source, and there are a handful of churches using (or trying to use) the self-hosted option. I don't have good numbers on that, but I think you're right -- more churches are paying me to host than doing it themselves.

The City, and just recently, The Table are both bigger competitors.

...so you're saying, reduce the feature set and make the smaller product more focused? That's a good idea; thanks for the advice!
Fuduntu Weekly Update - Feb 12, 2011
You probably had a diesel engine and too much oil in the carter. This may be a case of self-ignition of oil.

Anyway, pressing hard on the brake would have stopped you.
I've used http://www.zendesk.com before. Using http://tenderapp.com now and liking it.
It's great seeing VC's get involved on this level with their portfolio companies. I imagine it makes explaining when things go wrong easier.
Put that in conjunction with that older article about the economics of apps http://communities-dominate.blogs.com/brands/2010/06/full-an... . If the numbers here are right, it would be cleverer for most people to make overtime at work, and invest that money wisely - any interest generating investment would then do better.

This comics put things in perspective... Coding an app or having a life, that is the question.
>>pronounced the death of Nokia for agreeing to work with Microsoft. The question is: why?

Because Nokia just gave up. Most people knew it would happen, but hoped they'd put up a good fight.

There are already articles comparing Nokia to Yahoo.
Book Review: The Tao of Programming
Also, if you use your brakes to slow down with a stuck accelerator but not stop you can wear out your break pads fairly quickly at 60 mph. At which point you're SOL.

EDIT: Reading a comment farther down, I'm reminded that this is a matter of the copper pads getting too hot rather than wearing away. Same effect though.
Sometimes the law and common sense have nothing in common.

I have different hobbies besides coding, so if I create a painting masterpiece my employer owns it? How about my latest culinary invention? The new can opener I just invented? Or my one month old daughter conceived in my spare time?

I call retardedness, but that's the law and we must obey it or fight to change it.
It's a good demonstration that the balancing complexity of the Anybot is really unnecessary in a domestic kind of situation with a flat floor. I expect telerobots to become quite commonplace, and as this video shows quite well building one is only a weekend project now, whereas in the past it would have been more complicated and expensive.
Reminds me of Ghost in the Shell: Stand Alone Complex, 2nd GiG, and how people get self organized.
That's pretty cool. This could work in mobile but Apple's review process kills it there and the monitoring part is hard. App stores, though, make this possible. I wish Apple would allow a post-review oath for trusted developers, those who have established a track record of successful releases.
I think not, since I've shut down the engine a few times in a long downhill on an empty but curvy road and been able to steer. The steering and braking assists (not sure what they're called in English) won't work though. Maybe if you turn the key all the way to off, putting out all the electronics etc. you might lock the steering.
Just set up the Wufoo, what do you think?

http://riskref.wufoo.com/forms/youve-got-a-lot-to-lose-well-...
Elopocalypse survivor — save what you can by forking, before it gets too late
Could the downvoter answer the question? In none of the cars I've driven does the "brake always override the throttle". Yes, brake is more powerful than the the engine, but that is hardly "overriding" in the sense that I understand it.
>>Users don't want too many options in the OS

why not?
Chaos Computer Club hackers 'have a conscience'
A similar thing happened many years ago when an early version of Half-Life 2 got leaked. Reaction was tepid at best, Valve went back and basically re-made the entire game (delaying an already delayed game for substantially longer), but ultimately resulting in an award-winning game with an amazing (for the time) new engine. The pirating of the leak was of course highly illegal, but you could easily argue that Valve wouldn't be where they are now without it. (Half-Life 2 also contributed to the success of the Steam download service, another first for the company.)
Energy-constrained? Egypt? Only if you have an entrenched, hidebound investment sector that is uninterested in doing anything but seeking petroleum rent and ensuring the continuation of its own hold on power.

Mistaking "oil" for "energy" is rather short-sighted, isn't it?
No, nobody is listening. Try to convince a Tunisian 30 years ago, that if no economical and political changes are be done to save the country economy and stability, a disaster may happen and cost dearly to him, in the first place.

He may understand, but he is not interested. He won't move. The same is for people and the whole world working with this banking system. They may agree that the system is bankrupt and may fail them at any moment. But only few are bothered with it.

When the system collapse, they start complaining and protesting.
If the floor is flat then yes, probably. The main advantage of the balancing mechanism is in moving over bumps. The Anybot is so expensive because it's a first generation kind of device manufactured in low volumes, and probably uses high end cameras or PLCs. $500 is a more reasonable cost, and I expect that if a large company mass produced them then the manufacturing cost would be much lower (similar to Kinect Vs other laser/TOF sensors).
No I think it's more about the corrupt and oppressive regime.

The people weren't chanting "give us food"; they were chanting "The people want to oust the regime".
clicking on submit should redirect to sign in page.. right now it requires clicking an additional link
15 Enterprise Startups in 30 Words
I find these little gifts from At&t kind of insulting. After years of doing nothing at all because they had iPhone exclusivity now they're trying to convince people to stay? Perhaps if they had done things like this all along it would be worth staying with the company.
Maryland man prepares for Vermont "Death Race"
Not Dead Yet: The Rise and Fall and Rise of Java
What happened to writing infrequently and being fine with that?
Woz was able to find some bad hysteresis in the cruise control system. It looked from my reading like the speed control system was over-damped, but I don't really see what it had to do with the media reports - given that you can exit cruise control just by touching the breaks or accelerator and AFAIK nobody reporting unexpected acceleration had been hitting the "faster" button on their cruise control.
quite happy with a Vaio X. however Windows really had to go - yes you can get a GNUserspace going with rxvt/ssh/git/bash from minGW/MSYS, but eventually youre throw into needing Cygwin for something, and then you need a decent/stocked package-manager for dependencies, and on
I haven't been using it for over an year and want to delete all traces of activity as well as my email from their databse (so they dont ever email me saying that they have released Digg version 13.0) and also if their site ever gets hacked, I'd rather not have any of my information in there.
I wonder if they have some kind of automated test suite just to make sure everything works fine. Having worked on large codebases, it's almost impossible to make sure everything is still alright manually, after a new deploy.
I'm not sure what the best place to continue such subdiscussions is, but I think we should put an end to it here. Let me just conclude with this:

I'd be surprised to learn that this argument is controversial among physicists.

The fact that an argument in philosophy is uncontroversial among physicists means exactly nothing, because they are generally too philosophically unsophisticated to respect the post-Popperian criticisms of what their jobs entail and what it is that 'science' produces.
My recollection of this is...The person who leaked HL2 actually hacked into Valve's network and could not find anything that could be considered a game, just a bunch of tech demos and assets (I downloaded and played the E3 demo). He essentially announced that Valve was lying to the public about their progress on HL2 right before the originally scheduled release date and delay. I believe Steam was announced before the leak, and released well before HL2 release.
"It used to have a very specific purpose - to enure memory operations with external side-effects did not get reordered"

Prevent reordering? I thought thats what memory fences are for.

--

I admit to having a (single) volatile varibale in my C++ codebase, used similarly to the pseudocode below:

volatile global bool flag = false; // [1]

thread1 {
while (whatever) {
do stuff
}
flag = true;
thread2.wait();
}

thread2 {
while (!flag) { // [2]
do stuff
}
}

[1] The variable itself is global, because I read someplace that the C/C++ standard does not allow local volatile variables to be passed to other threads. Logically, this makes sense, if a local goes out of scope before the second thread is finished with it. In my code this cannot happen, but I still make it global anyway.

[2] The important part is that this read is very fast unless the flag has been set (at which point I no longer care about efficiency). I don't mind if this is unsynchronized - if the loop runs an extra few iterations, that is perfectly fine, as long as the flag change is seen eventually (realistically, within a few iterations of the loop). I know that volatile only makes sure the compiler doesn't cache the value in registers and does not mean that the value will be synced or flushed or otherwise ensure it is visible by the other thread. On x86 at least, it will be, eventually.

My logic for using it in this way is as follows:

I do not care about synhronization - if the reader sees a stale value of flag, that is fine, as long as it sees the real value at some point in the future. I use volatile, because otherwise the compiler could simply cache the flag in a register completely isolated form the other thread. I also don't mind if the read is reordered, as long as it is within the loop and the value is used as the loop temrination condition (from what I read on the Intel site[3], the above code guarantees this - but the read may be reordered to appear elsewhere WITHIN the loop instead. This is perfectly fine in my case). I do need the write to appear AFTER the loop in thread1 and before the wait, however - again, afaik I don't need to do anything here, or should I put an sfence before the flag=true to be safe? Since I don't care about performance in the flag is true case, I don't mind adding memory fences in this case.

I wonder if somebody can let me know if my logic is off here (though it works on x86 and x86-64 and, accoridng to something I read on the Intel site[3], is a reasonable approach - however, I may port to ARM at some stage, in which case I will need to re-evaluate this code). My aim here is that the reader always reads the flag from the processor cache, so that its fast, but when the writer sets the flag, the cache is synced over the core interconnect and the second thread will, at some stage, see the new value.

Is this approach reasonable? Is it safe? I believe it is, but..

[3] http://software.intel.com/en-us/blogs/2007/11/30/volatile-al... Tenth comment down, posted by "spud".
Review What You Fork on Github
Camille grammer
camille grammer
News - healt - education - Entertainment - Photos - Gadget - movie Online - Trends - Online
It all boils down to this, the law is supposed to protect the individual, but the corporations have the money, and the law-makers follow the money, therefore the individual gets screwed. Corporatocracy is ruling the world right now but we are getting fed of it and even if it takes a hundred years we will make them serve the individuals that work for them and not only their C?Os.
Reminds me of the calacanis article about facebook's developer culture - continuous deployment not only makes updates faster, it democratized the process and gives every developer the power to make things better. Good for the product, and good for the team.
http://launch.is/blog/launch002-what-i-learned-from-zuckerbe...
Being Left Alone
Interesting stuff. I've been doing something similar with my sites for over two years now. Its more of an workflow than just a system really.

1. A staging server where the new changes are first tested
2. Production server which gets the updated and verified working code
3. In case of any trouble (which hasn't happened in quite sometime btw) the old solution backup is kept with a date and time and can be reverted just as easily as code is updated from staging server

You can actually use a load balancer to roll over the servers too while deployment and it takes the factor of downtime away to an extent. But this can't be done with a powershell or any shell script and a network admin has to be present at the time of deployment which makes it difficult.

I have had next to none downtime on my servers. Last I remember my sites going down was during a DNS shuffle well over 6 months ago, never because of some developer or sys admin screw up. Yes I do have more than ten deployments on a single site in a day.
The speed in your definition would refer to the temperature of the particle, and not the temperature of the vacuum. This paper has both the vacuum and the particle not in thermal equilibrium, so the temperature of the vacuum is not due to the speed of the particle moving within it.

You can also have temperature from a photon flux.
How to Fix the Flawed Startup Visa Act
Yes. All of the technology hurdles had been overcome five years ago, and I've been ranting about the imminent arrival of practical consumer telerobots for quite some time. Today the technology is a no-brainer, as this video shows. There are also completely untapped telerobot business models which are just waiting for the hardware.
What Computational Science Means
Ubuntu 11.04 "Natty Narhwal" Will Not Have A Release Candidate
Google CR-48 Notebook Owners Besieged With Flood Of Google Group Spam
TBH if you are a startup and have downtimes, people don't trust you. I know I won't go to a site if it failed on me on the second click because somebody was _adding features_.
Yeah, like the OP says it's good to network on and offline so I include a location and contact email in my profile.

But I used to watch the Lakers religiously. In fact I've got a signed jersey from Eddie Jones hanging up right now. One fan appreciation day starters were meeting briefly with fans, who could line up to meet Shaq, Kobe, Eddie and others. My friend and I chose Eddie Jones who was our favorite Laker at the time.
Thanks for passing this along.
Can you expand on that? I'm not familiar with Egypt's non-oil energy situation.
I use node.js to power my domain name generator:

http://impossibility.org/

It runs queries against a pool of lookup servers and aggregates/returns the results in real time. I'm also using it as a fast, low footprint HTTP server.
Is there a script ready anyone recommend for alike website as HN ? Got to design one about another subject and do not code at all. ;-) Thanks for your insights.
I think it culminated in that, but as with every revolution in history, the causes of these things are far more nuanced and complex than they tend to appear at first glance. The American Revolution was about far more than taxes on tea for example.
The introduction on the Powershell Wikipedia article is a good overview [1]. Powershell can also be used remotely, and various Microsoft products provide cmdlets (basically utilities) to use from the shell.

There are a few ways of dealing with IIS7:
* Remotely using IIS Manager [2]
* .NET-style configuration files - think httpd.conf
* Powershell cmdlets
* AppCmd.exe

SQL Server has Management Studio in various flavors, SqlCmd.exe or Powershell cmdlets.

The only time I log in to servers is to run installers or when laziness takes hold. These various tools work well enough that Microsoft offers Windows Server Core which only provides CLI access (and Powershell in the most recent version).

[1] http://en.wikipedia.org/wiki/PowerShell
[2] http://www.iis.net/download/IISManager
[3] http://learn.iis.net/page.aspx/334/install-and-configure-iis...
General factor of intelligence g, a Statistical Myth
"My team? well... it's me and my computers."

"What? they don't count as 'co-founder''? you must be kidding, this is XXI'
http://www.news.thejobhill.com/ajax/tag_search.php?query=tes...

You seem to have rudimentary protection against XSS, but it's not complete. You should escape properly. Backslashes aren't for escaping characters in html
Poll: Why are you building a web app? (Research for my book)
Fellow HN'ers! I'm currently finishing up a book on web apps (http://fivesimplesteps.com/books/designing-web-app-success), and would very much like to start it off with a little introduction about the varied reasons why people create apps. If you'd be so kind, please help me out with the poll below - thanks so much!<p>Why are you building a web app? (The primary reason)
For financial reasons (security/comfort/riches!)
Hobby / To scratch an itch (explore a subject of interest)
To change / improve the world
It's just my job / part of my job
For recognition
I work for ITA, which is being acquired by Google, and this is one way in which it's going to be a step down. ITA's noncompete is the narrowest I've seen; it only claims stuff that I do in the travel industry.
It's useful for streaming large data sets, such as audio or video files.

Here are some examples:

http://debuggable.com/posts/streaming-file-uploads-with-node...

http://blog.new-bamboo.co.uk/2009/12/7/real-time-online-acti...

http://blog.andregoncalves.com/post/1620276144/inaugural-twi...
I'm building a streaming HTML5 Twitter client called Denby: http://www.hellodenby.com/

(Although the hosted version is currently in closed alpha, you can check out progress on GitHub.)

If you want something more Tweetie than TweetDeck, check out Streamie: http://streamie.org/
That old chestnut again?

Standard C and C++ do not have a memory model and do not support multi-threading at the language level. You have to rely on compiler-specific libraries/APIs, or C++0x (which has a memory model).
Armchair psychology is inappropriate.
"Find me stuff I'm interested in"
I especially like the fact that it's generated automatically from Box2D for Flash!
Splitting at least 50% with the studios or labels is pretty standard. It's one reason why the Apple 30% app store tax makes no sense for some businesses (ebooks, vod, music).
what is wrong with Microsoft in terms of providing
developer tools or marketing support

Nokia doesn't lack development tools, neither marketing support.
They also have all the resources they need to produce an operating system / platform to rival iOS and Android.

They lack focus.

Android also had lots of flaws when launched, but Google & partners kept iterating. Nokia could have taken the world by storm simply because they can push lots of cheap smartphones all over the world. And the Ovi Store could have been the most popular app store. If only they provided enough consistency across what they are doing.

And Microsoft?

When choosing a partner you have to take into consideration the company's track record. Microsoft has been caught resting on its laurels several times over the years, with Windows, with IExplorer, with Windows Mobile. It also has been caught screwing several of its partners.

Microsoft transformed PC-makers in cheap complementaries to Windows and bloatware. Microsoft also forced PC-makers to only bundle Windows with new PCs.

For us (devs and consumers), Android and Windows Mobile may be good things, but for Nokia this will be a disaster.
What kind of "performance problems" are we talking about here? Taking 2 minutes to write to a database because of some poorly indexed tables? Or trying to serve millions of requests in under 100ms each by intelligently leveraging a caching layer?

Both, and more. If you have a math background (as I do), it is not hard to pick up enough practical knowledge to be usefully dangerous. Here are a few examples.

Let's turn on internal database tracing just for one web page so we can figure out why certain requests are slow.

What traffic can we move to read-only copies to reduce load on the main database?

We're going to do an Oracle 8 to Oracle 9 migration, let's track every single database request for a day, and then do them again later against a test database at full speed.

At the start of each web page our database driver pings the connection to verify that it is still good. This functionality is essential for failover to work correctly, but due to an internal locking issue it is causing Oracle severe trouble under load. Fix the load issue without compromising our ability to fail over properly.
I'm fairly sure this has been explored very thoroughly by the lawyers of both companies. Actually, I think this deal was something that the board was preparing for when they decided to hire a Microsoft man.
Facebook used to spend (1/0)% of revenue on hosting.
It would probably inspire more confidence to at least name the charity that you are planning on donating the money to. Donating to "Egypt" is great, but a lot of folks these days are wary of donation sites (like this one) that tend to spring up after major disasters without a clear plan of action. We've all been a little too burned by the Haiti charities that took a 40% cut off the top of all donations[1].

Also, you say "100% of sales" -- does that mean you are essentially eating the cost of the t-shirt itself? Or do you mean "100% of profits"?

[1] http://www.csmonitor.com/World/2010/0114/Wyclef-Jean-Yele-re...
I'll take the opportunity to remind people about my Hebrew HN-like site: http://bitorama.com

OP: care to share some info about the tech behind the scenes?
I wonder what Github thinks about the changes to this program -- whether it's fast enough for their needs. I tweeted this at github; I hope they respond. http://twitter.com/zckzck/status/36447074698399744
That's what I asked HR at the last place that tried one of these policies.

Suppose I make porn videos featuring animals and very old people - the company owns them, so I should put "A XYZ corporation" production on the title card?
Yes, there are tons of unit tests that are run (voluntarily) before commits and (automatically) on staging pushes.

And then once code is live we have many system and business-level monitors in place, so we know almost immediately if anything's wrong. More info about that here:

http://codeascraft.etsy.com/2010/12/08/track-every-release/
Your New Net Income – Down