15,175 Topics

Member Avatar for
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
363
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
137
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
432
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
112
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
Member Avatar for codedhands

Hi all.Am trying to extract a group of words from a text file.but i dont get the expected result using regular expression.Here are my codes: mytext.txt contains: [code] Group=1 Name=mattew Sex=male Age=25 Group=2 Name=John Sex=Male Age=19 [/code] When i try to get the group=1 i end up get everything below …

Member Avatar for codedhands
0
105
Member Avatar for mmxbass

I am currently storing a hypermatrix of not very many objects over a 4d hyperspace. I am working with a 100x100x100x100 hypermatrix that is VERY sparsely populated. Only about 500 cells actually contain anything. The problem is that this matrix takes up huge amounts of memory even when it's mostly …

Member Avatar for mmxbass
0
155
Member Avatar for nrupparikh
Member Avatar for pinder

Hi, I'm trying to copy a file in python, I have imported the shutil module My problem is that I want to copy file in a directory beginning with a certain name. Example I have 5 file in the fodler but i want to copy all the one tat begin …

Member Avatar for nrupparikh
0
127
Member Avatar for MaxVK

Hi. I have tree control with a structure already in it. A function returns a string that matches one of the items in the tree control structure (They are all Unique), and I need to select that item in the tree. It doesn't matter if the code underlying a selection …

Member Avatar for MaxVK
0
141
Member Avatar for elvenstruggle

Hey guys, I just want to know if there is any ways to add music to a python program (non-GUI, pure text program), and if there is, how? Thanks a lot!

Member Avatar for Ene Uran
0
1K

The End.