<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:thr="http://purl.org/syndication/thread/1.0">
    <title>CMWK: javascript</title>
    <link rel="self" type="application/atom+xml" href="https://dogfood.lekumo.biz/cmwk/javascript/atom.xml" />
    <link rel="alternate" type="text/html" href="https://dogfood.lekumo.biz/cmwk/" />
    
    <id>tag:bb.lekumo.jp,2003:weblog-415535</id>
    <updated>2010-11-26T07:22:22+09:00</updated>
    <subtitle>blog.comewalk.com の倉庫</subtitle>
    <entry>
        <title>installing node.js on ubuntu 10.04</title>
        <link rel="alternate" type="text/html" href="https://dogfood.lekumo.biz/cmwk/2010/11/installing-nodejs-on-ubuntu-1004.html" />
        <link rel="replies" type="text/html" href="https://dogfood.lekumo.biz/cmwk/2010/11/installing-nodejs-on-ubuntu-1004.html" thr:count="0" />
        <id>tag:bb.lekumo.jp,2003:post-49233103</id>
        <published>2010-11-26T07:22:22+09:00</published>
        <updated>2013-02-16T01:35:14+09:00</updated>
        <summary>It was easy to install node.js on my ubuntu 10.04 below. ./configure make make install As additional information, I didnt install around ssl library. I got an error like below. Checking for function SSL_library_init : not found Checking for header...</summary>
        <author>
            <name>shigeta</name>
        </author>
        <category scheme="http://www.sixapart.com/ns/types#category" term="javascript" />
        <category scheme="http://www.sixapart.com/ns/types#category" term="ubuntu" />
        <category scheme="http://www.sixapart.com/ns/types#category" term="Web/Tech" />
        
        
<content type="html" xml:base="https://dogfood.lekumo.biz/cmwk/">
<![CDATA[
<div xmlns="http://www.w3.org/1999/xhtml"><p>It was easy to install node.js on my ubuntu 10.04 below.</p>
<blockquote>
<pre>./configure
make
make install
</pre>
</blockquote>
<p>As additional information, I didn't install around ssl library. I got an error like below.</p>
<blockquote>
<pre>Checking for function SSL_library_init : not found
Checking for header openssl/crypto.h : not found
</pre>
</blockquote>
<p>Then I installed libssl-dev by running following command.</p>
<blockquote>$ sudo apt-get install libssl-dev</blockquote>
<p>Yes, I installed node.js so far.</p>
<blockquote>
<pre>$ node -v
v0.2.5
</pre>
</blockquote></div>
]]>
</content>


    </entry>
    <entry>
        <title>Web Bug Track: bug 299 - setAttribute checked does not work in IE</title>
        <link rel="alternate" type="text/html" href="https://dogfood.lekumo.biz/cmwk/2010/09/web-bug-track-bug-299-setattribute-checked-does-not-work-in-ie.html" />
        <link rel="replies" type="text/html" href="https://dogfood.lekumo.biz/cmwk/2010/09/web-bug-track-bug-299-setattribute-checked-does-not-work-in-ie.html" thr:count="1" thr:updated="2014-02-03T06:11:34+09:00" />
        <id>tag:bb.lekumo.jp,2003:post-49233121</id>
        <published>2010-09-28T02:49:00+09:00</published>
        <updated>2013-02-16T01:35:15+09:00</updated>
        <summary>Known Workarounds: Two. You can set the checked attribute after youve appended your element to the DOM (so it will flash momentarily before being checked), or, you can call cbObj.setAttribute(defaultChecked, defaultChecked); which will also work. via webbugtrack.blogspot.com I had same...</summary>
        <author>
            <name>shigeta</name>
        </author>
        <category scheme="http://www.sixapart.com/ns/types#category" term="javascript" />
        
        
<content type="html" xml:base="https://dogfood.lekumo.biz/cmwk/">
<![CDATA[
<div xmlns="http://www.w3.org/1999/xhtml"><blockquote>
<p><span style="font-weight: bold;">Known Workarounds:</span> Two.  You can set the checked attribute after you&#39;ve appended your element to the DOM (so it will flash momentarily before being checked), or, you can call cbObj.setAttribute(&#39;defaultChecked&#39;, &#39;defaultChecked&#39;); which will also work.</p>
</blockquote>
<p><small>via <a href="http://webbugtrack.blogspot.com/2007/11/bug-299-setattribute-checked-does-not.html">webbugtrack.blogspot.com</a></small></p>
<p>I had same issue in IE8 today. I wrote a condition of user agent detection in my script for IE. Thanks!</p></div>
]]>
</content>


    </entry>
    <entry>
        <title>「このエントリーを含むはてなブックマーク」ボタンを TypePad に設置</title>
        <link rel="alternate" type="text/html" href="https://dogfood.lekumo.biz/cmwk/2008/11/typepad-6f5a.html" />
        <link rel="replies" type="text/html" href="https://dogfood.lekumo.biz/cmwk/2008/11/typepad-6f5a.html" thr:count="0" />
        <id>tag:bb.lekumo.jp,2003:post-49233567</id>
        <published>2008-11-09T21:01:00+09:00</published>
        <updated>2015-03-03T15:37:50+09:00</updated>
        <summary>はてなブックマークがどれだけ好き なんだろう と聞きたくなるほどに、TypePa...</summary>
        <author>
            <name>shigeta</name>
        </author>
        <category scheme="http://www.sixapart.com/ns/types#category" term="from typepad.jp" />
        <category scheme="http://www.sixapart.com/ns/types#category" term="javascript" />
        <category scheme="http://www.sixapart.com/ns/types#category" term="jQuery" />
        <category scheme="http://www.sixapart.com/ns/types#category" term="TypePad" />
        
        
<content type="html" xml:base="https://dogfood.lekumo.biz/cmwk/">
<![CDATA[
<div xmlns="http://www.w3.org/1999/xhtml"><p>はてなブックマークがどれだけ好き<img alt="heart01" class="emoticon heart01 at-xid-6a00e009972ea4883301287768bbfb970c " src="http://dogfood.lekumo.biz/photos/uncategorized/2013/02/16/6a00e009972ea4883301287768bbfb970cp.gif" data-prevurl="http://comewalk.typepad.com/.a/6a00e009972ea4883301287768bbfb970c-pi" />なんだろう<img alt="sign02" class="emoticon sign02 at-xid-6a00e009972ea4883301287768bc02970c " src="http://dogfood.lekumo.biz/photos/uncategorized/2013/02/16/6a00e009972ea4883301287768bc02970_3.gif" data-prevurl="http://comewalk.typepad.com/.a/6a00e009972ea4883301287768bc02970c-pi" />と聞きたくなるほどに、TypePad にはてな関連のネタを仕込む第 3 回目。</p>

<p>今回は自分のブログに「このエントリーを含むはてなブックマーク」ボタンを TypePad に設置します。</p>

<p>前にご紹介しました「jQueryライブラリを使う」ウィジェットを導入しつつ、TypeList にスクリプトを追加することで、上級者テンプレートを使わなくてもはてなブックマークボタンを設置できるようになります。</p>


<p>まず <a href="http://b.hatena.ne.jp/help/button">はてなブックマークのヘルプのページ</a>にあります <img alt="このエントリーを含むはてなブックマーク" height="12" src="http://comewalk.typepad.jp/s14u/images/b_entry.gif" style="border: medium none ;" title="このエントリーを含むはてなブックマーク" width="16" /> の画像を自分の PC にダウンロードして、次に TypePad のコントロールパネルにあるファイルマネージャで今の画像をアップロードします。アップロードされた URL を <em><strong>http://yourname.typepad.jp/blog/images/b_entry.gif</strong></em> と仮定します。</p>

<p>次は「jQueryライブラリを使う」ウィジェットを導入してください。<a href="http://comewalk.typepad.jp/s14u/use-jquery.html">こちらのページ</a>から jQuery を使うウィジェットをインストールできます。</p>

<p>そして TypeList の「メモ」または「リンク」のメモ欄に以下の javascript を貼付けます。（「リンク」の TypeList を使う場合はそのリストの設定ページで「メモをテキストとして表示」を選択しておいてください）<span style="font-size: 0.8em;"><span style="text-decoration: underline;">※<img alt="このエントリーを含むはてなブックマーク" height="12" src="http://comewalk.typepad.jp/s14u/images/b_entry.gif" style="border: medium none ;" title="このエントリーを含むはてなブックマーク" width="16" />の画像のパスは適宜読み替えてください。</span></span></p>

<pre class="code">&lt;script type=&quot;text/javascript&quot;&gt;<br />$(document).ready(function() {<br />&#0160; &#0160; $(&#39;.entry-footer-info&#39;).each(function() {<br />&#0160; &#0160;&#0160; &#0160;&#0160; var permalink = $(this).find(&#39;.permalink&#39;).attr(&#39;href&#39;);<br />&#0160; &#0160;&#0160; &#0160;&#0160; $(this).append(&#39; &lt;span class=&quot;separator&quot;&gt;|&lt;/span&gt;&#39;);<br />&#0160; &#0160;&#0160; &#0160;&#0160; $(this).append(&#39; &lt;a href=&quot;http://b.hatena.ne.jp/entry/&#39; + permalink + &#39;&quot;&gt;&lt;img src=&quot;<em><strong>http://yourname.typepad.jp/blog/images/b_entry.gif</strong></em>&quot; width=&quot;16&quot; height=&quot;12&quot; style=&quot;border: none;&quot; alt=&quot;このエントリーを含むはてなブックマーク&quot; title=&quot;このエントリーを含むはてなブックマーク&quot; /&gt;&lt;/a&gt;&#39;);<br />&#0160; &#0160; });<br />});<br />&lt;/script&gt;</pre>

<p>これで完了です。ブログを見ますと、ブログのフッターの横にはてなブックマークボタンが表示されたと思います。どうぞご利用ください。</p>

<p>seealso:</p>

<ul>
<li><a href="http://comewalk.typepad.jp/s14u/2008/11/typepad-2c9b.html">はてなスターを TypePad に設置</a> </li>
<li><a href="http://comewalk.typepad.jp/s14u/2008/11/typepad-f591.html">はてなブックマークカウンターを TypePad に設置</a></li>
<li><a href="http://b.hatena.ne.jp/help/button">はてなブックマーク - ヘルプ - 自分のブログに「このエントリーを含むはてなブックマーク」ボタン</a></li>
</ul></div>
]]>
</content>


    </entry>
    <entry>
        <title>はてなブックマークカウンターを TypePad に設置</title>
        <link rel="alternate" type="text/html" href="https://dogfood.lekumo.biz/cmwk/2008/11/typepad-f591.html" />
        <link rel="replies" type="text/html" href="https://dogfood.lekumo.biz/cmwk/2008/11/typepad-f591.html" thr:count="9" thr:updated="2014-12-05T03:53:12+09:00" />
        <id>tag:bb.lekumo.jp,2003:post-49233581</id>
        <published>2008-11-04T08:55:00+09:00</published>
        <updated>2013-02-16T01:35:26+09:00</updated>
        <summary>やっぱり自分のブログがブックマークされているかって気になりますよね。はてなブック...</summary>
        <author>
            <name>shigeta</name>
        </author>
        <category scheme="http://www.sixapart.com/ns/types#category" term="from typepad.jp" />
        <category scheme="http://www.sixapart.com/ns/types#category" term="javascript" />
        <category scheme="http://www.sixapart.com/ns/types#category" term="jQuery" />
        <category scheme="http://www.sixapart.com/ns/types#category" term="TypePad" />
        
        
<content type="html" xml:base="https://dogfood.lekumo.biz/cmwk/">
<![CDATA[
<div xmlns="http://www.w3.org/1999/xhtml"><p>やっぱり自分のブログがブックマークされているかって気になりますよね。<a href="http://b.hatena.ne.jp/">はてなブックマーク</a>ではブログの URL を渡すだけで画像でその URL を含むブックマークが何件あるか返してくれるサービスがあります。<a href="http://b.hatena.ne.jp/help/bcounter">こちら</a>でやり方が紹介されています。</p>

<p>さて、このやり方は HTML を直接編集できるサービスに限定されます。<a href="http://www.typepad.jp/">TypePad</a> でも上級者テンプレートを利用すれば MT タグを駆使して手軽にはてなブックマークカウンターを設置できるわけですが、私は別のやり方で対応する方法をご紹介します。</p>

<p>前にご紹介しました「jQueryライブラリを使う」ウィジェットを導入しつつ、TypeList にスクリプトを追加することで、上級者テンプレートを使わなくてもはてなブックマークカウンターが設置できるようになります。</p>

<p>まずは「jQueryライブラリを使う」ウィジェットを導入してください。<a href="http://comewalk.typepad.jp/s14u/use-jquery.html">こちらのページ</a>から jQuery を使うウィジェットをインストールできます。</p>

<p>次に TypeList の「メモ」または「リンク」のメモ欄に以下の javascript を貼付けます。（「リンク」の TypeList を使う場合はそのリストの設定ページで「メモをテキストとして表示」を選択しておいてください）</p>

<pre class="code">&lt;script type=&quot;text/javascript&quot;&gt;<br />$(&quot;h1&quot;).append(&#39;&lt;div class=&quot;hatena-entrylist&quot;&gt;&lt;a href=&quot;http://b.hatena.ne.jp/entrylist?url=&#39;+ $(&quot;h1 a&quot;).attr(&quot;href&quot;) +&#39;&quot;&gt;&lt;img src=&quot;http://b.hatena.ne.jp/bc/de/&#39;+$(&quot;h1 a&quot;).attr(&quot;href&quot;)+&#39;&quot; class=&quot;bcounter&quot; alt=&quot;この日記のはてなブックマーク数&quot; title=&quot;この日記のはてなブックマーク数&quot;/&gt;&lt;/a&gt;&lt;/iv&gt;&#39;);<br />$(&quot;.hatena-entrylist&quot;).css(&quot;margin-left&quot;, &quot;10px&quot;).css(&quot;display&quot;, &quot;inline&quot;);<br />&lt;/script&gt;</pre>

<p>これで完了です。ブログを見ますと、ブログのタイトルの横にはてなブックマークカウンターが表示されたと思います。ブックマークの件数が全てではないですが、ブックマークの件数が増えることがブログを続けるモチベーションにつながるときもあります。どうぞご利用ください。</p>

<p>seealso:</p>

<ul>
<li><a href="http://b.hatena.ne.jp/help/bcounter">はてなブックマークカウンターを自分のサイトに貼り付ける</a></li>
<li><a href="http://hatena.g.hatena.ne.jp/hatenapress/20081002">はてな、「はてなブックマーク」の新バージョン公開日程を決定　大規模リニューアで既存システムを改善</a></li>
</ul></div>
]]>
</content>


    </entry>
    <entry>
        <title>404 をカスタマイズする javascript</title>
        <link rel="alternate" type="text/html" href="https://dogfood.lekumo.biz/cmwk/2008/10/404-javascript.html" />
        <link rel="replies" type="text/html" href="https://dogfood.lekumo.biz/cmwk/2008/10/404-javascript.html" thr:count="7" thr:updated="2014-12-19T00:51:31+09:00" />
        <id>tag:bb.lekumo.jp,2003:post-49233593</id>
        <published>2008-10-31T20:30:00+09:00</published>
        <updated>2015-03-03T15:37:50+09:00</updated>
        <summary>Google ウェブマスターツール で 404 ページに javascript ...</summary>
        <author>
            <name>shigeta</name>
        </author>
        <category scheme="http://www.sixapart.com/ns/types#category" term="from typepad.jp" />
        <category scheme="http://www.sixapart.com/ns/types#category" term="javascript" />
        
        
<content type="html" xml:base="https://dogfood.lekumo.biz/cmwk/">
<![CDATA[
<div xmlns="http://www.w3.org/1999/xhtml"><p><a href="https://www.google.com/webmasters/tools/">Google ウェブマスターツール</a> で 404 ページに javascript を埋め込むと、Google ならではのちょっと気の利いた内容を出力してくれる javascript がありました。それが『拡張された 404 ページ』。（直訳すぎて痛いなぁw） <a href="http://www.google.com/support/webmasters/bin/topic.py?topic=12732">ヘルプをみる</a>と『カスタム 404 ウィジェット』と呼ぶみたいですね。</p>

<p>404 ページっていうのは「このページは存在しません」というエラーページですね。</p>

<p>TypePad ではユーザが独自の 404 ページを設置することができないので、この Tips は自分でサーバを管理されている方やレンタルサーバをご利用の方には有効ですね。</p>

<p>私が利用しているレンタルサーバ （<a href="http://xrea.com/">XREA</a>）で試してみました。http://www.s14u.info/mt/archive というページもディレクトリも存在しませんが、<a href="http://www.s14u.info/mt/archive">こちら</a>にアクセスしてみてください。検索窓が出たり、archives.html を候補ページを表示していたりしてちょっと気が利いた感じになりますね。</p>

<p>ニッチですがいい感じ<img alt="sun" class="emoticon sun at-xid-6a00e009972ea4883301287768bc22970c " src="http://dogfood.lekumo.biz/photos/uncategorized/2013/02/16/6a00e009972ea4883301287768bc22970_2.gif" data-prevurl="http://comewalk.typepad.com/.a/6a00e009972ea4883301287768bc22970c-pi" />かも。</p>

<p>seealso:</p>

<ul>
<li><pre id="line1"><a href="http://www.google.com/support/webmasters/bin/answer.py?answer=93641&amp;hl=ja">カスタム 404 ページ - ウェブマスター向けヘルプ センター</a> </pre></li>
<li><pre id="line12"><a href="http://www.hayawakari.com/xrea/index.php?FAQ%2F%A5%B5%A5%A4%A5%C8%BA%EE%C0%AE#content_1_12">FAQ/サイト作成 - はやわかり XREA</a> </pre></li>
</ul></div>
]]>
</content>


    </entry>
 
</feed>
