Latest news

Well, I was hoping to post a follow up to my first computational physics project and then my second one, but revision has got in the way (why am I writing this when I’m supposed to be revising? Oh, I remember - revision’s boring!). So, what’s been going on?

* My dissertation is finished and handed in
* My second piece of computational physics coursework is in. This time written in C - it made sense as I had existing code, and required 3.8 million calls to the Runge-Kutta algorithm at each position it was run.
* I’m now lining up for two exams next Tuesday and Wednesday. Kind of a shame, as I’ve lost interest in this physics and want to get back on with my CMS I’m developing, but not long to go now…

That’s all computer-wise that I can talk about publicly at present. I’m still dreaming of a new system for this website, combining a blog with easy-to-maintain sections on physics, programming, photography.. let me know if you know of an existing system :-)

1 comment so far ↓

#1 Bhavana on 03.10.05 at 5:37 pm

Peter,

I’m having a similar problem as you did in September of 2003. The problem you specified on your blog is as follows at the bottom of the comment. There were 3 comments to this entry, but I couldn’t read them (asking for username/pwd). Did you happen to figure out the solution by any chance? Please do email me at bhavanam at syncsite dot net. Thanks.

Passing data on the command line
I’ve been trying to get a PHP script to execute a Python script today using PHP’s exec call. This worked fine, until I entered a long amount of data on the command line (this is using Windows XP by the way)…

I need to pass the body of my blog entries to the Python script. As I can’t find a RSS parser I like written in Python, and am not skilful in Python, I wanted to do most of the work in PHP. I’m calling the python script from PHP like:

exec(”c:/code/RSS_Manager/test.py ” . $item['description'], $output, $ret);

This worked fine until I encounterd an entry 3560 characters in length. Then Windows threw the error:

Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item.

I know it’s not the script at fault, as I commented out the contents. Can anyone suggest a different way to pass this data to the python script? I’ve thought of using temp. files, but I’m hoping there’s another way to do it instead.

The command that caused Windows problems is in the extended entry. And I did try escaping quotes etc - made no difference :-(

Leave a Comment