<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <id>http://nohejl.name/</id>
  <title>Adam Nohejl: Unblog</title>
  <updated>2012-03-02T23:00:00Z</updated>
  <link rel="alternate" href="http://nohejl.name/"/>
  <link rel="self" href="http://nohejl.name/atom.xml"/>
  <author>
    <name>Adam Nohejl</name>
    <uri>http://nohejl.name</uri>
  </author>
  <entry>
    <id>tag:nohejl.name,2012-03-03:/2012/03/03/remove-attachments-workaround-for-apple-mail/</id>
    <title type="html">Workaround for removing attachments in Mac OS X Lion Mail.app</title>
    <published>2012-03-02T23:00:00Z</published>
    <updated>2012-03-03T20:21:10Z</updated>
    <link rel="alternate" href="http://nohejl.name/2012/03/03/remove-attachments-workaround-for-apple-mail/"/>
    <content type="html">&lt;p&gt;Since Mac OS X 10.7 &amp;ldquo;Lion&amp;rdquo; a bug in Apple Mail prevents you from removing attachments from certain messages, it most often affects sent messages and Mail also does not display the paperclip icon for them in the message list&amp;ndash;as if they didn&amp;rsquo;t have any attachments.&lt;/p&gt;

&lt;p&gt;&lt;img src="/images/2012/03/03/cannot-remove-attachments.png" alt="Since Mac OS X Lion Mail does not recognize that some messages have attachments and cannot remove them." title="Since Mac OS X Lion Mail does not recognize that some messages have attachments and cannot remove them." /&gt;&lt;/p&gt;

&lt;p&gt;I &lt;a href="http://openradar.appspot.com/radar?id=1313404"&gt;reported&lt;/a&gt; the bug to Apple in August 2011, as have many others, but they still haven&amp;rsquo;t fixed it. There are also many threads about the problem on Apple Discussions&lt;sup id="fnref:1"&gt;&lt;a href="#fn:1" rel="footnote"&gt;1&lt;/a&gt;&lt;/sup&gt; and a simple workaround &lt;a href="https://discussions.apple.com/message/17747981#17747981"&gt;emerged&lt;/a&gt; from one of them:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;Select all messages from which you want to remove attachments but Mail doesn&amp;rsquo;t allow you to do so. (It does not matter whether other messages without attachments are selected too.)&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Along with them, select one message from which Mail &lt;em&gt;allows&lt;/em&gt; you to remove attachments. (You can recognize such message by a paperclip icon the attachment column in the message list. You can create a special mailbox with several copies of such a message to always have it ready. As Mail allows you to select multiple mailboxes in the left mailbox column, you can select this one and the mailbox from which you can delete messages and then select messages from both in the message list.)&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;From the &lt;em&gt;Message&lt;/em&gt; menu choose &lt;em&gt;Remove Attachments&lt;/em&gt; (the menu item is now enabled).&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Voil&#224;: attachments removed. I&amp;rsquo;m glad that a workaround exists as people keep asking me about this and I keep explaining, that I cannot fix bugs for Apple.&lt;/p&gt;

&lt;div class="footnotes"&gt;
  &lt;ol&gt;
    &lt;li id="fn:1"&gt;
      &lt;p&gt;At least ten threads about this problem: &lt;a href="https://discussions.apple.com/thread/3199150"&gt;1&lt;/a&gt; &lt;a href="https://discussions.apple.com/thread/3212050"&gt;2&lt;/a&gt; &lt;a href="https://discussions.apple.com/thread/3217339"&gt;3&lt;/a&gt; &lt;a href="https://discussions.apple.com/thread/3226400"&gt;4&lt;/a&gt; &lt;a href="https://discussions.apple.com/thread/3250723"&gt;5&lt;/a&gt; &lt;a href="https://discussions.apple.com/thread/3268841"&gt;6&lt;/a&gt; &lt;a href="https://discussions.apple.com/thread/3284935"&gt;7&lt;/a&gt; &lt;a href="https://discussions.apple.com/thread/3308790"&gt;8&lt;/a&gt; &lt;a href="https://discussions.apple.com/thread/3404569"&gt;9&lt;/a&gt; &lt;a href="https://discussions.apple.com/thread/3643883"&gt;10&lt;/a&gt;.&lt;a href="#fnref:1" rev="footnote"&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
    &lt;/li&gt;
  &lt;/ol&gt;
&lt;/div&gt;
</content>
    <summary type="html">Since Mac OS X Lion you cannot remove attachments from some messages in Apple Mail. Here's a simple workaround.</summary>
  </entry>
  <entry>
    <id>tag:nohejl.name,2011-12-08:/2011/12/08/matfyz-ohlednuti-za-zrcadlo/</id>
    <title type="html">Matfyz: Ohl&#233;dnut&#237; za zrcadlo</title>
    <published>2011-12-07T23:00:00Z</published>
    <updated>2011-12-08T12:21:36Z</updated>
    <link rel="alternate" href="http://nohejl.name/2011/12/08/matfyz-ohlednuti-za-zrcadlo/"/>
    <content type="html">&lt;p&gt;&#8222;Pane magist&#345;e, nep&#345;ednesl byste na promoci &#345;e&#269;? Rodi&#269;e to maj&#237; r&#225;di,&#8220;  zeptala se m&#283; studijn&#237; referentka a bylo to poprv&#233;, co m&#283; n&#283;kdo takhle oslovil.&lt;/p&gt;

&lt;p&gt;&lt;a href="/pdf/Promoce-MFF-UK-2011-Adam-Nohejl.pdf"&gt;&#344;e&#269; za absolventy oboru Informatika na Matematicko-fyzik&#225;ln&#237; fakult&#283; Univerzity Karlovy&lt;/a&gt; (PDF).&lt;/p&gt;

&lt;div class="figure"&gt;
	&lt;img src="/images/2011/12/08/chessboard.png" width="378" height="256" alt="John Tenniel: p&#367;vodn&#237; ilustrace k Lewis Carrol: Through the looking glass (&#269;esky Za zrcadlem)" title="John Tenniel: p&#367;vodn&#237; ilustrace k Lewis Carrol: Through the looking glass (&#269;esky Za zrcadlem)" /&gt;
	&lt;div class="caption"&gt;
		&lt;div&gt;&#8222;Za zrcadlem se nacha&#769;zi&#769; sve&#780;t abstraktni&#769;ch symbolu&#778; opros&#780;te&#780;ny&#769;ch od papi&#769;ru a inkoustu, sva&#769;zany&#769;ch jen pa&#769;r axiomy a pravidly.&#8220;&lt;/div&gt;
	&lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;Viz t&#233;&#382; jin&#233; &lt;a href="/tags/matfyz/"&gt;matfyz&#225;ck&#233; z&#225;le&#382;itosti&lt;/a&gt; a &lt;a href="/cv/"&gt;moje CV&lt;/a&gt;.&lt;/p&gt;
</content>
    <summary type="html">Slavnostn&#237; &#345;e&#269; za studenty k magistersk&#233; promoci (Informatika na Matematicko-fyzik&#225;ln&#237; fakult&#283; Univerzity Karlovy)</summary>
  </entry>
  <entry>
    <id>tag:nohejl.name,2011-10-20:/2011/10/20/how-to-make-xcode-4-create-headers-for-c-files/</id>
    <title type="html">How to make Xcode 4 create headers for C files</title>
    <published>2011-10-19T22:00:00Z</published>
    <updated>2011-10-20T08:15:30Z</updated>
    <link rel="alternate" href="http://nohejl.name/2011/10/20/how-to-make-xcode-4-create-headers-for-c-files/"/>
    <content type="html">&lt;p&gt;If you have upgraded to Xcode 4.x and miss the possibility to create C/C++ implementation (&lt;code&gt;.c&lt;/code&gt; or &lt;code&gt;.cpp&lt;/code&gt;) and header (&lt;code&gt;.h&lt;/code&gt;) files in one step as it used to be possible in Xcode 3.x, download these Xcode file template (&lt;a href="/files/2011/10/20/c-file-with-header-xcode4-template.zip"&gt;for C&lt;/a&gt; and &lt;a href="/files/2011/10/20/cpp-file-with-header-xcode4-template.zip"&gt;for C++&lt;/a&gt;), and place the expanded &lt;code&gt;.xctemplate&lt;/code&gt; directories into your &lt;code&gt;/Developer/Library/Xcode/Templates/File Templates/C and C++&lt;/code&gt; directory.&lt;/p&gt;

&lt;p&gt;That&amp;rsquo;s it. The template will show up as additional options when creating a C/C++ file. You don&amp;rsquo;t even have to restart Xcode.&lt;/p&gt;
</content>
    <summary type="html">Shows how to restore the ability to create header files along with C files in Xcode 4.</summary>
  </entry>
  <entry>
    <id>tag:nohejl.name,2011-08-29:/2011/08/29/physalis-peruviana-year-2/</id>
    <title type="html">Physalis peruviana: year 2</title>
    <published>2011-08-28T22:00:00Z</published>
    <updated>2011-11-13T11:17:15Z</updated>
    <link rel="alternate" href="http://nohejl.name/2011/08/29/physalis-peruviana-year-2/"/>
    <content type="html">&lt;p&gt;Two years ago I&amp;rsquo;ve bought a pack of extremely tasty and pricey dried berries sold as &lt;a href="http://lifefood.cz/strava/incan-goldenberries-physalis.html"&gt;Incan Goldenberries&lt;/a&gt;. It&amp;rsquo;s hard to liken the taste to something else, but its both tart and sweet and with a little special something. As I&amp;rsquo;ve found out, the plant is called &lt;a href="http://en.wikipedia.org/wiki/Physalis_peruviana"&gt;physalis peruviana&lt;/a&gt;, or cape gooseberry. The berries were full of small seeds. I&amp;rsquo;ve saved one berry, extracted a few seeds and planted them the next spring. Plants about a meter high remotely similar to tomato have grown from the seeds. There were &lt;a href="/2010/07/31/my-garden/"&gt;only a few unripe fruits&lt;/a&gt;. I&amp;rsquo;ve dug it out in the autumn, kept it in the basement, and replanted it this spring.&lt;/p&gt;

&lt;p&gt;I&amp;rsquo;ve had a first few ripe fruits. There will be less than ten of them in total, and they&amp;rsquo;re delicious. They taste like pure sunlight with a bit of tomato.&lt;/p&gt;

&lt;p&gt;P&#225;r slov &#269;esky: Tohle je &#269;&#225;st m&#233; prvn&#237; &#250;rody bobul&#237; mochyn&#283; peru&#225;nsk&#233;. Rostlinu jsem vyp&#283;stoval ze sem&#237;nek koupen&#253;ch su&#353;en&#253;ch bobul&#237; (&lt;a href="http://lifefood.cz/strava/incan-goldenberries-physalis.html"&gt;Incan Goldenberries&lt;/a&gt;, &#250;dajn&#283; jsou stra&#353;n&#283; zdrav&#233;, ale hlavn&#283; jsou stra&#353;n&#283; dobr&#233;) a p&#345;ezimoval ve sklep&#283;. Je&#353;t&#283; nev&#237;m, co s n&#237; ud&#283;l&#225;m tuhle zimu. Po vyta&#382;en&#237; ze sklepa byla letos dost zmaten&#225; (&#269;&#225;ste&#269;n&#233; opad&#225;n&#237; list&#367;, zaschnut&#237; n&#283;kter&#253;ch v&#283;tv&#237;), ale boj&#237;m se, &#382;e venku by nep&#345;e&#382;ila.&lt;/p&gt;

&lt;div class="figure"&gt;
	&lt;a target="photo" href="/images/2011/08/29/physalis-closed.jpg" title="Physalis peruviana fruit, closed"&gt;&lt;img width="384" height="288" alt="Physalis peruviana fruit, closed" src="/images/2011/08/29/physalis-closed-thumb.jpg" /&gt;&lt;/a&gt;
	&lt;a target="photo" href="/images/2011/08/29/physalis-open.jpg" title="Physalis peruviana fruit, open"&gt;&lt;img width="384" height="288" alt="Physalis peruviana fruit, open" src="/images/2011/08/29/physalis-open-thumb.jpg" /&gt;&lt;/a&gt;
	&lt;a target="photo" href="/images/2011/08/29/physalis-section.jpg" title="Physalis peruviana fruit, section"&gt;&lt;img width="288" height="384" alt="Physalis peruviana fruit, section" src="/images/2011/08/29/physalis-section-thumb.jpg" /&gt;&lt;/a&gt;
	&lt;div class="caption"&gt;Physalis peruviana fruits: closed, open, section&lt;/div&gt;
&lt;/div&gt;
</content>
    <summary type="html">Photos of my first physalis peruviana fruits</summary>
  </entry>
  <entry>
    <id>tag:nohejl.name,2011-08-28:/2011/08/28/novopacke-gingers-beer/</id>
    <title type="html">Novopack&#233; Gingers Beer: etiketa &#345;&#237;k&#225; ne</title>
    <published>2011-08-27T22:00:00Z</published>
    <updated>2011-08-28T16:23:07Z</updated>
    <link rel="alternate" href="http://nohejl.name/2011/08/28/novopacke-gingers-beer/"/>
    <content type="html">&lt;p&gt;Ned&#225;vno jsem m&#283;l docela dobr&#233; novopack&#233; tmav&#233; pivo v &lt;a href="http://www.uzavesenyhokafe.cz/"&gt;Zav&#283;&#353;enym kafi&lt;/a&gt;. Kdy&#382; jsem pak uvid&#283;l jejich &amp;ldquo;z&#225;zvorov&#233; pivo&amp;rdquo;, nav&#237;c ov&#283;n&#269;en&#233; zlat&#253;m kurz&#237;vn&#237;m n&#225;pisem &amp;ldquo;Exclusive&amp;rdquo; na pivn&#237;m st&#225;nku na &#345;&#237;&#269;ansk&#253;ch trz&#237;ch, zaj&#225;sal jsem.&lt;/p&gt;

&lt;p&gt;Ale p&#345;ed&#269;asn&#283;. Jedn&#225; se o sv&#283;tl&#233; pivo dochucen&#233; &#233;&#269;ky, kter&#233; z&#225;zvor nevid&#283;lo ani z d&#225;lky. U&#382; po otev&#345;en&#237; lahve se na m&#283; vylinulo aroma ne nepodobn&#233; skandin&#225;vsk&#253;m plechovkov&#253;m &amp;ldquo;cider&#367;m&amp;rdquo;: chemick&#225; limon&#225;da. Z&#225;zvorov&#233; aroma je c&#237;tit pom&#283;rn&#283; slab&#283; (ve srovn&#225;n&#237; se siln&#253;mi, by&#357; nealkoholick&#253;mi ginger beers, kter&#225; jsou opravdu ze z&#225;zvoru; u n&#225;s je k sehn&#225;n&#237; t&#345;eba Fiery Ginger Beer v Marks&amp;amp;Spencer). Siln&#225; je naopak univerz&#225;ln&#283;-&#382;v&#253;ka&#269;kovo-limon&#225;dov&#225; kombinace a v&#367;n&#283; um&#283;l&#253;ch sladidel a p&#345;&#237;rodn&#283; identick&#253;ch aromat. V pozad&#237; je c&#237;tit naho&#345;kl&#225; chu&#357; n&#283;&#269;eho, co by s&#225;m o sob&#283; asi byl p&#345;&#237;jemn&#253; le&#382;&#225;k: jedin&#283; d&#237;ky tomu je mok jak&#382; tak&#382; piteln&#253;. Kdybych se byl pod&#237;val na etiketu vzadu, mohl jsem si zbyte&#269;n&#253; n&#225;kup u&#353;et&#345;it:&lt;/p&gt;

&lt;p&gt;&lt;img src="/images/2011/08/28/novopacke-gingers-beer.jpg" alt="Novopack&#233; Gingers Beer: lahev, etiketa" title="Novopack&#233; Gingers Beer: lahev, etiketa" /&gt;&lt;/p&gt;

&lt;p&gt;Z&#345;ejm&#283; se jedn&#225; o &lt;a href="http://www.ratebeer.com/beer/np-gingers-beer-classic/110880/"&gt;toto pivo&lt;/a&gt; v inovovan&#233; lahvi, mimochodem b&#367;hv&#237;pro&#269; nevratn&#233;. Na &lt;a href="http://www.novopackepivo.cz/"&gt;str&#225;nk&#225;ch pivovaru Nov&#225; Paka&lt;/a&gt; v&#253;robek v&#367;bec nefiguruje. Douf&#225;m, &#382;e to znamen&#225;, &#382;e ho vypustili ze sortimentu.&lt;/p&gt;
</content>
    <summary type="html">U&#382; po otev&#345;en&#237; lahve se na m&#283; vylinulo aroma ne nepodobn&#233; skandin&#225;vsk&#253;m plechovkov&#253;m "cider&#367;m".</summary>
  </entry>
</feed>

