Live data from Hacker News

Show HN: Figure out when you closed your MacBook lid

sleep.gordn.org

31–40 of 52 posts

Re: Show HN: Figure out when you closed your MacBook lid

#31

"If you get an error saying that this app is from an unknown developer, that's because Apple doesn't trust you to make grown-up decisions yet about what applications you want to run. Just find Sleep app in your Applications folder, right click on it, and click Open." Yes, Apple doesn't trust you, and with good reason. I think we have properly demonstrated the average public has no sense at all when when it comes to r…

Developers should just sign their apps. Apple even gives signing keys away free of charge.

Re: Show HN: Figure out when you closed your MacBook lid

#32
post #26

Technical content aside, anyone else think that need for this app is a pretty good indicator of some rather unhealthy sleep habits?

Ya this is not a problem I've ever had. If I'm that tired I just go to bed. I've had many a late night but never such that I'm unable to control where it is I fall asleep. Not sure how common thesw habits are.

Re: Show HN: Figure out when you closed your MacBook lid

#33

node.js? Seriously?

Yes. node-webkit / nw.js is really slick. I love that I can create a desktop app without even a hint of Cocoa or Obj-C on my part. The runtime is like 90mb, yes, but the source itself is 4mb including dependencies. Memory usage is decent at ~18mb

I don't know about you, but I don't want an applet as small as this eating up 18MB...

Really, what's up with you people?

BTW, not saying that the idea is bad or anything, but it's sad to see people talking about such a waste of resources like it's OK to use in "production". People have other stuff running on their machines and it adds up, quickly.

Re: Show HN: Figure out when you closed your MacBook lid

#34

"If you get an error saying that this app is from an unknown developer, that's because Apple doesn't trust you to make grown-up decisions yet about what applications you want to run. Just find Sleep app in your Applications folder, right click on it, and click Open." Yes, Apple doesn't trust you, and with good reason. I think we have properly demonstrated the average public has no sense at all when when it comes to r…

Developers should just sign their apps. Apple even gives signing keys away free of charge.

Do you mean if you already have a paid Mac / iOS developer account? That's the only way I've seen that provides the ability to sign an app.

Re: Show HN: Figure out when you closed your MacBook lid

#36
post #26

Technical content aside, anyone else think that need for this app is a pretty good indicator of some rather unhealthy sleep habits?

Ya this is not a problem I've ever had. If I'm that tired I just go to bed. I've had many a late night but never such that I'm unable to control where it is I fall asleep. Not sure how common thesw habits are.

I think it's more common among students (which the author happens to be). I used to fall asleep on my laptop during all-nighters in the library fairly often in college, when I didn't have the luxury of just going to sleep because I was tired.

Re: Show HN: Figure out when you closed your MacBook lid

#37
post #19

I find the technology choice here very interesting, a desktop applet programmed with what I look at as mainly web technologies (JavaScript, JSON, Node, Webkit). It's impossible to ignore how the landscape has changed in the past 5 years and how web-style programming is slowly bleeding into spaces dominated by native applications. When I first got into software development years ago with an eye for tools and games, I…

I prefer to put as few layers of abstraction between me and the hardware as feasible. Maybe because the first part of my career was in embedded software.

Re: Show HN: Figure out when you closed your MacBook lid

#38

Earlier quoted context omitted.

I don't think developers do either. Apple prompting you when you run an untrusted app for the first time is almost certainly a good thing (app replaced with a malicious one? you'll get an unexpected prompt), and it hurts nobody.

If someone has the power to replace an installed app on my machine, it's already game over.

How so? On OS X that doesn't require admin rights.

Re: Show HN: Figure out when you closed your MacBook lid

#39

Sounds to me like the real solution to this problem is to have some sleep hygiene and get off of your laptop for awhile when you get sleepy. If I was frequently waking on the couch with my laptop on my chest I wouldn't think "gee, did I get enough sleep? I should write an application that detects what time I doze off on the couch!" I'd think "Wow, I need to address my late night computing habits, as they're clearly i…

Haha. Yes. I suppose you're right. I work full time and go to school full time so sleep is a luxury and I typically find myself working late nights.

Oh I understand! Please read my comment as concern and not derision :)

Re: Show HN: Figure out when you closed your MacBook lid

#40

Sounds to me like the real solution to this problem is to have some sleep hygiene and get off of your laptop for awhile when you get sleepy. If I was frequently waking on the couch with my laptop on my chest I wouldn't think "gee, did I get enough sleep? I should write an application that detects what time I doze off on the couch!" I'd think "Wow, I need to address my late night computing habits, as they're clearly i…

Haha. Yes. I suppose you're right. I work full time and go to school full time so sleep is a luxury and I typically find myself working late nights.

So you want to answer the questions 'when did i fall sleep last night?' and 'did i get enough sleep?' I have to wonder why.

It suggests you are wanting to ensure you get a healthy amount of sleep by getting the answers to these questions. But really, you don't need to answer these questions at all. Instead just time-box the amount of sleep you should have (whatever you determine that to be) and then just set alarms on your phone/laptop around your schedule to instruct you when to go to bed and when to sleep - sorted.

I sense your overly elaborate, approximate solution to your problem is a result of you suffering from sleep deprivation! ;)

Post reply on HN