<?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>SupremeTechs &#187; Web Development</title>
	<atom:link href="http://supremetechs.com/category/web-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://supremetechs.com</link>
	<description>Anything and everything techy</description>
	<lastBuildDate>Mon, 07 May 2012 11:47:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>New Session Cookie Created on Every Page Refresh in CodeIgniter</title>
		<link>http://supremetechs.com/2012/05/07/session-cookie-created-page-refresh-codeigniter/</link>
		<comments>http://supremetechs.com/2012/05/07/session-cookie-created-page-refresh-codeigniter/#comments</comments>
		<pubDate>Mon, 07 May 2012 11:47:21 +0000</pubDate>
		<dc:creator>Randy</dc:creator>
				<category><![CDATA[Linux Stuff]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[codeigniter new session on page refresh]]></category>
		<category><![CDATA[codeigniter page refresh creates new session]]></category>
		<category><![CDATA[Codeigniter session]]></category>

		<guid isPermaLink="false">http://supremetechs.com/?p=765</guid>
		<description><![CDATA[CodeIgniter's way of handling session data is slick, and I use it a lot. However on my current project, I went overboard on my configuration changes and accidentally caused a problem that had me scratching my head for a few minutes. I noticed that session data wasn't persisting and that my sessions table (I opted [...]<p><a href="http://supremetechs.com/2012/05/07/session-cookie-created-page-refresh-codeigniter/">New Session Cookie Created on Every Page Refresh in CodeIgniter</a> is a post from: <a href="http://supremetechs.com">SupremeTechs</a></p>
]]></description>
			<content:encoded><![CDATA[<p>CodeIgniter's way of handling session data is slick, and I use it a lot. However on my current project, I went overboard on my configuration changes and accidentally caused a problem that had me scratching my head for a few minutes. I noticed that session data wasn't persisting and that my sessions table (I opted for database storage of my session data) was filling up with new rows of session data every time I reloaded a page in my project. This prevented my login functionality from working. </p>
<p>The solution to my problem was a configuration detail. I had set $config['cookie_domain'] to the domain name I will eventually use for the site. CodeIgniter didn't like this because my development environment is not on that domain. So it was creating new cookie/session data every time I loaded a page. The problem made sense after I thought about it for a bit. I remembered that I had set a few extra settings in the config, and sure enough, that was the winner.</p>
<p>The problem can happen when other settings are incorrect as well. So pay close attention to those settings, and look there first if you notice that sessions are being created on every page load.</p>
<p><a href="http://supremetechs.com/2012/05/07/session-cookie-created-page-refresh-codeigniter/">New Session Cookie Created on Every Page Refresh in CodeIgniter</a> is a post from: <a href="http://supremetechs.com">SupremeTechs</a></p>
]]></content:encoded>
			<wfw:commentRss>http://supremetechs.com/2012/05/07/session-cookie-created-page-refresh-codeigniter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clickbank Analytic Software</title>
		<link>http://supremetechs.com/2012/04/21/clickbank-analytic-software/</link>
		<comments>http://supremetechs.com/2012/04/21/clickbank-analytic-software/#comments</comments>
		<pubDate>Sun, 22 Apr 2012 03:43:54 +0000</pubDate>
		<dc:creator>Randy</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Internet Money]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[click bank niches]]></category>
		<category><![CDATA[clickbank analytics]]></category>
		<category><![CDATA[hot clickbank products]]></category>
		<category><![CDATA[products to promote on clickbank]]></category>
		<category><![CDATA[which products should I promote on clickbank]]></category>

		<guid isPermaLink="false">http://supremetechs.com/?p=758</guid>
		<description><![CDATA[There's a site called cb-analytics.com which has always been a great resource for information on Clickbank products. However, I've always found the site hard to navigate and I wanted a site that showed some of the "hot" clickbank products. So, I've written a site called cbniches.com which I hope will rectify these issues. The site [...]<p><a href="http://supremetechs.com/2012/04/21/clickbank-analytic-software/">Clickbank Analytic Software</a> is a post from: <a href="http://supremetechs.com">SupremeTechs</a></p>
]]></description>
			<content:encoded><![CDATA[<p>There's a site called cb-analytics.com which has always been a great resource for information on Clickbank products. However, I've always found the site hard to navigate and I wanted a site that showed some of the "hot" clickbank products. So, I've written a site called <a href="http://cbniches.com" title="cb niches" target="_blank">cbniches.com</a> which I hope will rectify these issues. </p>
<p>The site shows all the latest products in each category and shows gravity and earnings per sale. It also has a graph for each product to show gravity over time. I think this will be pretty helpful to affiliate markets looking for new products to promote on Clickbank. Check it out at <a href="http://cbniches.com" title="cb niches" target="_blank">http://cbniches.com</a>. I wrote it with the latest version of my LavaPHP framework, another product I've been developing as open source. <a href="https://github.com/lpcustom/LavaPHP" title="lava php" target="_blank">LavaPHP can be found on github</a>, but it's still in early development.</p>
<p><a href="http://supremetechs.com/2012/04/21/clickbank-analytic-software/">Clickbank Analytic Software</a> is a post from: <a href="http://supremetechs.com">SupremeTechs</a></p>
]]></content:encoded>
			<wfw:commentRss>http://supremetechs.com/2012/04/21/clickbank-analytic-software/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introducing LavaPHP &#8211; Yet Another PHP Framework</title>
		<link>http://supremetechs.com/2012/04/13/introducing-lavaphp-php-framework/</link>
		<comments>http://supremetechs.com/2012/04/13/introducing-lavaphp-php-framework/#comments</comments>
		<pubDate>Sat, 14 Apr 2012 04:47:52 +0000</pubDate>
		<dc:creator>Randy</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[2012 best php framework]]></category>
		<category><![CDATA[best php framework]]></category>
		<category><![CDATA[lavaphp]]></category>

		<guid isPermaLink="false">http://supremetechs.com/?p=752</guid>
		<description><![CDATA[I've used quite a few PHP framework to varying degrees, and like many other PHP developers, I've decided to make my own. Of all the current frameworks available, I prefer CodeIgniter, because it is easy to use, has great documentation, and generally stays out of your way. Everyone has their opinion of the best PHP [...]<p><a href="http://supremetechs.com/2012/04/13/introducing-lavaphp-php-framework/">Introducing LavaPHP &#8211; Yet Another PHP Framework</a> is a post from: <a href="http://supremetechs.com">SupremeTechs</a></p>
]]></description>
			<content:encoded><![CDATA[<p>I've used quite a few PHP framework to varying degrees, and like many other PHP developers, I've decided to make my own. Of all the current frameworks available, I prefer CodeIgniter, because it is easy to use, has great documentation, and generally stays out of your way.</p>
<p>Everyone has their opinion of the best PHP framework, but I like the ones that let me write PHP and don't throw a lot of features that I don't need into the mix. I found that no matter what PHP framework I was using, I was always creating a table for users. I was always creating login functionality for users. I was always creating email confirmation functionality for users. I was always creating an admin interface for working with my configuration. I was always creating classes that helped me work with web services/REST APIs. I always need a small web service of my own for Ajax functionality. I always needed to add curl functionality just in case the hosting provider had fopen disabled (which most do). </p>
<p>Those were the things I needed. ORMs are great and all, but I really didn't want to learn proper YAML syntax just so I could setup automatic object models for my database tables. Creating models for my database isn't that much of a chore. Creating a complete user system can be. </p>
<p>So, I set out to create a framework that I can use for my own projects and have all the functionality that I find I usually need right out of the box. </p>
<p>Another thing about frameworks is that they are designed to make enterprise level sites. They aren't designed to create software system which can be distributed. By that, I mean I wanted to create a software package that could be installed by end users and used by them to create their own websites (custom CMS system with a specific purpose). A normal framework doesn't work well in this area because of the way views are usually handled. Mainly, I wanted third parties to be able to create themes for my CMS systems without much effort. With something like CodeIgniter, I could use a templating engine via a plugin or Codeigniter's own minimalist template engine, but I don't like take one piece of software and adding on a bunch of plugins.</p>
<p>First you have to learn how to use the plugin. Then you have to hope that there isn't a bug in the plugin that will spring up in your app. Then if there is some small customization that needs to be made to the plugin, you could spend days trying to figure out a way to make it work with your system, when it would have taken less time to just write your own. Using plugins also feels a bit like cheating to me, as well. I want to know every little part of my system, so that if a bug comes up, I'll know right where to look or at least have a decent idea where to look.</p>
<p>With all that said, I'm announcing my PHP framework. I've written it completely from scratch and I'm hosting it on Github. I also have purchased the dot com for it. I'm calling it LavaPHP. The motto will be "LavaPHP - Add a little lava to your LAMP" and it will have a lava lamp as it's mascot/logo. If you'd like to help with the initial development, hit me up and fork the project here:	<a href="https://github.com/lpcustom/LavaPHP" title="LavaPHP - add a little lava to your LAMP">https://github.com/lpcustom/LavaPHP</a></p>
<p><a href="http://supremetechs.com/2012/04/13/introducing-lavaphp-php-framework/">Introducing LavaPHP &#8211; Yet Another PHP Framework</a> is a post from: <a href="http://supremetechs.com">SupremeTechs</a></p>
]]></content:encoded>
			<wfw:commentRss>http://supremetechs.com/2012/04/13/introducing-lavaphp-php-framework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Increasing the size of tmpDSK and /tmp in a CPanel Environment</title>
		<link>http://supremetechs.com/2012/03/09/increasing-size-tmpdsk-tmp-cpanel-environment/</link>
		<comments>http://supremetechs.com/2012/03/09/increasing-size-tmpdsk-tmp-cpanel-environment/#comments</comments>
		<pubDate>Fri, 09 Mar 2012 08:43:04 +0000</pubDate>
		<dc:creator>Randy</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux Stuff]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Server Stuff]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[/tmp]]></category>
		<category><![CDATA[changing tmpdsk size]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[resize tmpdsk]]></category>
		<category><![CDATA[tmpDSK]]></category>

		<guid isPermaLink="false">http://supremetechs.com/?p=716</guid>
		<description><![CDATA[I recently ran into an issue in cPanel after recompiling Apache with some new settings. I enabled the eAccelerator extension in my EasyApache configuration for PHP. Now cPanel uses a default size for its /tmp mount of 512mb. I found out rather quickly that this isn't enough for eAccelerator. I actually ended up resetting this [...]<p><a href="http://supremetechs.com/2012/03/09/increasing-size-tmpdsk-tmp-cpanel-environment/">Increasing the size of tmpDSK and /tmp in a CPanel Environment</a> is a post from: <a href="http://supremetechs.com">SupremeTechs</a></p>
]]></description>
			<content:encoded><![CDATA[<p>I recently ran into an issue in cPanel after recompiling Apache with some new settings. I enabled the eAccelerator extension in my EasyApache configuration for PHP. Now cPanel uses a default size for its /tmp mount of 512mb. I found out rather quickly that this isn't enough for eAccelerator. I actually ended up resetting this value to 4096mb (4GB). As a reminder to myself and so anyone else looking for the solution to this problem, I will outline what needs to be done below.</p>
<p>First, ssh into your server and login as root or su - root after logging in as a regular user. Now use the power of the command line. Don't panic!</p>
<p>Stop Apache, MySQL, and cPanel</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">service httpd stop
service mysql stop
service cpanel stop</pre></td></tr></table></div>

<p>Next unmount the existing /tmp</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #660033;">-l</span> <span style="color: #000000; font-weight: bold;">/</span>tmp</pre></td></tr></table></div>

<p>Remove /usr/tmpDSK</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>tmpDSK</pre></td></tr></table></div>

<p>Next, use your favorite editor (Vim in this example) to change the config file for the tmpDSK</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vim</span> <span style="color: #000000; font-weight: bold;">/</span>scripts<span style="color: #000000; font-weight: bold;">/</span>securetmp</pre></td></tr></table></div>

<p>Search the file for "tmpdsksize" (in Vim type /tmpdsksize and hit enter). The line should look like this by default:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$tmpdsksize</span>     <span style="color: #339933;">=</span> <span style="color: #cc66cc;">512000</span><span style="color: #339933;">;</span>    <span style="color: #666666; font-style: italic;"># Must be larger than 250000</span></pre></td></tr></table></div>

<p>Change the 512000 to a higher number in Kilobytes. For my 4GB, I changed it to 4096000.<br />
Save the file (vim :wq enter).<br />
Run the script...</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>scripts<span style="color: #000000; font-weight: bold;">/</span>securetmp</pre></td></tr></table></div>

<p>Answer y to the two questions it asks.<br />
Finally start your services back up.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">service httpd start
service mysql start
service cpanel start</pre></td></tr></table></div>

<p>That should have you set with more /tmp space.</p>
<p><a href="http://supremetechs.com/2012/03/09/increasing-size-tmpdsk-tmp-cpanel-environment/">Increasing the size of tmpDSK and /tmp in a CPanel Environment</a> is a post from: <a href="http://supremetechs.com">SupremeTechs</a></p>
]]></content:encoded>
			<wfw:commentRss>http://supremetechs.com/2012/03/09/increasing-size-tmpdsk-tmp-cpanel-environment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Best Godaddy Alternative Registrar</title>
		<link>http://supremetechs.com/2012/01/27/godaddy-alternative-registrar/</link>
		<comments>http://supremetechs.com/2012/01/27/godaddy-alternative-registrar/#comments</comments>
		<pubDate>Fri, 27 Jan 2012 19:10:43 +0000</pubDate>
		<dc:creator>Randy</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Internet Money]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[best godaddy alternative]]></category>
		<category><![CDATA[best registrar]]></category>
		<category><![CDATA[godaddy alternative]]></category>

		<guid isPermaLink="false">http://supremetechs.com/?p=673</guid>
		<description><![CDATA[Many of you may be die-hard GoDaddy users. GoDaddy's support of the SOPA has led many people to start looking for a new registrar, including myself. After a boycott, GoDaddy broke away from its support of SOPA. However, their initial support for the legislation was enough to turn me away. I do not plan to [...]<p><a href="http://supremetechs.com/2012/01/27/godaddy-alternative-registrar/">Best Godaddy Alternative Registrar</a> is a post from: <a href="http://supremetechs.com">SupremeTechs</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Many of you may be die-hard GoDaddy users. GoDaddy's support of the SOPA has led many people to start looking for a new registrar, including myself. After a boycott, GoDaddy broke away from its support of SOPA. However, their initial support for the legislation was enough to turn me away. I do not plan to do any further business with them and will be slowly migrating my existing sites over to another registrar as time goes by.</p>
<p>In my search for a GoDaddy alternative, I found that I really like <a title="NameCheap" href="http://www.namecheap.com?aff=25717" target="_blank">NameCheap.com</a>. They offer good rates on domain transfers and registration. I also like their control panel much better than GoDaddy. They don't have as much up-selling going on when you register a domain. I always found that annoying about GoDaddy. I also didn't care for GoDaddy's domain manager. Once, I tried out GoDaddy's <a href="http://supremetechs.com/category/windows/" >Windows</a> hosting as well. It was terrible. So if you are looking for a viable alternative to GoDaddy, you should definitely give <a title="NameCheap.com" href="http://www.namecheap.com?aff=25717" target="_blank">NameCheap.com</a> a try.</p>
<p><a href="http://supremetechs.com/2012/01/27/godaddy-alternative-registrar/">Best Godaddy Alternative Registrar</a> is a post from: <a href="http://supremetechs.com">SupremeTechs</a></p>
]]></content:encoded>
			<wfw:commentRss>http://supremetechs.com/2012/01/27/godaddy-alternative-registrar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reset a WordPress password</title>
		<link>http://supremetechs.com/2012/01/24/reset-wordpress-password/</link>
		<comments>http://supremetechs.com/2012/01/24/reset-wordpress-password/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 02:16:36 +0000</pubDate>
		<dc:creator>Randy</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[change password in wordpress]]></category>
		<category><![CDATA[reset wordpress password]]></category>
		<category><![CDATA[resset wp password]]></category>

		<guid isPermaLink="false">http://supremetechs.com/?p=651</guid>
		<description><![CDATA[I'll make this post short and sweet. Let's say you've forgotten your login for a WordPress site. To reset the password to something new, you can simply use a SQL query. If you have access to PHPMyadmin or the MySQL command line, this is really straight forward. From PHPMyAdmin, open the database for the WordPress [...]<p><a href="http://supremetechs.com/2012/01/24/reset-wordpress-password/">Reset a WordPress password</a> is a post from: <a href="http://supremetechs.com">SupremeTechs</a></p>
]]></description>
			<content:encoded><![CDATA[<p>I'll make this post short and sweet. Let's say you've forgotten your login for a WordPress site. To reset the password to something new, you can simply use a SQL query. If you have access to PHPMyadmin or the MySQL command line, this is really straight forward.</p>
<p>From PHPMyAdmin, open the database for the WordPress installation. If you don't know which database to use, check out your wp-config.php file inside your main WordPress installation folder. You'll find constants defined in that file for your database name and database user. Once you've found the database, you can execute a SQL statement by clicking the SQL button. In there, type:</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;">&nbsp;
<span style="color: #993333; font-weight: bold;">UPDATE</span> wp_user <span style="color: #993333; font-weight: bold;">SET</span> user_pass <span style="color: #66cc66;">=</span> MD5<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;yourpassword&quot;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">WHERE</span> user_login <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">&quot;admin&quot;</span>;</pre></div></div>

<p>That's assuming that your username is "admin". Change it to whatever username you are using. Once you run that SQL statement, your password will be set to whatever you put in "yourpassword". Both the username and password need to be quoted in the SQL statement.</p>
<p>To do the same thing in the MySQL command line, connect to the database with:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mysql -u<span style="color: #000000; font-weight: bold;">&lt;</span>username<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #660033;">-p</span></pre></div></div>

<p>Substitute &lt;username&gt; with your actual username from the wp-config.php file.<br />
You will be prompted for a password. Use the password from the wp-config.php file.<br />
Once you are logged into the mysql command problem type:</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">USE</span> <span style="color: #66cc66;">&lt;</span>databaseName<span style="color: #66cc66;">&gt;</span></pre></div></div>

<p>Substitute the actual database name from the wp-config.php file.<br />
Finally, type the update statement above and hit enter.</p>
<p>After you've updated the table via SQL, you should be able to login to your WordPress installation.</p>
<p><a href="http://supremetechs.com/2012/01/24/reset-wordpress-password/">Reset a WordPress password</a> is a post from: <a href="http://supremetechs.com">SupremeTechs</a></p>
]]></content:encoded>
			<wfw:commentRss>http://supremetechs.com/2012/01/24/reset-wordpress-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Search for the Best Deal on a Dedicated Server</title>
		<link>http://supremetechs.com/2012/01/22/search-deal-dedicated-server/</link>
		<comments>http://supremetechs.com/2012/01/22/search-deal-dedicated-server/#comments</comments>
		<pubDate>Sun, 22 Jan 2012 16:11:00 +0000</pubDate>
		<dc:creator>Randy</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[colo servers]]></category>
		<category><![CDATA[colocated servers]]></category>
		<category><![CDATA[dedicated servers]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[vps prices]]></category>

		<guid isPermaLink="false">http://supremetechs.com/?p=639</guid>
		<description><![CDATA[Searching for a dedicated server can be stressful, especially when you have a lot of sites that are running slow as a result of their current host. Recently, I switched about 600 sites over to a dedicated server I borrowed from my friend Lynn. It is a pretty decent server, with two dual core Xeons [...]<p><a href="http://supremetechs.com/2012/01/22/search-deal-dedicated-server/">My Search for the Best Deal on a Dedicated Server</a> is a post from: <a href="http://supremetechs.com">SupremeTechs</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Searching for a dedicated server can be stressful, especially when you have a lot of sites that are running slow as a result of their current host. Recently, I switched about 600 sites over to a dedicated server I borrowed from my friend Lynn. It is a pretty decent server, with two dual core Xeons running at 3 GHz. It also has 8 GB of RAM. However, it's just not enough. After switching DNS over to this new server, its load went to 20 very quickly. For those who don't know, a load of 20 means that there are 20 processes waiting in line to be processed. I don't like my loads to go above 2 or 3. I can deal with them spiking to as high as 4, but with a multicore/multiprocessor I don't want it to get above the number of cores/processors you have available.</p>
<p>Suffice to say that the web sites were loading very slowly. So, I switched the NS back to the VPS server I've been running them on. I've seen its load spike to 10 quite often but it normally stays well below 4. So the VPS is holding up pretty well considering. This VPS has 4 cores assigned to it, each at 1.6 GHz. It also only has 3GB of RAM. So, my question is, "Is a dedicated server really the best option?".</p>
<p>There's more factors in this as well. For instance, my sites are all on a WHM/cPanel install, which means I have to pay a monthly license fee for that as well. On a VPS this license is about half the cost as it is on a dedicated server. I like saving money.</p>
<p>I currently have my hosting through a small hosting provided in Knoxville, TN called Knoxcolo/Smith &amp; Hammaker. I have a colo server (not the one I used for my 600 sites, it's a single site), and I have the VPS. For the colo they charge $35 for the 1U of rack space, and it's an unmetered drop. The VPS is $40 per 1GB of RAM. That's their rate, they don't charge for extra HDD space or even CPU cores. They are also a good bunch of people to work with. I have full access to the colo facility through a high security system. I rarely use it since my colo has an iLo connection for remote console even when the servers main drop is offline.</p>
<p>I thought that a dedicated server would be a better choice for my 600 sites, but I've found that the VPS is really the better choice in the long run. The only thing I don't like about the VPS is that I don't have the ability to remotely reboot the virtual machine. I'd really like this ability.</p>
<p>So I've found that perhaps a dedicated server isn't what I really want. Some VPS providers give you a lot more bang for your buck. You can spend hundreds of dollars per month on a very powerful dedicated server, but you have two problems. You don't want to spend a lot of money for hardware that you may not use fully. Of course, secondly, you don't want to spend a lot of money on a server that can't fully handle the load if you have a lot of sites. With a VPS, you have more power to change the hardware specs to meet the demand of your site load. You pay for whatever you need. This is really the best option for anyone who wants to host any number of sites. If you don't need much power, because you only have a few sites, you can save money.</p>
<p>However, you should look for the best deal on a VPS. Smaller companies actually have the better deal when it comes to a VPS, because they typically don't have as much total load on their rack of CPUs. If you get a VPS from a larger provider, they may be pushing their rack to its limits already, and you'll get terrible physical processor speeds, even if you are paying for four cores.</p>
<p>Shop around and look into VPS servers. They are great alternatives to dedicated or colo servers if you look in the right place.</p>
<p><a href="http://supremetechs.com/2012/01/22/search-deal-dedicated-server/">My Search for the Best Deal on a Dedicated Server</a> is a post from: <a href="http://supremetechs.com">SupremeTechs</a></p>
]]></content:encoded>
			<wfw:commentRss>http://supremetechs.com/2012/01/22/search-deal-dedicated-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>To Comment or Not to Comment</title>
		<link>http://supremetechs.com/2012/01/13/comment-comment/</link>
		<comments>http://supremetechs.com/2012/01/13/comment-comment/#comments</comments>
		<pubDate>Fri, 13 Jan 2012 06:52:12 +0000</pubDate>
		<dc:creator>Randy</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[commenting code]]></category>
		<category><![CDATA[more or less comments in code]]></category>

		<guid isPermaLink="false">http://supremetechs.com/?p=622</guid>
		<description><![CDATA[Anyone who has had programming classes knows that one of the primary things they push on you is that all good programmers comment their code. They don't always tell you how much commenting you should do, although some do give good advice. How does one decide how much is enough. Comments are great because they [...]<p><a href="http://supremetechs.com/2012/01/13/comment-comment/">To Comment or Not to Comment</a> is a post from: <a href="http://supremetechs.com">SupremeTechs</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Anyone who has had programming classes knows that one of the primary things they push on you is that all good programmers comment their code. They don't always tell you how much commenting you should do, although some do give good advice. How does one decide how much is enough.</p>
<p>Comments are great because they are basically communications between programmers to help with the logic that is going on in the code. Sometimes the two programmers are the same person. I think a good rule of thumb is to comment just below your own skill level. This means to comment just enough to help someone of almost the same skill as yourself along. You don't want to comment your code to the point that it clutters up the rest of the source, but you want to be able to read through your own code and quickly find the cause of any potential bugs. You never know when you'll have to go back through your own code. Chances are you won't remember what exactly is going on at any particular point, especially if you work on a lot of projects.</p>
<p>Of course, there are always conventions that are mapped out beforehand for most developing teams, but if you are working solo, you should comment as if you are in a team environment.</p>
<p>I personally find comments distracting and ugly when viewing code. I don't particularly care for method and class header comments. They rarely give any useful information. Inline comments are very valuable, however. So if if the coding standards of your team require class and method headers, put them in, but if you are solo or there's no coding standards in place that require these types of comments, don't use them. You should be able to look at any method and tell what kind of parameters it takes, and you should be able to quickly find the return type. These aren't necessary and break down code readability in the end.</p>
<p>Comment changes. If you have to remove some code, comment it out instead of deleting it. This will help you revert changes or come up with better solutions if it is later found that the new code is buggy itself. If you have some bit of logic that is complicated even to your own eyes, comment it and explain how it works. Other than that, keep comments to a minimum.</p>
<p><a href="http://supremetechs.com/2012/01/13/comment-comment/">To Comment or Not to Comment</a> is a post from: <a href="http://supremetechs.com">SupremeTechs</a></p>
]]></content:encoded>
			<wfw:commentRss>http://supremetechs.com/2012/01/13/comment-comment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Codeigniter Controllers Give Server 404</title>
		<link>http://supremetechs.com/2012/01/11/codeigniter-controllers-give-server-404/</link>
		<comments>http://supremetechs.com/2012/01/11/codeigniter-controllers-give-server-404/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 18:21:34 +0000</pubDate>
		<dc:creator>Randy</dc:creator>
				<category><![CDATA[Linux Stuff]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[codeignitor]]></category>
		<category><![CDATA[libapache2-mod-php5]]></category>
		<category><![CDATA[libapache2-mod-php5filter]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[server 404 codeigniter]]></category>

		<guid isPermaLink="false">http://supremetechs.com/?p=586</guid>
		<description><![CDATA[I often take shortcuts when setting up my development servers. I recently installed Linux Mint 12 x64 on my main box and wanted to setup a web developing environment on it. To cut corners during package installation, I'll typically install phpmyadmin which grabs most of the dependencies I need to have a full LAMP dev [...]<p><a href="http://supremetechs.com/2012/01/11/codeigniter-controllers-give-server-404/">Codeigniter Controllers Give Server 404</a> is a post from: <a href="http://supremetechs.com">SupremeTechs</a></p>
]]></description>
			<content:encoded><![CDATA[<p>I often take shortcuts when setting up my development servers. I recently installed <a href="http://supremetechs.com/category/operating-systems/linux-stuff/" >Linux</a> Mint 12 x64 on my main box and wanted to setup a web developing environment on it. To cut corners during package installation, I'll typically install phpmyadmin which grabs most of the dependencies I need to have a full LAMP dev stack, such as Apache2 and Mysql-server.</p>
<p>That's how I initially set up my stack in <a href="http://supremetechs.com/category/operating-systems/linux-stuff/" >Linux</a> Mint. I also enabled user directories in Apache so I could develop within the public_html directory inside my home directory. All was working well until I copied a CodeIgniter project over and tried it out. I couldn't access my controller functions from index.php. It worked well for the default controller because it was accessing it from index.php, but when I changed the URL to point to a controller like index.php/admin, it didn't know what to do with it and I would receiver a server 404 error.</p>
<p>After digging around for a solution, I realized that when I installed my LAMP stack, apt had installed libapache2-mod-php5filter instead of libapache2-mod-php5. I'm not very familiar with this module or what benefits come from using it, but the quick fix was to:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libapache2-mod-php5</pre></div></div>

<p>This removed the php5filter module and installed the plain php5 module. After that, I no longer have an issue with the controllers giving 404 errors.</p>
<p><a href="http://supremetechs.com/2012/01/11/codeigniter-controllers-give-server-404/">Codeigniter Controllers Give Server 404</a> is a post from: <a href="http://supremetechs.com">SupremeTechs</a></p>
]]></content:encoded>
			<wfw:commentRss>http://supremetechs.com/2012/01/11/codeigniter-controllers-give-server-404/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>GoDaddy Alternatives &#124; Boycott GoDaddy</title>
		<link>http://supremetechs.com/2011/12/23/godaddy-alternatives-boycott-godaddy/</link>
		<comments>http://supremetechs.com/2011/12/23/godaddy-alternatives-boycott-godaddy/#comments</comments>
		<pubDate>Fri, 23 Dec 2011 21:00:35 +0000</pubDate>
		<dc:creator>Randy</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[cheap domain registrar]]></category>
		<category><![CDATA[godaddy alternative]]></category>

		<guid isPermaLink="false">http://supremetechs.com/?p=572</guid>
		<description><![CDATA[Due to its support of SOPA, many people are calling for a boycott on GoDaddy. At first GoDaddy was laughing because of the planned boycott. After about 24 hours, their tone changed and they proclaimed that they were no longer supporting the legislation. Many people are looking for alternatives to Godaddy. I searched for a [...]<p><a href="http://supremetechs.com/2011/12/23/godaddy-alternatives-boycott-godaddy/">GoDaddy Alternatives | Boycott GoDaddy</a> is a post from: <a href="http://supremetechs.com">SupremeTechs</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Due to its support of SOPA, many people are calling for a boycott on GoDaddy. At first GoDaddy was laughing because of the planned boycott. After about 24 hours, their tone changed and they proclaimed that they were no longer supporting the legislation. Many people are looking for alternatives to Godaddy.</p>
<p>I searched for a bit and found that about the best deal in town is <a title="godaddy alternative" href="http://www.namecheap.com?aff=25717" target="_blank">namecheap.com</a>. There is a transfer fee for moving domains over to them, but you get a free year of registration with the transfer. So for around $7 bucks you can transfer and renew a .com. If you have a few months left before it's time to renew your .com, you can still transfer the domain and get a free year along with the remaining time of your current registration.</p>
<p>Check out their deals. Let's show GoDaddy that we do not like their support of this unconstitutional legislation.</p>
<p><a title="godaddy alternative" href="http://www.namecheap.com?aff=25717" target="_blank">NameCheap.com</a></p>
<p><a href="http://supremetechs.com/2011/12/23/godaddy-alternatives-boycott-godaddy/">GoDaddy Alternatives | Boycott GoDaddy</a> is a post from: <a href="http://supremetechs.com">SupremeTechs</a></p>
]]></content:encoded>
			<wfw:commentRss>http://supremetechs.com/2011/12/23/godaddy-alternatives-boycott-godaddy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

