Skip to content

{ Author Archives }

The problem with personal finance blogs

I love me some personal finance.
I know, some think it’s boring, but I love thinking about personal finance, the stock market, and all the ins and outs of the personal investing. I like researching stock picks, thinking about the market, and what I can do to further my own finances. In fact, I’ve [...]

Reject the Treasury’s proposed bailout

I know the following will be ignored. I’ve got to try though…

Senator:
I am writing to tell you my feelings regarding the Treasury’s recent proposal to buy up to 700 billion dollars of assets from America’s financial institutions. I feel this legislation would be a disaster for the American people, and I will outline [...]

Noogler

Since I only post when I feel like I have something to say, the fact that it’s been over 4 months since my last set of posts might make people think I haven’t had a lot to say recently. That would be incorrect. I have had a lot to say, but little time [...]

When Ants Come to Your Picnic

Since I posted my “Sling Blade Runner” answer, I’ve been in discussion with Benjamin Meyer about the puzzle, my solution, and other general topics. During this discussion, he shared his solution with me, and as a collaboration, we found a set of movie titles that is 326 movies long. The original list of [...]

Sling Blade Runner

Lately, I’ve been without a project to keep me busy at nights (hence all my blog posts). I’m learning python, but since my main gig is C/C++, I like to keep those skills sharp with little puzzles. While looking for interesting coding puzzles, I stumbled across a page at ITA Software that asks [...]

Beautiful Code

Recently, my wife and I went to the local Borders, and I saw O’Reilly’s Beautiful Code. Since the book has sat in my Amazon queue for months, I was excited to get a chance to peruse it. So, I gleefully sat down, cracked the cover, and proceeded to read a number of chapters.
I’ll [...]

Safe Mutex Management

Recently, I’ve been writing a fair amount of threaded C++ POSIX code, and (as I often do), I decided to wrap the POSIX mutexes in a convenient little wrapper class:
 
class Mutex
{
pthread_mutex_t mMutex;
public:
Mutex() { pthread_mutex_init(&mMutex, NULL); }
~Mutex() { pthread_mutex_destroy(&mMutex); }
 
void [...]

Torch Singer

These things crawl across my floor, I can’t use them anymore.
There’s a heaven in her band, Hallelujahs in my hand.
All my patience, love’s inside — she just climbed the stairs and died.
Lights that rose, and fell again, songs that thinned out near the end.
Her voice trailed off in the end.
Though your miles are more than [...]

Escaping the MTRX

Embedded developers have it harder than most. Often we don’t have library options most other developers do. For example, the library might depend on file I/O, or it might require easy access to a large heap, or it even might require floating point arithmetic that our part is no good at implementing in [...]

A line in the sand

The other day, someone (who shall remain nameless to protect their identity) asked me the following:

I have a set of data points, (X,Y), and I know they are related through a simple function:

How do I determine m, and b?

Now, there are many ways to determine values for m and b; but, right now I’d like [...]