<?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'><id>tag:blogger.com,1999:blog-34271137</id><updated>2009-11-17T06:58:18.362+01:00</updated><title type='text'>Martin Lindhe's blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://martin-lindhes.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/34271137/posts/default'/><link rel='alternate' type='text/html' href='http://martin-lindhes.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Martin Lindhe</name><uri>http://www.blogger.com/profile/14294602912036988053</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-34271137.post-7228857690788400130</id><published>2008-12-01T13:33:00.006+01:00</published><updated>2008-12-01T13:41:44.283+01:00</updated><title type='text'>fileformat wiki</title><content type='html'>I created a wiki for documenting binary file formats since I feel the Internet is lacking a good collaborative resource for this kind of information.&lt;br /&gt;&lt;br /&gt;Feel free to help me out at &lt;a href="http://fileformatwiki.org/"&gt;http://fileformatwiki.org&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;PS. This is not intended to be in competition with the website www.wotsit.org, but rather a supplement.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/34271137-7228857690788400130?l=martin-lindhes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://martin-lindhes.blogspot.com/feeds/7228857690788400130/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=34271137&amp;postID=7228857690788400130' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/34271137/posts/default/7228857690788400130'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/34271137/posts/default/7228857690788400130'/><link rel='alternate' type='text/html' href='http://martin-lindhes.blogspot.com/2008/12/fileformat-wiki.html' title='fileformat wiki'/><author><name>Martin Lindhe</name><uri>http://www.blogger.com/profile/14294602912036988053</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='00762492733622684215'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-34271137.post-1212490245763588133</id><published>2008-10-02T10:00:00.003+02:00</published><updated>2008-10-02T10:23:43.887+02:00</updated><title type='text'>Running MacOS X as guest in VirtualBox</title><content type='html'>I have been looking for a while for a solution where I could easily work with MacOS X on my workstation. I am currently running Ubuntu, with a virtual Windows XP in VirtualBox for Photoshop, Flash and some other Windows-software.&lt;br /&gt;&lt;br /&gt;Since the MacOS X runs on the x86 architecture these days, I figured I should be able to run a virtual MacOS X as well.&lt;br /&gt;However after some looking around, it appears not to be possible. And it's not a technical problem, but rather a issue of the MacOS X EULA:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;"This License allows you to install and use one copy of the Mac OS X Server software (the "Mac OS X Server Software") on a single Apple-labeled computer."&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The only solution for now appears to be to use VMWare together with a cracked version of MacOS X and follow a long series of &lt;a href="http://wiki.osx86project.org/wiki/index.php/Vmware_how_to"&gt;installation instructions&lt;/a&gt;.&lt;br /&gt;However, this is not a working solution for me, since I prefer to use the open source VirtualBox rather than the commercial and NSA funded VMWare [&lt;a href="http://www.vmware.com/company/news/releases/nsa_pr.html"&gt;1&lt;/a&gt;, &lt;a href="http://www.vmware.com/company/news/releases/nsa.html"&gt;2&lt;/a&gt;].&lt;br /&gt;&lt;br /&gt;There is some discussion in virtualbox.org regarding &lt;a href="http://forums.virtualbox.org/viewtopic.php?t=2076"&gt;MacOS X guest support&lt;/a&gt;, but Sun appears to officially ignore it (the OS is not even &lt;a href="http://www.virtualbox.org/wiki/Guest_OSes"&gt;listed here&lt;/a&gt; for example).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/34271137-1212490245763588133?l=martin-lindhes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://martin-lindhes.blogspot.com/feeds/1212490245763588133/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=34271137&amp;postID=1212490245763588133' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/34271137/posts/default/1212490245763588133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/34271137/posts/default/1212490245763588133'/><link rel='alternate' type='text/html' href='http://martin-lindhes.blogspot.com/2008/10/running-macos-x-as-guest-in-virtualbox.html' title='Running MacOS X as guest in VirtualBox'/><author><name>Martin Lindhe</name><uri>http://www.blogger.com/profile/14294602912036988053</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='00762492733622684215'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-34271137.post-5533657721063798236</id><published>2007-10-03T22:24:00.000+02:00</published><updated>2007-10-04T03:14:20.400+02:00</updated><title type='text'>Convert to iPod Nano video with ffmpeg</title><content type='html'>Just got my iPod Nano with video and the first thing I noticed was that it only supported one video format and that iTunes didnt even want to convert to this format for certain video files.&lt;br /&gt;&lt;br /&gt;The next thing I noticed, when I finally managed to get iTunes 7.4.3 to accept a video (it refuses .avi files, accepts .mpg files), it converted a 22 minute MPEG-1 video in about 50 minutes time on my Core 2 Duo E6600). Even then, the resulting file lacked the audio track and was useless.&lt;br /&gt;&lt;br /&gt;So after some poking, here's a pretty good ffmpeg syntax to produce nice iPod videos with acceptable sound, should work with all input types supported by your ffmpeg build:&lt;br /&gt;&lt;br /&gt;&lt;pre class="code"&gt;&lt;blockquote&gt;ffmpeg -i infile.avi -f mp4 \&lt;br /&gt;-acodec libfaac -ar 44100 -ab 128 \&lt;br /&gt;-vcodec mpeg4 -maxrate 2000 -b 1500 \&lt;br /&gt;-qmin 3 -qmax 5 -bufsize 4096 -g 300 \&lt;br /&gt;-s 320x240 -r 30000/1001 outfile.mp4&lt;/blockquote&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;It took 3 min 14 seconds for ffmpeg to encode the file I used.&lt;br /&gt;From my sample input file of 22 minutes good quality video, the output file was 42 MB.&lt;br /&gt;(Thats about 95 Simpsons episodes on a 4GB iPod Nano :-)&lt;br /&gt;&lt;br /&gt;Note: Some versions of ffmpeg calls the audio codec "aac" instead of "libfaac".&lt;br /&gt;&lt;br /&gt;For Windows, I used ffmpeg-r10461-gpl-static-win32.tar.bz2 from http://arrozcru.no-ip.org/ffmpeg_builds/&lt;br /&gt;&lt;br /&gt;Oh, iTunes ALSO refuses to accept files named something.avi.m4v&lt;br /&gt;You must remove the ".avi" part of the filename.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/34271137-5533657721063798236?l=martin-lindhes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://martin-lindhes.blogspot.com/feeds/5533657721063798236/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=34271137&amp;postID=5533657721063798236' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/34271137/posts/default/5533657721063798236'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/34271137/posts/default/5533657721063798236'/><link rel='alternate' type='text/html' href='http://martin-lindhes.blogspot.com/2007/10/convert-to-ipod-nano-video-with-ffmpeg.html' title='Convert to iPod Nano video with ffmpeg'/><author><name>Martin Lindhe</name><uri>http://www.blogger.com/profile/14294602912036988053</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='00762492733622684215'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-34271137.post-116171765116442077</id><published>2006-10-24T21:19:00.000+02:00</published><updated>2006-10-24T21:21:32.680+02:00</updated><title type='text'>AJAX guide - part 1</title><content type='html'>The first part of a guide series for writing AJAX-enabled websites was just published, the guide is written by me, you can read it here (the guide is in Swedish)&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.ajax-forum.se/del-1-introduktion-till-ajax-t13.html"&gt;http://www.ajax-forum.se/del-1-introduktion-till-ajax-t13.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/34271137-116171765116442077?l=martin-lindhes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://martin-lindhes.blogspot.com/feeds/116171765116442077/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=34271137&amp;postID=116171765116442077' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/34271137/posts/default/116171765116442077'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/34271137/posts/default/116171765116442077'/><link rel='alternate' type='text/html' href='http://martin-lindhes.blogspot.com/2006/10/ajax-guide-part-1.html' title='AJAX guide - part 1'/><author><name>Martin Lindhe</name><uri>http://www.blogger.com/profile/14294602912036988053</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='00762492733622684215'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-34271137.post-115995179871063217</id><published>2006-10-04T10:49:00.000+02:00</published><updated>2006-10-24T21:28:57.696+02:00</updated><title type='text'>Firefox 2  tweaking</title><content type='html'>&lt;span style="font-weight: bold;"&gt;To load "incompatible" addons&lt;/span&gt;&lt;br /&gt;Go to about:config, add the boolean value &lt;a href="http://kb.mozillazine.org/Extensions.checkCompatibility"&gt;extensions.checkCompatibility&lt;/a&gt; and set it to false&lt;br /&gt;&lt;br /&gt;I am using the following "incompatible" addons successfully with Firefox 2:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Go Up 1.0 (&lt;a href="https://addons.mozilla.org/firefox/1677/"&gt;Homepage&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;Google Pagerank Status 0.9.6 (&lt;a href="http://www.tapouillo.com/firefox_extension/"&gt;Homepage&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;Redirect Remover 1.1 (&lt;a href="http://akaxeen.tyllo.de/?page=rdr"&gt;Homepage&lt;/a&gt;)&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;To remove the "Go" button from the URL bar&lt;/span&gt;&lt;br /&gt;Go to about:config, change the boolean value of &lt;a href="http://kb.mozillazine.org/Browser.urlbar.hideGoButton"&gt;browser.urlbar.hideGoButton&lt;/a&gt; to true&lt;br /&gt;&lt;br /&gt;I will update this blog from time to time with more notes about Firefox 2&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/34271137-115995179871063217?l=martin-lindhes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://martin-lindhes.blogspot.com/feeds/115995179871063217/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=34271137&amp;postID=115995179871063217' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/34271137/posts/default/115995179871063217'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/34271137/posts/default/115995179871063217'/><link rel='alternate' type='text/html' href='http://martin-lindhes.blogspot.com/2006/10/firefox-2-tweaking.html' title='Firefox 2  tweaking'/><author><name>Martin Lindhe</name><uri>http://www.blogger.com/profile/14294602912036988053</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='00762492733622684215'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-34271137.post-115806715839497009</id><published>2006-09-12T15:03:00.000+02:00</published><updated>2006-10-02T11:46:39.910+02:00</updated><title type='text'>How to run Subversion 1.4.0 in Windows</title><content type='html'>Subversion 1.4.0 was &lt;a href="http://subversion.tigris.org/svn_1.4_releasenotes.html"&gt;released&lt;/a&gt; the other day, adding many exciting new features.&lt;br /&gt;&lt;br /&gt;Subversion is a modern source revision control software, a very useful utility for a developer to easily keep track of changes in source code. Subversion runs as a server, either directly through svnserve, or as a module in the Apache web server.&lt;br /&gt;Subversion is open source and runs on Windows, Linux, Mac OS X and more.&lt;br /&gt;Homepage is &lt;a href="http://subversion.tigris.org/"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;TortoiseSVN is a Windows client to Subversion shell extension, integrating Subversion  features directly into the Windows Explorer.&lt;br /&gt;Homepage is &lt;a href="http://tortoisesvn.tigris.org/"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;As I am developing under the Windows platform mostly, and working with web development, I have been frustrated in the past for the lack of Apache 2.2 support in the 1.3 branch of Subversion. But behold! A new shiny feature of the 1.4 branch is the &lt;span style="font-weight: bold;"&gt;svnserve&lt;/span&gt;, which will now run natively as a Windows service.&lt;br /&gt;&lt;br /&gt;Now I can simply run Subversion as a separate server, and as a side effect I can upgrade to Apache 2.2.3 on my development box.&lt;br /&gt;&lt;br /&gt;Here's a quick rundown in how to install Subversion 1.4.0 and &lt;a href="http://tortoisesvn.tigris.org/"&gt;TortoiseSVN&lt;/a&gt; under Windows.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;1. Installing Subversion&lt;/span&gt;&lt;br /&gt;Download  svn-1.4.0-setup.exe from &lt;a href="http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91"&gt;here&lt;/a&gt;.&lt;br /&gt;Install Subversion to D:\SVN&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2. Create a repository&lt;/span&gt; (Read more &lt;a href="http://svnbook.red-bean.com/nightly/en/svn.intro.quickstart.html"&gt;here&lt;/a&gt;).&lt;br /&gt;&lt;blockquote&gt;D:\SVN\bin&gt;svnadmin create D:\SVN\repos&lt;br /&gt;&lt;/blockquote&gt;    This will create a repository in the directory D:\SVN\repos (the directory will also be created).&lt;br /&gt;In this setup, I will use only one "root repository", and place my projects as subdirectories under this repository. There are other ways to configure multiple repositories if you prefer.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;3. Configure user access to the repository&lt;/span&gt;&lt;br /&gt;Edit D:\SVN\repos\conf\svnserve.conf:&lt;br /&gt;&lt;blockquote&gt;[general]&lt;br /&gt;anon-access = none&lt;br /&gt;auth-access = write&lt;br /&gt;&lt;br /&gt;password-db = passwd&lt;br /&gt;&lt;br /&gt;realm = webroot repository&lt;/blockquote&gt;    This will block anonymous read access, and allow write access to the users specified in the "passwd" file.&lt;br /&gt;&lt;br /&gt;Edit D:\SVN\repos\conf\passwd:&lt;blockquote&gt;[users]&lt;br /&gt;martin = test123&lt;/blockquote&gt;    This will allow the user "martin" write access using the password "test123"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;4. Import directory into the newly created repository&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;D:\SVN\bin&gt;svn import D:\webroot file:///d:/SVN/repos/webroot -m "initial import"&lt;br /&gt;&lt;/blockquote&gt;    This will import D:\webroot and all subdirectories into the repository in the subdirectory "webroot", notice that I don't import this directly under the root directory. We will later be able to easily import different projects at the same directory level (ie file:///d:/SVN/repos/otherproject)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;5. Install the svnserve Windows Service&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;C:\&gt;sc create SVN binpath= "D:\SVN\bin\svnserve.exe --service --root D:\SVN\repos --listen-port 48000" displayname= "Subversion" depend= Tcpip start= auto&lt;br /&gt;[SC] CreateService SUCCESS&lt;/blockquote&gt;    The syntax is a little wierd, I know. The whitespace after = is required by the SC tool.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;6. Starting and stopping the service&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You can now start and stop the service as any other Windows service:&lt;br /&gt;&lt;blockquote&gt;C:\&gt;net start svn&lt;br /&gt;The Subversion service is starting.&lt;br /&gt;The Subversion service was started successfully.&lt;br /&gt;&lt;br /&gt;C:\&gt;net stop svn&lt;br /&gt;The Subversion service is stopping.&lt;br /&gt;The Subversion service was stopped successfully.&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;7. Uninstalling the service&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;C:\&gt;net stop svn&lt;br /&gt;The Subversion service is stopping.&lt;br /&gt;The Subversion service was stopped successfully.&lt;br /&gt;&lt;br /&gt;C:\&gt;sc delete SVN&lt;br /&gt;[SC] DeleteService SUCCESS&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;8. Install TortoiseSVN&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Download TortoiseSVN-1.4.0.7501-win32-svn-1.4.0.msi (or newer) from &lt;a href="http://sourceforge.net/project/showfiles.php?group_id=138498"&gt;here&lt;/a&gt;.&lt;br /&gt;Install &amp; reboot machine.&lt;br /&gt;&lt;br /&gt;Choose to what directory to import the repository, and make sure the directory is empty.&lt;br /&gt;Right click on the directory, in my example D:\webroot&lt;br /&gt;Select SVN Checkout&lt;br /&gt;&lt;br /&gt;In URL of repository, type: svn://localhost:48000/webroot&lt;br /&gt;You will now be presented with a user authentication dialog box. Enter your username and password here and let the program remember your settings.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/2770/3774/1600/tsvn-sample.png"&gt;&lt;img style="cursor: pointer;" src="http://photos1.blogger.com/blogger/2770/3774/320/tsvn-sample.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/34271137-115806715839497009?l=martin-lindhes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://martin-lindhes.blogspot.com/feeds/115806715839497009/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=34271137&amp;postID=115806715839497009' title='14 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/34271137/posts/default/115806715839497009'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/34271137/posts/default/115806715839497009'/><link rel='alternate' type='text/html' href='http://martin-lindhes.blogspot.com/2006/09/how-to-run-subversion-140-in-windows.html' title='How to run Subversion 1.4.0 in Windows'/><author><name>Martin Lindhe</name><uri>http://www.blogger.com/profile/14294602912036988053</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='00762492733622684215'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>14</thr:total></entry></feed>