ActiveState Powered by ActiveState

ActiveState Community


Debian / Ubuntu

proxy script to accept a Http 'get' request from my python program and forward it to the web server

I'm looking for a simple proxy that would accept a Http 'get' request from my python program and forward it to the web server.....could anyone plz provide me with a sample python script for such a proxy.....

i intend to deploy the proxy on a virtual IP-say 192.168.19.6 on eth0:3.
so i need to be sending a Get requet via the proxy server to the URL( www.example.com)......

Plz help,Thanks in advance

Debuggin port problems

I'm having some debug issues. If I set the debugger to take an available system port, it changes every time I close/open Komodo, at which time I have to go change my xdebug.ini (included into php.ini) and restart apache.

If I set it to a specific port, then for some reason when I open the program it often gives me an error saying it could not bind to that port. If I wait patiently (ok, that's a lie...I'm not very patient, I'm ver ADD), after a while I can click Debug->"Listen For Debug Connections" and it'll work.

Multiple Finds

I'm sure I'm missing it, but in Zend Studio I could do a search, then do a second one and choose to open the results in a new search tab so I had both to look at. I see that the results tab in Komodo is called "Find Results 1" which makes it seem like this is possible, but I don't see how to do it.

Debug Toolbar for browsers

I'm trying to see if I can make the switch from Zend Studio (which I liked, but am having support issues with). One of the things that was so nice about Zend Studio was it's debug toolbar for firefox (there was one for IE too, but I never used it). It did a bunch of useless stuff (imo), but it had a button to click that would debug the current page (and then stop), and a way to set it to debug all forms (POST) on the site (and nothing else), and another to debug all pages (and when you unchecked that it would stop).

Go to Definition & Code completion not working

Whenever I try to use ctrl+k,ctrl+g I get an error:

error evaluating 'dbDelta' at ticker-symbol.php#96: Key Error: 'activate' (/home/aaroncampbell/Komodo-IDE-4/lib/mozilla/python/komodo/codeintel2/tree_php.py#582 in _elem_from_scoperef) (error determining definition)

It worked on the first few I tried, but then I tried it on a PHP function (to see if it would go to the manual), and it doesn't work on anything now. I just get variations of that error (with the function name, file, and line number changed).

Can I set ctrl+click to "Go To Definition"

I'm trying to switch from Zend Studio (having support issues with them, but I love their product so it's hard). Anyway, one of the things that I often used in Zend Studio was the ability to ctrl_click on any function. If it was a PHP function, it would take you to the PHP.net page. If it was a custom function, it would take you to it's definition.

It looks like it's supposed to do the same thing if I press ctrl+k,ctrl+g which isn't near as simple.

Syntax checking not working

I have a 'relatively' clean install of Ubuntu 8.04, and have installed Komodo 4.4.1 without incident, what is there seems to be working fine but I seem to be missing some features.

The syntax checking is working for every language except PHP and JavaScript, I don't use PHP so this isn't a problem, but for JavaScript it is.

I've already search google and these forums and can't find anything on the subject.

Does anyone have any idea's?

Unexplained 100% cpu on ubuntu 8.04

My collegues and I are having issues with Komodo 4.4 on ubuntu hardy and gutsy.
Through out the day it sits on 100% cpu for minutes at a time, sometimes it becomes unbearable and we have to kill it.

We are editing mainly ruby files, for example now mine is sat on 100% cpu editing a file with 1252 lines. I do not use the project window because that is complete unuseable at the best of times.

I hope there is a fix as I do like Komodo just wish it wasn't so laggy :(

Rob.

PHP: XDebug debugger doesn't work from web

Hi folks. I am on a Komodo 4.4 trial install, and trying to get the debugger to work with PHP.

I am on a fairly stock Kubuntu Hardy 8.04, with XDebug installed. Versions are as follows:

PHP 5.2.4-2ubuntu5.1 with Suhosin-Patch 0.9.6.2 (cli) (built: May 9 2008 16:34:16)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with Xdebug v2.0.2, Copyright (c) 2002-2007, by Derick Rethans

Project hierarchy

Hi all,

I'm wondering if it's possible to class different projects like that:

Python
-> PythonProject1
--->file1
--->file2
--->subfolder1
----->file3
-> PythonProject2
--->file4
--->file5
--->subfolder2
----->file5
Cpp
->CppProject1
->CppProject2

I'm only able to define PythonProject1, PythonProject2, CppProject1 and CppProject2 but not to organize the way I want (with different categories)

Any ideas?

Thanks you
Francois

-->