http://kjunichi.cocolog-nifty.com/misc/
Appleが特別好きというよりは、最近は嫌いかも。
たいしたことないのに、偉そうな宣伝文句 初代MacBook AirのKernel Task問題に悩まされたこと。
http://kjunichi.cocolog-nifty.com/misc/
Appleが特別好きというよりは、最近は嫌いかも。
たいしたことないのに、偉そうな宣伝文句 初代MacBook AirのKernel Task問題に悩まされたこと。
| wireframe:false |
| <!-- Place this tag in your head or just before your close body tag. --> | |
| <script type="text/javascript" src="https://apis.google.com/js/plusone.js"> | |
| {lang: 'ja'} | |
| </script> | |
| <!-- Place this tag where you want the badge to render. --> | |
| <div class="g-plus" data-width="138" data-href="//plus.google.com/104714357616333459383" data-rel="author"></div> |
| function genFishEyePicture(srcImageData) { | |
| // | |
| var width = srcImageData.width; | |
| var height = srcImageData.height; | |
| var kk=width*0.5; | |
| var ll=height*0.5; | |
| var destImageData = ctx.createImageData(width,height); | |
| console.log(destImageData.width+","+destImageData.height); |
| DYLD_LIBRARY_PATH=/System/Library/Frameworks/ImageIO.framework/Resources:/usr/local/lib:/usr/local/Cellar/gobject-introspection/1.32.1/lib/ | |
| $ python3 pygtest.py | |
| Traceback (most recent call last): | |
| File "pygtest.py", line 2, in <module> | |
| from gi.repository import Gtk | |
| File "/usr/local/Cellar/python3/3.2.3/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/gi/__init__.py", line 23, in <module> | |
| from ._gi import _API, Repository | |
| ImportError: dlopen(/usr/local/Cellar/python3/3.2.3/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/gi/_gi.so, 2): Symbol not found: _g_arg_info_get_closure | |
| Referenced from: /usr/local/Cellar/python3/3.2.3/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/gi/_gi.so |
The original is here:
I modifed that page's one then I made this:
| importPackage(Packages.com.google.appengine.api.datastore); |
| // forked from kjunichi's "Jsdo.itでサーバサイドJavaScript テンプレート" http://jsdo.it/kjunichi/ipadt | |
| function convertArray(type, arr) { | |
| var jArr = java.lang.reflect.Array.newInstance(type, arr.length); | |
| for (var i = 0; i < arr.length; i++) { | |
| if(arr[i]<0){ | |
| jArr[i]=0; | |
| } else { | |
| if(arr[i] > 127) { | |
| jArr[i]= arr[i]-256; | |
| } else { |
| I'm using HomeBrew | |
| checking for /usr/local/bin/python3 script directory... ${prefix}/lib/python3.2/site-packages | |
| checking for /usr/local/bin/python3 extension module directory... ${exec_prefix}/lib/python3.2/site-packages | |
| checking for headers required to compile python extensions... not found | |
| configure: error: Python headers not found | |
| cd /usr/local/Cellar/python3/3.2.3/Frameworks/Python.framework/Versions/3.2/include | |
| ln -s python3.2m python3.2 |
gobject-introspectionの最新版と思われるソースを
./configure
すると、
print sys...