199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ferretfool0x77

I have a two-d array from which I need to read values from any and all sides of each index. for example [CODE]int x=0, y=0; myArray [x - 1][y - 1];[/CODE] where x-1 and y-1 would be the values of the other end of the array. I've been up over …

Member Avatar for Taywin
0
1K
Member Avatar for acakaliman

Hey all, I'm new-ish at MySQL and Navicat. I'm trying to import a file with about 1.16 million records and Navicat keeps "working" (I see the timer moving) but it actually stops processing records at 850,825 records. The log shows no errors whatsoever but I know there are many more …

Member Avatar for smantscheff
0
464
Member Avatar for peter20

Hi all, I am new in c++ programming and I would like to learn what is the difference between class cuboid : public shape1, private shape2 with class cuboid : public shape1, public shape2 Thanks a lot

Member Avatar for Fbody
0
335
Member Avatar for ande-s

Hi Guys, I am currently looking for a Python solution to a project I am working on. I am VERY new to Python so please go easy on me. Currently, I have a server setup, only running Windows 7, and on that server, Thunderbird is constantly running checking for new …

Member Avatar for TrustyTony
0
267
Member Avatar for jcooler

A quantity known as the body mass index (BMI) is used to calculate the risk of weight-related health problems. BMI is computed by the formula BMI = w/(h/100)^2 Where w is weight in kilograms and h is height in centimeters. A BMI of about 20 to 25 is considered “normal.” …

Member Avatar for chiiqui
0
215
Member Avatar for Dumpen1337

Hello. I have a simple picturebox where there is a image loaded in Im drawing a rectangle on the picturebox and when I press a button I want to invalidate it (remove the rectangle), but it doesnt seem to work The rectangle is drawn fine and the image loads up …

Member Avatar for CarlosAMerighe
0
234
Member Avatar for sah

The following code is used to connect C# with mysql server connectionParam = "SERVER=" + DbServer + ";DATABASE=" + dbName + ";UID=" + uName+ ";PASSWORD=" + pass; MySqlConnection mConnection = new MySqlConnection(connectionParam ); But what will be the code, if MySql can only be accessed through HTTP Tunneling. Tunneling URL: …

Member Avatar for heppiedad
0
247
Member Avatar for IT_Student_604

this thing is getting into my nerves and i really don't know what to do.. i tried a lot of variations in my code and even sql statement but still nothing happens.. i really need to do thing messed up project of mine and put all my efforts here.. but …

Member Avatar for lolafuertes
0
231
Member Avatar for joon920721

I want to make a program that asks to enter number. The program will keep asking for entering number until the user enters -99. And when the program finishes, it will give the number of counts, max, 2nd max, min, and 2nd min. The program I made works for all …

Member Avatar for Fbody
0
3K
Member Avatar for Nahiyan

Hello, So I was working with php, jquery, javascript and html to make a show/hide toggle system. I use php to fetch some data from my database and display them using html. I use jquery to make the show/hide toggle functionality. However, as I rely on php's while loop I …

Member Avatar for Nahiyan
0
199
Member Avatar for vedro-compota

hi , guys/ I again have problem with C understanding. Please help . there's code = [CODE]/* */ #include <stdio.h> #include <stdlib.h> #include <limits.h> main() { char* inputstr; inputstr = simple_readline( "Please specify the input string (one more notification))" , 0); printf("\n You've specified string = %s\n", inputstr); getchar(); getchar(); …

Member Avatar for vedro-compota
0
244
Member Avatar for Bucher

Hello all, I just joined the site. I hope someone can help me with a minor problem, I have been searching both this site and google for the anwser... but keep getting stuck. A dialog with a textbox is reading a text file within the project like this [CODE] Private …

Member Avatar for Bucher
0
218
Member Avatar for gerbz

how could i open a new window using javascript inside php that holds a value of a js variable? please help. thx

Member Avatar for gerbz
0
231
Member Avatar for chiiqui

I am having an error with my constructor, why is that? :| [CODE]public class Name{ private String firstName; private String middleName; private String lastName; public Name(){ this( "null" , "null" , "null"); } public Name(String first){ this(first," "," "); } public Name(String middle){ this(" ",middle," "); } public Name(String fName …

Member Avatar for chiiqui
0
233
Member Avatar for TSaunders84

ok i having a little trouble adding a string to the new vector that i created i was wondering if i need this line [CODE]vector<string>* row = new vector<string>;[/CODE] and if i do i need to keep calling or is there a much better what to create a new row …

Member Avatar for Fbody
0
139
Member Avatar for lm111

I was wondering if someone could help me? In my code below what if answers in question 2 were allowed to be in any order? Like: hips,body,knees or knees,hips,body and so on. How should I modify my code? Anyone please???? [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" …

Member Avatar for lm111
0
1K
Member Avatar for bala2111

hey all, Am trying to display the div tag and its content by clicking it. the code below displays the whole source code when cliked on the div with id = softros. I want to make this script to display the div in view source format of the browser when …

Member Avatar for Taywin
0
335
Member Avatar for LittleMissChoco

Im having problems with my code. :( the code should. the submenu for my menu should be on a radio button type. here's my first code: [CODE] public ... { //for background JMenuItem image = new JMenuItem("Images"); JMenuItem music = new JMenuItem("Music"); //submenu of music JRadioButtonMenuItem play = new JRadioButtonMenuItem("Play"); …

Member Avatar for LittleMissChoco
0
149
Member Avatar for austenx

Good evening all, This is the first time I have needed to start a new topic, I can usually find the answers via the Google Gods, but not this time – I would very much appreciate your help. I have written a number of small apps in the past, have …

Member Avatar for austenx
0
591
Member Avatar for nirnal

hi everybody i have two textbox and one combobox from database connection i want to make a login with three objects.. if textbox1 have this valui and textbox2 have this value and combobox have this value.. then it will check in to the dbms.. and if currect.. then login success.. …

Member Avatar for Netcode
0
111
Member Avatar for gauravrishi
Member Avatar for aFg3

I want to search only in my files, contains only .txt and .c [CODE] This doesn't work for me ls | grep .txt | grep .c[/CODE] I want the ls and grep .txt, .c ??Thanks??

Member Avatar for L7Sqr
0
130
Member Avatar for meli123

[CODE]int m, n, pow; cout << "Enter m and n: "; cin >> m >> n; pow = 1; for (int i=1; i<=n; i++) pow = pow * m; cout << m << "^" << n << " = " << pow << endl; return 0; }[/CODE] I dont get …

Member Avatar for tkud
0
107
Member Avatar for MattJones

Hey Guys, I'm working on a C++ program for school. Basically the Program inputs a file of points and outputs an svg file that contains the Graph with the least number of edges. We need to implement this with the Kruskal and Prim algorithm, and the algorithm needs to be …

Member Avatar for Fbody
0
205
Member Avatar for naazsayed

i want a field to be fetched from the database of one form and display it in another form i tried but the simple program works that to the text in the textbox appears in another forms textbox on button click event how to retrieve a value from a database …

Member Avatar for lolafuertes
0
193
Member Avatar for geeksforgeek

Help.....!! Please explain me the output of the following code.I am unable to understand why infinte loop is occuring for i>126. [CODE] #include<stdio.h> int main(void) { char i=2; while(i<=127) { printf("%d\n",i); i+=1; } return 0; } [/CODE]

Member Avatar for Narue
0
104
Member Avatar for TigerTeck

[CODE]/** * @(#)Car.java * *Chp.3 3.5 * @author Alec Ziff * @version 1.00 2011/9/23 */ public class Car { { public Car(double fuelEffciency) //all values are in miles per gallon { efficiency= fuelEfficiency; } public void addGas(double gas) { double newFuel= fuel + gas; fuel= newFuel; } public double drive( …

Member Avatar for NormR1
0
406
Member Avatar for TigerTeck

[CODE]public class CarTester { public static void main (String[] args) { Car myMysteryMachine = new Car (1000); // Car gets 1000 miles per gallon myMysteryMachine.addGas(20); // 20 gallons of gas are added to the tank myMysteryMachine.drive(100); // Driving the car 100 miles System.out.println(myMysteryMachine.getGasInTank()); // Method prints the remaining fuel } …

Member Avatar for NormR1
0
353
Member Avatar for tsp003

Hi, I think I need a fresh pair of eyes on one of my scripts. I've adapted the following code for my own purposes and it almost works perfectly. When it gets to the last table (line 168: add record to jobs table) it adds the record twice and I …

Member Avatar for tsp003
0
204
Member Avatar for Pravinrasal

want to print Jframe like our word document. I have one jframe on jframe i have Jpanel ond on that panel i have j label . In jlabel i written a letter i want to print that letter so how can I print that letter. thank you

Member Avatar for JamesCherrill
0
276
Member Avatar for xcrunner23

DiceRoller.java You are to write a program which will ask the user for the number and type of dice they would like to roll in the form of “xdy”. The x represents the number of dice, and the y represents how many sides the dice have. Your program MUST read …

Member Avatar for NormR1
0
461
Member Avatar for ninjaConfused

Ok, I have this project In which I have to Write a Java program that can simulate a truck delivery, using the Java console as the exclusive input and output device. That is, each input to the TruckItem class, either unload or load an item (meaning creation of an object …

Member Avatar for NormR1
0
282
Member Avatar for siina

Function, which picks up from specified page all images that are larger than 50kt. The function returns arrayn, which contains the image URL and the image size in kilobytes. How do i start to do this? Do i use wget and exec? Is there easier way to do it. So …

Member Avatar for cwarn23
0
188
Member Avatar for bibiki

hey there, I am trying to build a small around soccer/football matches. So, I have built a class that models a Match (Match.java). It only contains field variables like hostid, guestid, matchid, result, and such, and setter and getter methods. When I retrieve matches from my sqlite database, I build …

Member Avatar for bibiki
0
673
Member Avatar for khentz

Hi, I have a search textbox in my form. I also have, textboxes for computer name, mouse serial number, monitor serial number and phone number. While in my database, they are all reside in one table named tblComputerAsset. I am using Access for my Database. What I want to do …

Member Avatar for Netcode
0
92
Member Avatar for musicmancanora4

[code] Hey guys im not sure how this isset code is working and what each if statement is testing. a clear explanation would help. cheers ****ViewProductDetails.php**** Code: <?php session_start(); ?> <html> <body> <?php if (isset($_POST['submit'])) { if($_SESSION['item']==$_POST['h1']) { $_SESSION['qty'] = $_SESSION['qty'] + 1; } else { $_SESSION['item'] = $_POST['h1']; $_SESSION['price']= …

Member Avatar for vibhaJ
0
119
Member Avatar for IWDesigns

hi everyone, i have some code that resises an image if its bigger than a certain size... the problem is that although the image is resised, its still pushing the div to the images full size? heres the code [CODE] .dt2 img { max-width: 300px; width: expression(document.body.clientWidth > 300? "300px": …

Member Avatar for IWDesigns
0
84
Member Avatar for khentz

Hi, I have a search textbox,I would like to know how to list all of the searched items in the list view.

Member Avatar for khentz
0
86
Member Avatar for rakwel10

this is a noob question. I'm quite confused sometimes when to use 'return' everytime Im doing my php and javascript codes. Maybe a plain english answer can help me : ) thanks!

Member Avatar for vibhaJ
0
123
Member Avatar for musicmancanora4

Hey guys i have the following code below for a shopping cart just wondering what this hidden input text would be used for and the echo at the end of it. I know it reads from a text file with : as delimeters and it as an ID for each …

Member Avatar for urtrivedi
0
131
Member Avatar for stereomatching

I am learning concurrency programming, I try my best yet can't solve the problem [CODE] boost::mutex mut; std::vector<int> int_vector; boost::condition_variable int_cond; void data_preparation_thread() { while(int_vector.size() != 10) { std::cout<<"data preparation thread :: vector size = "<<int_vector.size()<<std::endl; boost::lock_guard<boost::mutex> lk(mut); int_vector.push_back(4); int_cond.notify_one(); } } void data_processing_thread() { while(1) { std::cout<<"front :: data …

Member Avatar for stereomatching
0
237
Member Avatar for kccute

Hi guys ! I have big problem in my project i cant display the data of my database (.mdb) to my Data report i need some expert help to this. Im new to this im such a loooooser... plss help me Thanks in advance..

Member Avatar for abu taher
0
182
Member Avatar for lukasrzeznik

Hello, I have one problem with xml reading. My xml file: <TransactionDetail> <SaleItem> [B]<ItemID>02900</ItemID>[/B] <Discount Splitted="false" TypeCode="6000"> <-- New section <LineNumber>7</LineNumber> [COLOR="Red"]<Amount>0.36</Amount>[/COLOR] <DiscountableAmount>1.19</DiscountableAmount> <DiscountName>RABATT</DiscountName> <DerivationRuleID>99</DerivationRuleID> <PromotionId>99</PromotionId> </Discount> </SaleItem> </TransactionDetail> How I can get "ItemID" when "Amount" > 0 ? My code: [CODE]XmlReader textReader = XmlReader.Create(new StreamReader(@"C:\TEMP\Working\EJR\"+ejrName, Encoding.GetEncoding("ISO-8859-1"))); XmlDocument xmlDoc = …

Member Avatar for lukasrzeznik
0
136
Member Avatar for jbennet

Can anyone help me with an Inventory System Design? Its got to track the location of items in the warehouse (and shop floor) for stocktake/empty peg etc... It has to handle refunds and sales. So far ive come up with: Product (ProductID, Name, ProductCategory,Description,Price,SupplierID) ProductCategory(ProductCategory) Location (LocationID, Description) ProductLocation (ProductID, …

Member Avatar for Netcode
0
692
Member Avatar for Buppy

Hi, A quick question - i have a string containing text like this: [CODE] \\u003cspan class=\\\"someClass\\\">Some text\\u003c\\\/span> [/CODE] How do i get that "Some text" value into an array? I tried [CODE] preg_match_all("/\\\\u003cspan class=\\\\\\\"someClass\\\\\\\">(.*?)\\\\u003c\\\\\\/span>/",$str,$res); [/CODE] Returns nothing. I think there's something wrong with the regex pattern. Maybe anyone can correct …

Member Avatar for pritaeas
0
146
Member Avatar for mikesowerbutts

Hi, Im trying to convert my UserControls to be sharable across multiple projects. I have read up on this, and it seems that I need to have all code in one file (i.e. in the .ascx, rather than codebehind/designer) so I am trying to do this: [CODE] <%@ Control Language="C#" …

Member Avatar for kvprajapati
0
946
Member Avatar for suioius

I got a homework, its due by monday. I have read textbook a lot but i still dont know what to do next steps. Here is problem. The program should prompt the user for and accept two inputs: 1. The total price (including any applicable tax, etc.) for whatever was …

Member Avatar for CoolPrizes
0
156
Member Avatar for eatatj0s

I'm sorry if this should have been posted in the c# forums..... I have created a database for my website and am using MS SQL. This database will need to be accessed by users on the site itself, and from a .NET application. I am comfortable using MS SQL through …

Member Avatar for Netcode
0
203
Member Avatar for divyam_shukla

i have an existing database and i want to attach that database one time to sql server and when thee database is attached then it open that database

Member Avatar for kvprajapati
0
116
Member Avatar for FaridMasood

I am getting thid error while opening an excel file. Plz help me why this is happening. In fact when i run my application on my computer it works but it generates this error when applications is runned on other computer. Other computer also have the dotNet framework installed and …

Member Avatar for Soil_
0
130

The End.