<?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>Persistent notes &#187; short</title>
	<atom:link href="http://alexkr.com/notes/posts/feed/" rel="self" type="application/rss+xml" />
	<link>http://alexkr.com</link>
	<description>Alexander Krivutsenko&#039;s online journal</description>
	<lastBuildDate>Fri, 01 Oct 2010 08:16:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SIPP: Error opening terminal: cygwin</title>
		<link>http://alexkr.com/posts/377/sipperror/</link>
		<comments>http://alexkr.com/posts/377/sipperror/#comments</comments>
		<pubDate>Thu, 16 Sep 2010 20:32:13 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[short]]></category>
		<category><![CDATA[sip]]></category>

		<guid isPermaLink="false">http://alexkr.com/?p=377</guid>
		<description><![CDATA[I got somewhat weird problem when trying to use SIPP on my new 64 bit Windows PC:


&#62;sipp -sn uas
Error opening terminal: cygwin.


Funny thing is, the cygwin is installed on my sytems but it is actually NOT needed.
You will need cygwin if you want to compile the SIPP, otherwise it should work just fine without it.

As [...]]]></description>
		<wfw:commentRss>http://alexkr.com/posts/377/sipperror/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Origins of DeadBeef</title>
		<link>http://alexkr.com/fun/155/origins-of-deadbeef/</link>
		<comments>http://alexkr.com/fun/155/origins-of-deadbeef/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 16:13:51 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[fun]]></category>
		<category><![CDATA[short]]></category>
		<category><![CDATA[blah-blah]]></category>

		<guid isPermaLink="false">http://alexkr.com/fun/155/origins-of-deadbeef/</guid>
		<description><![CDATA[It was nice to find out in Jeremy Uejio&#8217;s Blog that 0xDEADBEEF is used on Linux (I assume it happens with debug versions) when you free memory.
According to this source, originally DEADBEEF was used in order to fill newly allocated memory.
On my Windows machine neither fresh nor deallocated memory is fancy.
Only 0xAB, 0xFE and nothing [...]]]></description>
		<wfw:commentRss>http://alexkr.com/fun/155/origins-of-deadbeef/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tricky question for C</title>
		<link>http://alexkr.com/posts/154/tricky-questions-for-c/</link>
		<comments>http://alexkr.com/posts/154/tricky-questions-for-c/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 14:58:10 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[short]]></category>
		<category><![CDATA[blah-blah]]></category>
		<category><![CDATA[c]]></category>

		<guid isPermaLink="false">http://alexkr.com/posts/154/possible-interview-question-for-c/</guid>
		<description><![CDATA[This would be good as an interview question on C for those guys working with computations.

You have some code:


if (tmp != tmp)
{
 printf("it happened!");
}

You are running this application with tmp to be any of built-in types with no overloaded members (plain C).

Is there possibility that you would get  &#8220;it happened!&#8221; printed out
and what should [...]]]></description>
		<wfw:commentRss>http://alexkr.com/posts/154/tricky-questions-for-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Proof Carrying Code</title>
		<link>http://alexkr.com/posts/153/proof-carrying-code/</link>
		<comments>http://alexkr.com/posts/153/proof-carrying-code/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 16:20:16 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[short]]></category>
		<category><![CDATA[blah-blah]]></category>

		<guid isPermaLink="false">http://alexkr.com/posts/153/proof-carrying-code/</guid>
		<description><![CDATA[In program analysis, there is an idea to use first order logic with theorem prover to &#8220;sign&#8221; a binary that it is safe with regard to some predefined safety policy.
Eventually it envolved into idea of  &#8220;proof carrying code&#8221;.
A few slides introducing PCC are based on the original PCC paper.
]]></description>
		<wfw:commentRss>http://alexkr.com/posts/153/proof-carrying-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some fun with C</title>
		<link>http://alexkr.com/fun/152/some-fun-with-c/</link>
		<comments>http://alexkr.com/fun/152/some-fun-with-c/#comments</comments>
		<pubDate>Tue, 22 Sep 2009 13:37:54 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[fun]]></category>
		<category><![CDATA[short]]></category>
		<category><![CDATA[c]]></category>

		<guid isPermaLink="false">http://alexkr.com/fun/152/some-fun-with-c/</guid>
		<description><![CDATA[Do you know that the following is legal C code?

const char * x = "abcdefgh";
int pos = 4;
char tmp1 = (5*2-6)[x];
char tmp2 = pos[x];
assert(tmp1 == 'e');
assert(tmp2 == 'e');

The point here is that compiler evaluates x[y] as (char&#038;)(x + y) or (char&#038;)(y + x).
So regardless of what comes first, the result is the same.
]]></description>
		<wfw:commentRss>http://alexkr.com/fun/152/some-fun-with-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is it safe to use std::vector with functions which take C array</title>
		<link>http://alexkr.com/posts/151/is-it-safe-to-use-stdvector-with-functions-which-take-c-array/</link>
		<comments>http://alexkr.com/posts/151/is-it-safe-to-use-stdvector-with-functions-which-take-c-array/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 15:02:28 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[short]]></category>
		<category><![CDATA[cpp]]></category>

		<guid isPermaLink="false">http://alexkr.com/posts/151/is-it-safe-to-use-stdvector-with-functions-which-take-c-array/</guid>
		<description><![CDATA[Answer. Yes, it is safe.
Standard says (I am using draft version but you can find it in 03):
&#8220;The elements of a vector are stored contiguously,
meaning that if v is a vector&#60;T, Allocator&#62; where T is some type other
than bool, then it obeys the identity &#038;v[n] == &#038;v[0] + n for all 0 &#60;=
n &#60; v.size().&#8221;

So, [...]]]></description>
		<wfw:commentRss>http://alexkr.com/posts/151/is-it-safe-to-use-stdvector-with-functions-which-take-c-array/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Detecting TCP connection problems</title>
		<link>http://alexkr.com/posts/150/tcp-keep-alives/</link>
		<comments>http://alexkr.com/posts/150/tcp-keep-alives/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 11:39:33 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[short]]></category>
		<category><![CDATA[protocols]]></category>

		<guid isPermaLink="false">http://alexkr.com/posts/150/tcp-keep-alives/</guid>
		<description><![CDATA[The common task for any TCP networking application is to observe connection problems.

Some devepers prefer to implement their own application level &#8220;heartbeat&#8221; protocol which makes sure that TCP connection is alive.
Not all know that TCP implementations indeed have built-in way to detect and signalize connection failure.
The built-in way is called TCP &#8220;keep alives&#8221; mechanism for [...]]]></description>
		<wfw:commentRss>http://alexkr.com/posts/150/tcp-keep-alives/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Easy function pointers in C</title>
		<link>http://alexkr.com/posts/149/easy-function-pointers-in-c/</link>
		<comments>http://alexkr.com/posts/149/easy-function-pointers-in-c/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 19:26:20 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[short]]></category>
		<category><![CDATA[c]]></category>

		<guid isPermaLink="false">http://alexkr.com/posts/149/easy-function-pointers-in-c/</guid>
		<description><![CDATA[The common syntax for declaring function pointer in C is not intuitive. This post shows an easier way.]]></description>
		<wfw:commentRss>http://alexkr.com/posts/149/easy-function-pointers-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

