199,114 Archived Topics
Remove Filter ![]() | |
Hi, I ve been given an assigenment in which I have to create a process, open a file and read it by that process, then that process the data to the another process (2nd process) through function pipe (), which capitalizes all the letters. The 2nd process then sends the … | |
Hi everyone, I am a little new to Java programming and am doing a simple project. The Problem is that I am able to connect but am not able to send any data. It is a little weird. The server gets the client's IP and the client to is connecting … | |
I dont know if this is the right forum for this, and please move this thread if it is but i want someone to help me with making a game with python it will be a text game, with charactor creation, fighting, exploring, and lots more, so PM me if … | |
Expectations are this code: [CODE]#include <iostream> #include <limits> #include <stdexcept> using std::clog; namespace{ class FloatValue { public: FloatValue() : m_amount(0.0f) { clog << "Creating default floating point value.\n"; } explicit FloatValue(float amount) : m_amount(amount) { clog << "Creating floating point value with amount " << m_amount << ".\n"; if(std::numeric_limits<float>::infinity() == … | |
Hello all, I'm a beginner in C, and I face the following problem. I have multiple data files, where in each file, there are 3 lines that are the same for each file, and then the fourth line in each file have the work "result" and then a value. What … | |
I installed php (4 i think) and added the extension to iis. When I try to view a php file through the web browser, I get the following error: [quote] [b]CGI Error[/b] The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did … | |
I know how to throw an error in Haskell however I don't know how to do it for the read function. When I do something like this: -- find the number on the second line of file/second list of strings getNo :: String->Int getNo inputBigString = read((listOfLines inputBigString) !! 1) … | |
i have a table holding files and each has a unique id eg. 1, 2, 3 etc. i have a column in the table i want to contan the link that should be <a href=\"localhost/upload/dltest.php?id=(number) eg. <a href=\"localhost/upload/dltest.php?id=2 i want that link to be auto created from the other information … | |
Hi all I have datagridview that shows tasks to be done by user.One of gridview column shows priority of task as icon.Now i want to add tooltiptext to icon as "high priority, low priority or medium". | |
Hi, I am not sure how to categorize my problem I have a class with char* as member variables. and I am using a get method to print the variable. Now I create a vector and in to it, I am pushing the objects of the class. but while trying … | |
I have a issue with displaying wether a ADMIN or a USER on my forum. If a user is ADMIN then it displays the user as ADMIN but if the user isn't an ADMIN it still displays it as ADMIN which I dont want. Could somebody please check my code. … | |
These are just the tables.. STU(SSN [pk], Name, Addr) CLASS(Crs_id[pk,fk], Term[pk], Sect[pk], Fac_id[fk]) COURSE(Crs_id[pk], Description)CLASS_TAKEN (Stu_SSN[pk,fk], Crs_id[pk,fk], FAC(SSN [pk], Name, Dept) Term[pk,fk], Sect[pk,fk], Grade) CORE_CRS(Crs_id[pk,fk]) * term indicates year(4) & semester(1) (i.e, 20091 = Sp 2009) List the names of all faculty members who have taught every course in the … | |
I just replaced a bunch of tables with datagrids for the purpose of easier coding. The tables are all in <div> codes so they are hidden, using CSS, until a user clicks a link. I have one <div> that is not hidden. It shows when the page is first loaded. … | |
Hi, I'm doing a program that sends and receives message using SIP. I want to generate key pair for this program as i need the key pair to create certificates. I'm able to found key pair generation codes, but however when i call the key pair generated into the MIDlet, … | |
I have a simple question: How do I insert a new entry into settings.settings from the code (not through the table interface) so that i can make user defined presets/settings? Thanks for any input ;) Klo | |
I recently started learning java and am trying to make a simple GUI program that takes in a location of an image and then displays the it. What would be the best way to do this?? | |
I am using cubecart as the shopping cart for my website, I want to change the Order confirmation message from "Thank you, your order was successful and payment has been made! Your goods will be dispached as soon as possible. Please visit again soon." to the following message: [code] Thank … | |
Is it possible to use custom type converter to convert types like that: [CODE=CSharp] class MyTypeConverter: TypeConverter { //... all the 'converting' methods here } [TypeConverter(typeof(MyTypeConverter))] class Type1 {} class Type2 {} Type2 object2; //and here, is this possible? (and how to make it happen) Type1 object1 = object2; //or … | |
I'm a newbie on coldfusion so please someone help me. [code=coldfusion]<CFset today = NOW()> <cfif not isDefined("Form.fileupload") OR Form.fileupload EQ ""> <cfquery datasource = "technology"> INSERT INTO sharex_2007 VALUES('#Form.title#', #CreateODBCDateTime (Form.date#, '#Form.presenter#', '#Form.group#', '#Form.remarks#', '#Form.ClientFile#', #Form.audience#) </cfquery> <cfelseif> <cffile action="upload" filefield="fileupload" destination="d:\intranet_info\sharing\shared_x\newsharex\2007\" nameconflict="overwrite"> <cfquery datasource = "technology"> INSERT INTO sharex_2007 … | |
Here is the code I have to compare two arrays, one that is already set and one that a user inputs data into, the problem I get is that when I try to run it I get the following error: Error 2 error C2664: 'arrayComp' : cannot convert parameter 2 … | |
Hi i write a code for uploading images and re-size it in my site. I need to do a watermark in uploaded images. Please help me.. The code is as follows : [ICODE]$finalfilename="share/".$final_file; $src = $po($finalfilename); list($width,$height)=getimagesize($finalfilename); $newwidth=300; $newheight=200; $tmp=imagecreatetruecolor($newwidth,$newheight); imagecopyresampled($tmp,$src,0,0,0,0,$newwidth,$newheight,$width,$height); $filename = "share/".$final_file; imagejpeg($tmp,$filename,100); imagedestroy($src); imagedestroy($tmp);[/ICODE] Please help me … | |
Okay, I basically have a menu bar with menuItems.. say just showTableMenuItem --> to display the table .... and addMenuItem() --> to add new record. I want to be able to display the table (when user clicks on the button), and then disappear the table and display the addMenu page(when … | |
hey there this problem stuck me out how to display url like this [CODE]http://www19.domain.com/548ecedd7f87970e986dc19077ef2edd.rar[/CODE] [CODE]preg_match_all('#^(?:http://)www[0-99]([^/]+)#i',$url,$parts); foreach ($parts[1] as $test) { echo 'hehehe '. $test; }[/CODE] and the result is: [CODE] hehehe 9.domain.com[/CODE] it just stuck me out i'm already search the answer at least 5 hours :( i do not … | |
The program compiles but it only shows the addresses of myDate.year not the year that I input. [CODE]#include <iostream> using namespace std; class Date { friend ostream &operator<<( ostream &, const Date & ); friend istream &operator>>( istream &, const Date & ); private: int day, month, year; }; istream … | |
Hi Guys!Good day! Ive notice just this day that the user of the program Ive made can double execute the program. I want the program to behave that when the process(task manager) of the program is already running, and when the user run the program again, the msgbox will show … | |
void x_bzero(s, n) void *s; unsigned int n; { long long *ptr = (long long *) s; unsigned int d; n /= sizeof(long long); d %= sizeof(long long); while (n--) *ptr++ = 0; } Dear programmers, hi I have a question about the function above. I'm calling that function from … | |
I'm trying to write a program for a small school project. It involves a use inputing two numbers one representing kills and one deaths. The user inputs the numbers than the program should divide the kills by the number of deaths and put out the number. My problem is that … | |
have a script which i found online,through google for uploading and resizing photos when they are uploaded. It works well,the only problem is that there are some images when i upload them they are not detected as a file,but others are uploaded well. for example image of this properties is … | |
I hate to come back so soon, since I was all proud of myself for working out the last issue. This is a different issue, and beyond the scope of my knowledge. The pagination itself WORKS FINE. However, I'm trying to use a tooltip script on an image hover, and … | |
Hi, I'm currently trying to implement expanding text to links. However, as the links are created dynamically I need to be able to make the DIVs Id-tag 'general' in the script. So, instead of this: [ICODE]function pageLoad() { collapseAll($('myvar_1','myvar_2','myvar_3)); } [/ICODE] I would like something like this: [ICODE]function pageLoad() { … | |
Hi, I have managed to get a nested query to work partly, but i need to somehow add another nest, which i cannot get to work. To explain more, i wanted to firstly find records that did not exist in another table, to which i used the following [CODE] SELECT … | |
im using dreamweaver everytime i preview my templates the image did not load in browser? please help. . | |
I'm supposed to create an array of 20 employee objects. My instructor told us to create separate source files for the search and sort functions for this array. Um, how is that done? I created two source files and just put [code]#include "Employee.h"[/code] at the top of both of them. … | |
I have a question about table design and normalization. The table in questions is: [code][U]WorkOrder[/U] WorkOrderID Submitted by dateSubmitted DesiredcompletionDate discription of task schoolID RoomNum DateStarted Datefinished cost of materials labor overhead completed by completion comments priorityid budgetid approved approveddate approved by approvedcomments[/code] Is that table nomalized? or should i … | |
Play it for three times and we can get the final result. My answer: var number, guess: integer; begin randomize; number:= random(3)+1; writeln('Wellcome to the game of snap.'); readlnln (guess); if guess>number then begin writeln('It''s too big! Please try again.'); end else if guess<number then begin writeln('It''s too small! Please … | |
I am attempting to figure out how to use a datagrid with checkboxes. I found some information for using an item template and the FindControl method. I am using Dreamweaver to program so I'm sure I'm not getting all the bells and whistles that VB.NET has to offer. I'm stumped … | |
hi everyone, i have wrote the database code like this try: import MySQLdb import _mysql_exceptions as DB_EXC cxn = MySQLdb.connect(host='10.0.2.2') if(cxn != 0): tkMessageBox.showinfo("Text", "you can update ur local database to server") else: tkMessageBox.showinfo("Text", "there is no connection please try again") cxn.close() except ImportError , e: return None when there … | |
Hi. I have the terrible problem that I never finish my projects because i get bored or distracted with other stuff. So, I wanted to make something really easy: text-game. Its about greek warriors in the olympics, so I need to assign a large number of attributes to each warrior. … | |
Write a program that accepts length measurements from the user, and also whether the length is in inches, feet or meters (use the following screen shots as a guide). Keep track of the total length in meters and report the total after each user entry as shown below. When the … | |
here's the link to the script: [URL="http://www.dynamicdrive.com/dynamicindex17/ajaxpaginate/index.htm"]http://www.dynamicdrive.com/dynamicindex17/ajaxpaginate/index.htm[/URL] I got the script working, but I can't manage to move the numbers from the top...to the bottom. I tried nearly every combination I can think of. Here's a screenshot of where the numbers are placed currently: [IMG]http://www.justinmarcusdesign.com/image.jpg[/IMG] [B][COLOR="Red"]Here's the HTML:[/COLOR][/B] [ICODE] <!DOCTYPE … | |
I have to modify a Program that I previously wrote. I have to modify my sort function so that when a character is passed through it which is coded in main not given by a user it arranges it by that. Where I am at right now neither gets organized … | |
My question is: to create an array of 6 lotto numbers. The numbers should be between 1 and 40 and you are not allowed to put into the array any number that is already in it. Hint: You are using an array of 6 numbers so that’s a loop generate … | |
Hi, I'm attempting to program a fire emblem/final fantasy tactics sort of game. I'm having trouble getting the movement range to layout correctly. The way I'm doing it works, but most of the time gets stuck in an infinite loop, and doesn't always show all of the possible movement/attack locations. … | |
Hi, I am still rather green when it comes to C++ so be gentle with me. I am trying to create a dynamic array of objects (class Structure), each object represents a geometric (physical) structure. But for the sake of simplicity let's consider only one such object. Within each instance … | |
[MS SQL Server 2005, Visual Studio 2005, ASP.Net 2.0(with VB.net coding) website] Hi, I have a brand table which is inter-related with many other tables. SQL generation code below. [CODE] /****** Object: Schema [Product] Script Date: 03/27/2009 10:15:22 ******/ CREATE SCHEMA [Product] AUTHORIZATION [dbo] GO /****** Object: Table [Product].[Articles] Script … | |
Hello Gyes! I am very new in Using emu8086 and i need a code about this Program Problem: I have to convert a Hexa input to a Binary Output using emu8086. 1. Hexa number will be placed in AL 2.And output Binary will come in AX+ DX, Memory address will … | |
Hi Everyone. I need help with using Printer.Canvas to print toa USB printer. Using Delphi 7.0 and a Brother HL2140 USB only printer, produces a blank page. A friend tried it on his USB printer and all of the print was on the left half of the page. On my … | |
I was doing a bit of reading, and according to what I read, GUIs can be set up and realized in any thread, but doing more GUI work in a normal thread (non-EDT) after a call to setVisible can be dangerous. The explanation given is as follows: [QUOTE]The example constructs … | |
Ok, first off my program is working fine i just need help with my next step of my program. [CODE] Dim y As Variant Dim v As Variant For Each v In myArray For Each y In strArray If (Len(v) = Len(y)) Then For i = 1 To Len(y) If … | |
Hullo members am developing a cell phone app for my mobile device and I have a java code I have written to do this. I would like any body to help me complete it so that its complete and make the time and date not to disappear after some time. … |
The End.