199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Mbot

Hey, Im trying to write a chat program which should be able to run multiple clients using threads. But I seem to get this "java.io.StreamCorruptedException: invalid type code: 00" error the whole time. My server code: [CODE] import java.io.*; import java.net.*; public class Server{ ServerSocket serverSocket; Socket connection = null; …

Member Avatar for Qiqa
0
582
Member Avatar for lscamaro

Now, before everyone says anything, I know that goto statements are never needed. Having said that, I was given an assignment to implement them into a sort of some type. I was assigned selection sort and figured that if I wrote the sort without go to's, it would be easier …

Member Avatar for Ancient Dragon
0
141
Member Avatar for yigit.hatipoglu

Hi everybody, I really tried to do my assignment but I am lost . Any helping is very helpful , Thanks Write a program that will generate a set of 50 random integers in the range -20 to + 20. The program should display the following: a) The number of …

Member Avatar for nmaillet
0
206
Member Avatar for sHoM

I am creating a network bridge that connects two ethernet cards on the same machine. One of the cards is connected to the LAN and the other is connected to a network device. It looks something like this, [Click Here](http://i.stack.imgur.com/BcoQI.png) I am sniffing packets on both the interfaces and then …

0
317
Member Avatar for iamcreasy

Hi, I used to solve ACM problems, but I used old scanf & printf for input and output.But now i want to use C++ style IO. So, i picked a simple problem, and tried to convert its old style IO to new style IO. The problem : [URL="http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=996"]http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=996[/URL] (in summery, …

Member Avatar for iamcreasy
0
270
Member Avatar for ail swati

When I am trying to create a new directory in my WPF application i am getting the following error. " 'The invocation of the constructor on type 'NetworkApplication.Login' that matches the specified binding constraints threw an exception.' Line number '3' and line position '9'." this is my line of code …

Member Avatar for ail swati
0
204
Member Avatar for adishardis

Hi, I have this fiddle that works but on my website it does nothing. http://jsfiddle.net/adishardis/r3eyD/17/ What is the best way to troubleshoot why this is?

Member Avatar for adishardis
0
687
Member Avatar for muhammads

Hi All, I am not very good with Java and have a project in which i have to use this API ( http://code.google.com/p/jtexteditor/ ) to simply initiate/draw a TextEditor and fill it with the array of data i have. Unfortunatelly, there is no wiki/document/example with this API and i have …

Member Avatar for JamesCherrill
0
257
Member Avatar for asha12@gmail

what are arrays in c++ programming how to do or what is meant by swaping?

Member Avatar for Agni
0
96
Member Avatar for adishardis

Hi, I'm wondering what type of mysqlfield would be advantageous for outputting the containing text as a bullit list in php and if the text should be formatted a certain way. I would be supergrateful for an example! :p Take care Adam

Member Avatar for adishardis
0
784
Member Avatar for Niketh

hi all, I am working on C++ coding of fault simulation algorithm of a digital circuit . The first step involves parsing of netlist files. The sample netlist looks like - # Only 2,3 input gates considered ... INPUT(1) INPUT(2) INPUT(3) INPUT(6) INPUT(7) OUTPUT(22) OUTPUT(23) # comment here 10 = …

Member Avatar for hactor
0
573
Member Avatar for mahela

In my project I used a datagrid and Adodc.datasource of datagrid is Adodc.there in Adodc properties I select "use connection string".I used Microsoft jet 4.0 OLE DB provider and select the connection path to the database as "F:\project\super.mdb". Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\project\super.mdb the path sould be valid when runing the program in …

Member Avatar for AndreRet
0
464
Member Avatar for newprimitive

Hello, I have problem with entering default values in MYSQL database. When i insert new record using phpmyadmin it works fine (empty fields get default value), but when i use the same query in my application (written in PHP), empty fields in html form don't get default value in MYSQL …

Member Avatar for ffghjk
0
245
Member Avatar for owenransen

I'm flumoxed, how do people normally handle CBaseClass::operator== and CDerivedClass::operator== What I have done is illustrated below, but is it good valid C++? I compare the base class members first (using base class ==) and then the derived class members (the rest of the implementation of the derived class ==). …

Member Avatar for rubberman
0
127
Member Avatar for Crima

I am having some trouble figuring out how to Validate data on my robot project so that the robot stays in the range of say 100-150. Also my Go 10 button is only going 1 space even though I have it labled as private void Go10_Click(object sender, EventArgs e) { …

Member Avatar for Momerath
0
175
Member Avatar for opawix

<center></center> <form name="registration_form" method="post" action="register.php" onsubmit="return Validate();"> <table border="0" align=center> <tr> <td><font size=5><center>Name: </center></font></td><td><input type="text" name="names"></td> </tr> <tr> <td><font size=5><center>Email: </center></font></td><td><input type="text" name="email"></td> </tr> <tr> <td><font size=5><center>Username: </center></font></td><td><input type="text" name="username"></td> </tr> <tr> <td><font size=5><center>Password: </center></font></td><td><input type="password" name="password"></td> </tr> <tr> <td><font size=5><center>Password Confirmation: </center></font></td><td><input type="password" name="password_confirmation"></td> </tr> <tr> <td><font size=5><center>Phone Number: …

Member Avatar for opawix
0
210
Member Avatar for maniee

PREHIT/0.05 RETRACT/0.05 $$ NO,>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ,SEARCH FOR A SURFACE ASSIGN/V4=0 ASSIGN/V2=.32 ASSIGN/XOLD=0 ASSIGN/V1=0.01 ASSIGN/V3=0.001 SRCH01 =LABEL/ PNT7B1 =FEAT/POINT,CARTESIAN THEO/<2.739,3.395,V2>,<1,0,0> ACTL/<2.7395,3.399,0.2218>,<1,0,0> MEAS/POINT,1 HIT/BASIC,NORMAL,<2.739,3.395,V2>,<1,0,0>,<2.7395,3.399,0.2218>,USE THEO=YES ENDMEAS/ ASSIGN/V4=V4+1 IF/XOLD < PNT7B1.X ASSIGN/XOLD=PNT7B1.X ASSIGN/V5= PNT7B1.Z END_IF/ IF/XOLD < PNT7B1.X + V3 ASSIGN/V2=V2 - V1 GOTO/SRCH01 END_IF/ ASSIGN/V2=V5 + V1 ASSIGN/XOLD=XOLD-.001 IF/V1 == .01 ASSIGN/V1=0.003 ASSIGN/V3=0.00015 …

Member Avatar for maniee
0
192
Member Avatar for Izzy Kiefer

Hey guys, I've hit a brick wall trying to login to an ssl site to update fields of a form and submit, mainly because(i'm guessing) it has a load of javascript within it and also a several redirects at and after login page. I have managed to come to the …

Member Avatar for LastMitch
0
1K
Member Avatar for marin.kvasina

I've been tryin to make a keylogger to see how C++ handles keystrokes and sends them. I've found some code online and modified it a bit but, this has limitations and isn't accurate enough (+ missing characters from non english keyboards). #include "stdafx.h" #include <iostream> #include <windows.h> #include <winuser.h> using …

Member Avatar for BobS0327
0
240
Member Avatar for Angel78

So I have been wrestling quite some time with this and starting to stare myself blind here. Maybe this is trivial and I bet I am missing something basic so here goes. I have a simple html document with two paragraphs, both are class=show with the id's: id=show1 & id:show2, …

Member Avatar for mrnutty
0
226
Member Avatar for ncis_sg1

**I am having trouble understanding exactly what I am supposed to do with the following instructions.** a. Create a class named Pay that includes variables of type double that hold rate of pay per hour and withholding rate percent. Gross pay is computed as hours worked times rate of pay …

Member Avatar for ncis_sg1
0
208
Member Avatar for raovinesh

hi all, can anyone help me to resolve this issue. I have this header scrip $globe_id=$_GET['globe_id']; header("location: globe_welcome.php?globe_id=".urlencode($globe_id)); It is not working properly. When i am posting data through form is is not showing id in address bar. Its result come like http://mysite/more/globe_welcome.php?globe_id= where i am wrong? can any body …

Member Avatar for LastMitch
0
362
Member Avatar for hwoarang69

i am make a 2d game in java. i have 3 class: Main.java, Player.java, Ground.java. problem i am having is how trying to make my player to jump. i want it so it jump fast, slow down at top, and come down fast on ground. so kind of like real …

Member Avatar for ObSys
0
293
Member Avatar for pavitrakannan

whenever i execute a mysql php code...it says local host not given access to this database..... i just ran other programs an hour back and it showed no problem! now i am not able to connect to tht particular database. i checked the xammp cntl panel....and resatrted mysql and apache …

Member Avatar for Smeagel13
0
258
Member Avatar for daino

I'm looking for some key works which could sum up the below. I'm going to purchase a book or a few books to help me understand these areas. Would anyone be able to suggest books or a book on this topic. The topic is: I want to understand more about …

Member Avatar for daino
0
254
Member Avatar for triumphost

I'm trying to flip an image which has its pixels stored in a vector. For some reason, when I try to flip it, the image gets distorted and gray/fuzzy. Any idea why? My code is as follows: void JNIData::FlipBytes(void*& Result, bool TopDown) { unsigned char* Pixels = &BufferPixels[0]; //vector of …

Member Avatar for mike_2000_17
0
228
Member Avatar for Syrne

Hi there, I'm attemtping to write my own version of the java "headSet" function which steps through a given tree set and returns all elements that are less than the function argument. For example: headSet(30) called for a set such as: [2, 5, 7, 18, 22, 34, 50, 76] should …

Member Avatar for Syrne
0
254
Member Avatar for DelilahDemented

I am trying to change the color of individual cells in a datagridview based on values from the columns. If the CDRGvalue is not blank and the ALOSvalue is greater than the PLOSvalue then I need to change the individual cell back color for the ALOS column (colALOS) and the …

Member Avatar for Reverend Jim
0
324
Member Avatar for dsotelo91

Hi there. I am trying to code a program to add or subtract two polynomials using linked lists. For ex. (+4x^2-2x^1) + (+2x^12-5x^5). So far I have a read function which takes in a string and uses substrings to take the coefficient and exponents and insert it to a node. …

Member Avatar for dsotelo91
0
4K
Member Avatar for testie

Im having some trouble putting together a linked list implementation of a queue. I'm getting a segmentation fault, which I believe is due to my empty() function because in an attempt to fix my empty() function, I made it determine empty based on (current_size == 0) instead of (front_p == …

Member Avatar for dx9_programmer
0
762
Member Avatar for dancks

Ok. As the title says I tried many times to simply write a program that rewrites a file to remove null characters. I confirmed with a hex editor that the file in question has tons on null characters, on average about 1 of every 2 characters in null. So my …

Member Avatar for dancks
0
433
Member Avatar for scottlpool2003

I'm in the basics of learning to code in OOP. So far I've tried simple input/output and succeeded but am now trying to move onto something still rather basic but a step up from previous attempts. Anyway, I'm writing a login script connecting to a PDO database. I've tested all …

Member Avatar for diafol
0
328
Member Avatar for cssweb

hello guys i have a problem with this code when id add a comment and comment insert in database and when i make refresh on the same page i get this warning : One of the fields are still empty, i think the problem in the first code <?php if …

Member Avatar for diafol
0
223
Member Avatar for bleedi

Hi, I've been searching all the internet for an answer for my problem, but none of the sites I've stumbled upon haven't given any results. So, I have a JList, held inside JSCrollPane, held inside JPanel inside JFrame. I have a MySQL database, and another block of code retrieves stuff …

Member Avatar for markzenz
0
2K
Member Avatar for Octet

Hello DaniWeb, I've finally gotten around to swapping from MySQL to MySQL(i), mainly due to it's security advantages with Prepared Statements. In the past I've been adding `include ('/Some/Directory/File.php);` to the top of each page, so that I can store my functions in a secure directory and so that I …

Member Avatar for Octet
0
256
Member Avatar for mmeyer49

I am trying to write a smiple email web program. Whenever I try to get an out going email I keep getting the general message that the computer is denying me access. "No connection could be made because the target machine actively refused it " I have tried this at …

Member Avatar for mmeyer49
0
327
Member Avatar for progoal

hi i need some help, i need to creat a file in access 2003 running a aplication asp.net (c#) using a sql query, if anyone knows that plz tell me:) thanks

Member Avatar for progoal
0
248
Member Avatar for jworld2

I don't want to save all of my python files in the default directory, but if I save them elsewhere, python can't find the path to any modules I might be using. How can I change this to work?

Member Avatar for vegaseat
0
5K
Member Avatar for rahul.ch

public class GenericDemo<E extends GenericDemo> { E innerE; public E doStuff(E e, GenericDemo<E> e2) { //insert code here } public E getE() { return innerE; } } The options are: 1. return e 2. return e2.getE() 3. return e2 4. return e.getE() Option (1) and (2) compile fine. Option (3) …

Member Avatar for ~s.o.s~
0
250
Member Avatar for rumanoid

I am making a program for school where the user has to choose a chapter to learn. when the user has choosen one i want to use a text file where all the words are in: for example In the program you choose chapter 5 then the program has to …

Member Avatar for Reverend Jim
0
366
Member Avatar for Allahwahid

How we can write a program to get out put given below in c?? 1 1 2 1 1 2 3 2 1 1 2 3 4 3 2 1 1 2 3 4 5 4 3 2 1

Member Avatar for deceptikon
0
178
Member Avatar for Squidge

Evening All, I am looking to start a class that dynamically creates a sitemap.xml on command and if possible auto uploads to google. The only thing is all the scripts i have come across by searching google tend to be using static pages. My links are dynamic and are also …

Member Avatar for Squidge
0
592
Member Avatar for MWEB

So i have this index.php code: <form method="get" action="search.php"> <label>Search For: </label><input type="text" name="$res" /> <input type="submit" name="submit" value="Start Search" /> <input type="reset" value="Reset" </form> And this code in search.php <?php $con = mysqli_connect('localhost','user', 'pass') or die(mysqli_error($con)); mysqli_select_db($con, 'piese') or die(mysqli_error($con)); #query database $query = mysqli_query($con, "SELECT `id`,`price` FROM `edit` …

Member Avatar for AndreRet
0
174
Member Avatar for HunainHafeez

i have a page (APPLYforJOB.aspx), now if an registered user ahs signed in and clicked on APPLY for job Button then he will be promoted to page to fill his info but if he is hasn't logged in then he will be redirected to LOGIN.aspx page, I did it successfully …

Member Avatar for JorgeM
0
207
Member Avatar for PowerCheez

I have a small problem. I wrote this script to update the status of my list using a checkbox for each line I want updated. But I (beeing new to this whole thing) can't seem to get my button to do what I want it to do. <?php //ansluter till …

Member Avatar for PowerCheez
0
225
Member Avatar for praneeth_gunda

Hi EveryBody,This is the Code I have written for Simplified DES it is delivering the Cipher of 16-bit size actually it should deliver of size 8 Please help me in solving the Problem and even tell me how 2 reduce the Complexity [code] #include<string.h> char ep[8],p10[10],p8[8],ip[8],ip1[8],pr[10],key1[8],key2[8],p4[4]; int s0[4][4]={{1,0,3,2},{3,2,1,0},{0,2,1,3},{3,1,3,2}} ,s1[4][4]={{0,1,2,3},{2,0,1,3},{3,0,1,0},{2,1,0,3}}; void …

Member Avatar for elava
0
502
Member Avatar for alikhandro

hi all,hope anyone can describe for me what is happining in this code,its about NaryTrees and am new with trees. public class NaryTree extends AbstractTree { protected Object key ; protected int degree ; protected NaryTree[ ] subtree ; public NaryTree(int degree){ key = null ; this.degree = degree ; …

Member Avatar for JamesCherrill
0
107
Member Avatar for eman neercs

I have a table which shows our top sellers and Weeks of Stock left. Its generated by joining an order db with a stock db. I'm struggling with try to capture the really fast movers. Here is the script SELECT a.EAN, a.SKU, a.Name, Sum(a.OrderedQuantity) Round(Avg(a.Price),2) as AvgPrice b.Quantity, round((b.Quantity/Sum(a.OrderedQuantity)),0) as …

Member Avatar for eman neercs
0
115
Member Avatar for //Gonz

Good morning I have an event called "OptionChanged" that is triggered when one of many CheckBox's is changed. string cb = ((CheckBox)sender).Name.Remove(((CheckBox)sender).Name.Count() - 1); gets the name of the changed CheckBox, removes the last letter then copies it to a string. Now, i need to find the relevant bool (named …

Member Avatar for //Gonz
0
250
Member Avatar for //Gonz

Afternoon (UTC +0) all I am having a slight problem with the FileSystemWatcher. The File watcher does exactly what i want it to do (as in throwing an event when needed). However, when this event is thrown the debugger stops with no exceptions. This has never happened to me before …

Member Avatar for //Gonz
0
638

The End.