43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for hummer010

I'm trying to open an https file using python on windows: [url]https://www3.eub.gov.ab.ca/eub/dds/iar_query/ApplicationAttachments.aspx?AppNumber=1438224[/url] My current attempt was this: import urllib import urllib2 the_url = 'https://www3.eub.gov.ab.ca/eub/dds/iar_query/ApplicationAttachments.aspx' values = {'AppNumber':'1438224'} data = urllib.urlencode(values) req = urllib2.Request(the_url, data) handle = urllib2.urlopen(req) At this point i get an error: urlopen error unknown url type: https …

Software Development python
Member Avatar for alc6379
0
196
Member Avatar for Yoshidex

Hello there, is been a while since I last posted here, mostly because I didn't have the time I needed to program. But now, I reentered the exciting world in Visual Basic, 'cause I have a lot of time now and my mom wants me to make her a database …

Software Development open-source sql visual-basic
Member Avatar for Yoshidex
0
101
Member Avatar for ROGENATOR

Greetings: I`m starting in Java and i`m having problems with compatibility between versions, in school they have an older version(I believe its 1.4.0 but i`m not completely sure) than the one i have at home(1.5.0_04), so almost every time i try to open a applet/application at school i get errors, …

Software Development java
Member Avatar for ROGENATOR
0
103
Member Avatar for JoBe

Hello ladies and gents, Ive recently downloaded VC++ 2005 EE, but, would prefer to buy a version of this. Now, the problem is that there are so manny versions. Since I'm a hobbiest I was wondering wich of these two would suit me the best. Visual Studio 2005 Express or …

Software Development asp c++ ide visual-studio
Member Avatar for jwenting
0
125
Member Avatar for JoBe

Hello ladies and gents, in Accelerated C++ I have an exercise wich goes as follows: [quote]Write a program that will keep track of grades for several students at once. The programcould keep two vectors in sync. The first should hold the student's names, and the second the final grades that …

Software Development algorithm c++
Member Avatar for JoBe
0
287
Member Avatar for KittyGirl

I have to write a program for homework that asks for contestant scores, then outputs the total after the lowest and highest number are deleted. This is what I have so far. I can't use a sort since we haven't covered that yet and I'm not sure exactly how to …

Software Development c++
Member Avatar for WolfPack
0
149
Member Avatar for JoBe

Hello ladies and gents, I'm trying to do another exercise from Accelerated C++ in wich I have to write a program to count how many times each distinct word appears in its input. What I have untill now is this, [code] int main() { vector<string> theWords; string aWord; short count; …

Software Development c++
Member Avatar for JoBe
0
266
Member Avatar for Katrix36

Hi all, I'm making a on-screen keyboard, for a group of disabled students. I've managed to complete the keyboard but i'm wanting to have an option to set the level of transparentcy. At the moment the alphablend value (the level at which the form is transparent) is set to 150. …

Software Development pascal
Member Avatar for pty
0
185
Member Avatar for katharnakh

how to add a seperating line between menubar and toolbar in Python using Tkinter. is that possible using Tkinter. also how to add vertical seperating line to seperate toolbar buttons in toolbar. please help me out from this problem.

Software Development python tkinter
Member Avatar for katharnakh
0
2K
Member Avatar for Steko

I've got a problem with replacing letters for a specific vector, stored in a file. The first file contains a list of "x = 0000101" like entries. The second file contains the target words in the 15th colom. I tried to use a dictionary containing the data of the first …

Software Development python
Member Avatar for Steko
0
411
Member Avatar for muthuivs

Good Day, As u can see I have been away from programming for a while and I have a task that desperately needs me finsh a program. I am trying to use the rename(arg1,arg2),feature of c to rename files on the system. Since the path to these files are long …

Software Development c
Member Avatar for muthuivs
0
971
Member Avatar for ilikerps

Hello, I am trying to move data from a client to a server, and save it in a file. However, I am getting a "Runtime Error!" when I use the substr() function, here: [CODE]char buffer[256]; int sr = recv(acc, buffer, sizeof(buffer), 0); string buffStr = buffer; outfile << buffStr.substr(9,buffStr.size()-1) << …

Software Development c++ client-server
Member Avatar for ilikerps
0
233
Member Avatar for masa

Hi evryone I using MVC++ and built my project using Win32 app. My program do not have any interfaces. it reads files and it put the output in another file. ( I do not mind put interface only to enter the path) the thing is I made my program read …

Software Development c++ user-interface
Member Avatar for kon_t
0
171
Member Avatar for ilikerps

Hello, I know this is probably a very elementary answer, but how does one convert a character into a character pointer, for use strcpy()? For instance, I need this: [CODE] char sendBuffer[5]; char ch; // assume code in between makes ch something strcpy(sendBuffer, (char*) ch);[/CODE] However, the console window that …

Software Development c
Member Avatar for ilikerps
0
159
Member Avatar for Ghent

[COLOR=Navy]Yo, im new to Python and have been working on a personal project but can figure out how to save data to a file then read it in another program. im might have the writing down but cant tell bacause i cant read it. Iv been trying to work it …

Software Development python tkinter
Member Avatar for katharnakh
0
174
Member Avatar for katharnakh

can any body help me to add icons to the toolbar, i know that we have to use PhotoImage class to add but i'm not able to see the image in the toolbar. here is the code which i wrote, the following code is not an error, but im not …

Software Development image python tkinter
Member Avatar for vegaseat
0
191
Member Avatar for ilikerps

Hello, I am working on a server program that deals with opening files, or at least that is all that is relevant for this post. I am using VC++. I use multithreading so that it can be multi-client, of course, but when I try to use this line: [CODE]infile.open(filename, ios::in);[/CODE] …

Member Avatar for ilikerps
0
227
Member Avatar for masa

Hi everyone I used MVC++ and built a project win32 app( world) which has in it folder(world.dsw, world.dsp, world.cpp,world..., Input.csv,output.csv) , my program do not have an interface. because it open and read in.csv and do some calculate to put the output in out.csv. Now I would like to make …

Software Development c++
0
77
Member Avatar for uv2005

Hey there. I'm new to Linux, and must install Scipy (Scientific Python) on my Suse 9.2 . I have the Numeric model installed already. I've used the RPM and I can import the scipy module, but when I try to run xplt then I get this horrible error lines, can …

Software Development python suse
Member Avatar for vegaseat
0
142
Member Avatar for williamrojas78

Hi I created this application, debugged and everything works fine, but now i create the executable and it crashes! but in debug mode it works correctly. Hopefully somebody can help me Thatnks in advance

Software Development visual-basic
Member Avatar for williamrojas78
0
124
Member Avatar for senateboy

how can i get the index number of a iterator? for instance: i wante to return the number of times ive gone through the loop. [CODE]list = [(mark, jacky,jane),(stick,cheri,nice),(elly,younces,pluto)] for i in list: print i[/CODE] this returns lists. but i want an output like: [CODE]>>1 >>2 >>3[/CODE] how do i …

Software Development python
Member Avatar for vegaseat
0
155
Member Avatar for stupidenator

Hi everyone, I am having a problem with a problem I am trying to write. It seems to compile ok, but then when I run it, I get a Segmentation Fault. i am using arrays and I am attempting to return a pointer to a char array and i am …

Software Development c++
Member Avatar for stupidenator
0
122
Member Avatar for moznmar

I've been trying to get this code to build, but I keep receiving the following errors: week5Crook.obj : error LNK2019: unresolved external symbol "void __cdecl decrypt(char *)" (?decrypt@@YAXPAD@Z) referenced in function _main week5Crook.obj : error LNK2019: unresolved external symbol "void __cdecl encrypt(char *)" (?encrypt@@YAXPAD@Z) referenced in function _main Debug/week5Crook.exe : …

Software Development c++
Member Avatar for moznmar
0
152
Member Avatar for hongfan

Hello! I'm just starting to learn C++ for school, and our first assignment is creating a series of numbers according to the following rule: [code]current value next value 1 none - the sequence terminates even current / 2 odd 3*current + 1[/code] I have to compute for the initial values …

Software Development c++
Member Avatar for beuls
0
220
Member Avatar for ilikerps

I have an edit box, with its settings as "multiline", "want return", and "vertical scroll." All I want to do is to have new lines between each output line. However, I have tried "\n", which did not work. So, is there a way to make them have line breaks?

Software Development c++
Member Avatar for freespace
0
543
Member Avatar for ajitmote

Hi, after searching a lot , i got IDE SPE........ link for SPE [url]http://stani.be/python/spe/page_download[/url]........ but giving some problem........ my system is fedora core 4 .....

Software Development ide python
Member Avatar for vegaseat
0
166
Member Avatar for senateboy

hey yo's, i pretty much understand this function, except for the return value. i know that [I]string , string[/I] concats the strings. but what does the comma in the middle do when you have 2 different objects on either side as in the return value below? [CODE]def load_image(name, colorkey=None): fullname …

Software Development image python
Member Avatar for vegaseat
0
171
Member Avatar for wigster84

If i have a set of numbers: [B]48098, 50933, 3128, 323, 42, 5[/B]..etc how can i convert them into integers? I have an example of a code ([I]see below[/I]) that will convert one number, not the whole set. So, im having trouble trying to convert a set of numbers seperated …

Software Development c
Member Avatar for Lerner
0
111
Member Avatar for ilikerps

Hello. I am trying to convert my chat client from a C++ program that runs in DOS into one that runs in a Windows Dialog. I am using Visual C++. However, I am already getting a strange error: [CODE]#include <string>[/CODE] That links without error, but when I try to use …

Software Development c++
Member Avatar for ilikerps
0
188
Member Avatar for SelArom

hi! I'm messing with the new Visual Studio 2005, and I'm totally loving it, but there is something that is driving me nuts. In 2003, if I was working on a form, and double clicked a control it would create a handler and shoot me to the code view. I …

Software Development visual-studio
Member Avatar for SelArom
0
128
Member Avatar for davalend

anyone have any idea? i need some suggestion urgently :sad:

Software Development c++ python
Member Avatar for Narue
0
166
Member Avatar for vegaseat

Does anybody know the limit of nested for loops in C or C++? If there is a limit, what is the reason?

Software Development c++
Member Avatar for Narue
0
212
Member Avatar for JoBe

Hello ladies and gents, I was trying to write a small example of a pointer to a two dimensional array like this after looking up how to write the syntax at Narue's Et.Conf. world like this: [code] #include <iostream> #include <iomanip> void array(short (*myArray)[4][4]); using namespace std; int main() { …

Software Development c++
Member Avatar for Narue
0
137
Member Avatar for ankit_rastogi82

Hi All, I want to remove a substring from a string without any additional tabs/returns in the output string. Is there any method availaible or how can I do it. For the ease, I am giving an example: [code] mainstr =""" ${if:isLeaf} Dont include this isLeaf=True ${/if:isLeaf} ${if:isStatic} include this …

Software Development python
Member Avatar for vegaseat
0
185
Member Avatar for wigster84

Ok, here is a program....im getting an error, "est.cpp(1) : fatal error C1083: Cannot open include file: 'stream.h': No such file or directory Error executing cl.exe." I know something is wrong with the header...and i think it cannot read the cout (in bold). Im trying to run this in (Microsoft) …

Software Development c++ file-stream
Member Avatar for wigster84
0
132
Member Avatar for wigster84

Hi, Im a beginner at C++...trying to learn it on my own. Im doing an exercise that i cant seem to tackle. I have to read a set of numbers from a word file seperated by commas and convert them to integers. For example, say my set was [B]48909, 3453, …

Software Development c++
Member Avatar for wigster84
0
252
Member Avatar for calcop

Hello everyone, I hope I can write this question clearly. Anyway, it is about global variables. I have several files in my C++ project. One of which is main.cpp. This file comtains my main() function. I have a few other files in my project. They are server.cpp, server.h, strings.h, includes.h …

Software Development c++ google
Member Avatar for calcop
0
181
Member Avatar for moznmar

I'm a newie and am in the process of trying to develop a book store as part of a class project. I would greatly appreciate any assistance that may be offered my way. Please do not give me any answers, but if you have any suggestions that may nudge me …

Software Development c++ display visual-studio
Member Avatar for moznmar
0
264
Member Avatar for ankit_rastogi82

Is it possible to limit the size of list in python. I want to make list of 5 elements. How can I achieve this thing in python. And one more thing can we declare list to store elements of same type as in c, C++ we can declare an array …

Software Development python
Member Avatar for ankit_rastogi82
0
187
Member Avatar for masa

Hi is there anyone have an idea :idea: on how could i get the column 7 from the file, I did it for column 5. or how could I continue to make it take other columns. [code] if ( input_file.fail ()) { cout << "Error opening file."; } else { …

Software Development c++
Member Avatar for masa
0
226
Member Avatar for ankit_rastogi82

Hi everybody, I want to get the start and end of all the patterns mattched in regex. I know I can get it with start() and end() fn of matched objects. But re.search() return the match object of first matching regex in the string. I want all match objects in …

Software Development python regex
Member Avatar for ankit_rastogi82
0
148
Member Avatar for Katrix36

Hey, I'm trying to create a on-screen keyboard for a group of disabled students at a school. So far i've managed to create the program to type out each letter/number that the user clicks on. This is fine, but I have to state the name of the active window that …

Software Development microsoft microsoft-windows pascal
Member Avatar for Katrix36
0
275
Member Avatar for moznmar

I'm starting to pull my hair out. I'm pretty new to C++, and am trying to fix a loop I have in my code. I have not been able to give the user a way to exit the program unless he/she correctly anwers the multiplication question this program asks. I'm …

Software Development c++ email perl
Member Avatar for moznmar
0
113
Member Avatar for masa

Hi I would like to know which is better. inialise a value like [code] int i=0; [/code] or like this. [code] int i(0); [/code] and why.

Software Development c++
Member Avatar for Dave Sinkula
0
213
Member Avatar for williamrojas78

Hi I am developing this application where i have to create a report in excel; in other words i am writing to an excel file from VB. The application writes the contents of a grid into the excel file. The first time I run it it works fine, but the …

Software Development microsoft visual-basic
Member Avatar for williamrojas78
0
404
Member Avatar for k_en

Is this correct? How do i fix the error? [CODE]for i in range(10): for j in range(10): if(list[i] != alpha[j])[/CODE]

Software Development python
Member Avatar for k_en
0
122
Member Avatar for masa

Hi if you have a file on c drive under a particular folder how can you open it [code] ifstream input(filename); [/code] if your file name is available in c drive on myfile folder (filename=" C:\myfile\hi.txt") :idea:

Software Development c
Member Avatar for masa
0
97
Member Avatar for masa

hi if you use [code] rewind( FILE *in); [/code] what you can use for [code] I/O stream library ifstream in(ff.txt); [/code]

Software Development c file-stream
Member Avatar for masa
0
130
Member Avatar for Steko

To process my data files I need whitespaces between all characters in a string, to be written to a text file. Is there a simple Pythonfunction to solve this?

Software Development python
Member Avatar for Steko
0
88
Member Avatar for VTMas

Here's what I'm trying to do: I have a DSN for an Oracle ODBC Connection. My code needs to attempt to read from a file first the connection string, followed by the SQL commands to be executed. All of this I have down already, except for the Database name in …

Software Development c c# c++ oracle sql
Member Avatar for VTMas
0
166

The End.