199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for theashman88

I have to create a program that requires the user to enter the zip code. The zip code must be 5 digits. I know how to do that using if statement and string.length(). What I don't know how to do is how to make sure the program only inputs and …

Member Avatar for dnambembe
0
109
Member Avatar for tanco

I'd like to control menus on a apps created by myself. Apps A.exe: Windows Form apps (C#) It has menus Menu1-MenuItem1(MenuItem of Menu1) MenuItem1 calls a EventHandler that shows a message box Apps B.exe: Windows Form apps (C#) It has a button If I click the button, I'd like to …

Member Avatar for tanco
0
101
Member Avatar for tanco

Hello, I'd like to set multiple InputScopes to one text box in a Windows Form with using C#. This application will be used in TabletPC. I found SetInputScopes API. But I'm not good at C#, so I don't have any idea how to program it in C#. Could anyone please …

Member Avatar for tanco
0
322
Member Avatar for qvyhnl

Can someone show me how to write a recursive function that count how many time the number 7 occur in an integer. Thanks

Member Avatar for mrnutty
0
103
Member Avatar for joejoe92

Hi, I'm trying to create a piece of code which joins a line that matches a string, and the next succeeding line (no matter what this line contains). I'm getting confused at what Regular Expression (RE) to use. So far I have: [CODE] input1 = open("out.txt","r") output1 = open("outp.txt","w") with …

Member Avatar for joejoe92
0
136
Member Avatar for chamoo007

i have a question that can we make a dynamic title using php??? is it possible? i mean the header

Member Avatar for almostbob
0
311
Member Avatar for Dexxta27

[ICODE]int main() { int count,rec_temp[]); count=read_temps(int temps[]); rec_temps=hot_days(int count,int temps[]); return 0; } [/ICODE] Can someone identify the error in this code please. I'm using Codeblocks; it says that it "expected a primary-expression bofre "int" " It says the error occurs once in the first function call, and twice in …

Member Avatar for gerard4143
0
101
Member Avatar for jsav

A program I'm trying to compile is simply not working right. I have everything defined the way it should with all the right #include statements there. However, anytime I try to compile with g++, it tells me the functions are undefined. Really, I should not be getting this error. I …

Member Avatar for jsav
0
284
Member Avatar for aoelord

I need to output the results from a .dat file then have it read in data and assign a new * for every 2% each record equals. It is meant to appear as this: 0 10 20 30 40 50 60 70 80 90 100 | | | | | …

Member Avatar for aoelord
0
150
Member Avatar for NU8

I am trying to create a queue class and then allow the user to input integers at the back of the queue and take them from the front. This is what I have so far, it runs but will not output the size of the queue correctly. Any help would …

Member Avatar for NU8
0
122
Member Avatar for jontes

Hello, I'm new here, so I hope I'll ask my question correctly. I have an assignment to create a "text-based cosmic adventure" and all went well until now. My project is separated into several header and implementation files. Problem arises only when I include certain file in another header file. …

Member Avatar for jontes
0
4K
Member Avatar for srm2010

I tried to do async webservice(Helloworld) call using windows application 3.5 using delegate AsyncCallback but the problem was I could not get any BeginInvoke(BeginHelloworld) or EndInvoke(EndHelloworld) methods in intellisense.I did use proper namespace and required interface ,IAsyncResult but It gives me complie time error.what exactly I require to do, to …

Member Avatar for Unhnd_Exception
0
116
Member Avatar for dougancil

I have 2 public variables that I declared in form1 of an application. I am trying to call that variable in form2 and then pass that variable in a sql query. If I declare Public Class Form1 Public payPeriodStartDate, payPeriodEndDate As Date How then to I declare that variable in …

Member Avatar for jlego
0
174
Member Avatar for morewater14

Hi, I have a project to do for a C++ class that asks us to use a class termed "queue" to store some values (20/100/user defined) and allow the user to add/remove values. I'm sure it seems really basic, but I just can't get my code to display the class. …

Member Avatar for Fbody
0
183
Member Avatar for Gh0st93

So her is my problem I have a Macbook running OS 10.6.5 and i have python 2.x and 3.x installed on it and I can run python in the terminal but if I try to run the idle it just bounces for a few seconds then disappears. can anyone help.

Member Avatar for Gribouillis
0
872
Member Avatar for Smokehouse69

I inherited an ancient C program that was a Windows console application. The application connects to a data source and returns some values to the console. A very simple application. I had to make some changes and recompiled the code under Visual Studio 2008 C++. It compiled, linked and ran …

Member Avatar for Smokehouse69
0
203
Member Avatar for jrookie

Hi, I'm trying to write a program right now that requires inheritance. I understand the concept and what I'm supposed to do, but I'm having trouble with the syntax. I created a class called student and created its methods and attributes, and then I created a constructor called student. Next …

Member Avatar for JamesCherrill
0
117
Member Avatar for trippinz

When i drag and drop a file into my form it should give: textBox1.text = the file name (i dont have it, i need it can you help me get it) textBox2.text = file location (already know how to acquire it from a drag/drop) I want the actual file name, …

Member Avatar for trippinz
0
464
Member Avatar for gamebits

The situation is this, I go on eBay do a search, look at the source code, copy the area that I want to parse, paste it in my script, run the script and get what I want from it. So basically in my script I have a variable like this …

Member Avatar for Kieran Y5
0
120
Member Avatar for divyakrishnan

Hi.. I have an issue on my project.I want to open a particular page of a PDF by clicking a hyper link.How should I do it?any idea ?

Member Avatar for chrishea
0
76
Member Avatar for aramesh1989

hi I have to use https protocol in my project. But I dont know how to use it thorough servlets plese guide how to use it. I am using Websphere as my application server. How to congigure it for Https

Member Avatar for aramesh1989
0
100
Member Avatar for frogboy77

Hey there. I'm trying to figure out how to subtract one array of integers from another. I have figured out how to add 2 together going digit by digit and carrying over. I have no idea how to go about subtracting one from another. Basically i want to do simple …

Member Avatar for frogboy77
0
208
Member Avatar for SgtMe

I have made a python program which will create an OpenGL and render a teapot (GLUT standard teapot) with a shader that I specify. The shader is specified as follows: [LIST] [*]I have a file called "index.ini" which contains the file paths to a vertex shader and pixel shader file …

Member Avatar for SgtMe
0
484
Member Avatar for genzoman

Hi, all. This is using jquery by the way. I have a list of ethnicities on a form for a person to enter that are checkboxes. One option is 'Other, specify'. When 'other specify' is checked, I would like a text box to pop up and disable the other boxes …

Member Avatar for genzoman
0
658
Member Avatar for tkpanther

Hello everyone, It has been a while since I last logged on. It has been a while since I really needed any major help in programming. But I am here now and I do need a bit of help. Let me start off by saying that I have tried to …

Member Avatar for tkpanther
0
3K
Member Avatar for 2brite

HELP Please - I have hit a wall in trying to get the following perl created web page to work correctly. It is designed to find all the pictures (.jpg) in all folders below the designated one and to then display them in individual slideshows. I have a version of …

Member Avatar for mitchems
0
122
Member Avatar for sciprog1
Member Avatar for sciprog1
0
79
Member Avatar for bnelle01

I have just started programming classes, so I am in the Basic of all classes...BASIC..and I have been searching all over the place to get assistance with writing code for class. It is not that I want someone to do it for me, I want to either find the info …

Member Avatar for Narue
0
126
Member Avatar for stemiros

Hi, I need some help with OpenGL and rotation. I have a 3D door surrounded by a holder. The holder needs to move with the door and rotate when it's not on the floor. After that the door must be able to open without affecting the holder. It's based on …

Member Avatar for daviddoria
0
386
Member Avatar for bops

Hello. A couple of years ago I developed a game using C with the GLUT library. I originally developed it on an older machine on which the game ran fine. Now when I have a newer and faster machine the game runs so fast that it's impossible to actually play …

Member Avatar for klemmerj
0
134
Member Avatar for kk12345

Hey, So I need help with fractal project, Pythagoras Tree, and below is the code i need to complete. And I really have no idea how to finish. [CODE]from PIL import Image from movieSolution import * import math class ETree(GO): #---------------------- Begin given functions ---------------------------- def __init__(self, color, initSize, order, …

Member Avatar for TrustyTony
0
375
Member Avatar for adobe1

I have this problem it go thus; E=MC~2(change in mass*C square) where E=energy produced(in joule),M=change in mass(in kg),C=speed of light(3.0*10`8ms~1) work of EINSTEIN. I was asked to write a computer program to calculate the energy produce when mass is know. pls help.

Member Avatar for adobe1
0
53
Member Avatar for Archenemie

I have been tasked to learn basic JavaScript as part of my collage coarse, and i've taken this section if code from the W3C website and commented it out. Is my interpretation of what this script is doing correct? Im using this script as an example of how JavaScript can …

Member Avatar for Archenemie
0
119
Member Avatar for El Duke

Hello folks, In short, this code is vulnerable: [CODE] <div class="search"> <form action="/search" method="get" name="header_search"> <label>{l t='Search Business'} <input name="searchtext" type="text" id="searchtext" placeholder="{l t='e.g.Marriott'}" /></label> <label>{l t='City'} <input name="cityname" type="text" id="Hsearchcity" autocomplete="off" placeholder="{l t='All Cities'}" class="commentColor cityname"/> </label> <a onclick="header_search.submit()" href="javascript:void(0)">{l t='Search'}</a> </form> </div>[/CODE] I have been trying to implement …

Member Avatar for Stefano Mtangoo
0
244
Member Avatar for Peter_TARAS

Hi, I try to read line by line from a file some data. Each line in that file has the following format: x = 78.36734693877551, z = 11.428571428571429 -> amplitude: 8.62847057093655E-6 | phase -1.5707968246742405\n I am trying to extract those four float numbers using regular expression. I came with the …

Member Avatar for Gribouillis
0
180
Member Avatar for SEOKRU

Hi, On login page load, (even before submitting user name and pass) Debugger finds "permission denied error". U can see it here: [B][URL="http://goldpharm.co.il/authentication.php"]goldpharm.co.il/authentication.php[/URL] [/B] Now, when a user submit's user name and pass, nothing happens, he stays on the login page. Could it be a problem in authentication.php file? and …

Member Avatar for SEOKRU
0
180
Member Avatar for neocortex

Hello ALL! I am trying to get number of hits for a larger list of words (>500), with Pygoogle (from: [url]http://code.google.com/p/pygoogle/):[/url] [CODE] g = pygoogle(<some request>) freq = g.get_result_count() [/CODE] Now, after starting success, probably around 200th request, I start to get only "'NoneType' object is unsubscriptable". Is this Google …

Member Avatar for joehms22
0
136
Member Avatar for SlzzyDzzy

Just a simple question. Where do i start? Ive tried learning c++ a few times and gave up, but found some nice tutorials and im back in the mood to learn. I really dont know what i want to accomplish when it comes to making programs. But, i figured id …

Member Avatar for klemmerj
0
203
Member Avatar for gregbati080281

i really don't know how to use text file i i want to know the step by step procedure... please thank you very much..

Member Avatar for Shankye
0
119
Member Avatar for liran

( It is only in Python 3 ! ) ( The commands to operate this file are at Linux ! : I want to read a file, but it has to be through stdin ( In linux, with "< filename" ) ! And I want to write the same file …

Member Avatar for Gribouillis
0
2K
Member Avatar for Zohaq

im trying to make a word puzzle project but im having a few problems.. i need a 10x10 grid (list of lists) but the important thing about the grid is that the user fill the grid in the following way: a b c d e f g h i for …

Member Avatar for woooee
0
177
Member Avatar for jgrade

I have written a program to track the membership of a local gym that works perfectly on every computer EXCEPT the computer at the gym. I am pulling out my hair trying to figure out what the difference is any why ONLY that machine throws an error. Background: The program …

Member Avatar for jgrade
0
128
Member Avatar for Philosophy

I am working on the last part of an encryption/decryption program and have to compare the original input file to the final output file character by character to ensure that they are identical. I have tried a few different ways to do this to no avail. When I tried this …

Member Avatar for Philosophy
0
497
Member Avatar for vaibhav1983

Hi All, I want to integrate a What you see is what you get editor for my website. I understand that the editor can be the one as I can see I am typing in. How do I store data in database so that when I retreive the data from …

Member Avatar for quasipickle
0
165
Member Avatar for KA2806

Hi i am trying to create a function that asks the user to enter height and width then colour to then display each pattern in the selected colours. i made a start but i cant make it work with the colour nor adding size dimensions. [CODE]# mini_project.py from graphics import* …

Member Avatar for woooee
0
80
Member Avatar for gillivt

I have a form (testform.html)as follows: [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>test</title> </head> <body> <form id="form1" method="post" action="datareturn.aspx" > <input type="text" id="FoxyData" name="FoxyData" /> <input id="Submit" type="submit" value="submit" name="submit" /> </form> </body> </html> [/CODE] When I enter data into the form field and …

Member Avatar for gillivt
0
265
Member Avatar for lotrsimp12345

TITLE SHOULD ACTUALLY BE: how to get mouselistener to work on method in an class in java If I click a circle it should change the color of the circle. But, I am having difficult getting it to work. Help appreciated. Main just calls this class and calls the init …

Member Avatar for quuba
0
266
Member Avatar for ceyesuma

Hello. I am not sure how this is supposed to work. I need to find a file that will be in a folder data/gm in my package. If I move the program around is there a way to have the program find its new absolute path [icode].getAbsolutePath()[/icode] from its path …

0
75
Member Avatar for coco08

Hi people. I'm trying to create a tictactoe program in python but i'm having some troubles. It's the player against the computer. Now the computer should go on random but still block/win if possible. Right now i'm kinda stuck so feel free to help. I'd prefer it as simple as …

Member Avatar for dekalbxxx
0
556
Member Avatar for lordelf2004

Hi everyone! I have problems in using pointer with reference. So, I make simple program to clarify them. First of all, this is my code and its output. Please notice line (*) and (**): My code: [CODE] //////////////////////////////////////////////////////////////////////////////////////// void RefFunc(int*& a){ int q = 888; a = &q; //PROPLEM HERE …

Member Avatar for lordelf2004
0
119

The End.