64,152 Solved Topics
Remove Filter ![]() | |
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 … | |
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 … | |
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++ | |
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 … | |
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 … | |
What is a closure? I keep reading this word in programming, but never got a good explanation. | |
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 … | |
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: … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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, … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 = … | |
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 … | |
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 | |
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 | |
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> … | |
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 … | |
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 … ![]() | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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")? | |
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 … | |
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 … | |
Does anyone have a good example of a wx.FlexGridSizer() application. | |
Is there a way to verify an exit, if you click on the exit symbol on a wxPython frame? | |
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', … | |
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 … | |
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 … | |
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? | |
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 … | |
[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 … | |
|
The End.