ActiveState Community

Windows Vista

[Debugging] Cyrillic key names in hashes

Hi,
i'm programming Perl and using some cyrillic keys for hashes:

my $hash{"???????"} = 'something';

But than i try to see this hash in Komodo Local tab i get this picture:

$hash{pack("H*","d0a0d183d181d181d0bad0b8d0b9")}

It's very annoying. Also in old versions it shows me correct Cyrillic key.

This is Komodo IDE, version 5.1.4, build 30485, platform win32-x86.
Built on Tue Jun 23 00:43:04 2009.

The script is in UTF-8 encoding (but i try CP-1251 with same result).

Komodo edit: Spaces instead of tabs - how to?

Hello

I recently upgraded my Komodo edit, to version 5.14, I Think I used 4.xx before.

I've made a lot of python code when I used 4.xx and it always indented it with 4 spaces, when I pressed tab etc.

In the new version, it seems to be enforcing real tab indents, which is a problem when I edit my existing files, with 4 spaces indentiation. And it confuses the python interactive interpreter so code can't be run.

I've been looking in Prefs -> Editor -> Indentiation -> Python and activated the "prefer spaces over tabs" but with no result.

PHP Configuration Wizard

Trying to use the PHP Configuration Wizard and getting error "The version of PHP executible() is not supported by Komodo". I am running Php Version 5.2.9-1 and selecting the php.exe module. Could you please tell me what I am doing wrong.

Komodo 5.1.4 Vista Problems

Hi,

after installing Komodo 5.1.4 on Windows Vista, I experience several problems:

I cannot open a file, whatever I try.
I cannot create a new file.
I cannot save preferences. Clicking on the save button results in nothing.

Any help?

Thank you, Nexo

Noob code problem

Hello,

I was doing a challenge question and I have run into a problem with line 24. The purpose is to have the computer guess the number you pick between the numbers 1 and 100.

I have been doing a lot of reading and I cannot figure out why it is being reject at line 24. This is my first week learning Python.

This is the error message displayed:


Traceback (most recent call last):
File "C:\Python26\Lib\site-packages\pythonwin\pywin\framework\interact.py", line 558, in OnEditExecClipboard
exec o in __main__.__dict__
File "", line 24, in

Call Perl from C#

I have a .NET app which needs to run some PerlScripts over some data files. How can I easily call the Perl Interpreter from C#? The documentation does not seem to address this. Also I cannot call perl.exe; I need to use perl58.dll because of external requirements.

Thanks,

blair

Unable to save debug configurations or settings

I'm running Komodo 5.1.4 and have been trying to create debug configurations. I can click "New..." and set a name and it appears in the list and I can set arguments, but after I hit okay and run the debugger, all changes disappear and I have to do it again. The project was initially read-only, but it is now writable.

It also won't save any changes to the default configuration so if I set any arguments and run it, they are valid for that session, then the dialog reverts back to the blank defaults.

What can I look at to fix/reset this?

Remote Folder ?

Hi,

I just search how I can add a remote folder to my projet (and all it sub-folders and files) ?
I find many discussion on web about that but no real answer :(.

Thanks to help !

Just

first lines of TCL script for Windows

Hello,
I am trying to write an Expect script but I do not know the first lines that are needed in the TCL script.
I tried the following script but it fails in the
'package require Expect'.
What are the correct first lines for Windows?
Thank you.

My script:

#!"c:\Program Files\tcl\bin\wish85.exe"
# \
exec tclsh "$0" ${1+"$@"}
package require Expect

spawn telnet 192.168.1.52

expect "y/n"
send "\r"

expect "login:"
send "user\r"

expect "password:"
send "user\r"

sorting by an attribute of an object in a list

I have a number of individuals in a population.

class individual:
    def __init__(self,chrom,ftnss):
        self.chrome = chrom
        self.fitness = ftnss

class population(list):
    def __init__ (self):
        pass

I want to sort the population list by the individual.fitness attribute.
I tried this in the class population definition: