199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Mcdermid

I'm trying to calculate a column from a database called rogaine.mdb. I've been using an SQL statement to do this as I only want to calculate the points for certain teams. This is the code I've been using: Dim teams As DataTable Dim da As OleDb.OleDbDataAdapter Dim sql, connStr, teamName …

Member Avatar for Mcdermid
0
130
Member Avatar for Slacker101

[code]class theGame { private: void question1();//You awake void question2();//Go find a sword void question3();//Go find armor void question4();//Find dragon void question5();//Kill dragon char answer1; char answer2; char answer3; char answer4; char answer5; public: void showQuestion(); void enterAnswer(); }; void theGame::showQuestion() { void question1(); void questoin2(); void question3(); void question4(); void …

Member Avatar for Stinomus
0
171
Member Avatar for Daria Shmaria

Is there a way to convert from const char * to char * without casting away the const? I was warned that it could be dangerous and cause crashes (which I would agree with, since when I ran my program with const_cast, it caused a segmentation fault). Alternatively, is there …

Member Avatar for Daria Shmaria
0
30K
Member Avatar for mohankumar554

hi, how to get the database values into drop down box in python... how to configure the dropdown box....

Member Avatar for vegaseat
0
168
Member Avatar for anujsharma

hi can anyone tell me how to generate random number within certain limit as in between 10 to 20 etc .please help me Thanks anuj

Member Avatar for BestJewSinceJC
0
117
Member Avatar for Muincat

Hi! After many years of not doing any web design at all, I have a neighbor that has hired me to design a basic website for her business. I've set the page up with an iframe because I figured then I would only have to update menu links on that …

Member Avatar for Muincat
0
153
Member Avatar for lagirabo

[code=c] #define AUID 34567 #include <stdio.h> #include <math.h> int main() { float id = AUID; int floatSize = sizeof(float); unsigned char *bits; int i, part2; int mant = 128; bits = (unsigned char*) &id; for (part2 = 0; part2 < sizeof(bits); part2++) { printf("+"); for(i = 0; i < 8; …

Member Avatar for lagirabo
0
101
Member Avatar for arshad115

hi,i am trying to make a global integer array of size 32 in Windows forms.I am Using Visual Studio C++ 2008. here is my code: [code=c++] array<Int32^> ^garray = gcnew array<Int32^>(32); [/code] if i declare it globally then it gives the following error: "error C3145: 'garray' : global or static …

Member Avatar for William Hemsworth
0
124
Member Avatar for bettina702

Hi, I am looking for some pointers on how to password protect a part of my website. I need that password to change every 24 hours and to be sent to several e-mail addresses. Can this be done with PHP? Any help is appreciated!

Member Avatar for bettina702
0
606
Member Avatar for javaAddict

Hi everybody, I have found these books [URL="http://www.amazon.com/Learning-OpenCV-Computer-Vision-Library/dp/0596516134/ref=sr_1_1?ie=UTF8&s=books&qid=1242936833&sr=1-1"]Learning OpenCV: Computer Vision with the OpenCV Library[/URL] from [B]AMAZON[/B] and this: [URL="http://www.papasotiriou.gr/product.ebook.asp?pfid=1761941&prid=1016178"]Learning OpenCV[/URL] from my [B]LOCAL[/B] store Which one do you suggest to buy? Should I wait and order the first one? OR is the second at my local store as good …

Member Avatar for jephthah
0
101
Member Avatar for BlackStar

[ICODE] struct Node{ int n; Node *next; }; struct Some{ Node * ptr; }; int main() { Node *aNode = new Node; Some *aSome; aSome->ptr = aNode; } [/ICODE] Why do I get a Seg Fault here?

Member Avatar for Stinomus
0
220
Member Avatar for koolhq

Ok I am making a website and I have apache 2, php, mysql. I want users to be able to create a website(i got that part, it is easy) but I want user.example.com to redirect to example.com/user with a .htaccess file and sorry this is in the wrong section can …

Member Avatar for koolhq
0
152
Member Avatar for Lukezzz

I am writing 1 line to a file and close the file. Then after a few seconds the file will be open and written to again but then when using the code the string is overwritten. What I want to do is to continue write on next line. I am …

Member Avatar for Lukezzz
0
90
Member Avatar for efficacious

Hi everyone, Major C# newb here. I literally just started learning the language a few days ago.. I've been using just a txt editor and console to compile. I've gone through a beginner tutorial and I feel like I pretty much understand syntax. But now I'm trying to get a …

Member Avatar for ddanbe
0
141
Member Avatar for johnnydarten

I am a C++ beginner and I am trying to write a code about an application for dynamic allocation in memory which uses chained hash tables to implement some data about persons iam using a no as a key and a name as my data I defined the class tables …

Member Avatar for johnnydarten
0
111
Member Avatar for lamiv007

Hello, I'm getting an error [B]"Column count doesn't match value count at row 1"[/B] [CODE] <? include("db.php"); $ClientsName=$_POST['client']; $PrgNo=$_POST['prgno']; $PrgName=$_POST['prgname']; $TrainerName=$_POST['trainer']; $Dates=$_POST['dates']; $Days=$_POST['days']; $ProfFee=$_POST['fee']; $TrainerFee=$_POST['trainerfee']; $ReimbExp=$_POST['rexp']; $HandoutChg=$_POST['handchg']; $InvoiceNo=$_POST['invno']; $TotalInvAmt=$_POST['invamt']; $FeeRecd=$_POST['feerec']; mysql_connect($host,$username,$password); @mysql_select_db($database) or die("Unable to connect to db"); $query = "INSERT INTO tcg VALUES('$ClientsName','$PrgNo','$PrgName','$TrainerName','$Dates','$Days','$ProfFee','$TrainerFee','$ReimbExp','$HandoutChg','$InvoiceNo','$TotalInvAmt','$FeeRecd')"; mysql_query($query) or die(mysql_error()); mysql_close(); echo "Data …

Member Avatar for ShawnCplus
0
181
Member Avatar for BlackStar

if I get this down, then I'll complete my assignment. I want my program to have the ability that whoever is using the program has the ability to control how many customers a restaurant has. Say Pressing C = new customer. And depending on how many times they press c, …

Member Avatar for BlackStar
0
418
Member Avatar for hughesadam_87

Hey guys, I'm new to python so if this is a silly question, pardon me. I have the following basic assignment: Take a user-specified range of lines from some data file, call it input, and write them to an output data file. What I want to do is have the …

Member Avatar for The_Kernel
0
140
Member Avatar for serkan sendur

hi guys, i want to integrate UILEVEL property of windows installer to MSI package. i use orca to modify .msi file, i created a new row in property table and set property to UILEVEl and set value to 2 but it didnt seem to change anything. do you know how …

0
81
Member Avatar for honeybits

I took a test last night and I had a program due at the end. I could not figure out. I would like to understand what I did wrong and what I need to remember for future reference. Here is what I had and the instructions. Using the Visual Studio …

Member Avatar for efficacious
0
133
Member Avatar for elitedragoon

Say I got a number, I enter it in. (like 5). Now I want to convert that to a text string that represents that number (five). I also want it so that if I were to print a big number like 543 or something it will print that out in …

Member Avatar for ArkM
0
146
Member Avatar for kashn

Hi, I'm trying to figure out how can I make split read from the file and recognize how to put the strings into an array from a file, based on a new line break. Example of my txt file: [ICODE]This will be my first huge paragraph, it will contain many …

Member Avatar for javaAddict
0
219
Member Avatar for flash121

I want to read a jpg image from a file to an Image object and then paint it on my JPanel, but the image doesn't appear.I've tried drawing some other stuff on the panel (like lines etc.) and everything appeared without any problems. My code: This class represents my JPanel: …

Member Avatar for flash121
0
178
Member Avatar for Hype

Hello, I was wondering if it would be possible for someone to point me in the rgth direction of how to read emails using PHP? What I am wanting to do is have people send me an email. In the email will be an image and some text. I want …

Member Avatar for Hype
0
127
Member Avatar for Temax

Is someone who can help me; I'm trying to get an image from a folder and show it: Here is my code, logos is the directory; the problem is that I'm getting only the name of the image! $handle=opendir('../logos/'); while (false!==($file = readdir($handle))) { if ($file != "." && $file …

Member Avatar for koolhq
0
104
Member Avatar for Isy

I am creating a mobile game using Netbeans IDE 6.0.1 but I have a problem adding new configuration I get the following error: java.lang.NullPointerException at org.netbeans.modules.mobility.project.ui.customizer.NewConfigurationPanel.isValid(NewConfigurationPanel.java:198) at java.awt.Component.invalidateIfValid(Component.java:2740) at java.awt.Component.setLocale(Component.java:1810) at javax.swing.JComponent.<init>(JComponent.java:595) at javax.swing.JPanel.<init>(JPanel.java:65) at javax.swing.JPanel.<init>(JPanel.java:92) at javax.swing.JPanel.<init>(JPanel.java:100) at org.netbeans.modules.mobility.project.ui.customizer.NewConfigurationPanel.<init>(NewConfigurationPanel.java:96) at org.netbeans.modules.mobility.project.ui.customizer.J2MECustomizer.run(J2MECustomizer.java:304) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986) anyone know what …

Member Avatar for peter_budo
0
253
Member Avatar for kenji

I bought a bunch a cheap books on Python and am wondering whether I should read them as Python 3 introduced changes to the language and so to speak broke old code as far as I can tell. I am reading Programing in Python 3, and after that I was …

Member Avatar for kenji
0
135
Member Avatar for custurd12

[code] import java.io.*; import java.util.*; public class lab11_2{ Scanner in=new Scanner(System.in); private int month=12; private int sum; private int value; private int rainfall; private double total=0; private double average; private double standard_deviation; private double largest; private double smallest; private double months[]; public lab11_2(){ months=new double[12]; } public void setMonths(){ for(int …

Member Avatar for JamesCherrill
0
2K
Member Avatar for cguan_77

hi, how to use the window onload event on javascript.. for example i got a function and i want that function to execute during page load. any ideas is greatly appreciated... thanks...

Member Avatar for koolhq
0
247
Member Avatar for hyperzero4

Hello, I'm doing a project doing atomic models and am using a toolkit that was developed for Python 2.4 on Ubuntu. I have Python 2.4 installed as my default python currently; however, when I download the tools I need from the synaptic package manager. They only work for my original …

Member Avatar for woooee
0
156
Member Avatar for Venom Rush

Do arrays not store inverted commas and apostrophes? This seems to be the case with a project I'm working on and it's very annoying. I'm pulling small strings from a DB, some of which contain inverted commas or apostrophes, and when I try echo them the ones with the apostrophes …

Member Avatar for Will Gresham
0
77
Member Avatar for dirnthelord

I am trying to implement these patters using for loop....I am having difficulties with them....If someone can help, would be great!! I attached the pattern to a Image.... [ATTACH]10180[/ATTACH] I tries this code for the third pattern...I have no Idea how to get them done....can anyone post codes for all …

Member Avatar for arshad115
0
151
Member Avatar for gigantic

hi, i want to draw rectangle based on mousedrag event. if user dragging the mouse, then the rectangle on the applet should increase or decrease basing on current mouse coordinates. i have the following code. in the following code i am using [b]SelectionArea[/b] class which extends a canvas on which …

Member Avatar for zyaday
0
687
Member Avatar for ned69

Hi All I'm a newbie at XSLT and I need help to do the following. I am trying to transform the attached XML so it inserts a blank row whenever the current account number(curACCTNO) does not equal the previous account (preACCTNO) number i.e. group similar rows with the same accno …

Member Avatar for ned69
0
261
Member Avatar for rickarro

Hey Guys, I need a little help. I have a calendar script that I want to write a query for and pull out the day of the week, then have it send an email showing all the entries for that day. Unfortunately i'm querying a day, month, year as seperate …

Member Avatar for rickarro
0
168
Member Avatar for kiddo39

I'm trying to locate the 'x' positions of certain pixels. Here's and example image: [url]http://img404.imageshack.us/img404/3418/10x.png[/url] if I run this code it gives me the 88 'odd' pixels that I'm looking for: [code] from PIL import Image i = Image.open('10x.bmp') # I save it as a bmp for pixel in i.getdata(): …

Member Avatar for kiddo39
0
2K
Member Avatar for David.lewing

How do you store info (such as highscores, phone numbers, etc.) for your python program? I am thinking like you enter things into a list and then the next time you open the program you can acces that list with all the old info. Thanks.

Member Avatar for David.lewing
0
143
Member Avatar for arshad115

Hi,I want to create a picturebox at runtime.i mean when i click a button then,the picturebox is created. i have tried this code, but it doesnt work. [code] PictureBox^ pct; pct=gcnew PictureBox; pct->Location = Point(240,210); pct->Size.Height= 30; pct->Size.Width= 30; pct->BackColor.Aquamarine; Controls->Add(pct); pct->Visible=true; [/code] i am using visual c++ 2008. after …

Member Avatar for arshad115
0
795
Member Avatar for justinmyoung

I'm transferring my css gallery site to a wordpress platform, and it has gone fine. Except I'm having difficulty with showing 12 posts on the index.php page - it shows 10 posts and leaves the two spaces at the bottom empty. Is there a way to configure how many posts …

Member Avatar for jhz
0
97
Member Avatar for netdoer

[code=php] if(!$sqlStr==$sqlStr1){ echo $sqlStr; }else{ echo $sqlStr; echo "<br>"; echo $sqlStr1; echo "<br>"; echo "No changes were made!<br>"; } [/code] This statement produces the same results whether or not the "!" statement is included. e.g. [icode]if(!$sqlStr==$sqlStr1)[/icode] produces the same results as [icode]if($sqlStr==$sqlStr1)[/icode] Why?

Member Avatar for netdoer
0
89
Member Avatar for aashishn86

i need to write a function to remove consecutive slashses from a string i wrote this [code] for( i=0; i!=b; ) { var slashone = strname.indexOf('/',i+1) i=slashone var slashtwo = strname.indexOf('/',i+1) i=slashtwo //alert("index of slash one" + slashone) //alert("index of slash two" + slashtwo) if( slashone == (slashtwo-1)) { alert("Remove …

Member Avatar for aashishn86
0
147
Member Avatar for soultrav

How do i compare an object with null? From what i've seen right now, at execution an NullPointerException will be thrown :S For example, if I have a list: [code=java] class List { private Node data; private Lista urm; public List(Node d,Lista u) { data = d; urm = u; …

Member Avatar for Zibo
0
7K
Member Avatar for madtorahtut

Hello! I'm having some trouble understanding how arrays are passed. From my understanding, my code here passes a pointer to the first element of the blah array, which is "var1=5". My question then is how can I move to the next element of my blah array, "var2=234234" in my filevars() …

Member Avatar for madtorahtut
0
334
Member Avatar for kailisr

//I am haing trouble creating this program. There is basically only one part that I can't figure out. I need to match up my array to my string. I need something that will force the first strings in each to equal eachother, then use a counter to match the rest. …

Member Avatar for tux4life
0
128
Member Avatar for yairzick

I have a class holding a pointer to a templated class: [ class A { protected: Feature<Base>* m_p_feature; }; now I want to derive A with some derivative of Base: class B : public A { public: B() { m_p_feature = new Feature<Derived>(); } }; where Derived is Derived from …

Member Avatar for siddhant3s
0
93
Member Avatar for dba-dev

Some design advise please. I have the following 2 tables. How far does one go with referential integrity. In the below example, the schools table has type_name (which is ... 2 elementary, 3 high school, 4 baccalaureate degree..... I have created a child/parent table reference between 'schools' and schools_type. I …

Member Avatar for dba-dev
0
100
Member Avatar for ssreevidya.m

Hi, How can I delete duplicate records from a table in a single query. Thanks in advance.

Member Avatar for Aslam Patel
0
100
Member Avatar for Frostra

Below I described a complex polynomial which is a part of my newton method. When I define the complex number [x = new ComplexNumber (0,0)] it only returns 0 or 1. Also I have overriden the basic string format to make it look like a complex number, but it doesn't …

Member Avatar for javaAddict
0
168
Member Avatar for letlet_pogs

This is the sample table : [CODE] CREATE TABLE contacts ( id character varying NOT NULL, CONSTRAINT pkey_id PRIMARY KEY (id) ) [/CODE] I use PHP with PostgreSQL database..if i will run my PHP code: Example: ADD ID NUMBER <-- If i will click this, the message below will appear: …

Member Avatar for letlet_pogs
0
88
Member Avatar for creativehacker

Hai frnds. I started doing a project for my college [B]online Examination[/B] This project is exclusively for college for conducting Aptitude and Reasoning test. There are 2 groups MBA MCA and these 2 are divided as MCA I yr MCA II yr MCA III yr MBA I yr MBA IIyr …

Member Avatar for keet_kaat
0
128

The End.