<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>Mental Position Techlog</title>
    <link rel="alternate" type="text/html" href="http://mentalposition.com/blogtech/" />
    <link rel="self" type="application/atom+xml" href="http://mentalposition.com/blogtech/atom.xml" />
    <id>tag:mentalposition.com,2007-10-26:/blogtech/2</id>
    <updated>2009-11-05T01:33:13Z</updated>
    <subtitle>Internet, Web Dev, UNIX</subtitle>
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type Pro 4.3-en</generator>

<entry>
    <title>VMware Fusion error &quot;lnc0: Missed packet -- no receive buffer&apos;</title>
    <link rel="alternate" type="text/html" href="http://mentalposition.com/blogtech/2009/11/vmware-fusion-error-lnc0-misse.html" />
    <id>tag:mentalposition.com,2009:/blogtech//2.377</id>

    <published>2009-11-04T17:29:58Z</published>
    <updated>2009-11-05T01:33:13Z</updated>

    <summary> An error of FreeBSD on VMware Fusion &quot;lnc0: Missed packet -- no receive buffer&quot; was sometimes annoying me. When bunch of this error stacks, virtual machine stacks too.After upgrading Fusion 3, it seems to run more stable, but this...</summary>
    <author>
        <name>POLO</name>
        <uri>http://mentalposition.com</uri>
    </author>
    
        <category term="FreeBSD" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="MacOSX" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="UNIX" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="e1000" label="e1000" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="em0" label="em0" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="ethernet0virtualdev" label="ethernet0.virtualDev" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="lnc0missedpacketnoreceivebuffer" label="lnc0: Missed packet -- no receive buffer" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="vmwarefusion" label="VMware Fusion" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://mentalposition.com/blogtech/">
        <![CDATA[<a href="http://mentalposition.com/blogtech/assets_c/2009/11/vmwarefusion-lnc0error-1504.html" onclick="window.open('http://mentalposition.com/blogtech/assets_c/2009/11/vmwarefusion-lnc0error-1504.html','popup','width=450,height=400,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://mentalposition.com/blogtech/assets_c/2009/11/vmwarefusion-lnc0error-thumb-200x177-1504.jpg" width="200" height="177" alt="vmwarefusion-lnc0error.jpg" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></a>

An error of FreeBSD on VMware Fusion "lnc0: Missed packet -- no receive buffer" was sometimes annoying me.

When bunch of this error stacks, virtual machine stacks too.After upgrading Fusion 3, it seems to run more stable, but this error still occurs.

I had been looking for solution to resolve this problem for several months and I found two solutions. The one is installing VMware tools and using vmxnet for Network interface, and another is editing .vmx file and add alternate NIC statement (e1000) in it.

VMware tools for fusion supports ony FreeBSD 6.3 and 7.0. Unfortunatelly I am using 6.2, so my environment was rejected by its installer.

I decieded to change NIC to e1000, and as a result it runs without problems.]]>
        <![CDATA[# How to change NIC of Virtual Machine of VMware Fusion.

Shutdown your VM and edit "YOURVM.vmx" file, then add this line. (you can see .vmx file in your VM file by Terminal.app)

<p style="padding: 3px; background-color: #333; color: #FFF;">ethernet0.virtualDev = "e1000"</p>

Change NIC name to em0 in your rc.conf. 

<p style="padding: 3px; background-color: #333; color: #FFF;">ifconfig_em0 "inet 192.168.0.2 netmask 255.255.255.0"</p>

Do not forget backup .vmx file before you edit.


I don't know why but named gave connection error "named : creating IPv4 interface failed".

listen-on option gets rid of the message.
Add this in option directive of named.conf.

<p style="padding: 3px; background-color: #333; color: #FFF;">listen-on { 127.0.0.1; 192.168.100.0/24; };</p>]]>
    </content>
</entry>

<entry>
    <title>Note: Use Lightbox2 on area tag</title>
    <link rel="alternate" type="text/html" href="http://mentalposition.com/blogtech/2009/09/note-use-lightbox2-on-area-tag.html" />
    <id>tag:mentalposition.com,2009:/blogtech//2.361</id>

    <published>2009-09-08T14:10:18Z</published>
    <updated>2009-09-08T14:23:03Z</updated>

    <summary> Lightobox2 can&apos;t work on area tag as default. To solve this problem, it needs replace imageLink.rel with Element.readAttribute($(imageLink),&quot;rel&quot;) in prototype.js. Detail: insert the line below in line 194. if (!target.rel) target.rel=Element.readAttribute($(target), &quot;rel&quot;); Quote from discussion in Pat &amp;Alex Blogging....</summary>
    <author>
        <name>POLO</name>
        <uri>http://mentalposition.com</uri>
    </author>
    
        <category term="Web Dev" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="javascript" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="lightbox2" label="Lightbox2" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://mentalposition.com/blogtech/">
        <![CDATA[<a href="http://mentalposition.com/blogtech/assets_c/2009/09/lightbox2onareatag-1456.html" onclick="window.open('http://mentalposition.com/blogtech/assets_c/2009/09/lightbox2onareatag-1456.html','popup','width=450,height=313,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://mentalposition.com/blogtech/assets_c/2009/09/lightbox2onareatag-thumb-200x139-1456.jpg" width="200" height="139" alt="lightbox2onareatag.jpg" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></a>

Lightobox2 can't work on area tag as default.

To solve this problem, it needs replace imageLink.rel with Element.readAttribute($(imageLink),"rel") in prototype.js.

Detail:
insert the line below in line 194.

if (!target.rel) target.rel=Element.readAttribute($(target), "rel");

Quote from discussion in <a href="http://www.patworx.de/blog/?p=20" target="_blank">Pat &Alex Blogging</a>.

<div style="clear: both;"></div>]]>
        
    </content>
</entry>

<entry>
    <title>Snow Leopard report</title>
    <link rel="alternate" type="text/html" href="http://mentalposition.com/blogtech/2009/08/snow-leopard-report.html" />
    <id>tag:mentalposition.com,2009:/blogtech//2.355</id>

    <published>2009-08-28T13:35:14Z</published>
    <updated>2009-08-28T14:39:48Z</updated>

    <summary> Apple released MacOSX new version 10.6, code name &quot;Snow Leopard&quot;. Refined 64bit support and Grand Central Dispatch apparently make user experience faster than ever. It is worth to upgrade if you use 64bit cpu. Even if your CPU is...</summary>
    <author>
        <name>POLO</name>
        <uri>http://mentalposition.com</uri>
    </author>
    
        <category term="MacOSX" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="macosx" label="MacOSX" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="snowleopard" label="Snow Leopard" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://mentalposition.com/blogtech/">
        <![CDATA[<a href="http://mentalposition.com/blogtech/assets_c/2009/08/snowleopard1-1408.html" onclick="window.open('http://mentalposition.com/blogtech/assets_c/2009/08/snowleopard1-1408.html','popup','width=526,height=444,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://mentalposition.com/blogtech/assets_c/2009/08/snowleopard1-thumb-200x168-1408.jpg" width="200" height="168" alt="snowleopard1.jpg" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></a>

Apple released MacOSX new version 10.6, code name "<a href="http://www.apple.com/macosx/" target="_blank">Snow Leopard</a>".

Refined 64bit support and Grand Central Dispatch apparently make user experience faster than ever.

It is worth to upgrade if you use 64bit cpu. Even if your CPU is core solo or core duo, it is better to install Snow Leopard.]]>
        <![CDATA[
<div class="clearfix blogExtendedBlock">

<a href="http://mentalposition.com/blogtech/assets_c/2009/08/snowleopard11-1438.html" onclick="window.open('http://mentalposition.com/blogtech/assets_c/2009/08/snowleopard11-1438.html','popup','width=450,height=378,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://mentalposition.com/blogtech/assets_c/2009/08/snowleopard11-thumb-200x168-1438.jpg" width="200" height="168" alt="snowleopard11.jpg" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></a>

As Apple announced before its release, Safari renders web page faster. I feel like 3 or 4 times faster than same version on 10.5.

</div>

<div class="clearfix blogExtendedBlock">

<a href="http://mentalposition.com/blogtech/assets_c/2009/08/snowleopard2-1411.html" onclick="window.open('http://mentalposition.com/blogtech/assets_c/2009/08/snowleopard2-1411.html','popup','width=663,height=513,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://mentalposition.com/blogtech/assets_c/2009/08/snowleopard2-thumb-200x154-1411.jpg" width="200" height="154" alt="snowleopard2.jpg" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></a>

Apple excluded Rosetta , backend program for non MacOSX native application like Carbon based app. You need choose Rosetta on custom install dialog.

</div>

<div class="clearfix blogExtendedBlock">

<a href="http://mentalposition.com/blogtech/assets_c/2009/08/snowleopard3-1414.html" onclick="window.open('http://mentalposition.com/blogtech/assets_c/2009/08/snowleopard3-1414.html','popup','width=321,height=393,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://mentalposition.com/blogtech/assets_c/2009/08/snowleopard3-thumb-200x244-1414.jpg" width="200" height="244" alt="snowleopard3.jpg" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></a>

Installation succeeded.

</div>

<div class="clearfix blogExtendedBlock">

<a href="http://mentalposition.com/blogtech/assets_c/2009/08/snowleopard4-1417.html" onclick="window.open('http://mentalposition.com/blogtech/assets_c/2009/08/snowleopard4-1417.html','popup','width=672,height=591,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://mentalposition.com/blogtech/assets_c/2009/08/snowleopard4-thumb-200x175-1417.jpg" width="200" height="175" alt="snowleopard4.jpg" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></a>

New time zone setting corrects clock by your location (IP address).

</div>

<div class="clearfix blogExtendedBlock">

<a href="http://mentalposition.com/blogtech/assets_c/2009/08/snowleopard5-1420.html" onclick="window.open('http://mentalposition.com/blogtech/assets_c/2009/08/snowleopard5-1420.html','popup','width=672,height=551,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://mentalposition.com/blogtech/assets_c/2009/08/snowleopard5-thumb-200x163-1420.jpg" width="200" height="163" alt="snowleopard5.jpg" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></a>

In sharing setting, sharing scanner option was added. (I wonder if it works correctly with my Canon scanner.)

</div>

<div class="clearfix blogExtendedBlock">

<a href="http://mentalposition.com/blogtech/assets_c/2009/08/snowleopard6-1423.html" onclick="window.open('http://mentalposition.com/blogtech/assets_c/2009/08/snowleopard6-1423.html','popup','width=672,height=585,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://mentalposition.com/blogtech/assets_c/2009/08/snowleopard6-thumb-200x174-1423.jpg" width="200" height="174" alt="snowleopard6.jpg" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></a>

In language and text setting, you can automatically replace special character.

</div>

<div class="clearfix blogExtendedBlock">

<a href="http://mentalposition.com/blogtech/assets_c/2009/08/snowleopard7-1426.html" onclick="window.open('http://mentalposition.com/blogtech/assets_c/2009/08/snowleopard7-1426.html','popup','width=287,height=282,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://mentalposition.com/blogtech/assets_c/2009/08/snowleopard7-thumb-200x196-1426.jpg" width="200" height="196" alt="snowleopard7.jpg" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></a>

When you switch input method, floating dialog appears on center of display.

</div>

<div class="clearfix blogExtendedBlock">

<a href="http://mentalposition.com/blogtech/assets_c/2009/08/snowleopard8-1429.html" onclick="window.open('http://mentalposition.com/blogtech/assets_c/2009/08/snowleopard8-1429.html','popup','width=558,height=502,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://mentalposition.com/blogtech/assets_c/2009/08/snowleopard8-thumb-200x179-1429.jpg" width="200" height="179" alt="snowleopard8.jpg" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></a>

Top command displays more status.

</div>

<div class="clearfix blogExtendedBlock">

<a href="http://mentalposition.com/blogtech/assets_c/2009/08/snowleopard9-1432.html" onclick="window.open('http://mentalposition.com/blogtech/assets_c/2009/08/snowleopard9-1432.html','popup','width=645,height=527,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://mentalposition.com/blogtech/assets_c/2009/08/snowleopard9-thumb-200x163-1432.jpg" width="200" height="163" alt="snowleopard9.jpg" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></a>

Blue glow frame appears around focused window in expose.

</div>

<div class="clearfix blogExtendedBlock">

<a href="http://mentalposition.com/blogtech/assets_c/2009/08/snowleopard10-1435.html" onclick="window.open('http://mentalposition.com/blogtech/assets_c/2009/08/snowleopard10-1435.html','popup','width=208,height=122,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://mentalposition.com/blogtech/assets_c/2009/08/snowleopard10-thumb-200x117-1435.jpg" width="200" height="117" alt="snowleopard10.jpg" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></a>

"Screen shot (スクリーンショット)" added to file name of screen shot.

</div>

This is just a release of refined upgrade version. So you can not find any impressive feature in this version, but it's only $29 (3300JPY).]]>
    </content>
</entry>

<entry>
    <title>Note: rsync --delete deletes all data when it builds first index.</title>
    <link rel="alternate" type="text/html" href="http://mentalposition.com/blogtech/2009/08/note-rsync---delete-deletes-al.html" />
    <id>tag:mentalposition.com,2009:/blogtech//2.351</id>

    <published>2009-08-21T10:46:53Z</published>
    <updated>2009-08-21T11:05:21Z</updated>

    <summary> I did forget that rsync with --delete option deleted data in the backup directory while rsync is building first index. After I reconstructed my backup RAID on the server in my local network, I executed rsync --delete then it...</summary>
    <author>
        <name>POLO</name>
        <uri>http://mentalposition.com</uri>
    </author>
    
        <category term="UNIX" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="raid" label="RAID" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="rsync" label="rsync" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://mentalposition.com/blogtech/">
        <![CDATA[<a href="http://mentalposition.com/blogtech/assets_c/2009/08/rsync-deletes-1396.html" onclick="window.open('http://mentalposition.com/blogtech/assets_c/2009/08/rsync-deletes-1396.html','popup','width=450,height=371,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://mentalposition.com/blogtech/assets_c/2009/08/rsync-deletes-thumb-200x164-1396.jpg" width="200" height="164" alt="rsync-deletes.jpg" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></a>

I did forget that rsync with --delete option deleted data in the backup directory while rsync is building first index.

After I reconstructed my backup RAID on the server in my local network, I executed rsync --delete then it deleted all backup data. It was too late when I was aware of it.

It is better to do it with --dry-run when you rsync at first time.

<div style="clear: both;"></div>]]>
        
    </content>
</entry>

<entry>
    <title>Fatal error: Call to undefined function: preg_match()</title>
    <link rel="alternate" type="text/html" href="http://mentalposition.com/blogtech/2009/05/fatal-error-call-to-undefined.html" />
    <id>tag:mentalposition.com,2009:/blogtech//2.312</id>

    <published>2009-05-25T15:20:40Z</published>
    <updated>2009-05-25T15:29:31Z</updated>

    <summary> After installing php5 from ports, php error said &quot;preg_match&quot; was undefined. This is because I forgot check install option &quot;PCRE&quot; while making port. Just make clean, rmconfig, and reinstall with PCRE, then restart Apache....</summary>
    <author>
        <name>POLO</name>
        <uri>http://mentalposition.com</uri>
    </author>
    
        <category term="FreeBSD" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="UNIX" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="pcre" label="PCRE" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="php" label="php" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="preg_match" label="preg_match" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://mentalposition.com/blogtech/">
        <![CDATA[<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://mentalposition.com/blogtech/php.html" onclick="window.open('http://mentalposition.com/blogtech/php.html','popup','width=202,height=142,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://mentalposition.com/blogtech/php-thumb-200x140.png" width="200" height="140" alt="php.png" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></a></span>

After installing php5 from ports, php error said "preg_match" was undefined.

This is because I forgot check install option "PCRE" while making port. Just make clean, rmconfig, and reinstall with PCRE, then restart Apache.

<div style="clear: both;"></div>]]>
        
    </content>
</entry>

<entry>
    <title>FreeBSD ports autoconf-2.62 bug - autoconf-2.62.texi:1723: Unknown command `&apos;.</title>
    <link rel="alternate" type="text/html" href="http://mentalposition.com/blogtech/2009/05/freebsd-ports-autoconf262-bug.html" />
    <id>tag:mentalposition.com,2009:/blogtech//2.311</id>

    <published>2009-05-25T15:07:56Z</published>
    <updated>2009-05-25T15:30:27Z</updated>

    <summary> Errors occured while compiling autoconf-2.62 of FreeBSD ports, &quot;autoconf-2.62.texi:1723: Unknown command `&apos;.&quot;. To solve this problem, remove old version of makeinfo from /usr/bin/makeinfo, and install new version of makeinfo by installing textinfo from ports (/usr/ports/print/textinfo)....</summary>
    <author>
        <name>POLO</name>
        <uri>http://mentalposition.com</uri>
    </author>
    
        <category term="FreeBSD" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="UNIX" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="autoconf262" label="autoconf-2.62" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="freebsd" label="FreeBSD" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="gnu" label="GNU" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://mentalposition.com/blogtech/">
        <![CDATA[<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://mentalposition.com/blogtech/gnufreebsd.html" onclick="window.open('http://mentalposition.com/blogtech/gnufreebsd.html','popup','width=216,height=87,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://mentalposition.com/blogtech/gnufreebsd-thumb-200x80.jpg" width="200" height="80" alt="gnufreebsd.jpg" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></a></span>

Errors occured while compiling autoconf-2.62 of FreeBSD ports,

"autoconf-2.62.texi:1723: Unknown command `'.". 

To solve this problem, remove old version of makeinfo from /usr/bin/makeinfo, and install new version of makeinfo by installing textinfo from ports (/usr/ports/print/textinfo).

<div style="clear: both;"></div>]]>
        
    </content>
</entry>

<entry>
    <title>Safari4 public beta</title>
    <link rel="alternate" type="text/html" href="http://mentalposition.com/blogtech/2009/05/safari4-public-beta.html" />
    <id>tag:mentalposition.com,2009:/blogtech//2.305</id>

    <published>2009-05-14T00:27:20Z</published>
    <updated>2009-05-14T00:29:53Z</updated>

    <summary> Safari4 public beta released. This version fixed the problem which affected other applications (like &quot;Save As&quot; problem of Mail.app), and improved loading speed. Users of previous version can install from Software Update....</summary>
    <author>
        <name>POLO</name>
        <uri>http://mentalposition.com</uri>
    </author>
    
        <category term="MacOSX" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Software" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="publicbeta" label="public beta" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="safari4" label="Safari4" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://mentalposition.com/blogtech/">
        <![CDATA[<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://mentalposition.com/blogtech/safari4publicbeta.html" onclick="window.open('http://mentalposition.com/blogtech/safari4publicbeta.html','popup','width=282,height=199,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://mentalposition.com/blogtech/safari4publicbeta-thumb-200x141.jpg" width="200" height="141" alt="safari4publicbeta.jpg" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></a></span>

Safari4 public beta released.

This version fixed the problem which affected other applications (like <a href="http://mentalposition.com/blogtech/2009/03/safari4-beta-disables-save-as.html">"Save As" problem of Mail.app</a>), and improved loading speed.

Users of previous version can install from Software Update.

<div style="clear: both;"></div>]]>
        
    </content>
</entry>

<entry>
    <title>Avoid Google Wireless Transcoder and redirect to mobile site.</title>
    <link rel="alternate" type="text/html" href="http://mentalposition.com/blogtech/2009/03/avoid-google-wireless-transcod.html" />
    <id>tag:mentalposition.com,2009:/blogtech//2.292</id>

    <published>2009-03-19T15:20:04Z</published>
    <updated>2009-03-19T17:12:53Z</updated>

    <summary> Google mobile lists both PC site and Mobile site in same result list. And its wireless transcoder tries to transcode PC site for mobile device. To avoid it and redirect to mobile site from the URL in search results,...</summary>
    <author>
        <name>POLO</name>
        <uri>http://mentalposition.com</uri>
    </author>
    
        <category term="HTML,CSS" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Web Dev" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="googlewirelesstranscoder" label="Google Wireless Transcoder" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="handheld" label="handheld" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="redirect" label="redirect" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://mentalposition.com/blogtech/">
        <![CDATA[<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://mentalposition.com/blogtech/google-mobile.html" onclick="window.open('http://mentalposition.com/blogtech/google-mobile.html','popup','width=200,height=73,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://mentalposition.com/blogtech/google-mobile-thumb-200x73.jpg" width="200" height="73" alt="google-mobile.jpg" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></a></span>

Google mobile lists both PC site and Mobile site in same result list. And its wireless transcoder tries to transcode PC site for mobile device.

To avoid it and redirect to mobile site from the URL in search results, just add a link tag in head tag of PC site.

&lt;link rel="alternate" media="handheld" href="alternate_page.htm" /&gt;

<a href="http://www.google.co.jp/support/webmasters/bin/answer.py?hl=jp&answer=35312" target="_blank">Support page on Google (Japanese)</a>]]>
        
    </content>
</entry>

<entry>
    <title>Safari4 beta disables &quot;Save as&quot; in Mail.app</title>
    <link rel="alternate" type="text/html" href="http://mentalposition.com/blogtech/2009/03/safari4-beta-disables-save-as.html" />
    <id>tag:mentalposition.com,2009:/blogtech//2.291</id>

    <published>2009-03-19T15:12:21Z</published>
    <updated>2009-03-19T15:18:24Z</updated>

    <summary> Some component in Safari4 beta disables &quot;Save as&quot; in Mail.app. Email can&apos;t be saved as text file. To solve this problem, you need uninstall Safari4 beta. Apple Discussions page (Japanese)...</summary>
    <author>
        <name>POLO</name>
        <uri>http://mentalposition.com</uri>
    </author>
    
        <category term="MacOSX" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Software" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="mail" label="Mail" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="safari4" label="Safari4" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="saveas" label="save as" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://mentalposition.com/blogtech/">
        <![CDATA[<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://mentalposition.com/blogtech/safar4-mail.html" onclick="window.open('http://mentalposition.com/blogtech/safar4-mail.html','popup','width=549,height=289,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://mentalposition.com/blogtech/safar4-mail-thumb-200x105.png" width="200" height="105" alt="safar4-mail.png" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></a></span>

Some component in Safari4 beta disables "Save as" in Mail.app. Email can't be saved as text file.

To solve this problem, you need uninstall Safari4 beta.

<a href="https://discussionsjapan.apple.com/message/100496466#100496466" target="_blank">Apple Discussions page (Japanese)</a>

<div style="clear: both;"></div>]]>
        
    </content>
</entry>

<entry>
    <title>Note: Embed pass phrase in SSL certificate key file</title>
    <link rel="alternate" type="text/html" href="http://mentalposition.com/blogtech/2009/03/note-embed-pass-phrase-in-ssl.html" />
    <id>tag:mentalposition.com,2009:/blogtech//2.290</id>

    <published>2009-03-19T14:33:40Z</published>
    <updated>2009-03-19T15:12:01Z</updated>

    <summary> Just note a tip to skip SSL pass phrase on starting httpd. # openssl rsa -in KEYFILE -out KEYFILE_EMBED Every time I forget when I install SSL certificate....</summary>
    <author>
        <name>POLO</name>
        <uri>http://mentalposition.com</uri>
    </author>
    
        <category term="UNIX" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="apache" label="apache" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="openssl" label="openssl" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="passphrase" label="pass phrase" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="ssl" label="SSL" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://mentalposition.com/blogtech/">
        <![CDATA[<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://mentalposition.com/blogtech/ssl-embed-passphrase.html" onclick="window.open('http://mentalposition.com/blogtech/ssl-embed-passphrase.html','popup','width=242,height=73,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://mentalposition.com/blogtech/ssl-embed-passphrase-thumb-200x60.jpg" width="200" height="60" alt="ssl-embed-passphrase.jpg" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></a></span>

Just note a tip to skip SSL pass phrase on starting httpd.

# openssl rsa -in KEYFILE  -out KEYFILE_EMBED

Every time I forget when I install SSL certificate.

<div style="clear: both;"></div>]]>
        
    </content>
</entry>

<entry>
    <title>Note: Anchor tag in a box element with clearfix collapses top margin</title>
    <link rel="alternate" type="text/html" href="http://mentalposition.com/blogtech/2009/02/note-anchor-tag-in-a-box-eleme.html" />
    <id>tag:mentalposition.com,2009:/blogtech//2.286</id>

    <published>2009-02-25T14:00:25Z</published>
    <updated>2009-02-25T14:31:57Z</updated>

    <summary> Anchor tags which link to the part of its page placed inside of a box element with clearfix collapse top margin of the box element. You need clear floated objects after the box element. Anyone knows alternate way of...</summary>
    <author>
        <name>POLO</name>
        <uri>http://mentalposition.com</uri>
    </author>
    
        <category term="HTML,CSS" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Web Dev" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="clearfix" label="clearfix" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="css" label="CSS" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://mentalposition.com/blogtech/">
        <![CDATA[<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://mentalposition.com/blogtech/csshomepage.html" onclick="window.open('http://mentalposition.com/blogtech/csshomepage.html','popup','width=281,height=184,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://mentalposition.com/blogtech/csshomepage-thumb-200x130.png" width="200" height="130" alt="csshomepage.png" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></a></span>

Anchor tags which link to the part of its page placed inside of a box element with clearfix collapse top margin of the box element.

You need clear floated objects after the box element.

Anyone knows alternate way of clearfix?

<div style="clear: both;"></div>]]>
        
    </content>
</entry>

<entry>
    <title>Note: FireFox ignores percent in size attribute of Flash</title>
    <link rel="alternate" type="text/html" href="http://mentalposition.com/blogtech/2009/02/note-firefox-ignores-percent-i.html" />
    <id>tag:mentalposition.com,2009:/blogtech//2.285</id>

    <published>2009-02-25T03:28:39Z</published>
    <updated>2009-02-25T03:57:40Z</updated>

    <summary> FireFox ignores the size of Flash if it is set by percent. FireFox renders HTML strictly based on Doctype when Doctype is HTML 4.0, XHTML 1.0 or later version. I had to code HTML with this type of Flash...</summary>
    <author>
        <name>POLO</name>
        <uri>http://mentalposition.com</uri>
    </author>
    
        <category term="Flash" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="HTML,CSS" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Web Dev" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="%" label="%" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="firefox" label="FireFox" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="flash" label="Flash" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="percent" label="Percent" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://mentalposition.com/blogtech/">
        <![CDATA[<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://mentalposition.com/blogtech/ffflash100percentfix.jpg"><img alt="ffflash100percentfix.jpg" src="http://mentalposition.com/blogtech/ffflash100percentfix-thumb-200x120.jpg" width="200" height="120" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></a></span>

FireFox ignores the size of Flash if it is set by percent. FireFox renders HTML strictly based on Doctype when Doctype is HTML 4.0, XHTML 1.0 or later version.

I had to code HTML with this type of Flash that other person made, and faced this problem. I didn't know this old issue.

The solution is adding size 100% for parent elements.

<div style="clear: both;"></div>

&lt;style type="text/css"&gt;
&lt;!--
html,body { height: 100%; width: 100%; }
--&gt;
&lt;/style&gt;

You also need add elements outside of Flash tags.

You can see a description about this issue on Adobe Developer Connection page. 

<a href="http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&postId=3644&productId=1&loc=ja" target="_blank">http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&postId=3644&productId=1&loc=ja</a>]]>
        
    </content>
</entry>

<entry>
    <title>Note: FireFox ignores style attribute without getElementById</title>
    <link rel="alternate" type="text/html" href="http://mentalposition.com/blogtech/2009/02/note-firefox-ignores-style-att.html" />
    <id>tag:mentalposition.com,2009:/blogtech//2.283</id>

    <published>2009-02-03T05:51:56Z</published>
    <updated>2009-02-03T06:01:07Z</updated>

    <summary> FireFox ignores style attribute in JavaScript without &quot;document.getElementsById(&apos;STYLE&apos;)&quot;....</summary>
    <author>
        <name>POLO</name>
        <uri>http://mentalposition.com</uri>
    </author>
    
        <category term="Web Dev" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="javascript" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="firefox" label="FireFox" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="getelementbyid" label="getElementById" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="javascript" label="javascript" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="styledisplay" label="style.display" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://mentalposition.com/blogtech/">
        <![CDATA[<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://mentalposition.com/blogtech/fficon.html" onclick="window.open('http://mentalposition.com/blogtech/fficon.html','popup','width=200,height=105,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://mentalposition.com/blogtech/fficon-thumb-200x105.jpg" width="200" height="105" alt="fficon.jpg" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></a></span>

FireFox ignores style attribute in JavaScript without "document.getElementsById('STYLE')".

<div style="clear: both;"></div>]]>
        
    </content>
</entry>

<entry>
    <title>Macfusion</title>
    <link rel="alternate" type="text/html" href="http://mentalposition.com/blogtech/2009/01/macfusion.html" />
    <id>tag:mentalposition.com,2009:/blogtech//2.281</id>

    <published>2009-01-09T14:23:46Z</published>
    <updated>2009-01-09T14:44:22Z</updated>

    <summary> Macfusion is an application which can mount volumes via FTP or SSH based on MacFUSE program. Though I know this application released few years ago, I didn&apos;t trust its stability and had not tried it since its release. Mac...</summary>
    <author>
        <name>POLO</name>
        <uri>http://mentalposition.com</uri>
    </author>
    
        <category term="MacOSX" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Software" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="macfuse" label="MacFUSE" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="macfusion" label="Macfusion" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="macosx" label="MacOSX" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://mentalposition.com/blogtech/">
        <![CDATA[<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://mentalposition.com/blogtech/macfusion.html" onclick="window.open('http://mentalposition.com/blogtech/macfusion.html','popup','width=510,height=331,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://mentalposition.com/blogtech/macfusion-thumb-200x129.jpg" width="200" height="129" alt="macfusion.jpg" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></a></span>

<a href="http://www.macfusionapp.org/" target="_blank">Macfusion</a> is an application which can mount volumes via FTP or SSH based on <a href="http://code.google.com/p/macfuse/" target="_blank">MacFUSE</a> program.

Though I know this application released few years ago, I didn't trust its stability and had not tried it since its release.

<a href="http://www.apple.com/macosx/" target="_blank">Mac OS X</a> can mount FTP as default, but for some reason I can't understand, upload is not allowed.

Latest version of Macfusion runs smooth and enables accessing to FTP volumes from finder seamlessly. You do not need run other FTP application each time you upload files to your site.]]>
        
    </content>
</entry>

<entry>
    <title>Note:Apache2.1.11+php4.4.x makes processes stacked.</title>
    <link rel="alternate" type="text/html" href="http://mentalposition.com/blogtech/2009/01/noteapache2111php44x-makes-pro.html" />
    <id>tag:mentalposition.com,2009:/blogtech//2.280</id>

    <published>2009-01-06T12:59:00Z</published>
    <updated>2009-01-06T15:22:35Z</updated>

    <summary> Apache2.1.11+php4.4.9 (on FreeBSD6.2) makes httpd processes stacked, and they are going to be dumb. The problem was fixed by upgrading php to the version 5.2.8....</summary>
    <author>
        <name>POLO</name>
        <uri>http://mentalposition.com</uri>
    </author>
    
        <category term="FreeBSD" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="UNIX" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="apache2111" label="Apache2.1.11" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="php44" label="php4.4" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="php52" label="php5.2" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://mentalposition.com/blogtech/">
        <![CDATA[<span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://mentalposition.com/blogtech/php%2Bapache.html" onclick="window.open('http://mentalposition.com/blogtech/php%2Bapache.html','popup','width=200,height=100,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://mentalposition.com/blogtech/php+apache-thumb-200x100.jpg" width="200" height="100" alt="php+apache.jpg" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></a></span>

<a href="http://httpd.apache.org" target="_blank">Apache</a>2.1.11+<a href="http://www.php.net" target="_blank">php</a>4.4.9 (on FreeBSD6.2) makes httpd processes stacked, and they are going to be dumb.

The problem was fixed by upgrading php to the version 5.2.8.

<div style="clear: both;"></div>]]>
        
    </content>
</entry>

</feed>
