<?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>iwaking.com</title>
	<atom:link href="http://www.iwaking.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.iwaking.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sat, 08 Jan 2011 01:59:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>8 habits to study English efficiently</title>
		<link>http://www.iwaking.com/20101003/279/</link>
		<comments>http://www.iwaking.com/20101003/279/#comments</comments>
		<pubDate>Sun, 03 Oct 2010 13:21:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Knowhow]]></category>

		<guid isPermaLink="false">http://www.iwaking.com/?p=279</guid>
		<description><![CDATA[I am currently studying English. I always try to learn effectively, probably as much as most people do. However, there are people who become able to speak well while the others don&#8217;t, although they&#8217;ve been spending the same amount of time. I wonder what makes that difference. I&#8217;m still not sure exactly why but I [...]]]></description>
			<content:encoded><![CDATA[<p>I am currently studying English. I always try to learn effectively, probably as much as most people do.</p>
<p>However, there are people who become able to speak well while the others don&#8217;t, although they&#8217;ve been spending the same amount of time. I wonder what makes that difference. I&#8217;m still not sure exactly why but I came to want to verify how my way is, so I sorted out my points in learning English.</p>
<p>Be conscious about the purpose of learning and have it as a good habit. They are often told and important but those words are too abstract so I&#8217;d like to go into a bit more of detail.</p>

<h3>Response quickly whenever I can</h3>
<p>I think that either writing or speaking English is just a some kind of communication tool. Whether or not making yourself understood depends more on how quickly you react instead of using correct grammar or good phrases and expressions. Without instant reactions, people you are talking with may feel some kind of stress and the conversation tends to become unilateral.</p>

<p>Therefore, it is important for the beginners of English learning to master commonly used expressions before studying other expressions. To perfect means to master as well as you can response instantly without thinking anything when you are talked to in English.</p>

<p>When communication response is spontaneous, frequency of communication will become high and also attempts to communicate. Thus the time to spend learning English becomes more concentrated therefore one should learn English in shorter time. Gradually, I would hope, I will be able to express myself deeper and communicate in more refined way.</p> 


<h3>Regard studying English as a sport</h3>
<p>From the point of spontaneousness, I think the basis of learning English is same as learning sports. Studying vocabularies and grammar is more like learning logic and it is not sufficient for practically use of English, such as conversation. Learning sports is similar, learning logic does not make one a good player.</p>

<p>Let me take example of tennis. One can learn for correct form to hit a ball or good footwork but it does not help one to actually hit a ball in tennis court.</p>

<p>In sports, it is necessary to make your body get accustomed usage, and I believe it is a matter of while using your head remembering with your body.</p>

<p>However, you will not become good by continuing to practice without knowing the theories. Also, theories are ambiguous, and after becoming accustomed to incorrect ways of doing things, correcting oneself is difficult. Because of this, I would like to be conscious of the balance between theory and practice.</p>

<p>I think that the Japanese English curriculum is better than nothing, but practical English use is lacking. *1</p>


<h3>Preparing your own method</h3>

<p>Everyone has a different goal in mind with studying English. The starting point, ending point, deadline, and time available for study are different for each person.</p>

<p>So, preparing a way of studying that suits your own circumstances is best. If it is not a method that suits your circumstances, it cannot be habitualized.</p>

<p>Before I begin to study English, I read many books and take in many points that become reference material. And while studying, I renew the trial and error method. Recently as my learning has taken shape, I&#8217;d like to write the detail in another entry in the other day.</p>


<h3>Going into an compulsory must-use environment</h3>

<p>An extremely efficient method is very direct, but placing oneself in a compulsory environment where one has no choice but to use English.</p> <p>Humans are by nature idle things, and if they are not driven on they will not become serious. If they do not become serious they will not attempt to use time to study English. In the end it is decided that the effectiveness of study = efficiency x time.</p> 

<p>And humans are also ruled by habit. Ways of thinking, patterns of action, everything. The key is fixing bad habits and how to internalize good habits. The study of English is the same. In the beginning it is difficult, but if one continues going about good habits, one can expect to become able to speak.</p>

<p>So it is important to think about good habits themselves and how to devise them. The differences of people’s abilities from birth is so little. If one is not becoming skilled, that is because one&#8217;s practices are wrong.</p>

<p>First, while being beaten on, suffering every day, when grappling with the work, if you notice the difficulty, you are learning. Usually, in the learning process there is often a period of distress, even temporarily.</p>

<p>For example, among body builders, there is a word called ‘pain period.’ In the process of training muscles, in order to burden the muscles one must experience pain. In training, it is from the suffering that one has victory or defeat, and to what extent one experiences the pain period separates those who are champions and those who are not. *2</p>

<p>Of course, in the study of English, suffering is not a necessary as a prerequisite as with body building, but those people who give up without experiencing somewhat of a distressing period of time do not break through difficulties in sports, their job, or anything else. So, when choosing a job, if the conditions are the same, it is best to go with one that requests English. If one has the room to go into the field of English language, it is best to live within that field.</p>


<h3>Replacing one’s entire world with English</h3>

<p>People like me, who started to learn English intensively when they&#8217;re close to thirty years old, just can not help but keep thinking in Japanese up until now. Even if you are living in the one of English-speaking countries, you would write and think in Japanese without conscious.</p> 

<p>Your mind would repeat it in Japanese when you see the article in Japanese. To get over it, get surrounded by everything English would be effective. I have changed OS, applications on my PC and all the document around me in English. I also try to recognize the name of my daily necessaries in English. You can expand your vocabularies by doing so, and it makes the groundwork for thinking in English as written below.</p>


<h3>Think in English as much as possible</h3>

<p>I set my priority to this. If you keep trying to think in English, you&#8217;re almost like learning English all the time so it&#8217;s efficient. However, easier said than done actually.</p> 

<p>Especially if you&#8217;re beginner, you&#8217;re likely to give up easily because without enough vocaburaly you just don&#8217;t know where to start. Also it&#8217;s very tiring to keep thinking in the language you&#8217;re not familiar with. The tip is, to make it up with IT technique. Instead of carrying around big heavy dictionary, nowadays you can install a dictionary application on your smart phone such as iPhone and look up the word anytime, anywhere. Then you can study all the time, &#8220;oh that means this&#8230;.&#8221;. By repeating it, you&#8217;ll be able to memorize much better.</p>

<p>Though, in my case, it was difficult to do so when I lived in Japan. No matter how hard you try, it would be maximum if you can get about 20% of your working hours with English thinking if you&#8217;re using Japanese at your work. I&#8217;ve been able to think 70-80% in English since I moved to abroad.</p>

<div><a href="http://click.linksynergy.com/fs-bin/stat?id=MadS5h5z6no&amp;offerid=94348&amp;type=3&amp;subid=0&amp;tmpid=2192&amp;RD_PARM1=http%253A%252F%252Fitunes.apple.com%252Fjp%252Fapp%252Flongman-dictionary-contemporary%252Fid316133247%253Fmt%253D8%2526uo%253D4%2526partnerId%253D30"><img class="size-full wp-image-343" title="longman" src="http://www.iwaking.com/wp-content/uploads/2010/10/longman.png" alt="" width="183" height="183" /></a></div>
<div><a href="http://click.linksynergy.com/fs-bin/stat?id=MadS5h5z6no&amp;offerid=94348&amp;type=3&amp;subid=0&amp;tmpid=2192&amp;RD_PARM1=http%253A%252F%252Fitunes.apple.com%252Fjp%252Fapp%252Flongman-dictionary-contemporary%252Fid316133247%253Fmt%253D8%2526uo%253D4%2526partnerId%253D30" target="itunes_store">Longman Dictionary of Contemporary English -5th &#8211; Enfour, Inc.</a></div>
<div><a href="http://click.linksynergy.com/fs-bin/stat?id=MadS5h5z6no&amp;offerid=94348&amp;type=3&amp;subid=0&amp;tmpid=2192&amp;RD_PARM1=http%253A%252F%252Fitunes.apple.com%252Fjp%252Fapp%252Fid383099155%253Fmt%253D8%2526uo%253D4%2526partnerId%253D30"><img class="alignnone size-full wp-image-342" title="eijiro" src="http://www.iwaking.com/wp-content/uploads/2010/10/eijiro.png" alt="" width="183" height="183" /></a></div>
<div><a href="http://click.linksynergy.com/fs-bin/stat?id=MadS5h5z6no&amp;offerid=94348&amp;type=3&amp;subid=0&amp;tmpid=2192&amp;RD_PARM1=http%253A%252F%252Fitunes.apple.com%252Fjp%252Fapp%252Fid383099155%253Fmt%253D8%2526uo%253D4%2526partnerId%253D30" target="itunes_store">i英辞郎 122 &#8211; sokoide.com</a></div>


<h3>Prepare your own expressions</h3>

<p>A method that is difficult but I think will considerably increase efficiency.</p> 

<p>Make your own routine conversation work beforehand, memorize it, and prepare it so that you are able to speak it at any time. It is your conversation template, so to speak. It is felt that there is a great gap between the level in which one can do simple communication and the level at which they can speak with thoughtful expressions. Though it’s somewhat vague. If you are in an English-speaking area, just by being there you will become able to use simple communication, but being able to say subtle expressions and clever turns of phrase is something that cannot easily be done just by living there. But if you use this method habitually, that gap is able to be overcome.</p>

<p>To begin with, ordinarily, even if you know a number of expressions that you haven’t spoken before, you cannot remember them on the spot or say them fluently. So however you speak until that point becomes a success or failure dependent on if you have prepared. Also, if you prepare perfectly, you’re acquiring new expression naturally, so gradually you will be able to respond with conversations that you have not prepared.</p>

<p>Generally, there are patterns in conversation. Subjects for when you come to know each other, when introducing your country, while drinking sake, etc. In other words, the topic of conversation. If you remember what you’re talking about with a friend or acquaintance, you naturally understand what would be best to write. It’s also good if you’ve spoken in English and think “Ah, I can also use this subject,” and after you’ve taken note of that, you prepare it. If it doesn’t come to mind, it’s also good to look at a book called “<a href="http://www.amazon.co.jp/1%E5%88%86%E9%96%93%E8%8B%B1%E8%AA%9E%E3%81%A7%E8%87%AA%E5%88%86%E3%81%AE%E3%81%93%E3%81%A8%E3%82%92%E8%A9%B1%E3%81%97%E3%81%A6%E3%81%BF%E3%82%8B-CD%E4%BB%98-%E6%B5%A6%E5%B3%B6-%E4%B9%85/dp/4806124184%3FSubscriptionId%3D0KQG8DGSHCJW49SD2AG2%26tag%3Diwakingcom-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D4806124184">Talking About Yourself in English For One Minute</a>” as a reference.</p>

<p>And when making English sentences, I’m not a native, so I can’t come up with expressions. So I don’t persist in writing them myself, but as much as I can I pluck native expressions from wherever I encounter them. I think there is a free mutual correction service called “<a href="http://lang-8.com/">lang-8</a>” being used for this. That, or if you enter “Let me know” into Google’s search window using double quotes, there’s a way to confirm if that expression is typical. It’s good to enter from imitation as much as you can in this way. If you’re Japanese, the English dictionary in the <a href="http://alc.co.jp/">ALC website</a> has many examples and is a good reference.</p>

<h3>Memorize efficiently</h3>
<p>English has many things that must be memorizes one way or another, so I would also like to be conscious of efficiency. The points of human memory mechanism are repetition, association, and emphasis. I think repetition is the most important practice in learning English.</p>

<p>There is the forgetting curve. People forget most of things in short term(a few days), but after that forgetting speed will slow down.</p>

<p><a href="http://www.iwaking.com/wp-content/uploads/2010/09/ForgettingCurve.png"><img class="alignnone size-full wp-image-281" title="ForgettingCurve" src="http://www.iwaking.com/wp-content/uploads/2010/09/ForgettingCurve.png" alt="" width="277" height="237" /></a></p>

<p>So, use this charactaristic of brain, It&#8217;s effective that memorizing many words lightly every day than memorizing few words perfectly. In short, attach greater importance to quality than to quantity.</p>

<p>For example, if you memorize 1000 words in 100 days, don&#8217;t try memorize 10 words per day in 100 days. You&#8217;d better sloppily memorize 1000 words a day in 100 days.</p>

<p>And after that, association. It is important to put an image to words and expressions as much as you can. This may be using your right brain over your left brain. If it’s a word, use the image of the word itself. If it’s “flower,” relate it to the image of a flower. If it’s a conversation, it’s best to imagine the situation in which it’s used. As words and expressions become more abstract it becomes more difficult, but as a beginner the concrete words are especially important.</p> 

<p>Also, it’s good to be conscious of associations between words. For example, when you first memorize “search”, when words like “look for” and “seek” appear, make a connection with them and remember it.</p>

<p>At this time, memorizing simple and often used words and expressions so that they come out on reflex and gradually memorizing difficult and subtle expressions is the secret of success. Remember the differences between meanings with them as well.</p> <p>Concerning emphasis, there are methods of listening to voices, reading out loud, and increasing concentration. I would like to practice this on a scale that does not decrease the frequency of repetition.</p>

<h2>Summary</h2>

<p>I wrote this up for my own sake, but have points I have not done recently to positively confirm them. From now on I am adjusting with trial and error as the occasion calls for it, and would like to do my best to be able to prove that I improved with these habits and my own methods were efficient.</p>

<p>If it seems like other people can use it, feel free to take some part of it.</p>

<p>I&#8217;d like to write for myself about the method of speaking more in detail and also of listening and writing when I have time in the future.</p>

<p><a href="http://www.amazon.co.jp/%E6%9D%91%E4%B8%8A%E5%BC%8F%E3%82%B7%E3%83%B3%E3%83%97%E3%83%AB%E8%8B%B1%E8%AA%9E%E5%8B%89%E5%BC%B7%E6%B3%95%E2%80%95%E4%BD%BF%E3%81%88%E3%82%8B%E8%8B%B1%E8%AA%9E%E3%82%92%E3%80%81%E6%9C%AC%E6%B0%97%E3%81%A7%E8%BA%AB%E3%81%AB%E3%81%A4%E3%81%91%E3%82%8B-%E6%9D%91%E4%B8%8A-%E6%86%B2%E9%83%8E/dp/447800580X%3FSubscriptionId%3D0KQG8DGSHCJW49SD2AG2%26tag%3Diwakingcom-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D447800580X"><img src="http://ecx.images-amazon.com/images/I/51Uj58jMwgL._SL160_.jpg" alt="" /></a><a href="http://www.amazon.co.jp/%E5%A4%96%E5%9B%BD%E8%AA%9E%E4%B8%8A%E9%81%94%E6%B3%95-%E5%B2%A9%E6%B3%A2%E6%96%B0%E6%9B%B8-%E9%BB%84%E7%89%88-329-%E5%8D%83%E9%87%8E/dp/4004203295%3FSubscriptionId%3D0KQG8DGSHCJW49SD2AG2%26tag%3Diwakingcom-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D4004203295"><img src="http://ecx.images-amazon.com/images/I/41G-qbB9p1L._SL160_.jpg" alt="" /></a><a href="http://www.amazon.co.jp/%E3%83%8D%E3%82%A4%E3%83%86%E3%82%A3%E3%83%96%E3%81%AA%E3%82%89%E5%AD%90%E3%81%A9%E3%82%82%E3%81%AE%E3%81%A8%E3%81%8D%E3%81%AB%E8%BA%AB%E3%81%AB%E3%81%A4%E3%81%91%E3%82%8B-%E8%8B%B1%E4%BC%9A%E8%A9%B1%E3%81%AA%E3%82%8B%E3%81%BB%E3%81%A9%E3%83%95%E3%83%AC%E3%83%BC%E3%82%BA100%E2%80%95%E8%AA%B0%E3%82%82%E3%81%93%E3%81%93%E3%81%BE%E3%81%A7%E6%95%99%E3%81%88%E3%81%A6%E3%81%8F%E3%82%8C%E3%81%AA%E3%81%8B%E3%81%A3%E3%81%9F%E4%BD%BF%E3%81%88%E3%82%8B%E8%A3%8F%E6%8A%80-%E3%82%B9%E3%83%86%E3%82%A3%E3%83%BC%E3%83%96-%E3%82%BD%E3%83%AC%E3%82%A4%E3%82%B7%E3%82%A3/dp/4757402430%3FSubscriptionId%3D0KQG8DGSHCJW49SD2AG2%26tag%3Diwakingcom-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D4757402430"><img src="http://ecx.images-amazon.com/images/I/51T1MW5M12L._SL160_.jpg" alt="" /></a><a href="http://www.amazon.co.jp/1%E5%88%86%E9%96%93%E8%8B%B1%E8%AA%9E%E3%81%A7%E8%87%AA%E5%88%86%E3%81%AE%E3%81%93%E3%81%A8%E3%82%92%E8%A9%B1%E3%81%97%E3%81%A6%E3%81%BF%E3%82%8B-CD%E4%BB%98-%E6%B5%A6%E5%B3%B6-%E4%B9%85/dp/4806124184%3FSubscriptionId%3D0KQG8DGSHCJW49SD2AG2%26tag%3Diwakingcom-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D4806124184"><img src="http://ecx.images-amazon.com/images/I/51JQH9AGERL._SL160_.jpg" alt="" /></a></p>
<br /><br />

<p>*1 As Japanese have high average level, if Japanese could speak English normally, Japan would be stronger, I think.</p>
<p>*2 Discussion about pain period is here. http://forum.bodybuilding.com/showthread.php?t=121374391</p>]]></content:encoded>
			<wfw:commentRss>http://www.iwaking.com/20101003/279/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>[CakePHP]How to check SQL queries in Shell and Controller</title>
		<link>http://www.iwaking.com/20101002/359/</link>
		<comments>http://www.iwaking.com/20101002/359/#comments</comments>
		<pubDate>Sat, 02 Oct 2010 14:41:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CakePHP]]></category>

		<guid isPermaLink="false">http://www.iwaking.com/?p=359</guid>
		<description><![CDATA[[CakePHP1.3.3] When you debug, within Controller and Model there is often something like SQL from the instant you&#8217;ve done $this-&#62;find(). At that time, either put the function below into vendor or if you read it in bootstrap you can confirm it in SQL any time. Incidentally, within Shell things stripped of HTML are output so [...]]]></description>
			<content:encoded><![CDATA[<p>[CakePHP1.3.3]</p>
<p>When you debug, within Controller and Model there is often something like SQL from the instant you&#8217;ve done $this-&gt;find().</p>
<p>At that time, either put the function below into vendor or if you read it in bootstrap you can confirm it in SQL any time.</p> <p>Incidentally, within Shell things stripped of HTML are output so it&#8217;s very convenient.</p> <p>When you set Configure::write(&#8216;debug&#8217;, 2) or higher, it works.</p>

<pre class="brush: php; title: ; notranslate">
function sql_dump($dbConfig = 'default', $exit = true) {
    ConnectionManager::getDataSource($dbConfig)-&gt;showLog();	
    if ($exit) { exit; } 
}
</pre>
<br /><br />
<p>How to use it is as seen below.</p>
<pre class="brush: php; title: ; notranslate">
class SampleShell extends Shell {
    public $uses = array('Sample');
    
    public function main() {
        $this-&gt;Sample-&gt;find('all');
        sql_dump();
    }
}
</pre>]]></content:encoded>
			<wfw:commentRss>http://www.iwaking.com/20101002/359/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to use ftp on Ubuntu 4.3 (vsftp installation)</title>
		<link>http://www.iwaking.com/20100929/304/</link>
		<comments>http://www.iwaking.com/20100929/304/#comments</comments>
		<pubDate>Wed, 29 Sep 2010 08:01:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://www.iwaking.com/?p=304</guid>
		<description><![CDATA[When you upload a website, ordinarily you use sftp, but the need to create a restricted user appears, so note that way to make it in ubuntu. Now as an example, in order to use ftp, we will create a new user called &#8220;iwaking&#8221;. Add user.# useradd iwaking Setup password.# passwd iwaking Set up to [...]]]></description>
			<content:encoded><![CDATA[
<p>When you upload a website, ordinarily you use sftp, but the need to create a restricted user appears, so note that way to make it in ubuntu.</p>
<p>Now as an example, in order to use ftp, we will create a new user called &#8220;iwaking&#8221;.</p>
<p>Add user.<code># useradd iwaking</code></p>
<p>Setup password.<code># passwd iwaking</code></p>
<p>Set up to refuse users login via ssh, allow only ftp user&#8217;s access this time. <code># vim /etc/ssh/sshd_config<br /> DenyUsers iwaking</code></p>
<p>And the ftp server is famous for vsftp, so you will install it.<code># yum install vsftpd</code></p>
<p>Next, setting vsftpd.<code># vi /etc/vsftpd/vsftpd.conf</code></p>
<p>I will describe only the points that have changed.<code>#Turn off anonymous user<br />anonymous_enable=NO<br /><br />#Allow ASCII mode when uploading and downloading<br />ascii_upload_enable=YES<br />ascii_download_enable=YES<br /><br />#Turn on chroot_list, and restrict user scope<br />chroot_list_enable=YES<br />chroot_local_user=YES<br />chroot_list_file=/etc/vsftpd/chroot_list<br /><br />#Specify a valid user account in the user_list file<br />userlist_enable=YES<br />userlist_deny=NO</code></p>
<p>Next, edit &#8220;user_list&#8221; file. This is the user permission list.<br />In this scenario, a user who is given permission is &#8220;iwaking&#8221;.<code># vi /etc/vsftpd/user_list<br />#root<br />#bin<br />#daemon<br />#adm<br />#lp<br />#sync<br />#shutdown<br />#halt<br />#mail<br />#news<br />#uucp<br />#operator<br />#games<br />#nobody<br />iwaking</code></p>
<p>There is &#8220;ftpusers&#8221; file which is a rejection list.<br />In this scenario, it is OK if &#8220;iwaking&#8221; is not in the list. # <code>vi /etc/vsftpd/ftpusers<br />root<br />bin<br />daemon<br />adm<br />lp<br />sync<br />shutdown<br />halt<br />mail<br />news<br />uucp<br />operator<br />games<br />nobody</code></p>
<p>There is &#8220;chroot_list&#8221; file which is rejection list for chroot.<br />I do not edit this file as chroot will be done.</p>
<p>start vsftpd<code># /etc/init.d/vsftpd restart</code></p>
<p>Configure them to run with starting up.<code># chkconfig --level 345 vsftpd on</code></p>
<p>Release port 20 and 21, if you are running a firewall.</p>
<p>Try to login from local machine as <code># ftp host_name<br />Name : iwaking<br />331 Please specify the password.<br />Password:</code></p>
<p>If login is successful, then it is done.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwaking.com/20100929/304/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>[CakePHP]How to make random id in Model</title>
		<link>http://www.iwaking.com/20100929/275/</link>
		<comments>http://www.iwaking.com/20100929/275/#comments</comments>
		<pubDate>Wed, 29 Sep 2010 07:14:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CakePHP]]></category>

		<guid isPermaLink="false">http://www.iwaking.com/?p=275</guid>
		<description><![CDATA[[CakePHP1.3.3] Sometimes, we want to save random unique id to database. Then, please add this method.]]></description>
			<content:encoded><![CDATA[
<p>[CakePHP1.3.3]</p>
<p>Sometimes, we want to save random unique id to database. Then, please add this method.</p>
<pre class="brush: php; title: ; notranslate">
/**
 * generate random unique id
 * 
 * @return int random unique id
 * @access public
 */
    function randomUniqueId() {
        $rand = mt_rand(1, 99999999);

        // if rand value already exist, try again
        if ($this-&gt;find('count', array('conditions' =&gt; array('Model.field_name' =&gt; $rand))) &gt; 0) {
            return $this-&gt;randomUniqueId();
        }
        return $rand;
    }
</pre><br /><br />]]></content:encoded>
			<wfw:commentRss>http://www.iwaking.com/20100929/275/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[CakePHP]How to get View file name in element or layout</title>
		<link>http://www.iwaking.com/20100901/265/</link>
		<comments>http://www.iwaking.com/20100901/265/#comments</comments>
		<pubDate>Wed, 01 Sep 2010 07:17:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CakePHP]]></category>

		<guid isPermaLink="false">http://www.iwaking.com/?p=265</guid>
		<description><![CDATA[[cakephp 1.3.3]I introduce how to get to know view name in element or layout that is specified by $this-&#62;render in controller.For example, with the contact form, as seen below, many times with one action the view is specifed. &#160; But depending on the value of the view, there are times when I want to change [...]]]></description>
			<content:encoded><![CDATA[
<p>[cakephp 1.3.3]<br />I introduce how to get to know view name in element or layout that is specified by $this-&gt;render in controller.<br /><br />For example, with the contact form, as seen below, many times with one action the view is specifed.</p>
<pre class="brush: php; title: ; notranslate">
function contact() {
        //first view or return selected
        if (!empty($this-&gt;params['form']['return']) || empty($this-&gt;data)) {
            /* getting data required by form process */
        }
        //confirm view or error view
        elseif (!empty($this-&gt;params['form']['confirm'])) {
            /* validating process */
            $this-&gt;render('contact_confirm');
        }
        //finish
        else {
            /* saving data process */
            $this-&gt;render('contact_done');
        }       
}
</pre><br /><br />
<p>&nbsp;</p>

<p><br />But depending on the value of the view, there are times when I want to change the operation of element or layout.<br /><br />At that time, if you render method override the app_controller, from the element or layout in $this-&gt;params[‘view’] you can subtract the value and it’s convenient.</p>
<pre class="brush: php; title: ; notranslate">
function render($action = null, $layout = null, $file = null) {
     if ($action !== null) {
         $view = Inflector::underscore($action);
     }
    else {
         $view = Inflector::underscore($this-&gt;action);
    }
    $this-&gt;params['view'] = $view;
    
    if (!$controller = $this-&gt;params['controller']) {
         return false;
    }
    return parent::render($action, $layout, $file);
}
</pre><br /><br />
<p>&nbsp;</p>

]]></content:encoded>
			<wfw:commentRss>http://www.iwaking.com/20100901/265/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Do you know Strength Finder?</title>
		<link>http://www.iwaking.com/20100821/237/</link>
		<comments>http://www.iwaking.com/20100821/237/#comments</comments>
		<pubDate>Sat, 21 Aug 2010 13:30:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Knowhow]]></category>

		<guid isPermaLink="false">http://www.iwaking.com/?p=237</guid>
		<description><![CDATA[Have you ever heard about &#8220;Strength Finder&#8221;?It is an assessment and, by answering questioners, you will reveal your own 5 strengths from predetermined 34 strengths.Its test result was quite correct about me and I found it is interesting.My result is at About Page, it&#8217;s below.RestorativeFocusFuturisticSelf-AssuranceDeliberativeYou can try it only once on the web if you [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever heard about &#8220;Strength Finder&#8221;?<br />It is an assessment and, by answering questioners, you will reveal your own 5 strengths from predetermined 34 strengths.<br />Its test result was quite correct about me and I found it is interesting.<br /><br />My result is at <a href="http://www.iwaking.com/about/">About Page</a>, it&#8217;s below.<br />Restorative<br />Focus<br />Futuristic<br />Self-Assurance<br />Deliberative<br /><br />You can try it only once on the web if you buy the book below.<br /><a href="http://www.amazon.com/dp/159562015X/">http://www.amazon.com/dp/159562015X/</a><br /><br />If you are interested, please try.<br /><br />At the end, I introduce all strengths shown below.<br /><br /><blockquote>Achiever<br />Activator<br />Adaptability<br />Analytical<br />Arranger<br />Belief<br />Command<br />Communication<br />Connectedness<br />Competition<br />Context<br />Deliberative<br />Developer<br />Discipline<br />Empathy<br />Fairness<br />Focus<br />Futuristic<br />Harmony<br />Ideation<br />Inclusiveness<br />Individualization<br />Input<br />Intellection<br />Learner<br />Maximizer<br />Positivity<br />Restorative<br />Relator<br />Responsibility<br />Self-assurance<br />Significance<br />Strategic<br />Woo</blockquote></p>]]></content:encoded>
			<wfw:commentRss>http://www.iwaking.com/20100821/237/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to make USB Knoppix(6.2) to save your Windows(Mac) data</title>
		<link>http://www.iwaking.com/20100812/217/</link>
		<comments>http://www.iwaking.com/20100812/217/#comments</comments>
		<pubDate>Thu, 12 Aug 2010 12:37:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Knowhow]]></category>

		<guid isPermaLink="false">http://www.iwaking.com/?p=217</guid>
		<description><![CDATA[My friend’s laptop machine did not start up. It seems Windows system files got corrupted. I thought it can be fixed. I decided to create a back up system before I started doing anything on this machine. However the machine was Netbook model and there was no internal optical disk drive. I recalled that USB [...]]]></description>
			<content:encoded><![CDATA[
<p>My friend’s laptop machine did not start up. It seems Windows system files got corrupted. I thought it can be fixed. I decided to create a back up system before I started doing anything on this machine. However the machine was Netbook model and there was no internal optical disk drive. I recalled that USB boot drive could be created with Knoppix thus I decided to give it a go.<br /><br />I heard that Knoppix had new features in version 6 and above to create a bootable flash drive (in USB memory).<br />We can create both CD and DVD version. CD version (700MB), which is smaller in size, suits better for data recovery purpose. DVD version, which is 2400MB, is far too large. I used mac. Knoppix required preparing boot up CD before creating USB but I decided to boot up the machine with parallels (simply because I did not have time to burn on CD).</p>
<p>following the step.</p>
<h3>1. Download Knoppix</h3>
<p>Knoppix is distributed in Torrent file format. I visited its site shown below.<br /><br /><a href="http://torrent.unix-ag.uni-kl.de/">http://torrent.unix-ag.uni-kl.de/</a><br /><br />As of 11/08/2010, the latest version available was 6.2.1. I downloaded followings.<br /><br />KNOPPIX_V6.2.1CD-2010-01-31-EN</p>
<p><a href="http://www.iwaking.com/wp-content/uploads/2010/08/step1.png"><img class="alignnone size-medium wp-image-218" title="step1" src="http://www.iwaking.com/wp-content/uploads/2010/08/step1-294x300.png" alt="" width="294" height="300" /></a></p>
<p>Download Knoppix using Torent software.<br />I recommend <a href="http://www.transmissionbt.com/">Transmission</a> if you use mac.</p>
<p><a href="http://www.iwaking.com/wp-content/uploads/2010/08/step2.png"><img class="alignnone size-medium wp-image-219" title="step2" src="http://www.iwaking.com/wp-content/uploads/2010/08/step2-300x224.png" alt="" width="300" height="224" /></a></p>
<h3>2. Create a virtual machine with parallels from downloaded iso</h3>
<p>Select &#8220;File -&gt; Create New Virtual Machine&#8221; and follow the instractions.<br />Select downloaded iso file when you select file as shown in screen below.</p>
<p><a href="http://www.iwaking.com/wp-content/uploads/2010/08/step3.png"><img class="alignnone size-medium wp-image-220" title="step3" src="http://www.iwaking.com/wp-content/uploads/2010/08/step3-300x231.png" alt="" width="300" height="231" /></a></p>
<h3>3. Create USB Knoppix</h3>
<p>Insert USB device to your machine when Knoppix starts up. The USB decide will be auto-detected.<br />Select &#8220;preference -&gt; flash boot&#8221;<br /><br />Note: you will be asked whether to format a drive. Do not format existing drive. Make sure you select USB device.</p>
<p><a href="http://www.iwaking.com/wp-content/uploads/2010/08/step4.png"><img class="alignnone size-medium wp-image-221" title="step4" src="http://www.iwaking.com/wp-content/uploads/2010/08/step4-300x187.png" alt="" width="300" height="187" /></a></p>
<p><a href="http://www.iwaking.com/wp-content/uploads/2010/08/step5.png"><img class="alignnone size-medium wp-image-222" title="step5" src="http://www.iwaking.com/wp-content/uploads/2010/08/step5-300x187.png" alt="" width="300" height="187" /></a></p>
<h3>4. Change OS boot settings</h3>
<p>By default, OS will be booted up from your HHD therefore you need to change the setting to USB. <br /><br />When the machine is starting up Press F2 (the key can be different depending on mother board manufacturer). With displayed BIOS setting screen, continue setting up.</p>
<h3>5. Backup to other media on Knoppix</h3>
<p>Boot the system from USB memory drive. When Knoppix starts up, continue navigate as per normal and create back up to external HDD or USB.</p>
<p>This is it. I have to say it is a bit troublesome. It is the best to have it prepared before the machine starts giving a problem but I really did not feel like doing so.<br /><br /></p>
<h3>Appendix</h3>
<p>Apart from what I had just described above, You can also create your USB boot up system with &#8220;Ubuntu Rescure Remix&#8221; which is created using Ubuntu. If you are interested, please try it also. <br /><br /><a href="http://ubuntu-rescue-remix.org/">http://ubuntu-rescue-remix.org/</a><br /><br /><a href="http://www.linuxliveusb.com/">http://www.linuxliveusb.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwaking.com/20100812/217/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>[CakePHP]How to save IP address or Host name automatically</title>
		<link>http://www.iwaking.com/20100807/200/</link>
		<comments>http://www.iwaking.com/20100807/200/#comments</comments>
		<pubDate>Sat, 07 Aug 2010 12:14:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CakePHP]]></category>

		<guid isPermaLink="false">http://www.iwaking.com/?p=200</guid>
		<description><![CDATA[I&#8217;ve been using CakePHP a lot so I would like to release the tips little by little during break.If it&#8217;s CGM type web service, users do some actions and keep them in DB. It&#8217;s usual to keep user&#8217;s IP addresses at that time to follow users . It takes time to write the codes in [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using CakePHP a lot so I would like to release the tips  little by little during break.</p><p>If it&#8217;s CGM type web service, users do  some actions and keep them in DB. It&#8217;s usual to keep user&#8217;s IP addresses  at that time to follow users . It takes time to write the codes in all  of models to keep IP so it&#8217;ll be way easy if you do like example below.</p><p>In that case, type &#8220;ip_address&#8221; in field of the table you would  like to save IP address, type also &#8220;host_name&#8221; in field if you would  like to save host name.<br />Then keep it in &#8220;beforeSave&#8221; of app_model.php , the table you added the field will save all of IP addresses automatically.</p><br /><br />app_model.php<br /></p>
<pre class="brush: php; title: ; notranslate">/**
 * save IP address automatically if DB has `ip_address` field
 */
    function beforeSave() {        
        if ($this-&gt;hasField('ip_address') &amp;&amp; empty($this-&gt;id) &amp;&amp; empty($this-&gt;data[$this-&gt;alias][$this-&gt;primaryKey])) {
            $this-&gt;data[$this-&gt;name]['ip_address'] = env('REMOTE_ADDR');
        }
        if ($this-&gt;hasField('host_name') &amp;&amp; empty($this-&gt;id) &amp;&amp; empty($this-&gt;data[$this-&gt;alias][$this-&gt;primaryKey])) {
            $this-&gt;data[$this-&gt;name]['host_name'] = gethostbyaddr(env('REMOTE_ADDR'));
        }        
        return true;
    }
</pre>]]></content:encoded>
			<wfw:commentRss>http://www.iwaking.com/20100807/200/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>[CakePHP]How to create navigation with well thought out about current page</title>
		<link>http://www.iwaking.com/20100704/140/</link>
		<comments>http://www.iwaking.com/20100704/140/#comments</comments>
		<pubDate>Sun, 04 Jul 2010 10:02:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CakePHP]]></category>

		<guid isPermaLink="false">http://www.iwaking.com/?p=140</guid>
		<description><![CDATA[Using layout template is general at cakephp view. There is a global menu in layout template. If we show the selected global menu in each page even if it takes time a bit, it looks neat as the example below which I found at Google group.]]></description>
			<content:encoded><![CDATA[<p>Using layout template is general at cakephp view. There is a global menu in layout template. If we show the selected global menu in each page even if it takes time a bit, it looks neat as the example below which I found at <a href="http://groups.google.com/group/cake-php/browse_thread/thread/2ee368cbd63a4391?pli=1">Google group</a>.</p>
<p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
$navLinks = array(
    'home' =&gt; array(
        'title' =&gt; 'home',
        'path' =&gt; '/',
    ),
    'services' =&gt; array(
        'title' =&gt; 'our services',
        'path' =&gt; '/pages/services',
    ),
    'contact' =&gt; array(
        'title' =&gt; 'contact us',
        'path' =&gt; '/contacts',
    ),
    'about' =&gt; array(
        'title' =&gt; 'about us',
        'path' =&gt; '/pages/about',
    ),
);
?&gt;

&lt;ul id=&quot;global_nav&quot;&gt;
	&lt;?php foreach ($navLinks as $key =&gt; $link) : 
		  
		  $class = null;
		  if (strpos($this-&gt;params['url']['url'], substr($link['path'], 1)) !== false) {
		      $class = array('class' =&gt; 'current');
		  }
	?&gt;
	
	&lt;li id=&quot;nav_&lt;?=$key?&gt;&quot;&gt;&lt;?=$html-&gt;link($link['title'], $link['path'], $class)?&gt;&lt;/li&gt;
	&lt;?php endforeach; ?&gt;
&lt;/ul&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.iwaking.com/20100704/140/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Illustrator error loading plugins</title>
		<link>http://www.iwaking.com/20100704/130/</link>
		<comments>http://www.iwaking.com/20100704/130/#comments</comments>
		<pubDate>Sun, 04 Jul 2010 07:10:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://www.iwaking.com/?p=130</guid>
		<description><![CDATA[I don&#8217;t use Illustrator often but I updated to CS5 and there was an error when it was opening the application. So I looked it up. It&#8217;s hard to find the adobe Q&#038;A page from search engine because they change the link. Just search for it within adobe site and I found it. http://kb2.adobe.com/jp/cps/231/231348.htmlMacintosh HD/Users/&#60;user_name&#62;/Libraries/Preferences/Adobe [...]]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t use Illustrator often but I updated to CS5 and there was an error when it was opening the application. So I looked it up.  It&#8217;s hard to find the adobe Q&#038;A page from search engine because they change the link. Just search for it within adobe site and I found it.</p>

<br />
<p><a href="http://kb2.adobe.com/jp/cps/231/231348.html">http://kb2.adobe.com/jp/cps/231/231348.html</a><br /><br />Macintosh HD/Users/&lt;user_name&gt;/Libraries/Preferences/Adobe Illustrator</p>
<p>It was fixed after deleting AIPrefs and plist files.<br />Try it if you stuck in the error on CS5.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwaking.com/20100704/130/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

