15,181 Topics

Member Avatar for
Member Avatar for axn

python script reading config file and then zipping files after X days from directories. dir contains dynamic files. i have specified the extension and the "startswith" in the config. problem i have is it [B]zips up everything[/B]. (if i can get this work will add a delete too). i also …

Member Avatar for woooee
0
204
Member Avatar for thekilon

Hi there. Nice forum you got here. I am coding strictly as a hobist since 1988. But I more keen on studying computer languages. I have studied, GWBASIC, DBASE, CLIPPER,C,C++,ASSEMBLY,DELPHI,C#,JAVA. Imade some decent programs with C++ and Delphi. Now I am more interested in making programms . 3d graphics and …

0
66
Member Avatar for mn_kthompson

I've written some code that will download a web page and extract all the links from that page into a list. Then I want to make a second pass down the list and repeat the process for each on the links found on the first page. But for some reason, …

Member Avatar for Gribouillis
0
289
Member Avatar for kiddo39

This code from Vegasseat worked when I made my own bitmap image to count red pixels. I now want to count green pixels so I changed the code. Again, when I make my own bitmap it will count the green pixels but why won't it count them in an image …

Member Avatar for kiddo39
0
337
Member Avatar for vinoth_python

Hi, I'm new to this forum. I need a python test script to open 100 client connections for a web server, say "www.example.com/test/test" without invoking browser. I am trying out this for load testing to create 100 virtual connections to a web server. I have tried with urllib.urlopen(). It fetches …

Member Avatar for mn_kthompson
0
86
Member Avatar for StarZ

This is a basic Mash program assignment I have to do but I have a few problems, and I don't know how to edit it. It is suppose to look like this: [url]http://i43.tinypic.com/inv0gj.jpg[/url] but mine look slightly different: (copy and paste the code to ur python to check if you …

Member Avatar for sneekula
0
592
Member Avatar for krammer

My problem is that I do not see cookies being captured with this forum submission that I have setup. Does anyone know what I am doing wrong? Any help is appreciated, thanks. [CODE]def main(): # Request post page dev_null = StringIO.StringIO() pycurlConnect = pycurl.Curl() pycurlConnect.setopt(pycurl.USERAGENT, USER_AGENT) pycurlConnect.setopt(pycurl.URL, LOGIN_URL) pycurlConnect.setopt(pycurl.REFERER, REFERER) …

Member Avatar for krammer
0
1K
Member Avatar for lllllIllIlllI

Hi From using java and BlueJ i have found it quite easy to make your own api using inbuilt things in BlueJ. So i was wondering if there was anything in python that would take a python program and find all of the definitions and make an API from that, …

Member Avatar for lllllIllIlllI
0
124
Member Avatar for tillaart36

Hello all, I've written a piece of code that lets me generate or read a grid where all cells have a value. The grid stands for a simple 2d visualisation of an area where types of housing are to be build. The values of a cell stand for some different …

0
365
Member Avatar for elvenstruggle

Hello, I have a text-based program (non-GUI) that would run solely inside the workspace terminal. Within this program there are hundreds of "print statements" showing really long texts. e.g. print "This is a really really really really really really really really really really really really really really really really really …

Member Avatar for Gribouillis
0
139
Member Avatar for mn_kthompson

I've been writing a script that will check google for pages that meet certain criteria at my web site. For example, excel spreadsheets that contain data that should not be on the web. So far, so good. When we find something and take it down, it can take a while …

Member Avatar for QwertyManiac
0
743
Member Avatar for mikewalsh89

Ok, I am writing a program to find the root of f(x)= x - cos(x) using Newton-Raphson method. I implemented a loop and have calculated the root with no problems. However I want to break the loop when the difference between iterations = 10^-8. how exactly can I do this. …

Member Avatar for Nuez_Jr
0
145
Member Avatar for kiransarv

Hi all, I have a file which have ip's of three servers say servers.txt. I am opening the file for every request. Instead I want to load the file for the first request and from the next time onwards. I have to avoid file I/O. How can I achieve this …

Member Avatar for mn_kthompson
0
116
Member Avatar for nitu_thakkar
Member Avatar for Stefano Mtangoo

Hello Dev, I have good news which lasts some hours to come. There are these guys called giveawayoftheday. I enjoy their giving away of commercial software for free with limited valid download time. WHY I WRITE HERE? Not to promote them, but to tell you that today's giveaway is Edraw …

0
49
Member Avatar for betatype

Question about gathering search results for a phrase with Python. I wrote a simple script for my personal SEO purposes that would go out and collect the top 30 search results on Google and then return a list of those URL's. The trouble is everytime I try to run my …

Member Avatar for mn_kthompson
0
103
Member Avatar for Ghostenshell

I think I have several questions before I post my code. [LIST=1] [*]How do I change the attributes? Everything looks the same and I was basically looking at one of the examples in my book for this problem. The book always has the arguments and attributes as being the same …

Member Avatar for Stefano Mtangoo
0
131
Member Avatar for betatype

First post so thanks in advance for any help. I am looking to pull the anchor text from a series of links in some html. I am doing this with find() and rfind(): linkend=users.find("</a>:") linkstart=users.rfind(">",0,linkend) My question is that once I have found the first link, how do I then …

Member Avatar for mn_kthompson
0
168
Member Avatar for Phaedrus2401

I've been programming on and off as a hobby for some time, but I've never done anything with networking, and since I can't get the docs to work with Ubuntu I've been rather stumped. Could someone offer an example of a program that would send a package of data (say …

Member Avatar for mn_kthompson
0
70
Member Avatar for Stefano Mtangoo

Hello all, I was looking for simple application to keep my record. I have explored many app on net but are too complex, and have decided o make my own. However, I don't know if I should use wxGrid or just text controls in displaying data. If suggesting wxgrid, where …

0
44
Member Avatar for revenge2

hello there, i started learning python yesterday and im having quite a bit of difficulty following tutorials... I was following this[URL="http://en.wikibooks.org/wiki/Python_Programming/Variables_and_Strings"] tutorial [/URL] but most of what i wrote did not work. How do i make the code compatible with python 3.0?. for instance it says [CODE]lucky=7 print lucky [/CODE] …

Member Avatar for Stefano Mtangoo
0
438
Member Avatar for revenge2

How does [URL="http://www.swaroopch.com/notes/Python_en:Basics#Indentation"]indentation[/URL] work exactly?. Could someone expand on the explantion given on that page please. -regards.

Member Avatar for mn_kthompson
0
118
Member Avatar for nrupparikh
Member Avatar for damo87

Hi guys, i'm doing a peice of coursework for uni where we are required to implement a Min-heap/priority queue for calculating the Minimum Spanning Tree. In a min heap, the parent's value needs to be smaller than that of its two children. I've tried to implement this,giving the following list …

Member Avatar for damo87
0
430
Member Avatar for revenge2

hello there, well i just started python, and well came to grinding halt. Why doesnt this work when i enter this... [CODE]print "hello world" [/CODE] it gives me [CODE] IDLE 3.0 >>> print "hello world" SyntaxError: invalid syntax (<pyshell#0>, line 1) >>> [/CODE] can anyone help me? -cheers

Member Avatar for sneekula
0
122
Member Avatar for Ghostenshell

First time I've asked for help so please bear with me... ***Brain Freeze*** OK Supposed to open a txt file. Assuming the txt file is formated properly. The file is a what I am assuming a list of names and ages. I created my own file... kick me 989 bodybody …

Member Avatar for Murtan
0
103
Member Avatar for Mr_Grieves

Wow. Just wow. I'm working on a script that evaluates probably millions of trig functions in a given run (it's a geometric ray trace of an arbitrary surface, so the math gets nasty fast...). I've been wrapping the numpy sin, cos, etc to work with the functions I get from …

Member Avatar for Stefano Mtangoo
1
89
Member Avatar for lllllIllIlllI

Hi everyone Well, python 3.0 came out just about a week and a bit ago and i though, now people have had a chance to download it and play around with it a bit, what do you think of it? Is it better? What's the best new feature? Stuff like …

Member Avatar for Stefano Mtangoo
0
113
Member Avatar for fuatm16

Hi Everyone, I m trying to built a Web Vulnrebilty Scanner which will test CGI/RFI/XSS/ on a remote Web Server.Here are my baby steps for do this project. 1-Discover pages in remote site. (ex: [url]www.google.com[/url] , [url]www.google.com/x.html[/url] google.com/y.html ...) 2-Post some scripts to the link and test the response. 3-Read …

Member Avatar for mn_kthompson
0
202
Member Avatar for mn_kthompson

I'd like to write up something that will generate random numbers that would plot into a triangle distribution. I know how to get a normal distribution, which is similar. [CODE=python] import random for i in range(200): print random.normalvariate(3,1) [/CODE] But there doesn't seem to be anything in the random module …

Member Avatar for mn_kthompson
0
2K

The End.