Geeklog Site http://portal-sight.com/gl 面倒くさがりは常に新たなカイゼンを探る。月見草薬剤師の暇時な秘事 admin@portal-sight.com admin@portal-sight.com Copyright 2010 月見草な薬剤師の、メモログ Geeklog Wed, 01 Sep 2010 23:46:37 +0900 ja PyScripterでpylonsのpythonを使う http://portal-sight.com/gl/article.php?story=20100822011922964 http://portal-sight.com/gl/article.php?story=20100822011922964 Sun, 22 Aug 2010 01:19:22 +0900 http://portal-sight.com/gl/article.php?story=20100822011922964#comments Python&IronPython <p>開発環境はとにかくUSBメモリに入れてしまうようにしているので、pythonの場合は<a href="http://www.portablepython.com/">Portable Python</a>を使うのが一番自然だと思います</p> <p><a href="http://pylonshq.com/">pylons</a>も同じようにUSBメモリに入れてます。PythonのエディタはIDLEとかxyzzyとかemacsとかを使うことが多いですが、全然日本語資料のないpylonsなのでできたら適当に補完候補を出してくれると嬉しい。</p> <p>ということで、PortablePythonについてくるPyScripterでgo-pylonsで作ったpython.exeを使うようにする必要があるのですが、PyScripterのメニューを見ても全然見当がつかなかったのですが</p> <ul> <li><a href="http://plaza.rakuten.co.jp/kugutsushi/diary/200710290000/">Python のスレッドについての資料と Python の統合開発環境 (IDE)</a></li> <li><a href="http://d.hatena.ne.jp/neko774/20080116/1200461567">Panda3Dでの開発にPyScriptorを使うには</a></li> <li><a href="http://code.google.com/p/pyscripter/wiki/FAQ#How_do_I_use_PyScripter_with_Portable_(Movable)_Python?">How do I use PyScripter with Portable (Movable) Python?</a></li> </ul> <p>どれも同じことがかかれてますが、この辺りを参考に、vbsを書いてみました</p> <p><pre><code>&lt;/p&gt; &lt;p&gt;Dim objWShell&lt;/p&gt; &lt;p&gt;Set objWShell = CreateObject(&amp;quot;WScript.Shell&amp;quot;)&lt;/p&gt; &lt;p&gt;Set WshEnvironment=objWShell.Environment(&amp;quot;VOLATILE&amp;quot;)&lt;/p&gt; &lt;p&gt;Drive = left(WScript.ScriptFullName,2)&lt;/p&gt; &lt;p&gt;WshEnvironment.Item(&amp;quot;PYTHONHOME&amp;quot;)=Drive+&amp;quot;&amp;#092;pylons&amp;#092;mydevenv&amp;quot;&lt;/p&gt; &lt;p&gt;objWShell.Run Drive+&amp;quot;&amp;#092;PortablePython_1.1_py2.5.4&amp;#092;App&amp;#092;PyScripter.exe --PYTHON25 --PYTHONDLLPATH &amp;nbsp;&amp;quot;+&amp;quot;'&amp;quot;+Drive+&amp;quot;&amp;#092;pylons&amp;#092;mydevenv&amp;#092;Scripts' %1 %2 %3 %4 %5&amp;quot; , 1, False&lt;/p&gt; &lt;div&gt;</code></pre></div> <div>ってな感じで動いてます。(import pylonsをして大丈夫だった)</div> http://portal-sight.com/gl/trackback.php?id=20100822011922964 Pylonsをxamppのapacheで動かす http://portal-sight.com/gl/article.php?story=pylons-0xampp-apache http://portal-sight.com/gl/article.php?story=pylons-0xampp-apache Tue, 10 Aug 2010 17:13:34 +0900 http://portal-sight.com/gl/article.php?story=pylons-0xampp-apache#comments Python&IronPython <p>&nbsp;<a href="http://pylonshq.com/">Pylons</a>はpythonのフレームワークの一つです。日本語マニュアルみたいなのは<a href="http://wiki.pylonshq.com/display/pylonsja/Home">http://wiki.pylonshq.com/display/pylonsja/Home</a>になるのかな</p> <p>有名どころは他にあるのに、なんとなくコレを使ってみようと思ったのですが、pythonのフレームワークは、cakePHPとかcodeIgniterなどphpのフレームワークのようにコピーしたらOKな、「レンタルサーバー向き」では無い感じ。チュートリアルでもpaster serveとpylonsで用意してあるサーバーで動くよね。ということは書かれてるけどapacheでどうやったらいいのか?というところは不明。オススメサーバーあるみたいなのでしょうがないかな。と思いつつ。</p> <p>ということで、windowsXPのxamppのapacheでhelloworldを動かしてみる</p> <p><a href="http://pylonshq.com/docs/en/1.0/gettingstarted/#installing">http://pylonshq.com/docs/en/1.0/gettingstarted/#installing</a></p> <p>&nbsp;<a href="http://wiki.pylonshq.com/display/pylonscookbook/Installing+and+running+Pylons+as+plain+CGI+on+a+webhost ">http://wiki.pylonshq.com/display/pylonscookbook/Installing+and+running+Pylons+as+plain+CGI+on+a+webhost</a></p> <div>&nbsp;</div> <ol> <li>apacheは事前に動かして、再起動しない。(レンタルサーバー環境を意識して)</li> <li>go-pylons.pyをDL</li> <li>コマンドプロンプト(PCにインストールしてある)python go-pylons.py mydevenv(ディレクトリ名) <ol> <li>mydevenvディレクトリができる</li> </ol> </li> <li>コマンドプロンプト mydevenv&#092;Scripts&#092;activate.bat <ol> <li>(mydevenv)と表示されるはず、以下このコマンドプロンプトを使う</li> </ol> </li> <li>easy_install wsgiref</li> <li>paster create -t pylons helloworld</li> <li>cd helloworld</li> <li>paster controller hello</li> <li><a href="http://fujishinko.nengu.jp/python/7703789.html">http://fujishinko.nengu.jp/python/7703789.html</a>を参考にdebugはfalseにしておく(必要かどうかは不明)</li> <li>helloworldをeasy_installする <ol> <li>cd helloworld</li> <li>python setup.py bdist_egg</li> <li>cd dist</li> <li>easy_install helloworld~~~.egg</li> </ol> </li> </ol> <p>mydevenvとhelloworldは非公開スペースでOK</p> <p>以下のpythonスクリプト(pylons.cgiファイル名適当)を公開スペースへ置く。</p> <blockquote> <p>#!/home/protected/bin/python<span style="color: rgb(255, 0, 0); ">(ここはgo-pylonsで作ったpython.exeへのパス)</span>&nbsp;</p> <p>from paste.deploy import loadapp</p> <p>wsgi_app = loadapp('config:<span style="color: rgb(255, 0, 0); ">mydevenv以下のhelloworld&#092;config&#092;deployment.ini_tmplへのパス(パス区切りは¥¥</span><span style="color: rgb(255, 0, 0); ">)</span>')</p> <p>import wsgiref.handlers</p> <p>wsgiref.handlers.CGIHandler().run(wsgi_app)</p> <p>http://wiki.pylonshq.com/display/pylonscookbook/Installing+and+running+Pylons+as+plain+CGI+on+a+webhostより</p> </blockquote> <p>&nbsp;</p> <p>改行コードLFだけにして、一行目の区切りは¥じゃなく/、config:のところは¥¥にする。</p> <p>&nbsp;</p> <p>以上</p> <p>で</p> <p>http://localhost/cgi-bin/pylons.cgi/で用意されてるpublicのページ</p> <p>http://localhost/cgi-bin/pylons.cgi/hello/indexでhelloコントローラーindexメソッド</p> <p>&nbsp;とりあえずこれで動いた。ということで</p> <p>&nbsp;<a href="http://www.ez0.net/2010/04/pylons-env/">http://www.ez0.net/2010/04/pylons-env/&nbsp;</a>にも有用情報が</p> <p>&nbsp;他に役に立ちそうなページ</p> <ul> <li><a href="http://wiki.pylonshq.com/display/pylonsja/Home">Pylons に関連する文書の日本語訳</a></li> <li><a href="http://labs.unoh.net/2007/07/railspylonswiki.html">Rails風フレームワークPylonsで簡易Wikiを作ってみる </a></li> <li><a href="http://wiki.liris.org/article/python_intro/python05">WSGIとPylons</a></li> <li>&nbsp;</li> </ul> <p>&nbsp;</p> http://portal-sight.com/gl/trackback.php?id=pylons-0xampp-apache 認定薬剤師講習一覧(ical形式勝手ver) http://portal-sight.com/gl/article.php?story=20100702163158805 http://portal-sight.com/gl/article.php?story=20100702163158805 Fri, 02 Jul 2010 16:31:58 +0900 http://portal-sight.com/gl/article.php?story=20100702163158805#comments おしらせ <p><a href="http://www.jpec.or.jp/contents/c03/index.html">研修認定薬剤師</a>の資格を取得&継続するためには研修に出席して受講シールを集める必要があって、そのなかで、<a href="http://www.jpec.or.jp/contents/c02/c021/top3.html">各都道府県で開催される集合研修</a>&nbsp;の内容を自動取得して私が使っているGoogleCalendarに自動で表示させるためにiCalendar形式へ(結構強引に)変換したものを作ってみました。</p> <p><a href="http://portal-sight.com/kensyuical/">認定薬剤師講習一覧(ical形式勝手ver)</a>&nbsp;</p> <p>一応、全国分を作ったので、良かったら使ってみてください。都道府県名をクリックするとiCal形式ファイルをダウンロードでき、<img alt="" src="http://www.google.com/calendar/images/ext/gc_button1_ja.gif" />をクリックすると直接Googleカレンダーに登録できます。</p> <p>&nbsp;</p> http://portal-sight.com/gl/trackback.php?id=20100702163158805 geeklogの静的ページを外から編集(Titanium) http://portal-sight.com/gl/article.php?story=20100606230445416 http://portal-sight.com/gl/article.php?story=20100606230445416 Sun, 06 Jun 2010 23:04:45 +0900 http://portal-sight.com/gl/article.php?story=20100606230445416#comments Geeklog <p>&nbsp;<a href="http://portal-sight.com/gl/article.php?story=20100606013018131">geeklogの静的ページを外から編集(javascriptAIR)</a>&nbsp;のコードを、別のRIA選択肢<a href="http://www.appcelerator.com/">AppceleratorのTitanium</a>&nbsp;に移植してみました。HTML、javascriptに加えてRuby,Python,phpのコードを使えるので、通信部分をそれに置き換えることも考えましたが、元々用意されてるもので対応できそうだったので、通信部分をTitaniumで用意されているものに変えるだけにしました。</p> <p>まずはTitaniumはAIRでいうところのサンドボックスがないみたいなので、AIRで仕方なくeditareaを別のフレームにしていた部分を修正。</p> <p>あとはAIRの通信部分を<a href="http://developer.appcelerator.com/question/14081/using-ajax-in-titanium">http://developer.appcelerator.com/question/14081/using-ajax-in-titanium&nbsp;</a>のコード</p> <p><textarea name="" cols="40" rows="10"> function getMapData(){ var xhr = Titanium.Network.createHTTPClient(); Titanium.API.info('yo2'); xhr.onload = function() { Titanium.API.info('API.INFO'); Ti.API.info('xml ' + this.responseXML + ' text ' + this.responseText); }; Titanium.API.info('yo3'); // open the client xhr.open('GET','http://www.xxx.com/xxx.php'); Titanium.API.info('yo4'); // send the data xhr.send(); Titanium.API.info('yo5'); } </textarea></p> <p>に置き換えて修正。他にもこまごまとした修正ありつつ、ほぼ同じものになりました。</p> <p><a href="http://api.appcelerator.net/p/pages/app_page?token=M4mvwt34">http://api.appcelerator.net/p/pages/app_page?token=M4mvwt34</a></p> <p>にOSごとにインストールパッケージになってます(自動で作ってくれるので便利。でもwindows以外は未確認)</p> <p>&nbsp;</p> <p>APIドキュメントなどは&nbsp;<a href="http://developer.appcelerator.com/documentation">http://developer.appcelerator.com/documentation</a></p> <p>&nbsp;</p> http://portal-sight.com/gl/trackback.php?id=20100606230445416 geeklogの静的ページを外から編集(javascriptAIR) http://portal-sight.com/gl/article.php?story=20100606013018131 http://portal-sight.com/gl/article.php?story=20100606013018131 Sun, 06 Jun 2010 01:30:18 +0900 http://portal-sight.com/gl/article.php?story=20100606013018131#comments Geeklog <p>geeklog標準の静的ページ編集画面がちょっとトライ&エラーで使うには画面遷移が使いにくいので、改良しようと思って、編集画面にjavascriptでゴニョゴニョ手を加えようと思いましたが面倒そうなので方針転換。</p> <p>ブラウザは見る用、で、edit_area+jquery+AdobeAIR製(ActionScriptじゃなくjavascript)、geeklogのwebservicesを使って静的ページを編集するクライアントを作ってみました </p> <p>内容取得(GET)、新規投稿(POST)、編集(PUT)、削除(DELETE)の中で、GETとPUT(存在しないsp_idで投稿すると新規登録になる)を実装。その他画面は必要最低限以外は未完成。</p> <p>HTMLとjavascriptの範囲内で出来るはずなので、手を出して完成度を上げていってくださるとありがたいです。</p> editareaを表示してる部分についてはeditareaについてるサンプルを切り貼りしただけです edit_areaをckeditorに変えて、投稿URLやオプションを記事用にしたら、ブログ投稿用としても使えるハズ <h3>使い方</h3> <ol> <li>geeklog側はコンフィギュレーション-その他-webサービスを有効に</li> <li>AIRなので、まずは<a href="http://get.adobe.com/jp/air/">http://get.adobe.com/jp/air/</a>からAIRをダウンロード&インストール</li> <li><a href="http://bitbucket.org/kucici/glatomstaticeditor/downloads">http://bitbucket.org/kucici/glatomstaticeditor/downloads</a> からAIRファイルをダウンロード&インストール&スタート。デバッグ機能残ってるのはご愛嬌ということで</li> <li>サイトURLはトップページのURLを(もしindex.phpも表示されるならそれも含めて) 後は雰囲気でなんとなく使えるハズ。</li> </ol> <h3>参考</h3> <h4>AdobeAIR(javascript)</h4> <ul> <li>http://www.hakkaku.net/series/javascript%E4%BD%BF%E3%81%84%E3%81%AE%E3%81%9F%E3%82%81%E3%81%AEair%E5%85%A5%E9%96%80</li> <li>http://d.hatena.ne.jp/Hamachiya2/20090116/air</li> <li>http://d.hatena.ne.jp/Hamachiya2/20090118/adt</li> <li>http://www.adobe.com/jp/devnet/air/ajax/getting_started.html</li> <li>http://help.adobe.com/ja_JP/AIR/1.1/devappshtml/WS5b3ccc516d4fbf351e63e3d118666ade46-7fa7.html</li> </ul> <h4>jquery</h4> <ul> <li>http://jquery.com/</li> <li>http://semooh.jp/jquery/</li> </ul> <h4>edit_area</h4> <ul> <li>http://www.cdolivet.com/index.php?page=editArea</li> </ul> <p>おまけ</p> <p>よく判らない方は、以下のボタンをクリックすると勝手にやってくれ るはずです</p> <script src="http://www.widgetown.com/contents/air_seamless_install/AC_RunActiveContent.js" language="javascript"></script><script src="http://www.widgetown.com/contents/air_seamless_install/DrawBadge.js" type="text/javascript"></script><script language="JavaScript" type="text/javascript">drawBadge('glatomstaticeditor' , 'http://bitbucket.org/kucici/glatomstaticeditor/downloads/glatomstaticeditor.air' ,'http://www.widgetown.com/contents/air_seamless_install/img/Img_sample1_bg.png' ,'glatomstaticeditor' ,'ffffff' ,'000000')</script> http://www.widgetown.com/contents/air_seamless_install/installmaker.htmlで作らせていただきました http://portal-sight.com/gl/trackback.php?id=20100606013018131 S21HTのActiveSyncをやっと常駐解除した http://portal-sight.com/gl/article.php?story=s21ht_ativesync_notstay http://portal-sight.com/gl/article.php?story=s21ht_ativesync_notstay Wed, 12 May 2010 22:34:22 +0900 http://portal-sight.com/gl/article.php?story=s21ht_ativesync_notstay#comments WindowsMobile 前から気になっていたS21HTで常駐するActiveSync。気になりつつ、何度×しても復活してくるので、情報さがしてましたが、探し方が甘いのか、<br /> PC側のActiveSyncはActiveSync Toggleで常駐解除できるというのは結構ひっかかるのに、windowsmobile側は見つからず、<br /> レジストリをいじるようなソフトでできそうなんだけど、WM6.1用じゃないみたいだし、手動でレジストリエディタを入れるところからやるのは、、、大変<br /> <br /> やっと見つけたやり方<br /> <a href="http://www.unkar.org/read/anchorage.2ch.net/keitai/1246555553">http://www.unkar.org/read/anchorage.2...1246555553</a><br /> <br /> ●ActiveSyncが勝手に起動する事象の対処法 <br /> 1.スタート→プログラムからActiveSyncを起動 <br /> 2.[メニュー]→[サーバーのソースの追加] <br /> 3.Excengeサーバーを・・・のチェックを外して次へ <br /> 4.サーバーアドレスに適当な文字(aとか)入れて次へ <br /> 5.ユーザー名、パスワード、ドメインに適当な文字入れて完了 <br /> 6.[メニュー]→[スケジュール]→同期の間隔のピークタイム、オフピークタイムを[手動で同期]に設定 <br /> <br /> やっとActiveSyncとおさらばです。でも<br /> PCにExchangeServer入れてないので、ExchangeServerのところの同期が終わらず、これまでやってたActiveSyncを使ったPCとのファイルの同期はできなくなりました。<br /> <br /> しょうがないのでS21HTはストレージとしてPCと接続するように変更してファイルのやりとりは可能<br /> <br /> ただ、これだと本体のファイルは見えずに、内部ストレージの部分だけしか見えないけど、S21HTで常駐されてるよりはまし。 http://portal-sight.com/gl/trackback.php?id=s21ht_ativesync_notstay img2pyがあって良かった http://portal-sight.com/gl/article.php?story=20100429181025714 http://portal-sight.com/gl/article.php?story=20100429181025714 Thu, 29 Apr 2010 18:10:25 +0900 http://portal-sight.com/gl/article.php?story=20100429181025714#comments Python&IronPython <p>&nbsp;wxGladeを使ってwxpythonのフォームをつくり、Frameにアイコンを設定。</p> <p>それをcx_Freezeで固めた時にFrameに設定したicoファイルが読み込めないことを発見。exeと同じディレクトリにicoファイルを置けばいいんですが、cx_Freezeする時に使うファイルと同じようなものを使っているので紛らわしい。間違ってicoファイルをクリックしてオカシイということになっても残念</p> <p>cx_Freezeのオプションでなんとかできるのかもしれないけど判らず、、、</p> <p>で、何かの拍子に見つけたのが、pythonインストールディレクトリ¥Scriptsのimg2py.batという名前のファイルを発見。</p> <p>imgをpyにする?ということで調べてみたら</p> <p><a href="http://www.wxpython.org/docs/api/wx.tools.img2py-module.html">http://www.wxpython.org/docs/api/wx.tools.img2py-module.html</a>(公式)</p> <p>日本語は</p> <p><a href="http://d.hatena.ne.jp/Megumi221/20080819/1219128129">http://d.hatena.ne.jp/Megumi221/20080819/1219128129</a></p> <p><a href="http://python.matrix.jp/projects/wxPython/bounds.html#img2py">http://python.matrix.jp/projects/wxPython/bounds.html#img2py</a></p> <p>&nbsp;</p> <blockquote> <p class="nth-child-even nth-child-2" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0.5em; padding-right: 0px; padding-bottom: 0.5em; padding-left: 0px; ">以下のようにすると、</p> <pre class="literal-block nth-child-odd nth-child-3" style="white-space: pre-wrap; word-wrap: break-word; padding-top: 0.5em; padding-right: 0.5em; padding-bottom: 0.5em; padding-left: 0.5em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-color: rgb(200, 255, 255); "> img2py shape_image.png shape_image.py </pre> <p class="nth-child-even nth-child-4" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0.5em; padding-right: 0px; padding-bottom: 0.5em; padding-left: 0px; ">イメージからpythonコードを生成します。</p> <p class="nth-child-odd nth-child-5" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0.5em; padding-right: 0px; padding-bottom: 0.5em; padding-left: 0px; ">こうして作成されたコードはモジュールとして利用でき、 以下のように利用できます。</p> <div class="code-block nth-child-even nth-child-6"> <table class="codetable first-child nth-child-odd only-child nth-child-1 last-child"> <tbody class="first-child nth-child-odd only-child nth-child-1 last-child"> <tr class="first-child nth-child-odd only-child nth-child-1 last-child"> <td class="linenos first-child nth-child-odd nth-child-1" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(160, 176, 240); background-position: initial initial; background-repeat: initial initial; "> <pre class="first-child nth-child-odd only-child nth-child-1 last-child" style="white-space: pre-wrap; word-wrap: break-word; padding-top: 0px; padding-right: 0.5em; padding-bottom: 0px; padding-left: 0.5em; margin-top: 0.5em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; "> 1 2</pre> </td> <td class="code nth-child-even nth-child-2 last-child" style="color: rgb(0, 0, 0); background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(224, 224, 224); background-position: initial initial; background-repeat: initial initial; "> <div class="code first-child nth-child-odd only-child nth-child-1 last-child" style="color: rgb(0, 0, 0); background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(224, 224, 224); background-position: initial initial; background-repeat: initial initial; "> <pre class="first-child nth-child-odd only-child nth-child-1 last-child" style="white-space: pre-wrap; word-wrap: break-word; padding-top: 0px; padding-right: 0.5em; padding-bottom: 0px; padding-left: 0.5em; margin-top: 0.5em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; "><span class="k first-child nth-child-odd nth-child-1" style="color: rgb(0, 112, 32); font-weight: bold; ">import</span> <span class="nn nth-child-even nth-child-2" style="color: rgb(14, 132, 181); font-weight: bold; ">shape_image</span> <span class="n nth-child-odd nth-child-3">bmp</span> <span class="o nth-child-even nth-child-4" style="color: rgb(102, 102, 102); ">=</span> <span class="n nth-child-odd nth-child-5">shape_image</span><span class="o nth-child-even nth-child-6" style="color: rgb(102, 102, 102); ">.</span><span class="n nth-child-odd nth-child-7">getBitmap</span><span class="p nth-child-even nth-child-8 last-child">()</span> </pre> </div> </td> </tr> </tbody> </table> </div> <p class="nth-child-odd nth-child-7 last-child" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0.5em; padding-right: 0px; padding-bottom: 0.5em; padding-left: 0px; ">bmpはビットマップオブジェクト(wxBitmap)インスタンスです。</p> </blockquote> <p class="nth-child-odd nth-child-7 last-child" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0.5em; padding-right: 0px; padding-bottom: 0.5em; padding-left: 0px; ">ということらしい。早速img2pyが吐き出したファイルを使って、wxGladeの吐き出したソースを変更</p> <div><tt>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;_icon = wx.EmptyIcon()</tt></div> <div><tt>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;iconres = ico_clock.getclockBitmap()##編集</tt></div> <div><tt>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;_icon.CopyFromBitmap(iconres)##編集</tt></div> <div><tt>## &nbsp; &nbsp; &nbsp; &nbsp;_icon.CopyFromBitmap(wx.Bitmap(&quot;clock.ico&quot;, wx.BITMAP_TYPE_ICO))##コメントアウト</tt></div> <div><tt>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;self.SetIcon(_icon)</tt></div> <div>でcx_FreezeをやったらちゃんとFrameにアイコンが表示されて完成</div> <div>&nbsp;</div> http://portal-sight.com/gl/trackback.php?id=20100429181025714 flashpalette.swfってこれかな? http://portal-sight.com/gl/article.php?story=This_is_what_I_flashpalette.swf http://portal-sight.com/gl/article.php?story=This_is_what_I_flashpalette.swf Sat, 24 Apr 2010 00:18:39 +0900 http://portal-sight.com/gl/article.php?story=This_is_what_I_flashpalette.swf#comments Geeklog <p>ついったーで、&nbsp;http://twitter.com/keithr2/status/12632646326</p> <p>PC内を探してみたところ、flashpalette.swfについては、たぶんこれかな?というものを発見したのでアップロード</p> <p><embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" src="http://portal-sight.com/gl/images/library/Flash/flashpalette.swf" play="true" loop="true" menu="true" width="300" height="260"></embed></p> <p><a href="http://www.portal-sight.com/gl/images/library/Flash/flashpalette.swf">http://www.portal-sight.com/gl/images/library/Flash/flashpalette.swf</a></p> <p>元々、<a href="http://sns.geeklog.jp/?m=pc&amp;a=page_fh_diary&amp;target_c_diary_id=2882">自作のemojiプラグイン?php_autotag?の入力補助に作った</a>ものですが、いつの間にかemojiというタグは、、。幸か不幸か番号付けが同じだったみたいで、冒頭のツイートを頂戴しました。私がemojiプラグイン全体をいまさら公開したらややこしい事になるし、勝手な思い込みかもしれないけれど確実に作者の信頼感的に<a href="http://ja.wikipedia.org/wiki/%E3%83%90%E3%83%83%E3%82%BF%E3%82%82%E3%82%93">パチモン</a>になりそうなので、とりあえずemojiタグ入力補助用のコレだけ公開。</p> <p>ご自由に持って行って下さい</p> <p><a href="http://dspt.blog59.fc2.com/blog-entry-57.html">http://dspt.blog59.fc2.com/blog-entry-57.html</a>で公開されていた絵文字画像を使っています。</p> <p>二次配布される時は当サイトや<a href="http://dspt.blog59.fc2.com/blog-entry-57.html">http://dspt.blog59.fc2.com/blog-entry-57.html</a>のサイトへのリンクをしていただけるとうれしいです</p> <p>以下のお約束守れない方は使わないほうがいいと思います</p> <p>全て自己責任。これを使う事によるトラブルその他一切の事に関して<a href="http://dspt.blog59.fc2.com/blog-entry-57.html">http://dspt.blog59.fc2.com/blog-entry-57.html</a>へ問い合わせしないように。私への問い合わせはしていただいても構いませんが、一般常識のある人からで私が答えられる内容で本職が立て込んでない時(で私が興味を持つ内容なら優先的に)は、お答えできると思います。</p> <p>著作権は放棄してません。(放棄するのはいつでもできますので、まぁそのうち)</p> <p>ついでにGPLじゃありません。(ソースコードを一緒に公開してないので一目瞭然ですね。ソースコードをリファクタリング的な事したら公開するかも)&nbsp;</p> <p><a href="http://geeklog.crimsonj.net/article.php/20100426114150457">http://geeklog.crimsonj.net/article.php/20100426114150457</a>で紹介していただきました</p> <p>&nbsp;</p> http://portal-sight.com/gl/trackback.php?id=This_is_what_I_flashpalette.swf pythonCEとppyguiを入れてみた http://portal-sight.com/gl/article.php?story=20100412213529914 http://portal-sight.com/gl/article.php?story=20100412213529914 Mon, 12 Apr 2010 21:35:29 +0900 http://portal-sight.com/gl/article.php?story=20100412213529914#comments Python&IronPython いまさらですが、windowsmobile機を購入したので、携帯ではできないことをやれないかと思って、python周りを調べてみたところ、<br /> Python for Mobile Devices(http://www.awaretek.com/pymo.html)というサイトを発見。PyCEを入れればいいということのようなので、http://sourceforge.net/projects/pythonce/files/からPythonCE.WM.CABをダウンロードしてインストール。PythonCESetup.exeはPC用?<br /> <br /> ついでにGUIを探したら、ppyguiを発見。http://mobile-roughpaper.blogspot.com/search/label/Python を参考にインストール。win32の分はPC用かな?(PCに入れているpythonのsite-packagesに入れたらPCでもppyguiを使えました)<br /> <br /> 同梱されてるサンプルとhttp://markmail.org/download.xqy?id=hlebymi6uqx53gqm&amp;number=1のコードを真似たらちょっとしたもの作れそうだなぁと思いました<br /> <br /> 今のところ、必要を感じるようなものがないので、<br /> そのうち、、、たぶん、、<br /> <br /> 素直に.net Compactを使ったらいいと思いつつ、、 http://portal-sight.com/gl/trackback.php?id=20100412213529914 uxpythonインストールしてみた http://portal-sight.com/gl/article.php?story=20100406030501435 http://portal-sight.com/gl/article.php?story=20100406030501435 Tue, 06 Apr 2010 03:05:01 +0900 http://portal-sight.com/gl/article.php?story=20100406030501435#comments Python&IronPython uxpythonの情報があまりにも見つからないので、ちょっと苦労しましたが、<br /> まずは、インストールできたので、windowsへ<br /> <br /> <br /> <br /> <a href="http://www.uxpython.com/download">http://www.uxpython.com/download</a><br /> <br /> に書いてある依存するものを入れていく<br /> <a href="http://glade.gnome.org/">http://glade.gnome.org/</a> から glade with gtk+的なものをダウンロードして実行<br /> あとはhttp://www.pygtk.org/downloads.htmlに書かれている3種類をダウンロードして実行<br /> 全部必要かどうかはわかりませんが、、<br /> <br /> 最後にuxpythonを解凍してpython <a href="http://setup.py">http://setup.py</a> install<br /> <br /> たしかこんな感じ<br /> <br /> gladeを使ってGUIを作ってpythonから使うのは、http://po3a.blogspot.com/2006/08/pygtk-glade-gui.html辺り<br /> uxpython自体の使い方は資料が全然見当たらないんで試行錯誤中<br /> <br /> uxpythonのサイトを見たらPDFつくれそうでかつGUItoolkitと書いてあったので入れてみただけ http://portal-sight.com/gl/trackback.php?id=20100406030501435