<?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>westworld: a webmasters best friend</title>
	<atom:link href="http://www.westworld.be/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.westworld.be</link>
	<description>A webmasters best friend</description>
	<lastBuildDate>Mon, 14 Jun 2010 18:12:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Perfect World: Genie</title>
		<link>http://www.westworld.be/uncategorized/perfect-world-genie/</link>
		<comments>http://www.westworld.be/uncategorized/perfect-world-genie/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 18:12:23 +0000</pubDate>
		<dc:creator>westworld</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.westworld.be/?p=82</guid>
		<description><![CDATA[How do I get a genie?

via Quest from npc  &#8220;Watcher of the Earth&#8221;.
via &#8220;Watcher of the Earth&#8221; npc (buy)
trade with players

What type of genies can I get?




Name
STR
Dex
Vit
Mag



Zeal
5
3
5
15



Longevity
5
15
5
3



Discipline
3
5
15
5



Infliction
15
5
3
5




Skill list
Every genie starts with one skill.  You get extra skills as your genie gets more levels.
The results of your skills are influenced by your genies attributes:

Strength &#8211; [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<h2>How do I get a genie?</h2>
<ol>
<li>via Quest from npc  &#8220;Watcher of the Earth&#8221;.</li>
<li>via &#8220;Watcher of the Earth&#8221; npc (buy)</li>
<li>trade with players</li>
</ol>
<h2>What type of genies can I get?</h2>
<table border="0">
<tbody>
<tr>
<th></th>
<th>Name</th>
<th>STR</th>
<th>Dex</th>
<th>Vit</th>
<th>Mag</th>
</tr>
<tr>
<td><img class="alignnone size-full wp-image-43" title="Zeal" src="http://harbingerfaction.files.wordpress.com/2009/06/2009-06-12-18-41-18.jpg?w=29&amp;h=30" alt="Zeal" width="29" height="30" /></td>
<td>Zeal</td>
<td>5</td>
<td>3</td>
<td>5</td>
<td>15</td>
</tr>
<tr>
<td><img class="alignnone size-full wp-image-45" title="Longevity" src="http://harbingerfaction.files.wordpress.com/2009/06/2009-06-12-18-41-20.jpg?w=30&amp;h=31" alt="Longevity" width="30" height="31" /></td>
<td>Longevity</td>
<td>5</td>
<td>15</td>
<td>5</td>
<td>3</td>
</tr>
<tr>
<td><img class="alignnone size-full wp-image-44" title="Discipline" src="http://harbingerfaction.files.wordpress.com/2009/06/2009-06-12-18-41-19.jpg?w=31&amp;h=31" alt="Discipline" width="31" height="31" /></td>
<td>Discipline</td>
<td>3</td>
<td>5</td>
<td>15</td>
<td>5</td>
</tr>
<tr>
<td><img class="alignnone size-full wp-image-42" title="Infliction" src="http://harbingerfaction.files.wordpress.com/2009/06/2009-06-12-18-41-17.jpg?w=31&amp;h=32" alt="Infliction" width="31" height="32" /></td>
<td>Infliction</td>
<td>15</td>
<td>5</td>
<td>3</td>
<td>5</td>
</tr>
</tbody>
</table>
<h2>
Skill list</h2>
<p>Every genie starts with one skill.  You get extra skills as your genie gets more levels.<br />
The results of your skills are influenced by your genies attributes:</p>
<ul>
<li>Strength &#8211; STR: damage output of skills</li>
<li>Dexterity &#8211; DEX: effect of skills  and duration</li>
<li>Vitality &#8211; VIT: MP pool</li>
<li>Intellect &#8211; INT: MP Recovery and the amount of skills (each 50 INT = +1 MP recovery)</li>
</ul>
<p>Every time you use the genies skills, an amount of stamina will be spend. You can restore your genie&#8217;s stamina with Chi stones. (Chi stones can be made by decomposing player equipment.)</p>
<p>To restore stamina, simply return you genie to your inventory and drag some stones on it. (Beware: genies are expensive)</p>
<table border="0">
<tbody>
<tr>
<td><strong>Yiyuan stone</strong>:</td>
<td>+40 stamina</td>
</tr>
<tr>
<td><strong>Liangyi stone </strong>(3 Yiyuan):</td>
<td>+80 stamina</td>
</tr>
<tr>
<td><strong>Santsai stone</strong> (9 Yiyuan):</td>
<td>+160 stamina</td>
</tr>
<tr>
<td><strong>Ssuhsiang stone</strong> (27 Yiyuan):</td>
<td>+240 stamina</td>
</tr>
<tr>
<td><strong>Wuhsing stone </strong>(81 Yiyuan):</td>
<td>+320 stamina</td>
</tr>
<tr>
<td><strong>Liuho stone</strong> (243 Yiyuan):</td>
<td>+400 stamina</td>
</tr>
<tr>
<td><strong>Chihsing stone</strong> (729 Yiyuan):</td>
<td>+480 stamina</td>
</tr>
<tr>
<td><strong>Pakua stone</strong> (2,178 Yiyuan):</td>
<td>+560 stamina</td>
</tr>
<tr>
<td><strong>Chiukung stone</strong> (6,534 Yiyuan):</td>
<td>+640 stamina</td>
</tr>
<tr>
<td><strong>Perfect stone </strong>(19,602 Yiyuan):</td>
<td>+720 stamina</td>
</tr>
</tbody>
</table>
<p>Genie skills can have restrictions based on where they can be used. Some will only work in water, others will for expl. only work while in flight. Racial restrictions might apply as well (expl. &#8220;Hollow fist&#8221; can only be used by Venomancers).  Some skills might have other skills as prerequisite.</p>
<h2>
Lucky points</h2>
<p>Lucky points are the points that you use to upgrade your genies attributes (STR,DEX,&#8230;). Every level your genie will recieve one lucky point. Every ten levels an extra bonus amount of lucky points (between 1-10) are added. The more bonus lucky points you get the more rare your genie will be.</p>
<p>The higher the random stats determine not only the look of your genie but the combat ability as well as rareness. It can be classified as follow:</p>
<p>Orange &#8211; This color indicates this genie gained 10 random stats per every 10 level. (extremely rare)<br />
Gold &#8211; This color indicates this genie gained random stats between 61 &#8211; 99 points. (rare)<br />
Purple &#8211; This color indicates this genie gained random stats between 51- 60 points. (uncommon)<br />
Blue &#8211; This color indicates this genie gained random stats between 41- 50 points. (less common)<br />
Green &#8211; This color indicates this genie gained random stats between 10 &#8211; 40 points. (common)</p>
<table border="0">
<tbody>
<tr>
<td></td>
<td>0-40 Lucky Points</td>
<td>41-50 Lucky Points</td>
<td>51-60 Lucky Points</td>
<td>61+ Lucky Points</td>
</tr>
<tr>
<td>Infliction</td>
<td><a href="http://www.westworld.be/wp-content/uploads/2009/08/genie21.jpg"><img class="alignnone size-full wp-image-87" title="Infliction 0-40 lucky points" src="http://www.westworld.be/wp-content/uploads/2009/08/genie21.jpg" alt="Infliction 0-40 lucky points" width="82" height="100" /></a></td>
<td><a href="http://www.westworld.be/wp-content/uploads/2009/08/genie2b1.jpg"><img class="alignnone size-full wp-image-88" title="Infliction 41-50 lucky points" src="http://www.westworld.be/wp-content/uploads/2009/08/genie2b1.jpg" alt="Infliction 41-50 lucky points" width="90" height="100" /></a></td>
<td><a href="http://www.westworld.be/wp-content/uploads/2009/08/genie2c1.jpg"><img class="alignnone size-full wp-image-89" title="Infliction 51-60 lucky points " src="http://www.westworld.be/wp-content/uploads/2009/08/genie2c1.jpg" alt="Infliction 51-60 lucky points" width="119" height="100" /></a></td>
<td><a href="http://www.westworld.be/wp-content/uploads/2009/08/genie2d11.jpg"><img class="alignnone size-full wp-image-93" title="Infliction 61+ lucky points" src="http://www.westworld.be/wp-content/uploads/2009/08/genie2d11.jpg" alt="Infliction 61+ lucky points" width="111" height="100" /></a></td>
</tr>
<tr>
<td>Zeal</td>
<td><a href="http://www.westworld.be/wp-content/uploads/2009/08/genie11.jpg"><img class="alignnone size-full wp-image-94" title="Zeal 0-40 lucky points" src="http://www.westworld.be/wp-content/uploads/2009/08/genie11.jpg" alt="Zeal 0-40 lucky points" width="109" height="100" /></a></td>
<td><a href="http://www.westworld.be/wp-content/uploads/2009/08/genie1b1.jpg"><img class="alignnone size-full wp-image-95" title="Zeal 41-50 lucky points" src="http://www.westworld.be/wp-content/uploads/2009/08/genie1b1.jpg" alt="Zeal 41-50 lucky points" width="151" height="100" /></a></td>
<td><a href="http://www.westworld.be/wp-content/uploads/2009/08/genie1c1.jpg"><img class="alignnone size-full wp-image-96" title="Zeal 51-60 lucky points" src="http://www.westworld.be/wp-content/uploads/2009/08/genie1c1.jpg" alt="Zeal 51-60 lucky points" width="113" height="100" /></a></td>
<td><a href="http://www.westworld.be/wp-content/uploads/2009/08/genie1d1.jpg"><img class="alignnone size-full wp-image-97" title="Zeal 61+ lucky points" src="http://www.westworld.be/wp-content/uploads/2009/08/genie1d1.jpg" alt="Zeal 61+ lucky points" width="111" height="100" /></a></td>
</tr>
<tr>
<td>Discipline</td>
<td><a href="http://www.westworld.be/wp-content/uploads/2009/08/genie41.jpg"><img class="alignnone size-full wp-image-98" title="Discipline 0-40 lucky points" src="http://www.westworld.be/wp-content/uploads/2009/08/genie41.jpg" alt="Discipline 0-40 lucky points" width="121" height="100" /></a></td>
<td><a href="http://www.westworld.be/wp-content/uploads/2009/08/genie4b1.jpg"><img class="alignnone size-full wp-image-99" title="Discipline 41-50 lucky points" src="http://www.westworld.be/wp-content/uploads/2009/08/genie4b1.jpg" alt="Discipline 41-50 lucky points" width="115" height="100" /></a></td>
<td><a href="http://www.westworld.be/wp-content/uploads/2009/08/genie4c1.jpg"><img class="alignnone size-full wp-image-100" title="Discipline 51-60 lucky points" src="http://www.westworld.be/wp-content/uploads/2009/08/genie4c1.jpg" alt="Discipline 51-60 lucky points" width="149" height="100" /></a></td>
<td><a href="http://www.westworld.be/wp-content/uploads/2009/08/genie4d1.jpg"><img class="alignnone size-full wp-image-101" title="Discipline 61+ lucky points" src="http://www.westworld.be/wp-content/uploads/2009/08/genie4d1.jpg" alt="Discipline 61+ lucky points" width="133" height="100" /></a></td>
</tr>
<tr>
<td>Longevity</td>
<td><a href="http://www.westworld.be/wp-content/uploads/2009/08/genie311.jpg"><img class="alignnone size-full wp-image-102" title="Longevity 0-40 lucky points" src="http://www.westworld.be/wp-content/uploads/2009/08/genie311.jpg" alt="Longevity 0-40 lucky points" width="79" height="100" /></a></td>
<td><a href="http://www.westworld.be/wp-content/uploads/2009/08/genie3b1.jpg"><img class="alignnone size-full wp-image-103" title="Longevity 41-50 lucky points" src="http://www.westworld.be/wp-content/uploads/2009/08/genie3b1.jpg" alt="Longevity 41-50 lucky points" width="81" height="100" /></a></td>
<td><a href="http://www.westworld.be/wp-content/uploads/2009/08/genie3c1.jpg"><img class="alignnone size-full wp-image-104" title="Longevity 51-60 lucky points" src="http://www.westworld.be/wp-content/uploads/2009/08/genie3c1.jpg" alt="Longevity 51-60 lucky points" width="116" height="100" /></a></td>
<td><a href="http://www.westworld.be/wp-content/uploads/2009/08/genie3d1.jpg"><img class="alignnone size-full wp-image-105" title="Longevity 61+ lucky points" src="http://www.westworld.be/wp-content/uploads/2009/08/genie3d1.jpg" alt="Longevity 61+ lucky points" width="100" height="100" /></a></td>
</tr>
</tbody>
</table>
<h2>
Affinity</h2>
<p>In addition to increasing their attributes (Str,Dex,&#8230;), players can  also upgrade a Genie&#8217;s elemental affinity.<br />
Genies have five elemental affinitys</p>
<div style="float: right; width: 320px;"><a href="http://www.westworld.be/wp-content/uploads/2009/08/genie_affinity1.jpg"><img class="alignnone size-medium wp-image-106" title="Affinity " src="http://www.westworld.be/wp-content/uploads/2009/08/genie_affinity1-211x300.jpg" alt="Affinity" width="211" height="300" /></a></div>
<div style="float: left: width: 200px;">
<ul>
<li>Metal</li>
<li>Wood</li>
<li>Earth</li>
<li>Water</li>
<li>Fire</li>
</ul>
</div>
<p>The elemental affinity is important for your genies skills. Different affinities will be needed to unlock the skills that you want. A maximum of 26 affinity points can be earned and distributed among affinitys. These points can be reset at the &#8220;Elemental Ambassador&#8221; in any of the five main cities.</p>
<p>Genies start with 1 Affinity Point, and will gain an additional Affinity Point every 5 levels. When a Genie reaches Level 100, it will gain 1 Affinity Point every level. The number of points required to master an Affinity is 8.</p>
<h2>
Leveling your genie</h2>
<p>There are three ways of leveling your Genie:</p>
<ul>
<li>Using EXP stone.</li>
<li>Using Character EXP</li>
<li>Using Character SP, 1SP = 5 EXP points.</li>
</ul>
<p>A genies level cannot be higher than the level of the character using it<br />
There is an exp penalty when your level is much greater than the genies. Much of the exp you give it is lost in transit. The lower the gap between you and the genie, the less exp is lost.<br />
When you use the exp stones, the penalty is based on the level of the exp stone. The closer a genie is to the level of the stone, the less exp is lost. If the genie is higher level than the stone, no exp is lost. The max level is currently 105.</p>
<h2>
Leveling your genie skills</h2>
<p>To level your genie skills, please see the new NPC.</p>
<h2>
Equiping your genie</h2>
<p>Players can buy equipment for their Genies from the NPC &#8220;Watcher of the Earth&#8221;. Genie Equipment includes Jades, Mirrors, Orbs, and Charms. Unfortunately, the cost of these items are one and three million coins and once equipped, they cannot be unequipped, only replaced.</p>
<h2>
Trading your genie</h2>
<p>Genies can be traded with other players after they have been converted into TRADE READY state. Click the Trade State button in the Genieinterface menu in order to access this feature. It will take 7 days toconvert your Genie into to TRADE READY state. By default, a Genie isset to NO-Trade state. In this state, the Genie cannot be traded, sold,or discarded.<br />
<a href="http://pwi-forum.perfectworld.com/showthread.php?t=289292">http://pwi-forum.perfectworld.com/showthread.php?t=289292</a><br />
<a href="http://spreadsheets.google.com/ccc?key=rLOoJPhcwXKWFa0vQjjRm_A">http://spreadsheets.google.com/ccc?key=rLOoJPhcwXKWFa0vQjjRm_A</a><br />
<a href="http://pwi.perfectworld.com/guide/genie">http://pwi.perfectworld.com/guide/genie</a><br />
<a href="http://pwi-forum.perfectworld.com/showthread.php?t=281472">http://pwi-forum.perfectworld.com/showthread.php?t=281472</a><br />
<a href="http://www.crimsonspot.com/pw/genie.html">http://www.crimsonspot.com/pw/genie.html</a><br />
<h4>Related Blogs</h4>
<ul class="pc_pingback">
<li class="hdl" style="list-style: none">Related Blogs on <b></b></li>
</ul>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.westworld.be/uncategorized/perfect-world-genie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Info on OOP</title>
		<link>http://www.westworld.be/uncategorized/info-on-oop/</link>
		<comments>http://www.westworld.be/uncategorized/info-on-oop/#comments</comments>
		<pubDate>Fri, 09 Apr 2010 07:44:29 +0000</pubDate>
		<dc:creator>westworld</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.westworld.be/?p=211</guid>
		<description><![CDATA[Over the past few days I&#8217;ve gathered some info on OOP and testing. Below are some video&#8217;s and slides about best practice in JAVA and PHP
Misko Hevery:
Clean Code Talks

The Clean Code Talks: Unit Testing (video)
The Clean Code Talks: Don&#8217;t look for things (video)
The Clean Code Talks: Global state and singletons (video)
The Clean Code Talks: Inheritance, [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Over the past few days I&#8217;ve gathered some info on OOP and testing. Below are some video&#8217;s and slides about best practice in JAVA and PHP<span id="more-211"></span></p>
<h2>Misko Hevery:</h2>
<h3>Clean Code Talks</h3>
<p><iframe src="http://docs.google.com/present/embed?id=d449gch_58dtrzqtgv" frameborder="0" width="410" height="342"></iframe></p>
<p><a href="http://www.youtube.com/watch?v=wEhu57pih5w&#038;feature=player_embedded">The Clean Code Talks: Unit Testing (video)</a><br />
<a href="http://www.youtube.com/watch?v=RlfLCWKxHJ0&#038;feature=player_embedded">The Clean Code Talks: Don&#8217;t look for things (video)</a><br />
<a href="http://www.youtube.com/watch?v=-FRm3VPhseI&#038;feature=player_embedded">The Clean Code Talks: Global state and singletons (video)</a><br />
<a href="http://www.youtube.com/watch?v=4F72VULWFvc&#038;feature=player_embedded">The Clean Code Talks: Inheritance, Polymorphism, &amp; Testing (video)</a></p>
<hr />
<h3>Testing design skills</h3>
<h4>Testing design skills – 1 What is Untestable:</h4>
<p><iframe src="http://docs.google.com/present/embed?id=d449gch_221gqfkkbcs" frameborder="0" width="410" height="342"></iframe></p>
<h4>Testing design skills – 2 Ask for things</h4>
<p><iframe src="http://docs.google.com/present/embed?id=d449gch_222c4fqh6g4" frameborder="0" width="410" height="342"></iframe></p>
<h4>Testing design skills – 3 Global State</h4>
<p><iframe src="http://docs.google.com/present/embed?id=d449gch_223dnpjx4d2" frameborder="0" width="410" height="342"></iframe></p>
<h4>Testing design skills – 4 Inheritance</h4>
<p><iframe src="http://docs.google.com/present/embed?id=d449gch_224g77zdqd2" frameborder="0" width="410" height="342"></iframe></p>
<h4>Testing design skills – 6 Value Objects vs Service Objects</h4>
<p><iframe src="http://docs.google.com/present/embed?id=d449gch_225g37rfqhp" frameborder="0" width="410" height="342"></iframe></p>
<h4>Testing Design Skills – 7 Intro to GUICE</h4>
<p><iframe src="http://docs.google.com/present/embed?id=d449gch_226pcg3scfv" frameborder="0" width="410" height="342"></iframe></p>
<h4>Testing Design Skills – 8 Mocking</h4>
<p><iframe src="http://docs.google.com/present/embed?id=d449gch_227ddwtfmc6" frameborder="0" width="410" height="342"></iframe></p>
<hr />
<a href="http://misko.hevery.com/attachments/Guide-Writing%20Testable%20Code.pdf">Guide for writing testable code</a></p>
<h2>Fabien Potencier</h2>
<div style="width:425px" id="__ss_3398291"><strong style="display:block;margin:12px 0 4px"><a href="http://www.slideshare.net/fabpot/dependency-injection-confoo-2010" title="Dependency Injection">Dependency Injection</a></strong><object width="425" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=dependency-injection-confoo-2010-100311095300-phpapp01&#038;stripped_title=dependency-injection-confoo-2010" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=dependency-injection-confoo-2010-100311095300-phpapp01&#038;stripped_title=dependency-injection-confoo-2010" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object></div>
<div style="width:425px" id="__ss_3316721"><strong style="display:block;margin:12px 0 4px"><a href="http://www.slideshare.net/fabpot/php-53-in-practice" title="PHP 5.3 in practice">PHP 5.3 in practice</a></strong><object width="425" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=playing-with-php53-100302085736-phpapp01&#038;stripped_title=php-53-in-practice" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=playing-with-php53-100302085736-phpapp01&#038;stripped_title=php-53-in-practice" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object></div>
<div style="width:425px" id="__ss_1972307"><strong style="display:block;margin:12px 0 4px"><a href="http://www.slideshare.net/fabpot/decouple-your-code-for-reusability-ipc-2008" title="Decouple Your Code For Reusability (International PHP Conference / IPC 2008)">Decouple Your Code For Reusability (International PHP Conference / IPC 2008)</a></strong><object width="425" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=decouple-your-code-for-reusability-ipc-2008-090909073639-phpapp02&#038;stripped_title=decouple-your-code-for-reusability-ipc-2008" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=decouple-your-code-for-reusability-ipc-2008-090909073639-phpapp02&#038;stripped_title=decouple-your-code-for-reusability-ipc-2008" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object></div>
<h4>Related Blogs</h4>
<ul class="pc_pingback">
<li class="hdl" style="list-style: none">Related Blogs on <b></b></li>
</ul>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.westworld.be/uncategorized/info-on-oop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pdo get column names</title>
		<link>http://www.westworld.be/uncategorized/pdo-get-column-names/</link>
		<comments>http://www.westworld.be/uncategorized/pdo-get-column-names/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 14:39:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.westworld.be/?p=207</guid>
		<description><![CDATA[PHP&#8217;s Pdo doesnt have a default columnname function. After searching Google I found that many people seem to be looking for this function. You can get the columnnames with an easy query to the schema:
$querystring = &#8220;SELECT * FROM INFORMATION_SCHEMA.Columns where TABLE_NAME = $table&#8221;;
Related Blogs

Related Blogs on 



Related posts:Prototype: submit multiple select with ajax call


Related posts:<ol><li><a href='http://www.westworld.be/a-note-to-self/prototype-submit-multiple-select-with-ajax-call/' rel='bookmark' title='Permanent Link: Prototype: submit multiple select with ajax call'>Prototype: submit multiple select with ajax call</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>PHP&#8217;s Pdo doesnt have a default columnname function. After searching Google I found that many people seem to be looking for this function. You can get the columnnames with an easy query to the schema:</p>
<p>$querystring = &#8220;SELECT * FROM INFORMATION_SCHEMA.Columns where TABLE_NAME = $table&#8221;;</p>
<h4>Related Blogs</h4>
<ul class="pc_pingback">
<li class="hdl" style="list-style: none">Related Blogs on <strong></strong></li>
</ul>


<p>Related posts:<ol><li><a href='http://www.westworld.be/a-note-to-self/prototype-submit-multiple-select-with-ajax-call/' rel='bookmark' title='Permanent Link: Prototype: submit multiple select with ajax call'>Prototype: submit multiple select with ajax call</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.westworld.be/uncategorized/pdo-get-column-names/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP-GTK: making an &#8220;About&#8221; dialog</title>
		<link>http://www.westworld.be/php-gtk/php-gtk-making-an-about-dialog/</link>
		<comments>http://www.westworld.be/php-gtk/php-gtk-making-an-about-dialog/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 14:53:47 +0000</pubDate>
		<dc:creator>westworld</dc:creator>
				<category><![CDATA[PHP-GTK]]></category>

		<guid isPermaLink="false">http://www.westworld.be/?p=185</guid>
		<description><![CDATA[Below is an example of how you can code an About dialog in PHP-GTK.
The mail_hook and url_hook are callback functions to open your default email client and webbrowser.
These functions have been tested under Windows XP. I don&#8217;t know if they work on Mac or Linux.
	static public function About(){

		$dlg = new GtkAboutDialog();
		$dlg->set_program_name('Myapp');
		$dlg->set_version('0.0.1');
		$authors = array ('John Doh');
		$dlg->set_authors($authors);
		$documenters [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Below is an example of how you can code an About dialog in PHP-GTK.<br />
The mail_hook and url_hook are callback functions to open your default email client and webbrowser.<br />
These functions have been tested under Windows XP. I don&#8217;t know if they work on Mac or Linux.</p>
<textarea cols="40" rows="10" name="code" class="Php">	static public function About(){

		$dlg = new GtkAboutDialog();
		$dlg->set_program_name('Myapp');
		$dlg->set_version('0.0.1');
		$authors = array ('John Doh<john@doh.com>');
		$dlg->set_authors($authors);
		$documenters = array('John Doh','Mr Smith');
		$dlg->set_documenters($documenters);
		$dlg->set_comments("you comments go here");
		$dlg->set_copyright('Copyright (C) 2009 myself');
		$dlg->set_license("Anyone is free\n to distribute\n and alter the code");
		$dlg->set_logo($dlg->render_icon(Gtk::STOCK_CDROM, gtk::ICON_SIZE_LARGE_TOOLBAR));
		$dlg->set_translator_credits("I like to thank my producer and my mom'");
		$dlg->set_url_hook("Mainwindow::url_hook");
		$dlg->set_website('http://www.yoursite.com');
		$dlg->set_website_label("www.yoursite.com"); 
		$dlg->set_email_hook("Mainwindow::mail_hook");
		$dlg->run();
		$dlg->hide();
	}

	static function url_hook($dialog, $url){
	$shell = new COM('WScript.Shell');
	$shell->Run('cmd /c start "" "' . $url . '"', 0, FALSE);
	unset($shell); 
	}	
	
	static function mail_hook($dialog, $mailto){
		$shell = new COM('WScript.Shell');
		$shell->Run('cmd /c start "" "mailto:' . $mailto . '"', 0, FALSE);
		unset($shell);
	}</textarea>
	<!-- Wordpress Code Snippet -->
	<script type="text/javascript" src="http://www.westworld.be/wp-content/plugins/wordpress-code-snippet/js/shCore.js"></script><script type="text/javascript" src="http://www.westworld.be/wp-content/plugins/wordpress-code-snippet/js/shBrushPhp.js"></script>
	<link type="text/css" rel="stylesheet" href="http://www.westworld.be/wp-content/plugins/wordpress-code-snippet/css/SyntaxHighlighter.css"/>
	
	<script language="javascript">
	dp.SyntaxHighlighter.ClipboardSwf = 'http://www.westworld.be/wp-content/plugins/wordpress-code-snippet/js/clipboard.swf';
	dp.SyntaxHighlighter.HighlightAll('code');
	</script>
	<!-- End Wordpress Code Snippet -->
	

<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.westworld.be/php-gtk/php-gtk-making-an-about-dialog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP GTK: liststore error (undefined class constant)</title>
		<link>http://www.westworld.be/php-gtk/php-gtk-liststore-error-undefined-class-constant/</link>
		<comments>http://www.westworld.be/php-gtk/php-gtk-liststore-error-undefined-class-constant/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 14:42:28 +0000</pubDate>
		<dc:creator>westworld</dc:creator>
				<category><![CDATA[PHP-GTK]]></category>

		<guid isPermaLink="false">http://www.westworld.be/?p=180</guid>
		<description><![CDATA[Been experimenting with php-gtk over the last few days. When I was trying to use a liststore,  php threw a fatal error. &#8220;Undefined class constant &#8216;TYPE_STRING&#8217;&#8221;.
After testing the example from the PHP_GTK site I got the same errror. The PHP-GTK example is out of date. Starting with PHP-GTK 2.0.0 the TYPE constants were moved [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Been experimenting with php-gtk over the last few days. When I was trying to use a <strong>liststore</strong>,  php threw a fatal error. <strong>&#8220;Undefined class constant &#8216;TYPE_STRING&#8217;&#8221;</strong>.<span id="more-180"></span><br />
After testing the example from the PHP_GTK site I got the same errror. The PHP-GTK example is out of date. <em>Starting with PHP-GTK 2.0.0 the TYPE constants were moved from the Gtk::class to Gobject, so use Gobject::TYPE_STRING instead.</em><br />
Below is the correct code.</p>
<textarea cols="40" rows="10" name="code" class="Xml"><?php
/*  GtkListStore example
 Here we create a list of the largest cities.
 For that we need a list store with two columns:
 The name and the number of inhabitants.
 The "name" is of type "string", and the number
 of inhabitants is of type long (big integer).
*/
$store = new GtkListStore(Gobject::TYPE_STRING, Gobject::TYPE_LONG);
 
/*
* Using the "set" method
*/
 
//at first, get an iterator for a new row
$iterator = $store->append();
//now use that to set the name at that row (column 0)
$store->set($iterator, 0, 'Tokio');
//same row: set the inhabitants into column 1
$store->set($iterator, 1, 34100000);
 
//You can set a whole row at once:
$iterator = $store->append();
//we add the data "Mexico city" at column 0 and 
// "22 million" at column 1 at the row $iterator
$store->set($iterator, 0, 'Mexico city', 1, 22650000);
 
//Or, even faster: don't even create an iterator variable
$store->set($store->append(), 0, 'Seoul', 1, 22250000);
 
 
/*
* Using "append" to add a row without an iterator
*/
$store->append(array('New York', 21850000));
$store->append(array('São Paulo', 20200000));
 
 
/*
* And now show what we've got in the store
*/
function echoRow($store, $path, $iter)
{
    $city   = $store->get_value($iter, 0);
    $number = $store->get_value($iter, 1);
    echo $city . ' has ' . $number . " inhabitants.\r\n";
}
$store->foreach('echoRow');
?></textarea>
	<!-- Wordpress Code Snippet -->
	<script type="text/javascript" src="http://www.westworld.be/wp-content/plugins/wordpress-code-snippet/js/shCore.js"></script><script type="text/javascript" src="http://www.westworld.be/wp-content/plugins/wordpress-code-snippet/js/shBrushXml.js"></script>
	<link type="text/css" rel="stylesheet" href="http://www.westworld.be/wp-content/plugins/wordpress-code-snippet/css/SyntaxHighlighter.css"/>
	
	<script language="javascript">
	dp.SyntaxHighlighter.ClipboardSwf = 'http://www.westworld.be/wp-content/plugins/wordpress-code-snippet/js/clipboard.swf';
	dp.SyntaxHighlighter.HighlightAll('code');
	</script>
	<!-- End Wordpress Code Snippet -->
	

<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.westworld.be/php-gtk/php-gtk-liststore-error-undefined-class-constant/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Cleaning up after an emailing</title>
		<link>http://www.westworld.be/a-note-to-self/cleaning-up-after-an-emailing/</link>
		<comments>http://www.westworld.be/a-note-to-self/cleaning-up-after-an-emailing/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 15:48:23 +0000</pubDate>
		<dc:creator>westworld</dc:creator>
				<category><![CDATA[a note to self]]></category>
		<category><![CDATA[PHP IMAP]]></category>

		<guid isPermaLink="false">http://www.westworld.be/?p=168</guid>
		<description><![CDATA[As a web master, I often send out mass mailings. After the mailing is done, the bounced emails are returned to my Outlook. I go through them manually. The real bouncers are put in a &#8220;Bounced&#8221; folder and,  Out of office messages in the &#8220;Trash&#8221;. The rest of the emails are addresses I need to [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>As a web master, I often send out mass mailings. After the mailing is done, the bounced emails are returned to my Outlook. I go through them manually. The real bouncers are put in a &#8220;Bounced&#8221; folder and,  Out of office messages in the &#8220;Trash&#8221;. The rest of the emails are addresses I need to update in my database or people that wish to unsubscribe. Since sorting through 2000 bouncers can take up a lot of time, I did some research on how to automate this.</p>
<p>PHP offers a set of functions to connect to a mail server (IMAP/POP3).  The plan was to let my web server connect to the mail server and sort out the bouncers for me. Below is a little script to give you some ideas of what I came up with.</p>
<textarea cols="40" rows="10" name="code" class="Php"><?php
// fill in your SERVER, LOG and PAS!
$mbox = imap_open("{SERVER:143}", "LOG", "PAS");

echo "<h1>Mailboxes</h1>\n";
$folders = imap_listmailbox($mbox, "{SERVER:143}", "*");
if($folders == false) {echo "Call failed<br />\n";}
else{
	foreach ($folders as $val) { echo $val . "<br />\n";  }
}

$list = array(); // array will store all bounced email adresses
$result = imap_search($mbox,'SUBJECT "failure notice"'); // find all with subject 'failure notice'
if(!empty($result)){
foreach($result as $msgno) {
    $body = imap_fetchbody($mbox, $msgno,1); // fetch the body of the message
	$find= "To: "; // look for the 'To' part
	$foundatloc= strpos($body,$find); //remember the location
	if ($foundatloc > 1){ // test if a mail adres was found
		$findend = "\n"; 
		$foundendloc = strpos($body,$findend,$foundatloc); // find  the location of EOL
		$foundendloc = $foundendloc -($foundatloc + 5);
		$adres = substr($body,$foundatloc+5,$foundendloc); 
		$adres = str_replace("<","",$adres); // strip <, > and spaces
		$adres = str_replace(">","",$adres);
		$adres = trim($adres);
		array_push($list,$adres); // put the adres is $list
		imap_mail_move($mbox,$msgno,"INBOX.Trash"); // flag as  "move to trash"
		imap_expunge($mbox); // execute move to trash folder
	}
}
unset ($result);
}
// put function to process bouncers/$list here		 
imap_close($mbox); // close connection
?></textarea>
	<!-- Wordpress Code Snippet -->
	<script type="text/javascript" src="http://www.westworld.be/wp-content/plugins/wordpress-code-snippet/js/shCore.js"></script><script type="text/javascript" src="http://www.westworld.be/wp-content/plugins/wordpress-code-snippet/js/shBrushPhp.js"></script>
	<link type="text/css" rel="stylesheet" href="http://www.westworld.be/wp-content/plugins/wordpress-code-snippet/css/SyntaxHighlighter.css"/>
	
	<script language="javascript">
	dp.SyntaxHighlighter.ClipboardSwf = 'http://www.westworld.be/wp-content/plugins/wordpress-code-snippet/js/clipboard.swf';
	dp.SyntaxHighlighter.HighlightAll('code');
	</script>
	<!-- End Wordpress Code Snippet -->
	

<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.westworld.be/a-note-to-self/cleaning-up-after-an-emailing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some great tools</title>
		<link>http://www.westworld.be/uncategorized/some-great-tools/</link>
		<comments>http://www.westworld.be/uncategorized/some-great-tools/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 11:51:02 +0000</pubDate>
		<dc:creator>westworld</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.westworld.be/?p=141</guid>
		<description><![CDATA[Over the past few months I&#8217;ve been using a couple of new tools. Since they are free and might be helpfull to website designers and managers I decided to share my find: 


test your website for 404 pages: Linkexaminer
scrape a file/folder for emailadres: Shark Email Extractor
make sitemap for a website: gSiteCrawler
Sitemap drawings: GraphViz
Site visualization: Gephi
Pongo [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Over the past few months I&#8217;ve been using a couple of new tools. Since they are free and might be helpfull to website designers and managers I decided to share my find: </p>
<p><span id="more-141"></span></p>
<ul>
<li>test your website for 404 pages: <a href="http://analogx.com/contents/download/Network/lnkexam/Freeware.htm" target="_blank">Linkexaminer</a></li>
<li>scrape a file/folder for emailadres: <a href="http://www.softpedia.com/get/Internet/E-mail/Mail-Utilities/Shark-Email-Extractor.shtml" target="_blank">Shark Email Extractor</a></li>
<li>make sitemap for a website: <a href="http://gsitecrawler.com/" target="_blank">gSiteCrawler</a></li>
<li>Sitemap drawings: <a href="http://urlgreyhot.com/graphviz/help.php" target="_blank">GraphViz</a></li>
<li>Site visualization: <a href="http://gephi.org/" target="_blank">Gephi</a></li>
<li><a href="http://github.com/herzi/pongo">Pongo</a> is a poor man&#8217;s usability lab</li>
</ul>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.westworld.be/uncategorized/some-great-tools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Canvas: flip image</title>
		<link>http://www.westworld.be/uncategorized/canvas-flip-image/</link>
		<comments>http://www.westworld.be/uncategorized/canvas-flip-image/#comments</comments>
		<pubDate>Sat, 24 Oct 2009 21:02:09 +0000</pubDate>
		<dc:creator>westworld</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.westworld.be/?p=109</guid>
		<description><![CDATA[Below is a sollution for flipping an image on the &#60;canvas&#62; tag without having to read it pixel by pixel:

var mycanvas = document.getElementById('canvas');
ctx = mycanvas.getContext(’2d’),
img = new Image();
img.onload = function(){
mycanvas.width = img.width;
mycanvas.height = img.height;
ctx.drawImage(img, 0, 0, img.width, img.height);
}
img.src = ‘http://farm3.static.flickr.com/2043/2653938087_bed6c6307d_m.jpg’;
mycanvas.onclick = function() {
ctx.scale(-1,1); // to flip vertically, ctx.scale(1,-1);
ctx.drawImage(can, -img.width, 0, img.width, img.height);
}
	
	
	
	
	
	dp.SyntaxHighlighter.ClipboardSwf = 'http://www.westworld.be/wp-content/plugins/wordpress-code-snippet/js/clipboard.swf';
	dp.SyntaxHighlighter.HighlightAll('code');
	
	
	

No related [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Below is a sollution for flipping an image on the &lt;canvas&gt; tag without having to read it pixel by pixel:</p>
<ul class="pc_pingback"></ul>
<textarea cols="40" rows="10" name="code" class="JScript">var mycanvas = document.getElementById('canvas');
ctx = mycanvas.getContext(’2d’),
img = new Image();
img.onload = function(){
mycanvas.width = img.width;
mycanvas.height = img.height;
ctx.drawImage(img, 0, 0, img.width, img.height);
}
img.src = ‘http://farm3.static.flickr.com/2043/2653938087_bed6c6307d_m.jpg’;
mycanvas.onclick = function() {
ctx.scale(-1,1); // to flip vertically, ctx.scale(1,-1);
ctx.drawImage(can, -img.width, 0, img.width, img.height);
}</textarea>
	<!-- Wordpress Code Snippet -->
	<script type="text/javascript" src="http://www.westworld.be/wp-content/plugins/wordpress-code-snippet/js/shCore.js"></script><script type="text/javascript" src="http://www.westworld.be/wp-content/plugins/wordpress-code-snippet/js/shBrushJScript.js"></script>
	<link type="text/css" rel="stylesheet" href="http://www.westworld.be/wp-content/plugins/wordpress-code-snippet/css/SyntaxHighlighter.css"/>
	
	<script language="javascript">
	dp.SyntaxHighlighter.ClipboardSwf = 'http://www.westworld.be/wp-content/plugins/wordpress-code-snippet/js/clipboard.swf';
	dp.SyntaxHighlighter.HighlightAll('code');
	</script>
	<!-- End Wordpress Code Snippet -->
	

<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.westworld.be/uncategorized/canvas-flip-image/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows 7: no mailclient</title>
		<link>http://www.westworld.be/uncategorized/windows-7-no-mailclient/</link>
		<comments>http://www.westworld.be/uncategorized/windows-7-no-mailclient/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 11:25:20 +0000</pubDate>
		<dc:creator>westworld</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://www.westworld.be/?p=132</guid>
		<description><![CDATA[I just noticed that Windows 7 does not ship with Windows Mail or Outlook Express.  Users of Windows 7 can download a mail client on the Windows live site. This seems to be the only mailclient for users on the 64bit version.  Mozilla Thunderbird 3 64 bit is still in beta at the moment.


No related [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>I just noticed that Windows 7 does not ship with Windows Mail or Outlook Express.  Users of Windows 7 can download a mail client on the <a href="http://download.live.com/wlmail">Windows live site</a>. This seems to be the only mailclient for users on the 64bit version.  Mozilla Thunderbird 3 64 bit is still in beta at the moment.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.westworld.be/uncategorized/windows-7-no-mailclient/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Skype: bulk import</title>
		<link>http://www.westworld.be/uncategorized/skype-bulk-import/</link>
		<comments>http://www.westworld.be/uncategorized/skype-bulk-import/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 14:05:41 +0000</pubDate>
		<dc:creator>westworld</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Skype]]></category>

		<guid isPermaLink="false">http://www.westworld.be/?p=116</guid>
		<description><![CDATA[
Out of the box, Skype doesn&#8217;t have a bulk import feature. I only found one extra and it costs 15$.
Here&#8217;s a tip how to do it for free.

Open Skype and go to &#8216;Contacts&#8217;
Go to Advanced
Backup contacts to file
Open the backup with Notepad or another text editor
The file is full of vcards, just copy a vcard, [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.westworld.be/wp-content/uploads/2009/10/skype-logo1-150x150.jpg" alt="Skype" title="skype-logo[1]" width="150" height="150" class="size-thumbnail wp-image-124" style="float: right; width:150px;" /><br />
Out of the box, Skype doesn&#8217;t have a bulk import feature. I only found one extra and it costs 15$.<br />
Here&#8217;s a tip how to do it for free.</p>
<ol>
<li>Open Skype and go to &#8216;Contacts&#8217;</li>
<li>Go to Advanced</li>
<li>Backup contacts to file</li>
<li>Open the backup with Notepad or another text editor</li>
<li>The file is full of vcards, just copy a vcard, and past it at the bottom. All you have to do is alter the info. (ref is reference to importtime so you don&#8217;t have to alter this tag)</li>
<li>if you need to import many contacts, write a script to add extra vcards.</li>
<li>When your file is ready, go back to Skype/Advanced and import restore the backup.</li>
</ol>
<p>An autoit script to do this might look something like the code below (untested)<br />
Phone.xls has a column with nummers and a column with names<br />
<code><br />
#include <Excel.au3><br />
$oExcel = _ExcelBookOpen("phone.xls")<br />
_ExcelSheetActivate($oExcel,"sheetName")<br />
For $i = 1 To 3 ;Loop<br />
$phone = _ExcelReadCell($oExcel, 1, $i);cell with phone<br />
$name = _ExcelReadCell($oExcel, 1, $i);cell with name<br />
$file = FileOpen("backupfile.vcf", 1)</p>
<p>; Check if file opened for writing OK<br />
If $file = -1 Then<br />
    MsgBox(0, "Error", "Unable to open file.")<br />
    Exit<br />
EndIf</p>
<p>FileWriteLine($file, "BEGIN:VCARD")<br />
FileWriteLine($file, "VERSION:3.0")<br />
FileWriteLine($file, "N:"+$phone)<br />
FileWriteLine($file, "X-SKYPE-PSTNNUMBER:"+ $phone)<br />
FileWriteLine($file, "X-SKYPE-DISPLAYNAME:"+ $name + " " + $phone)<br />
FileWriteLine($file, "REV:01091022T130411Z")<br />
FileWriteLine($file, "END:VCARD")</p>
<p>FileClose($file)<br />
Next<br />
_ExcelBookClose($oExcel)<br />
</code></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.westworld.be/uncategorized/skype-bulk-import/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
