199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for elidotnet

I have some web page im using ajax accordion script. my question: is there any code (or maybe code in different language or script) that will make the window not to close copletly? i mean, there is the title line after you click the arrow the window open after you …

Member Avatar for serkan sendur
0
318
Member Avatar for mseck

:confused:Hey I just started a programming class and stuck in a section of my assigment. i would like to know if someone could guide me to the right direction. Last instruction: " Write a script that reads an integer and determines and output XHTML text that displays whether it it …

Member Avatar for mseck
0
113
Member Avatar for NinjaLink

Hi, I have two seperate programs below writing a short program for each. My programs run, but sometimes when I rearrange things in my program to try to get it to work, I will receive an error. I am tried to figure it out since last night, but I am …

Member Avatar for verence
0
3K
Member Avatar for filch

Hello all, I have the following SQL statement. [CODE]SELECT a.airport_code AS AIRPORTCODE, a.airport_name AS AIRPORT, u.usr_id AS USERID, u.usr_fname AS FIRSTNAME, u.usr_lname AS LASTNAME, u.usr_email AS EMAIL,u.usr_airline AS AIRLINE, u.usr_airline_iatacode AS IATA, t.title AS TITLE FROM users u LEFT JOIN userairportservices uas ON uas.usr_id_users = u.usr_id LEFT JOIN airport a …

Member Avatar for filch
0
127
Member Avatar for studioceasar

Hi All, Can one of the gurus out there help me to convert a row variable to a link that will download an MP3 file? Using the code below: my $row['link'] displays the url in plain text. I would like to create a button to initiate an automatic download command …

Member Avatar for studioceasar
0
85
Member Avatar for scrace89

I am new to python and programming this is my first time using the code (first assignment). I need help with writing a program to convert the code message entered by the user into ascii numbers, then find which number occurs 12% of the time, and have it represent the …

Member Avatar for willygstyle
0
278
Member Avatar for motionfiend

Hello all, While attempting to switch from a hard-coded array to a dynamic array read from a db table, I'm running into a few snags. I'm using the following function to create the dropdown menu, and it has worked for everything thus far: [CODE]// function showDrop($array, $active, $echo=true){ $string = …

Member Avatar for Rkeast
0
198
Member Avatar for aladar04

I can't reverse the inputted word... Here is my code... Please correct it... Sample Output: Type word(s): hello The reverse is: 'olleh' [CODE=c]#include <stdio.h> #include <conio.h> #include <iostream.h> #include <ctype.h> #include <stdlib.h> #include <string.h> char orig [300]; char rev [300]; int len; void original () { cout << "\n\n\tType word(s): …

Member Avatar for aladar04
0
156
Member Avatar for omotoyosi

hello all, I have an access database and working with vb 2005. I have one date column which is in MM/dd/yyyy format but my problem now is that if i search for date less than (it will use the month alone.) here is my code for search criteria. [CODE] search …

Member Avatar for TomW
0
76
Member Avatar for coolice

Hi ! Could somebody help me how can I import email addresses from Windows Address Bok (wab) file programatically ? The simplest code would be the best one, as I was able to found several but far too hard code to understand the hole issue. Many many thanks for anybody …

Member Avatar for William Hemsworth
0
242
Member Avatar for KirkPatrick

Alright I have created an object, its a simple object. Basically just textfields and a combobox. I have them all in a gridbag layout with weightx and weight y set to one so that they fill out the panel I place them on. [B][U]Question 1:[/U][/B] What I'm wanting to do …

Member Avatar for KirkPatrick
0
99
Member Avatar for shopnobhumi

I need to write a program where it will ask the user to write a sentence and count the upper case and lower case alphabet 'e'. I.E- number of lower case e is say 4 and number of upper case E is 3. Every tree is not an Elm,Emile. and …

Member Avatar for tux4life
0
183
Member Avatar for leegeorg07

Hi, I have this code: [code=python] import urllib2 as url import webbrowser def extract(text, sub1, sub2): """ extract a substring from text between first occurances of substrings sub1 and sub2 """ return text.split(sub1, 1)[-1].split(sub2, 1)[0] start="http://xkcd.com/" permlist=[] textlist=[] for i in range(1, 638): temp=start+str(i) permlist.append(str(url.urlopen(temp).readlines()[88])) textlist.append(str(url.urlopen(temp).readlines()[77])) for i in permlist: …

Member Avatar for ov3rcl0ck
0
207
Member Avatar for Simzz

dear all, I have a problem at the following code that causes a segmentation fault and don't know the reason: [CODE] char * cString (char letter, char * string) { char *first= string; char *point= string; while(*string!='\0') { if (*string!=letter) { *point=*string; //segmentation error point++; } string++; } return first; …

Member Avatar for Simzz
0
76
Member Avatar for catcit

Hello! As the title suggests I need some help regarding an "open directory" dialog box. I tried this code but every time I run the module it appears a blank window in the back of the dialog box and normally after I select the directory it should disappear but it …

Member Avatar for vegaseat
0
24K
Member Avatar for hou01087

I need to write a program that create some process by select number from menu. And then, if I select 4, ALL process created by this program will be terminate. So, I'm using processBuilder to create process. The problem is how can I destroy the process? Thank you. Here's is …

Member Avatar for quuba
0
5K
Member Avatar for htndrum

I'm having trouble getting this program to keep going through the lines in the first loop. It just prints out the output for the first (searchline) and stops. Can anyone help me to figure out why it won't keep reading the lines in the birthday file? [CODE] import string def …

Member Avatar for foosion
0
106
Member Avatar for arcticM

I have a struct WRITER and I made [CODE]typedef WRITER* WriterPtr;[/CODE] also there is another struct called BOOK and a [CODE]typedef BOOK* BookPtr[/CODE] in my BOOK struct I have a [CODE]WriterPtr writerPtr; //pointer to the writer struct[/CODE] now I have a func: [CODE]void choiceA(BookPtr parr, int n,WriterPtr *pWriter, int *psize)[/CODE] …

Member Avatar for Dave Sinkula
0
113
Member Avatar for jcmeyer

I need a back-end that can: -be used in python -handle multiple-users reading and writing to a database at the same time -can be accessed on a mapped share drive I have used sqlite but I have read that it is not recommended for multi-user use. I have looked into …

Member Avatar for ov3rcl0ck
0
236
Member Avatar for ash2401

I am new to JSPs. I would like to know how can I get the database info (drivername, url, username, password etc.) to load from a config file into the JSP rather than hard coding the values there. Thank you everyone in advance.

Member Avatar for emnidhi
0
103
Member Avatar for Anjana sharma
Member Avatar for squareff255

I'm trying to write a python program that guesses a number that the user chooses between 1 and 1000 in no more than 10 guesses and I can not figure it out for my life! I know it's super beginner and there are a lot of problems, but please be …

Member Avatar for snippsat
0
92
Member Avatar for tksrules

How to move pointer in display to beginning of line.I don't want to create a new line.I want to take the cursor/pointer to the beginning in same line. I have taken help of all possible combinations of System.out.print statements. For example in the code below i want to print 70 …

Member Avatar for jmaat7
0
119
Member Avatar for venus_me11

i have a code here where a user can search a specific trip and can choose his/her preferred seat.. my problem is when computing the total fee for the reservation being made, i can't count the number of times a user check a seat... by the way, the output for …

Member Avatar for digital-ether
0
148
Member Avatar for chandagondhali
Member Avatar for NT.

Hi, I am thinking about something that I heard in a discussion and I am not sure whether it is really like that or not. Calculating a shortest path on a graph can be done either using dijkstra's algorithm , basically DFS or by BFS. There might be some other …

Member Avatar for NT.
0
105
Member Avatar for soulrider

Hi all, I'm fairly new to programming in Python, and I have been getting on pretty well. I had a little working program compiled from old code snippets I had found online, converted to working 3.x code and combined together with some of my own ideas to create simple apps. …

Member Avatar for vegaseat
0
293
Member Avatar for akie2741

How can i extact the personal address from html file.. After i get the source from the html file using read() method,what pattern should i consider if i wanna extact the address? Currently i think is use the compile() method to set the matching the address' pattern, but what rule …

Member Avatar for jice
0
141
Member Avatar for akie2741

My code is: [CODE] import re import urllib import urllib2 webURL="http://www.sc.iitb.ac.in/~bijnan/personal-details.htm" #the website is connect=urllib.urlopen(webURL) #connect to this website htmlDoc=connect.read()#get the html document from this website patternIN="Permanent Address" # Where to begin to keep the text patternOUT="</tr>" # Where to end to keep the text (after the begining) keepText=False # …

Member Avatar for vegaseat
0
160
Member Avatar for Rkeast

Sorry for posting this in this forum, but there is no forum for PostGreSQL. I am currently attempting to optimize a function that uses up to 3 seperate SELECT queries, by using a CASE conditional in my query. Right now my function does an initial query, then if no results …

Member Avatar for Rkeast
0
134
Member Avatar for facadie

I have two form. Form 1 and Form 2 In form 1, i have a few textbox and and combo box. and BTNOk [to save] and BTNCancel[when BTNCancel is click, user are prompt whether to save file if there is changes in entry] Form 2 is the file where BTNCancel …

Member Avatar for Geekitygeek
0
217
Member Avatar for JennyK

Hi, I am very new to php but I have been using it to do small web-based experiments (surveys) that have several alternative versions. I need to get an equal number of respondents for each version of the survey. So far what I've been using is a randomization variable for …

Member Avatar for diafol
0
160
Member Avatar for RehabReda

hi all i have made a small online game but i am facing a problem the server will be on my lap ok then if anyone press the connect key on the game a message box will be appeared saying that machine refused the connection so someone advised me to …

Member Avatar for sknake
0
138
Member Avatar for blackdove

I'm new to recursion and object oriented programming, but we have been assigned the knight's tour problem. This is where the knight's piece has to travel to every space on a chess board and land on each spot only once. I pretty much have my program done, except i'm having …

Member Avatar for RehabReda
0
2K
Member Avatar for cjjack88

Hi, i am using vb.net2008 and mySql 5.1.36 to do an assignment. I need to count the number of seat available in a table in my database. When i run my code, the error [COLOR="Red"] MySQL :: invalid attempt to access a field before calling Read()[/COLOR] occurred in the code …

Member Avatar for TomW
0
882
Member Avatar for jdam7459

I am having problems with traversing a parce tree. I need to do an in order traversal recursively. Here's the class's private section... [CODE] template <class data> class BinaryTree { private: struct tNode { data info; tNode *left; tNode *right; }; tNode *root; public: }; [/CODE] I'll be calling inOrderTraversal() …

Member Avatar for jdam7459
0
101
Member Avatar for m_sam6

hiii i m working in a cross platform video conference application using java media framework but i faced many problems with JMF especially in camera detection since it can detect VFW cameras only and detect default camera when connect more than one except u disable default camera from device manager …

Member Avatar for quuba
0
119
Member Avatar for alex0514

what im trying to do: 1. register 2.login 3.go to "my profile" where user are able to edit their username, password and so on. my problem: i have success to do the register n login page, but after login, the page "my profile couldn't show all the details that the …

Member Avatar for alex0514
0
78
Member Avatar for azegurb

hi I have just took from internet dinamic table. this table is dynamic and its rows dynamically can be increased. but i would like how create SUM function that automatically sums each added row value (text value) here is the code if possible please help me Thanks beforehand [code=html]<html xmlns="http://www.w3.org/1999/xhtml" …

Member Avatar for azegurb
0
4K
Member Avatar for nateuni

I am getting this error message, but I am not sure what I am doing wrong? Here is a edited snip-it of my code - [code=c] void WriteProgram(clientProgram *ptrToProgram, int *ptrTotalWkOuts, int *ptrNumOfEx) { int wkOut = 0; clientWorkout *ptrToWorkout; int *autoPopulate = (int *) calloc(1, sizeof(int)); clientWorkout *ptrToFirstWorkOut = …

Member Avatar for Tom Gunn
0
675
Member Avatar for gianrocks

hey everyone i need help with navigating images in a database, i was able to insert image to a database. btw, i am using sql server 2005 and visual studio 2008. i only converted a sample code of visual c to .net and i was able to do so, but …

Member Avatar for gianrocks
0
144
Member Avatar for chico2009

Hi All I am working on the project detailed below and need some help please. The flow diagram is the best I could do, I'm afraid. I need some direction as to what function to use to undertake the pointing to various lines of text and also the instruction to …

Member Avatar for jice
0
163
Member Avatar for beanboy

hi helpers, i'm trying to read an array from jsp in to java(servlet) page the code is JSP CODE (readingcheck box values): [CODE] String select[] = request.getParameterValues("sel"); if (select != null && select.length != 0) { for (int i = 0; i < select.length; i++) { out.println(select[i]); [/CODE] its working …

Member Avatar for Thirusha
0
2K
Member Avatar for SQL_n00b

The title to the thread pretty much describes what I am getting stuck at. I was able to create a procedure successfully, but everytime I try to execute it, I get an error:[QUOTE]The EXECUTE permission was denied on the object 'sp_OACreate', database 'mssqlsystemresource', schema 'sys'.[/QUOTE] Logically speaking, if the DB …

Member Avatar for SQL_n00b
0
446
Member Avatar for snakay

Hi all, I have ms office2003 installed on my machine. Therefore I use Excel 11. I have excel export button which worked perfectly well before I installed VS2008 SP1 . After the installation I'm getting exception from my excel export button saying " Microsoft.Office.Interop.Excel, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" I delete and …

Member Avatar for serkan sendur
0
470
Member Avatar for bsewell

Hi, I'm developing a VB6 application connecting to a MySQL database. I'm getting run-time error 3001: arguments are of the wrong type, are out of an acceptable range, or are in conflict of each other. I'm using the ODBC driver from MySQL. I would appreciate if anyone could spot where …

Member Avatar for AndreRet
0
665
Member Avatar for erloumervie

Hi to everybody! Is anyone can help me how to add a row in datagrid in vb 6.0. I have three text box of data displayed in datagrid using a button addtocart. The problem is when i click the addtocart button data in text box were displayed in datagrid but …

Member Avatar for AndreRet
0
552
Member Avatar for squareff255

Sorry guys! Last time I posted, I didn't know about code tags! I put them in. SO, I'm trying to write a python program that guesses a number that the user chooses between 1 and 1000 in no more than 10 guesses and I can not figure it out for …

Member Avatar for JasonHippy
0
160
Member Avatar for mrmodest

The basic concept is that you have a VB form to input two distiguishable words into a single text box. The two words have a length specification were the first word must be 5 characters long and the second must be 6 characters long. A single character seperates the two …

Member Avatar for Vineeth K
0
111
Member Avatar for leverin4

I have to write a very simplistic password cracker for a Security Class...Basically, the professor gave us a binary file with five encrypted passwords and a list of 354984 possible words. The first part of the assignment was easy, I can crack the 5 passwords in under a second. But …

Member Avatar for JamesCherrill
0
118

The End.