<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7041361232289290669</id><updated>2011-09-05T23:31:47.129+02:00</updated><category term='C#'/><category term='Nvidia'/><category term='ALSA'/><category term='HTPC'/><category term='javascript'/><category term='configuration'/><category term='web'/><category term='internet explorer'/><category term='ajax'/><category term='programming'/><category term='server'/><category term='PulseAudio'/><category term='Ubuntu'/><category term='privatliv'/><category term='VLC'/><category term='chrome'/><title type='text'>KalluX's Blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://kallux.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7041361232289290669/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://kallux.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>KalluX</name><uri>http://www.blogger.com/profile/18243278389784752208</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7041361232289290669.post-283196841484937537</id><published>2011-09-05T18:55:00.008+02:00</published><updated>2011-09-05T23:31:47.221+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PulseAudio'/><category scheme='http://www.blogger.com/atom/ns#' term='ALSA'/><category scheme='http://www.blogger.com/atom/ns#' term='VLC'/><category scheme='http://www.blogger.com/atom/ns#' term='HTPC'/><category scheme='http://www.blogger.com/atom/ns#' term='Nvidia'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Ubuntu 11.04 + VLC = broken by default</title><content type='html'>So, I decided after many years and many tries to finally move to Ubuntu on my HTPC. VLC has always been there for me on OSX and Windows, so naturally I threw out banshee and installed VLC.&lt;br /&gt;&lt;br /&gt;First of all: Tearing. I can only say: Everything was unwatchable. I searched forums and everywhere the same &lt;a href="http://www.thelinuxgeeks.info/fix-vlc-horizontal-tearing-lines-in-ubuntu-10-10/"&gt;suggestion&lt;/a&gt; came up: Turn on vsync in the Nvidia Control Panel and in CompizConfig. Done. Nothing. Until I found &lt;a href="http://ubuntuforums.org/archive/index.php/t-1532016.html"&gt;this&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;So I edited xorg.com (&lt;span style="font-family:courier new;"&gt;sudo nano /etc/X11/xorg.conf&lt;/span&gt;) and added&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Section "Extensions"&lt;/span&gt; &lt;span style="font-family:courier new;"&gt;&lt;br /&gt;Option "Composite" "disable"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; EndSection&lt;/span&gt;&lt;br /&gt;at the end of the file. Fine, no more effects. I can live with that as long as I get rid of the tearing problems.&lt;br /&gt;&lt;br /&gt;Next up: Audio delay. The audio delay was not only noticable, it was 100 - 400 ms too late and varying depending on cpu load. I should probably point out that none of the cores were at full load.&lt;br /&gt;&lt;br /&gt;At this point I was ready to give Ubuntu the finger and wait another 2 years for it to grow up. But then I figured: "No, I've configured clusters of databases and webservers on *nix systems before. I'm not giving up on account of a poor default configuration.". So said and done I continued my quest. Luckily I came across &lt;a href="http://benbois.posterous.com/ubuntu-vlc-audio-delay-fix"&gt;this&lt;/a&gt; excellent post on how to use ALSA instead of PulseAudio. (Short version: set VLC sound output to ALSA instead of PulseAudio/Default).&lt;br /&gt;&lt;br /&gt;So now, finally after many hours, I have a HTPC playing videos smoothly without tearing or audio delay. I know, I'm ranting about how bad my first experience with Ubuntu 11.04 are, but what I left out is that there are many reasons why I choose to stay. &lt;a href="http://amplicate.com/hate/pulseaudio"&gt;PulseAudio&lt;/a&gt; is not one of them.&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7041361232289290669-283196841484937537?l=kallux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kallux.blogspot.com/feeds/283196841484937537/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7041361232289290669&amp;postID=283196841484937537' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7041361232289290669/posts/default/283196841484937537'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7041361232289290669/posts/default/283196841484937537'/><link rel='alternate' type='text/html' href='http://kallux.blogspot.com/2011/09/ubuntu-1104-vlc-broken-by-default.html' title='Ubuntu 11.04 + VLC = broken by default'/><author><name>KalluX</name><uri>http://www.blogger.com/profile/07904991081012082348</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7041361232289290669.post-2601920716102128301</id><published>2010-08-17T08:14:00.018+02:00</published><updated>2010-08-17T08:56:40.447+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='internet explorer'/><category scheme='http://www.blogger.com/atom/ns#' term='programming'/><title type='text'>JS localStorage and IE 8 bug</title><content type='html'>How to crash an Internet Explorer 8 tab: localStorage.setItem(name, emptyString);&lt;br /&gt;&lt;br /&gt;I discovered this when I was writing a function for autosaving a textarea and had to add the bold area below.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;var Storage = {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;&amp;nbsp;&amp;nbsp;Save: function(txt, type) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-weight: bold;"&gt;if (txt.length == 0) {&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Storage.Remove(type);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;try {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;localStorage.setItem(type, txt);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} catch (ex) { }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;&amp;nbsp;&amp;nbsp;},&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;&amp;nbsp;&amp;nbsp;Remove: function(type) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;try {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;localStorage.removeItem(type);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} catch (ex) { }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;};&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7041361232289290669-2601920716102128301?l=kallux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kallux.blogspot.com/feeds/2601920716102128301/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7041361232289290669&amp;postID=2601920716102128301' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7041361232289290669/posts/default/2601920716102128301'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7041361232289290669/posts/default/2601920716102128301'/><link rel='alternate' type='text/html' href='http://kallux.blogspot.com/2010/08/js-localstorage-and-ie-8-bug.html' title='JS localStorage and IE 8 bug'/><author><name>KalluX</name><uri>http://www.blogger.com/profile/18243278389784752208</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7041361232289290669.post-4238210387387769056</id><published>2010-06-04T15:35:00.004+02:00</published><updated>2010-06-04T15:43:21.874+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ajax'/><category scheme='http://www.blogger.com/atom/ns#' term='programming'/><category scheme='http://www.blogger.com/atom/ns#' term='chrome'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='web'/><title type='text'>Chrome ajax status == 0 and C# .net</title><content type='html'>I just found out that using Response.Close(); makes Chrome XmlHttpRequests fail with status 0.&lt;br /&gt;&lt;br /&gt;I often use ajax to get a small variable from a page and since I don't want the whole page i simply&lt;br /&gt;Response.Write(myVar);&lt;br /&gt;Response.Flush();&lt;br /&gt;Response.Close();&lt;br /&gt;&lt;br /&gt;but none of the pages worked in Google Chrome. When changing Response.Close() to Response.End(); everything worked as intended.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7041361232289290669-4238210387387769056?l=kallux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kallux.blogspot.com/feeds/4238210387387769056/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7041361232289290669&amp;postID=4238210387387769056' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7041361232289290669/posts/default/4238210387387769056'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7041361232289290669/posts/default/4238210387387769056'/><link rel='alternate' type='text/html' href='http://kallux.blogspot.com/2010/06/chrome-ajax-status-0-and-c-net.html' title='Chrome ajax status == 0 and C# .net'/><author><name>KalluX</name><uri>http://www.blogger.com/profile/07904991081012082348</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7041361232289290669.post-1846189322165192830</id><published>2010-03-07T09:54:00.005+01:00</published><updated>2010-03-07T10:10:42.796+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='privatliv'/><title type='text'>Hannover 2010</title><content type='html'>Så är nu tillbaks från en otrolig mässa i Hannover.&lt;br /&gt;CeBIT 2010 var häftig som fan.&lt;br /&gt;&lt;br /&gt;Jag trodde aldrig att det fanns områden som var så stora med så många teknikintresserade som jag själv. Vi gick i nio timmar non-stop och hann ändå inte med dessa byggnader som motsvarar ca  10 flyghangarer.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_6JUDMkmyWkY/S5NrDZWlzYI/AAAAAAAAABM/wWBCdBrXCJk/s1600-h/19526.gif"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 320px; height: 272px;" src="http://4.bp.blogspot.com/_6JUDMkmyWkY/S5NrDZWlzYI/AAAAAAAAABM/wWBCdBrXCJk/s320/19526.gif" alt="" id="BLOGGER_PHOTO_ID_5445814080510479746" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Efter det gick vi och satte oss i ett riktigt Bierhaus och åt schnitzel och drack Löwenbräu. Utanför satt ett 10 meter högt lejon som drack öl och skrålade "Löööööööfenbräääääääääääuuu".&lt;br /&gt;&lt;br /&gt;Nej på det stora hela har det varit en sjukt häftig semester. Jaja, det var väl lite jobbrelaterat, men på det stora hela var det var faktiskt mer semester.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Idag är det spel, kaffe, programmerings och tvättdag.&lt;br /&gt;&lt;br /&gt;K = glad&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7041361232289290669-1846189322165192830?l=kallux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kallux.blogspot.com/feeds/1846189322165192830/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7041361232289290669&amp;postID=1846189322165192830' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7041361232289290669/posts/default/1846189322165192830'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7041361232289290669/posts/default/1846189322165192830'/><link rel='alternate' type='text/html' href='http://kallux.blogspot.com/2010/03/hannover-2010.html' title='Hannover 2010'/><author><name>KalluX</name><uri>http://www.blogger.com/profile/07904991081012082348</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_6JUDMkmyWkY/S5NrDZWlzYI/AAAAAAAAABM/wWBCdBrXCJk/s72-c/19526.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7041361232289290669.post-5598537446906500930</id><published>2010-02-26T17:11:00.005+01:00</published><updated>2010-02-26T17:19:45.935+01:00</updated><title type='text'>Enhance</title><content type='html'>Varför jag inte tittar på CSI:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://i.imgur.com/WyoOL.jpg"&gt;Enhance that license plate.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://img7.imageshack.us/img7/640/csi21.jpg"&gt;Picture from the scene.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;object width="420" height="344"&gt;&lt;param name="movie" value="http://www.youtube.com/v/3uoM5kfZIQ0&amp;amp;hl=sv_SE&amp;amp;fs=1&amp;amp;"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;embed src="http://www.youtube.com/v/3uoM5kfZIQ0&amp;amp;hl=sv_SE&amp;amp;fs=1&amp;amp;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="420" height="344"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;object width="420" height="295"&gt;&lt;param name="movie" value="http://www.youtube.com/v/KUFkb0d1kbU&amp;hl=sv_SE&amp;fs=1&amp;"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/KUFkb0d1kbU&amp;hl=sv_SE&amp;fs=1&amp;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="420" height="295"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7041361232289290669-5598537446906500930?l=kallux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kallux.blogspot.com/feeds/5598537446906500930/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7041361232289290669&amp;postID=5598537446906500930' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7041361232289290669/posts/default/5598537446906500930'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7041361232289290669/posts/default/5598537446906500930'/><link rel='alternate' type='text/html' href='http://kallux.blogspot.com/2010/02/enhance.html' title='Enhance'/><author><name>KalluX</name><uri>http://www.blogger.com/profile/07904991081012082348</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7041361232289290669.post-8870571786846360004</id><published>2009-06-12T15:49:00.004+02:00</published><updated>2009-06-23T06:45:48.307+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='privatliv'/><title type='text'>Internet i knäna</title><content type='html'>Sitter på tåget med min lilla LG X110 och kontantkort från tre. High-tek! Eller som att ha internet inopererat i eh, knäna.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_HGpY6iPNrZo/SjJePZIMIdI/AAAAAAAAAHg/EQcs7QylzA4/s1600-h/lg-x110-4.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 200px; height: 139px;" src="http://2.bp.blogspot.com/_HGpY6iPNrZo/SjJePZIMIdI/AAAAAAAAAHg/EQcs7QylzA4/s400/lg-x110-4.jpg" alt="" id="BLOGGER_PHOTO_ID_5346439326178484690" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Per säger:&lt;br /&gt;undra om det är med internet som med regn, att om man springer/åker tåg så åker man in i massa regndroppar/kilobits så att det går snabbare&lt;br /&gt;KalluX säger:&lt;br /&gt;hahhahahahha&lt;br /&gt;Per säger:&lt;br /&gt;=)&lt;br /&gt;KalluX säger:&lt;br /&gt;Det är nog snarare tvärtom&lt;br /&gt;KalluX säger:&lt;br /&gt;Man springer ifrån internetet&lt;br /&gt;Per säger:&lt;br /&gt;man åker ifrån dom? Ahh det tror jag med&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7041361232289290669-8870571786846360004?l=kallux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kallux.blogspot.com/feeds/8870571786846360004/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7041361232289290669&amp;postID=8870571786846360004' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7041361232289290669/posts/default/8870571786846360004'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7041361232289290669/posts/default/8870571786846360004'/><link rel='alternate' type='text/html' href='http://kallux.blogspot.com/2009/06/internet-i-knana.html' title='Internet i knäna'/><author><name>KalluX</name><uri>http://www.blogger.com/profile/18243278389784752208</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_HGpY6iPNrZo/SjJePZIMIdI/AAAAAAAAAHg/EQcs7QylzA4/s72-c/lg-x110-4.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7041361232289290669.post-7430484056824723270</id><published>2009-05-20T14:23:00.008+02:00</published><updated>2009-05-20T16:46:11.463+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='server'/><category scheme='http://www.blogger.com/atom/ns#' term='configuration'/><title type='text'>Fix 4227 on windows server 2008</title><content type='html'>The error message:&lt;br /&gt;Event 4227, Tcpip&lt;br /&gt;TCP/IP failed to establish an outgoing connection because the selected local endpoint was recently used to connect to the same remote endpoint. This error typically occurs when outgoing connections are opened and closed at a high rate, causing all available local ports to be used and forcing TCP/IP to reuse a local port for an outgoing connection. To minimize the risk of data corruption, the TCP/IP standard requires a minimum time period to elapse between successive connections from a given local endpoint to a given remote endpoint.&lt;br /&gt;&lt;br /&gt;The problem:&lt;br /&gt;We have an IIS that talks to a local MySql server. And it does that a lot. I'm talking about thousands and thousands of connections every second. Most connections only lasts a millisec but we still open and close the connections.&lt;br /&gt;&lt;br /&gt;The problem is that we max out our connection quota way too fast for windows and windows doesn't like to reuse a port without giving it some cooldown time before opening a new connection. So what do we do? Well, we give the user more connections to use. Windows server 2008 only allows 5000 connections per user by default. So if we increase the value to max (65534) we will have a lot more connections to reuse and the cooldown won't become such a problem.&lt;br /&gt;&lt;br /&gt;The solution:&lt;br /&gt;Open regedit and go to:&lt;br /&gt;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters&lt;br /&gt;then add:&lt;br /&gt;Value Name: MaxUserPort&lt;br /&gt;Data Type: REG_DWORD&lt;br /&gt;Value: 65534&lt;br /&gt;&lt;br /&gt;Restart your system.&lt;br /&gt;&lt;br /&gt;(In order to reset the system, don't just delete the key. Set it back to it's default value (5000))&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7041361232289290669-7430484056824723270?l=kallux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kallux.blogspot.com/feeds/7430484056824723270/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7041361232289290669&amp;postID=7430484056824723270' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7041361232289290669/posts/default/7430484056824723270'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7041361232289290669/posts/default/7430484056824723270'/><link rel='alternate' type='text/html' href='http://kallux.blogspot.com/2009/05/fix-4227-on-windows-server-2008.html' title='Fix 4227 on windows server 2008'/><author><name>KalluX</name><uri>http://www.blogger.com/profile/18243278389784752208</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
