skysight-inc/HackerNews huggingface dataset:
I spoke at Code Generation 2010 at Cambridge in the UK on my experiences implementing code generation in various parts of an existing shop's development process.

One of the low-hanging fruits in that regard is selecting existing and under-utilized models and making the most of them.

I found that SQL schemas were a great way to model a business domain even if you need to migrate to another database ... since you have so many tools (including free cross-platform visual ones, like MySQL Workbench) at your disposal, validation, decent type selection, options for more complex validations using triggers, everyone knows it (unlike UML), etc.

Another great 'model' that people are usually sitting on top of, also ripe for code generation, is the software dependency databases in many distributions.

Another is your RCS/VCS system.

Another is - and here comes the kicker - the filesystem, which with modern tools (inotify, etc.) can give an impressive amount of RCS/VCS style functionality (COW, event notifications, etc.) at kernel level.

What was that quote again? "Unix is simple, it just takes a genius to understand its simplicity". They weren't lying.
.. then you post about it to HN and have a handful of comments insist that it's not happening at all.

Well this is part of the problem. You weren't clear. You weren't clear in a way that other people asked you politely to clear up.

You turn around and accuse them of their own sexist behaviors.

When I read your initial description, it sounded like dozens of incidents that I have been party to when groups create documents.
Is there a real practical difference beween "strlen($str)" and "string::length($str)"? It may be a design decision that you disagree with, but it hardly gets in your way. It's certainly not "dropped" functionality. It also ends up being faster, as the core functionality is written in C rather than in userland PHP code.

I agree with your point about XSS, but I've seen XSS exploits in every language, so I can hardly consider it a PHP flaw. It's also literally a one-line config change to eliminate that problem[1]; the only reason that's not the default is that it would break lots of existing apps the next time they upgraded. Then again, that's also true for the wacky (err, copied from C) naming conventions.

[1] Unless you go out of your way, of course. But that's true with anything where you can decode html entities. For the record, the config change is "filter.default=full_special_chars" which will automatically sanitize all user input (GET, POST, COOKIE, SERVER) with htmlspecialchars.
Those are not UUIDs as in ISO/IEC 11578:1996 (GUIDs in the Microsoft world).

Obviously you can argue that the acronym applies correctly, but not its common understanding.
Even better, keep your arms on the side of your trunk, your elbows straight and flex your hands at 90 deg so they point away sideways. Now, move your shoulders up and down. Don't use any other joints. Each down move of the shoulder will pump blood into your hands with high pressure.

We call it the penguin dance.
Without TCS, Infosys and Wipro there wouldn't even be a programming culture in India.

If today as an Indian am able to think about all these great programming work, its because these people did the ground work for guys like me to build upon. Else my generation would have been wasted in doing that ground work.

During my childhood when I was around 5 it was common for my uncles to remark that I may have to go outside India to work as an engineer. If today I can boldly pursue an engineering career in India its because of these people.

Mega corps trolls don't realize this. Heck! Apart from talking, whining, complaining and shitting on great leaders they do nothing. Nothing is stopping you from doing what you think you should be the right.

If a person is not happy with what he is paid, or work offered. He can always work hard, quit and work for a foreign company. Instead of vomiting bile on an industrialist whose work provides employment to millions.
Yeah, derailing for dummies is a guide to tactics that people on forums use to ensure no questions are asked, skeptics are silenced and shamed, reasonable questions are avoided, and the speech is carefully policed.

In this case, no one is allowed to question rachel's account because the user name rachelbythebay contains a name commonly associated with being female. It's likely if the username was "robertonthebus" we would be able to question robert's assertions.

But this being Hacker News, I am hopeful we can get past your attempt to speech police and get back to a constructive dialogue.
Inside the second: A new look at game benchmarking (2011)
Persuasion Skills Black Book - Rintu Basu. http://www.amazon.com/Persuasion-Skills-Black-Book-Practical...
I should never comment after a fine and bibulous meal, but... I'm not sure how appealing I find the idea of a society where people thought in that way. Perhaps Bacchus is distracting me from the nuance of that point however.
Off topic, but I'm glad seeing people use facebook as a sort of blogging platform. If written in notes, I'm quite sure even photos could be embedded.

Your RSS reader would simply merge with your news feed.
Yeah, that is what I am getting out of it too.

I think that either mburshteyn is sarcastically saying "that's the point" (perhaps to indicate that you thinking that is exactly the problem s/he is trying to highlight?), or mburshteyn has missed the sarcasm in the derailment page (it's not actually advocating 'derailment').
>>Yet with TCS the status symbol there was to be a manager.

That's because just like every where in the world. Power centers and money paid is higher in the managerial levels than technical levels.
Talk about a blast from the past, I used to read all those Mack Bolan books. Back in the 80's / early 90's, I devoured those things. Haven't seen or read one in years now though. It might be fun to go back and re-read some of them.
>>But he said the numbers could mean a lot to Canadian monetary and fiscal policy going forward.

Although I tangentially understand there could be implications to "monetary and fiscal" policies I would suspect these possibly revised productivity numbers will only weakly influence such policies.

The main thrust of Canadian economic policy since I can remember has been to control targeted inflation rates, which is presumably easier to measure, or at the very least uses a more widely accepted measuring process (e.g. basket of certain goods or other inflation indices).

With a renewed interest to control unemployment as opposed to inflation (more in line with the USA), I find it hard to believe that revised productivity measures over the past 50 years will much impact cabinet, Parliament or Bank of Canada decision making.

Can any HN economists comment on whether productivity measures would really have any impact on policies given overriding concerns on inflation or unemployment targets?
Ask HN: jquery ui coding help?
I don't usually see threads related to coding help on HN but I have had no luck on stack overflow or the jquery UI forums and am desperately in need to further advance a personal project. I have found HN to have a strong concentration of individuals well versed in jQuery and the javascript language, so any help available would be most sincerely appreciated and am deeply sorry if this is not the right place.
============================================================================================================================

Essentially, I have a form with a button that creates input fields. Once that input field is created, users are given the option to click the "add media" button which allows them to paste a link inside of an additional input field created. The first set of input fields are "sortable" and can be moved into different positions in the list.

When a new add media field are created and the form is submitted, how can I figure out which parent input field it belongs to? I need to be able to know which parent it belongs to so I can transfer the data via jSON and process it with php.

the main snippet of code that I have written which creates the JSON data can be found on the SO thread:
http://stackoverflow.com/questions/14065552/organizing-values-of-child-elements-for-processing-of-a-draggable-form

any help would be sincerely appreciated, thank you!
"Well, it's not called "Hacker" News for nothing. CNet is over there."

Cool diss, hope it made you feel better about yourself I guess? Anyway, I simply pointed out that the author framed this as a cost saving tool when it really isn't. Say its a fun hack and I have no problem, but to call this thing a moneysaving hack when it doesnt save a whole lot of money and produces a lower quality device. But hey, your one line diss sounds better so why bother with logic.
I'm glad Exploring the World of Lucid Dreaming and Moonwalking with Einstein made that list. Lucid dreaming and "photographic" memories are two of the most amazing near-superpower skills that anyone can and probably should learn.
fantastic work. i think what's really exciting is that it showcases to us what can be done with css3 for everyday apps by making an ambitious film reel.

i can imagine many of the animations you made making their way into apps that use css for navigation, subtly grabbing user attention, etc.

great work :)
My <thing I haven't used in three years> would merge with my <thing I've never had, seen, or would want to use>?
Ask HN:Beautiful looking job sites
Guys,

I'm searching for ideas to further develop my job site.

What better way is there, than to see what's already out there.

If you are aware of a few beautiful looking job sites, please do post.

I'm actually mostly interested in their user interface/usability and yes, design.
It's not about "people being equal". It's about equality of opportunity. Curious that you don't see things this way...
Building and practicing discipline is the single master skill that I've found. Everything.. learning, work ethic, comes from it. Thanks for the introduction to this.
Instead of spamming that link, why don't you try leading by example?

(Now tell me, which derailment tactic did I just employ? I can't be bothered to read them all to find out.)
>If you've got the right partner, the size of the diamond won't matter

That's certainly true. I'm looking less for size than for reasonable value, and that's really hard for me to assess.
I don't know if they count as serious naysayers or not, but: http://phoronix.com/forums/showthread.php?76208-FreeBSD-is-D...
Control This Roach via Twitter
Any suggestions on what books? I've been looking to go further with mathematics.
Seconding "How to Win Friends and Influence People". Took me a while to read it because the title was a big turn-off, but it's not as manipulative as it sounds. The audio book is great if you commute to work. Sometimes I would listen to a chapter on the way to work and then apply the lesson that very same day. Amazing. It will change the way you think about your interactions with other people.

Another book I love, in a similar category, is "Crucial Conversations". Very useful for improving your communication skills in work and personal life.

Also, "Strengths Finder 2.0". It will tell you what superpowers you already have.
Oh yeah, 20 years ago and I'd have never survived the night.

Whole thing is here, http://aorticdissection.com/2011/12/06/jim-thompson-47/ though I assumed that the termination was the right iliac until last Spring, when I had them run a CT on the lower extremities, and found that the termination was in my left leg (and that the false lumen had blocked the iliac in my right leg.)

Maybe when you're a doctor you'll remember, "When the symptoms don't make sense, think dissection" and save someone else.
Actually, G+ does support pseudonyms, although there are some subtleties with how they work and the approval process involved with them. See this very long thread for the details, and some really interesting discussion about names, pseudonyms, "core identities", "peripheral identies"/hats, "firewalled identies", and more:

https://plus.google.com/+YonatanZunger/posts/YJbzDptWGQt
For an idea of how hairy this problem can get when you attack it "for real", take a look at http://sportsdb.org/sd (click the schema diagram on the right).
They do.

Specially for non-US companies, I'd say.
We want to do this but fear the wrath of Apple.

(Ninja) Marcus
Hi level09,

Our hardware engineer did get it working on Telstra 3G using a USB 3G adapter. It does require you to jump into linux land to set this up.

Cheers,

Marcus
Thanks mate! We're slowly getting there :)
why not just ask them? i think it's completely reasonable to do so. you may say something like, "i'm really excited about working at your company. it sounds like a great opportunity and the interviews have been promising. i'm willing to wait until april for the right opportunity, but would you be willing to share the reason you wish to delay? this would help me since otherwise my imagination may run wild with explanations, and with any good long term relationship openness and communication are valued. thanks!"

or whatever phrasing you like.
Thanks. Will do. We're already actually engaged, but I gave her a family ring, which she initially liked until she (and I) realized that my sister had apparently been wearing it around for years. And it belonged to a grandmother with an unfortunate history that apparently devalues the sentimental value.

So now I'm in the market for a new ring, but ideally one that doesn't cost a lot, given our financial situation. I'm writing a dissertation, being a grant writing consultant, and starting to work for a startup called Lion Crest publishing (http://lioncrest.com/), which makes for some weird explanations and, at the moment, not a tremendous amount of cash.
I think it's important to note the concept of privilege in this sense is a bit nebulous, is distinct from the common usage, and based on context. I'm partially at fault for the confusion here for talking about "privilege" as an absolute.

Privilege is something that basically everyone has. It's about talking about the advantages one has due to factors like sex, race, geography etc over others when all other things are equal. It's not a concept that is focused on race or gender; but any sort of difference. The reason that I think it often focuses on race and gender is because those are areas where people are particularly unaware of their own privilege and where the issues are most crucial.

As you point out, you could have a young black women who grows up wealthy and this would imbue her with some privilege related to that compared to a poor white male.

However,

> A poor white boy growing up in Appalachia has less privilege than a member of any race or gender growing up in a California suburb.

As a general statement this is wrong; it needs to be qualified as above in terms of who exactly is being compared and on what sort of privilege. In this example both have some privilege and I'm not sure being wealthy would always out weigh being black and female (or vice versa).

What I do think is reasonable to say is that if you look at large groups, white males do have a bit more privilege than many other groups. Again, in particular instances this can be completely turned around, so context is important to keep in mind.

So why focus on white males in the general sense as a group with a lot of privilege? Because it's a converging of many types. They don't deal with many issues women and minorities do and even if you take a color/gender-blind issue like wealth; as a group white men are doing much better in that regard than others.

I agree though that it would be beneficial to consider it more widely, and it's important to try and do that in discussions.
Could I ask a simple question, not because I want to mock people or anything, but because I've been experiencing a similar phenomenon lately.

Why does facebook make you hate people you know?

I do generally find that most people I'm not actively great friends with at the moment tend to annoy the shit out of me with either bragging, illogical nonsense about things like politics, or just passive-aggressive teenager posts. I see friends post good content sometime, but honestly it seems more and more rare. I'm not sure if people are worse at posting or if its that these type of posts have worn on me and I've gotten more and more annoyed by them over time. What has it been like for everyone else?
But it's not interoperable elsewhere. This would would work for others on Facebook, and wouldn't work if one were to leave Facebook. In other words, if everyone decided to use Facebook as their blogging platform, then their entire audience would be locked-in to Facebook.
Teacherpreneurship pros and cons
This article is flawed at its core: monads do not, in general, compromise type inference and they are not all about sequencing state.

Sure, they are used for state and IO, but they can do far more, like nondeterministic programming, continuations or even nothing at all. Ultimately, I would say monads are about composition: they let you define exactly how to compose computations.

Additionally, monads do not break type inference. Having a type for every top-label binding is considered good style in Haskell, but it is still optional. I could see this practice being confused for type inference not working. There are of course language extensions that do break type inference in certain cases, and sometimes it is impossible even with the standard language, but it works almost all of the time even with monads.

Also, and this is probably just because this article is for years old, it really overstates hire bad Haskell performance is. In my experience, even naively written code runs relatively fast--certainly fast enough for me--in most cases. I believe this has really improved in recent times. Haskell is certainly better in this regard than most other high-level languages.
> moves the goalposts to suggest Obama abandoned that objective by casting a yea vote that indemnified telcos for (a) lawful surveillance (b) conducted under the color of an entirely new statute in (c) a bill that mostly consisted of new limitations on FISA surveillance powers.

On (a), how or why can one be indemnified for lawful activity?

The bill to which Greenwald refers does in fact grant retroactive immunity from lawsuits seeking to show that the telco's participation was unlawful.[1] Such lawsuits would occur because other parties to the activity are protected by other mechanisms.

On (b), not sure what you mean by 'under the color of'. Hopefully not a reference to retroactive legalisation.

(c) doesn't seem at all relevant to the specific point here.

[1] http://www.fas.org/sgp/crs/intel/RL34600.pdf
1. A good text editor

2. A sense of humor
Why? How is that better than using WordPress and RSS?
I'm in a secrete motorbike group which organises rides and provides warnings for other riders about police blitz or speed cameras.
Very good tip! I'll have to change those to one year. :)
It seems to me that of all the advantages of NoSQL, schemalessness is probably the most minor and dubious. Most of the pain of dealing with SQL comes from the relational part, not from needing a schema.

The problem with SQL is that it's clever. To do things efficiently and reliably, you often must do very clever combinatorial operations on different tables, producing elaborate structures which are then winnowed down to a simple list of information. So right off the bat, you encourage programming logic that is difficult for future maintainers to wrap their heads around. Of course, most programmers aren't clever, so their queries end up being both difficult to understand and subtly wrong.

Then, of course, your data comes out as a list of rows. Well that's just great. If your needs involve a more complex data structure than that, well, you're going to need code to rebuild that outside the database.
Which Distros Work on New Windows 8 Machines
"have a facebook"? Are you nine?
They've given you a free put option, haven't they? You can sell to them in April, or to anyone else in the intervening months. After all, even if you "accepted" for real and started tomorrow, a compelling offer in March could still move you. I'm having trouble identifying the downside here.
> Usually if you have a static schema you also have SQL,
> which makes migrations a lot easier.

I'm not sure I follow. MongoDB doesn't have a static schema so there's less work to do when migrating data. No temp tables, no DDL, no disabling of triggers, etc. So my definition of "easy" in this case was "fewer things to do", not "requires less expertise."

> I want to guarantee that my data is in the right
> structure, with the right types, and right relationships.

We know that having the right types, structure, and relationships are valuable, but since there is no context here, we can't know whether they're more or less valuable than other factors. (Note we've already assumed that the data is easily modeled in a relational structure AND in a document structure... If we're wrong about that this whole conversation may be moot.)
This is amazing. A real, first class example of program complexity in a seemingly non-complex domain.
Keep Defective by Design fighting for its eighth year
Thanks for the feedback! You raise some very valid points that we actually went back and forth on a bit during the design process.

1) Regarding the inline popups, the overall goal was to educate first time users on how the site works (that ReelSurfer lets you cut highlights out of any video on the web). I agree that they are a little obtrusive though. Are you more opposed to the contents/frequency of those particular popups, vs popups in general, or both? We considered some other options like a help button or progressive UI disclosure - do you have a preferred means of surfacing this kind of info? Hopefully a small consolation now is that once dismissed, you should no longer see the popups on your next visit.

2) Regarding original URLs, that is a great idea. Currently there is one way to get to the original video - the "See More" button that displays on hover will take you to the original video's page (in this case, YouTube). We'll try to make it a little more prominent, or perhaps even add a link to the metadata below the player.

3) Regarding the branding strip for embeds, totally makes sense and you hit the nail on the head about wanting to capture users. It's definitely a challenging problem for us as we want to balance demonstrating the additional value of ReelSurfer (which is that you can cut and watch highlights + mashups from all videos across the web, not just YouTube) without getting super annoying. In this particular scenario, if the branding strip only appeared on hover (and disappeared during playback), would that be a better/tolerable experience?

Thanks again!
>Nor do the limits themselves have any effect whatsoever, since there is no oversight whatsoever

What kind of specific oversight would you be satisfied with?

There are after all FISA Courts explicitly for the oversight purpose: http://en.wikipedia.org/wiki/United_States_Foreign_Intellige...
Their unstated goal is to become The Internet itself. They want to curate content, only show people what they want, and have you never leave their site.

Do not trust.