<?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>Christopher Rivera &#187; Programming</title>
	<atom:link href="http://www.chrisrivera.com/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chrisrivera.com</link>
	<description>Nothing Better Than The Classics</description>
	<lastBuildDate>Thu, 29 Sep 2011 22:20:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Space Elevators according to xkcd.com</title>
		<link>http://www.chrisrivera.com/2009/01/29/space-elevators-according-to-xkcdcom/</link>
		<comments>http://www.chrisrivera.com/2009/01/29/space-elevators-according-to-xkcdcom/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 14:59:38 +0000</pubDate>
		<dc:creator>chrisrivera</dc:creator>
				<category><![CDATA[Web-Development]]></category>
		<category><![CDATA[WTF]]></category>
		<category><![CDATA[Carlos Mencia]]></category>
		<category><![CDATA[Mind of Mencia]]></category>
		<category><![CDATA[Space Elevators]]></category>

		<guid isPermaLink="false">http://www.chrisrivera.com/?p=133</guid>
		<description><![CDATA[This is so funny and yet so true.]]></description>
			<content:encoded><![CDATA[<p>This is so funny and yet so true.</p>
<p><a href="http://xkcd.com/536/"><img class="alignnone" src="http://imgs.xkcd.com/comics/space_elevators.png" alt="" width="503" height="177" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.chrisrivera.com/2009/01/29/space-elevators-according-to-xkcdcom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Great Vim article from DeveloperWorks</title>
		<link>http://www.chrisrivera.com/2008/09/16/great-vim-article-from-developerworks/</link>
		<comments>http://www.chrisrivera.com/2008/09/16/great-vim-article-from-developerworks/#comments</comments>
		<pubDate>Tue, 16 Sep 2008 00:23:49 +0000</pubDate>
		<dc:creator>chrisrivera</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.chrisrivera.com/?p=48</guid>
		<description><![CDATA[IBM&#8217;s DeveloperWorks has a great article on using Vim. It covers alot of commands and a number of the special features in Vim. Check it out.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.ibm.com/developerworks/aix/library/au-speakingunix_vim/index.html" target="_blank">IBM&#8217;s DeveloperWorks</a> has a great article on using Vim. It covers alot of commands and a number of the special features in Vim. Check it out.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chrisrivera.com/2008/09/16/great-vim-article-from-developerworks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Chrome &#8211; Test Drive</title>
		<link>http://www.chrisrivera.com/2008/09/03/google-chrome-test-drive/</link>
		<comments>http://www.chrisrivera.com/2008/09/03/google-chrome-test-drive/#comments</comments>
		<pubDate>Wed, 03 Sep 2008 16:31:38 +0000</pubDate>
		<dc:creator>chrisrivera</dc:creator>
				<category><![CDATA[Web-Development]]></category>

		<guid isPermaLink="false">http://www.chrisrivera.com/?p=46</guid>
		<description><![CDATA[I decided to give a try of the new Google browser called Chrome. So far I really like it. I&#8217;ve been using it for about 4 hours so far, and here is what I like about it. The internal design &#8230; <a href="http://www.chrisrivera.com/2008/09/03/google-chrome-test-drive/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I decided to give a try of the new Google browser called <a href="http://www.google.com/chrome" target="_blank">Chrome</a>. So far I really like it. I&#8217;ve been using it for about 4 hours so far, and here is what I like about it.</p>
<p><span id="more-46"></span></p>
<ul>
<li>The internal design of the browser, where it creates a sepeate thread for each webpage is great. I&#8217;ve run into situations with firefox where it crashes on me occassionally. It&#8217;s annoying to have a crash, especially when working on something. Chrome manages to seperate that crash so that the tab where the page is at crashes, not the entire browser.</li>
<li>The user interface is simple. The url bar also acts as a search bar. It should have been like that from the beginning. It&#8217;s great. I don&#8217;t have to go between two different areas to go to either a webpage or do a search.</li>
<li>The ability to create an application link. Say you go to a website often. Make it an application accessible from your desktop or quickbar. One click and you&#8217;re there. Awesome.</li>
<li>I can drag a tabbed window from the browser and make it it&#8217;s own window without having the page reload. FRAKKING AWESOME. This is by far the best feature for me. As a developer, there are times I have multiple tabs in one window, but then I want to seperate the tab into it&#8217;s own window for side by side comparison. Now I can with ease. I can also drag a window back into the tabs, without the page reloading.</li>
<li>It imported everything from my firefox browser. I was able to surf immediately.</li>
</ul>
<p>Overall, I&#8217;m very happy with this browser. Granted, I don&#8217;t have some of the plugins I use for firefox, available for Chrome yet, but I think in time, they will appear.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chrisrivera.com/2008/09/03/google-chrome-test-drive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Tip: Using the More Link</title>
		<link>http://www.chrisrivera.com/2008/08/26/wordpress-tip-using-the-more-link/</link>
		<comments>http://www.chrisrivera.com/2008/08/26/wordpress-tip-using-the-more-link/#comments</comments>
		<pubDate>Tue, 26 Aug 2008 16:24:13 +0000</pubDate>
		<dc:creator>chrisrivera</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Web-Development]]></category>

		<guid isPermaLink="false">http://www.chrisrivera.com/?p=38</guid>
		<description><![CDATA[I was noticing in the wordpress admin, that you can add a more link. This more link is very useful. Have you ever been to a website an noticed that each blog posting just runs on and on? Well some &#8230; <a href="http://www.chrisrivera.com/2008/08/26/wordpress-tip-using-the-more-link/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I was noticing in the wordpress admin, that you can add a more link. This more link is very useful. Have you ever been to a website an noticed that each blog posting just runs on and on? Well some of the postings on my own site have been very long, and I don&#8217;t really like that. I want them to be more of an intro text on the homepage, with a link to read more. Here&#8217;s an example.</p>
<p><span id="more-38"></span></p>
<p>So I noticed the more link and was wondering what it did. I created a test post, clicked the link, and it visual adds this line bar with a more link. I published the blog, went to the homepage and noticed, anything above the more link is shown, anything below it is not. Cool. Definitely a good feature to have. It allows your user to scan the entries when they view them on the homepage and when they view by category, then they can read the entire posting when they click more.</p>
<p>I&#8217;m happy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chrisrivera.com/2008/08/26/wordpress-tip-using-the-more-link/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fedex API testing</title>
		<link>http://www.chrisrivera.com/2008/08/12/fedex-api-testing/</link>
		<comments>http://www.chrisrivera.com/2008/08/12/fedex-api-testing/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 16:52:47 +0000</pubDate>
		<dc:creator>chrisrivera</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.chrisrivera.com/?p=22</guid>
		<description><![CDATA[I&#8217;m currently working on a project where we want to integrate some of the Fedex functionality. I have the test account, and all the php code, and wsdl files. The one thing you can&#8217;t seem to find on their website, &#8230; <a href="http://www.chrisrivera.com/2008/08/12/fedex-api-testing/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m currently working on a project where we want to integrate some of the Fedex functionality. I have the test account, and all the php code, and wsdl files. The one thing you can&#8217;t seem to find on their website, is the specific url for testing. I did some digging online and found a post from someone who ran into the same problem. The solution was to change the url from https://gateway.fedex.com:443/web-services to https://gatewaybeta.fedex.com:443/web-services</p>
<p>Fedex, please update your dev site with this little bit of information.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chrisrivera.com/2008/08/12/fedex-api-testing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress releases version 2.6</title>
		<link>http://www.chrisrivera.com/2008/07/23/wordpress-releases-version-26/</link>
		<comments>http://www.chrisrivera.com/2008/07/23/wordpress-releases-version-26/#comments</comments>
		<pubDate>Wed, 23 Jul 2008 13:07:00 +0000</pubDate>
		<dc:creator>chrisrivera</dc:creator>
				<category><![CDATA[Web-Development]]></category>

		<guid isPermaLink="false">http://www.chrisrivera.com/?p=19</guid>
		<description><![CDATA[WordPress released their latest version of their blogging software on July 15th. I hope to have some time to try out the new version andd examine the way it uses resources. I&#8217;m hoping to see some improvement from it. In &#8230; <a href="http://www.chrisrivera.com/2008/07/23/wordpress-releases-version-26/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>WordPress released their latest version of their blogging software on July 15th. I hope to have some time to try out the new version andd examine the way it uses resources. I&#8217;m hoping to see some improvement from it.</p>
<p>In the process of my initial research, I came across one possible solution to the handling resources better. It&#8217;s called WordPress Light, that replaces the front end portion of the software, but limits your capabilities a bit.</p>
<p>Ultimately, I would like to have a blogging software that would run very efficiently on a VPS. WordPress is working fine for now, but I&#8217;m concerned as traffick builds up.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chrisrivera.com/2008/07/23/wordpress-releases-version-26/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress is a hog</title>
		<link>http://www.chrisrivera.com/2008/07/09/wordpress-is-a-hog/</link>
		<comments>http://www.chrisrivera.com/2008/07/09/wordpress-is-a-hog/#comments</comments>
		<pubDate>Wed, 09 Jul 2008 13:45:24 +0000</pubDate>
		<dc:creator>chrisrivera</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.chrisrivera.com/?p=16</guid>
		<description><![CDATA[I was doing some reading on WordPress and came across some people&#8217;s experiences with it and how they switched to another blogging software or how they have concerns with the way the software runs. Some of the posts note excessive &#8230; <a href="http://www.chrisrivera.com/2008/07/09/wordpress-is-a-hog/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I was doing some reading on WordPress and came across some people&#8217;s experiences with it and how they switched to another blogging software or how they have concerns with the way the software runs. Some of the posts note excessive queries for data that may not be necessary. Finding these articles made me decide to do a little digging myself. I currently have this website running on wordpress and I have another website I manage that runs on wordpress.</p>
<p><span id="more-16"></span></p>
<p>I&#8217;m a big fan of a small code that does things efficiently. Why would I be any different about wordpress? I decided to open up the first file wordpress calls to see what other files get included. As a result, I find a long list of files that are loaded just to display a page in wordpress. Below is the output of what I found. Every file that is indented is called from the file that proceeds it in loading. Here is what I found:</p>
<pre>index.php
	./wp-blog-header.php
		wp-config.php
			wp-settings.php
				WPINC . /compat.php
				WPINC . /functions.php
				WPINC . /classes.php
				if (wp-content/object-cache.php)
					wp-content/object-cache.php
				else
					wp-content/cache.php
				WPINC . /plugin.php
				WPINC . /default-filters.php
				WPINC . /streams.php
				WPINC . /gettext.php
				WPINC . /l10n.php				

				require (WPINC . '/formatting.php');
				require (WPINC . '/capabilities.php');
				require (WPINC . '/query.php');
				require (WPINC . '/theme.php');
				require (WPINC . '/user.php');
				require (WPINC . '/general-template.php');
				require (WPINC . '/link-template.php');
				require (WPINC . '/author-template.php');
				require (WPINC . '/post.php');
				require (WPINC . '/post-template.php');
				require (WPINC . '/category.php');
				require (WPINC . '/category-template.php');
				require (WPINC . '/comment.php');
				require (WPINC . '/comment-template.php');
				require (WPINC . '/rewrite.php');
				require (WPINC . '/feed.php');
				require (WPINC . '/bookmark.php');
				require (WPINC . '/bookmark-template.php');
				require (WPINC . '/kses.php');
				require (WPINC . '/cron.php');
				require (WPINC . '/version.php');
				require (WPINC . '/deprecated.php');
				require (WPINC . '/script-loader.php');
				require (WPINC . '/taxonomy.php');
				require (WPINC . '/update.php');
				require (WPINC . '/canonical.php');
				require (WPINC . '/shortcodes.php');
				require (WPINC . '/media.php');

				require (WPINC . '/vars.php');

				load my-hacks.php is file exists.

				load plugins if active.

				require (WPINC . '/pluggable.php');

				load the locale_file for language.

				require_once(WPINC . '/locale.php');

		WPINC . /template-loader.php   (WPINC is defined in wp-settings.php)</pre>
<p>Wow, that is a very long list of files to get called.</p>
<p>I decided to take this a further and look at the rendering time and the memory used for loading a page. I found the following for this website:</p>
<ul>
<li>Loading the homepage: Memory Used: 6,277,732 bytes; Time to Render Page: 0.5902 seconds.</li>
<li>Loading a post: Memory Used: 6,229,616 bytes; Time to Render Page: 0.1445 seconds.</li>
</ul>
<p>6 full megs to load a page! The rendering time I&#8217;m not too crazy about either. Now, there are ways to improve this by using caching for the pages, and a PHP accelerator to speed up the code, but the vanilla loading of wordpress taking up this much memory and time seems slow and excessive. Granted, this is running on a VPS, so the rendering time might be more in line with a VPS. This install of wordpress is a vanilla install, no additional plugins, and I&#8217;m using a version of the default theme with a slight modification to it.<br />
The next thing I did was to try out the other site I manage on wordpress. The numbers for this other site was more interesting:</p>
<ul>
<li>Loading the homepage: Memory Used: 9,410,144 bytes; Time to Render Page: 0.0910 seconds.</li>
<li>Loading a category: Memory Used: 9,448,096 bytes; Time to Render Page: 0.2936 seconds.</li>
<li>Loading a post: Memory Used: 9,388,744 bytes; Time to Render Page: 0.1707 seconds.</li>
</ul>
<p>Now the server that this other website sites on is a 1 Dual Core Xeon @ 2.4Ghz, 2GB of Ram, and good IDE drives. The memory usage is higher, but that site is using a number of plugins.</p>
<p>I&#8217;m definitely curious as to why wordpress is using so much memory in both cases. I&#8217;m working on a project right now that one of the items I&#8217;ve built for it is a backoffice admin running in PHP and a propritery framework. I&#8217;ve looked at the numbers for the page times and memory usage, and right now, It&#8217;s no where near wordpress&#8217;s times or memory consumption. The page load times for the admin are in fractions of a second (ie: 0.0051 to 0.0779), about 1/5 the time of wordpress on average. The memory usage for the admin is in range of 750K to 1,275K. Still alot less than wordpress.</p>
<p>This large use of memory by wordpress can have a negative impact when a website received simutaneous connections, there by limiting the concurrent connections a website can received. On this site, I don&#8217;t think I could survive a digg/oprah/slashdot effect, even on a small scale. There has to be a way to improve the basic install of wordpress to be more efficient.</p>
<p>One thing I did that did result in a drop of memory usage, is to remove a number of rss entries that are stored in the wp_options table. I just did this on the other site, and that removed about 600K from memory. The problem is, these rss entries will return. There&#8217;s something in wordpress that queries these rss fields and stores them in the wp_options and gets loaded into the wordpress object. I wish I knew why. This is something that should either be disabled completely, or at the very least, removed from the wordpress object, because they are not needed for use of a website.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chrisrivera.com/2008/07/09/wordpress-is-a-hog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why Flash is bad at times.</title>
		<link>http://www.chrisrivera.com/2003/06/25/why-flash-is-bad-at-times/</link>
		<comments>http://www.chrisrivera.com/2003/06/25/why-flash-is-bad-at-times/#comments</comments>
		<pubDate>Wed, 25 Jun 2003 13:10:25 +0000</pubDate>
		<dc:creator>chrisrivera</dc:creator>
				<category><![CDATA[Web-Development]]></category>

		<guid isPermaLink="false">http://www.chrisrivera.com/?p=12</guid>
		<description><![CDATA[I'm one of those people who feels Flash is bad most of the time. I'm going to explain why. <a href="http://www.chrisrivera.com/2003/06/25/why-flash-is-bad-at-times/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m on the canon website, checking out a single point of information. A friend of mine purchased the Canon EOS 10D (lucky bastard), and I wanted to know the time between the click of the photo button to take the picture, and the time of the photo capture. My experience with a non-SLR camera has been about 1-3 secs. That&#8217;s all I wanted to know. Well after going through the country selection, and some simple product selects, I see the product, and click on it&#8230; I&#8217;m taking to a flash site.</p>
<p><span id="more-12"></span></p>
<p>Ok I proceed. Now I&#8217;m downloading 100-250K flash files for each page of the experience. All I want is a bit of info that takes up less than 10 bytes. I click on the sitemap page, which is another flash movie, where I find the link for the specifications. I click and am taken to an HTML page.</p>
<p>People, please for goodness sakes, stop the flash madness. YOU&#8217;RE KILLING TREES, *same idea as the Anti-SUV campaign*. Too many developers create nonsense flash. Flash splash pages, that i have to wait to load to get to the real content. thanks to those who have added &#8216;Skip Intro&#8217; on their flash splash pages. by the way, how many times must someone see it to say &#8216;ok enough already&#8217; when I visit your site more than once. Your work is not something fantastic, so stop.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chrisrivera.com/2003/06/25/why-flash-is-bad-at-times/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

