517 karma · joined Jul 9, 2010 (16y ago) · 177 submissions
Opinions expressed are my own, and do not reflect my employer.
121.
Automated Launch of 100 node Riak Cluster on EC2(reiddraper.com ↗)
2 points · by cmurphycode · 15y ago · discuss
comment 15y ago · link · parent
Soluble fiber is just that: soluble in water. In your stomach, it absorbs water and turns into a sort of carb-trapping gel. While the carbs are still eventually digested, the gel slows down the absorption. This is good, because it helps to regulate your blood sugar (not as much of a big spike and drop).
Since blood sugar spikes == insulin response == hungry signals, this is quite useful.
Insoluble fiber is also useful, but mostly just for waste processing.
comment 15y ago · link · parent
I can understand your confusion, given the seemingly separate use cases for reset, but in fact, it makes perfect sense. Reset always does what it says it does. Let's break it down:
git reset --mixed <commit> will make your current HEAD point to <commit>, reset the index to <commit>, and leave your working tree alone. This is useful for "uncommitting" the last commit, e.g. so you can split it up into smaller commits. Example:
git commit -am "lots of changes"
# realize you should really do better
git reset --mixed HEAD~1
git add myfile.py
git commit -m "implemented feature x"
git add yourfile.py
git commit -m "bugfix #3182"
Handy. Now let's look at the "unadd' scenario: git add dontstage.py
git reset HEAD dontstage.py == git reset --mixed HEAD dontstage.py, since --mixed is the implicit default
git doesn't touch your commits, since you are already on HEAD. Git does reset the index to HEAD, which is before you added dontstage.py. If you had other changes that you added, it won't reset those, since you provided the limiter of dontstage.py. Git does not touch your working tree, so dontstage.py stays modified. The end result? Your working tree, index, and commits look exactly like before you ran git add dontstage.py.Now, if someone (e.g. easy git: http://people.gnome.org/~newren/eg/) wants to make git reset HEAD to unadd, that's fine by me. I'm speculating here, but I imagine that the Linus/git dev point of view is, why call it anything other than exactly what it is? It's just nice and elegant that it happens to suffice multiple use cases.
The more you get into git, the more you start to realize why some of the commands that seemed arcane in the beginning are simple and elegantly named.
comment 15y ago · link · parent
Once you get used to having the ability to create arbitrary commits from a huge changeset, you'll find it aggravating when everyone else commits "3 bug fixes to core, swapping out a style sheet, and cleanup in database code" :)
comment 15y ago · link · parent
Honestly, such a system would be ridiculously easy to game with a botnet, so there needs to be significant work in the area beforehand.
comment 15y ago · link · parent
By the way, much like the new reduced plastic bottles by Poland Spring, this is a great example of company innovations spurred by the environment. So many cost saving ventures would have been out of the question for companies due to image (What? You expect me to get excited about the fact your bottles are more flimsy??), and are now up for grabs. Companies that recognize this opportunity will do well.
comment 15y ago · link · parent
comment 15y ago · link · parent
Very good article, and the visual aides helped a lot.
comment 16y ago · link · parent
I printed out the get/reset diagram and referred to it a lot when I learned git. I still check it every once in a while, for reassurance :)
comment 16y ago · link · parent
There are commands built in for a lot of actions, and if there is a right click option that the extension doesn't provide, you can always write a script to extend it. Vimperator is nicely extensible.
I'm not sure if Vim scrolling with hjkl resolves the issue you saw with the arrow keys- I'm sure that's site dependent, and you'll have to try it yourself.
Good luck!
comment 16y ago · link · parent
Firefox also has the Vimperator plugin that gives vim-like nav for Firefox. Highly recommended if you like Vim.
comment 16y ago · link · parent
Personally, I think work ethic, along with intellect and charisma, is something you are partially born with. It's just silly to say that genetics play no factor: do those with severe mental disabilities just not work hard enough? Think about it as your genes defining a range: you can be between the 30th and 75th percentile of human prowess. Where you fall in that range is up to you.
comment 16y ago · link · parent
Think about it: the actual problem with spammers defeating CAPTCHAs is low quality content. I'd much prefer to expend energy trying to stop low quality content, which is often delivered by non-spammers :)
I wrote a blog post expanding on these ideas: http://cmurphycode.posterous.com/the-problem-with-captcha
comment 16y ago · link · parent
The wiki page for the other girls has information and links: https://secure.wikimedia.org/wikipedia/en/wiki/Abigail_and_B...
comment 16y ago · link · parent
As usual, the Pro Git book does a great job explaining: http://progit.org/book/ch3-6.html
In short, if your team develops with an old-school, SVN type model, where there is one reference repo (the remote) that all developers pull from and push to, rebase to your hearts content. But if your team pulls from each other, you really want to be careful with rebasing. I believe this is how the Linux kernel is developed, which explains all of the warnings about git rebasing. After all, it's logical to assume that you should do exactly as the Linux kernel developers, for whom git was created, do!
comment 16y ago · link · parent
With the huge amount of hours that a knowledge worker spends at his day job, I personally feel that it's almost never worth it to have a job you don't enjoy. There just aren't enough hours in the day to do enough exciting things, once you subtract a healthy amount of sleep, maintenance tasks, and the day job. It certainly isn't worth it at the typically small compensation differences between jobs.
comment 16y ago · link · parent
^foo^bar replaces the foo in the last command with bar
example: less setup.conf, ^less^vim
alt+. recalls the last argument of the last command (in emacs mode, anyway)
example: less setup.conf, vim alt+.
As mentioned, Ctrl+R is great for history searching. Repeatedly pressing Ctrl+R goes to the next result, and you can use the arrow keys to edit.
cd - goes to the last directory. It handles most of the use cases for pushd and popd.
comment 16y ago · link · parent
comment 16y ago · link · parent
I think it's naive to say the former. Apple posted 3 billion dollars in profit last quarter. If all Nokia had to do to post those numbers was grossly overstate every feature in their phones (which should be easy, there are so many), they'd probably be doing it.
The thing that really bugs me about this is that personally, as a DIY techie, I actually like the power-user oriented nature of the Nokia phones a lot more than the iPhone (at least, at first, when the iPhone was hopelessly feature-barren). I probably would've really liked your real time search! But I'm not arguing about what I want from a product. I'm arguing about what the majority of people want.
comment 16y ago · link · parent
Now, I'm not entirely convinced that Google Instant is polished enough either- anecdotally, I've already seen some confusion. But saying "it's all marketing" willfully ignores the lesson we've all been taught by Apple: a revolutionary feature that isn't intuitively usable is no revolutionary feature at all.
comment 16y ago · link · parent
For example, when I wanted to get in better shape, I started calorie counting (in addition to exercising more, etc). I entered everything I ate into a website. This helped me become aware of what I was consuming- which can be quite deceiving.
Once I got a better handle on what foods were "dangerous" (not just bad for me, but which I ate in large quantities), I stopped calorie counting, but I'm maintaining my shape. I may go back to calorie counting every once in a while to see if anything's changed, but just that initial investment of time paid off quite well.
comment 16y ago · link · parent
I know I don't do enough stretching, though. It's just frustrating because my hamstrings never seem to improve, and as soon as I stop stretching, I go back to base (about 12" from touching my toes while standing).
comment 16y ago · link · parent
It is certainly a lot healthier for your knees than squatting on the balls of your feet, if only because your knees stay roughly on the same vertical as your toes. This is old powerlifter wisdom, and anyone with a knee injury can tell you first-hand. I can't squat on the balls of my feet without my right knee squealing in pain. Squatting on my heels is, at least, tolerable.