News for hackers. Stuff that matters.

darrickwiebe

Re:CSP is Responsive Design on Thursday August 01, 2013 @05:35PM (#6143693)
This is a great post! Very nicely written and understandable. I really like the way this approach breaks up the work of reacting to, processing, and rendering the results of events into discrete and composable steps. I feel like I'm starting to understand the potential power behind CSP for user interface development.

I do wish that it included a full code listing, though. I'm curious to see how the code looks in its finished state, together with whatever additional helpers need to be defined to accomplish what we see on the page. I'm also interested to know how the protocols the article defines get implemented and used.

Re:A year without food (2012) on Wednesday July 31, 2013 @01:56PM (#6135592)
I came to the same conclusion. I think fasting is a good example of a weight loss approach that optimizes for low ego depletion.

http://en.wikipedia.org/wiki/Ego_depletion

Re:A year without food (2012) on Wednesday July 31, 2013 @02:04AM (#6132141)
No, I only drank water. A lot of water. Even on my regular diet I drink more water than most people, but when fasting, I'm sure I drank 2-3x more water than normal. I would typically have a bottle or glass of water on hand all the time.

Once I did experiment with either lemon water or weak tea (can't recall now) but that caused an unpleasant case of acid reflux, which was very unusual for me.

Re:A year without food (2012) on Tuesday July 30, 2013 @10:17PM (#6131503)
Simply the first link on Google to the text of the article.
Re:A year without food (2012) on Tuesday July 30, 2013 @09:56PM (#6131416)
Harpers Magazine published a much better written article that discusses this same Scotsman along with an American who achieved some slight fame for his fasting around the beginning of the 20th century. In addition, the author writes about his own fairly significant fasts.

http://www.scribd.com/doc/95722979/Starving-Your-Way-to-Vigo...

After reading that article and doing a little bit of further research online, I tried a pair of fasts. The first was a week, followed a few months later by one of 10 days. My experience was very similar to what the author describes. That is, I felt good during the fast after the miserable 2nd day. Coming off the fast was no problem, either. Food was actually not a significant temptation during the fast and I found the discipline aspect to be much easier than the couple of standard diets I've ever tried.

I'm tall and about 50 pounds overweight (~200 lbs would be my target weight). In the 10 day fast I lost roughly a pound per day, but for me the weight came back within just a few weeks. I suspect that to have the best results I'd have to continue my fast for 5-6 weeks.

In fact, I only broke my fast because I was leaving for a road trip vacation in which I had to drive. My focus was actually fine and I was able to write software with no problems during my fast, but wasn't willing to experiment with long stretches of driving.

I'm actually looking forward to my next fast which I hope I can make last at least several weeks.

Re:Grad Student Who Shook Global Austerity Movement on Friday April 19, 2013 @08:41AM (#5576286)
If you look at the winners of the Underhanded C Contest [1], the subtle and deniable "errors" that are hidden in innocuous looking pieces of code remind me a lot of the type of error that this spreadsheet sounds like it contains.

It's telling that now that their data is exposed as being incorrect, the original authors still are standing behind their conclusions.

[1] http://underhanded.xcott.com/

Re:Git tips to stop you getting fired on Monday April 08, 2013 @10:34AM (#5511897)
This command has a mistake in it:

  ours   = "!f() { git commit --ours $@ && git add $@; }; f"
it should be

  ours   = "!f() { git checkout --ours $@ && git add $@; }; f"
I've been considering adding a treadmill to my standing desk, but am concerned about the whine of the treadmill and the sound of my footsteps on it bothering others in the room or who work below me. How is the noise from your setup? Have you had to address that in any way?
Re:A Minimal ClojureScript Project on Tuesday October 02, 2012 @01:26PM (#4603119)
Under lein 2, the "lein run" task fails with the following error:

Exception in thread "main" java.lang.ClassNotFoundException: clojurescript-ohpointone.core

I installed the stable release of leiningen and it works fine.