<?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>Oren Yomtov&#039;s Website &#187; Programming</title>
	<atom:link href="http://orenyomtov.com/topic/programming/feed" rel="self" type="application/rss+xml" />
	<link>http://orenyomtov.com</link>
	<description>web development and stuff</description>
	<lastBuildDate>Mon, 07 May 2012 15:30:07 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4-beta4-20773</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Lyrics for YouTube™ &#8211; a Google Chrome Extension</title>
		<link>http://orenyomtov.com/lyrics-for-youtube-google-chrome-extension.html</link>
		<comments>http://orenyomtov.com/lyrics-for-youtube-google-chrome-extension.html#comments</comments>
		<pubDate>Mon, 25 Apr 2011 23:15:35 +0000</pubDate>
		<dc:creator>Oren Yomtov</dc:creator>
				<category><![CDATA[Google Chrome Extensions]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Extensions]]></category>
		<category><![CDATA[Google Chrome]]></category>
		<category><![CDATA[google chrome extensions]]></category>
		<category><![CDATA[Lyrics]]></category>
		<category><![CDATA[Music]]></category>
		<category><![CDATA[Music Video]]></category>
		<category><![CDATA[songs]]></category>
		<category><![CDATA[YouTube]]></category>

		<guid isPermaLink="false">http://orenyomtov.com/?p=649</guid>
		<description><![CDATA[<p>I got tired from searching for song lyrics online while watching music videos on YouTube.<br />
So I write this simple, yet extremely useful Chrome extension.</p>
<p>It&#8217;s called &#8220;Lyrics for YouTube™&#8221; and you can <a target="_blank" href="https://chrome.google.com/extensions/developer/detail/kggldhblikkmmnbkeococbeoaacgelkf">download</a> it at the Google Chrome extensions gallery:<br />
<a target="_blank" href="https://chrome.google.com/extensions/developer/detail/kggldhblikkmmnbkeococbeoaacgelkf">https://chrome.google.com/extensions/developer/detail/kggldhblikkmmnbkeococbeoaacgelkf</a></p>
<p>With one click of a button, the lyrics will appear right next to the music video, at a ... <a href="http://orenyomtov.com/lyrics-for-youtube-google-chrome-extension.html" class="read_more">Learn more...</a></p>]]></description>
			<content:encoded><![CDATA[<p>I got tired from searching for song lyrics online while watching music videos on YouTube.<br />
So I write this simple, yet extremely useful Chrome extension.</p>
<p>It&#8217;s called &#8220;Lyrics for YouTube™&#8221; and you can <a target="_blank" href="https://chrome.google.com/extensions/developer/detail/kggldhblikkmmnbkeococbeoaacgelkf">download</a> it at the Google Chrome extensions gallery:<br />
<a target="_blank" href="https://chrome.google.com/extensions/developer/detail/kggldhblikkmmnbkeococbeoaacgelkf">https://chrome.google.com/extensions/developer/detail/kggldhblikkmmnbkeococbeoaacgelkf</a></p>

<a href='http://orenyomtov.com/lyrics-for-youtube-google-chrome-extension.html/lfyw1' title='lfyw1'><img width="150" height="150" src="http://orenyomtov.com/downloads/lfyw1-150x150.jpg" class="attachment-thumbnail" alt="lfyw1" title="lfyw1" /></a>
<a href='http://orenyomtov.com/lyrics-for-youtube-google-chrome-extension.html/lfyw2' title='lfyw2'><img width="150" height="150" src="http://orenyomtov.com/downloads/lfyw2-150x150.jpg" class="attachment-thumbnail" alt="lfyw2" title="lfyw2" /></a>
<a href='http://orenyomtov.com/lyrics-for-youtube-google-chrome-extension.html/lfyw3' title='lfyw3'><img width="150" height="150" src="http://orenyomtov.com/downloads/lfyw3-150x150.jpg" class="attachment-thumbnail" alt="lfyw3" title="lfyw3" /></a>

<p>With one click of a button, the lyrics will appear right next to the music video, at a very natural fashion. This way, you have the playing music video and the song&#8217;s lyrics, in a beautiful side by side comfortable display.</p>
<p>Usage instructions &#8211; Click the extension&#8217;s icon and the song&#8217;s lyrics will magically appear right next to the video.</p>
<strong>Search terms:</strong><ul><li>youtube lyrics chrome extension</li><li>youtube lyrics google chrome</li><li>google chrome youtube lyrics</li><li>youtube lyrics extension</li><li>youtube lyrics extension chrome</li><li>chrome youtube lyrics extension</li><li>lyrics for google chrome</li><li>chrome lyrics youtube</li><li>youtube lyrics addon chrome</li><li>youtube lyric chrome</li></ul>]]></content:encoded>
			<wfw:commentRss>http://orenyomtov.com/lyrics-for-youtube-google-chrome-extension.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Print Using Google Cloud Print™ &#8211; Google Chrome Extension</title>
		<link>http://orenyomtov.com/print-using-google-cloud-print-google-chrome-extension.html</link>
		<comments>http://orenyomtov.com/print-using-google-cloud-print-google-chrome-extension.html#comments</comments>
		<pubDate>Mon, 07 Feb 2011 19:18:36 +0000</pubDate>
		<dc:creator>Oren Yomtov</dc:creator>
				<category><![CDATA[Google Chrome Extensions]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[Gmail]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Google Chrome]]></category>
		<category><![CDATA[google chrome extensions]]></category>
		<category><![CDATA[google cloud print]]></category>
		<category><![CDATA[google docs]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[Source code]]></category>

		<guid isPermaLink="false">http://orenyomtov.com/?p=608</guid>
		<description><![CDATA[<h3>Background</h3>
<p>Have you heard about Google&#8217;s latest service &#8211; <a target="_blank" href="http://www.google.com/support/cloudprint/">Google Cloud Print</a>?</p>
<p>It&#8217;s a cool service which allows you to print stuff from your home printer using any other computer in the world or even (and especially) mobile devices.</p>
<p>The service is still in beta, so right now you can only print through mobile devices with <a target="_blank" href="http://en.wikipedia.org/wiki/HTML5">HTML5</a> compliant browsers ... <a href="http://orenyomtov.com/print-using-google-cloud-print-google-chrome-extension.html" class="read_more">Learn more...</a></p>]]></description>
			<content:encoded><![CDATA[<h3>Background</h3>
<p>Have you heard about Google&#8217;s latest service &#8211; <a target="_blank" href="http://www.google.com/support/cloudprint/">Google Cloud Print</a>?</p>
<p>It&#8217;s a cool service which allows you to print stuff from your home printer using any other computer in the world or even (and especially) mobile devices.</p>
<p>The service is still in beta, so right now you can only print through mobile devices with <a target="_blank" href="http://en.wikipedia.org/wiki/HTML5">HTML5</a> compliant browsers which can access Google&#8217;s Gmail and Docs mobile version.<br />
They claim that their next step is embedding this functionality in <a target="_blank" href="http://www.google.com/chromeos/">Chrome OS</a> notebooks.</p>
<p>It kind of looks like they skipped over Google Chrome&#8217;s version.<br />
That&#8217;s why I developed an extension for Google Chrome through which you may print using the Google Cloud Print service to any of your connected printers.</p>
<p>I encountered quite a few technical challenges while developing this extension. But I&#8217;ve overcome all of then and I&#8217;m proud to present the final outcome.<br />
Everyone is welcome to <a href="http://orenyomtov.com/how-to-view-a-google-chrome-extensions-full-source-code.html">download and study the extension&#8217;s source code</a>.</p>
<h3>Download</h3>
<p>You may <a target="_blank" href="https://chrome.google.com/webstore/detail/ffaifmgpcdjedlffbhenaloimajbdkfg">download the extension</a> here: (A 5 star rating will be greatly appreciated :)<br />
<a target="_blank" href="https://chrome.google.com/webstore/detail/ffaifmgpcdjedlffbhenaloimajbdkfg">https://chrome.google.com/webstore/detail/ffaifmgpcdjedlffbhenaloimajbdkfg</a></p>
<h3>What does the extension do?</h3>
<p>The extension gives you the ability to print any doc/pdf/txt file, Gmail attachment, email or Google Docs document using Google Cloud Print™.</p>
<h3>Screenshots</h3>
<p>Here are some screenshots of the extension in action:</p>

<a href='http://orenyomtov.com/print-using-google-cloud-print-google-chrome-extension.html/screenshot1' title='screenshot1'><img width="150" height="150" src="http://orenyomtov.com/downloads/screenshot1-150x150.png" class="attachment-thumbnail" alt="screenshot1" title="screenshot1" /></a>
<a href='http://orenyomtov.com/print-using-google-cloud-print-google-chrome-extension.html/screenshot2' title='screenshot2'><img width="150" height="150" src="http://orenyomtov.com/downloads/screenshot2-150x150.png" class="attachment-thumbnail" alt="screenshot2" title="screenshot2" /></a>
<a href='http://orenyomtov.com/print-using-google-cloud-print-google-chrome-extension.html/screenshot3' title='screenshot3'><img width="150" height="150" src="http://orenyomtov.com/downloads/screenshot3-150x150.jpg" class="attachment-thumbnail" alt="screenshot3" title="screenshot3" /></a>
<a href='http://orenyomtov.com/print-using-google-cloud-print-google-chrome-extension.html/screenshot4' title='screenshot4'><img width="150" height="150" src="http://orenyomtov.com/downloads/screenshot4-150x150.jpg" class="attachment-thumbnail" alt="screenshot4" title="screenshot4" /></a>
<a href='http://orenyomtov.com/print-using-google-cloud-print-google-chrome-extension.html/screenshot5' title='screenshot5'><img width="150" height="150" src="http://orenyomtov.com/downloads/screenshot5-150x150.jpg" class="attachment-thumbnail" alt="screenshot5" title="screenshot5" /></a>
<a href='http://orenyomtov.com/print-using-google-cloud-print-google-chrome-extension.html/screenshot6' title='screenshot6'><img width="150" height="150" src="http://orenyomtov.com/downloads/screenshot6-150x150.png" class="attachment-thumbnail" alt="screenshot6" title="screenshot6" /></a>

<p>Some more screenshots people took I found on Flicker:<br />
<a target="_blank" href="http://www.flickr.com/photos/nda/5411410871/">http://www.flickr.com/photos/nda/5411410871/</a><br />
<a target="_blank" href="http://www.flickr.com/photos/nda/5411411069/">http://www.flickr.com/photos/nda/5411411069/</a><br />
<a target="_blank" href="http://www.flickr.com/photos/nda/5411410263/">http://www.flickr.com/photos/nda/5411410263/</a><br />
<a target="_blank" href="http://www.flickr.com/photos/nda/5411410395/">http://www.flickr.com/photos/nda/5411410395/</a><br />
<a target="_blank" href="http://www.flickr.com/photos/nda/5411410871/">http://www.flickr.com/photos/nda/5411410871/</a><br />
<a target="_blank" href="http://www.flickr.com/photos/nda/5412023376/">http://www.flickr.com/photos/nda/5412023376/</a></p>
<h3>Instructions</h3>
<h4>Print a pdf/doc/txt/jpg/jpeg file</h4>
<p>Navigate your way to the desired file and click the extension&#8217;s icon.</p>
<p>The icon will appear on the left side of the address bar only when the current tab&#8217;s URL ends with .pdf, .doc or .txt.</p>
<h4>Print a Gmail attachment or email</h4>
<p>Look for the &#8220;Print using Google Cloud Print&#8221; links (you can see where they are located in the screenshots).</p>
<h4>Print a Google Docs document</h4>
<p>Open a document and click File > Print using Google Cloud Print.</p>
<h3>Demo Video</h3>
<p>Here is a demo video of the extension in action (thanks to Digital Inspiration):</p>
<p><span style="text-align:center; display: block;"><a href="http://orenyomtov.com/print-using-google-cloud-print-google-chrome-extension.html"><img src="http://img.youtube.com/vi/ByjM2Uzmkxc/2.jpg" alt="" /></a></span></p>
<h3>Changelog</h3>
<h4>Version 0.31 (5/3/1011)</h4>
<ul>
<li>Bug Fix &#8211; Existing Google Docs documents will now also have the “Print using Google Cloud Print” button.</li>
</ul>
<h4>Version 0.3 (15/2/1011)</h4>
<ul>
<li>Image Printing &#8211; The printer icon now shows up when viewing JPG or JPEG files.</li>
<li>Google Images integration &#8211; There is a &#8220;Print using Google Cloud Print&#8221; link when viewing JPG or JPEG image results.</li>
</ul>
<h4>Version 0.22 (10/2/1011)</h4>
<ul>
<li>Bug Fix &#8211; Printing Google Docs documents at subdomains docs0, docs1 etc. now works.</li>
</ul>
<h4>Version 0.21 (9/2/1011)</h4>
<ul>
<li>Bug Fix &#8211; Printing Gmail attachments in threaded conversations now works.</li>
</ul>
<h4>Version 0.2 (7/2/1011)</h4>
<ul>
<li><a target="_blank" href="https://mail.google.com/mail/">Gmail</a> integration &#8211; Print emails and attachments using Google Cloud Print.</li>
<li><a target="_blank" href="https://docs.google.com/">Google Docs</a> integration &#8211; Print documents using Google Cloud Print.</li>
</ul>
<h3>Press</h3>
<p>This extension has been broadly reviewed by bloggers and news sites:</p>
<ul>
<li><a target="_blank" href="http://lifehacker.com/#!5749726/chrome-cloud-print-extension-brings-print+at+home-powers-to-mac-and-linux">Lifehacker</a></li>
<li><a target="_blank" href="http://www.labnol.org/software/google-cloud-print-without-phone/18617/">Digital Inspiration</a></li>
<li><a target="_blank" href="http://www.howtogeek.com/news/google-cloud-print-extension-lets-you-print-docpdftxt-files-from-web-sites/3237/">How-To Geek</a></li>
<li><a target="_blank" href="http://www.nirmaltv.com/2011/02/01/print-documents-in-chrome-with-google-cloud-print/">NIRMALTV</a></li>
<li><a target="_blank" href="http://pplware.sapo.pt/google/extensao-chrome-print-using-google-cloud-print/">Peopleware</a> (Portuguese)</li>
</ul>
<h3>Feedback</h3>
<p>Please leave any feedback / suggestions you might have at the extension&#8217;s feedback forum (no registration needed):<br />
<a target="_blank" href="http://printusinggooglecloudprint.uservoice.com">http://printusinggooglecloudprint.uservoice.com</a></p>
<p>or in the comments section below, or by <a target="_blank" href="contact.html">contacting</a> me.</p>
<h3>Learn more</h3>
<p>About Google Cloud Print™:<br />
<a target="_blank" href="http://www.google.com/support/cloudprint/">http://www.google.com/support/cloudprint/</a><br />
<a target="_blank" href="http://www.google.com/chrome/intl/en/p/cloudprint.html">http://www.google.com/chrome/intl/en/p/cloudprint.html</a><br />
<a target="_blank" href="http://code.google.com/apis/cloudprint/docs/overview.html">http://code.google.com/apis/cloudprint/docs/overview.html</a></p>
<strong>Search terms:</strong><ul><li>google cloud print pdf</li><li>google cloud print EXTENSION</li><li>google cloud print without chrome</li><li>google cloud print from chrome</li><li>cloud print from chrome</li><li>google cloud print to pdf</li><li>chrome cloud print</li><li>cloud print without chrome</li><li>google chrome cloud print</li><li>google cloud print icon</li></ul>]]></content:encoded>
			<wfw:commentRss>http://orenyomtov.com/print-using-google-cloud-print-google-chrome-extension.html/feed</wfw:commentRss>
		<slash:comments>32</slash:comments>
		</item>
		<item>
		<title>How To View a Google Chrome Extension&#8217;s Full Source Code</title>
		<link>http://orenyomtov.com/how-to-view-a-google-chrome-extensions-full-source-code.html</link>
		<comments>http://orenyomtov.com/how-to-view-a-google-chrome-extensions-full-source-code.html#comments</comments>
		<pubDate>Sun, 06 Feb 2011 00:56:46 +0000</pubDate>
		<dc:creator>Oren Yomtov</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[CRX]]></category>
		<category><![CDATA[Download]]></category>
		<category><![CDATA[Extensions]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Google Chrome]]></category>
		<category><![CDATA[Google Chrome Extension]]></category>
		<category><![CDATA[Source code]]></category>
		<category><![CDATA[ZIP]]></category>

		<guid isPermaLink="false">http://orenyomtov.com/?p=609</guid>
		<description><![CDATA[<p>You can extract and view any <a target="_blank" href="http://www.google.com/chrome/intl/en/landing_chrome.html">Google Chrome</a> extension&#8217;s full source code following the following easy steps.</p>
<p>Every Google Chrome extension is basically a CRX file. When you click the &#8220;Install&#8221; button on the <a target="_blank" href="https://chrome.google.com/extensions">Google Chrome extension gallery</a> you are basically clicking a link of the extension&#8217;s CRX file.</p>
<p>The first step is downloading the extension&#8217;s CRX file. Instead of ... <a href="http://orenyomtov.com/how-to-view-a-google-chrome-extensions-full-source-code.html" class="read_more">Learn more...</a></p>]]></description>
			<content:encoded><![CDATA[<p>You can extract and view any <a target="_blank" href="http://www.google.com/chrome/intl/en/landing_chrome.html">Google Chrome</a> extension&#8217;s full source code following the following easy steps.</p>
<p>Every Google Chrome extension is basically a CRX file. When you click the &#8220;Install&#8221; button on the <a target="_blank" href="https://chrome.google.com/extensions">Google Chrome extension gallery</a> you are basically clicking a link of the extension&#8217;s CRX file.</p>
<p>The first step is downloading the extension&#8217;s CRX file. Instead of clicking it&#8217;s link, which will lead to that extension being installed on your browser, right-click the link and choose &#8220;Save link as&#8230;&#8221;.</p>
<p>Now that you have the CRX file on your computer, rename it&#8217;s extension from CRX to ZIP. Turns out that every CRX file is a renamed ZIP archive of the extension.</p>
<p>All there is left to do is extract the ZIP archive to the desired destination. The full code of the Chrome extension is there.</p>
<p>Have fun exploring other peoples code!</p>
<strong>Search terms:</strong><ul><li>chrome extension source code</li><li>view chrome extension source</li><li>google chrome extensions source code</li><li>google chrome extension source code</li><li>view source code of chrome extension</li><li>chrome extension source</li><li>see chrome extension code</li><li>chrome extension view source</li><li>chrome extensions source code</li><li>view chrome extensions</li></ul>]]></content:encoded>
			<wfw:commentRss>http://orenyomtov.com/how-to-view-a-google-chrome-extensions-full-source-code.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>First Person Minesweeper 3D</title>
		<link>http://orenyomtov.com/first-person-minesweeper-3d.html</link>
		<comments>http://orenyomtov.com/first-person-minesweeper-3d.html#comments</comments>
		<pubDate>Fri, 25 Jun 2010 17:15:33 +0000</pubDate>
		<dc:creator>Oren Yomtov</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Facebook Application]]></category>
		<category><![CDATA[Game]]></category>
		<category><![CDATA[Game Development]]></category>
		<category><![CDATA[UNITY]]></category>

		<guid isPermaLink="false">http://orenyomtov.com/?p=506</guid>
		<description><![CDATA[My brother and I developed a first person minesweeper game in 3D, using the <a href="http://unity3d.com/">UNITY</a> game development platform.

We've also built a <a href="http://apps.facebook.com/minesweeper-game/">Facebook application</a> version of this game, available to play at:
<a href="http://apps.facebook.com/minesweeper-game/">http://apps.facebook.com/minesweeper-game/</a>]]></description>
			<content:encoded><![CDATA[<p>My brother and I developed a first person minesweeper game in 3D, using the <a target="_blank" href="http://unity3d.com/">UNITY</a> game development platform. <strong>Give it a shot (click to play):</strong></p>
<p><em>Please view the full post to see the Unity content.</em></p>
<p>We&#8217;ve also built a <a target="_blank" href="http://apps.facebook.com/minesweeper-game/">Facebook application</a> version of this game, available to play at:<br />
<a target="_blank" href="http://apps.facebook.com/minesweeper-game/">http://apps.facebook.com/minesweeper-game/</a></p>
<strong>Search terms:</strong><ul><li>3d minesweeper</li><li>minesweeper 3D</li><li>first person minesweeper</li><li>how to create minesweeper in unity</li><li>minesweeper</li><li>minesweeper first person</li><li>Mine Sweeper 3D</li><li>3d minesweeper game</li><li>minesweeper in unity 3d</li><li>OREN YOMTOV FACEBOOK</li></ul>]]></content:encoded>
			<wfw:commentRss>http://orenyomtov.com/first-person-minesweeper-3d.html/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Get the Direct Link to a Post&#8217;s Featured Image</title>
		<link>http://orenyomtov.com/get-the-direct-link-to-a-posts-featured-image.html</link>
		<comments>http://orenyomtov.com/get-the-direct-link-to-a-posts-featured-image.html#comments</comments>
		<pubDate>Sat, 12 Jun 2010 20:47:05 +0000</pubDate>
		<dc:creator>Oren Yomtov</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Featured Image]]></category>
		<category><![CDATA[Function]]></category>
		<category><![CDATA[The Loop]]></category>
		<category><![CDATA[Thumbnail]]></category>

		<guid isPermaLink="false">http://orenyomtov.com/?p=495</guid>
		<description><![CDATA[<p>I used WordPress&#8217; <a target="_blank" href="http://codex.wordpress.org/Template_Tags/get_the_post_thumbnail">get_the_post_thumbnail()</a> function in order to output the current post&#8217;s featured image. It was great, until I had to link to the featured image. To do that, I needed the value of the SRC attribute of that IMG tag, i.e., the direct link to the featured image.</p>
<p>Thanks to <a target="_blank" href="http://phpxref.ftwr.co.uk/wordpress/nav.html?_functions/index.html">phpxref</a>, and the <a target="_blank" href="http://codex.wordpress.org/Function_Reference">WordPress Codex</a>, I managed ... <a href="http://orenyomtov.com/get-the-direct-link-to-a-posts-featured-image.html" class="read_more">Learn more...</a></p>]]></description>
			<content:encoded><![CDATA[<p>I used WordPress&#8217; <a target="_blank" href="http://codex.wordpress.org/Template_Tags/get_the_post_thumbnail">get_the_post_thumbnail()</a> function in order to output the current post&#8217;s featured image. It was great, until I had to link to the featured image. To do that, I needed the value of the SRC attribute of that IMG tag, i.e., the direct link to the featured image.</p>
<p>Thanks to <a target="_blank" href="http://phpxref.ftwr.co.uk/wordpress/nav.html?_functions/index.html">phpxref</a>, and the <a target="_blank" href="http://codex.wordpress.org/Function_Reference">WordPress Codex</a>, I managed to write a small useful function just for that. Without further ado, I present to you, the function:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> oy_get_direct_thumbnail_link<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$post_id</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">NULL</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$id</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$post_id</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span> <span style="color: #009900; font-weight: bold;">NULL</span> <span style="color: #339933;">===</span> <span style="color: #000088;">$post_id</span> <span style="color: #009900;">&#41;</span> ? <span style="color: #000088;">$id</span> <span style="color: #339933;">:</span> <span style="color: #000088;">$post_id</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$src</span> <span style="color: #339933;">=</span> wp_get_attachment_image_src<span style="color: #009900;">&#40;</span>get_post_thumbnail_id<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post_id</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'full'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$src</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$src</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">return</span> <span style="color: #000088;">$src</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>The first and only parameter ($post_id) is optional. If used inside <a target="_blank" href="http://codex.wordpress.org/The_Loop">the loop</a>, it fetches the current post&#8217;s ID by itself.</p>
<strong>Search terms:</strong><ul><li>get post featured image</li><li>get featured image</li><li>featured image link</li><li>get featured image from post</li><li>get_posts featured image</li><li>post featured image</li><li>get featured image post</li><li>get featured image of post</li><li>get_post featured image</li><li>get_post_featured_image</li></ul>]]></content:encoded>
			<wfw:commentRss>http://orenyomtov.com/get-the-direct-link-to-a-posts-featured-image.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Sixpack Notes &#8211; Your New TODO List</title>
		<link>http://orenyomtov.com/sixpack-notes-your-new-todo-list.html</link>
		<comments>http://orenyomtov.com/sixpack-notes-your-new-todo-list.html#comments</comments>
		<pubDate>Sat, 08 May 2010 18:12:45 +0000</pubDate>
		<dc:creator>Oren Yomtov</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Simplicity]]></category>
		<category><![CDATA[TODO]]></category>
		<category><![CDATA[Web 2.0]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://orenyomtov.com/?p=486</guid>
		<description><![CDATA[<p>I finished working on this project today, it took me about a day and a half to complete it. It looks super easy but as always there are issues that you encounter only during the development phase.</p>
<p>The service/application offers you six boxes in which you may type whatever you want. e.g. memos, notes, temporary data or tasks.</p>
<p>The data ... <a href="http://orenyomtov.com/sixpack-notes-your-new-todo-list.html" class="read_more">Learn more...</a></p>]]></description>
			<content:encoded><![CDATA[<p>I finished working on this project today, it took me about a day and a half to complete it. It looks super easy but as always there are issues that you encounter only during the development phase.</p>
<p>The service/application offers you six boxes in which you may type whatever you want. e.g. memos, notes, temporary data or tasks.</p>
<p>The data is saved within each keystroke one makes. It&#8217;s stored using the browser&#8217;s cookies.</p>
<p>Adding extra features always costs some of the simplicity of the application. And many people try to find the &#8220;right&#8221; balance. In this project, I decided to go to an extreme &#8211; super easy &#038; no features. Some people may like it and some may not.</p>
<p>Here is my new personal homepage:<br />
<a target="_blank" href="http://www.sixpacknotes.com/">http://www.sixpacknotes.com/</a></p>
<p>Your feedback is welcomed.</p>
]]></content:encoded>
			<wfw:commentRss>http://orenyomtov.com/sixpack-notes-your-new-todo-list.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Box2d Flash (ActionScript 3) Compile Errors Fix</title>
		<link>http://orenyomtov.com/box2d-flash-action-script-3-compile-errors-fix.html</link>
		<comments>http://orenyomtov.com/box2d-flash-action-script-3-compile-errors-fix.html#comments</comments>
		<pubDate>Thu, 11 Feb 2010 19:55:35 +0000</pubDate>
		<dc:creator>Oren Yomtov</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Box2D]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[Fix]]></category>
		<category><![CDATA[Physics]]></category>
		<category><![CDATA[Physics Engine]]></category>

		<guid isPermaLink="false">http://orenyomtov.com/?p=450</guid>
		<description><![CDATA[<p><a target="_blank" href="http://orenyomtov.com/downloads/box2d-errors.jpg"><img src="http://orenyomtov.com/downloads/box2d-errors-e1265920008936.jpg" alt="box2d warnings" title="box2d warnings" width="500" height="122" class="alignright size-full wp-image-456" /></a>When I started developing in flash using the <a href="http://box2dflash.sourceforge.net/">Box2d physics engine</a>, I had this problem which held me back for a couple of hair pulling hours. So I thought, why not spare other people from this misery?</p>
<h3>The Problem&#8217;s Symptoms</h3>
<p>If you encountered any of these error messages when compiling a Box2d flash project:<br />
<code style="display:block;overflow:scroll">b2World.as, Line 871 - 1046: </code>... <a href="http://orenyomtov.com/box2d-flash-action-script-3-compile-errors-fix.html" class="read_more">Learn more...</a></p>]]></description>
			<content:encoded><![CDATA[<p><a target="_blank" href="http://orenyomtov.com/downloads/box2d-errors.jpg"><img src="http://orenyomtov.com/downloads/box2d-errors-e1265920008936.jpg" alt="box2d warnings" title="box2d warnings" width="500" height="122" class="alignright size-full wp-image-456" /></a>When I started developing in flash using the <a href="http://box2dflash.sourceforge.net/">Box2d physics engine</a>, I had this problem which held me back for a couple of hair pulling hours. So I thought, why not spare other people from this misery?</p>
<h3>The Problem&#8217;s Symptoms</h3>
<p>If you encountered any of these error messages when compiling a Box2d flash project:<br />
<code style="display:block;overflow:scroll">b2World.as, Line 871 - 1046: Type was not found or was not a compile-time constant: Vector. - public function RayCastAll(point1:b2Vec2, point2:b2Vec2):Vector.<b2Fixture><br />
b2World.as, Line 917 - Warning: 3590: void used where a Boolean value was expected.  The expression will be type coerced to Boolean. - return (m_flags &#038; e_locked) > 0;<br />
Input.as, Line 155 - Warning: 3590: void used where a Boolean value was expected.  The expression will be type coerced to Boolean. - mouseReleased = !e.buttonDown;<br />
Input.as, Line 189 - Warning: 3590: void used where a Boolean value was expected.  The expression will be type coerced to Boolean. - return (keyState[k] > 0);<br />
Input.as, Line 199 - Warning: 3590: void used where a Boolean value was expected.  The expression will be type coerced to Boolean. - return (keyState[k] == 1);<br />
Input.as, Line 208 - Warning: 3590: void used where a Boolean value was expected.  The expression will be type coerced to Boolean. - return (keyState[k] == -1);<br />
Input.as, Line 217 - Warning: 3590: void used where a Boolean value was expected.  The expression will be type coerced to Boolean. - return (keyBuffer[i][0] == k &#038;&#038; keyBuffer[i][1] <= t);<br />
1046: Type was not found or was not a compile-time constant: b2PolygonDef. - var the_box:b2PolygonDef;<br />
1067: Implicit coercion of a value of type Box2D.Collision:b2AABB to an unrelated type Box2D.Common.Math:b2Vec2. - the_world=new b2World(environment,gravity,true);<br />
1137: Incorrect number of arguments.  Expected no more than 2. - the_world=new b2World(environment,gravity,true);<br />
1178: Attempted access of inaccessible property m_sprite through a reference with static type Box2D.Dynamics:b2DebugDraw. - debug_draw.m_sprite=debug_sprite;<br />
1178: Attempted access of inaccessible property m_drawScale through a reference with static type Box2D.Dynamics:b2DebugDraw. - debug_draw.m_drawScale=30;<br />
1178: Attempted access of inaccessible property m_fillAlpha through a reference with static type Box2D.Dynamics:b2DebugDraw. - debug_draw.m_fillAlpha=0.5;<br />
1178: Attempted access of inaccessible property m_lineThickness through a reference with static type Box2D.Dynamics:b2DebugDraw. - debug_draw.m_lineThickness=1;<br />
1178: Attempted access of inaccessible property m_drawFlags through a reference with static type Box2D.Dynamics:b2DebugDraw. - debug_draw.m_drawFlags=b2DebugDraw.e_shapeBit;<br />
1180: Call to a possibly undefined method b2PolygonDef. - the_box = new b2PolygonDef();<br />
1061: Call to a possibly undefined method CreateShape through a reference with static type Box2D.Dynamics:b2Body. - final_body.CreateShape(the_box);<br />
1061: Call to a possibly undefined method SetMassFromShapes through a reference with static type Box2D.Dynamics:b2Body. - final_body.SetMassFromShapes();<br />
1046: Type was not found or was not a compile-time constant: b2PolygonDef. - var the_box:b2PolygonDef;<br />
1180: Call to a possibly undefined method b2PolygonDef. - final_body.CreateShape(the_box);<br />
1061: Call to a possibly undefined method SetMassFromShapes through a reference with static type Box2D.Dynamics:b2Body. - final_body.SetMassFromShapes();<br />
1136: Incorrect number of arguments.  Expected 3. - the_world.Step(1/30, 10);<br />
Warning: 3590: Box2D.Common.Math:b2Vec2 used where a Boolean value was expected.  The expression will be type coerced to Boolean. - the_world=new b2World(environment,gravity,true);<br />
1046: Type was not found or was not a compile-time constant: b2World. - public var the_world:b2World;<br />
1046: Type was not found or was not a compile-time constant: b2AABB. - var environment:b2AABB = new b2AABB();<br />
1046: Type was not found or was not a compile-time constant: b2Vec2. - var gravity:b2Vec2=new b2Vec2(0.0,10.0);<br />
1046: Type was not found or was not a compile-time constant: b2DebugDraw. - var debug_draw:b2DebugDraw = new b2DebugDraw();<br />
1046: Type was not found or was not a compile-time constant: b2Body. - var final_body:b2Body;<br />
1046: Type was not found or was not a compile-time constant: b2BodyDef. - var the_body:b2BodyDef;<br />
1046: Type was not found or was not a compile-time constant: b2PolygonDef. - var the_box:b2PolygonDef;<br />
1180: Call to a possibly undefined method b2AABB. - var environment:b2AABB = new b2AABB();<br />
1180: Call to a possibly undefined method b2Vec2. - var gravity:b2Vec2=new b2Vec2(0.0,10.0);<br />
1180: Call to a possibly undefined method b2World. - the_world=new b2World(environment,gravity,true);<br />
1180: Call to a possibly undefined method b2DebugDraw. - var debug_draw:b2DebugDraw = new b2DebugDraw();<br />
1120: Access of undefined property b2DebugDraw. - debug_draw.m_drawFlags=b2DebugDraw.e_shapeBit;<br />
1180: Call to a possibly undefined method b2BodyDef. - the_body = new b2BodyDef();<br />
1180: Call to a possibly undefined method b2PolygonDef. - the_box = new b2PolygonDef();<br />
1046: Type was not found or was not a compile-time constant: b2Body. - var final_body:b2Body;<br />
1046: Type was not found or was not a compile-time constant: b2BodyDef. - var the_body:b2BodyDef;<br />
1046: Type was not found or was not a compile-time constant: b2PolygonDef. - var the_box:b2PolygonDef;<br />
1180: Call to a possibly undefined method b2BodyDef. - the_body = new b2BodyDef();<br />
1180: Call to a possibly undefined method b2PolygonDef. - the_box = new b2PolygonDef();<br />
1172: Definition Box2D.Dynamics could not be found. - import Box2D.Dynamics.*;<br />
1172: Definition Box2D.Collision could not be found. - import Box2D.Collision.*;<br />
1172: Definition Box2D.Collision.Shapes could not be found. - import Box2D.Collision.Shapes.*;<br />
1172: Definition Box2D.Common.Math could not be found. - import Box2D.Common.Math.*;</code><br />
I have the solution.</p>
<h3>Possible Causes</h3>
<p>There are two main causes for these type of errors:</p>
<ol>
<li>The Box2d code you are compiling doesn't match the Box2d source files' version.</li>
<li>Flash can not locate the Box2d engine source files.</li>
</ol>
<h4>Version Difference</h4>
<p>Personally, I first encountered the first cause. As it seems, when the Box2d guys updated their <abbr title="Subversion">SVN</abbr> and downloads for the latest version (for the time writing this post: 2.1 alpha <abbr title="as known as">aka</abbr> 2.1a), they forgot to also update their code samples. So if one <a target="_blank" href="http://sourceforge.net/projects/box2dflash/">downloads</a> the latest version and tries to compile the example projects, it simply won't work. Instead, flash will throw some of the errors listed above.</p>
<p>In addition, all of the online resources and tutorials regarding Box2D don't work with the latest Box2D version. I have yet to find an article or a code sample that works flawlessly with the latest version. They really rewrote major parts of the engine thus making lots of code (if not all) incompatible.</p>
<h4>Missing Box2D files</h4>
<p>The second cause is also very common. When compiling any project which uses the Box2d physics engine, Abobe must be able to find the needed Box2d source files. Adobe Flash looks for the files in the projects directory (is our case, for a Box2D subdirectory), and at the locations which one can specify in the preferences menu.</p>
<h3>The Solutions</h3>
<p>These solutions have solved my problems. If these won't help you, or if you have a better solution that you'd like to suggest - comment below.</p>
<h4>Version Difference</h4>
<p>As I've mentioned before, the examples in the latest Box2D download don't match the correct version and almost any code sample you will find online won't work with the latest version of Box2D.</p>
<p>Visit their <a target="_blank" href="http://sourceforge.net/projects/box2dflash/files/">full download page</a> which contains all previous versions and <a target="_blank" href="http://sourceforge.net/projects/box2dflash/files/box2dflash/Box2DFlashAS3_2.0.2/Box2DFlashAS3_2.0.2_.zip/download">download version 2.0.2</a>. All the examples work great in this package. And any other code should also work using this version.</p>
<h4>Missing Box2D files</h4>
<p>Many times, Adobe Flash (also <a target="_blank" href="http://www.flashdevelop.org/">Flash Develop</a> and any other Flash <abbr title="Integrated development environment">IDE</abbr>) won't find the correct Box2D directory to use. As a result it will throw those errors.</p>
<p>To fix this, you have two options:</p>
<ol>
<li>You can simply copy the correct Box2D source folder (a folder named <code>Box2D</code>) to the directory of your project. For instance, if your project lies under <code>C:\projects\box2d-demo\demo.fla</code>, you will need to copy the Box2D folder there. In the end the Box2D folder should lie at <code>C:\projects\box2d-demo\Box2D</code>.</li>
<li>The second option is to inform your IDE about the location of your Box2D folder. I use this option and I store my Box2D directory at <code>C:\Documents and Settings\Oren Yomtov\My Documents\FlashUtilities\Box2D</code>.
<p>To inform your IDE, follow the following steps:</p>
<p>In Adobe Flash:</p>
<ol>
<li>Open your project in Adobe Flash.</li>
<li>Navigate to "Edit->Preferences...".</li>
<li>Click the "ActionScript" tab/category.</li>
<li>Click the "ActionScript 3.0 Settings..." button.</li>
<li>Click the "Browser To Path" (folder/cross icon) button under "Source path:".</li>
<li>Browse to the folder which contains the Box2D folder and click "OK".</li>
<li>Click "OK" twice to save the changes.</li>
</ol>
<p>In Flash Develop (If you use it):</p>
<ol>
<li>Open Flash Develop</li>
<li>Navigate to "Project->Settings..."</li>
<li>Click the "Classpaths" tab.</li>
<li>Click the "Add Classpath..." button.</li>
<li>Browse to the folder which contains the Box2D folder and click "OK".</li>
<li>Click "OK" to save the changes.</li>
</ol>
<p><span class="smaller">NOTE: If you use both, you will need to configure both.<br />
Do not browse directly to the Box2D folder. Instead, browse to it's parent folder.<span></li>
</ol>
<p>Now recompile your code and it should all work.</p>
<p>By the way, if you are looking for video tutorials on the Box2D engine - check out <a target="_blank" href="http://www.kerp.net/box2d/">Todd's great videos</a>. They are very detailed and fun. Good luck.</p>
<strong>Search terms:</strong><ul><li>Type was not found or was not a compile-time constant: b2World</li><li>Type was not found or was not a compile-time constant: b2PolygonDef</li><li>b2PolygonDef</li><li>actionscript 3 </li><li>1046: Type was not found or was not a compile-time constant: Vector</li><li>1046: Type was not found or was not a compile-time constant: b2PolygonDef</li><li>Type was not found or was not a compile-time constant: b2Body</li><li>1067: Implicit coercion of a value of type Box2D Collision:b2AABB to an unrelated type Box2D Common Math:b2Vec2</li><li>Implicit coercion of a value of type Box2D Collision:b2AABB to an unrelated type Box2D Common Math:b2Vec2</li><li>Type was not found or was not a compile-time constant: b2Vec2</li></ul>]]></content:encoded>
			<wfw:commentRss>http://orenyomtov.com/box2d-flash-action-script-3-compile-errors-fix.html/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>The Big Geek and Startup Weekend in Israel</title>
		<link>http://orenyomtov.com/the-big-geek-and-startup-weekend-in-israel.html</link>
		<comments>http://orenyomtov.com/the-big-geek-and-startup-weekend-in-israel.html#comments</comments>
		<pubDate>Sun, 10 Jan 2010 15:38:53 +0000</pubDate>
		<dc:creator>Oren Yomtov</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Big Geek]]></category>
		<category><![CDATA[FixedInch]]></category>
		<category><![CDATA[Frayer Meter]]></category>
		<category><![CDATA[Google Translate]]></category>
		<category><![CDATA[Startup Weekend]]></category>
		<category><![CDATA[Startups]]></category>
		<category><![CDATA[StartupSeeds]]></category>

		<guid isPermaLink="false">http://orenyomtov.com/?p=346</guid>
		<description><![CDATA[<p>Last month I participated in two amazing events. The first one is <a target="_blank" href="http://www.startupseeds.com/biggeek/">The Big Geek</a> and is considerably similar to the second event called <a target="_blank" href="http://israel.startupweekend.org/">Startup Weekend</a>. They both took place in Israel.</p>
<h3>The Big Geek II</h3>
<p><a href="http://orenyomtov.com/downloads/BigGeeklogo.png"><img src="http://orenyomtov.com/downloads/BigGeeklogo.png" alt="BigGeek 2 Logo" title="BigGeek 2 Logo" width="500" height="229" class="aligncenter size-full wp-image-348" /></a></p>
<h4>Startupseeds</h4>
<p><a target="_blank" href="http://www.startupseeds.com/"><img src="http://orenyomtov.com/downloads/startupseeds.jpg" alt="StartupSeeds" title="StartupSeeds" width="207" height="117" class="alignright size-full wp-image-347" /></a><br />
This event was organized by <a target="_blank" href="http://www.startupseeds.com/">StartupSeeds</a>, a non-profit organisation encouraging teen Israeli entrepreneurs to make their first steps in the entrepreneurship ... <a href="http://orenyomtov.com/the-big-geek-and-startup-weekend-in-israel.html" class="read_more">Learn more...</a></p>]]></description>
			<content:encoded><![CDATA[<p>Last month I participated in two amazing events. The first one is <a target="_blank" href="http://www.startupseeds.com/biggeek/">The Big Geek</a> and is considerably similar to the second event called <a target="_blank" href="http://israel.startupweekend.org/">Startup Weekend</a>. They both took place in Israel.</p>
<h3>The Big Geek II</h3>
<p><a href="http://orenyomtov.com/downloads/BigGeeklogo.png"><img src="http://orenyomtov.com/downloads/BigGeeklogo.png" alt="BigGeek 2 Logo" title="BigGeek 2 Logo" width="500" height="229" class="aligncenter size-full wp-image-348" /></a></p>
<h4>Startupseeds</h4>
<p><a target="_blank" href="http://www.startupseeds.com/"><img src="http://orenyomtov.com/downloads/startupseeds.jpg" alt="StartupSeeds" title="StartupSeeds" width="207" height="117" class="alignright size-full wp-image-347" /></a><br />
This event was organized by <a target="_blank" href="http://www.startupseeds.com/">StartupSeeds</a>, a non-profit organisation encouraging teen Israeli entrepreneurs to make their first steps in the entrepreneurship world. Whether it&#8217;s by giving them <a target="_blank" href="http://www.startupseeds.com/forums">a place to talk about technology</a>, or by conducting monthly meetings with the most interesting lectures (for free!). StartupSeeds even assists young innovative kids with starting their own startups by providing them financial help and the <a target="_blank" href="http://www.startupseeds.com/Page.aspx?page=mentors">best mentors</a> available. The online forum and meetings created a large and friendly community for the Israeli teenager who breaths technology and internet.</p>
<h4>What&#8217;s the event about?</h4>
<p><a target="_blank" href="http://www.startupseeds.com/BigGeek/Team.aspx">Sixteen kids</a> (Ages 14-18), divided into four &#8220;teams&#8221;, worked 24 hours non-stop on their unique idea for a startup. Each team raised a fully working service within those 24 hours (!). While the projects are not breath-taking nor unbelievable, they are still awesome considering the time spent working on them. Actually, they&#8217;re awesome not matter what.</p>
<p><a target="_blank" href="http://www.fixedinch.com/"><img src="http://orenyomtov.com/downloads/fixedinch.jpg" alt="FixedInch" title="FixedInch" width="250" height="83" class="alignright size-full wp-image-362" /></a><br />
The project that <a target="_blank" href="http://www.fixedinch.com/about-us/">my team</a> and I developed is <a target="_blank" href="http://www.fixedinch.com/">FixedInch</a>. It&#8217;s a free online service for displaying objects in their real size over any screen in the world. We have discussed the possibility to continue working on it, and we most likely will, in the near future.</p>
<p>What else can I say? It was an awesome experience that I will never forget. It was 24 hours of fun and <a target="_blank" href="http://www.startupseeds.com/forums/tech/t65663-biggeek_%D7%90%D7%A9%D7%9B%D7%95%D7%9C_%D7%94%D7%91%D7%93%D7%99%D7%97%D7%95%D7%AA">jokes</a>, some of could not be told anywhere else like (via <a target="_blank" href="http://www.twitter.com/taldromi">@TalDromi</a>):</p>
<blockquote><p>&#8220;Let&#8217;s use JSON for this&#8221;<br />
&#8220;Who&#8217;s this Jason you are talking about?&#8221;<br />
&#8220;XML&#8217;s brother!&#8221;</p></blockquote>
<p><a target="_blank" href="http://www.startupseeds.com/album.aspx?name=%D7%94%D7%92%D7%99%D7%A7%20%D7%94%D7%92%D7%93%D7%95%D7%9C%202">View photos from the event</a></p>
<h3>Startup Weekend Israel 2009</h3>
<p><a target="_blank" href="http://israel.startupweekend.org/"><img src="http://orenyomtov.com/downloads/startup-weekend-israel.jpg" alt="Startup Weekend Israel" title="Startup Weekend Israel" width="500" height="107" class="aligncenter size-full wp-image-354" /></a></p>
<p>This is a <a target="_blank" href="http://startupweekend.org/">world-wide</a> known event, which started in 2007. Since then it took place in over 50 cities and growing (!). This is kind of a grown-up version of the Big Geek.</p>
<p>During the first day, 140 Israeli entrepreneurs pitched 50 unique ideas which turned into thirteen motivated teams. Each team consisted of about 4-8 people who designed and developed their idea for three days. The second day was all about work and food (lots of it!). On the third day of the event, the teams finished their work and <a target="_blank" href="http://www.newsgeek.co.il/startup-weekend-israel-updates/">presented</a> their project.</p>
<p><a target="_blank" href="http://www.frayermeter.com/"><img src="http://orenyomtov.com/downloads/frayer-meter.jpg" alt="Frayer Meter" title="Frayer Meter" width="250" height="132" class="alignright size-full wp-image-363" /></a><br />
<a target="_blank" href="http://www.frayermeter.com/about/">My team</a> and I worked on <a target="_blank" href="http://www.frayermeter.com/">Frayer Meter</a> &#8211; an online free service that suggests the most economical cellular plan according to one&#8217;s needs. While it&#8217;s not fully functional, we plan to continue working on it as we believe in it&#8217;s potential.</p>
<p><span class="smaller">NOTE: If you don&#8217;t know Hebrew, feel free to use <a target="_blank" href="http://translate.google.com/">Google Translate</a> when visiting links from this post.</span></p>
<strong>Search terms:</strong><ul><li>right next to you lyrics</li><li>lyrics techno song yahoo answers</li><li>lyrics to right next to you</li><li>startupseeds</li><li>chopsticks instructions</li><li>lolcats gif</li><li>israel startup weekend</li><li>funny yahoo answers techno</li><li>forum techno song funny</li><li>yahoo answers whats that song</li></ul>]]></content:encoded>
			<wfw:commentRss>http://orenyomtov.com/the-big-geek-and-startup-weekend-in-israel.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Timing</title>
		<link>http://orenyomtov.com/php-timing.html</link>
		<comments>http://orenyomtov.com/php-timing.html#comments</comments>
		<pubDate>Sat, 31 Oct 2009 15:13:06 +0000</pubDate>
		<dc:creator>Oren Yomtov</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Format]]></category>
		<category><![CDATA[Function]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Time]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://orenyomtov.com/?p=325</guid>
		<description><![CDATA[<p>Lately, a fellow web developer of mine asked me why can&#8217;t he manage to save the current time in a MySQL table. The problem was that he didn&#8217;t understand how the <abbr title="PHP Hypertext Preprocessor">PHP</abbr> timing mechanism works. That&#8217;s why I decided to write this article.</p>
<p>Working with PHP is easier than most people originally think. It is after all the general purpose ... <a href="http://orenyomtov.com/php-timing.html" class="read_more">Learn more...</a></p>]]></description>
			<content:encoded><![CDATA[<p>Lately, a fellow web developer of mine asked me why can&#8217;t he manage to save the current time in a MySQL table. The problem was that he didn&#8217;t understand how the <abbr title="PHP Hypertext Preprocessor">PHP</abbr> timing mechanism works. That&#8217;s why I decided to write this article.</p>
<p>Working with PHP is easier than most people originally think. It is after all the general purpose scripting language used in web development. Once you understand the basics like time managment and databases, you can very easly produce dynamic web paging using it. Before you even consider setting up a webpage, it must be a <a target="_blank" href="http://www.o2blueroom.co.uk/about-priority-tickets">priority</a> to understand the basics of PHP. Hopefully you will find the following helpful and informative.</p>
<h3>time() and date()</h3>
<h4>time()</h4>
<p>The <a target="_blank" href="http://php.net/manual/en/function.time.php">time()</a> function receives no parameters and returns the current time measured in the number of seconds since January 1 1970 00:00:00 GMT.<br />
This may sound a bit weird but I find it to be clever.</p>
<p>Because one doesn&#8217;t want to display dates and times in PHP as a very long number (e.g. &#8220;The current time is 1256702873&#8243;), the <code>date()</code> function was created.</p>
<h4>date()</h4>
<p>The <a target="_blank" href="http://php.net/manual/en/function.date.php">date()</a> function returns a string formatted according to the given format parameter.</p>
<p>The function is documented as follows:<br />
<code>string date ( string $format [, int $timestamp ] )</code><br />
While I prefer to think of it as:<br />
<code>string date ( string $format [, int $timestamp=time()] )</code><br />
If you don&#8217;t pass the second parameter, it uses the <code>time()</code> function instead.</p>
<p>Lets see a couple of examples:<br />
<code>&lt;?php<br />
// Assuming today is March 10th, 2001, 5:16:18 pm, and that we are in the<br />
// Mountain Standard Time (MST) Time Zone</p>
<p>$today = date(&quot;F j, Y, g:i a&quot;);                 // March 10, 2001, 5:16 pm<br />
$today = date(&quot;m.d.y&quot;);                         // 03.10.01<br />
$today = date(&quot;j, n, Y&quot;);                       // 10, 3, 2001<br />
$today = date(&quot;Ymd&quot;);                           // 20010310<br />
$today = date('h-i-s, j-m-y, it is w Day');     // 05-16-18, 10-03-01, 1631 1618 6 Satpm01<br />
$today = date('\i\t \i\s \t\h\e jS \d\a\y.');   // it is the 10th day.<br />
$today = date(&quot;D M j G:i:s T Y&quot;);               // Sat Mar 10 17:16:18 MST 2001<br />
$today = date('H:m:s \m \i\s\ \m\o\n\t\h');     // 17:03:18 m is month<br />
$today = date(&quot;H:i:s&quot;);                         // 17:16:18<br />
?&gt;</code></p>
<p>I don&#8217;t want to get into the format parameter in this post, but you can read all about it at the <a target="_blank" href="http://php.net/manual/en/function.date.php">PHP manual</a>.</p>
<h3>Saving the time in a MySQL Database</h3>
<h4>The wrong way</h4>
<p>My friend was using some sort of a special &#8220;date&#8221;/&#8221;time&#8221;/&#8221;timestamp&#8221;/&#8221;datetime&#8221; column type because he didn&#8217;t know what he was getting from the <code>time()</code> function.<br />
This is not the way to store the result from <code>time()</code>. While it may be useful in certain circumstances, I&#8217;d rather save the number of seconds since January 1 1970 00:00:00 GMT for later easier manipulation with PHP.</p>
<h4>The right way</h4>
<p>All you need to do is use a simple INT or BIGINT column type to store what you get from your <code>time()</code> call.<br />
In order to display it, use the <code>date()</code> function, passing it as the second parameter.</p>
<strong>Search terms:</strong><ul><li>php timing</li><li>current date and timeing in php</li><li>save current date and time in php mysql</li><li>php yom tov function</li><li>php timing webpage</li><li>php page for date and time and save into mysql</li><li>php oren</li><li>php get time mst</li><li>how to save current date time in mysql db using php</li><li>how to pass current date and time to function in MST format in php</li></ul>]]></content:encoded>
			<wfw:commentRss>http://orenyomtov.com/php-timing.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>WordPress Templates Complete Guide &amp; Tips</title>
		<link>http://orenyomtov.com/wordpress-templates-complete-guide-tips.html</link>
		<comments>http://orenyomtov.com/wordpress-templates-complete-guide-tips.html#comments</comments>
		<pubDate>Fri, 18 Sep 2009 12:30:26 +0000</pubDate>
		<dc:creator>Oren Yomtov</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Custom Templates]]></category>
		<category><![CDATA[WordPress Core]]></category>
		<category><![CDATA[WordPress Templates]]></category>
		<category><![CDATA[wordpress theme developer]]></category>
		<category><![CDATA[WordPress Themes]]></category>
		<category><![CDATA[wp guide]]></category>

		<guid isPermaLink="false">http://orenyomtov.com/?p=298</guid>
		<description><![CDATA[<p>A theme consists of many files, this can get very confusing very fast. What files are needed? What files runs when and why? Here are the explanations and tips about WordPress template files.</p>
<p>First things first, what is a template exactly? A template is a PHP file that is a part of a theme. For example, there is a template ... <a href="http://orenyomtov.com/wordpress-templates-complete-guide-tips.html" class="read_more">Learn more...</a></p>]]></description>
			<content:encoded><![CDATA[<p>A theme consists of many files, this can get very confusing very fast. What files are needed? What files runs when and why? Here are the explanations and tips about WordPress template files.</p>
<p>First things first, what is a template exactly? A template is a PHP file that is a part of a theme. For example, there is a template for displaying the home page, one for displaying pages and another one for displaying posts.</p>
<h3>What Are The Existing WordPress Tempaltes?</h3>
<p>Here is a list of the existing WordPress templates that can be used in themes:</p>
<ul>
<li><strong>index.php</strong> &#8211; The master template.  If a certain template file does is not found, this one is being used.</li>
<li><strong>home.php</strong> &#8211; Displays the <a href="http://orenyomtov.com/">home page</a>.</li>
<li><strong>page.php</strong> &#8211; Displays page&#8217;s page (It displays my contact page).</li>
<li><strong>single.php</strong> &#8211; Displays the post&#8217;s page (This is what you are now viewing if you are reading this <a href="http://orenyomtov.com/wordpress-templates-complete-guide-tips.html">here</a>).</li>
<li><strong>author.php</strong> &#8211; Displays the author page. This is not such a common template as most themes don&#8217;t use author pages.</li>
<li><strong>tag.php</strong> &#8211; Displays the posts which have a specific tag. (e.g. <a href="http://orenyomtov.com/yomtov/ftp">FTP</a>)</li>
<li><strong>category.php</strong> &#8211; Displays posts from a specific category. (e.g. <a href="http://orenyomtov.com/oren/wordpress">WordPress</a>)</li>
<li><strong>date.php</strong> &#8211; Displays posts from a specific time range.</li>
<li><strong>archive.php</strong> &#8211; Used if tag.php,category.php or date.php is not found.</li>
<li><strong>search.php</strong> &#8211; Displays search results. (e.g. <a href="http://orenyomtov.com/?s=How+To">How To</a>)</li>
<li><strong>404.php</strong> &#8211; When WordPress sends a 404 header. (When it <a href="http://orenyomtov.com/thereisnosuchpage" rel="nofollow">cant find</a> something)</li>
<li>image.php,video.php,audio.php,application.php or any other first part of the attachment&#8217;s <a target="_blank" href="http://www.google.com/search?q=MIME+type">MIME type</a> &#8211; Attachment.</li>
<li><strong>attachment.php</strong> &#8211; If one of the last templates (image.php&#8230;) are not found.</li>
</ul>
<p>Here is a very useful image provided by <a target="_blank" href="http://codex.wordpress.org/Template_Hierarchy">WordPress Codex</a> (click to enlarge):</p>
<p><a href="http://orenyomtov.com/downloads/Template_Hierarchy.png" title="WordPress Template Hierarchy"><img src="http://orenyomtov.com/downloads/Template_Hierarchy.png" alt="WordPress Template Hierarchy" width="600" height="478" class="alignnone size-full wp-image-299" /></a></p>
<h3>Custom Templates</h3>
<p>There are two main types of custom WordPress templates.</p>
<p>The first one are templates that WordPress looks for automatically, and if one is found it will be used. What the heck am I talking about?<br />
If you have a category called &#8220;News&#8221; with the ID of 512 and you want the archive page of that category to have it&#8217;s own unique template you can create a new template file called <code>category-512.php</code> in the theme&#8217;s folder. And WordPress will use it.</p>
<p>This is the list of custom wordpress templates you can use:</p>
<ul>
<li>category-<strong>id</strong>.php</li>
<li>tag-<strong>slug</strong>.php</li>
<li><strong>pagename</strong>.php</li>
<li><strong>firstpartoftheattachmentsMIMEtype</strong>.php</li>
</ul>
<p><img src="http://orenyomtov.com/downloads/wordpress-custom-template.jpg" alt="WordPress Custom Template Drop Down" title="WordPress Custom Template Drop Down" width="284" height="454" class="alignright size-full wp-image-302" /></p>
<p>Now for the second type of WordPress custom templates.</p>
<p>Let&#8217;s say you have more then one page* you want to be displayed in a different way then the others. How do you do that?<br />
Create a new file called <code>whatever.php</code> at your theme&#8217;s folder and inside write whatever you want instead of <code>single.php</code> or <code>index.php</code> (depending what displays the single posts at your theme).<br />
Add this comment to the top of the file:</p>
<p><code>&lt;?php<br />
/*<br />
Template Name: The Whatever Template Yo<br />
*/<br />
?&gt;</code></p>
<p><span class="smaller">(Of course change <code>The Whatever Template Yo</code> to the new template&#8217;s name)</span></p>
<p>Now edit (or create) the pages which you want to use this template and in the right side pick the desired template from the drop down menu. Just like in the screenshot at the right side.</p>
<p>*<span class="smaller">If you want to do this for posts rather then pages then you will find the <a target="_blank" href="http://wordpress.org/extend/plugins/custom-post-template/">Custom Post Template</a> plugin very useful.</span></p>
<p>Any questions/corrections? Comments are always welcome.</p>
<strong>Search terms:</strong><ul><li>wordpress template guide</li><li>wordpress date php template</li><li>3590: String used where a Boolean value was expected The expression will be type coerced to Boolean in &lt;mx:Image /&gt;</li><li>wordpress custom templates</li><li>it templates</li><li>how to write song lyrics example</li><li>wordpress templates guide</li><li>attachment php wordpress</li><li>attachment php wordpress 404</li><li>date php wordpress template</li></ul>]]></content:encoded>
			<wfw:commentRss>http://orenyomtov.com/wordpress-templates-complete-guide-tips.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: orenyomtov.com @ 2012-05-21 23:41:47 -->
