<?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>Matt Gibson &#187; fix</title>
	<atom:link href="http://www.mattgibson.ca/tags/fix/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mattgibson.ca</link>
	<description>I'm one of those people radio shows call for obscure shit.</description>
	<lastBuildDate>Thu, 25 Mar 2010 00:04:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Fixing MySQL Error 1064 with PHPList when selecting new criteria</title>
		<link>http://www.mattgibson.ca/2009/01/29/fixing-mysql-error-1064-with-phplist-when-selecting-new-criteria/</link>
		<comments>http://www.mattgibson.ca/2009/01/29/fixing-mysql-error-1064-with-phplist-when-selecting-new-criteria/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 22:04:51 +0000</pubDate>
		<dc:creator>Matt G</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[PHPList]]></category>

		<guid isPermaLink="false">http://www.mattgibson.ca/?p=172</guid>
		<description><![CDATA[Today we had to fix a clients PHPlist. There was an error in their mysql select statement for whatever reason &#8211; whether it was their setup (they had some really weird group names and country names) or something with PHPList. Took us a while to figure it out, but as it turns out someone else [...]]]></description>
			<content:encoded><![CDATA[<p>Today we had to fix a clients PHPlist. There was an error in their mysql select statement for whatever reason &#8211; whether it was their setup (they had some really weird group names and country names) or something with PHPList. Took us a while to figure it out, but as it turns out someone <a href="http://mantis.phplist.com/view.php?id=15182">else had the same issue</a>.</p>
<p>Basically the fix is this:</p>
<p># nano /lists/admin/send_core.php</p>
<p>Find this</p>
<p>if (is_array($_POST["criteria_values"])) {<br />
$values = join(&#8220;, &#8220;,$_POST["criteria_values"]);<br />
} else {<br />
$values = $_POST["criteria_values"];<br />
}</p>
<p>and replace it with this</p>
<p>if (is_array($_POST["criteria_values"])) {<br />
# The following code checks for null values in the criteria_attribute array and removes them<br />
$values = $_POST["criteria_values"];<br />
foreach ($values as $key=&gt;$value) {<br />
if (!$value) {<br />
array_splice($values, $key, 1); // Remove null value from array<br />
}<br />
}<br />
$values = join(&#8220;, &#8220;,$values);<br />
#  $values = join(&#8220;, &#8220;,$_POST["criteria_values"]);<br />
} else {<br />
$values = $_POST["criteria_values"];<br />
}</p>
<p>Now everything should work, with no more mysql errors!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mattgibson.ca/2009/01/29/fixing-mysql-error-1064-with-phplist-when-selecting-new-criteria/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to fix your hackable SSH on Debian and Ubuntu Servers</title>
		<link>http://www.mattgibson.ca/2008/05/15/how-to-fix-your-hackable-ssh-on-debian-and-ubuntu-servers/</link>
		<comments>http://www.mattgibson.ca/2008/05/15/how-to-fix-your-hackable-ssh-on-debian-and-ubuntu-servers/#comments</comments>
		<pubDate>Thu, 15 May 2008 17:55:53 +0000</pubDate>
		<dc:creator>Matt G</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[vulnerable]]></category>

		<guid isPermaLink="false">http://www.mattgibson.ca/archives/107</guid>
		<description><![CDATA[If you&#8217;re running debian or ubuntu, your ssh keys are vulnerable. Follow these steps to regenerate them and secure your box back up. apt-get update apt-get upgrade cd /etc/ssh/ rm ssh_host_dsa_key rm ssh_host_dsa_key.pub rm ssh_host_rsa_key rm ssh_host_rsa_key.pub ssh-keygen -t dsa (filename as /etc/ssh/ssh_host_dsa_key) ssh-keygen -t rsa (filename as /etc/ssh/ssh_host_rsa_key) /etc/init.d/ssh restart]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re running debian or ubuntu, your ssh keys are vulnerable. Follow these steps to regenerate them and secure your box back up.</p>
<blockquote><p>apt-get update<br />
apt-get upgrade<br />
cd /etc/ssh/<br />
rm ssh_host_dsa_key<br />
rm ssh_host_dsa_key.pub<br />
rm ssh_host_rsa_key<br />
rm ssh_host_rsa_key.pub<br />
ssh-keygen -t dsa (filename as /etc/ssh/ssh_host_dsa_key)<br />
ssh-keygen -t rsa (filename as /etc/ssh/ssh_host_rsa_key)<br />
/etc/init.d/ssh restart</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.mattgibson.ca/2008/05/15/how-to-fix-your-hackable-ssh-on-debian-and-ubuntu-servers/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fix SMS Time Issues on Rogers/FIDO Unlocked GSM/3G Windows Mobile 5/6 SmartPhones/PocketPC&#8217;s</title>
		<link>http://www.mattgibson.ca/2008/04/13/fix-sms-time-issues-on-rogersfido-unlocked-gsm3g-windows-mobile-56-smartphonespocketpcs/</link>
		<comments>http://www.mattgibson.ca/2008/04/13/fix-sms-time-issues-on-rogersfido-unlocked-gsm3g-windows-mobile-56-smartphonespocketpcs/#comments</comments>
		<pubDate>Mon, 14 Apr 2008 02:14:32 +0000</pubDate>
		<dc:creator>Matt G</dc:creator>
				<category><![CDATA[Fido]]></category>
		<category><![CDATA[Fun]]></category>
		<category><![CDATA[HTC]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Mobile Phones]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Windows Mobile]]></category>
		<category><![CDATA[dword value]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[machine software]]></category>
		<category><![CDATA[pocketpc]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[rogers]]></category>
		<category><![CDATA[sms]]></category>
		<category><![CDATA[time]]></category>
		<category><![CDATA[wm6]]></category>

		<guid isPermaLink="false">http://www.mattgibson.ca/archives/103</guid>
		<description><![CDATA[FIX: You need to add this to the registry: Go to HKEY_LOCAL_MACHINE\SOFTWARE\OEM\PhoneSetting\ Add a dword key &#8220;TrustTimeZoneField&#8221; and give it a dword value of 0 then soft reset your phone. enjoy!]]></description>
			<content:encoded><![CDATA[<p>FIX:  You need to add this to the registry: Go to HKEY_LOCAL_MACHINE\SOFTWARE\OEM\PhoneSetting\<br />
Add a dword key &#8220;TrustTimeZoneField&#8221; and give it a dword value of 0</p>
<p>then soft reset your phone.</p>
<p>enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mattgibson.ca/2008/04/13/fix-sms-time-issues-on-rogersfido-unlocked-gsm3g-windows-mobile-56-smartphonespocketpcs/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>SBS 2003 Disable Sync of Certain Offline Files like .PST or .MDB</title>
		<link>http://www.mattgibson.ca/2008/04/04/sbs-2003-disable-sync-of-certain-offline-files-like-pst-or-mdb/</link>
		<comments>http://www.mattgibson.ca/2008/04/04/sbs-2003-disable-sync-of-certain-offline-files-like-pst-or-mdb/#comments</comments>
		<pubDate>Sat, 05 Apr 2008 03:01:06 +0000</pubDate>
		<dc:creator>Matt G</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[disable]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[logon scripts]]></category>
		<category><![CDATA[sbs setup]]></category>
		<category><![CDATA[sync]]></category>

		<guid isPermaLink="false">http://www.mattgibson.ca/archives/99</guid>
		<description><![CDATA[Today I was noticing that some clients on the network were experiencing errors when users logged out and windows synced for them. In order to fix this, I had to do the following: TS to SBS Server Navigate to \\SBS\netlogon Edit the SBS_LOGIN_SCRIPT.bat file in this directory. It should look like: \\SBS\Clients\Setup\setup.exe /s SBS Change [...]]]></description>
			<content:encoded><![CDATA[<p>Today I was noticing that some clients on the network were experiencing errors when users logged out and windows synced for them.</p>
<p>In order to fix this, I had to do the following:</p>
<ol>
<li>TS to SBS Server</li>
<li>Navigate to \\SBS\netlogon</li>
<li>Edit the SBS_LOGIN_SCRIPT.bat file in this directory. It should look like:<br />
<blockquote><p>\\SBS\Clients\Setup\setup.exe /s SBS</p></blockquote>
<p>Change it to this:</p>
<blockquote><p>@echo off<br />
rem ==================================================<br />
rem<br />
rem Title: Login Script<br />
rem Author: The Author<br />
rem Date: April 4 2008<br />
rem Description: Network Login Script<br />
rem<br />
rem ==================================================</p>
<p>:SBS_SETUP<br />
rem Default sbs2k3 client setup<br />
\\SBS\Clients\Setup\setup.exe /s SBS</p>
<p>WSCRIPT.EXE \\SBS\logon_scripts\rm_sync_ext.vbs</p></blockquote>
</li>
<li>Now you have to navigate to My Computer</li>
<li>Go to your C:\ Drive</li>
<li>Create a New Folder named &#8220;logon_scripts&#8221;</li>
<li>Right Click the folder, select properties</li>
<li>Go to the Sharing Tab. Enable Sharing. Call it &#8220;logon_scripts&#8221;</li>
<li>Click OK to save</li>
<li>Enter the c:\logon_scripts directory</li>
<li>Edit your login script (rm_sync_ext.vbs), which should look like this
<div style="MARGIN-LEFT: 2em">Const sComputer=&#8221;.&#8221;<br />
Const HKEY_Current_User = &amp;H80000001 &#8216;HKCU hive<br />
Const sKeyPath = &#8220;Software\Microsoft\Windows\CurrentVersion\NetCache\ExclusionErrorSuppressionList&#8221;&#8217;73<br />
Dim oReg<br />
SetoReg=GetObject(&#8220;winmgmts:{impersonationLevel=impersonate}!\\&#8221; &amp;<br />
_ sComputer &amp; &#8220;\root\default:StdRegProv&#8221;)<br />
oReg.CreateKey HKEY_Current_User, sKeyPath<br />
oReg.SetDWORDValue HKEY_Current_User, sKeyPath, &#8220;.mdb&#8221;, 1<br />
oReg.SetDWORDValue HKEY_Current_User, sKeyPath, &#8220;.pst&#8221;, 1</div>
</li>
<li>That&#8217;s it. Now you should be able to add more lines to the botton of your script to stop from syncing other file types.</li>
</ol>
<p>Enjoy!</p>
<blockquote></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.mattgibson.ca/2008/04/04/sbs-2003-disable-sync-of-certain-offline-files-like-pst-or-mdb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
