Doug’s Blog

Handily dispensing information to .00000001% of the world’s population

Archive for 2010

http AJAX fails in Internet Explorer

Friday, December 3rd, 2010

I ran across an interesting bug recently where I had an AJAX routine failing when I viewed the page in IE8. When you clicked the little warning icon in the lower left, it gave a message of “Object doesn’t support this property or method”!

It was failing around code that looks like:

function parseCalcResponse() {
if (http.readyState == 4 && http.status == 200) {
results = http.responseText;
results = results.split(“|||”);
document.getElementById(‘test’).innerHTML = results;
}
}

It turns out, the fix was to declare “results” at the top of the function code with:

var results=”;

And that fixed it!

SVN in chroot says you don’t exist

Wednesday, September 29th, 2010

You may one day set up a chroot environment and find you get this message when you try to ssh or use svn (using ssh):

You don’t exist, go away!
svn: Connection closed unexpectedly

In addition to my assurance that you do indeed exist in the universe, let me tell you how I fixed it.

Check your chroot /etc to make sure passwd and shadow exist for your user and the IDs are correct.

Then, note that when svn does a repository connection it uses libnss_files.so which can require proper DNS resolution. In my case, I had to add the repository domain name into the chroot /etc/hosts file.

Then I existed in more ways than one.

Fedora13 kernel update breaks video

Friday, September 10th, 2010

I did my usual old “yum update” the other day and it hosed up my video upon reboot!

Never fear, it is a known problem, and has probably already been fixed by the time you read this.

But one thing I learned is that you should have akmod installed so the system will be smart and use a previous video driver if it fails. To do this, all I needed to do was:

yum install akmod-nvidia

then, on reboot, it was all working again.

[Update]

One thing to note is that when you do a yum update, make sure if there is a new kernel that there is a corresponding nvidia update for it! If not, then DO NOT yum update, and try again in a day or so. Eventually there will be a matching nvidia update and you are safe to update. Example:

Installing:

kernel x86_64 2.6.34.9-69.fc13 updates 22 M

kernel-devel x86_64 2.6.34.9-69.fc13 updates 6.4 M

Removing:

kernel x86_64 2.6.34.7-63.fc13 @updates 102 M

kernel-devel x86_64 2.6.34.7-63.fc13 @updates 23 M

Installing for dependencies:

kmod-nvidia-2.6.34.9-69.fc13.x86_64 x86_64 1:260.19.36-1.fc13.3 rpmfusion-nonfree-updates 2.8 M

Removing for dependencies:

kmod-nvidia-2.6.34.7-63.fc13.x86_64 x86_64 1:260.19.29-1.fc13 @rpmfusion-nonfree-updates 12 M

Hawaii 2010 – the good and the bad

Monday, July 19th, 2010

OK, I’m going to depart from my usual tech blogging to give my reviews on some businesses on my 2010 trip to Hawaii. My family and I head to Hawaii typically every two years, and we’ve been to a number of the islands, but this year was our first trip to Maui. Plus, it was our 10 year wedding anniversary, so we wanted a special trip.

We decided on booking the Westin Maui Resort & Spa, because it looked like a top level accommodation plus it had the best pool setup on the island which would be great for the kids.

Well, unfortunately we had more bad than good experiences with this hotel!

Now let me preface my comments with the statement that, in my opinion, one of Hawaii’s main attributes is its hospitality and friendly greetings. Where else is one greeted by friendly smiles, dancing, and neck wear? You sure as heck aren’t greeted like that when visiting France! But that’s a review for another time.

In addition, when I booked the trip, I did so direct with the hotel, and I told the booking person that it was our 10 year anniversary. I also inquired about a meal plan and they said I could either do it on the phone or at the hotel once there.

Here’s the BAD:

  • Upon arrival at the hotel, an attendant greeted us and asked if we were checking in. We said yes, and he took our bags away. We entered the hotel on our own, and there was no greeting. No smiling faces, no leis, no music. We checked in, told the person it was our 10th anniversary, and they did not know it — apparently the booking person on the phone did not make a note in the system. Did this person note anything special at this point? No, just checked us in.
  • We got to the room, and it was not in good shape. The beds were made poorly, there was dust and grime on both phones in the room and on a table, and when we walked out onto the balcony, my daughter asked, “Why do the other balconies have tables and we only have a chair?”
  • Once we called the front desk about this, we went out and 5 hours later nothing had changed. We had to go to the front desk, mention it again, and then people said they would call someone.
  • That night we needed an extra blanket, and called room service. The brought up a blanket that seriously looked 20 years old, was fraying on the edges, and looked like something you would pad your dogs bed with it.
  • The next day we were at the pool near the activities desk, and asked the guy working the desk there if we could use his phone to call housekeeping so they would know our room was empty and could clean while we were out. The guy, who was doing nothing and had no customers, said we can’t use the phone because it was for activities. Of course, it is the same phone as the one in our room (not as grimy though), and hooked into the hotel system. We asked him what phone we could use, and he said a house phone. We asked him where one was, and he said he didn’t know. That was it. He didn’t allow us to make a quick call to housekeeping (hotel call, not local or long distance), and didn’t offer to make the call for us, and did nothing to help us.
  • I let the day manager know that we were not having a good experience, and she was apologetic. I mentioned our 10 year anniversary again, and she congratulated us (more on this below in the GOOD experiences). I asked about meal plans, since we were using the breakfast buffet which is a bit expensive and we wanted to get a week or multi-day plan. She said it was a tricky thing to do, and I may have to cancel my entire reservation and re-book with a special meal plan. I told her the booking agent said I could just get on once on-site, and she said she would call up the chain and see what she could do. She got back to us and said they said nothing could be done and she couldn’t help us. Seriously? Nothing can be done? It’s a meal plan, for crying out loud.

Now, the GOOD:

  • The day manager I interacted with did her best to try and help us, but when we tried to get a breakfast buffet plan, she said the corporate people above her could not help her. Now, this doesn’t make much sense to me, why would they not allow her to provide a meal package I’m not sure. But she tried, and gave us meal passes for one morning. That was nice, but I’m wondering — if she has the ability to give us some free passes, how can she not have the ability to give us discounted passes, or ones for every other day or something like that?
  • The day manager sent us up a bottle of champagne and milk & cookies platter for the kids for our anniversary which was appreciated.
  • The bartenders were ALWAYS helpful.
  • We were at Longhi’s restaurant later that week and told the waitress of our experiences. She was shocked, and told us she used to bartend for the hotel company and apologized for them. Now, she was excellent with customer service, and frankly the hotel should hire her back in that sort of role.

Now, on the rest of the island, here are some excellent experiences we had with restaurants and activities:

Lahaina Pizza Company: This place, first of all, has the best deep dish pizza we’ve had in years! And their management is top notch. When we had an order get confused and the wrong pizza was delivered, the manager personally came over and apologized and offered us a desert on the house. And, he even officated our kids’ drawing contest and diplomatically declared both winners!

Zip-Line Adventure:  Well, the ziplines themselves were pretty short, around 30 seconds each on average. This pales in comparison to some Ziplines you’ll find in places like Costa Rica that can go for 3 minutes! But, they did a great job on the tour — our guide, David, was excellent and told us detailed stories about the island that we above the call of duty.

The Lahaina Grill:  This restaurant was constantly mentioned to us as a consistent award winner on the island, and sometimes when you hear that, it can be a tourist trap. But this place was fantastic. The food was amazing, the service was impressive, and when they knew it was our anniversary they took our picture and provided a nice desert. All in all, one of the best dining experiences we’ve had at any restaurant in the world.

So, what was our final opinion of Maui? Unfortunately, somewhat neutral. We’ve had more fun and better treatment on other islands, frankly, but we probably will go back one more time to see what we may have missed.

KDE won’t start in Fedora 13

Tuesday, July 6th, 2010

I ran a yum update on my Fedora13 install the other day, and then when I booted back up and logged in, my KDE would not start! It would start to show the login screen, but once I did a login, it blacked out and went back to the login screen again.

Upon checking my .xsession-error file, I saw:

ksmserver: smybol lookup error: /usr/lib64/libGL.so.1: undefined symbol: _nv000027gl

It took a little looking around, but basically to fix this, you need to point to a proper Nvidia driver file. I ended up removing the old link and making a new one. My machine is x64, hence the lib64 directory instead of just lib:

root{/usr/lib64}: rm libGL.so.1
root{/usr/lib64}: ln -s nvidia/libGL.so.1 libGL.so.1

That did the trick!

Fedora 13 and Nvidia

Saturday, June 5th, 2010

Now that I got my new system running Fedora 13, I needed to configure my Nvidia card to support my two monitors.

It was pretty straightforward, and I found a post that does an excellent job of summarizing it at http://fedorasolved.org/video-solutions/nvidia-yum-kmod

I will comment on one thing though – when I did the install, I used the basic kernel for my i686 32-bit CPU. I found that my 4 GB of RAM only showed up in the system information page as 2.7 GB! I looked into this a bit, and it turns out that if you want greater than 3GB of memory supported, you need to have a 64-bit machine, OR you can handle this in software with the PAE kernel.

PAE stands for “Physical Address Extension” and all you have to do in install the PAE kernel, and then also the PAE Nvidia modules, and everything will work fine!

I know have my machine up with 8GB of RAM and working perfect! I read that the PAE kernel will cause a performance hit (sort of like doing RAID via software versus hardware I suppose), but I don’t see anything like that on my system.

Installing Fedora 13

Saturday, May 29th, 2010

I was readying my nice new home Linux server/desktop for Fedora 12 when I realized I only had to wait a few more days for Fedora 13. Sounded good!

My new server has a nice Coolermaster case that can hold 10 drives, and has a 1100 Watt power supply. I really like the case, it makes putting in drives a snap, plus the cable wiring went very well. Plus the thing is made of cool brushed aluminum. Who can argue with that?

I was re-commissioning this server after having used it as a gaming Windows machine for a bit. So it had dual NVidia SLI cards (GeForce 8800 Ultra) in it. When I first booted up the LiveCD, it got kernel errors that didn’t really track down to anything that was helpful. It would boot up but then freeze after a few minutes.

I tried the DVD install, and that got the same results. After much head scratching and googling, I tried removing one of the Nvidia cards. I was planning on only using 2 monitors anyway, and each card had 2 DVI outputs. This did the trick!

Next up, I had to run keyboard/mouse cables to my home office. I like to keep the actual computer down in my server room in the basement, it keeps my office nice and quiet. But I found that my 100 foot run for my PS/2 mouse didn’t work! My mouse is a Logitech MX310 that is really USB but I use a PS/2 converter on it so I can use a long cable run. This had been working fine on my previous Linux installations.

I found that the mouse would work fine if directly attached, so it was a distance issue! Which is odd, since on my old server it worked fine, and the cable was the same. I ended up using an USB extender device that I had bought years ago and never needed. It uses ethernet cable in between two adapters so you can have a long USB run. This did the trick! The brand is “coolgear” and I forget where I got it.

Next up: Getting Nvidia working on Fedora 13

Getting Thunderbird to use Google Chrome

Friday, May 14th, 2010

I’ve been using Google Chrome on my Fedora11 system lately, it seems to handle Flash better than Firefox does (on linux). There were a few things I found missing in Chrome at first, but they are releasing version updates pretty regularly that are fixing all my issues.

But I had been putting up with my Thunderbird email client spawning Firefox when I would click http links in emails. I tried to fix this via the KDE system GUI, and via the Thunderbird preferences->config-editor functions but nothing would work.

I would also see an error in my thunderbird logfile that looks like:
Error: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIExternalProtocolService.loadUrl]” nsresult: “0×80004005 (NS_ERROR_FAILURE)” location: “JS frame :: chrome://communicator/content/contentAreaClick.js :: openLinkExternally :: line 188″ data: no]

Eventually I found this gnome tool did the trick!

% gconftool-2 -g /desktop/gnome/url-handlers/http/command
firefox %s
% gconftool-2 --type string -s /desktop/gnome/url-handlers/http/command "google-chrome %s"
% gconftool-2 -g /desktop/gnome/url-handlers/http/command
google-chrome %s

Also, while you’re at it, do the same commands but use “https” instead of “http” to handle SSL URLs.
Another way to do this is to use “gconf-editor” — just “yum install gconf-editor”

Human Target Likes Windows 7

Saturday, April 10th, 2010

I was watching an episode of “Human Target” — not a bad show by the way — and I got a kick out of a scene where a guy is moving some windows around using Windows 7, and he used the “shakey” trick to hide the other windows and make the current one go big.

Usually when shows have computer stuff going on, they show a bunch of fake stuff that you can’t do on a computer, so it’s rare when you see something real, let alone a little known Windows 7 trick!

Kudos to Human Target!

Icons in Dolphin Viewer

Tuesday, January 12th, 2010

I was running Dolphin on my Fedora Linux install to view some images, and I was confused as to why in “Icon” view I wasn’t seeing the actual thumbnail images as I would expect to see using Windows Explorer or similar.

I actually googled around a bit to figure out if I needed a JPG codec or something, but it turns out all I needed to do was click “Preview” instead of “Icons” !

Sometimes you overlook the obvious :)