<?xml version="1.0" encoding="ISO-8859-1"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ref="http://purl.org/rss/1.0/modules/reference/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns="http://purl.org/rss/1.0/">
	<channel rdf:about="http://cosninix.com/blog49/rss.rdf">
		<title>Cosninix projects</title>
		<link>http://cosninix.com/blog49/index.php</link>
		<description><![CDATA[No Footer]]></description>
		<items>
			<rdf:Seq>
				<rdf:li resource="http://cosninix.com/blog49/index.php?entry=entry090927-132538" />
				<rdf:li resource="http://cosninix.com/blog49/index.php?entry=entry090103-112852" />
				<rdf:li resource="http://cosninix.com/blog49/index.php?entry=entry080618-170745" />
				<rdf:li resource="http://cosninix.com/blog49/index.php?entry=entry080618-132808" />
				<rdf:li resource="http://cosninix.com/blog49/index.php?entry=entry080613-005238" />
				<rdf:li resource="http://cosninix.com/blog49/index.php?entry=entry080421-223109" />
				<rdf:li resource="http://cosninix.com/blog49/index.php?entry=entry080417-230900" />
				<rdf:li resource="http://cosninix.com/blog49/index.php?entry=entry070312-200448" />
				<rdf:li resource="http://cosninix.com/blog49/index.php?entry=entry060824-104627" />
				<rdf:li resource="http://cosninix.com/blog49/index.php?entry=entry060409-013701" />
			</rdf:Seq>
		</items>
	</channel>
	<item rdf:about="http://cosninix.com/blog49/index.php?entry=entry090927-132538">
		<title>How to break Safari4 with CSS</title>
		<link>http://cosninix.com/blog49/index.php?entry=entry090927-132538</link>
		<description><![CDATA[Today I found a nasty Safari 4.0 bug. By accident, I ended up with a css line as follows:<br /><br />.orange			{color: !important;}<br /><br />The result is... Safari skips the complete rest of the css file after this statement. Took me ages to figure this out. But if this is persistant in some Safari versions, it might come in handy to make a Safari-Hack, like:<br /><br />.dummy  {color: !important;} /* rest of file is ignored by Safari */<br /><br />So every disadvantage has it advantages. ]]></description>
	</item>
	<item rdf:about="http://cosninix.com/blog49/index.php?entry=entry090103-112852">
		<title>linux centos/redhat/fedora man pages show strange characters - howto</title>
		<link>http://cosninix.com/blog49/index.php?entry=entry090103-112852</link>
		<description><![CDATA[If you get strange ã characters in your man pages, the problem is probably that your ssh client does not understand UTF-8.<br /><br />The solution is easy: add <br /><br />export LANG=en_US<br /><br />at the end of your /etc/bashrc<br /><br />]]></description>
	</item>
	<item rdf:about="http://cosninix.com/blog49/index.php?entry=entry080618-170745">
		<title>Long Time Google Docs Bugs Which Are So Far Never Fixed By Google</title>
		<link>http://cosninix.com/blog49/index.php?entry=entry080618-170745</link>
		<description><![CDATA[The number of bugs in google docs seem to be so long that they have problems fixing them. At least the following issues are not resolved for months now. Unfortunately they are adding features more quickly than that they are fixing bugs, which was microsofts favorite thing to do and made me switch to google docs. Alas...<br /><br />These bugs irritate me the most:<br />1. table ghost cells. Saving and reloading solves it, but thats a pain.<br />2. Font always switches back to &quot;wide&quot;. Even if all default and font settings are right, some &quot;ghost&quot; font keeps popping up<br />3. jumping to beginning when more people start editing. irritating<br />4. bullet and indent trouble. Just like MSW, google is having trouble with idents and bullets.<br />5. table cell width&#039;s - I want to size a table using the mouse, not with a dialog.<br /><br />more to be added...<br />]]></description>
	</item>
	<item rdf:about="http://cosninix.com/blog49/index.php?entry=entry080618-132808">
		<title>what&#039;s the best pictureviewer for xp/vista?</title>
		<link>http://cosninix.com/blog49/index.php?entry=entry080618-132808</link>
		<description><![CDATA[First, a bit of history:<br /><br />before XP, I used acdsee on win98/win2000/nt but the person who developed this thought it was a good idea to put tons of useless features into it without thinking about the fact that an application needs a intuative userinterface, and then decided that it also needed nagscreens, banners and other irritations. So goodbye acdsee. This frankenstein is killed some time ago by it&#039;s creator and now lives on as a zombie.<br /><br />On XP i&#039;ve been using the standard windows picture viewer, which is simple and good. It shows all my snapshots and allows me to browse and print them. In combination with explorer, you hardly need anything else.<br /><br />But what about the other popular formats, most importantly png and psd (photoshop) files. Because microsoft does not seem to like them they are not supported by the standard XP viewer. And then you might want to do some simple editing, like rescale or contrast correction on a few pictures. At that moment, you realize thet you need an alternative.<br /><br />Well, vista finally arrived. And with it came the brand new photo gallery and solved all my problems...not.  Although png file support is ok, psd files (from microsofts big enemy adobe) is still not supported, and the edit possibilities are still minimal.<br /><br />Then i tried picasa, but that is not a picture viewer, it is a digital photo album. <br /><br />so my wishlist was as follows:<br />- at least jpg, gif, png and psd format support.<br />- some simple editing options, <br />  like scale, crop, contrast/hue/brightness, rotation, flip<br />- a real picture viewer with explorer-like file management.<br /><br />In comes irfanview. This seems like a decent picturemanager, but it has a lot of drawbacks. First, the brain of the developer and my brain seem to be so different, that nearly all defaults are wrong. If you click on something, it always does NOT do what you want. <br />Example: the save-floppy icon is save-as, not save as you expect. Also, try to get the picture scaled to the window automatically, but keep its ratio. This should be the default setting, but in irfanview you need 20 minutes to figure out how to do this. <br />Then, try to edit a picture. You need to wade through hundreds of options, none are relevant until you find out it can not do what you want.<br />Finaly, irfanview is incredibly slow. The XP standard viewer shows pictures on avarage 50x faster than irfanview.<br />Conclusion: irfanview is bloatware that needs a serious rewrite. Its an application only a mother could love.<br /><br />Googling for alternatives i came across firegraphic, paperstore, thumbsplus, compupic..<br /><br />Then I found <a href="http://www.xnview.com" target="_blank" >xnview</a>. XnView is a better viewer in all aspects than irfanview or acdsee. It has a better userinterface, has a lot of options and features, and they are placed in the way you would expect them, its very fast and supports a lot of fileformats. A big advantage is it&#039;s browser screen which has a good explorer-like feel. And it&#039;s free. <br />The main disadvantage is that it also tries to implent too many features and options, but it does not become completly unusable, and the defaults are well chosen. Furthermore it does not have a modern userinterface like picasa.<br /><br />What is it that picture viewer developers seem to think that the number of features is more important than the usability? Do we need to wait for windows7 before we get a decent picture viewer/editor in windows? Or is there a viewer that can do simple editing and is fast and passes some simple usability criteria?<br /><br />]]></description>
	</item>
	<item rdf:about="http://cosninix.com/blog49/index.php?entry=entry080613-005238">
		<title>Generating microsoft office documents (word, excel) on your webserver using php</title>
		<link>http://cosninix.com/blog49/index.php?entry=entry080613-005238</link>
		<description><![CDATA[Actually, this is much easier than you might think. The trick is to use the capability of excel and word to read html files. So just generate normal html, but use a content-type header line to force the browser to see this as a word or excel file: (using php)<br /><br />header (&quot;Content-type: application/msword&quot;);  or<br />header (&quot;Content-type: application/vnd.ms-word&quot;);<br />for word and<br />header (&quot;Content-type: application/msexcel&quot;); or<br />header (&quot;Content-type: application/vnd.ms-excel&quot;);<br /><br />I have never seen any difference between msword and vnd.ms-word, so if anybody knows the difference, please respond.<br /><br />Then you might want to define the local filename. This can be done using the content-disposition header: <br /><br />header(&quot;Content-Disposition: filename=\&quot;invoice_$invoicenr.xls\&quot;&quot;);<br /><br />For excel, just start generating a html table. The full table is used as excel sheet with its rows and columns.<br />For word, just start generating html code. It is interpreted by word. Make sure to use a FULL url path if you want to include images.<br /><br />Here is an example to generate a word document:<br /><pre>&lt;?<br />$inr=10056;     // invoice number<br />$item=&quot;usbst&quot;;  // article number<br />$itemdesc=&quot;Usb stick 512Mb&quot;; // article descr<br />$price=6.49;    // price<br /><br />header(&quot;Content-type: application/vnd.ms-word&quot;);<br />header(&quot;Content-Disposition: filename=\&quot;invoice_$inr.doc\&quot;&quot;);<br />Header(&quot;Expires: Wed, 14 Oct 1997 06:41:40 GMT&quot;);<br />Header(&quot;Cache-control: no-cache&quot;); <br />?&gt;<br />&lt;html&gt;<br />&lt;HEAD&gt;<br />&lt;style type=&quot;text/css&quot;&gt;<br />body {	font-family: &quot;Microsoft Sans Serif&quot;;<br />        font-size:10pt;<br />        margin:0px;}<br />img	 { padding:0px;margin:0px;border: solid 0px white;}<br />&lt;/style&gt;<br />&lt;/HEAD&gt;&lt;BODY&gt;<br />&lt;img src=&quot;http://www.cosninix.com/blog49/themes/default/images/header750x100.jpg&quot; width=&quot;100&quot;&gt; <br />&lt;div style=&quot;margin-left:12px;&quot;&gt;<br />&lt;p&gt;Invoice #&lt;?=$inr?&gt;&lt;/p&gt;<br />&lt;table width=&quot;100%&quot;&gt;<br />&lt;tr&gt;<br />&lt;td width=&quot;20%&quot;&gt;&lt;b&gt;&lt;?=$item?&gt;&lt;/b&gt;&lt;/td&gt;<br />&lt;td width=&quot;40%&quot;&gt;&lt;?=$itemdesc?&gt;&lt;/td&gt;<br />&lt;td width=&quot;40%&quot;&gt;&lt;?=$price?&gt;&lt;/td&gt;<br />&lt;/tr&gt;<br />&lt;/table&gt;<br />&lt;/body&gt;<br />&lt;/html&gt;<br /></pre><br /><br />Click <a href="http://www.cosninix.com/invoicedoc.php" target="_blank" >here</a> to test it.]]></description>
	</item>
	<item rdf:about="http://cosninix.com/blog49/index.php?entry=entry080421-223109">
		<title>Een office in china?</title>
		<link>http://cosninix.com/blog49/index.php?entry=entry080421-223109</link>
		<description><![CDATA[Dit lijkt moeilijker dan dat het is. Als eerste natuurlijk de keuze van de plaats. Na ons bezoek aan Shanghai werd wel duidelijk dat het daar lastiger gaat worden: de stad is overvol, de lonen stijgen en de chinezen zijn nu vooral zelf heel ondernemend en hebben in steeds mindere mate de buitenlanders nodig. Neem dan Chengdu, de tweede stad waar we een kijkje namen. Chengdu is een van de 2nd-tier steden in China, waar op dit ogenblik de overheid hard de economische ontwikkeling aan het promoten is. En die promotie gaat samen met een mooie welkomst speech tijdens ons bezoek aan de High Tech Zone door een vertegenwoordiger van het gestaalde kader: volledig in het chinees. Gelukkig wordt de speech daarna dunnetjes overgedaan door een goed engels sprekende man die ons uitlegt wat de mogelijkheden zijn.<br /> <br />Je hebt het gevoel in een reclamespot terecht te zijn gekomen, en de lokale overheid laat geen moment onbenut om je ervan te overtuigen dat je hier moet zijn als je in China wilt komen investeren. De bijbehorende glossy folder vermeld:  electriciteit: 8 eurocent per kwh,  drinkwater 31 eurocent per kuub, overal glasvezel aanwezig voor supersnel internet, labor cost…. Labor cost? De folder meldt dat een “gemiddelde” programmeur hier 2300 euro per jaar kost, en voor een software engineer met master’s degree moet je gemiddeld aan 6600 euro per jaar denken.  Je moet hier dan nog wel 31% sociale premies bij optellen als je de werkgeverslasten wilt berekenen. Ook wordt terloops nog even vermeld dat zwaar chemisch afval of radioaktief afval bij de overheid kan worden ingeleverd indien je daar gebruik van wenst te maken. Verder een stapel folders van kale bouwkavels (“removal and demolition are under way” – in China schildert de overheid een teken op je muur en dan heb je 14 dagen voordat je woning tegen de vlakte gaat. Voordeel is wel dat je altijd andere woonruimte krijgt),  panden in aanbouw of compleet gerealiseerde kantoorunits in elke gewenste grootte die je maar wilt. <a href="http://www.cdht.gov.cn" target="_blank" >zie cdht.gov.cn</a><br /><br /> Daarnaast krijg je de beschikking over iemand van de overheid die je full time komt helpen bij het verkrijgen van alle benodigde vergunningen, als je je daar al zorgen over maakt want in de folder staan alle stappen die voor de vergunning nodig zijn in een overzichtelijk schema vermeld. Kortom: te mooi om waar te zijn. Denkend aan ons kikkerlandje waar de overheid de ondernemer op elk mogelijke manier het leven zuur probeert te maken is het toch wel een verademing, zo’n dictatuur. Als proef op de som zijn we dezelfde dag ook nog op bezoek geweest bij Plenware, een fins detacheringsburo werkzaam in de ICT sector. Zij hebben net een Chengdu office geopend, en zijn op het moment dat we binnenkomen net klaar met inrichten. Op de vraag of alles inderdaad zo gemakkelijk gaat kwam het antwoord dat we al min of meer hadden verwacht: sommige dingen gaan makkelijk, andere moeilijk. De ervaring was dat vaak de simpele dingen lang duren, bv het regelen van een mobieltje. Dat komt ook overeen met onze ervaring toen we een paar batterijen wilde kopen en een half uur aan het onderhandelen waren met de beste man omdat hij vond dat we teveel betaalden. In China gaan makkelijke dingen moeilijker, moeilijke dingen gaan gemakkelijker. <br /><br />Al met al ben ik zeer enthousiast geworden om hier iets te gaan starten. In Nederland wordt het steeds moeilijker om software te ontwikkelen, goede mensen zijn niet te krijgen, en hier in China lijkt de kans op succes veel groter. Na eerdere mislukte pogingen om software ontwikkeling in India en in China door een outsourcing bedrijf te laten uitvoeren denk ik er nu over om hier een kantoorunit te huren en een development club te starten. Ik ben om. <br />Ronald van Woensel - Chinareis2008.nl<br />]]></description>
	</item>
	<item rdf:about="http://cosninix.com/blog49/index.php?entry=entry080417-230900">
		<title>Flash memory reliability</title>
		<link>http://cosninix.com/blog49/index.php?entry=entry080417-230900</link>
		<description><![CDATA[During my trip to China a few weeks ago I met Ernst Fuld again. Ernst is CEO of the <a href="http://www.ngn.nl/ngn?waxtrapp=aluzzFsHyoOtvOXEaMbMA" target="_blank" >NGN</a>, the dutch IT-professional platform. He told me that he has tried to test some usb-sticks and see if they could be written and erased so many times that they break. As you probably know, flash memory can only be written a limited number of times. Each time you erase (rewrite) the memory cell, there is a slight chance that it breaks. Normally, the memory is guaranteed to last for 100000 rewrites, but has anybody tested this on a regular usb stick?<br /><br />There is a problem however. The sticks are known to use a technique called &quot;wear levelling&quot;. The data you write to the stick is remapped to memory area&#039;s where the number of rewrites is the lowest. This means that you cannot test 1 cell by re-writing a small file over and over. You have to fill the WHOLE stick in order to rewrite all cells. And even if you manage to break a cell, there is also error-correction logic and bad-block remapping that will correct the error without notice. So the flash memories seem to be unbreakable.. or not!?<br /><br />That&#039;s why I wrote this simple app: <a href="http://www.cosninix.com/pub/flashkiller.zip" target="_blank" >Flashkiller</a>. It&#039;s a free download so you can test the reliability of your memory stick yourself. If you broke a usb-stick or memory card with it, please respond to this post!<br /><br />May 2 update: the kingston 512mb is now @19000 rewrites and still without an error..<br /><br />june 13 update: The kingston is DEAD. After 65000 writes it becomes a read-only stick. Nothing can be written any more, and when i try to write it gives an error!!!!]]></description>
	</item>
	<item rdf:about="http://cosninix.com/blog49/index.php?entry=entry070312-200448">
		<title>IE7 upgrade experience - IE7 exits immediately after starting.</title>
		<link>http://cosninix.com/blog49/index.php?entry=entry070312-200448</link>
		<description><![CDATA[I&#039;m using firefox as my default browser, but for testing and development i need explorer every once in a while. A couple of weeks ago, my microsoft update asked my to upgrate to IE7. So why not? well, always reluctant to install microsoft stuff, but if everybody uses IE7, i should at least test websites for this new browser.<br /><br />So i installed IE7. What a bummer! I got an icon, but that was about it. Clicking the IE7 icon shows the hourglass for a fraction of a second, and then it exits immediately. So i uninstalled it and installed it again. Nope.. Then I reinstalled IE6. Works fine! <br /><br />Next step: google the answer. Googling for &quot;IE7 wont start&quot; gives you this link: <br /><a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;928427&amp;sd=rss&amp;spid=8722" target="_blank" >http://support.microsoft.com/default.as ... ;spid=8722</a><br /><br />Wow! microsoft already solved my problem!..but n o.. this wont fix it.<br />of course, further searching the microsoft site using their own search function never gives a valid clue. <br /><br />so.. now what? Runing IE7 without plugins also doesn&#039;t help. It just wont start. <br /><br />uninstalling .net 1.0, .net2.0 visual studio and a lot of other apps? no luck.<br /><br />So after a while I stumbled upon SFC. This utility is able to check *ALL* critical system files and reinstalls them if neccesary, <br />Running SFC /SCANNOW went well. I took about half an hour, and you only see a progressbar, no information, no logging and at the end, the program just exists without any report.. BUT it did the job: IE7 now starts. It took me about 6 hours to get IE7 working, but in the end i finally can test this great piece of work from microsoft.. Why can they *never* get their software right?]]></description>
	</item>
	<item rdf:about="http://cosninix.com/blog49/index.php?entry=entry060824-104627">
		<title>find your dhcp servers</title>
		<link>http://cosninix.com/blog49/index.php?entry=entry060824-104627</link>
		<description><![CDATA[How often does this go wrong: multiple dhcp servers on your subnet? Because routers, accesspoints, modems boxes ALL have dhcp servers nowadays, a double or triple dhcp server in your network is not uncommon.  But tools to identify which dhcp servers are available are not easy to find.<br /><br />To identify that something might be wrong, you can use ipconfig on a windows cmd box:<br /><br /><code><br />C:\Documents and Settings\rvw.KOEKJE&gt;ipconfig /all<br /><br />Windows IP-configuratie<br />  ...<br />Ethernet-adapter LAN-verbinding:<br />  ...<br />        Standaardgateway. . . . . . . . . : 10.237.147.2<br />        DHCP-server . . . . . . . . . . . : 10.237.147.50<br />        DNS-servers . . . . . . . . . . . : 213.51.129.37<br />                                            213.51.144.37<br />  etc<br /><br /></code><br /><br />This shows you your CURRENT dhcp server, but if there are multiple dhcp servers running by accident, you will get an IP address from a RANDOM server!<br /><br />Same with NETSH. The command NETSH DIAG SHOW DHCP only shows your CURRENT dhcp server and does not do a scan.<br />Even utilities that claim to do this, only show one or only the current dhcp. DHCPexplorer from nsasoft is such a fake application.<br /><br />Fortunately there is a tool that comes standard with windows, called DHCPLOC. If it is not installed, you can find it on your windows CD under the \support\tools directory OR get it from <br /><a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=49AE8576-9BB9-4126-9761-BA8011FABF38&amp;displaylang=en" target="_blank" >here</a><br /><br />Give your current IP address as an argument to dhcploc, and press &quot;d&quot; (discover).  Press d a few times to get a good view.<br /><br /><code><br />C:\WINDOWS&gt;dhcploc 10.237.147.101<br />15:28:30    OFFER (IP)10.237.147.199  (S)10.237.147.50   ***Form<br />15:28:32    OFFER (IP)10.237.147.170  (S)10.237.147.1    ***<br />15:28:32    OFFER (IP)10.237.147.199  (S)10.237.147.50   ***<br />15:28:34    OFFER (IP)10.237.147.199  (S)10.237.147.50   ***<br />15:28:35    OFFER (IP)10.237.147.170  (S)10.237.147.1    ***<br />15:28:35    OFFER (IP)10.237.147.199  (S)10.237.147.50   ***<br />15:28:36    OFFER (IP)10.237.147.170  (S)10.237.147.1    ***<br />15:28:37    OFFER (IP)10.237.147.199  (S)10.237.147.50   ***<br /><br /></code><br />There! there is a rogue dhcp server running at IP 10.237.147.1 !! <br />So you know.<br /><br />(the rogue dhcp server turned out to be a netopia dsl router, which only changes dhcp server settings after a REBOOT! Shame!)<br /><br />Edit: <br />Another nice tool is DHCPFIND.EXE, from roadkil. Its free and works, and is a GUI tool, not a commandline tool. Only problem is that it does not show the dhcp server IP, so dhcploc is still the  best utility for the job. If you want to try dhcpfind, look <a href="http://www.roadkil.net/dhcpfind.html" target="_blank" >here</a>]]></description>
	</item>
	<item rdf:about="http://cosninix.com/blog49/index.php?entry=entry060409-013701">
		<title>Mserv4win - Mserv Client for Windows </title>
		<link>http://cosninix.com/blog49/index.php?entry=entry060409-013701</link>
		<description><![CDATA[Already for a few years, i&#039;m running <a href="http://www.mserv.org" target="_blank" >MSERV</a>, a great opensource mp3 jukebox  which is completely client-server and has a good rating- and genre system which allows it to play random music that corresponds to the current mood, current lister etc.<br /><br />You can rate numbers as superb, good, normal, bad, awful etc. and it takes this into account to play numbers more or less often, depending on your rating. Everybody can rate, so this is a good jukebox to use with a group of people.<br /><br />There are a few clients available, and I&#039;ve taken MservClient as a base to further develop the windows client. MservClient is written by Marco Schulze and Marc Klinger, <a href="http://wiki.nightlabs.de/en/MServClient" target="_blank" >and can be found here</a>. Because I&#039;ve changed the whole concept of MservClient, I adopted a new name: Mserv4win. Also, there is not much left from the original code of mservclient. Mserv4win takes the look and feel from winamp and puts it on top of mserv.<br /><br />One of the things missing in Mserv is a good &quot;cover picture&quot; feature, so I&#039;ve also added an &quot;x cover&quot; command to get a cover pic from the server. The client still talks to the original server that does not support this command, but with this feature, the experience is a lot better.<br /><br />Here&#039;s a screenshot:<br /><br /><a href="javascript:openpopup('images/mserv4win.jpg',700,576,false);"><img src="images/mserv4win.jpg" width="512" height="421" border="0" alt="" /></a><br /><br /><br />Download Mserv4win: <a href="images/MServClient.zip" target="_blank" >MServ4win.zip</a><br />Download source (delphi7): <a href="images/mservclient.rar" target="_blank" >sources.rar</a><br /><br />If you want to patch your mserv for &quot;cover&quot; support, use this to patch mserv&#039;s cmd.c and recompile: <a href="images/cmd.patch" target="_blank" >cmd.patch</a><br />or replace cmd.c with this version: <a href="images/cmd.c" target="_blank" >cmd.c</a><br /><br />make sure you put cover .jpg files in the same directory as the album mp3&#039;s. Also, make sure the jpg is not too big (max 50k or so)  ]]></description>
	</item>
</rdf:RDF>

