199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for dumpstercake

Hey guys, I am currently an undergraduate student in computer science and I have recently developed a strong interest in the concepts of reflection and biologically inspired programming. First, a little background, I was an undergrad at a different university for about 3 years studying zoology and biology. Though I …

Member Avatar for 0x69
0
78
Member Avatar for sho12345

Another day yet another assignment, which is why I am here. I come with 2 problems. 1. I cannot for the life of me figure out the printf function. I want to do be able to do this: Number Type Amount 1 type 2.00 2 type 12.00 Well right now, …

Member Avatar for sho12345
0
100
Member Avatar for jaker29902

Hi all, Alright I will try to be as descriptive as possible, so here is the deal. I am attempting to create a Huffman Encoding Tree. The input file is test.txt the characters of the file are read in and as each char is read in it is converted to …

Member Avatar for jaker29902
0
137
Member Avatar for Sanjanapm

[code] #!/usr/bin/perl $run_env = "test"; $parm_file = "wf_PBM_DHT_CS90_CH_Hist_Extract.parm"; $sys_id = "PWLP"; #div name based on the session's call $div = "WLD"; $CH_TYPE = "CS90CH"; #process name will be the process name in the trigger file $PROCESS_NAME = "CH_CS90"; #sys_name would map to the applicable Tier e.g. FAC=Facets, WGS=WGS, STR=STAR…. $sys_name …

Member Avatar for d5e5
0
230
Member Avatar for lotrsimp12345

Need to calculate number of white pegs so I can write fitness function. It works sometimes and it doesn't work other times. I got the calculate number of black pegs to work. A black peg is correct position and color. A white peg is correct color wrong position. Colors are …

Member Avatar for lotrsimp12345
0
987
Member Avatar for Hidden_mistakes

Hi, So i am trying to make a racing game. I have found a code/website ([URL="http://www.gamedev.net/reference/articles/article735.asp"]http://www.gamedev.net/reference/articles/article735.asp[/URL])that explains collision detection. However i cannot figure out how to implement this in my code. If anyone could help me to do this i would be very grateful. If you need me to post …

Member Avatar for 0x69
0
78
Member Avatar for Feenix45

[CODE]<?php //redirect the user to login if session is invalid include("validate_session.php"); $alert =0; $userid=$_SESSION["userid"]; //Connecting to database include("db_connect.php"); foreach ($_POST as $key => $value) if (substr($key,0,8) =="txt_chk_") { $alert =1; $itemid=substr($key,8,3); $purtime=substr($key,11,8); $purdate=substr($key,19,10); $itemdate=substr($key,8); foreach ($_POST as $key1 => $value1) if ($key<>$key1) { $tempstr= substr($key1,0,strlen($key1)-strlen($itemdate)); if (substr($key1,strlen($tempstr))==$itemdate) { if ($tempstr=="txt_qty_") …

Member Avatar for kek1205
0
132
Member Avatar for Learner7

Hi, I have the following code which deletes a row after confirmation. As I know a little bit with message boxes, I could not figure it out. Hence if I say 'Yes' or 'No' the selected row is deleted. Please fix the problem. [CODE]MsgBox("Do you really want to delete this …

Member Avatar for Learner7
0
130
Member Avatar for ultimatebuster

I know I can accomplish this with Regex, however, being not familiar with RegEX (yet to find a good howto/reference), I was wondering if there's other simple ways to parce XML files, or if there's a tutorial for regex somewhere For example, I want to get the Hello World! from …

Member Avatar for ultimatebuster
0
197
Member Avatar for cherryduck

Hi everyone, I'm trying to write an image editor in Java, one of the functions is histogram equalisation, but my code is producing a greyscale image instead :( Here is my code, any help would be greatly appreciated, ta. [CODE] private void histEqMenuItemActionPerformed(java.awt.event.ActionEvent evt) { BufferedImage inputImage = getImage(); BufferedImage …

Member Avatar for cherryduck
0
105
Member Avatar for KirkPatrick

I seem to be having an issue with a program I am creating. It should be a simple program that sends commands from a Java program to a Groovy script (whether the script be on the same computer or another on the network) but I am running into some problems. …

Member Avatar for KirkPatrick
0
969
Member Avatar for Expora

Hello all I started toying around with some tutorials using opengl and glutt but i encountered a problem using MVC++ IDE. The problem is that it says "initrendering" identifier not found and drawscene says undeclared identifier. the code is [CODE] #include <iostream> #include <stdlib.h> #include <StdAfx.h> #include <GL/glut.h> using namespace …

Member Avatar for Expora
0
101
Member Avatar for reanopp

Hi guys, We have some sensitive information in a Visual C#.NET app (an app that needs to be distributed to end-users). Examples of this information would be a connection string for a MySQL database on our servers, and encryption keys that the program uses to decrypt some datafiles. When the …

Member Avatar for reanopp
0
98
Member Avatar for vbx_wx

hi all. I am trying to enumerate all of the subkeys of a key and then all of the subkeys of each subkey and so on....i dont know if u get my point.For example : enumerate HKEY_CURRENT_USER: AppEvents,Console,Control Panel.....and then enumerate all of subkeys of AppEvents,COnsole....an then every subkey of …

Member Avatar for mitrmkar
0
961
Member Avatar for shm512

Hi everybody, first time writer, looong time follower. I've been given an assignment to write simple c++ code and make exe app out of it. It's purpose should be to check particular folder structure on running system and compare it to the some reference files and folders. Point is to …

Member Avatar for Salem
0
223
Member Avatar for Justin9825

[CODE] #include <iostream> #include <fstream> #include <string> #include <cmath> #include <cassert> using namespace std; class Payroll { public: int menu(); int option; int mainMenuOption(); int payrollMenu(); int employeeMenu(); int employeeOption; int payrollOption(); int anotherOption(); int exitOption(); int mainMenuOption; { system("cls"); cout << "\t\t Docket Materials Company\n\n"; cout << "\t\t Main …

Member Avatar for Salem
0
126
Member Avatar for mebob

I am getting an error in Windows Vista that says "Project3.exe has stopped working", and has a bar like a loading a bar, and under it, it says it is looking for a solution. The program is an class assignment that takes a data fiile with information about energy usage …

Member Avatar for mebob
0
161
Member Avatar for dillinger88

Hey guys, In the following code to find the determinant, the program crashes when it attempts to delete the matrix and gives an error about heap corruption. I'm having trouble determining why I'm getting this error. The code has worked fine until I realised my derivative definitions were wrong and …

Member Avatar for Salem
0
179
Member Avatar for Joelles

Hi, I recently started programming in c# and I was wondering: How am I able to create a "builder program"? For example: I have a windows application with some strings that have to be customised by every person, I would like to have a GUI apart from it that allows …

Member Avatar for Joelles
0
123
Member Avatar for tomtetlaw

how would i be able to open and read a .obj file(for a 3D model)? i need to extract the vertexes and their normals

Member Avatar for jephthah
0
155
Member Avatar for uzumaki

pls can someone tell me how make a picture move across the screen in visual basic 6.0, i have no idea.....

Member Avatar for uzumaki
0
80
Member Avatar for paddymarmion

Hi ppl, Im have trouble returning the array in this program the error's im getting G:\sp.java:151: incompatible types found : char[][] required: char return (array1); ^ G:\sp.java:187: incompatible types found : char[][] required: char return (array1); ^ 2 errors [code]class sp { public static void main(String[] args) //calling of methods …

Member Avatar for javaAddict
0
2K
Member Avatar for whiteyoh

Hi All, I have an API key for google maps and its giving me the following response. My first question is, how can i extract the data? Normally i work with XML responses via CURL so im new to this. If i do use the XML example i just get …

Member Avatar for whiteyoh
0
200
Member Avatar for rukshilag

i have downloaded and extracted fpdf into my root folder site folder.. i want to know how i can generate a pdf file when i press a button called print. please help? and wehre do i put this fpdf code? is it in the script that contains the output?

Member Avatar for rukshilag
0
217
Member Avatar for LisaJane

Hello, I have an assignment where I have to create a hash table and load 30 part numbers into it- should be a 2-d array...and eventually I have to prompt the user to choose an algorithm and keep track of collisions. But I am starting really small with this and …

Member Avatar for peter_budo
0
399
Member Avatar for Lygris

I hope this goes here. Alright, so I'm trying to write a simple program that takes the contents of a query's results and pastes them to a text file. Although I could do this manually, I'm trying to create a "user friendly" method for when I'm out of the office …

Member Avatar for Lygris
0
208
Member Avatar for veledrom

Hi, There is a webform which manipulates a lot of database tables after submit action by a user. Is there any easy way of finding out which tables have been affected after the process? Database has 259 tables and php pages and classes are very messy and complex. Also no …

Member Avatar for veledrom
0
65
Member Avatar for loloy123

Hi, Ive been at this all weekend and can't figure it out.... I need to take it name and 3 results via a form and store this in a mysql database - done. Then I need to print on screen via php who got the highest score. The highest score …

Member Avatar for rajarajan2017
0
491
Member Avatar for picador

Hello all, I'm new here :) After I upload new .mo file on the server I get blank page after first few refreshes, like server cache the old file... After that everything seems to be ok. I use slackware, lighttpd 1.5, PHP5... I thought that only apache server does caching, …

Member Avatar for picador
0
87
Member Avatar for user1980

Hello there.. I have a custom validator for my text boxes. the code is as below.. Expand|Select|Wrap|Line Numbers [CODE] <asp:CustomValidator ID="CustomValidator3" runat="server" ControlToValidate="text1" ErrorMessage="Please enter text1" ClientValidationFunction="ClientValidate3" ValidateEmptyText="true" ValidationGroup="Submit" onservervalidate="CustomValidator3_ServerValidate" Display="Dynamic" SetFocusOnError="false">*</asp:CustomValidator> [/CODE] [CODE] function ClientValidate3(sender, args) { var txt1 = document.getElementById("<%= text1.ClientID %>"); var txt2 = document.getElementById("<%= text2.ClientID %>"); …

Member Avatar for user1980
0
525
Member Avatar for Um num num

Is there a way to add a mouse listener to an image for example when the image is clicked change the text of a label... :?: Any help would be greatly appreciated Thanks’ :)

Member Avatar for Um num num
0
285
Member Avatar for saisunil1978

Hi, I am facing a problem in capturing and retreving data from a webmethod response.I am calling web methods on remote server.So I have included the web reference of the webservice in my Vs2005 solution.But the main problem is the webmethods are returning custom Array datatypes.The coustom data types are …

Member Avatar for nn pp
0
205
Member Avatar for whitestream6

I've got my pagination script working, but now I need help trying to get it to extract data from 2 different sources. The episode data is stored in table episodes, whilst the main table (where the info on airdates for episodes is stored in epdata2). This is my code: [CODE] …

Member Avatar for sourcebits
0
159
Member Avatar for Archenemie

This one has got me completely, i cant see why the notebook doesnt show, i wanted the gui interface i have already built to show on page 2 of the notebook, but for some wierd reason the page just comes up empty, and it is really baffeling me. Can anyone …

Member Avatar for Archenemie
0
300
Member Avatar for digozz

please i need help in my asignment the assignment question is: Write a functionto print the Fibonacci value at a given position in the series.you should write two versions of the function both of wich must be named Fibonacci(overload functions).the first version should be implemented using a for loop.the second …

Member Avatar for digozz
0
80
Member Avatar for questionary

Hi, what tables shoud I put into database of online shop? I think about cart table, categories and products tables and ... - I do not know what else I can add into. How can I store for example pictures of products in my database? Is there any tutorials you …

Member Avatar for drjohn
0
89
Member Avatar for ayan2587

hello guyz.. Need urgent help on this !!! Is there a way to find out the total memory being consumed by my C++ program. I have seen in many online coding competitions that set a limit on memory consumption. Is there any tool by which I can find memory being …

Member Avatar for ashishchoure
0
8K
Member Avatar for singju

Hello Everybody, I have stored images in ms access. The field name is "image" and the data type is OLE Object. I have stored an image with ".bmp" extension. In the database in the record it is showing "Bitmap Image". Now I am using JSP to retrieve this image and …

Member Avatar for parry_kulk
0
259
Member Avatar for Obelisk4

Hi all ! I 'm a newbie in SQL and has just install the Oracle 10g Express Edition. When using its SQL Command in the Web-interface, I took an error with the GROUP BY, as follow : First, I create a table DEPARTMENT, here 's the code : [CODE] CREATE …

Member Avatar for Obelisk4
0
157
Member Avatar for narfman0

Hello all, I am trying to automate my builds so that when I commit a branch with a particular url to my svn repository, my python script (which runs twice daily) will pick up on it, do a build, and upload it to a new trac downloads page. Right now …

Member Avatar for narfman0
0
180
Member Avatar for Lee21

guyz i need help, i encounter an error saying "Cannot access a disposed object. Object name: 'Form2'." I encountered it after I closed the child form named Form2 and then click again the button1 to show it again. Hope you help me guyz here's my code [CODE]Public Class Form1 Dim …

Member Avatar for Luc001
0
144
Member Avatar for sjn21682

Hi everyone, need help here, im having trouble with my program, what my system do is, it compares two datafiles, first it matches datafile1 to datafile2, then datafile2 to datafile1, when there in unmatched in the datafile i writes in notepad, i used streamread in reading the datafiles, actually its …

Member Avatar for powerbox
0
205
Member Avatar for erees

I am having some problems with merging a large number of text files. Basically I am attempting to merge upwards of 2000+ text files that could range anywhere in size from 1 megabyte to multiple gigabytes in size each. Thus implementations must use some form of buffering in order to …

Member Avatar for powerbox
0
262
Member Avatar for dbphydb

Hi, I am basically from QA. What we testers do each day is 1. Open a web browser. Type in [url]http://hostname:8080/cruisecontrol[/url] (since we are in a particular network, only we can access this) 2. Check if the latest nightly build has been successful. If it is successful, deploy it on …

Member Avatar for TrustyTony
0
84
Member Avatar for tbelgard

Running a contest, who can make the most simple elevator program, dual elevators, 4 floors, emergency stop, 7 seg led for floor locations on each floor and in elevator. infrared sensor to read floor levels and to adjust speed.

Member Avatar for vb5prgrmr
0
49
Member Avatar for itslucky

Dear Friends, im creating a website in which i get a response of my XML request from server. Searchhotel.aspx create the [B]request[/B] and listofHotels.aspx get the [B]response[/B] on its Page_Load event. Currently when i click on Search button from Searchhotel.aspx page it remains on Searchhotel.aspx Page and only display listofHotels.aspx …

Member Avatar for rohand
0
116
Member Avatar for fawadkhalil

Hey all I have a form with update panel, Drp Down and Text boxes and requered Field Validators.There is also a button that do post backs. Validation group of Field Validators and button are same. When page loads and i submit data validators appear. After i select data or change …

Member Avatar for rohand
0
1K
Member Avatar for sonia_demo

hello friends, I want to [B]display only those images which are checked.[/B] I had tried so many times but no use. when I checked any images. it displays only [B]last[/B] image. can any tell me where is the problem here is the code. display.php <?php $i=0; $connect = mysql_connect('localhost','root','') or …

Member Avatar for sonia_demo
0
81
Member Avatar for inAweofOOP

Hi all, I am getting this [I]UnauthorisedAccess Exception[/I] when I try to delete a file using the File.Delete() method...I hav permitted full control to NETWORK SERVICES, IUSR_(user name) and ASP.NET Machine Account on the folder that contains the file to be deleted..i'm stumped..i even tried impersonating user (administrator) in the …

Member Avatar for rohand
0
1K
Member Avatar for danieldot

hi guys, as part of my online game I need the server to always wait for variables that will come. I am using the "Socket s = myListener.Accpet...blabla.." the problem is that when I call Server.cs class the application freeze, 'cause its waiting for variables... I want it to listen …

Member Avatar for powerbox
0
76

The End.