<?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>itlivewire dev blog</title>
	<atom:link href="http://itlivewire.com/devblog/feed/" rel="self" type="application/rss+xml" />
	<link>http://itlivewire.com/devblog</link>
	<description>Just another web development blog...</description>
	<lastBuildDate>Thu, 20 May 2010 13:54:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Google fonts</title>
		<link>http://itlivewire.com/devblog/2010/05/20/google-fonts/</link>
		<comments>http://itlivewire.com/devblog/2010/05/20/google-fonts/#comments</comments>
		<pubDate>Thu, 20 May 2010 07:26:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Others]]></category>
		<category><![CDATA[fonts]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://itlivewire.com/devblog/?p=364</guid>
		<description><![CDATA[
If your tired of the limited fonts available on your customers pc, try the hosted fonts made available by google
In the example code below we will be using the tangerine font 
&#60;html&#62;
  &#60;head&#62;
    &#60;link rel=&#34;stylesheet&#34; type=&#34;text/css&#34; href=&#34;http://fonts.googleapis.com/css?family=Tangerine&#34;&#62;
    &#60;style&#62;
      body {
    [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.google.com/images/icons/feature/font_api-128.gif" alt="" /><br />
If your tired of the limited fonts available on your customers pc, try the <strong>hosted fonts</strong> made available by <strong>google</strong></p>
<p>In the example code below we will be using the <a href="http://code.google.com/webfonts/family?family=Tangerine#set">tangerine</a> font </p>
<pre class="brush: php;">&lt;html&gt;
  &lt;head&gt;
    &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;http://fonts.googleapis.com/css?family=Tangerine&quot;&gt;
    &lt;style&gt;
      body {
        font-family: 'Tangerine', serif;
        font-size: 48px;
      }
    &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;h1&gt;Making the Web Beautiful!&lt;/h1&gt;
  &lt;/body&gt;
&lt;/html&gt;
</pre>
<p>Here are more starter <a href="http://code.google.com/apis/webfonts/docs/getting_started.html#Quick_Start">guide samples </a><br />
check out the <a href="http://code.google.com/webfonts">google fonts </a> directory</p>
]]></content:encoded>
			<wfw:commentRss>http://itlivewire.com/devblog/2010/05/20/google-fonts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>codeigniter upload &#8220;The filetype you are attempting to upload is not allowed&#8221;</title>
		<link>http://itlivewire.com/devblog/2010/04/13/codeigniter-upload-the-filetype-you-are-attempting-to-upload-is-not-allowed/</link>
		<comments>http://itlivewire.com/devblog/2010/04/13/codeigniter-upload-the-filetype-you-are-attempting-to-upload-is-not-allowed/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 02:36:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://itlivewire.com/devblog/?p=353</guid>
		<description><![CDATA[Error when uploading your file using codeigniter upload
&#8220;The filetype you are attempting to upload is not allowed&#8221;
Causes:
1. Invalid file type uploaded by the user your uploading (.doc when only .xls is allowed)
2. The file uploaded is not within the specified file types added in the upload config
3. Mime type error in codeigniter caused by the [...]]]></description>
			<content:encoded><![CDATA[<p>Error when uploading your file using codeigniter upload<br />
<strong>&#8220;The filetype you are attempting to upload is not allowed&#8221;</strong></p>
<p>Causes:</p>
<p>1. Invalid file type uploaded by the user your uploading (.doc when only .xls is allowed)<br />
2. The file uploaded is not within the specified file types added in the upload config<br />
3. Mime type error in codeigniter caused by the mime type of the extension does not match the mime type specified in <strong>/application/config/mimes.php</strong></p>
<p>Start by checking what is the mime type of the file your uploading </p>
<pre class="brush: php;">
$data = array('upload_data' =&gt; $this-&gt;upload-&gt;data());
$mimetype= $data['upload_data']['file_type'];
echo $mimetype;
</pre>
<p>then check in the mimes.php if that mime type matches the extension you want to upload</p>
<p>Example:<br />
word document</p>
<pre class="brush: php;">'doc'	=&gt;	'application/msword'</pre>
<p>excel file has many mime types, if its missing just add it in the array</p>
<pre class="brush: php;">'xls'	=&gt;	array('application/excel', 'application/vnd.ms-excel','application/x-msexcel')</pre>
]]></content:encoded>
			<wfw:commentRss>http://itlivewire.com/devblog/2010/04/13/codeigniter-upload-the-filetype-you-are-attempting-to-upload-is-not-allowed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get the version number of your redhat or fedora core</title>
		<link>http://itlivewire.com/devblog/2010/04/07/how-to-get-the-version-number-of-your-redhat-or-fedora-core/</link>
		<comments>http://itlivewire.com/devblog/2010/04/07/how-to-get-the-version-number-of-your-redhat-or-fedora-core/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 05:14:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Others]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://itlivewire.com/devblog/?p=350</guid>
		<description><![CDATA[cat /etc/redhat-release
]]></description>
			<content:encoded><![CDATA[<p><strong>cat /etc/redhat-release</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://itlivewire.com/devblog/2010/04/07/how-to-get-the-version-number-of-your-redhat-or-fedora-core/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP file stream</title>
		<link>http://itlivewire.com/devblog/2010/02/19/php-file-stream/</link>
		<comments>http://itlivewire.com/devblog/2010/02/19/php-file-stream/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 06:48:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://itlivewire.com/devblog/2010/02/19/php-file-stream/</guid>
		<description><![CDATA[The code below shows how to open a file from the server which cannot be accessed by the web server

$path = &#34;/home/files/documents.doc&#34;;
   header(&#34;Cache-Control: pre-check=0, post-check=0, max-age=0&#34;);
   header('Content-Type: application/octet-stream');
   header(&#34;Content-Disposition: attachment; filename=documents.doc);
   header(&#34;Content-Description: File Transfer&#34;);
   header(&#34;Content-Type:documents.doc);
   header(&#34;Last-Modified: &#34; . now());
echo readfile($path);

]]></description>
			<content:encoded><![CDATA[<p>The code below shows how to open a file from the server which cannot be accessed by the web server</p>
<pre class="brush: php;">
$path = &quot;/home/files/documents.doc&quot;;
   header(&quot;Cache-Control: pre-check=0, post-check=0, max-age=0&quot;);
   header('Content-Type: application/octet-stream');
   header(&quot;Content-Disposition: attachment; filename=documents.doc);
   header(&quot;Content-Description: File Transfer&quot;);
   header(&quot;Content-Type:documents.doc);
   header(&quot;Last-Modified: &quot; . now());
echo readfile($path);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://itlivewire.com/devblog/2010/02/19/php-file-stream/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>zenburn dreamweaver</title>
		<link>http://itlivewire.com/devblog/2010/02/04/zenburn-dreamweaver/</link>
		<comments>http://itlivewire.com/devblog/2010/02/04/zenburn-dreamweaver/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 15:21:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Others]]></category>

		<guid isPermaLink="false">http://itlivewire.com/devblog/2010/02/04/zenburn-dreamweaver/</guid>
		<description><![CDATA[
A code view theme for dreamweaver based on zenburn low contrast console theme more info on zenburn official site.
To use in dreamweaver here are the Instructions:
1. Download file here
2. Go to  C:\Documents and Settings\\Application Data\Adobe\Dreamweaver CS3\Configuration\CodeColoring
3. Backup first the original Colors.xml rename it as Colors-back.xml
4. Then paste our downloaded Colors.xml file
5. In your dreamweaver [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://farm3.static.flickr.com/2728/4330489386_59f246a2af.jpg" alt="" /><br />
A code view theme for<strong> dreamweaver </strong>based on <strong>zenburn </strong>low contrast console theme more info on <a href="http://slinky.imukuppi.org/zenburnpage/">zenburn official site</a>.</p>
<p><strong>To use in dreamweaver here are the Instructions:</strong><br />
1. Download file <a href="http://jquerymulticolumnselectbox.googlecode.com/files/Colors.xml">here</a><br />
2. Go to  C:\Documents and Settings\<PCUSER>\Application Data\Adobe\Dreamweaver CS3\Configuration\CodeColoring<br />
3. Backup first the original <strong>Colors.xml</strong> rename it as <strong>Colors-back.xml</strong><br />
4. Then paste our downloaded Colors.xml file<br />
5. In your dreamweaver go to edit->preferences->code coloring then change your background color to #3f3f3f</p>
]]></content:encoded>
			<wfw:commentRss>http://itlivewire.com/devblog/2010/02/04/zenburn-dreamweaver/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mediawiki image link to an article</title>
		<link>http://itlivewire.com/devblog/2010/02/02/mediawiki-image-link-to-an-article/</link>
		<comments>http://itlivewire.com/devblog/2010/02/02/mediawiki-image-link-to-an-article/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 05:01:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[mediawiki]]></category>

		<guid isPermaLink="false">http://itlivewire.com/devblog/?p=317</guid>
		<description><![CDATA[Images  on a MediaWiki wiki will by default, link to the description page
Here is a work around that when you click an image it will link to an ariticle
[[Image:Wiki.png&#124;50px&#124;link=MediaWiki]]
Note: The code above will work in mediawiki version 1.14 and above only
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-
Here is the workaround for older versions
Edit the Common.css
.imagelink_somename a {
  width:100px;
  [...]]]></description>
			<content:encoded><![CDATA[<p>Images  on a MediaWiki wiki will by default, link to the description page<br />
Here is a work around that when you click an image it will link to an ariticle</p>
<pre class="brush: php;">[[Image:Wiki.png|50px|link=MediaWiki]]</pre>
<p>Note: The code above will work in mediawiki version 1.14 and above only<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Here is the workaround for older versions<br />
Edit the <strong>Common.css</strong></p>
<pre class="brush: php;">.imagelink_somename a {
  width:100px;
  height:100px;
  display:block;
  text-decoration:none;
  background-image: url(&quot;http://fullurltoimage&quot;)
}</pre>
<p>In your wiki code:</p>
<pre class="brush: php;">&lt;div class=&quot;imagelink_somename&quot;&gt;[[Some link|&amp;nbsp;]]&lt;/div&gt;</pre>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
Or try the quick way</p>
<pre class="brush: php;">
&lt;div style=&quot;position: relative; width: {{{width}}}; height: {{{height}}}; overflow: hidden;&quot;&gt;
&lt;div style=&quot;position: absolute; top: 0px; left: 0px; font-size: 100px; overflow: hidden; line-height: 100px; z-index: 3;&quot;&gt;[[{{{link}}}|&amp;nbsp;&amp;nbsp;&amp;nbsp;]]&lt;/div&gt;
&lt;div style=&quot;position: absolute; top: 0px; left: 0px; z-index: 2;&quot;&gt;[[Image:{{{image}}}|{{{width}}}|{{{link}}}]]&lt;/div&gt;
&lt;/div&gt;
</pre>
<p>More workarounds found at mediawiki docs<br />
<a href="http://www.mediawiki.org/wiki/Help:Linked_images#link.3D_Syntax_available_since_version_1.14">http://www.mediawiki.org/wiki/Help:Linked_images#link.3D_Syntax_available_since_version_1.14</a></p>
]]></content:encoded>
			<wfw:commentRss>http://itlivewire.com/devblog/2010/02/02/mediawiki-image-link-to-an-article/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable Lotus Notes notes:// protocol in mediawiki</title>
		<link>http://itlivewire.com/devblog/2010/01/28/enable-lotus-note-notes-protocol-in-mediawiki/</link>
		<comments>http://itlivewire.com/devblog/2010/01/28/enable-lotus-note-notes-protocol-in-mediawiki/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 07:29:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[mediawiki]]></category>
		<category><![CDATA[lotus notes]]></category>

		<guid isPermaLink="false">http://itlivewire.com/devblog/2010/01/28/enable-lotus-note-notes-protocol-in-mediawiki/</guid>
		<description><![CDATA[Edit the LocalSettings.php
add the notes:// protocol
where you find this line (add it as an array item)
$wgUrlProtocols = array( 'http://', 'https://', 'mailto:' ,'notes://');
]]></description>
			<content:encoded><![CDATA[<p>Edit the <strong>LocalSettings.php</strong><br />
add the <strong>notes://</strong> protocol<br />
where you find this line (add it as an array item)</p>
<pre class="brush: php;">$wgUrlProtocols = array( 'http://', 'https://', 'mailto:' ,'notes://');</pre>
]]></content:encoded>
			<wfw:commentRss>http://itlivewire.com/devblog/2010/01/28/enable-lotus-note-notes-protocol-in-mediawiki/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mt_rand</title>
		<link>http://itlivewire.com/devblog/2010/01/25/mt_rand/</link>
		<comments>http://itlivewire.com/devblog/2010/01/25/mt_rand/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 11:25:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://itlivewire.com/devblog/2010/01/25/mt_rand/</guid>
		<description><![CDATA[The mt_rand() function is a drop-in replacement for rand().
It uses a random number generator with known characteristics using the Mersenne Twister from the php docs website
I somehow noticed php rand() has a pattern, So I dug up the php docs for a better rand function and end up discovering this neat random function
Use mt_rand()
&#60;?php
echo mt_rand() [...]]]></description>
			<content:encoded><![CDATA[<p>The <strong>mt_rand()</strong> function is a drop-in replacement for rand().<br />
It uses a <strong>random number generator</strong> with known characteristics using the Mersenne Twister from the <a href="http://php.net/manual/en/function.mt-rand.php">php docs </a>website</p>
<p>I somehow noticed php rand() has a pattern, So I dug up the php docs for a better rand function and end up discovering this neat random function</p>
<p><strong>Use mt_rand()</strong></p>
<pre class="brush: php;">&lt;?php
echo mt_rand() . &quot;\n&quot;;
echo mt_rand() . &quot;\n&quot;;

echo mt_rand(5, 15);

?&gt;</pre>
<p><strong>Output</strong></p>
<pre class="brush: php;">
1604716014
1478613278
6
</pre>
]]></content:encoded>
			<wfw:commentRss>http://itlivewire.com/devblog/2010/01/25/mt_rand/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>use Simple_html_dom php library with codeigniter</title>
		<link>http://itlivewire.com/devblog/2010/01/22/use-simple_html_dom-php-library-with-codeigniter/</link>
		<comments>http://itlivewire.com/devblog/2010/01/22/use-simple_html_dom-php-library-with-codeigniter/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 09:37:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://itlivewire.com/devblog/?p=286</guid>
		<description><![CDATA[
I was able to figure out how to run Simple_html_dom php library on codeigniter
Download the simple html dom library here simple html dom
I copied the file Simple_html_dom.php to
/system/libraries
Then in my controller I call it using
require_once(&#8216;Simple_html_dom.php&#8217;); 
To use it, I initialized it using this line
$html = new Simple_html_dom();
Load a page or link using the line
$html->load_file(&#8216;http://www.google.com&#8217;);
and parse [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://t0.gstatic.com/images?q=tbn:yuqMAbcQ5fAVCM:http://www.allfacebook.com/images/codeigniter-lg.gif" alt="" /></p>
<p>I was able to figure out how to run Simple_html_dom php library on codeigniter</p>
<p>Download the simple html dom library here <a href="http://sourceforge.net/projects/simplehtmldom/files/">simple html dom</a></p>
<blockquote><p>I copied the file <strong>Simple_html_dom.php</strong> to</p>
<p><strong>/system/libraries</strong></p>
<p>Then in my controller I call it using</p>
<p><strong>require_once(&#8216;Simple_html_dom.php&#8217;); </strong></p>
<p>To use it, I initialized it using this line</p>
<p><strong>$html = new Simple_html_dom();</strong></p>
<p>Load a page or link using the line</p>
<p><strong>$html->load_file(&#8216;http://www.google.com&#8217;);</strong></p>
<p>and parse or find elements using this line</p>
<p><strong>$html->find(&#8216;table tr td&#8217;)->plaintext;</strong></p>
</blockquote>
<p>works fine and fits right to what I needed to do.</p>
]]></content:encoded>
			<wfw:commentRss>http://itlivewire.com/devblog/2010/01/22/use-simple_html_dom-php-library-with-codeigniter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Celebrates greets Newton’s happy birthday Animated Logo</title>
		<link>http://itlivewire.com/devblog/2010/01/04/google-celebrates-greets-newton%e2%80%99s-happy-birthday-animated-logo/</link>
		<comments>http://itlivewire.com/devblog/2010/01/04/google-celebrates-greets-newton%e2%80%99s-happy-birthday-animated-logo/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 14:00:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Others]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[newton]]></category>

		<guid isPermaLink="false">http://itlivewire.com/devblog/2010/01/04/google-celebrates-greets-newton%e2%80%99s-happy-birthday-animated-logo/</guid>
		<description><![CDATA[Visit google today and see an animated logo of a falling apple


http://www.google.com
Newton himself often told the story that he was inspired to formulate his theory of gravitation by watching the fall of an apple from a tree.
Cartoons have gone further to suggest the apple actually hit Newton&#8217;s head.
GRAVITY&#8230;&#8230;&#8230; and there goes the apple
]]></description>
			<content:encoded><![CDATA[<p>Visit <a href="http://www.google.com">google</a> today and see an animated logo of a falling apple<br />
<a href="http://www.google.com"><br />
<img src="http://itlivewire.com/devblog/wp-content/uploads/2010/01/newton10-tree.jpg" alt="newton10-tree" title="newton10-tree" width="384" height="138" class="alignnone size-full wp-image-280" /></a><br />
<a href="http://www.google.com">http://www.google.com</a></p>
<p><strong>Newton</strong> himself often told the story that he was inspired to formulate his theory of gravitation by watching the fall of an apple from a tree.<br />
<strong>Cartoons</strong> have gone further to suggest the apple actually hit Newton&#8217;s head.</p>
<p>GRAVITY&#8230;&#8230;&#8230; and there goes the apple</p>
]]></content:encoded>
			<wfw:commentRss>http://itlivewire.com/devblog/2010/01/04/google-celebrates-greets-newton%e2%80%99s-happy-birthday-animated-logo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
