ActiveState Community

Windows

Newbie question: Running php-scripts

OS: Windows

How do I run PHP-scripts in Komodo Editor?

I tried this command to run a script I copied into the editor:

%(php) %F

but then it asks for a php-interpreter. Where is that located? I have installed the latest version of php. Isn't that enough?

Thanks for help!

How enter info via stdin when debugging

OS: Windows

When I start the Python debugger, how do I enter info via the keyboard (for example, in response to a raw_input() call? I've tried checking the "separate console" option, but although I can see the output, I can't type anything into the window.

Seeking Bootcamp Training

OS: Windows

Greetings,

I'm using Perl to code a program to collect weather data from specific sites, organize and clean the data, analyze it with statistics, and then upload my results to the web. I've just partitioned my Hdd so that I can begin learning linux, but until I know it well, I'm using ActivePerl on my XP Home OS.

Here are the broad steps of my project:

Topic = Analysis of State College surface weather observations

Languages = Perl for data acquisition (from the web) and results
dissemination (to the web). Fortran for data analysis.

a very gui mess

OS: Windows


from math import sin, cos, pi

import pygame

displayWidth = 640
displayHeight = 480
fpsLimit = 90

def sinInterpolation(start, end, steps=30):
values = [start]
delta = end - start
for i in range(1, steps):
n = (pi / 2.0) * (i / float(steps - 1))
values.append(start + delta * sin(n))
return values

class RotatingMenu:
def __init__(self, x, y, radius, arc=pi*2, defaultAngle=0, wrap=False):
"""
@param x:
The horizontal center of this menu in pixels.

@param y:

chomp leaves "0D"

OS: Windows

Lines in a file have "0D0A" at the end of each line. I'm trying to get rid of that. Using chomp gets rid of the "0A", but not the "0D". I've tried referring to this hex string as &#0D but I'm not having any success. Can anyone make a suggestion?

How can I trap when perlsvc is shutdown

OS: Windows

In the sample code (PingSvc.pl) I see subroutines for 'Pause' and 'Continue'

How can I trap when the service is shutdown either through:

net stop mySvc

or a system shutdown

Thanks very much

PHP/HTML/CSS/js syntax highlighting (new user)

OS: Windows

Usually PHP code consists of various chunks of PHP, HTML, CSS or Javascript code. So when I define different default backgrounds for PHP and HTMl (for example), and open some PHP file that has mixed code, can PHP background be as it is defined (default for PHP) and HTML background as defined specifically for HTML. Similarly for CSS, Jvascript also. For me it is must have for editor of this type because I can very easily visually identify chunks of code.

IO::Tee

OS: Windows

I've been writing a perl script to talk to a perforce server so it will generate a report. I'd like the script to output to two different places, the screen and a file. I found out I need the tee.pm for this to work. I was at CSPAN but I felt like a I was tumbling down the rabbit hole. One module needed another which needed another and so on. Isn't there any easier way to get the tee.pm to work on my windows xp (32bit). I have active perl 5.8.8 installed. The last module I tried to get installed was the ExtUtils but it reported it couldn't find a perl.exe anywhere.

Custom Install of Activeperl

I am very new to ActiveState Perl. I am actually using both ActiveState Perl/ Python for development on Windows based platforms. I would like to role out some of my tools to a group of users. Is there a way to automate or push out the ActiveState Perl install? I would like everything to be automated from a users perspective, just one click everything is taken care of. Does anyone have experience with this, and/ or could you point me to some good documentation?

Thanks.

Missing Modules in 5.10 Respository vs 5.8 Repository

OS: Windows

Mail::SPF::Query and Mail::SRS are both Perl only packages which exist in the ActiveState Perl 5.8 repository but don't exist in the 5.10 repository.

Is there a reason these packages were not migrated?

If not, what will it take to get them added?

Thanks.

- Mark Pizzolato