<?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>세어필.com</title>
	<atom:link href="http://sharefeel.cafe24.com/wp/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://sharefeel.cafe24.com/wp</link>
	<description></description>
	<lastBuildDate>Tue, 24 Jun 2014 16:13:28 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
	<item>
		<title>bitly의 유명 도메인 압축 URL</title>
		<link>http://sharefeel.cafe24.com/wp/?p=139</link>
		<comments>http://sharefeel.cafe24.com/wp/?p=139#comments</comments>
		<pubDate>Sun, 22 Jun 2014 10:15:02 +0000</pubDate>
		<dc:creator><![CDATA[sharefeel]]></dc:creator>
				<category><![CDATA[잡담]]></category>
		<category><![CDATA[SNS]]></category>

		<guid isPermaLink="false">http://sharefeel.cafe24.com/wp/?p=139</guid>
		<description><![CDATA[&#160; goo.gl, t.co, tinyurl 등의 URL shortening을 많이 쓸 것이다. 나는 bitly를 주로 쓴다. 최근에 알게된 건데 bitly에서 유명한 서비스는 전용 URL을 만들어뒀다. &#160; 일반적으로 압축된 후의 URL을 bit.ly로 시작한다. 압축전 : https://www.google.co.kr/search?q=죽어라+박근혜 압축후 : http://bit.ly/1ma3BHT &#160; 다음은 아마존을 압축한 것인데, amzn.to 라는 아마존의 줄임말 같은 URL이 나온다. 압축전 : http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html 압축후 : http://amzn.to/1jVH93S &#160;&#8230;]]></description>
				<content:encoded><![CDATA[<p><a href="http://sharefeel.cafe24.com/wp/wp-content/uploads/2014/06/bitly.png"><img class="alignnone size-medium wp-image-156" src="http://sharefeel.cafe24.com/wp/wp-content/uploads/2014/06/bitly-300x26.png" alt="bitly" width="300" height="26" /></a></p>
<p>&nbsp;</p>
<p>goo.gl, t.co, tinyurl 등의 URL shortening을 많이 쓸 것이다.</p>
<p>나는 bitly를 주로 쓴다.</p>
<p>최근에 알게된 건데 bitly에서 유명한 서비스는 전용 URL을 만들어뒀다.</p>
<p>&nbsp;</p>
<p>일반적으로 압축된 후의 URL을 bit.ly로 시작한다.</p>
<p>압축전 : <a href="https://www.google.co.kr/search?q=죽어라+박근혜">https://www.google.co.kr/search?q=죽어라+박근혜</a></p>
<p>압축후 : <a href="http://bit.ly/1ma3BHT">http://<strong>bit.ly</strong>/1ma3BHT</a></p>
<p>&nbsp;</p>
<p>다음은 아마존을 압축한 것인데, amzn.to 라는 아마존의 줄임말 같은 URL이 나온다.</p>
<p>압축전 : <a href="http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html">http://docs.aws.<strong>amazon.com</strong>/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html</a></p>
<p>압축후 : <a href="http://amzn.to/1jVH93S">http://<strong>amzn.to</strong>/1jVH93S</a></p>
<p>&nbsp;</p>
<p>몇개 더 테스트 해봤다.</p>
<p>페이스북 (facebook.com)</p>
<p>http://<strong>on.fb.me</strong>/18AOiDE</p>
<p>&nbsp;</p>
<p>야후 (yahoo.com)</p>
<p>http://<strong>yhoo.it</strong>/1hxb2XM</p>
<p>&nbsp;</p>
<p>슬라이드쉐어 (slideshare.net)</p>
<p>http://<strong>slidesha.re</strong>/1rfuOgk</p>
<p>&nbsp;</p>
<p>백악관 (whitehouse.gov)</p>
<p>http://<strong>1.usa.gov</strong>/1cpLRz4</p>
<p>&nbsp;</p>
<p>허핑턴포스트 (http://www.huffingtonpost.com/)</p>
<p>http://<strong>huff.to</strong>/18jZfZU</p>
<p>&nbsp;</p>
<p>혹시나 싶어 여러가지 한국 사이트들을 해봤지만 못찾았다.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://sharefeel.cafe24.com/wp/?feed=rss2&#038;p=139</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>shared_ptr와 객체의 수명</title>
		<link>http://sharefeel.cafe24.com/wp/?p=51</link>
		<comments>http://sharefeel.cafe24.com/wp/?p=51#comments</comments>
		<pubDate>Sat, 14 Dec 2013 17:59:12 +0000</pubDate>
		<dc:creator><![CDATA[sharefeel]]></dc:creator>
				<category><![CDATA[프로그래밍]]></category>
		<category><![CDATA[c++]]></category>

		<guid isPermaLink="false">http://sharefeel.cafe24.com/wp/?p=51</guid>
		<description><![CDATA[호기심에 두 개의 shared_ptr로 객체 하나를 가리키는 시험을 해봤다. 다음 예에서 Obj의 객체는 compound statement 밖에서 생성된다. 그리고 두 개의 shared_ptr이 등장하는데, sp1은 compound statement 밖에 sp2는 안에 선언되어 있다. [crayon-53a9aac882761748420509/] 위 코드를 실행하면 마지막 행의 sp1.reset() 호출 시 assertion failed가 발생한다. Compound statement가 종료되면서 sp2가 소멸되고, sp2가 가리키던 객체 역시 소멸되기 때문이다. sp1.use_count()는 여전히&#8230;]]></description>
				<content:encoded><![CDATA[<p>호기심에 두 개의 shared_ptr로 객체 하나를 가리키는 시험을 해봤다.</p>
<p>다음 예에서 Obj의 객체는 compound statement 밖에서 생성된다. 그리고 두 개의 shared_ptr이 등장하는데, sp1은 compound statement 밖에 sp2는 안에 선언되어 있다.</p><pre class="crayon-plain-tag">Obj* original = new Obj;
std::shared_ptr&lt;Obj&gt; sp1 = std::shared_ptr&lt;Obj&gt; (original);

{
    std::shared_ptr&lt;Obj&gt; sp2 = std::shared_ptr&lt;Obj&gt; (original);
}

sp1.reset();  // 에러</pre><p>위 코드를 실행하면 마지막 행의 sp1.reset() 호출 시 assertion failed가 발생한다. Compound statement가 종료되면서 sp2가 소멸되고, sp2가 가리키던 객체 역시 소멸되기 때문이다. sp1.use_count()는 여전히 1이지만, 가리키던 객체가 소멸되었으므로 sp1는 dangling pointer가 된다.</p>
]]></content:encoded>
			<wfw:commentRss>http://sharefeel.cafe24.com/wp/?feed=rss2&#038;p=51</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>delete NULL</title>
		<link>http://sharefeel.cafe24.com/wp/?p=16</link>
		<comments>http://sharefeel.cafe24.com/wp/?p=16#comments</comments>
		<pubDate>Sun, 24 Nov 2013 12:13:13 +0000</pubDate>
		<dc:creator><![CDATA[sharefeel]]></dc:creator>
				<category><![CDATA[프로그래밍]]></category>
		<category><![CDATA[c++]]></category>

		<guid isPermaLink="false">http://sharefeel.cafe24.com/wp/?p=16</guid>
		<description><![CDATA[몰랐던 사실인데 NULL을 delete할 수 있다. 즉 아래 delete문이 문제없이 실행된다. C에서는 NULL을 해제했다가는 큰일나는데.. 난 천상 C 프로그래머인가보다^^ [crayon-53a9aac883b92925348159/] 따라서 해제하기 전에 아래처럼 검사를 할 필요가 없다. [crayon-53a9aac883ba5730960157/] &#160; PS. 사실 제목의 delete NULL은 MSVC에서 컴파일 에러가 난다. 그 이유는 NULL이 포인터가 아니기 때문이다. MSVC에서는 아래처럼 선언되어 있다. [crayon-53a9aac883bb2970832502/]]]></description>
				<content:encoded><![CDATA[<p>몰랐던 사실인데 NULL을 delete할 수 있다. 즉 아래 delete문이 문제없이 실행된다.</p>
<p>C에서는 NULL을 해제했다가는 큰일나는데.. 난 천상 C 프로그래머인가보다^^</p><pre class="crayon-plain-tag">delete (int *) NULL;</pre><p>따라서 해제하기 전에 아래처럼 검사를 할 필요가 없다.</p><pre class="crayon-plain-tag">if (ptr)
    delete ptr;</pre><p>&nbsp;</p>
<p>PS.<br />
사실 제목의 delete NULL은 MSVC에서 컴파일 에러가 난다.<br />
그 이유는 NULL이 포인터가 아니기 때문이다. MSVC에서는 아래처럼 선언되어 있다.</p><pre class="crayon-plain-tag">/* Define NULL pointer value */
#ifndef NULL
#ifdef __cplusplus
#define NULL    0
#else
#define NULL    ((void *)0)
#endif
#endif</pre><p></p>
]]></content:encoded>
			<wfw:commentRss>http://sharefeel.cafe24.com/wp/?feed=rss2&#038;p=16</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
