64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for katharnakh

I have a dictionary defined say D, I also have initialized it. When I say len(D), some time it gives me correct answer, but some times it throws me error saying [I]UnboundLocalError: local variable 'len' referenced before assignment[/I] can anybody tell me why is this error. Am I wrong some …

Member Avatar for vegaseat
0
2K
Member Avatar for Eddy Dean

Hello everyone, I am trying to get an XTEA algorithm to work. I read the key from another process of which I'm sure it has a valid key at a specific location in memory. My encryption algorithm seemed to work, but when I tested it by making a buffer, encrypting …

Member Avatar for Eddy Dean
0
1K
Member Avatar for grunge man

how do u write this if then statment but in c++ if g=3282 then g=k; to bad there wasnt a then like there is an else in c++

Member Avatar for grunge man
0
754
Member Avatar for aeinstein

Hi All, Is the naming convention typically used for C++ vector arrays, with multi-word identifiers, to use an underscore between the words? I'm finishing up a C++ course offered by the local college - I'm taking one of the "classroom: online" sections - and I'm running into that usage in …

Member Avatar for aeinstein
0
2K
Member Avatar for grunge man

ok im getting angry because if i wana keep asking questions then i was told to get a book and read it but thats the problem the reason why i came to this website is besause i foud it verry usefull amd i cant bye a book and eaven if …

Member Avatar for Bench
0
290
Member Avatar for Ene Uran

What is a closure? I keep reading this word in programming, but never got a good explanation.

Member Avatar for Ene Uran
0
286
Member Avatar for George Jump

Hello - I wrote an application to read mag stripe data from a card, parse it and display it's contents. Now I'm attempting to create a DLL out of that logic. I have trimmed down the program to eliminate all those modules, functions, subs etc., that won't be necessary in …

Member Avatar for Comatose
0
218
Member Avatar for gil857

For my work, I am making a web application for our intranet that will query our accounts, and based on the input, will pull out the appropriate contact's email address to send a pre-scripted message. I can't seem to find a good answer on the net, but my question is: …

Member Avatar for gil857
0
110
Member Avatar for insamd

Hey everyone, Im new here, i have been browsing round these forums for awhile and thought i would get involved. Anyway i have a slight problem... I have a little bit of code that changes a string (eg. john) into its binary representation. What is going wrong, is that my …

Member Avatar for insamd
0
86
Member Avatar for ryy705

Hi, I need to learn how I can use a custom data structure in a JList. In my program when I click the Add button next to the JList a JOptionPane opens and takes a String input. The input is then used to create an object which is placed in …

Member Avatar for ryy705
0
195
Member Avatar for dannyfang

Hi, I'm a freshman in computer science and a new member to this forum. I'd like to convert the string representation of a number e.g "456" into its integer equivalent i.e. 456. As for character representation of single digits e.g. "6", I'm able to convert it to its integer equivalent …

Member Avatar for Dave Sinkula
0
334
Member Avatar for Gravis

Greetings, I need help with preselecting checkboxes in a HTML form. The first form has several checkboxes and then I post this to a php page which based on the checkboxes selected will send out emails. Each check box corresponds to an email address. After I send an email to …

Member Avatar for Puckdropper
0
363
Member Avatar for nicekitty

Hi everyone, I let a friend use a directory on my website for his art e-zine. He emailed me this morning because he's having trouble getting 2 forms with the same javascript to work on the same page. I really don't know anything about javascript, though (neither does he), and …

Member Avatar for FC Jamison
0
127
Member Avatar for mrsteve

I'm trying to write a class that randomly generates a number, emulating a dice roll. It runs from the command line (since I have yet to learn any other way of getting user input) taking the number of dice and the type of dice(number of sides). The problem I am …

Member Avatar for mrsteve
0
205
Member Avatar for tln26

I am having difficulty running this program. I am using Windows XP along with Microsoft Visual Studio.Net 2003. The error message I get is: Unable to start debugging system could not find exe.file Error: C2109 Fatal Error: C1075 I need to use a while loop to take the number that …

Member Avatar for Salem
-1
244
Member Avatar for BillWebber

Hi to whoever is ready my post and call for help. I am an absolute novice at VB6 and are trying hard to learn this program off my own back from the internet and an old tutorial book i got my hands on. So far ive managed to build a …

Member Avatar for BillWebber
0
251
Member Avatar for jrcagle

I'm befuddled by something. Here is transcript of the interactive session: [code] >>> range(9).remove(3) >>> >>> print range(9).remove(3) None >>> a = range(9).remove(3) >>> a >>> a = range(9) >>> a [0, 1, 2, 3, 4, 5, 6, 7, 8] >>> a.remove(3) >>> a [0, 1, 2, 4, 5, 6, …

Member Avatar for jrcagle
0
3K
Member Avatar for hbmarar

Hi, Good Morning. I wanted to slice one image to tiles and i got a script for it. I did not had a photoshop so I got Photoshop CS2 Version 9.0. This script was working fine but it says error over a copy command. [code] // We make sure our …

Member Avatar for hbmarar
0
414
Member Avatar for BombAppetit

how do i set the permission for read and write into a database? i'm creating a program to view what is in the database(which is a different database application altogether) and reading from it using SQL. Error message shows "No read permission". i looked into the security settings of the …

Member Avatar for Comatose
0
178
Member Avatar for Matt Tacular

I have made a program that does the rolling for you for the board game "Risk" I even made it tell only the attackers top two rolled and it says the attacks and defenders rolled in order of highest to lowest. But I need it to say who has to …

Member Avatar for vegaseat
0
215
Member Avatar for joonoh05

My users would like to have a button to send them back to their original search results after having moved through serveral pages forward. I have already tried using [ javascript:history.back(1)] and doesnt work very well; it doesnt send be back to the seach page. Does anybody have any suggestions …

Member Avatar for joonoh05
0
270
Member Avatar for ze_viru$

Hi, below is my unfinished code.what i realy want help on is how do i display or take the values of a and b to main? [code] #include<iostream> using namespace std; int ReadInput (int,int); float CalcIceCreamCost (); float CalcDeliveryCost (); float DisplayCosts (); int main() { int flava,cart,delivery; flava = …

Member Avatar for Grunt
0
402
Member Avatar for budroedotcom

Ok. This has got to be easy, but I can't get something right. I'm just trying to find a way to enter a few characters (example: cd1) and have it change my current directory. In other words, I'm at root and I want to type cd1 and have it be …

Member Avatar for budroedotcom
0
159
Member Avatar for riddz_22

is there anyway to clear the screen like if you are using cmd prompt?? yes i kno im a noob but any help would be greatly appreciated

Member Avatar for pty
0
180
Member Avatar for lekshmi200
Member Avatar for sgriffiths

Hi I have a struct [code] struct s_list { char name[30]; char lowest[30]; int int_value; }LIST[100]; [/code] I want to pass the int_value to a the unix function qsort, but how do i pass structs to a function/procedure? regards

Member Avatar for ~s.o.s~
0
691
Member Avatar for slacke

Hi I'm trying to create and use some basic socket. I made a code but the compiler reports an error. I'm using linux ( sys/socket.h library) The code is> [CODE] #include <iostream> #include <cstdlib> #include <sys/socket.h> #include <sys/types.h> #include <unistd.h> #include <arpa/inet.h> #include <signal.h> #include <netinet/in.h> #include <netdb.h> #include <stdio.h> …

Member Avatar for slacke
0
117
Member Avatar for lover99509

Guys i need your help with this problem. I want to check if a record in my database is available or not? My database is stored in microsoft access file. ok. I used the data control that comes in the default tool box and i set up the databasename property …

Member Avatar for lover99509
0
195
Member Avatar for leelapadmaja

Can we write a program for GREP SEARCH in particular file?? [B]procedure TForm1.DriveComboBox1Change(Sender: TObject); begin DirectoryListBox1.Drive := DriveComboBox1.Drive; FileListBox1.Drive := DriveComboBox1.Drive; FileListBox1.Directory := DirectoryListBox1.Directory; end; procedure TForm1.DirectoryListBox1DblClick(Sender: TObject); begin FileListBox1.Directory := DirectoryListBox1.Directory; end; [/B] I wrote a program for the selection of file like this. Now I want to search …

Member Avatar for Micheus
0
161
Member Avatar for FC Jamison

OK...here's the background: I want to use javascript to write a CSS dropdown menu. Since I want to be able to float the menu to either the left or the right depending on the site I am using it on, I need to grab the float value (either right or …

Member Avatar for FC Jamison
0
218
Member Avatar for Eddy Dean

Hello everyone, I am trying to create a "proxy" for a program. I will try to explain how I am going to do that. The program I want to write a proxy for sends and receives data to/from a server. The IP and port the client connects to is somewhere …

Member Avatar for Eddy Dean
0
1K
Member Avatar for mrsteve

Hello everyone, I am new to Java programming as well as to these most excellent forums and I have a problem with some sample code from a book that is teaching me Java. The code is supposed to demonstrate packages, access control, interfaces, and encapsulation. My problem is that when …

Member Avatar for mrsteve
0
225
Member Avatar for jrcagle

Hi, I'm still trying to straighten out Tk in my mind. :eek: What I want to do is, under certain circumstances, completely clear the screen and display something new. Instead, it displays the new stuff together with the old. Here's excerpts from the code, with the offending line marked with …

Member Avatar for jrcagle
0
154
Member Avatar for Mikecool509

Hi, I am trying to run a start process command. I want the command prompt process tasklist, to write the output to a file. Normally, in command prrompt, you would type tasklist >> "[I]path[/I]" I got one of my other commands, taskkill to work by typing the following: [code]System.Diagnostics.Process.Start("taskkill.exe", "-im …

0
70
Member Avatar for Ginner

Hi all, I am working on a problem that should have been very trivial but has turned into a multiple marathon without an end in sight. I have written two very small scripts, one auxiliary script as below with two classes 'Node' and 'Queue' intended for use in a linked …

Member Avatar for N317V
0
258
Member Avatar for INI

Hi all, What code can I use whereby if the user times in anything other than a number an error message will prompt them. [code] [U]If NOT val(Textbox1.value) then[/U] Msgbox("Sorry you must only put numbers") else end if [/code] The line underlined, does not work. Please can someone tell me …

Member Avatar for Comatose
0
148
Member Avatar for 3DStarter

Hi All, I am an experienced Java developer and since a few weeks I joined a project which involved real time rendering of 3D objects and interaction with those objects. I have a problem for which I hope that an experienced 3D programmer can help me. Usage: [LIST] [*]I’ve rendered …

Member Avatar for 3DStarter
0
530
Member Avatar for BillWebber

Hi to whoever has been good enough to read this. I am very new to Visual Basic 6 and are trying to build a small data base program as part of a tutorial i managed to get my hands on. I have been struggling with this problem in my code …

Member Avatar for BillWebber
0
187
Member Avatar for swapnamishra

How to execute the code written in a .py file. I wanted to know the exact command to be used. Is it executeFile("File.py")?

Member Avatar for Ene Uran
0
88
Member Avatar for biganimal

I created a program for my daughter and its a little rough around the edges. I need to make some improvements to it but stuck. I want it to be able to save input data and be able to load it back in so every time you start the program …

Member Avatar for Ene Uran
0
91
Member Avatar for Eddy Dean

Hello everyone, I downloaded the source of an internet file and need to filter a specific part of it. I know how the [inlinecode]string::size_type position = Line.find("World:</TD><TD>");[/inlinecode] function works, but this only tells me where the data I am looking for is located (the data is after "World:</TD><TD>"). I want …

Member Avatar for Eddy Dean
0
114
Member Avatar for Ene Uran
Member Avatar for Ene Uran
0
817
Member Avatar for Ene Uran

Is there a way to verify an exit, if you click on the exit symbol on a wxPython frame?

Member Avatar for Ene Uran
0
79
Member Avatar for biganimal

I have a simple program started and need help enhancing it and making it a more realistic database tool giving easy entry and retrieval. import shelve import string UNKNOWN = 0 HOME = 1 WORK = 2 FAX = 3 CELL = 4 class phoneentry: def __init__(self, name = 'Unknown', …

Member Avatar for bumsfeld
0
114
Member Avatar for rockzZ25

Hi All, I have an algorithm on the server. I want the algortihm to perform calculations based upon the data which is stored from a database to nested lists before the algorithm is run. Is there anyway of keeping the program running without any need of retrieving the data from …

Member Avatar for rockzZ25
0
121
Member Avatar for ChimpusDupus

Hi, What is the best way to control data displayed by a GridView when using a listbox that allows you to make multiple selections. I'm currently using a Select Parameter to control the data displayed (using the WHERE clause of the SQL Select Query), though the FilterParameter would make more …

Member Avatar for ChimpusDupus
0
193
Member Avatar for Mwakudua Andrew

hi, could someone help me on to to write codes on my city council project which would enable the system to collect revenue automatically from clients?

Member Avatar for Mwakudua Andrew
0
106
Member Avatar for zx9

hi, This is my problem i have programmed a little word unscrambler i have a file wordlist.txt in my python folder and this program works just fine and unscrambles one word at a time but i dont how how to edit it to make it unscramble 10 words at a …

Member Avatar for jrcagle
-1
2K
Member Avatar for j1979c

[B]Errr... anyone knows what this means in Delphi language? [/B]:sad: [code] i : integer; i := i - $24; [/code] It's actually in a function that completes a WAV file header something similar to the Microsoft's RIFF specification for WAV. The code goes something like this. [code] procedure TForm1.StopRecording; var …

Member Avatar for j1979c
0
148
Member Avatar for Shital Parab

How to swap two variables without using a third variable & pointer?

Member Avatar for Salem
0
222

The End.