Live data from Hacker News

Show HN: Figure out when you closed your MacBook lid

sleep.gordn.org

11–20 of 52 posts

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

#15

If you don't want to install an application, you could type something like pmset -g log|grep -e " Sleep " -e " Wake " And get the same results (although a bit harder to sift through) (source: http://apple.stackexchange.com/questions/52064/how-to-find-o... )

+1. Yup. Sleep is a 98MB wrapper around pmset. :)

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

#16

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

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

#17

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.

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

#18

If you don't want to install an application, you could type something like pmset -g log|grep -e " Sleep " -e " Wake " And get the same results (although a bit harder to sift through) (source: http://apple.stackexchange.com/questions/52064/how-to-find-o... )

+1. Yup. Sleep is a 98MB wrapper around pmset. :)

Holy crap. The DMG is 33MB. What is being done that's so huge?

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

#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 approached web programming as a stepping stone. I wonder what direction I would go if I were to start over today.

Post reply on HN