<?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>puts WaYdotNET =&#62; Carlo Bertini &#187; ruby</title>
	<atom:link href="http://www.waydotnet.com/blog/tag/ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.waydotnet.com/blog</link>
	<description>Ruby C# html css js jquery ed altro ancora :D</description>
	<lastBuildDate>Thu, 02 Feb 2012 16:46:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Padrino-admin Twitter Bootstrap v2.0 is ready</title>
		<link>http://www.waydotnet.com/blog/2012/02/padrino-admin-twitter-bootstrap-v2-0-is-ready/</link>
		<comments>http://www.waydotnet.com/blog/2012/02/padrino-admin-twitter-bootstrap-v2-0-is-ready/#comments</comments>
		<pubDate>Thu, 02 Feb 2012 16:42:21 +0000</pubDate>
		<dc:creator>WaYdotNET</dc:creator>
				<category><![CDATA[AiS]]></category>
		<category><![CDATA[OpenOttica]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[bootsrtap]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[padrino]]></category>
		<category><![CDATA[padrino-admin]]></category>
		<category><![CDATA[padrinorb]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[twitter bootstrap]]></category>

		<guid isPermaLink="false">http://www.waydotnet.com/blog/?p=126</guid>
		<description><![CDATA[(Padrino Admin TwitterBootstrap 2.0) Padrino-Modal: rack-flash and delete function into modal highlights error field tof helper: Automatic replace true or false with relative image (list.slim and list.haml) Breadcrumbs Automatic time_ago_in_words when column model is created_at or updated_at Migrate function for MiniRecord Padrino-Modal All result from rack-flash and delete request, now is automatic insert into modal [...]]]></description>
			<content:encoded><![CDATA[<h2>(Padrino Admin TwitterBootstrap 2.0)</h2>
<ul>
<li>Padrino-Modal: rack-flash and delete function into modal <img src='http://www.waydotnet.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </li>
<li>highlights error field</li>
<li>tof helper: Automatic replace true or false with relative image (list.slim and list.haml)</li>
<li>Breadcrumbs</li>
<li>Automatic time_ago_in_words when column model is created_at or updated_at</li>
<li>Migrate function for MiniRecord</li>
</ul>
<h4>Padrino-Modal</h4>
<p>All result from rack-flash and delete request, now is automatic insert into modal javascript plugin</p>
<p><img src="http://padrino.waydotnet.com/images/modal1.jpg" alt="" /><img src="https://a248.e.akamai.net/assets.github.com/img/d52f1512d86c930f050e9c727a77da1bc6d000f4/687474703a2f2f70616472696e6f2e776179646f746e65742e636f6d2f696d616765732f6d6f64616c322e6a7067" alt="" /><img src="https://a248.e.akamai.net/assets.github.com/img/4fc6e01855b98d169072863a60c61afed151d406/687474703a2f2f70616472696e6f2e776179646f746e65742e636f6d2f696d616765732f6d6f64616c332e6a7067" alt="" /></p>
<h4>highlights error field</h4>
<p><img src="https://a248.e.akamai.net/assets.github.com/img/4bb69b77cc380bae0230aed979240c0eed018eca/687474703a2f2f70616472696e6f2e776179646f746e65742e636f6d2f696d616765732f6572726f722e6a7067" alt="" /></p>
<h4>tof_helper</h4>
<p>Automatic replace true or false with relative image (list.slim and list.haml)</p>
<p><img src="https://a248.e.akamai.net/assets.github.com/img/d7573ebca61b8e84d6af1611bf8b93035f8ff880/687474703a2f2f70616472696e6f2e776179646f746e65742e636f6d2f696d616765732f746f662e6a7067" alt="" /></p>
<h4>Breadcrumbs</h4>
<p>Automatic Breadcrumbs system:</p>
<p><img src="https://a248.e.akamai.net/assets.github.com/img/fb9ee532ff5e532819ffa6d1380d42428b64a393/687474703a2f2f70616472696e6f2e776179646f746e65742e636f6d2f696d616765732f6272656164312e6a7067" alt="" /></p>
<p><img src="https://a248.e.akamai.net/assets.github.com/img/c8efe151e1bf34abadbdbb0479fe7d9abd46fe4c/687474703a2f2f70616472696e6f2e776179646f746e65742e636f6d2f696d616765732f6272656164322e6a7067" alt="" /></p>
<h4>time_ago_in_words</h4>
<p>Automatic time_ago_in_words when column model is created_at or updated_at</p>
<p><img src="https://a248.e.akamai.net/assets.github.com/img/f809e37afc56d002b9991ac68f2d81d90b666fcd/687474703a2f2f70616472696e6f2e776179646f746e65742e636f6d2f696d616765732f74696d652e6a7067" alt="" /></p>
<h4>MiniRecord migrate</h4>
<p>Migrate function for MiniRecord</p>
<p><img src="https://a248.e.akamai.net/assets.github.com/img/20bd3e86f309653a264dc24c6124708f993e49ac/687474703a2f2f70616472696e6f2e776179646f746e65742e636f6d2f696d616765732f6d696e695f7265636f72642e6a7067" alt="" /></p>
<h3>Demo:</h3>
<pre>http://padrino.waydotnet.com/admin
user: test@padrinorb.cpm
password: test</pre>
<h3>By WaYdotNET</h3>
]]></content:encoded>
			<wfw:commentRss>http://www.waydotnet.com/blog/2012/02/padrino-admin-twitter-bootstrap-v2-0-is-ready/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Padrino Admin another new layout (based on Twitter Bootstrap v2.0-wip)</title>
		<link>http://www.waydotnet.com/blog/2012/01/padrino-admin-another-new-layout-based-on-twitter-bootstrap-v2-0-wip/</link>
		<comments>http://www.waydotnet.com/blog/2012/01/padrino-admin-another-new-layout-based-on-twitter-bootstrap-v2-0-wip/#comments</comments>
		<pubDate>Mon, 30 Jan 2012 19:11:36 +0000</pubDate>
		<dc:creator>WaYdotNET</dc:creator>
				<category><![CDATA[AiS]]></category>
		<category><![CDATA[OpenOttica]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[padrino]]></category>
		<category><![CDATA[padrino-admin]]></category>
		<category><![CDATA[padrinorb]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[twtitter-bootstrap]]></category>
		<category><![CDATA[waydotnet]]></category>

		<guid isPermaLink="false">http://www.waydotnet.com/blog/?p=124</guid>
		<description><![CDATA[http://glowing-leaf-7114.heroku.com/admin/ user: test@padrinorb.com pass: test PLEASE DON&#8217;T CHANGE LOGIN/PASSWORD Additional feature: ✔ Padrino-Modal: rack-flash and delete function into modal ✔ highlights error field ✔ tof helper: Automatic replace true or false with relative image (list.slim and list.haml) ✔ Breadcrumbs ✔ Automatic time_ago_in_words when column model is created_at or updated_at ✔ Migrate function for MiniRecord clone [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://glowing-leaf-7114.heroku.com/admin/">http://glowing-leaf-7114.heroku.com/admin/</a><br />
user: test@padrinorb.com<br />
pass: test</p>
<p>PLEASE DON&#8217;T CHANGE LOGIN/PASSWORD</p>
<div>
<h2>Additional feature:</h2>
<ul>
<li>✔ Padrino-Modal: rack-flash and delete function into modal <img src='http://www.waydotnet.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </li>
<li>✔ highlights error field</li>
<li>✔ tof helper: Automatic replace true or false with relative image (list.slim and list.haml)</li>
<li>✔ Breadcrumbs</li>
<li>✔ Automatic time_ago_in_words when column model is created_at or updated_at</li>
<li>✔ Migrate function for MiniRecord</li>
</ul>
<p>clone my repository and enjoy <img src='http://www.waydotnet.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">https<span style="color: #339933;">:</span><span style="color: #666666; font-style: italic;">//github.com/WaYdotNET/padrino-framework</span></pre></div></div>

<p>See the code and comment please !!!!</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.waydotnet.com/blog/2012/01/padrino-admin-another-new-layout-based-on-twitter-bootstrap-v2-0-wip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CoffeScript (1.1.1) on Windows: simple method !</title>
		<link>http://www.waydotnet.com/blog/2011/06/coffescript-1-1-1-on-windows-simple-method/</link>
		<comments>http://www.waydotnet.com/blog/2011/06/coffescript-1-1-1-on-windows-simple-method/#comments</comments>
		<pubDate>Fri, 10 Jun 2011 09:03:03 +0000</pubDate>
		<dc:creator>WaYdotNET</dc:creator>
				<category><![CDATA[OpenOttica]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[batch]]></category>
		<category><![CDATA[CoffeeScript]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Node.js]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.waydotnet.com/blog/?p=116</guid>
		<description><![CDATA[CoffeScript (1.1.1) on Windows: simple method ! Inspiration: http://blog.mnasyrov.com/post/2872046541/coffeescript-on-windows-how-to-roast-coffee To use CoffeScript you need: Node.js CoffeeScript Batch file to run CoffeeScript &#160; STEP 1: Node.js &#160; I&#8217;m very very lazy dev&#8230; And i don&#8217;t recompile NodeJs into Windows&#8230;.. but I&#8217;m using v0.4.7 from http://node-js.prcn.co.cc/ [many thx] and install into: 1 2 3 4 D:\&#62;cd Tools\NodeJs\bin [...]]]></description>
			<content:encoded><![CDATA[<h1><strong>CoffeScript (1.1.1) on Windows: simple method !</strong></h1>
<p><strong><br />
</strong></p>
<address>Inspiration: <a href="http://blog.mnasyrov.com/post/2872046541/coffeescript-on-windows-how-to-roast-coffee">http://blog.mnasyrov.com/post/2872046541/coffeescript-on-windows-how-to-roast-coffee</a></address>
<address> </address>
<p>To use CoffeScript you need:<br />
<strong> </strong></p>
<ol>
<li><strong>Node.js</strong></li>
<li><strong>CoffeeScript</strong></li>
<li><strong>Batch file to run CoffeeScript</strong></li>
</ol>
<p>&nbsp;</p>
<h2>STEP 1: Node.js</h2>
<p>&nbsp;</p>
<p>I&#8217;m very very lazy dev&#8230; <img src='http://www.waydotnet.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /><br />
And i don&#8217;t  recompile NodeJs into Windows&#8230;.. but I&#8217;m using v0.4.7 from http://node-js.prcn.co.cc/ [many thx]<br />
and install into:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="dos" style="font-family:monospace;">D:\&gt;cd Tools\NodeJs\bin
&nbsp;
D:\Tools\NodeJs\bin&gt;node --version
v0.4.7</pre></td></tr></table></div>

<p>&nbsp;</p>
<h2>STEP 2: CoffeeScript</h2>
<p>&nbsp;</p>
<p>Use the last version , grab it from <a href="https://github.com/jashkenas/coffee-script">https://github.com/jashkenas/coffee-script</a><br />
and install into:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="dos" style="font-family:monospace;">D:\Tools\CoffeeScript</pre></td></tr></table></div>

<p>Check version</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="dos" style="font-family:monospace;">D:\Tools\NodeJs\bin\node /cygdrive/D/Tools/CoffeeScript/bin/coffee --version
CoffeeScript version 1.1.1</pre></td></tr></table></div>

<p><em><strong><span style="text-decoration: underline;">Node.js need unix-path</span></strong></em></p>
<p><em><strong><span style="text-decoration: underline;"><br />
</span></strong></em></p>
<h2>Step 3: Batch file</h2>
<p>&nbsp;</p>
<p>I don&#8217;t know well bat syntax, and my code is <em>VERY VERY ugly</em>.. but it works <img src='http://www.waydotnet.com/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>&nbsp;</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
</pre></td><td class="code"><pre class="dos" style="font-family:monospace;"><span style="color: #33cc33;">@</span><span style="color: #b1b100; font-weight: bold;">echo</span> off
&nbsp;
:<span style="color: #b100b1; font-weight: bold;">: Directories of the tools</span>
<span style="color: #b1b100; font-weight: bold;">SET</span> <span style="color: #448844;">coffeeDir</span>=D:\Tools\Coffeescript\bin
<span style="color: #b1b100; font-weight: bold;">SET</span> <span style="color: #448844;">nodeDir</span>=D:\Tools\NodeJs\bin
&nbsp;
:<span style="color: #b100b1; font-weight: bold;">: var</span>
<span style="color: #b1b100; font-weight: bold;">SET</span> <span style="color: #448844;">a</span>=<span style="color: #33cc33;">%</span><span style="color: #448888;">1</span>
<span style="color: #b1b100; font-weight: bold;">SET</span> <span style="color: #448844;">b</span>=<span style="color: #33cc33;">%</span><span style="color: #448888;">2</span>
<span style="color: #b1b100; font-weight: bold;">SET</span> <span style="color: #448844;">c</span>=<span style="color: #33cc33;">%</span><span style="color: #448888;">3</span>
<span style="color: #b1b100; font-weight: bold;">SET</span> <span style="color: #448844;">d</span>=<span style="color: #33cc33;">%</span><span style="color: #448888;">4</span>
<span style="color: #b1b100; font-weight: bold;">SET</span> <span style="color: #448844;">e</span>=<span style="color: #33cc33;">%</span><span style="color: #448888;">5</span>
<span style="color: #b1b100; font-weight: bold;">SET</span> <span style="color: #448844;">f</span>=<span style="color: #33cc33;">%</span><span style="color: #448888;">6</span>
<span style="color: #b1b100; font-weight: bold;">SET</span> <span style="color: #448844;">g</span>=<span style="color: #33cc33;">%</span><span style="color: #448888;">7</span>
<span style="color: #b1b100; font-weight: bold;">SET</span> <span style="color: #448844;">h</span>=<span style="color: #33cc33;">%</span><span style="color: #448888;">8</span>
<span style="color: #b1b100; font-weight: bold;">SET</span> <span style="color: #448844;">i</span>=<span style="color: #33cc33;">%</span><span style="color: #448888;">9</span>
&nbsp;
:<span style="color: #b100b1; font-weight: bold;">: Check input value <span style="color: #00b100; font-weight: bold;">if</span> <span style="color: #000000; font-weight: bold;">exist</span> and <span style="color: #00b100; font-weight: bold;">if</span> it's option or file</span>
&nbsp;
:<span style="color: #b100b1; font-weight: bold;">A</span>
<span style="color: #00b100; font-weight: bold;">IF</span> &quot;<span style="color: #33cc33;">%</span><span style="color: #448888;">a</span><span style="color: #33cc33;">%</span>&quot;==&quot;&quot; <span style="color: #00b100; font-weight: bold;">GOTO</span> <span style="color: #b100b1; font-weight: bold;">:B</span>
<span style="color: #00b100; font-weight: bold;">IF</span> &quot;<span style="color: #33cc33;">%</span><span style="color: #448888;">a</span>:~<span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">1</span><span style="color: #33cc33;">%</span>&quot;==&quot;-&quot; <span style="color: #00b100; font-weight: bold;">GOTO</span> <span style="color: #b100b1; font-weight: bold;">:B</span>
<span style="color: #00b100; font-weight: bold;">FOR</span> /f <span style="color: #33cc33;">%%</span><span style="color: #448888;">o</span> <span style="color: #00b100; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span>'<span style="color: #33cc33;">%</span><span style="color: #448888;">nodeDir</span><span style="color: #33cc33;">%</span>/cygpath.exe -a -u <span style="color: #33cc33;">%</span><span style="color: #448888;">1</span>'<span style="color: #66cc66;">&#41;</span> <span style="color: #00b100; font-weight: bold;">DO</span> <span style="color: #b1b100; font-weight: bold;">SET</span> <span style="color: #448844;">a</span>=<span style="color: #33cc33;">%%</span><span style="color: #448888;">o</span>
:<span style="color: #b100b1; font-weight: bold;">B</span>
<span style="color: #00b100; font-weight: bold;">IF</span> &quot;<span style="color: #33cc33;">%</span><span style="color: #448888;">b</span><span style="color: #33cc33;">%</span>&quot;==&quot;&quot; <span style="color: #00b100; font-weight: bold;">GOTO</span> <span style="color: #b100b1; font-weight: bold;">:C</span>
<span style="color: #00b100; font-weight: bold;">IF</span> &quot;<span style="color: #33cc33;">%</span><span style="color: #448888;">b</span>:~<span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">1</span><span style="color: #33cc33;">%</span>&quot;==&quot;-&quot; <span style="color: #00b100; font-weight: bold;">GOTO</span> <span style="color: #b100b1; font-weight: bold;">:C</span>
<span style="color: #00b100; font-weight: bold;">FOR</span> /f <span style="color: #33cc33;">%%</span><span style="color: #448888;">o</span> <span style="color: #00b100; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span>'<span style="color: #33cc33;">%</span><span style="color: #448888;">nodeDir</span><span style="color: #33cc33;">%</span>/cygpath.exe -a -u <span style="color: #33cc33;">%</span><span style="color: #448888;">2</span>'<span style="color: #66cc66;">&#41;</span> <span style="color: #00b100; font-weight: bold;">DO</span> <span style="color: #b1b100; font-weight: bold;">SET</span> <span style="color: #448844;">b</span>=<span style="color: #33cc33;">%%</span><span style="color: #448888;">o</span>
:<span style="color: #b100b1; font-weight: bold;">C</span>
<span style="color: #00b100; font-weight: bold;">IF</span> &quot;<span style="color: #33cc33;">%</span><span style="color: #448888;">c</span><span style="color: #33cc33;">%</span>&quot;==&quot;&quot; <span style="color: #00b100; font-weight: bold;">GOTO</span> <span style="color: #b100b1; font-weight: bold;">:D</span>
<span style="color: #00b100; font-weight: bold;">IF</span> &quot;<span style="color: #33cc33;">%</span><span style="color: #448888;">c</span>:~<span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">1</span><span style="color: #33cc33;">%</span>&quot;==&quot;-&quot; <span style="color: #00b100; font-weight: bold;">GOTO</span> <span style="color: #b100b1; font-weight: bold;">:D</span>
<span style="color: #00b100; font-weight: bold;">FOR</span> /f <span style="color: #33cc33;">%%</span><span style="color: #448888;">o</span> <span style="color: #00b100; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span>'<span style="color: #33cc33;">%</span><span style="color: #448888;">nodeDir</span><span style="color: #33cc33;">%</span>/cygpath.exe -a -u <span style="color: #33cc33;">%</span><span style="color: #448888;">3</span>'<span style="color: #66cc66;">&#41;</span> <span style="color: #00b100; font-weight: bold;">DO</span> <span style="color: #b1b100; font-weight: bold;">SET</span> <span style="color: #448844;">c</span>=<span style="color: #33cc33;">%%</span><span style="color: #448888;">o</span>
:<span style="color: #b100b1; font-weight: bold;">D</span>
<span style="color: #00b100; font-weight: bold;">IF</span> &quot;<span style="color: #33cc33;">%</span><span style="color: #448888;">d</span><span style="color: #33cc33;">%</span>&quot;==&quot;&quot; <span style="color: #00b100; font-weight: bold;">GOTO</span> <span style="color: #b100b1; font-weight: bold;">:E</span>
<span style="color: #00b100; font-weight: bold;">IF</span> &quot;<span style="color: #33cc33;">%</span><span style="color: #448888;">d</span>:~<span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">1</span><span style="color: #33cc33;">%</span>&quot;==&quot;-&quot; <span style="color: #00b100; font-weight: bold;">GOTO</span> <span style="color: #b100b1; font-weight: bold;">:E</span>
<span style="color: #00b100; font-weight: bold;">FOR</span> /f <span style="color: #33cc33;">%%</span><span style="color: #448888;">o</span> <span style="color: #00b100; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span>'<span style="color: #33cc33;">%</span><span style="color: #448888;">nodeDir</span><span style="color: #33cc33;">%</span>/cygpath.exe -a -u <span style="color: #33cc33;">%</span><span style="color: #448888;">4</span>'<span style="color: #66cc66;">&#41;</span> <span style="color: #00b100; font-weight: bold;">DO</span> <span style="color: #b1b100; font-weight: bold;">SET</span> <span style="color: #448844;">d</span>=<span style="color: #33cc33;">%%</span><span style="color: #448888;">o</span>
:<span style="color: #b100b1; font-weight: bold;">E</span>
<span style="color: #00b100; font-weight: bold;">IF</span> &quot;<span style="color: #33cc33;">%</span><span style="color: #448888;">e</span><span style="color: #33cc33;">%</span>&quot;==&quot;&quot; <span style="color: #00b100; font-weight: bold;">GOTO</span> <span style="color: #b100b1; font-weight: bold;">:F</span>
<span style="color: #00b100; font-weight: bold;">IF</span> &quot;<span style="color: #33cc33;">%</span><span style="color: #448888;">e</span>:~<span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">1</span><span style="color: #33cc33;">%</span>&quot;==&quot;-&quot; <span style="color: #00b100; font-weight: bold;">GOTO</span> <span style="color: #b100b1; font-weight: bold;">:F</span>
<span style="color: #00b100; font-weight: bold;">FOR</span> /f <span style="color: #33cc33;">%%</span><span style="color: #448888;">o</span> <span style="color: #00b100; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span>'<span style="color: #33cc33;">%</span><span style="color: #448888;">nodeDir</span><span style="color: #33cc33;">%</span>/cygpath.exe -a -u <span style="color: #33cc33;">%</span><span style="color: #448888;">5</span>'<span style="color: #66cc66;">&#41;</span> <span style="color: #00b100; font-weight: bold;">DO</span> <span style="color: #b1b100; font-weight: bold;">SET</span> <span style="color: #448844;">e</span>=<span style="color: #33cc33;">%%</span><span style="color: #448888;">o</span>
:<span style="color: #b100b1; font-weight: bold;">F</span>
<span style="color: #00b100; font-weight: bold;">IF</span> &quot;<span style="color: #33cc33;">%</span><span style="color: #448888;">f</span><span style="color: #33cc33;">%</span>&quot;==&quot;&quot; <span style="color: #00b100; font-weight: bold;">GOTO</span> <span style="color: #b100b1; font-weight: bold;">:G</span>
<span style="color: #00b100; font-weight: bold;">IF</span> &quot;<span style="color: #33cc33;">%</span><span style="color: #448888;">f</span>:~<span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">1</span><span style="color: #33cc33;">%</span>&quot;==&quot;-&quot; <span style="color: #00b100; font-weight: bold;">GOTO</span> <span style="color: #b100b1; font-weight: bold;">:G</span>
<span style="color: #00b100; font-weight: bold;">FOR</span> /f <span style="color: #33cc33;">%%</span><span style="color: #448888;">o</span> <span style="color: #00b100; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span>'<span style="color: #33cc33;">%</span><span style="color: #448888;">nodeDir</span><span style="color: #33cc33;">%</span>/cygpath.exe -a -u <span style="color: #33cc33;">%</span><span style="color: #448888;">6</span>'<span style="color: #66cc66;">&#41;</span> <span style="color: #00b100; font-weight: bold;">DO</span> <span style="color: #b1b100; font-weight: bold;">SET</span> <span style="color: #448844;">f</span>=<span style="color: #33cc33;">%%</span><span style="color: #448888;">o</span>
:<span style="color: #b100b1; font-weight: bold;">G</span>
<span style="color: #00b100; font-weight: bold;">IF</span> &quot;<span style="color: #33cc33;">%</span><span style="color: #448888;">g</span><span style="color: #33cc33;">%</span>&quot;==&quot;&quot; <span style="color: #00b100; font-weight: bold;">GOTO</span> <span style="color: #b100b1; font-weight: bold;">:H</span>
<span style="color: #00b100; font-weight: bold;">IF</span> &quot;<span style="color: #33cc33;">%</span><span style="color: #448888;">g</span>:~<span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">1</span><span style="color: #33cc33;">%</span>&quot;==&quot;-&quot; <span style="color: #00b100; font-weight: bold;">GOTO</span> <span style="color: #b100b1; font-weight: bold;">:H</span>
<span style="color: #00b100; font-weight: bold;">FOR</span> /f <span style="color: #33cc33;">%%</span><span style="color: #448888;">o</span> <span style="color: #00b100; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span>'<span style="color: #33cc33;">%</span><span style="color: #448888;">nodeDir</span><span style="color: #33cc33;">%</span>/cygpath.exe -a -u <span style="color: #33cc33;">%</span><span style="color: #448888;">7</span>'<span style="color: #66cc66;">&#41;</span> <span style="color: #00b100; font-weight: bold;">DO</span> <span style="color: #b1b100; font-weight: bold;">SET</span> <span style="color: #448844;">g</span>=<span style="color: #33cc33;">%%</span><span style="color: #448888;">o</span>
:<span style="color: #b100b1; font-weight: bold;">H</span>
<span style="color: #00b100; font-weight: bold;">IF</span> &quot;<span style="color: #33cc33;">%</span><span style="color: #448888;">h</span><span style="color: #33cc33;">%</span>&quot;==&quot;&quot; <span style="color: #00b100; font-weight: bold;">GOTO</span> <span style="color: #b100b1; font-weight: bold;">:I</span>
<span style="color: #00b100; font-weight: bold;">IF</span> &quot;<span style="color: #33cc33;">%</span><span style="color: #448888;">h</span>:~<span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">1</span><span style="color: #33cc33;">%</span>&quot;==&quot;-&quot; <span style="color: #00b100; font-weight: bold;">GOTO</span> <span style="color: #b100b1; font-weight: bold;">:I</span>
<span style="color: #00b100; font-weight: bold;">FOR</span> /f <span style="color: #33cc33;">%%</span><span style="color: #448888;">o</span> <span style="color: #00b100; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span>'<span style="color: #33cc33;">%</span><span style="color: #448888;">nodeDir</span><span style="color: #33cc33;">%</span>/cygpath.exe -a -u <span style="color: #33cc33;">%</span><span style="color: #448888;">8</span>'<span style="color: #66cc66;">&#41;</span> <span style="color: #00b100; font-weight: bold;">DO</span> <span style="color: #b1b100; font-weight: bold;">SET</span> <span style="color: #448844;">h</span>=<span style="color: #33cc33;">%%</span><span style="color: #448888;">o</span>
:<span style="color: #b100b1; font-weight: bold;">I</span>
<span style="color: #00b100; font-weight: bold;">IF</span> &quot;<span style="color: #33cc33;">%</span><span style="color: #448888;">i</span><span style="color: #33cc33;">%</span>&quot;==&quot;&quot; <span style="color: #00b100; font-weight: bold;">GOTO</span> <span style="color: #b100b1; font-weight: bold;">:COMMAND</span>
<span style="color: #00b100; font-weight: bold;">IF</span> &quot;<span style="color: #33cc33;">%</span><span style="color: #448888;">i</span>:~<span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">1</span><span style="color: #33cc33;">%</span>&quot;==&quot;-&quot; <span style="color: #00b100; font-weight: bold;">GOTO</span> <span style="color: #b100b1; font-weight: bold;">:COMMAND</span>
<span style="color: #00b100; font-weight: bold;">FOR</span> /f <span style="color: #33cc33;">%%</span><span style="color: #448888;">o</span> <span style="color: #00b100; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span>'<span style="color: #33cc33;">%</span><span style="color: #448888;">nodeDir</span><span style="color: #33cc33;">%</span>/cygpath.exe -a -u <span style="color: #33cc33;">%</span><span style="color: #448888;">9</span>'<span style="color: #66cc66;">&#41;</span> <span style="color: #00b100; font-weight: bold;">DO</span> <span style="color: #b1b100; font-weight: bold;">SET</span> <span style="color: #448844;">i</span>=<span style="color: #33cc33;">%%</span><span style="color: #448888;">o</span>
&nbsp;
:<span style="color: #b100b1; font-weight: bold;">COMMAND</span>
<span style="color: #00b100; font-weight: bold;">FOR</span> /f <span style="color: #33cc33;">%%</span><span style="color: #448888;">o</span> <span style="color: #00b100; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span>'<span style="color: #33cc33;">%</span><span style="color: #448888;">nodeDir</span><span style="color: #33cc33;">%</span>/cygpath.exe -a -u <span style="color: #33cc33;">%</span><span style="color: #448888;">coffeeDir</span><span style="color: #33cc33;">%</span>'<span style="color: #66cc66;">&#41;</span> <span style="color: #00b100; font-weight: bold;">DO</span> <span style="color: #b1b100; font-weight: bold;">SET</span> <span style="color: #448844;">p</span>=<span style="color: #33cc33;">%%</span><span style="color: #448888;">o</span>
<span style="color: #33cc33;">%</span><span style="color: #448888;">nodeDir</span><span style="color: #33cc33;">%</span>\node <span style="color: #33cc33;">%</span><span style="color: #448888;">p</span><span style="color: #33cc33;">%</span>/coffee <span style="color: #33cc33;">%</span><span style="color: #448888;">a</span><span style="color: #33cc33;">%</span> <span style="color: #33cc33;">%</span><span style="color: #448888;">b</span><span style="color: #33cc33;">%</span> <span style="color: #33cc33;">%</span><span style="color: #448888;">c</span><span style="color: #33cc33;">%</span> <span style="color: #33cc33;">%</span><span style="color: #448888;">d</span><span style="color: #33cc33;">%</span> <span style="color: #33cc33;">%</span><span style="color: #448888;">e</span><span style="color: #33cc33;">%</span> <span style="color: #33cc33;">%</span><span style="color: #448888;">f</span><span style="color: #33cc33;">%</span> <span style="color: #33cc33;">%</span><span style="color: #448888;">g</span><span style="color: #33cc33;">%</span> <span style="color: #33cc33;">%</span><span style="color: #448888;">h</span><span style="color: #33cc33;">%</span> <span style="color: #33cc33;">%</span><span style="color: #448888;">i</span><span style="color: #33cc33;">%</span></pre></td></tr></table></div>

<p>&nbsp;</p>
<p><span style="text-decoration: underline;"><em><strong>set the PATH environment variable contains a path to coffee.bat</strong></em></span></p>
<p><strong><span style="color: #800000;">the name of the file is very important,  in my case it works well with coffee-rack</span></strong></p>
<p>Enjoy</p>
<p>Many thanks to:</p>
<p><em>Mikhail Nasyrov =&gt; http://blog.mnasyrov.com/post/2872046541/coffeescript-on-windows-how-to-roast-coffee</em><br />
<em> Node.js self-contained Windows binaries =&gt; http://node-js.prcn.co.cc/index.html</em><br />
<em> Jeremy Ashkenas =&gt; http://jashkenas.github.com/coffee-script/</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.waydotnet.com/blog/2011/06/coffescript-1-1-1-on-windows-simple-method/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LAZY Agnostic Application Generators (padrino-lazy)</title>
		<link>http://www.waydotnet.com/blog/2011/05/lazy-agnostic-application-generators-padrino-lazy/</link>
		<comments>http://www.waydotnet.com/blog/2011/05/lazy-agnostic-application-generators-padrino-lazy/#comments</comments>
		<pubDate>Sat, 21 May 2011 17:36:06 +0000</pubDate>
		<dc:creator>WaYdotNET</dc:creator>
				<category><![CDATA[ruby]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[lazy]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[orm]]></category>
		<category><![CDATA[padrino]]></category>

		<guid isPermaLink="false">http://www.waydotnet.com/blog/?p=113</guid>
		<description><![CDATA[Overview Through padrino-lazy, we can include some common properties shared between the model object used a base model object Padrino is very good framework, and almost follows the DRY principle (Don’t Repeat Yourself) When we need to have some common properties shared between the model object of our ORM, using the generator padrino-gen, We can [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Overview</strong></p>
<p>Through padrino-lazy, we can include some common properties shared between the model object used a base model object</p>
<p>Padrino is very good framework, and almost follows the DRY principle (Don’t Repeat Yourself) When we need to have some common properties shared between the model object of our ORM, using the generator padrino-gen, We can only include these properties in each model to generate.</p>
<p>I hope this idea will be included in Padrino Framework.<br />
<strong>Principle / Step</strong></p>
<ol>
<li> generate a model</li>
<li>convert the model into base model ( move this model into lib/ folder)</li>
<li>save config file with model base’s list</li>
<li>generate a model from base model</li>
<li>generate a migration file</li>
</ol>
<p><strong>Usage</strong></p>
<p>Step 1-2-3</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ padrino-lazy base <span style="color: #660033;">--c</span> config_file <span style="color: #660033;">--b</span> base_model_name <span style="color: #660033;">--f</span> field_to_create</pre></td></tr></table></div>

<p>Step 4-5</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ padrino-lazy model <span style="color: #660033;">--c</span> config_file <span style="color: #660033;">--b</span> base_model_name <span style="color: #660033;">--f</span> field_to_create <span style="color: #660033;">--m</span> model_name</pre></td></tr></table></div>

<p><strong> Install </strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">gem <span style="color: #c20cb9; font-weight: bold;">install</span> padrino-lazy <span style="color: #660033;">--pre</span></pre></td></tr></table></div>

<p><strong>Example</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ padrino-lazy base <span style="color: #660033;">--c</span> config <span style="color: #660033;">--b</span> BaseModel <span style="color: #660033;">--f</span> <span style="color: #ff0000;">&quot;create_at:datetime is_active:boolean&quot;</span></pre></td></tr></table></div>

<p>now we have</p>
<p>lib/base_model.rb class BaseModel</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="ruby" style="font-family:monospace;">&nbsp;
<span style="color:#9966CC; font-weight:bold;">include</span> <span style="color:#6666ff; font-weight:bold;">DataMapper::Resource</span>
&nbsp;
  <span style="color:#008000; font-style:italic;"># property ,</span>
  property <span style="color:#ff3333; font-weight:bold;">:id</span>, Serial
  property <span style="color:#ff3333; font-weight:bold;">:create_at</span>, <span style="color:#CC00FF; font-weight:bold;">DateTime</span>
  property <span style="color:#ff3333; font-weight:bold;">:is_active</span>, Boolean
&nbsp;
<span style="color:#9966CC; font-weight:bold;">end</span></pre></td></tr></table></div>

<p>config/config.yml</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="yaml" style="font-family:monospace;">&nbsp;
---
- base: BaseModel
fields: create_at:datetime is_active:boolean</pre></td></tr></table></div>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ padrino-lazy model <span style="color: #660033;">--c</span> config <span style="color: #660033;">--b</span> BaseModel <span style="color: #660033;">--f</span> <span style="color: #ff0000;">&quot;name:string have_children:boolean born:date foo:integer&quot;</span>  <span style="color: #660033;">--m</span> User</pre></td></tr></table></div>

<p>app/models/user.rb</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#9966CC; font-weight:bold;">class</span> User <span style="color:#006600; font-weight:bold;">&lt;</span>  BaseModel
&nbsp;
  <span style="color:#008000; font-style:italic;"># property ,</span>
  property <span style="color:#ff3333; font-weight:bold;">:name</span>, <span style="color:#CC0066; font-weight:bold;">String</span>
  property <span style="color:#ff3333; font-weight:bold;">:have_children</span>, Boolean
  property <span style="color:#ff3333; font-weight:bold;">:born</span>, <span style="color:#CC00FF; font-weight:bold;">Date</span>
  property <span style="color:#ff3333; font-weight:bold;">:foo</span>, <span style="color:#CC0066; font-weight:bold;">Integer</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></td></tr></table></div>

<p>db/migrate/001_create_users.rb</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
</pre></td><td class="code"><pre class="ruby" style="font-family:monospace;">&nbsp;
migration <span style="color:#006666;">1</span>, <span style="color:#ff3333; font-weight:bold;">:create_users</span> <span style="color:#9966CC; font-weight:bold;">do</span>
  up <span style="color:#9966CC; font-weight:bold;">do</span>
    create_table <span style="color:#ff3333; font-weight:bold;">:users</span> <span style="color:#9966CC; font-weight:bold;">do</span>
      column <span style="color:#ff3333; font-weight:bold;">:id</span>, <span style="color:#CC0066; font-weight:bold;">Integer</span>, <span style="color:#ff3333; font-weight:bold;">:serial</span> =<span style="color:#006600; font-weight:bold;">&amp;</span>gt; <span style="color:#0000FF; font-weight:bold;">true</span>
      column <span style="color:#ff3333; font-weight:bold;">:name</span>, <span style="color:#CC0066; font-weight:bold;">String</span>
      column <span style="color:#ff3333; font-weight:bold;">:have_children</span>, Boolean
      column <span style="color:#ff3333; font-weight:bold;">:born</span>, <span style="color:#CC00FF; font-weight:bold;">Date</span>
      column <span style="color:#ff3333; font-weight:bold;">:foo</span>, <span style="color:#CC0066; font-weight:bold;">Integer</span>
    <span style="color:#9966CC; font-weight:bold;">end</span>
  <span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
  down <span style="color:#9966CC; font-weight:bold;">do</span>
    drop_table <span style="color:#ff3333; font-weight:bold;">:users</span>
    <span style="color:#9966CC; font-weight:bold;">end</span>
  <span style="color:#9966CC; font-weight:bold;">end</span></pre></td></tr></table></div>

<p>db/migrate/002_add_basic_model_to_user.rb</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
</pre></td><td class="code"><pre class="ruby" style="font-family:monospace;">&nbsp;
migration <span style="color:#006666;">2</span>, <span style="color:#ff3333; font-weight:bold;">:add_basic_model_to_user</span> <span style="color:#9966CC; font-weight:bold;">do</span>
  up <span style="color:#9966CC; font-weight:bold;">do</span>
    modify_table <span style="color:#ff3333; font-weight:bold;">:users</span> <span style="color:#9966CC; font-weight:bold;">do</span>
      add_column <span style="color:#ff3333; font-weight:bold;">:name</span>, <span style="color:#CC0066; font-weight:bold;">String</span>
      add_column <span style="color:#ff3333; font-weight:bold;">:have_children</span>, Boolean
      add_column <span style="color:#ff3333; font-weight:bold;">:born</span>, <span style="color:#CC00FF; font-weight:bold;">Date</span>
      add_column <span style="color:#ff3333; font-weight:bold;">:foo</span>, <span style="color:#CC0066; font-weight:bold;">Integer</span>
  <span style="color:#9966CC; font-weight:bold;">end</span>
<span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
down <span style="color:#9966CC; font-weight:bold;">do</span>
modify_table <span style="color:#ff3333; font-weight:bold;">:users</span> <span style="color:#9966CC; font-weight:bold;">do</span>
drop_column <span style="color:#ff3333; font-weight:bold;">:name</span>
drop_column <span style="color:#ff3333; font-weight:bold;">:have_children</span>
drop_column <span style="color:#ff3333; font-weight:bold;">:born</span>
drop_column <span style="color:#ff3333; font-weight:bold;">:foo</span>
<span style="color:#9966CC; font-weight:bold;">end</span>
<span style="color:#9966CC; font-weight:bold;">end</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></td></tr></table></div>

<h2><strong>Known issue</strong></h2>
<ul>
<li>VERY VERY alpha code !! (thanks to my pig/lazy side <img src='http://www.waydotnet.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  )</li>
<li>—f options need dobule quote around fields</li>
<li>—b write in CamelCase</li>
<li>TESTING only with datamapper and activerecord into linux machine</li>
</ul>
<p><strong>TODO:</strong></p>
<ul>
<li> Test all code !</li>
<li>Use Padrino::Generators instead of Commander</li>
<li>Default config file name (very lazy <img src='http://www.waydotnet.com/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  )</li>
</ul>
<p><strong>THANK</strong></p>
<ul>
<li>Team Padrino</li>
<li>DaddYE</li>
<li>Piedinodifata</li>
</ul>
<p>CODE<br />
<strong><a href="https://github.com/WaYdotNET/padrino-lazy">https://github.com/WaYdotNET/padrino-lazy</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.waydotnet.com/blog/2011/05/lazy-agnostic-application-generators-padrino-lazy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RMagick on Ruby 1.9.1 (i386-mingw32) Work !!! :D [UPDATE]</title>
		<link>http://www.waydotnet.com/blog/2010/02/rmagick-on-ruby-1-9-1-i386-mingw32-work-d/</link>
		<comments>http://www.waydotnet.com/blog/2010/02/rmagick-on-ruby-1-9-1-i386-mingw32-work-d/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 21:29:20 +0000</pubDate>
		<dc:creator>WaYdotNET</dc:creator>
				<category><![CDATA[ruby]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[mingw32]]></category>
		<category><![CDATA[rmagick]]></category>
		<category><![CDATA[ruby 1.9.1]]></category>
		<category><![CDATA[RubyInstaller]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.waydotnet.com/blog/?p=94</guid>
		<description><![CDATA[RMagick on Ruby 1.9.1 (i386-mingw32) Work !!! Ispirate from : installing rmagick with mingw and ruby 1.9 and http://groups.google.com/group/rubyinstaller/browse_thread/thread/c837c4438d91208b but , on my laptop don&#8217;t work&#8230;. With Windows 7 work well: Step 1: DOWNLOAD 1 2 3 4 5 1&#41; Ruby =&#62; http://rubyforge.org/frs/download.php/74298/rubyinstaller-1.9.2-p180.exe 2&#41; DevKit =&#62; http://github.com/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.1-20101214-1400-sfx.exe 3&#41; ImageMagick =&#62; http://www.imagemagick.org/download/binaries/ImageMagick-6.6.7-9-Q16-windows-dll.exe 4&#41; RMagick =&#62; https://github.com/rmagick/rmagick/zipball/master [...]]]></description>
			<content:encoded><![CDATA[<p>RMagick on Ruby 1.9.1 (i386-mingw32) Work !!! <img src='http://www.waydotnet.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /><br />
Ispirate from :<br />
<a href="http://betterlogic.com/roger/?p=2186">installing rmagick with mingw and ruby 1.9</a><br />
and<br />
<a href="http://groups.google.com/group/rubyinstaller/browse_thread/thread/c837c4438d91208b">http://groups.google.com/group/rubyinstaller/browse_thread/thread/c837c4438d91208b</a><br />
but , on my laptop don&#8217;t work&#8230;.</p>
<p><strong> </strong><strong>With Windows 7 work well:</strong></p>
<p><strong>Step 1: DOWNLOAD</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> Ruby =<span style="color: #000000; font-weight: bold;">&gt;</span> http:<span style="color: #000000; font-weight: bold;">//</span>rubyforge.org<span style="color: #000000; font-weight: bold;">/</span>frs<span style="color: #000000; font-weight: bold;">/</span>download.php<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">74298</span><span style="color: #000000; font-weight: bold;">/</span>rubyinstaller-1.9.2-p180.exe
<span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> DevKit =<span style="color: #000000; font-weight: bold;">&gt;</span> http:<span style="color: #000000; font-weight: bold;">//</span>github.com<span style="color: #000000; font-weight: bold;">/</span>downloads<span style="color: #000000; font-weight: bold;">/</span>oneclick<span style="color: #000000; font-weight: bold;">/</span>rubyinstaller<span style="color: #000000; font-weight: bold;">/</span>DevKit-tdm-<span style="color: #000000;">32</span>-4.5.1-<span style="color: #000000;">20101214</span>-<span style="color: #000000;">1400</span>-sfx.exe
<span style="color: #000000;">3</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> ImageMagick =<span style="color: #000000; font-weight: bold;">&gt;</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.imagemagick.org<span style="color: #000000; font-weight: bold;">/</span>download<span style="color: #000000; font-weight: bold;">/</span>binaries<span style="color: #000000; font-weight: bold;">/</span>ImageMagick-6.6.7-<span style="color: #000000;">9</span>-Q16-windows-dll.exe
<span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> RMagick =<span style="color: #000000; font-weight: bold;">&gt;</span> https:<span style="color: #000000; font-weight: bold;">//</span>github.com<span style="color: #000000; font-weight: bold;">/</span>rmagick<span style="color: #000000; font-weight: bold;">/</span>rmagick<span style="color: #000000; font-weight: bold;">/</span>zipball<span style="color: #000000; font-weight: bold;">/</span>master
<span style="color: #000000;">5</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> type-windows.xml =<span style="color: #000000; font-weight: bold;">&gt;</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.imagemagick.org<span style="color: #000000; font-weight: bold;">/</span>source<span style="color: #000000; font-weight: bold;">/</span>type-windows.xml</pre></td></tr></table></div>

<p><strong>Step 2: Install</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> Ruby =<span style="color: #000000; font-weight: bold;">&gt;</span> c:\Ruby192
<span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> DevKit =<span style="color: #000000; font-weight: bold;">&gt;</span> c:\DevKit
<span style="color: #000000;">3</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> ImageMagick =<span style="color: #000000; font-weight: bold;">&gt;</span> c:\ImageMagick-6.6.7-Q16 <span style="color: #7a0874; font-weight: bold;">&#91;</span>WITH HEADER <span style="color: #000000; font-weight: bold;">!!!!!!!</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>
3.a<span style="color: #7a0874; font-weight: bold;">&#41;</span> Replace c:\ImageMagick-6.6.7-Q16\config\type-ghostscript.xml  with type-windows.xml
<span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> RMagick =<span style="color: #000000; font-weight: bold;">&gt;</span> c:\rmagick-rmagick</pre></td></tr></table></div>

<p><strong>Step 3: Set Enviroment variable</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> PATH = C:\Ruby192\bin;C:\ImageMagick-6.6.7-Q16
<span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> CPATH = C:\ImageMagick-6.6.7-Q16\include
<span style="color: #000000;">3</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> LIBRARY_PATH = C:\ImageMagick-6.6.7-Q16\lib</pre></td></tr></table></div>

<p><strong>Step 4: Configure DevKit</strong><br />
(from https://github.com/oneclick/rubyinstaller/wiki/Development-Kit)</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">cd</span> c:\DevKit
<span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> ruby dk.rb init
<span style="color: #000000;">3</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> ruby dk.rb <span style="color: #c20cb9; font-weight: bold;">install</span>
<span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> C:\DevKit\devkitvars.bat <span style="color: #7a0874; font-weight: bold;">&#40;</span>THANKS TO Joachim  =<span style="color: #000000; font-weight: bold;">&gt;</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.waydotnet.com<span style="color: #000000; font-weight: bold;">/</span>blog<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2010</span><span style="color: #000000; font-weight: bold;">/</span>02<span style="color: #000000; font-weight: bold;">/</span>rmagick-on-ruby-<span style="color: #000000;">1</span>-<span style="color: #000000;">9</span>-<span style="color: #000000;">1</span>-i386-mingw32-work-d<span style="color: #000000; font-weight: bold;">/</span><span style="color: #666666; font-style: italic;">#comment-86618621)</span></pre></td></tr></table></div>

<p><strong>Step 5: Compile RMagick</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> run C:\DevKit\msys.bat
<span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>c<span style="color: #000000; font-weight: bold;">/</span>rmagick-rmagick
<span style="color: #000000;">3</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> ruby setup.rb
<span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> ruby setup.rb <span style="color: #c20cb9; font-weight: bold;">install</span></pre></td></tr></table></div>

<p><strong>Step 6: Check</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> ruby <span style="color: #660033;">-v</span>
        ruby 1.9.2p180 <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">2011</span>-02-<span style="color: #000000;">18</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>i386-mingw32<span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> identify <span style="color: #660033;">--version</span>
    Version: ImageMagick 6.6.7-<span style="color: #000000;">9</span> <span style="color: #000000;">2011</span>-02-<span style="color: #000000;">21</span> Q16 http:<span style="color: #000000; font-weight: bold;">//</span>www.imagemagick.org
	Copyright: Copyright <span style="color: #7a0874; font-weight: bold;">&#40;</span>C<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000;">1999</span>-<span style="color: #000000;">2011</span> ImageMagick Studio LLC
	Features: OpenMP</pre></td></tr></table></div>

<p><strong>If you experience problems concerning &#8220;extconf.rb&#8221;, you should try:</strong><br />
<strong>http://phosphor-escence.blogspot.com/2010/12/if-you-fail-install-rmagick-on-mingw.html<br />
from<br />
</strong>http://www.waydotnet.com/blog/2010/02/rmagick-on-ruby-1-9-1-i386-mingw32-work-d/#comment-166014708</p>
<p>http://www.waydotnet.com/blog/2010/02/rmagick-on-ruby-1-9-1-i386-mingw32-work-d/#comment-317551623</p>
<p><strong><br />
</strong></p>
<p><del>In my case :</del><br />
<del> 1) Install Ruby 1.9.1 (i386-mingw32) from <a href="http://www.rubyinstaller.org/">http://www.rubyinstaller.org/</a>, <a href="http://rubyforge.org/frs/download.php/72075/rubyinstaller-1.9.1-p430.exe">direct link</a></del></p>
<p><del>2) Install Development Kit (DevKit) from <a href="http://www.rubyinstaller.org/addons.html">http://www.rubyinstaller.org/addons.html</a>, <a href="http://rubyforge.org/frs/download.php/66888/devkit-3.4.5r3-20091110.7z">direct link</a></del></p>
<p><del>3) Install ImageMagick 6.5.6-8-Q8 from <a href="http://www.imagemagick.org">http://www.imagemagick.org</a> , <a href="http://image_magick.veidrodis.com/image_magick/binaries/ImageMagick-6.5.6-8-Q8-windows-dll.exe">direct link</a> <strong>with header !!!!</strong></del></p>
<p><del>4) Download Rmagick from source : http://github.com/rmagick/rmagick , <a href="http://github.com/rmagick/rmagick/zipball/master">direct link</a> or git clone git://github.com/rmagick/rmagick.git</del></p>
<p><del>5) Replace !ImageMagick Path!\config\type-ghostscript.xml with </del></p>
<p><del><a href="http://www.imagemagick.org/source/type-windows.xml">http://www.imagemagick.org/source/type-windows.xml</a></del></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><del>6) Set enviroment variable :<br />
set CPATH=!ImageMagick Path!\include<br />
set LIBRARY_PATH=!ImageMagick Path!\lib<br />
set PATH=!ImageMagick Path!<br />
<strong>[EDIT]</strong><br />
set PATH = !ruby_path!\bin<br />
set PATH = !ruby_path!\devkit\msys\1.0.11\bin<br />
set PATH = !ruby_path!\devkit\gcc\3.4.5\bin<br />
<strong>[EDIT]</strong><br />
7) run &#8220;ruby setup.rb&#8221;  <strong>[EDIT]</strong> from msys.bat ( !ruby_path!\devkit\msys\1.0.11\msys.bat ) <strong>[EDIT]</strong></del></p>
<p>&nbsp;</p>
<p><del> <img src='http://www.waydotnet.com/blog/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> run &#8220;ruby setup.rb install&#8221; or &#8220;gem build *.gemspec&#8221; and  &#8220;gem install *.gem&#8221;</del></p>
<p><del>9) Enjoy <img src='http://www.waydotnet.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </del></p>
<p><del>identify &#8211;version</del><br />
<del> Version: ImageMagick 6.5.6-8 2009-10-03 Q8 OpenMP http://www.imagemagick.org</del><br />
<del> Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC</del></p>
<p>&nbsp;</p>
<p><del>ruby -v</del><br />
<del> ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-mingw32]</del></p>
<p>Many thanks to :<br />
Rmagick staff =&gt; <a href="http://rmagick.rubyforge.org/">http://rmagick.rubyforge.org/</a><br />
rogerdpack =&gt; <a href="http://betterlogic.com">http://betterlogic.com</a><br />
Alexey Borzenkov =&gt; not have link, sorry<br />
Luis Lavena =&gt; <a href="http://blog.mmediasys.com">http://blog.mmediasys.com</a><br />
RubyInstaller =&gt; <a href="http://www.rubyinstaller.org">http://www.rubyinstaller.org</a><br />
RubyInstaller Group =&gt; <a href="http://groups.google.com/group/rubyinstaller">http://groups.google.com/group/rubyinstaller</a><br />
puts WaYdotNET =&gt; Carlo Bertini</p>
]]></content:encoded>
			<wfw:commentRss>http://www.waydotnet.com/blog/2010/02/rmagick-on-ruby-1-9-1-i386-mingw32-work-d/feed/</wfw:commentRss>
		<slash:comments>50</slash:comments>
		</item>
		<item>
		<title>Photo Resize from console :D</title>
		<link>http://www.waydotnet.com/blog/2010/02/photo-resize-from-console-d/</link>
		<comments>http://www.waydotnet.com/blog/2010/02/photo-resize-from-console-d/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 09:00:58 +0000</pubDate>
		<dc:creator>WaYdotNET</dc:creator>
				<category><![CDATA[Script]]></category>
		<category><![CDATA[optiflag]]></category>
		<category><![CDATA[photo]]></category>
		<category><![CDATA[photo resize]]></category>
		<category><![CDATA[resize]]></category>
		<category><![CDATA[rmagick]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.waydotnet.com/blog/?p=90</guid>
		<description><![CDATA[Qui raccolgo un po di script che mi sono fatto x la vita di tutti i giorni Photo resize (photo_resize) piccolo script in ruby che serve per fare delle thumbnails di foto, passando almeno la cartella contenente le foto (strano ) Require: ruby (test with: ruby 1.9.1p378 (2010-01-10 revision 26273) [x86_64-linux] &#124;&#124;ruby 1.8.7 (2009-12-24 patchlevel [...]]]></description>
			<content:encoded><![CDATA[<p>Qui raccolgo un po di script che mi sono fatto x la vita di tutti i giorni <img src='http://www.waydotnet.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><strong>Photo resize</strong> (<a href='http://www.waydotnet.com/blog/wp-content/uploads/2010/02/photo_resize.tar'>photo_resize</a>)</p>
<p>piccolo script in ruby che serve per fare delle thumbnails di foto,  passando almeno la cartella contenente le foto (strano <img src='http://www.waydotnet.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> )</p>
<p>Require:</p>
<p><strong>ruby</strong> (test with: ruby 1.9.1p378 (2010-01-10 revision 26273) [x86_64-linux] ||ruby 1.8.7 (2009-12-24 patchlevel 248) [x86_64-linux] || jruby 1.4.0 (ruby 1.8.7 patchlevel 174) (2009-11-02 69fbfa3) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_15) [amd64-java] )<br />
<strong>rmagick</strong> (http://rmagick.rubyforge.org/)<br />
<strong>optiflag</strong> (http://optiflag.rubyforge.org/)</p>
<p>syntax:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #660033;">----------------</span>                                      
    Description:        Folder with image to resize   
           Flag:        <span style="color: #660033;">-s</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>Required, takes <span style="color: #000000;">1</span> argument<span style="color: #7a0874; font-weight: bold;">&#41;</span> 
      Long Form:        <span style="color: #660033;">--source</span>                        
Alternate Flags:        -source, -S, <span style="color: #660033;">-from</span>              
<span style="color: #660033;">----------------</span>
    Description:        Folder to save the thumbnails, auto =<span style="color: #000000; font-weight: bold;">&gt;</span> source<span style="color: #000000; font-weight: bold;">/</span>thumb
           Flag:        <span style="color: #660033;">-t</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>Optional, takes <span style="color: #000000;">1</span> argument<span style="color: #7a0874; font-weight: bold;">&#41;</span>
      Long Form:        <span style="color: #660033;">--target</span>
Alternate Flags:        -target, -T, -to, <span style="color: #660033;">-To</span>
<span style="color: #660033;">----------------</span>
    Description:        Width max
           Flag:        <span style="color: #660033;">-pw</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>Optional, takes <span style="color: #000000;">1</span> argument<span style="color: #7a0874; font-weight: bold;">&#41;</span>
      Long Form:        --photo_width
Alternate Flags:        <span style="color: #660033;">-width</span>
<span style="color: #660033;">----------------</span>
    Description:        Height max
           Flag:        <span style="color: #660033;">-ph</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>Optional, takes <span style="color: #000000;">1</span> argument<span style="color: #7a0874; font-weight: bold;">&#41;</span>
      Long Form:        --photo_height
Alternate Flags:        <span style="color: #660033;">-height</span>
<span style="color: #660033;">----------------</span>
    Description:        Filter <span style="color: #7a0874; font-weight: bold;">type</span>: ex. jpg,JPG , default =<span style="color: #000000; font-weight: bold;">&gt;</span> jpg,JPG
           Flag:        <span style="color: #660033;">-pt</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>Optional, takes <span style="color: #000000;">1</span> argument<span style="color: #7a0874; font-weight: bold;">&#41;</span>
      Long Form:        --photo_type
Alternate Flags:        <span style="color: #660033;">-type</span>
<span style="color: #660033;">----------------</span>
    Description:        Help
           Flag:        <span style="color: #660033;">-h</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>Optional, takes <span style="color: #000000;">0</span> arguments<span style="color: #7a0874; font-weight: bold;">&#41;</span>
      Long Form:        <span style="color: #660033;">--help</span>
Alternate Flags:        -help, -?, -?
<span style="color: #660033;">----------------</span>
    Description:        Extended Help
           Flag:        <span style="color: #660033;">-superhelp</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>Optional, takes <span style="color: #000000;">0</span> arguments<span style="color: #7a0874; font-weight: bold;">&#41;</span>
      Long Form:        <span style="color: #660033;">--superhelp</span></pre></div></div>

<p>Tutti i miei script li trovate qui:</p>
<p>http://www.waydotnet.com/blog/scripts/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.waydotnet.com/blog/2010/02/photo-resize-from-console-d/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[SOLVED] log4r 1.1.4 &amp; ruby 1.9.1 =&gt;  GDC.rb and NDC.rb syntax error, unexpected &#8216;:&#8217;, expecting keyword_then or &#8216;;&#8217; or &#8216;\n&#8217;</title>
		<link>http://www.waydotnet.com/blog/2010/01/log4r-1-1-4-or-n/</link>
		<comments>http://www.waydotnet.com/blog/2010/01/log4r-1-1-4-or-n/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 19:51:39 +0000</pubDate>
		<dc:creator>WaYdotNET</dc:creator>
				<category><![CDATA[Script]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[log4r]]></category>
		<category><![CDATA[mingw32]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby 1.9.1]]></category>

		<guid isPermaLink="false">http://www.waydotnet.com/blog/?p=83</guid>
		<description><![CDATA[EDIT: SOLVED , vedere commento log4r 1.1.4 &#038; ruby 1.9.1 => GDC.rb and NDC.rb syntax error, unexpected &#8216;:&#8217;, expecting keyword_then or &#8216;;&#8217; or &#8216;\n&#8217; GDC.rb 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 --- [...]]]></description>
			<content:encoded><![CDATA[<p><strong>EDIT: SOLVED  , vedere commento <img src='http://www.waydotnet.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /><br />
</strong><br />
log4r 1.1.4 &#038; ruby 1.9.1 => GDC.rb and NDC.rb syntax error, unexpected &#8216;:&#8217;, expecting keyword_then or &#8216;;&#8217; or &#8216;\n&#8217;</p>
<p><strong>GDC.rb</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
</pre></td><td class="code"><pre class="diff" style="font-family:monospace;">--- GDC.rb	Thu Jan <span style="">28</span> <span style="">17</span>:03:<span style="">12</span> <span style="">2010</span>
&nbsp;
<span style="color: #888822;">+++ GDC.rb.new	Thu Jan <span style="">28</span> <span style="">16</span>:<span style="">50</span>:<span style="">37</span> 2010</span>
&nbsp;
<span style="color: #440088;">@@ -<span style="">13</span>,<span style="">10</span> +<span style="">13</span>,<span style="">10</span> @@</span>
&nbsp;
     private_class_method :new
&nbsp;
&nbsp;
&nbsp;
     def self.check_thread_instance<span style="">&#40;</span><span style="">&#41;</span>
&nbsp;
<span style="color: #991111;">-      if <span style="">&#40;</span> Thread.main != Thread.current <span style="">&#41;</span>:</span>
&nbsp;
<span style="color: #00b000;">+      if <span style="">&#40;</span> Thread.main != Thread.current <span style="">&#41;</span></span>
&nbsp;
 	raise &quot;Can only initialize Global Diagnostic Context from Thread.main&quot; 
&nbsp;
       else
&nbsp;
<span style="color: #991111;">-	if <span style="">&#40;</span> Thread.main<span style="">&#91;</span>GDCNAME<span style="">&#93;</span> == nil <span style="">&#41;</span>:</span>
&nbsp;
<span style="color: #00b000;">+	if <span style="">&#40;</span> Thread.main<span style="">&#91;</span>GDCNAME<span style="">&#93;</span> == nil <span style="">&#41;</span></span>
&nbsp;
 	  Thread.main<span style="">&#91;</span>GDCNAME<span style="">&#93;</span> = $<span style="">0</span>
&nbsp;
 	end
&nbsp;
       end</pre></td></tr></table></div>

<p>line 19<br />
repalce<br />
if ( Thread.main[GDCNAME] == nil ):<br />
with<br />
if ( Thread.main[GDCNAME] == nil )</p>
<p><strong>NDC.rb</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
</pre></td><td class="code"><pre class="diff" style="font-family:monospace;">--- NDC.rb	Thu Jan <span style="">28</span> <span style="">17</span>:03:09 <span style="">2010</span>
&nbsp;
<span style="color: #888822;">+++ NDC.rb.new	Thu Jan <span style="">28</span> <span style="">16</span>:<span style="">51</span>:<span style="">35</span> 2010</span>
&nbsp;
<span style="color: #440088;">@@ -<span style="">15</span>,<span style="">7</span> +<span style="">15</span>,<span style="">7</span> @@</span>
&nbsp;
     private_class_method :new
&nbsp;
&nbsp;
&nbsp;
     def self.check_thread_instance<span style="">&#40;</span><span style="">&#41;</span>
&nbsp;
<span style="color: #991111;">-      if <span style="">&#40;</span> Thread.current<span style="">&#91;</span>NDCNAME<span style="">&#93;</span> == nil <span style="">&#41;</span>:</span>
&nbsp;
<span style="color: #00b000;">+      if <span style="">&#40;</span> Thread.current<span style="">&#91;</span>NDCNAME<span style="">&#93;</span> == nil <span style="">&#41;</span></span>
&nbsp;
 	Thread.current<span style="">&#91;</span>NDCNAME<span style="">&#93;</span> = Array.new
&nbsp;
 	Thread.current<span style="">&#91;</span>NDCNAMEMAXDEPTH<span style="">&#93;</span> = NDCDEFAULTMAXDEPTH
&nbsp;
       end
&nbsp;
<span style="color: #440088;">@@ -<span style="">65</span>,<span style="">7</span> +<span style="">65</span>,<span style="">7</span> @@</span>
&nbsp;
&nbsp;
&nbsp;
     def self.push<span style="">&#40;</span> value <span style="">&#41;</span>
&nbsp;
       self.check_thread_instance<span style="">&#40;</span><span style="">&#41;</span>
&nbsp;
<span style="color: #991111;">-      if <span style="">&#40;</span> Thread.current<span style="">&#91;</span>NDCNAME<span style="">&#93;</span>.length &lt; Thread.current<span style="">&#91;</span>NDCNAMEMAXDEPTH<span style="">&#93;</span> <span style="">&#41;</span>:		</span>
&nbsp;
<span style="color: #00b000;">+      if <span style="">&#40;</span> Thread.current<span style="">&#91;</span>NDCNAME<span style="">&#93;</span>.length &lt; Thread.current<span style="">&#91;</span>NDCNAMEMAXDEPTH<span style="">&#93;</span> <span style="">&#41;</span></span>
&nbsp;
 	Thread.current<span style="">&#91;</span>NDCNAME<span style="">&#93;</span>.push<span style="">&#40;</span> value <span style="">&#41;</span>
&nbsp;
       end
&nbsp;
     end</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.waydotnet.com/blog/2010/01/log4r-1-1-4-or-n/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>[SOLVED] ruby 1.9.1 mingw32 wxruby =&gt; undefined reference to &#8216;wxGraphicsRenderer::CreateBitmap&#8217;</title>
		<link>http://www.waydotnet.com/blog/2010/01/solved-ruby-1-9-1-mingw32-wxruby-undefined-reference-to-wxgraphicsrenderercreatebitmap/</link>
		<comments>http://www.waydotnet.com/blog/2010/01/solved-ruby-1-9-1-mingw32-wxruby-undefined-reference-to-wxgraphicsrenderercreatebitmap/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 19:26:32 +0000</pubDate>
		<dc:creator>WaYdotNET</dc:creator>
				<category><![CDATA[Script]]></category>
		<category><![CDATA[mingw32]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[wxruby]]></category>

		<guid isPermaLink="false">http://www.waydotnet.com/blog/?p=80</guid>
		<description><![CDATA[Hi to all, i&#8217;ve compiled wxWidgets with this options: 1 2 3 4 5 6 7 ./configure --enable-optimise --enable-stl --enable-unicode --disable-threads --enable-static --with-opengl --disable-shared --enable-monolithic --disable-debug --with-libjpeg=builtin --with-libpng=builtin --with-zlib=builtin --enable-graphics_ctx --enable-mediactrl --enable-unicode --with-libtiff=builtin --with-expat=builtin --enable-gui -enable-xrc --enable-mdi --enable-gif --enable-pcx --enable-iff --enable-png --enable-xpm and also compiled StyledTextCtrl . My system is : Windows xp sp3 ruby [...]]]></description>
			<content:encoded><![CDATA[<p>Hi to all,<br />
i&#8217;ve compiled wxWidgets with this options:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--enable-optimise</span> <span style="color: #660033;">--enable-stl</span> <span style="color: #660033;">--enable-unicode</span>
<span style="color: #660033;">--disable-threads</span> <span style="color: #660033;">--enable-static</span>  <span style="color: #660033;">--with-opengl</span> <span style="color: #660033;">--disable-shared</span>
<span style="color: #660033;">--enable-monolithic</span> <span style="color: #660033;">--disable-debug</span> <span style="color: #660033;">--with-libjpeg</span>=<span style="color: #7a0874; font-weight: bold;">builtin</span>
<span style="color: #660033;">--with-libpng</span>=<span style="color: #7a0874; font-weight: bold;">builtin</span>  <span style="color: #660033;">--with-zlib</span>=<span style="color: #7a0874; font-weight: bold;">builtin</span> --enable-graphics_ctx
<span style="color: #660033;">--enable-mediactrl</span> <span style="color: #660033;">--enable-unicode</span> <span style="color: #660033;">--with-libtiff</span>=<span style="color: #7a0874; font-weight: bold;">builtin</span>
<span style="color: #660033;">--with-expat</span>=<span style="color: #7a0874; font-weight: bold;">builtin</span> <span style="color: #660033;">--enable-gui</span> <span style="color: #660033;">-enable-xrc</span> <span style="color: #660033;">--enable-mdi</span> <span style="color: #660033;">--enable-gif</span>
<span style="color: #660033;">--enable-pcx</span> <span style="color: #660033;">--enable-iff</span> <span style="color: #660033;">--enable-png</span> <span style="color: #660033;">--enable-xpm</span></pre></td></tr></table></div>

<p>and also compiled StyledTextCtrl .</p>
<p>My system is :<br />
Windows xp sp3<br />
ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32]<br />
gcc.exe 3.4.5<br />
swig.exe 1.3.38<br />
rake 0.8.7</p>
<p>when compiled wxruby (from svn), i&#8217;ve recived this error:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">c:\msys\MinGW\bin\..\lib\<span style="color: #c20cb9; font-weight: bold;">gcc</span>\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe:
warning: auto-importing has been activated without <span style="color: #660033;">--enable-auto-import</span> specified on the <span style="color: #7a0874; font-weight: bold;">command</span> line.
This should work unless it involves constant data structures referencing symbols from auto-imported DLLs.
C:\msys\<span style="color: #000000;">1.0</span>\src\wxWidgets-2.8.10<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libwx_mswu-2.8.a<span style="color: #7a0874; font-weight: bold;">&#40;</span>monolib_graphcmn.o<span style="color: #7a0874; font-weight: bold;">&#41;</span>:graphcmn.cpp:<span style="color: #7a0874; font-weight: bold;">&#40;</span>.text+0x3374<span style="color: #7a0874; font-weight: bold;">&#41;</span>:
undefined reference to <span style="color: #000000; font-weight: bold;">`</span>wxGraphicsRenderer::CreateBitmap<span style="color: #7a0874; font-weight: bold;">&#40;</span>wxBitmapconst<span style="color: #000000; font-weight: bold;">&amp;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #ff0000;">'
collect2: ld returned 1 exit status
rake aborted!
Command failed with status (1): [g++ -shared -L.obj/AboutDialogInfo.o o...]</span></pre></td></tr></table></div>

<p><strong>[SOLVED]</strong></p>
<p>IF i compile <strong>wxWidgests  2.8.10 </strong>i&#8217;ve this error:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">C:\msys\<span style="color: #000000;">1.0</span>\src\wxWidgets-2.8.10<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libwx_mswu-2.8.a<span style="color: #7a0874; font-weight: bold;">&#40;</span>monolib_graphcmn.o<span style="color: #7a0874; font-weight: bold;">&#41;</span>:graphcmn.cpp:<span style="color: #7a0874; font-weight: bold;">&#40;</span>.text+0x3374<span style="color: #7a0874; font-weight: bold;">&#41;</span>: 
undefined reference to <span style="color: #000000; font-weight: bold;">`</span>wxGraphicsRenderer::CreateBitmap<span style="color: #7a0874; font-weight: bold;">&#40;</span>wxBitmap 
const<span style="color: #000000; font-weight: bold;">&amp;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #ff0000;">'</span></pre></td></tr></table></div>

<p><strong>If i compile with wxWidgets 2.8.9 WORK !!!</strong></p>
<p>this is the gem :<br />
svn version: 2107<br />
<a rel="nofollow" href="../../ruby/wxruby-ruby19-2.0.1.svn-x86-mingw32.gem">http://www.waydotnet.com/ruby/wxruby-ruby19-2.0.1.svn-x86-mingw32.gem</a></p>
<p>Only problem when install without &#8211;no-rdoc</p>
<p> <img src='http://www.waydotnet.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>reference:<br />
<a href="http://www.ruby-forum.com/topic/202491">http://www.ruby-forum.com/topic/202491</a></p>
<p>64bit:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--enable-optimise</span> <span style="color: #660033;">--enable-stl</span> <span style="color: #660033;">--enable-unicode</span> <span style="color: #660033;">--enable-threads</span> <span style="color: #660033;">--enable-static</span>  <span style="color: #660033;">--with-opengl</span> <span style="color: #660033;">--disable-shared</span> <span style="color: #660033;">--enable-monolithic</span> <span style="color: #660033;">--disable-debug</span> <span style="color: #660033;">--with-libjpeg</span>=<span style="color: #7a0874; font-weight: bold;">builtin</span> <span style="color: #660033;">--with-libpng</span>=<span style="color: #7a0874; font-weight: bold;">builtin</span>  <span style="color: #660033;">--with-zlib</span>=<span style="color: #7a0874; font-weight: bold;">builtin</span> --enable-graphics_ctx <span style="color: #660033;">--enable-mediactrl</span> <span style="color: #660033;">--enable-unicode</span> <span style="color: #660033;">--with-libtiff</span>=<span style="color: #7a0874; font-weight: bold;">builtin</span> <span style="color: #660033;">--with-expat</span>=<span style="color: #7a0874; font-weight: bold;">builtin</span> <span style="color: #660033;">--enable-gui</span> <span style="color: #660033;">-enable-xrc</span> <span style="color: #660033;">--enable-mdi</span> <span style="color: #660033;">--enable-gif</span> <span style="color: #660033;">--enable-pcx</span> <span style="color: #660033;">--enable-iff</span> <span style="color: #660033;">--enable-png</span> <span style="color: #660033;">--enable-xpm</span> <span style="color: #660033;">--with-odbc</span>=sys <span style="color: #007800;">CFLAGS</span>=-fPIC <span style="color: #007800;">CXXFLAGS</span>=-fPIC <span style="color: #007800;">LDFLAGS</span>=-fPIC</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.waydotnet.com/blog/2010/01/solved-ruby-1-9-1-mingw32-wxruby-undefined-reference-to-wxgraphicsrenderercreatebitmap/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Prova inserimento codice</title>
		<link>http://www.waydotnet.com/blog/2010/01/prova-inserimento-codice/</link>
		<comments>http://www.waydotnet.com/blog/2010/01/prova-inserimento-codice/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 10:22:01 +0000</pubDate>
		<dc:creator>WaYdotNET</dc:creator>
				<category><![CDATA[Script]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.waydotnet.com/blog/?p=64</guid>
		<description><![CDATA[Questa è una piaccola prova x inserire del codice 1 2 3 4 5 6 7 8 9 module Carlo class Bertini def self.chisono? puts &#34;WaYdotNET&#34; end end end &#160; Carlo::Bertini.chisono? =&#62; WaYdotNET]]></description>
			<content:encoded><![CDATA[<p>Questa è una piaccola prova x inserire del codice</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#9966CC; font-weight:bold;">module</span> Carlo
  <span style="color:#9966CC; font-weight:bold;">class</span> Bertini
    <span style="color:#9966CC; font-weight:bold;">def</span> <span style="color:#0000FF; font-weight:bold;">self</span>.<span style="color:#9900CC;">chisono</span>?
      <span style="color:#CC0066; font-weight:bold;">puts</span> <span style="color:#996600;">&quot;WaYdotNET&quot;</span>
    <span style="color:#9966CC; font-weight:bold;">end</span>
  <span style="color:#9966CC; font-weight:bold;">end</span>
<span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
<span style="color:#6666ff; font-weight:bold;">Carlo::Bertini</span>.<span style="color:#9900CC;">chisono</span>? <span style="color:#006600; font-weight:bold;">=&gt;</span> WaYdotNET</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.waydotnet.com/blog/2010/01/prova-inserimento-codice/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

