Live data from Hacker News

Remember that Lifehacker post about Seinfeld's productivity secret? I made a small site based on it.

dontbreakthechain.com

31–40 of 43 posts

Re: Remember that Lifehacker post about Seinfeld's productivity secret? I made a small site based on it.

#31
post #24

Earlier quoted context omitted.

"so I shouldn't have been able to click the days after today?" No, I did not get to that. I just fixed it so that if all the days you've clicked are after today (PST) then it does not try to calculate the streak of days between today and the beginning of time. And yeah, I was just lazy to not include timezones. I should fix that.

I have no idea if this is possible, but what about trying to read the timezone settings in the host computer with Javascript, rather than asking the user to set that?

"... I have no idea if this is possible, ..."

Either do I but it would be just as easy to add a login, select timezone & store that, but then if you take a plane from foo to bar and your zones change you have to change it again.

This is a good idea btw. And I have looked at calendar apps in the past. The big PIA is time-syncing in with where you are at the moment.

Re: Remember that Lifehacker post about Seinfeld's productivity secret? I made a small site based on it.

#32

Earlier quoted context omitted.

I have no idea if this is possible, but what about trying to read the timezone settings in the host computer with Javascript, rather than asking the user to set that?

"... I have no idea if this is possible, ..." Either do I but it would be just as easy to add a login, select timezone & store that, but then if you take a plane from foo to bar and your zones change you have to change it again. This is a good idea btw. And I have looked at calendar apps in the past. The big PIA is time-syncing in with where you are at the moment.

Okay. It should now pick up your timezone via js. Unfortunately right now you won't notice it until the second request. I could have js refresh the page when it detects that the tz needs to be set/changed, but I don't want to do that until I am totally certain it cannot end up in an infinite refresh loop.

Re: Remember that Lifehacker post about Seinfeld's productivity secret? I made a small site based on it.

#33
post #32

Earlier quoted context omitted.

"... I have no idea if this is possible, ..." Either do I but it would be just as easy to add a login, select timezone & store that, but then if you take a plane from foo to bar and your zones change you have to change it again. This is a good idea btw. And I have looked at calendar apps in the past. The big PIA is time-syncing in with where you are at the moment.

Okay. It should now pick up your timezone via js. Unfortunately right now you won't notice it until the second request. I could have js refresh the page when it detects that the tz needs to be set/changed, but I don't want to do that until I am totally certain it cannot end up in an infinite refresh loop.

"... The big PIA is time-syncing in with where you are at the moment ..."

Though I was thinking this fails if your machine has the wrong time.

"... It should now pick up your timezone via js ..."

and you can use this to check against user preferences in TZ. I'll be checking the src how you do this. Difficult to find out how?

Re: Remember that Lifehacker post about Seinfeld's productivity secret? I made a small site based on it.

#34
post #12

Earlier quoted context omitted.

Nice. Feature request: could you offer more than one chain? Chains that aren't daily (e.g. if you're in sales, it wouldn't make much sense to expect the same quota for Wednesday as for Sunday)?

Yeah. I've been thinking about how to best add more than one chain since I started. My main concern is making sure that at any time you can single click on a day with an unambiguous result (viz. it toggles color). So far I'm thinking some sort of tabbish view where you only see one chain at a time. Adding non daily chains is something to think about.

Brett,

Here's a suggestion for non-daily chains: say I want to work out twice a week. I can set that property (somehow) in the chain name, and when I work out on Monday and market it on the calendar on Monday, it will have mon-wed marked off. Obviously, there's a problem with fractions, but it should work.

Re: Remember that Lifehacker post about Seinfeld's productivity secret? I made a small site based on it.

#36
post #13
post #4

Oh snap. You sneaky sneaky. We might just have to launch tonight instead of tomorrow. Well played! I really like how you've kept it drop-dead simple. Our site offers a little more social-wise, so I'm sure there will be plenty of people who prefer your application. Great design!

Thanks. And thanks for inspiring me to get it out. I look forward to seeing what you are working on.

http://www.cha1n.com

Re: Remember that Lifehacker post about Seinfeld's productivity secret? I made a small site based on it.

#38
post #32

Earlier quoted context omitted.

Okay. It should now pick up your timezone via js. Unfortunately right now you won't notice it until the second request. I could have js refresh the page when it detects that the tz needs to be set/changed, but I don't want to do that until I am totally certain it cannot end up in an infinite refresh loop.

"... The big PIA is time-syncing in with where you are at the moment ..." Though I was thinking this fails if your machine has the wrong time. "... It should now pick up your timezone via js ..." and you can use this to check against user preferences in TZ. I'll be checking the src how you do this. Difficult to find out how?

JSTZ_OFFSET gets set by the backend from the session:

 var offset = new Date().getTimezoneOffset() / 60
 if(offset != parseInt(JSTZ_OFFSET)){
   new Ajax.Request("/jstz/" + offset);
 }


Re: Remember that Lifehacker post about Seinfeld's productivity secret? I made a small site based on it.

#39
post #35

I like it. One nitpick is that when you go to the login page the cursor does not default to the login field. This is kind of expected behavior. Anyway, pretty useful little app. Thanks! Edit: Feature added, rock on.

Thanks. Should be fixed.

Re: Remember that Lifehacker post about Seinfeld's productivity secret? I made a small site based on it.

#40
post #38

Earlier quoted context omitted.

"... The big PIA is time-syncing in with where you are at the moment ..." Though I was thinking this fails if your machine has the wrong time. "... It should now pick up your timezone via js ..." and you can use this to check against user preferences in TZ. I'll be checking the src how you do this. Difficult to find out how?

JSTZ_OFFSET gets set by the backend from the session: var offset = new Date().getTimezoneOffset() / 60 if(offset != parseInt(JSTZ_OFFSET)){ new Ajax.Request("/jstz/" + offset); }

thanks for the code sample. didn't know JS had a date object. then again there are lot of things I don't know ...
Post reply on HN