<?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>Norse Technologies Knowledge Base&#187; line</title>
	<atom:link href="http://kb.norsetech.net/tag/line/feed/" rel="self" type="application/rss+xml" />
	<link>http://kb.norsetech.net</link>
	<description>Free Knowledge Articles</description>
	<lastBuildDate>Wed, 11 Jan 2012 00:53:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to Make a Backup Script for Shell in Linux</title>
		<link>http://kb.norsetech.net/how-to-make-a-backup-script-for-shell-in-linux/</link>
		<comments>http://kb.norsetech.net/how-to-make-a-backup-script-for-shell-in-linux/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 02:47:18 +0000</pubDate>
		<dc:creator>kb-admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[backing up files]]></category>
		<category><![CDATA[backup copy]]></category>
		<category><![CDATA[backup script]]></category>
		<category><![CDATA[code comments]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[command line argument]]></category>
		<category><![CDATA[command line interface]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[config files]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[DATECODE]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[good habit]]></category>
		<category><![CDATA[habit]]></category>
		<category><![CDATA[IMHO]]></category>
		<category><![CDATA[line]]></category>
		<category><![CDATA[myfile]]></category>
		<category><![CDATA[time]]></category>
		<category><![CDATA[TIMECODE]]></category>

		<guid isPermaLink="false">http://kb.norsetech.net/?p=182</guid>
		<description><![CDATA[For those who hack a lot of Linux at the command line interface, backing up files such as config files before editing is a good habit to have. IMHO anyway. So to save time, a little script can be written, chmod +x, and placed into /usr/local/bin or some other that users have in their executable [...]]]></description>
			<content:encoded><![CDATA[<p>For those who hack a lot of Linux at the command line interface, backing up files such as config files before editing is a good habit to have. IMHO anyway. So to save time, a little script can be written, chmod +x, and placed into /usr/local/bin or some other that users have in their executable shell PATH. I name mine &#8220;bu&#8221; to make it easy, and it takes one command line argument which is the filename of the file you want to make a backup copy of. It is called by running something like <strong>$ bu <em>myfile </em></strong></p>
<p><strong><em></em></strong>Here&#8217;s the code. Comments welcome ;) The code creates a timecode based on today&#8217;s date and the current time to the second, and appends that to the original filename. The a copy is saved with this new &#8220;timestamped&#8221; backup filename, right in the same directory. Easy-peasy! <strong><em></em></strong></p>
<pre>#!/bin/bash
OLDFILENAME=$1
DATECODE=$(date +%Y%m%d)
TIMECODE=$(date +%H%M%S)
NEWFILENAME="${OLDFILENAME}_backup${DATECODE}-$TIMECODE"
cp $OLDFILENAME $NEWFILENAME
SUCCESS=$?
if [ $SUCCESS -eq 0 ];then
 echo "OK! Copied \"$OLDFILENAME\" to \"$NEWFILENAME\""
else
 echo "FAIL! You'll need to try again!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
fi</pre>
]]></content:encoded>
			<wfw:commentRss>http://kb.norsetech.net/how-to-make-a-backup-script-for-shell-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Delete Returns in Excel</title>
		<link>http://kb.norsetech.net/how-to-delete-returns-in-excel/</link>
		<comments>http://kb.norsetech.net/how-to-delete-returns-in-excel/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 01:25:12 +0000</pubDate>
		<dc:creator>kb-admin</dc:creator>
				<category><![CDATA[Excel]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[carraige]]></category>
		<category><![CDATA[carriage returns]]></category>
		<category><![CDATA[chip pearson]]></category>
		<category><![CDATA[click tools]]></category>
		<category><![CDATA[com]]></category>
		<category><![CDATA[End]]></category>
		<category><![CDATA[excel workbook]]></category>
		<category><![CDATA[left pane]]></category>
		<category><![CDATA[line]]></category>
		<category><![CDATA[Macro]]></category>
		<category><![CDATA[moala]]></category>
		<category><![CDATA[OpenOffice]]></category>
		<category><![CDATA[org]]></category>
		<category><![CDATA[pesky]]></category>
		<category><![CDATA[spreadsheet program]]></category>
		<category><![CDATA[TheCell]]></category>
		<category><![CDATA[value application]]></category>
		<category><![CDATA[way]]></category>
		<category><![CDATA[worksheet cells]]></category>

		<guid isPermaLink="false">http://kb.norsetech.net/?p=115</guid>
		<description><![CDATA[The pesky carraige return and new line characters, while providing a way to present text for human viewing, are not always desirable when working in a spreadsheet program like Microsoft Excel or OpenOffice.org. In Excel, a bit of code provided by Ivan Moala on mrexcel.com, works wonders. Here is the code: 'Created by Chip Pearson [...]]]></description>
			<content:encoded><![CDATA[<p>The pesky carraige return and new line characters, while providing a way to present text for human viewing, are not always desirable when working in a spreadsheet program like Microsoft Excel or OpenOffice.org.</p>
<p>In Excel, <a href="http://www.mrexcel.com/archive/VBA/4924.html" target="_blank">a bit of code provided by Ivan Moala on mrexcel.com, works wonders.</a> Here is the code:</p>
<p><code><br />
'Created by Chip Pearson<br />
'Cleans up data by removing tabs and carriage returns in worksheet cells.<br />
Sub CleanUp()<br />
Dim TheCell As Range<br />
For Each TheCell In ActiveSheet.UsedRange<br />
With TheCell<br />
If .HasFormula = False Then<br />
.Value = Application.WorksheetFunction.Clean(.Value)<br />
End If<br />
End With<br />
Next TheCell<br />
End Sub<br />
</code></p>
<p>Here&#8217;s how to use it:</p>
<ul>
<li>In Excel click <strong>Tools </strong>&gt; <strong>Macro </strong>&gt; <strong>Visual Basic Editor</strong> (or just hit Alt-F11)</li>
<li>In the top-left pane under the <strong>Project </strong>heading, double-click the name of the sheet you want to strip all the newlines and carriage returns from.</li>
<li>In the window that pops up, <strong>paste the code above</strong> into the empty box under where you see General and Declarations.</li>
<li>Run the macro by <strong>clicking the &#8220;play&#8221; button</strong> above, or hit F5</li>
</ul>
<p><span style="color: #ff0000;">Warning</span>: make a backup copy of your Excel workbook before performing the above procedure.</p>
]]></content:encoded>
			<wfw:commentRss>http://kb.norsetech.net/how-to-delete-returns-in-excel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Show MySQL Warnings at CLI</title>
		<link>http://kb.norsetech.net/how-to-show-mysql-warnings-at-cli/</link>
		<comments>http://kb.norsetech.net/how-to-show-mysql-warnings-at-cli/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 01:00:59 +0000</pubDate>
		<dc:creator>kb-admin</dc:creator>
				<category><![CDATA[Freeware]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[command line interface]]></category>
		<category><![CDATA[interface]]></category>
		<category><![CDATA[line]]></category>
		<category><![CDATA[mysql server]]></category>
		<category><![CDATA[run]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[show]]></category>
		<category><![CDATA[trevor nichols]]></category>
		<category><![CDATA[Warnings]]></category>
		<category><![CDATA[www]]></category>

		<guid isPermaLink="false">http://kb.norsetech.net/?p=111</guid>
		<description><![CDATA[When logged in to the MySQL server using the command line interface (CLI) the  generated errors on the previously run command. mysql&#62; show warnings; Thanks to Trevor Nichols and www.issociate.de]]></description>
			<content:encoded><![CDATA[<p>When logged in to the MySQL server using the command line interface (CLI) the  generated errors on the previously run command.</p>
<p><code>mysql&gt; show warnings;</code></p>
<p><a href="http://www.issociate.de/board/post/216831/how_to_print_warnings_from_mysqlimport...debug_options_" target="_blank">Thanks to Trevor Nichols and www.issociate.de</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kb.norsetech.net/how-to-show-mysql-warnings-at-cli/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fix 403 Forbidden error in OTRS/Apache</title>
		<link>http://kb.norsetech.net/fix-403-forbidden-error-in-otrsapache/</link>
		<comments>http://kb.norsetech.net/fix-403-forbidden-error-in-otrsapache/#comments</comments>
		<pubDate>Wed, 05 Dec 2007 05:05:07 +0000</pubDate>
		<dc:creator>kb-admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[WebDev]]></category>
		<category><![CDATA[apache 2]]></category>
		<category><![CDATA[beginning]]></category>
		<category><![CDATA[change]]></category>
		<category><![CDATA[conf]]></category>
		<category><![CDATA[Deny]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[fedora core 6]]></category>
		<category><![CDATA[Forbidden]]></category>
		<category><![CDATA[forbidden error]]></category>
		<category><![CDATA[line]]></category>
		<category><![CDATA[OTRS]]></category>
		<category><![CDATA[RESTART]]></category>
		<category><![CDATA[webserver]]></category>

		<guid isPermaLink="false">http://norsetech.net/kb/?p=32</guid>
		<description><![CDATA[This applies to (at least) OTRS 2.2 on Fedora Core 6 running Apache 2: To fix this, change the following in the file /etc/httpd/conf.c/otrs.conf Find the line that reads &#8220;Deny from All&#8221;, and comment it out by placing a # at the beginning of the line. Save the file. Restart Apache # service httpd restart [...]]]></description>
			<content:encoded><![CDATA[<p>This applies to (at least) OTRS 2.2 on Fedora Core 6 running Apache 2:</p>
<p>To fix this, change the following in the file <strong>/etc/httpd/conf.c/otrs.conf</strong><br />
Find the line that reads &#8220;Deny from All&#8221;, and comment it out by placing a # at the beginning of the line.</p>
<p>Save the file.</p>
<p>Restart Apache</p>
<blockquote><p># service httpd restart</p></blockquote>
<p>Now try browsing your webserver otrs from other machines, success!</p>
]]></content:encoded>
			<wfw:commentRss>http://kb.norsetech.net/fix-403-forbidden-error-in-otrsapache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Update Firefox on Fedora Core Linux</title>
		<link>http://kb.norsetech.net/how-to-update-firefox-on-fedora-core-linux/</link>
		<comments>http://kb.norsetech.net/how-to-update-firefox-on-fedora-core-linux/#comments</comments>
		<pubDate>Wed, 10 Oct 2007 03:36:53 +0000</pubDate>
		<dc:creator>kb-admin</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Freeware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[check]]></category>
		<category><![CDATA[conflicts]]></category>
		<category><![CDATA[dashes]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[enablerepo]]></category>
		<category><![CDATA[fc6]]></category>
		<category><![CDATA[fedora core linux]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[line]]></category>
		<category><![CDATA[necessary packages]]></category>
		<category><![CDATA[package]]></category>
		<category><![CDATA[stylesheets]]></category>
		<category><![CDATA[SUCCESS]]></category>
		<category><![CDATA[thet]]></category>
		<category><![CDATA[transaction]]></category>
		<category><![CDATA[Update]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://norsetech.net/kb/?p=27</guid>
		<description><![CDATA[Using the yum command line usility: yum -y &#8211;enablerepo=development update firefox (there are two dashes preceding &#8220;enablerepo&#8221;) When I used this line I got some transaction check failures thet looked something like: file /usr/share/pkgconfig/gnome-doc-utils.pc from install of gnome-doc-utils-stylesheets-0.12.0-1.fc8 conflicts with file from package gnome-doc-utils-0.8.0-2.fc6 To fix this, I did the following: yum -y &#8211;enablerepo=development update [...]]]></description>
			<content:encoded><![CDATA[<p>Using the yum command line usility:</p>
<p>yum -y &#8211;enablerepo=development update firefox</p>
<p>(there are two dashes preceding &#8220;enablerepo&#8221;)</p>
<p>When I used this line I got some transaction check failures thet looked something like:</p>
<p>file /usr/share/pkgconfig/gnome-doc-utils.pc from install of gnome-doc-utils-stylesheets-0.12.0-1.fc8 conflicts with file from package gnome-doc-utils-0.8.0-2.fc6</p>
<p>To fix this, I did the following:</p>
<p>yum -y &#8211;enablerepo=development update gnome-doc-utils</p>
<p>This updated the necessary packages, then I re-ran:</p>
<p>yum -y &#8211;enablerepo=development update firefox</p>
<p>Success!</p>
]]></content:encoded>
			<wfw:commentRss>http://kb.norsetech.net/how-to-update-firefox-on-fedora-core-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL login with command line (CLI)</title>
		<link>http://kb.norsetech.net/mysql-login-with-command-line-cli/</link>
		<comments>http://kb.norsetech.net/mysql-login-with-command-line-cli/#comments</comments>
		<pubDate>Mon, 17 Sep 2007 18:26:11 +0000</pubDate>
		<dc:creator>kb-admin</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[dbname]]></category>
		<category><![CDATA[hostname]]></category>
		<category><![CDATA[line]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[username]]></category>

		<guid isPermaLink="false">http://norsetech.net/kb/?p=24</guid>
		<description><![CDATA[# mysql -h hostname -u username -p It will prompt you for the password. Then: > connect dbname]]></description>
			<content:encoded><![CDATA[<p># mysql -h hostname -u username -p</p>
<p>It will prompt you for the password.</p>
<p>Then:</p>
<p>> connect dbname</p>
]]></content:encoded>
			<wfw:commentRss>http://kb.norsetech.net/mysql-login-with-command-line-cli/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Set time at command line in Linux</title>
		<link>http://kb.norsetech.net/set-time-at-command-line-in-linux/</link>
		<comments>http://kb.norsetech.net/set-time-at-command-line-in-linux/#comments</comments>
		<pubDate>Fri, 09 Mar 2007 18:30:50 +0000</pubDate>
		<dc:creator>kb-admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Clock]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[dd]]></category>
		<category><![CDATA[Format]]></category>
		<category><![CDATA[hour]]></category>
		<category><![CDATA[hour hour]]></category>
		<category><![CDATA[line]]></category>
		<category><![CDATA[linux flavors]]></category>
		<category><![CDATA[minute]]></category>
		<category><![CDATA[MMDDhhmmYYYY]]></category>
		<category><![CDATA[switch]]></category>
		<category><![CDATA[system clock]]></category>
		<category><![CDATA[YYYY]]></category>

		<guid isPermaLink="false">http://norsetech.net/kb/?p=14</guid>
		<description><![CDATA[This works for all Linux flavors as far as I know: The date command is used to set the system clock using the switch -s and the format MMDDhhmmYYYY (where MM=month, DD=day, hh=24-hour hour, mm=minute, YYYY=year) The following example sets the date to January 5th 2007, 1:15 PM: # date -s 010513152007]]></description>
			<content:encoded><![CDATA[<p>This works for all Linux flavors as far as I know:</p>
<p>The <strong>date</strong> command is used to set the system clock using the switch <strong>-s</strong> and the format MMDDhhmmYYYY (where MM=month, DD=day, hh=24-hour hour, mm=minute, YYYY=year)</p>
<p>The following example sets the date to <em>January 5th 2007, 1:15 PM</em>:</p>
<p><code># date -s 010513152007</code></p>
]]></content:encoded>
			<wfw:commentRss>http://kb.norsetech.net/set-time-at-command-line-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

