<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Alex Filatov</title>
	
	<link>http://www.alexfilatov.com</link>
	<description>My online private property</description>
	<lastBuildDate>Mon, 26 Jul 2010 22:05:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/alexfilatov/YEDL" /><feedburner:info uri="alexfilatov/yedl" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Testing new application for WordPress under Android</title>
		<link>http://feedproxy.google.com/~r/alexfilatov/YEDL/~3/QguycM-HAUE/</link>
		<comments>http://www.alexfilatov.com/2010/07/26/testing-new-application-for-wordpress-under-android/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 22:05:47 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[HTC desire]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.alexfilatov.com/2010/07/26/testing-new-application-for-wordpress-under-android/</guid>
		<description><![CDATA[This is supposed to be test post, with some bold text, italic text&#8230; Seems like formatting works fine. Apart from this I&#8217;m trying to add some media, seems like piece of cake]]></description>
			<content:encoded><![CDATA[<p><img style="display:block;margin-right:auto;margin-left:auto;" alt="image" src="http://www.alexfilatov.com/wp-content/uploads/2010/07/wpid-tmpGmmPhoto.jpg" /></p>
<p>This is supposed to be test post, with some <strong>bold</strong> text, <em>italic </em>text&#8230; <br />
Seems like formatting works fine.</p>
<p>Apart from this I&#8217;m trying to add some media, seems like piece of cake <img src='http://www.alexfilatov.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexfilatov.com/2010/07/26/testing-new-application-for-wordpress-under-android/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.alexfilatov.com/2010/07/26/testing-new-application-for-wordpress-under-android/</feedburner:origLink></item>
		<item>
		<title>MySQL import slow on ext4 Ubuntu Lucid Lynx x64</title>
		<link>http://feedproxy.google.com/~r/alexfilatov/YEDL/~3/KWX9C-KUPHM/</link>
		<comments>http://www.alexfilatov.com/2010/07/25/mysql-import-slow-on-ext4-ubuntu-lucid-lynx-x64/#comments</comments>
		<pubDate>Sun, 25 Jul 2010 13:02:52 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ext4]]></category>
		<category><![CDATA[lucid lynx]]></category>
		<category><![CDATA[x64]]></category>

		<guid isPermaLink="false">http://www.alexfilatov.com/?p=178</guid>
		<description><![CDATA[I&#8217;ve faced an issue whive making an SQL import on my Ubuntu Lucid Lynx on my macbook pro 6,2. To make it working fast you need to disable writing barrier for the ext4 fs : $ sudo vi /etc/fstab you&#8217;ll see there something like: /dev/sda3       /   ext4    errors=remount-ro 0 1 [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve faced an issue whive making an SQL import on my Ubuntu Lucid Lynx on my macbook pro 6,2.</p>
<p>To make it working fast you need to disable writing barrier for the ext4 fs :</p>
<pre>$ sudo vi /etc/fstab</pre>
<p>you&#8217;ll see there something like:</p>
<pre>/dev/sda3       /   ext4    errors=remount-ro 0 1</pre>
<p>Just add there barrier=0 :</p>
<pre>/dev/sda3       /               ext4    errors=remount-ro,barrier=0 0       1</pre>
<p>and reboot.</p>
<p>After that change my SQL import performed very fast.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexfilatov.com/2010/07/25/mysql-import-slow-on-ext4-ubuntu-lucid-lynx-x64/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.alexfilatov.com/2010/07/25/mysql-import-slow-on-ext4-ubuntu-lucid-lynx-x64/</feedburner:origLink></item>
		<item>
		<title>AJAX request with Symfony sfBrowser in Lime functional test</title>
		<link>http://feedproxy.google.com/~r/alexfilatov/YEDL/~3/NiO42_iB1g4/</link>
		<comments>http://www.alexfilatov.com/2010/07/22/ajax-request-with-symfony-sfbrowser-in-lime-functional-test/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 13:39:22 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[Symfony]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[functional tests]]></category>
		<category><![CDATA[lime]]></category>
		<category><![CDATA[tdd]]></category>

		<guid isPermaLink="false">http://www.alexfilatov.com/?p=173</guid>
		<description><![CDATA[Hello Symfonians! While doing functional tests for my current Symfony application I needed to make AJAX call to one of my project endpoint. I have found that not Lime or sfBrowser have this ability out of the box. So if you need to make AJAX request from your Lime functional test you need do the [...]]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste">Hello Symfonians!</div>
<div>While doing functional tests for my current Symfony application I needed to make AJAX call to one of my project endpoint.</div>
<div id="_mcePaste">I have found that not Lime or sfBrowser have this ability out of the box.</div>
<div>So if you need to make AJAX request from your Lime functional test you need do the following in your test:</div>
<pre>&lt;?php</pre>
<pre>include(dirname(__FILE__) . '/../../bootstrap/functional.php');

$browser = new sfTestFunctional(new sfBrowser());
$limeTest = $browser-&gt;test();

$browser-&gt;setHttpHeader("X-Requested-With",	"XMLHttpRequest");

$browser-&gt;post('/ajax/uri', array('param_name' =&gt; 'param_value'))-&gt;
        with('request')-&gt;begin()-&gt;
        isParameter('module', 'someModule')-&gt;
        isParameter('action', 'someAction')-&gt;
        end()-&gt;

        with('response')-&gt;begin()-&gt;
        isStatusCode(200)-&gt;
        end();</pre>
<pre>?&gt;</pre>
<div>The key point is in the headers, you send to the server:</div>
<div>
<pre style="font: normal normal normal 12px/18px Consolas, Monaco, 'Courier New', Courier, monospace;">$browser-&gt;setHttpHeader("X-Requested-With",	"XMLHttpRequest");</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.alexfilatov.com/2010/07/22/ajax-request-with-symfony-sfbrowser-in-lime-functional-test/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.alexfilatov.com/2010/07/22/ajax-request-with-symfony-sfbrowser-in-lime-functional-test/</feedburner:origLink></item>
		<item>
		<title>Install Symfony 1.4 under Git</title>
		<link>http://feedproxy.google.com/~r/alexfilatov/YEDL/~3/ntkEem3TkHo/</link>
		<comments>http://www.alexfilatov.com/2010/05/31/install-symfony-1-4-under-git/#comments</comments>
		<pubDate>Mon, 31 May 2010 19:28:42 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.alexfilatov.com/?p=161</guid>
		<description><![CDATA[I&#8217;ve met in the Internet nice article about Howto Create Symfony 1.4 project with Git and cut out stuff related to Symfony and Git only. 1. Clone the symfony-1.4 svn repository. $ git svn clone http://svn.symfony-project.com/branches/1.4  lib/vendor/symfony-1.4 When a 1.4 update comes along, go to the lib/vendor/symfony-1.4 directory and execute the following command to update [...]]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste">I&#8217;ve met in the Internet nice article about <a href="http://kahelamp.files.wordpress.com/2009/12/symfony-1-4_on_git-howto1.pdf" target="_blank">Howto Create Symfony 1.4 project with Git</a> and cut out stuff related to Symfony and Git only.</div>
<div>1. Clone the symfony-1.4 svn repository.</div>
<pre class="brush: js">$ git svn clone http://svn.symfony-project.com/branches/1.4  lib/vendor/symfony-1.4</pre>
<div id="_mcePaste">When a 1.4 update comes along, go to the lib/vendor/symfony-1.4 directory and</div>
<div id="_mcePaste">execute the following command to update your copy.</div>
<pre class="brush: js">$ git svn rebase</pre>
<div>2. Now take care of the svn externals by first retrieving a script that extends git&#8217;s power</div>
<div id="_mcePaste">(based on a work by Andre Pang) and running git-svn-update-externals inside the</div>
<div id="_mcePaste">framework directory lib/vendor/symfony-1.4.</div>
<pre class="brush: js">$ git clone git://git-sue.git.sourceforge.net/gitroot/git-sue/git-sue  lib/vendor/git-sue
$ cd lib/vendor/symfony-1.4
$ ../git-sue/git-svn-update-externals</pre>
<div>3. Assuming you are back on your project root directory, verify your Symfony installation.</div>
<pre class="brush: js">$ lib/vendor/symfony-1.4/data/bin/symfony -V</pre>
<div id="_mcePaste">If Symfony has been installed correctly, the version should be displayed.</div>
<div>If you got something like</div>
<div></div>
<div>
<pre class="brush: php">PHP Fatal error:  require(): Failed opening required '/home/alex/projects/php-projects/sfprojects/project/lib/vendor/symfony/lib/event_dispatcher/sfEventDispatcher.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/alex/projects/php-projects/sfprojects/project/lib/vendor/symfony/lib/autoload/sfCoreAutoload.class.php on line 99</pre>
</div>
<div></div>
<div>This means that you didn&#8217;t find &#8216;event_dispatcher&#8217; item that is external item. Please run</div>
<pre class="brush: js">$ ../git-sue/git-svn-update-externals</pre>
<div>to fix that.</div>
<div></div>
<div>4. Initialize your Symfony project.</div>
<pre class="brush: js">$ lib/vendor/symfony-1.4/data/bin/symfony generate:project {project_name}</pre>
<div id="_mcePaste">Note that Symfony also creates a symfony script at your project root directory. You can</div>
<div id="_mcePaste">use that instead of referring back to lib/vendor/&#8230;, which can be really repetitive.</div>
<div>5. Modify ./symfony to add directory tracking support for git. Before the chdir() call in</div>
<div id="_mcePaste">symfony, add the following line:</div>
<pre class="brush: php">register_shutdown_function(create_function('', 'touch("cache/.ignore");
touch("log/.cache");'));</pre>
<div>6. Initialize a project application. Repeat for other applications if project consists of more</div>
<div id="_mcePaste">than one application. You can skip this step if your project is still on the drawing board,</div>
<div id="_mcePaste">but pay attention to step 9.</div>
<pre class="brush: js">$ ./symfony generate:app {app_name}</pre>
<div>7. Configure git scm on project root and add user information. Signing key and remote</div>
<div id="_mcePaste">repository are optional (team/public project), although they are recommended for</div>
<div id="_mcePaste">obvious reasons.</div>
<pre class="brush: js">$ git init
$ git config user.name {real_name}
$ git config user.email {email_address}
$ # git config user.signingkey {gpg_key}
$ # git remote add origin {repo_url}</pre>
<div>8. Add git exclude information to .git/info/exclude. Files to be excluded are normally editing</div>
<div id="_mcePaste">backup copies and vendor files (which are already gitted). Special care is also needed</div>
<div id="_mcePaste">for cache and log directory because git don&#8217;t track empty directory but can introduce</div>
<div id="_mcePaste">symfony errors later on.</div>
<pre class="brush: js">~
cache/*
!cache/.ignore
log/*
!log/.ignore</pre>
<div id="_mcePaste">You can create the .ignore files now, especially if you skipped step 7.</div>
<pre class="brush: js">$ touch cache/.ignore log/.ignore</pre>
<div>9. Perform your initial commit. Optionally, you can also pushed your newly initialized</div>
<div id="_mcePaste">repository to the remote repo if you&#8217;ll be working with a team or just making it available</div>
<div id="_mcePaste">publicly.</div>
<pre class="brush: js">$ git add .
$ git commit -a -m 'Initial commit.'
$ # git push origin master</pre>
<div>10. Configure your httpd configuration with virtual hosting as appropriate, and don&#8217;t forgot to</div>
<div id="_mcePaste">alias /sf to lib/vendor/symfony-1.4/data/web/sf. Refer to the LAMP HOWTO for the</div>
<div id="_mcePaste">procedures. Upon (re)starting your httpd, you should be able now to see the Symfony</div>
<div id="_mcePaste">Congratulations page.</div>
]]></content:encoded>
			<wfw:commentRss>http://www.alexfilatov.com/2010/05/31/install-symfony-1-4-under-git/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.alexfilatov.com/2010/05/31/install-symfony-1-4-under-git/</feedburner:origLink></item>
		<item>
		<title>Virtual DJ Instrument Widget – HitPads Remixer</title>
		<link>http://feedproxy.google.com/~r/alexfilatov/YEDL/~3/oIiL6qm5QUU/</link>
		<comments>http://www.alexfilatov.com/2010/01/31/virtual-dj-instrument-widget-hitpads-remixer/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 12:17:48 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[entertainment]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[hitpads]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[remixer]]></category>
		<category><![CDATA[widget]]></category>

		<guid isPermaLink="false">http://www.alexfilatov.com/?p=151</guid>
		<description><![CDATA[About two weeks ago I finished with alpha version of Virtual DJ Remixer Widget &#8211; HitPads.com Now you can see it in action! This is Hitpads Remixer embedded: This is Youtube video how to play it: Few words about hitpads.com: HitPads.com is a total departure from last year&#8217;s music discovery paradigm: &#8220;I am listening to [...]]]></description>
			<content:encoded><![CDATA[<p>About two weeks ago I finished with alpha version of <a href="http://www.hitpads.com">Virtual DJ Remixer Widget &#8211; HitPads.com</a></p>
<p>Now you can see it in action! <img src='http://www.alexfilatov.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>This is Hitpads Remixer embedded:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="340" height="400" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0">
<param name="allowFullScreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="src" value="http://hitpads.com:8080/widget.swf" />
<param name="flashvars" value="remixerId=37" />
<param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="340" height="400" src="http://hitpads.com:8080/widget.swf" flashvars="remixerId=37" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><span id="more-151"></span></p>
<p>This is Youtube video how to play it:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="560" height="340" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0">
<param name="allowFullScreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="src" value="http://www.youtube.com/v/KAmtRW9wsr8&amp;hl=en_US&amp;fs=1&amp;" />
<param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="560" height="340" src="http://www.youtube.com/v/KAmtRW9wsr8&amp;hl=en_US&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<h5>Few words about hitpads.com:</h5>
<blockquote><p>HitPads.com is a total departure from last year&#8217;s music discovery paradigm: &#8220;I am listening to your song but I’ve stopped interacting with my computer&#8221;. Now listeners can engage your music with unprecedented input like a DJ thereby creating a brand new paradigm: &#8220;By interacting with my computer I am listening and getting to know your song.&#8221;</p>
<p><span style="font-size: x-small;">This Music Discovery Experience like no other is achieved via our Unique HitPads Remixer Virtual Instrument and Embeddable Widget, a Technological Breakthrough that Unifies Immersive Music Discovery, Multilevel Viral Music Publicity and Listener Driven Music Creation.</span></p></blockquote>
<p><a href="http://hitpads.com/pg/expages/read/tour/">Take the tour here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexfilatov.com/2010/01/31/virtual-dj-instrument-widget-hitpads-remixer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.alexfilatov.com/2010/01/31/virtual-dj-instrument-widget-hitpads-remixer/</feedburner:origLink></item>
		<item>
		<title>Symfony build model error: Unable to return ‘affix’ for unknown CreoleType</title>
		<link>http://feedproxy.google.com/~r/alexfilatov/YEDL/~3/ub8xG2IHL5g/</link>
		<comments>http://www.alexfilatov.com/2009/12/09/symfony-unable-to-return-affix-for-unknown-creoletype/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 18:13:22 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[bugfix]]></category>
		<category><![CDATA[creole]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[model]]></category>
		<category><![CDATA[Symfony]]></category>

		<guid isPermaLink="false">http://www.alexfilatov.com/?p=145</guid>
		<description><![CDATA[When I upgraded my local php to 5.3 version I&#8217;ve got the problem that symfony model won&#8217;t build. The error appeared was like: &#8220;Unable to return &#8216;affix&#8217; for unknown CreoleType&#8221; This is Creole issue &#8211; it cannot accept LONGVARCHAR and TEXT fields from Symfony schema. To fix this  please change text constant in CreoleTypes.php file [...]]]></description>
			<content:encoded><![CDATA[<p>When I upgraded my local php to 5.3 version I&#8217;ve got the problem that symfony model won&#8217;t build.</p>
<p>The error appeared was like: &#8220;Unable to return &#8216;affix&#8217; for unknown CreoleType&#8221;</p>
<p>This is Creole issue &#8211; it cannot accept LONGVARCHAR and TEXT fields from Symfony schema.</p>
<p>To fix this  please change text constant in CreoleTypes.php file (line 39 in my Creole version).</p>
<pre>const TEXT = 30; //php 5.3.0 fix, using an unused int</pre>
<p>This is not good solution but you need to build your model somehow. As temporary solution this is OK but we need to wait bugfix from Creole developers.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexfilatov.com/2009/12/09/symfony-unable-to-return-affix-for-unknown-creoletype/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://www.alexfilatov.com/2009/12/09/symfony-unable-to-return-affix-for-unknown-creoletype/</feedburner:origLink></item>
		<item>
		<title>Symfony sfAssetsLibraryPlugin assets resize script</title>
		<link>http://feedproxy.google.com/~r/alexfilatov/YEDL/~3/BscMRG3M3lw/</link>
		<comments>http://www.alexfilatov.com/2009/08/25/symfony-sfassetslibraryplugin-assets-resize-script/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 15:21:24 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[Nice to Have]]></category>
		<category><![CDATA[Symfony]]></category>
		<category><![CDATA[batch]]></category>
		<category><![CDATA[sfAssetsLibraryPlugin]]></category>

		<guid isPermaLink="false">http://www.alexfilatov.com/?p=111</guid>
		<description><![CDATA[Hi there! I&#8217;d like to share with this pretty simple script with you, hope it will save you few minutes. You guys who familiar with this Symfony plugin for assets management probably know that it uses sfThumbnail plugin for making thumbnails of image assets. sfThumbnail has configuration in app.yml and it looks like: all: sfAssetsLibrary: [...]]]></description>
			<content:encoded><![CDATA[<p>Hi there!</p>
<p>I&#8217;d like to share with this pretty simple script with you, hope it will save you few minutes.</p>
<p>You guys who familiar with this  Symfony plugin for assets management probably know that it uses sfThumbnail plugin for making thumbnails of image assets.<br />
sfThumbnail has configuration in app.yml and it looks like:</p>
<pre class="brush: js">all:
  sfAssetsLibrary:
    upload_dir:       media                  # Asset library root, under the web/ dir
    check_type:       false                  # Set to true if you want to restrict the type of assets
    types:            ['image']  # Accepted asset types if check_type is true
    thumbnail_dir:    thumbnail              # Where the image thumbnails are stored
    use_ImageMagick:  false                  # Set to true if you have the convert command
    thumbnails:                              # Name and size (in pixels) of the thumbnails created at upload
      tiny:                                 # Displayed in the list page
        width: 70
        height: 70
      small:                                 # Displayed in the list page
        width: 100
        height: 100
        shave: false                          # Cut strips to constraint the image size
      middle:
        width: 200
        height: 200
      large:                                 # Displayed in the details page
        width: 450
        height: 450
      original:                                 # Displayed in the details page
        width: 800
        height: 800
    search_pager_size: 20                    # Number of resuts per page
    mass_upload_size:  5                     # Number of file upload controls displayed in the mass upload form</pre>
<p>This is cool but when you have your project up and running and decided to add new type of thumbnail (for instance name it &#8216;big&#8217;)</p>
<pre style="font: normal normal normal 12px/18px Consolas, Monaco, 'Courier New', Courier, monospace;">      big:
        width: 400
        height: 400</pre>
<div>you&#8217;ll have a problem: you need to resize all old images according to new thumbnail type.</div>
<p><span id="more-111"></span>&#8220;This is simple science&#8221; &#8211; you need to get all assets objects and resize them in the following way:<br />
1. Create batch script in you symfony batch folder:</p>
<pre class="brush: text">$ symfony init-batch default dev mybatchname</pre>
<p>Also make sure that it users &#8216;backend&#8217; application (or application that uses sfAssetAdmin module)</p>
<p>2. Place content from the following code block into your batch script</p>
<pre class="brush: js"> &lt;?php /* sfAssets resizer batch script</pre>
<pre class="brush: js"> *
 * !!! BEFORE RUN THIS SCRIPT BACKUP YOUR ASSETS FOLDER !!!
 *
 * This batch script resizes all image assets stored by sfAssetsLibraryPlugin plugin
 * If you changed thumbnails' dimentions or added new you'd love this script.
 * Just make changes to your app.yml and run this script.
 * This script doesn't deletes any assets from disk - it's overwrites.
 *
 * @package    alexfilatov
 * @subpackage batch
 * @author     Alex Filatov http://www.alexfilatov.com
 */

define('SF_ROOT_DIR',    realpath(dirname(__file__).'/..'));
define('SF_APP',         'backend');
define('SF_ENVIRONMENT', 'dev');
define('SF_DEBUG',       1);

require_once(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php');

// initialize database manager

$databaseManager = new sfDatabaseManager();
$databaseManager-&gt;initialize();

// batch process starts here
// If you have a lot of records you should refine this using hydration
$c = new Criteria();
$c-&gt;add(sfAssetPeer::TYPE, 'image');
$assets = sfAssetPeer::doSelect($c);

foreach ($assets as $asset) {
	echo 'Processing ' . SF_ROOT_DIR.DIRECTORY_SEPARATOR.'/web/'.$asset-&gt;getFolderPath() . ':' . $asset-&gt;getFilename() . '...';
	sfAssetsLibraryTools::createThumbnails($asset-&gt;getFolderPath(), $asset-&gt;getFilename());
	echo "done!n";
}
// batch process ends here

?&gt;</pre>
<p>3. Run it</p>
<pre class="brush: text">php mybatchname.php</pre>
<p>Important notice: if you have a lot of image assets (thousands) you need to refine this script using object hydration.<br />
I&#8217;ll do it later, just to let you know.<br />
Peace! <img src='http://www.alexfilatov.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexfilatov.com/2009/08/25/symfony-sfassetslibraryplugin-assets-resize-script/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.alexfilatov.com/2009/08/25/symfony-sfassetslibraryplugin-assets-resize-script/</feedburner:origLink></item>
		<item>
		<title>Yellow Bird – new look of an old Google Street View</title>
		<link>http://feedproxy.google.com/~r/alexfilatov/YEDL/~3/Y67ewS1XIKU/</link>
		<comments>http://www.alexfilatov.com/2009/08/21/yellow-bird-new-look-of-old-google-street-view/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 12:38:38 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[3d]]></category>
		<category><![CDATA[google street view]]></category>
		<category><![CDATA[techcrunch]]></category>
		<category><![CDATA[yellow bird]]></category>

		<guid isPermaLink="false">http://www.alexfilatov.com/?p=100</guid>
		<description><![CDATA[The name is YellowBird! * you can drag the video by your mouse Imagine Star Wars refined with this technology? read article on techcrunch]]></description>
			<content:encoded><![CDATA[<p>The name is <a href="http://www.yellowbirdsdonthavewingsbuttheyflytomakeyouexperiencea3dreality.com/">YellowBird</a>!</p>
<address><em>* you can drag the video by your mouse</em></address>
<p><object id="yellowBird" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="262" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0">
<param name="align" value="middle" />
<param name="quality" value="high" />
<param name="bgcolor" value="#869ca7" />
<param name="allowScriptAccess" value="always" />
<param name="allowFullScreen" value="true" />
<param name="wmode" value="transparent" />
<param name="src" value="http://player.yb.nl/yb/yb.swf" />
<param name="name" value="yellowBird" />
<param name="allowfullscreen" value="true" /><embed id="yellowBird" type="application/x-shockwave-flash" width="425" height="262" src="http://player.yb.nl/yb/yb.swf" name="yellowBird" wmode="transparent" allowfullscreen="true" allowscriptaccess="always" bgcolor="#869ca7" quality="high" align="middle"></embed></object></p>
<p>Imagine Star Wars refined with this technology? <img src='http://www.alexfilatov.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>read article on <a href="http://www.techcrunch.com/2009/08/03/if-you-could-see-google-street-view-in-video-it-would-look-like-yellowbird/">techcrunch</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexfilatov.com/2009/08/21/yellow-bird-new-look-of-old-google-street-view/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.alexfilatov.com/2009/08/21/yellow-bird-new-look-of-old-google-street-view/</feedburner:origLink></item>
		<item>
		<title>Typographic Design Patterns and Best Practices</title>
		<link>http://feedproxy.google.com/~r/alexfilatov/YEDL/~3/xMklkS-G8xU/</link>
		<comments>http://www.alexfilatov.com/2009/08/21/typographic-design-patterns-and-best-practices/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 07:31:09 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[Nice to Have]]></category>
		<category><![CDATA[best practices]]></category>
		<category><![CDATA[smashing magazine]]></category>
		<category><![CDATA[typography]]></category>

		<guid isPermaLink="false">http://www.alexfilatov.com/?p=98</guid>
		<description><![CDATA[Just read interesting article on Smashing magazine regarding best practicies in website typography. Conclusion: The study shows a clear set of common practices and guidelines for setting type in Web design. Note, though, that these findings are not scientific and should serve only as rough guidelines: Either serif or sans-serif fonts are fine for body [...]]]></description>
			<content:encoded><![CDATA[<p>Just read interesting article on <a href="http://www.smashingmagazine.com">Smashing magazine</a> regarding best practicies in website typography.</p>
<p><strong>Conclusion: </strong></p>
<p style="font-size: 12px; margin-top: 13px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 1.72em;">The study shows a clear set of common practices and guidelines for setting type in Web design. Note, though, that these findings are not scientific and should serve only as rough guidelines:</p>
<ol style="font-size: 12px; margin-top: 1px; margin-right: 0px; margin-bottom: 1px; margin-left: 0.5em;">
<li style="font-size: 12px; padding-top: 8px; margin: 0px;">Either serif or sans-serif fonts are fine for body copy and headings, but sans-serif fonts are still more popular for both.</li>
<li style="font-size: 12px; padding-top: 8px; margin: 0px;">Common choices for headlines are Georgia, Arial and Helvetica.</li>
<li style="font-size: 12px; padding-top: 8px; margin: 0px;">Common choices for body copy are Georgia, Arial, Verdana and Lucida Grande.</li>
<li style="font-size: 12px; padding-top: 8px; margin: 0px;">The most popular font size for headings is a range between 18 and 29 pixels.</li>
<li style="font-size: 12px; padding-top: 8px; margin: 0px;">The most popular font size for body copy is a range between 12 and 14 pixels.</li>
<li style="font-size: 12px; padding-top: 8px; margin: 0px;">Header font size ÷ Body copy font size = 1.96.</li>
<li style="font-size: 12px; padding-top: 8px; margin: 0px;">Line height (pixels) ÷ body copy font size (pixels) = 1.48.</li>
<li style="font-size: 12px; padding-top: 8px; margin: 0px;">Line length (pixels) ÷ line height (pixels) = 27.8.</li>
<li style="font-size: 12px; padding-top: 8px; margin: 0px;">Space between paragraphs (pixels) ÷ line height (pixels) = 0.754.</li>
<li style="font-size: 12px; padding-top: 8px; margin: 0px;">The optimal number of characters per line is between 55 and 75, but between 75 and 85 characters per line is more popular,</li>
<li style="font-size: 12px; padding-top: 8px; margin: 0px;">Body text is left-aligned, image replacement is rarely used and links are either underlined or highlighted with bold or color.</li>
</ol>
<p>Read full article here: <a href="http://www.smashingmagazine.com/2009/08/20/typographic-design-survey-best-practices-from-the-best-blogs/">Typographic Design Patterns and Best Practices</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexfilatov.com/2009/08/21/typographic-design-patterns-and-best-practices/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.alexfilatov.com/2009/08/21/typographic-design-patterns-and-best-practices/</feedburner:origLink></item>
		<item>
		<title>Hi5 social network – a trick how to uncheck all your contacts from thirdparty address book</title>
		<link>http://feedproxy.google.com/~r/alexfilatov/YEDL/~3/MUmCurlfGvc/</link>
		<comments>http://www.alexfilatov.com/2009/08/18/hi5-social-network-a-trick-how-to-uncheck-all-your-contacts-from-thirdparty-address-book/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 08:18:57 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.alexfilatov.com/?p=91</guid>
		<description><![CDATA[Hello! Just got an invitation to hi5 social network and accepted it. After that I decided to find which of my friends are already there and imported all contacts from GMail address book. Threre were more than 500 contacts but only 30 were already registered in hi5. And, the worst news, ALL of them were [...]]]></description>
			<content:encoded><![CDATA[<p>Hello!</p>
<p>Just got an invitation to <a href="http://www.hi5.com">hi5</a> social network and accepted it.</p>
<p>After that I decided to find which of my friends are already there and imported all contacts from GMail address book.</p>
<p>Threre were more than 500 contacts but only 30 were already registered in hi5.</p>
<p>And, the worst news, ALL of them were checked! This is unfair because there no any possibility to uncheck them all.</p>
<p>To uncheck them all you need to do the following steps (assume that you use <a href="http://www.mozilla.com/firefox/">Firefox</a> with <a href="https://addons.mozilla.org/en-US/firefox/addon/1843">Firebug</a> addon):</p>
<p>1. Select &#8220;manually send invitations&#8221; (instead of automatically sending) and you&#8217;ll see the list of all your contacts.</p>
<p>2. Take a look in hi5 html page source code and and make sure they are using JQuery there.</p>
<p>3. Open console in Firebug and execute the following code:</p>
<pre class="brush: js">

$("INPUT[type='checkbox']").attr('checked', false)
</pre>
<p><span>All checkboxes became unchecked.</span></p>
<p><span>4. Manually check all necessary contacts and press submit.</span></p>
<p><span>This is minus for hi5 developers &#8211; there MUST be a possibility to uncheck all contacts!<br />
</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexfilatov.com/2009/08/18/hi5-social-network-a-trick-how-to-uncheck-all-your-contacts-from-thirdparty-address-book/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.alexfilatov.com/2009/08/18/hi5-social-network-a-trick-how-to-uncheck-all-your-contacts-from-thirdparty-address-book/</feedburner:origLink></item>
	</channel>
</rss>
