<?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>Swedish fika &#187; Simon</title>
	<atom:link href="http://www.swedishfika.com/author/simon/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.swedishfika.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Fri, 25 Nov 2011 21:56:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Is Newsletter Unsubscription Success Emails Really Necessary?</title>
		<link>http://www.swedishfika.com/2011/11/25/is-newsletter-unsubscription-success-emails-really-necessary/</link>
		<comments>http://www.swedishfika.com/2011/11/25/is-newsletter-unsubscription-success-emails-really-necessary/#comments</comments>
		<pubDate>Fri, 25 Nov 2011 21:50:19 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://www.swedishfika.com/?p=1906</guid>
		<description><![CDATA[Every site that has a newsletter signup should provide an easy way to unsubscribe from the subscription list that correspond to that newsletter. A nice way is just to add a link at the bottom of the newsletter labeled &#8220;Unsubscribe&#8221;. But what do we think should happen when you click on that link? 

I think [...]]]></description>
			<content:encoded><![CDATA[<p>Every site that has a newsletter signup should provide an easy way to unsubscribe from the subscription list that correspond to that newsletter. A nice way is just to add a link at the bottom of the newsletter labeled &#8220;Unsubscribe&#8221;. But what do we think should happen when you click on that link? </p>
<p><span id="more-1906"></span><br />
I think that that the link should open the unsubscription web page in my browser where I must confirm my unsubscription. (I could have clicked the link by mistake so it&#8217;s nice to provide a confirmation button) When I confirm my unsubscription all I want is just a message that says whether or not I successfully got unsubscribed. What I see in a lot of newsletter-systems that you unsubscribe from is that you get a unsubscription success email. Yes, another email you don&#8217;t want. I wanted to opt out from the newsletter subscription because I didn&#8217;t want to get any more emails. </p>
<p>If you have any other thoughts on this topic, please add a comment!</p>
<p>/Simon</p>
]]></content:encoded>
			<wfw:commentRss>http://www.swedishfika.com/2011/11/25/is-newsletter-unsubscription-success-emails-really-necessary/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>The making of a Color Memory Game</title>
		<link>http://www.swedishfika.com/2011/05/21/the-making-of-a-color-memory-game/</link>
		<comments>http://www.swedishfika.com/2011/05/21/the-making-of-a-color-memory-game/#comments</comments>
		<pubDate>Sat, 21 May 2011 12:53:18 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://www.swedishfika.com/?p=1860</guid>
		<description><![CDATA[A while ago I made a javascript-based color memory game. I used plain markup, css and javascript for this and I used the Prototype JavaScript Framework instead of jQuery. You can discuss the pros and cons between Prototype and jQuery for hours (if you want to) but this is not something I&#8217;ll cover in this [...]]]></description>
			<content:encoded><![CDATA[<p>A while ago I made a javascript-based color memory game. I used plain markup, css and javascript for this and I used the <a href="http://www.prototypejs.org/">Prototype JavaScript Framework</a> instead of <a href="http://jquery.com/">jQuery</a>. You can discuss the pros and cons between Prototype and jQuery for hours (if you want to) but this is not something I&#8217;ll cover in this post, instead I&#8217;ll go through the core functions of the game. </p>
<p>First off, take a <a href="http://www.simonkjellberg.com/colormemory/">look at the demo here</a>. In writing moment the fastest known player was done in less than 25 secs! </p>
<p><span id="more-1860"></span><br />
This is how I&#8217;ve set up the files for the game: </p>
<p><img src="/wp-content/uploads/colormemory-setup.png" alt="" /></p>
<p>I&#8217;ll actually not write any code in this post, I&#8217;ll just simply go through each function in the javascript (that is the core of the game) and talk about what each function does. I&#8217;ve compressed <a href="/wp-content/uploads/colormemory.tar.gz">the files of the game</a> so if you want, you can download them and take a look at the code in your editor when you continue your reading below. </p>
<p>The .html-file is quite straightforward. It has a container-div where the javascript put the actual gameboard, it initiates the javascript and some other stuff. I don&#8217;t think there&#8217;s any need to go into this file in detail so I&#8217;ll just leave it there. The CSS is, as always, just used for the presentation. The image is used for the backside-cover of the cards. The javascript file named memory.js is the interesting part. So let&#8217;s take a look at this file and go through each function step by step. </p>
<h3>initialize()</h3>
<p>The initialize function has a few default options that can be dynamically changed from wherever you initiate an object of this class. This approach by using the Object.extend-functionality on the default-options is, in my opinion, very powerful since it adds a lot of flexibility to your code. </p>
<p>I said I wouldn&#8217;t post any code in this post but there might be a point to show how you can change these default options. You do that where you create an object of the memory class (in this case in index.html) and this example below shows how you could change the rows and cols without altering the javascript-file itself:  </p>
<p><code>var m = new Memory({<br />
  rows: 3,<br />
  cols: 4<br />
});</code></p>
<p>So, let&#8217;s get back to the initialize function, as you can see, we first set the options for this class. As you see above, the code is dynamic so you can change how many rows and cols you want on your gameboard. Please note that there&#8217;s no functionality that checks whether the total amount of cards is an even number or not so if you change these params, please have in mind that the cols multiplied by the rows should sum up to an even number. </p>
<p>After that we initiate some of the other default properties of this class and then we call the initCards-function. </p>
<h3>initCards()</h3>
<p>In the initCards-function we create the cards for the gameboard. We use some loops to make this happen and we check if a color already has been used. It also shuffles the array that is containing the cards. When this function has done what it&#8217;s supposed to the code then goes on to the createBoard-function. </p>
<h3>createBoard()</h3>
<p>Here, the actual gameboard is created and as it creates each card it also adds an onclick eventlistener to each card. When a card is clicked the flipCard-function is triggered. </p>
<h3>flipCard()</h3>
<p>When the player clicks on a card, this function starts to run and it starts the timer (if it hasn&#8217;t already been started) and then it flips the card you clicked and check whether the player has found a pair or not. This is done with the help of the function named getCardNumberFromId(). </p>
<p>We&#8217;ll that&#8217;s it, I&#8217;ll not go into more details so if you have any questions or feedback, please post a comment! I&#8217;d really like some feedback on the code and if you guys would have done anything differently. </p>
<p>/Simon</p>
]]></content:encoded>
			<wfw:commentRss>http://www.swedishfika.com/2011/05/21/the-making-of-a-color-memory-game/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Publishing in Coda Suddenly Stopped Working</title>
		<link>http://www.swedishfika.com/2011/02/26/publishing-in-coda-suddenly-stopped-working/</link>
		<comments>http://www.swedishfika.com/2011/02/26/publishing-in-coda-suddenly-stopped-working/#comments</comments>
		<pubDate>Sat, 26 Feb 2011 10:23:02 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://www.swedishfika.com/?p=1851</guid>
		<description><![CDATA[The other day the publishing function in Coda just stopped working. This might have had something to do with me (finally) upgrading to Snow Leopard. The publishing function in Coda is a very sweet tool that keeps track on your changes that you make in your local copy of a site and lets you publish [...]]]></description>
			<content:encoded><![CDATA[<p>The other day the publishing function in Coda just stopped working. This might have had something to do with me (finally) upgrading to Snow Leopard. The publishing function in Coda is a very sweet tool that keeps track on your changes that you make in your local copy of a site and lets you publish the changes from your local copy to your live site and I use it every day in my work. I already had the latest version of Coda installed so I tried to reinstall it but that didn&#8217;t make any difference. I then started searching the web for a solution and found a few discussion threads where people had the same problem. But unfortunately the solutions there did not help me. </p>
<p><span id="more-1851"></span><br />
I finally solved the problem by downloading version 1.6.12 (instead of the in writing moment latest version 1.7). The Coda-people keeps a museum of older versions of Coda if you want to download them which is a great idea (why don&#8217;t everyone do this?), you can find it here: <a href="http://www.panic.com/museum/coda/older/">http://www.panic.com/museum/coda/older/</a></p>
<p>I really don&#8217;t know why it stopped working for me. I really like Coda as a developing tool and I know that this works for others in the latest version. Maybe I just had bad luck when upgrading to Snow Leopard I guess? Just thought that this information could be useful if this happens to someone else. </p>
<p>Cheers! </p>
<p>/Simon</p>
]]></content:encoded>
			<wfw:commentRss>http://www.swedishfika.com/2011/02/26/publishing-in-coda-suddenly-stopped-working/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Browser Sketch Pad</title>
		<link>http://www.swedishfika.com/2011/02/18/browser-sketch-pad/</link>
		<comments>http://www.swedishfika.com/2011/02/18/browser-sketch-pad/#comments</comments>
		<pubDate>Fri, 18 Feb 2011 20:01:59 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Resources]]></category>

		<guid isPermaLink="false">http://www.swedishfika.com/?p=1831</guid>
		<description><![CDATA[A friend of mine posted a link on Facebook a while ago. The link was to a site where they sell Browser Sketch Pads. 

One of my colleagues had already found out about them and I tested one at work a couple of days ago and all I can say is that they are helpful [...]]]></description>
			<content:encoded><![CDATA[<p>A friend of mine posted a link on Facebook a while ago. The link was to a site where they sell <a href="http://www.uistencils.com/products/browser-sketch-pad">Browser Sketch Pads</a>. </p>
<p><span id="more-1831"></span></p>
<p>One of my colleagues had already found out about them and I tested one at work a couple of days ago and all I can say is that they are helpful and quite fun. Simply said, a great tool for brainstorming and sketching!</p>
<p>/Simon</p>
]]></content:encoded>
			<wfw:commentRss>http://www.swedishfika.com/2011/02/18/browser-sketch-pad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>One Evening at Geek Meet</title>
		<link>http://www.swedishfika.com/2011/02/17/one-evening-at-geek-meet/</link>
		<comments>http://www.swedishfika.com/2011/02/17/one-evening-at-geek-meet/#comments</comments>
		<pubDate>Thu, 17 Feb 2011 22:25:41 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Events]]></category>

		<guid isPermaLink="false">http://www.swedishfika.com/?p=1825</guid>
		<description><![CDATA[Just got back from another great Geek Meet. Jake Archibald talked about optimizing javascript where it hurts and about writing reusable javascript. 

Jakes presentation was one of the best I&#8217;ve ever been to. His presentation was very sharp, filled with humour and great examples. 
Many thanks to bwin that sponsored the event and to all [...]]]></description>
			<content:encoded><![CDATA[<p>Just got back from another great <a href="http://robertnyman.com/2011/01/12/geek-meet-february-2011-with-jake-archibald/">Geek Meet</a>. <a href="http://jakearchibald.com/">Jake Archibald</a> talked about optimizing javascript where it hurts and about writing reusable javascript. </p>
<p><span id="more-1825"></span><br />
Jakes presentation was one of the best I&#8217;ve ever been to. His presentation was very sharp, filled with humour and great examples. </p>
<p>Many thanks to <a href="http://www.bwingames.se/">bwin</a> that sponsored the event and to all the interesting people that where there and made it all be what it was. </p>
<p>On <a href="http://jakearchibald.com/">Jake&#8217;s website</a> you can find more info about a talk he held at Full frontal and you can check out his slides. </p>
<p>/Simon</p>
]]></content:encoded>
			<wfw:commentRss>http://www.swedishfika.com/2011/02/17/one-evening-at-geek-meet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Mobile Alpha 1 Released</title>
		<link>http://www.swedishfika.com/2010/10/17/jquery-mobile-alpha-1-released/</link>
		<comments>http://www.swedishfika.com/2010/10/17/jquery-mobile-alpha-1-released/#comments</comments>
		<pubDate>Sun, 17 Oct 2010 19:53:08 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://www.swedishfika.com/?p=1799</guid>
		<description><![CDATA[A friend of mine told me to take a look at jQuery Mobile Alpha 1 that was released yesterday (Oct 16th) and I must say that it looks promising. So what is it? &#8220;jQuery Mobile is a user interface framework, built on top of jQuery, designed to simplify the process of building applications that target [...]]]></description>
			<content:encoded><![CDATA[<p>A friend of mine told me to take a look at jQuery Mobile Alpha 1 that was released yesterday (Oct 16th) and I must say that it looks promising. So what is it? &#8220;jQuery Mobile is a user interface framework, built on top of jQuery, designed to simplify the process of building applications that target mobile devices.&#8221; </p>
<p><span id="more-1799"></span>This is not an in-depth article and, if you want, you can read more about it on jQuery Mobile&#8217;s official site that you find here <a href="http://jquerymobile.com/2010/10/jquery-mobile-alpha-1-released/">http://jquerymobile.com/2010/10/jquery-mobile-alpha-1-released/ </a></p>
<p>If you want to see the demos, take a look here: <a href="http://jquerymobile.com/demos/1.0a1/">http://jquerymobile.com/demos/1.0a1/</a> </p>
<p>/Simon</p>
]]></content:encoded>
			<wfw:commentRss>http://www.swedishfika.com/2010/10/17/jquery-mobile-alpha-1-released/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>What what? Haven&#8217;t read CSS Mastery?</title>
		<link>http://www.swedishfika.com/2010/07/17/what-what-havent-read-css-mastery/</link>
		<comments>http://www.swedishfika.com/2010/07/17/what-what-havent-read-css-mastery/#comments</comments>
		<pubDate>Sat, 17 Jul 2010 17:18:23 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Reviews]]></category>

		<guid isPermaLink="false">http://www.swedishfika.com/?p=1620</guid>
		<description><![CDATA[If you haven&#8217;t read the book CSS Mastery I really think you should. In my opinion it&#8217;s probably one of the best books out there that covers CSS. If you&#8217;re new at CSS this book will probably teach you a lot of things and if you&#8217;ve been writing CSS for years, you can probably learn [...]]]></description>
			<content:encoded><![CDATA[<p>If you haven&#8217;t read the book CSS Mastery I really think you should. In my opinion it&#8217;s probably one of the best books out there that covers CSS. If you&#8217;re new at CSS this book will probably teach you a lot of things and if you&#8217;ve been writing CSS for years, you can probably learn something new from it. </p>
<p><span id="more-1620"></span>So this is my recommendation if you want a book to read this summer! And yes, there&#8217;s a &#8217;second edition&#8217; of the book and that&#8217;s the one you should go for. </p>
<p>Have a really nice summer everyone!</p>
<p>Best regards,<br />
Simon</p>
]]></content:encoded>
			<wfw:commentRss>http://www.swedishfika.com/2010/07/17/what-what-havent-read-css-mastery/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Thoughts on Magento Mobile</title>
		<link>http://www.swedishfika.com/2010/06/05/thoughts-on-magento-mobile/</link>
		<comments>http://www.swedishfika.com/2010/06/05/thoughts-on-magento-mobile/#comments</comments>
		<pubDate>Sat, 05 Jun 2010 12:45:22 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://www.swedishfika.com/?p=1530</guid>
		<description><![CDATA[Recently, the Magento team announced the launch of Magento Mobile. It&#8217;s perhaps not so cool to use the word cool but Magento Mobile is without doubt, one of the coolest new features in the world of e-commerce!
This short quote from the guys and girls over at Varien pretty much sums it up:

&#8220;With Magento mobile, you [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, the Magento team announced the launch of Magento Mobile. It&#8217;s perhaps not so cool to use the word cool but Magento Mobile is without doubt, one of the coolest new features in the world of e-commerce!</p>
<p>This short quote from the guys and girls over at Varien pretty much sums it up:</p>
<p><span id="more-1530"></span><br />
<em>&#8220;With Magento mobile, you can easily create branded, native storefront applications that are deeply integrated with Magento’s market-leading eCommerce platform.&#8221; </em></p>
<p>There&#8217;s no reason for me to write more about it, go check it out, watch a demo and read more about it <a href="http://www.magentocommerce.com/blog/comments/announcing-the-launch-of-magento-mobile/">here</a>. </p>
<p>// Simon</p>
]]></content:encoded>
			<wfw:commentRss>http://www.swedishfika.com/2010/06/05/thoughts-on-magento-mobile/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What Role Will Domain Names Play in the Future of the Web?</title>
		<link>http://www.swedishfika.com/2010/05/15/what-role-will-domain-names-play-in-the-future-of-the-web/</link>
		<comments>http://www.swedishfika.com/2010/05/15/what-role-will-domain-names-play-in-the-future-of-the-web/#comments</comments>
		<pubDate>Sat, 15 May 2010 12:45:20 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://www.swedishfika.com/?p=1464</guid>
		<description><![CDATA[During the last couple of years there&#8217;s been a gold rush for domain names. You know what I&#8217;m talking about. Most often you need a domain name and you know exactly what domain name you&#8217;d really want but no-no, the name is already registered and you have to settle with a name that don&#8217;t feel [...]]]></description>
			<content:encoded><![CDATA[<p>During the last couple of years there&#8217;s been a gold rush for domain names. You know what I&#8217;m talking about. Most often you need a domain name and you know exactly what domain name you&#8217;d really want but no-no, the name is already registered and you have to settle with a name that don&#8217;t feel that great or not even is close to your initial idea. Bummer.</p>
<p><span id="more-1464"></span><br />
You&#8217;ve probably ran in to the companies out there who do nothing except register domain names and sell them to a much higher price than what they bought them for. In the media you can read about global corporations that spend millions of dollars on domain names. You probably regret that you didn&#8217;t foresee this hype for ten-fifteen years ago which would have made you a millionaire if you&#8217;d have played your cards well back then.</p>
<p>I guess that theese names actually can be worth all that money today but what I wonder is if they will be worth it tomorrow? What we experience more and more on the web is that the content on your site is what&#8217;s important, not the address to your site. </p>
<p>According to Wikipedia, the actual purpose of a domain name is to &#8220;&#8230;provide easily recognizable and memorizable names to numerically addressed Internet resources&#8221;. That&#8217;s true, it is much easier to remember a domain than an IP-adress. According to <a href="http://www.domaintools.com/internet-statistics/">http://www.domaintools.com/internet-statistics/</a> you can see that there&#8217;s over 100 million different registered domain names today (I haven&#8217;t double-checked the numbers, we all know there&#8217;s many domain names registered and that&#8217;s enough to prove my point (= ). That amount is only including the major top-level domains. No wonder it&#8217;s hard to find an available domain name and many sites gets a domain name that don&#8217;t really reflect what their company name is or not even that they do. </p>
<p>Because of the increasing amount of different domain names and the massive increase of content on the web no one really remember the domain names anymore (maybe except from big corp sites such as facebook, youtube and so on). Many just use a search engine to find what they&#8217;re looking for and I see that more an more people actually google for sites they know the address to. </p>
<p>Domain names are important to search engines today but if the web is going where we think it&#8217;s going we can really wonder if domain names will be as important in the future as they are today. Will they even still be used in twenty years from now? </p>
<p>/Simon</p>
]]></content:encoded>
			<wfw:commentRss>http://www.swedishfika.com/2010/05/15/what-role-will-domain-names-play-in-the-future-of-the-web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The European Web Browser Choice</title>
		<link>http://www.swedishfika.com/2010/03/03/the-european-web-browser-choice/</link>
		<comments>http://www.swedishfika.com/2010/03/03/the-european-web-browser-choice/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 20:55:22 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://swedishfika.com/?p=1156</guid>
		<description><![CDATA[Many of you have probably already heard about the European Web Browser Choice that&#8217;s going on in, yes you guessed right, Europe right now. 
The Web Browser Choice is according to the European Commission a deal between The European Commission and Microsoft. The European Commission believes that Microsoft has taken advantage of their predominant position [...]]]></description>
			<content:encoded><![CDATA[<p>Many of you have probably already heard about the European Web Browser Choice that&#8217;s going on in, yes you guessed right, Europe right now. </p>
<p>The Web Browser Choice is according to the European Commission a deal between The European Commission and Microsoft. The European Commission believes that Microsoft has taken advantage of their predominant position on the European market by providing Internet Explorer as the standard browser on Windows. </p>
<p><span id="more-1156"></span><br />
Therefore, Microsoft users that use XP, Vista and Windows 7 and has choosen Internet Explorer as their standard web browser will  after a windows-update, be provided with a browser choice screen where they can decide that they want to use another browser than Internet Explorer if they want to. </p>
<p>As a web developer I really like this decision, since it can get us further away from IE6 and make unaware Internet users more aware of different browsers. I&#8217;m not sure how much effect this will have, I guess most users will wonder, what is this? Do I dare to click on this or will my computer explode if I do so?! I know a few persons that will have this reaction&#8230;</p>
<p>Event though I like it I don&#8217;t really like the idea that the European Commission can tell Microsoft they have to do this, even though they have a point. It&#8217;s not that you actually can&#8217;t use another browser than Explorer on Windows. There&#8217;s nothing that&#8217;s stopping you to install whatever browser you&#8217;d like on your windows machine. Why shouldn&#8217;t Microsoft be allowed to ship Internet Explorer with their OS? Why don&#8217;t the European Commission tell Apple to also provide this web browser choice window-thing? </p>
<p>Maybe we&#8217;re just not there yet or what do you think?</p>
<p>/Simon</p>
]]></content:encoded>
			<wfw:commentRss>http://www.swedishfika.com/2010/03/03/the-european-web-browser-choice/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

