64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for ihatehippies

I've googled this quite a bit and can't find a way to tell if a file is currently being accessed or at least written to. Anyone dealt with this before? If one app if writing to a file another can be reading it before the first is finished writing..

Member Avatar for woooee
0
78
Member Avatar for frank.zappa

Hey everybody, I'd like to write a python script which renames a file on my desktop to a number which is 1 less than what it was before. If you're wondering, the number tells me how many days left 'till I finish high school, lol, but I've also got other …

Member Avatar for frank.zappa
0
400
Member Avatar for JimPatrick

Hi I am looking for a random background image script. I have 3 background images that cover the whole browser and I want them to rotate when someone hits the refresh button on the browser. Can anyone help me on this thanks. JimPatrick

Member Avatar for JimPatrick
0
268
Member Avatar for Pogo24

Hello, I'm writing a paper about the Computer programming industry and I have a few questions that I have been having trouble trying to get answered. What is the difference between programming and scripting? What types of job positions are computer programmers needed for, Other than the obvious software development …

Member Avatar for Stinomus
0
99
Member Avatar for lardshow

i may already have asked a similar question to this but my brain is so fried with this problem. i have to read two csv files, entering the data contained into a map and a list. the first method readInTasks() works fine, reads the file and enters the data into …

Member Avatar for lardshow
0
149
Member Avatar for lolwtf

I wanted to create a form where a user can create an account, have it loaded in SQL, and be able to retrieve the information and validate it. I've reached a mental block on the validation code and need some advice. Here is my code so far: [code]Public Class main …

Member Avatar for lolwtf
0
149
Member Avatar for FaMu

Hi I have the following code which is my project I completed section 1 and 2 but it doesn't work could you help figuring why? [CODE=c++] #include<iostream> #include<string> using namespace std; void count(); void reverse(); void encode(); void decode(); int selection; int main() { cout<<"******************"<<endl; cout<<"Welcome To Project"<<endl; cout<<"******************"<<endl; cout<<endl; …

Member Avatar for FaMu
0
255
Member Avatar for shuda009

Heres a snippet of my code: [code=cplusplus] int main(); { string cmd1; int cmd2; cout << "Command: " << flush; cin >> cmd1; if (cmd1 == "playlist") { cin >> cmd2; if (cmd2==XXXXXX) { cout << "Illegal command: " << cmd1 << endl; } else cmdPlaylist(cmd2); } return 0; } …

Member Avatar for shuda009
0
453
Member Avatar for sayakyi

Dear friend, I make a very simple dictionary script. Now I need to extend sound file in this script. My Initial database has only 2 colums {English,Bm} I forget to create the "ID" column. :) all 5000 sound files are stored in a folder [url]http://www.domain.com/files/sound/(english-word)*.mp3[/url] how can I link all …

Member Avatar for sayakyi
0
169
Member Avatar for jbisono

Hi, Guys. I have a issue reading a word document, well i can actually read the document but i need some how split some data into array, now the data that i want to split is into a table in word, is there an easy way to split that data …

Member Avatar for jbisono
0
470
Member Avatar for headacheinC

Hi everyone, I get stuck with this homework. May be someone here can help me. I must combine two txt file, line by line. My first datafile contain 1 column, contain float numbers and the other contain many columns, also float numbers (Here i attached both the txt files). For …

Member Avatar for headacheinC
0
590
Member Avatar for mini person

[B][COLOR="red"] hi every body .. in this link : [url]http://www.2shared.com/file/5935975/1e5b926d/client_with_pass.html[/url] i wrote program in c# in this program .. i wanna [ if txtname == txtpassword ] Show ( FrmClient ) ,, by click on button Login .. == BUT .. in this code .. it shows ( a new …

Member Avatar for mini person
0
133
Member Avatar for ficus

Please can someone help with passing of variable for the 3rd menu. The second menu is populating correctly from the first menu. The third menu doesn't work because it is not pulling the cat1 & cat2 values. I suspect it is the "checkNew" function, which I tried (with limited Javascript …

Member Avatar for Airshow
0
297
Member Avatar for yehtech

I need a script for my website in which there will be a paragraph provided to our visitor. He will be asked for his reading rate like words per minute he can read. Then according to this asked rate the words in that particular paragraph will get highlighted.

Member Avatar for Airshow
0
91
Member Avatar for Pado

Hello everyone: I'm a bit frustrated because I'm getting an error on one website but not on another one for the same web page. This tells me there's something different about the PHP settings that is different, but I'm not sure where to begin. This is the error I get: …

Member Avatar for leviathan185
0
327
Member Avatar for vs.vaidyanathan

can anyone please help me with converting from image to world coordinates? Once i get the world coordinates how do i make use of the Z coordinate to show the 3d? thanks in advance:)

Member Avatar for vs.vaidyanathan
0
291
Member Avatar for SEOKRU

Hi , I have this problem, where I want the query to find slimier results, Like '%BandName%' for a static query it's easy, but when I use a string from a textBox I am not sure what should be the syntax. [code] public static DataRow SearchByBandName(string bandToFind) { return DbUtils.SelectDataRow("SELECT …

Member Avatar for SEOKRU
0
80
Member Avatar for shuda009

I'm writing a program where I have a variety of input commands. Lets say here are my three commands: info playlist # quit info - gives me information quit - terminates the program The problem: playlist # - The command playlist # means I need to cout a number of …

Member Avatar for jencas
0
106
Member Avatar for brandongood

Hello, I am working on a java program that finds perfect numbers. I need to make it run more efficiently by touching up the computation I have in my factorSum method. Heres what I have so far: [CODE] public static int factorSum(int testNum) { //Initialize local variable accumulator to zero. …

Member Avatar for brandongood
0
192
Member Avatar for sgsawant

When I tried to compile my HelloWorldApp.java file using the following command: javac HelloWorldApp.java it worked (for being able to do this simple thing I had to change a lot of variables). But then when I tried to Run the program using: java HelloWorldApp it gave me the error: Exception …

Member Avatar for sgsawant
0
393
Member Avatar for dinilkarun

Hi All, I have the following string: "AND Category 07|Spec 01|ABC 01 AND Category 07|Spec 02|XYZ 02 AND Category 07|Spec 03|PQR 03 " It is stored in a string variable. I want to remove only the "ABC 01", "XYZ 02", "PQR 03", etc from the original string. The new string …

Member Avatar for dinilkarun
0
150
Member Avatar for newbiecoder

Hi all, I decided to learn PHP, I am an Ubuntu user, I installed, php5, mysql, apache2.2 and phpmyadmin. But I don't know where to put the files to see them on my web browser, when I write [CODE]http://localhost/phpMyAdmin/[/CODE] I get [CODE]Not Found The requested URL /phpMyAdmin/ was not found …

Member Avatar for Tulsa
0
136
Member Avatar for sarithak

Hi frnds.. this query having a small error at where condition....plz solve this.. [CODE] $sql="insert into customer (sizeindustry) values ('$sindustry') where (sno = '$sno')"; echo $sql; mysql_query($sql)or die(mysql_error()); [/CODE] $sql= insert into customer (sizeindustry) values ('Small') where (sno = '4') error: You have an error in your SQL syntax; check …

Member Avatar for sarithak
0
78
Member Avatar for Dhaneshnm

i am using vs 2005.can i have rich text box for a web form? i am not finding it in tool box.if rich text box is not possible ,how can i have text box with rich text features in a web form?

Member Avatar for shree2006
0
110
Member Avatar for shuda009

Hi, I'm new to the C++ community hope you guys can give me some guidance. The program I'm making is suppose to read information from a file called music.txt Inside this file there is information about songs in the following format: Bandname, Songname, Duration of the Song, Here a partial …

Member Avatar for Stinomus
0
1K
Member Avatar for love_dude1984

Hi. with reference to my previous posts, im able to write a text file with a specific values from excel sheet. i just wanted to knw how to get rid of the prompt of " there is an existing file, do you want to overwrite it ?" i tried Application.Displayalerts=false …

Member Avatar for love_dude1984
0
92
Member Avatar for DarthPJB

Hello, my first post here, mostly due to every question I placed on google the answer is here (normally answered by a fellow Anime fan called Narue, someone's got their thinking cap on ^_^) Anyhow the problem is as follows, I'm writing a 2D game engine using DirectX9 (not relivent …

Member Avatar for Stinomus
0
774
Member Avatar for leviathan185

Hi, I was wondering if there was another way to redirect a user to an other page other that the header("Location: URL") function. My problem is that I am itterating through a buch of if statements and if i use the header function it gives me an error as the …

Member Avatar for leviathan185
0
139
Member Avatar for Beauti

Hello Once again I must seek help from those who know what it is that they are doing and I am not... Right now we are usng Visual Studio 2005 for VB and C++ and my visual studio is defaulting to C++ upon opening the program. How do I stop …

0
55
Member Avatar for leviathan185

Hi. I am having problems getting PHP to insert data into a MYSQL data base. I am using the following variations of syntax. [code=php] mysql_query("INSERT INTO table member VALUES ('$var1', '$var2', '$var3')") or die("couldn't add new user"); [/code] and also with session variables as well [code=php] mysql_query("INSERT INTO table member …

Member Avatar for leviathan185
0
1K
Member Avatar for LegendaryXM90

I'm making a game for a project due this Tuesday. You're in a dungeon with rows and columns, and for each coordinate there is a cell and there are 3 trap cells that you instantly die from if you walk into them. Also, you die if you hit 3 walls. …

Member Avatar for LegendaryXM90
0
140
Member Avatar for lardshow

i've had a pretty good day today up to now.... i have a method calcFinalOCAS() which should take an average of a list, replace the lowest value (if its lower than the substitution score), do the average again. now this works but when its compiled and i run it but …

Member Avatar for lardshow
0
85
Member Avatar for Majestics

[code] import javax.swing.*; import java.awt.*; public class keyboard { public static void main(String args[]) { String s[] = {"esc","F1","F2","F3","F4","F5", "F6","F7","F8","F9","F10","F11","F12", "psc","slk","pau"}; JButton j[] = new JButton[s.length]; for(int i=0;i<s.length;i++) j[i].setText(s[i]); JFrame f = new JFrame(); for(int i=0;i<s.length;i++) f.add(j[i],JFrame.LEFT_ALIGNMENT); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f.setVisible(true); } } [/code] I need Instant Help!. Code is giving me …

Member Avatar for Majestics
0
111
Member Avatar for MattTheHat

I'm having a problem with a quite complex piece of code, basically i cannot use an onClick event on my <div></div> element because it contains a flash file that is capturing all the clicks on it. Let me guide you through my code: It uses an XML document to load …

Member Avatar for MattTheHat
0
174
Member Avatar for u8sand

Hello everyone. This is not really a coding problem as it is more of a compiler problem. I am making an MFC application in Visual Studio 2005. When i open up the icon, i can edit it right there in that editor. But when i do, it works fine in …

Member Avatar for GadiK
0
139
Member Avatar for rinaldinho

Hi, i want to manage 2 type of Exception lightblue._obexcommon.OBEXError 1) lightblue._obexcommon.OBEXError: (111, 'Connection refused') 2) lightblue._obexcommon.OBEXError: (11, 'Resource temporarily unavailable') how i can do it? example: [CODE] try: lightblue.obex.sendfile(device.getAddr(), c[1],"advertisement.jpg") except lightblue._obexcommon.OBEXError????????????: print "Connection refused!" except lightblue._obexcommon.OBEXError????????????: print "Resource temporarily unavailable!" [/CODE]

Member Avatar for scru
0
195
Member Avatar for serkan sendur

hi guys, in the setup project i added checkboxes dialog to user interface section. i have two checkboxes to install two products accordingly. if the user unchecks the both of the checkboxes, i want the next button to be disabled. do you know how to do that? thanks

Member Avatar for serkan sendur
0
105
Member Avatar for phoenix911

all i can do is get each line at a time.... how can i read it to only read till the space.... plz help.... heres my lil bit of code [CODE] while (getline(iofile,line)) { cout << line << endl; }[/CODE] plz i know i can use this aswell for line …

Member Avatar for Ancient Dragon
0
122
Member Avatar for toolmanx

I spent a lot of time trying to find out why "Message Box' made my program act like it crashed. Originally I had to bring up the Task Manager every time I allowed "Message Box' to run to shut down the program. After much experimentation I found that if I …

Member Avatar for toolmanx
0
110
Member Avatar for lardshow

hello all i am now about ready to pull my hair out and/or possibly worse! i have to read a .csv file, split the 3 elements into variables and then put two of the variables into a map. i can read the file fine, i can display the variables in …

Member Avatar for lardshow
0
101
Member Avatar for tomtetlaw
Member Avatar for tomtetlaw
0
454
Member Avatar for Qousio

Hello! I'm currently making <<The game of life>> in TP7. Actually, I have already finished everything. The only thing I would like to add is mouse input, so the user could draw the 'cells' by clicking a mousebutton. So, for example a mouseclick on coordinates (50,20) would change grid[50,20] to …

Member Avatar for FlamingClaw
0
240
Member Avatar for lardshow

i know i'm now loosing the plot over this so any rapid help will be appreciated! i have to write a method which calculates the average from numbers contained in a list, when i try and run the code i get the error message: Semantic error: Cannot reach instance method: …

Member Avatar for lardshow
0
552
Member Avatar for DAWNIE

Hi, I'm currently doing a sch proj. I would like to know how do I add points to the checkboxes and how do I add the checked boxes up to get the overall points? Below I have an attachment on roughly how I wan it to works in case my …

Member Avatar for Teme64
0
323
Member Avatar for lqdo

Hi, I want to load an image from the code-behind. I have the path of this image ("C:\somedironwebserver\somefileonwebserver.jpg") and i need to get the url ([url]http://www.mysite/somefileonwebserver.jpg)[/url]. Currently I am combining strings to get get this URL but i think there must be a better way. google didn't realy helped me. …

Member Avatar for kvprajapati
0
304
Member Avatar for webster5u

Hi, i am developing the JSP/Servlet system now. Let we discuss database pooling, how you normally do that? My developing application is open/close database object every single class instance. My design is every time, we need access database then we invoked a database class object, execute SQL and close it. …

Member Avatar for webster5u
0
135
Member Avatar for nschessnerd

Hey, I need help keeping a http connection alive. I have used setsockopt to set keepalive to 1, and in the http packet i set keep-alive to 300, but the server replies with: [code] Connection: close[/code] my packet looks like [code=cplusplus] string buffer2="POST "+P.path+" HTTP/1.0\r\nHost: "+P.httpUrl+"\r\nUser-Agent: Mozilla/5.0 (Windows; U; Windows …

0
94
Member Avatar for dmanw100

Hello, I am trying to do something very simple but my dial up connection is making it hard to research so I'd like some help! I'm trying to store instances of classes I created in a file. Something along these lines: [CODE] class apple { int flavor; String color; apple(int …

Member Avatar for dmanw100
0
111
Member Avatar for jabbaro

Hi I am doing a project to read the output of an instrument and store in excel sheet. I have succesfully read the data thru mscomm1 and am able to show it in a text box. The data from serial it read from 3 second in 3 second using a …

Member Avatar for jann353
0
149
Member Avatar for tformed

I keep on getting the following error, I've tried modifying the constructor, but I can't get it to work. "C:\Users\Documents\NetBeansProjects\Assignment-1\src\Bank.java:34: cannot find symbol symbol : constructor Customer(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String) location: class Customer Customer customer = new Customer(last, first, street, city, state, z, acctNum); 1 error BUILD FAILED (total time: 0 seconds) " …

Member Avatar for tformed
0
240

The End.