Markus Hedlunds Bloghttp://www.markushedlund.se/blogenRead an' weepDesign miss #1 - Limiting a list in PHP/Javascript/Ruby/other<div><img class="topImage" alt="Basecamp design miss" src="http://www.markushedlund.se/files/file/view/68" /></div> <p>In this series I will whine about other's design mistakes and bad interface choices, while boasting about my own and <a href="http://www.mimmin.com" target="_blank">mimmin</a>'s superior solutions! And vice versa :-)</p> <p>This first example is from the interface guru's at <a href="http://37signals.com/" target="_blank">37signals</a>, and their product <a href="http://basecamphq.com/" target="_blank">Basecamp</a>. But it's quite the common problem actually;&nbsp;having a list that is capped, with a &quot;show all&quot;-button that only adds one more item.</p> <p>In the above example, the list shows 5 elements of overdue milestones. Then there's a button telling you there are 6 elements, and you think to yourself:&nbsp;&quot;with that button there are 6 elements on the screen, so why not skip the button and show me that last item?&quot;.</p> <p>Below is the pseudocode for accomplishing this.</p> <pre class="sh_javascript"> MAX_ITEMS = 5 if (number of items &lt; MAX_ITEMS) output_length = number of items else if (number of items == MAX_ITEMS) output_length = MAX_ITEMS else output_length = MAX_ITEMS - 1 for (i = 0; i &lt; output_length; i++) output items[i] if (number of items &gt; MAX_ITEMS) output show all message </pre> <p>Thanks for your time, hope this can help someone!&nbsp;Share your thoughts and experience &rarr;</p>http://www.markushedlund.se/blog/design-miss-1-limiting-a-list-in-php-javascript-ruby-otherThu, 29 Oct 2009 03:33:19 +0100Css: Fix floated divs that overflow the wrapping<p>It's a common problem. The floated sidebar (or whatever you've floated this time ;-) get's to much content, and suddenly it overflows the wrapping div. The code might look like something below.</p> <pre class="sh_html"> &lt;div id=&quot;wrapper&quot;&gt; &lt;div id=&quot;sidebar&quot;&gt;&lt;/div&gt; &lt;div id=&quot;content&quot;&gt;&lt;/div&gt; &lt;/div&gt; <br type="_moz" /></pre> <p>Now if the sidebar is floated, and has longer content than <span class="code">#content</span>, it will expand outside <span class="code">#wrapper</span>.&nbsp;This problem is often solved by appending an extra element inside <span class="code">#wrapper</span>, and apply CSS&nbsp;<span class="code">clear:both</span> to it.</p> <p>But this extra HTML&nbsp;doesn't look so nice. A friend of mine pointed me to&nbsp;<a href="http://www.sitepoint.com/blogs/2005/02/26/simple-clearing-of-floats/" target="_blank">a blog entry</a>&nbsp;which had some different takes on the problem. One of these solutions was so elegant, I just had to write this notice about it!</p> <p>The solution is to add the CSS attribute <span class="code">overflow</span> and set it to <span class="code">auto</span>. If you experience problems with scrollbars, try <span class="code">hidden</span> instead. Note that this is yet to be tested by me, but the example seemed to work in the major browsers.</p>http://www.markushedlund.se/blog/css-fix-floated-divs-that-overflows-the-wrappingSat, 25 Jul 2009 16:14:25 +0200Php: Get colors from an image<p>After having been fascinated lately by what&nbsp;<a href="http://images.google.com/images?q=obama&amp;gbv=2sa=G&amp;imgtype=face&amp;as_st=y" target="_blank">Google kan achieve with images</a>, my inspiration has yet been awakened! For a long time I've enjoyed experimenting programmatically&nbsp;with images, to see what's possible. Facial recognition is one of the areas that fascinate me. But that's for another day.</p> <p>What I am about to show you is just an early test, to see if this actual can work. It's a PHP script that selects some colors from an image. These colors should represent the coloring of the image. This can have some more or less practical applications, though I am not going to lock you mind on my ideas.</p> <p>As you will see, this is a rather unpolished lab project, and no time has been invested on designing the page. My goal is to publish this as an Open Source project later. For now you can try it at&nbsp;<a href="http://www.labs.mimmin.com/php_colors/" target="_blank">labs.mimmin.com/php_colors</a>!</p>http://www.markushedlund.se/blog/php-get-colors-from-an-imageTue, 23 Jun 2009 10:30:20 +0200Rock in Park 2009<div><img class="topImage" alt="Rock in Park 2009" src="/files/file/view/67" /></div> <p>With a band line-up of bands such as Korn, The Killers, Slipknot, Placebo und so weiter this is one of this years hottest music festival. And I'm going! Now, their site is another story. For starters it's mostly in german, and the band schedule is hard to get an overview of.</p> <p>That's why i decided I needed to make an improved schedule, so I wouldn't miss any shows. The bands are ordered in the order they are playing, and you can highlight the bands you like. It's also printable! Check it out at&nbsp;<a href="http://www.labs.mimmin.com/rock-im-park/" target="_blank">labs.mimmin.com/rock-im-park</a>!</p>http://www.markushedlund.se/blog/rock-in-park-2009Sun, 31 May 2009 14:57:16 +0200jQuery Inline Edit<p>And then I released my first jQuery plugin. What jQuery is? Oh, it's just the greatest&nbsp;<a href="http://en.wikipedia.org/wiki/Comparison_of_JavaScript_frameworks" target="_blank">Javascript framework</a>&nbsp;evah, it makes Javascript programming so much more fun!</p><p>The plugin, called Inline Edit, makes it a lot quicker to implement edit and remove functions. It can turn any dynamic data list into a click-and-edit list.</p><p>Try and download it at&nbsp;<a href="http://www.labs.mimmin.com/inlineedit/" target="_blank">labs.mimmin.com/inlineedit</a>!</p><p>If you have comments, missing features or bug reports: please add a comment!</p>http://www.markushedlund.se/blog/jquery-inline-editSat, 23 May 2009 14:33:54 +0200Dev's CMS - an open-source and easy-to-use CMS<div><img src="/files/file/view/66" alt="Dev's CMS" class="topImage" /></div> <p>&nbsp;Before my time at&nbsp;<a href="http://www.mimmin.com" target="_blank">mimmin</a>, I started developing&nbsp;<a href="http://www.labs.mimmin.com/devscms/" target="_blank">a simple CMS</a>&nbsp;to aid my creating of standard company pages. There are many many (many) content management systems out there, but as every other programmer I started making my own. The main reason for this was, that I didn't find any system that was unobtrusive enough, and for developers.</p> <p>Some time ago I had to dust of this system.&nbsp;<a href="http://www.ldesignandgraphics.se/" target="_blank">A friend of mine</a>&nbsp;wanted some help: to make a design into an actual website. My code was quite crappy, so I rewrote it and added the gallery module. Today this site floats on Dev's CMS at&nbsp;<a href="http://www.bibelskolasthlm.se" target="_blank">www.bibelskolasthlm.se</a>.</p> <p>You can&nbsp;<a href="http://www.labs.mimmin.com/devscms/" target="_blank">download Dev's CMS</a>&nbsp;or try it at&nbsp;<a href="http://www.labs.mimmin.com/devscms/" target="_blank">www.labs.mimmin.com/devscms/</a>. As always, if you have any questions or comments, don't hesitate&nbsp;&rarr;</p>http://www.markushedlund.se/blog/devs-cms-an-open-source-and-easy-to-use-cmsSat, 09 May 2009 19:42:15 +0200Convert dates to elapsed time with Javascript<p>At&nbsp;<a href="http://www.mimmin.com" target="_blank">Mimmin</a>&nbsp;we know that every tiny detail can matter, and we always strive to simplify things and remove the unnecessary. This might be things like graying out certain parts of text to make others more evident.</p> <p><a href="blog/new-year-memories">A while ago</a>&nbsp;I made a Javascript library that could convert absolute time to relative. This proved to be useful in many projects. When I implemented it in&nbsp;<a href="http://www.dorunner.se" target="_blank">one of our latest projects</a>&nbsp;I had to make some improvements. These changes made it to a patch, and now the&nbsp;<a href="http://www.labs.mimmin.com/countdown/" target="_blank">official build is updated to version 1.1</a>. Because of this I thought it would be good to make a small tutorial and show one way of using library.</p> <h3>Enhancing the readability of a log</h3> <p>One of the most useful things with this library is to convert absolute times (like 2009-01-10) into relative ones (like 6 weeks ago). I will in an example show how to convert a log with dates into one with relative dates.</p> <div><img alt="Log example" src="/files/file/view/65" /></div> <p>Above you can see the expected result of this tutorial. The original dates will be converted to time elapsed. I will be using the excellent Javascript framework&nbsp;<a href="http://www.jquery.com" target="_blank">jQuery</a>, but this is not necessary since&nbsp;<a href="http://www.labs.mimmin.com/countdown/" target="_blank">the Countdown Library</a>&nbsp;is framework independent.&nbsp;</p> <p>The markup for the log list is a follows.</p> <pre class="sh_html"> &lt;ul id=&quot;log&quot;><br /> &lt;li class=&quot;added&quot;><br /> &lt;div>An item has been added&lt;/div><br /> &lt;div class=&quot;date&quot;>2009-01-19 13:58&lt;/div><br /> &lt;/li> &lt;li class=&quot;removed&quot;><br /> &lt;div>An item has been removed&lt;/div><br /> &lt;div class=&quot;date&quot;>2009-01-19 17:15&lt;/div><br /> &lt;/li> &lt;/ul></pre> <p>We now want to, using Javascript, step through every div element with class &quot;date&quot; in the ul element &quot;log&quot;. We will then replace the date value with a &quot;time passed&quot;&nbsp;value. But for those users that are looking for the absolute date, we are going to add it to the &quot;title&quot;&nbsp;attribute of the div. Code as follows.</p> <pre class="sh_javascript"> $('#log div.date').each(function(){<br /> var date = $(this).text();<br /> $(this). html( remaining.getString(-remaining.getSeconds(date), null, true) + ' ago' ).attr('title', date);<br />}); </pre> <p>First we save the date value. Then we replace it with the return value from <span class="code">remaining.getString</span>. The return value from <span class="code">remaining.getSeconds(date)</span> is inverted because the function calculates time remaining, and we want the time that has passed.</p> <p>The second parameter to <span class="code">remaining.getString</span> is an internationalization (i18n) object, which I didn't alter since the output should be in english.</p> <p>The third parameter is a flag that controls if the output should be exact, or if it is enough with only the largest unit. Example output is &quot;2 hours, 1 minute, 5 seconds&quot; versus &quot;2 hours&quot;.</p> <p>At last we add the saved date to the attribute &quot;title&quot; of the div element. This is all that is needed folks! But don't forget to include the Countdown Library using the snippet below.</p> <pre class="sh_html"> &lt;script type=&quot;text/javascript&quot; src=&quot;http://www.labs.mimmin.com/countdown/remaining.js&quot;>&lt;/script></pre><p>If you have any questions, please leave a comment&nbsp;&rarr;</p>http://www.markushedlund.se/blog/convert-dates-to-elapsed-time-with-javascriptTue, 05 May 2009 21:28:05 +0200Slipstreaming SL.se with Greasemonkey<p>Har du n&aring;gonsin tyckt att det &auml;r lite f&ouml;r b&ouml;kigt, med f&ouml;r m&aring;nga klick, att s&ouml;ka en resa p&aring;&nbsp;<a href="http://www.sl.se" target="_blank">Storstockholms Lokaltrafiks hemsida</a>? Jag tycker det i alla fall, och har nu gjort n&aring;got &aring;t det!</p><p>Till&nbsp;<a href="http://sv.wikipedia.org/wiki/Webbl%C3%A4sare" target="_blank">webbl&auml;saren</a>&nbsp;<a href="http://sv-se.www.mozilla.com/sv-SE/" target="_blank">Firefox</a>&nbsp;kan man installera&nbsp;<a href="https://addons.mozilla.org/sv-SE/firefox/" target="_blank">till&auml;gga</a>&nbsp;f&ouml;r att ut&ouml;ka dess funktionalitet. Ett av dessa till&auml;gg &auml;r&nbsp;<a href="https://addons.mozilla.org/sv-SE/firefox/addon/748" target="_blank">Greasemonkey</a>, som g&ouml;r det m&ouml;jligt f&ouml;r dig som anv&auml;ndare att f&ouml;rb&auml;ttra andras webbsidor med hj&auml;lp av skriptspr&aring;ket Javascript. S&aring; om du saknar funktioner eller tycker att n&aring;got borde kunna g&ouml;ras b&auml;ttre, finns det m&ouml;jligheter f&ouml;r det.</p><p>Mitt Greasemonkey-skript har dessa funktioner</p><ul><li>G&ouml;r &quot;Jag vill senast vara framme&quot; till standard i rullgardinsmenyn.</li><li>Om klockan &auml;r efter 22 v&auml;ljs dagen efter (t.ex. om klockan &auml;r 22:05 p&aring; en l&ouml;rdag s&aring; v&auml;ljs &quot;i morgon s&ouml;ndag&quot;)</li><li>G&ouml;r det snabbare att &auml;ndra i rullgardinsmenyerna.</li></ul><p>Om du har n&aring;gra fr&aring;gor &auml;r det bara att fr&aring;ga p&aring;. F&ouml;r dig som vill skapa egna skript rekommenderar jag&nbsp;<a href="http://diveintogreasemonkey.org/toc/" target="_blank">manualen f&ouml;r greasemonkey</a>&nbsp;samt Google.</p><p>F&ouml;r att installera skriptet g&aring;r du in p&aring;&nbsp;<a href="http://userscripts.org/scripts/show/45330" target="_blank">dess sida p&aring; userscripts.org</a>&nbsp;och trycker p&aring; knappen Install. Detta kr&auml;ver att du har&nbsp;<a href="https://addons.mozilla.org/sv-SE/firefox/addon/748" target="_blank">Greasemonkey</a>&nbsp;installerat.</p>http://www.markushedlund.se/blog/slipstreaming-slse-with-greasemonkeySat, 28 Mar 2009 14:07:05 +0100Unable to javascript-submit a form using jQuery?<p>&nbsp;Today&nbsp;<a href="http://www.mimmin.com" target="_blank">we</a>&nbsp;stumbled across the strangest error while making custom submit buttons. We are developing a site that won't depend on javascript for any functionality. This is the way you always should work to make a robust site, though it might sometimes get overlooked. The plan is to first make a functional version which we then extend using javascript.&nbsp;</p> <p>Our custom buttons are added by a script looping through all button and input elements with the class &quot;button&quot; applied. After these elements an image link is created. An event is hooked on this link, which in case of click, pushes the original button, or if it is a submit button, submits the form.</p> <p>This all worked very well for all forms but one. After too long time spent Googling and debugging, I&nbsp;<a href="http://www.webdeveloper.com/forum/showpost.php?p=727579&amp;postcount=4" target="_blank">discovered the solution</a>! Because the&nbsp;original submit button was&nbsp;named &quot;submit&quot; it wouldn't submit the form. So after renaming it, all was good again! I think it behaves this way because the submit element replaces the submit() function of the form.</p> <p>Solution: Never <strong>ever</strong> name a form field &quot;submit&quot;, it might just break any javascript!</p> <pre class="sh_html"> &lt;!-- BAD --> &lt;input type=&quot;submit&quot; name=&quot;submit&quot; /> &lt;!-- GOOD --> &lt;input type=&quot;submit&quot; name=&quot;continueButton&quot; /> </pre>http://www.markushedlund.se/blog/unable-to-javascript-submit-a-form-using-jqueryThu, 26 Mar 2009 16:27:15 +0100rynningsjo.se<div><a class="noExtra" target="_blank" href="http://www.rynningsjo.se"><img class="topImage" alt="rynningsjo.se" src="/files/file/view/64" /></a></div> <p>Beautiful, right?&nbsp;My good friend&nbsp;<a href="http://www.rynningsjo.se/" target="_blank">Daniel</a>&nbsp;finally released his own site, so the world can envy his photographic skills (might not be the real reason). I hope that he can manage to upload pictures more frequently than I do, which is to say more often than almost never ehe. So get your ass over there and get inspired! :D</p> <p><a href="http://www.rynningsjo.se" target="_blank">www.rynningsjo.se</a></p>http://www.markushedlund.se/blog/rynningsjoseSat, 21 Mar 2009 11:04:26 +0100Ways to music<p>Starting today, I intend to write about some of things I use to make my computer exprience better. If you are using something I didn't write about, please share with the rest of the group!</p> <h3><a href="http://www.spotify.com" target="_blank">Spotify</a></h3> <div><img alt="Spotify" class="topImage" src="/files/file/view/61" /></div> <p>I don't believe Spotify has passed anyone unnoticed.&nbsp;<a href="http://www.spotify.com" target="_blank">Spotify</a>&nbsp;is a music player like iTunes or Windows Media Player, with the difference that all music is stored remotly on Spotify's servers. This means that you can access all your music from any computer with the Spotify client software installed (free to download from their website). Every user has an account where all their playlists are stored, therefor accessible from any computer. By streaming all music from their servers, you don't need to have a local music library flooding your hard drive, and you can listen to your favourites at work.</p> <p><a href="http://www.spotify.com" target="_blank">Spotify</a>&nbsp;is a great music application and a great concept, but it is currently held back by the music industry and some artists. Recently Spotify had to remove many artists and songs from the already quite limited music library. I really hope they're coming back.</p> <p>If you can obtain an invitation,&nbsp;<a href="http://www.spotify.com" target="_blank">Spotify</a>&nbsp;is free with ads. Otherwise there's a montly fee of about $10, or a day pass for a tenth of that cost. Spotify is available on both PC and Mac.</p> <p>Another cool thing about&nbsp;<a href="http://www.spotify.com" target="_blank">Spotify</a>&nbsp;is that you can share playlists. Collaborative playlists are cool too. You can share a playlist with your friends that everyone can update. A few sites have popped up because of the ability to share playlists. On these sites you can listen to other users compilations. Some of these sites are&nbsp;<a href="http://www.spotifyfriends.com/" target="_blank">Spotify Friends</a>,&nbsp;<a href="http://www.spotifylists.com/" target="_blank">Spotifylists.com</a>,&nbsp;<a href="http://www.listiply.com/" target="_blank">Listiply</a>,&nbsp;<a href="http://spotylist.com/" target="_blank">Spotylist</a>&nbsp;and&nbsp;<a href="http://www.yourspotify.com/" target="_blank">Your Spotify</a>.</p> <p>If you have Spotify, you can listen to&nbsp;<a href="spotify:user:znarkus:playlist:2QiufBmhSpxLZoXgIWHnbi">my mixed list</a>.</p> <h3><a href="http://hypem.com" target="_blank">hypem.com</a></h3> <div><img alt="hypem" class="topImage" src="/files/file/view/63" /></div> <p>I can get pretty tired of the music I am listning to sometimes, and need something fresh. Ordinary radio channels doesn't usally play new music, so where to tune?&nbsp;<a href="http://hypem.com" target="_blank">Hypem.com</a>&nbsp;collects the most popular music on the Internet by checking music blogs and such. You can see what's&nbsp;<a href="http://hypem.com" target="_blank">the latest</a>,&nbsp;<a href="http://hypem.com/popular" target="_blank">most popular</a>&nbsp;or what&nbsp;<a href="http://hypem.com/spy" target="_blank">other users or countries</a>&nbsp;are listening to.&nbsp;<a href="http://hypem.com" target="_blank">Hypem.com</a>&nbsp;provides a great variaty of music, and because of that not all music might suite you.</p> <p>You can of course listen to all this music on the site. Or, if you prefer (like I do), there also is an&nbsp;<a href="http://hypem.com/radio/" target="_blank">Internet radio channel</a>&nbsp;to listen to online, or with Windows Media Player, iTunes, Winamp etc.</p> <h3>Music heard on TV</h3> <p>Want to know what that song in that TV ad is called? If you happen to live in Sweden there is a good service for that -&nbsp;<a href="http://www.reklammusik.se" target="_blank">Reklammusik.se</a>. If you don't live in Sweden I bet there are plenty similar services available to you. Ads in&nbsp;<a href="http://lmgtfy.com/?q=ad+music" target="_blank">USA and UK</a></p> <p>If you want to know a song from a movie or a TV-series episode, I'd use&nbsp;<a href="http://www.tunefind.com/" target="_blank">Tune Find</a>. They keep track of many popular shows and movies. There are other sites also, like&nbsp;<a href="http://heardontv.com/" target="_blank">heard on tv</a>.</p> <h3><a href="http://www.pandora.com" target="_blank">Pandora</a></h3> <p>These days the Internet is becoming more and more regionally dependent. Since I don't live in the US, I can't access Pandora anymore. Sucks to be me.&nbsp;</p> <p><strong>Update:</strong> There seem to be ways to get around the moats Pandora has dug around their national borders. The site <a href="http://globalpandora.com" target="_blank">globalpandora.com</a> is dedicated to this. It also provides many alternatives, though I think they merely are free online music libraries. Thanks <a href="http://www.emilsundberg.com/" target="_blank">Emil</a> for enlighting us!</p><p><b>Update:</b>&nbsp;Anna found another Spotify playlist service;&nbsp;<a href="http://www.myspotify.com" target="_blank">myspotify.com</a>. Looks great!</p>http://www.markushedlund.se/blog/ways-to-musicSun, 22 Feb 2009 17:49:50 +0100PHP: Creating a singleton class<p>The singleton pattern has both pros and cons. You should only use it if the class never has to be instantiated, as often is the case with database, registry and debug classes. The advantage is never having to manage instances; the class is easily accessible from everywhere. Below is simple example of a singleton class.</p> <pre class="sh_php"> class output<br />{<br /> private static $_instance;<br /> <br /> private function __construct() {}<br /> private function __clone() {} /**<br /> * @desc Get singleton instance<br /> * @return output<br /> */<br /> public static function &amp;getInstance()<br /> {<br /> if (!isset(self::$_instance)) {<br /> self::$_instance = new self();<br /> }<br /> <br /> return self::$_instance;<br /> } public function println($text)<br /> {<br /> print &quot;$text&lt;br /&gt;&quot;;<br /> } }</pre> <p>Let's dissect the code, shall we?<br /> The function <span class="code">getInstance</span> creates, if neccesary, an instance of the class and saves it to the static, private parameter <span class="code">$_instance</span>. It then returns a reference to the saved instance, hence the ampersand.</p> <p>If your IDE&nbsp;supports code suggestions, be sure to keep the function comment up-to-date, especially <span class="code">@return</span>. This will tell your editor what it should expect to be returned from the function, and will then know what functions and parameters to suggest.</p> <p>To prevent anyone from making more instances of our class, we declare the functions <span class="code">__construct</span> and <span class="code">__clone</span> as private.</p> <p>Singleton is as simple as that! Now how do we use this class? Example below.</p> <pre class="sh_php"> // Oneliner output::getInstance()->println('print to the screen'); // We may borrow the instance, and since it is // returned by reference, we always work on the // same instance $output = output::getInstance(); $output->println('text text'); $output->println('more text'); </pre> <p>That's it! If you have any question, don't hesitate &rarr;</p>http://www.markushedlund.se/blog/php-creating-a-singleton-classWed, 11 Feb 2009 15:47:32 +0100Mimmin Love<div><img alt="Markus dregglar" class="topImage" src="files/file/view/50" /></div> <p>A couple of weeks before christmas&nbsp;<a href="http://www.mimmin.com" target="_blank">we</a> launched a web application that you could use to create 3D christmas cards, and send them online. This was a service we provided free of charge, and it fast became very popular with over 70 000 hits in two weeks.</p> <p>After the big success we felt the need to follow it up. We came up with the idea to make a valentine's card, and to reach a larger crowd,&nbsp;<a href="http://apps.facebook.com/mimminlove/" target="_blank">put it on Facebook</a> too!</p> <p>Last week the other team members of Mimmin introduced me to an idea. We were then in full development of the Facebook App&nbsp;and needed an example picture for the splash screen. To my surprise they asked me take a picture of myself. The picture was supposed to feel spontanious and &quot;right-now&quot;, however I was supposed to archive that by myself&nbsp;:-P</p> <p>This Sunday I&nbsp;asked my friend and boss Emil to assist me with the photo challenge. He took my camera and we started shooting. This was a lot of fun for me because I've never had a real photo challenge before, never done portraits before, and especially not of myself. I took the opportunity to play with lighting, but since I don't own any photographic lighting equipment we had to use what we had at hand.</p> <p>Equipment used: Nikon D80, Sigma 18-50/2.8 HSM, Nikon 50/1.8, multi-colored decorative lamps, a floor lamp and reading lamp.</p> <p>Share the love, try Mimmin Love at&nbsp;<a href="http://apps.facebook.com/mimminlove/" target="_blank">Facebook</a>&nbsp;or standalone (coming soon).</p> <p><strong>Updated: </strong>Some <a href="photography">pictures uploaded</a>! Thanks Emil for taking the two photos of me :-)</p>http://www.markushedlund.se/blog/nya-bilderWed, 04 Feb 2009 15:49:57 +0100New Year Memories<p>No seen, long time! I must excuse my not so frequent posting, I've been busy and <a href="http://se.youtube.com/watch?v=4uWZ0KD1A4M">lazee</a>. But bare (bear) with me; I foresee a brighter future in the updating department!</p> <p>This will be my first post in the development category. But don't stop reading here! You can expect more of this kind, since this is what I do. Most of the time. <a href="http://www.mimmin.com" target="_blank">Developing</a> that is.</p> <p>I made this piece of code to a New Years party I was going to (yeah, I'm that cool). They asked me to make a <a href="http://www.labs.mimmin.com/countdown/" target="_blank">countdown timer</a> application, to be shown at a wall with a projector. I had done this exact thing before, using Vb.net. Since my primary plattform these days is <a href="http://www.mimmin.com" target="_blank">the web</a>, I made the decision to use Javascript. And this time it actually worked better than last, didn't even crash at midnight :-)</p> <p>Now after New Year I thought I'd share this with the world. And the application itself of course! Though it's not really an application anymore, more like a <a href="http://www.labs.mimmin.com/countdown/" target="_blank">library</a>, with <a href="http://www.labs.mimmin.com/countdown/examples.php" target="_blank">examples</a> and <a href="http://www.labs.mimmin.com/countdown/#documentation" target="_blank">documention</a>. By using this you can get the remaining/elapsed time in various formats. Hope this will come to handy for someone out there! And if it does, please take the time to let me know!</p> <p><a href="http://labs.mimmin.com/countdown" target="_blank">labs.mimmin.com/countdown</a></p>http://www.markushedlund.se/blog/new-year-memoriesThu, 22 Jan 2009 22:09:03 +0100Christmas cards to everyone!<p>In christmas <a href="http://www.youtube.com/watch?v=_7Pqe68OcNA">times like these</a>, it's heartwarming to see all the people who gives unselfishly. We from <a href="http://www.mimmin.com">mimmin</a> would like to help and spread the love. By giving away free <a href="http://www.christmas.mimmin.com">christmas cards</a>! These fellows are simple to use;&nbsp;just upload a photo/use your webcam, then decorate the picture with various christmas accessories. Write a joyful message and send away!</p><p>A tip. If you want to send cards to larger groups, say your big family, insert the link to the christmas card in an ordinary e-mail. Not as personal, but much faster!</p><p>All feedback is appreciated!</p><p>On a second note, vi har nu &auml;ntligen lagt upp <a href="http://www.mimmin.com">v&aring;r nya sida</a>. V&aring;r f&ouml;rhoppning &auml;r att man ska f&aring; en klar bild av vad vi pysslar med, vad vi har gjort, samt hur man kommer i kontakt med oss. Den &auml;r fortfarande under konstruktion; vi ska bland annat l&auml;gga upp videoer till alla v&aring;ra produkter samt uppdatera listan med kundprojekt. Kom g&auml;rna med kommentarer!</p>http://www.markushedlund.se/blog/christmas-cards-to-everyoneSun, 14 Dec 2008 21:46:35 +0100Photos!<p>I've just posted most of my flickr photos, some have been slightly modified, all are larger. So go and <a href="photography">check them out</a> :D<br />I will shortly post newer photos.</p><p>While I'm posting, I'd like to take the oppertunity to push for <a href="http://www.hyrahyra.se">Hyrahyra's</a> updated search (like version 2.5). Some of the updates in this version are:</p><p>&quot;Where&quot; searches are handled by <a href="http://code.google.com/apis/maps/">Google Maps</a>, which makes it possible to search for streets and all geographic locations.</p><p>Items that are located on the exact same spot, are exploded into nice circles.</p><p>Many minor fixes like improved performance.</p>http://www.markushedlund.se/blog/photosSun, 23 Nov 2008 13:08:28 +0100Release party!<p>Kiddin'. Though I am very happy, to finally have launched this site, which I have been working on for a long time (all weekend!).&nbsp;Varf&ouml;r p&aring; engelska? I&nbsp;guess I'm naive enough to think non-swedish people will visit ;)</p><p>The site is far from finished, especially in the <a href="http://www.markushedlund.se/photography">photography section</a>. While you are waiting, you can visit <a href="http://flickr.com/znarkus">me on flickr</a>. Expect many updates in the next week!</p><p>Enjoy :D</p>http://www.markushedlund.se/blog/release-partySun, 16 Nov 2008 10:20:05 +0100