skysight-inc/HackerNews huggingface dataset:
The problem is it's hard to solve problems in an arena that you're not personally passionate about. I've been facing this problem with app development lately and found that the apps I'm passionate about sell better then the ones where I feel like I'm just trying to serve a niche. The reason why isn't for lack of motivation, but rather for lack of comprehension.
I'm particularly interested in seeing if there are significant differences in the presentation. Good luck, and I look forward to seeing the results.
It is indeed a performance optimization.
That looks like perl's DBIx::Class library. http://search.cpan.org/dist/DBIx-Class-0.08127/lib/DBIx/Clas... has a lot of example queries.
The professor forgot to mention how health care is only a fraction of the US military spending, and how some of the richest, and some of the largest corporations pay little to no taxes. I'm all for capitalism but IMHO, America doesn't have its priorities straight.
Using the #t hash anchor works well for this kind of thing...

http://www.youtube.com/watch?v=XQPSwA2Itbs#t=2516s
"Let me give you an example. Think of a number, any number."
"Er, five," said the mattress.
"Wrong," said Marvin. "You see?"
Thanks for the info -- but my point stands, performance is important when you care about energy usage (mobile, laptop, server).

Really the only place its not important is GUI programming and high-level application logic.
I used to work for a copy-cat that does really well so far. However, their main problem is that the majority of the turnover comes from a hand full of power users.

Most users behave like described here. Pay 10 bucks once, lose them all and never look back again. Attracting customers in the long run is hard for this business model.
I think one of the key words here that the OP didn't use was "for." I.e. he never said "I live for the present."

Rather, I think the word he was going for (correct me if I'm wrong) was "in." I.e. "Live in the present moment." Don't live in the past, don't live in the future, etc...

And that to truly live in the present moment, you have to take the wisdom of the past, and consider the weight your actions will hold in the future, but ultimately all you have is now. So I don't think what you said goes against what the OP said, it just highlights a different aspect. The past was lived, the future will be lived, but your decisions will be most important when they happen. You're not living if you're stuck in the past or displacing the present for some hazy future (a young investment banker working 100 hours a week for...).

Also, there are "present" qualities in all the examples you gave. Assistive brain/spine implants improves the present moment living conditions of other humans. We can use programming and the skills we have to build tools that help people better live their lives.

Also, things like love and other people are strongest in the present moment. Ultimately we likely invest and we study because so that we can make ourselves happy or search outside of ourselves, but a lot of times it's a lot closer (both physically and temporally) than we might think.
Protip from a native: don't smile in former USSR when dealing with service or authorities. A smile is perceived as weakness and an invitation to pwn you over.
In the modern business world? Seems a bit extreme to me. You'll have to explain that you don't have a phone constantly. Doctor's office: "Where can we reach you with your test results?" Sorry, you can't. Mechanic: "What number should we call when your car is ready to go?" Yeah, about that...

Just because it was once considered a luxury doesn't prevent it from becoming a normal part of society. You're certainly free to reject social norms, but compared to using a bit of self-discipline, it's a bit extreme.

Another way to look at this: How does Sebastian get away with using Skype? Because everyone else has phones. If everyone did this, getting in contact with anyone would become much more complicated. Also, Skype on an always-connected device is a phone, so that's not really a replacement anyway.
I think that it really may have to do with being from the South, because those standard greetings IMO seem more honestly given. I've gone back and forth between Chicago and the South throughout my life, and in the South, those little formalities seem to have a significant chance of developing into actual short conversations, sometimes even to the point of slowing down the purchase/interaction (of course depending on how busy everybody is, if there's any big news that everybody is familiar with or thinking about currently, etc.)

My theory has always been that it has something to do with the generally well armed/violent nature of the South combined with its sometimes sparse population and resources. You're not likely to meet a ton of new people, some are going to be jumpy/dangerous around you as a new person, and resources (cultural, financial) are so tough to find information about, that it's both important and cheap to spend an extra minute on everybody.

Of course, that's going to be different throughout the South. The protocol is so tight in the sleepy little satellite hamlet/country road (of a slightly less sleepy hamlet) where my grandparents live that you're pretty much expected to wave and smile at every car that passes by, and if you're passing by people who are outdoors when you're driving by, you're expected to wave and smile back. This is not because you all know each other, just how people act there.
That was my second thought as well. But if you look at the selector

$find("._timestamp[data-time$=" + E + "000]")

surely running this regex-find on DOM elements is not such a savings on performance?

It also has the weird side-effect that some tweets can look older than the tweets below them, making the ordering look incorrect. Meh, not really a big deal, but I was glad to have finally figured out what was really going on there.
That there was a market for expired lightbulbs in the Soviet Union because working ones were hard to source.
People would bring the expired ones to work and swap them for working ones.

There's a life lesson there somewhere.
"I'm all of internationalization"? I'd be fascinated to read your comment in English.
cool, thanks for clarifying, dsa :)
Nonsense, Japan already has invested a lot in Tsunami protection, they will not starve funding for that. Who says it is an "either invest in anti-Tsunami or anti-nuclear-power measures" kind of thing? And no, I don't live in a coastal area, so enhancing seawalls is not my interest or priority.

As for protection suit: contamination, why should it matter if it is only as bad as eating a banana? Your banana argument really makes no sense.

I have little hopes for nuclear power to go away, nor fossile fuel plants. I think it would be possible, but lifestyles would have to change too much (for the better in my opinion, but many people would disagree). We certainly could save a lot of power, so it would not have to be necessary to replace nuclear power plants with fossile fuel plants.
You've made "SQL injection" impossible by inventing "albertzeyerql", which will inevitably be vulnerable to "AZQL injection". Many of the NoSQL's have similar problems; expect to hear more about them in Blackhat presentations yet to come.

It's not pointless to discuss how query languages can be made simpler to parse and thus less susceptible to injection, but the technique isn't foolproof and is (obviously) expensive; meanwhile, the proper defense against SQLI (being mindful about query inputs, and using the framework to abstract and normalize dynamic queries) is available today and works well.
Hmm, might be interesting to see the results of numbers presented in a ring, equidistant from the cursor...
Avalex Enterprises Eeryn
Avalex enterprises
Because when you try to use a prepared statement to populate a paginated table, you still force the database to construct a dynamic query based in part on user inputs when you pass the OFFSET and LIMIT to it.

Recommended exercise: implement the MySQL wire protocol. It took me a couple hours a few years ago. It's not hard. Do it, come back, and then see if you still think the same things about SQLI defenses.
If he a.) plays at stakes where he can lose over a million in a couple days and b.) bases his decision to play someone (especially another pro) on emotion and recent short term variance, it's pretty much guaranteed he will end up broke eventually unless he actually has many many millions (like possibly in the hundreds if we're talking about enough to cover the swings of heads up PLO games at those stakes with Gus Hansen).

It's hard to fathom how much variance really exists in poker. Lucky and unlucky streaks can and do last months to years for people who play thousands of hands per day. Statistics dictates that there will always be a number of outliers who, due to a combination of moving up aggressively and running hot at the right times, become millionaires in a short time and draw a lot of attention, but unless they're the real deal and sufficiently bankrolled to cover the swings, it will all go back, often as quickly as it came. Most of the famous players on TV actually fit this mold, go broke constantly, and only make consistent money due to endorsements. Among real high stakes pros (mostly math-oriented, highly self-disciplined nerds you've never heard of), a large portion of the TV stars are considered fish. I've always found it interesting how distorted the general perceptions are versus reality.
That's why one of the metrics is time, both from start of page to picking a number, then start to hitting choose. It's not perfect, but it'll hopefully be possible to differentiate between people who pick right away, and people who think about it.
The DOM performance hit is probably smaller than the network hit (both on the client and at the server side) for doing all at once (if I'm understanding it correctly).
People that don't know Rails are going to think that you're making pointed critiques of the framework, when in fact you appear to be repeatedly citing examples of people going through extra effort to use the interfaces Rails provides for directly using SQL instead of ActiveRecord's finders.
Sparks Fly: Can Imagination Be Taught?
my guess is the first thing the selector does is query by class, and then filters from that set. likely not as intensive as you think.
While it doesn't apply universally, a good manta I've heard for business is "under promise, over perform". Fits well with the Russian outlook
Can't wait to hear how many people picked 10 (as I did). If it hadn't been for science, I would probably have picked 7 like everybody else.

Once I thought it would be good to play the numbers "1 2 3 4 5 6" in the lottery because they are as likely as other numbers, and I thought people would not pick them. Turns out lots of people play "1 2 3 4 5 6".
"Gambling is the wagering of money or something of material value on an event with an uncertain outcome with the primary intent of winning additional money and/or material goods." - Wikipedia

Sounds like an apt description of Swoopo if, according to the MSN Money quote above, any "strategy" is equally ineffective. Recall that "the law" and what governments choose to enforce of it are not the final say on word definitions ...
It's all done client-side, so in this case there is no network hit for doing the timestamp updates anyway.
I recently started blogging at http://www.rationalpoker.com, there's an intro post at http://lesswrong.com/lw/4yk/verifying_rationality_via_ration..., if you're curious.
SQL defense isn't a database issue.

The SQL Injection vulnerability is, "user coerces application into submitting an unexpected and unauthorized query".

Blaming the database for that is like blaming the filesystem for pathname injection vulnerabilities.

It could, after all, send a Unix signal to a calling process when a filename contained "..", and demand that the process re-assert it's desire to really reference a different directory.

We may be spiraling here. Parameterized queries are a good thing. I'm glad MySQL has them. I'm not, however, going to wag a finger at MySQL every time someone finds an SQLI vulnerability in an app that uses MySQL, just because 6-7 years ago they didn't have parameterized queries. For one thing, it's not a useful comment (do you want them to implement parameterized queries... again?); for another, it's not particularly valid architectural point; and finally, it's really boring.
Guess I wasn't understanding it correctly then :)
Modern convenience is for suckers. I think I'm going to take this all the way and get rid of email as well. The Amish had it right after all. If you can't work with that, you're a flake!
I'm pretty sure Ryanair charges £5 for a nasty look.
yes, I'm guessing it filters by class first as well. but it would be interesting to find out if just updating all the timestamps would be as fast (or faster) than doing the secondary regex filter anyway? i'm not sure, i haven't run any benchmarks on it.
Yes. But no,

It's always about the money; the lifestyle is the way poker players show it off to the world, that is otherwise disconnected from their success...or occupation.

It's still not even about the money then. But ceaseless acquisition. Of what? The question and answer is virtually irrelevant, despite it being obviously money/chips, and the money/chips being important.

The "lifestyle game" perception is a facade. It's easy to digest, and it's what most articles that get written support as the reality.

Money is the prestige. And if there is a top, it's apocryphal.
3d Style UI kit for Iphone Apps
Wikipedia's https certificate expired.
No, the UI is different every time you refresh the page. There are 4 UIs, randomly presented.

I'll be fascinated to see how the different UIs skew the results. Of course, there are now so many variables in this "experiment" it'll be hard to make any concrete determinations.

But there will be data and it will be cool.
I apologize about the name shortening. As I said, no disrespect intended.
"I don't know whether successful private companies like Groupon, Zynga, Facebook and Twitter are over or under priced since I don't have access to their financials"

To play devil's advocate, how can anyone call FB, Twitter, Zygna, etc., "successful" (in the financial sense) without that information?
Looks like dpritchett was right all along :)

http://news.ycombinator.com/item?id=1579118
Goodluck with your ventures Lance!!

I've read your recent blog posts and posts going back many years. It has all helped immensely, including your tips on handling steep learning curves and overcoming coding roadblocks (of which there were many!!).

Would you mind putting up links for some articles that helped you in handling steep learning curves and overcoming coding roadblocks?

Thanks..
Of course it's possible she misunderstood you...
Overt signals of non-hostility can be useful, in that they can help jump-start the (continuing) process of establishing trustworthiness.

Legend has it that the military salute originated as a raising of visors on knights' helmets, both for identification and to signal non-hostile intent.
It may also conflict with cultural expectations. Check out the chapter "How We Think About Space" in Lera Boroditsky's talk "How Language Shapes Thought". http://fora.tv/2010/10/26/Lera_Boroditsky_How_Language_Shape...
> > You can accomplish more if you work less and sleep more. Hypothetically a well-rested person working 55-hour work weeks can usually outperform a sleep-deprived person working 80-hour work weeks in terms of quality, all else equal (specifically for knowledge work).

You're right: the research shows that a 35 hour workweek is ideal for knowledge workers. This has been repeatedly confirmed in various studies. See PeopleWare or Slack, both by DeMarco.

Relevant StackOverflow thread: http://stackoverflow.com/questions/1600071/are-there-any-ser...

> > Spoken communication has a massive non-verbal component. Study body language and you'll be pretty shocked at how often peoples' spoken words contradict their telltale non-verbal cues.

> Citation please. A lot of the 'non-verbal communication' stuff (read: NLP) is considered unscientific gumf.

Objecting to this is simply inane. NLP may be bunk, but if you truly believe that what people mean === what they say, I feel sorry for you.
I would dispute that there's actually any dishonesty going on there. What's missing is the intent to deceive; everybody knows that the greetings are obligatory, and the people saying them may or may not mean them. Consider what would happen if you replaced the greetings with some other arbitrary phrases:

Cashier: Hello. Where is your dog?

Shopper: My dog is on the moon.

Cashier: The gravy orb hovers once again over London.

Shopper: I wish to purchase a kilogram of ground beef.

Cashier: As it is spoken, so let it be.

This conversation has clear falsehoods in it, but nobody expects them to be true, nobody is deceived, and the dishonesty is paper-thin. (Also, writing that dialogue was a lot of fun.)
After "I'm not a group of hacker, I'm single hacker with experience of 1000 hackers, I'm single programmer experience of 1000 programmers," part, i stopped reading.
How does any of this _make_ them any money?
I don't see why you have to be chronically negative to believe that a smile that isn't genuine is necessarily "false". When referring to a genuine smile, we usually refer to a Duchenne smile[1] — one in which the muscles around the eyes also crease. Just because a smile isn't on the spot genuine doesn't mean it's false, as the thought behind it can still be there.

But it's also important to note that this is an expectation of your culture — it's not as obvious to me that smiling all the time is necessarily a "happiness" thing. Surely you must be aware of the stereotypes that are held by other cultures of Americans?

The fact that you see Russians as people who suck the life out of the room, just suggests to me that you are projecting your expectations of societal norms on other societies — where they don't necessarily fit.

[1] http://en.wikipedia.org/wiki/Smile#Duchenne_smile
Interesting method to getting current timestamp:

var I = +new Date;

I've always used:

var I = (new Date).getTime();
Har!

I'd like to see one that starts on the 14th floor. I mean, if we're going to indulge arbitrary biases, let's go all-out.

And while we're at it, let's have at least a few cases where we number the ceilings, too.
I agree with you about the corporations part. That said, check this:

http://www.cbpp.org/cms/index.cfm?fa=view&id=1258
http://en.wikipedia.org/wiki/File:U.S._Federal_Spending_-_FY...

Medic* and SS amount for almost half of the US budget, while the (still overinflated) military amounts for "only" 20%.

That said, 40% of govt income is from social security, so this whole exercise is quite moot =( A better analysis would move all the SS transactions to another entity at a fair price, so the true picture of govt income/expenses/debt would be clear.
Exactly,

And like i said, likely pretty poorly:

It's about the metrics, or lack there of. And what a critical distinction that makes in pro poker vs most any other business endeavor.

The irony, tho, is even within the "reality" you mention...of those we deem or see as "quiet and disciplined nerds" who look down on the "famous tv pros"...

An equally false sense of success and financial gains define them.

Empirically....and logically it makes the most sense too...the truest of winners in poker are those who come closest to treating it like a normal/more traditional business, with real metrics...and act and think as legitimate entrepreneurs running a business.
I would guess that they're produced by companies that are used to giving in-person seminars, and are trying to translate that as directly as possible to a new medium, regardless of whether or not that is actually a good idea.
Really creative affiliate marketing.
Also http://en.wikipedia.org/wiki/Milgram_experiment

I think it would be easy to jump to the conclusion that because this happened in a primitive village in a part of Africa with a history of conflict, "it's always been that way."

What made news of this attack so jolting was that our family had experienced Nyankunde in peaceful years. It was a beautiful place with wonderful people. I had always wanted to go back.
http://www.bugmenot.com

I hate sites that require logins. Though apparently this one had a way around it, lots don't, and many of them are already in bugmenot. If not, add a mailinator-based account for others :)
RIM: The inmates have taken over the asylum
I'm not offering a "pointed critique of Rails" ([edit] although your framing it as such seems to encourage downvotes into the negatives). I'm demonstrating how the use of non-parameterized queries source of error that has repeatedly resulted in SQL injection issues in ActiveRecord. I have provided three different examples:

- In the first, the API design itself made it non-obvious/easy to directly concatenate strings while -- at a glance -- appearing to be correct.

- In the second, the API's implementation resulted in SQL injection because :limit and :offset arguments were not correctly escaped.

- In the third, the API's documentation and recommended usage (in 2004) encouraged users to use constructs that appeared to provide defense against SQL injection, but in reality, did not.
Lost Roll of Film Returns to Mystery Photographer
Or, another alternative, add a secondary class so that the overall markup is class="_timestamp _timestamp_group0", etc. Perhaps they tested this and found it to be a negligible improvement, but then you're only selecting on the one class, rather than selecting on class and filtering.
http://jsperf.com/jquery-attribute-selector-performance

Looks like the class only helps slightly. It's definitely doing some optimization though.
A Sensible Approach to the Twitter API Ecosystem
Unfortunately that's our culture at work.

People believe when you can do "Anything" because that idea of empowerment is ingrained here. Somebody who questions their own skill isn't good because they don't believe it.

I'm a Hoosier, and I see it here all the time. You have to look like that it's not a problem whatsoever. Admitting ignorance on part of a given topic is seen as sheer stupidity.

It's like a job position that I interviewed for. The District manager asked a weird situational question. I don't remember the particulars, but it was something that was pretty much 0% chance of happening. I said that I would not have a clue how to handle it on paper, but I would know if it actually occurred. Their response was that "It was not the answer we were looking for".