<?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>UH.LEE.KA &#187; HowTo</title>
	<atom:link href="http://www.uhleeka.com/blog/tag/howto/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.uhleeka.com/blog</link>
	<description>If you think nobody cares about you, try missing a few car payments.</description>
	<lastBuildDate>Wed, 25 Aug 2010 01:35:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SQL 2008 shrink log file size with no_log alternative</title>
		<link>http://www.uhleeka.com/blog/2009/08/sql-2008-shrink-log-file-size-with-no_lo/</link>
		<comments>http://www.uhleeka.com/blog/2009/08/sql-2008-shrink-log-file-size-with-no_lo/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 01:09:13 +0000</pubDate>
		<dc:creator>uhleeka</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[SQL Server 2008]]></category>

		<guid isPermaLink="false">http://www.uhleeka.com/blog/?p=285</guid>
		<description><![CDATA[Microsoft SQL Server 2008 no longer allows you to truncate the transaction log using the no_log syntax. Essentially, Microsoft decided (arguably correctly) that too many people were &#8220;abusing&#8221; the statement and doing harm to themselves. But when your logfiles have grown too large because you are not backing them up often enough, you can use [...]]]></description>
			<content:encoded><![CDATA[<div style="float:left;width:93px;height:93px;margin:8px 8px 0px 0px;border:solid 1px #600;background-color:#fff;background-repeat:no-repeat;background-position:15px center;background-image:url('http://www.uhleeka.com/blog/wp-content/uploads/2009/02/sql08-3.png');"></div>
<p>Microsoft SQL Server 2008 no longer allows you to truncate the transaction log using the no_log syntax.  Essentially, Microsoft decided (arguably correctly) that too many people were &#8220;abusing&#8221; the statement and doing harm to themselves.<span id="more-285"></span>  </p>
<p>But when your logfiles have grown too large because you are not backing them up often enough, you can use the following code to accomplish the same results as &#8220;with no_log&#8221;.  If you don&#8217;t understand why Microsoft deprecated the &#8220;with no_log&#8221;, you should probably do more digging before you use anything posted here.</p>
<h4 style="clear:both;">The Code</h4>

<div class="uhleeka_codebox"><div class="uhleeka_codebox_in"><pre>USE MASTER
GO
ALTER DATABASE database_name SET RECOVERY SIMPLE
GO
USE database_name
GO
DBCC SHRINKFILE (database_name_log, 1)
GO
ALTER DATABASE database_name SET RECOVERY FULL
GO</pre></div></div>

<p>SQL 2008 returns a table of shrinkfile related results plus the following confirmation:</p>

<div class="uhleeka_codebox"><div class="uhleeka_codebox_in"><pre>(1 row(s) affected)
DBCC execution completed. If DBCC printed error 
messages, contact your system administrator.</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.uhleeka.com/blog/2009/08/sql-2008-shrink-log-file-size-with-no_lo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SQL Logical Name Change by ALTER DATABASE</title>
		<link>http://www.uhleeka.com/blog/2009/08/sqllogical-name-change-by-alter-database/</link>
		<comments>http://www.uhleeka.com/blog/2009/08/sqllogical-name-change-by-alter-database/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 00:22:34 +0000</pubDate>
		<dc:creator>uhleeka</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server 2008]]></category>

		<guid isPermaLink="false">http://www.uhleeka.com/blog/?p=279</guid>
		<description><![CDATA[Use the following code snippits to identify and rename logical file names in Microsoft SQL Server. Determine the logical file names USE [database_name] GO sp_helpfile GO Rename logical file names USE master GO ALTER DATABASE database_name MODIFY FILE ( NAME = 'current_logical_name', NEWNAME = 'new_logical_name') GO SQL 2008 returns the following confirmation: The file name [...]]]></description>
			<content:encoded><![CDATA[<div style="float:left;width:93px;height:93px;margin:8px 8px 0px 0px;border:solid 1px #600;background-color:#fff;background-repeat:no-repeat;background-position:15px center;background-image:url('http://www.uhleeka.com/blog/wp-content/uploads/2009/02/sql08-3.png');"></div>
<p>Use the following code snippits to identify and rename logical file names in Microsoft SQL Server.<span id="more-279"></span></p>
<h4 style="clear:both;">Determine the logical file names</h4>

<div class="uhleeka_codebox"><div class="uhleeka_codebox_in"><pre>USE [database_name]
GO
sp_helpfile
GO</pre></div></div>

<h4 style="clear:both;">Rename logical file names</h4>

<div class="uhleeka_codebox"><div class="uhleeka_codebox_in"><pre>USE master
GO
ALTER DATABASE database_name
MODIFY FILE  ( NAME = 'current_logical_name', 
NEWNAME = 'new_logical_name')
GO</pre></div></div>

<p>SQL 2008 returns the following confirmation:</p>

<div class="uhleeka_codebox"><div class="uhleeka_codebox_in"><pre>The file name 'new_logical_name' has been set.</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.uhleeka.com/blog/2009/08/sqllogical-name-change-by-alter-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sql Server 2005 &#8220;Login name&#8221; is blank after restoring from backup</title>
		<link>http://www.uhleeka.com/blog/2009/05/sql-server-2005-login-name-is-blank-after-restoring-from-backup/</link>
		<comments>http://www.uhleeka.com/blog/2009/05/sql-server-2005-login-name-is-blank-after-restoring-from-backup/#comments</comments>
		<pubDate>Fri, 29 May 2009 03:14:36 +0000</pubDate>
		<dc:creator>uhleeka</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server 2005]]></category>

		<guid isPermaLink="false">http://www.uhleeka.com/blog/?p=268</guid>
		<description><![CDATA[After restoring a database from a remote server backup, the &#8220;Login name&#8221; is often disassociated. The Solution USE [database_name]; GO EXEC sp_change_users_login 'Auto_Fix', 'Username'; GO SQL should respond with the following: The row for user 'Username' will be fixed by updating its login link to a login already in existence. The number of orphaned users [...]]]></description>
			<content:encoded><![CDATA[<div style="float:left;width:93px;height:93px;margin:8px 8px 0px 0px;border:solid 1px #600;background-color:#fff;background-repeat:no-repeat;background-position:15px center;background-image:url('http://www.uhleeka.com/blog/wp-content/uploads/2009/02/sql08-3.png');"></div>
<p>After restoring a database from a remote server backup, the &#8220;Login name&#8221; is often disassociated.<span id="more-268"></span></p>
<h4 style="clear:both;">The Solution</h4>

<div class="uhleeka_codebox"><div class="uhleeka_codebox_in"><pre>USE [database_name];
GO
EXEC sp_change_users_login 'Auto_Fix', 'Username';
GO</pre></div></div>

<p>SQL should respond with the following:</p>

<div class="uhleeka_codebox"><div class="uhleeka_codebox_in"><pre>The row for user 'Username' will be fixed by updating its login link to a login
already in existence.
The number of orphaned users fixed by updating users was 1.
The number of orphaned users fixed by adding new logins and then updating users was 0.</pre></div></div>

<p>For more info:<br />
<a href="http://msdn.microsoft.com/en-us/library/ms174378.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/ms174378.aspx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.uhleeka.com/blog/2009/05/sql-server-2005-login-name-is-blank-after-restoring-from-backup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Install ExpressionEngine on MediaTemple (gs)</title>
		<link>http://www.uhleeka.com/blog/2008/11/how-to-install-expression-engine-on-mediatemple-gs/</link>
		<comments>http://www.uhleeka.com/blog/2008/11/how-to-install-expression-engine-on-mediatemple-gs/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 04:40:45 +0000</pubDate>
		<dc:creator>uhleeka</dc:creator>
				<category><![CDATA[Installs and Configs]]></category>
		<category><![CDATA[Expression Engine]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[MediaTemple]]></category>

		<guid isPermaLink="false">http://www.uhleeka.com/blog/?p=49</guid>
		<description><![CDATA[After having done several ExpressionEngine deployments at MediaTemple, I decided to post my steps&#8230;so I wouldn&#8217;t have to remember them. Get the Files: Step 1: Visit EE and download the latest version of the core after reading the EULA Step 2: Post the file to the (gs) via FTP to the root directory of your [...]]]></description>
			<content:encoded><![CDATA[<div style="float:left;width:93px;height:93px;margin:8px 8px 0px 0px;border:solid 1px #006;background-repeat:no-repeat;background-position:center center;background-image:url('http://www.uhleeka.com/blog/wp-content/uploads/2008/11/ee.gif');"></div>
<p>After having done several <a href="http://expressionengine.com" target="_blank">ExpressionEngine</a> deployments at <a href="http://mediatemple.net" target="_blank">MediaTemple</a>, I decided to post my steps&#8230;so I wouldn&#8217;t have to remember them.  <span id="more-49"></span></p>
<h4 style="clear:left;">Get the Files:</h4>
<p>Step 1: Visit EE and download the latest version of the core after reading the EULA<br />
Step 2: Post the file to the (gs) via FTP to the root directory of your website.<br />
Step 3: Login to your (gs) via <a href="http://kb.mediatemple.net/questions/16/Connecting+via+SSH+to+your+(gs)+Grid-Service" target="_blank">SSH</a>.<br />
Step 4: Change directory to find the zip you just uploaded.</p>

<div class="uhleeka_codebox"><div class="uhleeka_codebox_in"><pre>cd ~/domains/uhleeka.com</pre></div></div>

<p>Step 5: Unzip the EECore archive, then delete the archive</p>

<div class="uhleeka_codebox"><div class="uhleeka_codebox_in"><pre>unzip EECore1.6.5.zip
rm EECore1.6.5.zip</pre></div></div>

<p>Step 6: Move the EECore directory into a subdirectory of html (e.g. html/ee)</p>

<div class="uhleeka_codebox"><div class="uhleeka_codebox_in"><pre>mv -fv EECore1.6.5 html/ee
cd html/ee</pre></div></div>

<p>Step 7: Set the file permissions as required by the EE installation docs.</p>

<div class="uhleeka_codebox"><div class="uhleeka_codebox_in"><pre>chmod 666 path.php
chmod 666 system/config.php
chmod 666 system/config_bak.php
chmod 777 images/avatars/uploads/
chmod 777 images/captchas/
chmod 777 images/member_photos/
chmod 777 images/pm_attachments/
chmod 777 images/signature_attachments/
chmod 777 images/uploads/
chmod 777 system/cache/</pre></div></div>

<p>Step 8 (optional but recommended): Rename the &#8220;system&#8221; folder as a security precaution</p>

<div class="uhleeka_codebox"><div class="uhleeka_codebox_in"><pre>mv -fv system newsystemfoldername</pre></div></div>

<p>Step 9 (optional): Find and download a theme at <a href="http://expressionengine.com/templates" target="_blank">http://expressionengine.com/templates</a> (see the EE install docs for more information).  Note: EE does not allow dynamic switching of themes after installation.</p>

<div class="uhleeka_codebox"><div class="uhleeka_codebox_in"><pre>cd themes/site_themes
wget http://expressionengine.com/files/templates/zips/alex_blue.zip
unzip alex_blue.zip
rm alex_blue.zip</pre></div></div>

<p>Step 10: Logout of SSH</p>

<div class="uhleeka_codebox"><div class="uhleeka_codebox_in"><pre>logout</pre></div></div>

<h4>The Database:</h4>
<p>Creating the database cannot be done via SSH because the (gs) MySQL user does not have CREATE DATABASE permissions.  So, you have to use the MediaTemple control panel which is, thankfully, very simple and straightforward.</p>
<p>Once you login to your (gs) contol panel, click the &#8220;Manage Databases&#8221; link.</p>
<div class="mceTemp">
<dl id="attachment_39" class="wp-caption alignnone" style="width: 263px;">
<dt class="wp-caption-dt"><img class="size-full wp-image-39" title="Manage Databases" src="http://www.uhleeka.com/blog/wp-content/uploads/2008/11/managedb1.png" alt="" width="253" height="64" /></dt>
</dl>
</div>
<p>Click the &#8220;Add A Database&#8221; tab.</p>
<p>Specify the database name (e.g. dbXXXX_uhleeka_com) and select MySQL for the type.</p>
<p>Now that you&#8217;ve created your database, click the &#8220;Global Settings&#8221; tab to create a new user for your database (e.g. dbXXXX_uhleeka).  Make sure to give your new user &#8220;Read/Write&#8221; access to your database.</p>
<p>Also, take note of the &#8220;Internal Hostname&#8221; listed under &#8220;Your Server Info&#8221;.  It should be something like &#8220;internal-db.sXXXX.gridserver.com&#8221;.</p>
<h4>The Configuration:</h4>
<p>Step 1: Start the configuration by navigating to the website EECore folder (e.g. http://www.uhleeka.com/ee)<br />
Step 2 (optional but recommended): if you renamed your system folder in the Files process, enter the value you renamed the folder to (e.g. newsystemfoldername)<br />
Step 3: Fill out the configuration form and select your template.  Example Database parameters are as follows:</p>

<div class="uhleeka_codebox"><div class="uhleeka_codebox_in"><pre>Database Name: dbXXXX_uhleeka_com
User Name: dbXXXX_uhleeka
Password: ThisIsMyVerySecurePassword
Database Host: internal-db.sXXXX.gridserver.com
Table Prefix: exp_</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.uhleeka.com/blog/2008/11/how-to-install-expression-engine-on-mediatemple-gs/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Install WordPress on MediaTemple (gs)</title>
		<link>http://www.uhleeka.com/blog/2008/11/how-to-install-wordpress-on-mediatemple-gs/</link>
		<comments>http://www.uhleeka.com/blog/2008/11/how-to-install-wordpress-on-mediatemple-gs/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 01:08:39 +0000</pubDate>
		<dc:creator>uhleeka</dc:creator>
				<category><![CDATA[Installs and Configs]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[MediaTemple]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.uhleeka.com/blog/?p=1</guid>
		<description><![CDATA[After successfully trying the 1-Click Applications installer offered by the MediaTemple (gs) control panel, I decided I would rather know what was going on behind the scenes&#8230;not to mention that they have all sorts of warnings saying &#8220;DO NOT(!) use the one-click installer to upgrade any&#8230;yada yada yada or we will torture small animals to [...]]]></description>
			<content:encoded><![CDATA[<div style="float:left;width:93px;height:93px;margin:8px 8px 0px 0px;border:solid 1px #000;background-repeat:no-repeat;background-position:-40px -30px;background-image:url('http://www.uhleeka.com/blog/wp-content/uploads/2008/11/wordpress.png');"></div>
<p>After successfully trying the 1-Click Applications installer offered by the MediaTemple (gs) control panel, I decided I would rather know what was going on behind the scenes&#8230;not to mention that they have all sorts of warnings saying &#8220;<strong>DO NOT(!) use the one-click installer to upgrade any</strong>&#8230;yada yada yada or we will torture small animals to scare you&#8230;yadda yadda.&#8221;</p>
<p>Although it was a very straightforward process, after having stepped my way through the manual install, I felt inclined to record my paces.  <span id="more-1"></span></p>
<h4>The Files:</h4>
<p>The first step is to download and extract the latest files from <a href="http://www.wordpress.org" target="_blank">WordPress.org</a>.  Being new to Linux/UNIX, I decided to do things via SSH.  If you are not so inclined, FTP is a simple and viable option that I decline to discuss in this post.</p>
<p>Login to your (gs) via <a href="http://kb.mediatemple.net/questions/16/Connecting+via+SSH+to+your+(gs)+Grid-Service" target="_blank">SSH</a>.</p>
<p>Change directory to the domain where you want to install WordPress (e.g. uhleeka.com):</p>

<div class="uhleeka_codebox"><div class="uhleeka_codebox_in"><pre>cd ~/domains/uhleeka.com</pre></div></div>

<p>Download the latest release from WordPress.org:</p>

<div class="uhleeka_codebox"><div class="uhleeka_codebox_in"><pre>wget http://wordpress.org/latest.tar.gz</pre></div></div>

<p>Decompress the archive into the default directory “wordpress” and delete the tar.gz file:</p>

<div class="uhleeka_codebox"><div class="uhleeka_codebox_in"><pre>tar xvzf latest.tar.gz
rm latest.tar.gz</pre></div></div>

<p>Make the “wordpress” directory a subdirectory called “blog” (e.g. uhleeka.com/blog):</p>

<div class="uhleeka_codebox"><div class="uhleeka_codebox_in"><pre>mv wordpress html/blog</pre></div></div>

<p>Or put the contents of the wordpress folder into the root directory (e.g. uhleeka.com/):</p>

<div class="uhleeka_codebox"><div class="uhleeka_codebox_in"><pre>mv wordpress/* html
rm -dr wordpress</pre></div></div>

<h4>The Database:</h4>
<p>Creating the database cannot be done via SSH because the (gs) MySQL user does not have CREATE DATABASE permissions.  So, you have to use the MediaTemple control panel which is, thankfully, very simple and straightforward.</p>
<p>Once you login to your (gs) contol panel, click the &#8220;Manage Databases&#8221; link.</p>
<div class="mceTemp">
<dl id="attachment_39" class="wp-caption alignnone" style="width: 263px;">
<dt class="wp-caption-dt"><img class="size-full wp-image-39" title="Manage Databases" src="http://www.uhleeka.com/blog/wp-content/uploads/2008/11/managedb1.png" alt="" width="253" height="64" /></dt>
</dl>
</div>
<p>Click the &#8220;Add A Database&#8221; tab.</p>
<p>Specify the database name (e.g. dbXXXX_uhleeka_com) and select MySQL for the type.</p>
<p>Now that you&#8217;ve created your database, click the &#8220;Global Settings&#8221; tab to create a new user for your database (e.g. dbXXXX_uhleeka).  Make sure to give your new user &#8220;Read/Write&#8221; access to your database.</p>
<p>Also, take note of the &#8220;Internal Hostname&#8221; listed under &#8220;Your Server Info&#8221;.  It should be something like &#8220;internal-db.sXXXX.gridserver.com&#8221;.</p>
<h4>The Configuration:</h4>
<p>The last thing you will need to do is access and configure your new WordPress blog.  Browse to the home page, and you will be directed to the configuration.  Enter the following fields in the configuration, and you are done:</p>

<div class="uhleeka_codebox"><div class="uhleeka_codebox_in"><pre>Database Name: dbXXXX_uhleeka_com
User Name: dbXXXX_uhleeka
Password: ThisIsMyVerySecurePassword
Database Host: internal-db.sXXXX.gridserver.com
Table Prefix: wp_</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.uhleeka.com/blog/2008/11/how-to-install-wordpress-on-mediatemple-gs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

