Archive for June, 2007

Stack Trace in Linux

Friday, June 22nd, 2007

This is incase I forget how to print out my current stack in linux:

#include <execinfo.h>

size_t sz;
void *bt[20];
char **strings;

sz = backtrace(bt, 20);
strings = backtrace_symbols(bt, sz);

for(int i = 0; i < sz; ++i)
fprintf(stderr, “%s\n”, strings[i]);

TorrentSpy Ordered to Log Ram??

Thursday, June 21st, 2007

So if you check out this article on ZDNet you’ll see that a Los Angeles judge has ordered TorrentSpy to start logging all site traffic and to turn over all data stored in RAM on their servers. This is the most absurd thing I have ever heard of. The article on ZDNet likens this to having to save post-it notes but it goes far beyond that. I would liken it to a person having to store every single thought that they had. The brain, like the RAM on a computer, works far faster than a pencil, keyboard, or a hard drive. That means that the brain, like the computer, would be forced to work at the speed of your fingers. Can you imagine having to think at a rate of 50 or even 100 word per minute? Absolutely absurd.

Anyway, if you folks at TorrentSpy are reading this, here are my suggestions for you. First of all, absolutely insist that the MPAA have to provide you with all the hardware and any software needed to log this. Secondly, insist that any software they provide you be open source and that it be peer reviewable on the internet. This is to protect you from having the MPAA do anything malicious or illegal. I’d then also get the judge to allow you to only put this logging on half of your servers. You, in good faith, would not modify your network structure to keep those servers from receiving less connections than they can handle. We all know they won’t get that much traffic anyway, they will be completely bogged down. Finally, to show just how absurd logging RAM is, I’d suggest you turn on encryption for all server traffic. Might as well make the MPAA sort through thousands and thousands of pages of factoring data. This will cause server performance to be so slow that these servers will only get a few hits per hour. It would affect very little of your clientel.

Good luck to you TorrentSpy! While I never condone piracy (I do work in the software industry, after all), I believe that the RIAA and MPAA have gotten themselves into their own mess by churning out complete CRAP for the last 10+ years. If they actually put out a decent work, maybe people would pay to see it in the theater and even pay to have a copy at home? A good movie is worth $10-15. But, ninty-nine percent of the movies produced these days aren’t even worth the cost of the film they are stored on.

P0171 Check Engine Code on 2000 Toyota Corolla Part 3

Wednesday, June 20th, 2007

Ok, after reviewing the previous charts a few times, I decided that the Mass Airflow Sensor and the second Oxygen sensor were not behaving the same when my check engine light would turn on. That is to say that I could follow the two graphs and they tended to behave the exact same way when everything was normal. When the problem would occur, my MAF sensor was indicating that the air intake was decreasing while the second oxygen sensor was indicating that oxygen was increasing. This suggested to me that the MAF was not reading the amount of air properly and so we were running lean, which caused an upward spike of available oxygen in the air.

I bought a reconditioned MAF sensor for about $80 + $50 core and replaced it on my car. It only takes about 5 minutes to do. I reset the computer and took it for a test drive. The performance seemed better at the time but it was hard to say because the computer had to readjust itself.

It has been about 220 miles and two week now since I replaced the sensor. The cars performance is good, it accelerates more smoothly and has more power. I haven’t put in a new tank of gas yet, so I have no idea if the gas mileage has improved.

So, if you have this problem and cleaning the MAF sensor doesn’t seem to work, that does not mean that the MAF isn’t the problem. Mine seemed to completely malfunction randomly and cause horrible performance. The gas mileage had dropped significantly even though the check engine light didn’t always turn on.

Work Email Address Hijacked

Monday, June 11th, 2007

That’s right, someone stole my work email address. The culprit was no hacker though, it was the CEO of my company who took it from me. Why would he want my email address? Well his administrative assistant has a name that is almost identical to my own. In fact, the only difference between our first and last names is one letter.

His assistant and I have peacefully coexisted ever since she started working at our company about 6 months ago. Occassionally, someone inside the company would incorrectly send emails to her instead of me. The reason they do this is because they use auto complete to type in the address for them automagically and my name comes before hers alphabetically.

For reasons unbeknownst to me, he decided this morning that I needed a new email address. His office didn’t contact me, ask me how I felt, anything like that. I got an email from our IT department asking me what my middle initial was so that they could adjust my address. Of course, several months ago his assistant asked me if it was okay for us to switch addresses. I objected then since I had been using that email address for about 3 years and felt that it was too inconvenient since the problem only seems to be an internal one. Changing email addresses wouldn’t fix an internal problem because they are using their address book auto complete, and not just typing in the wrong address. So, his office already knew that I was oppossed to the idea.

Anyway, so I responded to our IT departments email and made sure that the President’s assistant got my response. I told them that I believed strongly that the problem was caused by people being careless, and not because of my address. I also told them that the change would be rather inconvenient because I couldn’t remember all of the mailing lists I was subscribed to, that it might inconvenience customers, vendors, and other people, but the IT department said their hands were tied.

That wasn’t at all surprising. I just think that it is absurd that my email address of many years hsould have to change because of a perceived problem by the CEO. I have several friends who have had to deal with this problem for over 4 years. I’m willing to bet $1000 that it doesn’t even fix the problem. I’m going to laugh if I get some super confidential email after all this fuss was made over my email address.

The best part of all was that the IT department didn’t even tell me before they made the change. They just did it and it caused my email to go down. I was without email for hours because of this.