199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for vijiraghs

In the following html code, <html> <head> <title>Blogging</title> <link href="style.css" rel="stylesheet" type="text/css" /> <script type="text/javascript"> var tpe; var islogin = 0; var userid; function ajaxFunction() { var xmlhttp1; if(document.getElementById('searchtype1').checked == true) tpe = 1; else tpe = 2; if (window.XMLHttpRequest) xmlhttp1=new XMLHttpRequest(); else xmlhttp1=new ActiveXObject("Microsoft.XMLHTTP"); var searchvalue = document.getElementById("keyword").value; var …

Member Avatar for Airshow
0
144
Member Avatar for hwoarang69

i need help with merge sort. struct List_A { int data; struct List_A *next; }; struct List_A *head; void merge_sort(struct List_A *); int main(void) { ....lets say i have a list build --- (list_A = 4,3,2,5) merge_sort(List_A); } void merge_sort(struct List_A *head) { struct List_A *cur_one; struct List_A *cur_two; if(head …

Member Avatar for Ancient Dragon
0
117
Member Avatar for TheFlyingOwl

I am making a java gui keyboard as practice The keyboard itself works well and is made out of JButtons It changes colors when a certain key is pressed and then releseased I have two questions: Is there a simple way to listen for tab being pressed? Is there a …

Member Avatar for NormR1
0
303
Member Avatar for userct

I'm trying to write a program that concatenates two null-terminated strings. (I declared the strings and buffer in the dad section) .data string1: .asciiz "In a hole in the ground” string2: .asciiz " there lived a hobbit." buffer : .space 512 The program copies the first string into the buffer …

Member Avatar for userct
0
1K
Member Avatar for fatzky_04

Hello. I'm new to Java. I created 4 CHOICE that has 9 numbers. It should convert the selected item into words in the text area. I don't have any idea how to do it. Please Help. Here's my code. import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.util.*; public class Final1 …

Member Avatar for fatzky_04
0
320
Member Avatar for king24

<?php session_start(); include 'forms.php'; include 'config.php'; include 'lib.php'; ?> <html> <head> <meta charset="UTF-8"> <title>Login</title> <link href="css/main.css" rel="stylesheet" /> </head> <body> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"> </script> <script type="text/javascript"> $(document).ready(function(){ $("#check").click(function(){ var username = ("<?= $username ?>"); $.ajax({ url:"ajax.php", data :'username=' +username, success: function(ajax){ $("#ajax").append(ajax); } }); }) }); </script> </body> </html> <?php …

Member Avatar for diafol
0
304
Member Avatar for Dani

Hi, We heavily use Memcache and I was wondering if there were any places where I could read up about good tips to improving its performance. Everytime that I try to google improving memcached performance, I just end up with pages upon pages of links to how to improve performance …

0
111
Member Avatar for Shakeylfc

Hi, Basically im looking to create a simple application that takes in an instruction from the console. The instruction includes the width and length of a grid (x,y), the starting location of a car (x,y on grid), and the instruction to move about on the grid. Essentially an instruction shall …

Member Avatar for javalover
0
103
Member Avatar for laura301019

I have a webpage that allows 3 users to login and vote, at the login page it displays the 3 users however ive to change the following code so that at the login page it will only display the users who haven't voted yet. What do i need to change …

Member Avatar for phoenix_2000
0
175
Member Avatar for Jamesiv1

I've got a form with this text field: <input name="address2" type="text" value="%%ADDRESS2%%"> on submit, it displays all the data in a confirmation page, and then when you submit the confirmation page it emails me the data. In the email (maybe in belongs in the confirmation page?), I need it to …

Member Avatar for phoenix_2000
0
93
Member Avatar for vinnitro

Hi friends, I am a student of BScIT and I want a project which is to be done in ASP.NET language. I surfed the internet but not found anything new... So, Is there anyone who can give me good suggestion??? & also help me give some objective i.e. what the …

Member Avatar for vinnitro
0
174
Member Avatar for NormR1

How do you wrap code in tags. This OP had a problem doing it: See http://www.daniweb.com/software-development/java/threads/418944/choice-and-text-area-convert-number-to-word `String var = null; forIint i etc // end`

Member Avatar for Dani
0
137
Member Avatar for n.cramp

Hi all, Having a little trouble with assigning values to an array within a C struct. Unfortunately i cannot assign a size to the array as i am reading values to an array to be stored, and the size is relative to the other values in the struct passed to …

Member Avatar for n.cramp
0
3K
Member Avatar for zachattack05

Was writing a new method to open a custom dialog box I created, and realized that the other method I wrote to open another custom dialog had the same name as the object representing it, but there was no error? This is what I mean: Originally the code read: Dialogs.Accounts.NewLocation …

Member Avatar for zachattack05
0
127
Member Avatar for enkitosh

I'm doing a program where I need user to enter the name of a text file. I want him to be able to see the path if he enters pwd. Right now this is very OS related and only works on Mac OS(I guess). So I have done string real; …

Member Avatar for enkitosh
0
267
Member Avatar for florin1

Hello guys. I have a form in which i have some dynamically generated input fields like this: <input value="March" name="month[March]" type="hidden"> <input value="April" name="month[April]" type="hidden"> <input value="May" name="month[May]" type="hidden"> . . . How do i add the input data for each month to mysql? Thanks!

Member Avatar for diafol
0
161
Member Avatar for Valiantangel

My only issue here is i am not able to invoke line 41 owner.pets[ 3 ].getAction();? Any ideas why? `Inline Code Example Here` abstract class Pet1 { abstract void perform(); } class Dog extends Pet { void perform() { System.out.println("*The dog rolls over*"); } } class GoldFish extends Pet{ void …

Member Avatar for JamesCherrill
0
116
Member Avatar for GillBates

Greetings! I was looking through this Rabin-Karp algorithm code. Everything is fairly clear to me, except those "-48" numbers (lines 13, 14 and 25)... So I was just wondering if anyone could explain, why are they used for? (maybe for string to int transformation?). Can you please explain it with …

Member Avatar for Ancient Dragon
0
73
Member Avatar for dendenny01

How can I transfer the values inserted in <input type="text" name="num1"> to radio button <input type="radio" name="rep_num1" value="">On submit of form. Actuall when user insert the value or text in the textbox the value of the text box should replace or transfer to the value in radio button when user …

Member Avatar for Topi Ojala
0
277
Member Avatar for jackmaverick1

I've decided to try to create a small (very) game in Javascript + HTML, using the Canvas element. So far, its gone pretty well, but recently I started on bullets. This also has gone well. I've decided to try to implement a bullet-goto-mouse type thing. I know this uses trigonometry, …

Member Avatar for jackmaverick1
0
156
Member Avatar for minitauros

Hello there. I would like to know if there is a way to write files to my server without CHmodding a certain directory. I have an auto-update script that downloads a .ZIP from my main server, and then extracts those file to the corresponding directories on the current server. However, …

Member Avatar for minitauros
0
220
Member Avatar for hwoarang69

how do you insert in linked list. this is that i have. struct node { int data; struct node *next; }; struct node *head; void insert(struct node*, char*, int); int main() { int data; struct node *List_A = NULL; insert(&List_A, %data); return 0; } void insert(struct List_A, int data) { …

Member Avatar for hwoarang69
0
94
Member Avatar for Ralphael

I am cresting a digital clock and I am having troubles updating the interface please can someone help me with this. I have the code below: ********/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package Interface; /** * * …

Member Avatar for NormR1
0
646
Member Avatar for wzseow

Can someone guide me how can I use scanf for a structure? [CODE]const int IDLEN = 30; const int POLARITYLEN = 3; const int MAXSTOCKITEMS = 10; struct TransistorRec { char manufacturersID[IDLEN]; char polarity[POLARITYLEN]; float power; float gain; int stock; }; typedef struct TransistorRec Transistor; struct StockRec{ int size; Transistor …

Member Avatar for zeroliken
0
20K
Member Avatar for Valiantangel

Hi My issue is i cant get the arrys correct,with abstract class.Can some one highlight to me the error in class Example1.I want to create 2 extra pets (iguana & hamster) but i am getting it wrong. below are the errors from my complier 23.java:37: error: constructor GoldFish in class …

Member Avatar for zeroliken
0
149
Member Avatar for Behseini

Hi everyone Can you please let me know how I can compare two listbox items in C sharp?.For example if I have a listBox 1 populated with 5 city names as[Vancouver,Richmond, Delta, Surrey,Burnaby] and another list box called listBox2 and contains 7 city names as [Vancouver,Richmond, Delta, Surrey,Burnaby, Coquitlam, Mission].How …

Member Avatar for mtns
0
2K
Member Avatar for pansquare

is there a way in python to only take from a file a string in between certain characters? for example, if i have this in a file: city state[long, lat]population how can i take from the line just what is in between the brackets (that is, come up with [long, …

Member Avatar for nbaztec
0
241
Member Avatar for rapidwein

**Bold Text Here** The included file is a code to make a quiz using javascript and radio buttons . When you finally submit , it shoudl print the question numbers for the correct answer in green and the wrong answers in red . But the code is not working properly. …

Member Avatar for rapidwein
0
2K
Member Avatar for espinosae

Hi everyone. I have a UI Design that I got coded by my software developer and when I change the color of an image and then run under "debug" The image stretches even though I never changed any dimentions or anything. All I did was change the color.Any ideas what …

Member Avatar for nbaztec
0
103
Member Avatar for Erushima

Can someone help me make a code for a username and password program where the usernameand pass is stored in a txt file. I've tried many things but I still can't make it work. The text file in question has the username password and user type separated by tabs and …

Member Avatar for Erushima
0
151
Member Avatar for Valiantangel

hi, i read through a few website ,gone through a few examplebut i am still getting 01 error in my code? Error message: goldFish.java:11: error: cannot find symbol void perform(){System.out.printIn(this.action); ^ symbol: method printIn(String) location: variable out of type PrintStream 1 error abstract class Pet { abstract void perform(); } …

Member Avatar for JamesCherrill
0
159
Member Avatar for mani508

i want to send mail notification to anwer the question in forum.how its possible...??

Member Avatar for Dani
0
101
Member Avatar for devninja

I made a custom JTextField that only accepts numbers into the textfield. I used insertString to do this. Tt works pretty well except it allows oddly only the letter e. It accept e only after a number is inputted first. And once e has been entered the textfield does not …

Member Avatar for devninja
0
454
Member Avatar for shean1488

Help me please to find the problem in my code: Here is the error that I'm getting: serg@serg-PORTEGE-Z835:~/c$ gcc string_finder.c -o string_finder string_finder.c:4:5: error: conflicting types for ‘getline’ /usr/include/stdio.h:671:20: note: previous declaration of ‘getline’ was here string_finder.c:22:5: error: conflicting types for ‘getline’ /usr/include/stdio.h:671:20: note: previous declaration of ‘getline’ was here …

Member Avatar for tubby123
0
276
Member Avatar for FraidaL

There is something wrong with this program. The code is ok, the program runs, but it stops after asking the user how much their income is. Where am I going wrong? (Sorry, it's really long, but I can't figure out where the problem is) #include <iostream> #include <string> #include <cctype> …

Member Avatar for FraidaL
0
108
Member Avatar for CLynn

Hello, I am writing a simple program for my Java class and I keep getting this annoying error that after reading the code over and over again, I just can't see where the error is originating from. Anything obvious sticking out? Here is the error: Exception in thread "main" java.util.InputMismatchException …

Member Avatar for zeroliken
0
178
Member Avatar for anand01

hi all , I develpoed java application i java swingss, I need tocreate two versions linced version and trail version, Trail version should experied in 20 days,once user gives the serieal key the application shold work , where shold I store registration key, How could I protect my application could …

Member Avatar for anand01
0
379
Member Avatar for guru_iyer

I am new to VB programming. I recently copied a code from internet, which gives me an error of Object Reference Not Set To Instance Of Object, NULL POINTER EXCEPTION. I couldn't understand where the problem lies..!! Help.. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click …

Member Avatar for Reverend Jim
0
199
Member Avatar for kindofsudden

Okay, I am 50% toward having this figured out, but there are a couple of concepts that are new to me here and it is throwing me for a loop. I am reading an Excel file into VB.NET. There are 4 columns containing dollar figures of varying amounts. Here is …

Member Avatar for kindofsudden
0
918
Member Avatar for sammer021486

I am having difficulty getting the php include for my menu to show the active page on my site. When the site is using just plain html to show the active page, it works as expected. But when I switch to the php include the menu is not styling to …

Member Avatar for sammer021486
0
3K
Member Avatar for aanders5

Okay, I am going to go through ALL my steps thus far just so that this process can be sped up hopefully. I have done this before, but it was awhile back and I forgot how, but I know it is possible. 1. I made a Neatbeans created Java Application. …

Member Avatar for NormR1
0
570
Member Avatar for MrEARTHSHAcKER

Hi, I found the examples of explicit specialization, but I have a vagueness about code: using namespace std; template<class T = float, int i = 5> class A { public: A(); int value; }; template<> class A<> { public: A(); }; template<> class A<double, 10> { public: A(); }; template<class …

Member Avatar for MrEARTHSHAcKER
0
194
Member Avatar for felix001

When trying to install django tagging Im getting the following error : [root@Fileserver django-tagging]# pwd /opt/django/djangoblog/django-tagging [root@Fileserver django-tagging]# python setup.py install Traceback (most recent call last): File "setup.py", line 49, in ? version_tuple = __import__('tagging').VERSION File "/opt/django/djangoblog/django-tagging/tagging/__init__.py", line 3, in ? from tagging.managers import ModelTaggedItemManager, TagDescriptor File "/opt/django/djangoblog/django-tagging/tagging/managers.py", line 5, …

Member Avatar for TrustyTony
0
187
Member Avatar for Despairy

I have a vector that contains Points on a board and I would like to do the following: 1) if a Point appears an even number of times i would like to delete all of the same Points. 2) if a Point appears an odd number of times i would …

Member Avatar for mike_2000_17
0
95
Member Avatar for Sunciti

I have a nested dictionary which looks like: { A:{I:{key1:value1,key2:value2}, II:{key1:value2, key2:value5, key3:value6}}, B:{I:{key1:value1,key2:value2}, III:{key1:value2, key2:value5, key3:value6} IV:{key1:value9, key2:value7, key3:value8}}, C:{V:{key1:value11,key2:value22}, VI:{key1:value12, key2:value15, key3:value16} VII:{key1:value19, key2:value17, key3:value18}} } My objective is to retrieve the keys ( A,B,C and I,II,III,IV,V,VI,VII) for the occurences of a value. So for example, if I …

Member Avatar for TrustyTony
0
1K
Member Avatar for idiotguy

Hi friends! I'm new to libcurl programming in C. I cant find any libcurl tutorial on the web.Also i tried [the official one](http://curl.haxx.se/libcurl/c/) but i cant understand it because its not elaborate. So please help me with the tutorials/resources on libcurl programming in C. Thank you.

Member Avatar for Ancient Dragon
0
155
Member Avatar for nirmal.k.2

Hi all, I have a problem with manipulating gridview with a textbox inside the same form. My requirement is I have a gridview where cell[1] is quantity, cell[2] is a boundfield which shows the rate and cell[3] is discount and i have a textbox control outside gridview in th form …

Member Avatar for nirmal.k.2
0
185
Member Avatar for dilse4sk

hi every 1/ . i am having problem in sql query. if i double click on the dataset. i am not sure which statement to write to restrict the user so that he/she cannot enter the date in the past. i have droped the data set on the form and …

Member Avatar for dilse4sk
0
278
Member Avatar for dinners

Hi there, I am using MATLAB and am trying to mex a c++ file. I get a load of compiler errors and I am not sure why: correspondPixels.cc(57) : error C2065: 'Matrix' : undeclared identifier The line of code this relates to is: `Matrix m1, m2;` Now the class should …

Member Avatar for dinners
0
200
Member Avatar for dilse4sk

hi every one . when my form gets load it automatically fills th data using these two line Me.CustomerTableAdapter.Fill(Me.NewBookingDataSet1.Customer) "Customer info is displayed in text boxes on same form" Me.BookingTableAdapter.Fill(Me.NewBookingDataSet1.Booking) "Booking is displayed in data gridview" when i use the the above two lines as comment then i get the …

Member Avatar for dilse4sk
0
187

The End.