アナウンス ご無沙汰しております。 本ブログですが、Closeになる予定となっております。公開している記事が必要な方は、保存などをお願いします。 Author: shozoa Date: 01/26/2019 デスクトップ ブリッジと VC ランタイムについて Windows 10 Fall Creators Update がリリースされて、Visual Studio 2017 も Fall Creators Update 対応の 15.4... Author: shozoa Date: 11/10/2017 KB4025342 と DAC について 大分、更新が滞っておりました。2017年7月に KB4025342 がリリースされてから、Desktop App Converter... Author: shozoa Date: 09/04/2017 Desktop Bridge と Wi
東京にいない時に東京にいるかのようにアクセスしたい事情があって、ServersMan@VPSを契約したのでセットアップにやったことのメモ。 東京にあるvpsで安いのはここぐらいしか見つからなかった。 userの作成 # adduser zorio sudoの設定 # visudo zorio ALL=(ALL) ALL sshの設定 # vi /etc/ssh/sshd_config RSAAuthentication no PubkeyAuthentication yes AuthorizedKeysFile %h/.ssh/authorized_keys # service sshd restart 接続できることを確認してから、こっちも変更する。 # vi /etc/ssh/sshd_config PermitRootLogin no PasswordAuthentication n
F#には静的Duck Typingを行うための(非常にマイナーな)(そして難解な)仕組みがありますが、 プロパティ(setter)にアクセスする方法は少し特殊です。 マイナーすぎて多分ググってもほとんどヒットしないと思うので、一応サンプルを載せておきます。 結論から言うと、setterのシグネチャを指定する際には when ^a : (member set_MyProperty : int -> unit) のようにします。 これを応用して、色んな型の"Value"にアクセスするサンプルコードを書いてみました。 // 普通のプロパティを持つ普通のクラス type MyClass(value) = member val Value : int = value with get, set // 変更可能なラベルを持つレコード型 type MyRecord = { mutable Value :
codecsモジュールを使用してファイルを読み込む。下記のコードで変数lineはUnicodeになる。 import codecs, sys f = codecs.open(‘C:\\work\\utf8.txt’,mode=’r',encoding=’utf-8′) for line in f: sys.stdout.write(line) f.close() テンプレートファイルを作成する。 data1:{{ data1 }} ============================== {% for val in list1 %} — {{ val }} {% endfor %} テンプレートファイルをおくパスをDjangoの設定に追加し、テンプレートをロードし、テンプレートに変数を渡す。 import django.conf import django.template impor
IronPython 2.6 Release Candidate We released the IronPython 2.6 release candidate on CodePlex yesterday. If all goes well, this will be the ONLY RC and we’ll republish it as the RTW build in about a month. So if you’ve been holding off on experimenting with the 2.6 release, now’s the time to jump in with both feet. As I’ve written before on this blog, this is a HUGE release for us: Python 2.6 fea
IronPython のサイトを久々に覗いてみた なんか RC3 になっていた、まだ正式版にするつもりは無いのだろうか? IronPython とりあえずダウンロード、おぉ ctypes モジュールが付属になったのか。 てゆーかいつのまにかメチャメチャ付属モジュールが増えている! ちなみに zip 版にはコレらは入っていないようである。 早速動作テストだ。 ぱぇぽぃ2 ? Blog Archive ? ctypes で WindowsAPI も当然のように IronPython のみインストールでそのまま可能になった。 普通の Python はもう本当に必要無いね、そうしたかったんだろうけど。 Re: SHGetFileInfo :: ASPN Mail Archive :: python-list でもコレはできない… 64bit で動かないから 32bit の Vista でも試したけ
category note Python への扉 ハイブリッド型のオブジェクト指向から、純粋なオブジェクト指向への扉を開きます。 ※ Java/C# などに飽き足らないみなさんは、こちらへどうぞ。Python3.1 Jython2.5.1IronPython2.6 Smalltalk への扉 本格的なオブジェクト指向への扉を開きます。 ※ Python/Ruby などに飽き足らないみなさんは、こちらへどうぞ。 VDM++ への扉 形式手法によるソフトウェア品質管理への扉を開きます。 ※ UML/OCL などに飽き足らないみなさんは、こちらへどうぞ。 ※ xUnit などの力仕事に飽き足らないみなさんは、こちらへどうぞ。 Oh 脳, after Zero セミナーの枕(小ネタ集)です。息抜きや話題作りにどうぞ。 Oh 脳, before Zero 。 《付記》記事の「アーカイブ」として利用し
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く