199,114 Archived Topics
Remove Filter ![]() | |
Is there a way, in Javascript, to get a list of files in a folder (on a server) that I can dynamically load into an array that I can work with when a page loads? | |
Hi there. I have a HTML page with multiple dynamic check boxes that I select, click "add" and it adds a list to the users on the next page. This is my JavaScript function that deals with this: [CODE] <script language="Javascript"> function doSelect() { //to avoid "unidentified" results, search elements … | |
Hi there, I started Python today. My first mini-project is supposed to find strings in a text-file. Here is what I have written: [CODE] infile = open("Python/es.txt","r") text = infile.read() infile.close() print text search = 'du' index = text.find(search) if index==-1: print "nothing found" else: search, "found at index", index … | |
Hi, So essentially I want to read every string in a file, then read every character in that string, find out if the string has two periods somewhere in it, and then save that string somewhere. Can someone get me started in the right direction? | |
I'm wondering is it possible to echo out an entire media player, such as windows media player,in a similar method to echoing out all other tags such as tables and divs? The code i want to echo out, only if certain variables dictate, is this: [CODE]<OBJECT id='mediaPlayer' width="300" height="250" classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' … ![]() | |
hi just wanna ask is it possible for perl to get the value of a print command? for ex. my $result = print "hello world\n"; print "$result\n"; why is it that the "print $result" would print a value which is 1?.. is it possible to get the result "hello world" … | |
All parenting jokes aside, I have a general purpose status strip on my parent form that contains a progress bar and a few labels. Occasionally a child form will execute a command that could be tracked on the status bar so my users don't think that the program is hanging... … | |
Hello again, I am trying to replace a string which is actually different from line to line in a text file. I want to end up with a filename but without the path. For example: My text file contains: C:\test\testingmore\filename.mpg C:\test\testfiles1\testfile4.mpg W:\testinglocation\testingmore\testfiles9.mpg I would like to replace the path in … | |
this is what i'm doing.. [code=c++]cout << "Value:" << endl; cin>>it; //it is int cout<<1; for (pos = v->begin(); pos != v->end(); pos++) { // pos is an iterator and v is a vector<int> if (*pos < it) { v2->push_back(*pos); cout << *pos << endl; } } cout<<2;[/code] This is … | |
Hi friends, I am new to c++, just find this example from the book, but when i try to run in my visual studio,its gives problem. there is no error in the codes, it compile well, and in main screen ask the user to input the selection that they want, … | |
Hello everybody, I'm working in a java interface and I'm trying to use an image as a background but nothing from the result I found in the internet seems to work well with me :/ my code is: [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.border.*; import java.awt.Color; public class … | |
Hi, I need something like a combination of a TabControl and a Panel. Such a tool is used in many applications, but I think the best example is a simple installation file. During installing process you have to complete a set of stages. (You go to the next one clicking … | |
hi i would like u to tell me if i can make a random function to choose between four numbers and only them(-1 , 1 , -10 ,10) | |
I'M using Ubuntu and I'M running python 3. I'M trying to find a pygame download for Ubuntu and python 3. I went to pygame.org and followed the Ubuntu link. I eventually found one link for pygame 1.9, which I'M told works for pythan 3. There were two files, amd64 & … | |
I've got a NullPointerException at line 50 (and the init on line 12). Can't figure out why. [CODE]private String gradientText[] = { "Gradient State", "Gradient Cols" }; private String lineText[] = { "Line Width", "Dash State", "Dash Length" }; private String shapeText[] = { "Shape Type", "Fill State" }; // … | |
Hey all, Is it possible in C# to make it so that when a program is run, your program opens up with it? For example, say I went to double click the "Firefox" icon, would it be possible to have my program also open up with it? Basically what I … | |
Hi all, I have written sql code to create a SQL Server CE database to be deployed on a Windows Mobile emulator using the SqlCeEngine object. The sql statements are enclosed in the form load procedure. However, when i run the program i get the following error: [B]There was an … | |
Hi there, I am new to python. Can somebody tell me how can I count a given word from a file. I found lots of solution for counting all the words in a file, but not for some particular ones. Thanks in advance | |
hello firends. I am learning php and I install wamp but now i dont know what i must do for using wamp server and how i must execute my projects? ![]() | |
hi guys can somebody tell me a short method of initialing some thing like this. [CODE] public static final int[][] CITYARRAY = new int[][] { {0, 0}, {0, 1}, {0, 2}, {0, 3}, {0, 4}, {0, 5}, {0, 6}, {0, 7},{0, 8}, {0, 9}, {0, 10}, {0, 11}, {0, 12}, … | |
Hello I am kind of a new programmer in python and I tryed to do a port scanner. I have a problem here but I can gigure it out' when I try to compile it it just gets stuck :S Here is the code [CODE] import socket as sk import … | |
I have an application written in JSP running in Apache Tomcat Server and back end is MySQL and m having problem in my code tried many things like creating a .bat file but dint got a code to run .bat file from jsp page. Also the following code i tried … | |
Hello all, I'm trying to do this homework assignment but I keep getting an error when it compiles. The problem it has is in the startlotto function but I can't find it. It says that I have 2 errors: "error C2143: syntax error : missing ')' before ';'. "error C2059: … | |
Hi everyone, I'm trying to accomplish the following; I need to create 2 subprocesses and each subprocess should create a process of their own. Should look like this: [QUOTE]I'm child xxxx parent xxxx I'm the subchild xxxx parent xxxx I'm the second child xxxx parent xxxx I'm the second subchild … | |
Hi, I was just wondering if there was any way to export the code I've written in Visual Studio to MS Word, by preserving all formatting. Since copy-paste doesn't keep the formatting, I need a way to transfer my original code to Word while keeping the formatting. And, yes, it … | |
I need to create an application that utilizes your Order class to implement a simple Order tracking system. To do this your system must be able to deal with a number of orders. Your application should have the following capabilities: 1. Create a new order 2. Update an existing order. … | |
Hello, Please disregard any small syntax errors I have made in this question, I’m trying to simplify a program that is many pages long. I have a program that has 2 parts, main.cpp and a form GUI.h. Both have functions that pass variables between themselves and I don't want to … | |
Hi, I'm creating a simple analytics script to use on my website(s). I started of very simply by just creating a new record for every session, and updating the sessions (i.e. incrementing the number of pageloads for that session) when a new page is loaded. I also save the browser/version … | |
Hi, How can I convert a 64-bit unicode string into a text string? I'm converting ASCII characters for example like this [CODE]str = unichr(int('00A9', 16))[/CODE] But how can I convert unicode 'U2082' or any other character beyong the ASCII range? Thank you. | |
Hi, It is kind of difficult to explain what I am trying to do here, I will provide the form here to give a better idea. [CODE]<ul> <li>Select the type of your starting point of interest:<br/> <div id="start_menu"><form action="test_getrss.php" name="form1" method="post"> <span><input type="radio" value="Apartment" name="start" onclick="check(document.form1.start)"/> Apartment </span> <span><input type="radio" … | |
Hello I have little problem with my code. Problem is iterator inner. How can i solve this? My code [code] map <string, map <string, string> > m; map <string, map <string, string> >::iterator outer; map <string, string>::iterator inner; m["John"]["VW"]="Golf"; inner=m.find("VW"); if(inner != m.end()) {cout<<inner->second<<endl;} [/code] Best Regards Danijel | |
I have three classes one which is class User contains information about users name, last area code etc.... and it must implement Comparable but receiving generic parameters. Another one is a custom doubleLinkedList which basically has a link to the right and one to the left and contains a generic … | |
Since am new to php i have the following doubt. I have a combo box within a form in my home page.The combo box will display data from mysql database. When the user chooses an item, i have to pass it to an query and display the result in a … | |
The Question below has been given to me: An internet shop requires an order tracking system. When someone buys an item online, an Order is created. However, orders are not sourced and processed until payment has been confirmed. Once the order has been processed it can be shipped. The order … | |
Hi Guys... me and my partner has a problem regarding printing a web page. We only wanted to print the body or one part of the page that we really need - a form to be exact. We were able to find codes with the help of Google but this … | |
Hi folks: Can anyone tell me what I am doing wrong in the coding below: [code] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Try Dim ConnectionString As String = "Server=hp;database=library;integrated security=SSPI" MessageBox.Show("Connection established") Dim sql As String = "SELECT snippetID, snippetName, snippetSource, snippetCode FROM snippet … | |
I want to open a Ajax Modal popup when a linkbutton is clicked which is in gridview. please help me. | |
I want to retrieve a single column from a table in a database and then the value retrieved has to be converted to a string!! Please help!!! | |
Greetings, I have a array filled up with random value's (being positive and negative). What i wanne do is have a recursive version that counts -only- counts the postive values in that array. Recu version that counts all the elements (that works but is not quite yet what i seek) … | |
Hey guys, I need an idea on how to determine wether a user that has been logged in is a supervisor. Ive made my login.php file and my choosereview.php.I have a very slight idea on how to do it but i just cant get it right.I want to determine whether … | |
Hi I am trying to write a code to draw a sphere centered within a cube using openGL. Yesterday I had written it in such a way that the values of the side length of cube and dia of sphere are give in the code itself.That worked perfectly. Now I … | |
Ok here is the situatation, I have three tables set up; 'Users' 'Profile' 'Linkingtbl' The 'Users' table holds the following data; [LIST] [*]Email (PK) [*]Password [/LIST] The 'Profile' table holds the following data; [LIST] [*]ProfileID (PK) [*]Firstname [*]Lastname [*]DOB [/LIST] The 'Linkingtbl' table holds the following data; [LIST] [*]ID (PK) … | |
I want to know how will I pass this table values using a form. I have a list of products and each item belongs to a section and each section has different attributes. The attributes section are columns where the user can input a number of products he wants to … | |
Write a C program to find and print the product of factorial of numbers from N to M. Can anyone please give me an idea, how to solve this Question ? Thank you. | |
hi.. im goumang .. i have a database call test with fields, std name,roll number,mark,state and category(st,sc,gen). and i want to select a students from this database, based on roll number with a criteria of some cut off mark...pls help me!! i create a FORM with a text field to … | |
hi there, i have a datagrid view in a form. when a button is clicked for the first time a new row is added to the daagridview, when i click the button for the second time i want to check whether there is a blank row in the datagrid view, … | |
I finally figured out that my applet needs to be signed for it to work. So I've spent the last few hours figuring out how to do that. I used the keytool to create my .crt file, then created the .jar file using jarsigner. After I did all of that, … | |
Dear all, I am creating a small project for my company ie; document controller. In this project a small module is reading documents. I already made reading of other documents like word,text, etc. But I am unable to create a program that can read pdf files. My main aim is … | |
hi can someone tell me how to write a code in assembly language(ASM16,TASM Compiler,Windows) to implement a simple countdown timer (to miliseconds accuracy) display on the command prompt screen? after starting the program when you press the space - the stopwatch will start - press space bar again - stopwatch … | |
Hey, I noticed that I have been using var instead of string, int etc. in delegates due to a habit from another language where they were cleared after, and it just makes a temporary value for the class only, and once it has executed, is deleted. Is this the same … |
The End.