<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.0.4" -->
<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/"
	>

<channel>
	<title>Techmocracy.net</title>
	<link>http://www.techmocracy.net</link>
	<description>All forms of technology are created equal</description>
	<pubDate>Thu, 17 Jul 2008 14:17:39 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.4</generator>
	<language>en</language>
			<item>
		<title>MySQL Full Outer Join Example</title>
		<link>http://www.techmocracy.net/2008/07/17/mysql-full-outer-join-example/</link>
		<comments>http://www.techmocracy.net/2008/07/17/mysql-full-outer-join-example/#comments</comments>
		<pubDate>Thu, 17 Jul 2008 14:17:39 +0000</pubDate>
		<dc:creator>info</dc:creator>
		
	<category>Uncategorized</category>
		<guid isPermaLink="false">http://www.techmocracy.net/2008/07/17/mysql-full-outer-join-example/</guid>
		<description><![CDATA[Mysql does not support full outer joins.  The following link shoes how it can be done.
Outer Join Example

]]></description>
			<content:encoded><![CDATA[<p>Mysql does not support full outer joins.  The following link shoes how it can be done.</p>
<p><a onmousedown="selectLink(20);" id="p20" href="http://www.techmocracy.net/wp-content/uploads/2008/07/outer_join.txt">Outer Join Example</a>
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.techmocracy.net/2008/07/17/mysql-full-outer-join-example/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>VM Could not reserve enough space for object heap - Java</title>
		<link>http://www.techmocracy.net/2007/05/24/vm-could-not-reserve-enough-space-for-object-heap-java/</link>
		<comments>http://www.techmocracy.net/2007/05/24/vm-could-not-reserve-enough-space-for-object-heap-java/#comments</comments>
		<pubDate>Thu, 24 May 2007 20:10:00 +0000</pubDate>
		<dc:creator>info</dc:creator>
		
	<category>Uncategorized</category>
		<guid isPermaLink="false">http://www.techmocracy.net/2007/05/24/vm-could-not-reserve-enough-space-for-object-heap-java/</guid>
		<description><![CDATA[This error is a bit annoying during the javac command:
Error occurred during initialization of VM
Could not reserve enough space for object heap
heap and stack sizes are often limited due to the virtualization
javac -J-Xms16m -J-Xmx48m MyClass.java
java -XX:PermSize=16M -Xms8m -Xmx48m
This can be set globally using an alias so that it doesn&#8217;t have to be specified it each [...]]]></description>
			<content:encoded><![CDATA[<p>This error is a bit annoying during the javac command:<br />
Error occurred during initialization of VM<br />
Could not reserve enough space for object heap</p>
<p><font face="Helvetica" color="#000000">heap and stack sizes are often limited due to the virtualization</font></p>
<p>javac -J-Xms16m -J-Xmx48m MyClass.java</p>
<p>java -XX:PermSize=16M -Xms8m -Xmx48m</p>
<p>This can be set globally using an alias so that it doesn&#8217;t have to be specified it each time</p>
<p>To view the alias for java use $# which java
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.techmocracy.net/2007/05/24/vm-could-not-reserve-enough-space-for-object-heap-java/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>PHP Proper Case Function</title>
		<link>http://www.techmocracy.net/2007/03/27/php-proper-case-function/</link>
		<comments>http://www.techmocracy.net/2007/03/27/php-proper-case-function/#comments</comments>
		<pubDate>Tue, 27 Mar 2007 18:39:01 +0000</pubDate>
		<dc:creator>info</dc:creator>
		
	<category>PHP</category>
		<guid isPermaLink="false">http://www.techmocracy.net/2007/03/27/php-proper-case-function/</guid>
		<description><![CDATA[PHP function to make the first letter of each word capital and the following letters lower case.  If the first character is not a letter it capitalizes the second character.
PHP Proper Case Function

]]></description>
			<content:encoded><![CDATA[<p>PHP function to make the first letter of each word capital and the following letters lower case.  If the first character is not a letter it capitalizes the second character.</p>
<p><a id="p18" href="http://www.techmocracy.net/wp-content/uploads/2007/03/php-proper-case-function.txt">PHP Proper Case Function</a>
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.techmocracy.net/2007/03/27/php-proper-case-function/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>PHP Regular Expression (regex) Email Validation</title>
		<link>http://www.techmocracy.net/2007/03/26/php-regular-expression-regex-email-validation/</link>
		<comments>http://www.techmocracy.net/2007/03/26/php-regular-expression-regex-email-validation/#comments</comments>
		<pubDate>Mon, 26 Mar 2007 13:07:42 +0000</pubDate>
		<dc:creator>info</dc:creator>
		
	<category>PHP</category>
		<guid isPermaLink="false">http://www.techmocracy.net/2007/03/26/php-regular-expression-regex-email-validation/</guid>
		<description><![CDATA[
function isValidEmail($email)
{
$myReg="/^[A-Za-z0-9_-]+@[A-Za-z0-9_-]+\.([A-Za-z0-9_-][A-Za-z0-9_]+)$/";
if(preg_match($myReg, $email))
return true;
else
return false;
}


]]></description>
			<content:encoded><![CDATA[<p><code></p>
<p>function isValidEmail($email)<br />
{<br />
$myReg="/^[A-Za-z0-9_-]+@[A-Za-z0-9_-]+\.([A-Za-z0-9_-][A-Za-z0-9_]+)$/";<br />
if(preg_match($myReg, $email))<br />
return true;<br />
else<br />
return false;<br />
}</p>
<p></code>
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.techmocracy.net/2007/03/26/php-regular-expression-regex-email-validation/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>PHP HTTP POST Request - with cURL</title>
		<link>http://www.techmocracy.net/2007/03/25/php-http-post-request-with-curl/</link>
		<comments>http://www.techmocracy.net/2007/03/25/php-http-post-request-with-curl/#comments</comments>
		<pubDate>Sun, 25 Mar 2007 19:57:39 +0000</pubDate>
		<dc:creator>info</dc:creator>
		
	<category>PHP</category>
		<guid isPermaLink="false">http://www.techmocracy.net/2007/03/25/php-http-post-request-with-curl/</guid>
		<description><![CDATA[Here is a nice short function to execute an HTTP POST using cURL.
PHP HTTP POST Request With cURL 
There are no comments, but it is self explanatory.

]]></description>
			<content:encoded><![CDATA[<p>Here is a nice short function to execute an HTTP POST using cURL.</p>
<pre><a id="p15" href="http://www.techmocracy.net/wp-content/uploads/2007/03/http-post-with-curl.txt">PHP HTTP POST Request With cURL </a></pre>
<p>There are no comments, but it is self explanatory.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.techmocracy.net/2007/03/25/php-http-post-request-with-curl/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>PHP HTTP POST Request - without cURL</title>
		<link>http://www.techmocracy.net/2007/03/02/php-http-post-request-without-curl/</link>
		<comments>http://www.techmocracy.net/2007/03/02/php-http-post-request-without-curl/#comments</comments>
		<pubDate>Fri, 02 Mar 2007 16:16:04 +0000</pubDate>
		<dc:creator>info</dc:creator>
		
	<category>PHP</category>
		<guid isPermaLink="false">http://www.techmocracy.net/2007/03/02/php-http-post-request-without-curl/</guid>
		<description><![CDATA[This snippet of code demonstrates how to execute an HTTP POST request without using curl.
This will not work in versions < PHP5 .
HTTP POST from PHP, without cURL

]]></description>
			<content:encoded><![CDATA[<p>This snippet of code demonstrates how to execute an HTTP POST request without using curl.</p>
<p>This will not work in versions < PHP5 .</p>
<p><a target="_blank" href="http://netevil.org/node.php?nid=937">HTTP POST from PHP, without cURL</a>
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.techmocracy.net/2007/03/02/php-http-post-request-without-curl/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Visual Basic - HTTP Post Function</title>
		<link>http://www.techmocracy.net/2007/01/11/visual-basic-http-post-function/</link>
		<comments>http://www.techmocracy.net/2007/01/11/visual-basic-http-post-function/#comments</comments>
		<pubDate>Fri, 12 Jan 2007 01:35:12 +0000</pubDate>
		<dc:creator>info</dc:creator>
		
	<category>VB</category>
		<guid isPermaLink="false">http://www.techmocracy.net/2007/01/11/visual-basic-http-post-function/</guid>
		<description><![CDATA[Public Function HTTPPost(ByVal myURL As String, ByVal myPost As String)
Dim temp As String
temp = &#8220;&#8221;
Try
Dim myURI As New Uri(myURL)
Dim request As Net.WebRequest = Net.WebRequest.Create(myURI)
Dim encoding As New System.Text.ASCIIEncoding()
Dim myByte As Byte() = encoding.GetBytes(myPost)
request.Method = &#8220;POST&#8221;
&#8216; Set the content type of the data being posted.
request.ContentType = &#8220;application/x-www-form-urlencoded&#8221;
&#8216; Set the content length of the string being posted.
request.ContentLength [...]]]></description>
			<content:encoded><![CDATA[<p>Public Function HTTPPost(ByVal myURL As String, ByVal myPost As String)</p>
<blockquote><p>Dim temp As String<br />
temp = &#8220;&#8221;<br />
Try</p>
<blockquote><p>Dim myURI As New Uri(myURL)<br />
Dim request As Net.WebRequest = Net.WebRequest.Create(myURI)<br />
Dim encoding As New System.Text.ASCIIEncoding()<br />
Dim myByte As Byte() = encoding.GetBytes(myPost)<br />
request.Method = &#8220;POST&#8221;<br />
&#8216; Set the content type of the data being posted.<br />
request.ContentType = &#8220;application/x-www-form-urlencoded&#8221;<br />
&#8216; Set the content length of the string being posted.<br />
request.ContentLength = myByte.Length<br />
Dim newStream As IO.Stream = request.GetRequestStream()<br />
newStream.Write(myByte, 0, myByte.Length)<br />
newStream.Close()<br />
Dim response As Net.HttpWebResponse = CType(request.GetResponse(), Net.HttpWebResponse)<br />
Dim datastream As IO.Stream = response.GetResponseStream<br />
Dim reader As New IO.StreamReader(datastream)<br />
Dim responseFromServer As String = reader.ReadToEnd()<br />
temp = responseFromServer<br />
reader.Close()<br />
datastream.Close()<br />
response.Close()</p></blockquote>
<p>Catch</p></blockquote>
<blockquote>
<blockquote><p>MsgBox(Err.Description)</p></blockquote>
</blockquote>
<blockquote><p>End Try<br />
Return temp</p></blockquote>
<p>End Function
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.techmocracy.net/2007/01/11/visual-basic-http-post-function/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Visual Basic - HTTP Get Function</title>
		<link>http://www.techmocracy.net/2007/01/11/visual-basic-http-get-function/</link>
		<comments>http://www.techmocracy.net/2007/01/11/visual-basic-http-get-function/#comments</comments>
		<pubDate>Fri, 12 Jan 2007 01:31:41 +0000</pubDate>
		<dc:creator>info</dc:creator>
		
	<category>VB</category>
		<guid isPermaLink="false">http://www.techmocracy.net/2007/01/11/visual-basic-http-get-function/</guid>
		<description><![CDATA[Public Function HTTPGet(ByVal myURL As String)
Dim temp As String
temp = &#8220;&#8221;
Try
Dim myURI As New Uri(myURL)
Dim wr As Net.WebRequest = Net.WebRequest.Create(myURI)
wr.Credentials = Net.CredentialCache.DefaultCredentials
Dim response As Net.HttpWebResponse = CType(wr.GetResponse(), Net.HttpWebResponse)
Dim datastream As IO.Stream = response.GetResponseStream
Dim reader As New IO.StreamReader(datastream)
Dim responseFromServer As String = reader.ReadToEnd()
temp = responseFromServer
reader.Close()
datastream.Close()
response.Close()
Catch
MsgBox(Err.Description &#038; vbCrLf &#038; myURL)
End Try
Return temp
End Function

]]></description>
			<content:encoded><![CDATA[<p>Public Function HTTPGet(ByVal myURL As String)</p>
<blockquote><p>Dim temp As String<br />
temp = &#8220;&#8221;<br />
Try</p>
<blockquote><p>Dim myURI As New Uri(myURL)<br />
Dim wr As Net.WebRequest = Net.WebRequest.Create(myURI)<br />
wr.Credentials = Net.CredentialCache.DefaultCredentials<br />
Dim response As Net.HttpWebResponse = CType(wr.GetResponse(), Net.HttpWebResponse)<br />
Dim datastream As IO.Stream = response.GetResponseStream<br />
Dim reader As New IO.StreamReader(datastream)<br />
Dim responseFromServer As String = reader.ReadToEnd()<br />
temp = responseFromServer<br />
reader.Close()<br />
datastream.Close()<br />
response.Close()</p></blockquote>
<p>Catch</p>
<blockquote><p>MsgBox(Err.Description &#038; vbCrLf &#038; myURL)</p></blockquote>
<p>End Try<br />
Return temp</p></blockquote>
<p>End Function
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.techmocracy.net/2007/01/11/visual-basic-http-get-function/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>PHP Open Source Timesheet System</title>
		<link>http://www.techmocracy.net/2007/01/04/php-open-source-timesheet-system/</link>
		<comments>http://www.techmocracy.net/2007/01/04/php-open-source-timesheet-system/#comments</comments>
		<pubDate>Thu, 04 Jan 2007 23:54:06 +0000</pubDate>
		<dc:creator>info</dc:creator>
		
	<category>PHP</category>
		<guid isPermaLink="false">http://www.techmocracy.net/2007/01/04/php-open-source-timesheet-system/</guid>
		<description><![CDATA[&#8220;Timesheet.php is a PHP application designed to keep track of the hours worked by multiple people on multiple projects. It allows users to log in through their web browser and manage the times that they are clocked on or clocked off.&#8221;
The application is easy to install if you have mild experience with PHP and MySQL.

]]></description>
			<content:encoded><![CDATA[<p>&#8220;<a title="Timesheet.php" href="http://sourceforge.net/projects/tsheet/">Timesheet.php</a> is a PHP application designed to keep track of the hours worked by multiple people on multiple projects. It allows users to log in through their web browser and manage the times that they are clocked on or clocked off.&#8221;</p>
<p>The application is easy to install if you have mild experience with PHP and MySQL.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.techmocracy.net/2007/01/04/php-open-source-timesheet-system/feed/</wfw:commentRSS>
		</item>
	</channel>
</rss>
