januari 16th, 2011 by
ltz
Aftermarket PDC installed on a Skoda Octavia 1.9 tdi 2009.Electrical wiring done through the spare wheel bucket up to the left and directly to the reverse light. + a breaker switch in case the kit starts to beep towing.
Seems to work great with an aftermarket towbar as well.
Posted in Automotive |
Kommentering avstängd
januari 16th, 2011 by
ltz
Some orientating pictures from a Kovil towbar installation procedure. Use on you own risk.
Electrical installation was done through the predrilled holes to the left and right of the towbar – into the spare wheel bucket. Then up to the left where all necessary cables for this relay-based electrical kit where.
Posted in Automotive |
Kommentering avstängd
januari 12th, 2011 by
ltz
Some illustrating pictures of what happens when the electrical box in Skoda Octavia Estate TDI 1z chassie 2009 gets water in it.
Symptom of this vehicle was a cooling fan starting as soon as the car was shut off – even in middle of the winther with a cold car. Also a complete christmas tree of error codes when checking the car with vcds.
Posted in Uncategorized |
Kommentering avstängd
januari 12th, 2011 by
ltz
On your own risk!
First – replace the stalk. WITH GROUND CABLE DISCONNECTED FROM BATTERY!
Second – Recode ECU. (VCDS used)
Also – in order to activate the cruise control on the 1z (and previous?).
– With VCDS, choose 01 – Engine
– Coding – 11
– Enter 11463 to activate cruise control
Posted in Automotive |
Kommentering avstängd
juni 18th, 2007 by
ltz
So it happened on my e39 as well.. The right headlight just would not shut off. Even if the car was turned off and locked, the right headlight was still on. It’s an well known problem, but it seems the components are getting harder and harder to get ahold off. The first replacement component, BTS 426 L1 (Farnell is out..) The suggested alternative components were’nt availiable to swedish non-company customers (VN21 availiable from ST. VN21). Instead, the only component I could get ahold of was the BTS426L1 surface mounted (see product image). This component was not supposed to be mounted this way, but mine have been used this way some 600 km’s now and seems to be working.
Have a look at the images from the operation.
Allright, the process should be visible on the pictures..
Update:
The soldering to the surface mounted component is secured with melting glue before pressed against the cooling element.
The unit is from a bmw 525tsa -97 e39.
I did try fixing the surface mounted component directly upon the old connectors, ending up destroying one surface mounted component..
Posted in Uncategorized |
Kommentering avstängd
januari 7th, 2007 by
ltz
When using PHP for creating html documents intended to be read by a web browser there’s the possibility to set character encoding within the html-heading, getting a extra way to handle the character presentation of the content. However when running PHP code through the CLI-PHP software for internal, server-side purposes handling data the character encoding might require a little bit more work. Reading XML-documents using the PHP ”xml_parser” and at the same time trusting the character encoding given in the XML-document header as shown below might not be enough in order to make sure you get the correct character encoding.
...xml version="1.0" encoding="iso-8859-1" ...
Be sure to set the encoding within the creation of the XML-parser.
$xml_parser = xml_parser_create();
xml_parser_set_option($xml_parser, XML_OPTION_CASE_FOLDING, true);
xml_parser_set_option($xml_parser, XML_OPTION_TARGET_ENCODING, "ISO-8859-1");
Posted in Programming |
Kommentering avstängd
november 8th, 2006 by
ltz
Took me a while to figure out how to search and fetch a single attachment from a POP mailbox, without ending up with 300+ lines of code.. Maybe this one could help someone else..
// Open pop account.
$mailbox = imap_open( $popaddr, $popuser, $poppasswd);
// Search for the message we are looking for..
$result = imap_search($mailbox, $searchsubject, SE_UID);
if ($result) {
storePDFAttachment(imap_fetchbody($mailbox,$result[0],2),$savefilename,$savefilepath);
} else {
exit(”message not found in mailbox yet..”);
}
// Close the connection.
imap_close($mailbox);
function storePDFAttachment( $content , $filename , $localfilepath ) {
$file = fopen($localfilepath.$filename, ‘w’);
fwrite($file, imap_base64($content));
fclose($file);
}
Posted in Programming |
Kommentering avstängd
oktober 28th, 2006 by
ltz
This is rather old news, however since I found guides from people explaining how they have spend 10 hours to get this working, I just might have an ubuntu-related guide that does this faster..
Given my local dev-server (1000mhz, 400mb ram) running the latest ubuntu server installation together with my cheap usb1.1 webcam.
Since I’m using the server version, this is the text-based install guide.
- Given that you have ubuntu installed.
- Make sure the /etc/apt/sources.list have both universe and backports enabled. (also run “apt-get update†after any change)
- Run “apt-get -s install motion†and have a quick lock so that any unwanted parts your system installation won’t be removed.
- run “apt-get install motionâ€
- run “apt-get install ffmpeg†(add -s if you which to look over the changes..)
- plug-in your usb-webcam.
- run “dmesg†and check if the plug and play detection went ok. It should probably be in any of the later rows if you just recently plugged it in.
- open /etc/motion/motion.conf (for instance: “pico /etc/motion/motion.confâ€)
- change the settings of your choosing (also check the video-device link).. check the motion website for a good explanation of the settings.. http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
- after completing the config, run “motionâ€.. Any errors will display.
- Check the given directory for image/video-files. given that the camera install went fine.
- Your installation is complete. Run motion in deamon mode next time (â€motion -dâ€)
Posted in *NIX, Comp |
Kommentering avstängd
oktober 28th, 2006 by
ltz
Trying to update a html-page without having a) annoying refreshes of the entire page, b) a third party framework implementation (ie: Java/Flash/etc..). My experience is that a “third party†implementation more or less makes the best solution however there are alternatives. For instance a simple AJAX-based implementation of such a function would be possible. This also does have its drawbacks, but for now we could look at the possibilities.
Attached is one solution involving PHP and a standard OSI-certified AJAX-framework called Agent AJAX. Please note the drawbacks of this solution. If the client/server connection is poor, the transfers in AJAX might create problems for the Client. You can of course overcome this problem by simply thinking your solution through and for instance creating feedback to the user at any transaction that might fail.
Posted in Programming |
Kommentering avstängd