Web Dev Recent Entries

lightbox2onareatag.jpg

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 Pat &Alex Blogging.

google-mobile.jpg

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.

<link rel="alternate" media="handheld" href="alternate_page.htm" />

Support page on Google (Japanese)

csshomepage.png

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?

ffflash100percentfix.jpg

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.

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

You also need add elements outside of Flash tags.

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

http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&postId=3644&productId=1&loc=ja

fficon.jpg

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

imagemagicklogo.jpg

This is a note for adding comments to JPEG file by ImageMagick.

Sample to forbid transfer for docomo and au.

# convert -comment 'copy="NO",kddi_copyright=on" TARGETFILE_NAME.jpg CONVERTEDFILE_NAME.jpg

Gmail is one of the best solution to handle so much flood of mail, but an inconvenience annoys me these days.
The size of the preview thumbnails of the image attachments.

Because I receive many of mail with atattchments including the automatically converted FAX as jpg, I wrote easy greasemonkey script named gmailEnlargePreview to make the thumbnails larger.

gmailEnlargeImage.png

Please try if you like this. The script can be get from :
http://userscripts.org/scripts/show/30437

You can also get Japanese entry from :
http://blog.hippo.fm/2008/07/gmail-greasemonkey.html

imagemagicklogo.jpg

After installing the latest ImageMagick (6.4.2), an error occured on MovableType image upload interface. The error said "/usr/local/lib/libMagickCore.so.1 Undefined symbol "pthread_equal".

A web source tells it causes because of misconfigure on some version of FreeBSD (I guess 5.x or earlier version. It works fine on my 6.2.)

An easy solution is disable "thread".
Try it on configure process.

# ./configure --without-threads

cpan.jpg

Sometimes CPAN install fails because of registered site's problem.

You can change the URL by this command.

cpan> o conf urllist push "CPAN URL"

CPAN site list is available on CPAN SITE page.

goosh.png

If you are UNIX-ite, you will like the web site "Goosh".

"Goosh" is a web based Google interface which imitates unix type CUI.
It has UNIX commands like "ls", "more", "clear", "cd", etc.

You can search images and videos by the command "images" and "video". And also "wiki", "news", "blogs", "feeds", "place", "translate" are available.

This is kind of worthless web program but you can just have fun on unique type of web site.

About this archive

This page contains entries in category of Web Dev

Previous category is

UNIX

Recent entries are in

Index Page.

Past entries are in

Archive page

RSS RSS