64,152 Solved Topics
Remove Filter ![]() | |
Ordering objects is one thing that is changing as we will move to Python3 Python 2.6 gives interesting results [CODE]a=[1,'23',('a','b'),False,[[]],[],'bc',['ab','34'],45,'0',{},True] >>> sorted(a) [False, 1, True, 45, {}, [], [[]], ['ab', '34'], '0', '23', 'bc', ('a', 'b')] >>> print True==1 True >>> print False==0 True >>> print False=='' False [/CODE] Python3 … | |
Hi and thanks for viewing my thread, i have a problem with JComboBox. in my situation, i have a code that display JTextArea and JComboBox. this is my code: [code] public class JScrollPanes extends JApplet { //-------------------------------------------------- static String[] t_value2 = { "2", "3", "4", "5", "6" }; // ----------------------------------------------- … | |
Hi, Im currently in a situation to get all the application name that is currently running in windows but i can get only the processes that is currently running using the following code Process p = Runtime.getRuntime().exec("tasklist.exe /v "); Can anyone help me out in getting the application name... Thanks … | |
If i have a listBox , with 10 elements ( or whatever ) , can i select a element and to change it's color ? Only for that element , not for all ... Something like: listBox Collection: [B]ENG [COLOR="#ff0000"]UNG[/COLOR] IT RO [/B] Like in my example , to choose … | |
Hi, im working on some project on php with mysql, and I'm only actually a beginner in programming with php and mysql. I created a table in mysql which contains several records. I have like 10 records in it. Now what I want to do is I only want to … ![]() | |
I am writing a simple code in c to extract the values from string for ex-P23V32 gives me output of 23*32. But when I am trying to use the isalpha() and isdigit() to check whether the value is a charecter or a digit, the compiler return always zero. Here is … | |
ok, so i have this [B]so far [/B] [CODE] String p = "(http|ftp|https):" + // sees if the proto is any of these " (\\:[\\w^\\:]+:)? " + // gets the sub-proto " \\/\\/" + // the two forward slashes "([\\w*.]+)" + // gets the subdomain(s), domain and tld "[\\:\\w*^"; [/CODE] … | |
Guyz please help me on how to know the value of the specific character when i pressed the keyboard, a messagebox will pop out and tell's value of the character that I pressed. For example character a=65 "not sure if it's the real value of a" heres my code.. [CODE]Private … | |
Hi everyone, I am having problem with the relative path in VB.Net. My project contains PDF file that reside on the same directory as all project files. I am using WebBorwser control to open that PDF file. The code below shows what I am doing to display the PDF file, … | |
Hi guys, I'm trying to count the comparisons in the mergesort algorithm so that I can compare it to other sorting algorithms. I've managed to get a count to work for insertsort but mergesort is being a complete pain! It's probably a very simple problem but I've experimented around with … | |
Hi guys, I'm trying to count and time the comparisons in the mergesort algorithm so that I can compare it to other sorting algorithms. I've managed to get a count and stopwatch function to work for insertsort but mergesort is being a complete pain! It's probably a very simple problem … | |
Ok I've spent more time than you would believe on this one. I built the program, started from scratch. Over the course of the last week I've spent no shit about 30 hours on this and still cant get it to work right. What is suppose to happen is the … | |
Hi there I have following hash related code in Perl that i need to translate in Python if ( exists $legs->{$reference} ) { logg(" 2nd leg of swapes: $ref - merging"); my $swap = merge_swap_legs( $legs->{$ref}, $fields ); $ref = new_fk_ref( $fxall, $ref, $swap ); } else { $legs->{$ref} = … | |
I have been working on this for 2 days now. I have a form with a text box that allows 180 characters, if a user types in something with no spaces it wrecks my site since there is no space for the text to wrap in the table cell when … | |
Hey everyone, I need help with a Python issue. This is what I have so far: [CODE]scores = [] choice = None while choice != "0": print \ """ High Scores Keeper 0 - Quit 1 - List Scores 2 - Add a Score """ choice = raw_input("Choice: ") print … | |
Hi everyone, I've written a small program to convert combinations of English characters into their corresponding Chinese and Japanese equivalents, and it's working on my computer at home, so so far so good. However, I'd also like it to work on computers which don't have Chinese or Japanese fonts installed, … | |
Hello I want to compare an inserted date against two stored dates in order to validate an entry. The date entered is being stored in a separate table from the stored dates. I am not sure how to go about this. So far I have this: [CODE]create PROCEDURE sp_GetTime @FullName … | |
I have a question I am hoping someone canhelp me with. I have a form that consists of a Tab Control..that is filled with text boxes..a ComboBox..and a Notes Box. I just really dont know what extension to put in the SaveFileDialog :(. Can I just put something like *.* … | |
Hi, I'm trying to hide 5 to 12 buttons on a form until a screenshot is saved to the clipboard. I have it set right now so the user clicks a button(btnSavePDF) and then whichever buttons are visible are made not visible. But I haven't a clue how to restore … | |
Hello everyone I am working on a secruity program Demo. The program should allow the user to enter a message, one character at a time. The program should then display the corresponding digit or punctuation according to the ASCII character set. For example, if the user enters the letter a, … | |
This is what my debugger says, but I can't find the problem. Holding.h:15: warning: `class Holding' has virtual functions but non-virtual destructor In file included from p6.cpp:12: Recording.h:13: warning: `class Book::Recording' has virtual functions but non-virtual destructor p6.cpp:90: error: expected `}' at end of input Book.h:14: warning: `class Book' has … | |
I've look in the C++ standard and, when listing list of compound stuff, it does not mention anything like "pointer to [B]data [/B]member of an instantiated class". So the question is: [CODE]struct test{ int a; double d; ..... //more complicated stuff here to make it a NON-pod structure) .... }; … | |
Can someone please help me - I need to write a function that will validate UK postcodes written in a textbox but every tutorial and example source code I find for it is in other languages such as VB and Javascript. The VB code looks extremely small: 1. Public Function … | |
Hi there, I'm getting on pretty well with a project for uni I've got to do, although I'm currently slumped at a bit. I'm running a loop to constantly read numbers into a set of equations and I'm required to output these to an excel file. I've sussed making the … | |
I am trying to define a function that draws a triangle of a given size using the turn method. I've never used turtle graphics before and am not sure how to go about this. Thank you | |
Hi All, Hi All, I'm in a bit of a pickle here. I'm Binding the name of file to a LinkButton and intending to open that file on the LinkButton' click. I have the LinkButton in the TemplateField of a GridView control. Below is the code I'm using : <asp:TemplateField … | |
hi all, I'm new to PHP and Java script, but would like to get som experience with em'. Im trying to make a search for a dropdown list, but it doesnt work? It is based heavily on this code [url]http://www.rgagnon.com/jsdetails/js-0089.html[/url] (wich works fine?) I have testet to see if the … | |
okay so I am having an error with the code below and don't really know how to fix it, according to what I've looked up it should be right. I am using g++ on a linux system. (P.S. i'm a newbie ) okay and the error is: random.cpp: In function … | |
guyz i need your help. I want that everytime I press the ESC "ESCAPE key" there will be a message box popping out then will ask if I want to exit? then if I click the Yes button my Progrma Ends. I also used the form_closing event heres my code. … | |
Hi Everyone, Can you tell me how to change this code so the value in my DatePicker control will update to the database in this update statement? [CODE] strAttendanceUpdateStatement = _ "UPDATE Attendance " & _ "SET DateOfClass = " & DatePickerDateOfClass.Value & ", " & _ "Absent = " … | |
Hello, I have a little program that needs to get data from two separate .csv files for afterwards parse them and translate info to vectors. Everything works fine when I am working with just one file (so just one ifstream), but when I try to use another ifstream to read … | |
just wondering if anyone could explain this... [code] if(loginF.equals("root") && passwordF.equals("root"))[COLOR="Red"]; [/COLOR] ---> if this semicolon is here, my program works.. but i can't have an else statement if i take out this semicolon, the code within the if statement don't execute.. but i can then have an else statement … | |
I'm brand new to C++ and I'm having a difficult time. I'm working on a project for school and I'm very confused with functions all together. How do I get my arrays from main so I don't have to have them in each function and how do I call each … | |
Hi everyone, I have a single string - let's call it string A. I have an ArrayList of objects. Each object contains three strings. I want to iterate through the ArrayList of objects and check if any of the strings contained within the objects are the same as string A. … | |
i m a beginner in Php. Please help me to open link in new window. code is [code] <?php require("connect.php"); $album =mysql_query("SELECT * FROM albums"); echo "<table width='22%'>"; while ($row = mysql_fetch_assoc($album)) { echo " <tr> <td> <img src='images/".$row['cover']."' width='100%' height='100%'> </td> <td> <b>".$row['name']."</b><br> ".$row['description']." </td> </tr> "; } echo … | |
These days, as we all know, graphics is probably the most important thing. I made a program using C# and the only graphics im using is that of WFA, but i want to apply EXTREME graphics to it, like that of windows media center, or something like that. What would … | |
This is just the beginning of my name sort prog... I am starting with just reading in the names and then outputting each name... As of right now, it is crashing after displaying the first name... I think it's something with my array.. rectangular, instead of square, but don't know … | |
Is there php function to remove the space inside the string? for example: $abcd="this is a test" I want to get the string: $abcd="thisisatest" How to do that? thanks. | |
![]() | Hey guys, I have a question: So... I want to do a product page with new product, edit product and delete product feature. While I'm on the modify or the deletion page, I would like to and [B]categorise [/B]by [B]date[/B]-desc, asc ; by [B]category [/B]and [B]alphabeticaly[/B]-desc, asc the retrieved content … |
I have been able to create the PDF without too many problems, but it is not formatted the way I would like/need. I am producing the PDF from a web page TextBox which the end user is running TinyMCE on (and is effectivly using it was a word processor), but … | |
Hello i have a login page so once the user enters the correct details he enters into the home page. Now i want to implement 2 things 1. once he clicks the button 'log out' he must be redirected to a page saying" logged out successfully " n even if … | |
Hi there, I am in need of help, I would like to know how to create a link that when clicked it will change the order a list is displayed. Specifically in wordpress when using a codex to display posts. [B]How would I create a link or dropmenu that can … | |
Hi, I'm pretty new to php and MySQL. I am trying to use a form to update a the database. However it just doesn't seem to actually work. I also am getting this error from printing out errors: You have an error in your SQL syntax; check the manual that … | |
Hey, I'm pretty much almost done with this program, but I'm not sure how to clear a previous file (after opening it) in order to open a new one. My program is supposed to open a file with a maximum of 100 unordered decimals and allow the user to sort … | |
![]() | Hey everyone. :) I've been trying to find a goof file upload script for a while. No luck really. I operate an internet radio station, and frequently artists want to send me music for airplay consideration. I've been struggling along giving them FTP login information and letting them send files … |
I am wondering why the right hand side of my split screen isn't in the middle and also why the game goes off of the background, any help would be much appreciated [code] #include "SDL.h" #include <stdlib.h> #include <stdio.h> #include <stdlib.h> #include <Windows.h> #pragma comment(lib,"Winmm.lib") /* ---------------------------------------------------------------------- */ /* Defines/Enumerations … | |
Hi, I basically have a dictionary with a few key value pairs in it. [CODE] mydict = {} mydict['key1'] = 2000 mydict['key2'] = 3000 mydict['key3'] = 6000[/CODE] I have read that you can check if a particular key is present in a dict with the '[B]in[/B]' statement like: [CODE]if 'key1' … | |
I have a question. Can i select a string from my RichTextBox ? For example: I have this text: English Francais Spaniol And i want to select Francais , but as string , not at int - lenght ... ( richTextBox1.Select(7,15); ) I want something like: richTextBox1.SelectString("Francais") , is there … | |
My overloaded operator isn't initializing the value passed through it. Please help!!! and yes I am aware that my insert function isn't complete... [CODE=c]#include <iostream> using namespace std; struct Node{ int value; Node * next; }; class linkedList { public: linkedList () {first=0; length=0;} bool operator > (int a) ; … | |
Hello, So my problem is that I am supposed to write code in order to prove whether or not text in a file is topologically sorted correctly. I have the algorithm on how to do this, but the specifications say that I should use an array of lists to keep … ![]() |
The End.