<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>/home/edivad</title>
	<atom:link href="http://edivad.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://edivad.wordpress.com</link>
	<description>Tech Travels</description>
	<pubDate>Wed, 18 Jun 2008 09:03:40 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
	<language>en</language>
			<item>
		<title>[WSAD] changing default workspace</title>
		<link>http://edivad.wordpress.com/2008/06/18/wsad-changing-default-workspace/</link>
		<comments>http://edivad.wordpress.com/2008/06/18/wsad-changing-default-workspace/#comments</comments>
		<pubDate>Wed, 18 Jun 2008 09:03:40 +0000</pubDate>
		<dc:creator>edivad</dc:creator>
		
		<category><![CDATA[WSAD]]></category>

		<category><![CDATA[eclipse]]></category>

		<category><![CDATA[programming]]></category>

		<category><![CDATA[default]]></category>

		<category><![CDATA[ibm]]></category>

		<category><![CDATA[workspace]]></category>

		<guid isPermaLink="false">http://edivad.wordpress.com/?p=118</guid>
		<description><![CDATA[What if in Websphere Studio Application Developer you have set a workspace as default and now you want to change it?
Setting a workspace as default make WSAD not asking you for which workspace to use. If you have to reset the option execute WSAD from command line with the -setworkspace parameter.
On windows systems the location [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>What if in Websphere Studio Application Developer you have set a workspace as default and now you want to change it?</p>
<p>Setting a workspace as default make WSAD not asking you for which workspace to use. If you have to reset the option execute WSAD from command line with the <strong>-setworkspace</strong> parameter.</p>
<p>On windows systems the location probably is the following</p>
<p><strong>C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.1&gt;wsappdev.exe -setworkspace</strong></p>
<p>Maybe this could even work for pure eclipse but I&#8217;ve not tested it.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/edivad.wordpress.com/118/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/edivad.wordpress.com/118/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/edivad.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/edivad.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/edivad.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/edivad.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/edivad.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/edivad.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/edivad.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/edivad.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/edivad.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/edivad.wordpress.com/118/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edivad.wordpress.com&blog=285424&post=118&subd=edivad&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://edivad.wordpress.com/2008/06/18/wsad-changing-default-workspace/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Increase java heap size</title>
		<link>http://edivad.wordpress.com/2008/06/03/increase-java-heap-size/</link>
		<comments>http://edivad.wordpress.com/2008/06/03/increase-java-heap-size/#comments</comments>
		<pubDate>Tue, 03 Jun 2008 13:48:13 +0000</pubDate>
		<dc:creator>edivad</dc:creator>
		
		<category><![CDATA[heap]]></category>

		<category><![CDATA[java]]></category>

		<category><![CDATA[programming]]></category>

		<category><![CDATA[heap size]]></category>

		<category><![CDATA[java.lang.OutOfMemoryError]]></category>

		<category><![CDATA[memory]]></category>

		<category><![CDATA[OutOfMemoryError]]></category>

		<guid isPermaLink="false">http://edivad.wordpress.com/?p=117</guid>
		<description><![CDATA[It could happen sometimes (more often when working with images) that a java program hang up with a java.lang.OutOfMemoryError. This generally happen because there&#8217;s not enough space in the heap memory for storing objects.
You can change the heap size or by the Java Control Panel or by the command line. I prefer this last one [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>It could happen sometimes (more often when working with images) that a java program hang up with a <strong>java.lang.OutOfMemoryError</strong>. This generally happen because there&#8217;s not enough space in the heap memory for storing objects.</p>
<p>You can change the heap size or by the Java Control Panel or by the command line. I prefer this last one and here is the syntax</p>
<p><strong>java -Xms&lt;startHeapSize&gt; -Xmx&lt;maximumMeapSize&gt; &#8230;</strong></p>
<p>By default values should be <em>-Xms32m -Xmx128m</em> but I often solved with this values</p>
<p><strong>java -Xms32m -Xmx512m &#8230;</strong></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/edivad.wordpress.com/117/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/edivad.wordpress.com/117/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/edivad.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/edivad.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/edivad.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/edivad.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/edivad.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/edivad.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/edivad.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/edivad.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/edivad.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/edivad.wordpress.com/117/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edivad.wordpress.com&blog=285424&post=117&subd=edivad&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://edivad.wordpress.com/2008/06/03/increase-java-heap-size/feed/</wfw:commentRss>
		</item>
		<item>
		<title>[Script-Fu] case sensitive file-glob</title>
		<link>http://edivad.wordpress.com/2008/06/03/script-fu-case-sensitive-file-glob/</link>
		<comments>http://edivad.wordpress.com/2008/06/03/script-fu-case-sensitive-file-glob/#comments</comments>
		<pubDate>Tue, 03 Jun 2008 12:03:47 +0000</pubDate>
		<dc:creator>edivad</dc:creator>
		
		<category><![CDATA[gimp]]></category>

		<category><![CDATA[script-fu]]></category>

		<category><![CDATA[case sensitive]]></category>

		<category><![CDATA[file-glob]]></category>

		<category><![CDATA[scheme]]></category>

		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://edivad.wordpress.com/?p=116</guid>
		<description><![CDATA[Let&#8217;s talk again about script-fu. file-glob is a beautiful function that retrieve all the files within a specified directory with the specified pattern. But if you have to deal with case sensitive file system, soon or late you&#8217;ll bump in the problem that *.jpg is different from *.JPG.
In order to solve this it&#8217;s enough to [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Let&#8217;s talk again about script-fu. <strong>file-glob</strong> is a beautiful function that retrieve all the files within a specified directory with the specified pattern. But if you have to deal with case sensitive file system, soon or late you&#8217;ll bump in the problem that *.jpg is different from *.JPG.</p>
<p>In order to solve this it&#8217;s enough to think about regular expression. Yes, it seems that file-glob make use of regular expression for file pattern matching. So if you, for example, have a patter like <strong>/home/edivad/img/*.jpg</strong> and want a case <strong>in</strong>sensitive matching you can use a pattern like <strong>/home/edivad/img/*.[jJ][pP][gG]</strong>.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/edivad.wordpress.com/116/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/edivad.wordpress.com/116/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/edivad.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/edivad.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/edivad.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/edivad.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/edivad.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/edivad.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/edivad.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/edivad.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/edivad.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/edivad.wordpress.com/116/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edivad.wordpress.com&blog=285424&post=116&subd=edivad&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://edivad.wordpress.com/2008/06/03/script-fu-case-sensitive-file-glob/feed/</wfw:commentRss>
		</item>
		<item>
		<title>[Script-Fu] portfolio</title>
		<link>http://edivad.wordpress.com/2008/05/29/script-fu-portfolio/</link>
		<comments>http://edivad.wordpress.com/2008/05/29/script-fu-portfolio/#comments</comments>
		<pubDate>Thu, 29 May 2008 14:25:18 +0000</pubDate>
		<dc:creator>edivad</dc:creator>
		
		<category><![CDATA[gimp]]></category>

		<category><![CDATA[script-fu]]></category>

		<category><![CDATA[photo]]></category>

		<category><![CDATA[portfolio]]></category>

		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://edivad.wordpress.com/?p=114</guid>
		<description><![CDATA[I did it again. For the photo training I&#8217;m attempting to, I need to show at the final year test a portfolio for the reportage subject.
I have to show 30 photos paged in a portfolio. So in order to speed up the pagination work, I did a gimp script.
This will process the opened image and [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I did it again. For the photo training I&#8217;m attempting to, I need to show at the final year test a portfolio for the reportage subject.</p>
<p>I have to show 30 photos paged in a portfolio. So in order to speed up the pagination work, I did a gimp script.</p>
<p>This will process the opened image and generate a new file with the paginated photo and a caption.</p>
<p>Here is the <a href="http://edivad.files.wordpress.com/2008/05/portfolio.pdf">code</a>; pdf as usual damn wordpress.</p>
<p>Again, I&#8217;m not proof in script-fu so if you encounter something wrong or that can be done better, use the comments <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/edivad.wordpress.com/114/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/edivad.wordpress.com/114/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/edivad.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/edivad.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/edivad.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/edivad.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/edivad.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/edivad.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/edivad.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/edivad.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/edivad.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/edivad.wordpress.com/114/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edivad.wordpress.com&blog=285424&post=114&subd=edivad&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://edivad.wordpress.com/2008/05/29/script-fu-portfolio/feed/</wfw:commentRss>
		</item>
		<item>
		<title>[emacs] toggle a buffer in read only</title>
		<link>http://edivad.wordpress.com/2008/05/29/emacs-toggle-a-buffer-in-read-only/</link>
		<comments>http://edivad.wordpress.com/2008/05/29/emacs-toggle-a-buffer-in-read-only/#comments</comments>
		<pubDate>Thu, 29 May 2008 13:17:27 +0000</pubDate>
		<dc:creator>edivad</dc:creator>
		
		<category><![CDATA[emacs]]></category>

		<category><![CDATA[buffer]]></category>

		<category><![CDATA[read only]]></category>

		<guid isPermaLink="false">http://edivad.wordpress.com/?p=113</guid>
		<description><![CDATA[I&#8217;m a bit abstracted and usually works with a lot of opened files. So it happens sometimes that in the rush of job i ended editing a file instead of another.
I&#8217;m also usual to open existing files I wrote in order to get some hints. And I could edit them for error. To avoid this [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I&#8217;m a bit abstracted and usually works with a lot of opened files. So it happens sometimes that in the rush of job i ended editing a file instead of another.</p>
<p>I&#8217;m also usual to open existing files I wrote in order to get some hints. And I could edit them for error. To avoid this I usually use my preferred editor functionality to set a buffer as read only, so it&#8217;s not possible to write inside it. How?<strong></strong></p>
<p><strong>M-x toggle-read-only</strong></p>
<p>Easy! <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/edivad.wordpress.com/113/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/edivad.wordpress.com/113/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/edivad.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/edivad.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/edivad.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/edivad.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/edivad.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/edivad.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/edivad.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/edivad.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/edivad.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/edivad.wordpress.com/113/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edivad.wordpress.com&blog=285424&post=113&subd=edivad&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://edivad.wordpress.com/2008/05/29/emacs-toggle-a-buffer-in-read-only/feed/</wfw:commentRss>
		</item>
		<item>
		<title>[CakePHP] Alias in the url. Take 2</title>
		<link>http://edivad.wordpress.com/2008/05/06/cakephp-alias-in-the-url-take-2/</link>
		<comments>http://edivad.wordpress.com/2008/05/06/cakephp-alias-in-the-url-take-2/#comments</comments>
		<pubDate>Tue, 06 May 2008 09:17:01 +0000</pubDate>
		<dc:creator>edivad</dc:creator>
		
		<category><![CDATA[cakephp]]></category>

		<category><![CDATA[php]]></category>

		<category><![CDATA[programming]]></category>

		<category><![CDATA[web]]></category>

		<category><![CDATA[alias]]></category>

		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">http://edivad.wordpress.com/?p=111</guid>
		<description><![CDATA[Some days ago, I posted about having dynamic URL aliases with cake-php 1.1.18. In that post I used the AppError object trapping the missingAction error.
When I was ready for production environment, during tests I wondered that the AppError is ignored when core debug level is set to 0. While I&#8217;m asking about the utility of [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Some days ago, I posted about having <a href="http://edivad.wordpress.com/2008/04/18/cakephp-alias-in-the-url/">dynamic URL aliases</a> with <a href="http://www.cakephp.org">cake-php</a> 1.1.18. In that post I used the <a href="http://api.cakephp.org/class_error_handler.html">AppError</a> object trapping the <a href="http://api.cakephp.org/class_error_handler.html#ac91f6fd4f8ae6a85ea2495be16eb46b">missingAction</a> error.</p>
<p>When I was ready for production environment, during tests I wondered that the AppError is ignored when <a href="http://api.cakephp.org/app_2config_2core_8php.html#73585d7121de037cf2e2ca12b27eb83e">core debug level</a> is set to 0. While I&#8217;m asking about the utility of this behavior, I <a href="http://groups.google.com/group/cake-php/browse_thread/thread/4b9da303ec13bc78">asked in the list</a> and searched for a solution.</p>
<p>One solution could be to take the __construct method from the ErrorHandler, removing the Configure::read() test and paste it into the AppError::__construct() without calling the parent::__construct(). But in this way if some new feature, fixes, etc. is distributed within that method you&#8217;ll probably miss it until you monitor each release.</p>
<p>Finally I opted for useing the routes.php file mapping each action and then mapping the &#8220;missing action&#8221; to the controller::view() action and the manage the code inside it. Here is a PDF with an <a href="http://edivad.files.wordpress.com/2008/05/alias.pdf">extract of the code</a>.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/edivad.wordpress.com/111/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/edivad.wordpress.com/111/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/edivad.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/edivad.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/edivad.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/edivad.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/edivad.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/edivad.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/edivad.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/edivad.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/edivad.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/edivad.wordpress.com/111/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edivad.wordpress.com&blog=285424&post=111&subd=edivad&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://edivad.wordpress.com/2008/05/06/cakephp-alias-in-the-url-take-2/feed/</wfw:commentRss>
		</item>
		<item>
		<title>[CakePHP] $ajax.observeField and Session lost</title>
		<link>http://edivad.wordpress.com/2008/04/24/cakephp-ajaxobservefield-and-session-lost/</link>
		<comments>http://edivad.wordpress.com/2008/04/24/cakephp-ajaxobservefield-and-session-lost/#comments</comments>
		<pubDate>Thu, 24 Apr 2008 09:35:09 +0000</pubDate>
		<dc:creator>edivad</dc:creator>
		
		<category><![CDATA[ajax]]></category>

		<category><![CDATA[cakephp]]></category>

		<category><![CDATA[php]]></category>

		<category><![CDATA[programming]]></category>

		<category><![CDATA[cake_security]]></category>

		<category><![CDATA[observeField]]></category>

		<category><![CDATA[session]]></category>

		<guid isPermaLink="false">http://edivad.wordpress.com/?p=110</guid>
		<description><![CDATA[Finally even me landed on the AjaxHelper for give a bit of coolnes (;)) to an application of mine. I&#8217;m still using 1.1.18 version of CakePHP.
The problem finally was that when I did an ajax request call the session was restored. Asking in the Mailing List the problems seems to be that when an ajax [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Finally even me landed on the <a href="http://api.cakephp.org/class_ajax_helper.html">AjaxHelper</a> for give a bit of coolnes (;)) to an application of mine. I&#8217;m still using 1.1.18 version of CakePHP.</p>
<p>The problem finally was that when I did an ajax request call the session was restored. <a href="http://groups.google.com/group/cake-php/browse_thread/thread/7bd3d48c346e7b36/1c60771b7b3b3246?#1c60771b7b3b3246">Asking</a> in the Mailing List the problems seems to be that when an ajax call has been made the browser doesn&#8217;t send a correct User-Agent.</p>
<p>Starting from the hint gave me in the answer to my post, I found the solution that was setting the <strong>CAKE_SECURITY</strong> in app <strong>core.php</strong> to a level of <strong>medium</strong> or lower.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/edivad.wordpress.com/110/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/edivad.wordpress.com/110/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/edivad.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/edivad.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/edivad.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/edivad.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/edivad.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/edivad.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/edivad.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/edivad.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/edivad.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/edivad.wordpress.com/110/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edivad.wordpress.com&blog=285424&post=110&subd=edivad&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://edivad.wordpress.com/2008/04/24/cakephp-ajaxobservefield-and-session-lost/feed/</wfw:commentRss>
		</item>
		<item>
		<title>[CakePHP] alias in the url</title>
		<link>http://edivad.wordpress.com/2008/04/18/cakephp-alias-in-the-url/</link>
		<comments>http://edivad.wordpress.com/2008/04/18/cakephp-alias-in-the-url/#comments</comments>
		<pubDate>Fri, 18 Apr 2008 08:53:57 +0000</pubDate>
		<dc:creator>edivad</dc:creator>
		
		<category><![CDATA[cakephp]]></category>

		<category><![CDATA[php]]></category>

		<category><![CDATA[programming]]></category>

		<category><![CDATA[alias]]></category>

		<category><![CDATA[controller]]></category>

		<category><![CDATA[mvc]]></category>

		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">http://edivad.wordpress.com/?p=107</guid>
		<description><![CDATA[The task was to have &#8220;aliases&#8221; for url. For example let&#8217;s think about a ProjectsController; each project is characterized by a unique id,  a unique name and some other attributes. With the cake way you can refer to the projects with /projects/add, /projects/edit/$id, /projects/delete/$id and /projects/view/$id.
I would like to have an alias for the [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The task was to have &#8220;aliases&#8221; for url. For example let&#8217;s think about a <code>ProjectsController</code>; each project is characterized by a unique id,  a unique name and some other attributes. With the cake way you can refer to the projects with <code>/projects/add</code>, <code>/projects/edit/$id</code>, <code>/projects/delete/$id</code> and <code>/projects/view/$id</code>.</p>
<p>I would like to have an alias for the view: call each project even with a url like <code>/projects/$name</code> (friendlier url).</p>
<p>I achieved the task extending the <code>ErrorHandler::missingAction()</code>. Here is the <a href="http://edivad.files.wordpress.com/2008/04/error-php.pdf">code I used (pdf)</a>.</p>
<p>I don&#8217;t know if this is the proper way to do this but it&#8217;s working.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/edivad.wordpress.com/107/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/edivad.wordpress.com/107/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/edivad.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/edivad.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/edivad.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/edivad.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/edivad.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/edivad.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/edivad.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/edivad.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/edivad.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/edivad.wordpress.com/107/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edivad.wordpress.com&blog=285424&post=107&subd=edivad&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://edivad.wordpress.com/2008/04/18/cakephp-alias-in-the-url/feed/</wfw:commentRss>
		</item>
		<item>
		<title>[CakePHP] disable model queries caching</title>
		<link>http://edivad.wordpress.com/2008/04/15/cakephp-disable-model-queries-caching/</link>
		<comments>http://edivad.wordpress.com/2008/04/15/cakephp-disable-model-queries-caching/#comments</comments>
		<pubDate>Tue, 15 Apr 2008 14:47:16 +0000</pubDate>
		<dc:creator>edivad</dc:creator>
		
		<category><![CDATA[cakephp]]></category>

		<category><![CDATA[php]]></category>

		<category><![CDATA[programming]]></category>

		<category><![CDATA[model]]></category>

		<category><![CDATA[cache]]></category>

		<category><![CDATA[queries]]></category>

		<guid isPermaLink="false">http://edivad.wordpress.com/?p=105</guid>
		<description><![CDATA[Again a simple tip. CakePHP by default, in order to optimize performance, has a query caching system. This is a very cool feature but sometimes it may be self-defeating. For example when you do queries for Unit Testing.
In order to disable query caching, it&#8217;s enough to set the model cacheQueries variable to false. Setting it [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Again a simple tip. CakePHP by default, in order to optimize performance, has a query caching system. This is a very cool feature but sometimes it may be self-defeating. For example when you do queries for Unit Testing.</p>
<p>In order to disable query caching, it&#8217;s enough to set the model cacheQueries variable to false. Setting it to true will re-enable queries caching.</p>
<p>You can disable it for the whole model &#8220;life-time&#8221; setting it during &#8220;design time&#8221;</p>
<pre>
&lt;?php
class Project extends AppModel {
var $name = "Project";
var $customValidate = array("name");
var $cacheQueries = false;
...
?&gt;
</pre>
<p>or you can temporarily disable it by calling the <strong>$this-&gt;Model-&gt;cacheQueries=false</strong> (use your model instead of &#8220;Model&#8221; <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )</p>
<p>Here is some <a href="http://edivad.files.wordpress.com/2008/04/code.pdf">extract of code (pdf)</a>.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/edivad.wordpress.com/105/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/edivad.wordpress.com/105/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/edivad.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/edivad.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/edivad.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/edivad.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/edivad.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/edivad.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/edivad.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/edivad.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/edivad.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/edivad.wordpress.com/105/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edivad.wordpress.com&blog=285424&post=105&subd=edivad&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://edivad.wordpress.com/2008/04/15/cakephp-disable-model-queries-caching/feed/</wfw:commentRss>
		</item>
		<item>
		<title>[Script-Fu] webify</title>
		<link>http://edivad.wordpress.com/2008/04/11/script-fu-webify/</link>
		<comments>http://edivad.wordpress.com/2008/04/11/script-fu-webify/#comments</comments>
		<pubDate>Fri, 11 Apr 2008 13:04:46 +0000</pubDate>
		<dc:creator>edivad</dc:creator>
		
		<category><![CDATA[gimp]]></category>

		<category><![CDATA[scheme]]></category>

		<category><![CDATA[script-fu]]></category>

		<category><![CDATA[dpi]]></category>

		<category><![CDATA[grayscale]]></category>

		<category><![CDATA[resize]]></category>

		<category><![CDATA[scale]]></category>

		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://edivad.wordpress.com/?p=102</guid>
		<description><![CDATA[Finally I entered also the Script-Fu world. For the photography school I&#8217;m attempting I had to deliver to my teacher about 350 photos. posting them i JPG full resolution would have been raving. So I though to my self, why don&#8217;t learn a bit of script-fu and do a script for Gimp that will convert [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Finally I entered also the Script-Fu world. For the photography school I&#8217;m attempting I had to deliver to my teacher about 350 photos. posting them i JPG full resolution would have been raving. So I though to my self, why don&#8217;t learn a bit of script-fu and do a script for Gimp that will convert a directory of JPG into others JPG of smalles size?</p>
<p>I know I could have searched for something already done but I wouldn&#8217;t have learned Script-Fu/scheme.</p>
<p>This is my first script. I surely have not followed conventions and surely it could have been done better. Maybe there will be a time when I will improve it. For now it&#8217;s it and it&#8217;s working for my tasks.</p>
<p>The script will take a single JPG or all JPGs in a Directory, resize it to a custom size (by long image side), default 800px, convert it to 72dpi and save it with a different name. Leave a color version or a quick conversion to grayscale. This last one is useful in order to have a look for an entire set if it looks better in color or B&amp;W.</p>
<p>However here is the <a href="http://edivad.files.wordpress.com/2008/04/webify-1001.pdf">source code (pdf)</a> to copy and paste into an scm file.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/edivad.wordpress.com/102/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/edivad.wordpress.com/102/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/edivad.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/edivad.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/edivad.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/edivad.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/edivad.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/edivad.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/edivad.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/edivad.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/edivad.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/edivad.wordpress.com/102/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edivad.wordpress.com&blog=285424&post=102&subd=edivad&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://edivad.wordpress.com/2008/04/11/script-fu-webify/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>