Quick and easy binary to dB conversion
Sunday, August 22nd, 2010Here’s a trick to easily and cheaply convert from a binary number to decibels. Depending on your application, the algorithm can be made even more simple.
Here’s a trick to easily and cheaply convert from a binary number to decibels. Depending on your application, the algorithm can be made even more simple.
I find it easier to read off of a screen if I can scribble on the document, adding my own notes and ideas. There’s a program called Foxit Reader that lets you do that. The free version does everything that I need it to do.
I found the writing portion of my PhD difficult. The words slip easily from my mind onto the page while writing for myself. However, I often found myself blocked while writing the dissertation. At times, putting words onto the page felt almost painful. Below, I describe how I overcame this challenge.
I like to analyze and understand everything. However, one of the things that I came to realize is that I don’t understand the writing process. I don’t understand how I convert ideas into words. When I attempt to analyze writing, the writing stops. Analysis may be fine in the later editing stages but I find analysis deadly to the process of synthesizing new text. While writing, I have to force myself let go of my impulse to analyze and to write without trying to write.
I also have a tendency to focus on problems and details. I like to ensure that I have covered every possible issue and exception. As a result, I tend to focus in on problematic details, forgetting the context of the entire work. This results in blockages within the writing process. To reduce my focus on problematic details, I exported notes that I had made out of the main document and into a separate file that I don’t see while writing. I also forced myself to skim the entire work each day to remind myself of the big picture.
Here is my personal list of techniques. Keep in mind that everyone writes differently. While I found these techniques helpful, the same techniques may or may not work for you.
Two more points for techies…
These techniques were helpful to me and they may be helpful to you. If you would like more ideas about defeating writing blocks, I highly recommend Understanding Writing Blocks by Keith Hjortshoj.
Engineers read the following poem while initiating students at iron ring ceremonies.
The Sons of Mary seldom bother, for they have inherited that good part;
But the Sons of Martha favour their Mother of the careful soul and the troubled heart.
And because she lost her temper once, and because she was rude to the Lord her Guest,
Her Sons must wait upon Mary’s Sons, world without end, reprieve, or rest.It is their care in all the ages to take the buffet and cushion the shock.
It is their care that the gear engages; it is their care that the switches lock.
It is their care that the wheels run truly; it is their care to embark and entrain,
Tally, transport, and deliver duly the Sons of Mary by land and main.They say to mountains “Be ye removèd.” They say to the lesser floods “Be dry.”
Under their rods are the rocks reprovèd—they are not afraid of that which is high.
Then do the hill-tops shake to the summit—then is the bed of the deep laid bare,
That the Sons of Mary may overcome it, pleasantly sleeping and unaware.They finger Death at their gloves’ end where they piece and repiece the living wires.
He rears against the gates they tend: they feed him hungry behind their fires.
Early at dawn, ere men see clear, they stumble into his terrible stall,
And hale him forth like a haltered steer, and goad and turn him till evenfall.To these from birth is Belief forbidden; from these till death is Relief afar.
They are concerned with matters hidden—under the earthline their altars are—
The secret fountains to follow up, waters withdrawn to restore to the mouth,
And gather the floods as in a cup, and pour them again at a city’s drouth.They do not preach that their God will rouse them a little before the nuts work loose.
They do not preach that His Pity allows them to drop their job when they damn-well choose.
As in the thronged and the lighted ways, so in the dark and the desert they stand,
Wary and watchful all their days that their brethren’s ways may be long in the land.Raise ye the stone or cleave the wood to make a path more fair or flat;
Lo, it is black already with the blood some Son of Martha spilled for that!
Not as a ladder from earth to Heaven, not as a witness to any creed,
But simple service simply given to his own kind in their common need.And the Sons of Mary smile and are blessèd—they know the Angels are on their side.
They know in them is the Grace confessèd, and for them are the Mercies multiplied.
They sit at the feet—they hear the Word—they see how truly the Promise runs.
They have cast their burden upon the Lord, and—the Lord He lays it on Martha’s Sons!- Rudyard Kipling
I often feel this way:
They do not preach that their God will rouse them a little before the nuts work loose.
They do not preach that His Pity allows them to drop their job when they damn-well choose.
I often feel like there are many things that I have to do before I can have fun, that if I don’t do my job, the world might fall apart. I would prefer to be more like a Son of Mary, able to just enjoy of life.
For me, Kipling’s poem captures my feelings of conflict between engineering that is often subject to strict constraints and artistic expressions that seem more free. That said, the dichotomy is not entirely true. There is a joy in engineering technology. It’s fun to figure out how technology works and to create things using that knowledge. Besides, art isn’t entirely free. It’s a hell of a lot of work to carry out an artistic project of any consequence.
The assumed segregation between art and engineering has annoyed me for a long time. That’s why I’m happy to see projects that bring the two approaches together.
This is old news but if you’re stuck with a lousy selection of fixed-width fonts in Windows XP, you might want to take a look at Consolas, a new fixed-width font that comes with Microsoft Visual Studio and Vista. It’s a big improvement on Lucida Console and Courier New.
It looks good on my laptop but not as great on another desktop that I tried.
Consolas was designed to work with ClearType, which I have been using for a couple years. For that reason, not everyone likes it.
If you have XP, you can get Consolas at least three ways:
Entertaining and opinionated writing advice from George Orwell.
I finally finished reading Style: Toward Clarity and Grace by Joseph M. Williams. I talked about this book at an earlier time on this site. The book starts by talking about what to do rather than starting with rules of grammar. By focusing on the goals of writing, it becomes easier to write and learn without becoming blocked by fear of grammatical error. Williams saves the “rules” for the last chapter where grammar becomes more about refining the style of writing.
I also finished reading On Writing by Stephen King. I found it entertaining and easy to read. King’s book is mostly about his life as a writer and his attitude and approach to writing. He has some good tips too.
Earlier, I compared Google and Yahoo Desktop. At that time, I thought Yahoo was better for the types of searches that I do. I mainly search for text inside 391 (and counting) papers stored on my computer in pdf form.
Now I have found a desktop search that I like even more: Copernic. It uses fewer system resources than Yahoo and looks a bit cleaner.
The first thing that I do when I setup a desktop search is to ensure that it searches only in the directories where I keep my papers. That speeds up the search by making the results more relevant and uses less RAM and CPU in the background.
Lately, Sony BMG has been distributing virus-inspired software in their attempt to implement DRM (Digital Rights Management) onto CD’s. When you attempt to play one of their CD’s on your computer, the CD installs software, known as a rootkit, that hides from your system and can control it at a fundamental level. If you try to copy a CD too many times, the rootkit disables your CD player. If you attempt to uninstall the software, you lose the use of you CD player and (until you wipe your hard drive and reinstall your system).
Worse yet, the rootkit leaves you open to viruses that can piggyback on the rootkit and mess with your system while remaining hidden from your anti-virus software. Since the rootkit came out, hackers have created viruses to take advantage of this flaw. Even Microsoft, who is big into DRM, considers the code to be malicious. A number of lawsuits have been filed in California because the rootkit violates two anti-fraud statutes and an anti-spyware statue.
Sony also uses the software to spy on you.
Under duress from the consumer, Sony has agreed to temporarily stop putting the rootkit on their CD’s but, for those infected, it is almost impossible to remove it. By filling in some forms on a Sony website, it is possible to make the rootkit visible to your system but Sony BMG has not provided a way to get rid of it altogether. They have taken the minimum steps that they think will soothe the consumer but they have not fixed the problem and they have only promised to stop temporarily.
It is hard to understand what Sony BMG was attempting to accomplish with their rootkit. Do they think that people want infectious viruses on their music CD’s? Do they want people to stop buying their CD’s altogether? As a result of Sony’s actions, many are planning to boycott all Sony products until they get their act together. To me, this seems like a reasonable response.
There’s another article that gives an overview and moral opinion on the situation.