199,114 Archived Topics
Remove Filter ![]() | |
I want to make a GUI application in which I want to do something continuously (i.e. in while loop) in a different thread, until the user presses a button. In this other thread, I am accessing GUI elements and hence I have to use [B]SwingUtilities.invokeLater()[/B] for this thread. But since … | |
Hi All, I have a problem in getting this update form to work. The query to call the record works fine and when clicking submit it redirects correctly and echo's (record updated) but the database is not updated. When i change the value variables in the update script it correctlu … | |
I am beginner in PHP, I was trying to display the poems which are stored in the database(mysql) to the website with php code, the problem is that the poem is showing as a paragraph....how can I display the poems the way I wanted, like line by line | |
hi i am having problem with the while loop termination. totally newbie......can you help me terminate the loop .... output [CODE] import java.io.*; public class MohsinKPA4 { private static double num1; private static double num2; private static String Snum1; private static String Snum2; private static double ans; public static void … | |
Hello everyone .. I am new to c# technology.. I am trying to write an app which store some data in a xml file... I am getting System.NullReferenceException ... Below is the code [CODE] public void StoreFeedData(string title,Uri url) { XmlDocument xmldoc = new XmlDocument(); XmlElement rss = xmldoc.CreateElement("rss"); XmlElement … | |
Need help counting the # of days between two dates (ex: 1/2/10 and 1/24/10) Better yet, the # of hours would be a great alternative. | |
I'm working with a program where the user adds a few names together with the age. After this the program will write out the content of the text file. I'm having problems seperating the names and age into different variables. I want the program to put word nr1 in char … | |
How can i apply Role based Access control in php .......... | |
this is the code i have written so far....its in c++....i need ur help....i can't find errors...:( class Matrix { private: int rows; int cols; float *pData; public: int getrows(){return rows;} int getcols(){return cols;} void setrows(){rows=r;} void setcols(){cols=c;} private: void doCreate(); void doAdd(Matrix m); void doSub(Matrix m); void doTranspose(); void … | |
hi to all, can anyone help me writing a program that can set a pin of the serial com1 port at 12v+? it must be simple command line based,for example, program.exe -on or -off. any pin will work. thanks in advance :) | |
[CODE]#include<stdio.h> #include<string.h> int count(char string[]); void main(){ int i; char string[1001]; printf("String: \n"); gets(string); i = words(string); printf("No. of Words %d", i); } int count(char string[]) { int i, j, k; for(i = 0; i < strlen(string); i++){ if(string[i] == ' ') k += 1; else j += 1; } … | |
Hello everybody, I'm hatem faheem a student in Cairo university , Faculty of Engineering , Computer departement I have a question in the C++ string class constructor <string> that's the code [CODE] #include <iostream> #include <string> using namespace std; int main() { string s0 ("Initial"); string s1 (s0,3); string s2 … | |
i want to have 2 listbox. the first listbox is for the Main category and the other one is for the sub category. and by using sql 2005 for the database. help me plz. . . for example my main category for the 1st listbox is ADIDAS CONVERSE NIKE SKETCHERS … | |
I need to finish it ASAP 1. Read students’ marks and Name: for each student read his/her name and then read his/her marks (first-test mark (/15), Mid-term mark (/20), Lab-test mark (/15) and Final mark (/50)).Store these data in two-dimensional parallel arrays: NAMES, MARKS. 2. Calculate the total mark for … | |
Hi, I am using xampp in xampp->tmp->[COLOR="Red"]sess_jp7bfpqaritm9ta8h3b5n40df1[/COLOR] In this file some session data,html and mysql query are written. Can any one please explain me the description of this types of file. any encrypted data format is used to store session. | |
Hi All, I am trying to extract a full path from a certain environment variable. What if there is an environment vaiable called CATALINA_HOME how can I extract a full path of the environment from java? I am trying to use a filewriter object to create a file, for example, … | |
can we put the restriction on some function of the loop variable in the loop conditions like the for loop in the following program #include<iostream> using namespace std; int main() { int a,size=2,b[size],i; cin>>a; b[0]=1; b[1]=1; cout<<"The fabbonacci sequence is:"<<b[0]<<" "<<b[1]<<" "; for(i=2;b[i]<=a;i++) { b[i]=b[i-1]+b[i-2]; size++; cout<<b[i]<<" "; } system("pause"); … | |
I have a while loop reading names from a file and placing them in an array. When I print the contents of the array, it prints the last name that went through the loop, so I'm assuming that as the loop is progressing each time the names are being rewritten. … | |
[CODE] import java.awt.*; import java.awt.event.*;//for specifying windows events import javax.swing.*; import java.lang.*; public class FrontE implements ActionListener,Runnable { JTextField jav,it,c; Frame f; JButton Submit; int aa,bb,cc,tot; float avg; FrontE() { f=new Frame("Progress Calculator"); JLabel l1=new JLabel("Enter the marks here:"); f.add(l1); Panel p=new Panel(); Panel p1=new Panel(); JLabel java=new JLabel("Java"); jav=new … | |
Hi, I'm very new to Javascript and AJAX so I'm using a script that I found, and I need it to send a PHP variable from the global variable (in the address bar where it says &post=94 for example) along with the other data that the script sends to a … | |
Hi there i have one question about selecting chekboxes. i have script form that adds dynamic rows and cheks/uncheks checkboxes. by default this form has one chekboxe. this function checks/uncehks only when i entered one row at least. when i dont enter any row it doesnt checks any checkboxes. who … | |
Hi all, I wish to present a user with a text field that can take any of these inputs: The URL such as [url]http://www.imdb.com/title/tt0892318/[/url] or a number which will be the title code such as tt0892318 and a number that will be prefixed with tt and be interpreted as the … | |
Please help with the following code, I tried casting, and the such but this keeps getting rounded [CODE] public void rotacion(Point[] pts, int degreesIncr) { //here... I tried casting all combinations, even casted each variable, each //number, and nothing, radians keeps being integral. but if I sustitute a // constant … | |
I wanna write a code which would add the digits before decimal and after decimal. eg:- 12.22 would add upto 3.4 , 491.941 would give 5.5 [CODE] #include<stdio.h> #include<conio.h> #include<string.h> void main() { double a1[5],a ; //array of 5 numbers int b,len,i,sum=0,cnt = 0; char ch[10]; for(i = 0;i<5;i++) // … | |
Hey guys! I wrote a program in c++ when I want to run it it says unable to start program 'c:\users\pc\documents\visual studio 2008\projects\proje1\debug\projem.exe system cant find specified path. But I checked and there is this path and files. What could be the reason? Thanks in advance! | |
I created a stored procedure to handle paging and sorting. Linked a LinqToSql to it and bound my gridview from that. I use my Gridview.PageSize to determine how many results to pull from the table through my stored procedure. The issue is because of this a pager never gets created. … | |
I use mysqldump.exe (Size 2.281 Kb, date 22-2-2010, time 18:06) I use MySQL Workbench 5.2 OSS Revision 6091 I have database [COLOR="Red"]TEST [/COLOR]with table [COLOR="red"]NAW[/COLOR] I use the i use the following statement to export table [COLOR="red"]NAW[/COLOR] [CODE] C:\mysqldump.exe --user=XXX --password=XXX --host=localhost test naw > c:\MybackupNAW.SQL [/CODE] This export file … | |
I am working on sprucing up a site i've been working on with some ajax menus. I decided to use a tabbed menu for this site. I found a script that seems to fit what I want and am trying to integrate it into my php site. The script is … | |
can someone help me add a another class in this code i got this code in this site, but i need to have at least 2 class | |
I want to Create a row as the same as above [CODE]<HTML> <HEAD> <TITLE> TESTING</TITLE> </HEAD> <BODY> <INPUT type="button" value="Add Row"/> <TABLE id="dataTable" width="350px" border="1"> <tr bgcolor="#0099FF"> <th width="88" bgcolor="#66CCFF" scope="col">Code</th> <th width="289" bgcolor="#66CCFF" scope="col">Product</th> <th width="35" bgcolor="#66CCFF" scope="col">Qty</th> <th width="144" bgcolor="#66CCFF" scope="col">Rate</th> <th width="146" bgcolor="#66CCFF" scope="col">Value</th> </tr> <!----- Same … | |
Hello, I want to write a program that reads a text file, which contains a table of data where the columns are separated by spaces, and store each column in different arrays with different data types. For example, let's say I have the following data: 1 hello 1.5 2 world … | |
HIii I m making window application, for which i have already made a setup, but in that i want to include some more pages like terms and condition page etc, . Also in this i want to set the registries as well, like when my application is installed on the … | |
while trying to install net-snmp-5.6, i get following error [B]gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.5 -c netsnmp/client_intf.c -o build/temp.linux-i686-2.5/netsnmp/client_intf.o netsnmp/client_intf.c:1:20: error: Python.h: No such file or directory In file included from /usr/local/include/net-snmp/net-snmp-includes.h:69, from netsnmp/client_intf.c:4:[/B] my debian system has python2.5.2 where can I find Python.h header … | |
Hi! I have websitepanel installed on a Windows 2008 Server and i want to use the websitepanel API. What im trying to do is to add a user to websitepanel with php/nusoap. Im not so steady when it comes to soap. So i was wondering if someone in this beautiful … | |
Hi Guys, I've got a problem where as I attempt to output, i get thrown a Null Pointer Exception. I can read the values for [B][I][U]orders[0][/U][/I][/B] but nothing after. The DB is intact, and i get thrown the results as per the query generated in my code, so thats not … | |
I ma creating a Project on Java Uaing editor NetBeans 6.0 In this project, i want to put Dynemic image on JLabel which gets the Image Path from Database. It works Properly BUT.... The size of JLabel autometicaly adjust:( If the Image size is 1024x672 then JLabel covers whole Swing … | |
Hi I am an ASP.NET developer. I dont know how to use the jquery in ASP.NET. I am using JavaScript and Ajax. But i any one please tell me, what is difference between JavaScript and Jqurey and how i can use it in .NET environment. Thanks James | |
Hi All, I want to populate the listbox columwise from excelsheet using C# .net. Column 1 of excelsheet should map with listbox1 and column 2 with listbox2,..... Excel sheet is placed at folder C:\Data\.. Any ideas? Thanks, Shweta | |
hi am a new joinee, how to get values of selected checkboxes in a table? please help me, selected Lc code from UI, that LC code value should get into the table plz help me out this is my action class, [code]package webapp.control.nri; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.logging.Log; import … | |
What driver do you need to connect vb.net to MySQL? How do I create a Data source to MySQL? ...am only getting the options for SQL and MS-database! Please help... am designing a reg system for a college! Thanx :-) | |
Hello, I recently started taking classes in c++, and one of our assignments is to create a program that converts Fahrenheit to Celsius degrees. I was able to do so, however I want to make the conversion part into a subprogram, I have some idea on how to write it, … | |
I added 2 textboxes on the form and runs it...I pressed the enter after I type in simple text.. it will not goto next textbox but tab can do .. why ... no nay code.. strange.... Thanks | |
I need to be able to dynamically assign a variable to the height attribute of a div(flashOverlay) based on the height and t position of another div(pageContent). I am using the following script to capture the variable data. How do I apply this var to the div? <script type="text/javascript"> <!-- … | |
Hi, I am trying to do the following: produce an interactive web application that will scrape the contents of a movie web page and extract the movie title, year of release, User rating, Director, runtime and the first three cast members. This is the typical data in red that I … | |
I want to retrieve the latest autoincremented id of the record which i have inserted, so that i can use it update query. I used last_insert_id() but it seems to be not working.Please help as i m still learning PHP here's the code.. $insert = "INSERT INTO `farmlogin` (`uid`, `name`, … | |
Create a program that will accept 20 numbers and arrange them in ascending order. The program should determine the distinct numbers and the number of occurrences for each number (or the frequency). Display the supplied values, the distinct numbers and the frequency of each distinct numbers. Your program should use … | |
ok, i have a problem with JLayeredPane. I'm about to make a game in full screen mode, so basically I create a JFrame first, and I named it MainMenu.java. In this JFrame, I first display my main menu, where there are 4 main buttons there. When the button is click, … | |
I have watched alot of Java tutorials on yutube, but they all say to go to [url]http://www.sun.com/[/url] and get the JKD, but there is about 7 downloads labled JKD and java development kit, so can somebody please give me an exact download link, i want to have a look at … | |
[CODE] #include<stdio.h> #include<conio.h> void main() { int num[50],i,i1,j,temp = 1,cnt = 0; printf("How many elements "); scanf("%d",&i); printf("Enter the elements "); for(j = 0;j<i;j++) { scanf("%d",&num[j]); } i1 = 0; j=1; while(i1 < i ) { for( ;j<i;j++) { if((num[j] < num[i1])&& (i1<i)) { temp = num[j]; //algorithm for sel … | |
Need to sort an array of objects of type PhoneEntry, using PhoneEntry's greaterAlpha to do your comparisons. I have the sort function, but I'm not sure how to get everything working together. [CODE] #include <iostream> #include <string> using namespace std; class PhoneNumber { private: int area; int prefix; int suffix; … |
The End.