<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Oren Yomtov's Website</title>
	
	<link>http://orenyomtov.com</link>
	<description>Programming and other interesting stuff</description>
	<lastBuildDate>Sat, 06 Mar 2010 12:45:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/orenyomtov" /><feedburner:info uri="orenyomtov" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>orenyomtov</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Box2d Flash (ActionScript 3) Compile Errors Fix</title>
		<link>http://feedproxy.google.com/~r/orenyomtov/~3/B9qYPa5bLBg/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[When I started developing in flash using the Box2d physics engine, 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?
The Problem&#8217;s Symptoms
If you encountered any of these error messages when compiling a Box2d flash project:
b2World.as, Line 871 - [...]]]></description>
			<content:encoded><![CDATA[<p><a 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 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 href="http://sourceforge.net/projects/box2dflash/files/">full download page</a> which contains all previous versions and <a 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 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 href="http://www.kerp.net/box2d/">Todd's great videos</a>. They are very detailed and fun. Good luck.</p>
<img src="http://feeds.feedburner.com/~r/orenyomtov/~4/B9qYPa5bLBg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://orenyomtov.com/box2d-flash-action-script-3-compile-errors-fix.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://orenyomtov.com/box2d-flash-action-script-3-compile-errors-fix.html</feedburner:origLink></item>
		<item>
		<title>Google Reader Tip – Subscribe in One Click</title>
		<link>http://feedproxy.google.com/~r/orenyomtov/~3/NhtERLX36ug/google-reader-tip-subscribe-in-one-click.html</link>
		<comments>http://orenyomtov.com/google-reader-tip-subscribe-in-one-click.html#comments</comments>
		<pubDate>Sat, 30 Jan 2010 14:33:24 +0000</pubDate>
		<dc:creator>Oren Yomtov</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Bookmark]]></category>
		<category><![CDATA[Drag & Drop]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[Google Chrome]]></category>
		<category><![CDATA[Google Reader]]></category>
		<category><![CDATA[Link]]></category>
		<category><![CDATA[RSS]]></category>
		<category><![CDATA[Subscribe]]></category>

		<guid isPermaLink="false">http://orenyomtov.com/?p=426</guid>
		<description><![CDATA[Surfing the web, you find many interesting websites or blogs which you want to subscribe to. But the never-ending search for the RSS link is a burden we all share. If you are using Google Reader, I may have the perfect solution for you.
Bookmark or favorite the following URL:javascript:var%20b=document.body;var%20GR________bookmarklet_domain='http://www.google.com';if(b&#038;&#038;!document.xmlVersion){void(z=document.createElement('script'));void(z.src='http://www.google.com/reader/ui/subscribe-bookmarklet.js');void(b.appendChild(z));}else{location='http://www.google.com/reader/view/feed/'+encodeURIComponent(location.href)}Using Google Chrome or Firefox, you can [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://orenyomtov.com/downloads/google-reader.png"><img src="http://orenyomtov.com/downloads/google-reader.png" alt="Google Reader" title="Google Reader" width="178" height="40" class="alignright size-full wp-image-427" /></a>Surfing the web, you find many interesting websites or blogs which you want to subscribe to. But the never-ending search for the <abbr title="Really Simple Syndication">RSS</abbr> link is a burden we all share. If you are using <a href="http://www.google.com/reader">Google Reader</a>, I may have the perfect solution for you.</p>
<p>Bookmark or favorite the following <abbr title="Uniform Resource Locator">URL</abbr>:<code style="display:block;overflow:scroll">javascript:var%20b=document.body;var%20GR________bookmarklet_domain='http://www.google.com';if(b&#038;&#038;!document.xmlVersion){void(z=document.createElement('script'));void(z.src='http://www.google.com/reader/ui/subscribe-bookmarklet.js');void(b.appendChild(z));}else{location='http://www.google.com/reader/view/feed/'+encodeURIComponent(location.href)}</code>Using <a href="http://www.google.com/chrome/">Google Chrome</a> or <a href="http://www.mozilla.com/firefox/">Firefox</a>, you can drag this link to your bookmarks bar &#8211; <a href="javascript:var%20b=document.body;var%20GR________bookmarklet_domain='http://www.google.com';if(b&#038;&#038;!document.xmlVersion){void(z=document.createElement('script'));void(z.src='http://www.google.com/reader/ui/subscribe-bookmarklet.js');void(b.appendChild(z));}else{location='http://www.google.com/reader/view/feed/'+encodeURIComponent(location.href)}">Subscribe</a>.</p>
<p>Now, you may skip the RSS link seeking and simply click the <a href="javascript:var%20b=document.body;var%20GR________bookmarklet_domain='http://www.google.com';if(b&#038;&#038;!document.xmlVersion){void(z=document.createElement('script'));void(z.src='http://www.google.com/reader/ui/subscribe-bookmarklet.js');void(b.appendChild(z));}else{location='http://www.google.com/reader/view/feed/'+encodeURIComponent(location.href)}">link</a> you have just bookmarked.</p>
<p>In my browser, Google Chrome, it looks like this:<br />
<a href="http://orenyomtov.com/downloads/subscribe-bookmark.jpg"><img src="http://orenyomtov.com/downloads/subscribe-bookmark.jpg" alt="Subscribe Bookmark" title="Subscribe Bookmark" width="171" height="60" class="aligncenter size-full wp-image-434" /></a></p>
<p>If you want to check it out, feel free to give it a shot and subscribe to my <a href="http://orenyomtov.com/">blog</a>.</p>
<img src="http://feeds.feedburner.com/~r/orenyomtov/~4/NhtERLX36ug" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://orenyomtov.com/google-reader-tip-subscribe-in-one-click.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://orenyomtov.com/google-reader-tip-subscribe-in-one-click.html</feedburner:origLink></item>
		<item>
		<title>YouTube Thumbnailer v1.1</title>
		<link>http://feedproxy.google.com/~r/orenyomtov/~3/yzBzoH_cwSQ/youtube-thumbnailer-v1-1.html</link>
		<comments>http://orenyomtov.com/youtube-thumbnailer-v1-1.html#comments</comments>
		<pubDate>Tue, 26 Jan 2010 12:43:36 +0000</pubDate>
		<dc:creator>Oren Yomtov</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[YouTube Thumbnailer]]></category>
		<category><![CDATA[Bug Reports]]></category>
		<category><![CDATA[Version Upgrade]]></category>
		<category><![CDATA[wordpress plugin developer]]></category>

		<guid isPermaLink="false">http://orenyomtov.com/?p=418</guid>
		<description><![CDATA[First, thank you for the bug reports. Without them, new &#038; enhanced versions simply won&#8217;t come out.
The plugin now has better video detection capabilities, and a serious bug regarding the auto thumbnailing feature is fixed.
You can download the new version at:
http://wordpress.org/extend/plugins/youtube-thumbnailer/
Any bug reports, feature requests or comments are welcomed in the comments section below.
]]></description>
			<content:encoded><![CDATA[<p>First, thank you for the <a href="http://orenyomtov.com/youtube-thumbnailer-plugin-should-now-actually-work.html#comments">bug reports</a>. Without them, new &#038; enhanced versions simply won&#8217;t come out.</p>
<p>The plugin now has better video detection capabilities, and a serious bug regarding the auto thumbnailing feature is fixed.</p>
<p>You can <a href="http://downloads.wordpress.org/plugin/youtube-thumbnailer.zip">download</a> the new version at:<br />
<a href="http://wordpress.org/extend/plugins/youtube-thumbnailer/">http://wordpress.org/extend/plugins/youtube-thumbnailer/</a></p>
<p>Any bug reports, feature requests or comments are welcomed in the comments section below.</p>
<img src="http://feeds.feedburner.com/~r/orenyomtov/~4/yzBzoH_cwSQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://orenyomtov.com/youtube-thumbnailer-v1-1.html/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		<feedburner:origLink>http://orenyomtov.com/youtube-thumbnailer-v1-1.html</feedburner:origLink></item>
		<item>
		<title>Moving to a dot com domain</title>
		<link>http://feedproxy.google.com/~r/orenyomtov/~3/hRV1ifyUwJA/moving-to-a-dot-com-domain.html</link>
		<comments>http://orenyomtov.com/moving-to-a-dot-com-domain.html#comments</comments>
		<pubDate>Fri, 22 Jan 2010 21:27:33 +0000</pubDate>
		<dc:creator>Oren Yomtov</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Domains]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Google Analytics]]></category>
		<category><![CDATA[Google Webmaster Tools]]></category>
		<category><![CDATA[Transfer]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://orenyomtov.com/?p=409</guid>
		<description><![CDATA[Have a look at your browser&#8217;s address bar &#8211; your sight is just fine. You actually are on orenyomtov.com as opposed to this morning, when this website lived under the .info TLD.
It has been quite a long time since I made the decision to move to the new domain. But there were two drawbacks which [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://orenyomtov.com/downloads/dot-com.jpg"><img src="http://orenyomtov.com/downloads/dot-com.jpg" alt="dot com" title="dot com" width="349" height="230" class="alignright size-full wp-image-423" /></a>Have a look at your browser&#8217;s address bar &#8211; your sight is just fine. You actually are on orenyomtov<strong>.com</strong> as opposed to this morning, when this website lived under the <a href="http://en.wikipedia.org/wiki/.info">.info</a> <abbr title="Top Level Domain">TLD</abbr>.</p>
<p>It has been quite a long time since I made the decision to move to the new domain. But there were two drawbacks which delayed the domain transfer. The first one is lack of time, and the second one is&#8230; Well, my laziness.</p>
<p>Anyways, I thought I would share some of the steps I took in order to move the website to the new domain. I was lucky enough that I didn’t have to change hosts. Doing that may have required some additional steps.</p>
<ol>
<li>I <a href="http://www.godaddy.com/default.aspx">bought</a> the new domain and linked it to my hosting.</li>
<li>I downloaded the <a href="http://wordpress.org/download/">latest WordPress installation</a> and uploaded it into the new domain by <abbr title="File Transfer Protocol">FTP</abbr> (<a href="http://orenyomtov.com/filezilla-vs-flashfxp.html">Looking for an FTP client?</a>).</li>
<li>I copied the <code>wp-content</code> folder. And in my case, the <a href="http://orenyomtov.com/downloads/">&#8220;downloads&#8221; folder</a> which is the folder I chose to store the uploads in (Default is <code>wp-content/uploads</code>).</li>
<li>I also copied the <code>wp-config.php</code> file and the <code>.htaccess</code> file.</li>
<li>I used the <a href="http://wordpress.org/extend/plugins/search-and-replace/">Search and Replace WordPress plugin</a> to replace &#8220;orenyomtov.info&#8221; with &#8220;orenyomtov.com&#8221; in the database.</li>
<li>I notified Google of the domain change in <a href="http://www.google.com/webmasters/tools/">Google Webmaster Tools</a>.</li>
<li>I exported a new sitemap using the <a href="http://wordpress.org/extend/plugins/google-sitemap-generator/">Google XML Sitemap Generator plugin</a> and submitted it to Google Webmaster Tools.</li>
<li>I opened a new <a href="http://www.google.com/analytics/">Google Analytics</a> account and deployed the new tracking code in the theme I copied in step 3.</li>
<li>I edited the old .htaccess file to contain only:<br />
<code>RewriteEngine on<br />
RewriteRule (.*) http://orenyomtov.com/$1 [R=301,L]</code></li>
<li>I updated my <a href="http://feedburner.google.com/">FeedBurner</a> account and all other similar services.</li>
<li>I updated my website to the new URL in all of my favorite social platforms (<a href="http://twitter.com/orenyomtov">@orenyomtov</a>) and forums.</li>
<li><a href="http://twitter.com/orenyomtov/status/8072391263">Twit twit</a>.</li>
<li>And then I began writing this post.</li>
</ol>
<p>The move didn&#8217;t take as long as I expected it to take. Even though it does seem a little complicated after writing it all down.</p>
<p>I hope that your move will be as smooth as mine. Good luck, Oren.</p>
<img src="http://feeds.feedburner.com/~r/orenyomtov/~4/hRV1ifyUwJA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://orenyomtov.com/moving-to-a-dot-com-domain.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<feedburner:origLink>http://orenyomtov.com/moving-to-a-dot-com-domain.html</feedburner:origLink></item>
		<item>
		<title>Interesting Personality Tests Answers</title>
		<link>http://feedproxy.google.com/~r/orenyomtov/~3/F4QFXUUWeAs/interesting-personality-tests-answers.html</link>
		<comments>http://orenyomtov.com/interesting-personality-tests-answers.html#comments</comments>
		<pubDate>Sun, 17 Jan 2010 09:17:01 +0000</pubDate>
		<dc:creator>Oren Yomtov</dc:creator>
				<category><![CDATA[Random Stuff]]></category>
		<category><![CDATA[Answers]]></category>
		<category><![CDATA[Friendly]]></category>
		<category><![CDATA[Innovative]]></category>
		<category><![CDATA[Job]]></category>
		<category><![CDATA[Opinion]]></category>
		<category><![CDATA[Question]]></category>
		<category><![CDATA[Tests]]></category>

		<guid isPermaLink="false">http://orenyomtov.com/?p=390</guid>
		<description><![CDATA[When one goes to a job interview, mostly in retail stores and other similar jobs, a test is often asked to be filled. The purpose of the test is to aid the filtering process of the applications in there.
My brother emailed me an interesting answer sheet for one of those tests. You should really take [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://orenyomtov.com/downloads/test.jpg" alt="Filling a test" title="Filling a test" width="347" height="346" class="alignright size-full wp-image-397" />When one goes to a job interview, mostly in retail stores and other similar jobs, a test is often asked to be filled. The purpose of the test is to aid the filtering process of the applications in there.</p>
<p>My brother emailed me an interesting <a href="http://www.timothyhorrigan.com/documents/unicru-personality-test.answer-key.html">answer sheet</a> for one of those tests. You should really take a look at it, there are some very interesting answers and questions.</p>
<p>For example, every question has four possible answers:</p>
<ul>
<li>Strongly Disagree</li>
<li>Disagree</li>
<li>Agree</li>
<li>Strongly Agree</li>
</ul>
<p>And only <em>one</em> correct answer, but according to the <a href="http://www.timothyhorrigan.com/documents/unicru-personality-test.answer-key.html">answer key</a>: <q cite="http://www.timothyhorrigan.com/documents/unicru-personality-test.answer-key.html">&#8220;Disagree&#8221; or &#8220;Agree&#8221; are NEVER the right answer to any question, even though any sensible person will have mixed feelings about all these questions</q>.</p>
<p>Nevertheless, I have found several particularly interesting answers for questions I know I would have answered differently:</p>
<ul>
<li>When people make mistakes, you correct them &#8211; Strongly Disagree</li>
<li>When you are annoyed with something, you say so &#8211; Strongly Disagree</li>
<li>You do not like to take orders &#8211; Strongly Disagree</li>
<li>You get mad at yourself when you make mistakes &#8211; Strongly Disagree</li>
</ul>
<p>And some other answers that quite surprised me:</p>
<ul>
<li>You are somewhat a of a thrill-seeker &#8211; Strongly Agree</li>
<li>Many people cannot be trusted &#8211; Strongly Disagree</li>
<li>You&#8217;ve done your share of troublemaking &#8211; Strongly Disagree</li>
</ul>
<p>I found these tests to be anti-ambitious and anti-innovative. They are simply looking for strait-forward, friendly and rule obeying employees. What is your opinion?</p>
<img src="http://feeds.feedburner.com/~r/orenyomtov/~4/F4QFXUUWeAs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://orenyomtov.com/interesting-personality-tests-answers.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://orenyomtov.com/interesting-personality-tests-answers.html</feedburner:origLink></item>
		<item>
		<title>YouTube Thumbnailer Plugin Should Now Actually Work</title>
		<link>http://feedproxy.google.com/~r/orenyomtov/~3/jh7a4-KQ3dE/youtube-thumbnailer-plugin-should-now-actually-work.html</link>
		<comments>http://orenyomtov.com/youtube-thumbnailer-plugin-should-now-actually-work.html#comments</comments>
		<pubDate>Sun, 10 Jan 2010 23:48:57 +0000</pubDate>
		<dc:creator>Oren Yomtov</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[YouTube Thumbnailer]]></category>
		<category><![CDATA[custom field]]></category>
		<category><![CDATA[new]]></category>
		<category><![CDATA[Thumbnail]]></category>
		<category><![CDATA[Version Upgrade]]></category>
		<category><![CDATA[WordPress Plugins]]></category>
		<category><![CDATA[YouTube]]></category>

		<guid isPermaLink="false">http://orenyomtov.com/?p=383</guid>
		<description><![CDATA[I&#8217;ve received many emails complaining that the plugin does not recognize YouTube videos. Because of lack of time, I delayed the update until now.
I just released an update to the plugin which should solve most of the issues that I was contacted about.
Go ahead and download the new version:
http://wordpress.org/extend/plugins/youtube-thumbnailer/
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve received many emails complaining that the plugin does not recognize YouTube videos. Because of lack of time, I delayed the update until now.</p>
<p>I just released an update to the plugin which should solve most of the issues that I was contacted about.</p>
<p>Go ahead and <a href="http://downloads.wordpress.org/plugin/youtube-thumbnailer.zip">download</a> the new version:<br />
<a href="http://wordpress.org/extend/plugins/youtube-thumbnailer/">http://wordpress.org/extend/plugins/youtube-thumbnailer/</a></p>
<img src="http://feeds.feedburner.com/~r/orenyomtov/~4/jh7a4-KQ3dE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://orenyomtov.com/youtube-thumbnailer-plugin-should-now-actually-work.html/feed</wfw:commentRss>
		<slash:comments>23</slash:comments>
		<feedburner:origLink>http://orenyomtov.com/youtube-thumbnailer-plugin-should-now-actually-work.html</feedburner:origLink></item>
		<item>
		<title>The Big Geek and Startup Weekend in Israel</title>
		<link>http://feedproxy.google.com/~r/orenyomtov/~3/8kTtYKFa_es/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[Last month I participated in two amazing events. The first one is The Big Geek and is considerably similar to the second event called Startup Weekend. They both took place in Israel.
The Big Geek II

Startupseeds

This event was organized by StartupSeeds, a non-profit organisation encouraging teen Israeli entrepreneurs to make their first steps in the entrepreneurship [...]]]></description>
			<content:encoded><![CDATA[<p>Last month I participated in two amazing events. The first one is <a href="http://www.startupseeds.com/biggeek/">The Big Geek</a> and is considerably similar to the second event called <a 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 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 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 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 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 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 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 href="http://www.fixedinch.com/about-us/">my team</a> and I developed is <a 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 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 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 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 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 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 href="http://www.newsgeek.co.il/startup-weekend-israel-updates/">presented</a> their project.</p>
<p><a 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 href="http://www.frayermeter.com/about/">My team</a> and I worked on <a 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 href="http://translate.google.com/">Google Translate</a> when visiting links from this post.</span></p>
<img src="http://feeds.feedburner.com/~r/orenyomtov/~4/8kTtYKFa_es" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://orenyomtov.com/the-big-geek-and-startup-weekend-in-israel.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://orenyomtov.com/the-big-geek-and-startup-weekend-in-israel.html</feedburner:origLink></item>
		<item>
		<title>PHP Timing</title>
		<link>http://feedproxy.google.com/~r/orenyomtov/~3/HReeLLmv-Cw/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[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 PHP timing mechanism works. That&#8217;s why I decided to write this article.
time() and date()
time()
The time() function receives no parameters and returns the current time [...]]]></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>
<h3>time() and date()</h3>
<h4>time()</h4>
<p>The <a 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 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&#8217;d prefer to think of it as<br />
<code>string date ( string $format , int $timestamp=time())</code><br />
Because 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, but you can read about it at the <a 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 and in order to display it, use the <code>date()</code> function, passing it as the second parameter.</p>
<img src="http://feeds.feedburner.com/~r/orenyomtov/~4/HReeLLmv-Cw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://orenyomtov.com/php-timing.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://orenyomtov.com/php-timing.html</feedburner:origLink></item>
		<item>
		<title>WordPress Templates Complete Guide &amp; Tips</title>
		<link>http://feedproxy.google.com/~r/orenyomtov/~3/eyTzPfzuCQA/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[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.
First things first, what is a template exactly? A template is a PHP file that is a part of a theme. For example, [...]]]></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 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 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 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>
<img src="http://feeds.feedburner.com/~r/orenyomtov/~4/eyTzPfzuCQA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://orenyomtov.com/wordpress-templates-complete-guide-tips.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://orenyomtov.com/wordpress-templates-complete-guide-tips.html</feedburner:origLink></item>
		<item>
		<title>“jQuery is not defined” WordPress Error Fix</title>
		<link>http://feedproxy.google.com/~r/orenyomtov/~3/CHOA0WAAYrw/jquery-is-not-defined-wordpress-error-fix.html</link>
		<comments>http://orenyomtov.com/jquery-is-not-defined-wordpress-error-fix.html#comments</comments>
		<pubDate>Wed, 16 Sep 2009 20:43:08 +0000</pubDate>
		<dc:creator>Oren Yomtov</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Admin Panel]]></category>
		<category><![CDATA[Fix]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Solution]]></category>
		<category><![CDATA[WordPress Core]]></category>

		<guid isPermaLink="false">http://orenyomtov.com/?p=288</guid>
		<description><![CDATA[
Do you get &#8220;jQuery is not defined&#8221; as an error after a fresh WordPress Install? JavaScript not working at your admin panel? Don&#8217;t worry, I have the solution.
After installing two new WordPress installations with defective admin JavaScript that won&#8217;t allow me to

Open the menus (in the admin panel&#8217;s left side)
See the post editors toolbar
Install new [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://orenyomtov.com/downloads/jquery-firebug.jpg" alt="jQuery is not defined - FireBug" title="jQuery is not defined - FireBug" width="281" height="66" class="alignleft size-full wp-image-289" /><br />
Do you get &#8220;jQuery is not defined&#8221; as an error after a fresh WordPress Install? JavaScript not working at your admin panel? Don&#8217;t worry, I have the solution.</p>
<p>After installing two new WordPress installations with defective admin JavaScript that won&#8217;t allow me to</p>
<ul>
<li>Open the menus (in the admin panel&#8217;s left side)</li>
<li>See the post editors toolbar</li>
<li>Install new plugins</li>
<li>Install new themes</li>
</ul>
<p>I understood I was having some kind problem with the Javascript jQuery library.</p>
<p>I deactivated all the plugins and nothing happened. Then I started looking at the source code and googeling for quite a long time. After some serious research I discovered what caused the issue.</p>
<h3>The Problem</h3>
<p>While uploading the WordPress installation files onto the server I had some issues that cause some of the JavaScript files to not be uploaded / be corrupted.</p>
<h3>The Solution</h3>
<p><img src="http://orenyomtov.com/downloads/wp-includes-js.jpg" alt="wp-includes/js" title="wp-includes/js" width="156" height="130" class="alignright size-full wp-image-294" /><br />
Re upload the <code>wp-includes\js</code> folder and overwrite whatever is in there.<br />
That&#8217;s what fixed it for me.</p>
<p>I hope this helped someone, if it does, or does not &#8211; comment to help or get help.</p>
<img src="http://feeds.feedburner.com/~r/orenyomtov/~4/CHOA0WAAYrw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://orenyomtov.com/jquery-is-not-defined-wordpress-error-fix.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://orenyomtov.com/jquery-is-not-defined-wordpress-error-fix.html</feedburner:origLink></item>
	</channel>
</rss>
