199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for hogdogjr

I am working on a python application where most of the GUI is written in TKinter, but I need a data grid control like Excel. I know tktreectrl is supposed to do this but I am unable to get the latest version to compile. What I want to know is …

Member Avatar for richieking
0
218
Member Avatar for amit.hak50

I have this pdf search engine script [url]http://pdfsearchmachine.com[/url] and when you type "g" it give some suggestions ,my problem is that why I am getting some ? marks in search suggestions beloa is the code [CODE] <? $search = $_GET["search"]; $replace = " "; $with = "+"; $search = str_replace($replace, …

Member Avatar for diafol
0
168
Member Avatar for stroper

Hye everyone, I am trying to make a 2d-char array, fill it with random letters(chars) and print it. If I do it like this I get a ArrayIndexOutOfBoundsException: 0. I am a newbee. I import my prefs(width, height) from static getters in the class preferences. Can anyone help me please? …

Member Avatar for stroper
0
472
Member Avatar for agr8lemon

Hello everyone! I'm wondering if there is a way to assign the values of a column in SQL as the key name in a multidimensional array. Here is what I have, my database looks like this: Table Name = SJCFPCB date | totalin | cdulep | icu | ----------------------------------- 2011-01-27 …

Member Avatar for agr8lemon
0
202
Member Avatar for xshinichix

Our teacher gave us an assignment.Can anyone help or give me some idea on how to solve this java problem? im still learning java. Here's the problem: "Write some code to demonstrate to yourself the chain of construction. Create an inheritance hierarchy of 4 classes. Give them any names you …

Member Avatar for jon.kiparsky
0
191
Member Avatar for palamonin

Design program Infix that will convert the expression from infix notation to post fix notation using Stack operation. Observe hierarchy of operators. Sample Input/output Enter infix : 4+6*7-8 Postfix equivalent is 467*+8-

Member Avatar for jon.kiparsky
0
55
Member Avatar for GDICommander

Hello! I need help to construct a regular expression in Python that will help me get the file name of a include directive in C++. I think that regular expressions are a good way to solve this problem, but I'm open to new ideas. Consider these following includes: [CODE] #include …

Member Avatar for GDICommander
0
315
Member Avatar for Lapixx

Hi, I made a basic PHP upload system in order to allow file uploads to my server. The only problem I run into is that I want to be able to upload .php files (and other possible files that are executed by the webserver before being sent to the client), …

Member Avatar for Lapixx
0
145
Member Avatar for Xtremefaith

Currently trying to update a balance column in my table using this query [CODE] UPDATE vendors SET balance = (SELECT SUM(balance) FROM vendors WHERE Code = $ud_payee) + $ud_minDue WHERE Code = $ud_payee [/CODE] When variables are translated, for testing purpose I would have the following: [CODE=mysql] UPDATE vendors SET …

Member Avatar for Xtremefaith
0
288
Member Avatar for kishor20

Dear Sir, I am taking up first VC# Project i.e Nursing Home/Hospital Management, I require help like how to capture the informations from client & how to design tables & decide about classes & objects functions. I require overvall view of the new project. Thanks & Regards, Kishor

Member Avatar for kishor20
0
443
Member Avatar for Maggy0426

Hello everyone, I am using Delphi2010 and I'm trying to do an insert into multiple tables. I don't know the best way to do this. What I'm wondering is if there is a possible way to do one insert using one of Delphi's tools like the TQuery or TClientDataSet or …

Member Avatar for Maggy0426
0
211
Member Avatar for TechNewbie23

Hey everyone! Im hoping to find someone that can help me with a problem that I cant seem to resolve and it's driving me crazy! Basically I am trying to create a child management system for a nurse using vb.net and SQL as my backend db The application consists of …

Member Avatar for TechNewbie23
0
244
Member Avatar for clairvoyance

Hello, I have a to make a class called fibonacci. This is what is given to us : fibonacci(0)=1 fibonacci(1)=1 fibonacci(n)= fibonacci(n-­1)+fibonacci(n–2) Below is an example of running the fibonacci class as an input of 6. The output is: fibo(0)=1 fibo(1)=1 fibo(2)=2 fibo(3)=3 fibo(4)=5 fibo(5)=8 fibo(6)=13 [B]My code is:[/B] [CODE] …

Member Avatar for -ordi-
0
192
Member Avatar for Tellalca

Hey; In my application I want to count number of seconds while the application is waiting for the user input. I think I should use another thread but I never worked with multithreading. Is there an easier way ?

Member Avatar for rohand
0
629
Member Avatar for changeco

I have the following code in my xsl file... [code]<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> <!ENTITY copy "©"> <!ENTITY reg "®"> <!ENTITY trade "™"> <!ENTITY mdash "—"> <!ENTITY ldquo "“"> <!ENTITY rdquo "”"> <!ENTITY pound "£"> <!ENTITY yen "¥"> <!ENTITY euro "€"> <!ENTITY amp "&"> ]> <xsl:stylesheet …

Member Avatar for changeco
0
380
Member Avatar for dos_killer

hello im new to linux programming and i am experiencing a bit of diffuclty with pthreads...basically the pthread_create() function in my code below i tend to pass an integer variable as the argument for my runner() function but i get a warning and an error..i have tried several ways of …

Member Avatar for gerard4143
0
770
Member Avatar for databaseguru

I need to design a website for music streaming. There will be a database of songs and the user can pick a song and listen to it. What database should I use and how should I store the songs on my server. I also need to have a very efficient …

Member Avatar for debasisdas
0
1K
Member Avatar for Ignatius88

[CODE]UPDATE movie_temp SET movie_release_year = ( substring_index(movie_title,')',1) ) WHERE movie_title IN (SELECT * FROM (SELECT movie_title FROM movie_temp) AS TEMP); [/CODE] When executing the above query (movie_temp table has more than 660,000 rows), after 600 seconds workbench throws me errors Error Code: 2013Lost connection to MySQL server during query followed …

Member Avatar for drjohn
0
174
Member Avatar for dcasmac418

hi! i'm having a hard time in understanding the "bubble sort", can anybody please help me in creating a programming that allows the user to input 10 integers and gives them an option whether it will display from "hi to low" or "low to hi". thanks in advance.

Member Avatar for dcasmac418
0
90
Member Avatar for larry_d1990

I'm having trouble creating instances of classes through a GUI. I've only manually created objects before where I've named them myself, how do I do it so for eg through the click of a button where I can automatically create the instance of a class(automatically naming the object)??

Member Avatar for Ketsuekiame
0
63
Member Avatar for Pgmer

Hi All, I have checkedlistbox on my windows form which is binded to datasource, I do check the items in checkedlistbox based on some criteria, When user uncheck some items I want to save the records, but in Checked Items collection still I’m getting items as checked, which are unchecked. …

Member Avatar for Pgmer
0
134
Member Avatar for smd5049

Hello, I'm new to vb.net. I have successfully run a simple sql query in vb.net and basically wanted to know how I can export the results from the query to a .txt file? All I really know is that I should be using StreamWriter. Does anyone have suggestions for sending, …

Member Avatar for Satyam Kr. Jha
0
1K
Member Avatar for Acute

Hi everybody, I have a js(using jQuery lib) file where all events and following actions(functions) are written. For one of such events there is a function that prepends one more similar element from which prepending was called: $("[COLOR="Red"][B]#id1[/B][/COLOR]").click(function(){ $(...).before("<div [B][COLOR="Red"]id='id1'[/COLOR][/B]></div>"); }); so that when I will click to just prepended …

Member Avatar for Acute
0
83
Member Avatar for fugmag

[CODE]import os import fnmatch for l in os.listdir("C:\Bilder"): if fnmatch.fnmatch(l, 'IMG*'): l.replace(l, "HH") print l[/CODE] I am trying soemthing like this, but it is not working. Can anybody help me? Cheers

Member Avatar for fugmag
0
175
Member Avatar for kained

Hi, I am trying to get a Javascript working in an XSL document and i can't seem to make it work for some reason. I have placed the following code within the head of my document. [CODE] <msxsl:script language="JScript" implements-prefix="user"> <![CDATA[ function popup(mylink, windowname) { if (! window.focus)return true; var …

Member Avatar for kained
0
161
Member Avatar for gaurav_13191

Hello all, I am third year student pursuing computer science engineering and I want to develop a software which can be coded in C and includes integrating it with database for data. I really need help for some ideas which are new(I need to develop something which is original or …

Member Avatar for pseudorandom21
0
150
Member Avatar for killerpopiller

Hi, I can connect to an energy-meter (Baudrate 300!) and the logfile with 228 lines comes slowly in.[code=Python]line = ser.readline(eol='!') print line [/code] If I use the above code, the complete logfiles is shown. And if I parse separatly saved logfiles with match, it sorts out the right values into …

0
127
Member Avatar for TailsTheFox

Hello, I am wondering how you read input from a text box in microsoft visual studio Forms. I'm trying to make a program that reads text box data and tells you the readout, but I don't know what to type to return the data typed in a text box. Please …

Member Avatar for TailsTheFox
0
112
Member Avatar for charlybones

Hello all, I'm writing a small "robot" application that has to process a list of sequentially numbered MDB files. This has to be done between different executions, ie: today I process files 1,2 and 3. Tomorrow I might process 4 and 5. It's totally random, but sequential. My question is …

Member Avatar for charlybones
0
700
Member Avatar for Vallnerik25

I have some questions about the logical not operator in C++ and Visual C++. I have posted another question relating to the logical not operator. I just can't seem to wrap my head around the uses of this operator. From what I have read so far the logical not operator …

Member Avatar for pkunzip1234
0
233
Member Avatar for jshoot

Hi everyone! I'm triyng to develop a program whith this functions: 1 - Read data from text file 2 - Put the data from file to a variable(ignoring comments in the file) 3 - Tokenize the data e transform the variable into another variable(like float) 4 - Make the calcs …

Member Avatar for jshoot
0
610
Member Avatar for Tellalca

Hey; I want to store string, ConsoleColor pairs like [CODE]dataStructure.Add(new KeyValuePair<string, ConsoleColor>("Red", ConsoleColor.Red))[/CODE] I tried List but it did not seem to work; [CODE] List<KeyValuePair<string, ConsoleColor>> colorList; colorList.Add(new KeyValuePair<string, ConsoleColor>("Red", ConsoleColor.Red)); colorList.Add(new KeyValuePair<string, ConsoleColor>("Yellow", ConsoleColor.Yellow)); colorList.Add(new KeyValuePair<string, ConsoleColor>("Green", ConsoleColor.Green)); colorList.Add(new KeyValuePair<string, ConsoleColor>("Blue", ConsoleColor.Blue)); colorList.Add(new KeyValuePair<string, ConsoleColor>("White", ConsoleColor.White));[/CODE] with the error …

Member Avatar for Ketsuekiame
0
111
Member Avatar for revjim44

I'm trying to code a C# homework assignment that takes a phone number in this format XXX-XXXX (8 digits that can be alphanumeric) and then "Define a method named ReadDials( ) that reads each digit/letter dialed into eight separate char variables (DO NOT USE ARRAYS). All digits are sent back …

Member Avatar for Ketsuekiame
0
382
Member Avatar for Korenai

good day, im practicing databases and .net, can you help me in relating multiple tables and manipulating a listview? my scenario is about school subjects of a student, i have a database with data that has 2 tables, which is 'fnsh_table' and 'ofrd_subjects' fnsh_table Student_No nchar(4) Subj_No nvarchar(10) Title nvarchar(20) …

Member Avatar for smantscheff
0
125
Member Avatar for KKR_WE_RULE

Well guys.. Here goes my first post here :) I've coded few ECC methods that are very frequently used in Cryptography. I've tested the code with the examples posted in certicom website & it works well. But then I implemented ECDSA_Sign() --> Elliptic Curve Digital Signature Algorithm using my own …

0
184
Member Avatar for souravsikka

Hello friends,I have some problem regarding dropdown list.I have 3(Pair of two dropdown list,1st showing categories & 2nd showing subcategories of selected categories)dropdown list having same functionality.When i select a category from 1st dropdownlist,then it showing all the related subcategories of selected category. the problem is when i am selecting …

Member Avatar for danishbacker
0
140
Member Avatar for becool007

Hello, So I am using microsoft visual C++ 2010 and I was wondering is there a way to avoid using .NET implementations? If so, what would I need to do and what are the drawbacks. Thanks

Member Avatar for jonsca
0
117
Member Avatar for hanslim77

Other than the usual [CODE]AudioInputStream stream = AudioSystem.getAudioInputStream(ClassLoader.getSystemClassLoader().getResource("____.wav")); DataLine.Info info = new DataLine.Info(Clip.class, stream.getFormat()); Clip clip = (Clip) AudioSystem.getLine(info); clip.open(stream); clip.start();[/CODE] Since the buffer limit is 2mb for an UNCOMPRESSED wav file so... it's pretty obvious how crappy that is... and that's about all I found on the net since …

Member Avatar for stultuske
0
323
Member Avatar for revjim44

[CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Lab5_A { class Program { static void InputData(ref int counter, string[] playerName, int[] playerScore) { string aValue = null; Console.Write("Enter Player Name (Q to quit): "); playerName[counter] =Console.ReadLine(); Console.Write("\nEnter score for {0}:", playerName[counter]); aValue = Console.ReadLine(); playerScore[counter] = int.Parse(aValue); return; } …

Member Avatar for rohand
0
161
Member Avatar for JannuBl22t

Hey! I have a question. I have a program that I made and now I would like to write addons to it. Like user downloads an addon from my website, puts it into a "addons" folder and then it appears under addons menu and it works like a new form …

Member Avatar for JannuBl22t
0
81
Member Avatar for xshinichix

Can anyone help me with this java problem? Here's the problem: "Write some code to demonstrate inheritance polymorphism. Create a superclass class with 3 subclasses. The superclass should have a method that prints out a line identifying the current class (something like "I am a Superhero"). Two of the subclasses …

Member Avatar for masijade
0
1K
Member Avatar for virusisfound

I want to display my table columns and data in datagridview at run time when user select table name I know that i have to set bindingsourse property . But i dont know how to do programming for that can you tell me.

Member Avatar for virusisfound
0
266
Member Avatar for katisss

#define print_int(a) printf("%s : %d\n",#a,(a)) int y=10; print_int(y) i am taking a class and have been asked to explain why this is bad... So i guess stringifing #a is the problem. It does work, so why is it dangerous?

Member Avatar for katisss
0
81
Member Avatar for 5ophie2012

Once again, I'm having trouble on my next assignment for class. This is what I have to do: Read and process a text file one character at a time: 1.) output the file to the screen one character at a time (as a char) as the file is read. 2.) …

Member Avatar for Ketsuekiame
0
2K
Member Avatar for stephy1
Member Avatar for masijade
0
54
Member Avatar for stephy1

In which package is Grid(in-built) class is there? I guess util. But Grid creation using create() shows error.

Member Avatar for stephy1
0
109
Member Avatar for shakssage

Hello. I'm not really sure on how to explain the problem, but here goes. I'm creating a Traffic Simulator of a cross junction. I currently have car objects moving, with working traffic lights. I created a variable array for the car class which creates several car objects. Then the lane …

Member Avatar for shivam7
0
252
Member Avatar for GAME

How could I login to HostMonster, then go to the Remote MySQL and add IP address?

Member Avatar for Ketsuekiame
0
155
Member Avatar for loungeowl

[CODE]<?php // Using hooks is absolutely the smartest, most bulletproof way to implement things like plugins, // custom design elements, and ads. You can add your hook calls below, and they should take the // following form: // add_action('thesis_hook_name', 'function_name'); // The function you name above will run at the …

Member Avatar for loungeowl
0
291
Member Avatar for techfish

When I run the program I get an exception on line 54: Cross-thread operation not valid: Control 'listBoxResult' accessed from a thread other than the thread it was created on. Form: ------------------------------------ [CODE] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using …

Member Avatar for Momerath
0
174

The End.