199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Jean Declaix

In the following code : [COde]#!/usr/bin/python # -*- coding: iso-8859-1 -*- import Tkinter import os import threading class Fil (threading.Thread): def __init__ (self): threading.Thread.__init__ (self) print "Init Fil" def f1 (self): print 'f1' #app().ecrit(1) class App(Tkinter.Tk): def __init__(self,parent): Tkinter.Tk.__init__(self,parent) print "Init App" self.initialize() ping() def initialize(self): self.grid() self.bouton1L = Tkinter.Label(text="-", …

Member Avatar for Jean Declaix
0
251
Member Avatar for Labdabeta

I am getting extra garbage at the end of the string returned by this function. Why? [CODE]char *read(char *fname) { FILE *file=fopen(fname,"r"); printf("Opening input file...\n"); if (file==NULL) return NULL; int length=0; char *ret=new char[length]; while (!feof(file)) { char ch=fgetc(file); char *temp=new char[length+1]; for (int i=0; i<length; i++) temp[i]=ret[i]; delete[]ret; if …

Member Avatar for mike_2000_17
0
242
Member Avatar for NoUserNameHere

If there were 2 nodes like this: [url]http://i.imgur.com/21x2m.png[/url] Would newNode be pointing to itself if there was a code like: [CODE]newNode->next = intNode->next[/CODE] Also what would intNode be pointing at if this code was right after the one above it: [CODE]intNode->next->prev = newNode[/CODE]

Member Avatar for mike_2000_17
0
147
Member Avatar for Lemony Lime

I'm making an RPG, and am trying to split things up into multiple files to organize things better. (I mean, character creation alone was over 2000 lines.) But this is something that I've never done, and I'm really not sure how to do it. So, if I could get some …

Member Avatar for ret801
0
289
Member Avatar for 03hasnam

[CODE]/*********************Pay Button Listener***************************************/ public class payListener implements ActionListener{ public void actionPerformed(ActionEvent e) { replace(); Ticket getNewPayTime = new Ticket(); getNewPayTime.loadTicket(ticketIDNumber); paymentTime = Ticket.paymentTime; //getting correct ticket pyament time, correction performed by replace method. long timeDifference = paymentTime - entranceTime; SimpleDateFormat sdf1 = new SimpleDateFormat("MMM dd,yyyy HH:mm"); Date paymentdate = new …

Member Avatar for NormR1
0
146
Member Avatar for iamcreasy

What is the most efficient way to take input of a character array or string of 25 ASCII characters using scanf? They are not formatted, just a sequence of character. i.e. ABCDEFGHIJKLMNOPQRSTUVWXY One more point is that, after input I have to find a sequence of character within this string, …

Member Avatar for Narue
0
434
Member Avatar for dhnayak

I am here with given my one problem, is mentioned here below; I am beginner to visual basic programming after qualified VB6. And I wish to have some more experience for this programming. Hence I need some procedure on codling's for direct printing procedures. This is under a trial basis. …

Member Avatar for hkdani
0
3K
Member Avatar for newbiecplusplus

Hi, i'm really stuck with this linked list and i feel tottaly out of my depth. Hopefully i can get it a bit clearer! what im trying to do is a print simulation with three priorities and im trying to make the linked list to act like the queue so …

Member Avatar for bbman
0
136
Member Avatar for moonL!ght

hi im having this error i dont now where is the mistake can you halpe me? this is the exception: java.lang.NullPointerException at shape.shape.<init>(shape.java:14) at shape.rectangle.<init>(rectangle.java:17) at shape.listOfSHAPES.init(listOfSHAPES.java:73) at sun.applet.AppletPanel.run(AppletPanel.java:424) at java.lang.Thread.run(Thread.java:619) these are part of my code were it show the error list of shapes class:[CODE] else if(shape.charAt(0)=='R'||shape.charAt(0)=='r') { int …

Member Avatar for stultuske
0
209
Member Avatar for sufyan2011

Unable to load DLL 'OraOps9.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E). Following is my scenario: 1 - Previoulsy I had Oracle 09 in my asp.net 4.0 applicaiton working fine on Windows XP. 2 - I updated the windows to windows 7 and installed Orcale 11g. …

Member Avatar for sufyan2011
0
925
Member Avatar for Dane2259

For some reason when I try to run a program there are errors and iPhone simulator won't come up. It says: Interface Builder encountered an error communicating with the iPhone Simulator. Failed to determine the value for systemColors of UIColor. Command/Developer/usr/bin/ibtool failed with exit code 1 ... if anyone can …

Member Avatar for Dane2259
0
494
Member Avatar for IanArcher

How can I make it so when I e-mail for e.g. [email]news@example.com[/email] text/information of the e-mail is written into a mysql table? It would extract the contents of a new email and write them into MySQL table. This table manages news articles on the website, so in the MySQL columns: …

Member Avatar for fobos
0
888
Member Avatar for minghags

Hello! Sorry for asking but i have really big favor to ask. If anyone is so kind to help me do that i would really appreciate it. I wouldn't even think to ask like that but have a due date till tomorrow. I know its last second but I was …

Member Avatar for Ezzaral
0
410
Member Avatar for BilalAKhan

Hi, Can anyone please tell me whats wrong with this piece of code? I am trying to insert email (user name)in the database. This thing is now getting on my nerves. [CODE] if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form")) { $insertSQL = sprintf("INSERT INTO blog (title, specialization, message) VALUES (%s, %s, …

Member Avatar for fobos
0
200
Member Avatar for ulasoc

[CODE]Dim di As New IO.DirectoryInfo("c:\") Dim diar1 As IO.FileInfo() = di.GetFiles("[COLOR="Red"]*.jpg[/COLOR]")[/CODE] How can i use multiple filter to retrieve list of files in directory. i tried some examples for troubleshooting ("*.jpg|*.png") ("*.jpg,*.png") But its only filtering one type of file. i need your help about that.

Member Avatar for Begginnerdev
0
219
Member Avatar for Artmann

Hi I've been working with Java for a while now but there's one basic thing I still don't understand. Java got 4 Access Modifiers [LIST] [*]Default [*]Public [*]Private [*]Protected [/LIST] I know the difference between them, the thing is I don't now why you should use different Modifiers. Wouldn't it …

Member Avatar for Ezzaral
0
155
Member Avatar for a.muqeet khan

guys i have a prob i wrote the code for file handling the prob is that the code is working perfectly it also creates the file yet it doesnt store any thing in it and after the del the files it created in my hard disk he wont create any …

Member Avatar for v3ga
0
211
Member Avatar for evanescence

Hi, there. I've been trying to get my program to work for several hours now and I just can't fgure out what's wrong with my code. It's about passing a variable between processess using pipes. Each process increments it M times. The program works perfectly when I use shared memory, …

Member Avatar for evanescence
0
142
Member Avatar for rotten69

G'day everyone, I'm just wondering about what's actually the best option out of these PHP sessions(server-side) and JavaScript sessions(client-side)? If the server-side session is not stored on client's machine, where else would it be stored? Are there any pros and cons of each option? Thanks folks.

Member Avatar for phorce
0
163
Member Avatar for talisien

Hi all, How do I use data from json in a javascript function? I have something like this! $('#monday').click(function(){ test(); }); function test() { $.getJSON('singleday.php?dld='+ id+'&chkdag=' + 1, function(json) {sday=json}); OtherFunction(); } Now I want to transfer the json date into an other function. something like this function OtherFunction() { …

Member Avatar for talisien
0
200
Member Avatar for missumissu

[CODE]<?php $target = "upload/"; $target = $target . basename( $_FILES['uploaded']['name']) ; $ok=1; if(move_uploaded_file($_FILES['uploaded']['tmp_name'], $target)) { echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded"; } else { echo "Sorry, there was a problem uploading your file."; } ?> [/CODE] that's mean must create 'files' table? and 'target' is entity …

Member Avatar for qazplm114477
0
136
Member Avatar for ziadkassam

Hi, please, I want the shortest path algorithm using arrays (Data structure) and the path passing through all the points once and return back to the initial point. ex: 0-1-4-2-3-5-0 (path cost=10) 0-3-2-5-4-1-0 (path cost=15) so 0-1-4-2-3-5-0 is the correct answer.

Member Avatar for ziadkassam
0
81
Member Avatar for Raik.48

Hello, I am a project on my hand to develop a 2D game like "contra". I have chosen to use C++ as my programming language. Which will be better for my 2d game SMFL, SDL or ClanLib? I have decided to use ClanLib, but is it powerful or flexible as …

Member Avatar for Chuckleluck
0
161
Member Avatar for thejoker011

Hey guys....Namastey!! Am here for your suggestions. I am right now working on a software project which needs to communicate with an custom ECU(Engine/Electronic Control Unit) of a car via a USB-TO-RS232 cable. Before moving ahead i want to be sure, [B][COLOR="Red"]do you think Java is appropriate for such kind …

Member Avatar for thejoker011
0
409
Member Avatar for kikic

I need a problem, i use PIC simulator to import2 numbers by serial port. First I send byte, 5 for example, then send sent 2 and in the third step I sent char for example *, and the result is 5*2=10. Everything is fine till I send larger number more …

Member Avatar for Begginnerdev
0
195
Member Avatar for Chuckleluck

Hello, I'm working on a game, and for this game, I created a class. There is one object of this class for each player in the game: [CODE]class PlayerClass { public: PlayerClass(Nationality); // Constructor ~PlayerClass(); // Destructor sf::Sprite PlayerFeet; sf::Sprite Arms; sf::Sprite Body; sf::Sprite Head; int HitPoints; GameClass CurrentClass; }; …

Member Avatar for Chuckleluck
0
189
Member Avatar for faith07

Hello everyone, Im new in assembly language. I would like to ask your help to teach me how to convert the below C language into tasm language. thank you very much. #include <stdio.h> #include <dos.h> main() { unsigned int year; unsigned char month; unsigned char day; union REGS regin,regout; clrscr(); …

Member Avatar for neha afreen
0
1K
Member Avatar for gourav1

hey! i m reading java. and at one place i have read Audio interface in which play(), loop() functions are defined,but interface is something in which there can't be any method defined. so this must be abstract not interface.so please tell this problem, y we are calling this as interface. …

Member Avatar for thines01
0
269
Member Avatar for manc1976

Hi I understand the basics of concatenate, but then I saw this example and I am now confused! [CODE] $Update = "Update people set " . "permission_id = '" . $permission_id . "', " . "username = '" . $username . "', " . "forename = '" . $forename . …

Member Avatar for diafol
0
89
Member Avatar for Mr.BunyRabit

i got an example form roseindia on how to send an email. Now it works perfectly like this, and i can send mail to my email adress with that code (thats just a part of it) [CODE]String host = "192.168.1.14"; String from = "Admin@Admin.com"; String to = "myEmailadress.com";[/CODE] but the …

Member Avatar for Mr.BunyRabit
0
433
Member Avatar for Stickie

I have this query, but the ordering by is not working. It should order by value, but doesn't react. you'll see what I mean in the code. [ICODE]<table class="pme-main"> <tr> <th class="pme-header">Bestemming</th> <th class="pme-header">Naam Klant</th> <th class="pme-header">Aantal Manden</th> <th class="pme-header">Aantal Duiven</th> <th class="pme-header">Naam Bestemmeling</th> </tr> <?php $con = mysql_connect("****","****","****"); if …

Member Avatar for Stickie
0
407
Member Avatar for Zay

Hello; i wrote this code for a star triangle , but it told me it contains some errors , Do any 1 can help me plz ? it should be like this : [CODE]******* ***** *** *[/CODE] [CODE]include <iostream> #include<cmath> using namespace std; int main() { int n=4; for ( …

Member Avatar for Schol-R-LEA
0
189
Member Avatar for nedrosat

Good Morning [B]Everybody[/B], I've a problem with a DatagridView in column operation. this is a Screenshot [ATTACH]23226[/ATTACH] My problem that i want to select an idPersonnel for exemple it brings me the name & family name in textboxs and i didn't found how to do it :( plz help me …

Member Avatar for Netcode
0
138
Member Avatar for ayub05

Again guys here is same problem. Please check this code. Everything is OK. But sql data does not show up. <?php /*Set to error level to development modes*/ ini_set("display_errors", 1); error_reporting(E_ALL); if ( isset($_POST['username'])) { $ret = add_to_database(); if (!$ret) { print "Error: Database error"; } else { print "Welcome …

Member Avatar for phorce
0
336
Member Avatar for horizondesai

Hi everyone. I'm using jwt 2.5.2 and new to it. I want to create a table (rows & columns) in it. Is this possible with jwt 2.5.2 ? Is there any data type like 'TableItem' ? What is Also, what is character for tab-space in it ? '\t' doesn't work …

Member Avatar for horizondesai
0
163
Member Avatar for phorce

Hello I need some advice (I'm not expecting code - Just want to know if it's possible / references) Basically, I want to create a class that I can check if the email has been submitted AND also, if it's formatted right (e.g. does it contain a @ but also …

Member Avatar for pritaeas
0
85
Member Avatar for poojavb

Hello, Please tell me how to add a string item to a text box, returned from another form that has a list box? I have two forms. on the first form I have a button which calls another form that has a List Box. When I select the value from …

Member Avatar for vb.netfreak
0
179
Member Avatar for hovestar

I'm trying to devise a program that attempts to solve the Collatz Conjecture, Wikipedia, but when I run it I get this error: [CODE] What value would you like to find if the collatz works for below?6 Traceback (most recent call last): File "/private/var/folders/fL/fL1lGxccGCypPBSIUXNGZGpkwIg/-Tmp-/Cleanup At Startup/Playground-345866896.786.py", line 27, in <module> …

Member Avatar for TrustyTony
0
250
Member Avatar for naveedqadri

Dear Experts, Thanks for your time. My application developed in 2003 asp.net and C#, there are some important java scripts these scripts are working in IE but when i tried in Firefox, Google Chrom, it does not work. [B]WHERE I AM WRONG IN CODING ?[/B] [B]Important[/B] When i try to …

Member Avatar for naveedqadri
0
194
Member Avatar for Max Bayne

[B]hii all i want to make background for form to be transparent i need the background only not the controls on it plz .... i dont need to use transparent key or opacity properties i have example to do it but it by vb 0.6 i need any one to …

Member Avatar for skp03
0
2K
Member Avatar for Rajoo Mal

Iam developing a small school software. I want to show fees of every student of whole year. Like John(student) I want show his fees that every month he paid at what date and how much. So how should I start please help..

Member Avatar for M.Waqas Aslam
0
176
Member Avatar for Stefan_Lam88

Hi Guys, I have a problem here. I can't manage to get the slidesshow display on my aspx. After a few tried. take a look at tis link. [url]http://www.serie3.info/s3slider/[/url] I m trying out this link and many people say it works. But still I failed to display.. mycode: [CODE]<div id="slider1"> …

Member Avatar for dineshsjce
0
191
Member Avatar for Behseini

Hi Everyone, I am trying to test a simple email validation form using $_SERVER['PHP_SELF'] at the same page as [CODE] <?php if (isset($_POST['submitted'])) { $email = $_POST['email']; $result = filter_var($email, FILTER_VALIDATE_EMAIL) ; if($result) { echo "Valid email address."; } else { echo "Invalid email address."; } } ?> <html> <body> …

Member Avatar for diafol
0
851
Member Avatar for esesili

Hello All, Currently I am working on an GUI using a tutorial video. In video when tutor types n = System::Convert:: , after :: a bunch of options appear like n = System::Convert::ToInt32. However, when I type same phrase n = System::Convert:: after :: no option appears. How can I …

Member Avatar for esesili
0
164
Member Avatar for vlaskiz

Got a program code so far to: [CODE]#include <string> #include <fstream> #include <iomanip> #include <iostream> using namespace std; //---------------------------------------------------------------------------- const char Cdat[] = "Data.txt"; const char Crez[] = "Rezult.txt"; const char Canalyzis[] = "Analyzis.txt"; //---------------------------------------------------------------------------- void TrimmText(const char dfv[], const char rfv[], const char afv[]); void AnalyzeLine(string &lin, string & …

Member Avatar for vlaskiz
0
140
Member Avatar for Shwetha Dali

Hi, I want to zoom the uploaded images.I have code to zoom 2 - 3 images.. Each image user uploades has to be zoomed on mouse over. Can anyone tell me how to do this Thanks, Shwetha

Member Avatar for MagicToolbox
0
219
Member Avatar for khanthegamer

I want to create a do while loop for a statement to keep on looping until a following number or string value is passed. this is the code that i was trying to put in. [CODE] #include "vending.h" int main() { cout << "\n\n\n\n----------Welcome to the coolest vending machine!!!!!!!-----------\n\n"; cout …

Member Avatar for PrimePackster
0
390
Member Avatar for gourav1

i m not getting how to play a mp3 file using applet? i m using AudioClip A = getAudioClip(x); where x is --> URL x=C:'Users'gourav'java_pr; its just a try! i donot know how to use this. it is showing error. tell me how to use audioclip interface?

Member Avatar for stultuske
0
100
Member Avatar for Jenna1994

hi im jenna and i have been learning java i have to write a program that does the stuff listed below i have tried multiple times but i am not getting it right:'( i dont understand what to do please help me :( i have to hand it in to …

Member Avatar for stultuske
0
206
Member Avatar for harintfs

whats usage for Output::GetVar in php, how it ll be usefull, Pls explain, thanks

Member Avatar for pritaeas
0
98

The End.