199,114 Archived Topics
Remove Filter ![]() | |
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="-", … | |
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 … | |
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] | |
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 … | |
[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 … | |
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, … | |
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. … | |
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 … | |
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 … | |
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. … | |
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 … | |
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: … | |
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 … | |
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, … | |
[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. | |
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 … | |
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 … ![]() | |
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, … | |
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. | |
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() { … | |
[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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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; }; … | |
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(); … | |
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. … | |
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 . … ![]() | |
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 … | |
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 … | |
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 ( … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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> … | |
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 … | |
[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 … | |
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.. | |
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"> … | |
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> … ![]() | |
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 … | |
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 & … | |
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 | |
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 … | |
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? | |
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 … | |
![]() | whats usage for Output::GetVar in php, how it ll be usefull, Pls explain, thanks |
The End.