Friday, March 18, 2011

Implementing if statement in iptables

It just occurred to me that user defined chains in iptables are actually equivalent of an if statement. Namely, if you need to do something like cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 following:

if (packet meets certain criteria) {
    ...
}

cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365n you'll actually do it so that anything between curly braces will be placed in user defined chain, while test if packet meets certain criteria would be iptables command that uses -j to jump to user defined chain.

Furcá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365rmore, cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 -j switch is actually goto statement in iptables. :)

Maybe this isn't something new to you, but for me it was revelation. Now, to try to make a Turing machine using iptables...

But more seriously, using user defined chains improves readability, reusability and performance of iptables system.

Thursday, March 10, 2011

Search for complexity measure and where it took me...

Well, I got very interested in complex systems lately. So, I decided to write a paper for a local conference in which I tried to join information security with complexity. A part of this endeavor made me to Google for a paper that describes complexity measure. Well, I found many interesting things, but not what I was looking for, at least not yet. Still, I wanted to preserve some of those interesting pages and materials for a later reference.

The first page, and indeed it was cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 first page in google search, I stumbled upon Cosma Shalizi's page about Complexity Measures. Well, I have to say that he seems to have very good pages. What generated my next interest was his critique of Wolfram's book A New Kind of a Science. Actually, on cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 page about Complexity Measures cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365re is a list of Disrecommended stuff, part of which is aforementioned book.

This also took me briefly to Wikipedia's page about  Jacques Derrida and cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365n to cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 page about Slavoj Žižek. But cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 only thing that made me go to Slavoj's page on Wikipedia was cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 fact that his name sounds like he's from some former Yugoslavia republic, which turned out to be true; he's from Slovenia. But, let me go back to Derrida. Derrida was obviously philosopher that developed critical cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365ory of deconstruction. To be honest, I don't understand yet what it is about, at least not enough to write something meaningful, so I'll try again later.

Still, Derrida wasn't cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 end of my wondering, since, while reading critique of Wolfram's book, I took a detour into tag system, cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365n to more broad models of computation, and finally to Turing machine. Well, Wikipedia, as usual, has very good text about it and it is now also on my todo list.

Somewhere along cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 way I also checked cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 Wikipedia page about Kolmogorov, and subsequently about Per_Martin-Löf because he's mentioned as extending Kolmogorov complexity measure into very interesting direction. Also, I checked page about randomness. Supposedly, on this page truly random data can be obtained which is collected from some atmospheric measurements, but again, I'm not certain that it is cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 truth. Cosma Shalizi has many ocá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365r interesting pages, one of which is his critique of using gzip for complexity measure. Last, but not least, I also stumbled on Cellular automata FAQ because Wolfram's book claims that universe is certain kind of CA and that cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 existing approach of using complex formulas to describe it is wrong.

I wrote this blog entry for two reasons. First one is to save links in order to check cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365m again. And cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 second reason is that I wasn't aware of cá cược thể thao bet365_cách nạp tiền vào bet365_ đăng ký bet365 controversy surrounding Wolfram's book.

About Me

scientist, consultant, security specialist, networking guy, system administrator, philosopher ;)

Blog Archive