<?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>Hanfis Weg in die Hölle &#187; english</title>
	<atom:link href="http://blog.spahan.ch/category/english/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.spahan.ch</link>
	<description>oder zumindest in deren Nähe</description>
	<lastBuildDate>Sun, 25 Dec 2011 23:31:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>upgrade hell</title>
		<link>http://blog.spahan.ch/2008/12/upgrade-hell/</link>
		<comments>http://blog.spahan.ch/2008/12/upgrade-hell/#comments</comments>
		<pubDate>Sun, 28 Dec 2008 15:56:36 +0000</pubDate>
		<dc:creator>hanfi</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[lilo]]></category>
		<category><![CDATA[problems]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://blog.spahan.ch/?p=55</guid>
		<description><![CDATA[Today I went over and had to enable the testing tree of debian.

This was actualy very easy, just adding the correct repository to the sources.list in /etc/ap. One little trouble with this was aptitude crushing with not enough memory. This i solved by add APT::Cache-Limit:26777216 to the apt config. I did this by (dirty ...]]></description>
			<content:encoded><![CDATA[<p>Today I went over and had to enable the testing tree of debian.</p>
<p>This was actualy very easy, just adding the correct repository to the sources.list in /etc/ap. One little trouble with this was aptitude crushing with not enough memory. This i solved by add APT::Cache-Limit:26777216 to the apt config. I did this by (dirty ) add the line to the /etc/apt/apt.conf.d/70debconf file (i tried make a new file in the conf directory, but apt ignored my file).</p>
<p>Next was to run aptitude and update my packages. This took quiet some time since a big load of packages got updated, and i had to resolve some conflicts manualy. Actualy i just had to remove a obsolete package that hold a lot of other packages back.</p>
<p>As i was doing maintenance anyway i checked out uname -a to see what my kernel is. Big surprise, even if i had installed about 5 more recent kernes on my Harddisk, it seems i never actualy loaded those! So i headed over to /boot and linked vmlinuz and initrd.img to the most recent ones, run lilo and rebooted.</p>
<p>This was where all went bad. Somehow it didnt installed my lilo, and my system refused to boot. After about 10 reboots into the hetzner rescue system later, i finaly managed to install a working version of the kernel.But finaly i run a 2.26 linux kernel now.</p>
<p>One more problem was to install newest version of VMware. I needed to export a old gcc (4.1 instead 4.3) and ignore complaints about minor version differences. Some time in the future i need try run this shitty legacy server only running on windows with wine again, but guess what..their debian repository just went down today so im out of luck with this (Why don&#8217;t those big Software Vendors at least publish their old non-continued software under some open-to-use licence? so at least we could make it run on modern systems like linux,bsd instead need run emulations? Fuck you Adobe!).</p>
<p>Long talk, short outcome..all is back and running now. Yay me!</p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://blog.spahan.ch/2008/12/upgrade-hell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wiping Harddisks</title>
		<link>http://blog.spahan.ch/2008/12/wiping-harddisks/</link>
		<comments>http://blog.spahan.ch/2008/12/wiping-harddisks/#comments</comments>
		<pubDate>Fri, 19 Dec 2008 15:21:23 +0000</pubDate>
		<dc:creator>hanfi</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[dban]]></category>
		<category><![CDATA[harddisk]]></category>
		<category><![CDATA[time]]></category>
		<category><![CDATA[wipe]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://blog.spahan.ch/?p=47</guid>
		<description><![CDATA[At work, we use the very nice and easy to use DBAN tool to wipe Harddisks before give them out of our reach. This ensures our Users Data are save from restoring by bad people.

However, with the recent growing of Hard-disk sizes up to 1TB this became somewhat hard to do.

Usually we use the ...]]></description>
			<content:encoded><![CDATA[<p>At work, we use the very nice and easy to use <a href="http://www.dban.org/">DBAN</a> tool to wipe Harddisks before give them out of our reach. This ensures our Users Data are save from restoring by bad people.</p>
<p>However, with the recent growing of Hard-disk sizes up to 1TB this became somewhat hard to do.</p>
<p>Usually we use the DoD-short algorithm, since it provides fair cost/revenue ratio. A 40GB Hard-disk can be wiped in about 8-10h without trouble. Usually i start it near end of day and when i come back next Morning, its done wiping.</p>
<p>Now, Today i have to wipe a Hard-disk from a User concerned about security (A User concerned about security? Actually a very good thing.) So i thought i wont use the DoD-Short but the standard DoD algorithm. Guess how long it takes to wipe those 80GB&#8230;. <strong>50</strong> hours.</p>
<p><a href="http://en.wikipedia.org/wiki/TGIF">TGiF</a>, so i can go home and it will be done when i come back next week.</p>
<p>This made me think about 2 things:</p>
<ol>
<li>I think the DoD standard should be used always. If the US Government doesn&#8217;t trust DoD-short algorithm fully, why should we trust it? So if possible always use the standard. But that actually means 2-3 times the time we need now.</li>
<li>This was a 80GB Hard-disk. Today&#8217;s HDs are up to 1TB.</li>
</ol>
<p>Conclusion: Soon Administrators will face the Problem of securely erase much bigger Hard-disks than today. In addition, i don&#8217;t think it will be harder to restore Data from Hard-disks than it is now (more likely it will be easier due to improvements in technology). If such a wiping takes more than 1 week, it becomes troubling work with it. In the end I can only see one useful solution: shredding Hard-disk into pieces. Sure this isn&#8217;t good for the environment.</p>
<p>The problemis, that we get bigger HDs and better technology, making security growing more painful. A great debacle. I think we will soon see more of those &#8220;mistakenly sold HD with Data on it on ebay&#8221;-News.</p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://blog.spahan.ch/2008/12/wiping-harddisks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Poor master</title>
		<link>http://blog.spahan.ch/2008/01/poor-master/</link>
		<comments>http://blog.spahan.ch/2008/01/poor-master/#comments</comments>
		<pubDate>Thu, 17 Jan 2008 12:51:43 +0000</pubDate>
		<dc:creator>hanfi</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[fun]]></category>
		<category><![CDATA[comic]]></category>

		<guid isPermaLink="false">http://blog.spahan.ch/2008/01/poor-master/</guid>
		<description><![CDATA[

master is the name of my main work machine]]></description>
			<content:encoded><![CDATA[<p><img src="http://imgs.xkcd.com/comics/compiler_complaint.png" /></p>
<p><em>master is the name of my main work machine</em></p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://blog.spahan.ch/2008/01/poor-master/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fundamental programming design for ghost</title>
		<link>http://blog.spahan.ch/2008/01/fundamental-programming-design-for-ghost/</link>
		<comments>http://blog.spahan.ch/2008/01/fundamental-programming-design-for-ghost/#comments</comments>
		<pubDate>Tue, 15 Jan 2008 03:09:43 +0000</pubDate>
		<dc:creator>hanfi</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[ghost]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[Game]]></category>
		<category><![CDATA[principles]]></category>

		<guid isPermaLink="false">http://blog.spahan.ch/2008/01/fundamental-programming-design-for-ghost/</guid>
		<description><![CDATA[Well, its time to review my design ideas for the Ghost project.
Ghost aims to be a Full-featured Browser-based RPG. These are some fundamental ideas i had. Feel free to comment em.

Game:

RPG style (long time playing, with levelign stats etc)
Basic Game is GPL (as it uses GPL things, less trouble if we release with GPL)
Make ...]]></description>
			<content:encoded><![CDATA[<p>Well, its time to review my design ideas for the <a href="http://ghost.spahan.ch">Ghost</a> project.</p>
<p>Ghost aims to be a Full-featured Browser-based RPG. These are some fundamental ideas i had. Feel free to comment em.</p>
<ol>
<li>Game:
<ul>
<li>RPG style (long time playing, with levelign stats etc)</li>
<li>Basic Game is GPL (as it uses GPL things, less trouble if we release with GPL)</li>
<li>Make money with Graphics/Extension Packs (eg. a easy extension management), other ppl can provide own extensions.</li>
</ul>
</li>
<li>Client:
<ul>
<li>Browser game (works on FF for sure, IE would be fine, more others cool. For developement we only support FF.)</li>
<li>Use standalone FF as a downloadable game client (aka XUL Runner, PRISM etc), we can include graphics there (is secure?)</li>
<li>Thin Client. Client displays Data and sends back events to server.</li>
<li>No additional requirements, (X/HT)ML, JS and css only. NO PLUGINS</li>
<li>2D Graphics.</li>
<li>Security is providen by server. Dont relly on Client input be of anything special. If a client sends bugged Data,never accep.</li>
<li>Since we use JS and a BrowserClient side code injection is easy. So we need be extra carefull with player input on server side.</li>
</ul>
</li>
<li>Server:
<ul>
<li>We use php as Language.</li>
<li>Game uses phpBB3 for User Management.</li>
<li>We use the phpBB3 DB Layer for DB access.</li>
<li>Webhoster-ready. We shouldnt require any special settings in the .htaccess or php.ini. Basicaly i want same requirements as phpBB3 (we may go for php5 only since some really usefull things added there)</li>
<li>Dont use timers or rely on tasks run on specific times. We use cron jobs like phpBB. But we are asynchron since we cant guarantee the game runs (if no one plays for some days)</li>
<li>Shall we use a existing (GPL)-RPG-Engine? It would be cool to make it work with any of those ASCII-Games.</li>
<li>No loops!</li>
<li>User interaction is done on server with the use of sockets. A <em>output-Script </em>will run until timed out, and send all needed things to the user. If we got shut down by server prozess we send a last exit message and then let the client restart us. This should be done by the basic game processes transparent for the game (so this would be a bi-directional communication via xml-http)</li>
</ul>
</li>
<li>Security
<ul>
<li>All input will be XML</li>
<li>All possible input needs be VALID in respect to a provided DTD.</li>
<li>Output XML needs be very strict so we dont open XSS trouble. (do we need rich-text??)</li>
<li>All operations need be tested for Thread safety. PHP has some trouble with this.</li>
<li>Usage of OO would maybe make us less vulnerable. On the other side OO will need some more server cpu. So I rather wont use OO. Lets stay functional as phpBB3 does.</li>
<li>Dont use <em>php-hacks</em>, keep code clean.</li>
<li>For XML DTD, do we use a hirarchical Tree or keep it in single DTDs? single ones are safer (not in general i think)?</li>
<li>If phpBB3 breaks, we break. Therefore we need a phpBB3 security Expert. By make our game a phpBB mod and follow the mod guidelines, we can get help from the phpBB3 ppl.</li>
</ul>
</li>
</ol>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://blog.spahan.ch/2008/01/fundamental-programming-design-for-ghost/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>exploring css, inside w3c</title>
		<link>http://blog.spahan.ch/2008/01/exploring-css-inside-w3c/</link>
		<comments>http://blog.spahan.ch/2008/01/exploring-css-inside-w3c/#comments</comments>
		<pubDate>Sat, 05 Jan 2008 10:26:29 +0000</pubDate>
		<dc:creator>hanfi</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://blog.spahan.ch/2008/01/exploring-css-inside-w3c/</guid>
		<description><![CDATA[I discovered css some years ago. Since then i used it frequently for some of my websites, mainly to customize phpBB forums. The Greck Website is a nice small css-based html page.

For the Ghost-projekt I started to look a little bit deeper into css. So I went out and checked the World Wide Web ...]]></description>
			<content:encoded><![CDATA[<p>I <em>discovered</em> css some years ago. Since then i used it frequently for some of my websites, mainly to customize <a href="http://www.phpbb.com/">phpBB</a> forums. The <a href="http://greck.spahan.ch">Greck Website</a> is a nice small css-based html page.</p>
<p>For the Ghost-projekt I started to look a little bit deeper into css. So I went out and checked the <a href="http://www.w3.org/">World Wide Web Consortium WebSite</a>. While playing around I found <a href="http://sirdarckcat.blogspot.com/2007/11/csk2-and-css-applications.html">this blog entry</a> about css, and got really impressed by those guys and what css can do.</p>
<p>Well, now here i am. Having a lot to play with and even more that I dont understand completly.</p>
<p>For sure, the most interesting part for me right now are the pseudo-elements and -classes. Looks fun to play with.  So I tried this:</p>
<pre><code>
HTML
&lt;body&gt;&lt;div&gt;
&lt;p&gt;first child in this html.&lt;br/&gt;forcing a line break for sake of example.&lt;/p&gt;
&lt;p&gt;next child in this html.&lt;br/&gt;forcing a line break for sake of example.&lt;/p&gt;
&lt;/div&gt;&lt;/body&gt;

CSS
p:first-child { color: red;}
p:first-line {	color: blue;}
</code></pre>
<p>So far so good. You can see the example <a href="http://blog.spahan.ch/wp-content/uploads/2008/01/cssfun.html" title="CSS Fun">here</a>.<br />
Looks right? First Child is red, second black. and the first lines of both are blue. Well&#8230;.<br />
Lets review the css docu on w3c. In special check what <em>type</em> those selectors have.<br />
:first-child is a <em>attribute</em> selector (classes are attributes)<br />
:first-line is a <em>element</em> selector<br />
so whats the precedence for those 2?<br />
checking the <a href="http://www.w3.org/TR/CSS21/cascade.html#specificity">relevant css docus</a> we calculate these values:<br />
p:first-child: a=0, b=0, c=1, d=1<br />
p:first-line: a=0, b=0, c=0, d=2<br />
now check the first the first &lt;p&gt; tag. Shouldn&#8217;t the first-child be more specific and therefore overwrite the first-line?<br />
well, we can go and try force it even more.<br />
lets change the firs-child style selector to<br />
<code>div p:first-child ...</code><br />
this time we have  a specific precedence of a=0, b=0, c=1, d=2<br />
this clearly should outrule the first-line style.</p>
<p>Well, there <strong>is</strong> a way to explain this.<br />
According to the <a href="http://www.w3.org/TR/CSS21/selector.html#pseudo-element-selectors">css specification</a> about the pseudo elements the UA creates a <em>fictional tag sequence</em> by inserting &lt;p:first-line&gt; and its end tag into the tree. <strong>BUT</strong> the UA doesn&#8217;t (mustn&#8217;t ?) write this back into the <em>real</em> Document tree. Therefore, the p:first-child has a p:first-line inside thats <strong>not visible</strong> to the HTML/Javascript/etc.</p>
<p>Why is that worth a blog here?<br />
Well, basicaly we can create a browser state where the DOM-Tree and the <em>css tree</em> are out of sync. This could be used to hide/display things not in the DOM-tree. I don&#8217;t found a way to abuse this so far&#8230;but its still interesting to know that css and DOM see different things.</p>
<p>PS: I am a complete newb in css. I have no idea if my explanation above is correct, nor i see a way to prove it. Any explanation/addition/references are highely welcomed.</p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://blog.spahan.ch/2008/01/exploring-css-inside-w3c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Happy Christmas.</title>
		<link>http://blog.spahan.ch/2007/12/happy-christmas/</link>
		<comments>http://blog.spahan.ch/2007/12/happy-christmas/#comments</comments>
		<pubDate>Tue, 25 Dec 2007 10:02:07 +0000</pubDate>
		<dc:creator>hanfi</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[Game]]></category>
		<category><![CDATA[]]></category>
		<category><![CDATA[greck]]></category>

		<guid isPermaLink="false">http://blog.spahan.ch/2007/12/happy-christmas/</guid>
		<description><![CDATA[My present for the net this year:  Greck open

Greck is a heavily customized fso2 game server.  We backported some fso3 features (dungeons) and implemented a lot quests.]]></description>
			<content:encoded><![CDATA[<p>My present for the net this year:  <a href="http://greck.spahan.ch/">Greck</a> open</p>
<p>Greck is a heavily customized fso2 game server.  We backported some fso3 features (dungeons) and implemented a lot quests.</p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://blog.spahan.ch/2007/12/happy-christmas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ghost v0.1</title>
		<link>http://blog.spahan.ch/2007/12/ghost-v01/</link>
		<comments>http://blog.spahan.ch/2007/12/ghost-v01/#comments</comments>
		<pubDate>Thu, 13 Dec 2007 23:47:38 +0000</pubDate>
		<dc:creator>hanfi</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[Game]]></category>
		<category><![CDATA[ghost]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[mmorpg]]></category>
		<category><![CDATA[phpBB]]></category>

		<guid isPermaLink="false">http://blog.spahan.ch/2007/12/ghost-v01/</guid>
		<description><![CDATA[Well, we are online.

Buggy, Hacky, wacky, laggy.... but at lest something that runs.

Projekt Ghost is aimed to be a full MMORPG based on html/php/javascript. It should run on any Webhoster having some php Version (right now we require php&#62;=5.2.1). In 0.1 we have the forum set up (includes user-management) and some first chat window ...]]></description>
			<content:encoded><![CDATA[<p>Well, we are online.</p>
<p>Buggy, Hacky, wacky, laggy&#8230;. but at lest something that runs.</p>
<p>Projekt Ghost is aimed to be a full MMORPG based on html/php/javascript. It should run on any Webhoster having some php Version (right now we require php&gt;=5.2.1). In 0.1 we have the forum set up (includes user-management) and some first chat window working.Next step will be to make some map and players there. Wish me luck <img src='http://blog.spahan.ch/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://blog.spahan.ch/2007/12/ghost-v01/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

