<?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>For A While</title>
	<atom:link href="http://awhile.us/blog/en/feed/" rel="self" type="application/rss+xml" />
	<link>http://awhile.us/blog/en/</link>
	<description></description>
	<lastbuilddate>Tue, 27 Mar 2012 11:24:49 +0000</lastbuilddate>
	<language>en</language>
	<sy:updateperiod>hourly</sy:updateperiod>
	<sy:updatefrequency>1</sy:updatefrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>다른 시스템간 공유가 가능한 Mac 전용 메모 어플 Notational Velocity</title>
		<link>http://awhile.us/blog/en/2012/03/share-memo-mac-application-notational-velocity/</link>
		<comments>http://awhile.us/blog/en/2012/03/share-memo-mac-application-notational-velocity/#comments</comments>
		<pubdate>Tue, 27 Mar 2012 11:24:11 +0000</pubdate>
		<dc:creator>While</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Dropbox]]></category>
		<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Notational Velocity]]></category>
		<category><![CDATA[Simplenoteapp]]></category>
		<category><![CDATA[메모장]]></category>

		<guid ispermalink="false">http://awhile.us/blog/?p=1861-en</guid>
		<description><![CDATA[Windows 를 쓸떄와 마찬가지로 Mac 을 쓸때 역시 평소에 메모장이나 텍스트 에디터 프로그램으로 간단한 메모를 많이 하고 항상 활용하는데 이 메모들을 한곳에 정리하기란 쉽지 않다. 대부분 바탕화면에 지저분하게 txt 파일이 굴러다니는 경우가 많다. 요즘엔 점점 만져야하는 컴퓨터가 늘어나면서 필요한 메모들을 저장해둘 메모장이 필요해졌다. 찾아보니 나름 그런 프로그램들이 많이 있었고, 아주 간단한 몇개를 찾았다. 간단한 프로그램은 [...]]]></description>
			<content:encoded><![CDATA[<p>Windows 를 쓸떄와 마찬가지로 Mac 을 쓸때 역시 평소에 메모장이나 텍스트 에디터 프로그램으로 간단한 메모를 많이 하고 항상 활용하는데 이 메모들을 한곳에 정리하기란 쉽지 않다. 대부분 바탕화면에 지저분하게 txt 파일이 굴러다니는 경우가 많다.</p>
<p>요즘엔 점점 만져야하는 컴퓨터가 늘어나면서 필요한 메모들을 저장해둘 메모장이 필요해졌다. 찾아보니 나름 그런 프로그램들이 많이 있었고, 아주 간단한 몇개를 찾았다. 간단한 프로그램은 대부분은 작동 방식이 아래와 같다.</p>
<ul>
<li>여러 txt 파일들을 Import 하여 리스트로 관리.</li>
<li>Export 하면 역시 똑같은 형식으로 뱉어줌. (rtf 등 선택 가능)</li>
<li>제목을 지정할 수 있으며 제목은 보통 파일명.</li>
<li>폰트 설정 가능.</li>
<li>탭 형식으로 되어 있어 리스트에서 해당 제목을 클릭시 내용 수정 가능.</li>
</ul>
<p><a href="http://notational.net/" target="_blank">Notational Velocity</a>는 위 기능들에 아래의 멋진 기능들이 더 추가되어 있다.</p>
<ul>
<li>Simplenoteapp.com 을 통해 여러 컴퓨터와 Sync 가능</li>
<li>문서들에 암호 설정 가능</li>
<li>실제 파일들과 내용이 항상 동기화됨</li>
</ul>
<p>이 어플을 Dropbox 와 연결해서 쓰면 어디서든 항상 동기화가 되는 메모장을 쓸 수 있다.</p>
<p>윈도우용은 비슷한 프로그램으로 <a href="http://www.resoph.com/ResophNotes/Welcome.html" target="_blank">ResophNotes</a>가 있다.</p>
]]></content:encoded>
			<wfw:commentrss>http://awhile.us/blog/en/2012/03/share-memo-mac-application-notational-velocity/feed/</wfw:commentrss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP 5.4.0 The full version releases. PHP 5.4 point change in.</title>
		<link>http://awhile.us/blog/en/2012/03/php-5-4-0-%ec%a0%95%ec%8b%9d%eb%b2%84%ec%a0%84-%eb%a6%b4%eb%a6%ac%ec%a6%88-php-5-4%ec%97%90%ec%84%9c-%eb%b0%94%eb%80%8c%eb%8a%94-%ec%a0%90/</link>
		<comments>http://awhile.us/blog/en/2012/03/php-5-4-0-%ec%a0%95%ec%8b%9d%eb%b2%84%ec%a0%84-%eb%a6%b4%eb%a6%ac%ec%a6%88-php-5-4%ec%97%90%ec%84%9c-%eb%b0%94%eb%80%8c%eb%8a%94-%ec%a0%90/#comments</comments>
		<pubdate>Fri, 02 Mar 2012 02:15:54 +0000</pubdate>
		<dc:creator>While</dc:creator>
				<category><![CDATA[PHP Info]]></category>
		<category><![CDATA[get_magic_quotes_runtime]]></category>
		<category><![CDATA[magic_quote]]></category>
		<category><![CDATA[PHP 5.4]]></category>
		<category><![CDATA[php 5.4 magic_quote]]></category>
		<category><![CDATA[PHP 5.4 새 기능]]></category>
		<category><![CDATA[PHP 5.4.0]]></category>
		<category><![CDATA[PHP 배열]]></category>
		<category><![CDATA[PHP 배열 문법]]></category>
		<category><![CDATA[빌트인 웹서버]]></category>

		<guid ispermalink="false">http://awhile.us/blog/?p=1844-en</guid>
		<description><![CDATA[드디어 아주 많은 기능들이 추가된 PHP 5.4.0의 정식버전이 릴리즈 되었다. 기존에는 RC 버전만 배포되고 있었다. PHP 공식 홈페이지에서는 5.4 버전의 릴리즈가 기존 5.1~5.3 버전까지 업데이트에 비해서 상당히 큰 스케일이라 한다. Deprecated features in PHP 5.4.x mysql_list_dbs() get_magic_quotes_gpc() -> 항상 false 를 반환 get_magic_quotes_runtime() -> 항상 false 를 반환 set_magic_quotes_runtime() -> 에러 mcrypt_generic_end() 특히 magic_quote 를 [...]]]></description>
			<content:encoded><![CDATA[<p>드디어 아주 많은 기능들이 추가된 PHP 5.4.0의 정식버전이 릴리즈 되었다. 기존에는 RC 버전만 배포되고 있었다.<br />
PHP 공식 홈페이지에서는 5.4 버전의 릴리즈가 기존 5.1~5.3 버전까지 업데이트에 비해서 상당히 큰 스케일이라 한다.</p>
<h2>Deprecated features in PHP 5.4.x</h2>
<blockquote><p>
mysql_list_dbs()<br />
get_magic_quotes_gpc() -> 항상 false 를 반환<br />
get_magic_quotes_runtime() -> 항상 false 를 반환<br />
set_magic_quotes_runtime() -> 에러<br />
mcrypt_generic_end()
</p></blockquote>
<p>특히 magic_quote 를 감지하는 함수가 없어지는 것은 이제 더이상 magic_quote 자체를 쓰지 말라는 소리같다.</p>
<h2>완전히 없어진 함수</h2>
<blockquote><p>
define_syslog_variables()<br />
import_request_variables()<br />
session_is_registered(), session_register() and session_unregister()<br />
mysqli_bind_param(), mysqli_bind_result(), mysqli_client_encoding(), mysqli_fetch(), mysqli_param_count(), mysqli_get_metadata(), mysqli_send_long_data(), mysqli::client_encoding(), mysqli_stmt::stmt()
</p></blockquote>
<h2>새 기능</h2>
<p>OOP 기능인 Traits, 짧은 배열 문법, 개발용 빌트인 웹서버가 있다.</p>
<h3>짧은 배열</h3>
<p>제일 눈에 보이는 것은 배열을 짧게 표현할 수 있는 기능이다. 첨에는 json 정도를 기대했지만 그정도는 아니고 아래와 같이 사용 할 수 있다.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$var</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
	<span style="color: #cc66cc;">1</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;가나다&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #cc66cc;">2</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;라마바&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #cc66cc;">3</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;사아자&quot;</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>위와 같은 코드를</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$was</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span>
	<span style="color: #cc66cc;">1</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;가나다&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #cc66cc;">2</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;라마바&quot;</span><span style="color: #339933;">,</span>
	<span style="color: #cc66cc;">3</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;사아자&quot;</span>
<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span></pre></div></div>

<p>이렇게 줄일 수 있다. 단지 array 라는 5글자가 사라진 것 뿐이긴 하지만 시각적으로 큰 효과를 보인다.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$object</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">method</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">otherMethod</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$object</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> MyClass<span style="color: #339933;">-&gt;</span><span style="color: #004000;">method</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>추가적으로 위와 같은 문법도 쓸 수 있게 되었다.</p>
<h3>Traits</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">trait Hello <span style="color: #009900;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> sayHello<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'Hello '</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
trait World <span style="color: #009900;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> sayWorld<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">' World'</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">class</span> MyHelloWorld <span style="color: #009900;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">use</span> Hello<span style="color: #339933;">,</span> World<span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> sayExclamationMark<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'!'</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>위와 같이 &#8220;형에 상관 없는 상속&#8221;을 할 수 있다.</p>
<h3>빌트인 웹서버</h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #7a0874; font-weight: bold;">cd</span> ~<span style="color: #000000; font-weight: bold;">/</span>public_html
$ php <span style="color: #660033;">-S</span> localhost:<span style="color: #000000;">8000</span> <span style="color: #660033;">-t</span> .<span style="color: #000000; font-weight: bold;">/</span>
PHP 5.4.0 Development Server started at Thu Jul <span style="color: #000000;">21</span> <span style="color: #000000;">10</span>:<span style="color: #000000;">43</span>:<span style="color: #000000;">28</span> <span style="color: #000000;">2011</span>
Listening on localhost:<span style="color: #000000;">8000</span>
Document root is <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>me<span style="color: #000000; font-weight: bold;">/</span>public_html
Press Ctrl-C to quit.
<span style="color: #7a0874; font-weight: bold;">&#91;</span>Thu Jul <span style="color: #000000;">21</span> <span style="color: #000000;">10</span>:<span style="color: #000000;">48</span>:<span style="color: #000000;">48</span> <span style="color: #000000;">2011</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> ::<span style="color: #000000;">1</span>:<span style="color: #000000;">39144</span> GET <span style="color: #000000; font-weight: bold;">/</span>favicon.ico - Request <span style="color: #c20cb9; font-weight: bold;">read</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>Thu Jul <span style="color: #000000;">21</span> <span style="color: #000000;">10</span>:<span style="color: #000000;">48</span>:<span style="color: #000000;">50</span> <span style="color: #000000;">2011</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> ::<span style="color: #000000;">1</span>:<span style="color: #000000;">39146</span> GET <span style="color: #000000; font-weight: bold;">/</span> - Request <span style="color: #c20cb9; font-weight: bold;">read</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>Thu Jul <span style="color: #000000;">21</span> <span style="color: #000000;">10</span>:<span style="color: #000000;">48</span>:<span style="color: #000000;">50</span> <span style="color: #000000;">2011</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> ::<span style="color: #000000;">1</span>:<span style="color: #000000;">39147</span> GET <span style="color: #000000; font-weight: bold;">/</span>favicon.ico - Request <span style="color: #c20cb9; font-weight: bold;">read</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>Thu Jul <span style="color: #000000;">21</span> <span style="color: #000000;">10</span>:<span style="color: #000000;">48</span>:<span style="color: #000000;">52</span> <span style="color: #000000;">2011</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> ::<span style="color: #000000;">1</span>:<span style="color: #000000;">39148</span> GET <span style="color: #000000; font-weight: bold;">/</span>myscript.html - Request <span style="color: #c20cb9; font-weight: bold;">read</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>Thu Jul <span style="color: #000000;">21</span> <span style="color: #000000;">10</span>:<span style="color: #000000;">48</span>:<span style="color: #000000;">52</span> <span style="color: #000000;">2011</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> ::<span style="color: #000000;">1</span>:<span style="color: #000000;">39149</span> GET <span style="color: #000000; font-weight: bold;">/</span>favicon.ico - Request <span style="color: #c20cb9; font-weight: bold;">read</span></pre></div></div>

<p>위와 같이 사용 할 수 있다.</p>
<p>참고로 php_sapi_name() 함수를 호출하여 &#8220;cli-server&#8221;라는 글이 보이면 위의 코드로 실행을 했다는 것을 알 수 있다.</p>
<h3>새로 생긴 함수</h3>
<ul>
<li>기존에 bin2hex만 있었는데 <a href="http://php.net/manual/en/function.hex2bin.php">hex2bin</a>도 생김.</li>
<li>http_reponse_code()</li>
<li>get_declared_traits()</li>
<li>getimagesizefromstring()</li>
<li>stream_set_chunk_size()</li>
<li>socket_import_stream()</li>
<li>trait_exists()</li>
<li>header_register_callback()</li>
<li>class_uses()</li>
<li>session_status()</li>
<li>session_register_shutdown()</li>
<li>mysqli_error_list()</li>
<li>mysqli_stmt_error_list()</li>
<li>libxml_set_external_entity_loader()</li>
<li>ldap_control_paged_results()</li>
<li>ldap_control_paged_results_response()</li>
<li>transliterator_create()</li>
<li>transliterator_create_from_rules()</li>
<li>transliterator_create_inverse()</li>
<li>transliterator_get_error_code()</li>
<li>transliterator_get_error_message()</li>
<li>transliterator_list_ids()</li>
<li>transliterator_transliterate()</li>
</ul>
<h2>새로 추가된 상수</h2>
<p><H3>PHP Core</h3>
<ul>
<li>ENT_DISALLOWED</li>
<li>ENT_HTML401</li>
<li>ENT_HTML5</li>
<li>ENT_SUBSTITUTE</li>
<li>ENT_XML1</li>
<li>ENT_XHTML</li>
<li>IPPROTO_IP</li>
<li>IPPROTO_IPV6</li>
<li>IPV6_MULTICAST_HOPS</li>
<li>IPV6_MULTICAST_IF</li>
<li>IPV6_MULTICAST_LOOP</li>
<li>IP_MULTICAST_IF</li>
<li>IP_MULTICAST_LOOP</li>
<li>IP_MULTICAST_TTL</li>
<li>MCAST_JOIN_GROUP</li>
<li>MCAST_LEAVE_GROUP</li>
<li>MCAST_BLOCK_SOURCE</li>
<li>MCAST_UNBLOCK_SOURCE</li>
<li>MCAST_JOIN_SOURCE_GROUP</li>
<li>MCAST_LEAVE_SOURCE_GROUP</li>
</ul>
<h3>Curl</h3>
<ul>
<li>CURLOPT_MAX_RECV_SPEED_LARGE</li>
<li>CURLOPT_MAX_SEND_SPEED_LARGE</li>
</ul>
<h3>LibXML</h3>
<ul>
<li>LIBXML_HTML_NODEFDTD</li>
<li>LIBXML_HTML_NOIMPLIED</li>
<li>LIBXML_PEDANTIC</li>
</ul>
<h3>OpenSSL</h3>
<ul>
<li>OPENSSL_CIPHER_AES_128_CBC</li>
<li>OPENSSL_CIPHER_AES_192_CBC</li>
<li>OPENSSL_CIPHER_AES_256_CBC</li>
<li>OPENSSL_RAW_DATA</li>
<li>OPENSSL_ZERO_PADDING</li>
</ul>
<h3>Output buffering</h3>
<ul>
<li>PHP_OUTPUT_HANDLER_CLEAN</li>
<li>PHP_OUTPUT_HANDLER_CLEANABLE</li>
<li>PHP_OUTPUT_HANDLER_DISABLED</li>
<li>PHP_OUTPUT_HANDLER_FINAL</li>
<li>PHP_OUTPUT_HANDLER_FLUSH</li>
<li>PHP_OUTPUT_HANDLER_FLUSHABLE</li>
<li>PHP_OUTPUT_HANDLER_REMOVABLE</li>
<li>PHP_OUTPUT_HANDLER_STARTED</li>
<li>PHP_OUTPUT_HANDLER_STDFLAGS</li>
<li>PHP_OUTPUT_HANDLER_WRITE</li>
</ul>
<h3>Sessions</h3>
<ul>
<li>PHP_SESSION_ACTIVE</li>
<li>PHP_SESSION_DISABLED</li>
<li>PHP_SESSION_NONE</li>
</ul>
<h3>Stream</h3>
<ul>
<li>STREAM_META_ACCESS</li>
<li>STREAM_META_GROUP</li>
<li>STREAM_META_GROUP_NAME</li>
<li>STREAM_META_OWNER</li>
<li>STREAM_META_OWNER_NAME</li>
<li>STREAM_META_TOUCH</li>
</ul>
<h3>Zlib</h3>
<ul>
<li>ZLIB_ENCODING_DEFLATE</li>
<li>ZLIB_ENCODING_GZIP</li>
<li>ZLIB_ENCODING_RAW</li>
</ul>
<h3>Intl</h3>
<ul>
<li>U_IDNA_DOMAIN_NAME_TOO_LONG_ERROR</li>
<li>IDNA_CHECK_BIDI</li>
<li>IDNA_CHECK_CONTEXTJ</li>
<li>IDNA_NONTRANSITIONAL_TO_ASCII</li>
<li>IDNA_NONTRANSITIONAL_TO_UNICODE</li>
<li>INTL_IDNA_VARIANT_2003</li>
<li>INTL_IDNA_VARIANT_UTS46</li>
<li>IDNA_ERROR_EMPTY_LABEL</li>
<li>IDNA_ERROR_LABEL_TOO_LONG</li>
<li>IDNA_ERROR_DOMAIN_NAME_TOO_LONG</li>
<li>IDNA_ERROR_LEADING_HYPHEN</li>
<li>IDNA_ERROR_TRAILING_HYPHEN</li>
<li>IDNA_ERROR_HYPHEN_3_4</li>
<li>IDNA_ERROR_LEADING_COMBINING_MARK</li>
<li>IDNA_ERROR_DISALLOWED</li>
<li>IDNA_ERROR_PUNYCODE</li>
<li>IDNA_ERROR_LABEL_HAS_DOT</li>
<li>IDNA_ERROR_INVALID_ACE_LABEL</li>
<li>IDNA_ERROR_BIDI</li>
<li>IDNA_ERROR_CONTEXTJ</li>
</ul>
<h3>Json</h3>
<ul>
<li>JSON_PRETTY_PRINT</li>
<li>JSON_UNESCAPED_SLASHES</li>
<li>JSON_NUMERIC_CHECK</li>
<li>JSON_UNESCAPED_UNICODE</li>
<li>JSON_BIGINT_AS_STRING</li>
</ul>
<h2>기타 자잘한 업데이트 사항</h2>
<ul>
<li>array_combine()은 이제 false 대신 array() 를 리턴합니다.</li>
<li>call_user_func_array() 에서도 더이상 call-time pass by reference 를 지원하지 않음.</li>
<li>&lt;?= 가 항상 허용됨.</li>
<li>fnv132, fnv164, joaat 알고리즘 추가.</li>
<li>Class::{expr}() 문법 지원.</li>
<li>클로져에서 $this 지원.</li>
</ul>
]]></content:encoded>
			<wfw:commentrss>http://awhile.us/blog/en/2012/03/php-5-4-0-%ec%a0%95%ec%8b%9d%eb%b2%84%ec%a0%84-%eb%a6%b4%eb%a6%ac%ec%a6%88-php-5-4%ec%97%90%ec%84%9c-%eb%b0%94%eb%80%8c%eb%8a%94-%ec%a0%90/feed/</wfw:commentrss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automatic re-location (Automatic Repositioning)</title>
		<link>http://awhile.us/blog/en/2012/01/objective-j-automatic-repositioning/</link>
		<comments>http://awhile.us/blog/en/2012/01/objective-j-automatic-repositioning/#comments</comments>
		<pubdate>Sat, 28 Jan 2012 16:27:45 +0000</pubdate>
		<dc:creator>While</dc:creator>
				<category><![CDATA[Cappuccino (Objective-J)]]></category>
		<category><![CDATA[cappuccino]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[Objective-J]]></category>
		<category><![CDATA[카푸치노]]></category>

		<guid ispermalink="false">http://awhile.us/blog/?p=1815-en</guid>
		<description><![CDATA[Objective-J 에서는 아래와 같은 방법으로 뷰영역의 크기 변화에 따라 자동적으로 원하는 뷰를 리포지셔닝(위치 재조정) 하도록 설정 할 수 있다. How to Use &#91;viewInstance setAutoresizingMask:마스크&#93;; 위의 마스크 부분에는 여러가지가 들어갈 수 있으나, Repositioning 에 관한 마스크는 CPViewMinXMargin, CPViewMaxXMargin, CPViewMinYMargin, CPViewMaxYMargin 이 들어갈 수 있다. 이 마스크들은 이름만 보고는 무슨 역할을 하는지 예측하기가 힘들다. CPViewMinXMargin: 왼쪽 여백을 초기에 [...]]]></description>
			<content:encoded><![CDATA[<p>Objective-J 에서는 아래와 같은 방법으로 뷰영역의 크기 변화에 따라 자동적으로 원하는 뷰를 리포지셔닝(위치 재조정) 하도록 설정 할 수 있다.</p>
<h3>How to Use</h3>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #002200;">&#91;</span>viewInstance setAutoresizingMask<span style="color: #002200;">:</span>마스크<span style="color: #002200;">&#93;</span>;</pre></div></div>

<p>위의 마스크 부분에는 여러가지가 들어갈 수 있으나, Repositioning 에 관한 마스크는 CPViewMinXMargin, CPViewMaxXMargin, CPViewMinYMargin, CPViewMaxYMargin 이 들어갈 수 있다.</p>
<p>이 마스크들은 이름만 보고는 무슨 역할을 하는지 예측하기가 힘들다.</p>
<ul>
<li><b>CPViewMinXMargin</b>: 왼쪽 여백을 초기에 로딩 된 값으로 고정</li>
<li><b>CPViewMaxXMargin</b>: 오른쪽 여백을 초기에 로딩 된 값으로 고정</li>
<li><b>CPViewMinYMargin</b>: 윗쪽 여백을 초기에 로딩 된 값으로 고정</li>
<li><b>CPViewMaxYMargin</b>: 아랫쪽 여백을 초기에 로딩 된 값으로 고정</li>
</ul>
<p>이 마스크 옵션들을 동시에 여러개 지정할 수도 있다. 그럴 경우에는 약간 다르게 동작한다.</p>
<ul>
<li><b>CPViewMinXMargin | CPViewMaxXMargin</b>: 리사이징을 했을 때 양쪽 여백의 비율을 고정</li>
<li><b>CPViewMinYMargin | CPViewMaxYMargin</b>: 리사이징을 했을 때 위아래 여백의 비율을 고정</li>
</ul>
<h3>사용 예</h3>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #002200;">&#91;</span>viewInstance setAutoresizingMask<span style="color: #002200;">:</span>CPViewMinXMargin<span style="color: #002200;">&#93;</span>;</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #002200;">&#91;</span>viewInstance setAutoresizingMask<span style="color: #002200;">:</span>CPViewMinXMargin | CPViewMinYMargin<span style="color: #002200;">&#93;</span>;</pre></div></div>

]]></content:encoded>
			<wfw:commentrss>http://awhile.us/blog/en/2012/01/objective-j-automatic-repositioning/feed/</wfw:commentrss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iOS 4 Aligned with XCode 4.1 Download</title>
		<link>http://awhile.us/blog/en/2012/01/ios-4-%ec%97%90-%eb%a7%9e%ec%b6%b0%ec%a7%84-xcode-4-1-%eb%8b%a4%ec%9a%b4%eb%a1%9c%eb%93%9c/</link>
		<comments>http://awhile.us/blog/en/2012/01/ios-4-%ec%97%90-%eb%a7%9e%ec%b6%b0%ec%a7%84-xcode-4-1-%eb%8b%a4%ec%9a%b4%eb%a1%9c%eb%93%9c/#comments</comments>
		<pubdate>Wed, 25 Jan 2012 01:33:46 +0000</pubdate>
		<dc:creator>While</dc:creator>
				<category><![CDATA[Mac]]></category>

		<guid ispermalink="false">http://awhile.us/blog/?p=1805-en</guid>
		<description><![CDATA[많은 아이폰4 프로그래밍 책은 대부분 XCode 4.1에 맞춰져 있습니다. XCode 는 버전별로 달라지는 사항들이 너무나 많기 때문에 초보자의 경우 책과 같은 버전을 사용하는게 편합니다. 아래에서 받을 수 있으며 애플 개발자 권한이 있어야합니다. XCode 4.1 for Lion XCode 4.1 for Snow Leopard [Reference] &#8211; 모두 Snow Leopard 용 XCode 4 (iOS SDK 4.3) XCode 4.0.1 (iOS [...]]]></description>
			<content:encoded><![CDATA[<p>많은 아이폰4 프로그래밍 책은 대부분 XCode 4.1에 맞춰져 있습니다. XCode 는 버전별로 달라지는 사항들이 너무나 많기 때문에 초보자의 경우 책과 같은 버전을 사용하는게 편합니다.</p>
<p>아래에서 받을 수 있으며 애플 개발자 권한이 있어야합니다.</p>
<p><a href="https://developer.apple.com/downloads/download.action?path=Developer_Tools/xcode_4.1_for_lion/xcode_4.1_for_lion.dmg" title="XCode 4" target="_blank">XCode 4.1 for Lion</a></p>
<p><a href="https://developer.apple.com/downloads/download.action?path=Developer_Tools/xcode_4.1_for_snow_leopard_21110/xcode_4.1_for_snow_leopard.dmg">XCode 4.1 for Snow Leopard</a></p>
<p>[Reference] &#8211; 모두 Snow Leopard 용<br />
<a href="http://developer.apple.com/devcenter/download.action?path=/Developer_Tools/xcode_4_and_ios_sdk_4.3__final/xcode_4_and_ios_sdk_4.3__final.dmg">XCode 4 (iOS SDK 4.3)</a><br />
<a href="http://developer.apple.com/devcenter/download.action?path=/Developer_Tools/xcode_4.0.1_and_ios_sdk_4.3/xcode_4.0.1_and_ios_sdk_4.3.dmg">XCode 4.0.1 (iOS SDK 4.3)</a><br />
<a href="http://developer.apple.com/devcenter/download.action?path=/Developer_Tools/xcode_4.0.2_and_ios_sdk_4.3/xcode_4.0.2_and_ios_sdk_4.3.dmg">XCode 4.0.2 (iOS SDK 4.3)</a></p>
]]></content:encoded>
			<wfw:commentrss>http://awhile.us/blog/en/2012/01/ios-4-%ec%97%90-%eb%a7%9e%ec%b6%b0%ec%a7%84-xcode-4-1-%eb%8b%a4%ec%9a%b4%eb%a1%9c%eb%93%9c/feed/</wfw:commentrss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>.htaccess with Rewrite all the files in the file of a driving stage</title>
		<link>http://awhile.us/blog/en/2011/12/htaccess-%ec%97%90%ec%84%9c-rewrite-%eb%a5%bc-%ec%9d%b4%ec%9a%a9%ed%95%b4-%eb%aa%a8%eb%93%a0-%ed%8c%8c%ec%9d%bc%ec%9d%84-%eb%8b%a8-%ed%95%9c%ea%b0%9c%ec%9d%98-%ed%8c%8c%ec%9d%bc%eb%a1%9c-%eb%aa%b0/</link>
		<comments>http://awhile.us/blog/en/2011/12/htaccess-%ec%97%90%ec%84%9c-rewrite-%eb%a5%bc-%ec%9d%b4%ec%9a%a9%ed%95%b4-%eb%aa%a8%eb%93%a0-%ed%8c%8c%ec%9d%bc%ec%9d%84-%eb%8b%a8-%ed%95%9c%ea%b0%9c%ec%9d%98-%ed%8c%8c%ec%9d%bc%eb%a1%9c-%eb%aa%b0/#comments</comments>
		<pubdate>Thu, 01 Dec 2011 02:16:11 +0000</pubdate>
		<dc:creator>While</dc:creator>
				<category><![CDATA[Linux Information]]></category>
		<category><![CDATA[Information]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[Rewrite]]></category>
		<category><![CDATA[RewriteCond]]></category>
		<category><![CDATA[RewriteEngine]]></category>
		<category><![CDATA[RewriteRule]]></category>
		<category><![CDATA[파일]]></category>
		<category><![CDATA[한개]]></category>

		<guid ispermalink="false">http://awhile.us/blog/?p=1772-en</guid>
		<description><![CDATA[RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /index.php?$1 [NC,L] RewriteCond 의 두 옵션에 의해 만약 주소에 실제 파일명이나 폴더명이 호출 됐을때는 해당 파일을 읽어오게 된다. ! 는 부정을 의미하고, -d는 디렉토리가 있을때를 의미, -f는 파일이 있을때를 의미한다. 이 옵션이 있으면 정적파일을 불러올때도 좋지만, 제일 중요한 이유는 index.php 라는 파일명과 겹치게 되면 무한 [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #00007f;">RewriteEngine</span> <span style="color: #0000ff;">on</span>
<span style="color: #00007f;">RewriteCond</span> %{REQUEST_FILENAME} !-f
<span style="color: #00007f;">RewriteCond</span> %{REQUEST_FILENAME} !-d
<span style="color: #00007f;">RewriteRule</span> ^(.*)$ /index.php?$1 [NC,L]</pre></div></div>

<p>RewriteCond 의 두 옵션에 의해 만약 주소에 실제 파일명이나 폴더명이 호출 됐을때는 해당 파일을 읽어오게 된다. ! 는 부정을 의미하고, -d는 디렉토리가 있을때를 의미, -f는 파일이 있을때를 의미한다.</p>
<p>이 옵션이 있으면 정적파일을 불러올때도 좋지만, 제일 중요한 이유는 index.php 라는 파일명과 겹치게 되면 무한 Rewrite 가 일어날 수 있기 때문에 꼭 필요한 옵션이다.</p>
<p>참고자료: http://apmusers.com/tt/dbckdghk/95</p>
]]></content:encoded>
			<wfw:commentrss>http://awhile.us/blog/en/2011/12/htaccess-%ec%97%90%ec%84%9c-rewrite-%eb%a5%bc-%ec%9d%b4%ec%9a%a9%ed%95%b4-%eb%aa%a8%eb%93%a0-%ed%8c%8c%ec%9d%bc%ec%9d%84-%eb%8b%a8-%ed%95%9c%ea%b0%9c%ec%9d%98-%ed%8c%8c%ec%9d%bc%eb%a1%9c-%eb%aa%b0/feed/</wfw:commentrss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Example of a unique and easy PHP</title>
		<link>http://awhile.us/blog/en/2011/11/php-unique-convenient-interesting-syntax/</link>
		<comments>http://awhile.us/blog/en/2011/11/php-unique-convenient-interesting-syntax/#comments</comments>
		<pubdate>Mon, 28 Nov 2011 03:00:58 +0000</pubdate>
		<dc:creator>While</dc:creator>
				<category><![CDATA[PHP Resources]]></category>
		<category><![CDATA[Material]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Grammar]]></category>
		<category><![CDATA[Coding]]></category>

		<guid ispermalink="false">http://awhile.us/blog/?p=1768-en</guid>
		<description><![CDATA[Plans to continue adding haenagal. 편하게 조건부 할당 // 1 $limit = &#40;$_GET&#91;'limit'&#93;?$_GET&#91;'limit'&#93;:20&#41;; &#160; // 2 $limit = &#40;$_GET&#91;'limit'&#93;?:20&#41;; // 1 if &#40;!$foo&#41; $foo = 5; &#160; // 2 $foo or $foo = 5; &#160; // 3 $foo &#124;&#124; $foo = 5; // 1 if &#40;$foo&#41; func&#40;&#41;; &#160; // 2 $foo &#38;&#38; func&#40;&#41;;]]></description>
			<content:encoded><![CDATA[<p>계속 추가해나갈 예정이다.</p>
<h2>Easy</h2>
<h3>Conditional allocation</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// 1</span>
<span style="color: #000088;">$limit</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'limit'</span><span style="color: #009900;">&#93;</span>?<span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'limit'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">20</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// 2</span>
<span style="color: #000088;">$limit</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'limit'</span><span style="color: #009900;">&#93;</span>?<span style="color: #339933;">:</span><span style="color: #cc66cc;">20</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// 1</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$foo</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$foo</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">5</span><span style="color: #339933;">;</span> 
&nbsp;
<span style="color: #666666; font-style: italic;">// 2</span>
<span style="color: #000088;">$foo</span> or <span style="color: #000088;">$foo</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">5</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// 3</span>
<span style="color: #000088;">$foo</span> <span style="color: #339933;">||</span> <span style="color: #000088;">$foo</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">5</span><span style="color: #339933;">;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// 1</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$foo</span><span style="color: #009900;">&#41;</span> func<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// 2</span>
<span style="color: #000088;">$foo</span> <span style="color: #339933;">&amp;&amp;</span> func<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentrss>http://awhile.us/blog/en/2011/11/php-unique-convenient-interesting-syntax/feed/</wfw:commentrss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visually beautiful, useful and, Using JavaScript, such as good performance jeokeurodo</title>
		<link>http://awhile.us/blog/en/2011/11/good-examples-javascript/</link>
		<comments>http://awhile.us/blog/en/2011/11/good-examples-javascript/#comments</comments>
		<pubdate>Sun, 27 Nov 2011 16:52:16 +0000</pubdate>
		<dc:creator>While</dc:creator>
				<category><![CDATA[Material]]></category>
		<category><![CDATA[JavaScript Resources]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Grammar]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Coding]]></category>

		<guid ispermalink="false">http://awhile.us/blog/?p=1761-en</guid>
		<description><![CDATA[Java script has a lot of very unique and useful grammar. 보기 좋은 사용 예 3항 연산과 조건부 할당 var value; &#160; // 방법 1 if &#40;n&#41; value = n; else value = 1; &#160; // 방법 2 var value = n ? n : 1; &#160; // 방법 3 var value = n &#124;&#124; 1; 조건부 함수 호출 [...]]]></description>
			<content:encoded><![CDATA[<p>자바스크립트에는 상당히 특이하고 유용한 문법들이 많이 있다.</p>
<h2>See for example, a good use</h2>
<h3>3항 연산과 조건부 할당</h3>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> value<span style="color: #339933;">;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// 방법 1</span>
<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>n<span style="color: #009900;">&#41;</span> value <span style="color: #339933;">=</span> n<span style="color: #339933;">;</span>
<span style="color: #000066; font-weight: bold;">else</span> value <span style="color: #339933;">=</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// 방법 2</span>
<span style="color: #003366; font-weight: bold;">var</span> value <span style="color: #339933;">=</span> n <span style="color: #339933;">?</span> n <span style="color: #339933;">:</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// 방법 3</span>
<span style="color: #003366; font-weight: bold;">var</span> value <span style="color: #339933;">=</span> n <span style="color: #339933;">||</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">;</span></pre></div></div>

<h3>조건부 함수 호출</h3>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">// 방법1</span>
<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>callback<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	callback<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// 방법2</span>
callback <span style="color: #339933;">&amp;&amp;</span> callback<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<h2>속도가 빠른 예</h2>
<h3>산술(+)연산보다 배열 작성 후 결합</h3>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> result <span style="color: #339933;">=</span> <span style="color: #3366CC;">'a'</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">'b'</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">'c'</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">'d'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">var</span> result <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span><span style="color: #3366CC;">'a'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'b'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'c'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'d'</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">join</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<h3>배열의 크기에 따라 for 문을 돌릴 때</h3>
<p>첫째의 예처럼 돌리면 매번 nodes.length 를 구해오게 된다.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">// Instead of this...</span>
<span style="color: #003366; font-weight: bold;">function</span> nodeJam<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	nodes <span style="color: #339933;">=</span> document.<span style="color: #660066;">getElementsByTagName</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'P'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> i <span style="color: #339933;">&lt;</span> nodes.<span style="color: #660066;">length</span><span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		nodes<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">innerHTML</span> <span style="color: #339933;">+=</span> <span style="color: #3366CC;">'test'</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// This is much faster</span>
<span style="color: #003366; font-weight: bold;">function</span> nodeJam<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	nodes <span style="color: #339933;">=</span> document.<span style="color: #660066;">getElementsByTagName</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'P'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">was</span> i <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span> len <span style="color: #339933;">=</span> nodes.<span style="color: #660066;">length</span><span style="color: #339933;">;</span> i <span style="color: #339933;">&lt;</span> len<span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		nodes<span style="color: #009900;">&#91;</span>in<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">innerHTML</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">'test'</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p><a href="http://firejune.com/1713/%EC%84%B9%EC%8B%9C%ED%95%9C+%EC%9E%90%EB%B0%94%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8+%EC%BD%94%EB%94%A9+%EC%BB%A8%EB%B2%A4%EC%85%98" target="_blank">섹시한 자바스크립트 코딩 컨벤션 (Firejune)</a>의 일부를 발췌.</p>
]]></content:encoded>
			<wfw:commentrss>http://awhile.us/blog/en/2011/11/good-examples-javascript/feed/</wfw:commentrss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>out in iframe, Inside out, or to communicate with JavaScript.</title>
		<link>http://awhile.us/blog/en/2011/11/iframe-communicate-inside-outside/</link>
		<comments>http://awhile.us/blog/en/2011/11/iframe-communicate-inside-outside/#comments</comments>
		<pubdate>Sat, 12 Nov 2011 16:09:33 +0000</pubdate>
		<dc:creator>While</dc:creator>
				<category><![CDATA[JavaScript Resources]]></category>
		<category><![CDATA[frames]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[iframe]]></category>
		<category><![CDATA[parent]]></category>
		<category><![CDATA[Web Standards]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Tags]]></category>

		<guid ispermalink="false">http://awhile.us/blog/?p=1736-en</guid>
		<description><![CDATA[IE only the old iframe tag within the document that was supported by an imaginary frame, attach the tag is very useful tag. Popular and useful in this tag, the tag raseo wonak weppyojuneuro was brought at a later date is a few special tags. This tag and automatically adjust the vertical size suck in and out of various communication is quite as necessary. 안에서 밖으로 함수 실행시키기 밖 문서 (body.html) &#60;html&#62; &#60;head&#62; &#60;script type=&#34;text/javascript&#34;&#62; function callbackTest() { alert(&#34;body.html의 [...]]]></description>
			<content:encoded><![CDATA[<p>IE only the old iframe tag within the document that was supported by an imaginary frame, attach the tag is very useful tag. 이 태그가 워낙에 유명하고 유용한 태그라서 추후에 웹표준으로 편입된 약간은 특별한 태그이다.</p>
<p>이 태그를 이용하면서 자동으로 세로 사이즈 조절이라던가 여러가지 밖과 안의 통신이 필요할때가 꽤 있다.</p>
<h2>To run a function inside out</h2>
<p>Other documents (body.html)</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;html&gt;
	&lt;head&gt;
		&lt;script type=&quot;text/javascript&quot;&gt;
		function callbackTest()
		{
			alert(&quot;body.html의 함수&quot;);
		}
		window.onload = function(){
			frames['testname'].callbackTestInner();
		}
		&lt;/script&gt;
	&lt;/head&gt;
	&lt;body&gt;
		&lt;iframe src=&quot;inner.html&quot; name=&quot;testname&quot;&gt;&lt;/iframe&gt;
	&lt;/body&gt;
&lt;/html&gt;</pre></div></div>

<p>Not document (inner.html)</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;html&gt;
	&lt;head&gt;
		&lt;script type=&quot;text/javascript&quot;&gt;
		function callbackTestInner()
		{
	alertrt('inner.html 의 함수');
		}
		parent.callbackTest();
		&ltscriptpt&gt;
	&ltheadad&gt;
	&lt;body&gt;
		테스트
	&lt;/body&gt;
&lthtmlml&gt;</pre></div></div>

<p>Out from the inside of the above document, the document you want to call a function in, parent.바깥문서함수이름()를 하면 된다.</p>
<p>반대로 밖에서 안쪽으로 호출을 하려면 iframe 의 name 요소를 이용해서 iframe 오브젝트를 구한 후 함수를 쓰면 된다. 모든 브라우저에서 지원되는 프레임의 오브젝트를 구하는 방법은 다음과 같다.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">frames<span style="color: #009900;">&#91;</span><span style="color: #3366CC;">'testname'</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">callbackTestInner</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>위를 바깥에서 실행시키면 해당 프레임 안쪽의 함수가 실행된다.</p>
<h2>주의사항</h2>
<p>아이프레임과 통신을 할때 자주 생기는 문제중의 하나로, 두 문서의 총 로딩시간이 달라 함수를 실행하는 시간이 엇갈림으로 인해서 생기는 문제가 꽤 있다. 이 문제는 단순히 실행순서가 달라진다는 문제가 상당히 응용되어 예상치 못한 현상이 일어날 수도 있는 오류이므로 아이프레임 통신중에 뭔가가 빠진듯한 느낌의 오류가 나면 이 현상을 의심해야한다.</p>
]]></content:encoded>
			<wfw:commentrss>http://awhile.us/blog/en/2011/11/iframe-communicate-inside-outside/feed/</wfw:commentrss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>failed to open stream: Permission denied</title>
		<link>http://awhile.us/blog/en/2011/09/failed-to-open-stream-permission-denied/</link>
		<comments>http://awhile.us/blog/en/2011/09/failed-to-open-stream-permission-denied/#comments</comments>
		<pubdate>Fri, 16 Sep 2011 08:21:50 +0000</pubdate>
		<dc:creator>While</dc:creator>
				<category><![CDATA[Linux Information]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[chcon]]></category>
		<category><![CDATA[chmod]]></category>
		<category><![CDATA[chown]]></category>
		<category><![CDATA[permission denied]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Permissions Error]]></category>

		<guid ispermalink="false">http://awhile.us/blog/?p=1711-en</guid>
		<description><![CDATA[Sometimes Apache + Permission from the PHP environment(chmod), User(chown) Despite all the settings in PHP dwaeteumedo normally failed to open stream when inkeulrudingeul: Permission denied error if I have. chcon to adjust the security context of instruction, which can be resolved with this command. chcon -R -t httpd_user_content_t 폴더명]]></description>
			<content:encoded><![CDATA[<p>Sometimes Apache + Permission from the PHP environment(chmod), User(chown) Despite all the settings in PHP dwaeteumedo normally failed to open stream when inkeulrudingeul: Permission denied 오류가 나는 경우가 있다.</p>
<p>chcon 이라는 보안문맥을 조정하는 명령어가 있는데 이 명령어로 해결이 가능하다.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">chcon <span style="color: #660033;">-R</span> <span style="color: #660033;">-t</span> httpd_user_content_t 폴더명</pre></div></div>

]]></content:encoded>
			<wfw:commentrss>http://awhile.us/blog/en/2011/09/failed-to-open-stream-permission-denied/feed/</wfw:commentrss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mobile Browser Detection Script &#124; Detect Mobile Browsers</title>
		<link>http://awhile.us/blog/en/2011/09/%eb%aa%a8%eb%b0%94%ec%9d%bc-%eb%b8%8c%eb%9d%bc%ec%9a%b0%ec%a0%80-%ea%b0%90%ec%a7%80-%ec%8a%a4%ed%81%ac%eb%a6%bd%ed%8a%b8-detect-mobile-browsers/</link>
		<comments>http://awhile.us/blog/en/2011/09/%eb%aa%a8%eb%b0%94%ec%9d%bc-%eb%b8%8c%eb%9d%bc%ec%9a%b0%ec%a0%80-%ea%b0%90%ec%a7%80-%ec%8a%a4%ed%81%ac%eb%a6%bd%ed%8a%b8-detect-mobile-browsers/#comments</comments>
		<pubdate>Thu, 15 Sep 2011 07:58:19 +0000</pubdate>
		<dc:creator>While</dc:creator>
				<category><![CDATA[PHP Resources]]></category>
		<category><![CDATA[JavaScript Resources]]></category>
		<category><![CDATA[Apache(rewrite)]]></category>
		<category><![CDATA[ASP]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C #]]></category>
		<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[JSP]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[node.js]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Dolphin]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Browser]]></category>
		<category><![CDATA[IPhone]]></category>
		<category><![CDATA[Android]]></category>

		<guid ispermalink="false">http://awhile.us/blog/?p=1708-en</guid>
		<description><![CDATA[In the iPhone mobile website, Android browser, Dolphin browser for mobile users to access at home have created a mobile-only assume that. How they will direct you to the page? Main page address directly into the mobile will geoleonol tteokhani, How will automatically move or? Most would choose the latter, it would be better for users. 예전에는 간단하게 iPhone 과 Android 만 유저 에이전트에서 감지하여 [...]]]></description>
			<content:encoded><![CDATA[<p>In the iPhone mobile website, Android browser, Dolphin browser for mobile users to access at home have created a mobile-only assume that. How they will direct you to the page? Main page address directly into the mobile will geoleonol tteokhani, How will automatically move or? 대부분은 후자를 선택할 것이고 그게 더 사용자 입장에서 좋을 것이다.</p>
<p>In the past, simply on the iPhone and the Android user agents to detect and move ten thousand were wont. But now there are numerous mobile browser. They all act as one hundred and twelve, I can not find the number of lines is added. <a href="http://detectmobilebrowsers.com/">Detect Mobile Browsers &#8211; Open source mobile phone detection</a>Almost all the existing mobile browsers provide a function that allows you to detect. This function continuously updated Apache haejumyeo(rewrite), ASP, ASP.NET, ColdFusion, C #, IIS, JSP, JavaScript, jQuery, nginx, node.js, PHP, Perl, Python, Rails 까지 상당히 많은 웹언어를 지원해주고 있다.</p>
<h2>How to Use</h2>
<p><a href="http://detectmobilebrowsers.com/">Detect Mobile Browsers &#8211Detect Mobile Browsershone deteOpen source mobile phone detectionlicking the desired language carefully:. And by opening the file <b>http://detectmobilebrowser.com/mobile</b>가 있는데 이 부분을 자신만의 모바일 페이지 주소로 변경한다.</p>
]]></content:encoded>
			<wfw:commentrss>http://awhile.us/blog/en/2011/09/%eb%aa%a8%eb%b0%94%ec%9d%bc-%eb%b8%8c%eb%9d%bc%ec%9a%b0%ec%a0%80-%ea%b0%90%ec%a7%80-%ec%8a%a4%ed%81%ac%eb%a6%bd%ed%8a%b8-detect-mobile-browsers/feed/</wfw:commentrss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

