<?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</title>
	<atom:link href="http://www.waydotnet.com/blog/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>Sat, 30 Mar 2013 18:59:03 +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>Use Padrino and sprockets with sprockets-helpers</title>
		<link>http://www.waydotnet.com/blog/2013/03/use-padrino-and-sprockets-with-sprockets-helpers/</link>
		<comments>http://www.waydotnet.com/blog/2013/03/use-padrino-and-sprockets-with-sprockets-helpers/#comments</comments>
		<pubDate>Sat, 30 Mar 2013 18:54:09 +0000</pubDate>
		<dc:creator>WaYdotNET</dc:creator>
				<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.waydotnet.com/blog/?p=140</guid>
		<description><![CDATA[Thanks to @arthur_chiu and his post on how to integrate sprockets in Padrino with sprockets-helpers, i&#8217;ve create my version :D:D:D 1) Create padrino-sprockets in config/sprockets.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 30<a href="http://www.waydotnet.com/blog/2013/03/use-padrino-and-sprockets-with-sprockets-helpers/"> <br /><br /> (More)…</a>]]></description>
			<content:encoded><![CDATA[<p>Thanks to <a href="https://twitter.com/arthur_chiu">@arthur_chiu</a>  and <a href="http://arthurchiu.com/posts/20130328-sprockets_bower_padrino">his post</a> on how to integrate <a href="https://github.com/sstephenson/sprockets">sprockets</a> in <a href="http://www.padrinorb.com/">Padrino</a> with <a href="https://github.com/petebrowne/sprockets-helpers">sprockets-helpers</a>, i&#8217;ve create my version <img src='http://www.waydotnet.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> :D:D:D</p>
<p>1) Create padrino-sprockets  in <strong>config/sprockets.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
</pre></td><td class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#9966CC; font-weight:bold;">module</span> <span style="color:#6666ff; font-weight:bold;">Padrino::Sprockets</span>
  <span style="color:#9966CC; font-weight:bold;">def</span> <span style="color:#0000FF; font-weight:bold;">self</span>.<span style="color:#9900CC;">registered</span><span style="color:#006600; font-weight:bold;">&#40;</span>base<span style="color:#006600; font-weight:bold;">&#41;</span>
    base.<span style="color:#9900CC;">set</span> <span style="color:#ff3333; font-weight:bold;">:sprockets</span>, ::<span style="color:#6666ff; font-weight:bold;">Sprockets::Environment</span>.<span style="color:#9900CC;">new</span><span style="color:#006600; font-weight:bold;">&#40;</span>Padrino.<span style="color:#9900CC;">root</span><span style="color:#006600; font-weight:bold;">&#41;</span>
&nbsp;
    <span style="color:#008000; font-style:italic;"># Add folder</span>
    base.<span style="color:#9900CC;">sprockets</span>.<span style="color:#9900CC;">append_path</span> <span style="color:#996600;">'assets/javascripts'</span>
    base.<span style="color:#9900CC;">sprockets</span>.<span style="color:#9900CC;">append_path</span> <span style="color:#996600;">'assets/stylesheets'</span>
    base.<span style="color:#9900CC;">sprockets</span>.<span style="color:#9900CC;">append_path</span> <span style="color:#996600;">'assets/images'</span>
    base.<span style="color:#9900CC;">set</span> <span style="color:#ff3333; font-weight:bold;">:digest_assets</span>, <span style="color:#0000FF; font-weight:bold;">true</span>
&nbsp;
    <span style="color:#008000; font-style:italic;"># compress file</span>
    <span style="color:#9966CC; font-weight:bold;">if</span> PADRINO_ENV == <span style="color:#996600;">'development'</span>
      base.<span style="color:#9900CC;">sprockets</span>.<span style="color:#9900CC;">js_compressor</span> = Uglifier.<span style="color:#9900CC;">new</span><span style="color:#006600; font-weight:bold;">&#40;</span>mangle: <span style="color:#0000FF; font-weight:bold;">true</span><span style="color:#006600; font-weight:bold;">&#41;</span>
      base.<span style="color:#9900CC;">sprockets</span>.<span style="color:#9900CC;">css_compressor</span> = <span style="color:#6666ff; font-weight:bold;">YUI::CssCompressor</span>.<span style="color:#9900CC;">new</span>
    <span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
    <span style="color:#008000; font-style:italic;"># sprockets-helpers</span>
    base.<span style="color:#9900CC;">helpers</span> <span style="color:#6666ff; font-weight:bold;">Sprockets::Helpers</span>
    <span style="color:#008000; font-style:italic;"># We can configure `sprockets-helpers` to find the correct assets for us.</span>
    <span style="color:#6666ff; font-weight:bold;">Sprockets::Helpers</span>.<span style="color:#9900CC;">configure</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>config<span style="color:#006600; font-weight:bold;">|</span>
      manifest_path      = <span style="color:#CC00FF; font-weight:bold;">File</span>.<span style="color:#9900CC;">join</span><span style="color:#006600; font-weight:bold;">&#40;</span>Padrino.<span style="color:#9900CC;">root</span>,<span style="color:#996600;">'public'</span>,<span style="color:#996600;">'assets'</span>,<span style="color:#996600;">'manifest.json'</span><span style="color:#006600; font-weight:bold;">&#41;</span>
      config.<span style="color:#9900CC;">environment</span> = base.<span style="color:#9900CC;">sprockets</span>
      config.<span style="color:#9900CC;">prefix</span>      = <span style="color:#996600;">'/assets'</span>
      config.<span style="color:#9900CC;">manifest</span>    = <span style="color:#6666ff; font-weight:bold;">Sprockets::Manifest</span>.<span style="color:#9900CC;">new</span><span style="color:#006600; font-weight:bold;">&#40;</span>base.<span style="color:#9900CC;">sprockets</span>, manifest_path<span style="color:#006600; font-weight:bold;">&#41;</span>
      config.<span style="color:#9900CC;">digest</span>      = <span style="color:#0000FF; font-weight:bold;">true</span>
      config.<span style="color:#9900CC;">public_path</span> = base.<span style="color:#9900CC;">public_folder</span>
    <span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
    <span style="color:#008000; font-style:italic;"># call sprockets :D</span>
    <span style="color:#9966CC; font-weight:bold;">if</span> PADRINO_ENV == <span style="color:#996600;">'development'</span>
      base.<span style="color:#9900CC;">get</span> <span style="color:#996600;">'/assets/*splat'</span> <span style="color:#9966CC; font-weight:bold;">do</span>
        env<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#996600;">'PATH_INFO'</span><span style="color:#006600; font-weight:bold;">&#93;</span>.<span style="color:#CC0066; font-weight:bold;">gsub!</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">%</span>r<span style="color:#006600; font-weight:bold;">&#123;</span>\A<span style="color:#006600; font-weight:bold;">/</span>?assets<span style="color:#006600; font-weight:bold;">&#125;</span>, <span style="color:#996600;">''</span><span style="color:#006600; font-weight:bold;">&#41;</span>
        settings.<span style="color:#9900CC;">sprockets</span>.<span style="color:#9900CC;">call</span><span style="color:#006600; font-weight:bold;">&#40;</span>env<span style="color:#006600; font-weight:bold;">&#41;</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>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></td></tr></table></div>

<p>In this file you need add all your asset&#8217;s folder..</p>
<p>2) Load this file at startup application:<br />
<strong>config/boot.rb</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="ruby" style="font-family:monospace;"><span style="color:#008000; font-style:italic;"># after this line</span>
Bundler.<span style="color:#CC0066; font-weight:bold;">require</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:default</span>, PADRINO_ENV<span style="color:#006600; font-weight:bold;">&#41;</span>
&nbsp;
<span style="color:#008000; font-style:italic;"># add this</span>
<span style="color:#CC0066; font-weight:bold;">require</span> Padrino.<span style="color:#9900CC;">root</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">'config/sprockets'</span><span style="color:#006600; font-weight:bold;">&#41;</span></pre></td></tr></table></div>

<p>3) register Padrino::Sprockets in your application</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="ruby" style="font-family:monospace;"><span style="color:#9966CC; font-weight:bold;">Module</span> Foo
  <span style="color:#9966CC; font-weight:bold;">class</span> App <span style="color:#006600; font-weight:bold;">&lt;</span> <span style="color:#6666ff; font-weight:bold;">Padrino::Application</span>
   register <span style="color:#6666ff; font-weight:bold;">Padrino::Sprockets</span>
&nbsp;
  <span style="color:#9966CC; font-weight:bold;">end</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></td></tr></table></div>

<p>4) Use js,css sprockets version in you layout, es:</p>
<p><strong>layout.slim</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="ruby" style="font-family:monospace;">link href= stylesheet_path<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">'app'</span><span style="color:#006600; font-weight:bold;">&#41;</span> media=<span style="color:#996600;">&quot;screen&quot;</span> type=<span style="color:#996600;">&quot;text/css&quot;</span> rel=<span style="color:#996600;">&quot;stylesheet&quot;</span></pre></td></tr></table></div>

<p>instead</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="ruby" style="font-family:monospace;">= stylesheet_link_tag <span style="color:#ff3333; font-weight:bold;">:app</span></pre></td></tr></table></div>

<p>5)  Use Rakefile to create asstes to pre-compilation <img src='http://www.waydotnet.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> :D</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
</pre></td><td class="code"><pre class="ruby" style="font-family:monospace;">PADRINO_ENV  = ENV<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#996600;">'PADRINO_ENV'</span><span style="color:#006600; font-weight:bold;">&#93;</span> <span style="color:#006600; font-weight:bold;">||</span>= ENV<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#996600;">'RACK_ENV'</span><span style="color:#006600; font-weight:bold;">&#93;</span> <span style="color:#006600; font-weight:bold;">||</span>= <span style="color:#996600;">'development'</span>  <span style="color:#9966CC; font-weight:bold;">unless</span> <span style="color:#9966CC; font-weight:bold;">defined</span>?<span style="color:#006600; font-weight:bold;">&#40;</span>PADRINO_ENV<span style="color:#006600; font-weight:bold;">&#41;</span>
&nbsp;
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'bundler/setup'</span>
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'padrino-core/cli/rake'</span>
&nbsp;
&nbsp;
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'sprockets/../rake/sprocketstask'</span>
&nbsp;
 Bundler.<span style="color:#CC0066; font-weight:bold;">require</span><span style="color:#006600; font-weight:bold;">&#40;</span>PADRINO_ENV<span style="color:#006600; font-weight:bold;">&#41;</span>
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#CC00FF; font-weight:bold;">File</span>.<span style="color:#9900CC;">expand_path</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;../config/boot.rb&quot;</span>, <span style="color:#0000FF; font-weight:bold;">__FILE__</span><span style="color:#006600; font-weight:bold;">&#41;</span>
&nbsp;
PadrinoTasks.<span style="color:#9900CC;">use</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:database</span><span style="color:#006600; font-weight:bold;">&#41;</span>
PadrinoTasks.<span style="color:#9900CC;">use</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:minirecord</span><span style="color:#006600; font-weight:bold;">&#41;</span>
PadrinoTasks.<span style="color:#9900CC;">init</span>
&nbsp;
<span style="color:#008000; font-style:italic;"># Use fake application </span>
<span style="color:#9966CC; font-weight:bold;">module</span> FakeSprock
  <span style="color:#9966CC; font-weight:bold;">class</span> App <span style="color:#006600; font-weight:bold;">&lt;</span> <span style="color:#6666ff; font-weight:bold;">Padrino::Application</span>
    register <span style="color:#6666ff; font-weight:bold;">Padrino::Sprockets</span>
  <span style="color:#9966CC; font-weight:bold;">end</span>
<span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
SPROCKETS = <span style="color:#6666ff; font-weight:bold;">FakeSprock::App</span>.<span style="color:#9900CC;">sprockets</span>
&nbsp;
<span style="color:#008000; font-style:italic;"># or your real app name</span>
<span style="color:#008000; font-style:italic;"># SPROCKETS = RealAppName::App.sprockets</span>
&nbsp;
<span style="color:#6666ff; font-weight:bold;">Rake::SprocketsTask</span>.<span style="color:#9900CC;">new</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>t<span style="color:#006600; font-weight:bold;">|</span>
  manifest_path = <span style="color:#CC00FF; font-weight:bold;">File</span>.<span style="color:#9900CC;">join</span><span style="color:#006600; font-weight:bold;">&#40;</span>Padrino.<span style="color:#9900CC;">root</span>,<span style="color:#996600;">'public'</span>,<span style="color:#996600;">'assets'</span><span style="color:#006600; font-weight:bold;">&#41;</span>
  t.<span style="color:#9900CC;">environment</span> = SPROCKETS
  t.<span style="color:#9900CC;">output</span>      = <span style="color:#CC00FF; font-weight:bold;">File</span>.<span style="color:#9900CC;">join</span><span style="color:#006600; font-weight:bold;">&#40;</span>Padrino.<span style="color:#9900CC;">root</span>,<span style="color:#996600;">'public'</span>,<span style="color:#996600;">'assets'</span><span style="color:#006600; font-weight:bold;">&#41;</span>
  t.<span style="color:#9900CC;">manifest</span>    = <span style="color:#6666ff; font-weight:bold;">Sprockets::Manifest</span>.<span style="color:#9900CC;">new</span><span style="color:#006600; font-weight:bold;">&#40;</span>SPROCKETS, manifest_path<span style="color:#006600; font-weight:bold;">&#41;</span>
  t.<span style="color:#9900CC;">assets</span>      = <span style="color:#006600; font-weight:bold;">%</span>w<span style="color:#006600; font-weight:bold;">&#91;</span>app.<span style="color:#9900CC;">js</span> app.<span style="color:#9900CC;">css</span> <span style="color:#006600; font-weight:bold;">*</span>.<span style="color:#9900CC;">png</span> <span style="color:#006600; font-weight:bold;">*</span>.<span style="color:#9900CC;">gif</span> <span style="color:#006600; font-weight:bold;">*</span>.<span style="color:#9900CC;">jpg</span><span style="color:#006600; font-weight:bold;">&#93;</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></td></tr></table></div>

<p>and call it with</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="ruby" style="font-family:monospace;">rake assets</pre></td></tr></table></div>

<p>To conitnue use stylesheet_link_tag and javascript_include_tag, need to close this <a href="https://github.com/padrino/padrino-framework/pull/1208">issue</a> </p>
<p>Thanks again at @padrino-core.<br />
Special tanks:<br />
<a href="http://daddye.it/">DAddYE</a><br />
<a href="http://arthurchiu.com/">@arthur_chiu</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.waydotnet.com/blog/2013/03/use-padrino-and-sprockets-with-sprockets-helpers/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Padrino 0.11.0 Released &#8211; Padrino Lives!</title>
		<link>http://www.waydotnet.com/blog/2013/03/padrino-0-11-0-released-padrino-lives/</link>
		<comments>http://www.waydotnet.com/blog/2013/03/padrino-0-11-0-released-padrino-lives/#comments</comments>
		<pubDate>Sat, 23 Mar 2013 12:24:58 +0000</pubDate>
		<dc:creator>WaYdotNET</dc:creator>
				<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.waydotnet.com/blog/?p=138</guid>
		<description><![CDATA[The Padrino team is very pleased to finally be able to announce the 0.11.0 release of the Padrino Framework! We have been working on this release for almost a year now and we have had dozens of contributors helping us stabilize Padrino. We know our release cycle got out whack and this version took too<a href="http://www.waydotnet.com/blog/2013/03/padrino-0-11-0-released-padrino-lives/"> <br /><br /> (More)…</a>]]></description>
			<content:encoded><![CDATA[<p>The Padrino team is very pleased to finally be able to announce the 0.11.0 release of the Padrino Framework! We have been working on this release for almost a year now and we have had dozens of contributors helping us stabilize Padrino. We know our release cycle got out whack and this version took too long to release. We all take accountability for that and will work to pick up release momentum and release patch and minor versions more often.</p>
<p>Since our 0.10.7 release, development on Padrino has been moving forward very actively and as such this is probably our biggest release in terms of code modified and issues resolved that we have had in years. We are very proud of this release which includes several major improvements:</p>
<p>1) Totally Redesigned Admin<br />
2) New brand identity on the way<br />
3) Upgraded Sinatra and http_router<br />
4) CSRF Form Protection<br />
5) ActiveSupport::SafeBuffer<br />
6) New Rakefile format<br />
7) Gemified Apps<br />
 <img src='http://www.waydotnet.com/blog/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> Performance Tools<br />
9) App Namespacing<br />
10) Project Modules<br />
11) Optimized Reloader</p>
<p><a href="http://www.padrinorb.com/blog/padrino-0-11-0-released-padrino-lives">http://www.padrinorb.com/blog/padrino-0-11-0-released-padrino-lives</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.waydotnet.com/blog/2013/03/padrino-0-11-0-released-padrino-lives/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Usage ImageSorcery with CarrierWave by gem</title>
		<link>http://www.waydotnet.com/blog/2012/08/usage-imagesorcery-with-carrierwave-by-gem/</link>
		<comments>http://www.waydotnet.com/blog/2012/08/usage-imagesorcery-with-carrierwave-by-gem/#comments</comments>
		<pubDate>Wed, 22 Aug 2012 16:17:04 +0000</pubDate>
		<dc:creator>WaYdotNET</dc:creator>
				<category><![CDATA[AiS]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.waydotnet.com/blog/?p=133</guid>
		<description><![CDATA[CarrierWave::ImageSorcery https://github.com/WaYdotNET/carrierwave-imagesorcery Additional processing to use ImageSorcery into CarrierWave. Installation Add this line to your application&#8217;s Gemfile: 1 gem 'carrierwave-imagesorcery' And then execute: 1 $ bundle Or install it yourself as: 1 $ gem install carrierwave-imagesorcery Usage To use those, you should include specified module (ImageSorcery) into your uploader and use processors: 1 2 3<a href="http://www.waydotnet.com/blog/2012/08/usage-imagesorcery-with-carrierwave-by-gem/"> <br /><br /> (More)…</a>]]></description>
			<content:encoded><![CDATA[<h1>CarrierWave::ImageSorcery</h1>
<p><a href="https://github.com/WaYdotNET/carrierwave-imagesorcery">https://github.com/WaYdotNET/carrierwave-imagesorcery</a></p>
<p>Additional processing to use <a href="https://github.com/EricR/image_sorcery">ImageSorcery</a> into <a href="https://github.com/jnicklas/carrierwave">CarrierWave</a>.</p>
<h2><a name="installation" href="https://github.com/WaYdotNET/carrierwave-imagesorcery#installation"></a>Installation</h2>
<p>Add this line to your application&#8217;s Gemfile:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="ruby" style="font-family:monospace;">gem <span style="color:#996600;">'carrierwave-imagesorcery'</span></pre></td></tr></table></div>

<p>And then execute:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="ruby" style="font-family:monospace;">$ bundle</pre></td></tr></table></div>

<p>Or install it yourself as:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="ruby" style="font-family:monospace;">$ gem install carrierwave<span style="color:#006600; font-weight:bold;">-</span>imagesorcery</pre></td></tr></table></div>

<h2><a name="usage" href="https://github.com/WaYdotNET/carrierwave-imagesorcery#usage"></a>Usage</h2>
<p>To use those, you should include specified module (ImageSorcery) into your uploader and use processors:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#9966CC; font-weight:bold;">class</span> AvatarUploader <span style="color:#006600; font-weight:bold;">&lt;</span> <span style="color:#6666ff; font-weight:bold;">CarrierWave::Uploader::Base</span>
  <span style="color:#9966CC; font-weight:bold;">include</span> <span style="color:#6666ff; font-weight:bold;">CarrierWave::ImageSorcery</span>
  .....
&nbsp;
<span style="color:#9966CC; font-weight:bold;">end</span></pre></td></tr></table></div>

<h2><a name="method-implemented" href="https://github.com/WaYdotNET/carrierwave-imagesorcery#method-implemented"></a>Method implemented</h2>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="ruby" style="font-family:monospace;">convert
dimensions
resize_to_limit
resize_to_fit
resize_to_fill
resize_and_pad</pre></td></tr></table></div>

<h2><a name="example" href="https://github.com/WaYdotNET/carrierwave-imagesorcery#example"></a>Example</h2>

<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;">class</span> Uploader <span style="color:#006600; font-weight:bold;">&lt;</span> <span style="color:#6666ff; font-weight:bold;">CarrierWave::Uploader::Base</span>
<span style="color:#008000; font-style:italic;">##</span>
<span style="color:#008000; font-style:italic;"># Image manipulator library:</span>
<span style="color:#9966CC; font-weight:bold;">include</span> <span style="color:#6666ff; font-weight:bold;">CarrierWave::ImageSorcery</span>
&nbsp;
process <span style="color:#ff3333; font-weight:bold;">:resize_and_pad</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#006666;">900</span>,<span style="color:#006666;">300</span>,<span style="color:#996600;">&quot;#ffeecc&quot;</span>, <span style="color:#996600;">'South'</span><span style="color:#006600; font-weight:bold;">&#93;</span>
process <span style="color:#ff3333; font-weight:bold;">:resize_to_fit</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#006666;">1024</span>, <span style="color:#006666;">768</span><span style="color:#006600; font-weight:bold;">&#93;</span>
&nbsp;
<span style="color:#9966CC; font-weight:bold;">end</span></pre></td></tr></table></div>

<h2><a name="example-custom-method" href="https://github.com/WaYdotNET/carrierwave-imagesorcery#example-custom-method"></a>Example custom method</h2>
<p>An example to implement custom method</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
</pre></td><td class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#9966CC; font-weight:bold;">class</span> Uploader <span style="color:#006600; font-weight:bold;">&lt;</span> <span style="color:#6666ff; font-weight:bold;">CarrierWave::Uploader::Base</span>
<span style="color:#9966CC; font-weight:bold;">include</span> <span style="color:#6666ff; font-weight:bold;">CarrierWave::ImageSorcery</span>
process <span style="color:#ff3333; font-weight:bold;">:watermark_text</span>
&nbsp;
<span style="color:#9966CC; font-weight:bold;">def</span> watermark_text<span style="color:#006600; font-weight:bold;">&#40;</span>text = <span style="color:#996600;">&quot;© #{Time.now.year} - Carlo Bertini [WaYdotNET]&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
  manipulate! <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>img<span style="color:#006600; font-weight:bold;">|</span>
    args  = <span style="color:#006600; font-weight:bold;">&#123;</span>
      font: <span style="color:#996600;">'Helvetica'</span>, fill: <span style="color:#996600;">'white'</span>, stroke: <span style="color:#996600;">'#00770080'</span>,
      gravity: <span style="color:#996600;">'South'</span>, pointsize: <span style="color:#006666;">20</span>, draw: <span style="color:#996600;">&quot; text 0,0 <span style="color:#000099;">\&quot;</span>#{text}<span style="color:#000099;">\&quot;</span> &quot;</span>
    <span style="color:#006600; font-weight:bold;">&#125;</span>
    img.<span style="color:#9900CC;">manipulate</span>! args
    img
  <span style="color:#9966CC; font-weight:bold;">end</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></td></tr></table></div>

<h2><a name="contributing" href="https://github.com/WaYdotNET/carrierwave-imagesorcery#contributing"></a>Contributing</h2>
<ol>
<li>Fork it</li>
<li>Create your feature branch (git checkout -b my-new-feature)</li>
<li>Commit your changes (git commit -am &#8216;Added some feature&#8217;)</li>
<li>Push to the branch (git push origin my-new-feature)</li>
<li>Create new Pull Request</li>
</ol>
<h2><a name="author" href="https://github.com/WaYdotNET/carrierwave-imagesorcery#author"></a>Author</h2>
<p><a href="http://coderwall.com/waydotnet"><img src="https://a248.e.akamai.net/camo.github.com/7aa7749ef7365b05d75f30741627c62f6664434a/687474703a2f2f6170692e636f64657277616c6c2e636f6d2f776179646f746e65742f656e646f727365636f756e742e706e67" alt="endorse" /></a></p>
<p>WaYdotNET, you can follow me on twitter <a href="http://twitter.com/WaYdotNET">@WaYdotNET</a> or take a look at my site <a href="http://www.waydotnet.com">waydotnet.com</a></p>
<h2><a name="copyright" href="https://github.com/WaYdotNET/carrierwave-imagesorcery#copyright"></a>Copyright</h2>
<p>Copyright (C) 2012 Carlo Bertini &#8211; <a href="http://twitter.com/WaYdotNET">@WaYdotNET</a></p>
<p>Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:</p>
<p>The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.</p>
<p>THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.waydotnet.com/blog/2012/08/usage-imagesorcery-with-carrierwave-by-gem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The library is a simple API in Ruby for Microsoft Translator V2</title>
		<link>http://www.waydotnet.com/blog/2012/03/the-library-is-a-simple-api-in-ruby-for-microsoft-translator-v2/</link>
		<comments>http://www.waydotnet.com/blog/2012/03/the-library-is-a-simple-api-in-ruby-for-microsoft-translator-v2/#comments</comments>
		<pubDate>Tue, 13 Mar 2012 12:20:11 +0000</pubDate>
		<dc:creator>WaYdotNET</dc:creator>
				<category><![CDATA[AiS]]></category>
		<category><![CDATA[OpenOttica]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[gems]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[ms_transalte]]></category>
		<category><![CDATA[rubygems]]></category>
		<category><![CDATA[traduttore]]></category>
		<category><![CDATA[translate]]></category>
		<category><![CDATA[wrapper]]></category>

		<guid isPermaLink="false">http://www.waydotnet.com/blog/?p=128</guid>
		<description><![CDATA[MsTranslate The library is a simple API in Ruby for Microsoft Translator V2 The Microsoft Translator services can be used in web or client applications to perform language translation operations. The services support users who are not familiar with the default language of a page or application, or those desiring to communicate with people of<a href="http://www.waydotnet.com/blog/2012/03/the-library-is-a-simple-api-in-ruby-for-microsoft-translator-v2/"> <br /><br /> (More)…</a>]]></description>
			<content:encoded><![CDATA[<h1>MsTranslate</h1>
<p>The library is a simple API in Ruby for Microsoft Translator V2</p>
<p>The Microsoft Translator services can be used in web or client applications to perform language translation operations. The services support users who are not familiar with the default language of a page or application, or those desiring to communicate with people of a different language group.</p>
<h2>Installation</h2>
<p>Add this line to your application&#8217;s Gemfile:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="ruby" style="font-family:monospace;">gem <span style="color:#996600;">'ms_translate'</span></pre></td></tr></table></div>

<p>And then execute:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="ruby" style="font-family:monospace;">$ bundle</pre></td></tr></table></div>

<p>Or install it yourself as:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="ruby" style="font-family:monospace;">$ gem install ms_translate</pre></td></tr></table></div>

<h2>Usage</h2>
<p>first step set your appId</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="ruby" style="font-family:monospace;">$ <span style="color:#6666ff; font-weight:bold;">MsTranslate::Api</span>.<span style="color:#9900CC;">appId</span> = <span style="color:#996600;">'MyRealAppId'</span></pre></td></tr></table></div>

<p>traNslate method:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="ruby" style="font-family:monospace;">$ <span style="color:#6666ff; font-weight:bold;">MsTranslate::Api</span>.<span style="color:#9900CC;">translate</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">'Hello World!)
$ =&gt; Ciao, Mondo!</span></pre></td></tr></table></div>

<h2>Method not implemented</h2>
<ol>
<li>Microsoft.Translator.AddTranslation Method</li>
<li>Microsoft.Translator.AddTranslationArray Method</li>
</ol>
<h2>Test</h2>
<p>You need to insert your appId into</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#008000; font-style:italic;"># File 'spec/lib/ms_translate/api_spec.rb'</span>
<span style="color:#0066ff; font-weight:bold;">@api_real</span> =  <span style="color:#996600;">'INSERT_YOUR_APPID'</span></pre></td></tr></table></div>

<h2>Contributing</h2>
<ol>
<li>Fork it</li>
<li>Create your feature branch (<code>git checkout -b my-new-feature</code>)</li>
<li>Commit your changes (<code>git commit -am 'Added some feature'</code>)</li>
<li>Push to the branch (<code>git push origin my-new-feature</code>)</li>
<li>Create new Pull Request</li>
</ol>
<h2>Author</h2>
<p><a href="http://coderwall.com/waydotnet"><img src="https://a248.e.akamai.net/assets.github.com/img/7aa7749ef7365b05d75f30741627c62f6664434a/687474703a2f2f6170692e636f64657277616c6c2e636f6d2f776179646f746e65742f656e646f727365636f756e742e706e67" alt="endorse" /></a></p>
<p>WaYdotNET, you can follow me on twitter <a href="http://twitter.com/WaYdotNET">@WaYdotNET</a> or take a look at my site <a href="../../">waydotnet.com</a></p>
<h2>Copyright</h2>
<p>Copyright (C) 2012 Carlo Bertini &#8211; <a href="http://twitter.com/WaYdotNET">@WaYdotNET</a></p>
<p>Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:</p>
<p>The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.</p>
<p>THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.waydotnet.com/blog/2012/03/the-library-is-a-simple-api-in-ruby-for-microsoft-translator-v2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<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<a href="http://www.waydotnet.com/blog/2012/02/padrino-admin-twitter-bootstrap-v2-0-is-ready/"> <br /><br /> (More)…</a>]]></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>1</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<a href="http://www.waydotnet.com/blog/2012/01/padrino-admin-another-new-layout-based-on-twitter-bootstrap-v2-0-wip/"> <br /><br /> (More)…</a>]]></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>3</slash:comments>
		</item>
		<item>
		<title>Padrino Admin new layout</title>
		<link>http://www.waydotnet.com/blog/2011/10/padrino-admin-new-layout/</link>
		<comments>http://www.waydotnet.com/blog/2011/10/padrino-admin-new-layout/#comments</comments>
		<pubDate>Mon, 24 Oct 2011 10:04:13 +0000</pubDate>
		<dc:creator>WaYdotNET</dc:creator>
				<category><![CDATA[ruby]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[ruby padrino padrino-admin github]]></category>

		<guid isPermaLink="false">http://www.waydotnet.com/blog/?p=119</guid>
		<description><![CDATA[Hi to all, i&#8217;ve publish my version of padrino admin&#8230; based on Twitter Bootstrap Login page: &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; Welcome page &#160; List user: &#160; clone my repository and enjoy 1 &#160; 1 https://github.com/WaYdotNET/padrino-framework comment please &#160; &#160; &#160; &#160;]]></description>
			<content:encoded><![CDATA[<p>Hi to all, i&#8217;ve publish my version of padrino admin&#8230; based on Twitter Bootstrap</p>
<p><strong>Login page</strong>:<br />
<a href="http://www.waydotnet.com/blog/wp-content/uploads/2011/10/login.jpg"><img class="size-medium wp-image-120 alignleft" title="Padrino Login page" src="http://www.waydotnet.com/blog/wp-content/uploads/2011/10/login-300x210.jpg" alt="" width="300" height="210" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>Welcome page</strong></p>
<p><a href="http://www.waydotnet.com/blog/wp-content/uploads/2011/10/dashboard.jpg"><img class="alignnone size-medium wp-image-121" title="Welcome page" src="http://www.waydotnet.com/blog/wp-content/uploads/2011/10/dashboard-300x145.jpg" alt="" width="300" height="145" /></a></p>
<p>&nbsp;</p>
<p><strong>List user</strong>:</p>
<p><a href="http://www.waydotnet.com/blog/wp-content/uploads/2011/10/list_user.jpg"><img class="alignnone size-medium wp-image-122" title="list_user" src="http://www.waydotnet.com/blog/wp-content/uploads/2011/10/list_user-300x111.jpg" alt="" width="300" height="111" /></a></p>
<p>&nbsp;</p>
<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"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">&nbsp;</pre></td></tr></table></div>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td 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></td></tr></table></div>

<p>comment please <img src='http://www.waydotnet.com/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.waydotnet.com/blog/2011/10/padrino-admin-new-layout/feed/</wfw:commentRss>
		<slash:comments>3</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<a href="http://www.waydotnet.com/blog/2011/06/coffescript-1-1-1-on-windows-simple-method/"> <br /><br /> (More)…</a>]]></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<a href="http://www.waydotnet.com/blog/2011/05/lazy-agnostic-application-generators-padrino-lazy/"> <br /><br /> (More)…</a>]]></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>automatic-screenshot-insertion-in-org</title>
		<link>http://www.waydotnet.com/blog/2011/05/automatic-screenshot-insertion-in-org/</link>
		<comments>http://www.waydotnet.com/blog/2011/05/automatic-screenshot-insertion-in-org/#comments</comments>
		<pubDate>Wed, 04 May 2011 10:47:29 +0000</pubDate>
		<dc:creator>WaYdotNET</dc:creator>
				<category><![CDATA[Script]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[org-mode]]></category>

		<guid isPermaLink="false">http://www.waydotnet.com/blog/?p=111</guid>
		<description><![CDATA[Original idea from http://emacsworld.blogspot.com/2011/05/automatic-screenshot-insertion-in-org.html Original script using imagemagick: Using scrot : 1 2 3 4 5 6 7 8 9 10 11 12 &#40;defun org-screenshot &#40;&#41; &#34;Take a screenshot into a time stamped unique-named file in the same directory as the org-buffer and insert a link to this file.&#34; &#40;interactive&#41; &#40;setq filename &#40;concat &#40;make-temp-name &#40;concat<a href="http://www.waydotnet.com/blog/2011/05/automatic-screenshot-insertion-in-org/"> <br /><br /> (More)…</a>]]></description>
			<content:encoded><![CDATA[<p>Original idea from http://emacsworld.blogspot.com/2011/05/automatic-screenshot-insertion-in-org.html</p>
<p> <a href="http://permalink.gmane.org/gmane.emacs.orgmode/40271">Original script using imagemagick:</a></p>
<p>Using <a href="http://freshmeat.net/projects/scrot/">scrot</a> :</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="lisp" style="font-family:monospace;"><span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">defun</span> org-screenshot <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
  <span style="color: #ff0000;">&quot;Take a screenshot into a time stamped unique-named file in the same directory as the org-buffer and insert a link to this file.&quot;</span>
  <span style="color: #66cc66;">&#40;</span>interactive<span style="color: #66cc66;">&#41;</span>
  <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> filename
        <span style="color: #66cc66;">&#40;</span>concat
         <span style="color: #66cc66;">&#40;</span>make-temp-<span style="color: #b1b100;">name</span>
          <span style="color: #66cc66;">&#40;</span>concat <span style="color: #66cc66;">&#40;</span>buffer-file-<span style="color: #b1b100;">name</span><span style="color: #66cc66;">&#41;</span>
                  <span style="color: #ff0000;">&quot;_&quot;</span>
                  <span style="color: #66cc66;">&#40;</span>format-time-string <span style="color: #ff0000;">&quot;%Y%m%d_%H%M%S_&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #ff0000;">&quot;.png&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
  <span style="color: #66cc66;">&#40;</span>call-process <span style="color: #ff0000;">&quot;scrot&quot;</span> <span style="color: #b1b100;">nil</span> <span style="color: #b1b100;">nil</span> <span style="color: #b1b100;">nil</span>  <span style="color: #ff0000;">&quot;-s&quot;</span> filename<span style="color: #66cc66;">&#41;</span>
  <span style="color: #66cc66;">&#40;</span>insert <span style="color: #66cc66;">&#40;</span>concat <span style="color: #ff0000;">&quot;[[&quot;</span> filename <span style="color: #ff0000;">&quot;]]&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
  <span style="color: #66cc66;">&#40;</span>org-display-inline-images<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.waydotnet.com/blog/2011/05/automatic-screenshot-insertion-in-org/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Multiple X-session :D</title>
		<link>http://www.waydotnet.com/blog/2011/02/multiple-x-session-d/</link>
		<comments>http://www.waydotnet.com/blog/2011/02/multiple-x-session-d/#comments</comments>
		<pubDate>Thu, 03 Feb 2011 11:33:39 +0000</pubDate>
		<dc:creator>WaYdotNET</dc:creator>
				<category><![CDATA[Script]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[xorg]]></category>
		<category><![CDATA[xserver]]></category>

		<guid isPermaLink="false">http://www.waydotnet.com/blog/?p=109</guid>
		<description><![CDATA[1 startx -- :n where n => free graphic session ( > F7 )]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">startx <span style="color: #660033;">--</span> :n</pre></td></tr></table></div>

<p>where n => free graphic session ( > F7 )</p>
]]></content:encoded>
			<wfw:commentRss>http://www.waydotnet.com/blog/2011/02/multiple-x-session-d/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to resize LVM logical volumes with ext4 as filesystem</title>
		<link>http://www.waydotnet.com/blog/2011/02/how-to-resize-lvm-logical-volumes-with-ext4-as-filesystem/</link>
		<comments>http://www.waydotnet.com/blog/2011/02/how-to-resize-lvm-logical-volumes-with-ext4-as-filesystem/#comments</comments>
		<pubDate>Thu, 03 Feb 2011 08:01:55 +0000</pubDate>
		<dc:creator>WaYdotNET</dc:creator>
				<category><![CDATA[Script]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[ext4]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[lvm]]></category>
		<category><![CDATA[resize]]></category>

		<guid isPermaLink="false">http://www.waydotnet.com/blog/?p=108</guid>
		<description><![CDATA[1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 &#160; # Unmount the filesystem and check its' LV umount /mnt/foo e2fsck -f /dev/mapper/vg0-foo &#160; # Shrink ext4 and then the LV to the desired size resize2fs -p /dev/mapper/vg0-foo 40G lvreduce -L 40G /dev/mapper/vg0-foo &#160; #<a href="http://www.waydotnet.com/blog/2011/02/how-to-resize-lvm-logical-volumes-with-ext4-as-filesystem/"> <br /><br /> (More)…</a>]]></description>
			<content:encoded><![CDATA[
<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
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">&nbsp;
<span style="color: #666666; font-style: italic;"># Unmount the filesystem and check its' LV</span>
<span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>foo
e2fsck <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mapper<span style="color: #000000; font-weight: bold;">/</span>vg0-foo
&nbsp;
<span style="color: #666666; font-style: italic;"># Shrink ext4 and then the LV to the desired size</span>
resize2fs <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mapper<span style="color: #000000; font-weight: bold;">/</span>vg0-foo 40G
lvreduce <span style="color: #660033;">-L</span> 40G <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mapper<span style="color: #000000; font-weight: bold;">/</span>vg0-foo
&nbsp;
<span style="color: #666666; font-style: italic;"># Before continuing, run e2fsck. If it bails because the partition</span>
<span style="color: #666666; font-style: italic;"># is too small, don't panic! The LV can still be extended with</span>
<span style="color: #666666; font-style: italic;"># lvextend until e2fsck succeeds, e.g.:</span>
<span style="color: #666666; font-style: italic;"># lvextend -L +1G /dev/mapper/vg0-foo</span>
e2fsck <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mapper<span style="color: #000000; font-weight: bold;">/</span>vg0-foo
&nbsp;
<span style="color: #666666; font-style: italic;"># Resize the filesystem to match the LVs size, check and mount it</span>
resize2fs <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mapper<span style="color: #000000; font-weight: bold;">/</span>vg0-foo
e2fsck <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mapper<span style="color: #000000; font-weight: bold;">/</span>vg0-foo
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>foo</pre></td></tr></table></div>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">&nbsp;
<span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>bar
&nbsp;
<span style="color: #666666; font-style: italic;"># Extend the LV to use all free space</span>
lvextend <span style="color: #660033;">-l</span> +<span style="color: #000000;">100</span><span style="color: #000000; font-weight: bold;">%</span>FREE <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mapper<span style="color: #000000; font-weight: bold;">/</span>vg0-bar
e2fsck <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mapper<span style="color: #000000; font-weight: bold;">/</span>vg0-bar
&nbsp;
<span style="color: #666666; font-style: italic;"># Resize the partition to fill the LV</span>
resize2fs <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mapper<span style="color: #000000; font-weight: bold;">/</span>vg0-bar
e2fsck <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mapper<span style="color: #000000; font-weight: bold;">/</span>vg0-bar
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>bar</pre></td></tr></table></div>

<p>source:<br />
<a href="http://pubmem.wordpress.com/2010/09/16/how-to-resize-lvm-logical-volumes-with-ext4-as-filesystem">source </a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.waydotnet.com/blog/2011/02/how-to-resize-lvm-logical-volumes-with-ext4-as-filesystem/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>tips: remove control-M with emacs</title>
		<link>http://www.waydotnet.com/blog/2011/02/tips-remove-controlm-with-emacs/</link>
		<comments>http://www.waydotnet.com/blog/2011/02/tips-remove-controlm-with-emacs/#comments</comments>
		<pubDate>Wed, 02 Feb 2011 08:31:22 +0000</pubDate>
		<dc:creator>WaYdotNET</dc:creator>
				<category><![CDATA[Script]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[tips script emacs]]></category>

		<guid isPermaLink="false">http://www.waydotnet.com/blog/?p=107</guid>
		<description><![CDATA[1 2 3 4 5 M-x replace-string C-q C-m return]]></description>
			<content:encoded><![CDATA[
<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;">M-x 
replace-string
C-q 
C-m
<span style="color: #7a0874; font-weight: bold;">return</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.waydotnet.com/blog/2011/02/tips-remove-controlm-with-emacs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>tips: search text into list file and order by date</title>
		<link>http://www.waydotnet.com/blog/2011/01/tips-search-text-into-list-file-and-order-by-date/</link>
		<comments>http://www.waydotnet.com/blog/2011/01/tips-search-text-into-list-file-and-order-by-date/#comments</comments>
		<pubDate>Thu, 13 Jan 2011 22:51:57 +0000</pubDate>
		<dc:creator>WaYdotNET</dc:creator>
				<category><![CDATA[Script]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.waydotnet.com/blog/?p=106</guid>
		<description><![CDATA[Simple but power command to search text inside file ed order list file by date &#8230;.. thx to google and all user 1 grep -rl 'REGEX' * &#124; xargs ls -trl]]></description>
			<content:encoded><![CDATA[<p>Simple but power command to search text inside file ed order list file by date &#8230;.. thx to google and all user</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: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-rl</span> <span style="color: #ff0000;">'REGEX'</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">xargs</span> <span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-trl</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.waydotnet.com/blog/2011/01/tips-search-text-into-list-file-and-order-by-date/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows ANSI Color (WAC)</title>
		<link>http://www.waydotnet.com/blog/2010/11/windows-ansi-color-wac/</link>
		<comments>http://www.waydotnet.com/blog/2010/11/windows-ansi-color-wac/#comments</comments>
		<pubDate>Wed, 10 Nov 2010 07:41:54 +0000</pubDate>
		<dc:creator>WaYdotNET</dc:creator>
				<category><![CDATA[ruby]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.waydotnet.com/blog/?p=105</guid>
		<description><![CDATA[wac.exe is a small command line utility that lets you use ANSI colors on Windows. link https://github.com/aslakhellesoy/wac]]></description>
			<content:encoded><![CDATA[<p>wac.exe is a small command line utility that lets you use ANSI colors on Windows.</p>
<p>link<br />
<a href="https://github.com/aslakhellesoy/wac">https://github.com/aslakhellesoy/wac</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.waydotnet.com/blog/2010/11/windows-ansi-color-wac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
