For reference, because I have a mental block about remembering this:
netsh interface ipv4 set dnsservers "Local Area Connection" static 8.8.8.8 primary
netsh interface ipv4 set address "Local Area Connection" static 1.1.1.2 255.255.255.0 1.1.1.1
netsh interface ipv4 set address "Local Area Connection" source=dhcp
Friday, March 30, 2012
Friday, March 9, 2012
Collection of vim Tips
Just a collection of vim tips & tricks for future reference.
Best of vim Tips
vim | Arabesque
vim Graphical Cheat Sheet
Why Do Those Nutheads Use vi?
vim cheatsheet
vim revisited
Python and vim
Best of vim Tips
vim | Arabesque
vim Graphical Cheat Sheet
Why Do Those Nutheads Use vi?
vim cheatsheet
vim revisited
Python and vim
Wednesday, March 7, 2012
PyLab with iPython on MacOS X 64-bit
Putting this here for search engine fodder, since it took me a while to figure out...
If you try to run the way-cool PyLab feature of iPython on MacOS X with a 64-bit platform (e.g., my iMac running Lion), you get this:
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/multiarray.so, 2): no suitable image found. Did find:
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/multiarray.so: no matching architecture in universal wrapper
What this rather cryptic error means is that the library is 32-bit. To get it to work simply run it with the "arch -i386" command:
The numpy module should now load normally, and PyLab should start.
If you try to run the way-cool PyLab feature of iPython on MacOS X with a 64-bit platform (e.g., my iMac running Lion), you get this:
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/multiarray.so, 2): no suitable image found. Did find:
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/multiarray.so: no matching architecture in universal wrapper
What this rather cryptic error means is that the library is 32-bit. To get it to work simply run it with the "arch -i386" command:
$ arch -i386 ipython --pylab
The numpy module should now load normally, and PyLab should start.
Subscribe to:
Posts (Atom)