199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for b89smith

I have a database that is filled with time series data points on different items. I would like to calculate the difference between values by item for the time series and then store it in a difference column. My table is as follows: id | Ticker | Date | SO …

Member Avatar for smantscheff
0
245
Member Avatar for Sheena26

i need help on my project 1. Write a program that will print out statistics for eight coin tosses. The user will input either an “h” for heads or a “t” for tails for the eight tosses. The program will then print out the total number and percentages of heads …

Member Avatar for Sheena26
0
1K
Member Avatar for rude04

hello everyone,i need to make an encryption/decryption program and I'm almost finished, the problem is when i tried to add some gui an error about throwing exception keeps showing.. this is the code without the gui and it works just fine because the [B]throws Exception[/B] is in the main.. [CODE] …

Member Avatar for rude04
0
724
Member Avatar for pato wlmc

SORRY FOR THE NOOB QUESTION, but until some time ago (1 or 2 weeks) all my programs we comand-line, so I didn't have to... build them(?) But some days ago, i decided to create a program with GUI, and I used QT creator for that. Now My program is finished, …

Member Avatar for pato wlmc
0
118
Member Avatar for 24x24

Ok I have another homework problem. Essentially I am to make a text file of randomized characters ( leters bothe upper and lower case, numbers, spaces and specialized characters) and import it as a string into my program. From there I am to make all lowercase letters uppercase. I think …

Member Avatar for 24x24
0
440
Member Avatar for tiggsy

I suspect there isn't a way to do this, but in case there is: Does anyone know how to pick up all the possible set values for a particular field from php? The reason I'm asking is that it means adding a new set value will not break all the …

Member Avatar for diafol
0
165
Member Avatar for daviddoria

I have been using a [icode]Image<Node>[/icode] as the main object to store the data for my program. It is a 2D grid of Node objects. The nodes have properties like [icode]bool Visited[/icode], [icode] float Priority[/icode], etc. I often want to modify these nodes, put some of them in a vector …

Member Avatar for daviddoria
0
167
Member Avatar for madval88

I have saved a 2D matrix in a numpy file (.npy) in python. Is there a way I can access the same from C++ and possibly read in the values in a stl vector? [URL="http://www.scipy.org/C++_Extensions_that_use_NumPy_arrays"]This [/URL] is vaguely relevant. But here you make the call from python. I want to …

Member Avatar for madval88
0
769
Member Avatar for johnt68

Hello:) I can change background colour on my existing form like this: [CODE]this.BackColor = System.Drawing.Color.Green;[/CODE] or like this [CODE]ActiveForm.BackColor = System.Drawing.Color.Green;[/CODE] But I have another form called CustomerData What I want to know is how I go about using a button click event on the first form to change the …

Member Avatar for johnt68
0
3K
Member Avatar for idlackage

I'm just trying to output a value, but whenever it gets to "var max = tb1.value;" it stops working. I can't find out what's wrong with my code. [CODE]<html> <head> <script language="javascript" type="text/javascript"> var tb1 = document.getElementById('textbox1'); function output() { var max = tb1.value; document.write( max ); } </script> <title>asd</title> …

Member Avatar for six_sic6
0
315
Member Avatar for Kath_Fish

Hey, i trying to list out all the items after i split it in text box. But, the output always list items in wrong way. Can someone help me? For example: the output i want to print in the textbox is like this 1 2 3 4 5 but it …

Member Avatar for Kath_Fish
0
332
Member Avatar for glyvery.happy

hi. I was trying to choose data from the combobox then When I choose something.. it will also generate the other data into the textbox. I just wanted to choose a STUD_ID in the combobox and the fname and the lname should show in the textbox. actually.. I just did …

Member Avatar for rohand
0
2K
Member Avatar for mrgreen

hello, I'm fairly new to programming in general, and i'm having some trouble figuring out how to use a stack and queue to check to see if a word or certain order of numbers/letters form a palindrome or not. My logic is to read in the original string, push/pop characters …

Member Avatar for biljith
0
177
Member Avatar for maikens

Hi all, I have written a balanced binary search tree as part of an assignment (make a simple Spell Checker). Each node has, among other values, two height ints, leftHeight and rightHeight, to keep track of the heights of any subtrees. My problem is that after a rotation, the heights …

Member Avatar for maikens
0
1K
Member Avatar for hantuapi

[CODE]#include<stdio.h> #include<string.h> #include<conio.h> struct menuItemType { char menuItem[15]; double menuPrice; } menuList[]= {"Plain Egg",2.50, "Bacon and Egg",3.45, "Muffin",2.20, "French Toast",2.95, "Fruit Basket",3.45, "Cereal",0.70, "Coffee",1.50, "Tea",1.80 },order[10]; void getData(struct menuItemType[],struct menuItemType[],int*); void showMenu(struct menuItemType[],int); void printCheck(struct menuItemType[],int ); int main() { int items = 0; printf("Welcome to HiFi's Restaurant\n"); printf("\n"); printf("******* …

Member Avatar for chrjs
0
127
Member Avatar for simplypixie

I have js on a form page for users to be able to select all check boxes for classes to enter in a dogs show but I want to be able to offer the facility to select just classes on specific days as well and I don't know how to …

Member Avatar for Taywin
0
147
Member Avatar for dirkjan75

Hi, Just a form where I want to put a default value for a combobox: private sub form_load() me.combobox1.defaultvalue = 3 end sub The property defaultvalue is giving an error, 'method or data member not found'. what do you think?

Member Avatar for AndreRet
0
114
Member Avatar for Nitin Daphale

In my application I place standard mail messages in web.config . But if message contains '\n' and mail is sent, it doesn't implement as newline character in mail body. [CODE] System.Web.Mail.MailMessage mail = new System.Web.Mail.MailMessage(); mail.To = to; mail.From = From; mail.Subject = subject; mail.BodyFormat = MailFormat.Html; mail.Body = body; …

Member Avatar for Fortinbra
0
177
Member Avatar for Transcendent

I'm supposed to write this c++ that take in 01 and on. for example: 01010101 but not 0,1,10,011,110. Can someone help me figure out what I need to do to fix the problem. [CODE]#include <iostream> #include<stdlib.h> // for the exit(1) function using namespace std; char text[300]; char ToBeChecked; char lexical(); …

Member Avatar for caut_baia
0
152
Member Avatar for Vanquish39

[CODE] #include<iostream> #include<vector> #include<string> using namespace std; struct Item{ string itemName; double cost; }; class User{ public: User() : itemList(0) {}; User(string a, string b) : fN(a), lN(b) {}; void addItem(Item a) {itemList.push_back(a);} vector<Item> getItems() const {return itemList;} void printUserInfo(); private: string fN; string lN; vector<Item> itemList; }; class Convention{ …

Member Avatar for Fbody
0
151
Member Avatar for Jake.20

Please i need help in leap year. My problem is, all of the month has a date of 1-31, except for feb. after i choose feb, as my month ( i'm using combo box ) , it removes the date from 29-31, and if i choose a leap year, it …

Member Avatar for Jake.20
0
619
Member Avatar for hzcsdtc

add, addi, lw, sw, li, la, syscall, move, jal, jr, bgt, j. Assume that: all registers are addressed by $register-name (like $s1; see your textbook for range of valid register names and numbers); the end of program is recognized by the end instruction, the program is loaded into memory at …

Member Avatar for GunnerInc
0
189
Member Avatar for moone009

How do you replace characters as in an update? Example I have an address field that contains '.' and '-' and I need to remove these characters. Anyone know of an update script to do so?

Member Avatar for moone009
0
80
Member Avatar for bklynman01

I have a set of code that builds a table as the user enters information. This information may be changed more than once before it is considered complete. After the user is done, I want them to click a button, and have that information entered into the SQL database where …

Member Avatar for bklynman01
0
202
Member Avatar for sameerkhan

Hi, Could anyone send me code for following problem.. I have two text files, one containing list of folder names another is a log file containing error description. I have to find error description from log file for every names in first text file. And i have to copy the …

Member Avatar for AndreRet
0
1K
Member Avatar for Lucky D

Hi, Can somebody tell me how i can link two or more list boxes so that if an item is selected in a list box in a row, another item will be selected in the same row without selecting them one after the other from different list boxes. Thanks.

Member Avatar for AndreRet
0
87
Member Avatar for Kath_Fish

hey...i want to ask about how to convert string array to integer array. hope someone can help me. thanks.

Member Avatar for Mitja Bonca
0
215
Member Avatar for virusisfound

I want to print date when user give start date to end date period. if user give 3 month period then the date should print like 1/1/2011 1/2/2011 1/3/2011 This date print properly but I want to save that date in table. like the three dates are their so in …

Member Avatar for prvnkmr194
0
148
Member Avatar for And1

I am fairly new to python and am trying to create a table for work. At the moment I use a paper based system with 11 columns. I wanted to see if I could replicate my table in python 3.1.1 The column names are: 1. RMA number 2. Customer 3. …

Member Avatar for vegaseat
0
14K
Member Avatar for maikens

Hi all, I wrote this recursive function to set the heights of each node in a search tree. It is not performing as expected; I suspect I screwed up the recursion somehow. Anyone know what the matter is? [CODE]void AVLTree::SetHeight(NodePtr &node) // root is passed in { if(node == NULL) …

Member Avatar for mrnutty
0
143
Member Avatar for jaango123

Hi all, Could you please let us know the best way to do the below validation in xslt we are reading card number using an xpath expression <xsl:value of select ="/*/*/*/cardnumber" /> from input. It is a string of 19 characters. we would like to include a check which will …

Member Avatar for iceandrews
0
134
Member Avatar for kubiak

Please help me with the double linked list, when I write the command in terminal to test main class by my source code the cmd.exe throw me: Exception in thread "main" java.lang.NullPointerException at homework.List.add(Homework2.java:19) at homework.Homework2Main.main(Homework2Main.java:20) In 19 line is something wrong in source code, I tag him. Please I …

Member Avatar for javaAddict
0
313
Member Avatar for xxxferraxxx
Member Avatar for Stefano Mtangoo

If I'm not mistaken using library that is GPLed will force your app to go GPL. Is there a way to get away with MySQL GPL licence and use it in closed source (Not necessarily commercial)? Two scenarios here: 1. libmysqlclient is linked dynamically 1. libmysqlclient is linked statically Thanks!

Member Avatar for Stefano Mtangoo
0
452
Member Avatar for emcyroyale

Basically this program uses an abstract class which 3 other classes extends to so that in the end an overridden toString() method will print out how many pages must be read for each class. Okay, well this program is for a class, but I am kinda of stuck because my …

Member Avatar for quuba
0
208
Member Avatar for maddy5326

Is there any way by which one could pass a HTML form variables to a python script? Is there any library for it?? Any help would be appreciated...

Member Avatar for maddy5326
0
80
Member Avatar for bettybarnes

i got this error i already checked my table definition [CODE] Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click da.InsertCommand = New SqlCommand("INSERT INTO AdmissionRecord VALUES(@Patient_ID, @Patient_Type, @LName)", cs) da.InsertCommand.Parameters.Add("@Patient_ID", SqlDbType.VarChar).Value = Txtpatient_id.Text da.InsertCommand.Parameters.Add("@Case_Number", SqlDbType.VarChar).Value = txtCaseNumber.Text da.InsertCommand.Parameters.Add("@Patient_Type", SqlDbType.VarChar).Value = IIf(String.IsNullOrEmpty(cboxpatient_Type.Text), DBNull.Value, cboxpatient_Type.Text) da.InsertCommand.Parameters.Add("@LName", SqlDbType.VarChar).Value = …

Member Avatar for CodeWord
0
490
Member Avatar for tombliboo

Hi python fans, hope someone can help me with this. I have a text file the result of another program which looks like: 2,6,3,5,0 4,0,2,5,2 5,7,9,1,0 4,6,8,2,5 2,7,9,1,6 This may vary in size but will always be square i.e. 5x5, 9x9 etc so the code needs to accomodate this, the …

Member Avatar for snippsat
0
197
Member Avatar for shantanusinghal

[CODE=c] int main(int argc, char *argv[]) { ifstream inHandle; Assembler obj; if(argc!=2) { cout<<"InvalidInput ERROR"; } else { inHandle.open("test.asm"); if(inHandle==0) cout<<"FileNotFound ERROR"; else obj.pass1(inHandle); } inHandle.close(); return 0; } [/CODE] this is my code for the main() function, i have tried entering the filename in every possible format but the …

Member Avatar for Narue
0
641
Member Avatar for deolalkar_pooja

Hi to all, I created following table --------------------------------------- crate table publisher(name varchar(20), city varchar(20)) --------------------------------------- I want to run following query. [U]'list all the positions of charcter 'a' from name.'[/U] for this, i ran following query, ---------------------------------------- select patindex('%a%', name) from publisher; --------------------------------------- But, it doesn't show proper output. When …

Member Avatar for deolalkar_pooja
0
325
Member Avatar for shainjetly

hey everyone, first i will show u my code pages. addcart.php [CODE] <?php require_once("../Connection/connection.php"); if(!$_POST['img']) die("There is no such product!"); $img=mysql_real_escape_string(end(explode('/',$_POST['img']))); $q_result=mysql_query("SELECT * FROM tbl_items WHERE item_photo='".$img."'"); $row=mysql_fetch_assoc($q_result); $period = $_POST['period']; $count = $_POST['count']; $query_search1 =("SELECT * FROM `tbl_rates` WHERE `rental_period` = 'Daily' AND `units` = '10' AND `category_id` = …

Member Avatar for Taywin
0
260
Member Avatar for leemyers

Hi i have a php script that create a new user account on my online backup server via a api, when i open in i.e or firefox i get this error message Parse error: syntax error, unexpected $end in /home/public_html/123-backup.com/test.php on line 297 I' am not sure what is missing …

Member Avatar for kmonroe
0
153
Member Avatar for Progr4mmer

I'm wondering if its possible to program using xcode for ios(I pod touch, I phone, I pad) on windows?

Member Avatar for Progr4mmer
0
116
Member Avatar for leemyers

Hello, i have signup page in cold fusion that create a new user on my web application. but when i fill out the form and press signup i get this error message Element SYSUSER is undefined in REQUEST. Any idea to what this could mean?

Member Avatar for dipakatcvrca
0
117
Member Avatar for bharath54321

could anybody help me pls. the below is the text file. It contains n message flows and n nodes. i have to search each message flows which is available in that text file and if i select any text file it shoukd display the nodes which are available ... could …

Member Avatar for Katana24
0
297
Member Avatar for Smithy566

I'm trying to compare two DateTime objects, but I am receiving the following error. error C2664: 'System:: DateTime::Compare' : cannot convert parameter 1 from 'System:: DateTime ^' to 'System:: DateTime' I'm just trying to use the DateTime 'Compare' method to perform the check. Below is an example to illustrate what …

Member Avatar for jonsca
0
2K
Member Avatar for lkrvk

hi guys, i wanted a table to get created with the table name submitted from the form. how shall i go about this, i have tried it with my basic knowledge its here bellow but it dint work well, please help me anyone. [CODE] <?php if (isset($_POST['update'])) { mysql_connect('localhost', 'root', …

Member Avatar for smantscheff
0
163
Member Avatar for narama87

Hello everyone :) , this is my first post in here , well , i want to display a right to left langage like urdu,arabic .. my code is working fine , but doesn't display this kind of langage :rolleyes: , [CODE] <%@ Import Namespace="System.IO" %> <%@ Import Namespace="itextsharp.text" %> …

Member Avatar for narama87
0
795
Member Avatar for bhagawatshinde

Hi, i am getting an error like invalid attempt to read when reader is closed [CODE] Try Dim k As Integer = 0 Dim l As Integer = 0 Dim str_select As String = "select * from Suggetion_master where que_no=" & FrmErrorQuestions.dtgErrorQue.Item(0, FrmErrorQuestions.dtgErrorQue.CurrentRow.Index).Value dtgQueSuggestion.RowCount = 1 nxtlsdquescon.Open() cmd = New …

Member Avatar for bhagawatshinde
0
574
Member Avatar for Lemonader

Hi. It's actually not a C++ code, it's a matlab code. But I hope there's somebody here who can help me. There's not really an appropriate forum here for a matlab code. It's about Gaussian Elimination [url]http://img189.imageshack.us/i/50468910.png/[/url] I already have a code that only needs to be modified. [code] clear …

Member Avatar for peter_budo
0
133

The End.