<?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>zuzara &#187; Tweak</title> <atom:link href="http://zuzara.com/blog/category/tweak/feed/" rel="self" type="application/rss+xml" /><link>http://zuzara.com/blog</link> <description>code and thoughts</description> <lastBuildDate>Wed, 18 Apr 2012 02:37:57 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>Static IP address on VMware Fusion</title><link>http://zuzara.com/blog/2012/04/17/static-ip-address-on-vmware-fusion/</link> <comments>http://zuzara.com/blog/2012/04/17/static-ip-address-on-vmware-fusion/#comments</comments> <pubDate>Wed, 18 Apr 2012 02:37:57 +0000</pubDate> <dc:creator>Nobu</dc:creator> <category><![CDATA[Tweak]]></category> <guid
isPermaLink="false">http://zuzara.com/blog/?p=421</guid> <description><![CDATA[On Version 4.1.2: % vi /Library/Preferences/VMware\ Fusion/vmnet8/dhcpd.conf host allsides { hardware ethernet 00:0c:29:1e:93:11; # check HWaddr using ifconfig. fixed-address 192.168.39.101; } % vi /etc/hosts 192.168.39.101 dev Restart the guest OS (Ubuntu) and VMware itself. It seems when upgrades VMware it&#8217;ll be overwritten dhcpd.conf.]]></description> <content:encoded><![CDATA[<p>On Version 4.1.2:</p><p><code>% vi /Library/Preferences/VMware\ Fusion/vmnet8/dhcpd.conf</code></p><pre>host allsides {
  hardware ethernet 00:0c:29:1e:93:11; # check HWaddr using ifconfig.
  fixed-address 192.168.39.101;
}</pre><p><code>% vi /etc/hosts</code></p><pre>192.168.39.101	dev</pre><p>Restart the guest OS (Ubuntu) and VMware itself. It seems when upgrades VMware it&#8217;ll be overwritten dhcpd.conf.</p> ]]></content:encoded> <wfw:commentRss>http://zuzara.com/blog/2012/04/17/static-ip-address-on-vmware-fusion/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>35 Live Flipped Classrooms</title><link>http://zuzara.com/blog/2012/01/04/35-live-flipped-classrooms/</link> <comments>http://zuzara.com/blog/2012/01/04/35-live-flipped-classrooms/#comments</comments> <pubDate>Wed, 04 Jan 2012 19:48:27 +0000</pubDate> <dc:creator>Nobu</dc:creator> <category><![CDATA[Tweak]]></category> <category><![CDATA[flipped classroom]]></category> <guid
isPermaLink="false">http://zuzara.com/blog/?p=409</guid> <description><![CDATA[Here are 35 live examples of Flipped Classroom, and still counting. The order doesn&#8217;t mean anything. Table view Open with Google Spreadsheet Hope it saves educators&#8217; research time. I&#8217;ve tried to find school/teacher name, location, grade, subject, tools and data/feedback for each example. Some cells are still blank. Please let me know if you&#8217;d like [...]]]></description> <content:encoded><![CDATA[<p>Here are 35 live examples of Flipped Classroom, and still counting. The order doesn&#8217;t mean anything.</p><ul><li><a
href="https://docs.google.com/spreadsheet/pub?hl=en_US&amp;hl=en_US&amp;key=0AoF4K1soAzUBdENEUVczdE1Bd0MtbG1hY3BuQ3BTY2c&amp;single=true&amp;gid=0&amp;output=html">Table view</a></li><li><a
href="https://docs.google.com/spreadsheet/ccc?key=0AoF4K1soAzUBdENEUVczdE1Bd0MtbG1hY3BuQ3BTY2c">Open with Google Spreadsheet</a></li></ul><p>Hope it saves educators&#8217; research time. I&#8217;ve tried to find school/teacher name, location, grade, subject, tools and data/feedback for each example. Some cells are still blank. Please let me know if you&#8217;d like to edit. I&#8217;ll give you editor permission.</p><p>The below researches does not only cover Flipped Classroom, but I thought useful.</p><ul><li><a
href="http://www.innosightinstitute.org/media-room/publications/blended-learning/">Blended-Learning Profiles</a></li><li><a
href="http://www2.ed.gov/rschstat/eval/tech/evidence-based-practices/finalreport.pdf">Evaluation of Evidence-Based Practices in Online Learning</a> (pdf)</li></ul> ]]></content:encoded> <wfw:commentRss>http://zuzara.com/blog/2012/01/04/35-live-flipped-classrooms/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Upgrade MongoDB 1.8 to 2.0 on CentOS5.7</title><link>http://zuzara.com/blog/2011/11/22/upgrade-mongodb-1-8-to-2-0-on-centos5-7/</link> <comments>http://zuzara.com/blog/2011/11/22/upgrade-mongodb-1-8-to-2-0-on-centos5-7/#comments</comments> <pubDate>Wed, 23 Nov 2011 00:25:05 +0000</pubDate> <dc:creator>Nobu</dc:creator> <category><![CDATA[Tweak]]></category> <guid
isPermaLink="false">http://zuzara.com/blog/?p=379</guid> <description><![CDATA[As 2.0 Release Notes mentions, it required to remove 1.8 first. % sudo yum remove mongo-stable-20110131-mongodb_1 % vi /etc/yum.repos.d/10gen.repo % cat /etc/yum.repos.d/10gen.repo &#91;10gen&#93; name=10gen Repository baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64 gpgcheck=0 % sudo yum install mongo-10gen-server When I tried to yum update mongo-stable, got conflict error &#8220;Error: mongo18-10gen conflicts with mongo-10gen&#8221;. I also needed to rewrite yum repository since [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://www.mongodb.org/display/DOCS/2.0+Release+Notes">As 2.0 Release Notes mentions</a>, it required to remove 1.8 first.</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> yum remove mongo-stable-<span style="color: #000000;">20110131</span>-mongodb_1
<span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>yum.repos.d<span style="color: #000000; font-weight: bold;">/</span>10gen.repo
<span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>yum.repos.d<span style="color: #000000; font-weight: bold;">/</span>10gen.repo
<span style="color: #7a0874; font-weight: bold;">&#91;</span>10gen<span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #007800;">name</span>=10gen Repository
<span style="color: #007800;">baseurl</span>=http:<span style="color: #000000; font-weight: bold;">//</span>downloads-distro.mongodb.org<span style="color: #000000; font-weight: bold;">/</span>repo<span style="color: #000000; font-weight: bold;">/</span>redhat<span style="color: #000000; font-weight: bold;">/</span>os<span style="color: #000000; font-weight: bold;">/</span>x86_64
<span style="color: #007800;">gpgcheck</span>=<span style="color: #000000;">0</span>
<span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> yum <span style="color: #c20cb9; font-weight: bold;">install</span> mongo-10gen-server</pre></div></div><p>When I tried to yum update mongo-stable, got conflict error &#8220;Error: mongo18-10gen conflicts with mongo-10gen&#8221;. I also needed to rewrite yum repository since my old config pointed at baseurl=http://downloads.mongodb.org/distros/centos/5.4/os/x86_64/.</p><p>It seems epel repository has mongodb package, when you &#8220;yum search mongo&#8221; you&#8217;ll probably find mongodb package aside from mongo-10gen which is a bit confusing.</p> ]]></content:encoded> <wfw:commentRss>http://zuzara.com/blog/2011/11/22/upgrade-mongodb-1-8-to-2-0-on-centos5-7/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Watir + Cucumber environment</title><link>http://zuzara.com/blog/2011/10/27/watir-cucumber-environment/</link> <comments>http://zuzara.com/blog/2011/10/27/watir-cucumber-environment/#comments</comments> <pubDate>Thu, 27 Oct 2011 20:48:11 +0000</pubDate> <dc:creator>Nobu</dc:creator> <category><![CDATA[Tweak]]></category> <guid
isPermaLink="false">http://zuzara.com/blog/?p=371</guid> <description><![CDATA[/Users/nobu/.rvm/gems/ruby-1.9.2-p290/gems/selenium-webdriver-2.9.1/lib/selenium/webdriver/firefox/launcher.rb:77:in `connect_until_stable': unable to obtain stable firefox connection in 60 seconds (127.0.0.1:7055) (Selenium::WebDriver::Error::WebDriverError) I got this error with Firefox 8 (beta channel). With 7.0.1 which is the stable version, works well. On this article it uses Celerity, but it gets the below error: % HEADLESS=1 cucumber Celerity only works on JRuby at the moment. &#40;RuntimeError&#41; [...]]]></description> <content:encoded><![CDATA[<p><code>/Users/nobu/.rvm/gems/ruby-1.9.2-p290/gems/selenium-webdriver-2.9.1/lib/selenium/webdriver/firefox/launcher.rb:77:in `connect_until_stable': unable to obtain stable firefox connection in 60 seconds (127.0.0.1:7055) (Selenium::WebDriver::Error::WebDriverError)</code></p><p>I got this error with Firefox 8 (beta channel). With 7.0.1 which is the stable version, works well.</p><p>On <a
href="http://watirmelon.com/2011/01/21/my-simple-cucumber-watir-page-object-pattern-framework/">this article</a> it uses Celerity, but it gets the below error:</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #007800;">HEADLESS</span>=<span style="color: #000000;">1</span> cucumber
Celerity only works on JRuby at the moment. <span style="color: #7a0874; font-weight: bold;">&#40;</span>RuntimeError<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div><p>Actually <a
href="https://github.com/alisterscott/WatirMelonCucumber">his source code</a> looks different from his original one on the article. I couldn&#8217;t find Celerity in the latest codes.</p><p>I&#8217;m still exploring.</p> ]]></content:encoded> <wfw:commentRss>http://zuzara.com/blog/2011/10/27/watir-cucumber-environment/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>&#8220;&#8211;coverage-html&#8221; option doesn&#8217;t run on PHPUnit 3.6.0RC4</title><link>http://zuzara.com/blog/2011/10/15/coverage-html-option-doesnt-run-on-phpunit-3-6-0rc4/</link> <comments>http://zuzara.com/blog/2011/10/15/coverage-html-option-doesnt-run-on-phpunit-3-6-0rc4/#comments</comments> <pubDate>Sat, 15 Oct 2011 22:44:09 +0000</pubDate> <dc:creator>Nobu</dc:creator> <category><![CDATA[Tweak]]></category> <guid
isPermaLink="false">http://zuzara.com/blog/?p=365</guid> <description><![CDATA[3.6RC4 has a bug in line 288 of TextUI/Command.php. --coverage-html option isn&#8217;t parsed correctly. Even I fixes the misspelling it causes another error, and also the latest source code on Github looks very different from RC4, so I just gave up to use RC4. Upgrade to 3.6RC4 from 3.5 took some time and downgrade as [...]]]></description> <content:encoded><![CDATA[<p>3.6RC4 has a bug in line 288 of TextUI/Command.php. <code>--coverage-html</code> option isn&#8217;t parsed correctly. Even I fixes the misspelling it causes another error, and also <a
href="https://github.com/sebastianbergmann/phpunit/">the latest source code on Github</a> looks very different from RC4, so I just gave up to use RC4.</p><p>Upgrade to 3.6RC4 from 3.5 took some time and downgrade as well.</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> pear uninstall phpunit<span style="color: #000000; font-weight: bold;">/</span>PHPUnit
<span style="color: #000000; font-weight: bold;">%</span> pear config-set preferred_state beta
<span style="color: #000000; font-weight: bold;">%</span> pear <span style="color: #c20cb9; font-weight: bold;">install</span> phpunit<span style="color: #000000; font-weight: bold;">/</span>PHPUnit
<span style="color: #000000; font-weight: bold;">%</span> pear upgrade <span style="color: #660033;">--alldeps</span> <span style="color: #660033;">-f</span></pre></div></div><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> pear uninstall ... <span style="color: #666666; font-style: italic;"># Not sure if this was the easiest way, I just uninstall all dependencies individually</span>
<span style="color: #000000; font-weight: bold;">%</span> pear config-set preferred_state stable
<span style="color: #000000; font-weight: bold;">%</span> pear <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #660033;">--alldeps</span> phpunit<span style="color: #000000; font-weight: bold;">/</span>PHPUnit</pre></div></div><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> phpunit <span style="color: #660033;">--coverage-html</span> .<span style="color: #000000; font-weight: bold;">/</span>report BankAccountTest
<span style="color: #000000; font-weight: bold;">%</span> <span style="color: #7a0874; font-weight: bold;">cd</span> report
<span style="color: #000000; font-weight: bold;">%</span> python <span style="color: #660033;">-m</span> SimpleHTTPServer <span style="color: #000000;">9090</span></pre></div></div> ]]></content:encoded> <wfw:commentRss>http://zuzara.com/blog/2011/10/15/coverage-html-option-doesnt-run-on-phpunit-3-6-0rc4/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>&#8220;TypeError: &#8216;undefined&#8217; is not an object&#8221; in JavaScript on Safari</title><link>http://zuzara.com/blog/2011/10/11/typeerror-undefined-is-not-an-object-in-javascript-on-safari/</link> <comments>http://zuzara.com/blog/2011/10/11/typeerror-undefined-is-not-an-object-in-javascript-on-safari/#comments</comments> <pubDate>Wed, 12 Oct 2011 06:58:08 +0000</pubDate> <dc:creator>Nobu</dc:creator> <category><![CDATA[Tweak]]></category> <guid
isPermaLink="false">http://zuzara.com/blog/?p=361</guid> <description><![CDATA[jquery-tmpl causes the below error when wrap is called like {{wrap () "#id"}} on Safari (5.1). It should be {{wrap "#id"}}. No parentheses. On Chrome, it works well either way. jquery-tmpl is no longer actively developed, so I should use jsrender or something else anyways. TypeError: 'undefined' is not an object (evaluating 'call._')]]></description> <content:encoded><![CDATA[<p><a
href="https://github.com/jquery/jquery-tmpl">jquery-tmpl</a> causes the below error when wrap is called like <code>{{wrap () "#id"}}</code> on Safari (5.1). It should be <code>{{wrap "#id"}}</code>. No parentheses. On Chrome, it works well either way. jquery-tmpl is no longer actively developed, so I should use <a
href="https://github.com/BorisMoore/jsrender">jsrender</a> or something else anyways.</p><p><code>TypeError: 'undefined' is not an object (evaluating 'call._')</code></p> ]]></content:encoded> <wfw:commentRss>http://zuzara.com/blog/2011/10/11/typeerror-undefined-is-not-an-object-in-javascript-on-safari/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Jasmine install memo</title><link>http://zuzara.com/blog/2011/09/29/jasmine-install-memo/</link> <comments>http://zuzara.com/blog/2011/09/29/jasmine-install-memo/#comments</comments> <pubDate>Fri, 30 Sep 2011 04:27:33 +0000</pubDate> <dc:creator>Nobu</dc:creator> <category><![CDATA[Tweak]]></category> <guid
isPermaLink="false">http://zuzara.com/blog/?p=355</guid> <description><![CDATA[Jasmine + Sinon.JS looks neat. I just tried to play around on Amazon AMI. yum install ruby-devel rubygems gem install rspec-expectations gem install rake cd working-directory cd tests jasmine init rake jasmine your-laptop:% ssh sandbox -L 10000:127.0.0.1:8888 Access http://127.0.0.1:10000/ from your browser.]]></description> <content:encoded><![CDATA[<p><a
href="http://pivotal.github.com/jasmine/">Jasmine</a> + <a
href="http://sinonjs.org/">Sinon.JS</a> looks neat. I just tried to play around on Amazon AMI.</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> ruby-devel rubygems
gem <span style="color: #c20cb9; font-weight: bold;">install</span> rspec-expectations
gem <span style="color: #c20cb9; font-weight: bold;">install</span> rake
<span style="color: #7a0874; font-weight: bold;">cd</span> working-directory
<span style="color: #7a0874; font-weight: bold;">cd</span> tests
jasmine init
rake jasmine
your-laptop:<span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">ssh</span> sandbox <span style="color: #660033;">-L</span> <span style="color: #000000;">10000</span>:127.0.0.1:<span style="color: #000000;">8888</span></pre></div></div><p>Access http://127.0.0.1:10000/ from your browser.</p> ]]></content:encoded> <wfw:commentRss>http://zuzara.com/blog/2011/09/29/jasmine-install-memo/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Unexpectedly got a grayscale video on ffmpeg</title><link>http://zuzara.com/blog/2010/11/04/unexpectedly-got-a-grayscale-video-on-ffmpeg/</link> <comments>http://zuzara.com/blog/2010/11/04/unexpectedly-got-a-grayscale-video-on-ffmpeg/#comments</comments> <pubDate>Thu, 04 Nov 2010 23:28:24 +0000</pubDate> <dc:creator>Nobu</dc:creator> <category><![CDATA[Tweak]]></category> <guid
isPermaLink="false">http://zuzara.com/blog/?p=288</guid> <description><![CDATA[When I encode a video from jpeg to avi or something, I get this message: % ffmpeg -f image2 -i foo-%03d.jpg foo.avi Input Stream #0.0 frame size changed to 680x420, yuvj444p and the video will be grayscale unexpectedly. When I make jpeg images from png with &#8216;convert&#8217; (which is ImageMagick command) a blank/black image becomes [...]]]></description> <content:encoded><![CDATA[<p>When I encode a video from jpeg to avi or something, I get this message:</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">ffmpeg</span> <span style="color: #660033;">-f</span> image2 <span style="color: #660033;">-i</span> foo-<span style="color: #000000; font-weight: bold;">%</span>03d.jpg foo.avi
Input Stream <span style="color: #666666; font-style: italic;">#0.0 frame size changed to 680x420, yuvj444p</span></pre></div></div><p>and the video will be grayscale unexpectedly.</p><p>When I make jpeg images from png with &#8216;convert&#8217; (which is ImageMagick command) a blank/black image becomes gray as its color space. It should be RGB if you want to make it colored. It seems ffmpeg chooses its encoding mode from the beginning of frames even the rest of images are colored.</p><p>I don&#8217;t see an option to encode as colored forcefully on ffmpeg, so here is the command to make images RGB with convert.</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> convert foo-<span style="color: #000000; font-weight: bold;">*</span>.png <span style="color: #660033;">-type</span> TrueColor foo-<span style="color: #000000; font-weight: bold;">*</span>.jpg</pre></div></div> ]]></content:encoded> <wfw:commentRss>http://zuzara.com/blog/2010/11/04/unexpectedly-got-a-grayscale-video-on-ffmpeg/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Compiling httpd-2.2.16 and php-5.3.3 on Mac OS X 10.6.4</title><link>http://zuzara.com/blog/2010/07/28/compiling-httpd-and-php-on-mac/</link> <comments>http://zuzara.com/blog/2010/07/28/compiling-httpd-and-php-on-mac/#comments</comments> <pubDate>Thu, 29 Jul 2010 06:18:50 +0000</pubDate> <dc:creator>Nobu</dc:creator> <category><![CDATA[Tweak]]></category> <category><![CDATA[apache]]></category> <category><![CDATA[mac]]></category> <category><![CDATA[mamp]]></category> <category><![CDATA[php]]></category> <guid
isPermaLink="false">http://zuzara.com/blog/?p=244</guid> <description><![CDATA[Probably because of upgraded ports packages, self-compiled PHP on MAMP suddenly became not to find libjpeg and some libraries. There&#8217;s a way to upgrade to MAMP1.9, but I&#8217;ve decided to switch to use self-compiled 64bit PHP. Removed all macports packages. http://trac.macports.org/wiki/Migration % sudo port -f uninstall installed % sudo port clean --work --archive all For [...]]]></description> <content:encoded><![CDATA[<p>Probably because of upgraded ports packages, self-compiled PHP on MAMP suddenly became not to find libjpeg and some libraries. There&#8217;s a way to upgrade to MAMP1.9, but I&#8217;ve decided to switch to use self-compiled 64bit PHP.</p><p>Removed all macports packages. <a
href="http://trac.macports.org/wiki/Migration">http://trac.macports.org/wiki/Migration</a></p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #660033;">-f</span> uninstall installed
<span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> port clean <span style="color: #660033;">--work</span> <span style="color: #660033;">--archive</span> all</pre></div></div><p>For some reason, I installed <a
href="http://mxcl.github.com/homebrew/">Homebrew</a>.</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> brew <span style="color: #c20cb9; font-weight: bold;">install</span> libjpeg
<span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> brew <span style="color: #c20cb9; font-weight: bold;">link</span> libjpeg
<span style="color: #000000; font-weight: bold;">%</span> brew <span style="color: #c20cb9; font-weight: bold;">install</span> libpng
<span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> brew <span style="color: #c20cb9; font-weight: bold;">link</span> libpng
<span style="color: #000000; font-weight: bold;">%</span> brew <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #c20cb9; font-weight: bold;">gettext</span>
<span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> brew <span style="color: #c20cb9; font-weight: bold;">link</span> <span style="color: #c20cb9; font-weight: bold;">gettext</span>
<span style="color: #000000; font-weight: bold;">%</span> brew <span style="color: #c20cb9; font-weight: bold;">install</span> readline
<span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> brew <span style="color: #c20cb9; font-weight: bold;">link</span> readline</pre></div></div><p>I couldn&#8217;t find those packages on brew, so used ports.</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #c20cb9; font-weight: bold;">install</span> t1lib
<span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #c20cb9; font-weight: bold;">install</span> freetype</pre></div></div><p>Then, compiled apache and php.</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;">apache<span style="color: #000000; font-weight: bold;">%</span> .<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--enable-so</span> <span style="color: #660033;">--enable-rewrite</span> <span style="color: #660033;">--enable-usertrack</span>
<span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span>
php<span style="color: #000000; font-weight: bold;">%</span> .<span style="color: #000000; font-weight: bold;">/</span>configure \
<span style="color: #660033;">--with-apxs2</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>apxs \
<span style="color: #660033;">--with-gd</span> \
<span style="color: #660033;">--with-jpeg-dir</span> \
<span style="color: #660033;">--with-png-dir</span> \
<span style="color: #660033;">--with-zlib</span> \
<span style="color: #660033;">--with-freetype-dir</span>=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span> \
<span style="color: #660033;">--enable-bcmath</span> \
<span style="color: #660033;">--enable-ftp</span> \
<span style="color: #660033;">--enable-gd-native-ttf</span> \
<span style="color: #660033;">--with-bz2</span>=<span style="color: #000000; font-weight: bold;">/</span>usr \
<span style="color: #660033;">--with-ldap</span> \
<span style="color: #660033;">--with-sqlite</span> \
--with-t1<span style="color: #007800;">lib</span>=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span> \
<span style="color: #660033;">--enable-mbstring</span>=all \
<span style="color: #660033;">--with-curl</span> \
<span style="color: #660033;">--enable-sockets</span> \
<span style="color: #660033;">--enable-bcmath</span> \
<span style="color: #660033;">--enable-soap</span> \
<span style="color: #660033;">--with-kerberos</span> \
<span style="color: #660033;">--enable-calendar</span> \
<span style="color: #660033;">--enable-exif</span> \
<span style="color: #660033;">--with-libxml-dir</span> \
<span style="color: #660033;">--disable-xmlreader</span> \
<span style="color: #660033;">--with-gettext</span> \
<span style="color: #660033;">--with-openssl</span> \
<span style="color: #660033;">--without-iconv</span> \
<span style="color: #660033;">--with-readline</span>
<span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div><p>Also, installing pecl is needed.</p><p>That&#8217;s it.</p><p><ins
datetime="2010-07-31T18:12:13+00:00">Updated</ins>:<br
/> It seems Zend Framework uses iconv, so I need it now. There&#8217;s a link issue with default libiconv (/usr) or even ports (/opt/local). I&#8217;ve downloaded and compiled libiconv-1.13.1 from source. And, probably this is important, I moved /usr/lib/libiconv.* to /tmp. Otherwise you&#8217;ll get some linker errors like &#8220;ld: symbol(s) not found&#8221;. Then,</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">make</span> distclean
<span style="color: #000000; font-weight: bold;">%</span> .<span style="color: #000000; font-weight: bold;">/</span>configure ...--with-iconv-dir=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local...
<span style="color: #000000; font-weight: bold;">%</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div><p><ins
datetime="2010-09-07T07:20:35+00:00">Updated:</ins><br
/> I&#8217;ve added &#8216;&#8211;disable-ipv6&#8242; to fix &#8220;php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known&#8221; error while accessing remote URL with file_get_contents or so.</p> ]]></content:encoded> <wfw:commentRss>http://zuzara.com/blog/2010/07/28/compiling-httpd-and-php-on-mac/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Screenshots for UIKeyboardType</title><link>http://zuzara.com/blog/2010/07/01/screenshots-for-uikeyboardtype/</link> <comments>http://zuzara.com/blog/2010/07/01/screenshots-for-uikeyboardtype/#comments</comments> <pubDate>Thu, 01 Jul 2010 20:14:17 +0000</pubDate> <dc:creator>Nobu</dc:creator> <category><![CDATA[Tweak]]></category> <category><![CDATA[iPhone]]></category> <guid
isPermaLink="false">http://zuzara.com/blog/?p=226</guid> <description><![CDATA[iPhone has several keyboard types: typedef enum &#123; UIKeyboardTypeDefault, UIKeyboardTypeASCIICapable, UIKeyboardTypeNumbersAndPunctuation, UIKeyboardTypeURL, UIKeyboardTypeNumberPad, UIKeyboardTypePhonePad, UIKeyboardTypeNamePhonePad, UIKeyboardTypeEmailAddress, UIKeyboardTypeAlphabet = UIKeyboardTypeASCIICapable &#125; UIKeyboardType; I took the screenshots for them.]]></description> <content:encoded><![CDATA[<p><a
href="http://developer.apple.com/iphone/library/documentation/uikit/reference/UITextInputTraits_Protocol/Reference/UITextInputTraits.html">iPhone has several keyboard types</a>:</p><div
class="wp_syntax"><div
class="code"><pre class="c" style="font-family:monospace;"><span style="color: #993333;">typedef</span> <span style="color: #000000; font-weight: bold;">enum</span> <span style="color: #009900;">&#123;</span>
   UIKeyboardTypeDefault<span style="color: #339933;">,</span>
   UIKeyboardTypeASCIICapable<span style="color: #339933;">,</span>
   UIKeyboardTypeNumbersAndPunctuation<span style="color: #339933;">,</span>
   UIKeyboardTypeURL<span style="color: #339933;">,</span>
   UIKeyboardTypeNumberPad<span style="color: #339933;">,</span>
   UIKeyboardTypePhonePad<span style="color: #339933;">,</span>
   UIKeyboardTypeNamePhonePad<span style="color: #339933;">,</span>
   UIKeyboardTypeEmailAddress<span style="color: #339933;">,</span>
   UIKeyboardTypeAlphabet <span style="color: #339933;">=</span> UIKeyboardTypeASCIICapable
<span style="color: #009900;">&#125;</span> UIKeyboardType<span style="color: #339933;">;</span></pre></div></div><p>I took the screenshots for them.</p><p><div
id="attachment_231" class="wp-caption alignnone" style="width: 331px"><a
href="http://zuzara.com/blog/wp-content/uploads/2010/07/UIKeyboardTypeDefault.png"><img
src="http://zuzara.com/blog/wp-content/uploads/2010/07/UIKeyboardTypeDefault.png" alt="" title="UIKeyboardTypeDefault" width="321" height="217" class="size-full wp-image-231" /></a><p
class="wp-caption-text">UIKeyboardTypeDefault</p></div><br
/><div
id="attachment_233" class="wp-caption alignnone" style="width: 331px"><a
href="http://zuzara.com/blog/wp-content/uploads/2010/07/UIKeyboardTypeASCIICapable.png"><img
src="http://zuzara.com/blog/wp-content/uploads/2010/07/UIKeyboardTypeASCIICapable.png" alt="" title="UIKeyboardTypeASCIICapable" width="321" height="215" class="size-full wp-image-233" /></a><p
class="wp-caption-text">UIKeyboardTypeASCIICapable</p></div><br
/><div
id="attachment_232" class="wp-caption alignnone" style="width: 329px"><a
href="http://zuzara.com/blog/wp-content/uploads/2010/07/UIKeyboardTypeNumbersAndPunctuation.png"><img
src="http://zuzara.com/blog/wp-content/uploads/2010/07/UIKeyboardTypeNumbersAndPunctuation.png" alt="" title="UIKeyboardTypeNumbersAndPunctuation" width="319" height="217" class="size-full wp-image-232" /></a><p
class="wp-caption-text">UIKeyboardTypeNumbersAndPunctuation</p></div><br
/><div
id="attachment_230" class="wp-caption alignnone" style="width: 330px"><a
href="http://zuzara.com/blog/wp-content/uploads/2010/07/UIKeyboardTypeURL.png"><img
src="http://zuzara.com/blog/wp-content/uploads/2010/07/UIKeyboardTypeURL.png" alt="" title="UIKeyboardTypeURL" width="320" height="211" class="size-full wp-image-230" /></a><p
class="wp-caption-text">UIKeyboardTypeURL</p></div><br
/><div
id="attachment_229" class="wp-caption alignnone" style="width: 336px"><a
href="http://zuzara.com/blog/wp-content/uploads/2010/07/UIKeyboardTypeNumberPad.png"><img
src="http://zuzara.com/blog/wp-content/uploads/2010/07/UIKeyboardTypeNumberPad.png" alt="" title="UIKeyboardTypeNumberPad" width="326" height="217" class="size-full wp-image-229" /></a><p
class="wp-caption-text">UIKeyboardTypeNumberPad</p></div><br
/><div
id="attachment_228" class="wp-caption alignnone" style="width: 332px"><a
href="http://zuzara.com/blog/wp-content/uploads/2010/07/UIKeyboardTypePhonePad.png"><img
src="http://zuzara.com/blog/wp-content/uploads/2010/07/UIKeyboardTypePhonePad.png" alt="" title="UIKeyboardTypePhonePad" width="322" height="215" class="size-full wp-image-228" /></a><p
class="wp-caption-text">UIKeyboardTypePhonePad</p></div><br
/><div
id="attachment_234" class="wp-caption alignnone" style="width: 329px"><a
href="http://zuzara.com/blog/wp-content/uploads/2010/07/UIKeyboardTypeNamePhonePad.png"><img
src="http://zuzara.com/blog/wp-content/uploads/2010/07/UIKeyboardTypeNamePhonePad.png" alt="" title="UIKeyboardTypeNamePhonePad" width="319" height="215" class="size-full wp-image-234" /></a><p
class="wp-caption-text">UIKeyboardTypeNamePhonePad</p></div><br
/><div
id="attachment_227" class="wp-caption alignnone" style="width: 329px"><a
href="http://zuzara.com/blog/wp-content/uploads/2010/07/UIKeyboardTypeEmailAddress.png"><img
src="http://zuzara.com/blog/wp-content/uploads/2010/07/UIKeyboardTypeEmailAddress.png" alt="" title="UIKeyboardTypeEmailAddress" width="319" height="212" class="size-full wp-image-227" /></a><p
class="wp-caption-text">UIKeyboardTypeEmailAddress</p></div></p> ]]></content:encoded> <wfw:commentRss>http://zuzara.com/blog/2010/07/01/screenshots-for-uikeyboardtype/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> </channel> </rss>
