64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for enterpise

now I try to develop the tcp chat server So what I have done so far -my server can only received string from the client -My server can show the total of the connection So what I want to ask what do I need to do to make the server …

Member Avatar for NormR1
0
167
Member Avatar for MDanz

The query below is correct. It returns the rows `paul` and `rick` because they have the highest rating of the child rows. This was solved for me with the below link. I am having trouble understanding the query. I understand joins, what i don't understand is `t2.rating is null`? [URL="http://sqlfiddle.com/#!2/97e60/2"]http://sqlfiddle.com/#!2/97e60/2[/URL] …

Member Avatar for smantscheff
0
205
Member Avatar for phorce

Hello, I have 2 massive matrix's and I need to compare one matrix with another.. Now, I have come up with a solution that takes a 5x5 block of the matrix1 and compares it with a 5x5 block of matrix2, this happens until the end of both matrix's.. I'm confused …

Member Avatar for phorce
0
117
Member Avatar for gozo12

[CODE] Dim wri As New IO.StreamWriter("e:\test.txt", True) wri.WriteLine(ListBox1.SelectedItem, true) wri.Close())[/CODE] etc in llistbox1 items , "1" "f1" "f2" when i click for example f1 that code will save it and when i want you save the same item it wit will save it in other line and in test.text file …

Member Avatar for codeorder
0
220
Member Avatar for zachattack05

This is a two part question I guess. I have a form that allows a user to edit an existing record stored in a SQL database. One of the items the users can edit must have a value when the record is edited using this particular form, but it does …

Member Avatar for zachattack05
0
589
Member Avatar for himanshu.1691

i have a page for user registration where i a form with a image tag to it. i want the user to fill the form but as soon as he uploads the image i want the image uploaded to be displayed on the image tag. Then i want all these …

Member Avatar for himanshu.1691
0
628
Member Avatar for MichaelCJ10

I need my overall data to all be output as double, but my counter is an int, and i imagine you cant use a double as a counter, so when it goes to compute my data, theres a mismatch between my counter and the rest . i need a way …

Member Avatar for stultuske
0
301
Member Avatar for MichaelCJ10

I need everything to come out as a double rather than an int. I dont know how to do this other than creating lots of variables! Is there a way i can convert? my counter is causing the problem but i dont think theres another way to do it.The program …

Member Avatar for MichaelCJ10
0
333
Member Avatar for makehaste

Greetings Everyone. I'm working on a program that will take the number of calories and grams of fat, and give the user the percent of calories from fat. The problem arises when I use the Calculate button. [CODE] import java.awt.*; import java.awt.event.*; import javax.swing.*; public class FatGramsPanel extends JPanel { …

Member Avatar for makehaste
0
299
Member Avatar for SgtMe

Bit of a noob question this. I am using a library which has this function: [ICODE]int TextAdd(int x, int y, char *text, int font);[/ICODE] I need to use this function to display a score. I have the variable [ICODE]int score[/ICODE] and I would like to put it into that function …

Member Avatar for SgtMe
0
10K
Member Avatar for syfr

Hello. I got an assignment and I've ran into some troubles. I have 3 classes. The first class could be labeled as the main class, and the other two classes must be linked to the first one. The 1st class is named "Holiday" and has 2 key attributes: tour_guide and …

Member Avatar for syfr
0
446
Member Avatar for zachattack05

I'm writing my own validation code for some of my forms and I'm wondering what the best way to indicate that there is a problem is. Some ideas I've had: [LIST] [*]Highlight the textboxes, checkboxes or controls in red if they have an error. [*]Put a small icon inside or …

Member Avatar for zachattack05
0
181
Member Avatar for newbie1234

Hi, I want to know. How to filter data. I have two mysql table as follow name: task_id task my_id 22 aaa 1 22 bbb 1 23 ccc 3 23 ddd 4 24 fff 5 subname:: task_id task my_id 24 fff 1 now my id is 1. I want to …

Member Avatar for NinjaMediaD
0
129
Member Avatar for javaprog200

Hello, I am working with the AudioClip class. It has methods for playing, stopping and looping an audio file (.wav/.au). Is there a way I can check when an audio file has completed playing? The stop() method is void. Is there any other class I can use? Thank you!

Member Avatar for javaprog200
0
88
Member Avatar for javaprog200

Hello, The following is a bouncing ball applet. When I do double buffering (variables, g1 and image), I still see the flickering . I would be grateful for any help. [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.lang.Thread; public class Ball_Bounce extends JApplet implements Runnable { private Thread blueBall, redBall; …

Member Avatar for javaprog200
0
203
Member Avatar for ujjwale

How to we know that there is the error of javac. "I studied that javac is not internal or external command". This is the error so how do we know that this error has evolved?

Member Avatar for javalover
0
138
Member Avatar for cool_zephyr

hello, i'm trying to check if a cell in datagridview is of type Image with the following code [code] if(cell.Value.GetType()==typeof(Image)) { ...... ...... } [/code] but it's always showing "Object reference not set to an instance of an object" error..could anytell me if i'm doing this right?? If not, how …

Member Avatar for vimit
0
588
Member Avatar for TrickyT

I need to use a GUI for a program (with a main, superclass and subclass) that I've already written (am quite proud of actually. LOL). I'm super new at this so I want to keep it simple and just display the output of my program (an array of inventory objects) …

Member Avatar for stultuske
0
158
Member Avatar for raym.mart

can anyone help me out with the errors .. please [CODE]import java.io.*; import java.util.*; class Directory implements Comparable { int id; String name; String address; int phoneNo; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getName() { return name; } …

Member Avatar for raym.mart
-1
251
Member Avatar for amrita111

What shall be done in order to avoid access to a particular website on my laptop??

Member Avatar for almostbob
0
80
Member Avatar for poolet25

Ok. I am building a program for a small office and I have a little problem with the code so I thought it's better to post a topic before continiue.. I have search into google and a lot of forums about database connectivity and my problem is simillar to other …

Member Avatar for M.Waqas Aslam
0
3K
Member Avatar for RenanLazarotto

Hello guys! I've started a new app that I need to fade two images. One of them will be the background and other will fade-in on mouse hover and fade-out on mouse left. After some search around the internet, I didn't found anything that I could use. Can you guys …

Member Avatar for RenanLazarotto
0
179
Member Avatar for xeffer
Member Avatar for raym.mart

NEED HELP .. where can I do start if I want to create a simple application that do have a record file and a java file ? any suggestions or recommendations

Member Avatar for raym.mart
0
227
Member Avatar for triumphost

How can I check if a template's parameter is empty? Or of a "certain type"? I'd prefer to check if it's empty or not rather than the type because if the wrong type is entered, it'd throw an error anyway.. But I definitely need to know if the parameter passed …

Member Avatar for mrnutty
0
4K
Member Avatar for xopenex

Hi guys, converting .ui to .py to .exe using Qt Designer (PyQt4), Python 2.7, and py2exe Ive been able to do this with Tkinter gui's but having problems with gui's from Qt Designer? First error was due to missing msvcp90.dll which ive downloaded and copied into the python dll directory, …

Member Avatar for xopenex
0
1K
Member Avatar for powermatt

Been trying to figure out how to do this for a while, but I can't seem to find anything that exactly covers what I'm trying to do. I'm really a novice when it comes to vb .net, so this might be staring me in the face and I wouldn't know …

Member Avatar for powermatt
0
115
Member Avatar for kroysemaj

Full disclosure: This is my last stop. I have already done a fair amount of research on this issue. While I've come across lots of implementations of this project, I've not seen this weird behavior anywhere else. The project: As one of the projects for my Advanced Visual Basic course, …

Member Avatar for kroysemaj
0
590
Member Avatar for HoneyBadger

I set up a MySQL databse following this tutorial: [URL="http://www.saltycrane.com/blog/2008/07/how-set-django-mysql-ubuntu-hardy/"]http://www.saltycrane.com/blog/2008/07/how-set-django-mysql-ubuntu-hardy/[/URL] Here is what I did: [CODE]$ mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 Server version: 5.0.51a-3ubuntu5.1 (Ubuntu) Type 'help;' or '\h' for help. Type …

Member Avatar for HoneyBadger
0
2K
Member Avatar for hey.howdy

[CODE] // a code to produce matrix style affect #include "stdafx.h" #include<iostream> using namespace std; int modulus(int Number, int number); char getchar(int lowerlimit, char a, int upperlimit); int modulus(int Number, int number) { int q=Number/number; return Number-(q*number); } char getchar(int lowerlimit, char a, int upperlimit) { return (a+modulus(lowerlimit,upperlimit)); } int …

Member Avatar for histrungalot
1
135
Member Avatar for BlackStar0703

Basically my app obtains data from a mysql server and displays it in a list view. What I want is for data from different columns (but the same row) to be as different items in a Dialog Box. I followed a tutorial on how to connect to a mysql server …

0
148
Member Avatar for dilse4sk

hi every 1. i have a form and i dropped customer dataset as details view on the form and booking dataset as gridview.So now when i insert a record i can scroll through different records and with respect to the customer its shows me related booking aswell. Wat i wanna …

Member Avatar for dilse4sk
0
156
Member Avatar for Sevyt

Does anybody if something like this exists? I am trying to write a small program to plan appointments. And have a overview of them in some sort of calendar(not the mini calendar which you can get from the VB control). Found some website who offer such controls, but honestly $1k …

Member Avatar for Sevyt
0
228
Member Avatar for ruchir7

This is my first post on Daniweb. I am developing a social networking site and the register form isn't quite working as expected. Here is the PHP code : [CODE]<? $title = 'Register' ?> <?require ('scripts/top.php'); ?> <link rel='stylesheet' type='text/css' href='scripts/form.css'/> <div id='content'> <h1> Register an account </h1> <div id='form'> …

Member Avatar for NinjaMediaD
0
2K
Member Avatar for HoneyBadger

Guys I installed mySQLdb in Ubuntu with: [CODE]mydeskt@mydeskt-desktop:~$ sudo apt-get install python-mysqldb[/CODE] but when I go to the python interpreter and type: [CODE]>>> import mySQLdb [/CODE]I get: [CODE] Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named mySQLdb [/CODE]It is installed though, because when …

Member Avatar for HoneyBadger
0
186
Member Avatar for gozo12

in form1 i have two listboxs listbox1 listbox2 loadbutton and savebutton this code will write listbox1.selecteditem into a txt file and loadbutton will load info in listbox2 but i want when i click loadbutton it check if that item is already exist in listbox2 , if not so write selected …

Member Avatar for Mitja Bonca
0
256
Member Avatar for roe1and

I'm just going to put this out there. I was asked to create a spreadsheet with data extracted from MARC records. I have looked at pymarc and cannot get this to work. To be honest I'd rather do this myself and lean something in the process. I have another similar …

Member Avatar for woooee
0
300
Member Avatar for jigglymig

I need to create ever possible binary tree and then count the comparisons an example is if I had a binary tree with 1 and 2 then there are 4 possible binary trees... root = 1 LChild = 2 root = 1 RChild = 2 root = 2 LChild = …

Member Avatar for mrnutty
0
173
Member Avatar for Biiim

Hi thought i'd try here see if anyone can help solve this quicker. First off we have a email database. The main table is the email data, all unique rows per email address with a unique id. eg. emailid,email 1,email@example.com 2,email@example.co.uk Next we have another table which logs the data …

Member Avatar for smantscheff
0
290
Member Avatar for NinjaMediaD

I have been having some issues with a date compare I have been getting a date from a database in YYYY-MM-DD format, and trying to compare todays date to that date to see if it has expired, then also a 30 day from the YYYY-MM-DD to check if it is …

Member Avatar for NinjaMediaD
0
90
Member Avatar for Surfsup

I have 2 links ('black' & 'white'). I wish for the user to click on one of these links in order to addClass and removeClass to the body and for that change of body class to persist throughout as the user browses other pages of the website (or indeed on …

Member Avatar for Surfsup
0
1K
Member Avatar for philspotter

CALLER [code] function showContent(s,i){ // loading //loading_img(1); //s = s.toString(); // i undefined if(i==undefined){ i=""; } if (window.XMLHttpRequest){// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); }else{// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function(){ if (xmlhttp.readyState==4 && xmlhttp.status==200){ //alert('s'+s); document.getElementById('s'+s).innerHTML=xmlhttp.responseText; if(s==0||s==1||s==4||s==7||s==8||s==9){ var v="js"+s; if(document.getElementById(v)){ eval(document.getElementById(v).innerHTML); // THIS IS …

Member Avatar for philspotter
0
258
Member Avatar for Labdabeta

A few friends and I made a bet to see who could single-handedly (we defined that as a team of up to 10 people, all of whom must be personal friends) make the best video game over the course of two years. I am planning on making a first-person horror …

Member Avatar for Labdabeta
0
229
Member Avatar for Pravinrasal

pass dynamic values in json data in java script means when i am changing combo box i want to store values from combo box to json in key -value pair and finally also want length of JSON anyone please help me ...... Here is my code [CODE] <script type="text/javascript"> var …

Member Avatar for AleMonteiro
0
664
Member Avatar for vivekanandaan

[CODE] Dim connectionString As String Dim cnn1 As OleDbConnection Dim cmd1 As OleDbCommand Dim sql1 As String connectionString = "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source = d:\sprrg\sprrg.mdb" sql1 = "update po_detail set po_number=" & txtPoNo.Text & " where po_number=0;" cnn1 = New OleDbConnection(connectionString) cnn1.Open() cmd1 = New OleDbCommand(sql1, cnn1) cmd1.ExecuteNonQuery() cmd1.Dispose() [/CODE] The table …

Member Avatar for Begginnerdev
0
123
Member Avatar for LearnVBnet

I can Insert table from Old_Table_Database to New_Table_Database with this code. [CODE] Dim cmd5 As New OleDbCommand Dim cmd6 As New OleDbCommand cmd6 = New OleDbCommand("select * from " & "Product ", OldConn) Dim dr6 As OleDbDataReader dr6 = cmd6.ExecuteReader For j As Integer = 0 To dr6.FieldCount - 1 …

Member Avatar for LearnVBnet
0
140
Member Avatar for LearnVBnet

[CODE] Dim NewConn As New OleDbConnection(strConn) NewConn.Open() Dim dlt1 As New OleDbCommand("DELETE * FROM Invoice ", NewConn) Dim dlt2 As New OleDbCommand("DELETE * FROM InvoiceDetail", NewConn) Dim dlt3 As New OleDbCommand("DELETE * FROM Receiver ", NewConn) Dim dlt4 As New OleDbCommand("DELETE * FROM ReceiverDetail", NewConn) dlt1.ExecuteNonQuery() dlt2.ExecuteNonQuery() dlt3.ExecuteNonQuery() dlt4.ExecuteNonQuery()[/CODE] How …

Member Avatar for LearnVBnet
0
220
Member Avatar for 4evrmrepylrning

I have been asked to look into getting a web framework up and running here at work. I come from a PHP background and have developed a few tools various people use around the office. I have recently become part of a small team of developers who only use Python, …

0
115
Member Avatar for _Nestor

Hi I'm wondering how you would write a function that could iterate through any stl container so it didn't matter what you were using e.g list, vector, deque and found an item that matched in that list so the function declaration would look something like this [CODE] template <class TypeList, …

Member Avatar for _Nestor
0
258
Member Avatar for Tommy.b

Hello, I have a table with clients: id, name, email and the likes I am looking to find all ID's where emails are the same, I tried the following [code]select db_email, db_medlem, count(*) from kunder group by db_email HAVING count(*) > 1;[/code] however this generates an error due to not …

Member Avatar for sankarssn
0
9K

The End.