199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for aman rathi

Hello everyone first of all thanks to daniweb and all users to help me lots of time. now come to problem i am learning java from last one month today i wrote a program to swap two objects it is running but not performing desired task. all instance fields are …

Member Avatar for aman rathi
0
242
Member Avatar for Aviras

Hello everyone. I just started on 'converting' my multiplayer text RPG into a graphical form. What I am trying to do is this: Create a title window, basicly just a JPanel with one image filling the space. To this JPanel I add a MouseListener. When a user clicks the window …

Member Avatar for Aviras
0
424
Member Avatar for felix001

Can anyone help. Im trying to create 2 drop down lists (using the select tag). Based on the choice of the first drop down list the second list is populated. Thanks,

Member Avatar for felix001
0
143
Member Avatar for jacksantho

hi, I am facing parser error while embedding php tag in text box value. print "<tr><td><font color=\"#0080FF\" face=\"sans-serif\" size=\"2\"><b>emp :$nbsp</b><input type='text' name='txt1' size='10' style=text-transform:uppercase maxlength='7' [B]value="<?php echo $_POST[txt1];?> >[/B]</font></td></tr>"; please help me out.

Member Avatar for jacksantho
0
158
Member Avatar for Prankmore

[code = c][/code] I am trying to write a program that takes a 10 digit phone number and inserts hyphens between the 3rd and 4th digit and the 6th and 7th digit eg. Enter phone number: 5553459875 Your number is 555-345-9876 I've decided that reading the number as an integer …

Member Avatar for Prankmore
0
354
Member Avatar for NEEDHELPINJAVA

Hi, I'm new in this forum and I'm here to ask help on a topic the lecture I didn't turn up. I'm new to creating a search function for my Java application where the user can view the information of the books, such as title, author and the price of …

Member Avatar for Killer_Typo
0
236
Member Avatar for hqt

I'm using DevC++ 4.9.9 and have a problem while I'm debugging: I want to view array C so I will: press F4 and type C. but for my example: if my code is: [CODE]for(i=1;i<=10;i++) for(j=1;j<=10;j++) c[i][j]=10;[/CODE] the left panel (that I saw value) will have 100 line of C. (each …

Member Avatar for pseudorandom21
0
146
Member Avatar for ba.accounts

Hi, I am fairly new to Java and am about to begin a programming course in the next week. I am preparing by completing exercises and am stuck on this particular one. Basically, i need to read a file in a certain format and calculate some figures and writing the …

Member Avatar for JeffGrigg
0
294
Member Avatar for Awah Mohamed

hi guys i want to use php websockets... i made a web socket but it didnt work i hope you guys know some javascript couz the client page is made with javascript and html5 this is the server's code: [CODE] <?php error_reporting(-1); $host = "127.0.0.1"; $port = 8000; $socket = …

Member Avatar for Awah Mohamed
0
253
Member Avatar for manzoor.ilahi77

Hi please help me on php form to pdf conversion and at the same time it should save to database visit this [URL="http://servunity.in/form_classII.php"]http://servunity.in/form_classII.php[/URL] I want pdf to look like as in the url [CODE] <form id="form_pdf" action="classII.php" method="POST"> <input type="text" class="f_input input1" style="width:200px;" name="surname" maxlength="30" value="Surname" onBlur="if(this.value=='') this.value='Surname'" onFocus="if(this.value =='Surname' …

Member Avatar for cereal
0
162
Member Avatar for complete

In C# code I have a floating point variable number that I want presented as a string but I want it formatted in a particular way. if I have a float number, like, 0.532492829839, for example and I want it represented in C# code as "53.24%", how would I do …

Member Avatar for nmaillet
0
354
Member Avatar for deliezer

Hi I am trying to write something that compiles and runs correctly on both Linux and Windows. I am running bash in Ubuntu on Linux, and I try to set environment variables in the makefile just before the compile lines. I then write something in the code like [CODE] int …

Member Avatar for deliezer
0
2K
Member Avatar for eoop.org

Hi, i want to make a own linux os. Does someone know where to get the opensoruce?

Member Avatar for eoop.org
0
135
Member Avatar for JoshuaBurleson

I am having issues finding a way to have the below program search for any given string of "query" in the keys of the dictionary AB and return the value, or the key and value. Thus far I just done what I have preset in the dictionary; Ashley and Joshua, …

Member Avatar for JoshuaBurleson
0
300
Member Avatar for tubby123

[CODE]union { int a; char b; char c[10]; }u1; void main() { int l=sizeof(u1); printf("%d",l); getch(); } [/CODE] This gives the output as 10, shouldnt it be 2 + 1 + 10 == 13 ??? Can some1 explain ?

Member Avatar for Adak
0
84
Member Avatar for drdaco

This is dumb and I've been banging my head against it for the better part of the day, so perhaps someone here could help me see the light I keep missing. Let's say I have a string of 0/1's (or heads of tails coins, or yes or nos etc) For …

Member Avatar for Adak
0
251
Member Avatar for vboopathicse

hi I'm need changes in my code. I'm display records by search. but i want to export those search records into excel, PDF, and word format. I'm creating only export to excel format. but it exports all rows in entire table. i need only that searching records to export. See …

Member Avatar for vboopathicse
0
175
Member Avatar for abhi10kumar

I am storing PHP variables in DB like [CODE]Dear $name, You are now member of TL, and your address is $address, $city.[/CODE] If I echo variables they are showing as it is.. The variables have values and I want to send there values into an email.. How this can be …

Member Avatar for vibhaJ
0
171
Member Avatar for Studio

I am currently working on creating a vertical scroller and have got so far but have got stuck on some of the functionality My HTML looks like this [CODE]div class="outer"> <div class="slider-content clearfix"> <ul> <li><img src="images/img1.jpg" width="200" height="200" alt="img1"></li> <li><img src="images/img2.jpg" width="210" height="200" alt="img2"></li> <li><img src="images/img3.jpg" width="220" height="210" alt="img3"></li> <li><img …

Member Avatar for Studio
0
113
Member Avatar for Hani1991

Hello every single one :) I want to introduce you how to enable Javascript in web browsers where it's disabled.. This is only a try I'm going to make... And I want someone to kindly correct me if I'm wrong, or to say I'm right if I'm so. To enable …

Member Avatar for Pro2000
0
107
Member Avatar for bluehangook629

I need help with managing my forms. below is a sample code for one of my button that opens a new form on button click. But today while I was testing the application, I found out that everytime I have button click, I get a new instance of the same …

Member Avatar for bluehangook629
0
138
Member Avatar for makimbo

I wrote this function in PHP. It divides each variable $votesX, where X is a politic party name, for 1,2,3... to the value of $seats. Now I've to search the the biggest values of the array and replace them with a zero. How can I do it? [CODE]function hondt ($votesA,$votesB,$votesC,$votesD,$votesE,$seats){ …

Member Avatar for Hani1991
0
256
Member Avatar for fonzali

hi guys , I rented a gps from the airport and it had no problem giving me the directions , while using it , I kept wondering how it picks the routes , and can python be used to program these devices and how ? a short code would be …

Member Avatar for fonzali
0
94
Member Avatar for Muralidharan.E

Hi friends If we will override nonstatic methods or if we will overload non static methods means shall we say it is the run time polymorphism? Is that so how to give example for compile time polymorphism in java? If i will override static method means, friends are saying it …

Member Avatar for Zetlin
0
270
Member Avatar for Ritesh_4

Hello Is there a tutorial or example which could enable me develop a flipbook similar to the one shown on this link: [url]http://www.20thingsilearned.com/en-US/home[/url] ? I've tried google, but not found anything similar, except that link itself

Member Avatar for Ritesh_4
0
146
Member Avatar for spartan.pk

Hi I'm developing a web application and needs to Integrate it with Authorize.NET AIM. I have tested the code provided by Authorize.NET it works fine for Single product. This code has an option to use for line items and is commented by default. I uncommented it and then used it …

Member Avatar for HITMANOF44th
0
483
Member Avatar for westony

I am developing an application with Visual Studio 2010. my application works fine in 1024 x 768 resolution but it doesn't fit in my laptop's screen which happen to have 1366 x 768. my question is how to make my application automatically resize according to the resolution ? Thanks !

Member Avatar for westony
0
619
Member Avatar for rotten69

Hey everyone, my if-statements are working as expected. Actually, they are not working at all. The syntax is right but they are never run. The program terminates before it runs them. [code] public static void main (String args[]){ Scanner input = new Scanner(System.in); Display fName = new Display(); // creating …

Member Avatar for aman rathi
0
133
Member Avatar for exicar

Hello, I´m currently developing an application which sends data to my Windows server. I already wrote the following code (server-side) [CODE]namespace server { public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); Server s = new Server(3000); s.ExceptionReceived += new Server.ExceptionReceivedHandler(s_ExceptionReceived); } void s_ExceptionReceived(exception e) { MessageBox.Show(string.Format("DateTime: {0} …

Member Avatar for exicar
0
358
Member Avatar for Pravinrasal

this is in execute method() { Process p = Runtime.getRuntime().exec(command, env); } System.out.println(r.execute(" C:\\Program Files\\Java\\jdk1.6.0_21\\bin\\javac demo.java” , null)); System.out.println(r.execute(" C:\\Program Files\\Java\\jdk1.6.0_21\\bin\\java demo”, null)); i want to run demo.java from this code i used timer class also. i got the error "Illegal execution time" i dont know why when i run …

Member Avatar for NormR1
0
347
Member Avatar for coroll

Hi all, I want to understand the purpose of .resx file. i konw that Designer.cs is the class for the form. i read that .resx stores resources. 1. But what kind of resorces? 2. where is it used in the form? 3 when i opend it shows only "String1". Why? …

Member Avatar for darkagn
0
137
Member Avatar for vaibhav4u

Hello All, I want to integrate a map in php like in this website. [url]http://hotpads.com/[/url] If anybody have solution for this.please reply me as early as possibly. Thank You.

Member Avatar for almostbob
0
94
Member Avatar for lrh9

I'm working on a project where I would like to compare collections of words, but I have additional constraints I need to account for. The collections are like a set in that order doesn't matter for the comparison. However, in my problem equal elements are significant. E.g. the collection of …

Member Avatar for TrustyTony
0
141
Member Avatar for pclfw

I was asked a question a few days ago that I cannot easily answer. "Why don't we put all of our small application databases into a single database?" Well, There's nothing really stopping us. All of our small apps were developed in house so we don't have any problems with …

Member Avatar for Netcode
0
153
Member Avatar for Oneryavuz

[CODE] Public Sub imageload(ByVal index As Integer, ByRef imagedescription() As String) Dim da As New OleDbDataAdapter("Select Foto From Images where Photoindex = " & index & ";", Form1.baglanti) Dim dt As New DataTable Dim ms As New MemoryStream da.Fill(dt) If dt.Rows.Count > 0 Then Dim arrimage() As Byte = dt.Rows(0).Item(0) …

Member Avatar for Netcode
0
2K
Member Avatar for DesignGhosts

Hi Guys, Basically I have an application that reads in a .hex file and I want to be able to then sort the hex values out line by line into a 2D Array ready for further processes. Example of a .hex file [CODE]:10010000214601360121470136007EFE09D2190140 :100110002146017EB7C20001FF5F16002148011988 :10012000194E79234623965778239EDA3F01B2CAA7 :100130003F0156702B5E712B722B732146013421C7 :00000001FF[/CODE] Below code is …

Member Avatar for DesignGhosts
0
239
Member Avatar for hqt

I'm sorry because I think this is a popular fault but I haven't found why it happened yet. this is a code that has that fault: [CODE] void readfile(){ FILE *f; int u,v; f=fopen(fi,"r"); fscanf(f,"%d%d%d%d",&n,&m,&s,&t); for (int i=1;i++;i<=n) for (int j=1;j++;j<=n) c[i][j]=(i!=j)? Oo:0; for(int i=1;i++;i<=m) fscanf(f,"%d%d%d",&u,&v,&c[u,v]); fclose(f); } [/CODE] when …

Member Avatar for hqt
0
630
Member Avatar for emilakia

here is the test.html [CODE]<html> <body> <form action="test1.php" method=post> Name :<input name= "name" type="text"> </body> </html>[/CODE] And here it is the test1.php [CODE]<?php $name= $_POST['name']; echo $name; ?>[/CODE] But it doesnt display the name .Can anyone help me ??

Member Avatar for Hani1991
0
280
Member Avatar for riotburn

I am writing a polynomial class but the code I have written to overload the ostream operator<< goes into a infinite loop for the first term. I tried to step through but Visual Studio 2010 goes into linker(?) code instead of only stepping through my code. (How to change the …

Member Avatar for riotburn
0
118
Member Avatar for vinaysrk919

what code i will use in asp.net to insert,update,delete & select data into oracle 10g..

Member Avatar for Netcode
0
151
Member Avatar for monaiz

So like this Textbox1 has this text [url]http://www.facebook/whatever1[/url] [url]http://www.facebook/whatever2[/url] [url]http://m.facebook/whatever3[/url] [url]http://m.facebook/whatever4[/url] [url]http://m.facebook/whatever5[/url] I want it on a button press it will change any urls with [url]Http://www[/url]. to [url]http://m[/url]. so at the end after button press it will be [url]http://m.facebook/whatever1[/url] [url]http://m.facebook/whatever2[/url] [url]http://m.facebook/whatever3[/url] [url]http://m.facebook/whatever4[/url] [url]http://m.facebook/whatever5[/url] And Also i need it on button …

Member Avatar for Netcode
0
159
Member Avatar for Ronene

Hi guys, I need to create two separate applications in C++ , where the first application is a window , and the second application has a button and it needs to close the first window. Both applications must be two separate programs ! [B]I can't use FindWindow()[/B] therefore , I …

Member Avatar for JasonHippy
0
230
Member Avatar for vishalrane

how to handle the database when multiusers are inserting data at same time flow 1.First user click on save button 2.sp_1 will be execute which is used to insert the data in table1 3.primary key value will be retrive from sp_1 to aspx.cs form. 4 sp_2 will be execute next. …

Member Avatar for vishalrane
0
136
Member Avatar for blacknred

I have a file of format: BRAND VERSION MODEL OPTIONS BOUGHT ------ ------- ------- ------- ---------- toyota lxi 2007 4 years ago nissan mxi 2008 3 years ago Actually the formatting goes awry when I save- So its Brand(toyota nissan under it) VERSION(lxi mxi under it) MODEL(2007 2008) OPTIONS -this …

Member Avatar for blacknred
0
161
Member Avatar for muthu1802

How to Load data with refrential integrity in java (Teradata). if I ran the work flow the data should be loaded to final table. so that i need to populate the source tables with proper refrential data. how to populate refrential data to the source table properly. Thanks in advance.

Member Avatar for muthu1802
0
171
Member Avatar for jabeen111

how can i insert values of text fields values in mysql db i m using php mysql and ajax ajax to search seat numbers bases of batch, degree and semester this search successful but it cannot insert another table may be using array using this field so how i use …

Member Avatar for jabeen111
0
227
Member Avatar for coroll

Hi all, when i execute it gives me this exception. I am trying but i coudnt slove. Plz help me. InvalidOperationException ExecuteNonQuery requires an open and available Connection. The connection's current state is closed. it points to this line -> "int executed = com.ExecuteNonQuery();" this is my code: [CODE] try …

Member Avatar for coroll
0
162
Member Avatar for somon

Here is the thing, as you might know AdMob has a `AdSize.*` function, where u put `Banner` to show banner ads, and AD_banner` for tablet banners, what i want to do is take a screen size of a device so that i could throw it in my if statement and …

Member Avatar for peter_budo
0
194
Member Avatar for oglatinoloco

I have a project, I was tasked to make an interactive map of the Philippines using vb6. When you click on a certain region/city/town, a window would pop-out showing the notable event, land marks, & info of that location. The problem is i don't know how. Please help me.

Member Avatar for slepnot
0
163
Member Avatar for Angle90

Hello everyone, I need help here, using C# 2008 Express i created a mini internet browser that runs perfectly, but i want the mini browser when launched to load a local .html file "welcome.html", so far no joy, can anyone put me through please, I just want a mini browser …

Member Avatar for Angle90
0
111

The End.