<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
    <channel>
        <title>Lessons Learned</title>
        <link>http://bivald.com/lessons-learned/</link>
        <description>Lessons learned is where I publish everything from articles, texts and links to project previews, creative ideas and code snippets. Simply my lessons learned. While the portfolio always will be a way for me to publish my finished work, lessons learned is the place where I simply hope to share my experience. </description>
        <language>en</language>
        <copyright>Copyright 2008</copyright>
        <lastBuildDate>Mon, 29 Dec 2008 13:46:06 +0100</lastBuildDate>
        <generator>http://www.sixapart.com/movabletype/</generator>
        <docs>http://www.rssboard.org/rss-specification</docs>
        
        <item>
            <title>Web services scaling</title>
            <description><![CDATA[The site <a href="http://highscalability.com/">www.highscalability.com/</a> is a great resource for web service (or application) scaling. It collects articles on application scaling that varies from:<br /><br /><ul><li>Theoretical scaling</li><li>Hand-on <br /></li><li>Statistics and information</li></ul>The last one takes a look at which scaling solution different large sites uses. A must read. <br /> ]]></description>
            <link>http://bivald.com/lessons-learned/2008/12/web_services_scaling.html</link>
            <guid>http://bivald.com/lessons-learned/2008/12/web_services_scaling.html</guid>
            
            
            <pubDate>Mon, 29 Dec 2008 13:46:06 +0100</pubDate>
        </item>
        
        <item>
            <title>Fixing Movable Type Javascript errors (Admin system error)</title>
            <description><![CDATA[Recently I've been pushing my Movable Type installation over several domains and in the processes I lost javascript functionality on one of the blogs, I didn't see the fancy editor, I pretty much couldn't use the admin system.<br /><br />Javascript gave the following errors:<br />"MT is not defined"<br />"JT is not defined"<br /><br />And so on. After a little searching I came up with <a href="http://forums.sixapart.com/index.php?act=Print&amp;client=printer&amp;f=8&amp;t=63322">this post</a> which states that the problem is due to a corrupt mt.js (in mt-static). If your file is below 10 KB, you have a problem. Simply download the installation files from movabletype.org (matching your version, of course) and replace mt.js. It should now be ~100 KB. <br /><br />Worked like a charm<br /> ]]></description>
            <link>http://bivald.com/lessons-learned/2008/11/fixing_movable_type_javascript.html</link>
            <guid>http://bivald.com/lessons-learned/2008/11/fixing_movable_type_javascript.html</guid>
            
            
            <pubDate>Tue, 25 Nov 2008 08:10:37 +0100</pubDate>
        </item>
        
        <item>
            <title>Programming for the iPhone</title>
            <description><![CDATA[Just recently I started programming for the iPhone. It's awkward at first being objective C, but after only I few hours I've come to love the iPhone SDK (xckode, the simulator, Interface Builder) and it's documentation. <br /><br />For starters, register on <a href="http://developer.apple.com/iphone/">Iphone Dev Center</a> and download and install the SDK. Read the <a href="http://developer.apple.com/iphone/gettingstarted/docs/objectivecprimer.action">objective c primer</a> and at least fast-read through <a href="https://developer.apple.com/iphone/library/documentation/Xcode/Conceptual/iphone_development/000-Introduction/chapter_1_section_1.html">iPhone development guide</a>. Then the fun starts - making your own application.<br /><br />The absolute best resource for this (IMO) is <a href="http://icodeblog.com/">icodeblog.com (Iphone Programming Tutorial)</a> There you will find step-by-step tutorials on both how to get you started as well as how to use the different components<br /> ]]></description>
            <link>http://bivald.com/lessons-learned/2008/10/programming_for_the_iphone.html</link>
            <guid>http://bivald.com/lessons-learned/2008/10/programming_for_the_iphone.html</guid>
            
            
            <pubDate>Mon, 27 Oct 2008 07:28:36 +0100</pubDate>
        </item>
        
        <item>
            <title>Adding www to all urls for a domain</title>
            <description><![CDATA[On pretty much every of my projects (which I run on apache) I have the need to automatically rewrite all requests without www to the corresponding adress with www. It's simply, and this is the code I use (over, and over again). It rewrites (for example) <a href="http://luradittbarn.se/">http://luradittbarn.se</a> to <a href="http://luradittbarn.se/">http://www.luradittbarn.se</a>. If you request a page (i.e) <a href="http://luradittbarn.se/archives.html">http://luradittbarn.se/archives.html</a> to <a href="http://www.luradittbarn.se/archives.html">http://www.luradittbarn.se/archives.html</a><br /><br /><code>Options +FollowSymlinks <br />RewriteEngine On <br />RewriteCond %{REQUEST_URI}\\/%{HTTP_HOST}/<b style="color: black; background-color: rgb(187, 255, 255);">www</b>. ^/+(.+/)?[^.]*[^/]\\(/)([^w][^w][^w][^.].*/(<b style="color: black; background-color: rgb(187, 255, 255);">www</b>\.)¦.*)$ [OR,NC] <br />RewriteCond %{HTTP_HOST}/<b style="color: black; background-color: rgb(187, 255, 255);">www</b>. ^(/)?(/)?([^w][^w][^w][^.].*/(<b style="color: black; background-color: rgb(187, 255, 255);">www</b>\.))$ [NC] <br />RewriteRule ^ http://%4%{HTTP_HOST}%{REQUEST_URI}%2 [L,R=301] <br /><br /><br />The code is originally from Webmasterworlds forum (a very old thread, which can be found <a href="http://www.webmasterworld.com/forum92/5411.htm">here</a>)<br /></code> ]]></description>
            <link>http://bivald.com/lessons-learned/2008/10/adding_www_to_all_urls_for_a_d.html</link>
            <guid>http://bivald.com/lessons-learned/2008/10/adding_www_to_all_urls_for_a_d.html</guid>
            
            
            <pubDate>Thu, 23 Oct 2008 07:22:22 +0100</pubDate>
        </item>
        
        <item>
            <title>Mjukstart: www.luradittbarn.se</title>
            <description><![CDATA[Ett av mina många privata sidoprojekt är <a href="http://www.luradittbarn.se/">www.luradittbarn.se</a> - en snäll sida med ett provocerande namn. Sidan samlar de små, charmiga tips och tricksen som gör livet som förälder lite lättare. <br /><br /><a href="http://www.luradittbarn.se/">http://www.luradittbarn.se</a><br /> ]]></description>
            <link>http://bivald.com/lessons-learned/2008/10/mjukstart_wwwluradittbarnse.html</link>
            <guid>http://bivald.com/lessons-learned/2008/10/mjukstart_wwwluradittbarnse.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">Swedish</category>
            
            
            <pubDate>Thu, 23 Oct 2008 07:16:35 +0100</pubDate>
        </item>
        
        <item>
            <title>Company site update: Happyplace.se</title>
            <description><![CDATA[Sen i maj har jag arbetat på företaget <a href="http://www.happyplace.se/">Happyplace</a> (<a href="http://www.happyplace.se/">www.happyplace.se</a>). Företaget är en nystartad digital kommunikationsbyrå. En reklambyrå, fast på internet. Jag trivs som fisken i vattenet och får en möjlighet att utveckla företaget i en expansiv fas. <br /><br />Igår släppte vi en första version av vår site, kolla in<a href="http://www.happyplace.se/"> http://www.happyplace.se</a><br /> ]]></description>
            <link>http://bivald.com/lessons-learned/2008/10/company_site_update_happyplace.html</link>
            <guid>http://bivald.com/lessons-learned/2008/10/company_site_update_happyplace.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">Swedish</category>
            
            
            <pubDate>Tue, 21 Oct 2008 14:15:43 +0100</pubDate>
        </item>
        
        <item>
            <title>OS X (Leopard) Secure screen sharing, tunneling VNC over SSH and restricting to local ip</title>
            <description><![CDATA[Recently I've purchased a Mac Mini for my home network. The mini is connected directly to the internet (no external firewall connected), since it's a media hub I wanted to:<br /><br />&nbsp;&nbsp; Be able to reach files on the computer from anywhere<br />&nbsp;&nbsp; Be able to view the screen from anywhere<br /><br />First one was easy: SCP. Second was more though, while OS X Leopard has the built in screen sharing (vnc) I didn't feel like opening up the screen sharing to the world. Therefore I started looking for resources how to tunnel VNC over SSH and at the same time restrict screen sharing to local IP (without using external firewall to block)<br /><br />I found what I needed on <a href="http://fotinakis.com/blog/blog/2008/secure-mac-screen-sharing/">http://fotinakis.com/blog/blog/2008/secure-mac-screen-sharing/</a><br /><br />Basically what I did was:<br /><br />&nbsp;&nbsp; 1. Changed port on the sshd and then starting the remote login (ssh from system preferences) - I followed <a href="http://www.macosxhints.com/article.php?story=20050707140439980">http://www.macosxhints.com/article.php?story=20050707140439980</a> I used 22222<br />&nbsp;&nbsp; 2. Deny all incomming connections to port 5900 and 88 from everyone but me using ipfw<br /><br />Then when I want to connect to the shared screen, I open up my SSH tunnel:<br /><br />ssh username@ip_address_or_hostname -L 5901:localhost:5900<br /><br />And connects (Finder -&gt; Go -&gt; Connect to server) to vnc://localhost:5901<br /><br />Note though, you must tunnel it from a port that is not 5900 otherwise you will get a "You can not connect to your own computer"<br /><br />]]></description>
            <link>http://bivald.com/lessons-learned/2008/10/os_x_leopard_secure_screen_sha.html</link>
            <guid>http://bivald.com/lessons-learned/2008/10/os_x_leopard_secure_screen_sha.html</guid>
            
            
            <pubDate>Tue, 14 Oct 2008 18:00:00 +0100</pubDate>
        </item>
        
        <item>
            <title>Headless Mac mini - Mac mini setup without screen</title>
            <description><![CDATA[Recently we bought a mac mini for e-mail server at work. This works great but since I have no external screens I will have problems setting up the headless mini. <br /><br />I will give <a href="http://jamieorc.wordpress.com/2008/03/23/setting-up-a-headless-mac-mini-without-a-monitor/">http://jamieorc.wordpress.com/2008/03/23/setting-up-a-headless-mac-mini-without-a-monitor/</a> a shot, basically:<br /><br /><br /><ol><li>connect a keyboard to the Mini</li><li>start the Mini in FireWire Disk Mode</li><li>connect the MacBook Pro to the Mini with FireWire cable</li><li>restart the MBP using the Mini as the boot disk</li><li>setup the Mini with network access and remote management (Sharing)</li><li>reboot the MBP with its own disk</li><li>disconnect the Mini and reboot</li></ol>From the above mentioned source. <br /><br />(PS: On leopard server? Try <a href="http://www.bos89.nl/1218">http://www.bos89.nl/1218</a>)<br /><br /> ]]></description>
            <link>http://bivald.com/lessons-learned/2008/10/headless_mac_mini_mac_mini_set.html</link>
            <guid>http://bivald.com/lessons-learned/2008/10/headless_mac_mini_mac_mini_set.html</guid>
            
            
            <pubDate>Thu, 09 Oct 2008 19:10:00 +0100</pubDate>
        </item>
        
        <item>
            <title>File upload as email attachments in Django</title>
            <description><![CDATA[Djangosnippets.org has a great tutorial if you need to send (form) file uploads as email attachments in django, <a href="http://www.djangosnippets.org/snippets/1063/">check it out</a> ]]></description>
            <link>http://bivald.com/lessons-learned/2008/10/file_upload_as_email_attachmen.html</link>
            <guid>http://bivald.com/lessons-learned/2008/10/file_upload_as_email_attachmen.html</guid>
            
            
            <pubDate>Sun, 05 Oct 2008 15:12:40 +0100</pubDate>
        </item>
        
        <item>
            <title>Mod_rewrite in httpd.conf</title>
            <description><![CDATA[For various reasons, you might end up needing to put your mod_rewrite syntax in your httpd.conf, usually if you want to use basic rewriting, but with .htaccess support turned of.<br /><br />In that case, you need to be aware that you need to add a / for it to work, like this:<br /><br />From http://drupal.org/node/9418:<br />herefore :<br />
<code>RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]</code><br />
becomes<br />
<code>RewriteRule ^/(.*)$ /index.php?q=$1 [L,QSA]</code><br />
in my case<br /><br /><br /> ]]></description>
            <link>http://bivald.com/lessons-learned/2008/10/mod_rewrite_in_httpdconf.html</link>
            <guid>http://bivald.com/lessons-learned/2008/10/mod_rewrite_in_httpdconf.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">Code snippets</category>
            
            
            <pubDate>Sun, 05 Oct 2008 15:08:10 +0100</pubDate>
        </item>
        
        <item>
            <title>Hyper Island Seminars</title>
            <description><![CDATA[Yesterday I held my first seminar for Hyper Islands Interactive Art Directory students. It consists of four parts. First seminar, which I held yesterday, goes into the basics of HTML/CSS/Javascript and Flash. Also touches their upcoming portfolios and the web world as whole. <br /><br />Second seminar, which I held today, was more in-depth on their upcoming assignments but also gave them a deeper understanding of Javascript and Ajax, "Web 2.0". <br /><br />Third seminar which will be held on Monday focuses on the actual creation of HTML/CSS/Javascript. How do you make a website? <br /><br />Fourth seminar will be held on the 8th of October and is when then will be showcasing their experiences. I will update with more information later on..<br /> ]]></description>
            <link>http://bivald.com/lessons-learned/2008/09/hyper_island_seminars.html</link>
            <guid>http://bivald.com/lessons-learned/2008/09/hyper_island_seminars.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">Articles and seminars</category>
            
            
            <pubDate>Thu, 18 Sep 2008 15:06:53 +0100</pubDate>
        </item>
        
        <item>
            <title>Beta testing Spotify</title>
            <description><![CDATA[Recently I've been asked to beta test Spotify - a new way to serve music online. Basically it's iTunes with almost every song possible. But instead of downloading them, you are streaming them as you listen. <br /><br />The describe themselves as "a new kind of digital music
								service designed to help you enjoy music a little more."<br /><br />More info on <a href="http://www.spotify.com/">spotify.com</a><br /> ]]></description>
            <link>http://bivald.com/lessons-learned/2008/09/beta_testing_spotify.html</link>
            <guid>http://bivald.com/lessons-learned/2008/09/beta_testing_spotify.html</guid>
            
            
            <pubDate>Wed, 10 Sep 2008 18:12:46 +0100</pubDate>
        </item>
        
        <item>
            <title>Javascript Slider with jQuery</title>
            <description><![CDATA[Buck from www.keepthewebweird.com has a great example of a javascript slider. Really smooth and intuitive. <br /><br /><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://bivald.com/lessons-learned/Screenshot%20%20424.png"><img alt="Screenshot  424.png" src="http://bivald.com/lessons-learned/Screenshot%20%20424-thumb-350x68.png" class="mt-image-left" style="margin: 0pt 20px 20px 0pt; float: left;" height="68" width="350" /></a></span><br /><br /><br /><br /><br /><br /><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://bivald.com/lessons-learned/slider.jpg"><img alt="slider.jpg" src="http://bivald.com/lessons-learned/slider-thumb-315x102.jpg" class="mt-image-left" style="margin: 0pt 20px 20px 0pt; float: left;" height="102" width="315" /></a></span><br /><br /><br /><br /><br /><br /><br /><br /><a href="http://www.keepthewebweird.com/demo/slider/">View demo</a><br /><a href="http://www.keepthewebweird.com/creating-a-nice-slider-with-jquery-ui/">Article</a><br /><br /> <div><br /></div><div><br /></div>]]></description>
            <link>http://bivald.com/lessons-learned/2008/09/javascript_slider_with_jquery.html</link>
            <guid>http://bivald.com/lessons-learned/2008/09/javascript_slider_with_jquery.html</guid>
            
            
            <pubDate>Fri, 05 Sep 2008 10:15:21 +0100</pubDate>
        </item>
        
        <item>
            <title>Google Chrome speed test: Seriously faster</title>
            <description><![CDATA[<b>Google Chrome</b><br />Cnet offers up some <a href="http://news.cnet.com/8301-17939_109-10030888-2.html?part=rss&amp;tag=feed&amp;subj=Webware">Google Chrome benchmarks</a>, I will let the image below speak for itself:<br /><br /><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://bivald.com/lessons-learned/chrome_subbenchmark_png.html" onclick="window.open('http://bivald.com/lessons-learned/chrome_subbenchmark_png.html','popup','width=587,height=454,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://bivald.com/lessons-learned/chrome_subbenchmark_png-thumb-587x454.png" alt="chrome_subbenchmark_png.PNG" class="mt-image-left" style="margin: 0pt 20px 20px 0pt; float: left;" height="454" width="587" /></a></span><br /> <div><br /></div>]]></description>
            <link>http://bivald.com/lessons-learned/2008/09/google_chrome_speed_test_serio.html</link>
            <guid>http://bivald.com/lessons-learned/2008/09/google_chrome_speed_test_serio.html</guid>
            
            
            <pubDate>Fri, 05 Sep 2008 09:14:50 +0100</pubDate>
        </item>
        
        <item>
            <title>Googles joins the browser war: Google Chrome</title>
            <description><![CDATA[From <a href="http://www.google.com/chrome">http://www.google.com/chrome</a>:<br /><br />"Google Chrome is a browser that combines a minimal design with
sophisticated technology to make the web faster, safer, and easier."<br /><br /><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://bivald.com/lessons-learned/dlpage_lg.html" onclick="window.open('http://bivald.com/lessons-learned/dlpage_lg.html','popup','width=440,height=359,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://bivald.com/lessons-learned/dlpage_lg-thumb-440x359.jpg" alt="dlpage_lg.jpg" class="mt-image-left" style="margin: 0pt 20px 20px 0pt; float: left;" height="359" width="440" /></a></span><br /> <div><br /></div>]]></description>
            <link>http://bivald.com/lessons-learned/2008/09/googles_joins_the_browser_war.html</link>
            <guid>http://bivald.com/lessons-learned/2008/09/googles_joins_the_browser_war.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">News and updates</category>
            
            
            <pubDate>Wed, 03 Sep 2008 09:00:47 +0100</pubDate>
        </item>
        
    </channel>
</rss>
