<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
    <channel>
        <title>OSS EXPO</title>
        <link>http://www.ossexpo.net/</link>
        <description>yasuma(OSSテクノロジ http://www.osstech.co.jp)によるOpen Source Softwareに関する記録、その他です。</description>
        <language>ja</language>
        <copyright>Copyright 2009</copyright>
        <lastBuildDate>Fri, 27 Nov 2009 17:31:18 +0900</lastBuildDate>
        <generator>http://www.sixapart.com/movabletype/</generator>
        <docs>http://www.rssboard.org/rss-specification</docs>
        
        <item>
            <title>[Google Apps更新情報] Google Apps Connectorアップデート</title>
            <description><![CDATA[<a href="http://googleappsupdates.blogspot.com/2009/11/new-version-of-google-apps-connector.html">http://googleappsupdates.blogspot.com/2009/11/new-version-of-google-apps-connector.html</a>

Google Apps Connector for Blackberry Enterprise Serverがバージョンアップ。

<ul>
<li>１サーバーで500人まで利用可能になった</li>
<li>64bit版 Windowsで利用可能になった</li>
<li>Blackberry Professional Softwareのサポート</li>
<li>1サーバーで複数の組織に対応可能になった</li>
<li>ログ機能の改善</li>
</ul>]]></description>
            <link>http://www.ossexpo.net/2009/11/google-apps-google-apps-connec.html</link>
            <guid>http://www.ossexpo.net/2009/11/google-apps-google-apps-connec.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">Google Apps</category>
            
            
            <pubDate>Fri, 27 Nov 2009 17:31:18 +0900</pubDate>
        </item>
        
        <item>
            <title>Solaris10 + Apache 2.2.14でSegmentation Fault</title>
            <description><![CDATA[Solaris10で、Apache 2.2.0～2.2.13を動かすと、CVE-2009-2699の脆弱性の影響範囲に該当する。
インターネットにつながっているサーバーだと、どうやらIPアドレス総当たり?で順番に攻撃を受けることがあるようで、何週間かに1回ほど、Apacheがストール状態に陥る状況に遭遇した。

対策として、Apacheのアップデートということで、2.2.14にアップデートしたところ、いきなりSegmentation Fault連発で使い物にならなかった。
調べてみたところ、下記の問題のようだった。
<a href="https://issues.apache.org/bugzilla/show_bug.cgi?id=48029">https://issues.apache.org/bugzilla/show_bug.cgi?id=48029</a>

ということで、apacheのソース中のsrclib/aprディレクトリに、上記の報告の一番最後に記載されているパッチを適用したところ、問題無く動作するようになって安堵した。

<a href="http://svn.apache.org/viewvc/apr/apr/branches/1.3.x/poll/unix/port.c?r1=807269&r2=829803">http://svn.apache.org/viewvc/apr/apr/branches/1.3.x/poll/unix/port.c?r1=807269&r2=829803</a>

まさかのSegmentation Fault連発で少し焦った。
]]></description>
            <link>http://www.ossexpo.net/2009/11/solaris10-apache-2214segmentat.html</link>
            <guid>http://www.ossexpo.net/2009/11/solaris10-apache-2214segmentat.html</guid>
            
            
            <pubDate>Fri, 27 Nov 2009 17:14:56 +0900</pubDate>
        </item>
        
        <item>
            <title>Djangoでmodels.pyを分割する</title>
            <description><![CDATA[Djangoでは、アプリケーションのモデルをmodels.pyにclassとして定義するけど、
1つのファイルに定義するにはあまりにも大きくなりすぎたので、分割しようと思った。

いろいろ調べたところ、次の方法で実現できた。

最初は次のような構成になっている。
<pre><code>
- project
  - app
    - models.py
    - views.py
</code></pre>

このmodels.pyに、demo1クラスとdemo2クラスがあるとすると、
次のようにして分割することができた。
<pre><code>
- project
  - app
    - modelsディレクトリ
      -  __init__.py
      -  model1.py
      -  model2.py
   - views.py
</code></pre>

model1.pyに含まれるdemo1クラスは次のようにMetaクラスを定義し、app_labelに「app」の名前を定義する。
<pre><code>
from django.db import models
class demo1(Models.model):
    class Meta:
         app_label = 'app'

    ... 通常の定義 ...
</code></pre>

model2.pyに含まれるdemo2クラスは、demo1クラスと同じようにMetaクラスの定義とapp_labelの設定を行う。

<pre><code>
from django.db import models
class demo2(Models.model):
    class Meta:
         app_label = 'app'

    ... 通常の定義 ...
</code></pre>

最後にapp/models/__init__.py に、次の設定を追加する。
<pre><code>
from model1 import demo1
from model2 import demo2 
</code></pre>

これで、manage.py syncdbしたときに、それぞれのモデルのテーブルが作成される。
注意点としては、ForeignKey()を利用するときには、対象のクラスを忘れないようにimportしないといけない。importを忘れると、syncdbしたときにエラーにならないけど、テーブルは作成されていない。

]]></description>
            <link>http://www.ossexpo.net/2009/11/djangomodelspy.html</link>
            <guid>http://www.ossexpo.net/2009/11/djangomodelspy.html</guid>
            
            
            <pubDate>Wed, 18 Nov 2009 15:22:03 +0900</pubDate>
        </item>
        
        <item>
            <title>python-ldapでpaged controlのsearch処理</title>
            <description><![CDATA[Active Directoryからエントリを検索するときに、検索結果が1000件を越えると、
size limitのエラーになってしまう。
このような場合に備えて、paged control付きのsearchをpython-ldapでどのように
実装するか調べてみた。
python-ldapのsampleに入っているらしいけど、次のようなコードでできた。

<pre><code>
#!/usr/bin/python
import ldap
from ldap.controls import SimplePagedResultsControl
url = "ldap://adserver.example.com"
base = "dc=example,dc=com"
filter = "sAMAccountName=*"
page_size = 1000
conn = ldap.initialize(url)
conn.simple_bind_s("Administrator@example.com","password")
lcon = SimplePagedResultsControl(ldap.LDAP_CONTROL_PAGE_OID, True, (page_size, ''))
msgid = conn.search_ext(base, ldap.SCOPE_SUBTREE, filter, serverctrls=[lcon])
pages = 0
while True:
    pages += 1
    print "============ Get page %d ==============" % (pages,)
    (rtype, rdata, rmsgid, serverctrls) = conn.result3(msgid)
    for item in rdata:
        print item[0]
    pctrls = [
        c
        for c in serverctrls
        if c.controlType == ldap.LDAP_CONTROL_PAGE_OID
        ]
    if pctrls:
        print pctrls
        (est, cookie) = pctrls[0].controlValue
        if cookie:
            lcon.controlValue = (page_size, cookie)
            msgid = conn.search_ext(base, ldap.SCOPE_SUBTREE, filter, serverctrls=[lcon])
        else:
            break
    else:
        break
</code></pre>
]]></description>
            <link>http://www.ossexpo.net/2009/11/python-ldappaged-controlsearch.html</link>
            <guid>http://www.ossexpo.net/2009/11/python-ldappaged-controlsearch.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">LDAP</category>
            
            
            <pubDate>Thu, 12 Nov 2009 17:15:00 +0900</pubDate>
        </item>
        
        <item>
            <title>Samba4の初パッチ投稿</title>
            <description><![CDATA[Samba4のRPMパッケージを作ってみたところ、最近の変更にmake installが追随できていなかったので、パッチを登録。無事commitされた。

<a href="https://bugzilla.samba.org/show_bug.cgi?id=6887">https://bugzilla.samba.org/show_bug.cgi?id=6887</a>]]></description>
            <link>http://www.ossexpo.net/2009/11/samba4-4.html</link>
            <guid>http://www.ossexpo.net/2009/11/samba4-4.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">Samba</category>
            
            
            <pubDate>Wed, 11 Nov 2009 16:49:01 +0900</pubDate>
        </item>
        
        <item>
            <title>[Google Apps更新情報] Gmailのオフライン機能の改良</title>
            <description><![CDATA[<a href="http://googleappsupdates.blogspot.com/2009/11/download-options-for-offline-gmail.html">http://googleappsupdates.blogspot.com/2009/11/download-options-for-offline-gmail.html</a>

Gmailのオフライン機能利用時に、どのメッセージをオフラインでも読めるようにダウンロードするか選択するオプションが追加された。
]]></description>
            <link>http://www.ossexpo.net/2009/11/google-apps-gmail.html</link>
            <guid>http://www.ossexpo.net/2009/11/google-apps-gmail.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">Google Apps</category>
            
            
            <pubDate>Fri, 06 Nov 2009 11:30:59 +0900</pubDate>
        </item>
        
        <item>
            <title>[Google Apps更新情報] カレンダー機能の改善</title>
            <description><![CDATA[<a href="http://googleappsupdates.blogspot.com/2009/10/enhancements-to-google-calendar.html">http://googleappsupdates.blogspot.com/2009/10/enhancements-to-google-calendar.html</a>

<ul>
<li>イベント通知のポップアップをスヌーズ動作することが可能になった。</li>
<li>特定のカレンダーの表示を隠すことが可能になった。</li>
<li>カレンダーのタイムゾーンが、表示のタイムゾーンと同期するようになった。</li>
</ul>]]></description>
            <link>http://www.ossexpo.net/2009/10/google-apps-13.html</link>
            <guid>http://www.ossexpo.net/2009/10/google-apps-13.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">Google Apps</category>
            
            
            <pubDate>Tue, 27 Oct 2009 18:02:58 +0900</pubDate>
        </item>
        
        <item>
            <title>LinuxからWindowsのコマンドを実行する</title>
            <description><![CDATA[LinuxからWindowsに用意されたコマンドを実行したかったので、winexeを使ってみた。
<a href="http://eol.ovh.org/winexe/">http://eol.ovh.org/winexe/</a>

最新版をビルドしてみると、samba4.0.0tp4のソースを利用していた。
実質的にはsmbclientの亜種みたいなものだった。使い方もそっくり。

$ winexe -U tatsuya //hostname "ipconfig /all" | iconv -f cp932 -t utf-8

コマンドの実行結果は当然ShiftJISなので、Linux上で正常に表示しようと思うと、文字コード変換が必要なのが玉に傷。
でも、これなら、いろいろ改造できそうだ。
]]></description>
            <link>http://www.ossexpo.net/2009/10/linuxwindows.html</link>
            <guid>http://www.ossexpo.net/2009/10/linuxwindows.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">Samba</category>
            
            
            <pubDate>Tue, 27 Oct 2009 17:58:34 +0900</pubDate>
        </item>
        
        <item>
            <title>MicrosoftのCIFSプロトコルの仕様書公開</title>
            <description><![CDATA[<a href="http://msdn.microsoft.com/en-us/library/ee442092(PROT.13).aspx">http://msdn.microsoft.com/en-us/library/ee442092(PROT.13).aspx</a>

CIFSプロトコルの仕様書が公開された模様。]]></description>
            <link>http://www.ossexpo.net/2009/10/microsoftnocifs.html</link>
            <guid>http://www.ossexpo.net/2009/10/microsoftnocifs.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">Samba</category>
            
            
            <pubDate>Wed, 14 Oct 2009 16:45:04 +0900</pubDate>
        </item>
        
        <item>
            <title>[Google Apps更新情報] DocsでDrawing機能の強化</title>
            <description><![CDATA[<a href="http://googleappsupdates.blogspot.com/2009/10/new-features-for-drawings-in-google.html">http://googleappsupdates.blogspot.com/2009/10/new-features-for-drawings-in-google.html</a>

Google Docsで、文書に入れるシェープの作成機能が強化された。
<ul>
<li>カスタムシェープを作成する機能</li>
<li>シェープを揃えたり、リサイズすることが簡単に</li>
<li>線を何本も描くのが簡単に</li>
</ul>
]]></description>
            <link>http://www.ossexpo.net/2009/10/google-apps-docsdrawing.html</link>
            <guid>http://www.ossexpo.net/2009/10/google-apps-docsdrawing.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">Google Apps</category>
            
            
            <pubDate>Tue, 13 Oct 2009 20:01:47 +0900</pubDate>
        </item>
        
        <item>
            <title>[Google Apps更新情報] Googleサイトで、RSSフィードとテンプレートカスタマイズ対応</title>
            <description><![CDATA[<a href="http://googleappsupdates.blogspot.com/2009/10/enhancements-to-google-sites.html">http://googleappsupdates.blogspot.com/2009/10/enhancements-to-google-sites.html</a>

Googleサイトで、次の2つの機能がサポートされた。
<ul>
<li>Googleサイトの新着情報をウォッチするためのRSSフィードの配信ページ</li>
<li>Googleサイトのテンプレートとして、ユーザーがカスタマイズしたテンプレートを登録可能</li>
</ul>
]]></description>
            <link>http://www.ossexpo.net/2009/10/google-apps-googlerss.html</link>
            <guid>http://www.ossexpo.net/2009/10/google-apps-googlerss.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">Google Apps</category>
            
            
            <pubDate>Tue, 13 Oct 2009 19:54:52 +0900</pubDate>
        </item>
        
        <item>
            <title>[Google Apps更新情報] Docsのスプレッドシートに翻訳機能が付いた</title>
            <description><![CDATA[<a href="http://googleappsupdates.blogspot.com/2009/10/translation-functions-in-google.html">http://googleappsupdates.blogspot.com/2009/10/translation-functions-in-google.html</a>

スプレッドシートのセルの関数で、翻訳機能がサポートされた、
言語コードを指定すると、翻訳前のワードのセルを入力すると、翻訳後のワードが別のセルに出力されるみたい。
]]></description>
            <link>http://www.ossexpo.net/2009/10/google-apps-docs-2.html</link>
            <guid>http://www.ossexpo.net/2009/10/google-apps-docs-2.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">Google Apps</category>
            
            
            <pubDate>Mon, 05 Oct 2009 10:56:17 +0900</pubDate>
        </item>
        
        <item>
            <title>各OSの補助グループの最大グループ数</title>
            <description><![CDATA[<a href="http://wuhai.wordpress.com/2008/11/13/ngroups_max/">http://wuhai.wordpress.com/2008/11/13/ngroups_max/</a>

RHEL系はRHEL4以降で65536まで利用可能。

Solaris10は最大32というのがSambaを使うときは厳しい。
]]></description>
            <link>http://www.ossexpo.net/2009/10/os.html</link>
            <guid>http://www.ossexpo.net/2009/10/os.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">Samba</category>
            
            
            <pubDate>Fri, 02 Oct 2009 12:02:20 +0900</pubDate>
        </item>
        
        <item>
            <title>[Google Apps更新情報] Google Videoの最大サイズが16GBに</title>
            <description><![CDATA[<a href="http://googleappsupdates.blogspot.com/2009/09/increased-upload-limit-for-google-video.html">http://googleappsupdates.blogspot.com/2009/09/increased-upload-limit-for-google-video.html </a>

Google Gearを入れておくと、アップロードできるビデオファイルの最大サイズが16GBまで対応可能になるとのこと。

ちなみにEducation Editionでは、1ユーザーあたり年間１０ドルらしい。
<a href="http://www.google.com/support/a/bin/answer.py?hl=jp&answer=106620">http://www.google.com/support/a/bin/answer.py?hl=jp&answer=106620</a>]]></description>
            <link>http://www.ossexpo.net/2009/10/google-apps-google-video16gb.html</link>
            <guid>http://www.ossexpo.net/2009/10/google-apps-google-video16gb.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">Google Apps</category>
            
            
            <pubDate>Thu, 01 Oct 2009 15:47:43 +0900</pubDate>
        </item>
        
        <item>
            <title>[Google Apps更新情報] Google Docs ViewerでPDFやPPTを埋め込み表示</title>
            <description><![CDATA[<a href="http://googleappsupdates.blogspot.com/2009/09/view-online-files-using-google-docs.html">http://googleappsupdates.blogspot.com/2009/09/view-online-files-using-google-docs.html</a>

Web上に掲載しているPDFファイルやPPTファイルのURLを、Google Docs Viewerのページに入力して得たHTMLを、Webページに埋め込むと、埋め込みドキュメントとして表示できる機能を利用することが可能になった。

Google Docs Viewerは、以下のサイト。
<a href="http://docs.google.com/viewer">http://docs.google.com/viewer</a>

INTERNET WATCHの以下の記事も参考に。
<a href="http://internet.watch.impress.co.jp/docs/news/20090925_317553.html">http://internet.watch.impress.co.jp/docs/news/20090925_317553.html</a>]]></description>
            <link>http://www.ossexpo.net/2009/09/google-apps-google-docs-viewer.html</link>
            <guid>http://www.ossexpo.net/2009/09/google-apps-google-docs-viewer.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">Google Apps</category>
            
            
            <pubDate>Mon, 28 Sep 2009 19:37:49 +0900</pubDate>
        </item>
        
    </channel>
</rss>
