199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sgtlaugh

Hi, I am trying to make an image viewer, this is my first time developing a software and I was just wondering how to add properties in my application. I'm creating this software with the help of Gtk and C and now I'm stuck because I want to display the …

Member Avatar for N1GHTS
0
258
Member Avatar for phpDave

Hi, I'm looking to build a payment button using Amazon Simple Marketplace Payments. Here is some code: [CODE]<input type="hidden" name="recipientEmail" value="email_address yahoo.com" >[/CODE] I would like value to be a variable but having trouble making this happen or finding info on how to do this. Any help would be awesome.

Member Avatar for phpDave
0
113
Member Avatar for Canea

Hello, working on an Opencart website using Wamp and Windows7. Having trouble with Php settings _please view screenshot_ [URL=http://imageshack.us/photo/my-images/408/phph.png/][IMG]http://img408.imageshack.us/img408/1097/phph.png[/IMG][/URL] I've seen going through several sites with no solution so far; any help you could provide would be greatly appreciated. regards, C.

Member Avatar for Canea
0
138
Member Avatar for vaironl

I have a scanner which needs to read a recipe text file, specifically line 3. I want to read all of the words in that line using a delimiter (which I already know how to use). Though I don't know how to make the scanner stop before going to the …

Member Avatar for Aviras
0
164
Member Avatar for ERINY

Hi, i'm python beginner. how to make that only use def, for, list, while .. [CODE] def comb(n,r): if r == 0: return 1 elif r == n: return 1 else: return comb(n-1,r-1) + comb(n-1,r) [/CODE] this code is very slow.... ah , I have to use recursion .! please …

Member Avatar for TrustyTony
0
1K
Member Avatar for shandoosheri

Hi every one I have this url [url]www.websiteaddress.com/0010001[/url] and i want to keep counting on it like it becomes [url]www.websiteaddress.com/0010002[/url] [url]www.websiteaddress.com/0010003[/url] and so on and i want all lines to be in a sing text file so please help me do this

Member Avatar for thines01
0
114
Member Avatar for oddsocks

Hello, I am on an introduction to software development module. I need help creating an array, it doesn't have to be hugely complex only basic as it is at introductory level, but still I am finding it difficult, [U]please can someone help it will be gratefully appreciated.[/U] [B]This is the …

Member Avatar for javaNooblet
0
107
Member Avatar for kyriacos1986

Good morning to everyone. I have been asked to derive a SortedLinkedList from the java.util.LinkedList which will sort members of a gym based on their last names. In addition will calculate the BMI of each member, the members will be added from a text file. Here is my code. 1.Class …

Member Avatar for JamesCherrill
0
181
Member Avatar for pawan768

I try many tips but not able to connect two table with each other! Actually i want something like that , I insert into one table and if data also used by another table (Data automatically insert in another table also by submitting data in first table)

Member Avatar for adam_k
0
149
Member Avatar for Jetster3220

Task: • Create a text file with 5 questions in it. • Read each question in from the file. • Ask the user for their response. • Create a new text file. • Write the user’s answers to the text file. • Ask the user if they’d like to review …

Member Avatar for woooee
0
320
Member Avatar for bigredaltoid

Hi all - I need to write a code that reads in a 20 line file 4 lines at a time, and puts the five sets of 4 strings into their own individual strings. So there should be five strings containing 4 strings each. I am very confused and havne't …

Member Avatar for bigredaltoid
0
166
Member Avatar for sainitin

Hi all, I have text file as follows... >s1 MPPRRSIVEVKVLDVQKRRVPNKHYVYIIRVTWSSGATEAIYRRYSKFFDLQMQMLDKFP MEGGQKDPKQRIIPFLPGKILFRRSHIRDVAVKRLIPIDEYCKALIQLPPYISQCDEVLQ FFETRPEDLNPPKEEHIGKKKSGNDPTSVDPMVLEQYVVVADYQKQESSEISLSVGQVVD >s2 MAEVRKFTKRLSKPGTAAELRQSVSEAVRGSVVLEKAKLVEPLDYENVITQRKTQIYSDP LRDLLMFPMEDISISVIGRQRRTVQSTVPEDAEKRAQSLFVKECIKTYSTDWHVVNYKYE DFSGDFRMLPCKSLRPEKIPNHVFEIDEDCEKDEDSSSLCSQKGGVIKQGWLHKANVNST . . . I wanted to count letter 'P' in each sequences output should be > s1:10 > s2:20 To acheive this python script as follows infile=open("file1.txt",'r') out=open("file2.csv",'w') for line in infile: line = …

Member Avatar for woooee
0
193
Member Avatar for PapaGeek

I need to be able to call some very old C functions from a form application. What I found on line was to use 'extern "C"' to let Visual Studio know how to handle the calling parameters. But I'm getting a compiler error and not sure where it is coming …

Member Avatar for PapaGeek
0
1K
Member Avatar for wmurrow

Hey all. I'm trying to get the FindDaysOver function to grab the avg result from the CalcAvg function result in main. What am I doing wrong? Any help would be appreciated! [CODE] #include<iostream> #include <iomanip> using namespace std; double FindMax(double [], int); double FindMin(double [], int); double CalcAvg(double [], int); …

Member Avatar for WaltP
0
148
Member Avatar for sofia85

Hi, I have written a program that searches through a text file and in the end I want it to give me some probabilities. In my program I'm searching (for each line) for certain characters and if that character exists then extract the probability. The thing is that sometimes this …

Member Avatar for Gribouillis
0
151
Member Avatar for laghaterohan

Hello, I am having a gridview and a drop down list placed above it. Suppose my gridview has total 100 records in it. However, i the user wishes to see only 5 , he has to select 5 from the drop down list and the gridview should display only 5 …

Member Avatar for rath.avinash
0
113
Member Avatar for gunnerone

Hi, I am just trying to normalize these data here: An initial call is logged by a first line support analyst who assesses the severity of the problem and places the call in a pool. The call is picked up by a problem analyst who in turn allocates it to …

Member Avatar for BitBlt
0
143
Member Avatar for ynwa

Hi all, I am using a SWT combo box in java. The functionality is like whenever a user enter string in the combos text field, based on that string i am filtering the combos list values and displaying the list using combo.setListVisible(true). Now, after typing the first letter the list …

Member Avatar for Aviras
0
435
Member Avatar for effBlam

I'm confused on how i can change or "toggle" the text of a button from say "D" to "A" when clicked, and then back to "D" if clicked again. So far I have this: [ICODE]from Tkinter import * from tkFileDialog import * class Game(Frame): def __init__(self,root): Frame.__init__(self,root) self.grid() self.buttons() def …

Member Avatar for effBlam
0
180
Member Avatar for trade4target

Trade4target is my site-Hi I have recently been facing a difficut issue.I think some one is attacking my website. I have attached the jpg image of the failure and its happening on a daily basis .I upload the site and for some hrs its just cool but suddenly i get …

Member Avatar for hericles
0
70
Member Avatar for codeorder

[CODE]Process.Start(Path.GetDirectoryName(xsM)) [/CODE] [ICODE]xsM = String[/ICODE] with a [ICODE]FullPath[/ICODE] of a .File. .i would like to load win.explorer with [ICODE]that.File.Selected=True[/ICODE]. .thanx.in.advance.

Member Avatar for codeorder
0
152
Member Avatar for MrEARTHSHAcKER

Hi, I wondered if it was possible to declare the friends of class but out of it? Like this: You have created class: [CODE]class myclass{ int x; public: bla bla bla };[/CODE] And instead of this: [CODE]class myclass{ int x; public: bla bla bla friend class someclass; };[/CODE] If it …

Member Avatar for MrEARTHSHAcKER
0
3K
Member Avatar for compulove

Hello all! I am getting errors when I try to use this adodb.connection and command in my code. The error I am getting is saying that the connection and command are not defined. I read online that depending on your version of vb that you might use the "OLE" connection …

Member Avatar for jlego
0
241
Member Avatar for mcspud

Hi i need help with a asighnment, i am supposed to take an existing pig latin transualater and modify it to deal correctly with capitals and punctuation, i am currently at a loss at what to do. here is the class file: [CODE]import java.util.Scanner; public class PigLatinTranslator { public static …

Member Avatar for mcspud
0
139
Member Avatar for amsane

hi, I am changing my html web pages for website. my eclipse project is inside www directory. But I don't see html changes when I open web pages. I restarted server as well as eclipse many times. Still, the same result. Any Help, suggestion please?

Member Avatar for diafol
0
632
Member Avatar for y2kshane

im creating a custom User Control. its a custom picture box . i want to user to select the picture file from file system. so i use following code(i found it on a forum) . but vb says that code has a error . help me :'( [CODE] <EditorAttribute(GetType(System.Windows.Forms.Design.FileNameEditor), _ …

Member Avatar for y2kshane
0
228
Member Avatar for BIG J

Hi, I am doing some blueJ work but am not the best at it. I have to create a basic library system, this is made up of three classes. Book, Member and Library. These are the following requirements for my library class: 1.It has two fields of ArrayList: one is …

Member Avatar for BIG J
0
202
Member Avatar for javausers

Hi, I m trying to write code to merge two csv files. could any one help me out to get the hints to start?

Member Avatar for javausers
0
670
Member Avatar for developer_2010

hi all I have created a web application and have a number of textboxes on a web page. I have created a new class with carries out a number of calculations and if there is no text in the box it enters 0.00 so I dont get a null exception. …

Member Avatar for bluehangook629
0
123
Member Avatar for MaSSaSLaYeR

Hallo! I got the following Decimal IP: "3232235876" it represents "192.168.1.100" I got it in the following way: Code: [CODE] //GET IP if (gethostname(hostname, sizeof(hostname)) == SOCKET_ERROR) { printf("%s","host not found"); } struct hostent *phe = gethostbyname(hostname); memcpy(&addr, phe->h_addr_list[0], sizeof(struct in_addr)); //Convert IP to Decimal notation sprintf(decResult,"%u", addr); sprintf(decResult,"%u", htonl(atoi(decResult)));[/CODE] …

Member Avatar for gusano79
0
863
Member Avatar for shella

Hi all. I'm working on a project where I'm supposed to store some PDF into a website. I'm usibg PHP/MySql. Actually these PDF are very personal and I need to be sure that no one can access the PDF even if this is on an address like [url]www.site.com/document.pdf[/url]. I need …

Member Avatar for niranga
0
224
Member Avatar for tania123123123

my task is Design and implement an abstract base class ArithmeticExpression that represent any binary (having two arguments) arithmetic expression. The abstract class should include at least two methods called evaluate and display.... i have done the code but it doesnt output anything.. im really stuck.. does anyone know why? …

Member Avatar for JamesCherrill
0
186
Member Avatar for jsquadrilla

Hello, Currently I have a PHP Script that screen scrapes a website for data, and store it into a MySQL table. I'd like to set this up to run in intervals during the day. Right now, all I do is open the link in my browser and it runs the …

Member Avatar for pritaeas
0
268
Member Avatar for kcp

I just recently started learning C++, in the book i am learning from there is a problem that asks you to write a simple pasword program. It just asks the user the password and then displays a message wether its right or wrong after they enter it. I am having …

Member Avatar for WaltP
0
348
Member Avatar for DarkBerzerk

lets say it in example,i had column, which its rows contain numbers increasing -10,-9,-8,-7,....-1, those rows got bugged and changed into 1,2,3,4,.....10, that was example, the real one is over 40,000 rows, and it was -2147483629,-2147483630,-2147483631,....etc and it turned into 1000000001,1000000002,1000000003,.... how to make script that scan for 1000000001~1000000050 (for …

Member Avatar for DarkBerzerk
0
93
Member Avatar for pawan768

I use two ResultSet , One in the another one. [CODE] try { con1 = DriverManager.getConnection ("jdbc:odbc:java"); smt1=con.createStatement(); if(sele.equals("ALL")) { rs=smt.executeQuery("select * from Stations where State='"+st+"'"); } else { rs=smt.executeQuery("select * from Stations where City='"+sele+"'"); } while(rs.next()) { stid=rs.getString(1); ofid=rs.getString(2); name=rs.getString(3); num=rs.getString(4); des=rs.getString(5); dis=rs.getString(6); %> <tr style="border: blue dotted thick"> …

Member Avatar for pawan768
0
439
Member Avatar for innspiron

Hello, can anyone suggest me how to convert string to xml object in java? I have a string (Data) ant now I have to pass it as parameter as xml object, which structure should be: <MGWData>Data</MGWData> Where I surf I always see only solutions for converting string to xml document, …

Member Avatar for Aviras
0
777
Member Avatar for killerbeat

Hey, I have an website with dynamic text on it, i want to transfer the text to an textbox, and the text is between this tags: <pre> </pre> How do i do this?

Member Avatar for fiaworkz
0
3K
Member Avatar for kumaresen

i am having prob in looping this java program...the 1st section is to choose the cloth material...then the length of material needed n lastly calculate the price of the needed length after discount...have done all of them...but having a prob were should i insert the loop to make the program …

Member Avatar for Aviras
0
142
Member Avatar for xsharpx

I've been playing around with this for a while and just can't seem to get it right. Any help is appreciated! [CODE]string catalog[][] = { {"item1 - 0 dollar(s) each","description1"}, {"item2 - 3 dollar(s) each","description2"}, {"item3 - 5 dollar(s) each","description3"}, {"item4 - 7 dollar(s) each","description4"}, {"item5 - 9 dollar(s) each","description5"} …

Member Avatar for amt007kmr
0
110
Member Avatar for ChaseRLewis

I know C/C++ but am trying to learn C# as creating GUI based application is much easier than in C++. I've been leveraging the options of which GUI tool I should learn. Is it best to learn Winform, WPF, or other? I recently tried out the Windows 8 preview to …

Member Avatar for ddanbe
0
111
Member Avatar for existence19

Hi I have to create a hash map with key as string and data as string. i have to create a custom hash function for the hash map, but i don't know how to do that.. can somebody explain and give an example from which i could understand?

Member Avatar for vijayan121
0
823
Member Avatar for jon4321

I'm trying to pass a guid to the WHERE statement in a gridview. It works for the Select parameters section, but inserts a null value when I try to update the data. [CODE] <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:EDUFormConnectionString %>" SelectCommand="SELECT OSSPERSON.PERSONID,OSSPERSON.FIRSTNAME, OSSPERSON.LASTNAME, OSSPERSON.AorC, OSSPERSON.AGE, OSSPERSON.GENDER FROM OSSPERSON INNER JOIN OSSREGPERSON …

Member Avatar for jon4321
0
205
Member Avatar for BoBok2002

Hi, This is my first project involving processes I am completely lost. I need to create 10 processes that run at the same time. I know that a process is a program in execution so I must write a program that executes 10 times. I used Win32 API to create …

Member Avatar for vijayan121
0
3K
Member Avatar for kay19

Well, doing a beginner project. I've 100% finished with adding items to the DB. However, having stuck trying to use the "search" button to retrieve the DB list, as well updating errors. Objective, input last name, click on search, and find the results based on the last name input. Here's …

Member Avatar for kay19
0
183
Member Avatar for azdonald

Good day, I'm trying to build an online quiz for my website. i want to do it oop style but i'm having problems in certain areas but i'll need help. this is the class code [CODE]class Quiz{ // method to get the questions and answers public function getQuestion(){ $host="localhost"; // …

Member Avatar for mschroeder
0
127
Member Avatar for nadavr

Hello, I've received an homework assignment to create an array via linked list. All went well until the compilation part where i get continuous errors. Seems most of the problem is that certain classes (DSA_array) doesn't recognize the existence of other classes and their member functions (DSA_list). Here's my code …

Member Avatar for Fbody
0
128
Member Avatar for Zeref

Hi guys I'm trying to place a user input into a database(mysql) [CODE]newplayer=raw_input('Please enter a new player name: ")[/CODE] the sql commands to insert data is [CODE]sql="""INSERT INTO PLAYERS(NAME) VALUES('newplayer')"""[/CODE] When i check the database it shows newplayer instead of what the user has entered. any ideas of how i …

Member Avatar for TrustyTony
0
94
Member Avatar for Eldyvoon

let say I hv a row of text 'date' 'amount1' & 'amount2'.. by using ifstream I able to read a file, but how about I want to read the 3rd data? use seek?

Member Avatar for Eldyvoon
0
271
Member Avatar for lilsancho

Hi all I'm wondering if some one could help me with something as i think i've just forgotten everything i knew :) I have this code: [CODE] #include <stdio.h> #include <stdlib.h> int main() { char A[4]; char B[2]; char C[2]; printf("Enter Numbers: "); scanf("%s",&A); fflush(stdin); printf("Enter Numbers: "); scanf("%s",&B); fflush(stdin); …

Member Avatar for Narue
0
189

The End.