skysight-inc/HackerNews huggingface dataset:
Naw, you're complicating things. Nil should not be avoided, it should be accepted. If there isn't a current user then don't pretend that there is. Anywhere you are doing `if some_obj` in view code you'll probably be doing `if some_obj.is_a? Guest` or `if some_obj.guest?` anyway.

I've worked on very large and well used applications (billions of loads, multiple data centers, hundreds of thousands of lines of code), not that that should really matter to the argument (logical fallacy and all that), but the thing that I've found messes up Rails applications is large model objects ("god objects"), poorly thought out data relationships, and inconsistent assumptions across systems that lead to hacks. Not nils.
Honest question: why would you want to upvote old posts, or posts where you wouldn't adequately consider the submission in general?
It's sort of broken viewing on mobile and it doesn't really help explain how it looks or work. How is this different or better than read it later type competitors? I am a pretty heavy user for this type of thing.
Yes, but religions of the orient, do not actually punish you for not believing in God. There were atheists, agnostics, ... in India, long before they were tolerated in the West.

My interpretation, and Niels Bohr's, is that it doesn't matter if you believe or not, all that matters is that it brings you happiness, and does not cause harm to others.
You don't actually have to believe in it.

Be that as it may, if you do interpolate it to less constricting religions, Pascal's wager does breaks down; but as you do say, it is an argument for an apologetic. I'm happier being an apologetic than to assume I'm rational.

I'm infact an agnostic, if you're inclined to believe me; but all this bashing of scientists for being religious is annoying. There are, things like, the world being created 6k years back, or that there lived a Super-monkey (Ramayana ?), which is plain silly. Superstitions like the one Sanal Edamaruku, also fall into this latter category. Anything that can be disproved by Science and reason, is not to be believed in.

Yes, the Middle ground is vague and ill-defined, but it's the only sane place to be.
Yes, and I think people should head to Swift if it fits their needs. That is very different from Objective-C losing support however. Objective-C is not going away.
There is a password reset feature. It works via typing in the wrong password. Go to the login page, type in a wrong pwd, and it magically appears.

If I recall correctly PG told me that at a YC event. Damn you PG! :)
Why anything that comes to your mind to do in that situation has to be "work"?
previously posted, and not discussed here:
https://news.ycombinator.com/item?id=7839414
That's why the next sentence begins with the word "and"
I love how he gets right to the core of the problem: Corruption in the US Govt due to 'Lobbying', which basically boils down to the largest corporations running the country.

Continuum anyone?
http://www.imdb.com/title/tt1954347/
US law applies to products being sold to us citizens.
The legal issues boil down to weak protection by Indian Constitution, which allows freedom of expression only for things that would never need freedom of expression.

Under Indian law, the freedom of speech and of the press do not confer an absolute right to express one's thoughts freely.Clause (2) of Article 19 of the Indian constitution enables the legislature to impose certain restrictions on free speech under following heads:

I. security of the State,
II. friendly relations with foreign States,
III. public order,
IV. decency and morality,
V. contempt of court,
VI. defamation,
VII. incitement to an offence, and
VIII. sovereignty and integrity of India.

- http://en.wikipedia.org/wiki/Freedom_of_expression_in_India

This is in a way similar to European notions of freedom of speech. In Europe, you can't deny the holocaust for example.

We should be grateful that the US founders left no room for ambiguity in our Bill of Rights.
Yes, security is important. What I asked was if the BACnet layer should have its own security, or if we should rely on the network security. (My router at home already gives me a 'guest' wifi with restricted access.)

And no, by adding new stuff I don't mean a new standard.

It's called an addendum.
Which, I'm surprised I overlooked, some were made especially to address the security issues: http://www.bacnet.org/Addenda/

If security really is a big issue, the LAST thing I want is give access to the secured network to my PHONE. Is your phone secure? Would you store your bitcoins on it?

The reason that home users have ethernet and IP is because of the hourglass model. The reason that most services just work is that they talk TCP/UDP - anything below that they can ignore - so if we use a new hardware layer, if we use FDDI etc we can still use TCP because everything talks in IP. BACnet kinda breaks that - you mentioned ZigBee adding BACnet support - ZigBee has supported IP for ages - had BACnet followed the hourglass model (as literally every other internet service I have ever seen has done) then support for BACnet would have been immediate and unnecessary to trumpet.

And by supporting IP, it was also (indirectly) supporting BACnet. You just explained how services using TCP/UDP could ignore everything below... I don't understand why you don't understand it's the same thing for BACnet. Those 'official' transport layers offer you alternatives. But guess what, by supporting Ethernet and IP, BACnet can already use pretty much all the network architecture around..

BACnet doesn't quite fit into that, mostly because it replaces IP for (as I understand it) no particularly good reason.
Ok, this might be the source of the confusion. Yes, the BACnet network layer needed to be defined, because at the time IP wasn't everywhere like it is today. BUT, you can easily embed this into other protocols. That's exactly how you talk about your hourglass model: BACnet devices don't care if they are connected by MS/TP, Ethernet, IP, Arcnet... They just look at the BACnet level. Just like many services look at the TCP level, not at the IP or Ethernet level.

About IPv6 for new networks, if they become required, I see no real obstacle into extending the standard for IPv6. IPv6 is itself an example of a standard changing with time. Would you prefer to throw away IP a start from scratch because IPv4 devices might not be able to communicate with IPv6?

You want standards when you have a mature market and you want to prevent lockin. Standards in an emerging market can lead to stagnation and reduced innovation(...)

But why do you consider the consumer domain to be an emerging market? For all intended purposes, you still have lighting, HVAC, access... those all already exist in bigger organizations!

There's nothing new here!
> One thing I've been having trouble with as my project gets more complex is when to refactor.

I usually wait until (A) something is painful and (B) I have enough instances of that pain to see the pattern that my refactor/abstraction will address/consolidate.

Else I'm just rearranging furniture or making it harder to rearrange in the future because my assumptions were wrong -- I've built a fridge and stove in a room that never became the kitchen when I could've just fetched a bucket of ice and a bunsen burner as I needed them. But now all the doors are too small to migrate my appliances because I thought this was going to be a hobbit house. Turns out the guests are only half hobbit.

It's easier to refactor naive, repetitive, even dirty code than it is to refactor failed and premature refactors/abstractions.

Seeking correctness is cool, but often I can't see far enough ahead to know what "correct" actually entails. Writing what feels like a simple/obvious hack now can be better down the road than trying to prematurely engineer something that seems correct.
Which is itself is just special case of difference of squares property:

x^2 - y^2 = (x - y) * (x + y)

In this case y is 1 and y^2 is 1, so this gives us aforementioned:

x^2 - 1 = (x - 1) * (x + 1)

Here is wikipedia page with the proof: http://en.wikipedia.org/wiki/Difference_of_two_squares
Device 6 is amazing. Reminded me of a David Lynch movie.
Cannabis Coworking Space For 'Green' Startups
Stuck in traffic? Help "We Carpool" win Crowdfunder OC – VOTE NOW
!<p>Ever been stuck in traffic and wish you had access to the fast carpool lane?<p>We’re participating in Crowdfunder OC startups competition.<p>We need all the votes we can get in 4 days.
1. Login/Signup to Crowdfunder.com
2. Click on this link and vote for "We Carpool"
http://x3em.com/a
Make sure the vote count increased after u voted.
3. Please share with interested parties ;)
Thanks,
Serge, CEO @ WeCarpool.com
The author has made a misattribution: apologies are due to John Donne, not Ernest Hemingway, for the repurposing of Meditation XVII.
To expound on this, what about having cards, ie single components, be linked to a graphical/interaction test CI-suite.

I know this is sort of pie in the sky but it gets me thinking.
That's my point. They're not spending any more time on anything. They'll just continue spamming down the list and eventually they'll hit you again.
http://www.crowdfunder.com/crowdfundx/cfxoc/companies
But when you're taking time off, are you truly unplugged?

I'm almost finished with the hiring cycle for an SF startup with unlimited vacation policy and where all work is remote; my current butt-in-seat job gives me 5 weeks/year off. How am I going to know if I can truly take 5 weeks/year off (or more) at the new place until I get there? I'd rather have the ability to travel but still be working most of the time than have limited time off but have to be in a fixed location constantly.
This approach has a lot of appeal- I am building lots of Om components that change over time, and things that change over time are hard to debug.

With this approach, I could put in different devcards for snapshots in time for my components, and debug those in a static manner, and see them all in front of me at the same time.

The one additional feature I'd like to see (or maybe it exists already, I just looked at the project briefly so far) is to have a single Om appstate that mutates over time, going from card to card. Then, if I want to document/debug an action by the user requiring multiple steps, I could see each intermediary in the chain of actions. (i.e. "If the user clicks here, they see this. If they now type this here, they see this.")
The kickstarter for the controller boards got a few votes too, but didn't get much traction: https://news.ycombinator.com/item?id=6727326

Glad to see people getting on board now, it's pretty awesome. Fitting Python onto such a resource limited microcontroller is a great achievement.
perhaps it's time to run our blog on node...
>Plenty of people died because of the disproportionate powers of employees to dictate conditions.

This is extremely important and often overlooked. Those pesky government regulations save lives. The idea that dangerous conditions and unsafe product won't happen in the free market because that's "bad for business" is a pipe dream.

Most of us weren't alive when regulations for safety wasn't a "thing" and can't appreciate them.
'How Not To Be Wrong' In Math Class? Add A Dose Of Skepticism
Very interesting stuff! Kudos for taking the time to put this together.

I have 2 suggestions for the presentation:

1. "Cumulative commits" looks like it starts from 0 in 2013, and that total commits doubled in the two projects over a few months. This is potentially misleading - I assume this is showing additional commits since 2013, i.e., 2013 is the baseline. Might be worth mentioning that explicitly.

2. "The players" graph has a nonlinear, seemingly arbitrary scale. This is potentially misleading as it looks like e.g. Samsung has 1/3 the commits of Google, when actually it is more like 1/10. Might be worth mentioning the scale is not linear, or just using a linear scale?
That one only allows sending a preconstructed template comment, not arbitrary feedback.
So they could implement SpaceWar on the PDP-11.
Agreed. I've been excited at the notion that OpenGL was becoming the de-facto low level graphics API (if you want any multi-platform compatibility), and then Apple throws this new thing out to re-fragment the market.
I disagree.

Generally you will have sections of your app that are only for logged in users, so your ACL logic in your controller handily takes care of that, while still giving you the convenience of being able to call current_user and know that you actually have a user, while still being able to say things like `if current_user` where you need it.

I do like your render partial example, but in most cases you will want to be doing something like showing a like button if the user is signed in, in which case you can do:

<%= render partial: current_user %>

And if the current_user is nil the partial will just be skipped.
Mods, can we get the link updated?

EDIT: Thanks dang.
> To take a stab at the second question, I think BNF that fits on one page

Maybe for python, but not for Ruby. Ruby is not particularly simple to parse (though it may be simpler to parse than Perl, and clearly seems to be simpler to implement -- or perhaps its just that more motivation exists to implement it.)
It's not uncommon for a CEO to have back to back to back to back meetings. 9am, 930am, 1015am, 11am. And then again 2pm, 3pm, 5pm, 6pm. So that's the perspective that americans have.

What you are suggesting, which might work in Spain, is that you schedule a meeting for 10am that might not start until 1230 and then, to be safe, you couldn't schedule another meeting until 330 or 4 and that might not start until 6pm.

That would be a really difficult thing to fold into the way Americans work if you want to get anything done, especially on a startup timeline. You don't have 3 months to talk to 20 potential investors if you are trying to raise money. You have to do that in a week.
I actually submitted the article to initiate such a talk. The article failed to convince me completely, but it did make me think about the place of slide-in menus, since I consider hiding UI elements to be generally bad practice.
Netflix Ditches Silverlight for HTML5 in Safari on OS X Yosemite
If i recall correctly , astronauts at Baikonur, follow a lot of traditions before their launch, planting a tree, watching a specific movie, visiting Gagarin's place , every time and more or less there are other "habits" like those for the astronauts in USA, and even the famous peanuts for unmanned vehicles. So maybe it's a mix of tradition and superstition.
Emphatically.

The submitted url was http://www.hypebot.com/hypebot/2014/06/must-watch-john-olive....
Wow, no. There's a ton of people that could use MaaS. People use the big public clouds because they're easy. With MaaS you can build your own cloud almost as easily, and skip the Amazon tax. It's great for big companies that want total control, it's great for any company that doesn't want their sensitive data in someone else's server room (there are a lot of these in finance and enterprise), and small companies that want the flexibility of the cloud without the huge monthly bills.
To clarify: if they receive a reply from me, even if it's a "no thanks go away," they have to take the time to read it just in case it's a "holy crap here's my resume send it to everyone!"
This sounds like a fancy way of saying focus on the product first. All the tricks in the world can only last so long if the product isn't a winner. On the flip side, if you have (and can maintain) the best product then it's only a matter of time until the world figures it out (except in a few winner-take-all-markets like online auctions).

EDIT: PG has also nailed this concept, with his "well" analogy in http://www.paulgraham.com/startupideas.html.
Why WWDC 14 did not yet impress me that much
My thoughts exactly. Python is a beast to embed on iOS.
> Plenty of people died because of the disproportionate powers of employees to dictate conditions.

Surely, "employers" rather than "employees" is meant here!
Love the way as you read the article you see this big modal slide down in front of your face and you have to figure out how to get rid of it. There is a tasteful way to do this and this is not one of them. Retention fail.
Fairly sure a good chunk of it was the various WebKit ports: QT, GTK, etc. On the WebKit side they dropped the Chromium port, the V8 binding layer, etc.
I guess parent post was just sentimental.

But, just to let you know, Konqueror has the ability to use multiple engines. It supports both KHTML and Webkit.

You could have a tab rendered with KHTML and another one with Webkit.
MIT Media Lab's 3D Touch Display
Let's Not Kill the Hamburger Icon Just Yet
Where are you getting the stats that majority of the cloud is RHEL/CentOS?

Published stats [1] show that Ubuntu dominates cloud deployments.

[1] http://www.markshuttleworth.com/archives/1318
I have been working towards that. If you are still following the queue of messages that you mentioned a while back, then you could supply each card instance of your "program" with the list of messages that you need to get to the state you need. So you could make a loop to create the list of cards you want to look at.
The fact a user might have to know which Bluetooth stack they have installed is quite telling as to why it never caught on.
> It would certainly take a lot to convince me to develop something for the iOS ... gated community.

Like the chance to make decent money? Gotta give Apple credit, their users are willing to shell out cash.
If the NSA gets access to your phone, there are hundreds of easier ways to identify who you are than having to go through the schlep of reconstructing your fingerprint.
I don't have a favorite company with good documentation, but these two tools have been useful and seem well designed for creating docs:
- http://daux.io
- http://raneto.com
I'm struggling to understand what you are asking. Are you hoping to construct an HTML page on which there's a button by which you can up-vote an item?

You could look at reverse engineering the mechanism by which votes are cast, and the authentication methods. That will no doubt involve cookies of some description.

What is it that you're actually asking?
I agree Canonical should stick to their core, but it's not the desktop. It's cloud.

They've demonstrated they do not have what it takes to make desktop net profitable for them.

They make most of their money by selling support for their cloud stuff — this is what they should focus on. Desktop has done nothing but lose them money.
One thing people tend to forget is China lucked out in some ways by 9/11. On April 1st, 2001, less than three months after Bush became president, he sent a US plane to the Chinese border, it rammed into a Chinese pilot's plane, killing him, then landed on Chinese soil without permission. Then the US government and press went crazy because the Chinese went in to inspect the plane. Continual press reports about how "we can see with satellites them looking at our plane and technology".

Luckily for the Chinese, all this warmongering ended five months later when the guy who the US armed to overthrow Afghanistan's secular government crashed into the Pentagon etc. because he opposed US bases on Saudi soil.

In all the mawkish tributes to the dead in the Pentagon and changed focus to Afghanistan and the Middle East, the Chinese got about a decade's breathing room from US imperialism. Of course the US is now redeploying to the Philippines and so forth, so that is changing again.
The French have the highest GDP per capita per hour worked (right up there with the Dutch), while working close to the fewest hours. Is that not a sign of productivity?
No.

Number 3 is about you leaving Google, number 5 is more about people wanting to know you so they will be hired at Google.
> Also, I had issues with sound going out and not returning until after a reboot on OS X. This drove me nuts.

This one bothers me endlessly. I got my first Macbook in '09 and have had two others since, and every single one of them has had this problem. I just don't get it.
Chris Lattner on Swift
For content sites, it's probably fine. But for more functional sites, a lot of hamburger usage seems to be simply avoiding having to put some energy into your app's design.

Most of the apple apps put the buttons at the bottom and include a "more" if necessary.

My sense is the hamburger became more prevalent when it was used by default in Bootstrap, et al.
It's not just Indian space scientists: https://www.google.com/search?q=nasa+superstitions

I guess when faced with very high risk situations, people will do whatever helps deal with the pressure, no matter how illogical.
Why your fancy new home page carousel kinda sucks
The players bar graph also threw me. The y-axis increments aren't equal. I realise it's to fit the highest figure in but it doesn't allow for a fair comparison. Possibly better to put an artificial ceiling on it and retain equal increments. Although that introduces it's own set of issues...
Actually, that's not pie in the sky, running selenium against a set of cards would work great. And may be an easier env to work in than the actual main app.
For prime generating sequence you would be much better with Mersenne: http://en.wikipedia.org/wiki/Mersenne_prime

AFAIK there is no sequence that lists all primes, because of the property of prime numbers themselves (not divisible by anything except 1 and themselves). This essentially means that you can't use multiplication to generate primes.

Moreover checking if number is prime is hard in itself, because you need to check for divisibility by all previous prime numbers up until square root of prime candidate you are trying to check. Thus you can think of prime numbers as recursive series.
Anyone has any good idea of what will be the impact of such a decision on the Linux gaming market ?
The kickstarter updates for this project are a good resource for the thought process behind its design and how it was all implemented, very interesting stuff:

https://www.kickstarter.com/projects/214379695/micro-python-...
the whole event was somewhat manipulated by western forces:
https://www.youtube.com/watch?v=s8OnM3heTO4
why down-vote me? I have a legitimate reason to ask this question, no?
HN better show whoever just down-voted, hate lurking jerks.
Are you talking about Intel's purchase of RapidMind?
This! Horseshoes might be the work of the devil! :-)
I read them, then if I think they are good I would want to "upvote" them. Just because it's a little older doesn't mean it's bad news or not worthy of reading any longer right?
Food for thought and further research: Now that fast food menus have become a popular but unhealthy user interface metaphor, people should consider picking pie menus, which are faster and tastier than hamburger menus.

https://en.wikipedia.org/wiki/Pie_menu

"Hold the flick and hold the presses,
spatial borders won't upset us,
all we ask is that you let us swipe it your way."
The problem is that even when people understand. No one does anything.

I told my friends, who are computer programmers, that we need to start fighting for net neutrality. And I give them the links to the video to the comments section.

And it's just blank stares. "Why would I go there?" kinda thing. I tried. I know nothing will happen. I'll tweet and comment. But it's just frustrating that no one cares even if they spend 10 hours a day on the internet.

And that's what I've realized lately, walking around NYC. No one cares. A ton of people don't even have opinions. A ton of people have very strongly held opinions that they don't research, or put any thought into. They just "know" things to be true the way they are. The homeless are lazy. The mentally ill are evil. And no one cares. Or ever does anything.

I can't say I'm much better in terms of actions. It has become a very shitty system where money holds the power and studies have shown your average constituent in some hideously gerrymandered district with options between two corporate funded parties has no say in the system[0].

[0]http://www.princeton.edu/~mgilens/Gilens%20homepage%20materi...