Summer 2008 trip trail

[if gte IE 8] or [if IE 8.000]?

A whlie ago I posted how to feed specific .css file to Internet Explorer 8 only. That was during IE8 RC1. Now it's IE8 Beta 2. Microsoft finally released Internet Explorer 8 Readiness Toolkit. Below another official way to feed css to IE8 only:

<!--[if gte IE 8]><link rel="stylesheet" type="text/css" media="screen" href="css.css" /><![endif]-->

Fixed my iPhone

Thanks to my co-worker Johnny I fixed my iPhone problem. It was fixed by "inserting and removing a pair of headphones several times over again".

For furhter reading on this issue go to: Apple Support or Unofficial Apple Weblog.

Carlsberg Beer

In USA sometimes one encouters things that stand out or don't belong in this country. At least many years of living here make it seem so.

This time, few days ago, walking in a grocery store in San Luis Obispo,CA I see a green colour six pack with logo Carlsberg Beer. I was so happy! I had never seen this sort of beer in USA before but I did talk to few folks about this beer and how much I'd love to try it again.

The last place I had seen and tasted this fine beer was Cyprus. Needless to say I bought a huge box of it.

Putting alt="" attribute to work

Recently I started wondering how I could make alt="" attribute of the <img> do more work than just be there hidden most of the time. I happened to be posting more and more photographs recently accompanied by a story that runs throughout alt tags.

Soon I realised that it's quite a waste because all this mini story that I had been writing was buried in these very alt attributes. So I decided to put these tags to work and wrote a jQuery snippet (see below) that extracts alt tags and puts them under every picture in a manner of subtitle or a legend.

<script type="text/javascript">
$(document).ready(function(){
    $('div.content p img').each(function(){
        var aText=$(this).attr("alt");
        if(aText.length>=1){ /* only do this for <img> which have alt="" tags */
            $(this).wrap("<span class=\"media\"><\/span>")
                    .after("<em>" + aText + "<\/em>");
        }
    });
});
</script>

iPhone broken, I think

Well today I noticed that my iPhone thinks that there are headphones plugged in even though they aren't. So the only way I can talk on the phone is by actually plugging in headphones. I am hopeful it can be fixed but I definitely do not want to touch it while I am away from home. iPhone is more than just phone, it's calendar, organizer, navigator, email client, etc etc etc.

Driving aids

I am still getting to know my new car. One of the new features of the new car is one (among others?) driving aid, which at first might be upsetting to hard-core manual transmission lover as myself. But eventually I got over it. I always look at the sport of Formula One, and how many driving aids F1 drivers have.

Cross country mode

I decided not to wait till tomorrow. Went and had the car washed then used lower grade (least sticky) 3M masking tape to temporarily wrap up front end.

Front end wrapped up with 3M masking tape, cross country mode.

Driving cross country

Something I forgot to do when driving cross country is to protect the front end of my car. Driving through Nevada desert particularly was rough, entire front end is covered with bugs.

Tomorrow will be doing my first oil change. I will see if they have some sort of temporary protection. If not, I'll use old "vwvortex method"—3M masking tape.

Carputer diagram

I see in google analytics many queries to carputer diagram, something I've removed, but just now decided it may be useful to some people.

Here is carputer diagram version 1.1:

Carputer diagram version 1.1.

Good-bye Subaru, hello Subaru

THE END. Good-bye WRXTEAR.

Good-bye WRXTEAR.

Hello Untitled.

Hello Untitiled.

iPhone cable continuation

Foreword: it isn't obvious in the context — this cable is to used in the car, hooked up to car amplifier RCA cable, so it's thickness isn't a big deal.

After last time I split cable apart and soldered back together, it lasted a couple of days only if that. So I ordered a new one and opened up old one again. Changed a bit how I do old one and keep brand new two dollar one as a backup.

Original cable vs same but hacked cable.

Testing Nextel mobile broadband

I got Nextel mobile broadband card because I really need it this summer. I think it's quite affordable and really worth the price for someone in my position. Got it faily quickly, was shipped within two days of the order. There was quite a bit of a hassle because I shipped it to a different address than my credit card billing address. But after few phone calls and maybe around 30 min time wasted, the order finally went through.

Activation took only two minutes or so. First impressions, pretty quick enough or me. Below are some speed tests.

Brainwashing ie6 to use min-width

This code snippet will force your ie6 clients to understand min-width, pretty cool hack.

element.style{
_width:expression(((document.compatMode && document.compatMode=='CSS1Compat') ? document.documentElement.clientWidth : document.body.clientWidth) < 660 ? "660px" : "auto");
}

Note that I prepend '_' before 'width', that ensures that only ie6 will bother to try to interpret that command, other normal browsers will ignore that.

Syndicate content

 

  • Drupal
  • Twitter
  • ./
  • National Guard Youth ChalleNGe Program
  • Радио-Т
  • sparow

 

© 1999—2000 f1vlad.com