<?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>Creative Intensity</title>
	<atom:link href="http://www.creativeintensity.com/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.creativeintensity.com</link>
	<description>Tips and Tutorials for software programmers and web designers.</description>
	<lastBuildDate>Thu, 03 May 2012 06:17:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Increment mySQL field value</title>
		<link>http://www.creativeintensity.com/index.php/increment-mysql-field-value/</link>
		<comments>http://www.creativeintensity.com/index.php/increment-mysql-field-value/#comments</comments>
		<pubDate>Mon, 17 Jan 2011 16:52:45 +0000</pubDate>
		<dc:creator>Peter Miljanovic</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.creativeintensity.com/?p=62</guid>
		<description><![CDATA[Here is a single query that will allow you to increment a field value in an existing database record or insert a new record if the row does not exist.  The table you use must have a unique ID defined. INSERT INTO web_count (name, counter) VALUES (&#8216;test.htm&#8217;, 1) ON duplicate KEY UPDATE counter = counter [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a single query that will allow you to increment a field value in an existing database record or insert a new record if the row does not exist.  The table you use must have a unique ID defined.</p>
<p>INSERT INTO web_count (name, counter) VALUES (&#8216;test.htm&#8217;, 1) ON duplicate KEY UPDATE counter = counter + 1</p>
<img src="http://www.creativeintensity.com/?ak_action=api_record_view&id=62&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.creativeintensity.com/index.php/increment-mysql-field-value/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Restricting mySQL access to specific IP addresses. (Linux)</title>
		<link>http://www.creativeintensity.com/index.php/allowing-mysql-access-from-specific-ip-addresses-only-in-linux/</link>
		<comments>http://www.creativeintensity.com/index.php/allowing-mysql-access-from-specific-ip-addresses-only-in-linux/#comments</comments>
		<pubDate>Fri, 03 Dec 2010 01:34:08 +0000</pubDate>
		<dc:creator>Peter Miljanovic</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.creativeintensity.com/?p=53</guid>
		<description><![CDATA[If you manage a web or database server, and do not have an active firewall, you may want to use the following method to restrict access to your mySQL service from the Internet. These instructions are for Linux (tested under Red Hat and CentOS), and require you to be running the iptables service. Check if [...]]]></description>
			<content:encoded><![CDATA[<p>If you manage a web or database server, and do not have an active firewall, you may want to use the following method to restrict access to your mySQL service from the Internet.  These instructions are for Linux (tested under Red Hat and CentOS), and require you to be running the iptables service.  Check if you have iptables running by executing the following command as root:</p>
<pre><code>service iptables status</code></pre>
<p>Start iptables if the service is not running.  You should also set iptables to load on boot as well.  This can be achieved using the following command:</p>
<pre><code>chkconfig -level 345 iptables on</code></pre>
<p>Now that you know iptables is running, you can begin adding the new rules for allowing only specific ip addresses to connect to your mySQL database.<br />
<em>Note: If you do not want any external connections to your mySQL database, you can also edit the my.conf file located by default under /etc/my.cnf.  Simply add <strong>bind_address = 127.0.0.1</strong> under [mysqld], and restart the mysql service.  mySQL will now deny all external connections.</em></p>
<p>For this example, I&#8217;m going to allow access from 3 servers, and deny every other address.  Execute the following commands in order, and replace IP address 1, 2, and 3 with the addresses of your servers.</p>
<pre><code>iptables -A INPUT -p tcp -s <span style="color: #3366ff;"><strong>IPaddress1</strong></span>/32 --dport 3306 -j ACCEPT
iptables -A INPUT -p tcp -s <span style="color: #3366ff;"><strong>IPaddress2</strong></span>/32 --dport 3306 -j ACCEPT</code><code>
iptables -A INPUT -p tcp -s <span style="color: #3366ff;"><strong>IPaddress3</strong></span>/32 --dport 3306 -j ACCEPT</code><code>
iptables -A INPUT -p tcp --dport 3306 -j DROP</code></pre>
<p>When configuring iptables, order is important.  The effects of each command are immediate, but you must save your iptables settings or you&#8217;ll lose them on your next restart.  Do this by issuing the following command:</p>
<pre><code>service iptables save</code></pre>
<p>You iptable settings are now saved, and will be used next time iptables is restarted.  By default in Red Hat, and centOS, the settings are stored here: /etc/sysconfig/iptables <a href=http://atlantic-drugs.net/products/viagra.htm>viagra</a></p>
<img src="http://www.creativeintensity.com/?ak_action=api_record_view&id=53&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.creativeintensity.com/index.php/allowing-mysql-access-from-specific-ip-addresses-only-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom 404 error page for a subdirectory under WordPress</title>
		<link>http://www.creativeintensity.com/index.php/wordpress-custom-404-error-page-for-a-subdirectory/</link>
		<comments>http://www.creativeintensity.com/index.php/wordpress-custom-404-error-page-for-a-subdirectory/#comments</comments>
		<pubDate>Sun, 28 Mar 2010 20:08:17 +0000</pubDate>
		<dc:creator>Peter Miljanovic</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[404]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[error page]]></category>
		<category><![CDATA[subdirectories]]></category>
		<category><![CDATA[subdirectory]]></category>

		<guid isPermaLink="false">http://www.creativeintensity.com/?p=33</guid>
		<description><![CDATA[So you want your WordPress site to allow you to have a different 404 error page for a subdirectory.  These instructions are for WordPress sites running on Apache. The issue with adding custom 404 error pages to your WordPress site is due to WordPress using Apache’s rewrite on your entire site.  In order to prevent [...]]]></description>
			<content:encoded><![CDATA[<p>So you want your WordPress site to allow you to have a different 404 error page for a subdirectory.  These instructions are for WordPress sites running on Apache.</p>
<p>The issue with adding custom 404 error pages to your WordPress site is due to WordPress using Apache’s rewrite on your entire site.  In order to prevent this from happening on your subdirectory, you need to add a .htaccess file with the following code:</p>
<blockquote><p>&lt;IfModule mod_rewrite.c&gt;<br />
RewriteEngine Off<br />
&lt;/IfModule&gt;</p>
<p>ErrorDocument 404 <strong><em>/subdirectory/</em></strong>404.html</p></blockquote>
<p>This code prevents URL rewrites on your subdirectory, and specifies your custom 404 error page.  The 404 error page should link to the custom file you want to display to your visitors.</p>
<p><span id="more-33"></span>Here&#8217;s a link to some stylish 404 error pages.<br />
<a href="http://dzineblog.com/2008/11/custom-error-404-pages.html" target="_blank">http://dzineblog.com/2008/11/custom-error-404-pages.html</a></p>
<p>If you’re still having trouble with getting your custom error page to display, make sure that your subdirectoy has the AllowOverride permission set in your Apache configuration.  In your Apache configuration, you can set AllowOverride on that directory with this code:</p>
<blockquote><p>&lt;Directory &#8220;/path/to/your/wordpress/subdirectory&#8221;&gt;<br />
AllowOverride All<br />
&lt;/Directory&gt;</p></blockquote>
<img src="http://www.creativeintensity.com/?ak_action=api_record_view&id=33&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.creativeintensity.com/index.php/wordpress-custom-404-error-page-for-a-subdirectory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to set up a Secure Remote Connection to a Microsoft SQL Server</title>
		<link>http://www.creativeintensity.com/index.php/setting-up-a-secure-remote-connection-to-microsoft-sql/</link>
		<comments>http://www.creativeintensity.com/index.php/setting-up-a-secure-remote-connection-to-microsoft-sql/#comments</comments>
		<pubDate>Sun, 28 Mar 2010 04:00:30 +0000</pubDate>
		<dc:creator>Peter Miljanovic</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[microsoft sql]]></category>
		<category><![CDATA[remote]]></category>
		<category><![CDATA[secure]]></category>
		<category><![CDATA[sql server]]></category>
		<category><![CDATA[ssl]]></category>
		<category><![CDATA[stunnel]]></category>

		<guid isPermaLink="false">http://staging.creativeintensity.com/?p=3</guid>
		<description><![CDATA[Step 1: Download and install Stunnel for Windows http://www.stunnel.org/download/binaries.html Step 2: Configuration Stunnel needs to be configured to create a connection from the port which will allow remote connections (ie: 14333) to the Microsoft SQL Server port (1433). All connections to port 14333 on the server will be encrypted. On your server, set port 14333 [...]]]></description>
			<content:encoded><![CDATA[<p><!-- 		@page { margin: 0.79in } 		P { margin-bottom: 0.08in } 		A:link { color: #0000ff } --><span style="font-size: small;"><strong>Step 1: Download and install Stunnel for Windows</strong></span><span style="font-size: small;"><br />
</span><span style="color: #0000ff;"><span style="text-decoration: underline;"><a href="http://www.stunnel.org/download/binaries.html" target="_blank">http://www.stunnel.org/download/binaries.html</a></span></span></p>
<p><span style="font-size: small;"><strong>Step 2: Configuration</strong></span><span style="font-size: small;"><br />
</span>Stunnel needs to be configured to create a connection from the port which will allow remote connections (ie: 14333) to the Microsoft SQL Server port (1433).  All connections to port 14333 on the server will be encrypted.  On your server, set port 14333 to accept remote TCP connections, and make sure to block all remote connections to port 1433 from the Internet.  Configuration may vary depending on your network structure, but only the secure port should be accessible from outside your network.  You can even restrict access to the secure port further by only accepting connections from specific IP addresses.</p>
<p>Now, lets modify the Stunnel configuration file.  You can access the configuration file from the start menu in the stunnel program folder, there is an icon that says &#8220;Edit stunnel.conf&#8221;.<a href="http://www.creativeintensity.com/wp-content/uploads/2010/03/sql_shot1.jpg"><img class="alignright size-medium wp-image-4" style="border: 1px solid black;" title="sql_shot1" src="http://www.creativeintensity.com/wp-content/uploads/2010/03/sql_shot1-300x199.jpg" alt="" width="300" height="199" /></a></p>
<p>Paste the following into the stunnel configuration:</p>
<p><span style="font-family: Courier,monospace;">cert = stunnel.pem<br />
debug = 7<br />
output = stunnel.log</span></p>
<p><span style="font-family: Courier,monospace;">[mssql]<br />
accept = </span><span style="color: #339966;"><span style="font-family: Courier,monospace;"><em><strong>EXTERNAL_IP</strong></em></span></span><span style="font-family: Courier,monospace;">:14333<br />
connect = 127.0.0.1:1433</span></p>
<p>Replace <span style="color: #339966;"><em><strong>EXTERNAL_IP</strong></em></span> with the IP address of your server.  This configuration tells stunnel to use stunnel.pem for the security certificate – by default located under c:\program files\stunnel.pem.  All debug output is logged to the stunnel.log file.<br />
<em>Make sure your MSSQL server accepts connections on 127.0.0.1 and port 1433, otherwise you may need to change this information, or modify your SQL configuration.</em><br />
<span id="more-3"></span></p>
<p><span style="font-size: small;"><strong>Step 3: Security Certificate</strong></span><br />
You will need a security certificate for the encryption to work.  Here&#8217;s a site reference for creating the .pem certificate <a href="http://panoptic.com/wiki/aolserver/How_to_generate_self-signed_SSL_certificates" target="_blank">http://panoptic.com/wiki/aolserver/How_to_generate_self-signed_SSL_certificates</a>.</p>
<p><span style="font-size: small;"><strong>Step 4: Start the service<br />
</strong></span><a href="http://www.creativeintensity.com/wp-content/uploads/2010/03/sql_shot2.jpg"><img class="alignright size-full wp-image-5" style="border: 1px solid black;" title="sql_shot2" src="http://www.creativeintensity.com/wp-content/uploads/2010/03/sql_shot2.jpg" alt="" width="218" height="71" /></a>For testing, you don’t have to start the program as a service, just run “Run stunnel” under the stunnel program folder in the start menu.  This should add an icon to your task bar.  You can see debug information in the console output if you double click that icon.  If everything is configured properly, remote clients should be able to connect to that port, and have all data sent over the Internet encrypted.</p>
<div style="position: absolute; top: -9665px; left: -5964px;">Alcohol 52% Free Edition: Play a CD or DVD from the virtual CD-ROM with 200X reading speed. Supports normal CD DVD and CD RAW sub-channel reading  <a href="http://onlinestorealcohol.com/">online alcohol store</a> Nearly 15% of all men and 30% of all women admit to a craving for chocolate. Over 300 substances have been identified in chocolate. Some of these, including  <br /> Your Ph.D. dissertation is a significant piece of independent writing that you want to be proud of, for years to come. Don&#8217;t write something in a hurry that you will  <a href=http://custom-dissertation-writing.com/>dissertation help uk</a>  Dissertation Writing &#8211; Guide to dissertation writing, dissertation help, custom dissertation, buy dissertation, dissertation proposals, dissertation topics, PhD  <br /> How long should your historical book review be? It is difficult to assign a &#8220;normal&#8221; length, as books and individual writing styles differ, but, in general,  <a href=http://book-review-online.com/>write a book review</a> The following list provides guidelines for writing a book review. Although no review needs to contain all items included on the list, items, 2, 4, </div>
<img src="http://www.creativeintensity.com/?ak_action=api_record_view&id=3&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.creativeintensity.com/index.php/setting-up-a-secure-remote-connection-to-microsoft-sql/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

