<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3814465794591508617</id><updated>2011-12-12T19:53:23.761+01:00</updated><category term='Introduction'/><category term='expire'/><category term='cleanup'/><category term='Kindle 3'/><category term='display'/><category term='subdirectories'/><category term='software update'/><category term='snow leopard'/><category term='macport'/><category term='hidden files'/><category term='BibTeX'/><category term='os x'/><category term='date'/><category term='curl'/><category term='Finder'/><category term='dvd-r'/><category term='help'/><category term='sync'/><category term='sleep'/><category term='restore'/><category term='duplicate'/><category term='epoch timer'/><category term='nvram'/><category term='git'/><category term='verbose'/><category term='leopard'/><category term='window'/><category term='iPod'/><category term='keyboard'/><category term='windows'/><category term='spell check'/><category term='late 2008 MacBook Pro'/><category term='boot-args'/><category term='wget'/><category term='backup'/><category term='generator'/><category term='harddisk'/><category term='screen'/><category term='SCM'/><category term='Time Machine'/><category term='line numbers'/><category term='reviews'/><category term='boot'/><category term='login'/><category term='iCal'/><category term='URL'/><category term='bash'/><category term='external IP'/><category term='XCode'/><category term='References'/><category term='wikipedia'/><category term='terminal'/><category term='build'/><category term='unix'/><category term='delete word'/><category term='24-hour clock'/><category term='Keynote'/><category term='command line'/><category term='meta key'/><category term='LaTeX'/><category term='toast'/><category term='password'/><category term='ls'/><category term='vista'/><category term='clean'/><category term='remove'/><category term='svn'/><category term='subversion'/><title type='text'>Simen's Tech Blog</title><subtitle type='html'>In this blog I will post useful information that I come across within the technology sphere. As I mostly spend my time on OS X, the majority of the post will most likely be about the Mac platform, but anything that I find useful might be subject for a post.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://simenhag.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://simenhag.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Simen</name><uri>http://www.blogger.com/profile/03692086797412006836</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_eZksEKBmWsg/STEgLrr-UfI/AAAAAAAAABk/X7LyInexu4Y/s1600-R/dd4d29f6c5573b1a5d1846148f997c36.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>28</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3814465794591508617.post-4963014523876213538</id><published>2010-09-23T19:58:00.000+02:00</published><updated>2010-09-23T19:58:26.964+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='duplicate'/><category scheme='http://www.blogger.com/atom/ns#' term='Finder'/><category scheme='http://www.blogger.com/atom/ns#' term='remove'/><title type='text'>Remove duplicate entries in Finders Open With menu</title><content type='html'>After seeing my list of entries in the Finder's "Open With" menu grow and containing an increasing number of duplicate entries, I figured it was time to try and fix this. Googling the matter revealed a number of outdated solutions. The problem was that the utility used had moved to another location on the disk.&lt;br /&gt;&lt;br /&gt;The correct way of doing this on Snow Leopard is to use the following command:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;This will regenerate the list, and for me, all the extra entries disappeared.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=homofsimhag-21&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B0026OR376&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"&gt;&lt;/iframe&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3814465794591508617-4963014523876213538?l=simenhag.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simenhag.blogspot.com/feeds/4963014523876213538/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3814465794591508617&amp;postID=4963014523876213538' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/4963014523876213538'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/4963014523876213538'/><link rel='alternate' type='text/html' href='http://simenhag.blogspot.com/2010/09/remove-duplicate-entries-in-finders.html' title='Remove duplicate entries in Finders Open With menu'/><author><name>Simen</name><uri>http://www.blogger.com/profile/03692086797412006836</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_eZksEKBmWsg/STEgLrr-UfI/AAAAAAAAABk/X7LyInexu4Y/s1600-R/dd4d29f6c5573b1a5d1846148f997c36.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3814465794591508617.post-3473002203084489308</id><published>2010-08-28T05:04:00.003+02:00</published><updated>2010-08-28T05:14:11.247+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='reviews'/><category scheme='http://www.blogger.com/atom/ns#' term='Kindle 3'/><title type='text'>While Waiting for the Kindle to Arrive</title><content type='html'>A few week a go, my lovely wife bought me an Kindle (version 3) as a birthday gift. The word has now come that the Kindle is shipped, and I am eagerly awaiting its arrival, scheduled for Tuesday, here are a few links that I have found concerning the new Kindle 3. Some are reviews, some are other peaces, but they all talk about the Kindle. Enjoy.&lt;br /&gt;&lt;br /&gt;And P.S. If you have any links not in my list, please share them in the comments.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://www.engadget.com/2010/08/27/amazon-kindle-review/"&gt;Amazon Kindle review (2010)&lt;/a&gt; - Reveiw from Engadget&lt;/li&gt;&lt;li&gt;&lt;a href="http://blogs.consumerreports.org/electronics/2010/08/new-amazon-kindle-ebook-reader-video-review-first-look-3rd-generation-e-book-digital-ereader-wifi-graphite-black-books-faster.html?EXTKEY=I91CONL&amp;amp;CMP=OTC-ConsumeristRSS" title="Consumer Reports Electronics Blog: Video review: New Kindle is the best yet, despite some minor flaws"&gt;Video review: New Kindle is the best yet, despite some minor flaws&lt;/a&gt; - Consumer Report Review&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.fastcompany.com/1684575/wanted-amazon-kindle-3rd-generation" title="WANTED: Amazon Kindle, 3rd Generation | Fast Company"&gt;WANTED: Amazon Kindle, 3rd Generation | Fast Company&lt;/a&gt; - Fast Company &lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.suntimes.com/technology/ihnatko/2642632,ihnatko-kindle-ibook-amazon-082610.article" title="Kindle 3 is smaller, but a big deal e-reader  :: CHICAGO SUN-TIMES :: Andy Ihnatko"&gt;Kindle 3 is smaller, but a big deal e-reader&lt;/a&gt; -   :: CHICAGO SUN-TIMES, Andy Ihnatko&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://yfrog.com/mzffbz" title="Yfrog Video : yfrog.com/mzffbz  - Uploaded by kevinrose"&gt;Yfrog Video : yfrog.com/mzffbz  - Uploaded by kevinrose&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.nytimes.com/2010/08/26/technology/personaltech/26pogue.html?_r=1" title="State of the Art - New Kindle Leaves Rivals Farther Behind - NYTimes.com"&gt;State of the Art - New Kindle Leaves Rivals Farther Behind&lt;/a&gt;  - NYTimes.com&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://torrentfreak.com/e-books-piracy-peril-or-promotional-possibilities-100822/" title="E-books, Piracy Peril or Promotional Possibilities?  | TorrentFreak"&gt;E-books, Piracy Peril or Promotional Possibilities?&lt;/a&gt; -  TorrentFreak&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://blogs.chron.com/techblog/archives/2010/08/the_new_kindle_is_here_and_unboxed_1.html" title="The new Kindle is here and unboxed | TechBlog | Chron.com - Houston Chronicle"&gt;The new Kindle is here and unboxed&lt;/a&gt;  - Houston Chronicle&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://phx.corporate-ir.net/phoenix.zhtml?c=176060&amp;amp;p=irol-newsArticle&amp;amp;ID=1463287&amp;amp;highlight="&gt;Amazone News Release&lt;/a&gt; - Amazone.com&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.pcmag.com/article2/0,2817,2368075,00.asp" title="Amazon Kindle (3G + Wi-Fi) Review &amp;amp; Rating | PCMag.com"&gt;Amazon Kindle (3G + Wi-Fi) Review &amp;amp; Rating&lt;/a&gt; - PCMag.com&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://reviews.cnet.com/e-book-readers/amazon-kindle-3g-wi/4505-3508_7-34140425.html?tag=mncol;txt" title="Amazon Kindle (3G/Wi-Fi, graphite) E-Book reader reviews - CNET Reviews"&gt;Amazon Kindle (3G/Wi-Fi, graphite) E-Book reader reviews - CNET Reviews&lt;/a&gt; - CNET.com&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://news.cnet.com/8301-17938_105-20014364-1.html?part=rss&amp;amp;subj=news&amp;amp;tag=2547-1_3-0-20" title="Hands-on review of the Kindle 3 | Crave - CNET"&gt;Hands-on review of the Kindle 3&lt;/a&gt; - Crave - CNET&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://thenextweb.com/media/2010/08/22/kindle-outselling-ibooks-60-to-1/" title="Kindle Outselling iBooks 60 To 1"&gt;Kindle Outselling iBooks 60 To 1&lt;/a&gt; -TheNextWeb.com&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.kindlepost.com/2010/08/what-the-kindle-team-is-reading-part-1.html" title="Kindle Post US: What the Kindle Team Is Reading, Part 1"&gt;Kindle Post US: What the Kindle Team Is Reading, Part 1&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;a href="http://www.amazon.com/s/?ie=UTF8&amp;amp;tag=homofsimhag-21&amp;amp;link_code=btl&amp;amp;camp=213689&amp;amp;creative=392969&amp;amp;search-alias=aps&amp;amp;field-keywords=kindle" target="_blank"&gt;Search Amazon.com  for kindle&lt;/a&gt;&lt;img alt="" border="0" height="1" src="http://www.assoc-amazon.com/e/ir?t=homofsimhag-21&amp;amp;l=btl&amp;amp;camp=213689&amp;amp;creative=392969&amp;amp;o=1&amp;amp;a=" style="border: medium none ! important; margin: 0px ! important; padding: 0px ! important;" width="1" /&gt;&lt;br /&gt;&lt;ul&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3814465794591508617-3473002203084489308?l=simenhag.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simenhag.blogspot.com/feeds/3473002203084489308/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3814465794591508617&amp;postID=3473002203084489308' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/3473002203084489308'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/3473002203084489308'/><link rel='alternate' type='text/html' href='http://simenhag.blogspot.com/2010/08/while-waiting-for-kindle-to-arrive.html' title='While Waiting for the Kindle to Arrive'/><author><name>Simen</name><uri>http://www.blogger.com/profile/03692086797412006836</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_eZksEKBmWsg/STEgLrr-UfI/AAAAAAAAABk/X7LyInexu4Y/s1600-R/dd4d29f6c5573b1a5d1846148f997c36.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3814465794591508617.post-8325448507836936452</id><published>2010-07-09T16:07:00.000+02:00</published><updated>2010-07-09T16:07:52.942+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='BibTeX'/><category scheme='http://www.blogger.com/atom/ns#' term='References'/><category scheme='http://www.blogger.com/atom/ns#' term='LaTeX'/><category scheme='http://www.blogger.com/atom/ns#' term='URL'/><title type='text'>Using URLs as references with LaTeX and BibTex</title><content type='html'>Recently, while writing a paper using LaTeX, I needed to reference some URLs. Sometimes footnotes might be used for this, but here I felt it would be better to put it in the list of references using BibTeX. There are, however, no obvious way of referencing URLs with&amp;nbsp;BibTeX. After searching a little and playing with the results, the the following seems to be a good way to write up URL references in BibTeX.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;@misc{example_com,&lt;br /&gt;&amp;nbsp; &amp;nbsp; Howpublished = {\url{http://www.example.com/}},&lt;br /&gt;&amp;nbsp; &amp;nbsp; Key = {example},&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Title = {The example.com Web Site},&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;month = jul,&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;year = {2010}&lt;/code&gt;&lt;br /&gt;&lt;code&gt;}&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Howpublished is where you put the URL that should be displayed in the list of references. I also use the URL-package to make sure that the URL is formated properly. It is possible to use the hyperref-package to make the URLs clickable. Month and year are used to denote when the site was last visited.&lt;br /&gt;&lt;br /&gt;When the list of references is created, this should create a reasonably nice display of the URL. An even better approach would probably be to use &lt;a href="http://biblatex-biber.sourceforge.net/"&gt;biber&lt;/a&gt; or &lt;a href="http://www.ctan.org/tex-archive/help/Catalogue/entries/biblatex.html"&gt;BibLatex&lt;/a&gt;, but that was not really an option in this case.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3814465794591508617-8325448507836936452?l=simenhag.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simenhag.blogspot.com/feeds/8325448507836936452/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3814465794591508617&amp;postID=8325448507836936452' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/8325448507836936452'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/8325448507836936452'/><link rel='alternate' type='text/html' href='http://simenhag.blogspot.com/2010/07/using-urls-as-references-with-latex-and.html' title='Using URLs as references with LaTeX and BibTex'/><author><name>Simen</name><uri>http://www.blogger.com/profile/03692086797412006836</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_eZksEKBmWsg/STEgLrr-UfI/AAAAAAAAABk/X7LyInexu4Y/s1600-R/dd4d29f6c5573b1a5d1846148f997c36.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3814465794591508617.post-6819133090196498385</id><published>2010-06-08T12:43:00.001+02:00</published><updated>2010-06-08T12:44:59.567+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Keynote'/><category scheme='http://www.blogger.com/atom/ns#' term='date'/><title type='text'>Inserting todays date in Apple Keynote</title><content type='html'>Inserting today's date in Apple's Keynote application should be as easy as selecting "Insert date" from the insert menu. It is, however, not an available option. This always surprises me, but I have not been able to find this seemingly obvious feature anywhere.&lt;br /&gt;&lt;br /&gt;Luckily, there is a way to do it. It involves inserting a table, and putting a formula into the table cell. Start by inserting a table (press the "table" button on the button bar, or select table from the insert menu). Select the table inspector, and set both body rows and body columns to 1 (one).&lt;br /&gt;&lt;br /&gt;You should now have a fairly large square on your slide. This is OK for now. Select this square and type "=TODAY()" or "=NOW()" into the square. The text will be shown in a small pop-up window for typing in formulas. The first command (today) will display today's date only, and the second (now) will display both the date and the current time.&lt;br /&gt;&lt;br /&gt;Depending on your use, it might be a good idea to customize the visual appearance of the table, for instance remove the table border by selecting "none" in the cell border drop down box in the inspector. You should be able to change the colors and fonts using the normal keynote manipulation techniques.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3814465794591508617-6819133090196498385?l=simenhag.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simenhag.blogspot.com/feeds/6819133090196498385/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3814465794591508617&amp;postID=6819133090196498385' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/6819133090196498385'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/6819133090196498385'/><link rel='alternate' type='text/html' href='http://simenhag.blogspot.com/2010/06/inserting-todays-date-in-apple-keynote.html' title='Inserting todays date in Apple Keynote'/><author><name>Simen</name><uri>http://www.blogger.com/profile/03692086797412006836</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_eZksEKBmWsg/STEgLrr-UfI/AAAAAAAAABk/X7LyInexu4Y/s1600-R/dd4d29f6c5573b1a5d1846148f997c36.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3814465794591508617.post-6242723715034012531</id><published>2010-03-20T09:47:00.002+01:00</published><updated>2010-03-20T09:50:41.969+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='meta key'/><category scheme='http://www.blogger.com/atom/ns#' term='bash'/><category scheme='http://www.blogger.com/atom/ns#' term='delete word'/><title type='text'>Using alt (meta) in bash on OS X</title><content type='html'>The bash shell has a few very useful commands that, at first glance, do not work on OS X. Commands like Alt-D (delete word) and Alt-B (backwards one word) does not work. This has annoyed me for a while, so I finally set out to do something about it. The solution turned out to be fairly simple.&lt;br /&gt;&lt;br /&gt;Terminal.app has a setting that turns the option key as the meta key. Just open Terminal.app preferences and select the settings tab, and select "use option as meta" check box. You are now good to go for using the Alt-B, Alt-D (and similar) keyboard shortcuts.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3814465794591508617-6242723715034012531?l=simenhag.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simenhag.blogspot.com/feeds/6242723715034012531/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3814465794591508617&amp;postID=6242723715034012531' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/6242723715034012531'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/6242723715034012531'/><link rel='alternate' type='text/html' href='http://simenhag.blogspot.com/2010/03/using-alt-meta-in-bash-on-os-x.html' title='Using alt (meta) in bash on OS X'/><author><name>Simen</name><uri>http://www.blogger.com/profile/03692086797412006836</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_eZksEKBmWsg/STEgLrr-UfI/AAAAAAAAABk/X7LyInexu4Y/s1600-R/dd4d29f6c5573b1a5d1846148f997c36.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3814465794591508617.post-5520594333459111103</id><published>2010-02-26T10:54:00.001+01:00</published><updated>2010-02-26T10:55:16.346+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='iCal'/><category scheme='http://www.blogger.com/atom/ns#' term='display'/><category scheme='http://www.blogger.com/atom/ns#' term='24-hour clock'/><title type='text'>24-hour clock in iCal</title><content type='html'>Living in Norway, I am used to working with a 24-hour clock. I never liked this am/pm thing. I do, however, like my operating system language to be English. By default, iCal will use the settings for the current selected language for deciding what type of time it will display (12-hour or 24-hour).&lt;br /&gt;&lt;br /&gt;The way to change how iCal display its time, go to &lt;b&gt;System Preferences&lt;/b&gt;, and select &lt;b&gt;Language &amp;amp; Text&lt;/b&gt;. One of the tabs showing in this preference pane is &lt;b&gt;Formats&lt;/b&gt;. Press the "&lt;i&gt;Customize..."&lt;/i&gt;&amp;nbsp;button, and change the format to whatever you would like it to be by dragging and dropping elements into the different boxes. Delete elements by selecting it and typing the back-space button.&lt;br /&gt;&lt;br /&gt;That is it. You will have to restart iCal for the changes to take affect.&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3814465794591508617-5520594333459111103?l=simenhag.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simenhag.blogspot.com/feeds/5520594333459111103/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3814465794591508617&amp;postID=5520594333459111103' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/5520594333459111103'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/5520594333459111103'/><link rel='alternate' type='text/html' href='http://simenhag.blogspot.com/2010/02/24-hour-clock-in-ical.html' title='24-hour clock in iCal'/><author><name>Simen</name><uri>http://www.blogger.com/profile/03692086797412006836</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_eZksEKBmWsg/STEgLrr-UfI/AAAAAAAAABk/X7LyInexu4Y/s1600-R/dd4d29f6c5573b1a5d1846148f997c36.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3814465794591508617.post-874112096619398957</id><published>2010-01-18T14:05:00.006+01:00</published><updated>2010-01-18T18:35:42.557+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hidden files'/><category scheme='http://www.blogger.com/atom/ns#' term='restore'/><category scheme='http://www.blogger.com/atom/ns#' term='backup'/><category scheme='http://www.blogger.com/atom/ns#' term='Time Machine'/><title type='text'>Restoring hidden files with Time HMachine</title><content type='html'>&lt;p&gt;I recently, after a 4 month wait for my company to get the discs, upgraded to Snow Leopard. I trusted Time Machine for my backup of the Leopard install, and did a wipe and install. I like to start with a clean system whenever I can.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;After having installed Snow Leopard, I needed to restore some files, including my .profile. The only trouble is that, as far as I was able to figure out, there is no way of displaying hidden files when you are in Time Machine mode, and as a consequence, no way of restoring them unless you restore the whole directory. &lt;/p&gt;&lt;p&gt;There is a way of displaying hidden files in Finder when not in Time Machine, and it turns out that if this mode is enabled when you start Time Machine, hidden files are displayed also within Time Machine.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;You need to do the following two commands in order to turn on the display of hidden files&lt;/p&gt;&lt;code&gt;$ defaults write com.apple.finder AppleShowAllFiles TRUE&lt;br /&gt;$ killall Finder&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;You may now restore your files. When you have restored the files and want to turn off display of hidden files (they clutter things up in the display), just do the same two commands again, but replace "TRUE" in the first command with "FALSE"&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3814465794591508617-874112096619398957?l=simenhag.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simenhag.blogspot.com/feeds/874112096619398957/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3814465794591508617&amp;postID=874112096619398957' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/874112096619398957'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/874112096619398957'/><link rel='alternate' type='text/html' href='http://simenhag.blogspot.com/2010/01/restoring-hidden-files-with-time.html' title='Restoring hidden files with Time HMachine'/><author><name>Simen</name><uri>http://www.blogger.com/profile/03692086797412006836</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_eZksEKBmWsg/STEgLrr-UfI/AAAAAAAAABk/X7LyInexu4Y/s1600-R/dd4d29f6c5573b1a5d1846148f997c36.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3814465794591508617.post-2166292831625879191</id><published>2010-01-15T15:58:00.002+01:00</published><updated>2010-02-13T00:30:53.400+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='spell check'/><category scheme='http://www.blogger.com/atom/ns#' term='snow leopard'/><title type='text'>Adding a dictionary not included with Snow Leopard</title><content type='html'>&lt;div&gt;As a native Norwegain speaking, I have had to install &lt;a href="http://people.ict.usc.edu/~leuski/cocoaspell/home.html"&gt;cocoAspell&lt;/a&gt; in order to have Norwegian spell checking. This has worked fairly well, but now it is possible to have spell checking in any language, as Snow Leopard comes preinstalled with Hunspell, an open solution for spell checking. Hunspell is used by a number of products, including OpenOffice.org, and as OpenOffice include spell checking for most languages, Snow Leopard is able to use those dictionaries for spell checking. In order to add spell checking for a language that is not already included in Snow Leopard is to go to &lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;       http://extensions.services.openoffice.org/dictionary&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;and download the dictionary for the language in question. Extract the zip-file copy or move all files with .dic and .aff endings to either ~/Library/Spelling (or only your user) or /Library/Spelling (for all users on that system). &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;For the changes to take effect, restart the programs you want to use with the new dictionary, or log out and back in.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3814465794591508617-2166292831625879191?l=simenhag.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simenhag.blogspot.com/feeds/2166292831625879191/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3814465794591508617&amp;postID=2166292831625879191' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/2166292831625879191'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/2166292831625879191'/><link rel='alternate' type='text/html' href='http://simenhag.blogspot.com/2010/01/adding-dictionary-not-included-with.html' title='Adding a dictionary not included with Snow Leopard'/><author><name>Simen</name><uri>http://www.blogger.com/profile/03692086797412006836</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_eZksEKBmWsg/STEgLrr-UfI/AAAAAAAAABk/X7LyInexu4Y/s1600-R/dd4d29f6c5573b1a5d1846148f997c36.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3814465794591508617.post-7582132811626177157</id><published>2010-01-10T11:21:00.003+01:00</published><updated>2010-01-10T11:27:25.690+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='password'/><category scheme='http://www.blogger.com/atom/ns#' term='os x'/><category scheme='http://www.blogger.com/atom/ns#' term='generator'/><title type='text'>Generate Passwords</title><content type='html'>Ahh, just what I need. An app that lets me access he built in password generator for OS X. No need to open Key Chaing or create a new user account. At &lt;a href="http://www.codepoetry.net/products/passwordassistant"&gt;CodePoetry&lt;/a&gt;, you can download this application for free.Very handy for all the times you need a new password.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3814465794591508617-7582132811626177157?l=simenhag.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simenhag.blogspot.com/feeds/7582132811626177157/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3814465794591508617&amp;postID=7582132811626177157' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/7582132811626177157'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/7582132811626177157'/><link rel='alternate' type='text/html' href='http://simenhag.blogspot.com/2010/01/generate-passwords.html' title='Generate Passwords'/><author><name>Simen</name><uri>http://www.blogger.com/profile/03692086797412006836</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_eZksEKBmWsg/STEgLrr-UfI/AAAAAAAAABk/X7LyInexu4Y/s1600-R/dd4d29f6c5573b1a5d1846148f997c36.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3814465794591508617.post-3192884944965957326</id><published>2009-11-12T16:17:00.002+01:00</published><updated>2009-11-12T16:21:48.409+01:00</updated><title type='text'>iPhone 3GS</title><content type='html'>&lt;p&gt;After quite a wait, I have finally managed to get hold of an iPhone 3GS. As this is equipment I use in my work, I thought it would be just fair that work paid for the phone. This has been a long process (almost 6 months), but the phone has finally arrived. Only trouble is that the phone is now waiting for me at work, and I am unable to get hold of it for a few days. Oh, the horror... I can not wait...&lt;/p&gt;&lt;p&gt;I will post more when I finally are able to actually hold the phone in my hands...&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3814465794591508617-3192884944965957326?l=simenhag.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simenhag.blogspot.com/feeds/3192884944965957326/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3814465794591508617&amp;postID=3192884944965957326' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/3192884944965957326'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/3192884944965957326'/><link rel='alternate' type='text/html' href='http://simenhag.blogspot.com/2009/11/iphone-3gs.html' title='iPhone 3GS'/><author><name>Simen</name><uri>http://www.blogger.com/profile/03692086797412006836</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_eZksEKBmWsg/STEgLrr-UfI/AAAAAAAAABk/X7LyInexu4Y/s1600-R/dd4d29f6c5573b1a5d1846148f997c36.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3814465794591508617.post-2754143289482365445</id><published>2009-09-02T20:21:00.003+02:00</published><updated>2009-09-02T20:31:05.276+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wikipedia'/><category scheme='http://www.blogger.com/atom/ns#' term='command line'/><title type='text'>Using the command line for looking up wikipedia entriesLi</title><content type='html'>&lt;a href="http://lifehacker.com/5329014/search-wikipedia-from-the-command-line"&gt;Lifehacker&lt;/a&gt; had a tip of how to look up an entry in Wikipedia using the command line. It uses the dig command line, and the syntax is as follows:&lt;br /&gt;&lt;br /&gt;     &lt;span style="font-family:courier new;"&gt;dig +short txt &lt;keyword&gt;.wp.dg.cx&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Just replace &lt;em&gt;&lt;keyword&gt;&lt;/em&gt; with what you want to look up. That will give you the Wikipedia summary back. Quite cool.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3814465794591508617-2754143289482365445?l=simenhag.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simenhag.blogspot.com/feeds/2754143289482365445/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3814465794591508617&amp;postID=2754143289482365445' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/2754143289482365445'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/2754143289482365445'/><link rel='alternate' type='text/html' href='http://simenhag.blogspot.com/2009/09/using-command-line-for-looking-up.html' title='Using the command line for looking up wikipedia entriesLi'/><author><name>Simen</name><uri>http://www.blogger.com/profile/03692086797412006836</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_eZksEKBmWsg/STEgLrr-UfI/AAAAAAAAABk/X7LyInexu4Y/s1600-R/dd4d29f6c5573b1a5d1846148f997c36.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3814465794591508617.post-7481794712917251061</id><published>2009-08-23T20:40:00.004+02:00</published><updated>2009-08-23T20:55:53.627+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='XCode'/><category scheme='http://www.blogger.com/atom/ns#' term='git'/><category scheme='http://www.blogger.com/atom/ns#' term='subversion'/><category scheme='http://www.blogger.com/atom/ns#' term='SCM'/><category scheme='http://www.blogger.com/atom/ns#' term='svn'/><title type='text'>Which XCode files should be under SCM?</title><content type='html'>&lt;p&gt;I am using XCode for some of my programming projects, and I would like to minimize the number of files in my SCM repository. The question is, which files are necessary for XCode to compile the project and which can be ignored?&lt;/p&gt;&lt;p&gt;You will of course need to add all your .h and .m files. The .xib (.nib) files should also be included. From what I have been able to &lt;a href="http://shanesbrain.net/2008/7/9/using-xcode-with-git"&gt;figure out&lt;/a&gt;, you could put the following into your ignore-file (.gitignore if you are using git, as I am at the moment).&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:courier new;"&gt;    # XCode files that can be ignored&lt;br /&gt;    build/*&lt;br /&gt;    *.pbxuser&lt;br /&gt;    *.mode1v3&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Also, it could be a good idea to add the following into your .gitattributes-file, in order to treat the project file as a binary file. This will make things easier if you get conflicts.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:courier new;"&gt;    *.pbxproj -crlf -diff -merge&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3814465794591508617-7481794712917251061?l=simenhag.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simenhag.blogspot.com/feeds/7481794712917251061/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3814465794591508617&amp;postID=7481794712917251061' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/7481794712917251061'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/7481794712917251061'/><link rel='alternate' type='text/html' href='http://simenhag.blogspot.com/2009/08/which-xcode-files-should-be-under-scm.html' title='Which XCode files should be under SCM?'/><author><name>Simen</name><uri>http://www.blogger.com/profile/03692086797412006836</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_eZksEKBmWsg/STEgLrr-UfI/AAAAAAAAABk/X7LyInexu4Y/s1600-R/dd4d29f6c5573b1a5d1846148f997c36.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3814465794591508617.post-3920533940206768381</id><published>2009-07-19T00:24:00.003+02:00</published><updated>2009-07-19T13:06:52.107+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='software update'/><category scheme='http://www.blogger.com/atom/ns#' term='terminal'/><title type='text'>OS X Terminal Software Update</title><content type='html'>&lt;p&gt;As I manage a couple of computers running Mac OS X (not all mine), keeping them up to date with the latest security and software updates can be a bit tiresome. This is especially true for machines I have to use remote control on in order to update. With slow Internet connections, the VNC-protocol can be a bit slow, in particular when the machine is also downloading huge security updates. &lt;br /&gt;&lt;br /&gt;To help with this, I just found out that is possible to update the machine remotely (or locally) using the terminal. All you have to do is fire up the terminal, optionally ssh to the remote machine, and type in the command &lt;/p&gt;&lt;p&gt;&lt;span style="font-family:courier new;"&gt;   sudo softwareupdate -i -a&lt;/span&gt;&lt;/p&gt;&lt;p&gt;This will download and install all available Apple updates. If you just want to see what updates are available, try&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:courier new;"&gt;   softwareupdate -l&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3814465794591508617-3920533940206768381?l=simenhag.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simenhag.blogspot.com/feeds/3920533940206768381/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3814465794591508617&amp;postID=3920533940206768381' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/3920533940206768381'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/3920533940206768381'/><link rel='alternate' type='text/html' href='http://simenhag.blogspot.com/2009/07/os-x-terminal-software-update.html' title='OS X Terminal Software Update'/><author><name>Simen</name><uri>http://www.blogger.com/profile/03692086797412006836</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_eZksEKBmWsg/STEgLrr-UfI/AAAAAAAAABk/X7LyInexu4Y/s1600-R/dd4d29f6c5573b1a5d1846148f997c36.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3814465794591508617.post-6040836596467015047</id><published>2009-04-28T22:13:00.003+02:00</published><updated>2009-04-28T22:21:21.699+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='curl'/><category scheme='http://www.blogger.com/atom/ns#' term='wget'/><category scheme='http://www.blogger.com/atom/ns#' term='external IP'/><title type='text'>Using the command line to get the external IP</title><content type='html'>&lt;p&gt;&lt;a href="http://lifehacker.com/5194123/display-your-public-ip-address-in-the-shell-prompt"&gt;Lifehacker&lt;/a&gt; hints on how to get your external IP-address from the command line. You can use either &lt;span style="font-family:courier new;"&gt;curl&lt;/span&gt; or &lt;span style="font-family:courier new;"&gt;wget&lt;/span&gt;, using either of the following commands:&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:courier new;"&gt;curl -s myip.dk |grep '"Box"' | egrep -o '[0-9.]+'&lt;/span&gt;&lt;/p&gt;&lt;p&gt;or&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:courier new;"&gt;wget -O - -q myip.dk |grep '"Box"' | egrep -o '[0-9.]+'&lt;/span&gt;&lt;/p&gt;&lt;p&gt;OS X do not come with wget preinstalled (it can be installed through e.g. Fink or MacPort), the curl version might be the most useful for OS X users.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3814465794591508617-6040836596467015047?l=simenhag.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simenhag.blogspot.com/feeds/6040836596467015047/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3814465794591508617&amp;postID=6040836596467015047' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/6040836596467015047'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/6040836596467015047'/><link rel='alternate' type='text/html' href='http://simenhag.blogspot.com/2009/04/using-command-line-to-get-external-ip.html' title='Using the command line to get the external IP'/><author><name>Simen</name><uri>http://www.blogger.com/profile/03692086797412006836</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_eZksEKBmWsg/STEgLrr-UfI/AAAAAAAAABk/X7LyInexu4Y/s1600-R/dd4d29f6c5573b1a5d1846148f997c36.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3814465794591508617.post-1326338317180592185</id><published>2009-04-08T15:05:00.003+02:00</published><updated>2009-04-08T15:11:33.992+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='bash'/><category scheme='http://www.blogger.com/atom/ns#' term='subdirectories'/><category scheme='http://www.blogger.com/atom/ns#' term='ls'/><title type='text'>Use 'ls' to only show directories</title><content type='html'>&lt;p&gt;&lt;a href="http://lifehacker.com/5174081/display-a-list-of-just-subdirectories"&gt;Lifehaker&lt;/a&gt; has a great tip on how to use 'ls' to only show the subdirectories at the command prompt. When you know about it, it is kind of obvious (if you know some simple regexp), but a it is still very handy. &lt;/p&gt;&lt;p&gt;So, what you do is to type&lt;/p&gt;&lt;p&gt;   &lt;span style="font-family:courier new;"&gt; ls -l | grep ^d&lt;/span&gt;&lt;/p&gt;&lt;p&gt;at the command prompt. This will only list your subdirectories. &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3814465794591508617-1326338317180592185?l=simenhag.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://lifehacker.com/5174081/display-a-list-of-just-subdirectories' title='Use &apos;ls&apos; to only show directories'/><link rel='replies' type='application/atom+xml' href='http://simenhag.blogspot.com/feeds/1326338317180592185/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3814465794591508617&amp;postID=1326338317180592185' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/1326338317180592185'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/1326338317180592185'/><link rel='alternate' type='text/html' href='http://simenhag.blogspot.com/2009/04/use-ls-to-only-show-directories.html' title='Use &apos;ls&apos; to only show directories'/><author><name>Simen</name><uri>http://www.blogger.com/profile/03692086797412006836</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_eZksEKBmWsg/STEgLrr-UfI/AAAAAAAAABk/X7LyInexu4Y/s1600-R/dd4d29f6c5573b1a5d1846148f997c36.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3814465794591508617.post-6204680731522983316</id><published>2009-04-04T00:49:00.003+02:00</published><updated>2009-04-04T00:58:38.417+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='line numbers'/><category scheme='http://www.blogger.com/atom/ns#' term='LaTeX'/><title type='text'>Line numbers in LaTeX</title><content type='html'>&lt;p&gt;As I am doing a bit of writing, I suddenly had the need to have line numbers in my LaTeX document. There is a really nice package called &lt;em&gt;lineno&lt;/em&gt; that takes care of this very nicely. All you have to do is include the package, and put the command &lt;em&gt;\linenumbers&lt;/em&gt; somewhere in your document. I placed the following two lines in my preamble:&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:courier new;"&gt;  \usepackage{lineno}&lt;br /&gt;  \linenumbers&lt;/span&gt;&lt;/p&gt;&lt;p&gt;You will find the documentation for lineno at &lt;a href="http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=lineno"&gt;ctan. &lt;/a&gt;&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3814465794591508617-6204680731522983316?l=simenhag.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simenhag.blogspot.com/feeds/6204680731522983316/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3814465794591508617&amp;postID=6204680731522983316' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/6204680731522983316'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/6204680731522983316'/><link rel='alternate' type='text/html' href='http://simenhag.blogspot.com/2009/04/line-numbers-in-latex.html' title='Line numbers in LaTeX'/><author><name>Simen</name><uri>http://www.blogger.com/profile/03692086797412006836</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_eZksEKBmWsg/STEgLrr-UfI/AAAAAAAAABk/X7LyInexu4Y/s1600-R/dd4d29f6c5573b1a5d1846148f997c36.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3814465794591508617.post-3860344134428366399</id><published>2009-02-28T14:20:00.001+01:00</published><updated>2009-02-28T14:20:24.900+01:00</updated><title type='text'>Printing with Quicksilver</title><content type='html'>&lt;p style="clear: both"&gt;&lt;a href="http://picasaweb.google.com/data/media/api/user/simen.hagen/albumid/5305181986274761233/photoid/5307837493218911394/1235827219933000?authkey=Gv1sRgCMa16Ybdmcfn9QE" class="image-link"&gt;&lt;img class="linked-to-original" src="http://picasaweb.google.com/data/media/api/user/simen.hagen/albumid/5305181986274761233/photoid/5307837492813980770/1235827219039000?authkey=Gv1sRgCMa16Ybdmcfn9QE" height="162" align="right" width="151" style=" display: inline; float: right; margin: 0 0 10px 10px;" /&gt;&lt;/a&gt;I find that I use Quicksilver for many things. I came over a &lt;a href="http://maclawstudents.com/blog/techniques/faster-printing-with-quicksilver/"&gt;post&lt;/a&gt; explaining how to print a file that is selected in the finder without opening preview or other programs. Quite handy.&lt;/p&gt;&lt;br class='final-break' style='clear: both' /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3814465794591508617-3860344134428366399?l=simenhag.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simenhag.blogspot.com/feeds/3860344134428366399/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3814465794591508617&amp;postID=3860344134428366399' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/3860344134428366399'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/3860344134428366399'/><link rel='alternate' type='text/html' href='http://simenhag.blogspot.com/2009/02/printing-with-quicksilver.html' title='Printing with Quicksilver'/><author><name>Simen</name><uri>http://www.blogger.com/profile/03692086797412006836</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_eZksEKBmWsg/STEgLrr-UfI/AAAAAAAAABk/X7LyInexu4Y/s1600-R/dd4d29f6c5573b1a5d1846148f997c36.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3814465794591508617.post-5209572253932126616</id><published>2009-02-21T10:38:00.001+01:00</published><updated>2009-02-21T10:38:42.130+01:00</updated><title type='text'>Clear Growl Notifications</title><content type='html'>&lt;p style="clear: both"&gt;&lt;a href="http://picasaweb.google.com/data/media/api/user/simen.hagen/albumid/5305181986274761233/photoid/5305182775979732978/1235209120589000?authkey=9c8czdDaWsY" class="image-link"&gt;&lt;img class="linked-to-original" src="http://picasaweb.google.com/data/media/api/user/simen.hagen/albumid/5305181986274761233/photoid/5305182771846438738/1235209119612000?authkey=9c8czdDaWsY" height="128" align="left" width="128" style=" display: inline; float: left; margin: 0 10px 10px 0;" /&gt;&lt;/a&gt;Just as &lt;a href="http://www.macworld.com/article/138864/2009/02/cleargrowl.html?lsrc=rss_main"&gt;this&lt;/a&gt; article over at Macworld describes, I sometimes get a lot of Growl messages on my screen. Removing them is very tedious, but by pressing option as you press close on one of the messages, all messages are removed. Very handy. &lt;/p&gt;&lt;br class='final-break' style='clear: both' /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3814465794591508617-5209572253932126616?l=simenhag.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simenhag.blogspot.com/feeds/5209572253932126616/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3814465794591508617&amp;postID=5209572253932126616' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/5209572253932126616'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/5209572253932126616'/><link rel='alternate' type='text/html' href='http://simenhag.blogspot.com/2009/02/clear-growl-notifications.html' title='Clear Growl Notifications'/><author><name>Simen</name><uri>http://www.blogger.com/profile/03692086797412006836</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_eZksEKBmWsg/STEgLrr-UfI/AAAAAAAAABk/X7LyInexu4Y/s1600-R/dd4d29f6c5573b1a5d1846148f997c36.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3814465794591508617.post-6355573804269234553</id><published>2009-02-18T22:14:00.000+01:00</published><updated>2009-02-18T22:16:46.083+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='screen'/><category scheme='http://www.blogger.com/atom/ns#' term='keyboard'/><category scheme='http://www.blogger.com/atom/ns#' term='sleep'/><title type='text'>Turn off the screen from the keybard</title><content type='html'>&lt;p style="clear: both"&gt;At &lt;a href="http://www.macosxhints.com/article.php?story=20080407091837231"&gt;Mac OS X Hints&lt;/a&gt;, they have a tip for sleeping the display of your mac from your keyboard. By pressing the keyboard shortcut Shift-Control-Eject, the screen goes to sleep. Very handy for sleeping your display when your laptop is on battery.&lt;/p&gt;&lt;br class='final-break' style='clear: both' /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3814465794591508617-6355573804269234553?l=simenhag.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simenhag.blogspot.com/feeds/6355573804269234553/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3814465794591508617&amp;postID=6355573804269234553' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/6355573804269234553'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/6355573804269234553'/><link rel='alternate' type='text/html' href='http://simenhag.blogspot.com/2009/02/turn-off-screen-from-keybard.html' title='Turn off the screen from the keybard'/><author><name>Simen</name><uri>http://www.blogger.com/profile/03692086797412006836</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_eZksEKBmWsg/STEgLrr-UfI/AAAAAAAAABk/X7LyInexu4Y/s1600-R/dd4d29f6c5573b1a5d1846148f997c36.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3814465794591508617.post-9184817761111721984</id><published>2009-02-09T16:33:00.002+01:00</published><updated>2009-02-18T14:15:28.491+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='epoch timer'/><category scheme='http://www.blogger.com/atom/ns#' term='unix'/><category scheme='http://www.blogger.com/atom/ns#' term='date'/><title type='text'>Fun with date</title><content type='html'>&lt;p style="clear: both"&gt;On Sat Feb 14 00:31:30 CET 2009 (Norwegian time) the epoch timer in unix-systems will reach the magical number 1234567890. If you are on a unix-like system (e.g. a Linux system), you can check when this will happen for you by typing in this command:&lt;/p&gt;&lt;p style="clear: both"&gt; date -d @1234567890&lt;/p&gt;&lt;p style="clear: both"&gt;You can also se a count-d own at &lt;a href="http://coolepochcountdown.com/"&gt;http://coolepochcountdown.com/.&lt;/a&gt;&lt;/p&gt;&lt;p style="clear: both"&gt;I think this is kind of cool :-).&lt;/p&gt;&lt;p style="clear: both"&gt;&lt;/p&gt;&lt;br class='final-break' style='clear: both' /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3814465794591508617-9184817761111721984?l=simenhag.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simenhag.blogspot.com/feeds/9184817761111721984/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3814465794591508617&amp;postID=9184817761111721984' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/9184817761111721984'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/9184817761111721984'/><link rel='alternate' type='text/html' href='http://simenhag.blogspot.com/2009/02/fun-with-date.html' title='Fun with date'/><author><name>Simen</name><uri>http://www.blogger.com/profile/03692086797412006836</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_eZksEKBmWsg/STEgLrr-UfI/AAAAAAAAABk/X7LyInexu4Y/s1600-R/dd4d29f6c5573b1a5d1846148f997c36.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3814465794591508617.post-3214155461687869717</id><published>2009-01-12T16:02:00.005+01:00</published><updated>2009-01-12T16:17:31.034+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sync'/><category scheme='http://www.blogger.com/atom/ns#' term='iPod'/><title type='text'>Connecting an iPod without syncing</title><content type='html'>I am often connecting my iPod to my work computer, either to charge or to listen to or watch something on the iPod. It always bugs my, however, that the iPod always wants to sync with the iTunes Library on the work machine. I sync at home, and do not want to sync with the machine at work. &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://lifehacker.com/5125182/a-diy-itunes-blocker"&gt;Lifehacker&lt;/a&gt; has an article on a cable with a switch that can be used to turn on or off syncing the iPod with iTunes. At almost $25, I think that is a bit pricy. It turns out that you can hold down command-option (cmd-alt) when you insert your iPod, and hold them down until the iPod shows up in your iTunes source list. It will not sync. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;For windows users I think the key combination is control-shift, but it should work the same way. &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3814465794591508617-3214155461687869717?l=simenhag.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simenhag.blogspot.com/feeds/3214155461687869717/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3814465794591508617&amp;postID=3214155461687869717' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/3214155461687869717'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/3214155461687869717'/><link rel='alternate' type='text/html' href='http://simenhag.blogspot.com/2009/01/connecting-ipod-without-syncing.html' title='Connecting an iPod without syncing'/><author><name>Simen</name><uri>http://www.blogger.com/profile/03692086797412006836</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_eZksEKBmWsg/STEgLrr-UfI/AAAAAAAAABk/X7LyInexu4Y/s1600-R/dd4d29f6c5573b1a5d1846148f997c36.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3814465794591508617.post-307376852279664921</id><published>2008-12-18T14:15:00.004+01:00</published><updated>2008-12-18T14:25:42.274+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='late 2008 MacBook Pro'/><category scheme='http://www.blogger.com/atom/ns#' term='toast'/><category scheme='http://www.blogger.com/atom/ns#' term='dvd-r'/><title type='text'>Toast does not work on my late 2008 MacBook Pro</title><content type='html'>I recently got a new MacBook Pro. (late 2008 edition) I went all the way maxing out both harddisk and CPU. So far I am mostly very happy with it. It is fast (really fast), has a very nice screen (I really like the new glossy screens), and the keyboard is also very nice. &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;There is, however, a little problem. I am unable to write to DVD-R(W) with Toast. Toast works with DVD+R(W), and I am able to write -R(W) from Disk Utility. It seems as the problem is with Toast. It is very annoying, as it adds another step to my workflow. I do hope they will fix it soon, but for now I guess I can live with doing the final burn in Disk Utility.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3814465794591508617-307376852279664921?l=simenhag.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simenhag.blogspot.com/feeds/307376852279664921/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3814465794591508617&amp;postID=307376852279664921' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/307376852279664921'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/307376852279664921'/><link rel='alternate' type='text/html' href='http://simenhag.blogspot.com/2008/12/toast-does-not-work-on-my-late-2008.html' title='Toast does not work on my late 2008 MacBook Pro'/><author><name>Simen</name><uri>http://www.blogger.com/profile/03692086797412006836</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_eZksEKBmWsg/STEgLrr-UfI/AAAAAAAAABk/X7LyInexu4Y/s1600-R/dd4d29f6c5573b1a5d1846148f997c36.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3814465794591508617.post-6233736398525919952</id><published>2008-12-03T13:38:00.003+01:00</published><updated>2008-12-03T14:12:11.039+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='boot-args'/><category scheme='http://www.blogger.com/atom/ns#' term='nvram'/><category scheme='http://www.blogger.com/atom/ns#' term='os x'/><category scheme='http://www.blogger.com/atom/ns#' term='verbose'/><category scheme='http://www.blogger.com/atom/ns#' term='boot'/><title type='text'>Booting with non-verbose mode</title><content type='html'>&lt;p&gt;For some reason, my iMac was shipped with verbose booting turned on. In this mode, all boot messages that the core Unix-system within OS X creates, are displayed as the system boots up. This is of course completely harmless, but keeping with the nice look and feel of the Mac, it has annoyed med for quite some time.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I finally got around to try to figure out what the problem was. It turns out that there is a boot parameter you can use to turn this feature on or off (really just on, the absences of this parameter is the same as off). It is a parameter in nvram, which can be set or displayed with the command “nvram”. To see what the parameters are, go to the terminal, and type&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:courier new;"&gt;   sudo nvram –p&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;and look for “boot-args” (or type &lt;span style="font-family:courier new;"&gt;sudo nvram –p | grep “boot-args”&lt;/span&gt;). In my case the boot-argswhere “-v”, for verbose.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;To turn this off, just type&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:courier new;"&gt;   sudo nvram boot-args=&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;and your Mac should be booting in normal mode, without displaying all these messages. If you need to see the messages again, go back to the terminal and type&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:courier new;"&gt;   sudo nvram boot-args="-v"&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;and it is back to booting in verbose mode. &lt;br /&gt;&lt;p&gt;If you would only like to turn on verbose mode for this one boot, you could press and hold command-v when you turn on the system, and it will boot verbose mode only this one time, reverting to normal (graphical) boot the next.&lt;br /&gt;&lt;/p&gt;Why my iMac was shipped with the verbose mode on I do not know, but finally it is back to normal.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3814465794591508617-6233736398525919952?l=simenhag.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simenhag.blogspot.com/feeds/6233736398525919952/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3814465794591508617&amp;postID=6233736398525919952' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/6233736398525919952'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/6233736398525919952'/><link rel='alternate' type='text/html' href='http://simenhag.blogspot.com/2008/12/booting-with-non-verbose-mode.html' title='Booting with non-verbose mode'/><author><name>Simen</name><uri>http://www.blogger.com/profile/03692086797412006836</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_eZksEKBmWsg/STEgLrr-UfI/AAAAAAAAABk/X7LyInexu4Y/s1600-R/dd4d29f6c5573b1a5d1846148f997c36.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3814465794591508617.post-2435003049919730374</id><published>2008-11-27T22:27:00.002+01:00</published><updated>2010-07-19T22:35:31.585+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='harddisk'/><category scheme='http://www.blogger.com/atom/ns#' term='clean'/><category scheme='http://www.blogger.com/atom/ns#' term='build'/><category scheme='http://www.blogger.com/atom/ns#' term='macport'/><category scheme='http://www.blogger.com/atom/ns#' term='cleanup'/><title type='text'>Keeping MacPorts clean</title><content type='html'>In a &lt;a href="http://simenhag.blogspot.com/2008/11/cleaning-up-macports.html"&gt;previous post&lt;/a&gt;, I wrote about how to clean up your installation of MacPorts. After haveing gone through the steps previously described, it might be a good idea to keep your installation of MacPorts clean. &lt;br /&gt;&lt;br /&gt;It turns out that there is a way to keep the installation clean all the time. If you run the command&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;sudo port -nuf upgrade outdated&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;in a command shell, MacPorts will uninstall any outdated versions of any packaged it upgrades. We do need to force (-f) the installation, as MacPorts believes that you need the old versions. When checking for dependencies, it does not take the version into account. Since we are installing a new version, this is OK.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;UPDATE:&lt;/b&gt;&amp;nbsp;&lt;i&gt;jmr&lt;/i&gt;&amp;nbsp;pointed out in a comment that it is no longer necessary to the "nf" flags, as the bugs that made them&amp;nbsp;necessary&amp;nbsp;have been fixed. See his comment for more details.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3814465794591508617-2435003049919730374?l=simenhag.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simenhag.blogspot.com/feeds/2435003049919730374/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3814465794591508617&amp;postID=2435003049919730374' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/2435003049919730374'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/2435003049919730374'/><link rel='alternate' type='text/html' href='http://simenhag.blogspot.com/2008/11/keeping-macports-clean.html' title='Keeping MacPorts clean'/><author><name>Simen</name><uri>http://www.blogger.com/profile/03692086797412006836</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_eZksEKBmWsg/STEgLrr-UfI/AAAAAAAAABk/X7LyInexu4Y/s1600-R/dd4d29f6c5573b1a5d1846148f997c36.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3814465794591508617.post-7123152455938977816</id><published>2008-11-20T15:06:00.006+01:00</published><updated>2008-11-27T22:42:07.135+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='login'/><category scheme='http://www.blogger.com/atom/ns#' term='password'/><category scheme='http://www.blogger.com/atom/ns#' term='vista'/><category scheme='http://www.blogger.com/atom/ns#' term='expire'/><category scheme='http://www.blogger.com/atom/ns#' term='windows'/><title type='text'>Stop password expiry in Windwos Vista</title><content type='html'>&lt;p&gt;By default, Windows Vista will prompt you to change your password every 42 days. This is very annoying, but at &lt;a href="http://techblissonline.com/stop-change-password-expiration-windows-vista/"&gt;techblissonline.com&lt;/a&gt;, they have a solution. Just start a command prompt as administrator and type in the following:&lt;br /&gt;&lt;br /&gt;      &lt;span style="font-family:courier new;"&gt;    net accounts /maxpwage:unlimited&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;There should be no more need to change the password unless you choose to your self. If you would just like to change the number of days between password changes, type in the number of days (between 0 and 999) instead of "unlimited".&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3814465794591508617-7123152455938977816?l=simenhag.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simenhag.blogspot.com/feeds/7123152455938977816/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3814465794591508617&amp;postID=7123152455938977816' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/7123152455938977816'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/7123152455938977816'/><link rel='alternate' type='text/html' href='http://simenhag.blogspot.com/2008/11/stop-password-expiry-in-windwos-vista.html' title='Stop password expiry in Windwos Vista'/><author><name>Simen</name><uri>http://www.blogger.com/profile/03692086797412006836</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_eZksEKBmWsg/STEgLrr-UfI/AAAAAAAAABk/X7LyInexu4Y/s1600-R/dd4d29f6c5573b1a5d1846148f997c36.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3814465794591508617.post-971699762271077701</id><published>2008-11-19T19:13:00.005+01:00</published><updated>2008-11-27T22:42:31.654+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='help'/><category scheme='http://www.blogger.com/atom/ns#' term='leopard'/><category scheme='http://www.blogger.com/atom/ns#' term='window'/><title type='text'>Making Lepoards help window go behind other windows</title><content type='html'>&lt;p&gt;On of the things that &lt;em&gt;really&lt;/em&gt; bug me with Leopard, is that the help window always stays on top of other windows. I found this tip (and I should have written down where I found it) that allow other windows to go on top of the help window. &lt;br /&gt;&lt;br /&gt;If you type the following command in a terminal window&lt;br /&gt;&lt;br /&gt;      &lt;span style="font-family:courier new;"&gt;defaults write com.apple.helpviewer NormalWindow -bool true&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;the help window should fall behind other windows. You will have to click on the window to get it back to the front. In my world, this is &lt;em&gt;so&lt;/em&gt; much better. &lt;br /&gt;&lt;br /&gt;If you would like to have the old behavior back (the help window always on top) just use the same command, but change "true" at the end to "false".&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3814465794591508617-971699762271077701?l=simenhag.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simenhag.blogspot.com/feeds/971699762271077701/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3814465794591508617&amp;postID=971699762271077701' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/971699762271077701'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/971699762271077701'/><link rel='alternate' type='text/html' href='http://simenhag.blogspot.com/2008/11/making-lepoards-help-window-go-behind.html' title='Making Lepoards help window go behind other windows'/><author><name>Simen</name><uri>http://www.blogger.com/profile/03692086797412006836</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_eZksEKBmWsg/STEgLrr-UfI/AAAAAAAAABk/X7LyInexu4Y/s1600-R/dd4d29f6c5573b1a5d1846148f997c36.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3814465794591508617.post-5327165650553995675</id><published>2008-11-10T00:48:00.015+01:00</published><updated>2008-11-25T16:35:35.415+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='harddisk'/><category scheme='http://www.blogger.com/atom/ns#' term='clean'/><category scheme='http://www.blogger.com/atom/ns#' term='build'/><category scheme='http://www.blogger.com/atom/ns#' term='macport'/><category scheme='http://www.blogger.com/atom/ns#' term='cleanup'/><title type='text'>Cleaning up MacPorts</title><content type='html'>&lt;a style="" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_eZksEKBmWsg/SRi2WGQmGqI/AAAAAAAAABY/QpU9rOvqR1M/s1600-h/macports-logo.png"&gt;&lt;img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer; width: 183px; height: 70px;" src="http://1.bp.blogspot.com/_eZksEKBmWsg/SRi2WGQmGqI/AAAAAAAAABY/QpU9rOvqR1M/s320/macports-logo.png" alt="" id="BLOGGER_PHOTO_ID_5267160254963391138" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;I am running MacPorts on my laptop. Unfortunately, the laptop have a limited amount of space on the hard drive, so I constantly have to keep trimming away things that I do not need.&lt;br /&gt;&lt;br /&gt;I noticed that my MacPort folder was growing quite a bit, and I wondered if it would be possible to trim what was in the MacPorts folder without removing any of the applications? After searching a little on the net, I discovered a few interesting things.&lt;br /&gt;&lt;br /&gt;It seems as though MacPorts, when upgrading to a new version of an application, leaves the old version behind. After a while, this will eat up quite a bit of your precious hard disk space. So in order to see what you have installed on your machine, type in the following:&lt;br /&gt;&lt;br /&gt;    &lt;span style="font-family:courier new;"&gt;port installed &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;There will probably be a lot of ports installed, and only the ones  marked "(active)" are used. The rest may be removed. Before doing so it might be fun to see just how much space MacPorts is using. I run the command&lt;br /&gt;&lt;br /&gt;    &lt;span style="font-family:courier new;"&gt;du -sh /opt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This will give you  an aproximate value for the disk space occupied by MacPorts.  On my machine (which already have been cleaned once) it reports 2.5G. The next step is now to remove all the old versions. I would start out by doing a "clean" for all the installed ports. You do this by typing&lt;br /&gt;&lt;br /&gt;           &lt;span style="font-family:courier new;"&gt;sudo port clean --all installed&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This erases all temporary files in that are being generated during a build of an application. Only things that can be rebuilt are removed in this step. For fun you could run the "du" command again, to see what your savings are. It might not be much at the moment, but on my system I now ended up with 2.7G, a saving of 200MB.&lt;br /&gt;&lt;br /&gt;Now for the actual removal of the old versions. This is accomplished by this command:&lt;br /&gt;&lt;br /&gt;    &lt;span style="font-family:courier new;"&gt;sudo port -f uninstall inactive&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;My first attempt was a bit longer, but it also did the trick:&lt;br /&gt;&lt;br /&gt;   &lt;span style="font-family:courier new;"&gt;port installed | grep -v "(active)" | while read i; do sudo port -f uninstall $i; done&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This will give you an error message as the first line of output is "The following ports are currently installed:", and since there are no port with that name, it will fail, but continue. This is harmless, and I decided that creating a fix for this would make the command line more complicated that necessary.  Anyway, after running the first command, the "du" command showed my /opt directory to be 2.6G. I had run this series of commands before, so my savings were not that grate this time around, but the first time I saved almost 1.5G.&lt;br /&gt;&lt;br /&gt;I hope this was to some help for some of you.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3814465794591508617-5327165650553995675?l=simenhag.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simenhag.blogspot.com/feeds/5327165650553995675/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3814465794591508617&amp;postID=5327165650553995675' title='20 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/5327165650553995675'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/5327165650553995675'/><link rel='alternate' type='text/html' href='http://simenhag.blogspot.com/2008/11/cleaning-up-macports.html' title='Cleaning up MacPorts'/><author><name>Simen</name><uri>http://www.blogger.com/profile/03692086797412006836</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_eZksEKBmWsg/STEgLrr-UfI/AAAAAAAAABk/X7LyInexu4Y/s1600-R/dd4d29f6c5573b1a5d1846148f997c36.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_eZksEKBmWsg/SRi2WGQmGqI/AAAAAAAAABY/QpU9rOvqR1M/s72-c/macports-logo.png' height='72' width='72'/><thr:total>20</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3814465794591508617.post-8108774943700485525</id><published>2008-11-09T20:35:00.002+01:00</published><updated>2008-11-09T23:07:10.660+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Introduction'/><title type='text'>The first post</title><content type='html'>This is my first post on this blog, or any blog for that matter. I have used a tumblr blog for short and interesting link etc. but here I will try to write longer texts. &lt;br /&gt;&lt;br /&gt;The content of the blog will be a mix of what I happen to find interessting at the moment. Since I am very interested in computers, that will probably be a topic I will return to as the time goes by. I will post hint and triks that I come across. &lt;br /&gt;&lt;br /&gt;I am mostly using Macs at the moment, but I also use Linux and Windows machines quite a bit, so thre might be a mix of information here. &lt;br /&gt;&lt;br /&gt;So, lets get on with it. Lets start blogging. :-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3814465794591508617-8108774943700485525?l=simenhag.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simenhag.blogspot.com/feeds/8108774943700485525/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3814465794591508617&amp;postID=8108774943700485525' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/8108774943700485525'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3814465794591508617/posts/default/8108774943700485525'/><link rel='alternate' type='text/html' href='http://simenhag.blogspot.com/2008/11/first-post.html' title='The first post'/><author><name>Simen</name><uri>http://www.blogger.com/profile/03692086797412006836</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_eZksEKBmWsg/STEgLrr-UfI/AAAAAAAAABk/X7LyInexu4Y/s1600-R/dd4d29f6c5573b1a5d1846148f997c36.jpg'/></author><thr:total>1</thr:total></entry></feed>
