199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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, … ![]() | |
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? … | |
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 … | |
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 … | |
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- | |
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 … | |
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), … | |
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 … | |
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 | |
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 … | |
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 … | |
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] … | |
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 ? | |
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 … | |
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 … | |
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 … | |
[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 … | |
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. | |
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)?? | |
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. … | |
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, … | |
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 … | |
[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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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) … | |
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 … | |
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 … | |
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 | |
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 … | |
[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; } … | |
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 … | |
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 … | |
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. | |
#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? | |
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.) … | |
| |
In which package is Grid(in-built) class is there? I guess util. But Grid creation using create() shows error. | |
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 … | |
How could I login to HostMonster, then go to the Remote MySQL and add IP address? | |
[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 … | |
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 … |
The End.