<?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>Jourdein</title>
	<atom:link href="http://jourdein.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://jourdein.com</link>
	<description>I code, I experienced, I blog and I share my enthusiasm</description>
	<lastBuildDate>Mon, 12 Jul 2010 18:34:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Cross browser styling for inline-block</title>
		<link>http://jourdein.com/2010/cross-browser-styling-for-inline-block/</link>
		<comments>http://jourdein.com/2010/cross-browser-styling-for-inline-block/#comments</comments>
		<pubDate>Sat, 24 Apr 2010 11:17:09 +0000</pubDate>
		<dc:creator>Jourdein</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[My Finds]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Discovery]]></category>
		<category><![CDATA[Hack]]></category>
		<category><![CDATA[Web Browser]]></category>

		<guid isPermaLink="false">http://jourdein.com/?p=395</guid>
		<description><![CDATA[IE does support inline-block css styling but to which the elements are natively inline. Apply inline-block styling to strong, spans and ems.
But there&#8217;s another thing. If hasLayout is triggered on a block element, and then set that element to display inline, it will automagically become an inline-block in IE. However, you must do a *property [...]]]></description>
			<content:encoded><![CDATA[<p>IE does support inline-block css styling but to which the elements are natively inline. Apply inline-block styling to <em>strong</em>, <em>spans</em> and <em>ems</em>.</p>
<p>But there&#8217;s another thing. If <a href="http://www.satzansatz.de/cssd/onhavinglayout.html" target="_blank">hasLayout </a>is triggered on a block element, and then set that element to display inline, it will automagically become an inline-block in IE. However, you must do a *property hack to hide the display:inline from non-IE browser.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> inline-<span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
zoom<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">*</span><span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">inline</span><span style="color: #00AA00;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://jourdein.com/2010/cross-browser-styling-for-inline-block/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I tried Git</title>
		<link>http://jourdein.com/2010/i-tried-git/</link>
		<comments>http://jourdein.com/2010/i-tried-git/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 23:00:58 +0000</pubDate>
		<dc:creator>Jourdein</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[My Finds]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[SCM]]></category>
		<category><![CDATA[SVC]]></category>

		<guid isPermaLink="false">http://www.jourdein.com/?p=387</guid>
		<description><![CDATA[Currently, I hosted my repositories with XP-Dev that utilize Subversion as it&#8217;s source code management system (SCM). Hearing a lot of hypes about the Git, I did try setting up a git account at Project Locker.
Yep, it seems that Git is really is an advance SCM. It has a lot of features. What differentiate it [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.jourdein.com/blog/wp-content/uploads/2010/02/images-1.jpg" alt="images-1.jpg" border="0" width="123" height="106" align="left" />Currently, I hosted my repositories with <a href="http://www.xp-dev.com" target="_blank">XP-Dev</a> that utilize Subversion as it&#8217;s <em>source code management system (SCM)</em>. Hearing a lot of hypes about the Git, I did try setting up a git account at <a href="http://www.projectlocker.com/" target="_blank">Project Locker</a>.</p>
<p><img src="http://www.jourdein.com/blog/wp-content/uploads/2010/02/images-3.jpg" alt="images-3.jpg" border="0" width="50" height="105" align="right" />Yep, it seems that Git is really is an advance SCM. It has a lot of features. What differentiate it from Subversion is it&#8217;s decentralize repository system. Rather than recreate the post, you can read it at <a href="http://carsonified.com/blog/web-apps/why-you-should-switch-from-subversion-to-git/" target="_blank">Why you should switch form Subversion to Git</a>.</p>
<p><img src="http://www.jourdein.com/blog/wp-content/uploads/2010/02/images-2.jpg" alt="images-2.jpg" border="0" width="120" height="120" align="left" />On Mac, if you&#8217;re using git, there an open source Git UI called <a href="http://gitx.frim.nl/" target="_blank">GitX</a>. It trying to utilize the advance features in Git producing such an interface. You have a history graph which I&#8217;ve never seen in Subversion UI yet. After you commit, you can see which file and which line has been merges/changes rather than executing command <em>diff</em>.</p>
<p>When you first checkout, you are cloning form the main repository. Thus, when you are in offline mode, you can still commit or revert to previous revision. When you online, <em>push</em> it the server and it will merge with other repo.</p>
<p>Frankly, I would love to convert to Git but project-wise, Subversion can still do what Git can do since my project is not so big and with small team. Moreover, Git is complex because of features it has while in Subversion, I just need to <em>commit</em> or <em>update</em> and does not worry about <em>commit</em>, <em>push</em> and branch merging etc.</p>
]]></content:encoded>
			<wfw:commentRss>http://jourdein.com/2010/i-tried-git/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Software Is Hard</title>
		<link>http://jourdein.com/2010/software-is-hard/</link>
		<comments>http://jourdein.com/2010/software-is-hard/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 00:26:57 +0000</pubDate>
		<dc:creator>Jourdein</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[Articles]]></category>
		<category><![CDATA[Programmer]]></category>
		<category><![CDATA[Software Engineering]]></category>

		<guid isPermaLink="false">http://www.jourdein.com/?p=382</guid>
		<description><![CDATA[Developing software is hard. Below is an article form August 19, 2007.
Software is hard
Really, developing software is hard. If you want all those nifty features, biasing to certain framework because it&#8217;s the best, feeding your preference for certain os and without final decision. Yes, if all of those are free then go for it. In [...]]]></description>
			<content:encoded><![CDATA[<p>Developing software is hard. Below is an article form August 19, 2007.</p>
<p><a href="http://gamearchitect.net/Articles/SoftwareIsHard.html" target="_blank">Software is hard</a></p>
<p>Really, developing software is hard. If you want all those nifty features, biasing to certain framework because it&#8217;s the best, feeding your preference for certain os and without final decision. Yes, if all of those are free then go for it. In reality, those are cost. What languages you gonna use and how many developers you have? What are their expertise?</p>
<p>Some need to be compromise in order to benefit others or to maintain balance. </p>
]]></content:encoded>
			<wfw:commentRss>http://jourdein.com/2010/software-is-hard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Submitting app to App Store</title>
		<link>http://jourdein.com/2010/submitting-app-to-app-store/</link>
		<comments>http://jourdein.com/2010/submitting-app-to-app-store/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 08:34:38 +0000</pubDate>
		<dc:creator>Jourdein</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[AppStore]]></category>
		<category><![CDATA[Cocoa Touch]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://www.jourdein.com/?p=377</guid>
		<description><![CDATA[Really&#8230; it was really a tricky tasks making sure that your app is codesign correctly and Apple website accepted your app. As I could remember, I repeat myself more than 7 times doing the same thing, making sure that I did the steps correctly or when changes require you to start from the beginning.
In a [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.jourdein.com/blog/wp-content/uploads/2010/02/images.jpg" alt="images.jpg" border="0" width="112" height="109" align="left" />Really&#8230; it was really a tricky tasks making sure that your app is <em>codesign</em> correctly and Apple website accepted your app. As I could remember, I repeat myself more than 7 times doing the same thing, making sure that I did the steps correctly or when changes require you to start from the beginning.</p>
<p>In a simple understanding flow of process, you need to:</p>
<p>1. Create a request for certificate<br />
2. Install the certificate<br />
3. Create App Id<br />
4. Create Provisioning profile<br />
5. Download Provisioning profile<br />
6. Setting XCode to CodeSign using the certificate.<br />
7. Get the binary file, zipped it and upload to Apple website.</p>
<p>So, your target is to get the binary file (.app). That .app file must be <em>signed</em> by XCode using <strong>certificate</strong> given by Apple. The signing process also requires that you have a valid <strong>provisioning profile</strong> which you get from Apple, generated from <em>the certificate</em> you&#8217;ve requested.</p>
]]></content:encoded>
			<wfw:commentRss>http://jourdein.com/2010/submitting-app-to-app-store/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ForkLift 1.7 crashed on Snow Leopard</title>
		<link>http://jourdein.com/2010/forklift-1-7-crashed-on-snow-leopard/</link>
		<comments>http://jourdein.com/2010/forklift-1-7-crashed-on-snow-leopard/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 14:26:55 +0000</pubDate>
		<dc:creator>Jourdein</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[My Finds]]></category>
		<category><![CDATA[forklift]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Snow Leopard]]></category>
		<category><![CDATA[Solutions]]></category>

		<guid isPermaLink="false">http://www.jourdein.com/?p=369</guid>
		<description><![CDATA[I&#8217;ve install ForkLift 1.7 and suddenly, it crashed. Examining the report that is supposed to be sent to Apple, I found that, ForkLift is trying to access some of the files that aren&#8217;t there.
Googled and found that the files has been placed under a different folder in Snow Leopard. Logical thinking, the files are there [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.jourdein.com/blog/wp-content/uploads/2010/02/forklift.png" alt="forklift.png" border="0" width="108" height="108" align="left" />I&#8217;ve install ForkLift 1.7 and suddenly, it crashed. Examining the report that is supposed to be sent to Apple, I found that, ForkLift is trying to access some of the files that aren&#8217;t there.</p>
<p>Googled and found that the files has been placed under a different folder in Snow Leopard. Logical thinking, the files are there but ForkLift doesn&#8217;t know where they are.</p>
<p>Found a fix that restore those file references by creating symlinks:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>System<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>Frameworks<span style="color: #000000; font-weight: bold;">/</span>AppleShareClientCore.framework <span style="color: #000000; font-weight: bold;">/</span>System<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>Frameworks<span style="color: #000000; font-weight: bold;">/</span>AppleShareClient.framework
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>System<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>Frameworks<span style="color: #000000; font-weight: bold;">/</span>AppleShareClientCore.framework<span style="color: #000000; font-weight: bold;">/</span>Versions<span style="color: #000000; font-weight: bold;">/</span>A<span style="color: #000000; font-weight: bold;">/</span>AppleShareClientCore <span style="color: #000000; font-weight: bold;">/</span>System<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>Frameworks<span style="color: #000000; font-weight: bold;">/</span>AppleShareClientCore.framework<span style="color: #000000; font-weight: bold;">/</span>Versions<span style="color: #000000; font-weight: bold;">/</span>A<span style="color: #000000; font-weight: bold;">/</span>AppleShareClient
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>System<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>Frameworks<span style="color: #000000; font-weight: bold;">/</span>QuickLook.framework <span style="color: #000000; font-weight: bold;">/</span>System<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>PrivateFrameworks<span style="color: #000000; font-weight: bold;">/</span>QuickLookUI.framework
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>System<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>Frameworks<span style="color: #000000; font-weight: bold;">/</span>QuickLook.framework<span style="color: #000000; font-weight: bold;">/</span>QuickLook <span style="color: #000000; font-weight: bold;">/</span>System<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>Frameworks<span style="color: #000000; font-weight: bold;">/</span>QuickLook.framework<span style="color: #000000; font-weight: bold;">/</span>QuickLookUI
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>System<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>Frameworks<span style="color: #000000; font-weight: bold;">/</span>QuickLook.framework<span style="color: #000000; font-weight: bold;">/</span>Versions<span style="color: #000000; font-weight: bold;">/</span>A<span style="color: #000000; font-weight: bold;">/</span>QuickLook <span style="color: #000000; font-weight: bold;">/</span>System<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>Frameworks<span style="color: #000000; font-weight: bold;">/</span>QuickLook.framework<span style="color: #000000; font-weight: bold;">/</span>Versions<span style="color: #000000; font-weight: bold;">/</span>A<span style="color: #000000; font-weight: bold;">/</span>QuickLookUI</pre></div></div>

<p>Run the above commands in terminal. If you have problem copying and pasting, download it <a href="http://www.jourdein.com/resources/files/fixsimlinks.zip">here</a>. Execute the file from terminal either by</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ .<span style="color: #000000; font-weight: bold;">/</span>fixsymlinks</pre></div></div>

<p>or</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #7a0874; font-weight: bold;">source</span> fixsymlinks</pre></div></div>

<p>From whom did I get the solution&#8230; <a href="http://zoltanb.co.uk/index.php?/articles/how-to-get-forklift-17-working-on-snow-leopard.php" target="_blank">Zolntanb</a> (thanks mate)</p>
]]></content:encoded>
			<wfw:commentRss>http://jourdein.com/2010/forklift-1-7-crashed-on-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google is phasing out Microsoft internet Explorer 6</title>
		<link>http://jourdein.com/2010/google-is-phasing-out-microsoft-internet-explorer-6/</link>
		<comments>http://jourdein.com/2010/google-is-phasing-out-microsoft-internet-explorer-6/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 07:55:32 +0000</pubDate>
		<dc:creator>Jourdein</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://www.jourdein.com/?p=362</guid>
		<description><![CDATA[ Google will begin phasing out support for IE6 and other older browsers on Google Docs suite and Google Sites editor on March 1. I&#8217;ve received the notices since I&#8217;m an admin for Google Apps. 
Seems that, somewhere in 2010, Google Apps will continue to support IE7 and above, Firefox 3.0 and above, Google Chrome [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.jourdein.com/blog/wp-content/uploads/2010/02/ie6trash.png" alt="ie6trash.png" border="0" width="200" height="200" align="left" /> Google will begin phasing out support for IE6 and other older browsers on Google Docs suite and Google Sites editor on March 1. I&#8217;ve received the notices since I&#8217;m an admin for Google Apps. </p>
<p>Seems that, somewhere in 2010, Google Apps will continue to support IE7 and above, Firefox 3.0 and above, Google Chrome and above and Safari 3.0 and above. </p>
<p>Since Google has forgotten IE6, it would also be natural for me to forget IE6. My life would be easier developing website without worrying how it will render on IE6 or IE5.</p>
<p>Google said that they want to harness latest improvements in web browser technology and it would be HTML5 and faster Javascript. Google has their experiment on this technology and it was mind blowing experiences. And mind you, IE is not welcome there. It mainly targeted for Chrome browser but Firefox and Safari can view correctly but not IE (I&#8217;ve read some comments there about this). Head to <a href="http://www.chromeexperiments.com/" target="_blank">Chrome Experiments</a> to see for yourself.</p>
]]></content:encoded>
			<wfw:commentRss>http://jourdein.com/2010/google-is-phasing-out-microsoft-internet-explorer-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updating a has_many relational model</title>
		<link>http://jourdein.com/2010/updating-a-has_many-relational-model/</link>
		<comments>http://jourdein.com/2010/updating-a-has_many-relational-model/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 10:58:17 +0000</pubDate>
		<dc:creator>Jourdein</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Dev]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://www.jourdein.com/?p=358</guid>
		<description><![CDATA[
Last night, found a problem in codes during updating form for a has_many relationship model. Rather than updating the record, it created a new one.
The solution is in railscasts episode 75.
Consider contact that has_many contact_email addresses. Created

def contact_email_attributes=&#40;contact_email_attributes&#41;
  contact_email_attributes  do &#124;attributes&#124;
    contact_emails.build&#40;attributes&#41;
  end
end

Changed to this one:

def contact_email_attributes=&#40;contact_email_attributes&#41;
  contact_email_attributes.each [...]]]></description>
			<content:encoded><![CDATA[<div style="text-align:center;"><img src="http://www.jourdein.com/blog/wp-content/uploads/2010/02/has-many-relationship-solution.png" alt="has many relationship solution.png" border="0" width="600" height="286" /></div>
<p>Last night, found a problem in codes during updating form for a <em>has_many</em> relationship model. Rather than updating the record, it created a new one.</p>
<p>The solution is in <a href="http://railscasts.com">railscasts</a> episode 75.</p>
<p>Consider <strong>contact</strong> that <em>has_many</em> <strong>contact_email</strong> addresses. Created</p>

<div class="wp_syntax"><div class="code"><pre class="rails" style="font-family:monospace;"><span style="color:#9966CC; font-weight:bold;">def</span> contact_email_attributes=<span style="color:#006600; font-weight:bold;">&#40;</span>contact_email_attributes<span style="color:#006600; font-weight:bold;">&#41;</span>
  contact_email_attributes  <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>attributes<span style="color:#006600; font-weight:bold;">|</span>
    contact_emails.<span style="color:#9900CC;">build</span><span style="color:#006600; font-weight:bold;">&#40;</span>attributes<span style="color:#006600; font-weight:bold;">&#41;</span>
  <span style="color:#9966CC; font-weight:bold;">end</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

<p>Changed to this one:</p>

<div class="wp_syntax"><div class="code"><pre class="rails" style="font-family:monospace;"><span style="color:#9966CC; font-weight:bold;">def</span> contact_email_attributes=<span style="color:#006600; font-weight:bold;">&#40;</span>contact_email_attributes<span style="color:#006600; font-weight:bold;">&#41;</span>
  contact_email_attributes.<span style="color:#5A0A0A; font-weight:bold;">each</span>  <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>attributes<span style="color:#006600; font-weight:bold;">|</span>
    <span style="color:#9966CC; font-weight:bold;">if</span> attributes<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:id</span><span style="color:#006600; font-weight:bold;">&#93;</span>.<span style="color:#9900CC;">blank</span>?
      contact_emails.<span style="color:#9900CC;">build</span><span style="color:#006600; font-weight:bold;">&#40;</span>attributes<span style="color:#006600; font-weight:bold;">&#41;</span>
    <span style="color:#9966CC; font-weight:bold;">else</span>
      contact_email = contact_emails.<span style="color:#9900CC;">detect</span> <span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#006600; font-weight:bold;">|</span>e<span style="color:#006600; font-weight:bold;">|</span> e.<span style="color:#9900CC;">id</span> == attributes<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:id</span><span style="color:#006600; font-weight:bold;">&#93;</span>.<span style="color:#5A0A0A; font-weight:bold;">to_i</span> <span style="color:#006600; font-weight:bold;">&#125;</span>
      contact_email.<span style="color:#9900CC;">attributes</span> = attributes
    <span style="color:#9966CC; font-weight:bold;">end</span>
  <span style="color:#9966CC; font-weight:bold;">end</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

<p>that will updates <strong>contact_email</strong> if there&#8217;s <strong>:id</strong> attributes. Then, I need to add the <strong>:id</strong> inside the form as <em>hidden_field_tag</em>:</p>

<div class="wp_syntax"><div class="code"><pre class="rails" style="font-family:monospace;"><span style="color:#006600; font-weight:bold;">-</span> <span style="color:#0066ff; font-weight:bold;">@contact</span>.<span style="color:#9900CC;">contact_emails</span>.<span style="color:#5A0A0A; font-weight:bold;">each</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>contact_email<span style="color:#006600; font-weight:bold;">|</span>
...
= <span style="color:#5A0A0A; font-weight:bold;">hidden_field_tag</span> <span style="color:#996600;">&quot;contact[contact_email_attributes][][id]&quot;</span>, contact_email.<span style="color:#9900CC;">id</span>
...</pre></div></div>

<p>And that&#8217;s all. It&#8217;s done. </p>
<p>In the form, you could do <strong>fields_for</strong> rather than using <strong>_tag</strong> methods. In fact, my original code was using that but after I tried everything and it ended up with the <em>_tag</em> methods, I was lazy to change it back. By the way, it works both ways&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://jourdein.com/2010/updating-a-has_many-relational-model/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Passenger, Rails and XAMPP on Mac</title>
		<link>http://jourdein.com/2010/passenger-rails-and-xampp-on-mac/</link>
		<comments>http://jourdein.com/2010/passenger-rails-and-xampp-on-mac/#comments</comments>
		<pubDate>Sat, 30 Jan 2010 13:04:28 +0000</pubDate>
		<dc:creator>Jourdein</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Dev]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Xampp]]></category>

		<guid isPermaLink="false">http://www.jourdein.com/?p=351</guid>
		<description><![CDATA[I&#8217;ve successfully setup my Rails on Passenger. It was not a swift tasks as I was trying to setup it on &#8216;my&#8217; XAMPP.
I had XAMPP all the way since I&#8217;ve started development on PHP. Don&#8217;t want to install different Apache server just to setup Passenger. Because of that, I took 1 full day of my [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve successfully setup my Rails on Passenger. It was not a swift tasks as I was trying to setup it on &#8216;my&#8217; XAMPP.</p>
<p>I had XAMPP all the way since I&#8217;ve started development on PHP. Don&#8217;t want to install different Apache server just to setup Passenger. Because of that, I took 1 full day of my life to finally have a functional Rails with Passenger on Apache in XAMPP.</p>
<p>(assuming you had Rails with Mongrel and XAMPP already)</p>
<ol>
<li>Install gem Passenger</li>
<li><strong>Download XAMPP dev</strong> (this is the key for success!)</li>
<li>Run passenger install script</li>
<li>Modify Apache <em>.conf</em> file</li>
</ol>
<p><em>(you&#8217;re ready to go)</em></p>
<p>Add some miscellaneous (that&#8217;ll make your life easier)</p>
<ol>
<li>Download and install Passenger Preference Pane</li>
</ol>
<h4>1. Install gem Passenger</h4>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> passenger</pre></div></div>

<h4>2. Download XAMPP Developer</h4>
<p><a href="http://www.apachefriends.org/download.php?xampp-macosx-1.7.2a-dev.dmg">XAMPP Developer package for Mac</a></p>
<h4>3. Run passenger install script for Apache</h4>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> passenger-install-apache2-module</pre></div></div>

<p>(No. 4 step is given at the end of module installation above)</p>
<p>Download &#038; install Passenger Preference Pane <a href="http://www.fngtps.com/files/2/2009/09/PassengerPane-1.3.tgz">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jourdein.com/2010/passenger-rails-and-xampp-on-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hosting server migrated</title>
		<link>http://jourdein.com/2010/hosting-server-migrated/</link>
		<comments>http://jourdein.com/2010/hosting-server-migrated/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 02:44:30 +0000</pubDate>
		<dc:creator>Jourdein</dc:creator>
				<category><![CDATA[My Finds]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[Domain]]></category>
		<category><![CDATA[Hosting]]></category>

		<guid isPermaLink="false">http://www.jourdein.com/?p=349</guid>
		<description><![CDATA[legal-bytes.com was down and at the time of posting, it&#8217;s still down. I&#8217;ve just waiting for the domain changes to take effect.
I thought, it was the problem related to the server and that I just need wait until it is fixed. It was down for 3 days (approximately) that I took the liberty to send [...]]]></description>
			<content:encoded><![CDATA[<p>legal-bytes.com was down and at the time of posting, it&#8217;s still down. I&#8217;ve just waiting for the domain changes to take effect.</p>
<p>I thought, it was the problem related to the server and that I just need wait until it is fixed. It was down for 3 days (approximately) that I took the liberty to send a support ticket to <a href="http://angel.exabytes.com.my/idevaffiliate.php?id=3203847">Exabytes</a>&#8216; support engineer. Immediately (not hour or even half an hour), they replied with the explanation:</p>
<blockquote><p>For your information, the server 210.48.145.6 already migrate to the new data center and we have update the IP to 110.4.45.29</p></blockquote>
<p>legal-bytes.com didn&#8217;t use their DNS records but just pointing the A record to the shared IP address associated with our hosting package. For that matter, I think, the update of the IP didn&#8217;t automatically configured to the domain and thus need the domain administrator to change it manually.</p>
<p>I was very very happy with <a href="http://angel.exabytes.com.my/idevaffiliate.php?id=3203847">Exabytes</a> for the services they&#8217;ve given. Recommended if you are finding one.</p>
<p><em>Updates</em><br />
Did asked if the old DNS still applied and the answer is &#8220;not anymore&#8221;. It has changed to </p>
<p><strong>Old</strong><br />
<code><br />
ns67.mschosting.com 210.48.145.7 <br />
ns68.mschosting.com 210.48.145.8 <br />
</code><br />
<strong>New</strong><br />
<code><br />
ns101.mschosting.com 110.4.45.4 <br />
ns102.mschosting.com 72.18.132.245 <br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://jourdein.com/2010/hosting-server-migrated/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Learning Ruby on Rails for 2 weeks</title>
		<link>http://jourdein.com/2010/learning-ruby-on-rails-for-2-weeks/</link>
		<comments>http://jourdein.com/2010/learning-ruby-on-rails-for-2-weeks/#comments</comments>
		<pubDate>Sat, 09 Jan 2010 19:10:10 +0000</pubDate>
		<dc:creator>Jourdein</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[RoR]]></category>

		<guid isPermaLink="false">http://www.jourdein.com/?p=345</guid>
		<description><![CDATA[I&#8217;m really tired. It has been a hectic weekend for me. Code code and more code. Learn Rails in two weeks while developing application at the same time. Today, I think I&#8217;ll stop here. The system seems O.K. I would like to enjoy my weekend left.
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m really tired. It has been a hectic weekend for me. Code code and more code. Learn Rails in two weeks while developing application at the same time. Today, I think I&#8217;ll stop here. The system seems O.K. I would like to enjoy my weekend left.</p>
]]></content:encoded>
			<wfw:commentRss>http://jourdein.com/2010/learning-ruby-on-rails-for-2-weeks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
