skysight-inc/HackerNews huggingface dataset:
The main advantage in bringing OO concepts in the Lua world is actually to improve code modularization. There is no such thing as classes or modules in Lua - although there is a notion of 'environments' defining the scope of global variables.
Grouping related functions/variables into classes is just a way to improve the maintability of large Lua chunks, it's not about transforming the language into something less simple.

I wrote my own library to implement OO concepts in pure Lua 5.1 several years ago; the code and details are still available at http://lua-users.org/wiki/YetAnotherClassImplementation.
#4 is most applicable to me. I'm always one bug fix away from releasing a new version, but don't manage to release often enough.

IMVU runs a great blog (startup lessons learned) that you should read regularly if you operate a web startup.
Port Numbers
What sort of hit? Is it just a bit pokier or does it get really bad for anything in particular? Anyone got any actual data?
The problem is that people confuse correlation with causation. A being a predictor for B does not mean that A causes B, just that A and B tend to occur together.
I don't see anything in the spec about setting "regions" of dynamic content: https://wiki.mozilla.org/Security/CSP/Spec

I understand how you could think that was what was involved, as I got the same impression from the article and also thought that was dumb. However, that's not what is going on. You shut down broad classes of functionality entirely, and are required to provide all legit Javascript through <script> tags, which furthermore must come from your whitelisted sources.

(Actually, there are some other modes too; consult the spec for details. However, I expect this is the one people will be talking about.)

The article isn't exactly wrong, but it doesn't accurately convey what is going on, either. Basically, if you can discipline yourself well enough to only use included files (which isn't a terrible style anyhow), then this allows you to ensure that you won't execute injected content.

Is this something that you should be correctly escaping? Yes, absolutely. I am a huge advocate of that in my workplace. But I would certainly take advantage of this extra layer of protection, too, rather than rely on everybody in my company getting it all absolutely right, all the time. The problem with something like escaping is that you make one little error and you lose everything. This goes a long way towards mitigating that.

I haven't done a lot of thinking about this, but it looks good; in general, voluntarily discarding privileges you don't intend to use is a good security practice.
Learn how to improve conversions from examples
Startup idea: Emphasizing the "Reuse" part of the 3 R's
Speaking from my own experience, we're talking about, at most, maybe a 5% speed penalty in some operations; most others happen instantly on both systems. Can you provide a concrete example where Mercurial's noticeably slower than Git at the same operation?

Edit in response to above edit: those stats are for Mercurial 0.4 through 0.9.5. The current version is Mercurial 1.3.1. Seeing as there have been piles of speedups, including several that fell out from Python modules getting rewritten in C, I find that page highly dubious.
While I agree that git's error messages can be unhelpful, I still think that this guy is using git improperly when he tries to "merge upstream changes into your local, uncommitted modifications."

A huge motivation for using a DVCS is that you can commit as many times as you want without worrying that your in-progress, hacky changes will affect someone else's work. Combined with git's powerful branching, you should never have an excuse not to commit a change set before a merge.

Also, he whines about not being able to merge with uncommitted changes, and then gives an example of how to do it! Ridiculous. It's three intuitive commands. That's what stashing is for.

I do agree with his points about git reset. The args are very confusing. Reverting to the most recent commit should be more intuitive. However, these arguments do not in any way point toward a need for an entirely new interface.
The FAQ is pretty informative: http://labs.adobe.com/wiki/index.php/Applications_for_iPhone...

I especially found this useful:

<quote>Which native iPhone APIs and functionality are supported when using Flash tooling?

The following native device APIs and functionality are supported:

- MultiTouch

- Screen Orientation

- Saving images to Photo Library

- Accelerometer

- Geo-location

- Cut / Copy / Paste

Can applications take advantage of hardware acceleration?

Yes. In some cases, the rendering of Flash content will be hardware accelerated.

We will publish more information on this when we release the public beta.</unquote>
* "checkout" is a destructive command

Most VCSs have a destructive command. If one doesn't expect the destruction from the command, they will no doubt be perturbed.

* You can’t merge upstream changes into your local, uncommitted modifications

Commit.

* Git’s merge conflict resolution workflow is unintuitive

Subjective but I'm curious which VCS has an intuitive merge conflict resolution workflow. I assume this means that without previous experience with the VCS a developer can (immediately?) intuit the workflow.

* Interface for working with the index almost universally confusing

Three switches for a single command. If you want to operate in a business as usual DWIM manner you can just remember --hard.

All that said, I do believe git reuses some commands in a semantically elastic way, sometimes to the confusion of new users.
Personally I don't believe that traditional schooling is the best way to learn anything. Especially if you're 25. I don't like universities, I don't like being assessed by teachers and I don't encourage positive attitude towards schooling in others. I know this is controversial point, so please let's not make a flame out of it.
The title is a wild exaggeration. The article itself points out many UI gripes that every user of git runs into. Fixing those gripes would absolutely not constitute the creation of a new UI.
That's one of the best descriptions of a programmer's tool I've ever seen.
To me it reads like a why use mercurial instead of git piece.
Bonus for sailing - I don't think I've ever partied with anyone harder than I have with sailors.

I lived with the captain of the racing team in college and we hosted the party for our regatta. It lasted the whole weekend and we built a special table to accommodate the flipcup (though, they call it boat racing and it involves a megaphone)
1. "checkout" is a destructive command

Yeah, so? "checkout <branch>" changes the working dir's files to match those of <branch>, and "checkout <file>" reverts <file>'s contents to its original. It's documented and does what it says.

2. You can’t merge upstream changes into your local, uncommitted modifications

Why not just commit your "hacky" modifications onto a local branch? The great thing about Git is that your commits/checkins don't have to be perfect, since no-one else can see them until pushed/pulled/merged anyways.

3. Git’s merge conflict resolution workflow is unintuitive

If you've used Git at all, you should be comfortable with the fact that you need to "git add" files before you "git commit" them. Resolving changes is no different. "git add" each conflicting file and then "git commit".

4. Interface for working with the index almost universally confusing

Maybe you have a point there.

I'm actually using Git GUI a lot more than the command-line now. The only time I've used the command-line recently is for pruning, which the GUI has no way to do (it can only compress). Git GUI is pretty friendly.
I have made my case, and with your help, made it even more clear. I think you are completely wrong in your position ... but then again, emotion may be clouding my judgment!
And Woods alone attracts a not-inconsiderable portion of the audience: TV ratings for this year's US PGA Championship were around 50% higher than for the same tournament last year, the principal difference being Woods' absence in 2008 due to injury.
I always wonder: "How can they enforce such laws without putting police officer behind everybodys back 24/7 ?" and if they can't why do they come up with such laws?
Yeah this is good for everyone. However it might be bad for Flash's chances in MobileSafari, however. Apple wants to funnel people through apps, not web sites. If they can make the argument that the iPhone supports flash because you can compile to native format, it might take the heat off them w/r/t integrating Flash into Safari.
It is almost certainly very viable, provided you don't plan to get bought out.

Near as I can tell, a worker cooperative is nothing more than an LLP with a cool name. Many law offices, consultancies and family businesses are structured this way.

http://en.wikipedia.org/wiki/Limited_liability_partnership
yeah, but I thought that's how judicial system in the US works - they add listed value of every single stolen/smuggled/whatever piece without any respect of mark-to-market for the whole batch?

and that's kind of understandable - court has no time/expertise/willingness to figure out what "market" value of stuff should be.
> Most VCSs have a destructive command.

And the name tips you off that you're about to do something destructive. Like svn's "revert". On the other hand, 'checkout' sounds fairly innocent to me.

> intuitive merge conflict resolution workflow.

IIRC, recent versions of svn walk you through it, asking which one you want to keep or letting you edit the file(s).

I actually use git (the branches are really nice for some things), but I'm considering VC systems for office use, and I'm not quite so sure I'd stick my neck out and recommend git.
If beer counts as a hobby (drinking it) then count me in there.. But more seriously I take cooking pretty seriously as well as fly fishing and running.
<?php
$js = new JSContext();

$obj = new stdClass;
$obj->age = 19;
$obj->name = 'Roger';

$js->assign('me', $obj);

$script = <<<END
function whoami() {
str = 'My name is ' + me.name +
' and I am ' + me.age + ' years old.';
return str;
}
whoami();
END;

echo $js->evaluateScript($script);
?>

So far, I like. Wonder if it's horrendously slow.

http://devzone.zend.com/article/4704
Yes, that is correct. I'm sure everyone had had this feeling with his job at least once. But still, somehow we manage to roll this over, right? Like for example we start our own businesses - to make our passion have a sensible aim, so that it would matter again. Or maybe just having a timeout helps. Anyway, I think it's way better to have a passion you're tired of, than not having one at all.
I just realized I'm distracting myself by reading a blog post on how to focus.
I actually thought Pownce was an interesting product I'm actually kind of surprised it never took off, except it was too "Twitter-like" so it never got the network it needed to gain critical mass.
I often refer to Git as "software of cruelty." I use it daily and sometimes still end up shocked by its behavior.

The concepts underlying git -- a content-addressible filesystem, trees, commits, etc -- are elegant. They're nearly pure. The "front end" exposure on the command line? Not so much.
And burnt down his house for good measure.
Duplicate of http://news.ycombinator.com/item?id=862331
> …will overwrite any local modifications you may have to foo.c without asking.

*NIX commands do things without asking. Your computer serves you, not the other way around. If I wanted my computer to double check everything that I do, I'd run Windows.

"(y/n/a)" just leads to awkward shell scripts.
No, this is an AP story, that's a blog post.
You have a few good points. Most of the things I learned wasn't from class; it was in my spare time. I hardly use anything covered in classes in my day to day work.

However, college was invaluable in making connections, making friends, finding like-minded people, etc., etc.

Also, whether you believe in it or not, you're not the one who's trying to find a way out of a rut. Traditional schooling might work for your friend.
I guess you haven't heard of the Department of Sabotage, in charge of keeping government from being too efficient ...

(Featured many moons ago in an SF story, possibly by Mack Reynolds. Not specifically Dutch, pace the coincidence of the word's origin.)
I suspect you know this, but as of Lua 5.1 there are modules: http://www.lua.org/manual/5.1/manual.html#5.3
Does that help you if you reside in the US and file taxes in the US and do business in the US?
Yes, but if they determine punishment based on the value of 'goods' 'stolen', then hopefully they would get an accurate estimate of their value, not values inflated by law enforcement.
It already was a cheap solution to a complicated problem.
Well put. Gary V has 852,497 followers on Twitter - any time he launches a new product/book/cruise, whatever, that's an immediate 852,497 pairs of eyeballs on his product. Now that's a great head start.
It's my fault for being imprecise, but I'm saying, developers can already designate regions of their output as "XSS-safe" or "script-free", without a browser extension.
She'll be out here in a week for our crypto-for-penetration-testers class, so I'm happy to ask her.
I had to request my FBI file once, and there was none. But the papers they send you are woefully misleading. It says something to the effect of 'Below are all the documents:' and under the rest of the page is blank. A 'None exist' would have been a little helpful. I kept thinking that they forgot to mail me some other page, but I was able to get by with what they gave me.

IIRC the cost was $18. But don't send a personal cheque, or you'll get a call from some FBI processing person directing you to fax them credit card authorization or to completely refile the request. Mine took like 7 or 8 months to process. It was 3 or 4 months after I sent off the request before I got the call about the issue with payment through a personal cheque, which gives you an idea of what the backlog was probably like. This was around 2 years ago.
There's a lot of hackery you can do if you like gardening as well. It's a constant battle of fine-tuning.

I've changed my watering schedules no less than 20 times this summer to try to get optimal moisture levels. I also do everything organically, so it's a little more challenging to take care of ants when you can't just shake on some Amdro (the solution is nematodes btw).

There is no limit to how easy or how complex you want to make things. I've made watering helpers with some drip line, bamboo and a 1 gallon milk container for long weekends when I was starting plants out, or planted hot peppers around some plants that one of my dogs insisted on tasting all the time.

It really is a lot of fun and way more hacker friendly than you might expect at first.
I still find the most confusing aspect of Haskell to be that it makes me feel like I have to think like a mathematician rather than a programmer.
if you make a statement like "race is a predictor of academic success" you'll get labeled a racist

Not necessarily. Whoever you're talking to will carefully consider your language, tone, and any prior knowledge of you to figure out whether you're going to use your statement to support or attack their political beliefs, and then call you a racist as appropriate.
Ask HN: Where are the Chicago tech geeks?
I'm a student in Chicago and I've had a hard time finding a tech scene here, at least one that I fit into. Wondering if there are many of you on here and what your thoughts on being a tech geek in Chicago are [compared to the bay area and NYC, specifically].
That's actually really cool.
I'm really enjoying this series of posts.

Did anyone else think this one had a little more interpretative language, though? "sweethearts" "nails in coffins" or "schizophrenia of people’s racial attitudes" all seem to distract from letting the figures speak for themselves, and given the explosive potential in the figures I guess the less editorial comment the better.

Edit - I'd also like to see a brief post that just looks at the zodiac chart. Would be the best place to send every zodiac-preacher I know to 'disprove' so much of what they argue (excepting the Capricorns, because they don't listen to evidence anyway).
> There is no such thing as classes or modules in Lua

Actually, there is a module system (http://www.lua.org/manual/5.1/manual.html#5.3), built on the environment manipulation methods. It was added to the language with 5.1, and seems a bit less mature than the rest of the language, but it's there. It's similar to Erlang's module system, except instead of listing exports at the top, anything not flagged as local is exported.
Actually yeah. I cannot watch Hulu videos in fullscreen on Windows, but I can on my Mac. This is a dual-boot setup btw, so identical hardware...
Actually, I tend to agree with your point in the other comment you made in this thread, asking who will actually use it. As one of the few who care in my company, I am both the only one who might set this up, and one of the few who are careful with my encoding in the first place. It does seem an awfully narrow target of people who can't/won't encode correctly, but will do this thing which will also be hard.

Still, I might use it, contingent on broader support and some burn-in time to ensure that it doesn't somehow create some sort of huge hole itself.
Note: Requires PHP 5.3.x
So, for people who have been working regularly with Clojure, what environment have you been using?

I've been having bizarre swank issues across a few machines, which I've just written off to my inexperience with classpath issues. Without it, why not use Vim or Textmate or something else? (Instead of emacs)

I'm genuinely curious what people are using to write Clojure; or if everyone is just using emacs.
Yeah in Seattle area atm, thinking about moving to San Francisco though. Where are you located?
Love kites too!
Same here, 'cept s/mercurial/bazaar/g. ;-)
Without wanting to add fuel to the fire (really), I always think Git tries to do far too much. I think SCM should just gracefully version your code in as simple a way as possible.

I went from SVN to Git a while ago and it was a great improvement. Then a friend pointed me at mercurial and I just felt it was a revolution. Finally my code felt portable.

With all that said Git has some great tools for large and complex projects with many contributors.

The one thing that sells HG to me though is it's insistence on non-destructiveness. If you made changes to files it always reminds me to merge changes properly without overwrites. I cant recall how many times that has saved me a n hours work :)
They had to come up with SOME reason for folks like me to upgrade from CS4 to CS5. CS4 is already so feature-rich I probably never would have upgraded.

Add this little gem, and well, here's my $400-$700. Done.
Microsoft’s new multi-touch mice demoed on video
Aaron, how did you know on Feb 13 that the FBI had opened a file on you? From my skim, the first contact was April 14, or was there something else before then?
Good point. That new Cavs Chinese ownership can definately be capitalized on, and their is a lot of Global money to be made from that deal. They loved him in China during the 08' Olympics in Beijing. Will be exciting to see what he's gonna do come next summer. Europe, Stay with the Cavs, NYC, Jersey (Brooklyn), etc. His options are endless. At one point, I thought the Jersey move was out because the team was having so much financial trouble with the possible Brooklyn move. But now with the new Russian ownership, along with his relationship to part-owner and friend, Jay-Z, that may be a viable option again.
On Authoring iPhone Apps via Flash CS5 (The downsides)
Correlation doesn't imply causation, but it does waggle its eyebrows suggestively and gesture furtively while mouthing 'look over there'.

(From http://xkcd.com/552/)
I just realized that we both created our profile 573 days ago :)
Endurance athletes fare significantly better than basketball, soccer and sprinting athletes, who fare better than power athletes, who fare better than couch potatoes.

In terms of life expectancy, endurance athletes such as marathoners and cross-country skiers live about 2 years longer than sprinters, 4 years longer than power lifters and 6 years longer than the general populace.

http://www.mdconsult.com/das/citation/body/163630869-2/jorg=...
git porcelain is not ready for newbies, use tortoisegit or other gui interfaces.

I dont understand why people should have uncommitted changes for days

Branching is cheap and local, commits are local, no need to expose private work until it is ready to be merged with master, team accessible branches.
> You can’t merge upstream changes into your local, uncommitted modifications

No, you can't, and I'd be horrified if I ever worked in a system that did that again.

First, there's never an excuse to not commit. What you commit is not necessarily what you publish. rebase -i to clean up artifacts of the junk you've done if you're worried about it (I always do it that way).

But more importantly, when I pull code and what ends up is worse than what I had before, I'd like to go back to where I was.
Er, not going to disagree that it's off-topic, but do you know what an ad hominem attack is?
http://en.wikipedia.org/wiki/Ad_hominem
"Outside the constraints of reality." I guess the billions of dollars that go to our military to subsidize...uh, I mean, protect our supply of oil is reality? Wow.
"A search for wages for Swartz at the Department of Labor was negative."

:) I wonder how they will deal with more and more hacker-type people of independent means.
Ma.gnolia is now Gnolia
For those in the bay area, that's one of the books we're going to cover at the UX Book Club. The next one is Mental Models, then the Maeda book.

http://groups.google.com/group/ux-book-club-san-francisco (for more info)

http://www.facebook.com/group.php?gid=52431519012 (for RSVPs)

It's definitely not a group just for designers, we've got engineers and researchers, so I'd encourage anyone to show up. I've gotten a lot out of it, I moderated the two meetings on Bill Buxton's book and it's one of the best non-work things I've done since moving up here.
I currently live in Gainesville, Florida. When I first arrived, I hated it. I thought, "nothing to do, nothing good to eat, no interesting people, weather sucks...". Most of my friends felt the same way. But somewhere around a year or so of living here, I realized that it was much easier to be bitter about life than it was to be happy. It takes effort to unhitch that tendency to compare. It takes effort to try new places, to make new friends, and explore surrounding areas.

Once I gave this town a chance, I began to see the good in it. My friends haven't. They are still bitter. And its very exhausting to be around them sometimes (not to mention slightly depressing).

I think its a little unfair to compare completely different cities with completely different histories. You can always find exceptions, and if you are really hell bent on doing this type of comparison, that's your prerogative.

You have to appreciate every city for what its worth. If you don't, you are going to be miserable.
I guess you didn't watch the video? The apps appeared quite snazzy, I am sure they used open gl es for them, so there is no reason they should be.

I hate flash, but I hate dealing with open gl even more. Maybe I will have to look into this.
Missile Silo Fixer-Upper Now Swanky Bachelor Pad
Agreed. I avoid merging (potentially extensive) outside changes/commits into my modified local files. It always seemed like a risky and unwise procedure in CVS and Perforce.

I think Git's alternative of stash, pull, pop is an improvement. That way I can fix conflicts properly at each stage, and handle big changes before reapplying my hacked up stuff.
>> "Anyone got any actual data?"

Is the SPEED of any revision control system ever an issue? To anyone? Surely it's 'fast enough that it doesn't matter' vs 'fast enough that it doesn't matter'