<?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; time</title>
	<atom:link href="http://kb.norsetech.net/tag/time/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 Import Customer Records Into OTRS from CSV</title>
		<link>http://kb.norsetech.net/how-to-import-customer-records-into-otrs-from-csv/</link>
		<comments>http://kb.norsetech.net/how-to-import-customer-records-into-otrs-from-csv/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 01:36:08 +0000</pubDate>
		<dc:creator>kb-admin</dc:creator>
				<category><![CDATA[Freeware]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[WebDev]]></category>
		<category><![CDATA[change]]></category>
		<category><![CDATA[change time]]></category>
		<category><![CDATA[csv file]]></category>
		<category><![CDATA[customer id]]></category>
		<category><![CDATA[customer records]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[Import]]></category>
		<category><![CDATA[load data infile]]></category>
		<category><![CDATA[Mike Dent]]></category>
		<category><![CDATA[name]]></category>
		<category><![CDATA[OTRS]]></category>
		<category><![CDATA[phone]]></category>
		<category><![CDATA[schema]]></category>
		<category><![CDATA[show]]></category>
		<category><![CDATA[table schema]]></category>
		<category><![CDATA[test]]></category>
		<category><![CDATA[time]]></category>
		<category><![CDATA[time change]]></category>
		<category><![CDATA[txt]]></category>
		<category><![CDATA[valid id]]></category>

		<guid isPermaLink="false">http://kb.norsetech.net/?p=120</guid>
		<description><![CDATA[Thanks to Mike Dent&#8217;s efforts and OTRS, we now know how a CSV file can be imported into the MySQL database directly. Here is the sample code: mysql&#62; load data infile '/tmp/otrs_test.txt' into table customer_user fields terminated by '\t' lines terminated by '\r' (first_name, last_name, address, postcode, phone1, email, customer_id, valid_id, create_time, create_by, change_time, change_by, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://lists.otrs.org/pipermail/otrs/2007-May/018593.html" target="_blank">Thanks to Mike Dent&#8217;s efforts and OTRS</a>, we now know how a CSV file can be imported into the MySQL database directly. Here is the sample code:</p>
<p><code>mysql&gt; load data infile '/tmp/otrs_test.txt' into table customer_user<br />
fields terminated by '\t' lines terminated by '\r' (first_name,<br />
last_name, address, postcode, phone1, email, customer_id, valid_id,<br />
create_time, create_by, change_time, change_by, login);</code></p>
<p>Make sure to import all the required fields (that is, the ones that the database requires, see the table schema for details, &gt;show table x;)</p>
]]></content:encoded>
			<wfw:commentRss>http://kb.norsetech.net/how-to-import-customer-records-into-otrs-from-csv/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Alternate Time Servers for Automatic Clock Set</title>
		<link>http://kb.norsetech.net/alternate-time-servers-for-automatic-clock-set/</link>
		<comments>http://kb.norsetech.net/alternate-time-servers-for-automatic-clock-set/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 01:09:55 +0000</pubDate>
		<dc:creator>kb-admin</dc:creator>
				<category><![CDATA[Freeware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[WebDev]]></category>
		<category><![CDATA[automatic clock]]></category>
		<category><![CDATA[Clock]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[computer clock]]></category>
		<category><![CDATA[generous folks]]></category>
		<category><![CDATA[local time zone]]></category>
		<category><![CDATA[microsoft windows operating systems]]></category>
		<category><![CDATA[network time protocol]]></category>
		<category><![CDATA[ntp]]></category>
		<category><![CDATA[org]]></category>
		<category><![CDATA[pool]]></category>
		<category><![CDATA[pool project]]></category>
		<category><![CDATA[Project]]></category>
		<category><![CDATA[protocol server]]></category>
		<category><![CDATA[server pool]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Set]]></category>
		<category><![CDATA[time]]></category>
		<category><![CDATA[time servers]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://kb.norsetech.net/?p=113</guid>
		<description><![CDATA[In modern Microsoft Windows operating systems and all Unix / Linux systems the system clock time can be set automatically. The computer will connect to a special server on the Internet called a Network Time Protocol server, and get the current universal time, and then adjust it according to the local time zone on the [...]]]></description>
			<content:encoded><![CDATA[<p>In modern Microsoft Windows operating systems and all Unix / Linux systems the system clock time can be set automatically. The computer will connect to a special server on the Internet called a Network Time Protocol server, and get the current universal time, and then adjust it according to the local time zone on the computer. It keeps the computer clock very accurate and corrects drift before it can become much of a problem.</p>
<p>We recommend using a reliable server: <strong>pool.ntp.org</strong></p>
<p>A wonderful group of generous folks provide this extremely reliable cluster of computers for us all to use, free of charge. <a href="http://www.pool.ntp.org/en/" target="_blank">Thank you NTP Pool Project and all the participants!</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kb.norsetech.net/alternate-time-servers-for-automatic-clock-set/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to automatically reload a page when it is finished reloading, using javascript</title>
		<link>http://kb.norsetech.net/how-to-automatically-reload-a-page-when-it-is-finished-reloading-using-javascript/</link>
		<comments>http://kb.norsetech.net/how-to-automatically-reload-a-page-when-it-is-finished-reloading-using-javascript/#comments</comments>
		<pubDate>Fri, 03 Oct 2008 20:02:38 +0000</pubDate>
		<dc:creator>kb-admin</dc:creator>
				<category><![CDATA[WebDev]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[Enjoy]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[language javascript]]></category>
		<category><![CDATA[location]]></category>
		<category><![CDATA[lt]]></category>
		<category><![CDATA[page loads]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[script language]]></category>
		<category><![CDATA[time]]></category>
		<category><![CDATA[way]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[web page html]]></category>
		<category><![CDATA[yout]]></category>

		<guid isPermaLink="false">http://norsetech.net/kb/?p=42</guid>
		<description><![CDATA[So, you have a web page (HTML, PHP, etc.) that you want to reload over and over. And at the same time, you want to be sure that the entire page loads before it starts the loop over again. Here is a javascript way to do just that. Simply include this script in yout HTML [...]]]></description>
			<content:encoded><![CDATA[<p>So, you have a web page (HTML, PHP, etc.) that you want to reload over and over. And at the same time, you want to be sure that the entire page loads before it starts the loop over again. Here is a javascript way to do just that.  Simply include this script in yout HTML code, and watch the magic:</p>
<pre>&lt;<span class="start-tag">script</span><span class="attribute-name"> language</span>=<span class="attribute-value">"javascript"</span>&gt;
window.onload=new Function("window.location.reload();");
&lt;/<span class="end-tag">script</span>&gt;</pre>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://kb.norsetech.net/how-to-automatically-reload-a-page-when-it-is-finished-reloading-using-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Set Windows clock to UTC time</title>
		<link>http://kb.norsetech.net/set-windows-clock-to-utc-time/</link>
		<comments>http://kb.norsetech.net/set-windows-clock-to-utc-time/#comments</comments>
		<pubDate>Tue, 30 Oct 2007 20:29:32 +0000</pubDate>
		<dc:creator>kb-admin</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[bios clock]]></category>
		<category><![CDATA[CDT]]></category>
		<category><![CDATA[dual booting]]></category>
		<category><![CDATA[dword]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[GMT]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[hardware clock]]></category>
		<category><![CDATA[MDT]]></category>
		<category><![CDATA[mst]]></category>
		<category><![CDATA[PDT]]></category>
		<category><![CDATA[registry tweak]]></category>
		<category><![CDATA[Set]]></category>
		<category><![CDATA[time]]></category>
		<category><![CDATA[time ie]]></category>
		<category><![CDATA[UTC]]></category>
		<category><![CDATA[Version]]></category>
		<category><![CDATA[windows registry editor]]></category>

		<guid isPermaLink="false">http://norsetech.net/kb/?p=31</guid>
		<description><![CDATA[Save the following lines as utc.reg, and then run it to import this registry tweak. It allows you to set the hardware clock in your PC&#8217;s BIOS to UTC time. This is handy for boot dual-booting Mac, or Linux, when those operating systems are set to read the BIOS clock as UTC time, instead of [...]]]></description>
			<content:encoded><![CDATA[<p>Save the following lines as <strong>utc.reg</strong>, and then run it to import this registry tweak. It allows you to set the hardware clock in your PC&#8217;s BIOS to UTC time. This is handy for boot dual-booting Mac, or Linux, when those operating systems are set to read the BIOS clock as UTC time, instead of Windows&#8217; preferred Local Time (ie. PST, PDT, MST, MDT, CST, CDT, EST, EDT, or the standard &#8220;GMT-<number of hours>&#8221; and &#8220;GMT+<number of hours>&#8220;)</p>
<p>Here is the code to save as <strong>utc.reg</strong>:</p>
<blockquote><p>Windows Registry Editor Version 5.00</p>
<p>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]<br />
&#8220;RealTimeIsUniversal&#8221;=dword:00000001</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://kb.norsetech.net/set-windows-clock-to-utc-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

