<?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>dogan kaya berktas &#187; tech</title>
	<atom:link href="http://doganberktas.com/category/tech/feed/" rel="self" type="application/rss+xml" />
	<link>http://doganberktas.com</link>
	<description>is actually from a small planet somewhere in the vicinity of Betelgeuse</description>
	<lastBuildDate>Thu, 29 Jul 2010 22:50:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Sending E-mail with Rails via Gmail (Spoiler Alert! this is for dummies)</title>
		<link>http://doganberktas.com/2010/07/30/sending-e-mail-with-rails-via-gmail-spoiler-alert-this-is-for-dummies/</link>
		<comments>http://doganberktas.com/2010/07/30/sending-e-mail-with-rails-via-gmail-spoiler-alert-this-is-for-dummies/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 22:06:56 +0000</pubDate>
		<dc:creator>dkberktas</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[actionmailler]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[RoR]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://doganberktas.com/?p=502</guid>
		<description><![CDATA[Yes, Rails is super cool, everything is super easy, and so far I really fall in love with it. But why is it that hard to send an e-mail via Gmail !?! So after messing up a couple of git branches, I finally get it work, yey! Here are the steps: Watch the railscast about [...]]]></description>
			<content:encoded><![CDATA[<p>Yes, Rails is super cool, everything is super easy, and so far I really fall in love with it. But why is it that hard to send an e-mail via Gmail !?!</p>
<p>So after messing up a couple of git branches, I finally get it work, yey!</p>
<p>Here are the steps:</p>
<ul>
<li>Watch the railscast about sending <a href="http://railscasts.com/episodes/61-sending-email">email</a></li>
<li>Install the gem with TLS</li>
<pre>sudo gem install ambethia-smtp-tls -v '1.1.2' --source http://gems.github.com</pre>
<li>Add the following to your environment.rb (Be careful after the Rails::Initializer.run do |config| block. )</li>
<pre>#to the top of file
require 'smtp-tls'

...
#to the very end of the file
ActionMailer::Base.smtp_settings =
{
    :address =&gt; "smtp.gmail.com",
    :port =&gt; 587,
    :domain =&gt; "gmail.com",
    :user_name =&gt; "dkberktas",#not with @gmail.com
    :password =&gt; "xxxyyyzzz",
    :authentication =&gt; :plain,
    :enable_starttls_auto =&gt; true
}</pre>
<li>Run the mailer generator by</li>
<pre>script/generate mailer user_mailer
</pre>
<li>Go to UserMailer class and add the method</li>
<pre>  def registration_confirmation()
    recipients  "xxx@gmail.com"
    from        "xxx@gmail.com"
    subject     "Thank you for being that awesome"
    body        "no I am just kidding" #if you want to pass parameter do it like this -- &gt; ":user =&gt; user"
  end
</pre>
<li>Add a sample method to application controller and add it to the routes.rb</li>
<pre>#in application controller
  def mailDeneme
    UserMailer.deliver_registration_confirmation()
    render :text =&gt; "OK"
  end
#in routes.rb
map.mail  '/mail',  :controller =&gt; 'application', :action =&gt; 'mailDeneme'
</pre>
</ul>
<p>If you see an error like this:</p>
<pre>Net::SMTPAuthenticationError (530 5.7.0 Must issue a STARTTLS command first.</pre>
<p>You miss the item above about  installing smtp-tls gem. Read it again again, or check this forum <a href="http://www.railsforum.com/viewtopic.php?id=20777">post</a>.</p>
<p>ps. <a href="http://guides.rubyonrails.org/action_mailer_basics.html">This</a> is the official rails guide.<br />
ps2. this is another <a href="http://douglasfshearer.com/blog/gmail-smtp-with-ruby-on-rails-and-actionmailer">link</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://doganberktas.com/2010/07/30/sending-e-mail-with-rails-via-gmail-spoiler-alert-this-is-for-dummies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Summary of Web Application Libraries for iPhone</title>
		<link>http://doganberktas.com/2010/07/17/summary-of-web-application-libraries-for-iphone/</link>
		<comments>http://doganberktas.com/2010/07/17/summary-of-web-application-libraries-for-iphone/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 23:46:13 +0000</pubDate>
		<dc:creator>dkberktas</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iui]]></category>
		<category><![CDATA[iwebkit]]></category>
		<category><![CDATA[jqtouch]]></category>
		<category><![CDATA[pastrykit]]></category>
		<category><![CDATA[sencha touch]]></category>
		<category><![CDATA[spoutcore]]></category>

		<guid isPermaLink="false">http://doganberktas.com/?p=437</guid>
		<description><![CDATA[PastryKit &#8212; it is from Apple, but it is not public,  you can see it from the iPhone User Guide, it will be released to public hopefully. http://stackoverflow.com/questions/1143589/what-is-the-pastrykit-framework http://daringfireball.net/2009/12/pastrykit http://ajaxian.com/archives/pastrykit-an-iphone-webdev-library-from-apple Sencha Touch &#8212; you should definitely see their kitchen sink, it is pretty cool.but there is no commercial license yet. http://ajaxian.com/archives/sencha-touch http://mobile.tutsplus.com/articles/news/sencha-touch-html5-mobile-framework/ http://www.endofnative.com/ iUi &#8212; [...]]]></description>
			<content:encoded><![CDATA[<p><strong>PastryKit</strong> &#8212; it is from Apple, but it is not public,  you can see it from the <a href="http://help.apple.com/iphone/3/mobile/">iPhone User Guide</a>, it will be released to public hopefully.</p>
<ul>
<li><a href="http://stackoverflow.com/questions/1143589/what-is-the-pastrykit-framework">http://stackoverflow.com/questions/1143589/what-is-the-pastrykit-framework</a></li>
<li><a href="http://daringfireball.net/2009/12/pastrykit">http://daringfireball.net/2009/12/pastrykit</a></li>
<li><a href="http://ajaxian.com/archives/pastrykit-an-iphone-webdev-library-from-apple">http://ajaxian.com/archives/pastrykit-an-iphone-webdev-library-from-apple</a></li>
</ul>
<p><a href="http://www.sencha.com/products/touch/"><strong>Sencha Touch</strong></a> &#8212; you should definitely see their <a href="http://www.sencha.com/deploy/touch/examples/kitchensink/">kitchen sink</a>, it is pretty cool.but there is no commercial license yet.</p>
<ul>
<li><a href="http://ajaxian.com/archives/sencha-touch">http://ajaxian.com/archives/sencha-touch</a></li>
<li><a href="http://mobile.tutsplus.com/articles/news/sencha-touch-html5-mobile-framework/">http://mobile.tutsplus.com/articles/news/sencha-touch-html5-mobile-framework/</a></li>
<li><a href="http://www.endofnative.com/">http://www.endofnative.com/</a></li>
</ul>
<p style="text-align: center;"><img class="aligncenter" src="http://doganberktas.com/wp-content/uploads/2010/07/photo.png" alt="and the winner is ..." width="441" height="588" /></p>
<p><a href="http://code.google.com/p/iui/"><strong>iUi</strong></a> &#8212; not that many people using it I guess. I build a site with it, if it is sth fast and easy to learn, iUi can do the job.</p>
<ul>
<li>Sites build with iUi &#8212; <a href="http://code.google.com/p/iui/wiki/PoweredBy">http://code.google.com/p/iui/wiki/PoweredBy</a></li>
</ul>
<p><span style="color: #ff6600;"><a href="http://jqtouch.com"><strong>jqtouch</strong></a></span> &#8212; <a href="http://jqtouch.com/preview/demos/main/">demos</a> seem very nice, probably better than iUi in terms of current release capabilities and size of community.</p>
<p><a href="http://iwebkit.net/">iWebkit</a> &#8212; <a href="http://iwebkit.net/demo">demo</a> seems promising, but not ready for prime time.</p>
<p><a href="http://www.sproutcore.com/what-is-sproutcore/">SproutCore</a> &#8212; not for iPhone specificly, but its <a href="http://demo.sproutcore.com/sample_controls/">demo</a> seems nice.</p>
<p>So my choice for the next task is jqtouch. not iui this time.</p>
]]></content:encoded>
			<wfw:commentRss>http://doganberktas.com/2010/07/17/summary-of-web-application-libraries-for-iphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Paperclip and ImageMagick and a Weird Problem &#8212; in RoR</title>
		<link>http://doganberktas.com/2010/07/13/paperclip-and-imagemagick-and-a-weird-problem-in-ror/</link>
		<comments>http://doganberktas.com/2010/07/13/paperclip-and-imagemagick-and-a-weird-problem-in-ror/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 19:15:23 +0000</pubDate>
		<dc:creator>dkberktas</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[imagemagick]]></category>
		<category><![CDATA[paperclip]]></category>
		<category><![CDATA[railstutorial]]></category>
		<category><![CDATA[RoR]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://doganberktas.com/?p=414</guid>
		<description><![CDATA[As promised in the last post, here is the Paperclip and ImageMagick as an extension to railstutorial. For image upload and manipulation, Paperclip seems to be the solutions. The following links does a great job of describing the installation process and basic usage, so I have nothing to add here. Paperclip: Attaching Files in Rails [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">As promised in the last <a href="http://doganberktas.com/2010/07/13/hello-ror/">post</a>, here is the Paperclip and ImageMagick as an extension to <a href="http://http://railstutorial.org/">railstutorial</a>.</p>
<p style="text-align: justify;">For image upload and manipulation,  Paperclip seems to be the solutions. The following links does a great job of describing the installation process and basic usage, so I have nothing to add here.</p>
<ul>
<li><a title="Permanent Link: Paperclip: Attaching Files in  Rails" rel="bookmark" href="http://jimneath.org/2008/04/17/paperclip-attaching-files-in-rails/">Paperclip: Attaching Files in Rails</a> (don&#8217;t use SVN, use git repo instead as in the second link below)</li>
<li><a href="http://thewebfellas.com/blog/2008/11/2/goodbye-attachment_fu-hello-paperclip">Goodbye attachment_fu, hello Paperclip </a></li>
<li><a href="http://railscasts.com/episodes/134-paperclip">http://railscasts.com/episodes/134-paperclip</a></li>
<li><a title="Permanent Link to The Ruby On Rails Paperclip  Plugin Tutorial – Easy Image Attachments" rel="bookmark" href="http://burm.net/2008/10/07/the-ruby-on-rails-paperclip-plugin-tutorial-easy-image-attachments/">The Ruby On Rails Paperclip  Plugin Tutorial – Easy Image Attachments</a></li>
<li><a title="Permanent Link to Ruby On Rails Polymorphic  Paperclip Plugin Tutorial" rel="bookmark" href="http://burm.net/2008/10/17/ruby-on-rails-polymorphic-paperclip-plugin-tutorial/">Ruby On Rails Polymorphic Paperclip Plug-in  Tutorial</a></li>
</ul>
<p style="text-align: justify;">So far so good, but if you are following railstutorial, you will probably doing this stuff to micropost, and you will probably get an error like this,</p>
<ol>
<li>&#8220;missing&#8221; image replacement in microspots</li>
<li>In the log/development.log file,</li>
</ol>
<div style="background: grey; color: white;"><strong>ActionController::RoutingError (No route matches &#8220;/photos/original/missing.png&#8221; with {:method=&gt;:get}):</strong><br />
<strong>Rendering rescues/layout (not_found)</strong></div>
<p>Solution:</p>
<p>If you carefully inspect the log file you can catch the line</p>
<div style="background: grey; color: white;"><strong>WARNING: Can&#8217;t mass-assign these protected attributes: <span style="color: #ff0000;">photo</span><br />
[4;36;1mMicropost Create (0.4ms)[0m  [0;1mINSERT INTO &#8220;microposts&#8221; (&#8220;created_at&#8221;, &#8220;photo_file_size&#8221;, &#8220;updated_at&#8221;, &#8220;photo_file_name&#8221;, &#8220;photo_content_type&#8221;, &#8220;user_id&#8221;, &#8220;photo_updated_at&#8221;, &#8220;content&#8221;)</strong></div>
<p>Just with just one line, open your model and fix the accessibility:</p>
<div style="background: grey; color: white;">
<pre>class Micropost &amp;  ActiveRecord::Base
  attr_accessible :content, :<strong>photo</strong>
...
</pre>
</div>
<p style="text-align: justify;">ps. In case you are a noob like me in RoR, this <a href="http://stackoverflow.com/questions/2977315/how-to-uninstall-a-plugin-seed-fu-from-rails">link</a> shows howto uninstall the paperclip plug in.</p>
<p style="text-align: justify;">ps2. Another possible problem might be your ImageMagick installation, make sure you have the correct path by trying convert and identify command. In case add the path to development.rb as described this <a href="http://stackoverflow.com/questions/1996102/rails-paperclip-and-passenger-is-not-recognized-by-the-identify-command">Stackoverflow entry</a>.</p>
<p style="text-align: justify;">Summary of Steps to add Paperclip</p>
<ul>
<li>script/plugin install git://github.com/thoughtbot/paperclip.git</li>
</ul>
<ul>
<li>script/generate paperclip product photo</li>
<li>In the model</li>
</ul>
<pre>has_attached_file :photo</pre>
<ul>
<li>In the form</li>
</ul>
<p><strong>header part</strong></p>
<pre>&lt;% form_for @micropost do |f| %&gt;
&lt;% form_for @micropost, :html =&gt; { :multipart =&gt; true} do |f| %&gt;</pre>
<p><strong>body part</strong></p>
<pre>
&lt;p&gt;
&lt;%= f.file_field :photo %&gt;
&lt;/p&gt;</pre>
<ul>
<li>To show the uploaded file</li>
</ul>
<pre>&lt;%= image_tag @product.photo.url %&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://doganberktas.com/2010/07/13/paperclip-and-imagemagick-and-a-weird-problem-in-ror/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Hello RoR</title>
		<link>http://doganberktas.com/2010/07/13/hello-ror/</link>
		<comments>http://doganberktas.com/2010/07/13/hello-ror/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 00:19:13 +0000</pubDate>
		<dc:creator>dkberktas</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[Github]]></category>
		<category><![CDATA[Grails]]></category>
		<category><![CDATA[Grails Meetup Group]]></category>
		<category><![CDATA[Groovy]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[RoR]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Software engineering]]></category>
		<category><![CDATA[Starbucks Corporation]]></category>
		<category><![CDATA[Web application frameworks]]></category>
		<category><![CDATA[web continuations]]></category>

		<guid isPermaLink="false">http://doganberktas.com/?p=392</guid>
		<description><![CDATA[Ruby on Rails (RoR) is the new framework I have been playing with and so far I should say it is really amazing. It has all these intuitive approaches that you find out by just guessing. I can only compare it with a couple of other technologies like RIFE (ogrence.net) and Grails (remotespots.com). RIFE has [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Ruby on Rails (RoR) is the new framework I have been playing with and so far I should say it is really amazing. It has all these intuitive approaches that you find out by just guessing. I can only compare it with a couple of other technologies like RIFE (ogrence.net) and Grails (remotespots.com). RIFE has some neat features (template mechanism, web continuations, asynchronous mail queue, persistence layer, etc) but since the lead developer Geert Bevin stop actively developing it, it takes its place in the graveyard of dead tech. Then I try something different, Grails, which is a Groovy version of RoR. It is really good especially after Java Enterprise, convention over configuration is an excellent approach! But it is kind of very young, also Grails has this really fast development cycles, in a couple of month, I had to update my applications two times in which I spend hours to overcome plug-in dependencies, deployment issues, etc. ( one more thing, I can not find any other cool projects that uses Grails, even at <a href="http://www.meetup.com/java-161/">SF Bay Groovy and Grails Meetup Group</a> , actually I was the only one who is currently using Grails <img src='http://doganberktas.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  )</p>
<p style="text-align: center;"><a title="Ruby on Rails" href="http://flickr.com/photos/26572975@N00/177722693"><img class="aligncenter" src="http://farm1.static.flickr.com/74/177722693_8aca6c7e82.jpg" alt="" width="400" height="320" /></a></p>
<p style="text-align: justify;">Since finding a good starter document is a very important decision, I took my time to select my first RoR source. I went over the following books and decided to use the latter one:</p>
<ul>
<li>Ruby on Rails For Dummies</li>
<li>Sitepoint Simply Rails 2nd Edition</li>
<li>Beginning Ruby on Rails</li>
<li><a href="http://railstutorial.org/">The Ruby on Rails Tutorial Book</a></li>
</ul>
<p style="text-align: justify;">Although it is called as a tutorial, when you get the pdf dump, the 12 chapter tutorial is approximately 500 pages, which is literally a book.</p>
<p style="text-align: justify;">The language of the book is very clean and most of the time funny. You can easily develop the code when you are reading it.  You can also follow a test driven approach if you want, but you don&#8217;t have (I didn&#8217;t).</p>
<p style="text-align: justify;">I finished the book in 7 days with a daily 4 hours concentrated reading/coding sessions and with lots of Starbucks Misto (thanks <a href="http://foursquare.com/venue/614429">Starbucks Besevler</a> crew!).</p>
<p style="text-align: justify;">The final code is at <a href="http://github.com/dkberktas/kediler">Github</a>, and live demo site at <a href="http://kediler.heroku.com/">Heroku</a>.</p>
<p style="text-align: justify;">As a pointer for the further steps, the tutorial suggest some <a href="http://railstutorial.org/chapters/following-users#sec:extensions_to_the_sample_application">pointers</a> but I prefer to go on with my path, which requires ImageMagick and Paperclip, so next post will be about these two.</p>
<p style="text-align: justify;">See you next time!</p>
<p style="text-align: justify;">ps. I really like Heroku. Grails has something <a href="http://www.cloudfoundry.com/">similar</a> but to be honest, it is not that magical (as in iPad).</p>
]]></content:encoded>
			<wfw:commentRss>http://doganberktas.com/2010/07/13/hello-ror/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Yet Another Hacker News iPad Reader</title>
		<link>http://doganberktas.com/2010/07/07/yet-another-hacker-news-ipad-reader/</link>
		<comments>http://doganberktas.com/2010/07/07/yet-another-hacker-news-ipad-reader/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 09:27:45 +0000</pubDate>
		<dc:creator>dkberktas</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[app store]]></category>
		<category><![CDATA[iPad]]></category>

		<guid isPermaLink="false">http://doganberktas.com/?p=375</guid>
		<description><![CDATA[A couple of weeks ago, I wanted to read Hackernews with my iPad [although some HackerNews readers see iPad’s Safari good enough for the task (which requires opening new tabs for comments,  lots of copy &#38; pasting URLs to share and  etc)], I searched for an application. Eventually, I found two, which are both paid [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">A couple of weeks ago, I wanted to read Hackernews with my iPad [although  some HackerNews readers see iPad’s Safari good enough for the task  (which requires opening new tabs for comments,  lots of copy &amp; pasting URLs to  share and  etc)], I searched for an application. Eventually, I found two, which are both paid applications. Since this applications is in my seven nights category (which is something I can code in seven consequent nights without disrupting my day work), I decided to code it myself.</p>
<p style="text-align: justify;">After 3 nights the application was ready for the submission. It got rejected since I didn&#8217;t read the iPad User guidelines carefully (actually I just skimmed it in 5 minutes). The rejection reason is &#8220;You can&#8217;t show more than one popover at the same time&#8221;. I fixed the problem, and it is available in the app store (<a href="http://dogan.appspot.com/35">App Store link</a>)</p>
<p><img class="alignnone" style="margin-left: -50px;" src="http://doganberktas.com/wp-content/uploads/2010/07/Screen-shot-2010-07-07-at-12.07.53-PM.png" alt="Yet Another Hackernews reader" width="566" height="476" /></p>
<p style="text-align: justify;">I will probably change the default RSS feed of Hackernews which only show top 30 posts. Probably something on GAE, and maybe a simple my favorites kind of thing.</p>
]]></content:encoded>
			<wfw:commentRss>http://doganberktas.com/2010/07/07/yet-another-hacker-news-ipad-reader/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Grails 1.2.2 and Using ImageTools Plugin with a Slight Modification</title>
		<link>http://doganberktas.com/2010/06/29/grails-1-2-2-and-using-imagetools-plugin-with-a-slight-modification/</link>
		<comments>http://doganberktas.com/2010/06/29/grails-1-2-2-and-using-imagetools-plugin-with-a-slight-modification/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 23:38:02 +0000</pubDate>
		<dc:creator>dkberktas</dc:creator>
				<category><![CDATA[Grails]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[remotespots]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[grails plugin]]></category>
		<category><![CDATA[Groovy]]></category>
		<category><![CDATA[imagetools]]></category>
		<category><![CDATA[online usability testing]]></category>

		<guid isPermaLink="false">http://doganberktas.com/?p=360</guid>
		<description><![CDATA[The Grails command create-controller and create-domain-class creates the files directly under the grails-app/domain and grails-app/controller, but the version(1.2.) I am using now has a different behaviour. Instead of grails-app/domain it creates grails-app/domain/{my-app-name}/ and grails-app/controller/{my-app-name}/ So I changed all the groovy file locations into a new folder(package) with my application name ( by the way all [...]]]></description>
			<content:encoded><![CDATA[<p>The Grails command create-controller and create-domain-class creates the files directly under the grails-app/domain and grails-app/controller, but the version(1.2.) I am using now has a different behaviour. Instead of grails-app/domain it creates grails-app/domain/{my-app-name}/ and grails-app/controller/{my-app-name}/</p>
<p>So I changed all the groovy file locations into a new folder(package) with my application name ( by the way all these are about my latest online usability testing tool <a href="http://remotespots.com">Remotespots.com</a> project). But something weird is happened with the ImageTools plugin. Since I move the controller files, ImageTool class is no longer visible to the controller that uses imagetool. Also, there is no way to import ImageTool since it is in default package, to solve this, go to .grails folder in your home folder and locate your projects folder and change the package of ImageTool.groovy as the following screenshot shows.<br />
<img src="http://doganberktas.com/wp-content/uploads/2010/06/Screen-shot-2010-06-29-at-2.25.53-AM.png" alt="" width="500" height="296" /></p>
<p><img src="http://doganberktas.com/wp-content/uploads/2010/06/Screen-shot-2010-06-29-at-2.25.30-AM.png" alt="" width="500" height="331" /></p>
<p>further information <a href="http://grails.1312388.n4.nabble.com/ImageTool-plugin-td1354704.html">link</a></p>
]]></content:encoded>
			<wfw:commentRss>http://doganberktas.com/2010/06/29/grails-1-2-2-and-using-imagetools-plugin-with-a-slight-modification/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone Ad Hoc Distribution Caveats and Useful Links</title>
		<link>http://doganberktas.com/2010/06/26/iphone-ad-hoc-distribution-caveats-and-useful-links/</link>
		<comments>http://doganberktas.com/2010/06/26/iphone-ad-hoc-distribution-caveats-and-useful-links/#comments</comments>
		<pubDate>Sat, 26 Jun 2010 03:09:44 +0000</pubDate>
		<dc:creator>dkberktas</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[ad hoc distribution]]></category>

		<guid isPermaLink="false">http://doganberktas.com/?p=344</guid>
		<description><![CDATA[One of the things I learn after developing a couple of iPhone (and iPad) applications is that sometimes it can take more  time to make it to app store or installing the app to the clients device than actually developing the applications. Ad hoc distribution is one the things I really don&#8217;t like at all. [...]]]></description>
			<content:encoded><![CDATA[<p>One of the things I learn after developing a couple of iPhone (and iPad) applications is that sometimes it can take more  time to make it to app store or installing the app to the clients device than actually developing the applications.</p>
<p>Ad hoc distribution is one the things I really don&#8217;t like at all.</p>
<p>These are the caveats  :</p>
<p><img src="http://doganberktas.com/wp-content/uploads/2010/06/Screen-shot-2010-06-26-at-6.08.16-AM.png" alt="" width="527" height="443" /></p>
<p>-Download the distribution provisioning profile again from the Provisioning Portal, and remove the old one (from the organizer) before installing the new one</p>
<p>-Don&#8217;t forget to add the Entitlements.plist file with the key get-task-allow and the value false. (also add it tho the target build settings as Code Signing Entitlements key )</p>
<p>- If the client uses Windows make sure use .ipa file for sending the .app</p>
<p>- It is not iTunesArtwork.png but only iTunesArtwork</p>
<p>The links that explain the process:</p>
<ul>
<li>http://johnehartzog.com/2009/04/iphone-app-ad-hoc-gotchas/</li>
<li>http://www.innerfence.com/howto/install-iphone-application-ad-hoc-distribution</li>
<li>http://www.iphonedevsdk.com/forum/iphone-sdk-development/3156-problem-iphone-ad-hoc-distribution.html</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://doganberktas.com/2010/06/26/iphone-ad-hoc-distribution-caveats-and-useful-links/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java Dergisi</title>
		<link>http://doganberktas.com/2010/06/22/java-dergisi/</link>
		<comments>http://doganberktas.com/2010/06/22/java-dergisi/#comments</comments>
		<pubDate>Tue, 22 Jun 2010 01:49:52 +0000</pubDate>
		<dc:creator>dkberktas</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[turkce]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[java dergisi]]></category>

		<guid isPermaLink="false">http://doganberktas.com/?p=337</guid>
		<description><![CDATA[Java Dergisinin ilk sayisini bir [KurumsalJava] grubundan duydum. Oldukca guzel bir girisim. &#8212; ozellikle, diger bilgisayar dergilerinin genellikle ayni icerigi tasimasi ve dergi olarak tuketilecek bir icerik sunmamasida dusunursek, bu dergi yazilim agirlikli olmasi ile beni oldukca heyecanlandird&#8211; Burda aklimdaki bir soruyuda hemen eklemem gerekiyor, basili dergiler daha ne kadar devam edecek cok merak ediyorum? [...]]]></description>
			<content:encoded><![CDATA[<p>Java Dergisinin ilk sayisini bir [KurumsalJava] grubundan duydum. Oldukca guzel bir girisim. &#8212; ozellikle, diger bilgisayar dergilerinin genellikle ayni icerigi tasimasi ve dergi olarak tuketilecek bir icerik sunmamasida dusunursek, bu dergi yazilim agirlikli olmasi ile beni oldukca heyecanlandird&#8211; Burda aklimdaki bir soruyuda hemen eklemem gerekiyor, basili dergiler daha ne kadar devam edecek cok merak ediyorum?</p>
<p><img src="http://doganberktas.com/wp-content/uploads/2010/06/kapak1.jpg" alt="" width="308" height="436" /></p>
<p>Java Dergisi dagitim olarak cok iyi bir is basarmis, neredeyse her yerde gormek mumkun. Derginin fiyati biraz yuksek(9.90) ozellikle Java ile ilgilenmesi olasi ogrenciler icin fiyat biraz hedef kitleyi dusurebilir. Derginin basim kalitesini dusurerek, dergi fiyatinda biraz oynama yapilabilir diye tahmin ediyorum, cunku kullanilan kagit cok cok sacma bir bicimde kaliteli. Guzel ornekler icin, bkn Matematik Dunyasi, Wired, NTV Bilim.</p>
<p>Yazilar korktugum gibi giris seviyesi tutoriallardan olusmuyor, gerci burada bir denge yakalamak cok zor, onlarca dali olan java dunyasinin hangi alanina girseniz bir uzmanlik alani cikiyor. Ornegin Java ME ve Androiddin arka arkaya yazilar ile islenmesi cok hostu. Biri gitmek uzere olan, biri yerlesmeye baslamis siki teknoloji.</p>
<p>Teknik yazilarin disinda, birazda genel havayi soluyan yazilarin eklenmesi derginin okuma keyfini arttirabilir, ornegin bu sayida James Gosling&#8217;in SUN&#8217;dan ayrilmasi ya da Oracle&#8217;in SUN&#8217;i satin almasi satir aralarinda gecistirilmis.</p>
<p>Son olarak, derginin Java dergisi olmasi illaki Java programlamasi ile ilgili olmasini gerektirmez. JVM ustunde calisan diger dillerden de bahsedilmesi (jruby, jython, scala, groovy) ve bunlari kullanan frameworklerin tanitilmasi da bence onemli bir katki olur.</p>
<p>Umarim dergi yeterli satis rakamlarini saglar ve surekliligi saglayabilir.</p>
]]></content:encoded>
			<wfw:commentRss>http://doganberktas.com/2010/06/22/java-dergisi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google I/O 2010  &#8212; Notes &amp; Stuff &#8212;  A Geek Thing</title>
		<link>http://doganberktas.com/2010/05/21/google-io-2010-notes-stuff-a-geek-thing/</link>
		<comments>http://doganberktas.com/2010/05/21/google-io-2010-notes-stuff-a-geek-thing/#comments</comments>
		<pubDate>Fri, 21 May 2010 12:16:33 +0000</pubDate>
		<dc:creator>dkberktas</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[gwt]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[google io 2010]]></category>
		<category><![CDATA[googleio]]></category>
		<category><![CDATA[San Francisco]]></category>

		<guid isPermaLink="false">http://doganberktas.com/?p=307</guid>
		<description><![CDATA[I am one of the lucky developers (one of the 5000) that can attend Google I/O 2010. I watched many videos from youtube, so I was very prepared for the sessions, but the overall experience was something well beyond my expectations. Below you can find the things I wrote during the three day marathon. Most [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">I am one of the lucky developers (one of the 5000) that can attend Google I/O 2010. I watched many videos from youtube, so I was very prepared for the sessions, but the overall experience was something well beyond my expectations. Below you can find the things I wrote during the three day marathon. Most of the items the things I will check out until the next Google I/O.</p>
<p style="text-align: left;">And finally, my resolution for the next year is to have a couple of Android apps on the market (maybe a game who knows).</p>
<p style="text-align: center;"><span style="font-size: x-large;"><strong>Keywords</strong></span> &#8212; that I took note during the sessions<a href="http://doganberktas.com/wp-content/uploads/2010/05/2010-05-19-17.29.201.jpg"><img class="size-full wp-image-320 aligncenter" style="margin-top: 10px; margin-bottom: 10px;" title="2010-05-19 17.29.20" src="http://doganberktas.com/wp-content/uploads/2010/05/2010-05-19-17.29.201.jpg" alt="" width="500" height="667" /></a></p>
<ul>
<li>Google Web  Elements &#8212; http://www.google.com/webelements/</li>
</ul>
<div>
<ul>
<li>Google Code Playgorund &#8212;  http://code.google.com/apis/ajax/playground/#hello,_earth</li>
</ul>
</div>
<ul>
<li>Data  Liberation Front &#8212; http://www.dataliberation.org/<a href="http://doganberktas.com/wp-content/uploads/2010/05/2010-05-18-20.00.29.jpg"><img class="aligncenter size-full wp-image-318" title="2010-05-18 20.00.29" src="http://doganberktas.com/wp-content/uploads/2010/05/2010-05-18-20.00.29.jpg" alt="" width="500" height="667" /></a></li>
</ul>
<ul>
<li>Google  Ajax APIs &#8212; http://code.google.com/apis/ajax/</li>
</ul>
<ul>
<li>KML  Tutorial &#8212; http://code.google.com/apis/kml/documentation/kml_tut.html</li>
</ul>
<ul>
<li>Google  Maps js API V3 &#8212;  http://code.google.com/apis/maps/documentation/javascript/</li>
</ul>
<ul>
<li>Spring  Roo &#8211;  Framework from VMWare that can easily be integrated with a GWT  frontend &#8212; http://www.springsource.org/roo</li>
</ul>
<ul>
<li>Google  Chrome Web App Store &#8212;  http://blog.chromium.org/2010/05/chrome-web-store.html</li>
</ul>
<ul>
<li>WebM  is an open media file format designed for the web.  &#8212;  http://www.webmproject.org/about/<a href="http://doganberktas.com/wp-content/uploads/2010/05/2010-05-20-17.29.141.jpg"><img class="aligncenter size-full wp-image-324" title="2010-05-20 17.29.14" src="http://doganberktas.com/wp-content/uploads/2010/05/2010-05-20-17.29.141.jpg" alt="" width="500" height="375" /></a></li>
</ul>
<ul>
<li>http://www.openclipart.org</li>
</ul>
<ul>
<li>Lots  of things start or finish with enterprise enterprise enterprise  (boooring&#8230;..)</li>
</ul>
<ul>
<li>Draconian Future (from Keynote Day 2 &#8212;  referring Apple and Steve Jobs I guess <img src='http://doganberktas.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  &#8212;  http://en.wikipedia.org/wiki/Draconian</li>
</ul>
<ul>
<li>Go ANDROID &#8212;  Froyo 2.2 &#8212; 18 months &#8212; 180.000 developers &#8212; 50.000 applications on  Market<a href="http://doganberktas.com/wp-content/uploads/2010/05/2010-05-19-17.59.261.jpg"><img class="aligncenter size-full wp-image-321" title="2010-05-19 17.59.26" src="http://doganberktas.com/wp-content/uploads/2010/05/2010-05-19-17.59.261.jpg" alt="" width="500" height="667" /></a></li>
</ul>
<ul>
<li>V8 Javascript Engine &#8212;  http://code.google.com/p/v8/</li>
</ul>
<ul>
<li>Sunspider javascript  benchmark &#8212; http://www2.webkit.org/perf/sunspider-0.9/sunspider.html</li>
</ul>
<ul>
<li>qik  &#8212; video sharing site &#8212; well, I have heard qik before, but when you  use it, with live streaming and instant sharing stuff, it really is  amazing</li>
</ul>
<ul>
<li>Dalvik VM &#8212;  http://en.wikipedia.org/wiki/Dalvik_%28software%29</li>
</ul>
<ul>
<li>VP8  &#8212; video codec &#8212; http://en.wikipedia.org/wiki/VP8</li>
</ul>
<ul>
<li>What  is Android? &#8212;  http://developer.android.com/guide/basics/what-is-android.html</li>
</ul>
<ul>
<li>What  is OpenGL ES ? &#8212; http://www.khronos.org/opengles/</li>
</ul>
<p>&#8211;<br />
<span style="font-size: large;"><strong>Sessions</strong></span> I attend</p>
<p>The following three are  from the Bootcamp which is one day before the io. I was fast enough to  register for the event, that I can enter. This was like a warm up for  the actual thing.(Bootcamp Schedule &#8212;  https://sites.google.com/site/iobootcamp/schedule)</p>
<ul>
<li>Introduction  to Google App Engine</li>
</ul>
<ul>
<li>Mapping in 3D: Tips and tricks  for Google Earth API and KML</li>
</ul>
<ul>
<li>The Big Picture and  How to Get Started</li>
</ul>
<p>&#8211;</p>
<p>And these are  from the session in io:</p>
<ul>
<li>Ignite Google I/O  (http://code.google.com/events/io/2010/sessions/ignite-google-io.html)  &#8212; the ones I like the most are,</li>
</ul>
<ul>
<li>
<ul>
<li><a href="http://en.wikipedia.org/wiki/Matt_Harding">Matt Harding</a> (<a href="http://www.wherethehellismatt.com/">Where The Hell Is Matt?</a></li>
<li><a href="http://www.flickr.com/nwrower">Bradley Vickers</a> &#8211; How to Row  across the North Atlantic, Ration Food and Not Have Your Teammates Eat  You</li>
</ul>
</li>
</ul>
<ul>
<li>Casting a wide net: how to target all  Android devices  (http://code.google.com/events/io/2010/sessions/casting-wide-net-android-devices.html)  &#8212; way to technical for me, I am not an Android developer (yet). Also  next room, there was another session of Paul Graham, it was full <img src='http://doganberktas.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  next  time pg</li>
</ul>
<ul>
<li>Architecting GWT applications for  production at Google  (http://code.google.com/events/io/2010/sessions/architecting-production-gwt.html)  &#8212; Presentation smells like enterprise which I am far from interested.  Also, I am not sure about all these code generation stuff for DTOs  (Spring Roo), also Vmware&amp;spring is not my favorite source of  inspiration (although I play with Grails lately)</li>
</ul>
<ul>
<li>HTML5  status update  (http://code.google.com/events/io/2010/sessions/html5-status-chrome.html)  &#8212; Last session of the i/o 2010. Two product managers of Chrome made a  good summary of HTML 5 features and their perspective on the spec.</li>
</ul>
<p><strong><span style="font-size: x-large;">Keynotes</span></strong> that I can not attend since I was sleeping  at that time <img src='http://doganberktas.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<ul>
<li>Day 1 &#8212;  http://www.youtube.com/watch?v=a46hJYtsP-8&amp;feature=player_embedded#!</li>
</ul>
<ul>
<li>Day  2 &#8212; they haven&#8217;t put a full version yet&#8230;</li>
</ul>
<p><span style="font-family: comic sans ms; font-size: large;">Day One After Party</span><br />
This was a  real nerdvana. a 8 leg giant spider that you can literally drive, pac  man, food (like a lot), beer (free as in a lot free), huge screens with  geeky videos, a toy like thing that you can control it with your mind  and try to fly a ball by focusing sth sexy!, robots that play football,  Tesla (sexy electric car), beer, remote control robot that try to  demolish balloon with its tail, red wine&#8230; <a href="http://doganberktas.com/wp-content/uploads/2010/05/2010-05-19-19.05.551.jpg"><img class="aligncenter size-full wp-image-322" title="2010-05-19 19.05.55" src="http://doganberktas.com/wp-content/uploads/2010/05/2010-05-19-19.05.551.jpg" alt="" width="500" height="667" /></a></p>
<h4><strong>Toys, Food, Drinks, T-shirts<br />
</strong></h4>
<p>Nexus One, HTC EVO, t-shirts, lots of Pepsi, Starbucks Coffee</p>
<p><a href="http://doganberktas.com/wp-content/uploads/2010/05/2010-05-18-18.25.13.jpg"><img class="aligncenter size-full wp-image-323" title="2010-05-18 18.25.13" src="http://doganberktas.com/wp-content/uploads/2010/05/2010-05-18-18.25.13.jpg" alt="" width="500" height="667" /></a></p>
<p><a href="http://doganberktas.com/wp-content/uploads/2010/05/2010-05-18-18.25.13.jpg"></a><a href="http://doganberktas.com/wp-content/uploads/2010/05/2010-05-20-17.43.172.jpg"><img class="aligncenter size-full wp-image-325" title="2010-05-20 17.43.17" src="http://doganberktas.com/wp-content/uploads/2010/05/2010-05-20-17.43.172.jpg" alt="" width="500" height="667" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://doganberktas.com/2010/05/21/google-io-2010-notes-stuff-a-geek-thing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding Transparent Modal View Programatically&#8211; iPhone</title>
		<link>http://doganberktas.com/2010/05/18/adding-transparent-modal-view-programatically-iphone/</link>
		<comments>http://doganberktas.com/2010/05/18/adding-transparent-modal-view-programatically-iphone/#comments</comments>
		<pubDate>Tue, 18 May 2010 03:14:28 +0000</pubDate>
		<dc:creator>dkberktas</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[iphone application]]></category>
		<category><![CDATA[iphone sdk]]></category>
		<category><![CDATA[UIActivityIndicatorView]]></category>
		<category><![CDATA[uiview]]></category>

		<guid isPermaLink="false">http://doganberktas.com/?p=301</guid>
		<description><![CDATA[Assuming you have a long process  taken so long that you want to show a transparent view, you can do it very easily by just adding the following method to your .m file and you will get the following transparent loading view -(void)showLoadingView { CGRect transparentViewFrame = CGRectMake(0.0, 0.0,320.0,480.0); transparentView = [[UIView alloc] initWithFrame:transparentViewFrame]; transparentView.backgroundColor [...]]]></description>
			<content:encoded><![CDATA[<p>Assuming you have a long process  taken so long that you want to show a transparent view, you can do it very easily by just adding the following method to your .m file and you will get the following transparent loading view</p>
<p style="text-align: center;"><a href="http://doganberktas.com/wp-content/uploads/2010/05/Screen-shot-2010-05-17-at-8.09.33-PM.png"><br />
<img class="size-full wp-image-302 aligncenter" style="margin-top: 10px; margin-bottom: 10px;" title="Screen shot 2010-05-17 at 8.09.33 PM" src="http://doganberktas.com/wp-content/uploads/2010/05/Screen-shot-2010-05-17-at-8.09.33-PM.png" alt="" width="414" height="770" /></a></p>
<pre>-(void)showLoadingView
{
	CGRect transparentViewFrame = CGRectMake(0.0, 0.0,320.0,480.0);
	transparentView = [[UIView alloc] initWithFrame:transparentViewFrame];
	transparentView.backgroundColor = [UIColor lightGrayColor];
	transparentView.alpha = 0.9;

	UIActivityIndicatorView *spinner = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
	spinner.center = transparentView.center;
	[spinner startAnimating];

	UILabel *messageLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 280, 320, 30)];
	messageLabel.textAlignment = UITextAlignmentCenter;
	messageLabel.text = @"please wait...";

	[transparentView addSubview:spinner];
	[transparentView addSubview:messageLabel];

	[self.view addSubview:transparentView];

	[messageLabel release];
	[spinner release];
	[transparentView release];
}
</pre>
<p>Now, you should call this function whenever needed. Let&#8217;s say you have a background process that will run while the transparent loading view is shown, below is the code to handle this situation:</p>
<pre>-(void)myAction:(id)sender
{
	[self showLoadingView];

	[self performSelectorInBackground:@selector(myActionBackground:) withObject:sender];
}

-(void)myActionBackground:(id)sender
{
        NSAutoreleasePool *apool = [[NSAutoreleasePool alloc] init];
	//your code
        [apool release];
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://doganberktas.com/2010/05/18/adding-transparent-modal-view-programatically-iphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
