64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Lingson

hi, i just start to learn and doing programming with python (was an old timer programmer in other languages). when i saw a project idea about creating your own squareroot function, i tried it. the problem start was when i try to compare the result of x**2 where x is …

Member Avatar for Lingson
0
143
Member Avatar for Gerald19

I am having a problem using the script below. I want to be able to built a database table in html (using an 'id' to select which) and then be able to delete the rows selected by the checkboxes. The building of the table works perfect. But when selecting row's …

Member Avatar for Gerald19
0
242
Member Avatar for Stefano Mtangoo

I cannot get the code work. I want to use placeholder than a fixed value. When use fixed value it works but not placeholder. Please correct me! [CODE=python] import sqlite3 as sql class Tables(object): def __init__(self): print "Class created!" def CreateDb(self, dbname): self.conn = sql.connect("?", (dbname, )) self.cur = self.conn.cursor() …

Member Avatar for Stefano Mtangoo
0
3K
Member Avatar for rapture

Hello all, It seems I'm on a wild goose chase, either that or this is going to be a lot harder than I imagined, and I imagined it being pretty difficult. I posted in other forums here asking for help on this issue, it was suggested that PHP may make …

Member Avatar for rapture
0
232
Member Avatar for lotrsimp12345

Random numbers appear and i have no idea where they are appearing from. Problem is in << operator. Not sure how to fix it. Main #include <iostream> #include "Format.h" using namespace std; int main() { Format format; format.setJustification('l'); format.add_word("one"); format.add_word("two"); format.add_word("is"); cout<<format; return 0; } Implementation #include "Format.h" #include <vector> …

Member Avatar for lotrsimp12345
0
114
Member Avatar for functionalCode

I am working on an application and I have SQL server 2008 running on my local machine when I start the application everything works fine, but when I moved my application to my laptop the program connects to sql server, but it cannot find any of my stored procedures when …

Member Avatar for functionalCode
0
102
Member Avatar for tehbrozor

Hello, I am trying to make a GUI interface for a plotting routine written with matplotlib. The GUI is in PyGtk. One of the things I would like to have is a cross hair through the mouse cursor (a vertical and horizontal line intersecting at the mouse) which moves along …

Member Avatar for tehbrozor
0
429
Member Avatar for Rhuntsman21

I am not sure what I am doing wrong, but I am starting to feel very stupid. I am fairly new to C# so be gentle :) . I have an If Statement that is not working and I am not sure why. Here is my code [code=c#] if ("Admin" …

Member Avatar for hemaljoes
0
165
Member Avatar for agent154

I'd like to be able to download the .net 3.5 API documentation offline so I don't have to worry about having an internet connection, but I can't seem to find anything online that indicates that it can be downloaded. Does anybody know if it can or cannot? I'm referring to …

Member Avatar for agent154
0
127
Member Avatar for Dmennite

I am using Visual Studio 2008. What i am trying to accomplish is a textbox default data: ABCDEFGHIJKLMOP textbox.maxlength = 16 textbox.charactercasing = upper Now the trick is only the letters A-P can be allowed the string has to be 16 chars long. I would love to figure out a …

Member Avatar for Dmennite
0
201
Member Avatar for Tekkno

I have several URL's that display random data from a database. I would like to know a better (more secure) way to display the data. Right now it uses the real table and column names and I would like to disguise them somehow. Here is the syntax of the URL: …

Member Avatar for SKANK!!!!!
0
154
Member Avatar for moonis.ahmed

Hi, Let's say i have Main.jsp and return.jsp. i call the return.jsp from main.jsp and want the return page to return a string which I need to store in a variable in Main.jsp. How can I achieve this? Cheers!

Member Avatar for javaAddict
0
116
Member Avatar for CFROG

Even after reading up on it I'm not sure how to use if(isset(... for what I'm I'm trying to do. Can someone point me in the right direction please before I pull my hair out? My code [code=php] if(isset($_POST['email1'])){ mysql_query("INSERT INTO rating_invite SET user_id='$_SESSION[user_id]', email='$em1'");} if(isset($_POST['email2'])){ mysql_query("INSERT INTO rating_invite SET …

Member Avatar for SKANK!!!!!
0
97
Member Avatar for Nogat21

Hey All, i'm doing this project in c++ consisting in reading an mp3 file and extracting the informations within it. Thing is i'm starting to be pissed by this persistent error that stops me from test the code. This error is, as far as my (limited) knowledge goes, caused by …

Member Avatar for Nogat21
0
183
Member Avatar for jko2326

This program is from the collopy book. I just had to type it in and create a text file so it would compile correctly for a class assignment which I did. But the very last record will not be shown when i compile. This is what is in the txt …

Member Avatar for jko2326
0
137
Member Avatar for mevanga

Can someone help me to write a code in C Programming that will ask the user to enter a PIN and if the PIN is entered 3 times wrongly the program should exit. Thanx in advance.......

Member Avatar for mevanga
0
125
Member Avatar for q8_dreamy
Member Avatar for taylorqwerty
0
118
Member Avatar for ayesha789

Hi, I am using a date in DB in this format 2004-07-15 and Showing the date in the format 15-July-2004 using this code [CODE=php]echo "<tr>"; echo "<th bgcolor=#FFCC00>LA Start Date</th>"; echo "<td bgcolor=#FEE9A9>" .date("j-F-Y",strtotime($row['LAPeriodStart'])). "</td>"; echo "</tr>";[/CODE] Now I want all the records from this date field for the month …

Member Avatar for ayesha789
0
80
Member Avatar for AirGear

can i access cmd command from cpp? for example, C://Program Files/asdf.exe

Member Avatar for necrolin
0
114
Member Avatar for Dimansu

Hi I have a column name date in my listview.Currently its been sorted by date,month,year but I want this column to be sorted by year ,month,date.How can I do it?

Member Avatar for sknake
0
3K
Member Avatar for nkarvi

Hi everyone! I have the following problem I am trying to solve: I have one table with data and need to access the same column twice, everyone with different criteria and then output the results on one table. I tried [code=sql]SELECT e.user, SUM(e.column), SUM(f.column) FROM table AS e INNER JOIN …

Member Avatar for nkarvi
0
113
Member Avatar for Piya27

Hi all, I just need an idea (not code) how to export data from my databse to excel sheet..that too row wise.. I only need a starting idea... m using Visual studio 2008.

Member Avatar for Piya27
0
170
Member Avatar for hayatihamid

i've been trying to store a coordinate in a vector array, and reading the coordinates from a .txt file. there was no error, but the size of the vector is still 0 (i'm sure there was no value in the vector array) here's my code: [ICODE]#include <stdafx> #include<iostream> #include<fstream> #include …

Member Avatar for hayatihamid
0
3K
Member Avatar for polo_coins

I want reset user choice of radiobutton here is my code [CODE=javascript] form action="mailto:meerovichsergey@gmail.com" method="post" enctype="text/plain"> <fieldset> <legend>Your opinion</legend> <input type="radio" name="choice" id="op1" value="All was perfect ,answer to all question." >&nbsp All was perfect ,answer to all question.<br/> <input type="radio" name="choice" id="op2" value="Arcticle is good,but there are a things to …

Member Avatar for essential
0
167
Member Avatar for steven.culshaw

Hi all, What is the best method to move data from an access database into sql server database with different table and field names? If possible could you give me an example? Thank you so much!

Member Avatar for sknake
0
128
Member Avatar for Bigead

Hi! I am a total novice on programming! Can someone tell me a solution for this problem? 1. I made a simple program. 2. I debugged it and tested it. It worked fine. 3. I compiled it and tested it again on my computer. It worked fine. 4. I copied …

Member Avatar for manybox
0
185
Member Avatar for no1zson

I am new to C programming and have been using the GOTO all over the place until today when I was informed it is not preferred practice, and due to its adverse affects on debugging and maintenance should only be used in the rarest of cases. I can understand that …

Member Avatar for hket89
0
150
Member Avatar for faranshabbir

Hello, I compiled my trayicon utility c++ code in visual studio 2005 express edition and tray icon balloons showed up successfully but later I deleted my firewall, switched on to windows firewall and now I am on another firewall software. Now i ran my same project and balloons showed up …

Member Avatar for faranshabbir
0
174
Member Avatar for polo_coins

I wrote this code bellow but it doesn't work how I get to [B]bgcolor[/B] of [B]tr[/B] tag? [CODE][COLOR="Red"] <table id="menutable" name="table1"> <tr onmouseover="ChangeCol()" id="tr_1"><li><a href="main.html" name="main" target="main">Main Page</a><br/></tr> <script language="JavaScript" type="text/javascript"> <!-- function ChangeCol() { var col="#998800"; document.menu.tr_1.bgcolor=col; } //--> </script> [/CODE][/COLOR] thanks.Sergey

Member Avatar for polo_coins
0
183
Member Avatar for hket89

/* File: Kilowatt-hours.c Calculate and print bills for the city company.*/ #include <stdio.h> int main() { int account_number; char code; double bills, kilowatt_hours, peak_hours, off_peak_hours; printf("Please enter Your account number: \n"); scanf("%d", &account_number); printf("Enter Your user code [R/C/I]: \n"); printf("R = Residential\n"); printf("C = Commercial\n"); printf("I = Industrial\n"); printf("\nCode = …

Member Avatar for DangerDev
0
302
Member Avatar for saj_amo

hi developers my name is sajjad i have little problem in asp.net i have made two pages one is login and other is welcome page a user enters name and password in login page after checking valid user it open welcome page and after signout jumps to login page again …

Member Avatar for kameswari
0
172
Member Avatar for agent154

I'm writing a program to convert one image type (for example, png or gif, or tif) to a jpg. What I want to do is to feed the file name into the program via the console, and it will spit out the converted image. How can I make sure that …

Member Avatar for DdoubleD
0
509
Member Avatar for Missy_poo

I need help with writing a program that asks the user to enter distance in kilometers and then converts distance to miles

Member Avatar for Stefano Mtangoo
0
104
Member Avatar for dantheman3141

I appologize for the length of this post, but I have no clue what is wrong with my program. As an experiment, I wrote a XOR encryption program. It isnt very fast, but it works. Apparently, only for strings. I implemented a file encryption function, and it seems that some …

Member Avatar for dantheman3141
0
99
Member Avatar for iamsmooth

Hey guys: I'm working on a chess program for comsci, and surprisingly, the pawn is the hardest piece to program. If you're not familiar with chess, this is the basic move of the pawn: If the pawn is in its initial position, it can move 2 spaces forward, however, subsequent …

Member Avatar for wildgoose
0
286
Member Avatar for madhavb

How do I access the base class protected/public methods in a derived object ? For example A and B are as defined below... [code=cplusplus] class A { int a; protected: int set(int v){ a = v; }; public: A(){}; int foo(){ return 0;}; }; class B : A { int …

Member Avatar for tazboy
0
87
Member Avatar for daviddoria

I know you can't usually define things in the class like this: [code] class MyClass { double DefaultForward[3] = {0.0, 1.0, 0.0}; }; [/code] but I have some values that don't really make sense to set in the constructor - they are more "deeply connected" as THIS SHOULD ALWAYS BE …

Member Avatar for daviddoria
0
152
Member Avatar for lotrsimp12345

word is a private variable. MAin [code] #include <iostream> #include "FrameThePhrase.h" using namespace std; int main() { Frame_The_Phrase frame; char in; ifstream input; bool a=true; bool b=true; bool c=true; string length; while(b==true) { cout<<"to quit type 'q'\n" <<"enter 'c' to get from console\n" <<"enter 'f' to get from file\n"; cin>>in; …

Member Avatar for lotrsimp12345
0
158
Member Avatar for smartness

I have downloaded a lyrics script, and that works, but the author of that script didnt create a file for submiting lyrics... i have tried to create a script but im not a php pro so i ask help from daniweb, to help & create that ""submit.php""... the one who …

Member Avatar for smartness
0
337
Member Avatar for sravan953

Hey guys... I have some code here: [CODE] import os import threading import urllib import time a=0 class launch(threading.Thread): def start_now(): try: urllib.urlopen("http://www.google.com") except: a+=1 start_now() def end(): print("\nOut of 10000 requests, "+str(a)+" requests failed.") for x in range(10001): launch().start() print("http://www.google.com") end() raw_input("<Done>") [/CODE] This works, in the sense that …

Member Avatar for woooee
0
94
Member Avatar for sab786

Hi all,:'( his for over a week now i cant get my head round it so i hope some one can help me... i have a dictionary which reads my file line by line and counts the occurance of tuples ...ok great. then for every key in my dictionary (which …

Member Avatar for woooee
0
310
Member Avatar for bernadlosini

the question given like this The TetraPek manager assumed that you are already familiar with the game rules. Now, the manager wants your program to be able to auto-generate some numbers before the player gets to key in their numbers into the empty boxes. It is up to you how …

Member Avatar for mrnutty
0
236
Member Avatar for nileshgr

I have two class modules namely DbConnection and Database. Database has all methods which are required to manipulate the tables (Insert, update, delete, move). And DbConnection has connection related methods (Connect, Close, StartTrans, CommitTrans, RollbackTrans) I have a global instance of DbConnection in a standard module and I don't initiate …

Member Avatar for nileshgr
0
82
Member Avatar for dzhugashvili

Here is my code: [CODE]#include <iostream> #include <string> #include <vector> #include <algorithm> #include <fstream> #include <stdlib.h>//(for atoi to work) using namespace std; void usage() { cout << "Usage: <input1> <input2> <output>\n"; cout << "\n see README for more details.\n"; exit(1); } int main(int argc, char *argv[]) { cout << "\nshmoosh …

Member Avatar for Ancient Dragon
0
144
Member Avatar for devi1977

Hello all, I am new to regex and need some help with my current code. Below's the code I am using and results I am seeing. What I want is for it to match just the line where it sees "ID:". Would be great if I can get pointers on …

Member Avatar for devi1977
0
110
Member Avatar for llemes4011

What I have is this: [CODE=Java] public abstract class Ability { public class Action extends Ability{} public class Reaction extends Ability{} public class Support extends Ability{} } [/CODE] I have it like that so I don't have all of the Ability-extended classes in their own .java file (to save room …

Member Avatar for llemes4011
0
115
Member Avatar for Vivek_1986

In my application i have used DataGridView for displaying the data available in my table (SQL database). The form containing the datagridview is accisible from the menu in MDI Form. [COLOR="red"]Problem: [/COLOR]Every time i access the datagridview form, the same data gets appended to the old data in the datagridview …

Member Avatar for Vivek_1986
0
217
Member Avatar for mauriciomf

How a function can modify an AnsiString passed to her (and how i can pass AnsiStrings to functions)? Someone can give an example? Im using borland c++ 5.0

Member Avatar for beryllium9
0
564
Member Avatar for des6043

what's wrong about this? why when i compile,it come out expected primary-expression? what is that? [code=c] #include<stdio.h> #include<conio.h> main() { float Lab,Mid,Pro,Quiz,Final,Total; printf("\nEnter your mark for Lab:"); scanf("%f",&Lab); printf("\nEnter your mark for Mid Exam:"); scanf("%f",&Mid); printf("\nEnter your mark for Quiz:"); scanf("%f",&Quiz); printf("\nEnter your mark for Project:"); scanf("%f",&Pro); printf("\nEnter your mark …

Member Avatar for des6043
0
158
Member Avatar for ddanbe

Suppose I have these classes : [CODE=c#] class Square1 ////////// { private int side = 0; //private field public Square1(int side) //constructor { this.side = side; } public int GetArea() //public method { return side * side; } } class Square2 ////////// { private int side = 0; //private field …

Member Avatar for sknake
0
77

The End.