<?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>JGB Industries</title>
	<atom:link href="http://jgbi.jgbindustries.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://jgbi.jgbindustries.com</link>
	<description></description>
	<lastBuildDate>Fri, 25 Jun 2010 00:57:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Enter to Tab</title>
		<link>http://jgbi.jgbindustries.com/2010/06/05/js-enter-to-tab/</link>
		<comments>http://jgbi.jgbindustries.com/2010/06/05/js-enter-to-tab/#comments</comments>
		<pubDate>Sat, 05 Jun 2010 01:12:05 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Webstuff]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://jgbi.jgbindustries.com/?p=4</guid>
		<description><![CDATA[This code from Scripterlative uses JavaScript to change the behaviour of the enter button. Really handy if you&#8217;re building forms where your users may hit &#8216;enter&#8217; to go to the next field, and accidentally submit the form before they&#8217;ve finished filling everything in.
Grab it here:
http://scripterlative.com/files/entertotab.htm
[N.B.: This code is provided by the author as 'GratuityWare' - [...]]]></description>
			<content:encoded><![CDATA[<p>This code from Scripterlative uses JavaScript to change the behaviour of the enter button. Really handy if you&#8217;re building forms where your users may hit &#8216;enter&#8217; to go to the next field, and accidentally submit the form before they&#8217;ve finished filling everything in.</p>
<p>Grab it here:<br />
<a href="http://scripterlative.com/files/entertotab.htm">http://scripterlative.com/files/entertotab.htm</a></p>
<p><em>[N.B.: This code is provided by the author as 'GratuityWare' - that is, if you want to use it permanently you need to donate an amount of your choice to the author.]</em></p>
]]></content:encoded>
			<wfw:commentRss>http://jgbi.jgbindustries.com/2010/06/05/js-enter-to-tab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Virtuemart &#8211; eway payment method</title>
		<link>http://jgbi.jgbindustries.com/2010/03/28/virtuemart-eway-payment-method/</link>
		<comments>http://jgbi.jgbindustries.com/2010/03/28/virtuemart-eway-payment-method/#comments</comments>
		<pubDate>Sun, 28 Mar 2010 00:29:09 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Webstuff]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[VirtueMart]]></category>

		<guid isPermaLink="false">http://jgbi.jgbindustries.com/?p=14</guid>
		<description><![CDATA[
Joomla&#8217;s Virtuemart shopping cart component has a built in payment module for eway &#8211; one of the big gun online credit card payment processors.
The &#8216;normal&#8217; way for a website to set up Virtuemart is to have transactions tied in to user accounts, but if you want to set it up differently so that people can [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://jgbi.jgbindustries.com/images/2010/03/ewaylogo.png" alt="" title="ewaylogo" width="125" height="67" class="alignright size-full wp-image-46" />
<div id="_mcePaste">Joomla&#8217;s Virtuemart shopping cart component has a built in payment module for eway &#8211; one of the big gun online credit card payment processors.</div>
<div id="_mcePaste">The &#8216;normal&#8217; way for a website to set up Virtuemart is to have transactions tied in to user accounts, but if you want to set it up differently so that people can buy stuff from your site without logging in you can do that too.</div>
<div id="_mcePaste">The way the eway processor works is by sending XML to eway&#8217;s server with all the details of the transaction &#8211; name, email, credit card number etc.</div>
<div id="_mcePaste">The problem is that it grabs this information from the Joomla user database, which isn&#8217;t much help if you&#8217;ve set up Virtuemart to enable transactions without logins.</div>
<div id="_mcePaste">That&#8217;s where this code comes in.</div>
<div id="_mcePaste">[This code was provided by fredzebu and Gygash at the Virtuemart forum (see post at http://forum.virtuemart.net/index.php?topic=57773.msg200107).</div>
<div><span id="more-14"></span></div>
<div>Open the file administrator/components/com_virtuemart/classes/payment/ps_eway.php and do the following;</div>
<div id="_mcePaste">1. Replace</div>
<pre class="brush:php">$qt = "SELECT * FROM #__users WHERE id='".$auth["user_id"].&#8221;&#8216; AND address_type=&#8217;BT&#8217;&#8221;;</pre>
<div id="_mcePaste">with:</div>
<p><code>$qt = "SELECT * FROM #__vm_user_info WHERE user_id='".$auth["user_id"]."' AND address_type='BT'";</code></p>
<div id="_mcePaste">2. Replace:</div>
<p><code>$eway-&gt;setCustomerEmail( $db-&gt;f("email") );</code></p>
<div id="_mcePaste">with:</div>
<pre class="brush:php">$eway-&gt;setCustomerEmail( $db-&gt;f("user_email") );</pre>
<div id="_mcePaste">This will correctly set the customer details(Firstname, Lastname, Email, Address).</div>
<div id="_mcePaste">3. Add this code to the beginning of function doPayment():</div>
<pre class="brush:php">$db = new ps_DB;
$qt = "SELECT * FROM #__vm_orders order by order_id";
$db-&gt;query($qt);
$rows = $db-&gt;loadObjectList();
foreach($rows as $row)
{
$order_id=$row-&gt;order_id;
$order_id+=1;
}
$CustomerInvoiceDescription=htmlentities( $this-&gt;myCustomerInvoiceDescription );
$CustomerInvoiceDescription.="$order_id";</pre>
<div id="_mcePaste">then replace:</div>
<pre class="brush:php">"&lt;ewayCustomerInvoiceDescription&gt;".htmlentities( $this-&gt;myCustomerInvoiceDescription."&lt;/ewayCustomerInvoiceDescription&gt;".</pre>
<div id="_mcePaste">with</div>
<pre class="brush:php">"&lt;ewayCustomerInvoiceDescription&gt;"."$CustomerInvoiceDescription"."&lt;/ewayCustomerInvoiceDescription&gt;".</pre>
<div id="_mcePaste">and replace</div>
<pre class="brush:php">"&lt;ewayCardHoldersName&gt;".htmlentities( $this-&gt;myCardName )."&lt;/ewayCardHoldersName&gt;".</pre>
<div id="_mcePaste">with</div>
<pre class="brush:php">"&lt;ewayCardHoldersName&gt;".htmlentities( $this-&gt;myCardHoldersName )."&lt;/ewayCardHoldersName&gt;".</pre>
<div id="_mcePaste">Finally, replace</div>
<pre class="brush:php">replace$eway-&gt;setCardHoldersName( $payer_name_is + '' );</pre>
<div>with</div>
<pre class="brush:php">$eway-&gt;setCardHoldersName( $payer_name_is . '' );</pre>
<div>There - done.</div>
]]></content:encoded>
			<wfw:commentRss>http://jgbi.jgbindustries.com/2010/03/28/virtuemart-eway-payment-method/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Downloading Chrome behind a firewall</title>
		<link>http://jgbi.jgbindustries.com/2010/03/08/downloading-chrome-behind-a-firewall/</link>
		<comments>http://jgbi.jgbindustries.com/2010/03/08/downloading-chrome-behind-a-firewall/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 00:11:08 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Webstuff]]></category>
		<category><![CDATA[Google]]></category>

		<guid isPermaLink="false">http://jgbi.jgbindustries.com/?p=11</guid>
		<description><![CDATA[Google Chrome&#8217;s installer doesn&#8217;t work behind corporate firewalls.
This link fixes that (provided you&#8217;ve got access to downloading exe files):
http://filehippo.com/download_google_chrome/
[N.B. &#8211; this seems to be a silent installer &#8211; nothing comes up on the screen when you update an existing version. Once you re-open Chrome all the work is done.
]]></description>
			<content:encoded><![CDATA[<p><img src="http://jgbi.jgbindustries.com/images/2010/03/google-chrome-199x200.png" alt="Google Chrome Logo" title="Google Chrome Logo" width="199" height="200" class="alignright size-thumbnail wp-image-43" />Google Chrome&#8217;s installer doesn&#8217;t work behind corporate firewalls.</p>
<p>This link fixes that (provided you&#8217;ve got access to downloading exe files):</p>
<p><a href="http://filehippo.com/download_google_chrome/">http://filehippo.com/download_google_chrome/</a></p>
<p>[N.B. &#8211; this seems to be a silent installer &#8211; nothing comes up on the screen when you update an existing version. Once you re-open Chrome all the work is done.</p>
]]></content:encoded>
			<wfw:commentRss>http://jgbi.jgbindustries.com/2010/03/08/downloading-chrome-behind-a-firewall/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eraser Shield</title>
		<link>http://jgbi.jgbindustries.com/2009/11/17/eraser-shield/</link>
		<comments>http://jgbi.jgbindustries.com/2009/11/17/eraser-shield/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 00:08:24 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Gadgets]]></category>

		<guid isPermaLink="false">http://jgbi.jgbindustries.com/?p=9</guid>
		<description><![CDATA[I hadn&#8217;t heard of this thing and neither had 95% of the people in my office, so it&#8217;s news.
The eraser shield is just a very thing piece of aluminium with various holes cut in it. You stick it over your penciled work and use it to shield the bits you want to keep from the [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://jgbi.jgbindustries.com/images/2009/11/eraser-shield-200x130.png" alt="" title="eraser-shield" width="200" height="130" class="alignright size-thumbnail wp-image-48" />I hadn&#8217;t heard of this thing and neither had 95% of the people in my office, so it&#8217;s news.</p>
<p>The eraser shield is just a very thing piece of aluminium with various holes cut in it. You stick it over your penciled work and use it to shield the bits you want to keep from the deadly eraser, while still allowing you to erase bits you didn&#8217;t want.</p>
<p>It took me ages to find this, but a good arts supply store should stock them.</p>
<p>If you&#8217;ve got the patience (I didn&#8217;t) <a href="http://www.youtube.com/watch?v=gifdZGKtLZw">here&#8217;s a video</a> where one is apparently used.</p>
<p>Thanks to Dave O&#8217;Neill and Dave Stock for getting me onto this one.</p>
]]></content:encoded>
			<wfw:commentRss>http://jgbi.jgbindustries.com/2009/11/17/eraser-shield/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WD 2TB Drive</title>
		<link>http://jgbi.jgbindustries.com/2009/11/16/5/</link>
		<comments>http://jgbi.jgbindustries.com/2009/11/16/5/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 00:06:33 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Gadgets]]></category>

		<guid isPermaLink="false">http://jgbi.jgbindustries.com/?p=5</guid>
		<description><![CDATA[I hadn&#8217;t always seen the point of external hard drives, but then I stumbled upon about 3TB of stuff that I wanted (in a mystery location) and went out and bought this.
It&#8217;s 2TB &#8211; &#8216;2000GB&#8217; &#8211; although really that means (2,000,396,288,000 bytes, or 1810GB thanks to kilo/kibi debacle. Still, that&#8217;s more storage than all my other drives [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://jgbi.jgbindustries.com/images/2009/11/WD-2TB-128x200.png" alt="" title="WD-2TB" width="128" height="200" class="alignright size-thumbnail wp-image-50" />I hadn&#8217;t always seen the point of external hard drives, but then I stumbled upon about 3TB of stuff that I wanted (in a mystery location) and went out and bought this.</p>
<p>It&#8217;s 2TB &#8211; &#8216;2000GB&#8217; &#8211; although really that means (2,000,396,288,000 bytes, or 1810GB thanks to <a href="http://en.wikipedia.org/wiki/Kibibyte">kilo/kibi debacle</a>. Still, that&#8217;s more storage than all my other drives put together, so it would be rude to complain.</p>
<p>Though it is external, it&#8217;s not &#8216;portable&#8217; &#8211; i.e. you can&#8217;t move it when it&#8217;s on like a laptop. It has a USB2 cable and a power adapter which sucks 12V DC (twice as much as the USB port outputs (5V), but you could in theory run it straight out of your computer like <a href="http://www.frozencpu.com/products/5955/bus-104/Aerocool_PoweredUSB_12V_USB_Cable.html">this</a>).</p>
<p>USB2 is plenty fast enough to watch DVD quality movies on the go (480MB/s) &#8211; haven&#8217;t tried anything better than that but at this stage can&#8217;t see why I&#8217;d need to.</p>
<p>Using it as a media server on your network is possible &#8211; but make sure your router is up to is &#8211; my wireless router isn&#8217;t quite there.</p>
<ul>
<li>When you get any external HDD drive, make sure it&#8217;s formatted in NTFS, not FAT32 format<br />
FAT32 doesn&#8217;t let you copy single files over 4GB (e.g. movies).</li>
<li>If you&#8217;re getting one, <a href="http://www.jw.com.au/products_closeup.asp?part=External+HDD&amp;part_no=3824">try here</a>.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://jgbi.jgbindustries.com/2009/11/16/5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
