<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>infinity squared &#187; Guides</title>
	<atom:link href="http://www.infsq.co.uk/category/guides/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.infsq.co.uk</link>
	<description>a blog about stuff and things</description>
	<lastBuildDate>Mon, 23 Aug 2010 19:15:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Active Directory: Microsoft Folder Snap-In Error</title>
		<link>http://www.infsq.co.uk/2010/08/17/active-directory-microsoft-folder-snap-in-error/</link>
		<comments>http://www.infsq.co.uk/2010/08/17/active-directory-microsoft-folder-snap-in-error/#comments</comments>
		<pubDate>Tue, 17 Aug 2010 18:46:54 +0000</pubDate>
		<dc:creator>Leonard</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Guides]]></category>
		<category><![CDATA[active directory]]></category>
		<category><![CDATA[delegate]]></category>
		<category><![CDATA[folder]]></category>
		<category><![CDATA[gpo]]></category>
		<category><![CDATA[group policy]]></category>
		<category><![CDATA[mmc]]></category>
		<category><![CDATA[password change]]></category>
		<category><![CDATA[server 2003]]></category>
		<category><![CDATA[snap in]]></category>
		<category><![CDATA[users and computers]]></category>

		<guid isPermaLink="false">http://www.infsq.co.uk/?p=166</guid>
		<description><![CDATA[This error may occur when using a Group Policy that restricts access to the MMC (Microsoft Management Console) and allows access to only explicitly defined snap-ins. In this case, it is when allowing only "Active Directory Users and Computers" for a particular user group. This is essential if you are looking to delegate control of [...]]]></description>
			<content:encoded><![CDATA[<p>This error may occur when using a Group Policy that restricts access to the MMC (Microsoft Management Console) and allows access to only explicitly defined snap-ins. In this case, it is when allowing only "Active Directory Users and Computers" for a particular user group.</p>
<p>This is essential if you are looking to delegate control of users within an OU to a different group of select logins to allow others to perform basics tasks like changing passwords without needing the domain administrator account.</p>
<p>The Snap-In required is "Active Directory Users and Computers". This would be set to "Enabled"  along with the main policy to restrict all other snap-ins allowing the specified users access to the Active Directory structure and the group/users they are controlling.</p>
<p>Attempting to login as a user delegated to perform password resets and attempting to launch the required snap-in as a restricted user may result in the following error:</p>
<blockquote><p>The snap-in below, referenced in this document has been restricted by policy. Contact your administrator for details. Folder.</p></blockquote>
<p>Clicking past this error message will result in the Snap-In loading and functioning correctly, but its disconcerting to the user and annoying.</p>
<p>It appears to reference a Snap-In "Folder" which has been restricted by the Group Policy set as mentioned above (remember all Snap-In's except for Active Directory Users and Computers are restricted). However, there is no reference to any such Snap-In in the GPO Editor.</p>
<p><strong>Creating a Custom Admin Template</strong></p>
<p>We need to add an entry to the Group Policy that enables this Snap-In. This is done by added a Custom Admin Template that references the Snap-In's GUID. Assuming you have created and saved an .msc file containing only the Active Directory Users and Computers Snap-In (done via MMC), this can be viewed in a text editor to find the GUID. For further streamlining for pure password reset application, you could create a Custom Taskpad .msc but I won't go into that here.</p>
<p>There will likely be several GUID references in this file but the important one is</p>
<blockquote><p>{C96401CC-0E17-11D3-885B-00C04F72C717}</p></blockquote>
<p>You now need to create a Custom Admin Template to allow this Snap-In. Open a blank text document and copy the following:</p>
<blockquote>
<div id="_mcePaste">CLASS USER</div>
<div id="_mcePaste">CLASS USER</div>
<div id="_mcePaste">CATEGORY "Windows Components"</div>
<div id="_mcePaste">CATEGORY "Microsoft Management Console"</div>
<div id="_mcePaste">CATEGORY "Custom Settings"</div>
<div id="_mcePaste">POLICY "Microsoft Folder Snap-In"</div>
<div id="_mcePaste">KEYNAME "Software\Policies\Microsoft\MMC\{C96401CC-0E17-11D3-885B-00C04F72C717}"</div>
<div id="_mcePaste">EXPLAIN "Permits or prohibits use of this snap-in."</div>
<div id="_mcePaste">VALUENAME "Restrict_Run"</div>
<div id="_mcePaste">VALUEON NUMERIC 0</div>
<div id="_mcePaste">VALUEOFF NUMERIC 1</div>
<div id="_mcePaste">END POLICY</div>
<div id="_mcePaste">END CATEGORY</div>
<div id="_mcePaste">END CATEGORY</div>
<div id="_mcePaste">END CATEGORY</div>
</blockquote>
<p>Save this file with the extension .adm in C:\Windows\inf</p>
<p>In the GPO Editor for the policy in question, navigate through the tree to</p>
<blockquote><p>User Configuration</p></blockquote>
<p>Right click on</p>
<blockquote><p>Administrative Templates</p></blockquote>
<p>And add the .adm file you just created.</p>
<p>Now navigate to</p>
<blockquote><p>User Configuration<br />
---&gt;Windows Components<br />
-------&gt;Microsoft Management Console<br />
-----------&gt;Custom Settings</p></blockquote>
<p>There should now be an entry named "Microsoft Folder Snap-In". Set this to "Enabled"</p>
<p>Re-apply your policy across the network and logging in as a delegated user and launching Active Directory Users and Computers should no longer give an error message.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.infsq.co.uk/2010/08/17/active-directory-microsoft-folder-snap-in-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Asus EEE PC: Remote On/Off</title>
		<link>http://www.infsq.co.uk/2008/04/19/taking-apart-an-asus-eee-pc-remote-onoff/</link>
		<comments>http://www.infsq.co.uk/2008/04/19/taking-apart-an-asus-eee-pc-remote-onoff/#comments</comments>
		<pubDate>Sat, 19 Apr 2008 00:05:40 +0000</pubDate>
		<dc:creator>Leonard</dc:creator>
				<category><![CDATA[Carputer]]></category>
		<category><![CDATA[Cars]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[Guides]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[asus]]></category>
		<category><![CDATA[car pc]]></category>
		<category><![CDATA[eee pc]]></category>
		<category><![CDATA[power button]]></category>
		<category><![CDATA[remote]]></category>

		<guid isPermaLink="false">http://infsq.co.uk/?p=53</guid>
		<description><![CDATA[I originally bought my EEE PC intending to use it as an upgrade/replacement for my current Car PC as it is much smaller, consumes less power, and uses a solid state drive (SSD) for data storage (meaning no moving parts while booting the OS and frontend etc). There were a couple of problems I needed [...]]]></description>
			<content:encoded><![CDATA[<p>I originally bought my EEE PC intending to use it as an upgrade/replacement for my current Car PC as it is much smaller, consumes less power, and uses a solid state drive (SSD) for data storage (meaning no moving parts while booting the OS and frontend etc).</p>
<p><img src="http://infsq.co.uk/images/eee/chassis.jpg" alt="Chassic" /></p>
<p>There were a couple of problems I needed to overcome though - it would not be a case of simply swapping units over.</p>
<p>The first thing I needed to do was figure out a way to connect the EEE PC to my existing M2-ATX PSU so that the ignition was still able to control the PC turning on and off. On the existing system, this is done using a simple connection to the header on the motherboard. When the PSU recieves the ignition signal, it shorts these two pins together and the system powers on.</p>
<p>On the EEE PC, there is no header that I could connect such a lead to, so I had to rip things open and add one myself...</p>
<h2>How to Get at the Internals:</h2>
<p>- Remove all screws from the underside of the unit<br />
- On the top edge of the keyboard, there are a couple of springy clips holding it in. Use a flat screwdriver to hold these in and prise the top edge of the keyboard out. The whole thing should slide upwards now and will be attached to the main chassis by a thin ribbon cable.</p>
<p><img src="http://infsq.co.uk/images/eee/keyboard.jpg" alt="Keyboard" /></p>
<p>- You can unclip the ribbon cable to get the keyboard out of the way (carefully!)<br />
- With the keyboard out of the way, remove the black screws holding the top half of the chassis down. You don't need to remove the two either side of the screen. There are also a couple of plastic clips on the rear - by the screen pivots. These need prising apart (again - either a flat screwdriver or case splitter will be fine). The cover should lift off, revealing the motherboard.</p>
<p><img src="http://infsq.co.uk/images/eee/top.jpg" alt="Mobo Top" /></p>
<p>- There are a couple of retention clips on the bottom side of the motherboard which can be released by sliding the motherboard up slightly. It should pop out.<br />
- The VGA port also needs to be levered slight to release the side of the main board. When this is done, it should come loose and if you remove the mini-plug for the fan connector, the board can be removed entirely.</p>
<p><img src="http://infsq.co.uk/images/eee/bottom.jpg" alt="Mobo Bottom" /></p>
<p>For the purpose of this guide, I was interested in the power button, located near the right hand side screen pivot point. The images below show the switch with what appears to be 5 soldered connectors. With a bit of testing and a flat screwdriver, I determined that the pins which needed shorting together to initiate turn on / switch off were the top two.</p>
<p><img src="http://infsq.co.uk/images/eee/switch1.jpg" alt="Switch 1" /></p>
<p><img src="http://infsq.co.uk/images/eee/switch2.jpg" alt="Switch 2" /></p>
<p>So I went about soldering some fly leads and threading them through the chassis, making them secure so they couldnt be pulled off easily.</p>
<p><img src="http://infsq.co.uk/images/eee/flylead.jpg" alt="Fly Leads" /></p>
<p>Putting the EEE PC back together again and plugging it in / connecting the battery, allowed me to test that it all worked properly. Touching the two fly leads together (same as ignition ON) starts the PC up. Once booted, touching the leads together again initiates shutdown (same as ignition OFF).</p>
<p>Next problem is to sort out is the difference in voltage supplied by the regulated PSU (12V) and the input required by the EEE PC (9.5V). Stay tuned...</p>
]]></content:encoded>
			<wfw:commentRss>http://www.infsq.co.uk/2008/04/19/taking-apart-an-asus-eee-pc-remote-onoff/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Car PC: Part 4 – The Installation</title>
		<link>http://www.infsq.co.uk/2007/07/16/car-pc-part-4-the-installation/</link>
		<comments>http://www.infsq.co.uk/2007/07/16/car-pc-part-4-the-installation/#comments</comments>
		<pubDate>Mon, 16 Jul 2007 10:22:34 +0000</pubDate>
		<dc:creator>Leonard</dc:creator>
				<category><![CDATA[Carputer]]></category>
		<category><![CDATA[Cars]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[Guides]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[car pc]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[prelude]]></category>

		<guid isPermaLink="false">http://infsq.co.uk/?p=48</guid>
		<description><![CDATA[With the hardware set up and all the software systems configured, it was now time to install the whole thing into the car itself. The whole process took a while to do and was split into three main chunks: Wiring The first job was to lay down all the wiring. This included power cable, speaker [...]]]></description>
			<content:encoded><![CDATA[<p>With the hardware set up and all the software systems configured, it was now time to install the whole thing into the car itself. The whole process took a while to do and was split into three main chunks:</p>
<h4>Wiring</h4>
<p>The first job was to lay down all the wiring. This included power cable, speaker wire and extension leads for the screen.</p>
<p><img src="http://www.infsq.co.uk/images/carpc/wiring.jpg" alt="Wiring Diagram" /></p>
<p>In the above diagram, what is not shown, is that both the PC and Amp take their power from a thick power lead, fused, put through a distribution block, and run directly from the battery. Additionally, a switched positive connection is required for the M2-ATX to initiate remote startup and shutdown procedures. The easiest place to run this from, I found, was the existing headunit ISO loom.</p>
<p>The black, red and green connectors running to the screen in the diagram are the power supply and USB/VGA connectors. The power was spliced into a connection from the M2-ATX as the screen is designed to run from regulated 12V DC. These cables were run down the centre of the car.</p>
<p>Finally, as shown on the diagram, the audio connections run from the PC to the AMP via a 3.5mm audio jack adapter --> RCA/Phono connectors (blue), and then from the amp, I wired the speaker outputs to the old headunit ISO loom (purple wire pairs). All the speaker cable in the car was replaced with decent quality, shielded stuff. The picture below shows the cables being laid with the centre of the car bare as a work in progress.</p>
<p><img src="http://www.infsq.co.uk/images/carpc/DSC01112sm.jpg" alt="Cables" /></p>
<p>Another note: When running the cables down the car, it is important to physically separate the power and data/speaker lines to prevent inteference which commonly manifests itself as alternator whine coming through the speakers. The easiest way to do this is to run the two sets of cables down either side of the centre console, or run them down either side of the car itself.</p>
<p><img src="http://www.infsq.co.uk/images/carpc/DSC01187.JPG" alt="Cables cont" /></p>
<p>The above pic shows the cables running from the car interior, through the ski hatch and into the boot.</p>
<h4>The Screen</h4>
<p>With all the wiring in place, access to the wiring loom behind the dash was no longer required and so the screen was the next thing to fit. Obviously, prior to the final installation it had been tested for fitment so it was simply a case of refitting the centre console with the screen installed into the dash. The pic below shows what things look like behind the scenes on the dash:</p>
<p><img src="http://www.infsq.co.uk/images/carpc/DSC01111sm.jpg" alt="Dash Bare" /></p>
<h4>The PC</h4>
<p>And finally the PC was secured in the boot using metal mounting brackets beside the subwoofer and the wiring tidied up. All the USB data leads, VGA connection and the power and switched ignition leads were connected to the PC and Amplifier via the M2-ATX. Just to note that at this point, the amplifier being used is quite a basic one which is why it has not been installed 'cleanly'. When I get a proper amp, the boot installation will look a lot tidier and I will gain a bit more boot-space.</p>
<p><img src="http://www.infsq.co.uk/images/carpc/DSC01185.JPG" alt="Boot state" /></p>
<p>You can see the PC beside the subwoofer and it fits snugly in the gap.</p>
<p><img src="http://www.infsq.co.uk/images/carpc/DSC01186.JPG" alt="Wiring amp" /></p>
<p>The ultimate plan is to create a 'stealth' panel infront of where the PC is currenty fixed and fit the amplifier behind that as well. That should make things look a lot cleaner and give some more room (not that I use the boot a lot anyway).</p>
<h4>The Finished Article</h4>
<p>With everything done, here are a few pics of how it looks completed and installed:</p>
<p><img src="http://www.infsq.co.uk/images/carpc/DSC01176.JPG" alt="Finished" /></p>
<p>Loading/resuming Windows XP at bootup:</p>
<p><img src="http://www.infsq.co.uk/images/carpc/DSC01180.JPG" alt="Loading windows" /></p>
<p>The main frontend view (this is Centrafuse, but I usually use RoadRunner)</p>
<p><img src="http://www.infsq.co.uk/images/carpc/DSC01181.JPG" alt="Frontend" /></p>
<p>Sat Nav view</p>
<p><img src="http://www.infsq.co.uk/images/carpc/DSC01182.JPG" alt="navigation" /></p>
<p>Media player currently playing Linkin Park</p>
<p><img src="http://www.infsq.co.uk/images/carpc/DSC01184.JPG" alt="media" /></p>
<p>GPS and WiFi adapters installed out of the boot for better reception. They are hidden behind the seatbelt and secured to the plastic coving.</p>
<p><img src="http://www.infsq.co.uk/images/carpc/DSC01189.JPG" alt="gps and wifi" /></p>
<p>View from the rear seats.</p>
<p><img src="http://www.infsq.co.uk/images/carpc/DSC01190.JPG" alt="rear view" /></p>
<p>Overall, the installation looks very OEM (to me at least! and boot excluded obviously lol). There is no evidence of the masses of cabling in the car and having the PC gives me a lot of functionality that I wouldn't get with a regular headunit or even an all in one headunit costing a lot more.</p>
<p>There is also a lot of room for potential upgrades and further features which I can implement at a later date - and I have hinted at a few plans throughout the course of these posts... so this is basically a never ending project!</p>
<p>I hope it has been a good read and things do make sense. If you have any comments or questions, either post away on any of the posts (parts 1- 4) or just get over to the forums for anything a bit more in-depth.</p>
<p>Cheers.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.infsq.co.uk/2007/07/16/car-pc-part-4-the-installation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Car PC: Part 3 – Software</title>
		<link>http://www.infsq.co.uk/2007/07/15/car-pc-part-3-software/</link>
		<comments>http://www.infsq.co.uk/2007/07/15/car-pc-part-3-software/#comments</comments>
		<pubDate>Sun, 15 Jul 2007 21:56:17 +0000</pubDate>
		<dc:creator>Leonard</dc:creator>
				<category><![CDATA[Carputer]]></category>
		<category><![CDATA[Cars]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[Guides]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[car pc]]></category>
		<category><![CDATA[centrafuse]]></category>
		<category><![CDATA[prelude]]></category>
		<category><![CDATA[roadrunner]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[xp]]></category>

		<guid isPermaLink="false">http://infsq.co.uk/?p=47</guid>
		<description><![CDATA[Part three of the Car PC saga Now that the PC itself was up and running and the screen and mount were completed, it was time to work on the insides of the beast, so to speak: the software - the thing that makes everything work! The Backend The PC itself was based on an [...]]]></description>
			<content:encoded><![CDATA[<p>Part three of the Car PC saga <img src='http://www.infsq.co.uk/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Now that the PC itself was up and running and the screen and mount were completed, it was time to work on the insides of the beast, so to speak: the software - the thing that makes everything work!</p>
<h4>The Backend</h4>
<p>The PC itself was based on an extremely cut down version of Windows XP SP2. I removed unecessary features, slipstreamed hotfixes and drivers, and pre-installed some tweaks making a totally unattended installation that automatically installed everything I needed. This created a small install footprint and made the OS very quick to boot from cold / resume from hibernation.</p>
<p>I did experiment with using a 4GB compact flash card and CF -> IDE adapter as a boot drive mainly for the speed advantage (and solid state advantage), but due to the limited write cycles on CF cards, installing a standard version of XP (dynamically) would severely reduce the lifetime of the card. There are solutions to this (eg, using XP Embedded from Microsoft), but that involves a lot of hassle, so I opted to go for the old fashioned mechanical hard drive.</p>
<p>The entire system was tested indoors using a regular ATX power supply for ease of troubleshooting any problems - especially with the multitude of USB devices being used. Bluetooth partnerships were created with headsets and phones and COM ports configured for the GPS reciever and FM radio. When the system was found to be stable and with everything fully functional in it's barebones OS state, it was time to install and configure the frontend.</p>
<h4>The Frontend</h4>
<p>The frontend is essentially what you see when you look at the screen. It is the software that is running and gives the user the functionality required from the PC in the car environment. There are several front ends available for use - some free to use, some not. Which frontend you choose is down to personal preference and before making a decision I tested two of the biggest ones on the system:</p>
<h4>RoadRunner</h4>
<p><img src="http://www.infsq.co.uk/images/carpc/RRMain.jpg" alt="RoadRunner" /></p>
<p>This front end is free to use and is customisable both in terms of plug-ins and skins. It links to other external applications to handle various functions. Eg. Audio playback is controlled by winamp, GPS navigation can be controlled by Freedrive/Mapmonkey (maps are required from "Destinator" but need to be purchased) and DVD playback could be handled by PowerDVD, for example. It has a large userbase, because it is free and does the job very well.</p>
<h4>Centrafuse</h4>
<p><img src="http://www.infsq.co.uk/images/carpc/centra009.png" alt="Centrafuse" /></p>
<p>The other frontend I tested out was Centrafuse. This one is not free to use (there is a trial available), and comes in several different versions - the price of each is determined by it's feature set. Again, very easy to work with - perhaps more so than RoadRunner, and there are a lot of plug ins and a few skins available. Centrafuse handles the majority of functions independently (as far as I can tell) as it doesn't seem to call on other external programs as much as RoadRunner. One point to note is that Centrafuse does seem a little more resource hungry compared to RR.</p>
<p>Each frontend is very easy to set up and get working for basic functionality but things like phone control and GPS are a little more involved.</p>
<p>Now that system is fully operational, all that remained was to transfer some multimedia (audio and video) onto the hard drive so that there would actually be something to play! When doing this, make sure all files have correct ID3 tags otherwise when the frontend reads them, if you try searching for something by listing albums or artists, it will be a mess...</p>
<p>Transferring material to the PC in my case was simply a case of connecting to the wireless network and accessing network shares containing the albums etc that I wanted. This method will also be used when the PC is installed as the wireless link works from the driveway without any issues.</p>
<p>With everything as I wanted it, the final stage was to install the whole lot in the car. See Part 4!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.infsq.co.uk/2007/07/15/car-pc-part-3-software/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Car PC: Part 2 – Fabrication</title>
		<link>http://www.infsq.co.uk/2007/07/14/car-pc-part-2-fabrication/</link>
		<comments>http://www.infsq.co.uk/2007/07/14/car-pc-part-2-fabrication/#comments</comments>
		<pubDate>Sat, 14 Jul 2007 22:18:50 +0000</pubDate>
		<dc:creator>Leonard</dc:creator>
				<category><![CDATA[Carputer]]></category>
		<category><![CDATA[Cars]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[Guides]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[car pc]]></category>
		<category><![CDATA[fibreglass]]></category>
		<category><![CDATA[prelude]]></category>
		<category><![CDATA[sanding]]></category>
		<category><![CDATA[touchscreen]]></category>

		<guid isPermaLink="false">http://infsq.co.uk/?p=46</guid>
		<description><![CDATA[Introduction Following on from Part 1, this section is going to detail what I did regarding the most important thing in the project: the screen. The screen is the one thing that you and everyone else who uses the PC looks at all the time so it needs to be visible - but at the [...]]]></description>
			<content:encoded><![CDATA[<h4>Introduction</h4>
<p>Following on from <a href="http://www.infsq.co.uk/2007/07/11/car-pc-part-1-the-hardware/">Part 1</a>, this section is going to detail what I did regarding the most important thing in the project: the screen.</p>
<p>The screen is the one thing that you and everyone else who uses the PC looks at all the time so it needs to be visible - but at the same not distracting to the driver. It also needs to be accessible so the PC can be operated via the touch panel and ideally needs to fit in with the rest of the interior (I prefer things that look OEM and subtle).</p>
<p>What I decided to do was fabricate a mount for the screen into the centre console in place of the existing headunit. Rather than butcher the original console, I picked up another from a car of the same model as my own which was being broken for spare parts.</p>
<h4>The Process</h4>
<p>That done, I took the screen apart, separating the case from the actual panel and electronics inside, and provisionally secured the casing to the console using small blocks of MDF and screws:</p>
<p><img src="http://www.infsq.co.uk/images/carpc/DSC01088sm.JPG" alt="Casing secured" /></p>
<p>With the main construct in place, it was time to start playing with the fibreglass.</p>
<h4>Fibreglass Application</h4>
<p>Fibreglass kits consisting of sheets of dry glass fibre, resin and catalyst are readily available at most DIY stores and it is commonly used in automotive applications for repairing/modifying bodywork. The fibreglass was applied in two stages: Firstly, a flexible sheet of dry glass fibre was placed over the area(s) which needed moulding to the console. The desired effect was that the fibreglass would form a solid framework to build on:</p>
<p><img src="http://www.infsq.co.uk/images/carpc/DSC01090sm.JPG" alt="Dry Sheet" /></p>
<p>To mould the fibreglass to the required shape, the resin, mixed with a small amount of catalyst "hardner" was brushed into the sheet. This was all soaked in and the shape began to emerge:</p>
<p><img src="http://www.infsq.co.uk/images/carpc/DSC01091sm.JPG" alt="Fibreglassed" /></p>
<p>It was important to remember not to cover the rear of the original screen casing so that the screen could actually be refitted!</p>
<p>A word of warning: The resin and hardner have a VERY strong chemical smell which lingers even when they are drying and this is something that really needs to be done outdoors or you will actually pass out from the fumes...</p>
<h4>Filling and Sanding</h4>
<p>After leaving the fibreglassed console to dry overnight, I was greeted with a rock solid finish which as you can see from the above picture is quite rough looking. To smooth things out, I used a product called Isopon P38. This is an easy sanding filler, commonly used in car body repairs - which again, comes in two parts - the putty and a hardner. This was spread liberally over pretty much the entire surface of the console which had been fibreglassed in order to fill the cracks and dips where the material had set.</p>
<p><img src="http://www.infsq.co.uk/images/carpc/DSC01092sm.JPG" alt="Filler applied" /></p>
<p>At this point, the finish was irrelavent as when dry, the entire console was sanded down to give a smooth surface. Starting with coarse sandpaper and working through the different grades right down to ultra fine wet and dry paper, the whole thing was sanded blending the filler and fibreglass into the original console plastic. In my case, after the initial sanding, I wasn't 100% happy with the finish and applied a bit more filler to certain areas of the console and re-sanded them.</p>
<p>Another word of warning: As with the fibreglass, the filler/hardner does have a strong chemical smell and when sanding, produces A LOT of extremely fine dust particles. Again, best done outside.</p>
<h4>The Finished Article</h4>
<p>The only thing remaining at this point for me, was to spray the console black again and fit the screen back into it's casing. I used some standard grey primer on a couple of coats, followed by a few coats of black interspersed with some more wet and dry sanding to give a smooth a finish as possible.</p>
<p>It was then simply a case of popping the gear stick gaiter and screen and associated electronics back in:</p>
<p><img src="http://www.infsq.co.uk/images/carpc/DSC01107sm.jpg" alt="Front view" /></p>
<p><img src="http://www.infsq.co.uk/images/carpc/DSC01108sm.jpg" alt="Rear view" /></p>
<p>The end result is a customised, one-off centre console which is designed perfectly for that screen. I think it looks OEM and sits quite well in the dash. It's also easily accessible - being right infront of the gear stick.</p>
<p>Coming soon, Part 3: where I will talk about software this time....as always leave comments and stay tuned!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.infsq.co.uk/2007/07/14/car-pc-part-2-fabrication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Car PC: Part 1 – The Hardware</title>
		<link>http://www.infsq.co.uk/2007/07/11/car-pc-part-1-the-hardware/</link>
		<comments>http://www.infsq.co.uk/2007/07/11/car-pc-part-1-the-hardware/#comments</comments>
		<pubDate>Wed, 11 Jul 2007 00:52:41 +0000</pubDate>
		<dc:creator>Leonard</dc:creator>
				<category><![CDATA[Carputer]]></category>
		<category><![CDATA[Cars]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[Guides]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[car pc]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[itx]]></category>
		<category><![CDATA[m2-atx]]></category>
		<category><![CDATA[prelude]]></category>

		<guid isPermaLink="false">http://infsq.co.uk/?p=45</guid>
		<description><![CDATA[Intro After my exams had come to an end, I decided I needed a mini project to keep myself occupied for at least a few weeks, so I decided as any normal, sane and non-geeky person would, to put a PC in my car. I spent countless hours researching various components and determining what the [...]]]></description>
			<content:encoded><![CDATA[<h4>Intro</h4>
<p>After my exams had come to an end, I decided I needed a mini project to keep myself occupied for at least a few weeks, so I decided as any normal, sane and <a href="http://www.infsq.co.uk/2007/01/14/g33k/">non-geeky</a> person would, to put a PC in my car.</p>
<p>I spent countless hours researching various components and determining what the best route to go down would be. Installing a computer in a harsh environment such as a car needs a bit more thought than your average 'buy-the-components-and-slap-them-together-bob's-your-uncle-fanny's-your-aunt' kinda thought process.</p>
<p>- There are space considerations. The entire computer needs to fit comfortably into a small area without sacrificing functionality.<br />
- There are operating constraints. The computer should be sufficiently cooled to prevent it melting and destroying your car and perhaps most importantly, it needs to be low power so as not to drain the battery when working or when idle.</p>
<h4>Specifications</h4>
<p>Taking this all into account, the core specifications for the computer were as follows:</p>
<p>- CPU/Motherboard/RAM:<br />
<img src="http://www.infsq.co.uk/images/carpc/mboard.jpg" alt="Motherboard" /><br />
VIA EPIA M10000 'Nehemia' This board is based on the mini-itx form factor (it's really, really tiny), has an integrated 1GHz processor, graphics, sound, USB and LAN. It is extremely low power and as such runs quite cool. The integrated graphics is more than sufficient for in car purposes as are the other onboard components. Coupled with this platform, I chose to fit 512MB of RAM (mainly because that's what I had lying around at the time - yes, I have have RAM lying around, ok?)</p>
<p>- Storage:<br />
<img src="http://www.infsq.co.uk/images/carpc/hdd.jpg" alt="HDD" /><br />
I chose to use a 2.5" laptop hard drive as they tend to be a bit more resiliant towards shocks which will be ever present in an automotive environment. Alternatives include booting from a sizeable Compact Flash card and appropiate adapter but due to the limited write cycles as well as other limitations, this method, although fast, requires much more work on the software.</p>
<p>- Power:<br />
<img src="http://www.infsq.co.uk/images/carpc/m2.png" alt="M2-ATX" /><br />
To provide the computer with power I used an M2-ATX automotive PSU. Why not take a 12V DC supply straight from the battery I hear you say!? Well, besides from the obvious hassle of having to install a manual switch to turn the computer on and off, running a line direct from an in-car 12V source leaves sensitive PC components open to large voltage fluxuations. For example, the battery voltage can vary from 11-14V depending on the operating status and during engine cranking can jump up to 10's of Volts higher.</p>
<p>The M2-ATX, which is rated at 160W, protects against these surges and also allows remote turn on of the PC via a switched 12V ignition feed. That is, when the key is turned in the ignition, the computer begins to boot.</p>
<p>- External Devices:<br />
Nearly all the periphals connected to the computer are via USB. A mains powered hub was used and modified to work with the M2-ATX. Essentially, the 5V USB standby voltage was isolated within the USB terminal so that rather than drawing power from both the USB port and external power, the hub was exclusively external powered. Accessories included: USB GPS reciever, Bluetooth, FM Radio, Wi-Fi, USB touchscreen.</p>
<p>Stick it all in a well ventilated, home made case (containing custom hard drive mounts made from picture frame hooks!) and you have 1x Car PC.</p>
<p><img src="http://www.infsq.co.uk/images/carpc/DSC01109sm.jpg" alt="PC External" /></p>
<p><img src="http://www.infsq.co.uk/images/carpc/DSC01110sm.jpg" alt="PC Internal" /></p>
<p>Part 2 coming soon. That goes into details regarding the software used both behind the scenes and as a front end.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.infsq.co.uk/2007/07/11/car-pc-part-1-the-hardware/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Honda VTEC Engagement and KMH to MPH Converters</title>
		<link>http://www.infsq.co.uk/2007/04/30/honda-vtec-engagement-and-kmh-to-mph-converters/</link>
		<comments>http://www.infsq.co.uk/2007/04/30/honda-vtec-engagement-and-kmh-to-mph-converters/#comments</comments>
		<pubDate>Mon, 30 Apr 2007 21:56:06 +0000</pubDate>
		<dc:creator>Leonard</dc:creator>
				<category><![CDATA[Cars]]></category>
		<category><![CDATA[Guides]]></category>
		<category><![CDATA[112mph]]></category>
		<category><![CDATA[1st gear]]></category>
		<category><![CDATA[converter]]></category>
		<category><![CDATA[ecu]]></category>
		<category><![CDATA[engage]]></category>
		<category><![CDATA[gearbox]]></category>
		<category><![CDATA[honda]]></category>
		<category><![CDATA[import]]></category>
		<category><![CDATA[kmph]]></category>
		<category><![CDATA[mph]]></category>
		<category><![CDATA[oil pressure]]></category>
		<category><![CDATA[prelude]]></category>
		<category><![CDATA[solenoid]]></category>
		<category><![CDATA[speed sensor]]></category>
		<category><![CDATA[speedo]]></category>
		<category><![CDATA[vss]]></category>
		<category><![CDATA[vtec]]></category>

		<guid isPermaLink="false">http://infsq.co.uk/?p=41</guid>
		<description><![CDATA[On a lot of Japanese Imports the speedometer has been converted from kilometers per hour to miles per hour for ease of use on British roads. This is done by essentially altering the signal that is sent to the speedometer by a factor of ~0.6 (there are 0.6 miles in a kilometer). The alteration is [...]]]></description>
			<content:encoded><![CDATA[<p>On a lot of Japanese Imports the speedometer has been converted from kilometers per hour to miles per hour for ease of use on British roads. This is done by essentially altering the signal that is sent to the speedometer by a factor of ~0.6 (there are 0.6 miles in a kilometer).</p>
<p>The alteration is performed by a little black box which sits at some point between the Vehicle Speed Sensor (VSS) in the engine bay and the Speedometer on the dash. With this little box in place and altering the signal, the speedometer will now display measurements in Miles Per Hour and the odometer will also begin to clock in miles rather than kilometers.</p>
<p>If you want to know how the little black box works, read on. If not, then skip the next paragraph <img src='http://www.infsq.co.uk/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>The VSS sends a series of pulses to the Speedometer and the frequency of these pulses is used to determine how fast the vehicle is travelling. What the little black box does, is alter the frequency of the pulses to produce a resultant difference of a factor of 0.6, thus reducing the reading that the speedometer gives - i.e. it displays the speed effectively in mph.</p>
<p>Welcome back...</p>
<p>Anyway, all is well and good, unless you have a Honda VTEC engine - in which case a little more thought needs to go into the placement of the converter. VTEC gives you a boost of power at a certain RPM and activation is controlled by the ECU. Based on my Honda Prelude, there are three conditions which must be met in order for VTEC to engage:<br />
- The car must be up to normal operating temperature<br />
- The car must be travelling faster than 14kmh (or mph)<br />
- Oil pressure must be high enough</p>
<p>The car is setup as follows:<br />
<strong>VSS --> ECU --> Speedo</strong></p>
<p>In theory, you can put the converter inbetween either the VSS and the ECU or the ECU and the Speedo. Either way will produce a reading in mph, but the position used will produce different side effects, especially on Honda VTEC engines.</p>
<h4>Method 1:</h4>
<p>Fit the converter between the VSS and ECU, in the engine bay.</p>
<p>The VSS is located just on the side of the engine block towards the top of the gearbox. It has three wires coming from it: +ve (yellow/black striped), -ve (black) and the speed signal (orange). The converter needs to fit in-line with these wires.</p>
<p><strong>End result:<br />
-Speedometer reads in miles per hour<br />
-112mph limiter removed<br />
-No VTEC in 1st gear.</strong></p>
<h4>Method 2:</h4>
<p>Fit the converter between the ECU and the Speedo unit, just behind the actual speedo.</p>
<p>The wires required are located on the green, 10-pin connector towards the top left of the speedometer unit (as you look at it). The wires required are +ve (yellow), -ve (black) and the speed signal, which again is orange (sometimes orange with silver dots for some reason).</p>
<p><strong>End result:<br />
-Speedometer reads in mph<br />
-VTEC in 1st gear<br />
-112mph limiter still in place.</strong></p>
<p><img src="http://www.infsq.co.uk/images/converter.jpg" alt="Converter placement schematics" /></p>
<h4>Why does the position matter so much?</h4>
<p>Imagine this scenario:<br />
You are accelerating in 1st gear, and given that all the above conditions are met, VTEC will engage at the correct revs. However consider that now you have the MPH converter in place. This is effectively turning the 14mph condition into a limit that is either out of range of 1st gear or right at the top of the rev range where VTEC engagement would be pointless for such a short time.</p>
<p>In other words, by fitting the converter before the ECU, all the subsequent signals related to the vehicle speed are now in MPH internally, but the ECU expects them to be in KMH. By fitting the converter after the ECU, the internals stay in KMH and only the visual output (i.e. the dials) are changed to MPH.</p>
<p>As for the 112mph limiter...well, thats another story <img src='http://www.infsq.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>The main point of this post is to hopefully help anyone with a Honda import vehicle who is unable to get VTEC in 1st gear. For more information check out PreludeUK or other Honda specific forums.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.infsq.co.uk/2007/04/30/honda-vtec-engagement-and-kmh-to-mph-converters/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Electronic Delay Latch</title>
		<link>http://www.infsq.co.uk/2007/03/09/electronic-delay-latch/</link>
		<comments>http://www.infsq.co.uk/2007/03/09/electronic-delay-latch/#comments</comments>
		<pubDate>Fri, 09 Mar 2007 21:48:23 +0000</pubDate>
		<dc:creator>Leonard</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Guides]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[delay]]></category>
		<category><![CDATA[electronics]]></category>
		<category><![CDATA[latch]]></category>
		<category><![CDATA[pc]]></category>
		<category><![CDATA[psu]]></category>
		<category><![CDATA[relay]]></category>
		<category><![CDATA[transistors]]></category>
		<category><![CDATA[zener]]></category>

		<guid isPermaLink="false">http://infsq.co.uk/?p=39</guid>
		<description><![CDATA[The Background A while ago, I built a PC and used an All-in-Wonder Radeon 9700 Pro graphics card. For those who aren't too familiar with them, read here. They were one of the first cards to require an external power connector to provide extra juice that couldn't be drawn from the AGP bus. Coupled with [...]]]></description>
			<content:encoded><![CDATA[<h3>The Background</h3>
<p>A while ago, I built a PC and used an All-in-Wonder Radeon 9700 Pro graphics card. For those who aren't too familiar with them, read <a href="http://en.wikipedia.org/wiki/Radeon_R300">here</a>. They were one of the first cards to require an external power connector to provide extra juice that couldn't be drawn from the AGP bus.</p>
<p>Coupled with this card, I used an Enermax 435W PSU, which was easily sufficient in terms of power output and was a good, reliable brand. However, I ran into problems with the computer booting from cold.</p>
<p>The fans would start spinning for a brief second before everything died. In my fault finding, I removed the power connector from the graphics card and the system booted up fine and displayed a message telling me to plug the card connector in. Voila, everything works!</p>
<p>Well, except that everytime I want to turn the computer on, I have to unplug the card...not so good.</p>
<p>I came to the conclusion that it was the power supply's surge protection of some sort kicking in and preventing the card from drawing the power it needed at boot up. (I tried a smaller, no name PSU and it worked fine. However, not wanting to destroy my hardware by using a cheap PSU, I needed a different solution).</p>
<h3>The Delay</h3>
<p>Since the system worked fine when the power was supplied to the card a few seconds after a cold boot, I figured the only sensible thing would be to simulate this delay electronically. In other words, have a system that sits between the card and the power connector that creates a delay between when I press the power button on the PC to power getting to the card.</p>
<p>After a bit of researching and developing and testing, I came up with the following circuit:</p>
<p><img src="http://www.infsq.co.uk/images/latch/schematic.jpg" alt="Schematic" /></p>
<h3>Components:</h3>
<p>(1x) TIP122 Darlington Pair Transistor<br />
(1x) 47K Variable Linear Pot Resistor<br />
(1x) 100uF 16V Electrolytic Capacitor<br />
(1x) 5.1K Resistor<br />
(1x) 1K Ressitor<br />
(1x) 6V8 Zener Diode<br />
(1x) 1N4001 Diode<br />
(1x) 12V 6A (Double Pole Double Throw) DPDT Relay</p>
<h3>Putting It Together</h3>
<p>Assemble the circuit using either a bit of stripboard, or if you have access to PCB fabriaction facilities, feel free to use the following mask, but you'll have to work out where things go for yourself...</p>
<p><img src="http://www.infsq.co.uk/images/latch/layout.bmp" alt="PCB Layout" /></p>
<p>Connect everything up and run a test just to make sure it's all working as it should. Remember, Yellow = +12V, Red=+5V, Black =0V. Connect it to the PSU and you should hear a definite 'click' as the relay latches and turns on. Make sure the transistors aren't melting and that the capacitors aren't exploding. Test it with nothing connected to the output just yet - use a multimeter to measure the outputs - they should read 12V and 5V when on.</p>
<p>When you are confident that it is working as it should be, connect it to your graphics card and enjoy never having to mess about with the power connector ever again!</p>
<h3>How It Works</h3>
<p>When the power button is pressed on the front of the computer (referred to as S1 in the schematic above), the 1k and the variable 47k resistor network allows some current to flow through and get stored in the capacitor.</p>
<p>As this charge builds up, the voltage at the Zener diode begins to rise. When it reaches 6.8V, the diode immediately begins to conduct, turning on the Darlington Pair Transistor.</p>
<p>This transistor pair is isolated from the main power circuitry using a power relay, which is in turn, switched on - causing the main 12V and 5V power lines to effectively connect straight to the graphics card via points A and B marked on the schematic. For reference, the additional diode is in place to protect the transistors.</p>
<p>The delay period can be varied to suit the application using the variable resistor.</p>
<h3>Disclaimer</h3>
<p>This is only a guide.</p>
<p>You may use the information in the article to help you solve problems you are having with your graphics cards or other related issues, but I AM NOT responsible for anything you blow up or damage. All the work you do is at your own risk. Remember: research and understand what you are doing. If in doubt, don't do it. If you have any questions, post here or in the forum and I can try and help.</p>
<p>Cheers.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.infsq.co.uk/2007/03/09/electronic-delay-latch/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Oil Change</title>
		<link>http://www.infsq.co.uk/2007/02/02/oil-change/</link>
		<comments>http://www.infsq.co.uk/2007/02/02/oil-change/#comments</comments>
		<pubDate>Fri, 02 Feb 2007 01:27:59 +0000</pubDate>
		<dc:creator>Leonard</dc:creator>
				<category><![CDATA[Cars]]></category>
		<category><![CDATA[Guides]]></category>
		<category><![CDATA[dipstick]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[intervals]]></category>
		<category><![CDATA[level]]></category>
		<category><![CDATA[lubricant]]></category>
		<category><![CDATA[oil change]]></category>
		<category><![CDATA[seal]]></category>
		<category><![CDATA[sump]]></category>

		<guid isPermaLink="false">http://infsq.co.uk/?p=36</guid>
		<description><![CDATA[Regular maintenance of your car's fluids is essential to keep it running as well smoothly as possible - as well as ensuring the engine has a long life. Amongst all the regular fluid checks like coolant, brake and steering etc, the most important is the oil. The oil stops your car from grinding (literally) to [...]]]></description>
			<content:encoded><![CDATA[<p>Regular maintenance of your car's fluids is essential to keep it running as well smoothly as possible - as well as ensuring the engine has a long life.</p>
<p>Amongst all the regular fluid checks like coolant, brake and steering etc, the most important is the oil. The oil stops your car from grinding (literally) to a halt and making horrible screeching and sounds of metal against metal... As well as lubricating everything, it also traps road dirt and filters it out. Basically, its quite important.</p>
<p>The interval between changes will depend on your car (it is usually a good few thousand miles). On my 306, the interval is 6000 miles (diesels like to have more frequent changes - a petrol engine will probably have a longer cycle).</p>
<h4>What you need</h4>
<p>- <em>Fresh oil.</em> By fresh, I don't mean go and bore into the earth and refine your own, I mean go and buy some oil of the proper grade viscosity for your engine. The viscosity is denoted by the big writing on the side of the oil container in the form 10W40, 5W30, 20W50 etc. Find the rating for your engine by referring to a Haynes manual or your owner book. Also, make sure you get petrol or diesel oil accordingly.</p>
<p>- <em>A new oil filter.</em> These are smallish pot shaped metal containers (which come in various colours) and are screwed into the engine block and filter out all the crap the oil picks up through different grade filter paper within. The location of your filter may differ - the 306 filter was towards the front/bottom of the engine block shown below (its the white thing!):</p>
<p><img src="http://www.infsq.co.uk/images/oilchange/filtlt.jpg" alt="Old Filter" /></p>
<p>- <em>A tub or container</em>. To collect the drained oil - make sure its large enough. The 306 takes 4.5 liters of oil.</p>
<h4>Draining the Old Oil</h4>
<p>It is best to do the change when the car is slightly warm - not too hot though as you don't want hot oil splashing everywhere. That would be bad.</p>
<p>First, locate the oil sump and drain plug under your car. It should look similar to the following image:</p>
<p><img src="http://www.infsq.co.uk/images/oilchange/sump.jpg" alt="Sump" /></p>
<p>Find the correct size socket/spanner and undo the drain plug slightly. Get your container ready to catch the oil and remove the plug fully - it'll probably go all over your hand, but as long as you don't drop the plug in the oil container its ok....</p>
<p><img src="http://www.infsq.co.uk/images/oilchange/drain.jpg" alt="Draining" /></p>
<p>Leave this to drain for a good few minutes, and in the mean time, remove the old filter - it should unscrew by hand but you can buy oil filter removal tools if you really need to. Some oil will fall from the filter once removed so make sure it doesn't drip on anything important. It's hard to imagine that this black stuff was once a smooth golden orange color....</p>
<h4>Adding the New Oil</h4>
<p>Once the oil has been draining for a while and has slowed to a slow drip or stopped altogether, you can replace the drain plug. It is good practice to use a new crush washer when tightening but it is not essential.</p>
<p>To fit the new filter, first rub some oil on the rubber seal washer which runs around the edge of the container (see image below), and screw it into place. Tighten as much as possible by hand - it should not move.</p>
<p><img src="http://www.infsq.co.uk/images/oilchange/seal.jpg" alt="Sealing" /></p>
<p>All that remains now, is to fill the engine up with the fresh oil. Locate the oil filler cap on the top of the engine (it is usually marked OIL or 710 *chuckle* I make myself laugh...). It best to use a funnel to prevent spillages and make sure you don't overfill!!!</p>
<h4>Final Checks</h4>
<p>Before starting the engine, check for any immediate signs of leaks and tighten the corresponding part appropriately...</p>
<p>Now start the engine and check once more for leaks while the engine is running. Stop and leave the car to rest for a minute, and ensuring it is on level ground, check the oil level using the dipstick. Top up if necessary, and you're done!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.infsq.co.uk/2007/02/02/oil-change/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Rotating Signatures</title>
		<link>http://www.infsq.co.uk/2007/01/13/rotating-signatures/</link>
		<comments>http://www.infsq.co.uk/2007/01/13/rotating-signatures/#comments</comments>
		<pubDate>Sat, 13 Jan 2007 01:17:35 +0000</pubDate>
		<dc:creator>Leonard</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Guides]]></category>
		<category><![CDATA[img]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[random]]></category>
		<category><![CDATA[rotating signatures]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://infsq.co.uk/?p=30</guid>
		<description><![CDATA[Ever wanted a signature for your forum accounts that changed randomly every time the page was loaded? Not sure how to do it? Well read on and be enlightened... What you need Well first of all, you need somewhere to host your images. They need to be in the same directory as each other, and [...]]]></description>
			<content:encoded><![CDATA[<p>Ever wanted a signature for your forum accounts that changed randomly every time the page was loaded? Not sure how to do it? Well read on and be enlightened...</p>
<h4>What you need</h4>
<p>Well first of all, you need somewhere to host your images. They need to be in the same directory as each other, and you need control over the naming of the files (so somewhere like Imageshack won't work).</p>
<p><strong>Your host also needs to be running PHP.</strong></p>
<h4>Method:</h4>
<p>As you know, to place an image in your signature, you use [IMG] [/IMG] tags around the path of the image. Essentially, what you will be doing in this case, is rather than referencing an image file directly, you reference a .php file which calls a random image for your signature. With me so far?</p>
<p>Ok, first, name all your image files you want in your rotation logically (use 1.jpg, 2.jpg, 3.jpg etc.), then upload them all into the same folder on the server.</p>
<p>Open notepad or any other basic text editor and paste in the following code, courtesy of <a href="http://robm.me.uk/">this site</a> on a single line:</p>
<blockquote><p><code>&lt;?php $files = glob('{*.PNG,*.png,*.JPG,*.jpg,*.GIF,*.gif}', GLOB_BRACE); readfile($files[array_rand($files)]); ?&gt;</code></p></blockquote>
<p>Save the file as "rotate.php" (remember to change the file extension from .txt to .php), and upload this file to the same directory as your images.</p>
<p>Now alter your signature on the forum as [IMG]http://somehost/sigs/rotate.php[/IMG] you should have a fully functioning rotating signature!</p>
<h4>Notes:</h4>
<p>Some forums have restrictions on the type of file you can use as a signature image. Sometimes, the .php extension is restricted, which obviously causes problems when using the above method. If this is the case, use the following method: paste the code below into a blank notepad document and save the resulting file as "rand.jpg" :</p>
<blockquote><pre><code>&lt;?php

Header('Cache-Control: no-cache');
Header('Pragma: no-cache');

$dh = opendir(".");
while (false !== ($file = readdir($dh)))
{
if (preg_match('/\.jpg$/i', $file) and $file != "rand.jpg")
{
$filelist[] = $file;
}
}

srand((double)microtime()*1000000);
$picnum = rand(0, sizeof($filelist) - 1);

header("Location: " . $filelist[$picnum]);

closedir($dh);
?&gt;</code></pre>
</blockquote>
<p>Upload this file to the same directory as your signature images. This bit of code basically selects a random jpg image from the bunch you uploaded earlier (similarly to the first method), but since the file itself is technically a jpg (you don't want it to call itself during the random selection!), there is an exception statement included.</p>
<p>Again, use standard image tags to display your signature:</p>
<p>[IMG]http://somehost/sigs/rand.jpg[/IMG]</p>
<p>And Bob is indeed your Uncle. Any problems, post away.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.infsq.co.uk/2007/01/13/rotating-signatures/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
