64,152 Solved Topics
Remove Filter ![]() | |
If there's a list like below [CODE]s=['b','a','r','r','i','s','t','e','r'][/CODE] and if I tried to remove every 'r' from the list like this [CODE]>>> for x in s: if(x=='r'): s.remove(x)[/CODE] it gives the following result. [CODE]>>> s ['b', 'a', 'i', 's', 't', 'e', 'r'][/CODE] Why isn't the last 'r' removed from the list. | |
I'm having problems with the progress bar in my project :( [U]Introduction[/U]: I made a small program to send notice via email to each member in a list (Excel file - sequential reading user name of account in excel file will be made by the program)and the attached file corresponding … | |
hello everyone, I am making a job portal site. the job seeker in my site enters his date of birth by using three drop down lists (date,month,year). this value i concatenate and insert into database as (1990-09-28). when the user presses the edit button , i want to retrieve this … | |
Hi, In my application i am taking multiple image files from user using openfiledialog and display those image files in flowlayoutpanel. After pressing on Insert button i used to copy all those images in a folder (C:\Images). When there is no file exists the file get copied easily, but if … | |
Hello everyone , i am new to c# so please don't get upset with my question . I'm working with system.Io look here [URL="http://msdn.microsoft.com/en-us/library/system.io.directory.aspx"]http://msdn.microsoft.com/en-us/library/system.io.directory.aspx[/URL] now what does Directory.CreateDirectory(path); means , why when we have a path we create a directory . please make me understand | |
Hello, I am building a web browser with tab control using VB 2010. I have everything working good so now I want to have it save the browser tabs when I shut down the browser and have them re-opened when I run the browser again like Chrome or Firefox would … | |
Hello I'm working on printing a grid of any size and labeling it numerically or alphabetically I have the code that creates the grid, but I have no idea how I would label it... Here is the code that crates the grid: [CODE] def grid(): y = 5 #int(raw_input("How tall … | |
Hey. I am working on some sort of client + project management system. Each client can have many projects, many projects can have many staff. The Link (Junction) table allows for many staff members to be linked to the projects. I have attached the relationships which have been put together … | |
Give Me Reply to Develop Faster Loading Sites..:) | |
This code prints coordinates for a square that another program uses. For space's sake I have cut out all the other program's code, but I believe it is a simple syntax mistake with my if() statements. I have followed the rules and looked just about everywhere and followed all of … | |
hello. i am trying to make a text editor. i can't figure out how to get the file that i select in the JFileChooser to show in the JTextArea. and I also can't figure out how to get the text from the JTextArea to save into a .txt file. [code=java] … | |
okay, so i was doing an exercise for this beginning python course i got my hands on, and i just completed the exercise (took longer than it should have though) and for some reason, when i run it, it returns data i didn't expect, and when i run it again … | |
I have question about if my input matrix was | 1 2 3 4 | | 2 3 4 5 | | 3 4 5 6 | how I would get an output matrix | 0 0 0 0 0 0 | | 0 1 2 3 4 0 | … | |
i want to build an application that automatically floods a text box with text from another text box on button click. i dont even know where to begin | |
I am making a small game, just to sharpen up my Delphi knowledge before school starts again, and also to show of to my friends. So in this game I have five integers and I need to check if at least three of them equal each other. How would I … | |
Hi i need to view all files with their names and icons From a specific directory in a grid style inside my c# winform app Any help would be appreciated Thank you for your time | |
Hi, i am new to java and just want to know if java is heavily used in software. And if we use it to make large applications, will it run slow ?? | |
I'm having trouble finding how to write to a C++ WinAPI TextEdit control programatically. Here is my code for the TextEdit control: [CODE] case WM_CREATE: { OutputBox = CreateWindowEx(WS_EX_CLIENTEDGE, "EDIT", "", WS_CHILD | WS_VISIBLE | WS_VSCROLL | ES_MULTILINE | ES_AUTOVSCROLL, 10, 90, 410, 235, hwnd, (HMENU)OUTPUTBOX, g_hInst, NULL); break; } … | |
hi.. How to create the sub total in data gridview in asp.net using c# | |
Dear all, I'm a C++ beginner and I'm facing a problem with C++ program running on Dev C++ 4.9.9.2. The following program builds and compiles just fine however when I try to execute it it stops before getting any output. Actually the line causing the problem might be the "y_pos[][]" … | |
how can i print the search result using php??? sorry, i dont have any reference code and i dont know how to start the print process using php.... any help, please??? and thanks for your time... | |
I've been googleing the syntax, function, and examples for these keywords, but to no avail: 1. as 2. with 3. assert 4. pass 5. yield 6. break 7. except 8. class 9. exec 10. in 11. raise 12. continue 13. finally 14. is 15. for 16. lambda 17. try Help … | |
Hello all I have classes all bundled in a package The name of the package is components All the classes placed in a directory c:\LJava\build\components The names of the clases are a.class b.class and c.class How to jar this package ? I use dos prompt(not net beans) main class is … | |
I'm trying to programatically set IE options such that when I print a page from my control, it will not print the header and footer, as is the default setting for printing a web page from IE. I found out how to do so from [URL="http://support.microsoft.com/kb/313723"]http://support.microsoft.com/kb/313723[/URL], however I am having … | |
OK, first off I have figured out the prime number algorithm...I guess. What I am needing help with, or wanting the answer to, is how to count how many primes are being displayed. To wit: Enter a Number: 10 There are 4 Primes. The Primes are: 7 5 3 2 … | |
Hi all! I've come very close to finishing this applet of mine but I'm stuck on one last part. The main purpose of this applet is just to fetch some data from a URL (read in 1 line, parse it, and display the data.) After starting this project, I found … | |
Hey everyone! I have an issue with the my checkuser.php..which is my login check that redirects certain users to a certain page, due to if they logged in as an admin or a regular user..I have a test site on my local server that works fine when I log in … | |
I have a masterpage and a default page in a project in VS2010. I am trying to import a javascript file. If I import the .js file the project compiles and loads but the whole browser screen is blank. If I comment out the javascript import line the page displays … | |
Hi guys I used the joomla cms for web development. Actually i install the roknewsrotator module and use it for Persian language that it decode with UTF-8. i don't know why the News rotators module want to show some news in UTF-8 language, at the end of the sentences it … ![]() | |
I am working on a project that requires a CSV file to be read into a multidimensional array. I loop through the array, and set multidimensionalarray[x][n] to the corresponding data in the CSV file, but I keep getting IndexError: list index out of range. I can't figure out why, and … | |
Hey guys, I'm having this problem of trying to open shortcuts, i.e (.lnk) files and am also trying to open powerpoint slideshows (.pps) files through turbo c++. It didn't work so what i did was write a .bat file to open those programs and then converted that .bat file to … | |
![]() | Hi guys happy new year, hope you all have a great year ahead of you Anyway I'm a little bit stuck on a question and thought I'll ask for a bit of help: So I'm using a Windows Forms Application and the user types in some text within a textbox, … |
Here is a simple code of chat between two peers. According to me, the code does what it should have but I am facing difficulty solving this SocketException error. This code worked fine till i made the last modifications. And now I am finding it difficult to trace the error. … | |
![]() | [CODE]// Sorting Techniques.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include<iostream> using namespace std; void Bubble(int x[],int n ){ int temp , j , pass; int flag=1 ; for(pass=1;pass<n-1 && flag==1;pass){ flag=0; for(j=0;j<n-pass-1;j++){ if(x[j]>x[j+1]){ flag =1; temp=x[j]; x[j]=x[j+1]; x[j+1]=temp; } } } } // Env\d … ![]() |
Hello, Could you please tell me since I spent so much time on this, how to create multiple text boxes based on the selected combo box value (eg. 1,2,3,4,5....). I tried for loop but I only get one text box created. Basically if I select value 4 from the combo … | |
Hi guys I need a little help in viewing all .txt files in a folder in a thumbnail view and allowing the user to open it in the default txt editor Any help would be appreciated Thank you | |
hi, my $.post code returns a whole page i want to get only content inside a id from that . this is my code it alerts null. what's wrong with it..? [CODE] $(document).ready(function(){ var url_select_file = "index.php"; $.post(url_select_file, { component: "tinymce_details", action: "selecticondata" }, function(data){ //alert(data); alert($(data).find('#ContentPane').html()); } ); [/CODE] | |
I'm trying to make a simple login page to grant access to my form pages. I don't want anything fancy, just a simple name and password match to grant access. What I have grants access no matter what is typed in, and I don't understand why. Any help would be … | |
![]() | The aim is simple: Input a string from the user, input a word that is to be searched in the string, and return "Found" or "Not found" I have worked down the following code, and it works. [CODE]#include <iostream.h> #include <stdio.h> #include <string.h> void main () { char para[200], word[20]; … ![]() |
Title says it all. I'm loading my image with the statement below [CODE] //logo = getImage(getDocumentBase(),"http://fromdustelune.com/FD_Logo.png"); logo = getImage(getDocumentBase(),"FD_Logo.png"); [/CODE] *The commented one won't work until I sign this applet (or so I believe that's how it's done* Then I call the paint method: [CODE] public void paint (Graphics g){ … | |
![]() | I am trying to code a comment system where I can leave comments on all pages. Every page has its own id. I would like a comment box where I can add and see other comments already posted. This is my code thus far: db table [CODE]`id` INT AUTO_INCREMENT, `page_id` … |
Hi everyone, I'm just wondering why this method below causes an infinite loop to happen. I thought it would run once and then stop. Anyone can explain this? that'll be great. [code] public String printer(String s){ if (s.length() >= 5){ System.out.println("I'm " + s + " And my length = … | |
Hello, My prof asked me to write a program that takes some information and save them for further uses. But I do not know how to save and keep information for a long time in java. I think I have to use arrays, but I don't know what should I … | |
hi, i'm working on this new system which give the option for the user to choose which system method his/her system will work on, eg: file system or database system. when installing the system they can choose the option file or database, assume that user chosed db system, later on … ![]() | |
Hy, i'm trying to get the output text from a page, but i receive the following error: System.Null.ReferenceException : Object reference not set to an instance of an object. [CODE] webBrowser1.Navigate(URL); try { string doc; doc = webBrowser1.Document.Body.OuterText; if (doc != "Invalid Arguments !") { //DO something } } catch … | |
[CODE] #include<stdio.h> #define MAX 4 main() { float A[MAX]; int i; for(i=0;i<MAX;i++) scanf("%f",&A[i]); return 0; } [/CODE] im using Visual C++ and doesnt give me any compilation error it keeps giving me a run time error after i enter the 1st number i can't figure out whats wrong :S help? | |
I need help in the following C# programming: [I]Vehicle manufacturers always offer new saving fuel cars to new drivers. The Renault manufacturer has taken this in consideration and offered new car Renault Clio to a driver Syle LeSylani for one year use. Syle has kept evidence of past kilometers at … | |
What is closure in javascript and why we used clousers in javascript. | |
Hi there, I've always been wondering what's the best way to model a one-to-many relation between two Java classes and save them into a DB. For example, Imagine we have two classes Person and Address where a person might have more than one address, we know that the best way … | |
so im trying to make it so that pressing enter without inputting any value, will break the loop, however, an empty string can be used because of [ICODE]for i in range(len(x_str_array)): x[i] = int(x_str_array[i]) bit.[/ICODE] [CODE] 'Exercise 7.3' # modified program from exercise 7.2 a=1 z="" while x !=z: x_str … |
The End.