199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for cancer10in

Hi Experts! I have a question and will be grateful if you can help me out with some ideas. In an online hotel or ticket booking reservation system, normally a user is allocated a specific time to complete their registration / payments etc and during that time the system holds …

Member Avatar for somedude3488
0
225
Member Avatar for C:\>

If i create an object in Class1 and save some data in that object in Class1, how can i access that same data in Class2? Here's a code sample that should clarify my situation: Class1.java: public class Class1 implements Runnable { public ClientArray ca; public Class1(int port) throws IOException { …

Member Avatar for delta_frost
0
245
Member Avatar for excitedreams

I am opening a website in a web browser control in vb.net 2008 . I want to programatically fill a form which is on the 3rd page of the website . But my code is unable to fill it . Can u plz guide me . I am using the …

Member Avatar for iFrolox
0
138
Member Avatar for arizan

hiiiiii i have some problem for developing the code for addtion of 3x3 matrix class the code which i have develop is given below. but this class is not executed in vb.net code. dont know whats getting wrong in it as m nt getting the required result. please help me …

Member Avatar for TnTinMN
0
1K
Member Avatar for KY_Fan

This class just keeps getting worse. My next lab he had us do is this, **"Write a program that computes the intersection of a circle with a horizontal line and displays the information textually and graphically".** He gave us absolutely no help or anything to do this. He just said …

Member Avatar for KY_Fan
0
425
Member Avatar for codercpp1

I'm not sure how to do this, but i'm making a small shell in C++ in command line, with a few external scripts and executables being called. What I want to do is either make a simple web browser or a way to show web pages in C++, or if …

Member Avatar for c++Fun
0
2K
Member Avatar for poloblue

Good Afternoon, I'm having difficulties with a program that deal getting the letters frequencies from an input text file. So far I have this code. Cpp file: #include <iostream> #include <fstream> #include <string> #include <cstring> #include <cmath> #include <cstdlib> #include <iomanip> #include "lab_19_head.h" using namespace std; int main( ) { …

Member Avatar for Ancient Dragon
0
98
Member Avatar for devianleong

Hi, currently I want to make a date report generator but I don't know how to make it work. Anyone can share me a date picker that able to search the data in mysql? All the sales records are using CURDATE to save the sales records date. Please help me …

Member Avatar for JorgeM
0
58
Member Avatar for nikolaos

In a previous thread i had described a problem i had to transfer a frame or panel and all it's components as an image into a buffered image. I thought i had found the solution but it seems i am doing something wrong. In line 162 i call the method …

Member Avatar for NormR1
0
487
Member Avatar for hughesadam_87

Hi, If I have a list of strings, it's easy to output them using .join(). For example: mylist=['hi', 'there', 'girls'] myout='\t'.join(mylist) What I want to know is if there is a builtin python method that acts like join, except it automatically converts ints and floats to strings without giving a …

Member Avatar for TrustyTony
0
124
Member Avatar for diafol

Hi all. Am having a senior moment here. I have a htaccess file thus: Options +FollowSymlinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^/]*)/*([^/]*)/*([^/]*)/*([^/]*)/*([^/]*)/*$ index.php?lang=$1&top=$2&middle=$3&bottom=$4&sub=$5 [L] Which basically allows me to show http://www.mysite.com/cy/tgau/cemeg-1/ for http://www.mysite.com?lang=cy&top=tgau&middle=cemeg-1 That's all well and good. However, I'm getting real problems directing my forms to /includes/login.php This …

Member Avatar for cereal
0
234
Member Avatar for verbob

I am trying to store the contents of checkboxes in a field in a mysql database and retireve them later... [code=html ] <input type="checkbox" name="days[]" class="other" value="Monday" /> <label class="left">Monday</label> <br /> <input type="checkbox" name="days[]" class="other" value="Tuesday" /> <label class="left">Tuesday</label> <br /> <input type="checkbox" name="days[]" class="other" value="Wednesday" /> <label class="left">Wednesday</label> …

Member Avatar for jckb188
0
461
Member Avatar for khizer03

Hello Everybody please help me out i am in big problem the problem is my organization people gave me the WEB Application to edit it (the application was written in the C# language and it is web application so it is designed in ASP.NET MVC3 ) and i have to …

Member Avatar for ckchaudhary
0
248
Member Avatar for <M/>

**PLEASE HELP!!!** I have a 2 dim array (5x5) - I want to sort random integers that are contained within the array (from smallest to largest).... When I use asort() function I get the orginal table back... Also, the bubble sort didn't work... it only sorts the rows indpendently.... Reference:/// …

Member Avatar for <M/>
0
205
Member Avatar for techite

I need to fetch content from a file that is located at a URL say "http://example.com/sample.html?user=." This file will contain data in the following format:- Item =Name|Unit=1 QTY|Market=INDORE|Price=5000|UpdatedDateTime=Jun 27 2012 8:149PM After this line a <br> tag is used. How do I store the content into database. What I actually …

Member Avatar for diafol
0
155
Member Avatar for XodoX

I have a linked list where the input is read into. The 2 types of input have to go into a queue. 1 queue for each type. I suppose that the output line of the linked list can be used to read it into the queue ? I know it …

Member Avatar for XodoX
0
161
Member Avatar for Cap'nKirk

Hi all, for a while now I have been trying to figure out how to output a complete list of RGB color values to a combobox but am really stuck as to how to start. The values need to be sequential starting at (0,0,0) right the way up to (25,255,255) …

Member Avatar for Cap'nKirk
0
125
Member Avatar for Lucaci Andrew

Hi. So I get this weird error message out from a QT application that i'm creating: 0xc0000005: read access violation at: 0x0, flags=0x0 Basically what I'm trying to do is to set in a QT List Widget an item of type QList Widget Item in which I store two things: …

Member Avatar for Lucaci Andrew
0
3K
Member Avatar for sparsh610

hello friends... **1**. struct node *p; p=malloc(sizeof(struct node)); **2**. struct node *p; p=malloc(sizeof(struct node *)); what is the difference between 1 and 2 code :) pls help

Member Avatar for mike_2000_17
0
84
Member Avatar for arctushar

Hi I have created a php script for writing text in a image. Its working fine. But when I include a file it doesnot generate the image. what is the problem? my code is as bello <?php header ("Content-type: image/jpeg"); $im = imagecreatefromjpeg("photo.jpg"); $backgroundColor = imagecolorallocate ($im, 255, 255, 255); …

Member Avatar for arctushar
0
195
Member Avatar for sparsh610

hello friends, i have some problem with the concept of singly link list,,, don't know how to read it backward pls help

Member Avatar for mike_2000_17
0
852
Member Avatar for Remy the cook

I have to write a program that finds a pattern in a text using Brute-force method. I have made functions to read the text file, pattern file and to execute the brute force algorithm(called match). These are called in main(). i need to store the index (at which the pattern …

Member Avatar for Remy the cook
0
235
Member Avatar for Psyho

Hello I am in need of information. I have the following: xx.func(1).func(2).func(3) how should the func be written for it to work? Thanks

Member Avatar for mike_2000_17
0
254
Member Avatar for JESIA72

hey all iv have an assignment(wrtie an employee payroll program) which iv seen alot of other people have posted about so sorry for bringing it up again but im stuck. Iv made the program and it runs fine but it always calculates grosspay and netpay as 0.0 everything else (firstname …

Member Avatar for jLocke
0
566
Member Avatar for Jesi523

I am having some trouble. I have a Telerik editor where I display I file that is housed in my application. I need to save the changes back to the file. But some things also get saved to back to the database. My save button currently does save back to …

Member Avatar for androtheos
0
279
Member Avatar for Ruan10

The menu strip must be created programmatically (ie NOT dragged and dropped onto the form). The exit option added to the menu strip must exit the application (This works) A structure must be created to encapsulate all the questions and suggested answers. The structure must contain: 1.Question String 2.Answers Collection …

Member Avatar for Ruan10
0
168
Member Avatar for IT_Techno

hi ineed a help in C# programming language i want to know how to a ccount how many Fridays and Saturdays in specific month can i do it in C# With Regards,

Member Avatar for Momerath
0
556
Member Avatar for hatebin

Hi ! I'm devloping a Personal Trainer app on android and I need to remember training results in a history. I decided to remeber this results in a XML file. WHAT I HAVE: is an User class with results class User{ String name; int result1; int result2; User(String name, int …

Member Avatar for peter_budo
0
299
Member Avatar for veledrom

Hi, Let's say I have a textarea to collect user inputs. Someone turns up and writes a html code (eg. a table of something, or a img tag with src to naked image, a div with 10000px width and height ....) instead of plain text into it. It wouldn't be …

Member Avatar for veledrom
0
140
Member Avatar for 4evrmrepylrning

I have this: import re subs = [] def subcons(data): match = re.search(r'(<[a-z]{3})', data) if match: subs.append(match.group(0)) data = data.replace(match.group(0), '') subcons(data) else: print data return data, subs input = 'ABC <uvw <xyz some random data' e, f = subcons(input) print e print f The print statement in the else …

Member Avatar for TrustyTony
0
212
Member Avatar for riseguim

Hi there, How can I ignore case sensitivity when people type in letters and get redirected through this script: <?php if($_GET['username'] == "BBY"){ header("Location: http://www.x.ca"); } elseif($_GET['username'] == "RS"){ header("Location: http://www.x2.ca"); } elseif($_GET['username'] == "WM"){ header("Location: http://www.x3"); } elseif($_GET['username'] == "RP"){ header("Location: http://www.x4.ca"); } elseif($_GET['username'] == "SM"){ header("Location: http://www.x5.ca"); } …

Member Avatar for riseguim
0
135
Member Avatar for teedoff

Im trying to figure out the best wasy to loop over an array, but limit one loop to the first five positions. Then in a separate loop display the rest of the array. I am limited to what I can use. Meaning we code everything within cfscript tags in our …

Member Avatar for arrgh
0
131
Member Avatar for wallet123

> Hey guys! good evening! > hope you can help me with this one. > this is the thing that i want to do!: > > -Input 2 values : 1 string, and 1 int > -the string should have only letters (cant contain numbers!) > -encrypt the string using …

Member Avatar for wallet123
0
192
Member Avatar for me_coolvibes

Hi, I have just started learning VB.NET and recently tried to write my first piece of code. I am getting an error message that says: ******Statement cannot appear within a method body.End of method assumed. ****** Here's my piece of code: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As …

Member Avatar for me_coolvibes
0
191
Member Avatar for mhaselip

Hi. i was wondering if somebody could help me. Im looking for a php function to check a get and post methods for any type of hack or injection i.e. xss php java html mysql injection. the function needs to check the get or post methods prior to using it …

Member Avatar for dany12
0
198
Member Avatar for jalpesh_007

I am working with CSVfile program. I have already calculate something from it. Name,Age,Sex,Pincode,Disease 1. aaa,4,M,35265,flu 2. bbb,4,M,35652,Gastric 3. eee,6,F,35265,Brain 4. sss,7,M,32564,flu I have made program for calculating no. of age,sex and pincode as attached in the code. In this i have calculated that age=4 comes how many times and …

Member Avatar for NormR1
0
2K
Member Avatar for nyler01

Hi there, I am totally new in javascript and i need a help because i dont know how to create script that confirm the user's choice and submit it to the parent page before the parent page make a process. like this. i have a page that shows the details …

Member Avatar for daydah
0
182
Member Avatar for Violet_82

Hello there, I wonder if you can help me with a jquery issue. I am at the moment reading a book about it and there is an example in there, which you can see here http://antobbo.webspace.virginmedia.com/various_tests/worktest/chapter_03/09_animated_navigation/index.html If you hover on the navigation you will see the jquery effect kicking in …

Member Avatar for pritaeas
0
318
Member Avatar for PF2G

hi all i'm wroking on a music website. and now i'm doing a sort of contact form, where people can send the name of a band, the description of the band and the image wich can be from the user's computer or from the internet (inserting th image url). Can …

Member Avatar for PF2G
0
84
Member Avatar for geetajlo

hi can anyone help me . when the user enter the name in a textbox and click the search button, the output should be display in the datagrid... Help plz have to submit my project in 8 days

Member Avatar for nduduzo
0
192
Member Avatar for Vish0203

hello!! i was working on a small software a few days back which allows a user to login through the interfaceand see the topics inside the program. But how toavoid mis use of it??? if a person gives the software to some one else giving his user name and password …

Member Avatar for Vish0203
0
76
Member Avatar for jalpesh_007

I got error of ArrayIndexOutOfBounds Exception in following code. Please help me to how to solve the error.I also used String tokenizer class. import java.io.*; import java.lang.*; import java.util.Arrays; import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.io.Reader; import java.util.StringTokenizer; public class CSV{ public static void main(String[] …

Member Avatar for JamesCherrill
0
405
Member Avatar for trishtren

Hey, i googled around for a solution but seem unable to come up with a reasonable solution to the problem of passing a class as a parameter. I wish to mimic the syntax used in java like below : setPenColor(new Color(255, 0, 255)); Where i can pass a new object …

Member Avatar for JamesCherrill
0
209
Member Avatar for tariqondego

hi, i would like to assign the value of a combobox to a variable and use this variable as a parameter on the insert statement.see code below,code 1 works ok,but code 2 brings an error relating to wrong datatype,i cant seem to find where the problem because i think i …

Member Avatar for tariqondego
0
179
Member Avatar for mano7859

Hi, I got a problem with class. I've created 3 classes: * identifiantsClass.php * connectInfosClass.php * sqlClass.php In my third class, i always have the message: "error to connect" even if my database's name is good. Please help me... * identifiantsClass.php class Identifiants{ protected $serveur=null; protected $host=null; protected $mdp=null; protected …

Member Avatar for veedeoo
0
139
Member Avatar for anonb

I need help with Cartesian coordinates: Write a Java interface named Centered with two abstract methods with no argument: one named getCenterX that returns a double, and another named getCenterY that returns also an double. The purpose of these two methods is to return the two Cartesian coordinates of the …

Member Avatar for Valentinesmith
0
354
Member Avatar for SudoWin

Hi guys so here is the deal. I am writing a small VB program that will shell CMD and run a command. The problem is that the program being called in CMD needs some enviroment variables. I have set these and they are showing up correctly if I open CMD …

Member Avatar for SudoWin
0
428
Member Avatar for brunoccs

I've written (more like copied) the following assembly code : section .text global main main: mov edx,len mov ecx,msg mov ebx,1 mov eax,4 int 0x80 mov eax,1 int 0x80 section .data msg db 'Hello, world!', 0xa len equ $ - msg I've compiled it with NASM using the following command: …

Member Avatar for brunoccs
0
301
Member Avatar for blaaam

Hello! I have few problems. I hope you will understand me and can help me :) 1st - I have large input form, so if i press sumbit button then it makes large query thats slows down my page and database is overload, in form is somewhere about 180 colums. …

Member Avatar for blaaam
0
366
Member Avatar for Perry31

Can anyone elobrate me about Name Mangling? i tried to get name mangling for the below, struct sample { int a; char b; int a[1]; }; int myfun(int a, int b, int c[], struct a[]) { return 0; } int main() { struct sample Mystruct[2]; int a, b, c[9]; //Trying …

Member Avatar for Perry31
0
169

The End.