<?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>Dmitri's Blog</title>
	<atom:link href="http://www.dmitri.me/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dmitri.me/blog</link>
	<description>Dmitri Smirnov. Web development in Estonia.</description>
	<lastBuildDate>Tue, 10 Aug 2010 12:07:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Hypnotic effect with Rahael</title>
		<link>http://www.dmitri.me/blog/hypnotic-effect-with-rahael/</link>
		<comments>http://www.dmitri.me/blog/hypnotic-effect-with-rahael/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 13:49:22 +0000</pubDate>
		<dc:creator>Dmitri</dc:creator>
				<category><![CDATA[HTML and CSS]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[raphael]]></category>

		<guid isPermaLink="false">http://www.dmitri.me/blog/?p=382</guid>
		<description><![CDATA[Open fullscreen

]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.dmitri.me/misc/ball/">Open fullscreen</a><br />
<iframe scrolling="no" src="http://www.dmitri.me/misc/ball/" width="550" height="550" frameborder="0"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dmitri.me/blog/hypnotic-effect-with-rahael/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML nested ordered lists and numeration</title>
		<link>http://www.dmitri.me/blog/html-nested-ordered-lists-and-numeration/</link>
		<comments>http://www.dmitri.me/blog/html-nested-ordered-lists-and-numeration/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 07:26:29 +0000</pubDate>
		<dc:creator>Dmitri</dc:creator>
				<category><![CDATA[HTML and CSS]]></category>
		<category><![CDATA[web-development]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[numeration]]></category>
		<category><![CDATA[ol]]></category>
		<category><![CDATA[Ordered list]]></category>

		<guid isPermaLink="false">http://www.dmitri.me/blog/?p=363</guid>
		<description><![CDATA[Sometimes is needed to-do nested numeration in HTML ordered lists. Here is a simple CSS solution how to achieve this.
CSS:
ol {  counter-reset: item;  }
ol li { display:block; }
ol li:before { content: counters(item, ".") ". "; counter-increment: item }

HTML:

&#60;ol&#62;
  &#60;li&#62;
    Cities
    &#60;ol&#62;
      [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes is needed to-do nested numeration in HTML ordered lists. Here is a simple CSS solution how to achieve this.</p>
<p><strong>CSS:</strong><br />
<code>ol {  counter-reset: item;  }<br />
ol li { display:block; }<br />
ol li:before { content: counters(item, ".") ". "; counter-increment: item }<br />
</code></p>
<p><strong>HTML:</strong>
<pre>
<code>&lt;ol&gt;
  &lt;li&gt;
    Cities
    &lt;ol&gt;
      &lt;li&gt;
        Tallinn
        &lt;ol&gt;
          &lt;li&gt;Kesklinn&lt;/li&gt;
          &lt;li&gt;Lasnamäe&lt;/li&gt;
          &lt;li&gt;Mustamäe&lt;/li&gt;
        &lt;/ol&gt;
      &lt;/li&gt;
      &lt;li&gt;
        Narva
        &lt;ol&gt;
          &lt;li&gt;Krenholmi&lt;/li&gt;
          &lt;li&gt;Soldino&lt;/li&gt;
          &lt;li&gt;Paemuru&lt;/li&gt;
        &lt;/ol&gt;
      &lt;/li&gt;
    &lt;/ol&gt;
  &lt;/li&gt;
&lt;/ol&gt;
</code>
</pre>
<p><strong>Result:</strong></p>
<style type="text/css">
ol.post_lists{ counter-reset: item; }
ol.post_lists li { display:block; }
ol.post_lists li:before { content: counters(item, ".") ". "; counter-increment: item }
</style>
<ol class="post_lists">
<li>
    Cities</p>
<ol class="post_lists">
<li>
        Tallinn</p>
<ol class="post_lists">
<li>Kesklinn</li>
<li>Lasnamäe</li>
<li>Mustamäe</li>
</ol>
</li>
<li>
        Narva</p>
<ol class="post_lists">
<li>Krenholmi</li>
<li>Soldino</li>
<li>Paemuru</li>
</ol>
</li>
</ol>
</li>
</ol>
<p>You can do so many nested lists as you want.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dmitri.me/blog/html-nested-ordered-lists-and-numeration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hide outline border on A tag focus</title>
		<link>http://www.dmitri.me/blog/hide-outline-border-on-a-tag-focus/</link>
		<comments>http://www.dmitri.me/blog/hide-outline-border-on-a-tag-focus/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 07:01:54 +0000</pubDate>
		<dc:creator>Dmitri</dc:creator>
				<category><![CDATA[HTML and CSS]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[web-development]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[outline]]></category>

		<guid isPermaLink="false">http://www.dmitri.me/blog/?p=319</guid>
		<description><![CDATA[
.out1:focus { outline:1px dotted black; }

When you focus A tag or submit button sometimes outline border looks ugly on websites. Here are examples:
Foobar 
This can be easy fixed (for all browsers except Internet Explorer!) by adding 1 line of CSS rule:
a:focus { outline: none; }
IE has non-standard HTML attribute hideFocus=&#8221;true&#8221; to solve this problem. Of [...]]]></description>
			<content:encoded><![CDATA[<style type="text/css">
.out1:focus { outline:1px dotted black; }
</style>
<p>When you focus A tag or submit button sometimes outline border looks ugly on websites. Here are examples:<br />
<a href="#" class="out1" onclick="return false">Foobar</a> <a href="#" class="out1" onclick="return false"><img src="/lj/l_toyota.png" alt="toyota" border="0" /></a></p>
<p>This can be easy fixed (f<strong>or all browsers except Internet Explorer!</strong>) by adding 1 line of CSS rule:<br />
<code>a:focus { outline: none; }</code></p>
<p>IE has non-standard HTML attribute <strong>hideFocus=&#8221;true&#8221;</strong> to solve this problem. Of course you don&#8217;t like to put this attribute in every &lt;A&gt; tag and submit buttons in your HTML. I have 2 working solutions for all browsers:</p>
<h3>CSS expression solution</h3>
<p><code>input, a {<br />
&nbsp;&nbsp;outline:expression(hideFocus='true');<br />
&nbsp;&nbsp;outline:none;<br />
}</code></p>
<h3>jQuery solution</h3>
<p><code>$("a, input").each(function() {<br />
&nbsp;&nbsp;$(this).attr("hideFocus", "true").css("outline", "none");<br />
});</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dmitri.me/blog/hide-outline-border-on-a-tag-focus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Internationalization in Rails 2.2</title>
		<link>http://www.dmitri.me/blog/internationalization-in-rails-22/</link>
		<comments>http://www.dmitri.me/blog/internationalization-in-rails-22/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 06:41:38 +0000</pubDate>
		<dc:creator>Dmitri</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[web-development]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[Internationalization]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://www.dmitri.me/blog/?p=274</guid>
		<description><![CDATA[This tutorials is about Internationalization in Ruby on Rails 2.2 and later. You don&#8217;t need to invent a wheel from scratch all stuff for internationalization and localization of your application is available in standard Rails package since version 2.2.

Configuration
So let&#8217;s start with empty Rails application.
$rails test_locale
In directory APP_ROOT/config/locales/ you will find file en.yml this is [...]]]></description>
			<content:encoded><![CDATA[<p>This tutorials is about Internationalization in <a href="http://www.rubyonrails.org/">Ruby on Rails 2.2</a> and later. You don&#8217;t need to invent a wheel from scratch all stuff for internationalization and localization of your application is available in standard Rails package since version 2.2.</p>
<p><span id="more-274"></span></p>
<h3>Configuration</h3>
<p>So let&#8217;s start with empty Rails application.<br />
<code>$rails test_locale</code></p>
<p>In directory APP_ROOT/config/locales/ you will find file <strong>en.yml</strong> this is file which contains all texts for English version of your application. Here in Estonia we usually make applications for 3 or more languages. So I copy en.yml and name files as locale.</p>
<p><strong>en.yml</strong> &#8211; for English<br />
<code>en:<br />
&nbsp;&nbsp;hello: "Hello world"<br />
</code></p>
<p><strong>ru.yml</strong> &#8211; for Russian<br />
<code>ru:<br />
&nbsp;&nbsp;hello: "Привет мир!"<br />
</code></p>
<p><strong>ee.yml</strong> &#8211; for Estonian<br />
<code>ee:<br />
&nbsp;&nbsp;hello: "Tere maailm!"<br />
</code></p>
<p>Now lets do a controller for test.<br />
<code>test_locale$ ruby script/generate controller SayHello index</code></p>
<p>Now open view file in APP_ROOT/app/views/say_hello/index.html.erb and edit like:<br />
<code>&lt;%=t :hello %&gt;</code><br />
<strong>t</strong> &#8211; function is a helper that translates the text for current locale. If locale text is missing, it will generate message that &#8220;translation is missing&#8221; it doesn&#8217;t halt your application.</p>
<p>Locale will pass the parameter as query_string ?locale=ru and you need to add this manually for every URL in you application, of course you don&#8217;t like to do this manually. If you want that our app looks like <a href="http://www.example.com/ru/say_hello">http://www.example.com/ru/say_hello</a> go to APP_ROOT/config/routes.rb end add following line<br />
<code>map.connect ':locale/:controller/:action/:id', :controller =&gt; 'say_hello', :action =&gt; 'index', :requirements =&gt; {:locale =&gt; /ee|ru|en/}<br />
</code><br />
This will set for ROOT controller too. In requirement we set all available locales to avoid people enter in URL shitty things. After you set this route, Rails will generate pretty nice URLs with <strong>link_to, link_to_remote, etc&#8230;</strong></p>
<p>Now we need to a function to set locale in every controller of you application. Open APP_ROOT/app/controllers/application_controller.rb and edit:<br />
<code>class ApplicationController &lt; ActionController::Base<br />
&nbsp;&nbsp;helper :all # include all helpers, all the time<br />
&nbsp;&nbsp;protect_from_forgery<br />
&nbsp;&nbsp;<strong>before_filter :set_locale<br />
&nbsp;&nbsp;def set_locale<br />
&nbsp;&nbsp;&nbsp;&nbsp;locale = params[:locale]<br />
&nbsp;&nbsp;&nbsp;&nbsp;I18n.locale = locale<br />
&nbsp;&nbsp;&nbsp;&nbsp;I18n.load_path += Dir[ File.join(RAILS_ROOT, 'config', 'locales', '*.{rb,yml}') ]<br />
&nbsp;&nbsp;end</strong><br />
end<br />
</code></p>
<p>If you want to setup default locale different than English(en). Open file APP_ROOT/config/environment.rb and commentate following lines (usually at the end of file) and set up default locale. For example it will be Russian:<br />
<code>config.i18n.load_path += Dir[Rails.root.join('config','locales', '*.{rb,yml}')]<br />
config.i18n.default_locale = :ru<br />
</code></p>
<h3>Result</h3>
<p>Lets see what we got:<br />
<code>$ruby script/server</code></p>
<p>Open the URL in your browser <a href="http://localhost:3000/say_hello">http://localhost:3000/say_hello</a></p>
<p>Default (we set by default Russian[ru] locale)<br />
<img src="/misc/ri-ru.jpg" alt="" /></p>
<p>English<br />
<img src="/misc/ri-en.jpg" alt="" /></p>
<p>Estonian<br />
<img src="/misc/ri-ee.jpg" alt="" /></p>
<p>Thats all! Really isn&#8217;t hard?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dmitri.me/blog/internationalization-in-rails-22/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Isikukoodi valideerimine</title>
		<link>http://www.dmitri.me/blog/isikukood-valideerimine/</link>
		<comments>http://www.dmitri.me/blog/isikukood-valideerimine/#comments</comments>
		<pubDate>Fri, 29 May 2009 09:29:07 +0000</pubDate>
		<dc:creator>Dmitri</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Eesti]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[Rury]]></category>

		<guid isPermaLink="false">http://www.dmitri.me/blog/?p=258</guid>
		<description><![CDATA[Leidsin täna seda → Isikukood. Algoritm on selge aga näidese kood on räpp&#8230;
Siis&#8230;
Versioon PHP by Setor
Versioon PHP 2 by MiamiBC (kõige lihtsam ja arusaadavam)
Java version by Incubo
Minu versioon Ruby keeles
Mika Tuupola versioon JavaScript
Kui sul on mingi teine versioon siis saada mulle ka  
]]></description>
			<content:encoded><![CDATA[<p>Leidsin täna seda → <a href="http://et.wikipedia.org/wiki/Isikukood">Isikukood</a>. Algoritm on selge aga näidese kood on räpp&#8230;</p>
<p>Siis&#8230;</p>
<p><a href="/misc/isikukood/isikukood.phps">Versioon PHP</a> by <a href="http://www.setor.net/">Setor</a><br />
<a href="/misc/isikukood/isikukood2.phps">Versioon PHP 2</a> by MiamiBC (kõige lihtsam ja arusaadavam)<br />
<a href="/misc/isikukood/PersonalCode.java">Java version</a> by Incubo<br />
Minu <a href="/misc/isikukood/isikukood.rb">versioon</a> Ruby keeles<br />
<a href="http://www.appelsiini.net">Mika Tuupola</a> <a href="http://www.appelsiini.net/2009/9/verify-estonian-isikukood-with-javascript">versioon</a> JavaScript</p>
<p>Kui sul on mingi teine versioon siis saada mulle ka <img src='http://www.dmitri.me/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.dmitri.me/blog/isikukood-valideerimine/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Notify bar</title>
		<link>http://www.dmitri.me/blog/notify-bar/</link>
		<comments>http://www.dmitri.me/blog/notify-bar/#comments</comments>
		<pubDate>Wed, 27 May 2009 10:11:47 +0000</pubDate>
		<dc:creator>Dmitri</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[web-development]]></category>
		<category><![CDATA[notify]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.dmitri.me/blog/?p=245</guid>
		<description><![CDATA[&#8216;Notify Bar&#8217; plugin

      Simple plugin (basically it&#8217;s not a plugin, but widget) to show notify bar
      (like on Twitter&#8217;s webpage).
      It&#8217;s very simple to use:
    

      
$(function () {
  $.notifyBar({
  [...]]]></description>
			<content:encoded><![CDATA[<h1>&#8216;Notify Bar&#8217; plugin</h1>
<p>
      Simple plugin (basically it&#8217;s not a plugin, but widget) to show notify bar<br />
      (like on Twitter&#8217;s webpage).<br />
      It&#8217;s very simple to use:
    </p>
<pre>
      <code>
$(function () {
  $.notifyBar({
    html: "Thank you, your settings were updated!",
    delay: 2000,
    animationSpeed: "normal"
  });
});
      </code>
    </pre>
<p>    and to your html page stylesheet:</p>
<pre>
<code>&lt;link rel="stylesheet" href="jquery.notifyBar.css" type="text/css" media="screen"  /&gt;</code>
</pre>
<h3>$.notifyBar can pass next parameters:</h3>
<table border="1">
<tr>
<th>Parameter</th>
<th>Description</th>
<th>Type</th>
<th>Default</th>
</tr>
<tr>
<td>html</td>
<td>What text will be inside bar, can be HTML</td>
<td>String [optional]</td>
<td>&#8220;Your message here&#8221;</td>
</tr>
<tr>
<td>delay</td>
<td>How long bar will be delayed, doesn&#8217;t count animation time.</td>
<td>Integer [optional]</td>
<td>2000</td>
</tr>
<tr>
<td>animationSpeed</td>
<td>How long this bar will be slided up and down</td>
<td>String | Integer [optional]</td>
<td>&#8220;normal&#8221;</td>
</tr>
<tr>
<td>jqObject</td>
<td>Own jquery object for notify bar</td>
<td>jQuery object [optional]</td>
<td>null</td>
</tr>
<tr>
<td>cls</td>
<td>You can set own CSS class for &#8216;Notify bar&#8217;. There is too premade clasess &#8220;error&#8221; and &#8220;success&#8221;</td>
<td>String</td>
<td></td>
</tr>
<tr>
<td>close</td>
<td>If set to true close button will be displayed</td>
<td>Boolean</td>
<td>false</td>
</tr>
</table>
<p><a href="/misc/notify/">See demonstration</a> or <a href="http://github.com/dknight/jQuery-Notify-bar">download source</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dmitri.me/blog/notify-bar/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>Plugin &#8216;Minify&#8217; for Frog CMS</title>
		<link>http://www.dmitri.me/blog/plugin-minify-for-frog-cms/</link>
		<comments>http://www.dmitri.me/blog/plugin-minify-for-frog-cms/#comments</comments>
		<pubDate>Wed, 20 May 2009 09:25:46 +0000</pubDate>
		<dc:creator>Dmitri</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[web-development]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[frog cms]]></category>

		<guid isPermaLink="false">http://www.dmitri.me/blog/?p=235</guid>
		<description><![CDATA[About Minify
&#8216;Minify&#8217; is a plugin to minify JavaScript and/or CSS code and combine it
into one file on the fly. This will increase performance of website.
So you don&#8217;t need to do dozens HTTP request for every JavaScript or CSS file.
Minify plugin is more useful and faster with Funky cache plugin.

Usage
Install the minify plugin to your Frog [...]]]></description>
			<content:encoded><![CDATA[<h1>About Minify</h1>
<p>&#8216;Minify&#8217; is a plugin to minify JavaScript and/or CSS code and combine it<br />
into one file on the fly. This will increase performance of website.<br />
So you don&#8217;t need to do dozens HTTP request for every JavaScript or CSS file.<br />
Minify plugin is more useful and faster with <a href="http://www.appelsiini.net/projects/funky_cache">Funky cache</a> plugin.</p>
<p><span id="more-235"></span></p>
<h1>Usage</h1>
<p>Install the minify plugin to your Frog CMS plugins directory:</p>
<pre><code>
$cd /path/to/frog/plugins/
$git clone git://github.com/dknight/minify.git
</code></pre>
<h3>Activate minify plugin</h3>
<p><img src="http://www.dmitri.me/misc/minify.png" alt="" /></p>
<h3>Set the settings</h3>
<p>So next step you need to create &#8216;cache&#8217; directory in your document root and make it<br />
writable. Due to security settings most webservers doesn&#8217;t allow you to create<br />
directories dynamically, so you need to create it manually. Create it in your DOCUMENT_ROOT/cache/ and set writtable permissions.</p>
<pre><code>
$mkdir /website/root/cache/
$chmod 0666 /website/root/cache/
</code></pre>
<h3>Usage in Frog CMS</h3>
<pre><code>
&lt;?php
$jsFiles = array(
    '/public/javascripts/jquery-1.3.2.min.js',
    '/public/javascripts/jquery.validate.min.js',
    '/public/javascripts/jquery.form.js',
    '/public/javascripts/frog.js'
);
$cssFiles = array(
    'path/to/master.css',
    'path/to/subpage.css',
    'path/to/ie-fix.css'
);

$js_minify  = Minify::factory('js');
$css_minify = Minify::factory('css');
?&gt;
</code></pre>
<p>HTML:</p>
<pre><code>

...
&lt;link href="&lt;?php echo $css_minify-&gt;minify($cssFiles, true); ?&gt;" rel="stylesheet" type="text/css" /&gt;
...
&lt;script type="text/javascript" src="&lt;?php echo $js_minify-&gt;minify($files, true); ?&gt;"&gt;&lt;/script&gt;
...

</code></pre>
<p>The &#8216;minify&#8217; method can pass 3 parameters:</p>
<table border="1">
<tbody>
<tr>
<th>name</th>
<th>description</th>
<th>type</th>
<th>default</th>
</tr>
<tr>
<td>files</td>
<td>File to be minified</td>
<td>array [required]</td>
<td>array()</td>
</tr>
<tr>
<td>output</td>
<td>Output to file or raw output into string</td>
<td>boolean [optional]</td>
<td>false</td>
</tr>
<tr>
<td>fileName</td>
<td>Name of output file</td>
<td>string [optional]</td>
<td>&#8216;min.js&#8217; or &#8216;min.css&#8217;</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.dmitri.me/blog/plugin-minify-for-frog-cms/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Internet Explorer intepolation mode for images</title>
		<link>http://www.dmitri.me/blog/internet-explorer-intepolation-mode-for-images/</link>
		<comments>http://www.dmitri.me/blog/internet-explorer-intepolation-mode-for-images/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 13:09:59 +0000</pubDate>
		<dc:creator>Dmitri</dc:creator>
				<category><![CDATA[HTML and CSS]]></category>
		<category><![CDATA[web-development]]></category>
		<category><![CDATA[bicubic]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[Images]]></category>
		<category><![CDATA[microsoft]]></category>

		<guid isPermaLink="false">http://www.dmitri.me/blog/?p=221</guid>
		<description><![CDATA[Every self-respecting web-designer and web-developer know that when scaling images browser makes picture smaller or larger by definite &#8220;magic&#8221; algorithms. All browsers except IE, do that much-less correctly.
In Internet Explorer you should setup that algorithm manually as CSS property.

img { -ms-interpolation-mode:bicubic }

So here is result, screenshot are taken in IE7 withimage scale about 50-60%.

Bicubic algorithm disabled (default)

Bicubic [...]]]></description>
			<content:encoded><![CDATA[<p>Every self-respecting web-designer and web-developer know that when scaling images browser makes picture smaller or larger by definite &#8220;magic&#8221; algorithms. All browsers except IE, do that much-less correctly.</p>
<p>In Internet Explorer you should setup that algorithm manually as CSS property.<br />
<code><br />
img { -ms-interpolation-mode:bicubic }<br />
</code></p>
<h4>So here is result, screenshot are taken in IE7 with<br />image scale about 50-60%.</h4>
<p><img src="/misc/ie-algo/without-algorithm.jpg" alt="Without algorithm" /><br />
<em>Bicubic algorithm disabled (default)</em></p>
<p><img src="/misc/ie-algo/with-algorithm.jpg" alt="Without algorithm" /><br />
<em>Bicubic algorithm enabled</em></p>
<p>Read more on <a href="http://msdn.microsoft.com/en-us/library/ms530822(VS.85).aspx">MSDN website</a> about this issue.</p>
<p>Enabling interpolation algorithm is useful for any kind of *boxes like <a href="http://fancy.klade.lv/">Fancy Box</a>, <a href="http://mjijackson.com/shadowbox/">Shadowbox</a>, <a href="http://www.huddletogether.com/projects/lightbox2/">Light Box</a>, etc&#8230;</p>
<p><strong>NB! Enabling algorithms can decrease IE&#8217;s performance up 2 times!<br />Nice joke, BILL!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dmitri.me/blog/internet-explorer-intepolation-mode-for-images/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE session bug is solved</title>
		<link>http://www.dmitri.me/blog/ie-session-bug-is-solved/</link>
		<comments>http://www.dmitri.me/blog/ie-session-bug-is-solved/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 09:07:40 +0000</pubDate>
		<dc:creator>Dmitri</dc:creator>
				<category><![CDATA[HTML and CSS]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[web-development]]></category>
		<category><![CDATA[work]]></category>
		<category><![CDATA[IE bug]]></category>
		<category><![CDATA[stupid microsoft]]></category>

		<guid isPermaLink="false">http://www.dmitri.me/blog/?p=207</guid>
		<description><![CDATA[IE has bug which deletes session data and brakes functionality of website. In other browsers all is working fine.
Here is example in PHP:

&#60;?php
print_r($_SESSION);
//output:
//Array ()
?&#62;

After half day of breaking brain and Google really fantastic solution for this problem, but no one of them didn&#8217;t solved our problem. So Mika found that if markup have empty src [...]]]></description>
			<content:encoded><![CDATA[<p>IE has bug which deletes session data and brakes functionality of website. In other browsers all is working fine.<br />
Here is example in PHP:<br />
<code><br />
&lt;?php<br />
print_r($_SESSION);<br />
//output:<br />
//Array ()<br />
?&gt;<br />
</code></p>
<p>After half day of breaking brain and Google really fantastic solution for this problem, but no one of them didn&#8217;t solved our problem. So <a href="http://www.appelsiini.net">Mika</a> found that if markup have empty <strong>src</strong> attribute, IE makes an empty request which breaks session data. So solution is simple check if there any empty <strong>src</strong> attributes and <strong>hrefs</strong> in link tag.</p>
<p>Was:<br />
&lt;img <span style="color:red">src=&quot;&quot;</span> alt=&quot;An image&quot; id=&quot;img&quot; /&gt;</p>
<p>You need to remove this empty attribute or if you don&#8217;t need this for javascript remove <strong>IMG</strong> tag at all.<br />
&lt;img <span style="color:#ccc;text-decoration:line-through;">src=&quot;&quot;</span> alt=&quot;An image&quot; id=&quot;img&quot; /&gt;</p>
<p>That&#8217;s really stupid.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dmitri.me/blog/ie-session-bug-is-solved/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Generate static websites with Ruby (webby)</title>
		<link>http://www.dmitri.me/blog/generate-static-websites-with-ruby-webby/</link>
		<comments>http://www.dmitri.me/blog/generate-static-websites-with-ruby-webby/#comments</comments>
		<pubDate>Mon, 19 Jan 2009 12:00:41 +0000</pubDate>
		<dc:creator>Dmitri</dc:creator>
				<category><![CDATA[HTML and CSS]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[web-development]]></category>
		<category><![CDATA[work]]></category>
		<category><![CDATA[generate]]></category>
		<category><![CDATA[webby]]></category>

		<guid isPermaLink="false">http://www.dmitri.me/blog/?p=198</guid>
		<description><![CDATA[Often we need to generate some websites with static content, for example without any line of PHP code or without Ruby on Rails, just need to have plain HTML files. As for Me I hate to edit 50 HTML pages manually. I found a nice solution. It&#8217;s  Webby
This is a great solution to complete [...]]]></description>
			<content:encoded><![CDATA[<p>Often we need to generate some websites with static content, for example without any line of PHP code or without Ruby on Rails, just need to have plain HTML files. As for Me I hate to edit 50 HTML pages manually. I found a nice solution. It&#8217;s  <a href="http://webby.rubyforge.org">Webby</a></p>
<p>This is a great solution to complete such task.</p>
<p>You can check how it&#8217;s work <a href="http://webby.rubyforge.org/learn/">here</a> or <a href="http://clarkware.com/cgi/blosxom/2008/08/06">there (old version)</a>.</p>
<p>There are more tools like Webby, <a href="http://nanoc.stoneship.org/">Nanoc</a> and <a href="http://github.com/mojombo/jekyll/tree/master">jekyll</a>. I have didn&#8217;t tried them, but I guess the functionality is the same.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dmitri.me/blog/generate-static-websites-with-ruby-webby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
