<?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>@derblub</title>
	<atom:link href="http://derblub.com/feed" rel="self" type="application/rss+xml" />
	<link>http://derblub.com</link>
	<description>Daniel Kurdoghlian &#124; jQuery, PHP and everything else...</description>
	<lastBuildDate>Fri, 29 Jul 2011 23:13:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>How to work with me</title>
		<link>http://derblub.com/how-to-work-with-me</link>
		<comments>http://derblub.com/how-to-work-with-me#comments</comments>
		<pubDate>Fri, 29 Jul 2011 22:46:58 +0000</pubDate>
		<dc:creator>Daniel Kurdoghlian</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[productivity]]></category>

		<guid isPermaLink="false">http://derblub.com/?p=200</guid>
		<description><![CDATA[I prefer to work fast, minimize bullshit, get to the point. You will sometimes have bad news for me. I want it immediately. I can usually show you how to fix it. And I never blame the messenger. Bring pen and paper to every meeting with me. Pay attention to what I say; I&#8217;ll try [...]]]></description>
			<content:encoded><![CDATA[<p><div style="text-align:center;margin:0 auto;"><script type="text/javascript"><!--
google_ad_client = "ca-pub-2552502674694369";
/* derblub - text */
google_ad_slot = "6765881897";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div></p>
<ul>
<li>I prefer to work fast, minimize bullshit, get to the point.</li>
<li>You will sometimes have bad news for me. I want it immediately. I can usually show you how to fix it. And I never blame the messenger.</li>
<li>Bring pen and paper to every meeting with me. Pay attention to what I say; I&#8217;ll try to speak with care. If I frequently must repeat instructions, or remind you of something I&#8217;ve already told you, you will not work with me again.</li>
<li>If I&#8217;ve scheduled a weekly meeting with you, don&#8217;t assume that this meeting is the only time to raise issues with me; Interrupt me for time critical issues.</li>
<li>If you have a meeting with me at an assigned time, and I am in another meeting with my door closed, interrupt me. I stack meetings, and each meeting leads into the next.</li>
<li>I like &#8220;micro-meetings&#8221;. Get in quick, bring only the necessary parties to the table, make a decision, get out. Five minutes or less. Make these effective by knowing what decision needs to be made before you start, and presenting the decision criteria ahead of time to all participants.</li>
<li>Stand during micro-meetings.</li>
<li>I don&#8217;t like email, particularly for discussing complex topics. If a decision needs to be made, do a micro-meeting. If a problem needs to be discussed, ask the person with the most depth to prepare something, an agenda, have a whiteboard, and work through it quickly.</li>
<li>One exception to the above: I like &#8220;micro-updates&#8221;: Quick emails confirming time critical commitments and mutual understanding. These are especially useful after we hold a meeting and I give you a set of directives: I always like to hear our agreed-upon commitments echoed back to me. I may not respond, but I will read it. Keep these emails short: Spare me the greetings, thank yous, regards.</li>
<li>Be consistent in your communication. Use words consistently. Use email headers consistently. Strive to make your work immediately comprehensible.</li>
<li>If you disagree with me, voice your differences. I welcome and invite dissent. If this makes you uncomfortable, feel free to prepare your thoughts after the meeting and then later return to make your case.</li>
<li>Ego-driven debates annoy me. Check your ego at the door: I&#8217;m only interested in reaching the best, most elegant solution —I don&#8217;t care if it&#8217;s your idea or mine.</li>
<li>Don&#8217;t be afraid to ask questions if you&#8217;re not clear. I have more patience for explaining and clarifying my position before you start than I do patience for fixing a wasteful, incorrect approach after the fact.</li>
<li>Don&#8217;t tell me something is in the process of being done without telling me when it will be done. I&#8217;m more interested in the time commitment than the fact that an effort exists.</li>
<li>Always give me options, informed by an economic analysis where possible (if there are dollars involved, an analysis is mandatory), and then make your recommendation. Don&#8217;t tell me there&#8217;s a problem without offering a solution. Don&#8217;t offer me multiple solutions without giving me your best and final recommendation.</li>
<li>If you must prepare reports for me, review spreadsheets I&#8217;ve created. Copy the style and format.</li>
<li>Don&#8217;t send me long documents. I like precision and concision. Say it on one page (or less).</li>
</ul>
<p>That&#8217;s it.<br />
If you need more tips, get <a href="http://www.amazon.com/One-Minute-Manager-Kenneth-Blanchard/dp/0688014291">One Minute Manager</a> from <em>Kenneth H. Blanchard</em>.</p>
]]></content:encoded>
			<wfw:commentRss>http://derblub.com/how-to-work-with-me/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>The Ultimate Guide to Extend, Modify or remove the WordPress 3.1 Admin-Bar</title>
		<link>http://derblub.com/the-ultimate-guide-to-extend-modify-or-remove-wordpress-admin-bar</link>
		<comments>http://derblub.com/the-ultimate-guide-to-extend-modify-or-remove-wordpress-admin-bar#comments</comments>
		<pubDate>Wed, 29 Jun 2011 14:27:41 +0000</pubDate>
		<dc:creator>Daniel Kurdoghlian</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[code snippet]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://derblub.com/?p=169</guid>
		<description><![CDATA[Oh, already forgot this article in my drafts: Since WordPress 3.1, a lot of new cool features were added. One of the most hated loved ones is the admin-bar. In this article I will cover some of the basic hooks to modify it to suit your needs. Let&#8217;s go: How to Disable the Admin-Bar The [...]]]></description>
			<content:encoded><![CDATA[<p>Oh, already forgot this article in my drafts:</p>
<p>Since WordPress 3.1, a lot of new cool features were added. One of the most <del datetime="2011-06-29T13:58:48+00:00">hated</del> loved ones is the admin-bar. In this article I will cover some of the basic hooks to modify it to suit your needs.<br />
Let&#8217;s go:</p>
<p><div style="text-align:center;margin:0 auto;"><script type="text/javascript"><!--
google_ad_client = "ca-pub-2552502674694369";
/* derblub - text */
google_ad_slot = "6765881897";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div></p>
<h2>How to Disable the Admin-Bar</h2>
<p>The developers of WordPress made it really easy for you to disable the admin-bar. Simply go to Users > Your Profile and find the section where it says &#8220;Show Admin Bar&#8221; and tick your choice.<br />
But this is just saved for each users separately. If you are working on a site for a client and you want to get rid of it for each user, then simply open your theme&#8217;s function.php and paste the following code:</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'show_admin_bar'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'__return_false'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>This will get rid of the admin-bar &#8211; if you want to remove the settings in the user profile too, just append this code:</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'admin_print_scripts-profile.php'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'hideAdminBar'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000000; font-weight: bold;">function</span> hideAdminBar<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;style type='text/css'&gt;&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&nbsp; .show-admin-bar {display:none;}&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;/style&gt;&quot;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
<h2>Change the CSS (Move to bottom)</h2>
<p>By default, the bar shows on top of each page when you are logged in. If you don&#8217;t like that, you can hook your own CSS to the admin-bar and move it to the bottom (and do some more crazy stuff with it).<br />
Simply add this code to your functions:</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">function</span> adminBarCSS<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;style type='text/css'&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;html { padding-bottom: 28px !important; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;body { margin-top: -28px; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#wpadminbar { &nbsp;top: auto !important; bottom: 0; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#wpadminbar .quicklinks .menupop ul { bottom: 28px; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/style&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &quot;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'admin_head'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'adminBarCSS'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'wp_head'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'adminBarCSS'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>Now it&#8217;s up to you to do some more interesting stuff (like moving the bar to the left/right, let it float, or whatever).</p>
<h2>Remove Links from the Admin-Bar</h2>
<p>If you want to (or need to) remove links in the admin-bar. this small function will help you:</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">function</span> myAdminBarRender<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$wp_admin_bar</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$wp_admin_bar</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">remove_menu</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'comments'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'wp_before_admin_bar_render'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'myAdminBarRender'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>The way this works is just to provide the IDs for each link to the <code class="codecolorer php dawn"><span class="php">remove_menu<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span></span></code> function.<br />
You can find all default links in <strong>/wp-includes/admin-bar.php</strong>.</p>
<p>Some of the defaults are:</p>
<ul>
<li><strong>my-account</strong> / <strong>my-account-with-avatar</strong> &#8211; the first link, to your account</li>
<li><strong>my-blogs</strong> &#8211; the &#8216;My Sites&#8217; menu (for networked blogs)</li>
<li><strong>get-shortlink</strong> -provides a Shortlink to that page</li>
<li><strong>edit</strong> &#8211; the edit link</li>
<li><strong>new-content</strong> &#8211; the &#8216;Add New&#8217; drop down</li>
<li><strong>comments</strong> &#8211; the &#8216;Comments&#8217; drop down</li>
<li><strong>appearance</strong> &#8211; the &#8216;Appearance&#8217; drop down</li>
<li><strong>updates</strong> &#8211; the &#8216;Updates&#8217; drop down</li>
</ul>
<h2>Add Links to the Admin-Bar</h2>
<p>Here you have a simple way of putting custom links into the admin-bar.</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">function</span> myAdminBarRender<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$wp_admin_bar</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$wp_admin_bar</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">add_menu</span><span style="color: #009900;">&#40;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'parent'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'new-content'</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'id'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'new_media'</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'title'</span> <span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Media'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'href'</span> <span style="color: #339933;">=&gt;</span> admin_url<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'media-new.php'</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'wp_before_admin_bar_render'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'myAdminBarRender'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>You even can create a custom drop down menu in the admin-bar &#8211; just take a look at <a href="http://www.problogdesign.com/wordpress/add-useful-links-to-wordpress-admin-bar/">Michael Martins tutorial</a> to get you started.</p>
<p>That&#8217;s it for now &#8211; now go and pimp your admin-bar! :)</p>
]]></content:encoded>
			<wfw:commentRss>http://derblub.com/the-ultimate-guide-to-extend-modify-or-remove-wordpress-admin-bar/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hi, my name is Robert&#8217;); DROP TABLE Students;&#8211;</title>
		<link>http://derblub.com/hi-my-name-is-robert-drop-table-students</link>
		<comments>http://derblub.com/hi-my-name-is-robert-drop-table-students#comments</comments>
		<pubDate>Mon, 14 Feb 2011 17:23:59 +0000</pubDate>
		<dc:creator>Daniel Kurdoghlian</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[fun]]></category>
		<category><![CDATA[funny]]></category>
		<category><![CDATA[joke]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://derblub.com/?p=136</guid>
		<description><![CDATA[Exploits of a Mom: Teacher: &#8220;Hi, this is your son&#8217;s school. We&#8217;re having some computer trouble.&#8221; Mom: &#8220;Oh, dear &#8211; Did he break something?&#8221; Teacher: &#8220;In a way&#8230; Did you really name your son Robert&#8217;); DROP TABLE Students;&#8211;?&#8221; Mom: &#8220;Oh, yes. Little Bobby Tables we call him.&#8221; Teacher: &#8220;Well, we&#8217;ve lost this year&#8217;s student records. [...]]]></description>
			<content:encoded><![CDATA[<h4>Exploits of a Mom:</h4>
<blockquote><p><strong>Teacher:</strong> &#8220;Hi, this is your son&#8217;s school. We&#8217;re having some computer trouble.&#8221;<br />
<strong> Mom:</strong> &#8220;Oh, dear &#8211; Did he break something?&#8221;<br />
<strong> Teacher: </strong>&#8220;In a way&#8230; Did you really name your son Robert&#8217;); DROP TABLE Students;&#8211;?&#8221;<br />
<strong> Mom:</strong> &#8220;Oh, yes. Little Bobby Tables we call him.&#8221;<br />
<strong> Teacher:</strong> &#8220;Well, we&#8217;ve lost this year&#8217;s student records. I hope you&#8217;re  happy.&#8221;<br />
<strong> Mom:</strong> &#8220;And I hope you&#8217;ve learned to sanitize your database inputs.&#8221;</p></blockquote>
<p><div style="text-align:center;margin:0 auto;"><script type="text/javascript"><!--
google_ad_client = "ca-pub-2552502674694369";
/* derblub - text */
google_ad_slot = "6765881897";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div></p>
]]></content:encoded>
			<wfw:commentRss>http://derblub.com/hi-my-name-is-robert-drop-table-students/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get Accurate Script Execution Time in PHP</title>
		<link>http://derblub.com/get-accurate-script-execution-time-in-php</link>
		<comments>http://derblub.com/get-accurate-script-execution-time-in-php#comments</comments>
		<pubDate>Fri, 04 Feb 2011 10:00:07 +0000</pubDate>
		<dc:creator>Daniel Kurdoghlian</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[code snippet]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://derblub.com/?p=125</guid>
		<description><![CDATA[This small code can be quite helpful if you need to find out what is taking so long to load in your script(s). It will determine the time taken for your PHP script(s) to execute, accurate to 0.000000000000001 seconds. The Code 1234567891011121314151617// put this at the top of your page/script $exectime = microtime&#40;&#41;; $exectime = [...]]]></description>
			<content:encoded><![CDATA[<p>This small code can be quite helpful if you need to find out what is taking so long to load in your script(s).<br />
It will determine the time taken for your PHP script(s) to execute, accurate to 0.000000000000001 seconds.</p>
<p><div style="text-align:center;margin:0 auto;"><script type="text/javascript"><!--
google_ad_client = "ca-pub-2552502674694369";
/* derblub - text */
google_ad_slot = "6765881897";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div></p>
<h3>The Code</h3>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">// put this at the top of your page/script</span><br />
<span style="color: #000088;">$exectime</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/microtime"><span style="color: #990000;">microtime</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<span style="color: #000088;">$exectime</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/explode"><span style="color: #990000;">explode</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot; &quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$exectime</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<span style="color: #000088;">$exectime</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$exectime</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">+</span> <span style="color: #000088;">$exectime</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <br />
<span style="color: #000088;">$starttime</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$exectime</span><span style="color: #339933;">;</span> <br />
<br />
<span style="color: #666666; font-style: italic;">/*<br />
&nbsp;* &nbsp; place your script(s) to here <br />
&nbsp;*/</span><br />
<br />
<span style="color: #666666; font-style: italic;">// put this at the bottom of your page/script</span><br />
<span style="color: #000088;">$exectime</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/microtime"><span style="color: #990000;">microtime</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<span style="color: #000088;">$exectime</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/explode"><span style="color: #990000;">explode</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot; &quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$exectime</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<span style="color: #000088;">$exectime</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$exectime</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">+</span> <span style="color: #000088;">$exectime</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <br />
<span style="color: #000088;">$endtime</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$exectime</span><span style="color: #339933;">;</span> <br />
<span style="color: #000088;">$totaltime</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$endtime</span> <span style="color: #339933;">-</span> <span style="color: #000088;">$starttime</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;This page was created in &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$totaltime</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot; seconds&quot;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>&#8230;and that&#8217;s all! Happy debugging!</p>
]]></content:encoded>
			<wfw:commentRss>http://derblub.com/get-accurate-script-execution-time-in-php/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>I Am The Most Powerful Genie In The World</title>
		<link>http://derblub.com/i-am-the-most-powerful-genie-in-the-world</link>
		<comments>http://derblub.com/i-am-the-most-powerful-genie-in-the-world#comments</comments>
		<pubDate>Thu, 03 Feb 2011 14:21:39 +0000</pubDate>
		<dc:creator>Daniel Kurdoghlian</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[fun]]></category>
		<category><![CDATA[funny]]></category>
		<category><![CDATA[joke]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://derblub.com/?p=133</guid>
		<description><![CDATA[A programmer is walking along a beach and finds a lamp. He rubs the lamp and a genie appears. &#8220;I am the most powerful genie in the world. I can grant you any wish, but only one wish.&#8221; The programmer pulls out a map, points to it and says, &#8220;I&#8217;d want peace in the Middle [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>
A programmer is walking along a beach and finds a lamp. He rubs the lamp and a genie appears. &#8220;I am the most powerful genie in the world. I can grant you any wish, but only one wish.&#8221;</p>
<p>The programmer pulls out a map, points to it and says, &#8220;I&#8217;d want peace in the Middle East.&#8221; </p>
<p>The genie responds, &#8220;Gee, I don&#8217;t know. Those people have been fighting for millennia. I can do just about anything, but this is likely beyond my limits.&#8221;</p>
<p>The programmer then says, &#8220;Well, I am a programmer and my programs have lots of users. Please make all my users satisfied with my software and let them ask for sensible changes.&#8221;</p>
<p>At which point the genie responds, &#8220;Um, let me see that map again.&#8221;
</p></blockquote>
<p><div style="text-align:center;margin:0 auto;"><script type="text/javascript"><!--
google_ad_client = "ca-pub-2552502674694369";
/* derblub - text */
google_ad_slot = "6765881897";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div></p>
]]></content:encoded>
			<wfw:commentRss>http://derblub.com/i-am-the-most-powerful-genie-in-the-world/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Recover Your MySQL root Password</title>
		<link>http://derblub.com/how-to-recover-your-mysql-root-password</link>
		<comments>http://derblub.com/how-to-recover-your-mysql-root-password#comments</comments>
		<pubDate>Thu, 03 Feb 2011 09:00:25 +0000</pubDate>
		<dc:creator>Daniel Kurdoghlian</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[code snippet]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://derblub.com/?p=113</guid>
		<description><![CDATA[I just needed to recover a lost MySQL root password on a clients server recently and thought I&#8217;d share the method I used. Actually it&#8217;s not a method for recovering but you can change the forgotten password to a new one. All you need is to follow this 6 easy steps: Step 1: Stop the [...]]]></description>
			<content:encoded><![CDATA[<p>I just needed to recover a lost MySQL root password on a clients server recently and thought I&#8217;d share the method I used.</p>
<p><div style="text-align:center;margin:0 auto;"><script type="text/javascript"><!--
google_ad_client = "ca-pub-2552502674694369";
/* derblub - text */
google_ad_slot = "6765881897";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div></p>
<p>Actually it&#8217;s not a method for recovering but you can change the forgotten password to a new one.<br />
All you need is to follow this 6 easy steps:</p>
<h3>Step 1: Stop the mysql service</h3>
<div class="codecolorer-container bash dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;"># </span><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>mysql stop</div></div>
<h4>Expected Output:</h4>
<div class="codecolorer-container bash dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Stopping MySQL database server: mysqld.</div></div>
<h3>Step 2: Start the MySQL server without password</h3>
<div class="codecolorer-container bash dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;"># </span>mysqld_safe <span style="color: #660033;">--skip-grant-tables</span> <span style="color: #000000; font-weight: bold;">&amp;</span></div></div>
<h4>Expected Output:</h4>
<div class="codecolorer-container bash dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000;">5988</span><br />
Starting mysqld daemon with databases from <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>mysql<br />
mysqld_safe<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">6025</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: started</div></div>
<h3>Step 3: Connect to your MySQL server using the MySQL client</h3>
<div class="codecolorer-container bash dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;"># </span>mysql <span style="color: #660033;">-u</span> root</div></div>
<h4>Expected Output:</h4>
<div class="codecolorer-container bash dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Welcome to the MySQL monitor. &nbsp;Commands end with ; or \g.<br />
Your MySQL connection <span style="color: #c20cb9; font-weight: bold;">id</span> is <span style="color: #000000;">1</span> to server version: 4.1.15-Debian_1-log<br />
<br />
Type <span style="color: #ff0000;">'help;'</span> or <span style="color: #ff0000;">'\h'</span> <span style="color: #000000; font-weight: bold;">for</span> help. Type <span style="color: #ff0000;">'\c'</span> to <span style="color: #c20cb9; font-weight: bold;">clear</span> the buffer.<br />
<br />
mysql<span style="color: #000000; font-weight: bold;">&gt;</span></div></div>
<h3>Step 4: Setup a new MySQL password for the root user</h3>
<div class="codecolorer-container bash dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql<span style="color: #000000; font-weight: bold;">&gt;</span> use mysql;<br />
mysql<span style="color: #000000; font-weight: bold;">&gt;</span> update user <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">password</span>=PASSWORD<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">&quot;YOUR-NEW-PASSWORD&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> where <span style="color: #007800;">User</span>=<span style="color: #ff0000;">'root'</span>;<br />
mysql<span style="color: #000000; font-weight: bold;">&gt;</span> flush privileges;<br />
mysql<span style="color: #000000; font-weight: bold;">&gt;</span> quit;</div></div>
<h4>Expected Output:</h4>
<div class="codecolorer-container bash dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Database changed<br />
<br />
Query OK, <span style="color: #000000;">0</span> rows affected <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.00</span> sec<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
Rows matched: <span style="color: #000000;">1</span> &nbsp;Changed: <span style="color: #000000;">0</span> &nbsp;Warnings: <span style="color: #000000;">0</span><br />
<br />
Query OK, <span style="color: #000000;">0</span> rows affected <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.00</span> sec<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
<br />
Bye</div></div>
<h3>Step 5: Stop the MySQL Server</h3>
<div class="codecolorer-container bash dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;"># </span><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>mysql stop</div></div>
<h4>Expected Output:</h4>
<div class="codecolorer-container bash dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Stopping MySQL database server: mysqld<br />
STOPPING server from pid <span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>run<span style="color: #000000; font-weight: bold;">/</span>mysqld<span style="color: #000000; font-weight: bold;">/</span>mysqld.pid<br />
mysqld_safe<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">6186</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: ended<br />
<br />
<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>+ &nbsp;Done &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;mysqld_safe <span style="color: #660033;">--skip-grant-tables</span></div></div>
<h3>Step 6: Start the MySQL server and test it</h3>
<div class="codecolorer-container bash dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;"># /etc/init.d/mysql start</span><br />
<span style="color: #666666; font-style: italic;"># mysql -u root -p</span></div></div>
<h4>Expected Output:</h4>
<div class="codecolorer-container bash dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Starting service MySQL &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">done</span><br />
<br />
Welcome to the MySQL monitor. &nbsp;Commands end with ; or \g.<br />
Your MySQL connection <span style="color: #c20cb9; font-weight: bold;">id</span> is xx<br />
Server version: x.x.xx XXXXX MySQL RPM<br />
<br />
Type <span style="color: #ff0000;">'help;'</span> or <span style="color: #ff0000;">'\h'</span> <span style="color: #000000; font-weight: bold;">for</span> help. Type <span style="color: #ff0000;">'\c'</span> to <span style="color: #c20cb9; font-weight: bold;">clear</span> the buffer.<br />
<br />
mysql<span style="color: #000000; font-weight: bold;">&gt;</span></div></div>
<p>Now you should be all done!<br />
I hope this helps you as much as it did for me.</p>
]]></content:encoded>
			<wfw:commentRss>http://derblub.com/how-to-recover-your-mysql-root-password/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CSS Print Framework</title>
		<link>http://derblub.com/css-print-framework</link>
		<comments>http://derblub.com/css-print-framework#comments</comments>
		<pubDate>Wed, 02 Feb 2011 09:00:02 +0000</pubDate>
		<dc:creator>Daniel Kurdoghlian</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[cross-browser]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Framework]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://derblub.com/?p=104</guid>
		<description><![CDATA[If you want to improve your layouts for printing, this mini CSS Framework will definitely assist you. What is a CSS Framework? &#8220;A CSS framework is a library that is meant to allow for easier, more standards-compliant styling of a webpage using the Cascading Style Sheets language. Just like programming and scripting language libraries, CSS [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to improve your layouts for printing, this mini CSS Framework will definitely assist you.</p>
<h3>What is a CSS Framework?</h3>
<blockquote><p>
&#8220;A CSS framework is a library that is meant to allow for easier, more standards-compliant styling of a webpage using the Cascading Style Sheets language. Just like programming and scripting language libraries, CSS frameworks package a number of ready-made options for designing and outlaying a webpage.&#8221; &#8211; <a href="http://en.wikipedia.org/wiki/CSS_framework" target="_blank">Wikipedia</a>
</p></blockquote>
<p>One of the cool things in this CSS you can find on line 27/28. This part will grab all links of the document and append the URL to the link-names.</p>
<p><div style="text-align:center;margin:0 auto;"><script type="text/javascript"><!--
google_ad_client = "ca-pub-2552502674694369";
/* derblub - text */
google_ad_slot = "6765881897";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div></p>
<h3>The Source:</h3>
<div class="codecolorer-container css dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">body <span style="color: #00AA00;">&#123;</span> <br />
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">100%</span> !important<span style="color: #00AA00;">;</span><br />
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> !important<span style="color: #00AA00;">;</span><br />
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> !important<span style="color: #00AA00;">;</span><br />
<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">1.4</span><span style="color: #00AA00;">;</span><br />
<span style="color: #000000; font-weight: bold;">word-spacing</span><span style="color: #00AA00;">:</span><span style="color: #933;">1.1pt</span><span style="color: #00AA00;">;</span><br />
<span style="color: #000000; font-weight: bold;">letter-spacing</span><span style="color: #00AA00;">:</span><span style="color: #933;">0.2pt</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> Garamond<span style="color: #00AA00;">,</span><span style="color: #ff0000;">&quot;Times New Roman&quot;</span><span style="color: #00AA00;">,</span> <span style="color: #993333;">serif</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">12pt</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<br />
<span style="color: #808080; font-style: italic;">/*Headings */</span><br />
h1<span style="color: #00AA00;">,</span>h2<span style="color: #00AA00;">,</span>h3<span style="color: #00AA00;">,</span>h4<span style="color: #00AA00;">,</span>h5<span style="color: #00AA00;">,</span>h6 <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> Helvetica<span style="color: #00AA00;">,</span> Arial<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
h1<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">19pt</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><br />
h2<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">17pt</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><br />
h3<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">15pt</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><br />
h4<span style="color: #00AA00;">,</span>h5<span style="color: #00AA00;">,</span>h6<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">12pt</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><br />
<br />
code <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10pt</span> Courier<span style="color: #00AA00;">,</span> <span style="color: #993333;">monospace</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span> <br />
blockquote <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1.3em</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1em</span><span style="color: #00AA00;">;</span> &nbsp;<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10pt</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
hr <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#ccc</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
<br />
<span style="color: #808080; font-style: italic;">/* Images */</span><br />
img <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1em</span> <span style="color: #933;">1.5em</span> <span style="color: #933;">1.5em</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
a img <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
<br />
<span style="color: #808080; font-style: italic;">/* Links */</span><br />
a<span style="color: #3333ff;">:link</span><span style="color: #00AA00;">,</span> a<span style="color: #3333ff;">:visited </span><span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">transparent</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">700</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">underline</span><span style="color: #00AA00;">;</span><span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#333</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
a<span style="color: #00AA00;">:</span>link<span style="color: #00AA00;">&#91;</span>href<span style="color: #00AA00;">^=</span><span style="color: #ff0000;">&quot;http://&quot;</span><span style="color: #00AA00;">&#93;</span><span style="color: #3333ff;">:after</span><span style="color: #00AA00;">,</span> a<span style="color: #00AA00;">&#91;</span>href<span style="color: #00AA00;">^=</span><span style="color: #ff0000;">&quot;http://&quot;</span><span style="color: #00AA00;">&#93;</span><span style="color: #3333ff;">:visited</span><span style="color: #3333ff;">:after </span><span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">content</span><span style="color: #00AA00;">:</span> <span style="color: #ff0000;">&quot; (&quot;</span> attr<span style="color: #00AA00;">&#40;</span>href<span style="color: #00AA00;">&#41;</span> <span style="color: #ff0000;">&quot;) &quot;</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">90%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
a<span style="color: #00AA00;">&#91;</span>href<span style="color: #00AA00;">^=</span><span style="color: #ff0000;">&quot;http://&quot;</span><span style="color: #00AA00;">&#93;</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
<br />
<span style="color: #808080; font-style: italic;">/* Table */</span><br />
table <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
th <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#333</span><span style="color: #00AA00;">;</span> &nbsp;<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
td <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#333</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
th<span style="color: #00AA00;">,</span>td <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">4px</span> <span style="color: #933;">10px</span> <span style="color: #933;">4px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
tfoot <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">font-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">italic</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
caption <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin-bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">2em</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span><br />
thead <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">table-header-group</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><br />
tr <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">page-break-inside</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">avoid</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span> <br />
<br />
<span style="color: #808080; font-style: italic;">/*hide various parts from the site<br />
<br />
#header, #footer, #navigation, #rightSideBar, #leftSideBar <br />
{display:none;}<br />
<br />
*/</span></div></td></tr></tbody></table></div>
<p>To use this Framework, just attach it to your header and choose &#8220;<strong>print</strong>&#8221; as <strong>media-type</strong>.</p>
<div class="codecolorer-container html4strict dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/link.html"><span style="color: #000000; font-weight: bold;">link</span></a> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;stylesheet&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;print.css&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span> <span style="color: #000066;">media</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;print&quot;</span>&gt;</span></div></td></tr></tbody></table></div>
</link>
<p><small>via <a href="http://code.google.com/p/hartija/" target="_blank">hartija</a> at <a href="http://code.google.com/projecthosting/" target="_blank">Google Project Hosting</a>.</small></p>
]]></content:encoded>
			<wfw:commentRss>http://derblub.com/css-print-framework/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The F(ucking) U(ncrackable) E(ncryption) Function in PHP</title>
		<link>http://derblub.com/the-fucking-uncrackable-encryption-function-in-php</link>
		<comments>http://derblub.com/the-fucking-uncrackable-encryption-function-in-php#comments</comments>
		<pubDate>Tue, 01 Feb 2011 09:00:14 +0000</pubDate>
		<dc:creator>Daniel Kurdoghlian</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[code snippet]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://derblub.com/?p=94</guid>
		<description><![CDATA[I think following function doesn&#8217;t need any more description but the inline comments. The Function: 123456789101112131415161718// f(ucking) u(ncrackable) e(ncryption) function function fue&#40;$hash,$times&#41;&#123; &#160; &#160; // Execute the encryptions as many times as the user wants &#160; &#160; for&#40;$i=$times;$i&#62;0;$i--&#41; &#123; &#160; &#160; &#160; &#160; // Encode with base64... &#160; &#160; &#160; &#160; $hash=base64_encode&#40;$hash&#41;; &#160; &#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>I think following function doesn&#8217;t need any more description but the inline comments.</p>
<p><div style="text-align:center;margin:0 auto;"><script type="text/javascript"><!--
google_ad_client = "ca-pub-2552502674694369";
/* derblub - text */
google_ad_slot = "6765881897";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div></p>
<h3>The Function:</h3>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">// f(ucking) u(ncrackable) e(ncryption) function</span><br />
<span style="color: #000000; font-weight: bold;">function</span> fue<span style="color: #009900;">&#40;</span><span style="color: #000088;">$hash</span><span style="color: #339933;">,</span><span style="color: #000088;">$times</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #666666; font-style: italic;">// Execute the encryptions as many times as the user wants</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #000088;">$times</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">&gt;</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">--</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">// Encode with base64...</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$hash</span><span style="color: #339933;">=</span><a href="http://www.php.net/base64_encode"><span style="color: #990000;">base64_encode</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$hash</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">// and md5...</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$hash</span><span style="color: #339933;">=</span><a href="http://www.php.net/md5"><span style="color: #990000;">md5</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$hash</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">// sha1...</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$hash</span><span style="color: #339933;">=</span><a href="http://www.php.net/sha1"><span style="color: #990000;">sha1</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$hash</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">// sha256... (one more)</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$hash</span><span style="color: #339933;">=</span><a href="http://www.php.net/hash"><span style="color: #990000;">hash</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;sha256&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$hash</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">// sha512</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$hash</span><span style="color: #339933;">=</span><a href="http://www.php.net/hash"><span style="color: #990000;">hash</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;sha512&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$hash</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #666666; font-style: italic;">// Finaly, when done, return the value</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #000088;">$hash</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
<p>This function was first introduced by <em>BlackHatDBL</em>.</p>
]]></content:encoded>
			<wfw:commentRss>http://derblub.com/the-fucking-uncrackable-encryption-function-in-php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clean Up User-Input &amp; Convert Line-Breaks To BR-tags</title>
		<link>http://derblub.com/clean-up-user-input-convert-line-breaks-to-br-tags</link>
		<comments>http://derblub.com/clean-up-user-input-convert-line-breaks-to-br-tags#comments</comments>
		<pubDate>Mon, 31 Jan 2011 12:39:41 +0000</pubDate>
		<dc:creator>Daniel Kurdoghlian</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[code snippet]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://derblub.com/?p=86</guid>
		<description><![CDATA[A simple PHP function to clean up user input. It does following: converts &#38; to &#38;amp; converts &#60; to &#38;lt; converts &#62; to &#38;gt; converts &#8220; to &#38;quot; and converts line-breaks to &#60;br /&#62; The Function: 123456function clean&#40;$str&#41; &#123; &#160; &#160; $str = preg_replace&#40;'/&#38;(?!#[0-9]+;)/s', '&#38;amp;', $str&#41;; &#160; &#160; $str = str_replace&#40;array&#40;'&#60; ', '&#62;', '&#34;'&#41;, array&#40;'&#38;lt;', [...]]]></description>
			<content:encoded><![CDATA[<p>A simple PHP function to clean up user input.<br />
It does following:</p>
<ul>
<li>converts <strong>&amp;</strong> to <strong>&amp;amp;</strong></li>
<li>converts <strong>&lt;</strong> to <strong>&amp;lt;</strong></li>
<li>converts <strong>&gt;</strong> to <strong>&amp;gt;</strong></li>
<li>converts <strong>&#8220;</strong> to <strong>&amp;quot;</strong></li>
<li>and converts<strong> line-breaks</strong> to <strong>&lt;br /&gt;</strong></li>
</ul>
<p><div style="text-align:center;margin:0 auto;"><script type="text/javascript"><!--
google_ad_client = "ca-pub-2552502674694369";
/* derblub - text */
google_ad_slot = "6765881897";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div></p>
<h3>The Function:</h3>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">function</span> clean<span style="color: #009900;">&#40;</span><span style="color: #000088;">$str</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$str</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/preg_replace"><span style="color: #990000;">preg_replace</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/&amp;(?!#[0-9]+;)/s'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'&amp;amp;'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$str</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$str</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/str_replace"><span style="color: #990000;">str_replace</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&lt; '</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'&gt;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'&quot;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&amp;lt;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'&amp;gt;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'&quot;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$str</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$str</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/nl2br"><span style="color: #990000;">nl2br</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$str</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #000088;">$str</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://derblub.com/clean-up-user-input-convert-line-breaks-to-br-tags/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>What if Visual Studio had Achievements?</title>
		<link>http://derblub.com/what-if-visual-studio-had-achievements</link>
		<comments>http://derblub.com/what-if-visual-studio-had-achievements#comments</comments>
		<pubDate>Tue, 25 Jan 2011 19:59:28 +0000</pubDate>
		<dc:creator>Daniel Kurdoghlian</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[fun]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[funny]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://derblub.com/?p=76</guid>
		<description><![CDATA[What if Visual Studio supported achievements, just like games on Steam, Xbox or PS3? Bragging to your coworkers about which one you’ve just unlocked, imagine that! Here’s a little proposed list for some of them. .NET / C# flavored, of course. Falling Down – Created a new SharePoint project Job Security – Written a LINQ [...]]]></description>
			<content:encoded><![CDATA[<p>What if Visual Studio supported achievements, just like games on Steam, Xbox or PS3? Bragging to your coworkers about which one you’ve just unlocked, imagine that!</p>
<p><div style="text-align:center;margin:0 auto;"><script type="text/javascript"><!--
google_ad_client = "ca-pub-2552502674694369";
/* derblub - text */
google_ad_slot = "6765881897";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div></p>
<p>Here’s a little proposed list for some of them. .NET / C# flavored, of course.</p>
<ul>
<li><strong>Falling Down</strong> – Created a new SharePoint project</li>
<li><strong>Job Security</strong> – Written a LINQ query with over 30 lines of code</li>
<li><strong>The Sword Fighter</strong> – 5 Consecutive Solution Rebuilds with zero code changes</li>
<li><strong>Shotgun Debugging</strong> – 5 Consecutive Solution Rebuilds with a single character change</li>
<li><strong>The Mathematician</strong> – Defined 15 local variables with a single character name</li>
<li><strong>The Academic</strong> – Written 1000 lines of F#</li>
<li><strong>Spaghetti Monster</strong> – Written a single line with more than 300 characters</li>
<li><strong>Wild One</strong> – Mixed tabs and spaces for indentation more than 5 times in a single line</li>
<li><strong>The Organizer</strong> – Created a Solution with more than 50 projects</li>
<li><strong>The Portal</strong> – Created a circular project dependency</li>
<li><strong>The Multitasker</strong> – Have more than 50 source files open at the same time</li>
<li><strong>The Code Keeper</strong> – Uninstalled Resharper because it made you redundant</li>
<li><strong>Pasta Chef </strong>– Created a class with more than 100 fields, properties or methods</li>
<li><strong>Procedural Programmer</strong> – Created a method with more than 10 out parameters</li>
<li><strong>Steam Powered</strong> – Added Visual Studio as a Steam game</li>
<li><strong>The Poet </strong>– Written a source file with more than 10,000 lines</li>
<li><strong>The Enterprise</strong> – Build Solution took more than 10 minutes</li>
<li><strong>Highway to Hell</strong> – Successfully created a WCF service</li>
<li><strong>The Explainer</strong> – Written a comment with more than 100 words</li>
<li><strong>TPS Reports </strong>– Created a Crystal Reports Project</li>
<li><strong>Rage Quit</strong> – ALT+F4 after a failed bug fix</li>
<li><strong>Ooooh Shiny</strong> – Written 100 extensions methods</li>
<li><strong>Look Ma</strong> – Written an infinite Fibonacci generator using yield</li>
<li><strong>The Engineer</strong> – Killed a zombie with The Wrench</li>
<li><strong>The Architect</strong> – Created 25 Interfaces in a single project</li>
<li><strong>The Right Way</strong> – Test method is longer than the tested method</li>
<li><strong>The Defender</strong> – Checked every argument for null exceptions</li>
<li><strong>Pokemon Programming</strong> – Caught all the exceptions</li>
<li><strong>Black Magic</strong> – Implemented a RealProxy</li>
<li><strong>Gimme back my ASM</strong> – Used ILGenerator</li>
<li><strong>I’m Sorry</strong> – Created a new Visual Basic Project</li>
<li><strong>The SEO Expert</strong> – ASP.NET MVC Routing table with more than 100 routes</li>
<li><strong>The Matrix</strong> – Windows Forms with more than 100 controls</li>
<li><strong>The Daredevil</strong> – UpdatePanels nested more than 3 layers deep</li>
<li><strong>Just a Test</strong> – Nested multiline C-style comments that caused a compilation error</li>
<li><strong>Warm Bath</strong> – Successfully consumed a non .NET SOAP web service</li>
<li><strong>Old School</strong> – Defined more than 100 static objects</li>
<li><strong>The Cloner</strong> – Copy-pasted more than 50 lines</li>
<li><strong>The Dependency</strong> – Referenced more than 30 projects</li>
<li><strong>Paying the bills</strong> – Imported a Visual Basic project</li>
<li><strong>First Hit</strong> – Included a Codeproject.com library into your project and it actually compiled</li>
<li><strong>Paula </strong>– Define a firstname field with value Brillant</li>
<li><strong>Every Option Considered</strong> – Created an enum with more than 30 values</li>
</ul>
</p>
<p><small>via <a href="http://www.blog.whiletrue.com" target="_blank">while true blog</a>.</small></p>
]]></content:encoded>
			<wfw:commentRss>http://derblub.com/what-if-visual-studio-had-achievements/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

