Thursday, August 30, 2012

Troy ran 3.01 miles in 28:56 min at Golds Gym - http://www.endomondo.com/workouts/user/219791

About

Endomondo is a sports community based on free real-time GPS tracking of running, cycling, etc. Bring your mobile on the track and get a complete training log.
READ MORE...


Wednesday, August 22, 2012

Troy ran 3.01 miles at Sam Houston Trail Park

About

Endomondo is a sports community based on free real-time GPS tracking of running, cycling, etc. Bring your mobile on the track and get a complete training log.
READ MORE...


Pantera?

Pantera

Tuesday, August 21, 2012

My Yahoo email account has been hacked.

Please do not click on any links in emails your receive from my Yahoo address ( troy92850@yahoo.com ).

My account was hacked. I have since changed my password and removed all of you from my contacts list.

You can contact me at this address (ttthib@gmail.com).

Friday, August 17, 2012

Saw a kick-ass Water Moccasin on the trail this afternoon. At least I think it was a Water Moccasin.

8-17-12-water-moccasin

Updating Google Sitelinks causing some head scratching.-.htaccess redirects, etc.

I implemented a new site that replaced an existing site. The old site had pretty good Google placement and in the search results Google rendered 6 sitelinks. Unfortunatly, none of these pages still exist in the locations that these links point to. I could not find a way to update them in Google Webmaster tools. You can remove them (demote), but I did not see how you can edit them.

My knowledge on the subject is intermediate at best, but I know that the links being broken is terrible, but using simple PHP or META redirects--although better than broken--are bad Google practice. I believe Google will penalize for this. I knew I needed to redirect then links at the server level.

But first I used page-level redirects as a stop-gap since not matter what, I could not have the links broken.

Bring on .htacess.

My first try was to use a 301 redirect. This worked, except that I was redirecting from a directory to a file ( /contact/ >> http://blahblahblah.com/contact.php). The problem with this was that it did redirect, but it thought the new location was a directory and added a trailing slash, but broke all the URL paths in the page. The CSS didn't work, the images, didn't show up, etc. I tried to figure out a way to remove the trailing slash in the htaccess file, but I could never get it to work.

What did work was using RedirectMatch:

RedirectMatch 301 ^/contact/ http://blahblahblah.com/contact.php

The only catch was that one of the old links was in a sub, sub directory. That redirect didn't work correctly, as it redirected from the parent directory.

RedirectMatch 301 ^/contact/ http://blahblahblah.com/contact.php
RedirectMatch 301 ^/contact/sales/ http://blahblahblah.com/sales.php

The second redirect resolved to http://blahblahblah.com/contact.php.

My only thought is that when the htacess file sees the slash after contact it stops looking at that line and the first line handles the redirect.

I'm still working on that issue.

Dentist visit went well, but they always want to pull a tooth. Is it a profit deal?

2012-08-13-16

Tuesday, August 14, 2012

Troy ran 2.15 miles at John F. Burke Nature Preserve. http://tinyurl.com/8gs3d6v

About

Endomondo is a sports community based on free real-time GPS tracking of running, cycling, etc. Bring your mobile on the track and get a complete training log.
READ MORE...


Sunday, August 5, 2012

Fonts in FF look crappy with Cleartype off. As a developer I should leave the default settings. IE9 by default is anti aliased & fonts are smooth, but not FF.

My dilemma is with using Google fonts. These cool fonts look like crap in FF (FF 14, Win7). Times and Arial are ok and readable, but when go outside the websafe fonts they are aliased and ugly. Now IE9 (IE9 Win7) has anti aliasing built in and it smooths out the fonts. This looks fine. That features annoys me in some other ways, but the fonts look good.

Look at http://www.google.com/webfonts/ using FF and IE. I am running Win7 and using FF 14 and IE9.

So, do I used these exotic fonts knowing I lot of people will see them with these ugly jagged edges? Every person with a somewhat new computer using FF will see it that way.

Chome is somewhere in between. It looks better than FF, but worse that IE. More people use Chrome on desktops than any other browser BTW. Didn't realize they has surpassed FF, but as of March 2012 they are winning.

OK, so I had turned Cleartype on and it smoothed the fonts in FF, but they I went back and turned it back off to see check Chrome, but now in FF the fonts are still smooth. Why didn't it return to being jagged? Maybe I need to reboot, but I didn't need to reboot to turn Cleartype on???

Friday, August 3, 2012

Never used Computed Style in JS to check CSS. I see now its relevance. I can't believe that's never come up til now.

I had a JS function that checked the CSS of a DIV to see if its display was set to 'none'. Well, as many times as I've used JS to manipulate the DOM and CSS, I guess it had never come up where I was checking a style's value in a style sheet (embedded or external). I just couldn't get it to work unless I set the style inline or used JS to set the style first.
According to Stephen Stchur...

"Trying to retrieve the a css style property via javascript will only work when that style property has previously been set via javascript OR when that style property was defined inline by using the style attribute in (X)HTML. Now this doesn't do you much good if you haven't first set said css property in javascript (and I certianly hope no one is using inline css styles), and you still want to retrieve it via javascript."

http://blog.stchur.com/2006/06/21/css-computed-style/

The helpful folks at StackOverflow.com came to my rescue in a matter of minutes. That's where I found the link to Mr. Stchur's blog, among the other approaches to my question.
http://stackoverflow.com/questions/11799410/javascript-only-recognizising-inline-style-and-not-style-set-in-head