199,114 Archived Topics
Remove Filter ![]() | |
Hi, Im working on an application that works on a timer. There is a timer on a product, and when the timer expires, the application dispatch the NextProduct method that set the next product in queue to be the active one and resets the timer. The timer is basiclly an … ![]() | |
Hello, I am creating an automobile finance system for retail bike dealer. The system contains features using which inventory, purchase, sales and party (customers, suppliers, manufacturers, financers) details can be maintained. Here inventory indicates to vehicles only which can be two wheeler, three wheeler and four wheeler. A lot of … | |
Good evening all, First of all, I've been curious about supposedly wrong things in the past. So let me clarify this first: I am in no way trying to hack some program, have malicious intent, or anything of that nature!! That being out of the way, the scenario is as … | |
Hi, I have been searching here and Google for the past few days but I haven't been able to find an answer. I want to have a script that will download one page of a website with all the content i.e. images, css, js etc... I have been able to … ![]() | |
Could you tell me why programmers use this.variable ex. (this.miles) in constructor, and what is the advantage of using it? | |
Hello all, I've a small question. I wanna use a function void myfunction(int **array1, int **array2) where array1 and array2 shoud be [4][4]. I've added 2 arrays int myarray1[4][4], myarray2[4][4]; and called my function like this: myfunction(&myarray1[0], &myarray2[0]); I've got the following warning message : warning: passing argument 1 of … | |
I am relatively new to perl, and I'm having a problem with loops. I'm trying to get a program for a simple number guessing game to repeat itself until you get the right number. Here is the code: [code] #!/usr/bin/perl -w $thinkingof = int(rand 10); print "Pick a number 0 … | |
I have a JFrame with 2 JPanels...my problem When I attach one of the JPanels to the JScrollPane object, it encompasses the whole JFrame, instead of just the JPanel I said to attach to. The scrollBar goes all the way up to the top of the JPanel I don't want … | |
Hi there, I have searched for an answer to this problem but cannot find one even though there is probably a very simple solution. I would like to pass an int to a function in pthread_create. I can do that easily. The troublesome part is when I have to cast … | |
If I have .txt file include 10 digits such as 0//start bit 1 1 0 0 0 0 1 0//parity bit 1//end bit If I put those into an array, how to check the first bit, the last bit and parity bit? How to convert the mid 7 digits in … | |
Hello, I'm making a simple C calculator using only getchar and putchar functions, my program works only if the arithmetic is entered correctly but if it's not, I can't make the proper error checking on it if the arithmetic is enteres improperly. EXAMPLE: 4 + 7 = 11 =====> Works! … | |
Hi, Ive written a program which is capable of sorting an array of ints e.g. array[6] = {4,6,-1,0,6,4} however i want to expand this so it will be able to order chars as well. With my code as it is, it will order chars correctly i.e. sort the numbers out … | |
quicksort.c [CODE]#include "quicksort.h" int compare( byte *a , byte *b ) ; void memswap( byte *s, byte *t, int count ) { byte tmp ; while (count-- > 0 ){ tmp = *s ; *s++ = *t ; *t++ = tmp ; } } byte *select_pivot(byte data[], int n , … | |
Hello, For a web app I am building, I am dynamically loading additional JavaScript and CSS files on demand (after the initial page load). According to the html specs, both the <script> and <link> elements support the onload event. I can get <script> tags to load and fire an onload … | |
hi All I have script that dont has any forms but there used $_POST method I dont understand that function and why there used $_POST method if there is not any Form here is script [CODE]<?php define('INCLUDE_CHECK',1); require "connect.php"; if(!$_POST) { if($_SERVER['HTTP_REFERER']) header('Location : '.$_SERVER['HTTP_REFERER']); exit; } ?> <!DOCTYPE html … | |
I am working on a psycopg2 application for a customer. I first used: SELECT * from table which worked fine with 'cursor.fetchone()'. But due to some technical details between the customer's database and the database on my company's side where I could not depend on the order of the fields, … | |
Hi everyone, I have a couple of questions regarding ER to Relational Schema Translation. 1. Do I treat a subclass entity as strong entity 2. Do I need to merge entities where most of the attributes are the same Please advice. Thank you | |
Here's the C++ code i did for myself: [CODE] #include <iostream> #include <fstream> #include <ctime> #include <cstdlib> #include <string> #include <cctype> void terminate() { const unsigned short SEC = 5; // constant for 5 times std::cout << "\nProgram will close in,\n"; // print for (int c=SEC; c>=0; c--) { if … | |
Hi, I am doing a project on picture editing and i have a null pointer exception in blur and i can't find out what's wrongs.. AIn this project i only can load .bmp images below is the code. Help me pls. Code: [B]Effect Class[/B] [CODE]import java.awt.image.BufferedImage; public abstract class Effect … | |
I recently took upon myself the challenge of finding the actual subsequence in an array that yields the largest sum rather than just the largest sum. Example - if you enter {3,2,-5,4} in an array, my program returns {3,2}, since that yields the largest sum, 5. I thought myself rather … | |
[CODE] import java.sql.Statement; import java.sql.Connection; import java.sql.SQLException; import java.sql.DriverManager; import java.sql.ResultSet; class db { public static void main(String arg[]) { Statement statementObj=null; Connection connectionObj=null; try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); connectionObj=DriverManager.getConnection("jdbc:odbc:sensorData","",""); statementObj=connectionObj.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY); System.out.println("do not worry ho ga yr ho ga"); statementObj.executeUpdate("INSERT INTO hardwareData (Time, Date, humidity, Temp, DiesalLevel) VALUES('1','12','3','s','a')"); connectionObj.close(); } catch(ClassNotFoundException … | |
Hi there i want to know about grading system in visual stuio i am new in software engr just tell me how we make grading system in windows application in visual studio like when we put 5 in grade section the basic sallary will be 15000 and home allownce will … | |
I have a Coin class that compares weight and value and I need help developing a hashcode and Junit tests to test them, here is my class: [CODE]public class Coin implements Comparable<Coin>{ public static final int CENT=1, NICKEL=5, DIME=10, QUARTER=25; private int value; private double weight; public double getWeight(){ return … | |
Hi guys, I'm new here and in dire need of help for a problem that I've worked on hours. I created a table 'tblProductCat' in the webform and wanted to populate the table with the code below: [CODE]Imports System.Data Imports System.Data.SqlClient Partial Class ProductCategories Inherits System.Web.UI.Page 'Define DA and DS … | |
Hello! I have a minheap class that is implemented as a priorityqueue and it works fine as far as to the iterator that I have to implement as a innerclass. But I can't get it to work properly. Here is part of the code: public class MinHeap<E> extends AbstractQueue<E> implements … | |
Does anybody know where you can get a computer science online certificates or c++/ programming or Mobile Applications Developer certifcates? | |
Hi, I'm writing a program for structural engineers that consists of a number of inherited classes. Specifically, I have a main() file which includes a class [I]element[/I] which includes a class [I]node[/I] which includes a class [I]matrix[/I]. [I]element[/I] includes variables of type [I]matrix[/I] and [I]node[/I], and [I]node[/I] includes variables of … | |
I've got a simple question but I can't seem to find the answer in any of my searchs. I know this is very basic and probably will require 1-3 sentences but, when I use a pointer to pass it by reference to a function, will it use the actual location … | |
cant compile the code...please help me![code]import java.io.*; class football { public static void main(String args[])throws IOException { BufferedReader stdin = newBufferedReader(newInputStreamReader(System.in)) String str; int num_team,num_win,num_draw,total_point,point; for(num_team=1;num_team;num_team++) System.out.print("Enter team compete"); str=stdin.readLine(); num_team=Integer.parseInt(str); System.out.print("Team 1"); System.out.print("Enter total win"); str=stdin.readLine(); num_win=Integer.parseInt(str); System.out.print("Enter total draw"); str=stdin.readLine(); num_draw=Integer.parseInt(str); total_point=(num_win*3)+(num_draw); System.out.print("Total point for team 1 is" … | |
Hey, I think my DB has very standard parts and I don't want to reinvent the wheel again so I wonder if there are some ready and widely used DB templates for what I need - My database is all about customers, so I got a bunch of tables related … | |
Hello, maybe someone can help me: I have two gridviews on my page, positioned side by side, GV1 on the left and GV2 on the right. When the user selects a row in GV1 (that has many rows), GV2 should shift near the selected row. I was wondering if there … | |
Hi. I'v created a program with a Ms SQL database, registration form and login form. Everything was working well so i detached the database and added it to my program as an existing item before so as to deploy the program. But now i recieve an error when i try … | |
hi, If found the [COLOR="Green"]DbaseLicenseKey = LicenseKey [/COLOR] match i want to write the value to registry but the problem is....i have no idea how to code at this part [COLOR="Green"]AxActiveLockBP.LicenseKey[/COLOR] as it gives the error message.... error message = 'LicenseKey' is not a member of 'Axactivelock1884.AxActiveLock'. Please help!!! [CODE] … | |
Hi I have a script that queries wmi to get logged on users. The script works fine if i run it on the server i am query but if i choose a remote server it returns nothing. It gets the user 'logonid' but does not return anything when running the … | |
table: hometeam awayteam homepoints awaypoints leeds man u 3 0 leeds man u 3 0 man u leeds 0 3 i want to calculate how many points each team has. with the above data leeds should have 9 and man u 0. i have come up wth the following sql … | |
Hello, i have a problem. [CODE] int index2 = 1; foreach(Circle circle in arrays) { if(index2 > 1 && index2 < 6) { Circle c1 = (Circle) arrays[index2 - 1]; Circle c2 = (Circle) arrays[index2 - 2]; Console.WriteLine("Radien pÃ¥ cirkel {0} är {1} och arean är {2}", index2, circle.getRadius(), circle.getArea()); … | |
Ok so let me start off by saying I am not a NOOB. There... So i need help trying to figure out an export of just my 2 colums from a table. Got it done. Now i need to make sure that I only export from a date range and … | |
I have a device that generates on air graphics. This device needs to get glyph code in each font not the glyph dimensions to be drawn correctly. For example, if I need the Arabic character "Ø£" Alef I have to send it in an integer value according to the font … | |
Hello .. You have made a way to resolve code half-life, but missing something I want to help it .. Fuvction which solving the equation of the third degree in how to enter transactions have, I mean how can I insert s q v g Please help [code]#include <iostream> #include … | |
How do I take to set up for network connect with Socket. I make the JList to press Go to run the post processing (like files). I feel about it and it is not work for me I try to figure out. Thanks. [code] public final static int port = … | |
Hello who knows how to create a search box in Visual Basic? I want the search box based on streamreader. In proper terms, when I will input a text, it has to read on a text file in drice C. I know the streamreader code but don't know the code … | |
Hi ppl, I have a dynamic form, where user can add/remove rows and enter data. This form is basically a invoice. On clicking save button, the data should get saved into db, also a pdf file containing the details of the invoice should be generated. I came across this [CODE] … | |
Hello, I am trying to write a templated linked list, and I am having some difficulties with the add() function. It seems like different behavior occurs depending on how I add to my list, but my two test cases don't seem that different to me. I'll post the list.h, and … | |
Hello every one am in real trouble now. i am in my 1st and last sem of my programing course. i need to write a program that can add delete display and update record. i got this program so far but the real prototype works fine for this program and … | |
![]() | Hello, I have a form from which I post some data into 3 tables: when I click on the submit button I don't get any error message from mysql_error(); but when I look to my 3 tables I see no one of them has received the data I just posted … ![]() |
[CODE]<tr> <TD VALIGN = 'TOP'> <a href="sendGift.php" TARGET = _BLANK><font color = "#0000FF" size = "3" face = "verdana"> <b>Send Gift </b></font></A><BR></TD> <TD VALIGN = 'TOP'> <a href="sendMoney.php" TARGET = _BLANK><font color = "#0000FF" size = "3" face = "verdana"> <b>Send Taka </b></font></A><BR></TD> </TR>[/CODE] when i click first link(send gift), … | |
Hi all I have a program that is written in java and have three different executables program.sh, program.bat, program.jar. i can starts the gui by using program.jar and then in gui i can enter parameters. but as i want to run it over several parameters and get the outputs. i … | |
Hi there, I understand that this question might be better off in "hardwareAndSoftware/LinuxAndUnix/LinuxApplicationsAndSoftware". But the truth is, that it takes for ever for someone to respond to posts there, because I don't think anybody visits that forum alot. Anyways, back to the point... I'm trying to install the Java 1.6 … | |
So I am working on this XML project to create a small list of favorite DVDs, etc. Maybe I missed it (or that I may have not gotten this far in my reading) but in my DTD I want to restrict movie_review to only allow (G | PG | PG-13 … | |
I use [CODE] FileUpload.Filename = lbl1.text.ToString(); FileUpload.SaveAs(Server.MapPath("~/Photo/AllPhotoes/" + FileUpload.FileName)); [/CODE] and i got Error: Property or indexer 'System.Web.UI.WebControls.FileUpload.FileName' cannot be assigned. it is read only. I want to save image with label name which is hidden. and it get new value each time. how can i change image name with … |
The End.