<?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>2012-01-13T12:56:37Z</updated>
    <subtitle>Internet, Web Dev, UNIX</subtitle>
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type 5.12</generator>

<entry>
    <title>Malware for WordPress, nl.ai hack</title>
    <link rel="alternate" type="text/html" href="http://mentalposition.com/blogtech/2011/11/malware-for-wordpress-nlai-hac.html" />
    <id>tag:mentalposition.com,2011:/blogtech//2.473</id>

    <published>2011-11-22T12:54:53Z</published>
    <updated>2012-01-13T12:56:37Z</updated>

    <summary> Pages of my friend&apos;s web sites were overwritten and inserted malicious javascript code. Google&apos;s alert message appeared on one of those sites, so I just thought someone reported the site as infectious by ill will. I looked for tips...</summary>
    <author>
        <name>POLO</name>
        <uri>http://mentalposition.com</uri>
    </author>
    
        <category term="Malware" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Web Dev" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="nlaimalware" label="nl.ai.malware" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="wordpress" label="WordPress" 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/nl.ai.malware.jpg"><img alt="nl.ai.malware.jpg" src="http://mentalposition.com/blogtech/assets_c/2012/01/nl.ai.malware-thumb-200x110-1817.jpg" width="200" height="110" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></a>

Pages of my friend's web sites were overwritten and inserted malicious javascript code. Google's alert message appeared on one of those sites, so I just thought someone reported the site as infectious by ill will.

I looked for tips to ged rid of it, and investigated suspicious files on the server. Then I found "log.php" which includes web shell function (and all crack tools) based on php. The script can hack files and database, and even brute force codes are inside it.

I guess it was infected via theme file of WordPress. A part of library files in the theme "arras", "timthumb.php" has vulnerability. They attacked it and inserted the code.

See also the site "<a href="http://redleg-redleg.blogspot.com/2011/11/malicious-software-hosted-on-nlai.html#more" target="_blank">Tips for removing website malware -- Redleg</a>".

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

<entry>
    <title>Note: error &quot;/usr/local/build-1/libtool: not found&quot; on making Apache 2.2.21 ports</title>
    <link rel="alternate" type="text/html" href="http://mentalposition.com/blogtech/2011/10/note-error-usrlocalbuild-1libt.html" />
    <id>tag:mentalposition.com,2011:/blogtech//2.472</id>

    <published>2011-10-14T12:53:40Z</published>
    <updated>2012-01-13T12:54:41Z</updated>

    <summary> While installing Apache 2.2.21 in /usr/local/www/apache22, an error &quot;/usr/local/build-1/libtool: not found&quot; occurred. You just need deinstall apr1, and reinstall apache22 again. #pkgdb -F; portsclean -CDD; portsnap fetch update # cd /usr/ports/devel/apr1 # make deinstall clean # cd /usr/ports/www/apache22 #...</summary>
    <author>
        <name>POLO</name>
        <uri>http://mentalposition.com</uri>
    </author>
    
        <category term="FreeBSD" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="frebsd" label="FreBSD" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="ports" label="Ports" 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/fbsdports.jpg"><img alt="fbsdports.jpg" src="http://mentalposition.com/blogtech/assets_c/2012/01/fbsdports-thumb-200x124-1815.jpg" width="200" height="124" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></a>

While installing Apache 2.2.21 in /usr/local/www/apache22, an error "/usr/local/build-1/libtool: not found" occurred.

You just need deinstall apr1, and reinstall apache22 again.

#pkgdb -F; portsclean -CDD; portsnap fetch update

# cd /usr/ports/devel/apr1
# make deinstall clean

# cd /usr/ports/www/apache22
# make install clean

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

<entry>
    <title>MacOSX 10.7.1 (Lion) Kernel Panic frequently occurs on MacBookPro6,2 (Core i7/NVIDIA GeForce GT330M).</title>
    <link rel="alternate" type="text/html" href="http://mentalposition.com/blogtech/2011/09/macosx-1071-lion-kernel-panic-.html" />
    <id>tag:mentalposition.com,2011:/blogtech//2.471</id>

    <published>2011-09-28T12:51:24Z</published>
    <updated>2012-01-13T12:53:29Z</updated>

    <summary> After updated to OSX 10.7.1 (Lion), My MacBookPro6,2 suddenly blackouts and crashes randomly, so much frequently. Console logs just tell some memory error and kind of NVRAM error like &quot;BSD process name corresponding to current thread: kernel_task&quot; or &quot;BSD...</summary>
    <author>
        <name>POLO</name>
        <uri>http://mentalposition.com</uri>
    </author>
    
        <category term="MacOSX" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="kernelpanick" label="KernelPanick" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="lion" label="Lion" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="nvidia" label="Nvidia" 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/mbp6%2C2.jpg"><img alt="mbp6,2.jpg" src="http://mentalposition.com/blogtech/assets_c/2012/01/mbp6%2C2-thumb-200x127-1813.jpg" width="200" height="127" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></a>

After updated to OSX 10.7.1 (Lion), My MacBookPro6,2 suddenly blackouts and crashes randomly, so much frequently. Console logs just tell some memory error and kind of NVRAM error like "BSD process name corresponding to current thread: kernel_task" or "BSD process name corresponding to current thread: Window Server".

I dug information about same problem, then I found someone resolved it by a temporary way. He used an app "gfxCardStatus" which can switch integrated graphic and discrete graphic manually. He stopped this panic by using only integrated graphic (Intel HD Graphics). Also in my environment, this problem was resolved by manually switching to integrated graphic, it disabled dual display though.

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

<entry>
    <title>Note: MacOSX Lion doesn&apos;t support old version of netatalk, and CNID DB error.</title>
    <link rel="alternate" type="text/html" href="http://mentalposition.com/blogtech/2011/07/note-macosx-lion-doesnt-suppor.html" />
    <id>tag:mentalposition.com,2011:/blogtech//2.470</id>

    <published>2011-07-22T12:49:28Z</published>
    <updated>2012-01-13T12:50:58Z</updated>

    <summary> MacOSX 10.7 Lion doesn&apos;t support old version of netatalk (2.0.x?). Lion won&apos;t mount older version of netatalk volume and an error occurred. It needs to be updated to the latest version. After the update, if CNID DB error occurred,...</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="lion" label="Lion" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="netatalk" label="Netatalk" 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/netatalk.png"><img alt="netatalk.png" src="http://mentalposition.com/blogtech/assets_c/2012/01/netatalk-thumb-200x140-1810.png" width="200" height="140" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></a>

MacOSX 10.7 Lion doesn't support old version of netatalk (2.0.x?). Lion won't mount older version of netatalk volume and an error occurred.

It needs to be updated to the latest version.
After the update, if CNID DB error occurred, ' cnid_metad_enable="YES" ' must be set in /etc/rc.conf, then restarting netatalk fixes this problem.

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

<entry>
    <title>Note: Add Like Button of Facebook on each entry of Tumblr.</title>
    <link rel="alternate" type="text/html" href="http://mentalposition.com/blogtech/2011/05/note-add-like-button-of-facebo.html" />
    <id>tag:mentalposition.com,2011:/blogtech//2.469</id>

    <published>2011-05-15T12:47:27Z</published>
    <updated>2012-01-13T12:48:56Z</updated>

    <summary> I have left my tumblr interface almost default for a long time because I did not have much interest and fun on Tumblr. For my business demands, I changed the design of my tumblr blog page and added Like...</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="tumblr" label="tumblr" 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/mpptumbr.jpg"><img alt="mpptumbr.jpg" src="http://mentalposition.com/blogtech/assets_c/2012/01/mpptumbr-thumb-200x133-1808.jpg" width="200" height="133" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></a>

I have left my tumblr interface almost default for a long time because I did not have much interest and fun on Tumblr. For my business demands, I changed the design of my tumblr blog page and added Like Button of Facebook in it.

For adding Like Button to each entry of Tumblr, "url" of og tag has not be set in head tag. It disturbs Like action for each entry. And "Send" fanction does not work correctly in each entry (I guess it is because of XFBML).

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

<entry>
    <title>Mobile Safari resizes background-image at 900 x 2200 pixel.</title>
    <link rel="alternate" type="text/html" href="http://mentalposition.com/blogtech/2010/11/mobile-safari-resizes-backgrou.html" />
    <id>tag:mentalposition.com,2010:/blogtech//2.443</id>

    <published>2010-11-20T13:04:12Z</published>
    <updated>2012-01-15T09:22:29Z</updated>

    <summary> On iOS, Safari automatically resizes image size defined by CSS (background-image) to viewport size at the size of 900 pixel width x 2200 pixel height (and vice versa). You need separate block elements which defined background image with CSS....</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="iOS" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="iPhone" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="mobile" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="backgroundimage" label="background-image" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="css" label="css" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="ios" label="iOS" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="ipad" label="iPad" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="iphone" label="iPhone" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="resize" label="resize" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="safari" label="Safari" 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/2010/11/mobilesafari-bgimage-size-1731.html" onclick="window.open('http://mentalposition.com/blogtech/assets_c/2010/11/mobilesafari-bgimage-size-1731.html','popup','width=341,height=242,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/2010/11/mobilesafari-bgimage-size-thumb-200x141-1731.png" width="200" height="141" alt="mobilesafari-bgimage-size.png" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></a>

On iOS, Safari automatically resizes image size defined by CSS (background-image) to viewport size at the size of 900 pixel width x 2200 pixel height (and vice versa).

You need separate block elements which defined background image with CSS.

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

<entry>
    <title>Note: IE7 Standalone with IE8</title>
    <link rel="alternate" type="text/html" href="http://mentalposition.com/blogtech/2010/09/note-ie7-standalone-with-ie8.html" />
    <id>tag:mentalposition.com,2010:/blogtech//2.423</id>

    <published>2010-09-23T08:43:46Z</published>
    <updated>2010-09-29T01:19:30Z</updated>

    <summary> There are lots of topics and tips for IE7 standalone, but just write it down to memorize for my trifle work. Download IE7 installer from Microsoft site, and IE7 standalone program from Tredo soft. Unstuff IE7 install exe by...</summary>
    <author>
        <name>POLO</name>
        <uri>http://mentalposition.com</uri>
    </author>
    
        <category term="Software" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Windows" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="internetexplorer7" label="InternetExplorer7" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="standalone" label="Standalone" 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/2010/09/IE7S-1674.html" onclick="window.open('http://mentalposition.com/blogtech/assets_c/2010/09/IE7S-1674.html','popup','width=307,height=211,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/2010/09/IE7S-thumb-200x137-1674.png" width="200" height="137" alt="IE7S.png" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></a>

There are lots of topics and tips for IE7 standalone, but just write it down to memorize for my trifle work.

Download IE7 installer from <a href="http://www.microsoft.com/japan/windows/downloads/ie/getitnow.mspx" target="_blank">Microsoft site</a>, and IE7 standalone program from <a href="http://tredosoft.com/IE7_standalone" target="_blank">Tredo soft</a>. Unstuff IE7 install exe by any archive app which can open rar file, and run xmllitesetup.exe. This setup program update system.
Put IE7S.exe into decompressed IE7 installer folder. Then you can run IE7 by using IE7S.exe.

# Limitation: it can not access SSL page.

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

<entry>
    <title>Note: Sending through internal FAX modem is disabled on MacOSX 10.5/10.6</title>
    <link rel="alternate" type="text/html" href="http://mentalposition.com/blogtech/2010/07/note-sending-through-internal.html" />
    <id>tag:mentalposition.com,2010:/blogtech//2.418</id>

    <published>2010-07-28T15:08:26Z</published>
    <updated>2010-07-29T03:01:52Z</updated>

    <summary> I still use internal FAX modem of MacOSX, but I sometimes faced a sending problem after Leopard. Apple reported this problem. It says turn off receive option in System Preferences, or reboot system after turning off receive option. This...</summary>
    <author>
        <name>POLO</name>
        <uri>http://mentalposition.com</uri>
    </author>
    
        <category term="MacOSX" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="faxmodem" label="FAX Modem" 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[<a href="http://mentalposition.com/blogtech/assets_c/2010/07/faxmodemproblem_on_osx-1650.html" onclick="window.open('http://mentalposition.com/blogtech/assets_c/2010/07/faxmodemproblem_on_osx-1650.html','popup','width=366,height=182,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/2010/07/faxmodemproblem_on_osx-thumb-200x99-1650.png" width="200" height="99" alt="faxmodemproblem_on_osx.png" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></a>

I still use internal FAX modem of MacOSX, but I sometimes faced a sending problem after Leopard.<a href="http://support.apple.com/kb/TS2738?viewlocale=ja_JP"> Apple reported this problem.</a> It says turn off receive option in System Preferences, or reboot system after turning off receive option.

This is not so useful solution, they should fix it even if it is for minor users like me.]]>
        
    </content>
</entry>

<entry>
    <title>Transmit4 + MacFuse</title>
    <link rel="alternate" type="text/html" href="http://mentalposition.com/blogtech/2010/06/transmit4-macfuse.html" />
    <id>tag:mentalposition.com,2010:/blogtech//2.415</id>

    <published>2010-06-05T03:11:12Z</published>
    <updated>2010-06-05T03:15:46Z</updated>

    <summary> Tranmit4 integrated with MacFuse. This integrateion let you feel smooth on seemlessly mounting FTP server in your Finder. I like also the icon of mounted volume. genarated by Transmit4, but do not like the menu icon on the right...</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="ftp" label="FTP" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="macfuse" label="MacFuse" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="transmit4" label="Transmit4" 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/2010/06/transmit4+macfuse-1641.html" onclick="window.open('http://mentalposition.com/blogtech/assets_c/2010/06/transmit4+macfuse-1641.html','popup','width=736,height=286,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/2010/06/transmit4+macfuse-thumb-200x77-1641.png" width="200" height="77" alt="transmit4+macfuse.png" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></a>

Tranmit4 integrated with MacFuse.

This integrateion let you feel smooth on seemlessly mounting FTP server in your Finder.
I like also the icon of mounted volume. genarated by Transmit4, but do not like the menu icon on the right side of menu bar.]]>
        
    </content>
</entry>

<entry>
    <title>Add Cut &amp; Paste to MacOSX Finder</title>
    <link rel="alternate" type="text/html" href="http://mentalposition.com/blogtech/2010/04/add-cut-paste-to-macosx-finder.html" />
    <id>tag:mentalposition.com,2010:/blogtech//2.408</id>

    <published>2010-04-26T14:00:30Z</published>
    <updated>2010-04-26T17:35:23Z</updated>

    <summary> I have used Path Finder almost for Cut &amp; Paste in file browsing, but I found defaults command for adding cut &amp; paste to MacOSX Finder. $ defaults write com.apple.finder AllowCutForItems -bool yes $ defaults write com.apple.finder AllowPasteForItems -bool...</summary>
    <author>
        <name>POLO</name>
        <uri>http://mentalposition.com</uri>
    </author>
    
        <category term="MacOSX" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="finder" label="Finder" 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[<a href="http://mentalposition.com/blogtech/assets_c/2010/04/finder-1597.html" onclick="window.open('http://mentalposition.com/blogtech/assets_c/2010/04/finder-1597.html','popup','width=332,height=164,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/2010/04/finder-thumb-200x98-1597.png" width="200" height="98" alt="finder.png" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></a>

I have used Path Finder almost for Cut & Paste in file browsing, but I found defaults command for adding cut & paste to MacOSX Finder.

$ defaults write com.apple.finder AllowCutForItems -bool yes
<s>$ defaults write com.apple.finder AllowPasteForItems -bool yes</s>
$ killall Finder

I like several convenient functions of Path Finder which are hidden or Finder.app doesn't have. Path Finder is sometimes unstable and I have to refresh its file browser after files are created of edited. This malfunction were irritating me so often.

This commands are so useful for me to discard Path Finder and switch back to default Finder.app.

I misunderstood this. It only moves a file into .Trash. And Paste doesn't work.

Then, later, I found another little utility "<a href="http://www.bergenstreetsoftware.com/" target="_blank">pathsnagger</a>" for alternate fuction of Path Finder.
It enables copying file path in context menu.]]>
        
    </content>
</entry>

<entry>
    <title>Note: No transparent image in transparent box element for IE6,7,8 FF3, Safari4</title>
    <link rel="alternate" type="text/html" href="http://mentalposition.com/blogtech/2010/03/note-no-transparent-image-in-t.html" />
    <id>tag:mentalposition.com,2010:/blogtech//2.404</id>

    <published>2010-03-16T15:27:11Z</published>
    <updated>2010-03-16T15:52:46Z</updated>

    <summary><![CDATA[Here is a note for no transparent image in transparent box element. &lt;style type="text/css"&gt; &lt;!-- #imageFrame { background-color: rgba(255,255,255,0.7); filter: alpha(opacity=70); } #imageFrame img { position: relative; } --&gt; &lt;/div&gt; &lt;div id="imageFrame"&gt; &lt;img src="example.jpg" /&gt; &lt;/div&gt; "background-color: rgba(255,255,255,0.7);" is for...]]></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="javascript" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="css" label="css" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="javascript" label="javascript" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="transparent" label="transparent" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="useragent" label="useragent" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://mentalposition.com/blogtech/">
        <![CDATA[Here is a note for no transparent image in transparent box element.


&lt;style type="text/css"&gt;
&lt;!--
#imageFrame { background-color: rgba(255,255,255,0.7); filter: alpha(opacity=70); }
#imageFrame img { position: relative; }
--&gt;
&lt;/div&gt;

&lt;div id="imageFrame"&gt;
&lt;img src="example.jpg" /&gt;
&lt;/div&gt;


"background-color: rgba(255,255,255,0.7);" is for FF3.x, Safari3.x, 4.x.

"filter: alpha(opacity=70)" and "position: relative" of img tag are for IE8.

And only IE6 and IE7 need "background-color: #FFF;" after "background-color: rgba(255,255,255,0.7);", so you have to detect useragent and write css by javascript.


function uacsssw() {
&nbsp;if(navigator.userAgent.match(/MSIE 6/) || navigator.userAgent.match(/MSIE 7/)){
&nbsp;&nbsp;document.write(
&nbsp;&nbsp;&nbsp;'&lt;style type="text/css"&gt;'+
&nbsp;&nbsp;&nbsp;'&lt;!--'+
&nbsp;&nbsp;&nbsp;'#imageFrame { background-color: #FFF; }'+
&nbsp;&nbsp;&nbsp;'--&gt;'+
&nbsp;&nbsp;&nbsp;'&lt;/style&gt;'
&nbsp;&nbsp;)
&nbsp;}
&nbsp;if(navigator.userAgent.match(/Firefox\/2/)){
&nbsp;&nbsp;document.write(
&nbsp;&nbsp;&nbsp;'&lt;style type="text/css"&gt;'+
&nbsp;&nbsp;&nbsp;'&lt;!--'+
&nbsp;&nbsp;&nbsp;'#imageFrame { background-color: #FFF; }'+
&nbsp;&nbsp;&nbsp;'--&gt;'+
&nbsp;&nbsp;&nbsp;'&lt;/style&gt;'
&nbsp;&nbsp;)
&nbsp;}
}


You have to insert this function after style definition.

Because FireFox2 can not overwrite transparent tag of outside box element on image object, I gave it up... Please let me know if you know any trick for FF2.

<a href="http://mentalposition.com/blogtech/assets_c/2010/03/notransparentimg-in-transparentbox-1591.html" onclick="window.open('http://mentalposition.com/blogtech/assets_c/2010/03/notransparentimg-in-transparentbox-1591.html','popup','width=271,height=186,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/2010/03/notransparentimg-in-transparentbox-thumb-200x137-1591.png" width="200" height="137" alt="notransparentimg-in-transparentbox.png" class="mt-image-left" style="float: left; margin: 0 20px 20px 0;" /></a>]]>
        
    </content>
</entry>

<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>

</feed>

