64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for mekhoo

(question3.py) Write a word jumble game. In a word jumble the letters in a proper word are randomly mixed up and the user has to guess what the word is. The list of words to be jumbled can be found on D2L - jumble.txt. Here is one possible way to …

Member Avatar for TrustyTony
0
283
Member Avatar for virendra_sharma

Hi frnz, i am having text file , in that "ID", "firstname","lastname","email-id","phoneno" is the first row and same column name i have declared in gridview, i am also having update and delete option in gridview . now what i wanted to do is when user clicks on perticular record from …

Member Avatar for virendra_sharma
0
1K
Member Avatar for syeda amna

hi I am a beginner. I am building java application which is like a form. First the user fill the whole form and the click OK. I want to do that as the user clicks OK all the items entered in the JTextField will save in the variables that I …

Member Avatar for mKorbel
0
219
Member Avatar for petmol

Hi all, I am a PHP noob, so please bear with me if you find my posts here slightly on the moronic side... :) Anyway, I have a problem with the page quoted below. Dreamweaver says there's something wrong with line 188, but I just can't figure it out. Thanks …

Member Avatar for petmol
0
151
Member Avatar for sajay

Hello I'm coding an algorithm based on genetic programming with tree structures in C. I implemented tree structure using recursive structure pointers **The traditional way** [CODE] struct tree { int val; tree *left; tree *right; }; tree a[10]; tree b[20]; void main() { generate (); // this generates me 10 …

Member Avatar for sajay
0
190
Member Avatar for ineedhelpasap

Hi, I'm trying to convert a textfile which is set out like this: 1[Tab]Hello 2[Tab]Test into a Python dictionary how would I be able to do it? Thanks

Member Avatar for ineedhelpasap
0
88
Member Avatar for thebigbroski

I'm reading Headfirst PHP & MYSQL. I did what the book asked me to do, and this is the output in the browser: [CODE] Aliens Abducted Me - Report an Abduction '; echo 'You were abducted ' . $when_it_happened; echo ' and were gone for ' . $how_long . ' …

Member Avatar for jonhylever
0
230
Member Avatar for jmurph333

I created a .txt file with 20 lines of text. I need to read a random line. This code works for the most part: [CODE] Random r = new Random(); rand = r.Next(0,20); //rand is a predefined variable StreamReader reader = new StreamReader("Answers.txt"); answer = reader.ReadLine(); string strAllFile = reader.ReadToEnd().Replace("\r\n", …

Member Avatar for abelLazm
0
163
Member Avatar for cliffcc

I have found some websites, they show the pictures like marquee, but not exaclty marquee. Not continuously moving from bottom to top. Instead, moving from bottom show one picture and then stop a few seconds and then moving again! What is that function and the code? Thanks!

Member Avatar for cliffcc
0
151
Member Avatar for martin111

Hi. Visual C++ reports error 2440 for the following code: struct a_t { int i;}; struct b_t:a_t { int j;}; b_t* pb = 0; a_t* const * ref_pa = &pb; // Error 2440 reported for no reason at all. I cannot see why this should give an error, the base …

Member Avatar for mike_2000_17
0
302
Member Avatar for tycoonz

Hi I really like the drop down that I found on [url]http://www.scriptiny.com/2008/04/sli...dropdown-menu/[/url] I have 4 Menus and when I add this this flows over the logo. The size of each menu is in fact too big. When I tried to alter this the size of sub-menus stay the same and …

Member Avatar for tycoonz
0
151
Member Avatar for Tenaciousmug

Ok, I have a variable ($incubation) set as 04:00:00. Then I have another variable ($starttime) set to the current time. Both are printing out fine. But I'm trying to get an $endtime from adding the incubation time to the start time. [CODE]$incubation = $row['incubation']; //IM GRABBING THIS TIME FROM THE …

Member Avatar for diafol
0
94
Member Avatar for pseudorandom21

I'm trying to draw a "selection box" with a Graphics created with an HDC to the PrimaryScreen, but it doesn't appear to update properly, as in when I draw something it tends to stay there. Am I doing something wrong, or is there something I'm not aware of? [disregard] Actually …

Member Avatar for pseudorandom21
0
111
Member Avatar for buster2209

I'm trying to run simulataneous do while loops but whichever loop is reached first is run and the other isn't. Here's my code; [CODE]namespace sync { public partial class Form1 : Form { int s = 0; public Form1() { InitializeComponent(); } private void button1_Click(object sender, System.EventArgs e) { s …

Member Avatar for Mitja Bonca
0
138
Member Avatar for rayidi

Dear Friendzz, Problem to getting dynamic values in Javascript.. Please Helpme [CODE]// Java Script <script language="javascript"> function toggle(int) { var ele = document.getElementById(int); if(ele.style.display == "block") { ele.style.display = "block"; } else { ele.style.display = "block"; text.innerHTML = "hide"; } } </script> // HTML <div class="reply"> <a id="{$msg['id']}" href="javascript:toggle(this);">Reply</a> </div>[/CODE] …

Member Avatar for ko ko
0
2K
Member Avatar for juan92

so i am trying to learn java on my own as a hobby, because well i didn't see my self doing this for a living, and i did terrible in the class, so i am going over the text book again, and starting from scratch. i am not sure if …

Member Avatar for juan92
0
97
Member Avatar for eskimo456

Hi there I am having a frustrating and strange problem. I am building a particle system. As a result I need particles to reset there variables to be reintroduced into the system. I have had it working in the past. I run through the system once, when the particles pass …

Member Avatar for eskimo456
0
152
Member Avatar for JordanHam

I have a basic questions. I have written a program in C++ and I would like to create a GUI for it. I have a book Microsoft Visual Basic C++.net that has a great tutorial, but its in clr/c++. Is it possible to program a GUI in this language in …

Member Avatar for drkybelk
0
197
Member Avatar for dyingatmidnight

I'm trying to create a database for a public library and I'm running into a snag when trying to formulate my tables based on the requirements I've come up with. Authors • Write books • Have publishers Publishers • Publish books • Have addresses and phone numbers Books • Have …

Member Avatar for BitBlt
0
197
Member Avatar for thetwig

I wrote a small program to demonstrate a problem im having with a bigger one so you dont have to look thru so much code. I'm having problems when I convert a double to an integer. [CODE]#include <stdio.h> #include <stdlib.h> int main(void) { double dNum; int iNum; char sNum[15] = …

Member Avatar for thetwig
0
208
Member Avatar for ayoba01

hello i want to know how to change the text alignment example text from left to middle in listbox also i would like to know how to make the text appear automatically when i run the program example in listbox "Welcome To Atm Machine" that's the problem thanks everyone

Member Avatar for dxider
0
115
Member Avatar for talala

a strange thing happend, suddenly all the pages became "stretched" if before apage was like hello, user how are you? it's now like hello, user how are you? never happend to me before, any suggestions to solve it?

Member Avatar for talala
0
71
Member Avatar for C:\>

I have URL like this: [code]http://www.site.com/app/index.html#secret_code=gagh362%%23atg._f46&other=5449[/code] I need to pass gagh362%%23atg._f46 part to a string. All the examples i find are for simple PHP parameter parsing and i'm having difficulties to adapt them to this case. Can someone help?

Member Avatar for C:\>
0
135
Member Avatar for shena

Hi all, I would like to format a column in datagrid with 2 conditions. The column must be entered with only "N/A" or date (DD-MMM-YYYY) format value. [CODE] If Me.grdDataGrid.DataFormats(10).Format <> "N/A" Then MsgBox "Invalid Data Entry!", vbInformation Exit Sub End If[/CODE] The code above still produce "Invalid Data Entry" …

Member Avatar for shena
0
2K
Member Avatar for ivan3510

Hi! I'm getting these warnings: Warning: session_start() [function.session-start]: Node no longer exists in (file) on line 2 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at file:2) in file on line 2 Warning: Unknown: Node no longer exists in Unknown on line 0 I …

Member Avatar for Stefano Mtangoo
0
171
Member Avatar for ChrisHunter

Hi, i'm tryin to use windows authentication to log into an application i have made. I have already worked out how to get the username but i can't figure out how to get the password too. Is this possible ? if so can anyone suggest any ways to do this …

Member Avatar for ChrisHunter
0
124
Member Avatar for cppgangster

Hi dudes, I currently learning mfc and I wrote a modeless dialog canculator app for my job. As soon as I tried to launch the app I get error msgbox saying "inoretly installed app.."(the exe file was copied to another conputer). My target OS is xp 32, while I am …

Member Avatar for cppgangster
0
164
Member Avatar for Swiftle

Hi! I'm trying to use a base class derivative in another derivative class constructor but it's not working. Here's what I have: [CODE] class A { ... }; class B : public class A { ... }; class C : public class A { C(A objA); } [/CODE] However when …

Member Avatar for Mouche
0
197
Member Avatar for Thropian

I'm working on a script in python,tkinter that draws a triangle and moves it around the screen. unfortunately I can't get the arrow to move. I've tried using canvas.move() but that wants an x and a y not the set of 3 coordinates I have to make it a triangle. …

Member Avatar for Thropian
0
2K
Member Avatar for Sevyt

Was wondering, is it possible to create a class which has the majority of your keypress controls? Like allowing just letters or numbers in a textbox etc.... To make things clearer what i exactly want. I have a textbox on my form. This is a textbox for the postcode. The …

Member Avatar for Sevyt
0
234
Member Avatar for kutuup

I have no idea what is going on here, first, the code: [CODE] #pragma once #include <stdio.h> //#include <stdafx.h> #include <allegro5/allegro.h> //#include <allegro_image.h> class DisplayController { public: int bitmapx; int bitmapy; // ALLEGRO_DISPLAY display; ALLEGRO_BITMAP *crosshairs; ALLEGRO_EVENT ev; ALLEGRO_EVENT_QUEUE *event_queue; void display() { this->event_queue = al_create_event_queue(); al_register_event_source(event_queue, al_get_mouse_event_source()); al_wait_for_event(event_queue, &ev); …

Member Avatar for kutuup
0
1K
Member Avatar for bob on whidbey

PHP and MySQL problems with ' and " have been discussed ad nausea on the web. I still don't get it. For example my db has an Author's name field with someone called O'Brien. If I create the DB with phpMyAdmin by reading in a CSV file, that field will …

Member Avatar for bob on whidbey
0
309
Member Avatar for ndowens

[code]def cDownload(): print("Enter package name ") sName=input print("Enter download location ") sLocation=input command = "wget http://aur.archlinux.org/packages/" + sName + "/" + sName + ".tar.gz -O" + sLocation + "/" + sName + ".tar.gz" os.system(command) [/code] I get TypeError: Can't convert 'builtin_function_or_method' object to str implicitly

Member Avatar for ndowens
0
311
Member Avatar for ret801

ok someone please explain popen to me it runs subproccesses does this mean it can run programs from within my program? any help would be appreciated , there is not an easily spottable place that explains this. Thanks

Member Avatar for hondros
0
230
Member Avatar for SakuraPink

Hi everyone, Here is my problem: I have different data files each with several columns and row of data. datafile1 , datafile2, ... Now I need to do some simple math procedure of this data files, Lets say I need to add the 3rd column of datafile1 to the 2nd …

Member Avatar for Fest3er
0
136
Member Avatar for montjoile

Why I can't compile without the [B]using namespace std[/B] line? I need to add .h in some libraries in order to being recognized by G++, but some others works without the .h extension. Why is that??

Member Avatar for Duoas
0
280
Member Avatar for nonshatter

I have added a png image to a table in the database as a BLOB. Adding the image into the database is trivial. However, being able to display the BLOB back to the .png image format is bewildering me. Examples are hard to come by... How to display the BLOB …

Member Avatar for roswell1329
0
610
Member Avatar for tawboiid

I am trying to read a long integer value from an Access database, do some math to the number, and save the result back to the database. I've never had a problem doing this with VB6, but with C# it is throwing an error when it tries to Update the …

Member Avatar for tawboiid
0
2K
Member Avatar for WolfShield

Hello guys, I am pretty new at (good) programming, so I had some pretty bad code I was using until I ran across some code and decided to model my code after it. I have the code so it has no errors, but when I run it (NetBeans) it doesn't …

Member Avatar for WolfShield
0
148
Member Avatar for programmer12

Hi, I am trying to organize the way my episode titles output. At the moment it prints like this. (I want to be able to upload the newest episodes and also go back and upload the older shows but i want the newer shows to stay at the bottom in …

Member Avatar for technical_amit
0
133
Member Avatar for vanalex

Hello everybody! I have two questions about pointers and would be grateful if someone gave me some help. 1. When we use a table's name as a parameter the table is used as an address (the address of its first element). I mean, when i call a function that has …

Member Avatar for vanalex
0
112
Member Avatar for WolfShield

Hello all, I have a window with a JList inside it. I would like each line in the JList to show up in a certain font. But when I try the 'setFont(font)' method where 'font' has already been defined it say that it cannot find the symbol 'setFont(java.awt.Font)'. Here is …

Member Avatar for WolfShield
0
137
Member Avatar for IMJS

Hello, please can I have some clarification to check I am not doing something very stupid? It seems sensible with all that I have read, but I'm not confident. I suspect I have memory leaks and want to make sure some fundamentals are correct before I start looking deeper. My …

Member Avatar for mrnutty
0
187
Member Avatar for anand01

hi friends, This is Anand, am beginner to jsp, now am trying to connect jsp with mysql. Is this possible to code connection code separately and include each and every page. am trying the following code.I code these lines in separated.and I want to use it other pages.at the same …

Member Avatar for anand01
0
142
Member Avatar for bibiki

I have this file that contains an instance of some Machine object. When I compile the file I have, it says that the class uses a deprecated API, meaning the Machine object. I tried looking for it in [URL="http://download.oracle.com/javase/6/docs/api/"]this[/URL] link, but I find nothing. I was wondering if anyone who …

Member Avatar for bibiki
0
151
Member Avatar for bufospro

Hi all, I am trying two days now to insert a cart link on my page. It is a e-shop bookstore. I save my books in a database : +-------------+--------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-------------+--------------+------+-----+---------+----------------+ | bookid | int(11) | NO …

Member Avatar for bufospro
0
148
Member Avatar for DarkPyros

hey, i'm supposed to prompt a user to enter 6 sets of numbers, find the difference of each set based on which number is greater(so that no negative number will be seen, enter the difference into the array, rearrange the array in ascending order and then print the array. the …

Member Avatar for DarkPyros
0
184
Member Avatar for yashsaxena

Hello All I have little confusion between Abstraction and encapsulation. Abstraction means Giving only essential things and hiding unnecessary details. Encapsulation means binding the data members and methods together in a capsule form to avoid accidental changes to data from external users. Now both uses hiding of data. What is …

Member Avatar for yashsaxena
0
4K
Member Avatar for arsenalfun

Hello guys, So I wrote this code that fetch data from mysql table: [code]while($row = mysql_fetch_array($result)) { $src = ''; switch( $row['speed'] ) { case 'fast': $src = 'fast.png'; break; case 'slow': $src = 'slow.png'; break; default: $src = 'default.jpg';} } } echo "<tr>"; echo "<td><a href='http://" . $_SERVER['HTTP_HOST'] . …

Member Avatar for urtrivedi
0
126
Member Avatar for zenghoong

I've made a "more" button and whenever i click it, another upload input will be displayed. Problem is, once I add the <div>, then it stops working. Is there any way around this? [CODE] <html> <head> <script type="text/javascript"> var instance = 1; function newUpload() { instance++; var newInput = document.createElement("INPUT"); …

Member Avatar for urtrivedi
0
122

The End.