199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for kylemurray123

I'm kind of new to c++ and i wrote a simple program to convert ounces to grmas and when i had finished i was wondering if there was a user interface so i can make it look appealing?

Member Avatar for Ancient Dragon
0
137
Member Avatar for LianaN

Hi! I would like to read XML file from my SWING application, however [ICODE]list.size()[/ICODE] returns 0. Why does it happen? Thanks! [CODE] private void open() { SAXBuilder builder = new SAXBuilder(); File xmlFile = new File(openedFileName()); try{ Document document = (Document) builder.build(xmlFile); Element rootNode = document.getRootElement(); List list = rootNode.getChildren("Panel"); …

Member Avatar for LianaN
0
848
Member Avatar for gf_123

hi I want to write cellular automata lee algorithm (I call it wave method) which searches for the shortest path between 2 points.In lee algorithm the user specifies the weight one for all grid points and the algorithm will find thepath with the lowest number of grid points(it means the …

Member Avatar for hkdani
0
145
Member Avatar for JBLDW

I am trying to put together a script and need to be able to list a number of countries and to then say, in the script, if the country is listed in the above do something... The problem is that I do not want to have to specify each and …

Member Avatar for JBLDW
0
261
Member Avatar for jrosh

I set a password to mysql console in wamp. I followed a video tutorial. And it was successful. But now I can't access phpmyadmin or localhost. It says invalid password ...And gives no option to type the password. How can I solve this??

Member Avatar for dakaptain
0
146
Member Avatar for LianaN

Hi! I would like to select images by using a rectangular area. All images that are inside this area, must be selected. I want this area to appear while mouse clicking and dragging. So, the size of a rectangular area should change dynamically according to a position of the mouse …

Member Avatar for LianaN
0
2K
Member Avatar for LegendX

[code=java]import java.text.DecimalFormat; import java.util.Scanner; public class Main { public static void main (String[] args) { String inputString; //For reading input. String input; //Read Input double automobileCost; double warrantyCost; double downPaymentAmount; double interestRate; double numberPayments; double salesTaxAmount; double totalPurchaseCost; double amountFinanced; double loanInterestRate; double loanLength; double monthlyPayment; double annualInterestRate; // Create …

Member Avatar for jon.kiparsky
0
172
Member Avatar for burningcandle10

i want to convert this code to php, which will be used in wordress and i want this code to float on browser thanx [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>Related Posts Slide Out Boxes with jQuery and CSS3</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta name="description" content="Related …

Member Avatar for Szabi Zsoldos
0
168
Member Avatar for croker10

This is more than likely the dumbest sounding problem most of you will have ever heard of, but after three days of attempting to fix this myself, I have gotten no where. I am working on an older project, it works fine, but I need to upgrade it an add …

Member Avatar for croker10
0
236
Member Avatar for diginamics

First page adds a new job number, then the order page loaded with the job number id as a get id. Basically there is a while loop in the order page which shows products/services client can order and he chooses what he requires 'one or eight services' (8 in total) …

Member Avatar for diginamics
0
169
Member Avatar for crobson

I have a response.redirect in an asp page that works fine in chrome, opera, firefox etc but doesnt work in IE8. The code is simple enough, as below: dim news_item news_item = Request.QueryString() Response.Redirect "newsitem.asp?id=" & news_item The page is news.asp, that was writen by previous developer that has one …

Member Avatar for AceDesignz
0
271
Member Avatar for UnseenTerror

[COLOR="Green"]So I've been having long nights and extreme headaches over my program. I have my main function which is the menu. Then im adding my entrees as their own thing below that. I am pretty sure i need a function prototype or a function call or something else to fix …

Member Avatar for UnseenTerror
0
205
Member Avatar for sateal8

Hello, I am having a hard time with a easy problem. I need to ask a user how many scores they would like to enter (up to 15) and then use a method to get the number of scores. in the form of Enter score 1: xx.xx Enter score 2: …

Member Avatar for sateal8
0
196
Member Avatar for sillverstixx

I get this error while executing this code: [CODE] for( $iii = 0; $iii < $tot_layers; $iii++ ) { $Lrow = mysql_fetch_array($Lresult); if($HTTP_POST_VARS[$Lrow['name']] != 'spacer.gif') { if($nulavatar == false) { $sprite_1 = @$imagecreate($phpbb_root_path.$sprites_path.'/'.$HTTP_POST_VARS[$Lrow['name']]); $nulavatar = true; } else { $image = @$imagecreate($phpbb_root_path.$sprites_path.'/'.$HTTP_POST_VARS[$Lrow['name']]); @imagecopy ($sprite_1, $image, 0, 0, 0, 0, $tot_width, …

Member Avatar for sDJh
0
257
Member Avatar for cozmo87

I have hundreds of text files with data sorted in 3 columns and an unspecified number of rows. The number of columns can increase in the future, but will always be equal for all files. I want to combine these data into a single file with all the columns put …

Member Avatar for vealparry
0
139
Member Avatar for jehuie

Hi, I'm a total newb. I'm wanting to test out a PHP program so I installed apache on my Win7 machine along with PHP. I actually used the wamp install that installs the above along with MySql and some other goodies. Anyway, it all seemed to install fine but when …

Member Avatar for kuink
0
181
Member Avatar for WolfShield

Hey guys! This is the code for a program I started today: [code=java] /* * IdeaCaptureMain.java * * Created on Jan 25, 2011, 4:33:45 PM */ package Idea; /** * * @author WolfShield */ public class IdeaCaptureMain extends javax.swing.JFrame { /** Creates new form IdeaCaptureMain */ public IdeaCaptureMain() { initComponents(); …

Member Avatar for vealparry
0
102
Member Avatar for newbie14

Dear All, I am not so clear about jQuery actually what is it and how it function and different from Ajax? Can some one help me clarify? Now I required a functionality where I can drag and drop with the backend mysql capability to update the db. What will be …

Member Avatar for newbie14
0
85
Member Avatar for tonyfonseca

Help needed I would like to know how to sum seven text boxes with time in vb.net. Anybody can help me please? Thanks

Member Avatar for abirami2908
0
4K
Member Avatar for McLaren

[CODE]function name_free(value, element){ //validation rule var result; if($('input[name="name"]').val() != value) { //console.log($('input[name="name"]').val()); $.post(CI.base_url + "admin_/info_psl/name_check_ajax", { pavadinimas: value}, function(data){ //console.log(data); if(data == 'true') result = true; else result = false; }); } else result = true; //jei vienodi tai viskas ok console.log(result); return result; }[/CODE] when if($('input[name="name"]').val() != value) is …

Member Avatar for Airshow
0
143
Member Avatar for roymrinal123

Dear Sir Please Help Me that,I want to get result after Calculating here wag=4349 not as Wag=4349.25 that means just like Round Function In Excel [CODE]wag = (Val(bsc) / Val(DropDownList1.Text)) * Val(TextBox7.Text) TextBox9.Text = Val(wag) esic = (Val(bsc) / Val(DropDownList1.Text)) * Val(TextBox7.Text) TextBox9.Text = Val(wag) [/CODE] and also how is …

Member Avatar for Fortinbra
0
105
Member Avatar for masterfact18

problem is in form5 when i add stock it didn't refresh... just download my attach file "datagridprob.zip" and try to correct my code in "add_stock form" then if you got it right kindly post your code here...thanks...

Member Avatar for masterfact18
0
165
Member Avatar for sandesh35

Hi, I want the rewrite url to work on the virtual dedicated server. so when someone enters the url without extension like http://megafastline.com/feedback , it shud display the contents of the page feedback.aspx The code work perfectly fine in the localhost, but when i uploaded this on the godaddy dedicated …

Member Avatar for Fortinbra
0
138
Member Avatar for tawes01

I want to make a program that is run when a user logs on, and after a set period of time, prompts for administrator permission to extend time limit. If there is no permission given, the program puts the computer in sleep mode and requires administrator permission to resume before …

Member Avatar for Duki
0
106
Member Avatar for senti.arasu

i need the label control to be bordered in any of one colour... what to do for that.. addition to that i need the textbox to be shape arc bended on corners

Member Avatar for codeorder
0
83
Member Avatar for music613

I have a checked list box with an unknown number of items some of which may have been checked. I need to know how to determine which of the items have been checked. For purposes of discussion, assume that my checked list box is called myCheckedListBox. In theory, I need …

Member Avatar for music613
0
132
Member Avatar for Witblitz

I am using an XML parser to get product info from a supplier site, I then break it into an array. What I need to be able to do here is to search for a specific model number code and it's accompanying data into a new single array. How do …

Member Avatar for Witblitz
0
103
Member Avatar for Valten1992

I have been doing an assignment for my my first year software course, in which we have to make a simple TicTacToe program in java. For the final 30% mark, we have to add a GUI in. Apart fro a tutorial only teaching me the basics (how to make boxes …

Member Avatar for lazeto
0
927
Member Avatar for martin11ph

Hi again, sorry for yet another thread. I am using the KeyDown function in my form and it is not able to perform because of the other controls. For example, there is a text box in the form. Once the form has loaded, when I press vbKeyRight, my code does …

Member Avatar for AndreRet
0
2K
Member Avatar for 123mehran
Member Avatar for Fortinbra
0
168
Member Avatar for JerryShaw

I have the multiple level path of a filename, and I want to pull out just the immediate parent directory name of this file. Example: Filename = "c:\temp\extra\test\myfile.txt" How can I get "test" from this string ? Thanks in advance Jerry

Member Avatar for Derek W
0
487
Member Avatar for larsh

Hi guys, Am new in this field, How can I program a text-box in a details-view template to perform a certain function?? [Code] Protected Sub LinkButton1_Click1(ByVal sender As Object, ByVal e As System.EventArgs) Dim tdate, fdate As Date tdate = Textbox2 fdate = Textbox3 Dim ts As TimeSpan = tdate.Subtract(fdate) …

Member Avatar for Fortinbra
0
178
Member Avatar for ctsmith84

I'm stumped on an exercise problem at the end of a chapter on my book. An earlier problem had me create an algorithm to calculate compound interest (this is using C# by the way). That was simple enough. A few questions later, it mentioned how some other languages don't have …

Member Avatar for ctsmith84
0
201
Member Avatar for Elehas

I can't find information on this anywhere online. I am building a site using drupal. As you may know drupal installs its own database and runs on Apache. I have a backend mysql database that must be read and written from a vb.net app. I had to purchase a hosting …

Member Avatar for Elehas
0
205
Member Avatar for aaronmk2

I am getting this error object reference not set to an instance of an object and cannot figure out how to fix it. I can get the program to when I only have one Timepiece object, but when I try more I get the error message. I left a note …

Member Avatar for aaronmk2
0
227
Member Avatar for ram619

This code is runnig perfectly for values perfectly divisible by 2, that is 2,4,8 But the i is not incrementing when values are given such as 7,5 could u plz tell me the error Thanks [code=c]#include<stdio.h> #include<conio.h> int fun(int); int main() { int num; float mod,prime,m; printf("enter the num"); scanf("%d",&num); …

Member Avatar for ram619
0
104
Member Avatar for Valaraukar

Hey guys, So my Maths has obviously gotten a little rusty and I seem to be struggling with what should be quite simple.... The scenario: I have lines being drawn in 3D space that are calculated using an algorithm. These lines are actually made up of multiple line segments to …

Member Avatar for jonsca
0
821
Member Avatar for hanvyj

I am writing a video program, everything works fine except I am often (ie most times, but not [I]every [/I]time) getting the following error: Unhandled exception at 0x6076fde0 (msvcr90d.dll) in javaw.exe: 0xC0000005: Access violation reading location 0x0a450020. I have tracked it down to this function: [CODE]//fill the buffer from data …

Member Avatar for hanvyj
0
5K
Member Avatar for liphoso

<html> <head> <title>Insert New Student</title> </head> <script language ="javascript" type="text/javascript"> function checkForm(formobj) { //name var formOK = true; if (formobj.name.value == "") { window.alert("You have to enter value for name."); formobj.focus(); formOK = false; } //surname if (formobj.surname.value == "") { window.alert("You have to enter a value for surname."); formobj.focus(); …

Member Avatar for hielo
0
102
Member Avatar for jfunchio

I'm trying to make my program be able to add Rational objects with integers using type conversion. I've gotten it to compile but when i run it i just get a bunch of random numbers over 1 so something like this -8993458/1. My code for the conversion is. operator int(){return …

Member Avatar for dgirdhar
0
233
Member Avatar for masterfact18

[CODE] Private Sub Command1_Click() Dim xSold As Integer Set db = New ADODB.Connection db.CursorLocation = adUseClient db.Open "PROVIDER=Microsoft.Jet.OLEDB.4.0; Data Source=" & App.Path & "\inventory.mdb" Set rs = New ADODB.Recordset rs.Open "SELECT * FROM storage WHERE Current Stock = '" & Text1.Text & "'", db, adOpenStatic, adLockOptimistic If rs.BOF = True …

Member Avatar for AndreRet
0
172
Member Avatar for Danny1994

Hai Programmers, my title should say it all but im looking for a function where another form (wich pops up when a button in first form gets pressed) will pop up at the top right of the first form. (Would be best with "StartPosition" "Manuel" i guess) ([B]Im using Microsoft …

Member Avatar for Ancient Dragon
0
183
Member Avatar for aldm

Hi, I have a problems with certificates in j2me. I need to access web mail using https connection, but there is certificate exception: javax.microedition.pki.CertificateException: Certificate was issued by an unrecognized entity I tried to use UserCredentialManager class, but I didn't found detail explanation how to use this class. Here is …

0
104
Member Avatar for airerdem

Hi everybody, What I did is, I have 2 one dimensional vector which are inside structure. [CODE]int numberofactivities; struct PopL{ vector<double> RK; //For Random Key }; //Random keys for left population vector<PopL> PopL(3); srand((unsigned)time(NULL)); for (int j=0; j<3; j++){ for (int i=0; i<numberofactivities;++i) { rn=((double) rand() / (RAND_MAX+1)) ; PopL[j].RK.push_back(rn); …

Member Avatar for Fbody
0
174
Member Avatar for Hakoo

Hello, I want to add row and column dynamically in TableItem used in VMD - Netbeans. Actually, I want to fetch records from Record Store and show that into Table. How can I do this?

Member Avatar for peter_budo
0
378
Member Avatar for pythonn00b

Implement a function punctuation() that takes no parameters, inputs a string from the user, and prints all of the punctuation characters appearing in the string, in order from left to right. My coding I have so far is: def punctuation(): a = raw_input("Please enter a string:") check = ['!', ',', …

Member Avatar for snippsat
0
381
Member Avatar for Madmark88

i have recently started to learn c programming and im trying to improve my skill.i have some question about perfect numbers i searched forum but results were about C++. question is this code finds perfect numbers between 1 to 1000000. but its not working after 8128 which is perfect number. …

Member Avatar for Madmark88
0
100
Member Avatar for daniwaber

Hi, Can anybody help. How to scroll data in DataList by using mouse scroll. DataList have no Scroll method.

Member Avatar for AndreRet
0
1K
Member Avatar for AWPROGRAMMER

I have multiple projects in the same database that use the same dll code. Currently I have to define in the dll what the project names are and what the unc path is that each particular project needs to reference for it's excel file. The excel file contains notes that …

Member Avatar for AndreRet
0
158
Member Avatar for SaberExcalibur

I know that this will sounds a bit stupid but I would like to ask what does "CLASS" and "OBJECTS" really means. Yes, I can find a lot of meanings and explanations of it but I can't really catch what really it is. can someone explain it in the simplest …

Member Avatar for SaberExcalibur
0
134

The End.