skysight-inc/HackerNews huggingface dataset:
Always fun: http://infiniteundo.com/post/25326999628/falsehoods-programm.... HN thread: https://news.ycombinator.com/item?id=4128208.

Calendar/time stuff is really, really hard. That's not an excuse for Apple in particular, just that the pitfalls are many and varied to the point where even smart people will screw it up.

I imagine one reason it doesn't seem so hard at first glance is because time and the calendar, in our lived experience, is relatively simple.
Exercise 30 minutes.

Spend at least 15 minutes journaling the events of the day.

Spend at least 15 minutes planning out your schedule and goals for the next day.

Punch a velociraptor in the jaw.*

Each some greens.

*Optional
It's not the method that's special, per se, but the `=` operator. The `=` operator always returns the right operand, discarding whatever is returned from the setter method. AFAIK it's because that's the expected behavior when you're doing chained assignments. You wouldn't normally want the leftmost operand in `a = b = c` to get a weird value just because the middle operand internally does some transformation, so the `=` operator yields the right operand unaltered.

If you went directly through the method (e.g. `t.send(:attr=, 5)` or `t.method(:attr=).call 5`), you'd get 10.
> Xinerama is old, buggy and more or less deprecated at this point

It is? What's the alternative?
For the unfamiliar (like me) here's a video of WebOS Activity Cards from Palm's 2009 keynote: https://www.youtube.com/watch?v=oUSui3rH1a8
And closed. Thank you for playing.
Review my startup idea: One API to rule them all.
There are more than 8,000 known web APIs in existence, ofOfering from weather, to financial data, to the ability to search inside libraries. One thing I haven't found, however, is one API that lets the skilled developer manipulate and search multiple APIs at once.

A few questions.
* I'm currently using a SQL style language to make adding more advanced features easier on my part, but if someone has a better idea, I'm all ears.
* If a service requires user authentication (i.e. Twitter), my current plan has users passing in auth data in the body of a POST request, is this secure or is there a better way to do this?

If someone has any comments, questions, or ideas, please let me know. Thank you for your time and consideration.
The best way to get started is find a bug in something you use regularly and patch it. If it's really a bug you can generally expect that it will be accepted. Also, look for projects whose maintainer has been active recently (not necessarily on that project, but at least on GitHub).

Being on GitHub in the first place is a good enough indication that they're open to outside contributions. It's not always true, but much of GitHub's appeal is that it lowers the barriers to contribution.

The scope doesn't have to be huge. You can contribute a simple bugfix in the span of an hour.
Introducing the Office for Creative Research
If they were permanent, the CBO would have to make projections assuming they are permanent. It's much easier for me to borrow your chainsaw every day than to ask you to give it to me, because then I can tell you you'll have it back tomorrow.

As it is, the CBO is able to make projections involving the cuts expiring next year each year for over a decade now. This time the projection turned out to be more correct than usual, which is to say still wrong.
Yahoogroups and Googlegroups are hugely used on daily basis. It is just that there is nobody else credible out there to take over their market. Yahoo has locked in user's archives so it is even impossible for people to move.
Illustrated C# 
The following is the one book that has finally helped me to understand how to program in C#. The steps provided in this book are easy to understand and lead to a greater understanding of C#. I wish I had this book when I was first starting out.. It would have saved me a lot of money!
Why the heck aren't the hardware manufacturers stepping up on this one? Why should I pay HP/Xerox/Canon/Ricoh thousands for using their manufactured hardware when it does not cover the ability to use it?

I realize being a hacker news reader/tech person means I would know better, but wouldn't some of these people think to themselves "Why isn't this cost included into the hardware?". And why aren't the manufacturers that profit from this type of hardware stepping up as it has the chance to discourage people from buying their stuff.
While you are depressed, I am amazed by the quantum leap we made. Up to two centuries ago travel time had been essentially the same for millenia, provided that you could afford a horse.

Now I can go to any major city in the world within two days.
Because in general, delegation tends to lead to object schizophrenia. Specifically, SimpleDelegator will leak the original delegatee object when a delegated method returns `self`.

s = "foo"

d = SimpleDelegator.new s

s2 = d << "bar"

s2.object_id == s # true

I think SimpleDelegator is really neat but totally dangerous. Doesn't this ring alarm bells with you?

# delegate.rb L117
#
# Returns true if two objects are considered of equal value.
#
def ==(obj)
return true if obj.equal?(self)
self.__getobj__ == obj
end
My point is more "why should people have to change what they're used to for a small subset of the scientific class?" - of all the things that people do math with, and would benefit from decimalization and metrifying, temperature is pretty much the last.
One sure way to get metric passed in the US: tell all the 220-lb ladies that their weight will drop to 100kg.
Efficient Stateful Views With Backbone.js, Part 2: Collections & Animations
So who has the patent on patent trolling?
Your argument is pretty flawed. On an ev/ ebitda basis zip car traded close to rental peers pre acquisition, 12x for zip versus 10x for Avis which had a mature business. Zip spends 25% of sales on capex which inflates D&A making net income superficially low and the pe appear ultra high
Okay, here you go. Installed tcpdump on my router, grabbed all traffic to my ipod during the test. The test consisted of opening one webpage (cnet, again), and putting my finger down on the screen twice while the page was loading. I opened the dump in Wireshark and filtered it to HTTP traffic.

http://cl.ly/image/1R0v1P3y0J1u

You can clearly see that traffic stops at 8 seconds, when I put my finger on the device. It then resumes 23 seconds later, when I remove my finger. It then stops again 2 seconds later, when I put my finger back on the device. This was one pageload, no shennanigans, just putting my finger down on the device and scrolling it slightly while the page was loading. It took ~40 seconds to load that page because I had my finger on the screen.

It looks an awful lot like the device is not downloading anything while my finger is on the screen. It certainly didn't just snap to "fully rendered" when I removed my finger at 31 seconds.
This does not seem like a good idea. Redis does not serve the same use-cases that MySQL aims to.
LINQ is from the outset designed for abuse, and you don't have to try hard whatsoever.
Which means you need input from my platform, the third of the three combos: Works for me on Chrome 23.0.1271.101, OS X 10.8.2.
Something to that effect has undoubtedly occurred. I think that things can work differently. Do you?

We've had a chance to see a number of government experiments run their course (some continue to), ranging from absolute monarchies, to Marxist-Leninists, to Maoists, to various kinds of republics. All of them have ended up going in similar directions, over time, consolidating power, though at different speeds.
Nice work, but these types of videos always annoy me. Anyone with the basics of athletic skill can perform these stunts with enough tries -- which the guy admitted to taking several tries. Some of the pure-power moves are out of the question for a lot of people, and those are definitely cool, but kicking balls into trashcans and basketball hoops is not.

The exception would be doing several difficult moves in a row without fail.
SQL Injection Vulnerability in Ruby on Rails; affects all versions
> Gelfand's wonderful basic math texts instead

This is good stuff. Thanks for the pointer.
http://www.amazon.com/Algebra-Israel-M-Gelfand/dp/0817636773
http://www.amazon.com/Trigonometry-Gelfand-Mathematical-Semi...

> I haven't seen the physics sections

You should take a look ;) Check out the "Free tutorial" in particular. It is just 7 pages and you can print.
Nice! Like Edi Weitz's "The Regex Coach", but Web-based. It might be worth looking at TRC's way of illustration of the regex matching a specific string.
I guess one thing I left out in my post that I should have added was: it's easy for people to learn.

I bet just about anyone with much programming experience can spend 5 minutes looking at C# and understand most of the language. It's familiar enough for anyone from a C/C++/Java/JavaScript/PHP background that it's not intimidating, even at first blush. I bet C# is more comfy for a lot of Ruby and Python folks, too.

I really, really, really like F#. The main problem with F# isn't a language or syntax problem (in fact, it's not a problem at all). F# (or other functional-first languages) isn't just different syntax-wise, it's different thinking-wise. A "good" F# program is generally written in a fundamentally different way than a "good" C# program. This is the declarative vs. imperative split. Sometimes it's really hard to convince people to change the way they think about how to go about solving a problem.
... Smith then produces a GUI with 14 sliders for viewing the lines.

When the client still isn't happy he adds an "Advanced" dialog to let the user specify an augmented transformation matrix ...
No, stop validating emails. Not only it's error prone and will frustrate legit users but it utterly pointless.
Well Nokia bought Symbian from Psion...

S40 is still their monumental achievement:

http://m.bbc.co.uk/news/business-16712308
It's not so much the problem solving and coding skills as the specific algorithm and syntax questions I tend to cram on. My memory is very pattern based so I'm not as good as randomly pulling some snippet up from memory but get me into that problem space and I can more easily give you what you're looking for. This is usually what happens in the real world but in interviews a lot of people just ask random questions with no connective tissue.
We had just gotten back from camping—our camp stove was still handy—and my parents called just as the outage happened (we were outside on our balcony so wouldn't have noticed anyway). We had some cash on hand, so we were able to go over and buy ice and some necessities with cash from the local grocery (that no longer exists).

Our building had elevator service because the condo board had, in preparation for y2k, bought a big-ass generator. It provided elevator service for the entire week—although it was a close thing, since we were beginning to run out of diesel for the generator, and two of the board behind the generator were starting to scorch from the heat of the exhaust…

By preparing for a disaster that never came, the condo was ready for the disaster that did come.

We now keep a few hundred dollars in our house in the event of something like this happening again (so we have access to foodstuffs). When we can afford it, I plan on getting a household battery backup system and a solar charging system that feeds the battery backup (we don't really have room for a generator, and I don't think it makes sense).

It was an amazing little event in Toronto with a lot of friendliness around the neighbourhood.
To be clear: It's not the "correct" wall clock time for most people's day to day use, because it only counts seconds that have elapsed since 1st Jan 1970 00:00 (in a continuous unbroken manner), and does not count leap seconds (which are added to keep our daily-use times in sync with the rotation of the earth.) Isn't time fun?
> Hopefully porting from linux will be fairly straightforward too.. just a new UI support?, giving apps that work from desktop to mobile. Not to mention that is has most of the FFOS advantage too.

I wouldn't trivialise the effort required to create a touch-friendly UI, especially from an existing desktop application (with the expectations that go with it).
There's framing debates and there's Bill Clinton arguing about the meaning of the word 'is'. Sometimes you got to know when you're doing the former and when you're tilting at windmills. I also think the right's perceived advantage here is heavily overstated.
> The 'A' system for paper has many advantages

The ISO system in general, ISO 216 and 269 provide 3 series (A, B and C, A is the base series, B is the geometric mean between two sizes of the A series, C is the geometric mean between the A and B series at a given index, and is thus mostly used for envelopes for the A series: an envelope Cn will hold an An sheet without folding, and of course a Cn envelope will fit an A(n-1) folded in two)
So tax hike is not a tax hike if you plan it upfront? So if your employer says to you "you're getting a raise of $1000 for this year, but only for one year" it is not the same as getting a raise of $1000 and then getting a pay cut of $1000 next year? And the difference is... what exactly? That it was known upfront? How it makes anything different?
-- closed 2011 Nov 28.
Agreed. I understand exactly what you're saying, and I don't dispute the semantics.

I guess my only problem is that in this case "t.attr" isn't really equal to 5, therefore making

a = t.attr = 5

differ from

t.attr = 5
a = t.attr

which to a novice would appear equivalent. 99.9% of the time you wouldn't expect assignment to have side-effects. But in my eyes Ruby gives you so much power to use responsibly, it appears out of character to disallow it in this instance. (Note: I had to forgo a little trick with ActiveRecord that would've reduced duplication because of this.)

In the grand scheme of things, it's not a big deal. But it was very interesting to me. :)
Nice catch, I probably should have said "dynamic programming language enthusiast".
Good consternoon affable. No, I thought this speedo was in KPH.
None of the electric aircraft you mention will have performance approaching that of any commercial jetliner. Not in speed, range, and definitely not on cost. It will be that way for a very long time due to the dismal energy density of batteries next to fossil fuels. You know how most powerplants generate power? Turbines, like these GE ones derived from their own jet engines: http://www.ge-energy.com/products_and_services/services/gas_... .

Higher altitude isn't everything for speed. You need to generate high-speed exhaust to produce thrust. A gas turbine compresses air and burns it so that explosively shoots out the back. How do you generate this electrically without combustion to raise the pressure? You can't just spin the turbine faster; the blade tips will go supersonic and efficiency will plummet, not to mention material stresses. Supersonic wind tunnels mechanically compress air into huge tanks, sometimes taking weeks to store enough pressure for minutes of runtime, but that obviously wouldn't work for aircraft.

Jets already produce power efficiently (constantly running at nearly the same RPM, never idling in traffic) so there's much less incentive to create electric aircraft. The cost of energy from an electric aircraft in $/joule could be higher than that of a fueled one because you're introducing an additional energy conversion. Gas/coal -> turbine -> battery -> turbine versus gas -> turbine. You're also not getting the range benefit from burning off fuel and lightening the aircraft.

You shift argument from "aircraft are too slow" to "aircraft are too inefficient," going electric won't fix either. There are applications for electric aircraft, mainly low-speed, long-endurance aircraft that can recharge from solar power without landing, and perhaps more maintainable private aircraft. These will not be challengers to the 0.85 mach 747 though.
> There is not a 1:1 correspondence between Unix time and UTC

Or between any two time formats, but Unix time still makes for the cleanest intermediary by far.
> I don't see the point of zipcar to start with. Just rent a car for the day or use public transport. if you live in an area where those two don't apply, buy a car.

We can do 95% of stuff with existing public transport (since it is very good in London and the UK). Buying a car to cover the remaining 5% is overkill and would cost way more than to use a Zipcar. The annual upfront costs for maintaining a car (VED, insurance, MOT, parking) are going to be more than our average yearly spend on Zipcar, and this doesn't even take into account the initial car purchase or leasing/depreciation.

24 hour rentals to go see nearby family (not served well by public transport) are probably slightly more expensive with Zipcar than a traditional rental company but way more convenient to walk 200 yards to the Zipcar than miles to the nearest rental car depot; especially with a 3 year old (and a car seat) in tow.

It's very useful to be able to rent a Zipcar for 2 hours for £12 to go take a bunch of stuff to the dump, nip into the supermarket and stock up on heavy/bulky items then go to the local DIY store and get a bunch of stuff that can't be easily carried on public transport. Sure, DIY shops will deliver, for a price. Supermarket delivery can be free but the free delivery slots don't always work out time-wise. People can come and collect the stuff that would go to the dump, but it costs.

So, you may have no need for Zipcar, but it does work for plenty of people.
> French revolution, yes it was brought to you by the good folks who also brought you the guillotine. Thus it was imposed on people from above to better their lives

The people of France imposed it on themselves. Riiiight.

> Everyone in England thinks in pounds, stones (yes stones), miles and feet.

No, we don't. Don't speak for me.

A variable base numbering system is utterly absurd and needs to die.

Saying that imperial measurements conform to "real" things is a fallacy, because feet and cups and whatnot are of varying sizes. A metre is an exact length, which we can picture. Feet vary greatly in size.

Basically this article is total bunk.
here's a list that i've compiled over the years.

Daily Habits:

get rid of idle internet time

morning self reflection: what structual and systemic things can be improved today (improve one of the systems)

mental excercise: pick a subject, try to come up with 40 ideas.

go over goals

learn 1 thing before work (could be done in 15 min of reading)

throught the day, stop and classify thoughts as "useful" , "not useful"

do the hardest thing first.. before breakfast..

step out of the comfort zone at least once. (challenge promotes growth)

work on verbal communication (5-15 min practice)

get at least one thing done and off the TODO list

1 HR of quality reading

while being at work, WORK (be results oriented)

spend some time to clear mind clutter and BE IN THE PRESENT

short term sacrifices for long term rewards (expenses, nutrition, excercise)

plan out next day in advance (next week, month)

before taking any action (or not taking action) project forward (30 seconds, 5 minutes, day, year, 30 years) would you be better off with different choice.

recharge emotional energy​
Mark S. mentions it in the Engadget interview: "If I dock this, I can get the full Ubuntu desktop".
> The Food and Drug Administration warns that Dexedrine can cause “new or worse aggressive behavior or hostility.” (.pdf) But the Air Force still blamed the pilots.

It's not an FDA warning, it's the FDA being quoted out of context, then implying that it wasn't the pilot's fault because he was on said drug.

Think for a second about how many other pilots were probably also prescribed modafinil.

Truly, it is the pilot's fault. I think it was a freak accident, though. However, not an accident that was probably directly caused by modafinil.
Maybe in the US. People from other countries want a TV with a diagonal of one meter. It even sounds better because 1 meter is like a barrier unlike 40 inches which is just a number.
Yeah but saying that conforming to supposed real objects is ridiculous. Metric is great because it doesn't correspond to anything in particular, thus there can be no mistakes - a metre is a metre!
Isn't that a supremely plausible reason for wanting to move data from one to the other? If everything was working out just great in MySQL there'd probably be no reason to move it :)
The point of the post is how to efficiently port data from MySQL to Redis once you have decided to make the switch. It's not making any recommendations on when or why to use Redis.
95% of the time, what looks like a failed "loops 101" test actually doesn't matter at all. Maybe your list comparison function takes O(n^2) time... if your list never gets above 10-20 objects, who cares? Yes, if you're running LINQ over a list of 1,000,000 items, then you'll want to be careful what you're calling. But how often does that really happen in mobile apps?

What LINQ does is make your code more concise and readable. It makes it easier to find bugs and easier to understand by someone else (even if someone else is you, 6 months down the road).

It also just takes a lot less time to write.
> vague statements and half-truths

Ouch! A bit offhand no?

My choice was to cover N,Z,Q operationally -- as in what you can do with them. Everyone knows about +,-,/ and so I think it makes sense to connect with this previous knowledge of the reader rather than get into the formality of sets and set containment. I stand by my choice.
Except they aren't strawmen, those are his actual arguments: the only thing that matters is net calories.

Overall calories matter as a piece in the puzzle, and if he said that or even said they are the foundation, he would be right. he didn't. He said only thing that matters is net calorie intake.

You said 'most important'. Congrats! You aren't building strawmen.

And that is KNOWN to not be the case. There are many other elements at play. You as a fitness professional would know this. The type of workout, the type and timing of cardio (if any), the macronutrient ratios inline with your goals. As I said, if the only thing you care about is 'not being a fatass' and the number on the scale is end-all-be-all, calories are probably fine. Though, if you want some size, or definition, or abs, or performance, or any number of other things, calories don't tell the whole story.
Wouldn't it be girth?
I find laughing difficult. Not because I don't have a sense of humour, I get jokes but I very rarely find something funny enough that I can't help but laugh out loud.

I'm not sure if I've ever laughed out loud at a sitcom, even ones that I enjoy. The same for stand up comedy, the rest of the room can be in stitches but my expression rarely changes beyond a slight grin.

This can sometimes be awkward when somebody is telling me an anecdote that is intended to be humorous, because I always end up feeling like I should force out a fake laugh.
But how would that work if you are some poor Joe Schmoe who discovers the next billion dollar idea? How does he manage to pay for the patent before going to market?

Perhaps a better option would be a hybrid of the current system and what you're proposing. Say, a flat fee for the first 2-5 years, and then an option to renew the patent through the current length of a patent (20 years, i think) for x% of the gross profit of the previous year due services/products covered by the patent.
KDE 3 had KRegExpEditor (http://www.blackie.dk/KDE/KRegExpEditor/) but it only recently found someone interested in porting it to KDE 4.
Thanks for the explanation chc, and grn. Indeed, invoking the method indirectly with send or method does produce 10. Nice!
> Seems the only real way of getting the calendar more programmer-friendly is to switch the world over to Unix time.

As others have noted, it'll break during leap seconds where a full second repeats and unix time "conveniently" forgets about it ever existing.
And it's a shame EU just made it easier to get unitary EU patents in Europe now. Ugh.