It's not in the SWIG manual, but the CHANGES file contains some more information.
You can specify:
swig -threads -python
on the SWIG command line and then you can optionally turn off GIL unlocking on a per method basis. I found this site:
http://matt.eifelle.com/2007/11/23/enabling-thread-support-in-swig-and-python/
More help than the CHANGES file.
Friday, January 6, 2012
Monday, January 24, 2011
Expanding the capabilities of your D-Link ShareCenter Pulse NAS
The D-Link ShareCenter Pulse (aka dns-320) is a consumer NAS device with room for two SATA drives. Out of the box it has a lot of good features, especially for £75. It'll do RAID 1, NFS, Windows networking, and bittorrent. It's got an external USB port and can act as a print server.
Inside the box is an 800Mhz ARM processor with half a gig of RAM and the nice people at D-Link have made it possible to get a lot more out of your NAS.
The really good thing about this NAS is that extending it is easy and relatively risk-free.
There are a number of different NAS devices that have a common extensibility mechanism so there software support is pretty good.
Firstly, you can install fonz funplug. This is a set of packages including lots of common Linux utilities.
I followed the instructions here.
And yes, it really is as simple as copying some files onto the NAS and rebooting it.
fonz funplug gives you password-less telnet out of the box but I'd strongly recommend disabling that in favour of SSH. There are instructions for that here.
There's lots more information about the kinds of things you can do with fonz funplug here.
On top of funplug you can install optware. This is a bigger distribution of software packaged for a number of different NAS devices. There are instructions for installing it here: . When following those instructions, swap the dns323 for cs05q3armel like the page says to do for a dsn321.
Inside the box is an 800Mhz ARM processor with half a gig of RAM and the nice people at D-Link have made it possible to get a lot more out of your NAS.
The really good thing about this NAS is that extending it is easy and relatively risk-free.
There are a number of different NAS devices that have a common extensibility mechanism so there software support is pretty good.
Firstly, you can install fonz funplug. This is a set of packages including lots of common Linux utilities.
I followed the instructions here.
And yes, it really is as simple as copying some files onto the NAS and rebooting it.
fonz funplug gives you password-less telnet out of the box but I'd strongly recommend disabling that in favour of SSH. There are instructions for that here.
There's lots more information about the kinds of things you can do with fonz funplug here.
On top of funplug you can install optware. This is a bigger distribution of software packaged for a number of different NAS devices. There are instructions for installing it here: . When following those instructions, swap the dns323 for cs05q3armel like the page says to do for a dsn321.
Wednesday, January 24, 2007
Learning Python
Although I do my major development in C and C++ (with the odd foray into C#), I am always interested in learning new languages. For a while I have tried to get to like Perl but regularly get frustrated with the syntax. Having heard lots of nice things about Python I decided to give that a go.
Thanks to Google it's much easier to teach yourself new stuff these days and Python is pretty well documented.
I have Python Cookbook
and Python Web Programming
. Of these, Python Web Programming is the better book and actually contains a thorough introduction to Python basics, networking, and talking to databases as well as using Python to serve web content.
Although it has a similar name to the classic Programming Perl
, Programming Python is a different kettle of fish. Programming Perl is a thorough introduction to Perl and tells you everything you need to know (which is lucky because, for me at least, Perl is a language which seems to leak out of my brain at the slightest opportunity, resulting in my always needing to turn to the book. I also find Programming Perl to be one of the most annoying technical books I own because of the attempts at being "clever" that the authors make at every opportunity. And don't get me started about the section on Perl Poetry!
Anyway, Programming Python is different. Chapter by chapter the author takes you through different parts of the Python library and writes a variety of useful tools on the way. I didn't find it easy to pick the language up from the book but now I know the basics its an interesting reference.
I found the best place to start is the documentation at http://www.python.org which includes a handy tutorial. Once you've read through the tutorial, dive into some programming! Python has a comprehensive standard library so whenever you find yourself wondering how to do something, that's the time to check out the libary documentation.
Another useful site I found is Richard Gruet's Python quick reference. A bunch of versions for different versions of Python are linked from his page here: http://rgruet.free.fr
Thanks to Google it's much easier to teach yourself new stuff these days and Python is pretty well documented.
I have Python Cookbook
Although it has a similar name to the classic Programming Perl
Anyway, Programming Python is different. Chapter by chapter the author takes you through different parts of the Python library and writes a variety of useful tools on the way. I didn't find it easy to pick the language up from the book but now I know the basics its an interesting reference.
I found the best place to start is the documentation at http://www.python.org which includes a handy tutorial. Once you've read through the tutorial, dive into some programming! Python has a comprehensive standard library so whenever you find yourself wondering how to do something, that's the time to check out the libary documentation.
Another useful site I found is Richard Gruet's Python quick reference. A bunch of versions for different versions of Python are linked from his page here: http://rgruet.free.fr
Labels:
programming,
python
Tuesday, January 23, 2007
MicroClient Jr
I should have mentioned that my two MicroClient Jrs did arrive toward the end of december. $160ish plus DHL kindly paid £30 to Her Majesties Customs and Excise on my behalf.
The devices arrived with universal power supplies (which are moulded with US style plugs). The box says "Fraglie" on it, which amused my wife no end.
I tried prising one apart but there's something inside holding it together which I didn't want to force.
So, the next step is to get an OS onto them and put them to work. My plan is to shove Linux on there and use Samba to create some nice network shares. In theory there ought to be enough oomph in one of these things for me to make a nice Python generated web front end.
Not having tons of time at the moment (I'm recovering from a back operation which is preventing me from spending too much time in front of a screen), I haven't gotten too far with this yet. Currently I am planning to follow the instructions here:
http://www.murga-linux.com/puppy/viewtopic.php?t=12199
The devices arrived with universal power supplies (which are moulded with US style plugs). The box says "Fraglie" on it, which amused my wife no end.
I tried prising one apart but there's something inside holding it together which I didn't want to force.
So, the next step is to get an OS onto them and put them to work. My plan is to shove Linux on there and use Samba to create some nice network shares. In theory there ought to be enough oomph in one of these things for me to make a nice Python generated web front end.
Not having tons of time at the moment (I'm recovering from a back operation which is preventing me from spending too much time in front of a screen), I haven't gotten too far with this yet. Currently I am planning to follow the instructions here:
http://www.murga-linux.com/puppy/viewtopic.php?t=12199
Labels:
Linux
Monday, December 11, 2006
Norhtec woes
Previously I wrote about the NorhTec MicroClient Jr which I had high hopes for. I still have high hopes for it, but I'd quite like to see it! There's been no sign of it and Norhtec are not replying to their emails. Grrr!
New monitor
Just taken delivery of a brand-spanking new monitor. It's a Samsung SyncMaster 204BW. It's a 20" widescreen LCD and very nice it is too. I really need to give it a try with some games...
Subscribe to:
Posts (Atom)