199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Raymond Pua

hello! how to make a program that replaces words in a file and replaces it with another word and saves it to another file. Using command line arguments.?

Member Avatar for WaltP
0
195
Member Avatar for Jorox03

I'm doing an assignment for school which is to simulate the grep command in C++. We are to take in a word to search, an input file to search through, and output file to output the results. The only text that should be in the output file is the contents …

Member Avatar for WaltP
0
214
Member Avatar for rbran74

when using setprecision(2) when i try to display the number .90 it olny outputs .9 is there anyway to make it so that it display .90 instead of .9.

Member Avatar for pattmorter
0
136
Member Avatar for FraidaL

I'm writing this program to calculate the best fit line. It's not finished. I'm doing it step to step to make sure it runs so I don't get lots of errors and totally freak out at the end. Right now it runs fine, but something is really off with the …

Member Avatar for FraidaL
0
238
Member Avatar for triumphost

I'm trying to help someone with homework.. So you do not have to give me direct answers if you don't want to.. it is not my homework. [CODE] class Types { //No default constructor.. Types(int Param1, int Param2); }; class Objects { public: Types* Original; Objects(); ~Objects(); }; //The problem …

Member Avatar for triumphost
0
150
Member Avatar for Prisms

I am trying to compare a string from my text file to a user input i was wondering how I would do this I have tried the == operator but that seems to be getting me no where. I am currently trying to use the .compare() but it doesn't seem …

Member Avatar for Prisms
0
213
Member Avatar for elbeato

For some reason this ajax call sends data to the php file fine, and the MYSQL call works, but the php does not return anything to the ajax. I'm not sure if it's an issue with the ajax call or the php (I suspect the former). Could it have something …

Member Avatar for elbeato
0
175
Member Avatar for navp

Hey guys, so I am trying to do an animation rollover image for this gallery and I did make one of the design but the image is absolute and the positioning changes when I change the screen size. Is there a way I can fix that? I know about enclosing …

Member Avatar for elbeato
0
203
Member Avatar for Quinncunx

I have a project for school where I am to create some form of security for an application, our brief was to basically to create and hide a text file in the applications program files (not all that secure really, but heh I don't write the briefs) So I have …

Member Avatar for Quinncunx
0
161
Member Avatar for leiger

This code works perfectly fine when I run it as a class file (the font is located in the same directory) - however when I package it into a JAR file it can't find the font and the program crashes. The font is definitely being included in the JAR archive, …

Member Avatar for karlmeier
0
4K
Member Avatar for moone009

Basically I have a trigger that is fired off whenever a workorder is reopened to close it again. The trigger works perfectly but I want to track the workorders where there is an attempt to reopen it. so basically if workorderid 8 is attempted to open again I want to …

Member Avatar for BitBlt
0
115
Member Avatar for Niner710

Hi, I created a numpy matrix(1 row, 3 cols) with the following values [4 6 8]. What I want to do is to concatenate all these values into a single entry of binary values. So instead of [4 6 8] I would want to have a numpy matrix of just …

Member Avatar for TrustyTony
0
135
Member Avatar for Bennys

Hello, I have a linked list with the following data in it reflecting a title (name), int (# copies) and float (price). I'm supposed to sort this linked list by prices (highest to low) and then print the titles. From what I've seen, the best method is using selection sort, …

Member Avatar for mazzica1
0
99
Member Avatar for james6754

I have a pointer to an array of integers... [CODE] double* three = new double[10]; for(int i = 0; i< 12;i++) { three[i] = i+1; } [/CODE] I assign i+1 to each place in 'three'...when I debug the code, I cannot see the values inside 'three' like in C#..it just …

Member Avatar for jbennet
0
116
Member Avatar for in4sys

Simple table like this [CODE] CREATE TABLE IF NOT EXISTS `users` ( `id` int(255) NOT NULL AUTO_INCREMENT, `username` varchar(25) NOT NULL, `password` varchar(25) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=101 ; [/CODE] [CODE]<?php session_start(); function insert(){ if(isset($_POST)&& isset($_SESSION['post_vars'])){ $insert_query="insert into users set username = '".$_SESSION['post_vars']['username']."' , password …

Member Avatar for Skelly1983
0
205
Member Avatar for arunpawar

HI, i have written a bookmarking page that lets me add urls to database. as i have placed both database results and new url button code in same page. i have a bit conflict. whenever i refresh the page, dot entry goes in database and table gets populated which is …

Member Avatar for arunpawar
0
97
Member Avatar for triumphost

I need help changing my return type from int to vector<string>.. I don't want to have to pass the vector as a pointer to the function but rather I just want to return the vector itself as I no longer need to check the return type. If it fails, it'd …

Member Avatar for mazzica1
0
181
Member Avatar for arbazpathan

i have two tables in my sql database one is "vendor" and other "purchase_order" they both have one common attribute "vendor_name" my problem is that i want vendor name in my "purchase_order" table to be same as that in "vendor" table but vendor_name is not a primary key in "vendor" …

Member Avatar for adam_k
0
175
Member Avatar for Mr.UNOwen

Hello, I'm using pause() to suspend threads until I need them and pthread_kill(thread, SIGCONT) to resume. It works the first time over with the thread unpausing the first time I send SIGCONT, but not the second time around. Does sending the signal cause it to be ignored and if so, …

Member Avatar for histrungalot
0
200
Member Avatar for gujinni

hi there. I am just new in java 3d why my program always says Exception in thread "main" java.lang.NullPointerException: Canvas3D: null GraphicsConfiguration at javax.media.j3d.Canvas3D.checkForValidGraphicsConfig(Canvas3D.java:963) at javax.media.j3d.Canvas3D.<init>(Canvas3D.java:1006) at pkgnew.New.<init>(New.java:39) at pkgnew.New.main(New.java:51) Java Result: 1 however, I already installed j3d and jre. I cannot run and compile my program. Nothing appears when …

Member Avatar for gujinni
0
120
Member Avatar for tommyarcher

I'm trying to create a webpage that will allow the user to input a vendor number(text box) and if the number exists populate the form with vendor name, phone and state using a stored procedures. Below you will find the stored procedures and after it my webpage. Stored Procedures: SELECT …

Member Avatar for tommyarcher
0
154
Member Avatar for scott_liddle

Firstly, this is homework for my computing science class, but we are allowed to get help on the internet or using any other way we want. I'm trying to write a program to read in a file with user responses to questions (I.E. an automated handset vote) and then to …

Member Avatar for hughesadam_87
0
116
Member Avatar for Verean

I've tried everything that I know of, to make the fields required. The form is quite simple and small. Here is the visual form code: [CODE]<form action="insert.php" method="post"> <table cellpadding="2" border="0"> <tr> <td>Server Name:</td> <td>IP:</td> </tr> <tr> <td> <input name="Name" type="text" /> </td> <td> <input name="IP" type="text" /> </td> </tr> …

Member Avatar for Verean
0
196
Member Avatar for xavier93
Member Avatar for ddanbe
0
70
Member Avatar for DAWNIE

Hi, Currently I'm trying to make multi selection (draw shape) on the picturebox but no matter how i edit my code, it jus dn draw any square or circle when I click on my button (either circle or square). Can some1 pls guide me on how I can get it …

Member Avatar for polas5
0
2K
Member Avatar for Krokcy

Im creating a banking system for a university assignment. Basically I have been struggling with encrypting user data. Its a first year assignment (in a 3 year bachelor) please bear this in mind when commenting x))) [CODE] //The constructor sets the global veriable key to a user defined value. //The …

Member Avatar for stultuske
0
154
Member Avatar for mlhazan

Hello Experts, I am getting unwanted result.Please help! Here is the function: [CODE] function ArrayResults($result){ while ($row = mysql_fetch_assoc($result)){ //echo $row["first_name"]; //tested :works!! $this->arr2[] = $row; } return $this->arr2; }[/CODE] I called the function and used the print_r to see how is the array: [CODE] $mysql->ArrayResults($mysql->ExecuteSQL("SELECT * FROM Employee")); print_r($mysql …

Member Avatar for mlhazan
0
94
Member Avatar for C0ding

Hello everyone, I've been having this problem for years: "Compile error: Procedure too large" I asked this question in few places, Expert-Exchange was one, but nobody never came out with an answer, now here i am again, hoping to find a solution for this issue or problem in my project. …

Member Avatar for C0ding
0
559
Member Avatar for gspeedtech

I have a ASP.Net 2.0 web app in VB. I need to copy all relavant data for the current customer shown on the page from a menu action item. Then when the action has completed the copy methods, with a new Unique reference ID, I need to reload the same …

Member Avatar for ckchaudhary
0
1K
Member Avatar for adityamadhira

Hi I need help regarding file download. $url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; $id = strrchr($url,"/"); $id= substr($id,1,strlen($id)); retrieving name of the pdf from url header('Content-disposition: attachment; filename='.$id); header('Content-type: application/pdf'); readfile($id); code for downloading file but it is not working? So i need help from you guys. Thanks in advance.

Member Avatar for adityamadhira
0
142
Member Avatar for Kitson

Hi Guys, I'm really struggling getting to grips with C++ I need to read a .txt file which contains something similar to this: [CODE]Eng.Speed Torque 1000.0, 34.55 3800.0, 46.58 6600.0, 47.44 9400.0, 48.75 12200.0, 39.79 15000.0, 24.61[/CODE] I'm trying to: .Open a file named torque1.txt .extract the data .I want …

Member Avatar for WaltP
0
848
Member Avatar for crazymidget01

I am trying to read in a file that holds an unknown number of x and y coordinates that are to be later plotted into a 2-D array. Does the file have to be read through twice? Once to determine size of the array needed to plot all coordinates, then …

Member Avatar for NormR1
0
225
Member Avatar for P.manidas

Dear Sir/Madam, I have created some ASP pages in my computer and stored those pages into the web site content directory (in my case C:\PanWeb) and IIS's Virtual Directory alias is "abcweb" created with the IIS V5.1 However, i can browse those pages in my computer by putting the 127.0.0.1/abcweb/ …

Member Avatar for P.manidas
0
360
Member Avatar for gameover9

I am trying to write a program to browse to a WSP file and then run the STSADM to make it easier to add solutions to our sharepoint site. The STSADMN is located in c:\program files\common files\microsoft shared\web server extensions\14\bin\stsadmn.exe. [CODE]stsadm -o addsolution -filename "filename that was selected"[/CODE] This currently …

Member Avatar for gameover9
0
178
Member Avatar for icekid5

HI:) i have tried for several hours to make my textbox accept negative numbers but i couldn't solve the problem so i'm hoping u can help me with this.I got here an example of my code: private void textBox76_KeyPress(object sender, KeyPressEventArgs e) { e.Handled = !char.IsDigit(e.KeyChar) && !char.IsControl(e.KeyChar); textBox76.MaxLength = …

Member Avatar for icekid5
0
2K
Member Avatar for falconpunch

So I was assigned the task of displaying all numbers divisible by two, five, and every third number in a range which I'm sure you can see how I did that. However I am having trouble as I was asked to use while loops, and I would also like to …

Member Avatar for Majestics
0
1K
Member Avatar for caltech

Primarily, I need a table of employees with the following fields: Name, Photo(s), and Bio. So the rest should be easy enough, but I know nothing about databases.... so the photo field I'm assuming should be of the blob type, however I need to have a primary photo, and then …

Member Avatar for nice123
0
154
Member Avatar for macrogeek

Hello everyone...!!!! I am new to PHP and have problems using $_SESSIONS , the SESSION variables which I set in one file are not recognised in scripts stored in other Files...I get the error :Undefined index 'XYZ' for any arbitrary variable $_SESSION['XYZ']...Anyone having idea to resolve this issue....Following is the …

Member Avatar for weekendrockstar
0
233
Member Avatar for siqu

Hi all. I have this error and i cant figure out what is wrong here, i have tried to google and used a few methodes to c what is wrong but, naah, no luck. [I] pic 16f887 HI-TECH C Compiler for PIC10/12/16 MCUs (Lite Mode) V9.81 Copyright (C) 2010 Microchip …

Member Avatar for siqu
0
461
Member Avatar for pulak2008

hi i am using asp.net with c# i get this problem when i try to enter date grater than 12 "String was not recognized as a valid DateTime." i am using sql server 2005. In the table field is in datetime format.In the procedure its is also taking as datetime.and …

Member Avatar for omar isaid
0
4K
Member Avatar for dilse4sk

hi every one. I would like to know how to save data without click on the floppy disk on binding navigator. IS there any coding which i can use under a button to do the same function as binding navigator.I just want to use button to save and delete data …

Member Avatar for dilse4sk
0
122
Member Avatar for simplypixie

I hope the title means something, I don't really know how to explain what I am trying to do in a few words. I think better with an example. I have a click event to display an enquiry form on a contact page: [CODE]$("#enquiry-form").hide(); $('.enquiry-form').click(function() { $(this).hide(); $('#enquiry-form').fadeIn( 'slow', function() …

Member Avatar for simplypixie
0
918
Member Avatar for Farhan_B

[CODE]"UPDATE cg_security_user_right SET user_id, right_id ,enable_flag WHERE LastName= " & tuser.Text & " right_id = " & tright.Text & " enable_flag = " & CheckBox1.Enabled & ""[/CODE] How can i improve this code thanks in advance

Member Avatar for cyberdaemon
0
363
Member Avatar for anakonda540

Hello all, i need to creates an automated form that detect the current destination path of the application setup wizard and copies a certain folder then asks where to save this folder so i can use it in a setup wizard. i hope that my question is clear and thanks …

Member Avatar for cyberdaemon
0
189
Member Avatar for emreozpalamutcu

Here is list of things I want to do: Display context menu strip only when mouse is over the item and right clicked on it, the code I have for that is this: [code]private void contextMenuStrip1_Opening(object sender, CancelEventArgs e) { if (listView1.SelectedItems.Count == 0) e.Cancel = true; } private void …

0
113
Member Avatar for Sibuns

Hey! I have some trouble with drawing on picturebox in visual studio c#. I want do draw a line between 2 points that i get either with mouse clicks or with inserting coordinates manualy. So i have created 2 events, picterbox paint event where i made a pen and graphics, …

Member Avatar for Sibuns
0
2K
Member Avatar for kris222

.model small .stack 100h .code start: xor cx, cx mov ah, 1h @loop: int 21h cmp al, 0dh je @end push ax inc cx jmp @loop @end: mov ah, 2h dis: pop ax int 21h loop dis mov ah, 4ch int 21h end start

Member Avatar for thines01
0
117
Member Avatar for C0ding

Hi everyone, [U]Batch example: start /wait executable.exe[/U] I've been using this method with batch files, this time i would like to use something similar in Visual Basic 6, i tried to replace this method using Do While Loop, Do Until... Loop Statement, etc. but still can't find a better way …

Member Avatar for C0ding
0
184
Member Avatar for DaveyMoyes

Hi all, this is just a quick question with regards to php session data. . . I have a php built website and I am trying to develop a mobile html / php website to connect to the desktop website. I can enter my username / password / and secure …

Member Avatar for DaveyMoyes
0
194
Member Avatar for mmnewbee

I need help to solve a problem that has been troubling me for some time. I have a php search page that im having trouble paginating. The problem is that only the first page outputs anything the rest of the pages are blank. And I have already gone through all …

Member Avatar for mmnewbee
0
123

The End.