<?xml version="1.0" encoding="UTF-8"?><rss
version="0.92"> <channel><title>Daniel Doezema&#039;s Blog</title><link>http://dan.doezema.com</link> <description>A blog about web related development.</description> <lastBuildDate>Wed, 02 May 2012 20:27:32 +0000</lastBuildDate> <docs>http://backend.userland.com/rss092</docs> <language>en</language> <item><title>Recursively Sort Ruby Hash By Key</title> <description><![CDATA[Here&#8217;s a quick and easy way to sort a Ruby hash by its keys. The ability to sort recursively and provide a custom sort block are also available features. The Method I took the approach of monkey patching a sort_by_key method into the Ruby Hash class itself. The method can be easily modified and placed [...]]]></description><link>http://dan.doezema.com/2012/04/recursively-sort-ruby-hash-by-key/</link> </item> <item><title>Twitter Bootstrap Radio Button Form Inputs</title> <description><![CDATA[I&#8217;ve been loving the Twitter Bootstrap buttons so I came up with a quick technique that turns them into actual working form input elements. HTML Just like a normal Boostrap button group, but with a few added attributes. 12345&#60;div class=&#34;btn-group&#34; data-toggle-name=&#34;is_private&#34; data-toggle=&#34;buttons-radio&#34; &#62; &#160; &#60;button type=&#34;button&#34; value=&#34;0&#34; class=&#34;btn&#34; data-toggle=&#34;button&#34;&#62;Public&#60;/button&#62; &#160; &#60;button type=&#34;button&#34; value=&#34;1&#34; class=&#34;btn&#34; data-toggle=&#34;button&#34;&#62;Private&#60;/button&#62; [...]]]></description><link>http://dan.doezema.com/2012/03/twitter-bootstrap-radio-button-form-inputs/</link> </item> <item><title>How to Implement a Single User Model with Rails, ActiveAdmin, and Devise</title> <description><![CDATA[I had just finished the standard installation of ActiveAdmin when I noticed that authentication was implemented using the fantastic Devise gem. I had already been planning on using Devise for authentication within my application so I initially thought integration would be a snap. However, as development progressed it became clear that all of the pieces were not [...]]]></description><link>http://dan.doezema.com/2012/02/how-to-implement-a-single-user-model-with-rails-activeadmin-and-devise/</link> </item> <item><title>PHP Output Profiling: Echo vs Concat</title> <description><![CDATA[I was recently reviewing some code when a simple question came up&#8230; What&#8217;s the fastest way to output a segmented string? 12345echo '&#60;div&#62;'; echo '&#60;span&#62;'; echo 'This is a random number: ' . mt_rand&#40;1,100&#41;; echo '&#60;/span&#62;'; echo '&#60;/div&#62;'; &#8211; OR &#8211; 1234567$html = ''; $html .= '&#60;div&#62;'; $html .= '&#60;span&#62;'; $html .= 'This is a random [...]]]></description><link>http://dan.doezema.com/2011/07/php-output-profiling-echo-vs-concat/</link> </item> <item><title>AHAX WordPress Plugin</title> <description><![CDATA[A couple weeks ago I was looking for a simple way to make AJAX requests on admin or public WordPress pages from a theme or plug-in. After a bit of searching I could not find the solution I was looking for &#8211; so I built my own, AHAX. AHAX is a drop-in solution that allows [...]]]></description><link>http://dan.doezema.com/2011/04/ahax-wordpress-plugin/</link> </item> <item><title>Benchmarking and Timing PHP Class</title> <description><![CDATA[Introducing a simple, yet deceivingly useful, micro benchmarking / timer class called Bench. I&#8217;ve found myself on more than a few occasion using this familiar block of code in order to quickly narrow down a bottleneck or test a specific section of code. 1234$start = microtime&#40;true&#41;; // [Some Code To Test] $time = &#40;microtime&#40;true&#41; - [...]]]></description><link>http://dan.doezema.com/2010/10/bench-php-class/</link> </item> <item><title>WinCache PHP Class</title> <description><![CDATA[I&#8217;ve developed a new class for WinCache that wraps around the wincache_ucache* functions. The goal of this class/project is to improve &#8212; and add to &#8212; the functionality and usability of WinCache&#8217;s User Cache feature. Basic Usage Below is a quick code example of how this class simplifies the way in which a developer can [...]]]></description><link>http://dan.doezema.com/2010/07/wincache-php-class/</link> </item> <item><title>Site Deployment with Subversion</title> <description><![CDATA[While working for a previous employer I was tasked with developing a new company &#8220;intranet&#8221; site. Changes rolled out at an aggressive rate and the process of deploying updates via FTP quickly turned into a tedious task. After a while I decided to spend some personal time thinking of ways to make whole process a [...]]]></description><link>http://dan.doezema.com/2010/06/site-deployment-with-subversion/</link> </item> <item><title>The Basics: PHP register_globals Overview</title> <description><![CDATA[In this article I&#8217;ll explain what register_globals is; how to protect against exploits that take advantage of it; and why it should be turned off (if possible). What is Register Globals? register_globals is a setting/feature within PHP that was intended to ease development by making variables passed to the script (via a form, cookie, or [...]]]></description><link>http://dan.doezema.com/2010/04/php-register-globals-overview/</link> </item> <item><title>WordPress Domain Change Script</title> <description><![CDATA[Changing the domain name or URL of a WordPress site can be a very frustrating and time consuming task. I usually have three development environments that I&#8217;m constantly switching between and all of them have completely different domain names. Local Server http://localhost:8888/myProject Preview Server http://myProject.mysite.com Production Server http://www.myProject.com Fed up with all the steps needed [...]]]></description><link>http://dan.doezema.com/2010/04/wordpress-domain-change/</link> </item> </channel> </rss>
<!-- Dynamic page generated in 1.298 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-05-19 10:04:58 -->

