<?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; dkberktas</title>
	<atom:link href="http://doganberktas.com/author/dkberktas/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>Background Jobs in Rails &#8212; Delayed_job</title>
		<link>http://doganberktas.com/2010/07/22/background-jobs-in-rails/</link>
		<comments>http://doganberktas.com/2010/07/22/background-jobs-in-rails/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 23:06:47 +0000</pubDate>
		<dc:creator>dkberktas</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[remotespots]]></category>
		<category><![CDATA[usability]]></category>
		<category><![CDATA[background jobs]]></category>
		<category><![CDATA[delayed job]]></category>
		<category><![CDATA[long tasks]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[RoR]]></category>

		<guid isPermaLink="false">http://doganberktas.com/?p=468</guid>
		<description><![CDATA[Rails has lots of options for background jobs, the list below is a collection of link that help my choose Delayed Jobs which is a simple and capable enough one. Blog post which is a good summary of alternatives &#8212; (kind of a survey) A related question on StackOverflow Blog post about Delayed Job link [...]]]></description>
			<content:encoded><![CDATA[<p>Rails has lots of options for background jobs, the list below is a collection of link that help my choose Delayed Jobs which is a simple and capable enough one.</p>
<ul>
<li><a href="http://4loc.wordpress.com/2010/03/10/background-jobs-in-ruby-on-rails">Blog post</a> which is a good summary of alternatives &#8212; (kind of a survey)</li>
<li>A related question on <a href="http://stackoverflow.com/questions/1107127/multiple-uploads-to-amazon-s3-from-ruby-on-rails-what-background-processing-sys/3304293#3304293">StackOverflow </a></li>
<li>Blog post about Delayed Job <a href="http://www.therailsway.com/2009/7/22/do-it-later-with-delayed-job">link</a></li>
<li><strong>Heroku <a href="http://docs.heroku.com/background-jobs">suggests</a> </strong><strong>Delayed Job, so this is the one I am looking for <img src='http://doganberktas.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </strong></li>
<li>and finally <a href="http://docs.heroku.com/delayed-job">this</a> is the Heroku guide for using Delayed Job</li>
<li><strong><a href="http://railscasts.com/episodes/171-delayed-job">Railcast</a> about Delyaed_job</strong></li>
<li><strong><a href="http://wiki.github.com/tobi/delayed_job/tips-and-tricks">Tip&amp;Tricks</a> </strong></li>
</ul>
<p>If you are interested, we are using Delayed Job for creating our heatmaps for <a href="http://remotespots.com">remotespots</a> usability testing site. Heatmap project will probably work as a separate project so that others can also use it for creating heatmaps on top of their images. Stay tuned for the heatmap side project!</p>
<p>Steps for Delayed_job</p>
<ul>
<li>Install the plugin from github (from collectiveideas) with</li>
<pre>script/plugin install git://github.com/collectiveidea/delayed_job.git</pre>
<li>Create the model</li>
<pre>script/generate delayed_job</pre>
<pre>rake db:migrate</pre>
<li>You can set priority and a certain time for the job to be put on queue.</li>
<pre>send_later(:your_method_name, -3, 3.days.from_now)</pre>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://doganberktas.com/2010/07/22/background-jobs-in-rails/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>Using AWS S3 Service with RoR Paperclip</title>
		<link>http://doganberktas.com/2010/07/15/using-aws-s3-service-with-ror-paperclip/</link>
		<comments>http://doganberktas.com/2010/07/15/using-aws-s3-service-with-ror-paperclip/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 20:21:18 +0000</pubDate>
		<dc:creator>dkberktas</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[amazon s3]]></category>
		<category><![CDATA[heroku]]></category>
		<category><![CDATA[RoR]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://doganberktas.com/?p=421</guid>
		<description><![CDATA[Continuing from the last post, you might want to use AWS S3 for hosting the uploaded files. Actually the steps are pretty easy as described in the following links: Setup Paperclip plugin with Amazon S3 to upload videos in rails Paperclip and Amazon S3 ps. If you are having an error like this ArgumentError: wrong [...]]]></description>
			<content:encoded><![CDATA[<p>Continuing from the last <a href="http://doganberktas.com/2010/07/13/paperclip-and-imagemagick-and-a-weird-problem-in-ror/">post</a>, you might want to use AWS S3 for hosting the uploaded files. Actually the steps are pretty easy as described in the following links:</p>
<ul>
<li><a href="http://scottmotte.com/archives/181.html">Setup Paperclip plugin with Amazon S3 to upload videos in rails</a></li>
<li><a href="http://www.claytonlz.com/index.php/2008/06/paperclip-and-amazon-s3/">Paperclip and Amazon S3</a></li>
</ul>
<p>ps. If you are having an error like this</p>
<div style="background: grey; color: white;">
<pre><code>ArgumentError: wrong number of arguments (5 for 4)
</code></pre>
</div>
<p>this is probably because you have both the aws-s3 gem and right_aws, just change the environment.rb<br />
as in the following link</p>
<p>http://stackoverflow.com/questions/1550708/rails-paperclip-conflict-between-aws-s3-gem-and-right-aws-gem-how-to-solve</p>
<p>ps2. If you are planning to deploy to heroku add the gem to .gems file, or you will get an error like this <strong>&#8220;App failed to start&#8221; &#8212; your application is missing the following gems:&#8230;</strong>&#8221;<br />
<img src="http://doganberktas.com/wp-content/uploads/2010/07/Screen-shot-2010-07-13-at-9.47.31-PM.png" alt="" width="456" height="249" /></p>
]]></content:encoded>
			<wfw:commentRss>http://doganberktas.com/2010/07/15/using-aws-s3-service-with-ror-paperclip/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>
	</channel>
</rss>
