<?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>Matt Lo</title>
	<atom:link href="http://www.mattloinfo.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mattloinfo.com</link>
	<description>Blogging about Web Developement. Contact me directly on the right ---&#62;</description>
	<lastBuildDate>Thu, 19 Aug 2010 04:17:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Optimizing WordPress Site Loading</title>
		<link>http://www.mattloinfo.com/websites/optimizing-wordpress-site-loading/</link>
		<comments>http://www.mattloinfo.com/websites/optimizing-wordpress-site-loading/#comments</comments>
		<pubDate>Thu, 19 Aug 2010 04:00:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Websites]]></category>
		<category><![CDATA[optimize]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.mattloinfo.com/?p=332</guid>
		<description><![CDATA[Just launched the new theme for my blog. Its pretty standard and has a minimalistic design. Coincidentally it looks like the WordPress 3.0 admin area. Though the site was in dire need of a new design, the real reason I started this little project was to improve site speed. After moving to my new MediaTemple [...]]]></description>
			<content:encoded><![CDATA[<p>Just launched the new theme for my blog. Its pretty standard and has a minimalistic design. Coincidentally it looks like the WordPress 3.0 admin area. Though the site was in dire need of a new design, the real reason I started this little project was to improve site speed. After moving to my new MediaTemple (dv) server, I noticed that this site was using up a lot of bandwidth (My old hosting didnt even gauge my bandwidth&#8230;).</p>
<p>After looking at my site&#8217;s final output source code, I concluded&#8230;</p>
<ol>
<li>My site has way to many plugins. I had many 3rd party sources which really delayed the site from being fully loaded</li>
<li>The current theme was using a lot of useless JavaScript</li>
<li>Some images used in the blog were not being stored locally</li>
<li>High file size (for the web) JavaScript and CSS files</li>
<li>Twitter Plugin wasn&#8217;t caching the data properly</li>
</ol>
<p>Once I figured this all out, the best solution was really to delete all unused plugins and removed plugins that relied heavily outside the site. I also minified my CSS and used very small images for the layout. Overall I would say the main source of the loading time being over 6 seconds using the old theme was primarily due to all the external calling because sometimes the load would be really long on retrieving the script or image.</p>
<p>Anyhow the new theme is up, I&#8217; m ready to see if some of the keywords I&#8217;m targeting will get a higher rank due to increase site performance!</p>
<div id="attachment_336" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.mattloinfo.com/wp-content/uploads/2010/08/compare-e1282191244505.jpg"><img class="size-full wp-image-336" title="compare" src="http://www.mattloinfo.com/wp-content/uploads/2010/08/compare-e1282191244505.jpg" alt="" width="600" height="549" /></a><p class="wp-caption-text">Old vs New</p></div>
<p style="text-align: center;">
]]></content:encoded>
			<wfw:commentRss>http://www.mattloinfo.com/websites/optimizing-wordpress-site-loading/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CodeIgniter &#8211; Multiple Views</title>
		<link>http://www.mattloinfo.com/coding/codeigniter-multiple-views/</link>
		<comments>http://www.mattloinfo.com/coding/codeigniter-multiple-views/#comments</comments>
		<pubDate>Mon, 03 May 2010 22:26:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Concepts]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[MVC]]></category>

		<guid isPermaLink="false">http://www.mattloinfo.com/?p=321</guid>
		<description><![CDATA[If you want a main header and footer file (like WordPress) with variables passed from the controller then continue reading. The content below simply displays this exact layout. The controller file holds an array with array so on the first view file, the second array can still be passed, thus keeping organization between the header, [...]]]></description>
			<content:encoded><![CDATA[<p>If you want a main header and footer file (like WordPress)  with variables passed from the controller then continue reading. The content below simply displays this exact layout.</p>
<p>The controller file holds an array with array so on the first view file, the second array can still be passed, thus keeping organization between the header, the main page, and the footer.</p>
<p>Some Controller File</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">// Create a 2 dimensional to pass variables.</span>
<span style="color: #000000; font-weight: bold;">class</span> page <span style="color: #000000; font-weight: bold;">extends</span> Controller <span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">function</span> index<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$data</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'header'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'title'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Title Tag'</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span>_loader<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;home&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$data</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Home is the main view page</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>The $header and $footer variables are based on the array that was passed initially. Remember the array keys get converted to the actual variable name when its passed onto the viewer.</p>
<p>Main View Page</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">load</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">view</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;header&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$header</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
MAIN CONTENT
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">load</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">view</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;footer&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Header File</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">....
&lt;title&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$title</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/title&gt;
....</pre></div></div>

<p>Pay attention to $data['header']['title'] and see how the data travels through both views.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mattloinfo.com/coding/codeigniter-multiple-views/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP CodeIgniter In a Nutshell</title>
		<link>http://www.mattloinfo.com/frameworks/php-codeigniter-in-a-nutshell/</link>
		<comments>http://www.mattloinfo.com/frameworks/php-codeigniter-in-a-nutshell/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 07:06:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.mattloinfo.com/?p=310</guid>
		<description><![CDATA[Need something lightweight? Something that has a small footprint? Well those are the exact messages EllisLab, Inc. are trying to deliver to web developers. CodeIgniter is a very small, fast and efficient, easy to learn framework that helps rapidly deploy bottom up PHP applications. Similar to PHPCake, its&#8217; goals are to move straight forward to [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" src="http://www.rlmseo.com/blog/wp-content/uploads/2010/02/codeigniter-lg.gif" alt="" width="127" height="127" />Need something lightweight? Something that has a small footprint? Well those are the exact messages EllisLab, Inc. are trying to deliver to web developers. CodeIgniter is a very small, fast and efficient, easy to learn framework that helps rapidly deploy bottom up PHP applications. Similar to PHPCake, its&#8217; goals are to move straight forward to the real development work and cruise pass the routine back-end work such as database configurations, session handling, and permalinks.</p>
<div class="wp-caption alignleft" style="width: 404px"><img class=" " title="MVC Example" src="http://upload.wikimedia.org/wikipedia/commons/thumb/2/2e/ModelViewControllerDiagram.svg/500px-ModelViewControllerDiagram.svg.png" alt="" width="394" height="185" /><p class="wp-caption-text">MVC Example</p></div>
<p>C.I. uses a programming model called an MVC (Model-View-Controller). The model provides the data in which the controller processes it and the view displays the data processed by the controller. This model helps keep applications organized, OOP oriented, and separates the developer from the programmer. Though the initial deployment does not have a template engine enabled, it does offer a template parser class through its extensive library.</p>
<p>The framework&#8217;s library is what really makes CodeIgniter a real winner. Several classes help start up your application such as a sql/odbc query class, pagination class, session class (handled via cookies), benchmarking class, XML-RPC class and several others that really help launch bottom up applications. With an extensive up to date user guide, it definitely makes learning all the libraries a breeze. If there&#8217;s anything too complicated, C.I.&#8217;s forums become a really great resource to receive help and collaborate with others. Think of CodeIgniter as the WordPress for Custom PHP applications, its not hard setting up and and its easy to get started; you&#8217;re not bound to many rules (unlike other PHP frameworks). There&#8217;s a ton of 3rd party plugins and libraries that bring CodeIgniter into the future of rapid  web based application development. With its great debugging tools, auto-loading libraries, and online community support, its definitely worth testing future applications on this fantastic framework.</p>
<p><a href="http://codeigniter.com/" target="_blank">http://codeigniter.com/</a></p>
<p><a href="http://codeigniter.com/user_guide/" target="_blank">http://codeigniter.com/user_guide/</a> &lt;&#8211; Excellent documentation</p>
<p><span style="color: #999999;"><em>I just recently started using CodeIgniter for a recently iPhone Web App (http://bowl.mattlo.info)  for testing purposes and now going to start using it for my clients. The only thing I&#8217;m getting used to is when I&#8217;m using AJAX to send info via URI, I have to use a permalink-style link because CodeIgniter does not allow you to use $_GET in PHP. Though you can disable that rule, I&#8217;d rather just get used to the permalink structure of passing data. I will write a more extensive C.I. article once I really master the framework. This is an extremely brief overview of CodeIgniter and I strongly encourage you try out the framework yourself!<br />
</em></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mattloinfo.com/frameworks/php-codeigniter-in-a-nutshell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Redirect Index to Root</title>
		<link>http://www.mattloinfo.com/coding/php-index-to-root/</link>
		<comments>http://www.mattloinfo.com/coding/php-index-to-root/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 01:26:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[301 redirect]]></category>
		<category><![CDATA[index]]></category>
		<category><![CDATA[mod rewrite]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[root]]></category>

		<guid isPermaLink="false">http://www.mattloinfo.com/?p=304</guid>
		<description><![CDATA[Recently I ran into a problem where I needed http://www.domain.com/index.php 301 redirected to http://www.domain.com/ and if you redirect index to ./ you will run into an infinite loop situation. Since root is index.php, 301 redirecting using header() will just call index.php again, and on reload it&#8217;ll do the same thing. Using REQUEST_URI in PHP you [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I ran into a problem where I needed http://www.domain.com/index.php 301 redirected to http://www.domain.com/ and if you redirect index to ./ you will run into an infinite loop situation. Since root is index.php, 301 redirecting using header() will just call index.php again, and on reload it&#8217;ll do the same thing. Using REQUEST_URI in PHP you can determine what the exact URL instead of looking up the absolute path which will always end up with index.php. My solution is below.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REQUEST_URI'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;/index.php&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;HTTP/1.1 301 Moved Permanently&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;location: http://YOUR-DOMAIN-NAME.COM/&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Very easy alternative if you don&#8217;t have .htaccess (like on Windows Servers).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mattloinfo.com/coding/php-index-to-root/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tutorial: How to Install WordPress</title>
		<link>http://www.mattloinfo.com/misc/tutorial-how-to-install-wordpress/</link>
		<comments>http://www.mattloinfo.com/misc/tutorial-how-to-install-wordpress/#comments</comments>
		<pubDate>Fri, 25 Dec 2009 18:24:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[Websites]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.mattloinfo.com/?p=298</guid>
		<description><![CDATA[Before you install WordPress, you&#8217;ll definitely want to see all the options on the table. You can either go on http://wordpress.com/ and sign up a blog for free over there or you can download the latest version and install it on a server/webhosting. Since this is a tutorial in how-to, you&#8217;ll definitely want to download [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-size: 16px;">Before you install WordPress, you&#8217;ll definitely want to see all the options on the table. You can either go on http://wordpress.com/ and sign up a blog for free over there or you can download the latest version and install it on a server/webhosting. Since this is a tutorial in how-to, you&#8217;ll definitely want to download WordPress and have your own blog on your own domain.</span></p>
<p><strong>Requirements</strong></p>
<ul>
<li>PHP 4.3 or greater</li>
<li>MySQL 4.1.2 or greater</li>
<li>Mod Rewrite enabled on a LAMP/WAMP Server</li>
<li>FTP enabled server (prompt host/username/password)</li>
<li>MySQL database (prompt host/database name/username/password)</li>
<li>Dedication to update!</li>
</ul>
<p>After confirming the requirements, go ahead and download the latest version of WordPress at <a href="http://wordpress.org/download/">http://wordpress.org</a>.</p>
<p>Once you downloaded the zip/tar onto your desktop, go ahead and extract all the files to the desktop.</p>
<p>This next part you will need an FTP client (<a href="http://filezilla-project.org/download.php?type=client" target="_blank">http://filezilla-project.org/</a>).</p>
<ol>
<li>Open the FTP Client</li>
<li>On the top bar (quick connect), fill out the host, username, and password</li>
<li>Go to the directory you want wordpress (for mine its the HTTP root NOT the main root)</li>
<li>On your desktop open the wordpress folder and select all the files then drag it into the server windows on the FileZilla (or your own FTP client). The reason you don&#8217;t drag the WordPress folder itself because then the url would be http://yourdomain.com/wordpress instead of http://yourdomain.com</li>
<li>Once all the files have been uploaded, close everything out, open your browser and go to the URL you uploaded wordpress to.</li>
</ol>
<p>If you have your database information ready, go ahead and click <strong>create configuration</strong>. Fill out all the database information in its respected spots.</p>
<p>Once you submitted the information and the database has been confirmed, copy down the password it generates (I just copy paste it because you can change it right after). After that click <strong>login</strong>.</p>
<p>Username: <em>admin</em><br />
Password: <em>(CTRL + V) </em>if you copied the text.</p>
<p>Once you login, on the top a yellow bar with red text prompts you to change your password. Click<strong> yes</strong> then change the password (scroll down) to whatever you want.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mattloinfo.com/misc/tutorial-how-to-install-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>4 Ways to use an IP Address</title>
		<link>http://www.mattloinfo.com/coding/4-ways-to-use-an-ip-address/</link>
		<comments>http://www.mattloinfo.com/coding/4-ways-to-use-an-ip-address/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 16:28:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[ip address]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.mattloinfo.com/?p=281</guid>
		<description><![CDATA[1) Tracking &#8211; In addition with cookies, IP addresses can be useful for tracking individual computers or networks. Take example one of the worlds greatest tracking analysis websites—Google Analytics (aka Urchin). Using IP Based information, Google can track, look up past visits, know what pages you visited, and what pages you came from (using http [...]]]></description>
			<content:encoded><![CDATA[<p><strong>1) Tracking</strong> &#8211; In addition with cookies, IP addresses can be useful for tracking individual computers or networks. Take example one of the worlds greatest tracking analysis websites—Google Analytics (aka Urchin). Using IP Based information, Google can track, look up past visits, know what pages you visited, and what pages you came from (using http refer). IPs can give the anonymous visitor a name and collect data on that name.</p>
<p><strong>2) User Interactivity</strong> &#8211; Display a user online script or even develop an online chatting program based on IP availability. With Session Handling, you could  have people interact with each other by classifying IPs and logged in users that match those IP Addresses. Majority of online games are based using IPs. Though Session Handling could also provide user interactivity alone..</p>
<p><strong>3) Ban Hammer</strong> &#8211; The three most effective way of banning someone off your website is Email, Username, and IP Address. Email and username are only available if users have the option to register their name. IP Addresses can be recorded without the user knowing. The only backdraw to this is if you ban an IP thats networking 10 computers, all 10 computers will be banned.  That is the only downside when using IP as a ban hammer (though used commonly across the web).</p>
<p><strong>4) Exceptions</strong> &#8211; Want to make a private viewing site specific towards a network? IP Exception (along with Cookies) are excellent. Give people cookies, record their IP Address, show them a sneak peak of what you&#8217;re working on. Great for showing a specific client how much work has been completed (if your a web developer) or if your just showing a small crowd of people a video and not want to program a login script.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mattloinfo.com/coding/4-ways-to-use-an-ip-address/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Download Twitter Followers</title>
		<link>http://www.mattloinfo.com/marketing/download-twitter-followers/</link>
		<comments>http://www.mattloinfo.com/marketing/download-twitter-followers/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 08:26:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Marketing]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[follow]]></category>
		<category><![CDATA[follower]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://www.mattloinfo.com/?p=274</guid>
		<description><![CDATA[Ever wanted to download followers from somebody&#8217;s Twitter account in a basic list format? I recently made one that does just that. Its pretty easy to use too (has some jQuery to have a better interface). Download Twitter Follower PHP Script Note: This is just a quick version of the script, not really tested in [...]]]></description>
			<content:encoded><![CDATA[<p>Ever wanted to download followers from somebody&#8217;s Twitter account in a basic list format? I recently made one that does just that. Its pretty easy to use too (has some jQuery to have a better interface).</p>
<p><img class="alignleft" title="Zip" src="http://www.sibcar.ru/images/zip.png" alt="" width="19" height="19" /> <a href="http://mattloinfo.com/downloads/twitter_followers.zip" target="_blank"><span style="font-size: 20px;">Download Twitter Follower PHP Script</span></a></p>
<p>Note: This is just a quick version of the script, not really tested in secure environments or anything. Expect the script to break if you don&#8217;t type in a real screen name, watch your API call limits, or if you don&#8217;t have a valid authentication login.</p>
<p><strong>Instructions</strong></p>
<ol>
<li>Download, Extract, Upload to Web Server</li>
<li>Edit get.php (username and password)</li>
<li>http://path.to/script</li>
<li>Type in a valid screen name and you&#8217;re good to go</li>
</ol>
<p>There are limitations to this such as the Twitter API calling limit. You can only follow so many people before the script breaks unless your IP or account is whitelisted. You might think..well okay the API call limit per hour is 150, that means I can search 150 screen names in 1 hour, that&#8217;s not bad at all. WRONG. The program can only grab 100 followers per call, so say I wanted to grab an account with 1000 followers, it will take 10 API calls to grab all 1000 followers. If you wanted to grab 10 accounts with 1000 followers&#8230;well you can do the math. 15 Accounts per hour with that situation is inefficient. Getting an account whitelisted can help ya overcome that limit.</p>
<p>For a more professional version of this script with more features, contact me and I will give you a quote. It&#8217;s good having such a feature on your site, it&#8217;ll help you market your business or website better with millions of twitter accounts recorded on your database.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mattloinfo.com/marketing/download-twitter-followers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Generation Twitter 2</title>
		<link>http://www.mattloinfo.com/media/generation-twitter-2/</link>
		<comments>http://www.mattloinfo.com/media/generation-twitter-2/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 05:16:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Concepts]]></category>
		<category><![CDATA[Media]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[social media]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://www.mattloinfo.com/?p=243</guid>
		<description><![CDATA[How does a web developer have any use of Twitter? Well one you have the potential of finding people with similar coding styles, two you could gain knowledge on a daily basis by following thousands of people, or three you could market yourself to either obtain a job or find business for your freelance/independent work. [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">How does a web developer have any use of Twitter? Well one you have the potential of finding people with similar coding styles, two you could gain knowledge on a daily basis by following thousands of people, or three you could market yourself to either obtain a job or find business for your freelance/independent work. Knowing how to use the Twitter API also helps in increasing your work. Take a look at (It&#8217;s Always Sunny in Philadelphia)&#8217;s website owned by FX.</p>
<p style="text-align: left;"><a href="http://www.fxnetworks.com/shows/originals/sunny/" target="_blank">http://www.fxnetworks.com/shows/originals/sunny/</a></p>
<p style="text-align: left;">They completely dominated their site with Twitter. Is it a good thing? Of course it is! Think about it, user feed back increases which means more people are going back to their site for videos, pictures, and exclusive content. Because Twitter is real-time they took the advantage of the example of a real-time stock ticker and transformed it into a real-time Twitter ticker. One of many ways to make Twitter unique.</p>
<p style="text-align: left;">To the point&#8230;Twitter is a business companion and also an advantage for web developers. Knowing how to utilize the Twitter API and also knowing the business advantages of using Twitter for marketing purposes is a enormous plus for your resume and a great way to attract clients (for you web freelancers out there). But remember, if your going into marketing, you need to know all the aspects of social media to really be &#8220;hip&#8221; in today&#8217;s trends. Customers want to relate to something, don&#8217;t be Twitter only because there&#8217;s a large statistic somewhere stating X amount of people have no idea what the hell Twitter is. Just take advantage of Twitter in most of its many corners.</p>
<p style="text-align: left;"><strong>Future</strong></p>
<p style="text-align: left;">Everyone that&#8217;s computer savvy knows about Twitter now so what does that mean 5, 10, or 15 years down the road. Will there be a company that will buy out Twitter or will Twitter be the centralization of all real-time social data? My blog (http://mattloinfo.com/) already is using Twitter to bridge real-time contacting to my phone. CNN is using the Twitter to communicate with its viewers and at the same time informing the public. Iran recently used Twitter to voice their opinion in a dictatorship nation. So what&#8217;s the future of Twitter? In my perspective, its going to turn into what we saw happen with the .com and internet shopping. Stock up on ideas and names because down the road, everyone will know Twitter and it will be a custom to life. Facebook is already the best site to communicate between friends and family. Because Twitter is more public, it will lag in its popularity due to the factor of openness and lack of &#8220;pretty features.&#8221; Applications already tie Twitpick, Twitter, and other applications but it&#8217;s still easier using Facebook. So how will Twitter progress to the younger non tech savvy crowd? Time. Celebrities, news, weather, and friends will make Twitter be a foundation Web 3.0 and a reality for all communicative devices. So again, if you have ideas in how to use this flexible way of communicating, be curious and look into your ideas. One day some team will become millionaires because they invented a method of using Twitter with a non price related variable to attract customers in a positive way that can be dependable. It&#8217;s like the lotto for web developers. Gear up with your knowledge of PHP and start inventing already. Tell me your thoughts on Twitter <a href="http://twitter.com/matt_lo">@matt_lo</a>.</p>
<p style="text-align: left;">P.S. the @ (at) sign is already mainstreaming into the web as a form of meaning (Twitter contact). When we see example@yahoo.com we know its an email, eventually @example would mean its a Twitter account.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mattloinfo.com/media/generation-twitter-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Parsing RSS Feeds using cURL and SimpleXML</title>
		<link>http://www.mattloinfo.com/coding/parsing-rss-feeds-using-curl-and-simplexml/</link>
		<comments>http://www.mattloinfo.com/coding/parsing-rss-feeds-using-curl-and-simplexml/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 06:49:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[parse rss feeds]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[rss feeds]]></category>

		<guid isPermaLink="false">http://www.mattloinfo.com/?p=231</guid>
		<description><![CDATA[For a while I&#8217;ve been using PHP&#8217;s extension cURL and SimpleXML to obtain API XML info from sites like Twitter and Bizzare Creations. Since the format for RSS feeds and XML are the same, I don&#8217;t see why I can&#8217;t use the same method so I&#8217;ve decided to try it out. Normally I would make [...]]]></description>
			<content:encoded><![CDATA[<p>For a while I&#8217;ve been using PHP&#8217;s extension cURL and SimpleXML to obtain API XML info from sites like Twitter and Bizzare Creations. Since the format for RSS feeds and XML are the same, I don&#8217;t see why I can&#8217;t use the same method so I&#8217;ve decided to try it out.</p>
<p>Normally I would make a class and all but for display purposes I&#8217;m going to keep it simple. Remember, you need to have cURL and SimpleXML extension enabled in your php.ini</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$rss_feed</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;http://www.bungie.net/News/NewsRss.ashx&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// halo 3 news eh?</span>
&nbsp;
<span style="color: #000088;">$ch</span> <span style="color: #339933;">=</span> <span style="color: #990000;">curl_init</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$rss_feed</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_RETURNTRANSFER<span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_CONNECTTIMEOUT<span style="color: #339933;">,</span> <span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$data</span> <span style="color: #339933;">=</span> <span style="color: #990000;">curl_exec</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// put data from rss url into variable</span>
<span style="color: #990000;">curl_close</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>All thats happening on top is simply going to the URL provided and getting the rss feed source code (aka the info).</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// handle the xml data parsing</span>
<span style="color: #000088;">$xml</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> SimpleXmlElement<span style="color: #009900;">&#40;</span><span style="color: #000088;">$data</span><span style="color: #339933;">,</span> LIBXML_NOCDATA<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Do some testing with the data using print_r();</span>
<span style="color: #666666; font-style: italic;">// We gotta see what info we need</span>
&nbsp;
&nbsp;
<span style="color: #990000;">print_r</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$xml</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// it'll show all the data from the RSS feed but we</span>
<span style="color: #666666; font-style: italic;">// only need the news so lets shrink our test</span>
&nbsp;
<span style="color: #990000;">print_r</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$xml</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">channel</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// item is an array so we can put a loop to process it</span>
<span style="color: #666666; font-style: italic;">// NOTE: channel and item are the variables used in the source feed</span>
<span style="color: #666666; font-style: italic;">// Other RSS Feeds may not have all this, though it should be standard</span>
<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$xml</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">channel</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">item</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
<span style="color: #000088;">$item</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">description</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// will show each description for each item</span>
<span style="color: #666666; font-style: italic;">// other options that can be included (by doing tests,</span>
<span style="color: #666666; font-style: italic;">// you can find out what options are available)</span>
<span style="color: #666666; font-style: italic;">// title, link, pubDate, guid, description</span>
&nbsp;
<span style="color: #000088;">$item</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">link</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// would give you the url to the news article</span>
<span style="color: #000088;">$item</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">title</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// title of the article, obviously</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// AGAIN: variables names may be different, use print_r($xml)</span>
<span style="color: #666666; font-style: italic;">// to initially find out your variables</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Thats it! The Step Process is as simple as 1, 2, and 3.<br />
1) Get info via cURL<br />
2) Parse info via SimpleXML<br />
3) Select what you need by viewing the whole variable, and pick vars out</p>
<p>When the loop was occurring, you notice that I didn&#8217;t start the url using <code>$xml</code>. That&#8217;s because the [ITEM] tag was already converted into a SimpleXML format (all the variables were) so using <code>$item->description</code> is definitely valid. <code>$xml->channel->item[0]->description</code> will get the same result if you want to see a different perspective in whats going on. </p>
<p>If you want to play around with the data, instead of echoing the variables, just have other variables equal them for organization.</p>
<p>Full working source below</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$ch</span> <span style="color: #339933;">=</span> <span style="color: #990000;">curl_init</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'http://www.bungie.net/News/NewsRss.ashx'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_RETURNTRANSFER<span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_CONNECTTIMEOUT<span style="color: #339933;">,</span> <span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$data</span> <span style="color: #339933;">=</span> <span style="color: #990000;">curl_exec</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">curl_close</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$xml</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> SimpleXmlElement<span style="color: #009900;">&#40;</span><span style="color: #000088;">$data</span><span style="color: #339933;">,</span> LIBXML_NOCDATA<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$xml</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">channel</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">item</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$item</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$item</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$key</span><span style="color: #339933;">=&gt;</span><span style="color: #000088;">$details</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #666666; font-style: italic;">// XML is all the way down to</span>
		<span style="color: #666666; font-style: italic;">// the core array, no need</span>
		<span style="color: #666666; font-style: italic;">// to do $xml-&gt;... or </span>
		<span style="color: #666666; font-style: italic;">// $item-&gt;...</span>
		<span style="color: #666666; font-style: italic;">// the loop did the work for us</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;strong&gt;'</span><span style="color: #339933;">.</span><span style="color: #990000;">ucwords</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$key</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>
		<span style="color: #0000ff;">':&lt;/strong&gt; '</span><span style="color: #339933;">.</span><span style="color: #000088;">$details</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;br /&gt;'</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;br /&gt;&lt;br /&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.mattloinfo.com/coding/parsing-rss-feeds-using-curl-and-simplexml/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Next generation of communication, the reality of Twitter</title>
		<link>http://www.mattloinfo.com/news/next-generation-of-communication-the-reality-of-twitter/</link>
		<comments>http://www.mattloinfo.com/news/next-generation-of-communication-the-reality-of-twitter/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 22:39:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Websites]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[web 2.0]]></category>

		<guid isPermaLink="false">http://www.mattloinfo.com/?p=224</guid>
		<description><![CDATA[Micro-blogging is now one of the most popular things to do on the phone, personal computer, and now on Xbox gaming console. With only a 140 characters to type, its plenty of room to type an “update status” but not enough to type an essay, which means this makes twitter an easy read. But is [...]]]></description>
			<content:encoded><![CDATA[<p>Micro-blogging is now one of the most popular things to do on the phone, personal computer, and now on Xbox gaming console. With only a 140 characters to type, its plenty of room to type an “update status” but not enough to type an essay, which means this makes twitter an easy read. But is that all twitter can really do? Why is Twitter so important if it’s only about updating a person’s status? Facebook has videos, photos, applications, and the status feature…why Twitter?</p>
<p>As Twitter is becoming a custom to society, so is there API. TweetDeck, Tweetie, and DestroyTwitter are all applications and make “tweeting” a more pleasurable experience. Quickly go on a phone and send out a tweet or hop on the laptop to send out a quick status update on DestoryTwitter, without going directly to twitter.com. This is all so popular because of the convenience of twitter. Sure Facebook has an iPhone application, a mobile version of their website, and an extensive API but the interface just has so many options. Any person going on any of these extensions, will be spending about a minute looking at stuff and writing a status update. Twitter is simple, type, press post and it’s there. Read a tweet here and there; catch up on the people following&#8230; Twitter is not ever going to bring down Facebook because that website is mainly to connect a whole lives to the world verses Twitter is to connect real-time situations to the world. The nature of Twitter is “NOW”, the nature of Facebook is “What’s Up?”</p>
<p>The popularity of Twitter is so great, more and more developers are clinging to their API to connect it with their own business. A company might purposely leak some of their new product info so they use Twitter to fulfill that motive. An airline company might want to attract first time customers by offering extremely low “instant” tickets to help bridge a long term relationship with the customer. These are ideas that people are using on Twitter. For me though, I’m taking Twitter for a ride like no other.</p>
<p>Over the past 3 months, I have been conjuring ideas in how a massively used system can be used to communicate with other aspects of the Internet, like websites, video games, and news. Thinking to myself, all these are easily accessible at the comfort at my own home, why would I go through the trouble of doing such a thing? The answer is simply mobility. We’re in the world of “NOW”, impatient and thirsty of knowledge in the shortest amount of time. That’s how America is today. Kids all have mobile phones to communicate instead of calling from their home, a 15 minute delay on an airplane causes a mass crowd of “sighing”, and computers tend to be unnecessarily reset if it takes longer than 25 seconds to watch a YouTube video. These setbacks in life are not major, but they do become annoying when we should be in a life of demand with all this technology around us. It&#8217;s time to really take advantage of mobility applications and take it to it&#8217;s full extent. I plan on making several projects linking the aspect of mobility, to all corners of the web (without Safari).</p>
<p>Using Apache’s Cron Job and the concept of garbage collecting, I can create a website that obtains data and returns a result based on that data. For example using a browserless phone, I want to find out the weather tomorrow morning without going on weather.com because I’m on the train; I type in –FindWeather Tomorrow, within a minute I can receive a reply in how the weather will be the next day. Just enough time in between to check my tweets, text messages, and mail on my phone. Another concept is seeing who’s online in Facebook without going on Facebook. Like I stated before, going on Facebook directly will usually direct your full attention to there even if there’s nobody online. If I don’t want to waste my time loading for Facebook, I can just tweet my way in there to see who is online so if no one is online I won’t have to go onto Facebook. The situation there might seem trivial but its reality to most. If we can check up things without going through a &#8220;process&#8221;, the hassle of touching/clicking, or the interuption of &#8220;friend media&#8221;, gathering information from different corners all at the same time can be optimized. This is why I&#8217;m trying out this idea, to use Twitter to gather info all in a &#8220;any-format&#8221; display. These are just some of the ideas I’ll be testing in the upcoming months. I’ll keep a widget on my blog to show the progress of my new ideas.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mattloinfo.com/news/next-generation-of-communication-the-reality-of-twitter/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->