64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for novice20

Hi, I want to do something like this: I have two lists: list1 = range(6) list2 = range(10,15) i want a dictionary like this: adict ={0:10, 1:11, 2:12, 3:13, 4:14, 5:15 } I did the following: [CODE]list1 = range(6) list2 = range(10,15) adict = dict(zip(list1,list2))[/CODE] i get : [B]TypeError: list …

Member Avatar for novice20
0
232
Member Avatar for mhosny

Hello, I am working as a software tester in Software Quality Assurance department in small company. And what I want to do is design a tool or application to test the performance of any software. Basically I want to create an application that I can use while I am doing …

Member Avatar for mhosny
0
148
Member Avatar for bhagawatshinde

Hi all, I have a problem while deleting xml File. In detail i have generated xml file with encrypted format. now when i am importing this file with decryption all data read and inserted to database using dataset. Record inserted successfully but when all process completed i want to delete …

Member Avatar for samueal
0
149
Member Avatar for jeff4L

When I declare my variables, should be it be like [B]int delay = 0[/B] then initialize to [B]int delay = 0[/B] or [B]int delay[/B] then initialize to [B]int delay = 0[/B]? I'm a bit confused about initializing my variables... [CODE]void calc_pipe() { /* Declare local vars */ int i; int …

Member Avatar for jeff4L
0
185
Member Avatar for miguelsan

I have had an issue with getline(cin,string) in several of my programs. The program does not allow the user to input information after the cout statement preceding getline(cin,string). Below is an example code of the issue I am having(Btw I am using code::blocks with GNU compiler): [CODE]#include <iostream> #include <cstring> …

Member Avatar for miguelsan
0
217
Member Avatar for Ritesh_4

Hello I would be grateful if someone could help me achieve a parent-child relationship as shown in the attachment, using the <a href> tags

Member Avatar for Ritesh_4
0
142
Member Avatar for computerbear

Hello, I did not find what I was needing with a search, so here goes. I am having problems getting my calendar to work, passing a start and end date for a rental car and displaying on the form the number of days chosen and the amount for the total. …

Member Avatar for computerbear
0
466
Member Avatar for sadsdw

Hi everyone, I'm trying sort a C++ struct and print the result as output file. I don't know how to sort the structure. Did anyone develop this before? Thanks a lot, [CODE] #include <stdio.h> #include <stdlib.h> #include <iostream> #include <fstream> #include <string> #include <vector> #include <sstream> #include <algorithm> #include <cstdlib> …

Member Avatar for sadsdw
0
121
Member Avatar for WildBamaBoy

I want to start a method whose name is in a string. My server program will be receiving commands from the client, perform those commands, and send the information back to the client. So instead of using a switch with many cases that only execute a method, I thought it …

Member Avatar for WildBamaBoy
0
147
Member Avatar for phpDave

Hello. I'm trying to use a wildcard for a $var. in a SELECT statement. Can't seem to get it to work. '$search_Recordset2' is the $var. [CODE]("SELECT * FROM table WHERE col1 LIKE '$search_Recordset2' OR col2 LIKE '$search_Recordset2' OR col3 LIKE '$search_Recordset2'"[/CODE] If I use '%$search_Recordset2%' or %'$search_Recordset2'% I get error.

Member Avatar for phpDave
0
158
Member Avatar for Ertzel

First of all, sorry if my title is not all that descrptive and if this has already been answered, I looked around but did not find it so I decided to make my first post/thread. I am working on a little offline game right now and what I'm trying to …

Member Avatar for Ertzel
0
1K
Member Avatar for WolfShield

I would like to make a LUDICROUSLY high number calculator in Python. I am thinking 60 numbers and a decimal point. So numbers could be in a format like these: 60 numbers, 30 numbers decimal point 30 numbers (30nums.30nums), or decimal point 60 numbers (.60nums). E.g. 999,999,999,999,999,999,999,999,999,999.999999999999999999999999999999 But, I am …

Member Avatar for WolfShield
0
321
Member Avatar for hermanSA

Hi all, Sorry for the long post but i need to describe my problem properly to avoid confusion, i hope I have a table with users, and every user has a specific latitude and longitude coordinate. let say user Test_User is logged in and then he decides he wants to …

Member Avatar for hermanSA
0
189
Member Avatar for 24x24

OK I have yet another homework problem. Again, help me by teaching, not writing my code for me. I have looked through the pages of threads on collision detection and found nothing to answer my question. My issue is that I have a collision detection method that should (in theory) …

Member Avatar for 24x24
0
327
Member Avatar for Joshua Kidd

I am making a register page and I have one error. [CODE]if ($_POST['submit'])[/CODE] I keep getting Notice: Undefined index: submit in C:\xampp\htdocs\globallypictured\register.php on line 6 NO IDEA WHY. . . Can someone please help...

Member Avatar for Joshua Kidd
0
108
Member Avatar for cooldj

Start Main( ) or btnRun_Click( ) Create a RaceCar object Set the car name to “Fast One” Set the x coordinate to 200 Set the y coordinate to 100 Call the car’s Move( ) method and show the resulting message Display a blank line to separate the two object results …

Member Avatar for cooldj
0
148
Member Avatar for galhajaj

Hi :) i am new in C# and i am a little confused with the abstruct, virtual and override terms in C#... why they are good for? i tried to google it but i got more confused... for example - i am making a chess program and i made a …

Member Avatar for Mitja Bonca
0
196
Member Avatar for SMITA6076

I have a 3x3 array of [ICODE]MSTextField[/ICODE] which is a class I created which extends [ICODE]JTextField[/ICODE]. I'm trying to set all of the text fields to display the empty string ([ICODE]""[/ICODE]). My problem is I'm getting a nullPointerException at the end of the method which is supposed to do this. …

Member Avatar for SMITA6076
0
463
Member Avatar for tracydo

Hi, I need help with some small exercises. I'll try my best to provide my code but these are ones that I don't know how. So... maybe you can help me with yours! Thanks 1. Question 1: A program contains the following method definition: [CODE] public static int cube(int num) …

Member Avatar for SMITA6076
0
512
Member Avatar for diafol

Hi all, preg-Replace has stumped me again. I'm just too thick to get it. This is my problem: I have two files. File 'newvalues.php' with an array like so: [CODE].... $lang['this_key'] => 'blah blah blah'; $lang['another_key'] => 'rhubarb rhubarb'; $lang['something_else_key'] => 'twitter twitter'; ....[/CODE] And another file: 'template.php' like so: …

Member Avatar for diafol
0
160
Member Avatar for OnnDay

Hi everyone. I'm using Tomcat 7.0.8 I have created servlet, which loads image to "webcontent\pic" folder of my project. Then I need to display this image. The servlet works, but with only restriction: i need manually refresh content of project, or directory (I'm using Eclipse). Otherwise ugly cross will be …

Member Avatar for OnnDay
0
170
Member Avatar for WolfShield

Hey guys, I am making a calculator program and don't want the user to type directly into the Entry, so I made the Entry 'readonly'. But that makes it to dark for my liking, so I am trying to set the readonlybackground='white', but it gives me an error saying that …

Member Avatar for WolfShield
0
395
Member Avatar for pseudorandom21

Is there a decent IDE for Java? Meaning, one that you don't think will end up making me rage and have annoying features that get in the way all the time making it unsuitable for development? What is the best IDE performance wise?

Member Avatar for peter_budo
0
302
Member Avatar for cmccully

Hi I have a PHP/MYSQL driven site. When a user creates a new account or updates their existing username or email address I do a quick check to make sure the requested entries are not already in use. I am concerned that in the few milliseconds between the SELECT and …

Member Avatar for cmccully
0
167
Member Avatar for charvie

Is Multiple download files possible using PHP? We did find a code for single download. but we need it for multiple download. can anybody help me? Thank you! :)

Member Avatar for FloridaCI
0
134
Member Avatar for rkayd

I am wondering if this is possible: I have a web page that displays a table which includes Work Order Numbers. I would like to make the numbers into a link that when I click it it automatically brings up an edit form for that particular record. For example, here …

Member Avatar for rkayd
0
189
Member Avatar for hanvyj

I have two projects in Microsoft Visual Studio 2008, but I can't access the objects/namespace from one with the other. here is an example from my GCController project: [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; namespace GCController { [Guid("9949f4f1-92e6-4709-85a8-12c816b6ceb4")] public interface IGCController { // ... // } …

Member Avatar for Mitja Bonca
0
145
Member Avatar for Ritesh_4

Hello Anyone can pls guide me to a tutorial which can allow me to develop an image scroller shown at the bottom of the page of this link: [url]http://www.breitlingsionairshow.com/fr-airshow-home.html[/url]

Member Avatar for gogreen1
0
84
Member Avatar for BleepyE

Im looking to play a sound from a folder which is in my debug directory. I got this working for a PictureBox: [CODE]PictureBox1.ImageLocation() = ("Resources\picture.png")[/CODE] But I cant find something to play a sound. This is what I had before: [CODE]My.Computer.Audio.Play("C:\Users\......\Sounds\beep-2.wav")[/CODE] I dont really want to be writing the location …

Member Avatar for BleepyE
0
208
Member Avatar for cliffcc

How to rewrite the code so do the loop in this case? [code] <?php require("connect.php"); $banner1 = mysql_query("SELECT * FROM banner WHERE bannerid ='1'"); $row1 = mysql_fetch_assoc($banner1); $bannerpath1 = ($row1['bannerpath']); $bannerheight1 = ($row1['bannerheight']); $bannerwidth1 = ($row1['bannerwidth']); $bannerdescription1 = ($row1['bannerdescription']); $banner2 = mysql_query("SELECT * FROM banner WHERE bannerid ='2'"); $row2 = …

Member Avatar for perfectweb
0
178
Member Avatar for EkoX

Hello All, As the title.. Does any one know how to find how many specific character in a text? Best Regard Eko.

Member Avatar for Jx_Man
0
158
Member Avatar for galhajaj

Hello :) for a chess program, i made a 8x8 array of square:PictureBox objects and i set variables inside them for the row & col there is a way to dont use those row & col variables and just "take" the index of the square from the 8x8 array when …

Member Avatar for galhajaj
0
151
Member Avatar for Sarama2030

i'd lyk to upload files into the database via a dataset to first test some conditions. i've maitained the dataset's state between postbacks to add all the rows b4 updating. however the datarow line[CODE]dim autorow as datarow autorow= viewstate("dataset").tables("datatable").newrow ' the dataset and the datatable are all declared [/CODE] pops …

Member Avatar for Sarama2030
0
78
Member Avatar for liphoso

Hw do i reverse the mod function. That is: 6 mod 2 is 0. Nw hvn my result 0, dnt knw wat 2 is cald in dis case bt i got it as wel. Hw do i get bak to 6. 6%2 = 0. Hw do i reverse dat. I …

Member Avatar for masijade
0
3K
Member Avatar for thekashyap

Hi, I have a problem where I need to generate hash for ~10e9 (1 bio) keys. I tried creating a hash of my own but after all the research I realized that I can as well (or even should) use one of existing functions. I narrowed down on SHA-1, which …

Member Avatar for thekashyap
0
386
Member Avatar for divin757

i was sure this should be easy but here i am. i have a text file with information of the tones required to play the mario theme. i was needing to read line by line and break out the numbers and put them in a array. the problem is i …

Member Avatar for Xcelled194
0
129
Member Avatar for M1n1m@l1$t

I am really new to c++ just started today. This is my first real program (however useless it is) and i am stuck with one error. I am writing my code on code::blocks using mingGW on windows XP. My error is as following-invalid converion from 'const char*'to 'char'. my code …

Member Avatar for M1n1m@l1$t
0
3K
Member Avatar for idk

I am trying to run the following simple program which uses multithreading using pthreads. I compile it like: gcc -lpthread programName.c and it compiles fine. However, when I run it gives errors which I have pasted at the bottom of program. [code]#include<pthread.h> #include<stdio.h> void *thread_routine(void* arg) { printf("Inside newly created …

Member Avatar for idk
0
257
Member Avatar for Dannis86

I'm trying to learn to program with PHP, and i got XAMPP. I watched a tutorial on youtube. It should say, ''Please enter a username and a password''. But instead it just shows a blank page. My index= [ICODE]<html> <form action='login.php' method='post'> Username: <input type='text' name=úsername'><br> Password: <input type='password'name='password'><br> <input …

Member Avatar for Dannis86
0
2K
Member Avatar for WolfShield

I am going through the Tk/Tkinter tutorial and when I try to run the menubar program I get two windows instead of a menubar on one window. Here is the code: [CODE=Python] from tkinter import * from tkinter import ttk root = Tk() root.option_add('*tearOff', FALSE) win = Toplevel(root) menubar = …

Member Avatar for HiHe
0
183
Member Avatar for predator78

Need some help here it seems to compile fine but crashes at runtime. Am I missing something here? [CODE] #include <iostream> #include <string> using namespace std; // player class class Player{ int *position; public: Player(); Player(int); ~Player(); void print_pos(){ cout << "player 1 is in position: " << *position << …

Member Avatar for predator78
0
92
Member Avatar for Jsplinter

Is there a better way to access the base class operator overload? I'm using casting, and it works just fine, just wondering if there is a better way. Is this bad/ugly code? [CODE]class StrategyKey { public: StrategyKey(){} ~StrategyKey(){} StrategyKey(const char* strA): str_strategy(strA) {} friend bool operator< (const StrategyKey& stratKeyA, const …

Member Avatar for mrnutty
0
176
Member Avatar for llamaboy

Hi all, I have few php pages. One is a dynamic form, one is an file holding some arrays, one is a script that is the action for the form and the other two are to update the array. What I am trying to do is append an array using …

Member Avatar for llamaboy
0
196
Member Avatar for mertucci
Member Avatar for ivan3510

Hi! I have a php code that reads xml file. In xml file I have the german letter ö (this xml file is saved as UTF). This is mistake. I don't get ö. I get some strange carachters (like ö). Can somebody help me? Thanks a lot!

Member Avatar for twiss
0
135
Member Avatar for zack_falcon

I've written a sales and inventory program in C# that makes use of SQL Server, because I've heard it functions well over LAN connections (haven't tried it yet). I've... let's say... hardwired the my connection string into the program. I have a notepad connection.ini file that has the connection string, …

Member Avatar for Mitja Bonca
0
217
Member Avatar for Krazykado

Hello, I am having a problem putting this Array's output in a single GUI window. When I receive the output it just shows the grades in individual GUI windows (IE Erik 98 [OK], Fred 76 [OK], etc). If I put the output outside the loop then it doesn't recognize grade[i]. …

Member Avatar for JamesCherrill
0
137
Member Avatar for stereomatching

I have some problems about promotion traits [code] template<typename T1, typename T2> class Promotion; template<bool C, typename Ta, typename Tb> class IfThenElse; template<typename Ta, typename Tb> class IfThenElse<true, Ta, Tb> { public : typedef Ta ResultT; }; template<typename Ta, typename Tb> class IfThenElse<false, Ta, Tb> { public : typedef Tb …

Member Avatar for stereomatching
0
166
Member Avatar for lcfjoertoft

I have a grid of RadioButtons, and need some help in Check / Uncheck acording to data collected from a .txt file. The .txt file contains a list like this: A01,a B01,b C01,c A02,a B02,b C02,c I have set up in a grid formation RadioButtons, and named them A01,B01,C01,A02,B02,C02. I …

Member Avatar for lcfjoertoft
0
117
Member Avatar for gingank

Dear All, Could someone can help me with this.... I need to extract file name example ABC-01.xls in to ABC-01 only what method i could use on this? Could anyone help me please!!! Thanks & Best Regards

Member Avatar for Jx_Man
0
99

The End.