<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    
    <title>Daniel Lange's blog (Entries tagged as iphone)</title>
    <link>http://daniel-lange.com/</link>
    <description>agrep -pB IT /dev/life</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 2.6-alpha1 - http://www.s9y.org/</generator>
    <pubDate>Fri, 02 May 2025 17:39:26 GMT</pubDate>

    <image>
    <url>//daniel-lange.com/uploads/Avatar_Blog_144_234.png</url>
    <title>RSS: Daniel Lange's blog - agrep -pB IT /dev/life</title>
    <link>http://daniel-lange.com/</link>
    <width>144</width>
    <height>234</height>
</image>

<item>
    <title>Creating iPhone/iPod/iPad notes from the shell</title>
    <link>http://daniel-lange.com/archives/64-Creating-iPhoneiPodiPad-notes-from-the-shell.html</link>
            <category>Open Source</category>
    
    <comments>http://daniel-lange.com/archives/64-Creating-iPhoneiPodiPad-notes-from-the-shell.html#comments</comments>
    <wfw:comment>http://daniel-lange.com/wfwcomment.php?cid=64</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://daniel-lange.com/rss.php?version=2.0&amp;type=comments&amp;cid=64</wfw:commentRss>
    

    <author>nospam@example.com (Daniel Lange)</author>
    <content:encoded>
    &lt;p&gt;I found a very nice script to create Notes on the iPhone from the command line by &lt;a href=&quot;http://www.perlmonks.org/?node_id=123291&quot; title=&quot;hossman&#039;s profile at Perlmonks&quot;&gt;hossman&lt;/a&gt; over at &lt;a href=&quot;http://www.perlmonks.org/?node_id=851322&quot; title=&quot;Manipulate iPhone &#039;Notes&#039; folders by hossman&quot;&gt;Perlmonks&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;For some weird reason Perlmonks does not allow me to reply with amendments even after I created an &lt;a href=&quot;http://www.perlmonks.org/?node_id=951767&quot; title=&quot;proof ... my Perlmonks account&quot;&gt;account&lt;/a&gt;. I can &quot;preview&quot; a reply at Perlmonks but after &quot;create&quot; I get &quot;Permission Denied&quot;. Duh. &lt;a href=&quot;http://www.perlmonks.org/?node=vroom&quot; title=&quot;Perlmonk abbot&quot;&gt;vroom&lt;/a&gt;, if you want screenshots, contact me on IRC &lt;img src=&quot;http://daniel-lange.com/plugins/serendipity_event_emoticate/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; class=&quot;emoticon&quot; /&gt;.&lt;/p&gt;

&lt;p&gt;As I wrote everything up for the Perlmonks reply anyways, I&#039;ll post it here instead.&lt;/p&gt;

&lt;p&gt;Against hossman&#039;s version 32 from 2011-02-22 I changed the following:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;removed .pl from filename and documentation&lt;/li&gt;
&lt;li&gt;added --list to list existing notes&lt;/li&gt;
&lt;li&gt;added --hosteurope for Hosteurope mail account preferences and with it a sample how to add username and password into the script for unattended use&lt;/li&gt;
&lt;li&gt;made the &quot;Notes&quot; folder the default (so -f Notes becomes obsolete)&lt;/li&gt;
&lt;li&gt;added some UTF-8 conversions to make Umlauts work better (this is a mess in perl, see &lt;a href=&quot;http://jeremy.zawodny.com/blog/archives/010546.html&quot; title=&quot;Blog entry: The Perl UTF-8 and utf8 Encoding Mess&quot;&gt;Jeremy Zawodny&#039;s writeup&lt;/a&gt; and &lt;a href=&quot;http://ahinea.com/en/tech/perl-unicode-struggle.html&quot; title=&quot;Blog entry: Unicode-processing issues in Perl and how to cope with it&quot;&gt;Ivan Kurmanov&#039;s blog entry&lt;/a&gt; for some further solutions). Please try combinations of utf8::encode and ::decode, binmode utf8 for STDIN and/or STDOUT and the other hints from these linked blog entries in your local setup to get Umlauts and other non-7bit ASCII characters working. Be patient. There&#039;s more than one way to do it &lt;img src=&quot;http://daniel-lange.com/plugins/serendipity_event_emoticate/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; class=&quot;emoticon&quot; /&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I /msg&#039;d hossman the URL of this blog entry.&lt;/p&gt;
 &lt;a class=&quot;block_level&quot; href=&quot;http://daniel-lange.com/archives/64-Creating-iPhoneiPodiPad-notes-from-the-shell.html#extended&quot;&gt;Continue reading &quot;Creating iPhone/iPod/iPad notes from the shell&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Sat, 04 Feb 2012 08:00:00 +0000</pubDate>
    <guid isPermaLink="false">http://daniel-lange.com/archives/64-guid.html</guid>
    <category>imap</category>
<category>iphone</category>
<category>notes</category>
<category>perl</category>
<category>script</category>

</item>
<item>
    <title>Apple iPhone ring tones Linux style</title>
    <link>http://daniel-lange.com/archives/59-Apple-iPhone-ring-tones-Linux-style.html</link>
            <category>Open Source</category>
    
    <comments>http://daniel-lange.com/archives/59-Apple-iPhone-ring-tones-Linux-style.html#comments</comments>
    <wfw:comment>http://daniel-lange.com/wfwcomment.php?cid=59</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://daniel-lange.com/rss.php?version=2.0&amp;type=comments&amp;cid=59</wfw:commentRss>
    

    <author>nospam@example.com (Daniel Lange)</author>
    <content:encoded>
    &lt;p&gt;Apple has crippled the iPhone to not allow normal music files as ringtones. Business decision. Technically any sub 40 second MP4 audio file will do once you rename it to &lt;code&gt;*.m4r&lt;/code&gt; and drag-and-drop it to the ringtones folder of your phone in iTunes. Longer ones will work, too. But you&#039;d need a jailbroken iPhone for that as iTunes will refuse to transfer the ringtone file if it&#039;s too long. Not much of an issue imho, who keeps ringing your phone for 40 seconds or more?&lt;/p&gt;

&lt;p&gt;There&#039;s a gazillion websites available telling you how to convert a single .mp3-file to a ringtone with or without iTunes help and there are hundreds of tools doing that for you if you can&#039;t find out how to do it with just iTunes itself. Still the ones I tried failed for me as I wanted to convert my 20 or so standard ringtones from the good old Motorola K3 to iPhone ringtones all in one go. Without having to edit each one by hand. They are already nice ringtones and have served me well for years, just too long for the iPhone and in .mp3 format.&lt;/p&gt;

&lt;p&gt;The basic processing sequence needed is&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Cut the .mp3 down to 39s&lt;/li&gt;
&lt;li&gt;Convert the .mp3 -&gt; .wav (with mplayer, normalize output gain while we&#039;re at it)&lt;/li&gt;
&lt;li&gt;Convert the .wav -&gt; .mp4 (with facc)&lt;/li&gt;
&lt;li&gt;Clean up, GOTO 1 for next file&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;So below is the free shell script to create multiple ringtones in one go on any Linux system. You need to install cutmp3, mplayer and faac for it, so &lt;code&gt;apt-get install cutmp3 mplayer faac&lt;/code&gt; on Debian or Ubuntu. cutmp3 is currently not in the portage tree for Gentoo, but you can download an ebuild from &lt;a href=&quot;http://www.fn-clan.de/downloads/gentoo/poly-c_overlay/media-sound/cutmp3/&quot; title=&quot;Ebuild for cutmp3&quot;&gt;Polynomial-C&#039;s overlay&lt;/a&gt; (&lt;a href=&quot;http://gentoo-overlays.zugaina.org/poly-c/portage/media-sound/cutmp3/&quot; title=&quot;Poly-C mirror at gentoo-overlays.zugaina.org&quot;&gt;mirror&lt;/a&gt;). Or you just download the cutmp3 binary from &lt;a href=&quot;http://www.puchalla-online.de/cutmp3.html&quot; title=&quot;download Cutmp3 from the author&#039;s homepage&quot;&gt;Jochen Puchalla&#039;s homepage&lt;/a&gt;. There&#039;s no error checking in the script, so know your way around the shell before running it.&lt;/p&gt;

&lt;p&gt;Without further ado:&lt;/p&gt;

&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;#!/bin/sh&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;#&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;# convert_to_ringtone file1.mp3 [file2.mp3, ...]&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;# Placed into the public domain by Daniel Lange, 2011.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;#&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;for&lt;/span&gt; arg&lt;br /&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;do&lt;/span&gt;&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Processing &lt;span style=&quot;color: #007800;&quot;&gt;$arg&lt;/span&gt;...&amp;quot;&lt;/span&gt;&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; cutmp3 &lt;span style=&quot;color: #660033;&quot;&gt;-c&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-a&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;0&lt;/span&gt;:&lt;span style=&quot;color: #000000;&quot;&gt;0.0&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-b&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;0&lt;/span&gt;:&lt;span style=&quot;color: #000000;&quot;&gt;39.0&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-i&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&lt;span style=&quot;color: #007800;&quot;&gt;$arg&lt;/span&gt;&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-O&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&lt;span style=&quot;color: #007800;&quot;&gt;$arg&lt;/span&gt;.tmp&amp;quot;&lt;/span&gt;&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;mplayer&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-vo&lt;/span&gt; null &lt;span style=&quot;color: #660033;&quot;&gt;-vc&lt;/span&gt; null &lt;span style=&quot;color: #660033;&quot;&gt;-af&lt;/span&gt; volnorm &lt;span style=&quot;color: #660033;&quot;&gt;-ao&lt;/span&gt; pcm:fast:&lt;span style=&quot;color: #007800;&quot;&gt;file&lt;/span&gt;=tmpfile.wav &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&lt;span style=&quot;color: #007800;&quot;&gt;$arg&lt;/span&gt;.tmp&amp;quot;&lt;/span&gt;&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; faac &lt;span style=&quot;color: #660033;&quot;&gt;-b&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;128&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-c&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;44100&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-w&lt;/span&gt; tmpfile.wav&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;span style=&quot;color: #007800;&quot;&gt;name&lt;/span&gt;=&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #007800;&quot;&gt;$arg&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;|&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;sed&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&#039;s/.mp3//g&#039;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;|&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;sed&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&#039;s/ /_/g&#039;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;`&lt;/span&gt;&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;mv&lt;/span&gt; tmpfile.m4a &lt;span style=&quot;color: #007800;&quot;&gt;$name&lt;/span&gt;.m4r&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;rm&lt;/span&gt; tmpfile.wav&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;rm&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&lt;span style=&quot;color: #007800;&quot;&gt;$arg&lt;/span&gt;.tmp&amp;quot;&lt;/span&gt;&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&lt;span style=&quot;color: #007800;&quot;&gt;$arg&lt;/span&gt; done.&amp;quot;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;done&lt;/span&gt;&lt;br /&gt;&amp;#160;&lt;/div&gt;

&lt;p&gt;&lt;a class=&quot;serendipity_image_link&quot; title=&quot;Apple 1984 ad. When they we&#039;re thinking different.&quot; href=&#039;http://en.wikipedia.org/wiki/1984_(advertisement)&#039; target=&quot;_blank&quot;&gt;&lt;!-- s9ymdb:535 --&gt;&lt;img class=&quot;serendipity_image_center&quot; width=&quot;305&quot; height=&quot;228&quot;  src=&quot;http://daniel-lange.com/uploads/Apple1984.jpg&quot; title=&quot;Apple 1984 ad. When they were thinking differently.&quot; alt=&quot;Wikipedia article on Apple&#039;s 1984 ad.&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;Update&lt;/h3&gt;

&lt;p&gt;23.12.14 Apparently the faac package in Debian and Ubuntu has had the MP4 writing capability removed in v1.28-5 and later due to a minor license incompatibility. See the &lt;a href=&quot;http://metadata.ftp-master.debian.org/changelogs//non-free/f/faac/&quot; title=&quot;Debian Changelogs for faac&quot;&gt;Debian Changelogs&lt;/a&gt;. Duh.&lt;/p&gt;

&lt;pre&gt;
faac (1.28-5) unstable; urgency=low
  [ Andres Mejia ]
  * Disable mp4v2 support.
    This only disables mp4v2 for the faac utility program. The faac
    utility is GPL-2 but the mp4v2 library is MPL-1.1. The two licenses
    are incompatible with each other.
&lt;/pre&gt;

&lt;p&gt;So ... unfortunately you have to built faac from source yourself or pin the v1.28-4 version which is identical except for the castration anyways.&lt;/p&gt;

&lt;p&gt;Random distro dev: &lt;i&gt;&quot;Why oh why doesn&#039;t my distro ever head mainstream...?&quot;&lt;/i&gt;&lt;br /&gt;
Hint: Because of stuff like this.&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Sun, 27 Mar 2011 09:55:00 +0000</pubDate>
    <guid isPermaLink="false">http://daniel-lange.com/archives/59-guid.html</guid>
    <category>apple</category>
<category>convert</category>
<category>iphone</category>
<category>mp3</category>
<category>mp4</category>
<category>ringtone</category>
<category>script</category>
<category>shell</category>
<category>updated</category>

</item>

</channel>
</rss>
