199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Trle94

Hey all, I'm trying to do something and read text from page to listview in columns, problem is i get first row, but second third etc it dont insert idk why, im talking about ROWs here is my code check it out and let me know what is wrong? Try …

Member Avatar for Reverend Jim
0
133
Member Avatar for phorce

I don't know why I'm having such a problem with this, basically, I want to have a Queue that is constantly running during the program called "Worker" this then works, however, every 10 seconds or so.. Another method called "Process" comes in and processes the data. Let's assume the following, …

Member Avatar for woooee
0
271
Member Avatar for MrNoobieCoder

Hello, I'm currently working on a school project in which i can not get my head around into figuring out how to make a loop until the user has input an interger this is what i have so far : width = "hi" length = "hello" while width != int …

Member Avatar for MrNoobieCoder
0
276
Member Avatar for sudesh.yadav.104

I want to create two textboxes on my window. I used this code case WM_CREATE: hwnd = CreateWindowEx(WS_EX_CLIENTEDGE, TEXT("edit"), TEXT("sending"), WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_BORDER | ES_LEFT, 15, 15, 200, 300, hwnd, NULL, NULL, NULL); hwnd = CreateWindowEx(WS_EX_CLIENTEDGE, TEXT("edit"), TEXT("Receiving"), WS_CHILD | WS_VISIBLE | WS_BORDER, 220, 15, 100, …

Member Avatar for sudesh.yadav.104
0
215
Member Avatar for DeanMSands3

Name says it all. Is it still relevant? I guess wxPython sort of counts. What do you think Daniweb? Now, I don't want to start a flame war -said every troll ever.

Member Avatar for mike_2000_17
0
167
Member Avatar for Roshan92

Dear all, I'm starting on C# now. I had a problem in tackling a question my lecturer asked me to do. Below is the GUI. [Click Here](http://i.share.pho.to/daa36a24_c.png) using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication1 { public partial class Form1 …

Member Avatar for Fenrir()
0
262
Member Avatar for kevinpatel
Member Avatar for broj1
0
101
Member Avatar for wallet123

Hello guys!. I posted a question similar to this, but then i was able to solve that problem so, this new thing arise. I want to practice PHP. I need to learn it becauseill be doing a project using it, im a noob. Means, i know nothing about it so …

Member Avatar for Squidge
0
278
Member Avatar for shlokka

hi everyone, i have a database table that was getting large.... i deleted all the entrys to start again but each time i add a new entry the id is continuing from the deleted list? so instead of going 1 2 3 etc, its starting from 664, as if the …

Member Avatar for JorgeM
0
98
Member Avatar for nathan.pavlovsky

Hello programmers! I am making a player vs. computer Tic-Tac-Toe game in xCode that is a class, with its `run()` method as its only public member function apart from the initializer. I want to decide whether the player goes first, and I created a function to do that called `determineFirst()`. …

Member Avatar for nathan.pavlovsky
0
133
Member Avatar for james.lu.75491856

import os import web ### Url mappings urls = [ '/', 'index', '/.*','notfound' ] for root, dirs, files in os.walk("C:/Users/James/Desktop/server"): for f in files: u = os.path.join(root,f) u=u.strip("/").strip("\\") ident=u.lstrip("C:/Users/James/Desktop/server").replace("/","slash").replace("\\","SLASH").replace(".","DOT") globals()[ident] = open(u,mode='rb').read() exec(""" class %(classname)s: def GET(self): global %(data)s return %(data)s """%{"classname":ident+"server","data":ident}, globals(), globals()) #create a class as if were …

Member Avatar for james.lu.75491856
0
359
Member Avatar for zuki88

#include <iostream> #include <string> #include <stdlib.h> #include <winsock.h>//dont forget to add wsock32.lib to linker dependencies using namespace std; #define BUFFERSIZE 1024 void die_with_error(char *errorMessage); void die_with_wserror(char *errorMessage); int main(int argc, char *argv[]) { string request; string response; int resp_leng; char buffer[BUFFERSIZE]; struct sockaddr_in serveraddr; int sock; WSADATA wsaData; char *ipaddress …

Member Avatar for zuki88
0
133
Member Avatar for PixelatedKarma

G'day, As many of you viewing this may know there is always a right way to do something and a wrong way to do something. So I've come here to see if I could maybe seek some guidance. What I have done is create a dynamic set of form fields …

Member Avatar for PixelatedKarma
0
292
Member Avatar for kal_crazy

How can I figure out the time complexity of a program? The program is of the Travelling Salesman Problem. The aim was to implement the problem in two ways - Dynamic programming vs Simulated Annealing. Now I have to compare the two codes, find out which is faster and give …

Member Avatar for JamesCherrill
0
2K
Member Avatar for aplh_ucsc

This method read the Database and Returns the Username and Password. tblPassword has only one user name and a password. using (SqlConnection dataConnection = new SqlConnection("Data Source=isukoon-pc\\sqlexpress;Initial Catalog=AdsManager;Integrated Security=True")) using (SqlCommand dataCommand = new SqlCommand("select username from tblPassword", dataConnection)) using (SqlCommand data2Command = new SqlCommand("select password from tblPassword", dataConnection)) { …

Member Avatar for aplh_ucsc
0
240
Member Avatar for fheppell

I have an array coming from a mysql statement. It is being convered into an array using mysql_fetch_array. This is then fed into a while loop. I want the array to be reversed. Currently it is printing the results as Bob, 23 Steve, 26 However I want it to echo …

Member Avatar for pritaeas
0
127
Member Avatar for muhammad.a.haq

class moving { private : short x; short y; int value; public : moving (short xa ,short ya,int va); void gotoxy(short x, short y); void gotoxy(short x, short y,bool clear); void shiftright(int x, int y,int value); short get_x() ; short get_y() ; int get_value(); void set_x(int newx ); void set_y(int …

Member Avatar for muhammad.a.haq
0
123
Member Avatar for luan.augusto.9081

My file: http://www.2shared.com/file/Y4I4l2kI/MysticWorld.html Convert to .class file please The errors: C:\xampp\htdocs\EMULADOR\Server\JAVAEX~1\org\MYSTIC~1\MysticWorld.java:221: error: illegal start of expression static class _cls5 ^ C:\xampp\htdocs\EMULADOR\Server\JAVAEX~1\org\MYSTIC~1\MysticWorld.java:277: error: malformed floating point literal switch(_cls5..SwitchMap.org.mysticworlds.WorldObject[type.ordinal()]) ^ C:\xampp\htdocs\EMULADOR\Server\JAVAEX~1\org\MYSTIC~1\MysticWorld.java:277: error: case, default, or '}' expected switch(_cls5..SwitchMap.org.mysticworlds.WorldObject[type.ordinal()]) ^ C:\xampp\htdocs\EMULADOR\Server\JAVAEX~1\org\MYSTIC~1\MysticWorld.java:277: error: case, default, or '}' expected switch(_cls5..SwitchMap.org.mysticworlds.WorldObject[type.ordinal()]) ^ C:\xampp\htdocs\EMULADOR\Server\JAVAEX~1\org\MYSTIC~1\MysticWorld.java:277: error: case, default, …

Member Avatar for JamesCherrill
0
283
Member Avatar for MasterHacker110

I program mainly in C++ but recently took up Java for its advantages. I heard about the mono project and that C# is now cross platform but that the GUI of C# is not. I like Java but I also like C#, Java has some anoying restrictions sometimes (like no …

Member Avatar for sepp2k
0
259
Member Avatar for abhig

*Question: Create Student class as an abstract class in C++. Inherit GraduateStudent and PostGraduateStudent and ResearchStudent classes from Student class. Define proper constructors, destructors and functions related to attendance and examination result. Make necessary assumptions wherever required.* I am not the same guy who posted this http://www.daniweb.com/software-development/cpp/threads/464146/cpp-program , I just …

Member Avatar for abhig
0
291
Member Avatar for sasikrishnasamy

Hi, I have a problem while reading a jsp file. I have a jsp file called scan.jsp. It is a very big file having 9000 lines. It has java script codes, some imported files etc. Unable to read all lines of data when I try the following code. public static …

Member Avatar for sasikrishnasamy
0
261
Member Avatar for MeandJava

Hello everybody, I have some problems with my school assignment. I need to display a picture in a jlabel and i have already some code. Can someone give me some advice how i could get it to work. Thanks in advance. Greetz MeandJava [CODE]import java.awt.*; import java.io.*; import javax.swing.*; public …

Member Avatar for Ranjana_1
0
4K
Member Avatar for facarroll

I can read the session.save_path from the remote server at php_info.php. It is set to "no value". I assume that this defaults to /tmp. I understand that in the absence of some other command, this means that session variable files will be saved here. The error message is Warning: session_start() …

Member Avatar for facarroll
0
201
Member Avatar for MWEB

Hello , so i get an error with ajax when i move the site i scripted to my server ( so on my localhost it works ) . The error is something like origin not allowed by access control allow origin var trimitere = $.ajax({ url: "underpublic/searchforprice.php", type: "get", crossDomain: …

Member Avatar for MWEB
0
169
Member Avatar for facarroll

My web host recently migrated to a new server and in the process upgraded to PHP5.4 I have a snippet that was doing timezone conversion, but since the upgrade the script stops dead on a certain line in the snippet, and though a web page is displayed, none of the …

Member Avatar for facarroll
0
499
Member Avatar for phorce

I have two threads, and, I want one thread to run for 10 seconds, and then have this thread stop, whilst another thread executes and then the first thread starts up again; this process is repeated. So e.g. from threading import Thread import sys import time class Worker(Thread): Listened = …

Member Avatar for Gribouillis
0
11K
Member Avatar for Benjamin_5
Member Avatar for NardCake
0
126
Member Avatar for lewashby

In the following program can someone please tell me why my script is skipping the first else clause and never printing "You have already changed your password"? Everything else is working fine but when I enter in a username and password that have already been entered into the system it …

Member Avatar for lewashby
0
214
Member Avatar for logicslab

Dear pals, I am using Wordpress 3.6 for my activity logging purpose . I need to authenticate user from REST , using their username/password . But Wordpress use a framework named "phpass" . I cannot identify how to compare my given password with database table password . Please advise a …

Member Avatar for logicslab
0
138
Member Avatar for Ann Krizette

can you help me code in VB6 a return command in returning the book that had been borrowed..tnx..need it asap. :(. a very simple code will do..

Member Avatar for Ann Krizette
0
276
Member Avatar for iTechnnn

This is my assaigment: Let's say that we can buy a candy from the vending machine for $1 each. Inside every candy is a coupon. We can redeem six coupons for one candy from the machine. This means that once you have started buying candy from the machine, you always …

Member Avatar for iTechnnn
0
170
Member Avatar for ange1991

HERE I WANTED TO FILL MY BLANK RECORD WITH ITS VALID DATA private void button5_Click(object sender, EventArgs e)//modify { comm.Connection = conn; comm.CommandText = " UPDATE Table1 SET total='" + textBox6.Text + "',result='" + label7.Text + "' WHERE Fname ='" + textBox1.Text + "'"; conn.Open(); comm.ExecuteNonQuery(); conn.Close(); dataGridView1.Update(); } I …

Member Avatar for JOSheaIV
0
212
Member Avatar for Centorpe

I have 2 forms. One is a typed list having 3 controls (fields) loaded from access database (copied to project as part of .xsd). The values in this list represent recommended values of items and will also be applied to another 3rd form eventually. In the 2nd form there are …

Member Avatar for tinstaafl
0
249
Member Avatar for nikolaos

Using NetBeans 7.3.1 i have created a JFrame. A JLabel fills the bottom of the JFrame . The JLabel displays an ImageIcon. I want the ImageIcon automatically resize itself when JLabel resizes. Generated Code from IDE : jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Number_theory/resources/primes_ulam_spiral.gif"))); // NOI18N jLabel1.setDoubleBuffered(true); jLabel1.setOpaque(true); jLabel1.addComponentListener(new java.awt.event.ComponentAdapter() { public void componentResized(java.awt.event.ComponentEvent …

Member Avatar for JamesCherrill
0
693
Member Avatar for muhammad.a.haq

class moving { private : short x; short y; int value; public : moving (short xa ,short ya,int va); void gotoxy(short x, short y); void gotoxy(short x, short y,bool clear); void shiftright(int x, int y); short get_x() ; short get_y() ; int get_value(); void set_x(int newx ); void set_y(int newy); …

Member Avatar for muhammad.a.haq
0
134
Member Avatar for williampalme

I need some urgent help in the Python programming project. In this project I am implementing the file system which provides the capability to store and retrieve data on the virtual drive. The virtual drive is represented by an ordinary file on the computer. This will create the file on …

Member Avatar for TrustyTony
0
290
Member Avatar for adam.meyer.712

I need help writing a program in c++ where i have to write 3 different programs, a webcounter.cpp,webcounter.h, and test_prgm.cpp.So then i have to creat a makefile to compile them together, and the result of the program is "When I create the the counter, I would like to be able …

Member Avatar for adam.meyer.712
0
362
Member Avatar for Rasool Ahmed

Hi guys, I had developed a server control which acts as a container (user can add any control inside the server control). [DefaultProperty("Text")] [Designer(typeof(ContainerControlDesigner))] [ParseChildren(false)] [ControlBuilderAttribute(typeof(SampleControlBuilder))] [ToolboxData("<{0}:Sample runat="server"></{0}:Sample>")] public class Sample: WebControl, INamingContainer { protected override void CreateChildControls() { System.Collections.IEnumerator myEnumerator = items.GetEnumerator(); while (myEnumerator.MoveNext()) this.Controls.Add((TextBox)myEnumerator.Current); } protected override void …

Member Avatar for LastMitch
0
278
Member Avatar for darrylnuyda

Hi Everyone, Can anyone know this warning "2008 is not a valid warning number" for C#? What is missing/Locking? Regards, Darryl

Member Avatar for darrylnuyda
0
125
Member Avatar for Priti_P

Hello, I have below code for my calender invitation. <?php $message=" BEGIN:VCALENDAR VERSION:2.0 CALSCALE:GREGORIAN METHOD:REQUEST BEGIN:VEVENT DTSTART:20130901T121000Z DTEND:20130901T131000Z DTSTAMP:20110525T075116Z ORGANIZER;CN=From Name:mailto:from email id UID:12345678 ATTENDEE;PARTSTAT=NEEDS-ACTION;RSVP= TRUE;CN=Sample:emailaddress@testemail.com DESCRIPTION:Test the first invite LOCATION: Test Location SEQUENCE:0 STATUS:CONFIRMED SUMMARY:Test the first icalendar invitation TRANSP:OPAQUE END:VEVENT END:VCALENDAR"; /*headers*/ $headers = "From: From Name <From …

Member Avatar for LastMitch
0
297
Member Avatar for yagelnnn1

Hey, I need help.. Let's say I made an application and gave it to a friend, how can I made a "Control Panel"..? I mean if i'll click a button it'll exit the application in he's computer..? Thx !

Member Avatar for oussama_1
0
155
Member Avatar for logicslab

Dear pals, I am newbie in RESTful services . I need to call a GET Verb in Server . I know 2 methods 1. Ajax Call we can write it as $.ajax({ url: url, dataType: "html", type: 'GET', data: "id="+id+"&type="+type, success: function(data){ //$("#content").html(data); alert(data); $('table #sample-boxed-2-pagination th a').each(function(){ //this.href = …

Member Avatar for diafol
0
295
Member Avatar for supriya badam

Wat is the size of string?does string have specific size..??as like integer... Float.. Double.. Char...??

Member Avatar for irum.nageen.3
0
2K
Member Avatar for G

Sorry if this is the wrong place to post this. I am new to this site. Actually, I just joinned about 10 minutes ago. Anyway... I want to make a Cocoa applictation using all code in Xcode, not using the Interface Builder. I have searched a lot on this and …

Member Avatar for Ancient Dragon
0
262
Member Avatar for benjo.s.lucas

I have this code that if i enter a number for example : Enter a number: 1 2 3 output is Even:2 Odd:1 Odd:3 but i like it like this: Enter a number: 1 2 3 Even: 2 Odd : 1 3 Here is My code hope you could help …

Member Avatar for benjo.s.lucas
0
125
Member Avatar for shhh

hello i just want to ask if how to echo value/details using this API link that have given - http://themesnmotifs.com/api/wp/f6f60a0e7091a627641f01b9d1dd7536ea4b8496/list_wp - for example i want to echo all the companyand wp_cellphone -- . thank you

Member Avatar for logicslab
0
272
Member Avatar for Madiya122

Hi all, I have just started to learn java. The trial code I have is showing errors at compiling. Here is the code. import java.io.FileInputStream; import java.io.FileNotFoundException; import java.util.Scanner; public class ppp { public static void main(String args[]) throws FileNotFoundException { //Scanner Example - read file line by line in …

Member Avatar for Madiya122
0
509
Member Avatar for Subhradeep

I am using Debian Linux and Python 2.7 with PIL. I want to capture an image from a webcam and store it in a file. What are the ways in which this can be done? Also,I want to covert the captured image for modification using Scipy. What is the procedure.for …

Member Avatar for Gribouillis
0
2K
Member Avatar for Neko Chan

am awredy maek a table wif MS.Access and i want to integrate it in borland c++ builder... and then i will do dat teh table can be found itz record which r true. if teh table awredy found which record dat r true sooooo it will show in c++ form …

Member Avatar for Neko Chan
0
159
Member Avatar for Jaspal_1

#include<stdio.h> #include<stdlib.h> struct tree { int info; struct tree * left; struct tree *right; }; struct tree *root=NULL; struct tree * insert(struct tree *root,int item); void display(struct tree *root); int main() { int a,b,c,item; do { printf("press 1 to enter an element,2 to display,3 to quit\n"); scanf("%d",&a); if(a==1) { printf("enter …

Member Avatar for Jaspal_1
0
146

The End.