hacking

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.

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.

iPhone Headphone Adapter Cable finally broke

My hacked cable adapter broke today. One of the three wires on one of the plugs broke off. Since I am not home I don't have access to any tools. First thing handy was hot glue gun, but that didn't work.

My iPhone is now with 2.0 firmware

My iPhone is now with 2.0 firmware thanks to Pwnage 2.0 tool . I used The Happy Coder's instructions.

Took a little bit more time than previous effort with 1.1.4, but all went smoothly. Most importantly all my calendar events, contacts, and other stuff was restored.

*sigh* yet another [if IE 8] fork

Yet another IE fork. How could it be any different? For those who're getting ready, the code below will work (at least on RC1)

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

 

position:relative

If you have to hack your CSS for IE6, no doubt you faced with a lot of frustrations. One of the annoying things is when you set some element on the website and it all seems to be okay and finally problem solved. But as soon as you resize the browser, some elements jump to other seemingly random places.  But I wasn't smiling when trying to get this to work.

iThemer

I decided to write this remark after I overcame one challenge during one of my work tasks. This may seem trivial to some. It wasn't for me. Could be useful to someone else out there.

With my previous projects I had full access to css, html, js, etc. At my new job I have access only to css. At my new job I don't have access and cannot modify html structure. I can request html structure modification, but it will not be so quick.

*+html (StarHtmlHack)

Today I found a cool css hack called StarHtmlHack. Interesting problem. Pretty much for normal browsers I needed to add left: 0pt and for Internet Explorer 5--6, I had to add right:0pt. Yes I know, problem seems weird, but for consistent look of the div on my page in this case, that has to be the definition in the style sheet.

First solution was to include separate .css via <!--[if ie]>foobar<![endif]-->.

Inserting/pushing drupal node behind the scene

A nice barebone script for pushing drupal nodes without user's engagement:

iPhone Headphone Adapter Cable

Since I decided to part ways with my carputer, I've started using iPhone as a car radio. I couldn't have done it without headphone adapter cable. The reason for that is the iphone, for protection and durability reasons, has a unique canal for headphones/RCA jack. Usually these are expensive.

Syndicate content

 

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

 

© 1999—2000 f1vlad.com