199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for kishor_agrawal

I trying [icode]Window.unload=setcookie(username,'xyz',365);[/icode] where [code=JavaScript]function setCookie(c_name,value,expiredays) { var exdate=new Date() exdate.setDate(exdate.getDate()+expiredays) document.cookie=c_name+ "=" +escape(value)+ ((expiredays==null) ? "" : "; expires="+exdate.toGMTString()) }[/code] not working....... can anybody help me?

Member Avatar for R0bb0b
0
117
Member Avatar for sbv

hi i need to store data more than 8000 char in varchar in sql server 2000 how can i? plz help.

Member Avatar for peter_budo
0
114
Member Avatar for MikeyFTW

hey well this program basically is a mathematics game...try the program out for yourself, it works, but im just wondering how to make an reset option so at the end of the program so the user can play the game again. thanks [ICODE]name = raw_input("\t\t\tPlease Enter Your Name: ") print …

Member Avatar for Scuppery
0
630
Member Avatar for sinkingships7

I'm having a bit of trouble reversing a string. Here's a code snippet of how I'm currently trying to do it: [code=c] index_s1 = strlen(num_s1); for (index_s2 = 0; index_s2 <= strlen(num_s1); index_s2++){ num_s2[index_s2] = num_s1[index_s1]; index_s1--; } [/code]

Member Avatar for sinkingships7
0
121
Member Avatar for Alex Edwards

How in the hell do you divide by 7 using nothing but-- ~, ^, >>, <<, &, | -- In a set algorithm. I'm stumped. I've tried mapping out different numbers dividing by each other... it didn't work. I would map out a number subtracting from the other to see …

Member Avatar for invisal
0
174
Member Avatar for wtf???

how would i write code so when someone enters 1 charcter it changes it to somthing else for example if someone entered 100 / 5 it would say 100 รท 5.

Member Avatar for ctrl-alt-del
0
94
Member Avatar for adaykin

Hello, I want to be able to echo a redirect url, based on a few variables. The content type of this php script is set as Header("content-type: application/x-javascript"); here is my code: [CODE] $row = mysql_fetch_row($result); echo "window.location = \"http://myurl.com/test/".$row[0]."/index.php?name=".$row[0]."\";"; [/CODE] Right now the url just outputs the url as …

Member Avatar for digital-ether
0
135
Member Avatar for vit0

Hello People! Hope, you solve my problem. I program in VB.NET and have a WebForm that contain a client Javascript counter (min:sec) to zero. I use this code to show up a counter. [CODE]<script language="javascript"> var up,down; var min1,sec1; var cmin1,csec1,cmin2,csec2; function Minutes(data) { for(var i=0;i<data.length;i++) if(data.substring(i,i+1)==":") break; return(data.substring(0,i)); } …

Member Avatar for ~s.o.s~
0
147
Member Avatar for sinkingships7

Does anyone know a good way to do it? I've heard of itoa(), but it's non-standard and isn't included by default with the GCC compiler. If you believe that's the best way, how to I get my hands on the function? Ideas? HUGE EDIT: I made a stupid mistake and …

Member Avatar for sinkingships7
0
119
Member Avatar for ishlux

Hi all,,,, i want help i have created an inbox........which is very simple.....like as soon u click which will just display the mails.......from.date,subject.........but after that i dont how to proceed........ i want if i cilck on subjet it should display the contents.......how to do all these just explain me.................pls give …

Member Avatar for digital-ether
0
97
Member Avatar for Keased

HI i would be more than thankful if anybody can tell me why this don't work, the problem is that the JS counter won't work when there are more then 1 entrys in mysql. With one entry the script runs fine. Heres the code: [code] <table> <? //Connect to mysql …

Member Avatar for ~s.o.s~
0
84
Member Avatar for Evan M

I've been getting an "Access Violation" error while running this program: [code=c++]#include "SDL/SDL_ttf.h" class Font { private: TTF_Font *font; public: Font() { font = TTF_OpenFont( "c:\\windows\\fonts\\cour.ttf", 20 ); } ~Font() { TTF_CloseFont( font ); //Access violation } }; int main( int argc, char *args[] ) { if( TTF_Init() < 0 …

Member Avatar for Evan M
0
237
Member Avatar for devstudio.2007

Dear All, I recently upgraded Python 2.3 to python 2.4 but still now my application searching python2.3 dll in System 32 how to solve this issue........... regards Mani.

Member Avatar for Ene Uran
0
122
Member Avatar for Fault

Hey i have a few random questions that i can't seem to get my head around at the moment. Any help would be appreciated 1) What criteria would you apply in deciding which of the three forms of loop to use in a program? 2) What does this function prototype …

Member Avatar for tecktalk
0
124
Member Avatar for Code Shark

Hello, I made this program that has random values and you have to choose to say if the next number will be higher - or lower. I completed the code and successfully had no errors but when the user is mistaken nothing comes up. Am I missing something? [CODE=C++]// Code …

Member Avatar for VernonDozier
0
146
Member Avatar for kuratkull

Hello, I am having a problem with a Glut function which is messed up, either by GCC or by OpenMP. I have GCC 4.3.1 20080626. The problem is, that I do not know which of the three is causing the "Segmentation fault" at the glVertex2f() function. The proggie works perfectly …

Member Avatar for kuratkull
0
327
Member Avatar for ncognito66

Hello all: I'm currently building a website for a radio station and I want to setup a programming lineup. The fields I'm using are: ID Title Dayofweek (Show Day) Timeslot (Show Time) AMPM (AM or PM) Description Name (Host Name) Bio (Host Bio) Photo (Host Photo) I set these all …

Member Avatar for ncognito66
0
115
Member Avatar for Q8iEnG

Hello :) Umm I have a small question :) Which do you recommend for fast searching BST or AVL tree? My answer: It might be the BST because it'll be noticed that in the right subtree all the numbers greater than the root will be there also for the smaller …

Member Avatar for Q8iEnG
0
130
Member Avatar for jainendra.shah

hi frds, I want to fetch data from a table who contain approx 10 million data or above. I am able to fetch approx 1 million within 3 min. but this is so slow. and also problem to fetch more then 1 million. I used to data adapter and dataset …

Member Avatar for camilojvarona
0
102
Member Avatar for ibanez335

Hi Everyone, this is my first post so I hope I don't break any rules/codes of practice. I have developed an application and produced the appropriate setup files by adding a 'setup project'. I have no problems installing it on a standalone machine. However, I want to install it on …

Member Avatar for ibanez335
0
88
Member Avatar for jithusdani

hi all i have wrote a code for file uploader and it was working fine but now its getting sme problems...here am attaching my code plz check it out and replay me fast... [code] if ($_FILES["description"]["error"] > 0) { echo "Return Code: " . $_FILES["description"]["error"] . "<br />"; } else …

Member Avatar for lydia21
0
115
Member Avatar for Frikkie

Hi, this is my first time doing this, I would like to know if there is a way of printing multiple Images on the client side. I am printing barcodes. I put the barcode as a image into a <div> and then use javascript to print the entire <div>. The …

Member Avatar for vashokvlr
0
542
Member Avatar for 11silversurfer1

Hi, I was wondering with the menu bar how to open, save and make a new file on the menu bar [code] case MENU_FILE_ID_OPEN: { //something to open the file } break; [/code] i have no idea at all how to do this, i have searched the net but it …

Member Avatar for 11silversurfer1
0
157
Member Avatar for lingol

I'm writing a function that reads an IP address from input and generates its 32-byte values. If the input is correct, the whole thing can be done by this: [CODE=C++] int a, b, c, d; char buf; cin>>a>>buf>>b>>buf>>c>>buf>>d; ... [/CODE] If it's not, such as 256.0.0.0, or 1..2.3.4, I want …

Member Avatar for lingol
0
197
Member Avatar for GFXtm

[B]Array.h CLASS[/B] [code=c++] #ifndef __ARRAY_H #define __ARRAY_H template <typename DataType, int size, DataType zero> class Array { public: // set function, sets an index void Set(DataType p_item, int p_index) { m_array[p_index] = p_item; } // get function, gets the index DataType Get(int p_index) { return m_array[p_index]; } // clear function …

Member Avatar for vijayan121
0
447
Member Avatar for tactfulsaint

servlet package does not exist any idea [QUOTE] import java.io.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; public class EmployeeDetails extends HttpServlet{ static int i; Connection con; PrintWriter out; ResultSet rs; public void ini(){ i=0; con=null; out=null; rs=null; } public void doGet(HttpservletRequest request, HttpServletResponse respose) throws ServletException,IOException{ i++; out=response.getwriter(); out.println("<b>your are …

Member Avatar for peter_budo
0
159
Member Avatar for jtomacelli

I need to copy the data from the top row of a worksheet to all those empty rows underneath it UNTILL you get to a row that has dataโ€ฆthen start over and copy that new data into the empty rowsโ€ฆ.and so onโ€ฆ I have the code that we've written so …

Member Avatar for vbCNEW
0
106
Member Avatar for dhanashreegd

I am currently using a database within my program and I have no problem backing it up or restoring it when i am simply debugging. However if it is published and downloaded it cannot find the path that it needs to get to the database to copy it. My code …

Member Avatar for KillerOfDN
0
151
Member Avatar for praveen_dusari

hi all, i am writing a script for shoutbox where users click on shout box two fields will appear message and name when they submit, their message will appear beside shout box. my problem is how to display table which has message and name fields upon clicking shout box. any …

Member Avatar for Shanti C
0
165
Member Avatar for qeinar

if you use movefile and ofstream the ofstream file won't be made.. :s any way to solve this?

Member Avatar for qeinar
0
139
Member Avatar for ymidexterous

Hi Everyone! Need help in my new Project with Visual Basic 6.. I need to send a 5 volts signal from my pc using a VB6 program to the serial port where I could place a relay... Thanks :) Dexter A.

Member Avatar for ymidexterous
0
673
Member Avatar for akshit

hi guys. i require some assistance of yours again. what i want is this: there is a form (say on page xyz.php) in which i have , say, 5 text-fields. but i also hav a button. upon clicking whihc, i want another text-field to appear. i do now want to …

Member Avatar for akshit
0
236
Member Avatar for akshit

hey guys. i hav this page (a.php), where i ask te user for his username and password. I match these with static values, and upon succesful matching, i redirect the user to b.php. my prob- what if somebody, instead of going thru the normal procedure (from a.php to b.php after …

Member Avatar for Shanti C
0
162
Member Avatar for nayrb

Hello, I tried posting this earlier but i do not think it went through because my internet connection was cut off. In case it did i am sorry for the repeating it, but have not seen it on the site. Any ways. I am writing a class program and i …

Member Avatar for AceofSpades19
0
138
Member Avatar for gouki2005

[CODE] int count; for(count=10;count<=1;count--) { Console.write("Hello"); } [/CODE] Why Doesnt appear nothing when I run this code?? have logic for me...

Member Avatar for gouki2005
0
95
Member Avatar for SUBHABRATAIISC

Dear Group, I am trying the following code line: [code] def try2(n): a1=raw_input("PRINT A STRING:") a2=a1.split() a3="God Godess Heaven Sky" for x in a2: a4=a3.find(x) if a4>-1: a5=a3[a4] print a5 elif a4<0: a6=x print "It is not found" print a6 else: print "Error" s=a5+" "+a6 print s [/code] Here, if …

Member Avatar for woooee
0
83
Member Avatar for MikeyFTW

[ICODE]name = raw_input("\t\t\tPlease Enter Your Name: ") print print "\t\t\t\tHello", name print "\t\t\tWelcome to my Mathematics Game" # Selecting the operation of Addition and Substraction followed by the difficulty print operation = str(raw_input("\t\t\tAddition (A) or Substraction (S)")) if operation == "A" or operation == "a": my_op = 'Add' difficulty = …

Member Avatar for woooee
0
120
Member Avatar for sftwr21

Hello everyone, I'm learning programming for the first time and my first book i bought from the book store is the new Deitel C++ 6th edition. After reading the first several chapters I got so overwhelm with the authors verbose; I went out and bought C++Primer. One thing I noticed …

Member Avatar for Alex Edwards
0
398
Member Avatar for k2k

hi, can anyone give me a brief example using mailx and heredoc to send an email? [CODE]#!/bin/sh mail -s "subject" target@address >>body hello all, this is supposed to be the body of the mail body[/CODE] -----------------------------------------> i think i need somethink like above code, with mailx instead of mail -s......... …

Member Avatar for eggi
0
1K
Member Avatar for klactose

Hi, I am trying to write a class that uses vectors that contain another class. When I compile my code using g++ I get the following error that I don't understand: [B]In file included from cars.cpp:5: car.h:24: error: syntax error before `;' token car.h:25: error: syntax error before `;' token[/B] …

Member Avatar for Ancient Dragon
0
87
Member Avatar for twgood

I have gotten my program to compile but it will not run: here is the error: init: deps-jar: Compiling 1 source file to C:\NetBeansProjects\SCHOOL1\JavaApplication27\build\classes compile-single: run-single: java.lang.NoClassDefFoundError: javaapplication27/FGInventory2 Caused by: java.lang.ClassNotFoundException: javaapplication27.FGInventory2 at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) Exception in thread …

Member Avatar for sciwizeh
0
96
Member Avatar for justinclev

well in a program i m making i need a loading screen it wont be doing anything its just a prank thing im doing but i need like it to sit and look as if its loading for half a minute can anyone help im in the dos box still …

Member Avatar for 11silversurfer1
0
135
Member Avatar for vadan

Hi, Iam very much new to programming and C++ please help me I have an application that uses socket++ classes on Unix (AIX) environment I have included #include<sockinet.h> in two of my .cpp files and I have socket++ source in my temp directory when iam trying to compile my application …

Member Avatar for Ancient Dragon
0
79
Member Avatar for nschessnerd

Wasnt sure where to post this but it uses php... help mods? i can get the number of messages and connect to a telnet server so i say top 1 and responds something along the lines of -ERR protocol error 16 or something... not sure if thats exactly what i …

Member Avatar for nschessnerd
0
209
Member Avatar for docaholic

does anybody know how to make bubble sort work in progressively smaller sizes and determine if a list is sorted on it's first try? i've got the basic bubble sort algorithm down. i just can't figure out the rest of it (my basic bubble sort code below) [code] def bubbleSort(list1): …

Member Avatar for docaholic
0
141
Member Avatar for Wiki_Tiki

Hi everyone, I've written a test program, and I need help limiting the amount of characters a user enters in a char. I want it so that that maximum amount of characters is 1, and if they enter more than 1, it will display a message. Here's my code: [CODE]#include …

Member Avatar for Ancient Dragon
0
129
Member Avatar for DS_sniper

Hay everyone, first time poster. I am designing a program in Visual C++ 2008 Express Edition and i need the following code It is a console app. I need code to beable to create a directory on drive C. I also need some info about how to copy the programs …

Member Avatar for DS_sniper
0
93
Member Avatar for rejisha

i have two text boxes with the id as first and second respectively.In javascript i took the values using [code] var first=document.getElementbyId("first").value. var second=document.getElementbyId("second").value. var sum=first+second; [/code] But the problem is when i alert the sum i got the result as concatenated.i didn't get the original sum.I also tried it …

Member Avatar for ~s.o.s~
0
159
Member Avatar for annuw

HI, i want to generate html file from xml and xslt documnet using java...pls,,,

Member Avatar for annuw
0
75
Member Avatar for SolTec

I have a very large MS Access database with over 80 tables and 15 queries. My problem is I can get the data that's in the tables to show and load, but I can't add any new records and get them to save in the database, using the DataBase Wizard …

Member Avatar for hepatit_h
0
76

The End.