Thursday, November 13, 2014

Cool Tools: Vim Tricks

This post will help me remember cool tricks I learn in VIM.  It's mostly for me to find things I've forgotten how to do ...



Select an XML/HTML tag block





Tag blocks      *tag-blocks*

For the "it" and "at" text objects an attempt is done to select blocks between
matching tags for HTML and XML. But since these are not completely compatible
there are a few restrictions.

The normal method is to select a until the matching . For "at"
the tags are included, for "it" they are excluded. But when "it" is repeated
the tags will be included (otherwise nothing would change). Also, "it" used
on a tag block with no contents will select the leading tag.



Sunday, November 9, 2014

Cool Tools: CPU Analysis (CPU-Z)

The other day my windows machine became really slow. I rebooted, which had no effect.  Looking in procexp, most processes were taking much more CPU then I'd expect, and I had a feeling the problem was the machine was getting stuck with a low clock multiplier.



To test the theory, I ran a tool called CPU-Z and sure enough it showed my CPU was getting the lowest possible bus multiplier.



(To fix the problem I pulled and re installed the battery, and then the CPU stopped being throttled).


Friday, November 7, 2014

Depression reading list

I've had multiple people ask for my book recommendations on depression on bipolar disorder.  Here's my reading list:






An extremely well written book about depression. It helps a reader understand the experience of depression from a superb story teller. The author also has a gripping TED talk.






A psychiatrist's story of bi-polar disorder, a very well written personal memoir.  It gives a good feeling of the highs of Mania as well as the lows of depression. 






An engineering manual for laymen on bi-polar disorder.  This is a great book if you'd like to understand the current medical knowledge around bi-polar disorder, as well as what you can do to for yourself and your loved ones.