<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>mac &#8211; Avian Bone Syndrome</title>
	<atom:link href="https://www.avianbonesyndrome.com/tag/mac/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.avianbonesyndrome.com</link>
	<description>An exercise in futility by Daniele Nicolucci</description>
	<lastBuildDate>Sat, 21 Mar 2020 10:45:46 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.avianbonesyndrome.com/wp-content/uploads/2015/04/cropped-cover-sito-32x32.jpg</url>
	<title>mac &#8211; Avian Bone Syndrome</title>
	<link>https://www.avianbonesyndrome.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">12285558</site>	<item>
		<title>ABS Podcast – Episode 5: Planned Obsolescence</title>
		<link>https://www.avianbonesyndrome.com/2015/07/14/abs-podcast-episode-5-planned-obsolescence/</link>
		
		<dc:creator><![CDATA[Daniele Nicolucci]]></dc:creator>
		<pubDate>Tue, 14 Jul 2015 20:42:19 +0000</pubDate>
				<category><![CDATA[Podcast]]></category>
		<category><![CDATA[Society]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[787]]></category>
		<category><![CDATA[boeing]]></category>
		<category><![CDATA[dreamliner]]></category>
		<category><![CDATA[euroscart]]></category>
		<category><![CDATA[fridges]]></category>
		<category><![CDATA[hdmi]]></category>
		<category><![CDATA[hdtv]]></category>
		<category><![CDATA[imac]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[macos x]]></category>
		<category><![CDATA[obsolescence]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[perception]]></category>
		<category><![CDATA[phoebus]]></category>
		<category><![CDATA[podcast]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[tv]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[windows xp]]></category>
		<guid isPermaLink="false">http://www.avianbonesyndrome.com/?p=853</guid>

					<description><![CDATA[Did you think I wasn&#8217;t going to publish the podcast anymore? WRONG! I&#8217;m back, and with a mammoth episode for good measure: a whopping 57 minutes that will guide you through the intricacies and nuances of how everything man-made gets old, and how we can learn to avoid the frustration caused by being unable to update a phone we bought just a few years before. I focus mostly on technological devices, but I also compare them with cars, fridges, and even a Boeing 787 aircraft just because I love planes and I actively look for any random excuse to talk about them. Don&#8217;t forget to &#8220;like&#8221; the new Facebook page for Avian Bone Syndrome! Links of interest mentioned in the episode: Moore&#8217;s Law The timeline of Microsoft Windows releases The timeline of Apple Mac OS X releases The specifications of the 2006 iMac How plane crashes are getting weirder, and why The Phoebus Cartel]]></description>
										<content:encoded><![CDATA[<p>Did you think I wasn&#8217;t going to publish the podcast anymore? <strong>WRONG!</strong></p>
<p>I&#8217;m back, and with a mammoth episode for good measure: a whopping <strong><em>57 minutes</em></strong> that will guide you through the intricacies and nuances of how everything man-made gets old, and how we can learn to avoid the frustration caused by being unable to update a phone we bought just a few years before.</p>
<p>I focus mostly on technological devices, but I also compare them with cars, fridges, and even a Boeing 787 aircraft just because I love planes and I actively look for any random excuse to talk about them.</p>
<p style="text-align: center;"><iframe src="https://anchor.fm/avianbonesyndrome/embed/episodes/ABS-Podcast--Episode-5-Planned-Obsolescence-ebktq7" width="400px" height="102px" frameborder="0" scrolling="no"></iframe></p>
<p><strong>Don&#8217;t forget to &#8220;like&#8221; <a href="http://facebook.com/avianbonesyndrome" target="_blank" rel="noopener noreferrer">the new Facebook page for Avian Bone Syndrome</a>!</strong></p>
<p>Links of interest mentioned in the episode:</p>
<ul>
<li><a href="https://en.wikipedia.org/wiki/Moore%27s_law" target="_blank" rel="noopener noreferrer">Moore&#8217;s Law</a></li>
<li><a href="https://en.wikipedia.org/wiki/Timeline_of_Microsoft_Windows" target="_blank" rel="noopener noreferrer">The timeline of Microsoft Windows releases</a></li>
<li><a href="https://en.wikipedia.org/wiki/History_of_OS_X" target="_blank" rel="noopener noreferrer">The timeline of Apple Mac OS X releases</a></li>
<li><a href="http://lowendmac.com/2006/imac-late-2006/" target="_blank" rel="noopener noreferrer">The specifications of the 2006 iMac</a></li>
<li><a href="http://www.spectator.co.uk/life/the-wiki-man/9494122/why-plane-crashes-are-getting-weirder-and-if-were-lucky-other-problems-will-too/" target="_blank" rel="noopener noreferrer">How plane crashes are getting weirder, and why</a></li>
<li><a href="http://spectrum.ieee.org/geek-life/history/the-great-lightbulb-conspiracy" target="_blank" rel="noopener noreferrer">The Phoebus Cartel</a></li>
</ul>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">853</post-id>	</item>
		<item>
		<title>Printing in grayscale with AirPrint</title>
		<link>https://www.avianbonesyndrome.com/2010/11/29/printing-in-grayscale-with-airprint/</link>
					<comments>https://www.avianbonesyndrome.com/2010/11/29/printing-in-grayscale-with-airprint/#comments</comments>
		
		<dc:creator><![CDATA[Daniele Nicolucci]]></dc:creator>
		<pubDate>Mon, 29 Nov 2010 14:18:38 +0000</pubDate>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[airprint]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[cups]]></category>
		<category><![CDATA[defaults]]></category>
		<category><![CDATA[grayscale]]></category>
		<category><![CDATA[greyscale]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[ios 4.2]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[iphone 4]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[printer]]></category>
		<category><![CDATA[printing]]></category>
		<category><![CDATA[snow leopard]]></category>
		<category><![CDATA[tutorial]]></category>
		<guid isPermaLink="false">http://www.avianbonesyndrome.com/?p=453</guid>

					<description><![CDATA[Did you all think I was dead? Unfortunately for you, I am not. I&#8217;ve just been fairly busy with work and with my renewed interest in photography. Speaking of which, all of you should follow my Flickr photostream, which I update daily. So, you&#8217;ve got the shiny new iOS 4.2 on your iPhone 4 and you have enabled AirPrint sharing on your Mac, using either the free Hacktivator or one of the commercial packages. You are very satisfied (albeit a bit doubtful about actually using it in the future), except for one thing: it prints in color, and you really wish it could print in grayscale, because toner is not cheap. When printing on the Mac this is easy: in any application&#8217;s print dialog, you change the specific settings of your printer to convert to grayscale and save a new preset. Then you just select &#8220;use last selected preset&#8221; and&#8230;]]></description>
										<content:encoded><![CDATA[<p>Did you all think I was dead? Unfortunately for you, I am not. I&#8217;ve just been fairly busy with work and with my renewed interest in photography. Speaking of which, all of you should follow my <a href="http://www.flickr.com/photos/jollino/">Flickr photostream</a>, which I update daily.</p>
<p>So, you&#8217;ve got the shiny new iOS 4.2 on your iPhone 4 and you have enabled AirPrint sharing on your Mac, using either the <a href="http://netputing.com/airprinthacktivator/">free Hacktivator</a> or one of the commercial packages. You are very satisfied (albeit a bit doubtful about actually using it in the future), except for one thing: it prints in color, and you really wish it could print in grayscale, because toner is not cheap.</p>
<p><span id="more-453"></span></p>
<p>When printing on the Mac this is easy: in any application&#8217;s print dialog, you change the specific settings of your printer to convert to grayscale and save a new preset. Then you just select &#8220;use last selected preset&#8221; and you forget about it, limiting yourself to changing it to color whenever you feel like wasting money (or printing money, if you&#8217;re that kind of naughty boy.)</p>
<p>AirPrint, on the other hand, just doesn&#8217;t have any setting, aside from the number of copies. You can&#8217;t even choose which pages to print. It&#8217;s either all or nothing. And it prints in color. It all seems lost, but fear not! OS X&#8217;s print subsystem is based on — or rather, it actually is — CUPS, which stands for Common Unix Printing System. Therefore all you need to is fiddling with it to change the actual default settings. How do you do that? It&#8217;s very, very simple.</p>
<p>Go to <a href="http://localhost:631/">http://localhost:631/</a> (the CUPS configuration runs via a pseudo-webserver on port 631; don&#8217;t worry, this only works on your own machine for your own machine), and click on <em>Administration</em> on top, then click on <em>Manage Printers</em>. Click on the name of the printer in question, and in the <em>Administration</em> pull-down menu choose <em>Set Default Options</em>. What you see now depends on the actual printer you have, but it should very closely resemble the options you get in the OS X print dialog. In my case, the <em>General</em> tab shows a setting called  <em>Color Mode</em> that lets me choose between <em>Color</em> and <em>Grayscale</em>. I set it to the latter, clicked the <em>Set Default Options</em> button, typed in my username and password, and off I went.</p>
<p>Note that you must have administrator rights, and you have use your <strong>short</strong> username, the one in lowercase with no spaces. It&#8217;s the same one that gives the name to your own home folder.</p>
<p>(Many thanks to Marco F. for the input.)</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.avianbonesyndrome.com/2010/11/29/printing-in-grayscale-with-airprint/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">453</post-id>	</item>
		<item>
		<title>Manual duplex printing on a laser printer</title>
		<link>https://www.avianbonesyndrome.com/2010/09/20/manual-duplex-printing-on-a-laser-printer/</link>
					<comments>https://www.avianbonesyndrome.com/2010/09/20/manual-duplex-printing-on-a-laser-printer/#comments</comments>
		
		<dc:creator><![CDATA[Daniele Nicolucci]]></dc:creator>
		<pubDate>Mon, 20 Sep 2010 16:13:14 +0000</pubDate>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[clx-3175]]></category>
		<category><![CDATA[duplex]]></category>
		<category><![CDATA[fronte retro]]></category>
		<category><![CDATA[laser]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[printer]]></category>
		<category><![CDATA[samsung]]></category>
		<category><![CDATA[tutorial]]></category>
		<guid isPermaLink="false">http://www.avianbonesyndrome.com/?p=407</guid>

					<description><![CDATA[My laser printer, a Samsung CLX-3175, does not have any tool for automatic duplex printing. Achieving such result manually is not difficult, but may take some trial and error in order to get the settings right. That&#8217;s exactly what I&#8217;ve done, and I&#8217;m writing this post as a note to myself. Should it be useful to anybody else, however, by all means let me know with a comment. Keep in mind that this is for my own printer, and that I use OS X 10.6 &#8220;Snow Leopard.&#8221; Results may vary with different printers and/or operating systems, so make your own tests. If your printer outputs pages &#8220;face down,&#8221; this will probably work as it is. Most ink-jet printers on the other hand output prints &#8220;face up,&#8221; so some adjustments will be necessary. In any case the steps for my own printer are very, very easy (once you&#8217;ve figured them out&#8230;]]></description>
										<content:encoded><![CDATA[<p>My laser printer, a Samsung CLX-3175, does not have any tool for automatic duplex printing. Achieving such result manually is not difficult, but may take some trial and error in order to get the settings right. That&#8217;s exactly what I&#8217;ve done, and I&#8217;m writing this post as a note to myself. Should it be useful to anybody else, however, by all means let me know with a comment.</p>
<p>Keep in mind that this is for my own printer, and that I use OS X 10.6 &#8220;Snow Leopard.&#8221; Results may vary with different printers and/or operating systems, so make your own tests. If your printer outputs pages &#8220;face down,&#8221; this will probably work as it is. Most ink-jet printers on the other hand output prints &#8220;face up,&#8221; so some adjustments will be necessary.</p>
<p>In any case the steps for my own printer are very, very easy (once you&#8217;ve figured them out correctly):</p>
<ol>
<li>Print all odd pages in normal order</li>
<li>If the total number of pages is an odd number, take the last sheet and put it away for the time being</li>
<li>Take the (remaining) sheets and put them back into the tray after rotating them 180°. Do <strong>not</strong> flip them in any way!</li>
<li>Print all even pages in reverse order</li>
<li>If you put the last sheet away in step 2, put it back at the end of the stack</li>
<li>There is no step 6</li>
</ol>
<p>Enjoy. <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.avianbonesyndrome.com/2010/09/20/manual-duplex-printing-on-a-laser-printer/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">407</post-id>	</item>
		<item>
		<title>Apple MacOS X 10.7: code name Cougar?</title>
		<link>https://www.avianbonesyndrome.com/2010/05/18/apple-macos-x-10-7-code-name-cougar/</link>
					<comments>https://www.avianbonesyndrome.com/2010/05/18/apple-macos-x-10-7-code-name-cougar/#comments</comments>
		
		<dc:creator><![CDATA[Daniele Nicolucci]]></dc:creator>
		<pubDate>Tue, 18 May 2010 15:59:40 +0000</pubDate>
				<category><![CDATA[Linguistics]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[slang]]></category>
		<guid isPermaLink="false">http://www.avianbonesyndrome.com/?p=83</guid>

					<description><![CDATA[Since the times of version 10.2, the internal code name of OS X major releases has become public knowledge and Apple has started using it in marketing. While there is a whole series of arguments for and against the usage of a non-sequential version numbering, I would say that in the case of operating systems it works just fine. After all, people only have to remember what the current release&#8217;s name is, and maybe the names of the two that came before it. Not a big deal. The current version of OS X, 10.6, is called Snow Leopard, while 10.5 was Leopard. Biologically, they are indeed different animals, but Apple&#8217;s goal was to make it clear that 10.6 was visually not too different from its immediate predecessor, and that many of the improvements happened under the hood. As is common in the world of Apple-related rumors, much speculation about the&#8230;]]></description>
										<content:encoded><![CDATA[<p>Since the times of version 10.2, the internal code name of OS X major releases has become public knowledge and Apple has started using it in marketing. While there is a whole series of arguments for and against the usage of a <a href="http://en.wikipedia.org/wiki/Software_versioning">non-sequential version numbering</a>, I would say that in the case of operating systems it works just fine. After all, people only have to remember what the current release&#8217;s name is, and maybe the names of the two that came before it. Not a big deal.</p>
<p><span id="more-83"></span></p>
<p>The current version of OS X, 10.6, is called Snow Leopard, while 10.5 was Leopard. Biologically, they are indeed different animals, but Apple&#8217;s goal was to make it clear that 10.6 was visually not too different from its immediate predecessor, and that many of the improvements happened under the hood.</p>
<p>As is common in the world of Apple-related rumors, much speculation about the code name of the still-unannounced 10.7 release. It seems that Apple is running out of big cats:</p>
<ul>
<li>10.0 — Cheetah</li>
<li>10.1 — Puma</li>
<li>10.2 — Jaguar</li>
<li>10.3 — Panther</li>
<li>10.4 — Tiger</li>
<li>10.5 — Leopard</li>
<li>10.6 — Snow Leopard</li>
</ul>
<p>So will we have Lion, or maybe Lynx? Certainly not Ocelot, since it&#8217;s not a big/wild cat.</p>
<p>Is Apple saving the name &#8220;Clouded Leopard&#8221; for a subsequent release that will be focused on, well, cloud computing? That would be neat indeed.</p>
<p>Cougar, of course, would seem out of place, given its <a href="http://en.wikipedia.org/wiki/Age_disparity_in_sexual_relationships#Slang_terms">sexual implications</a> in American English. But keep in mind that we&#8217;re talking about a company who actually named a product iPad, which kind of proves that don&#8217;t have any women in their marketing department. Not that iPod makes much sense either, but come on, iPad?</p>
<p>Yet&#8230; think about it: OS X is quite a mature operating system at this point, and it will certainly love new machines. So bring it on, OS X 10.7 Cougar!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.avianbonesyndrome.com/2010/05/18/apple-macos-x-10-7-code-name-cougar/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">83</post-id>	</item>
		<item>
		<title>Batch-converting images for an HDTV</title>
		<link>https://www.avianbonesyndrome.com/2010/04/12/batch-converting-images-for-an-hdtv/</link>
					<comments>https://www.avianbonesyndrome.com/2010/04/12/batch-converting-images-for-an-hdtv/#comments</comments>
		
		<dc:creator><![CDATA[Daniele Nicolucci]]></dc:creator>
		<pubDate>Mon, 12 Apr 2010 08:47:19 +0000</pubDate>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[conversion]]></category>
		<category><![CDATA[cp]]></category>
		<category><![CDATA[flash drive]]></category>
		<category><![CDATA[hdtv]]></category>
		<category><![CDATA[imagemagick]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[iphoto]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[pictures]]></category>
		<category><![CDATA[resizing]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[usb]]></category>
		<guid isPermaLink="false">http://www.avianbonesyndrome.com/?p=23</guid>

					<description><![CDATA[A couple of days ago, my parents bought their first HDTV. Since it has a USB port that can be used to show pictures stored on a flash drive, I found myself in the position of finally using an old 512 MB stick I had lying around. I scouted my iPhoto Libraries for pictures, and simply dragged them into a folder I had created. I quickly stumbled across two problems: The Finder almost immediately reported that the drive was full, even when it still had over 350 MB available, or that one or more files couldn&#8217;t &#8220;be read or written&#8221;; 8-megapixel images are just too big for a Full HD screen, so you end up wasting a lot of space and possibly slowing down the TV. Did I fix them? You bet I did. Read on to find how. The first problem was the trickiest to solve. After trying to&#8230;]]></description>
										<content:encoded><![CDATA[<p>A couple of days ago, my parents bought their first HDTV. Since it has a USB port that can be used to show pictures stored on a flash drive, I found myself in the position of finally using an old 512 MB stick I had lying around.</p>
<p>I scouted my iPhoto Libraries for pictures, and simply dragged them into a folder I had created. I quickly stumbled across two problems:</p>
<ol>
<li>The Finder almost immediately reported that the drive was full, even when it still had over 350 MB available, or that one or more files couldn&#8217;t &#8220;be read or written&#8221;;</li>
<li>8-megapixel images are just too big for a Full HD screen, so you end up wasting a lot of space and possibly slowing down the TV.</li>
</ol>
<p>Did I fix them? You bet I did. Read on to find how.</p>
<p><span id="more-23"></span>The first problem was the trickiest to solve. After trying to copy it directly using <code>cp</code> in a shell, and getting the same error, I decided to try copying the files without their resource forks. To do that, use the <code>-X</code> flag on <code>cp</code>. It magically worked, even though I&#8217;m not sure what the problem was, but using <code>cp -X</code> gives you the clean, data fork only images, and everything is merry again.</p>
<p>The second problem is more of an hassle, but going from 182 MiB to 63 MB (for 167 images) is certainly nice. After all, the output screen only has a resolution of 1920 x 1080 pixels, and it&#8217;s absolutely pointless to use it to display images sized up to 3456 x 2304 pixels.</p>
<p>So, how do you resize them in a pinch? Enter <a href="http://www.imagemagick.org/">ImageMagick</a>, an open-source image conversion suite. If you are on a Mac and you have <a href="http://www.macports.org/">MacPorts</a> installed, you can simply run <code>sudo port install ImageMagick</code> and let it do all the work for you.</p>
<p>For the sake of the example, let&#8217;s suppose that the images are in a directory called <em>stuff</em>, and that they have the most random names; some of them have names ending in <em>.JPG</em> (capitalized), some of them end in <em>.jpg</em> (not capitalized). Isn&#8217;t that a nightmare? Not really.</p>
<p>Please note that this example implies that you use <a href="http://www.gnu.org/software/bash/">bash</a> on any a Unix-like system. ImageMagick is available for many platform, including Windows, but you will need to find another way to run it on each file you need to resize. I personally use OS X.</p>
<p>Here is the sequence of steps we need to take to convert everything to HDTV size:<br />
<code><strong>octavarium:~/stuff jollino$ mkdir _<br />
octavarium:~/stuff jollino$ for f in *[Jj][Pp][Gg]; do convert $f -resize "1920x1080&gt;" _/$f; echo Image $f converted successfully; done<br />
</strong> Image 1b371a9f-a59c-4c5e-b9f2-9a8aa24c807e.original.jpg converted successfully<br />
Image 2fb7c7da-999d-4744-b8e8-dffa5d466736.original.jpg converted successfully<br />
Image 3a39767c-b830-4fb8-90ce-40d97e793c65.original.jpg converted successfully<br />
<em>[...]</em><br />
Image IMG_0737.JPG converted successfully<br />
Image IMG_0742.jpg converted successfully<br />
Image IMG_0745.JPG converted successfully<br />
Image IMG_0746.jpg converted successfully<br />
Image IMG_0750.JPG converted successfully<br />
<em>[...]</em></code></p>
<p><code><em></em><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;">The first command obviously creates a directory called _. You can name it any way you want, but I personally prefer very short names when dealing with batch processes, especially when there is little risk of confusion.</span></code></p>
<p>The second command is where the magic – no pun intended – happens. It can be read as folows:</p>
<ol>
<li>Iterate over each file in the current directory whose name ends in any case combination of &#8216;jpg&#8217;;</li>
<li>In each cycle, call the name <em>$f</em></li>
<li>Run the command: <code>convert $f resize "1920x1080&gt;" _/$f</code></li>
<li>Run the command: <code>echo Image $f converted successfully</code></li>
<li>Repeat for the next file</li>
</ol>
<p>As can be easily inferred, the actual conversion takes place in step #3. If the file name is <em>IMG_1891.jpg</em>, for instance, the command is expanded as <code>convert IMG_1891.jpg resize "1920x1080&gt;" _/IMG_1891.jpg</code>.</p>
<p>The <code>&gt;</code> character in the output image size is not a mistake: it tells <code>convert</code> that we want it to be 1920 pixels wide and 1080 pixels high&#8230; but the aspect ratio is our main priority.<br />
This means that images will not be smared to fill the 1920 x 1080 canvas; the output images will be at most 1920 pixels wide <strong>or</strong> 1080 pixels high, whichever can be optimized, and the other dimension will be changed accordingly. Okay, now that&#8217;s confusing. Let&#8217;s look at a few examples.</p>
<ul>
<li>A 2816 x 2112 image (4:3 horizontal) will be resized to 1440 x 1080. If it had been resized to 1920 x 1440, it would have had to be cropped to fit on a 1920 x 1080 screen.</li>
<li>A 2112 x 2816 image (4:3 vertical) will be resized to 810 x 1080. That sure beats a 1920 x 2560 image (which would end up bigger than the original anyway!)</li>
<li>A 3456 x 2304 image (3:2 horizontal) will be resized to 1620 x 1080.</li>
<li>A 3456 x 1944 image (16:9 horizontal) will be resized to 1920 x 1080.</li>
<li>A 1048 x 699 image (3:2 horizontal) will not be resized and will stay at 1048 x 699.</li>
<li>A 2148 x 2148 image (1:1 square) will be resized to 1080 x 1080.</li>
</ul>
<p>As you can see, most images will have a shorter horizontal side in order to accommodate for a as-tall-as-possible vertical side, as that is still shorter.</p>
<p>After doing all of this, make sure that the USB drive has a MBR rather than a GUID partition table <strong>and</strong> a FAT partition, and simply run:</p>
<p><code><strong>octavarium:~/stuff jollino$ cp -Xv _/* /Volumes/nameofyourdrive/</strong><br />
</code><br />
Gracefully eject the drive, remove it, and enjoy your pictures!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.avianbonesyndrome.com/2010/04/12/batch-converting-images-for-an-hdtv/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">23</post-id>	</item>
		<item>
		<title>Installing the MySQLdb Python module on Snow Leopard</title>
		<link>https://www.avianbonesyndrome.com/2010/04/04/installing-the-mysqldb-python-module-on-snow-leopard/</link>
					<comments>https://www.avianbonesyndrome.com/2010/04/04/installing-the-mysqldb-python-module-on-snow-leopard/#comments</comments>
		
		<dc:creator><![CDATA[Daniele Nicolucci]]></dc:creator>
		<pubDate>Sun, 04 Apr 2010 14:37:27 +0000</pubDate>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[module]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysqldb]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[snow leopard]]></category>
		<category><![CDATA[tutorial]]></category>
		<guid isPermaLink="false">http://www.avianbonesyndrome.com/?p=17</guid>

					<description><![CDATA[Needing to access a MySQL database through Python, I was faced by the inability to easily install the MySQLdb module. I do use MacPorts, but after running the obvious sudo port install py26-mysql I realized that I would be downloading, compiling and installing a new instance of Python, a new instance of MySQL (I prefer the simplicity of MAMP), and who knows what else. Installing the module alone doesn&#8217;t work, because MAMP installs no headers; and copying the headers from the vanilla MySQL distribution doesn&#8217;t help either, because a few of the required files are generated on the fly during the installation of MySQL itself. The solution, it turns out, is relatively simple. Follow along. Step 1: download the latest MySQL Community Server in DMG format for x86-64 from this page, and install the main package. Worry not: nothing is going to be started on boot, so this is not going&#8230;]]></description>
										<content:encoded><![CDATA[<p>Needing to access a MySQL database through Python, I was faced by the inability to easily install the <a href="http://sourceforge.net/projects/mysql-python/">MySQLdb module</a>. I do use <a href="http://www.macports.org/">MacPorts</a>, but after running the obvious<br />
<code>sudo port install py26-mysql</code><br />
I realized that I would be downloading, compiling and installing a new instance of Python, a new instance of MySQL (I prefer the simplicity of <a href="http://www.mamp.info/">MAMP</a>), and who knows what else.</p>
<p>Installing the module alone doesn&#8217;t work, because MAMP installs no headers; and copying the headers from the vanilla MySQL distribution doesn&#8217;t help either, because a few of the required files are generated on the fly during the installation of MySQL itself.</p>
<p>The solution, it turns out, is relatively simple. Follow along.<span id="more-17"></span></p>
<p>Step 1: download the latest MySQL Community Server in DMG format for x86-64 from <a href="http://dev.mysql.com/downloads/mysql/">this page</a>, and install the main package. Worry not: nothing is going to be started on boot, so this is not going to mess with your pre-existing MySQL installation. The package is going to be installed in /usr/local/mysql-5.1.45-osx10.6-x86_64/, with a handy /usr/local/mysql/ symbolic link.</p>
<p>Step 2: download the latest MySQLdb Python module from <a href="http://sourceforge.net/projects/mysql-python/">this page</a>, and unpack it somewhere.</p>
<p>Step 3: set the $PATH environment variable to include /usr/local/mysql. That&#8217;s because the module&#8217;s setup.py is going to need to call mysql_config, and you want it to find the one you just installed, as it comes with all the stuff it needs.</p>
<p>Step 4: do the classic build and install dance, making sure you prepend the commands with ARCHFLAGS=&#8217;-arch x86_64&#8242;. This is because you want to compile a 64-bit module.</p>
<p>In short:<br />
<code>tar vxfz MySQL-python-1.2.3c1.tar.gz<br />
cd MySQL-python-1.2.3c1<br />
export PATH=/usr/local/mysql:$PATH<br />
ARCHFLAGS='-arch x86_64' python setup.py build<br />
ARCHFLAGS='-arch x86_64' python setup.py install</code></p>
<p>If all went fine, you should be able to do this without getting any errors:<br />
<code>octavarium:~ jollino$ python<br />
Python 2.6.1 (r261:67515, Feb 11 2010, 00:51:29)<br />
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin<br />
Type "help", "copyright", "credits" or "license" for more information.<br />
&gt;&gt;&gt; import MySQLdb<br />
&gt;&gt;&gt; print MySQLdb<br />
&lt;module 'MySQLdb' from '/Library/Python/2.6/site-packages/MySQL_python-1.2.3c1-py2.6-macosx-10.6-universal.egg/MySQLdb/__init__.pyc'&gt;</code></p>
<p>Enjoy!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.avianbonesyndrome.com/2010/04/04/installing-the-mysqldb-python-module-on-snow-leopard/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">17</post-id>	</item>
	</channel>
</rss>
