199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sandipan.rcciit

hello frnd, i want to integrate my web page with paypal service for shopping cart. for that purpose i use IPN (paypal notification service). i create a page name ipn.php to catch the paypal post and another page paypal.inc.php to describe all the variable and action to be done with …

Member Avatar for sandipan.rcciit
0
283
Member Avatar for moein_soltani

Hi guys.. In the huffman algorithm I have made an output file contain 0 and 1.. how can I say to compiler that these 1 and zero are bit no Byte. and how can i make the real Huffman output that its size is lesser than the initial file, What …

Member Avatar for moein_soltani
0
104
Member Avatar for rajani mayekar

hiiii all, i want to create a cube in vb.net through code.. and even i want to retrieve cube created in anlysis manager in vb.net so i want connectivity code... please help me!!!!!!!! thanks a lot!!!!!!!!

Member Avatar for kvprajapati
0
288
Member Avatar for COKEDUDE

Can someone tell me why my compiler won't compile this code and how to fix it? [CODE]void gcd(int x, int y) { if (x > y) { int c; while(1) { c = x % y; return y; x = y; y = c; } if (y > x) { …

Member Avatar for COKEDUDE
0
184
Member Avatar for RahulV

Hi, I've a really huge recordset having lacks of records. For some reasons I've to take all the records into an array (using loop) to do some processing and then put it into a grid. Now since the recordset is huge the memory is not able to handle the array …

Member Avatar for QVeen72
0
165
Member Avatar for sleepybug

hey, i was writing this program for complex number calc and when i run it ,it never returns me the right values.. so can u plz make necessary changes where i m wrong.. YEAH AND ONE IMP THING TO TELL U I M BEGINNING WITH POINTERS AND I LITERALLY SUCK …

Member Avatar for jonsca
0
204
Member Avatar for muralibobby2015

hello.... i am doing one task. in that there is a number of products. each product have number of pdf files. i am adding these files from admin side and inserting in database. so how can i download particular product files(ex..10 files) in single press at frontside. thnx.

Member Avatar for saiprem
0
130
Member Avatar for stockvale

Hi guys, I have written this code that will convert the images in Path1 to thumbs and will copy it to Path2. In the image folder there are more than 100 images. However this code will convert the first 5 images and will stops! If I remove the "createThumb" part …

Member Avatar for saiprem
0
125
Member Avatar for caribedude

I've been trying to make a synthesis game for my Organic Chemistry class, but when I try to draw some buttons on the screen I get a segmentation fault. I am using some functions for loading taken from Tim Jones's tutorial. I have built a Button class that has the …

Member Avatar for caribedude
0
246
Member Avatar for fardoonmuhafiz

Which is the most efficient way of creating a string object in java? [icode]String s="helo";[/icode] or [icode]String s=new String("helo");[/icode] in terms of memory usage? Thanks in advance...

Member Avatar for fardoonmuhafiz
0
93
Member Avatar for wisorac

Hello! I have a project to where I am making a pizza order for customers. My forms consist of a form for the pizza quantity and size (the cost is displayed in a lblDisplay.Text). I also have another form which calculates the cost of beverages. I am now on the …

Member Avatar for kvprajapati
0
2K
Member Avatar for kvass

Hey everyone~! I am pretty new to threading but I'm trying to figure it out by playing around with its possibilities. I wrote a program where 2 threads are supposed to "race" to count to 10 and then the first one there says "I win!" and the second says "I …

Member Avatar for kvprajapati
0
117
Member Avatar for ZER09

i have a problem in my code when i go to the method add i successfully go there but i cant go back to the main method someone who can help about this. sorry for my bad english. here is the code: [CODE] package project; import java.util.*; import java.lang.String; /** …

Member Avatar for ZER09
0
127
Member Avatar for jamesl22

I'm new here so please bare with me if this is the wrong forum (sorry if it is). I put it here because I believe you can contruct a kernel in c right? I've downloaded the linux kernel and thats full of c source files. Anyway, i've been using windows …

Member Avatar for manutm
0
145
Member Avatar for Hawkpath

Hey, my friend and I made this website: [url]http://www.letslearncpp.forumstech.com/[/url]. This website is complete with text and video tutorials made by my friend and I. Please visit this website and join it if you want to. Thank you.

Member Avatar for Hawkpath
0
197
Member Avatar for learningpython

Hi I have several directories .. ex uselib is one directory with a file usoc.py and def pars has to be called in the file runner.py. I tried to see the existing ways and implement and obviously confused. So please someone let me know the logic behind calling and having …

Member Avatar for learningpython
0
117
Member Avatar for MrYrm

Hi, i have a program that runs a loop during that loop if the user types lets say "status" i want a status report if the user didn't give any input no status report should be displayed i played around with getline getchar etc but those wait for user input …

Member Avatar for MrYrm
0
173
Member Avatar for techno_weenie

I need to parse a file line by line and check if the line is in a valid BNF format and print it out if it is. Below is my BNF grammar: <line> ::= <program names><spaces><uids><spaces><dest IPs><spaces><ports> <spaces> ::= <blank character> | <blank character><spaces> <blank character> ::= ' ' | …

Member Avatar for IsharaComix
0
133
Member Avatar for xoxbet

Hi, I'm taking texts from other page. In my page I use utf-8 encoding. When I print texts in my page, I get [COLOR="Red"]� [/COLOR]for some symbols, for example for [COLOR="Red"]ö[/COLOR] in German, or [COLOR="Red"]è[/COLOR] in French. I tried use file_get_contents, curl, but in these two ways output have [COLOR="Red"]�[/COLOR] …

Member Avatar for xoxbet
0
168
Member Avatar for mikeandike

Hi, I would like to terminate a do until ....loop when future value is greater than 1000 without using a Exit or Continue statement. Any suggestions? Thanks [CODE] Do Until inti > intMonths decFutureValue = (decFutureValue + decMonthlyInvestment) * (1 + decMonthlyInterestRate) If decFutureValue > 1000 Then End if inti …

Member Avatar for mikeandike
0
115
Member Avatar for rico.tee

Good day. I need help on a program that I'm working on. It's supposed to take the strings in input.txt and put the odd numbered lines to odd.txt and the even ones to even.txt. here's the code I have made so far... [CODE] #include<stdio.h> #include<stdlib.h> #define p printf #define s …

Member Avatar for abhimanipal
0
154
Member Avatar for Clawsy

Hi, I have an urgent ugly problem. I have a php file on a server that reads the name of the files of a directory from the server and POST them to my java application. When I try to read it, i get [CODE]Server returned HTTP response code: 400 for …

Member Avatar for PatrickSharp
0
913
Member Avatar for MrJNV

I'm having issues doing this assignment. I'm not really sure what's wrong, so hopefully someone can help HERE'S THE CODE[CODE] #include<iostream> using namespace std; class Vehicle { private: int Age; protected: float Price; public: Vehicle(); ~Vehicle(); void setAge(int i) { Age = i; }; void setPrice(float i) { Price = …

Member Avatar for dusktreader
0
108
Member Avatar for akaspro

New to perl and asking for help. I need to execute the following: 1. Extract text between double quotes from text file located in subdirectory of INI directory 2. Search in directory TestData for the file with name that matches the text extracted in 1. 3. Copy the file from …

Member Avatar for akaspro
0
95
Member Avatar for srinath3

hello c++ pros, iam a c++ beginner please help me with this code..iam unable to get the proper out put.In the above class i have tried to imitate String class and overloaded few operators. I got strucked up as show() method above was unable to print "t3" string properly.Please help …

Member Avatar for jonsca
0
119
Member Avatar for iammfa

:-/ Now, I'm trying practice on c++ basics, since few minutes I tried practice "for loop" especially, in console screen, I wrote this trivial program to calculate sin angles between angle (0 to 90) with for loop, but when i build it, it gave me one result like my attach …

Member Avatar for jonsca
0
120
Member Avatar for tikoti

Hi all, I have tried to make a little example of a random number generator for c++. However, as I am quite new in this language I do not know its peculiarities. Here is the code [CODE] //g++ -o ran ran.cpp #include <iostream> using namespace std; int main () { …

Member Avatar for jephthah
0
474
Member Avatar for whiteyoh

Hi all, When running the following i get this error: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'user_id' cannot be null and heres the code: [code] function upload(){ /*** check if a file was uploaded ***/ if(is_uploaded_file($_FILES['userfile']['tmp_name']) && getimagesize($_FILES['userfile']['tmp_name']) != false) { /*** get the image info. ***/ $size = getimagesize($_FILES['userfile']['tmp_name']); …

Member Avatar for whiteyoh
0
609
Member Avatar for techno_weenie

Hello, I'm trying to split a string into 4 separate strings using a delimiter "\n" The initial string is: "/usr/bin/ssh \n * \n 147.188.195.15, 147.188.193.15, 147.188.193.16 \n 22" I would like it to be split up into four different char's so that char *programnames = "/usr/bin/ssh \n" char *uids = …

Member Avatar for jephthah
0
144
Member Avatar for gunbuster363

Just as the title. I want to store some strings inside the program, and later I may store them(the string) in a text file. And I do not want duplicating strings. As I learned from school, I should use a hash table for it, but I may build a bad …

Member Avatar for lrh9
0
107
Member Avatar for babydol
Member Avatar for Yeen

I have a table that looks like this: [code] Database: Testdb Table: Testtable ID | Value -------------- 1 | 105 2 | 105 3 | 105 4 | 105 1 | 255 2 | 255 2 | 311 3 | 311 4 | 311 1 | 500 3 | 500 …

Member Avatar for Yeen
0
2K
Member Avatar for abhimanipal

[code=c] int main(int argc, char* argv[]) { int a=3,b=2,c; a=a==b==0; printf("%d\n",a); return 1; } [/code] I cannot understand why this code gives 1 as the answer. According to me , this should be the order of evaluation b==0, which gives false & the expression becomes a=a==0 this should again give …

Member Avatar for IsharaComix
0
115
Member Avatar for kekekerush

Hey all, I have to program a method that is called makelist, and I'm not sure how to program it. If I already have a list in my external file, how would I grab the list from there? I was thinking of infile.get(char) and keep going until it reaches the …

0
62
Member Avatar for petzoldt01

I am newish with python (ActivePython v2.6), and I am trying to automate AutoCAD 2010 (Acad) using module win32com (using acad's COM/ActiveX interfaces). Most of the interface is pretty straight forward, but I am getting hung up on functions that need to use VARIANTS to pass numerical arrays. Im not …

Member Avatar for petzoldt01
0
472
Member Avatar for cubicbox

hi experts I am now writing a procedure for my main program in order to let people search for their required entries (eg. user inputs name and the program returns the name together with the tel no. etc.) The procedure is now in its simplest state as users can only …

Member Avatar for FlamingClaw
0
160
Member Avatar for RSP86

Hi, I have a project for Uni, It is to create a system which will allow fingerprint recognition which will allow a user to access a created database and download information to a screen. I have implemented what i want it to look like, now im working on 3 main …

Member Avatar for peter_budo
0
174
Member Avatar for HiImBen

[code]using System; class Program { static void Main() { double total_Shipping = 0, total_Weight, standard_Item = 3.00, express_Item = 4.00, over_Night_Item = 5.50, standard_Weight = 1.45, express_Weight = 2.50, over_Night_Weight = 3.00, rate = 0, surcharge_Standard = 2.50, surcharge_Express = 5.00, surcharge_OverNight = 8.00; int shipping_Speed, total_Items = 0; char …

Member Avatar for kplcjl
0
136
Member Avatar for gnarlyskim

trying to do input checking for an alpha character inputted where a numeric one is needed. I've implemented this function firstChoice() to allow a certain response is '2' or '3' was picked and then another certain response for anything other than '0 '1' '2' or '3'. I must add another …

Member Avatar for gnarlyskim
0
442
Member Avatar for taggz19

i don't know how to make 1.6666667 to 1.6 only.. . please someone help me. . please! please! please!

Member Avatar for peter_budo
0
402
Member Avatar for EvaDo

Hi Guys, This seems easy, it just doesnt seem to work. I want to: loop through each file in a directory. each file contains a number of lines like this ">XXXXX" I want to extract each line that contains this,move it to a new file labelled almost identical to the …

Member Avatar for IsharaComix
0
76
Member Avatar for Stefano Mtangoo

One day, my Java friend asked me if there are threads with PHP. I didn't knew and I have to poke around net and manual only to find none. enough of useless words. Here my question goes. Is it possible to create abstract class with virtual and pure virtual functions …

Member Avatar for whiteyoh
0
103
Member Avatar for conord

Firstly - I'm a complete noob when it comes to Python. I'm currently trying to launch an external program called Dazzle from Python with a the path to an xml file as a parameter. I've tried a few different options and can get Dazzle to launch - but the xml …

Member Avatar for woooee
0
143
Member Avatar for CFROG

I'm working with Google API trying to plot multiple points on a map. I can't find really good documentation on how I need to do this so I'm sort of winging it at this point. Obviously what I have is not working. The map is displaying and centered where I …

0
66
Member Avatar for PixelHead777

I'm trying to find a way to take a list of one-letter strings, for example, ['e', 'n', 'o', 't', 'r'] and find every order possible of these letters. I'll be able to, on my own, target the three words I would want for this, 'noter', 'toner', and 'tenor' (unless the …

Member Avatar for PixelHead777
0
89
Member Avatar for lrh9

I'm having a problem with 'os.path.getmtime'. I've been doing some research into generating '.pyc' files and I am able to retrieve the source modification time (in seconds) as recorded in the '.pyc' file. It is merely the second set of four bytes unpacked as a long integer. [code=Python] import random, …

Member Avatar for lrh9
0
2K
Member Avatar for josh06

I am 12, mad about computers and skateboarding, im an emo, i know it doesnt sound right that i like programming. anyway, i have started learning c++, only just! I would like to know first of all if it is possible that you can build your own operating system with …

Member Avatar for josh06
0
118
Member Avatar for saad_sinpk

i use this script for uploading image in mysql db [CODE]<?php $db_host = 'localhost'; // don't forget to change $db_user = 'username'; $db_pwd = 'password'; $database = 'vargasfa_fake'; $table = 'ae_gallery'; // use the same name as SQL table $password = 'satan159E'; // simple upload restriction, // to disallow uploading …

Member Avatar for whiteyoh
0
164
Member Avatar for beforetheyknew

Hi guys, why wont this work. I'm still learning and have no experience with graphics of any kind. Just trying to put the image onto the background. The link directory is right i think. [CODE] import java.awt.Color; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Image; import javax.swing.*; //inc javax.swing.ImageIcon public class TheArea …

Member Avatar for beforetheyknew
0
98
Member Avatar for bpmccall

I am new to the whole concept of "data binding". What I am trying to do seems very simple, but I don't know where to start. I have a database with an ODBC System DSN and I can connect to it with an ADODB.Connection object. I can also create an …

Member Avatar for tumadre0
0
1K

The End.