199,114 Archived Topics
Remove Filter ![]() | |
This is my last resort i have had sleepless nights trying to create this code but have had no luck please can someone help me i need to create a piece of code that fit the requirements below The University wants to make a basic graphical display to show how … | |
I saw the same thing I'm about to post on here earlier, but the difference is that I wrote the program, but it doesn't do anything save compile. The code's a bit sloppy, and I'm just not quite sure where to begin with the bugs. The actual assignment is as … | |
Hi Guys, I've been doing python programming for a few months and I have some code that needs a GUI. All the code does is various print outs to the screen, now in my head this sounds simple enough to convert to a GUI but I can't figure out where … | |
Hi! My JTable is populated from remote DB. I would like to set column names from the DB table column "of_shortTitle". However, if I run query "select * from OrgFolders" then column names are taken from "of_title" by default. The table model is given below. How could I set column … | |
Hello Forum, how are you? Okay so, I wish to create a bunch of strings. Simple.... [CODE] string myName = "Usmaan"; string myOccupation = "Engineer"; string myFav = "DaniWeb"; string randomString = ""; [/CODE] Now what I want to do is, make the compiler randomly....I repeat, randomly select one of … | |
Hello, I am having trouble with this Hangman problem. In line 179, the wrong guesses are supposed to add up. I can't get the 'else' statement (line 176) to work. When i guess a wrong letter, it does not add up the wrongGuesses. What could be the problem? Any help … | |
Hi everyone. I'm trying to export my C program that used MySQL from Linux to WindowsXP and to make the exportation simpler, I'm thinking of downloading Cygwin. May I ask if I still need to download anything to help me use MySQL in Cygwin? Links to download sites and/or tutorials … | |
Jess is expert system language like clips but based off java instead of c This is my code [CODE](import javax.swing.*) (import java.awt.*) (import java.awt.event.*) (set-reset-globals FALSE) (defglobal ?*crlf* = " ") ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Question and answer templates (deftemplate question (slot text) (slot type) (multislot valid) (slot ident)) (deftemplate answer (slot … | |
What do I need to change in order to change the default usr > local > lib > php install directory? Both the builds are to be compiled from source (something I am quite familiar with), and will not be from pre-configured packages. I need to do this in order … | |
Well, I know that for this I need a graphic library but which one do you recommend? I'm working on Windows, with VISUAL C++, and I know I can use windows libraries, or something, but there are a few problems with that (Mainly that I don't wanna use them). Also, … | |
Job: my class "network" contains a vector "taus". I wish "network" to be able to find the indexes of the n smallest elements. My first idea was along the lines (this is mostly meant as pseudo-code): [CODE] #include<algorithm> #include<vector> #include<cstdlib> class network { vector <double> taus; vector <int> nsmallest; vector … | |
I am attempting to update the value of one field within a table, by doing a select of the value of another field within the same table in a single UPDATE statement. Is it possible? And if so, could you tell me what is wrong with the syntax of my … | |
Hello, I would like to make an online conference/meeting system. The project would be open source. So I was wondering, if anyone would be willing to help me in the making of this application? If you're interested and you want to help me, please visit: [URL="http://projects.gratita.com/ocs"][I]http://projects.gratita.com/ocs[/I][/URL] I'm a beginner programmer, … | |
Hi Folks, I have stuck in problem. I want to record keyboard events like key up and key down in Linux OS but I couldnt able to find any proper answer. I have got function but thats lib is very specific to Dev C++ in windows.[CODE]void GenerateKey(int vk , BOOL … | |
So I have a function called find_positions which gives off values like [101,207] [99, 87] [34, 56] etc. I then have a centre of mass function called CoM which when any region is put in, can find the centre of mass of that region. Herein lies the problem. I need … | |
I am trying to code a form that has multiple textbox without refershing page using ajax, then after each textbox threre will be link called add which POST call the other php called addnew.php. In addnew.php data will we added to database(postgres). But I am geting problem while getting the … ![]() | |
Can someone please tell me why my menubar does not show up? [CODE] #!/usr/bin/env python from Tkinter import * class Application(Frame): def __init__(self, master=None): Frame.__init__(self, master) self.master.rowconfigure(0, weight=1) self.master.columnconfigure(0, weight=1) self.master.title('Test Menu') self.createMenu(master) #self.createShell() def createMenu(self, master): menubar = Menu(master) master.config(menu=menubar) loadmenu = Menu(menubar) loadmenu.add_command(label='Load', command=self.load) loadmenu.add_command(label='Save', command=self.save) loadmenu.add_separator() loadmenu.add_command(label='Quit', … | |
I need to find the smallest number formed from the same digits of a given natural number n, using arrays. | |
[B][COLOR="Green"]Hello Guys I have learned c++ and some of java and I wish if anyone can help in starting the database design and how can connect it to a program , I mean by giving me some useful books and programs in which I will program in(MYSQL and ORACLE ) … | |
I have a text file to be read "Mary had a little lamb its fleece was white as snow and everywhere that Mary went, the lamb was sure to go!". The program should do the following: 1. count number of words in file 2. print all words, one per line … | |
Hi, I have prolly very noobish question. I compile my program separately with GCC by: [CODE]gcc -O2 -Wall -c foo.c[/CODE] I just wat to ask if there is a chance to specify the output destination of [B]foo.o[/B] file. Now the output is forwarded to the makefile dir. Thank you for … | |
Say I have this code: [CODE]BOOL WINAPI ActivateActCtx( HANDLE hActCtx, ULONG_PTR *lpCookie ); DWORD WINAPI EnumerateLocalComputerNamesA( COMPUTER_NAME_TYPE NameType, ULONG ulFlags, LPSTR lpDnsFQHostname, LPDWORD nSize ); [/CODE] And I need a C++ script to automatically turn thousands of those into something like this: [CODE]BOOL WINAPI ActivateActCtx( HANDLE hActCtx, ULONG_PTR *lpCookie ) … | |
I am tryint to convert my c++ coed that solves a HiQ puzzle with a depth first search into c# so that i can play around with a gui for it. I have tried a few different approaches but the whole idea of everything being inside of a class is … | |
Hi. I was wondering if theres a way to take a specific item from a list to another list. Here's what I thought would work...: [CODE]def __init__(self, indata): self.data = indata self.total = len(self.data) def getTtestFactorA(self, factorA): ListFactorA = [] for factorA in self.data: ListFactorA.append() return ListFactorA def getTtestFactorB(self, factorB): … | |
Now I have been doing pascal for three months. I am now trying to create a simple calculator program. However, the TEdit box is not working. I type in the value but it seems it is not recording since when converted to either a float or int it states that … | |
dear all i am new to perl. when i run my basic perl program as follows[CODE]print<<EOF; HELLO MY NAME IS MANISH ARORA EOF[/CODE] i am getting this error Can't find string terminator "EOF" anywhere before EOF at PERL.plx line 1. please help | |
when the user types in ls i want the program to show the listed files in his directory but it is not working i cant list the files can anyone help ? this is what i have done so far. it breaks fine when the user enters x [CODE] while(1) … | |
I need help figuring out if two numbers are co-prime. So far I have this (prime() is a bool function) [CODE]void GetE(int& e, int& result) { int random = rand(); do{ while(prime(random)) { if(random < result) e = random; else random = rand(); } while(!prime(random)) { random = rand(); } … | |
I have to write a slot machine program where theres 3 wheels. wheel 1 = cherry, cherry, cherry, plum, plum, bell, bar wheel 2 = cherry, cherry, plum, plum plum, bell, bar wheel 3 = plum, plum, bell, bar, cherry cherry. when wheels "spin", output should show three items from … | |
Hi Guys please I need your help. I'm creating this small application that will control some equipments based on its bar code and the owner picture. everything is working fine, except the picture. is there a way to save image to access database using ADO Connections and\or recordsets? I've head … | |
Hi, I require some help in making the following possible with mySQL. My [simplified] database layout is as follows UserID Timestamp League Field 1 Field 2 Field 3 Field 4 Field 5 Field 6 Fields 1-6 values are either "yes" or "no" Basically a user submits a form selecting the … | |
Hi Guys! I'm currently trying to refresh a DIV on my page that is linked to MYSQL (changes if database has 1 or more rows) without refreshing the entire page, I've tried using javascript although it didn't seem to work and so Im back to the drawing board, Im not … | |
Doing a upgrade most likely next year on my website, but need to figure out how much to budget for it. I like the look of the following sites and was wondering: 1) mint.com 2) benzinga.com Can you tell if they are: a) wordpress customization jobs? or another cms tool? … | |
This code should draw the concentric circle in a patch design and alternate its colours between, Red, Blue, Green(or whatever the user enters from the validColours list) but it wont work. Somebody fix this please. [CODE]from graphics import * def main(): x = 0 y = 0 while not(3<=x<=9): x … | |
I need to write an application which globally intercepts Alt+Shift+S. What I did is I created a DLL which sets global hooks: [CODE]namespace Hotkeydll { public class MyHotKey { public static void setHooks() { KeyboardHookProcedure = new HookProc(KeyboardHookProc); hKeyboardHook = SetWindowsHookEx(WH_KEYBOARD_LL, KeyboardHookProcedure, Marshal.GetHINSTANCE(Assembly.GetExecutingAssembly().GetModules()[0]), 0); } private int KeyboardHookProc(int nCode, Int32 … | |
Hey guys, I written a base class (AudioTrackElement), and derived a class from there (Looper) and another (VolumePan). The looper class implements functionality, while the AudioTrackElement is there just so I can hold many Loopers and VolumePan objects in the same vector. The problem: I can create a [icode]std::vector<AudioTrackElement>[/icode] no … | |
Dear friends I am beginner to jsp ...I want to upload files to server .. I am using the the following code. saveFile = "C:\\Program Files\\Apache Software Foundation\\Tomcat 5.5\\webapps\\ROOT \\Extrusions\\" + saveFile; FileOutputStream fileOut = new FileOutputStream(saveFile); Now i want to save the file into my server ..what should i … | |
Hi guys, jfugue is a jar file for music programming. I had run some example from jfugue.. it plays the song. But may i know does jfugue has the method to display the musical notation? N what should i do if i wish to display musical notation as output in … | |
My assignment asks me to Implement a Linked List class with FoodItem as the objects to be inserted in the class, and implement a PrintList function member that prints the name of each food item in the list. Implement a SelectPrint function member that only prints the food item names … | |
Hello! I'm trying to alter a raytracer program which is supposed to create a picture of 25 spheres. It's an exercise in optimization so I'm basically trying to make the program run without any unnecessary code, making the program specific for the intended output. I'm using a C++ array to … | |
Hi my name is Jason and i am trying to make a web application that allows an end user to create daily journals about themselves and allow the end user to write entries and read previously stored entries using php. please help this is what i got so far <!DOCTYPE … | |
Our professor ask us to upload our program in a website, I've been searching through the web with possible ways, but I still can't figure it out how to do it. Do we have to use the .cpp file? There's another problem, I a trying to run the "Application file" … | |
Hi, I am trying to create a user login that will allow three different types of users to login...basically an admin, a student and a co-ordiantor. At the moment i have any registered user logging in and being sent to the admin.aspx page, i am not entirely how to differentiate … | |
[CODE]object[] a1 = new string[3]; // Legal object[] a2 = new int[3]; // Error[/CODE] why is that? why int cant implicitly be converted to an object? isnt int type of object? | |
Hi, I got a server with several of IP's at. Those IP's I want to create sockets through and afterwards from a client, and afterwards send a socket to a webpage. The problem is that I want to use the IP that the client is calling to create the socket … | |
![]() | First of all, sorry for my bad english, that doesn't make any sence at all. So, please correct me. I made a programm to use SendKeys, but I want a delay between the word. I was able to split the string in words, but I wasn't be able to send … ![]() |
Hi! I need to write a program that moves some letters to the end of a word for example if i enter : cook look book telephone, the result would be: ookc ookl ookb elephonet. i came up with some code but then my ideas run aout...some help would be … | |
I have created a checkDelete function to ask the user if he wants to delete the selected entries from a database. The problem is that choosing cancel still deletes those entries. This is the function: function checkDelete (){ var answer = confirm("Are you sure you want to delete the selected … |
The End.