199,114 Archived Topics
Remove Filter ![]() | |
This is my first night, and first post here. First off, let me just say I'm glad I found this site. Since I started looking I've found one-too-many boards where all the users there do is complain about there being no jobs in IT. Anyway, I'm a business BA that … | |
I have a datatable which is having n no. of rows and each row has a unique field say ID. Now I want to get a particular row for a specified ID. eg. there are 5 rows in a datatable and the id's are 1,2,3,4 and 5 and if I … | |
[CODE] public class ProcessResults { private static int[] PayNum; private static String[] Surname; private static String[] FirstName; private static String[] DoB; private static String[] Dept; private static Scanner keyboard = new Scanner(System.in); private static int NumStaff; public static void main(String[] args) { final int MAX_STAFF = 10; PayNum = new … | |
Usually to print on screen a integer of 2 numbers i divides it for 10 and then use int 21h with mov ah,2 to print the 2 results. However with integers with more than 2 numbers it starts getting complicated and the method i use becomes really too long . … | |
Hey guys, Im going to try and explain this the best I can, maybe a bit difficult, but here goes anyway: I have AJAX calling a php function which displays a random quote when a user clicks a link. Every 5th click a div is echoed over the quotes, that … | |
I have a bunch of code [CODE] var xmlDoc = new ActiveXObject("MSXML2.DOMDocument.3.0"); xmlDoc.async=false; xmlDoc.loadXML(sHTTP); var rootElement = new String(xmlDoc.documentElement.Name); Response.Write(rootElement); [/CODE] The problem is that when I try to display the rootElement Node Name, it appears as 'undefined' on my browser. I also tried xmlDoc.documentElement.NodeName. Any help will be greatly … | |
Hey guys, I have a problem with a chess game I'm creating using Windows Forms. The purpose of this code is that I have a load of panels with picture boxes inside them. When the user moves their cursor over the panel or the picture box, the panel lights up … | |
I configured a logger namely "My Log" in my main class which can write errors in a log file named mylog.txt Now I want to use this same file for all packages and classes there in. I tried to put this in other class Logger.getLogger("My Log") //Did nothing Now what … | |
Hello. How can I run a thread and get an event raised when it runs for a certain amount of time? For example: Let's say I have an encryption program. When the user presses encrypt the thread Encrypt starts. But when the thread Encrypt has been running for more than … | |
Hello i have to say i am new to programming for safety sake, i did take a computer programming class in high school but the teacher talked like the clear eyes guy and it was difficult not to fall asleep. Anyway i've always had an interest, and my goal right … | |
Hey there. How do i execute the code in button1 when i click on button2? I have no idea and will save me alot of coding thank you =) | |
I'm writing a program for a class that does operations with rational numbers. I'm not finished with it, but right now i'm working on the is_negative() function which is required to be in the program by the teacher. He has set up a make file to test each part of … | |
Hey there. I was wondering if it was possible to stop execution at a certain point without closing the Program? For example Private some button is clicked code code code code But here i want execution to stop as the user did something wrong code code code code I have … | |
Am teaching it to my self but i have found many problems. i need your help because i want to build a dictionary for my local language. the words i already havee them and i only need the codes forlinking to the database and extraction from the database | |
Hi, I have an application that is getting long in the tooth and I am finding methods that are no longer being referenced anywhere in the code. I'm sure they were useful at some point but now just take up space and are confusing for the maintenance guys. I suspect … | |
Hi all, Just thought I'd quickly see if anyone had come across this before, or could point me in the right direction. I have several DataGridViews on various forms of an application I'm working on. I want to allow the users to update the DGVs and then click an update … | |
I try to imitate the first stage of pre-processor, which is to remove comments from a *.c file. The main principle is that a *.c will be read and the program will create another file *.c1 which is an exact copy of *.c but without comments(c/c++ comments). Example(in Linux): >./myprog … | |
Hey! I have a problem with C# regex. Can you please tell me how I can match anchor: Atm I have it like this: [CODE]Regex.Match(pagecontent, @"<a (.*) href=" + url + "(.*)>(.*?)</a>");[/CODE] but some how it doesnt want to work for [CODE]<a target="_blank" href="http://myurl.com">Title</a>[/CODE] And I need to get "Title" … | |
Hey guys! I'm trying to change a textbox font size at run time with a track bar. But, when I add to my code: [CODE]Textbox1.Font.Size = Trackbar1.Value[/CODE] It says that Font.Size is a read only value. I haven't found any other way to do it. There is a way to … | |
Hello there, I am trying to create an application which will open once the associated file type is clicked. I have associated my application with the extension .agl, via Visual Studio. When I publish the application and install it, the file is associated properly with my application and when I … | |
Hi ppl, I am facing this weird problem with php newline character. [CODE] <?php echo"Hello World!! \n Im new to php"; ?> [/CODE] can anyone pls point out what is wrong in the above code?? the output should be: Hello World!! Im new to php but the output goes on … | |
how to change the texebox properties through php? plz give syntx or any little example. | |
Hi, I get this code somewhere from the web and wanted to implement it on my website. This code is basicly doing something like facebook's posting time. But in the code, there is the $session_time that i need to set first. How do i do this using the PHP? Thank … | |
Placing ComboxBox in DataGrid Cell is a task usually found in Invoicing application. Here is my version of same. | |
...here is the scenario...in my inventory system i have database and it's fields are "Item Number,Description,Last Week Stocks,Deliveries,Total Stocks,Total Withdrawal and Current Stock...this is my logic if adding new stock it will add to 'Current Stock' and to 'Total Stocks' and if withdrawing stocks 'it will add to 'Total Withdrawal' … | |
Is there any code that will enable me to click on portions of the form with the use of coordinates? I know most of you find it easier to just use controlname.click but it is not possible for my application. Hope someone can help. Thanks. | |
Hi, I am trying to output some data from sql db within excel to XML. I am updating the sql db from the excel worksheet and then outputting the records from the db to xml. I have used CDATA to parse html within xml but i can only get one … | |
i made report for invoice printing which contains 10 pages for single invoice, i want to Print Terms & condition on every next page it means my report will be of 20 Page.. please help me... thanks in advance | |
[CODE] #include "windows.h" #include "loadbmp.h" // from http://gpwiki.org/index.php/LoadBMPCpp #include "fdlib.h" void main(int argc, char *argv[]) { int i, n, x[256], y[256], size[256], w, h, threshold; BMPImg *bi; unsigned char *bgrdata, *graydata; if (argc==1) { printf("usage: fdtest bmpfilename [threshold]n"); exit(0); } bi = new BMPImg(); printf("nloading %sn", argv[1]); bi->Load(argv[1]); w = … | |
I am developing a LAN messenger in c# using sockets, i want to use XML for entire communication, can you people help me? or give me some link or code snippet? any help will be appreciated thanks in advance | |
Hello If I have one radio button list with one required field validator and I press a submit button without making a choice I get an error message, I can make a choice and everything is fine and dandy. The problem that I am having is that if I have … | |
You have a computer with only 2Mb of main memory. How do you use it to sort a large file of 500 Mb that is on that disk? This was a question that I was asked.... but I couldn't figure out the answer. Please help !!!! | |
the following program displays the pth prime number.....but the program is not working ......plz help [CODE]#include<stdio.h> #include<conio.h> void main() { long int a=0,n=0,i=2,j , p ; printf("insert the number") ; scanf("%ld",&p); while(n!= p-1) { for(j=2 ; j<=i-1 ; j++) { if(i%j == 0) { a==1 ; break ; } } … | |
Hi all, I know you guys get a lot of questions regarding hangman game programs and I'm sorry to bog down the boards with another question regarding the game. I've combed through previous posts trying to see if my issue has been resolved and I have been unsuccessful. Here is … | |
I could sure use some help. Here is what I have and it shows a problem which is : int tempCelcius = (int)((Double.parseDouble(tempTextField.getText())) (5 / 9) × (Fahrenheit – 32)); and here is all that I have: /** * * @author TJ */ public class FahrenheitConverterGUI extends javax.swing.JFrame { /** … | |
hi ... i am working on a tool using struts, here i need ur help, for following problem while i click on one tab(monitor) and select value in a combo box and go back on other tab(admin), den again if i come back on monitor page then i need to … | |
Hello, I tried to convert below code, but I couldn't.. What is wrong? [code=c] void invert(unsigned char *image, int width, int height){ for(int i=0;i<width*height;i++) image[i]=255-image[i]; } [/code] [code=assembly] ---------------------ASM--------- invert PROC push ebp ; save ebp register mov ebp,esp ; get current stack pointer mov esi,[ebp+8] ; get first parameter … | |
I have these strings as $remaining_time: "3h5m" "4h9m" "15m" "17h" "6d17h" What I want to do is be able to parse through them and output the results in unix format so I can add them up to my $start_time (in unix timestamp) to get the end time. Any suggestions how … | |
My program has a function that reads in information until it hits a designated character, takes the text just before that character, does something with it, and then comes back for more text starting at that designated character. So... Special character is: 'z' Text file: "This is a lot of … | |
I recently installed MS SQL Server 2008 Developer Edition (on my home PC with Win7 Ultimate 64-bit). I have been trying to get it set up for use, but am having some issue. I keep getting an error when trying to connect to the server. On the "Connect to Server" … | |
![]() | so i'm created a program that display the name and grade of students from a file, and also a boolean that checks to see if the names are in alphabetical order. The problem is that i've created a files that has a name in alphabetical order but it still returns … ![]() |
Hi all, thanks in advance for your help. Is it possible (and if so how:sad: ) in Excel (using VBA or whatever easiest) to have 2 worksheets A and B where worksheet B is atomatically updated. A bit more complicated tho!! I enter data into A, and B takes that … | |
hi i m doing thesis work and the title is to make a simulator for process schduling in any language. if anybody knows anything about it then plz help me. | |
Hi. so i'm using ms access 2007 as a database, i have here a table of TRANSACT IP which has the following columns of Transact_ID, IP_ID, Date, Time, Average, Min, Max. i have to produce a report in which i have to query from this table with the follwing format: … | |
Hey guys! Can someone help me.? I have two tables named Questions and Examination, and two listviews named lstQuestion and lstChosenQuestion. I transfer the value of my lstQuestion to lstChosenQuestion through drag and drop and I already did that. My problem is saving the QuestionNumber equivalent of the transfered value … | |
Hi I need to build a online transaction processing system using php and mySQL. Sorry to say, I am a newbie at this. One of the requirements is that when a transaction is processed, a printed bill/invoice should be generated. Can this be done in php ? If I am … | |
hello!!! i would really appreciate a little help. here's the deal: i have a folder with some fotos in it. all i'm trying to do is make a program in whitch you can write the name of a foto in a textbox, click the "Search" button and find that picture … | |
Hey there, im stuck now with the datagridview not being able to discard the old headings in it and load another table in access. this is how the test program works i have 2 buttons. start the program, and press one button - the datatable loads close the program, and … | |
Hi guys, I'm new with javascript, so I need help from you guys. Please help me to change date format to yyyy-mm-dd. I've tried few ways but failed. Please download the script here [url]http://www.javascriptkit.com/script/script2/datetimepick.zip[/url] Thank you :) | |
I am passing the given query [url]http://localhost:8080/show?key=1234&path=host[/url] in my python script i want to take the 'path' only how can i get it? i use [CODE] def get(self): data = self.request.get('path') [/CODE] but it not working |
The End.