64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for D33wakar

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.

Member Avatar for D33wakar
0
104
Member Avatar for manhthaodn

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 …

Member Avatar for hericles
0
100
Member Avatar for phoenixfire2

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 …

Member Avatar for phoenixfire2
0
436
Member Avatar for VidyaYadav

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 …

Member Avatar for technext
0
683
Member Avatar for kshahnazari

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

Member Avatar for kshahnazari
0
95
Member Avatar for thing2

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 …

Member Avatar for codeorder
0
571
Member Avatar for hovestar

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 …

Member Avatar for TrustyTony
0
494
Member Avatar for daveydrake

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 …

Member Avatar for daveydrake
0
245
Member Avatar for narendrajarad
Member Avatar for ben25x

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 …

Member Avatar for Adak
0
174
Member Avatar for 2concussions

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] …

Member Avatar for 2concussions
0
444
Member Avatar for pwolf

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 …

Member Avatar for pwolf
0
173
Member Avatar for borchu

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 | …

Member Avatar for borchu
0
185
Member Avatar for TheForeRunner

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

Member Avatar for TheForeRunner
0
111
Member Avatar for Fireprufe15

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 …

Member Avatar for pritaeas
0
139
Member Avatar for shandoosheri

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

Member Avatar for thines01
0
713
Member Avatar for Karlwakim

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 ??

Member Avatar for Karlwakim
0
380
Member Avatar for BDove

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; } …

Member Avatar for BDove
0
215
Member Avatar for baladeveloper
Member Avatar for johnnydarten

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[][]" …

Member Avatar for johnnydarten
0
1K
Member Avatar for fika

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...

Member Avatar for fika
0
109
Member Avatar for Cenchrus

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 …

Member Avatar for Cenchrus
0
166
Member Avatar for dennysimon

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 …

Member Avatar for dennysimon
0
146
Member Avatar for agent154

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 …

Member Avatar for agent154
0
1K
Member Avatar for bohling

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 …

Member Avatar for bohling
0
228
Member Avatar for Dmiller071

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 …

Member Avatar for NormR1
0
317
Member Avatar for geneh23

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 …

Member Avatar for geneh23
0
218
Member Avatar for rgudgeon

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 …

Member Avatar for rgudgeon
0
178
Member Avatar for Mojtabarahimi

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 …

Member Avatar for diafol
0
605
Member Avatar for rhguh

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 …

Member Avatar for rhguh
0
294
Member Avatar for adityatandon

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 …

Member Avatar for adityatandon
0
900
Member Avatar for Falcon25

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, …

Member Avatar for lxXTaCoXxl
0
193
Member Avatar for abhishek_s_n

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. …

Member Avatar for abhishek_s_n
0
291
Member Avatar for HASHMI007

[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 …

Member Avatar for HASHMI007
0
136
Member Avatar for spach79

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 …

Member Avatar for link_umer
0
190
Member Avatar for shandoosheri

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

Member Avatar for hericles
0
192
Member Avatar for Virangya

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]

Member Avatar for link_umer
0
1K
Member Avatar for Hendo

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 …

Member Avatar for EnjoyYourMeal
0
262
Member Avatar for Smartflight

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]; …

Member Avatar for Smartflight
0
15K
Member Avatar for Dmiller071

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){ …

Member Avatar for NormR1
0
220
Member Avatar for champmanking

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` …

Member Avatar for EvolutionFallen
0
266
Member Avatar for rotten69

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 = …

Member Avatar for rotten69
0
124
Member Avatar for R32@

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 …

Member Avatar for R32@
0
3K
Member Avatar for Virangya

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 …

Member Avatar for diafol
0
212
Member Avatar for axwell

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 …

Member Avatar for lxXTaCoXxl
0
242
Member Avatar for animefun2

[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?

Member Avatar for abhishekjha
0
259
Member Avatar for dr_iton

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 …

Member Avatar for thines01
0
143
Member Avatar for Pravinrasal
Member Avatar for Airshow
0
387
Member Avatar for abosabry_2005

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 …

Member Avatar for abosabry_2005
0
161
Member Avatar for pwolf

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 …

Member Avatar for pwolf
0
212

The End.