アットウィキロゴ

日記2008-05-31

wiki作成

wikiをはじめました. pythonはじめました.

pythonのctypes.util.find_library

cygwinのctypes.util.find_libraryがうまくいかなかったので適当に付け加える
/lib/python2.5/ctypes/util.pyに追加
(初めてのpythonコード)
よくわからないけど,無理やりcyg~dllを探し出す. どうなんだろう…

if os.name == "posix" and sys.platform == "cygwin":
   import re
   def _get_cmd_res(cmd):
       f = os.popen(cmd)
       trace = f.read()
       f.close()       
       return trace

   def find_library(name):
       expr = 'cyg.*\.dll'
       try:
           trace = _get_cmd_res('which lib' + name + '.dll.a 2>&1')
           if trace.startswith("which"):
               return None
           trace = _get_cmd_res('objdump -s ' + trace.strip("\n") + ' | grep \"\.dll\" 2>&1')
           res = re.search(expr, trace)
           if not res:
              return None
           trace = _get_cmd_res('which ' + res.group(0) + ' 2>&1')
           if trace.startswith("which"):
               return None
           return trace.strip("\n")
       except OSError, e:
          if e.errno != errno.ENOENT:
              raise

MSRSのサービスでブラウザからアクセスできない件

  • dsshost, 503 http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=3256288&SiteID=1 でした.
    store/SecuritySettings.xmlを作成すればできる.
    <?xml version="1.0"?>
    <SecuritySettings xmlns="http://schemas.microsoft.com/robotics/2006/10/security.html">
      <AuthenticationRequired>false</AuthenticationRequired>
      <OnlySignedAssemblies>false</OnlySignedAssemblies>
      <Users />
    </SecuritySettings>
    
    imageプラグインエラー : 画像を取得できませんでした。しばらく時間を置いてから再度お試しください。
最終更新:2008年06月06日 19:36