132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for gunbuster363

I am crawling a website I found out that the source code of the website is different to the content of the website. obviously the content were generated through some script, does anyone know how to simulate the action and get the content of it? For example, there is a …

Software Development python
Member Avatar for gunbuster363
0
110
Member Avatar for wolfeater017

I've heard of the working file in python before and was just wondering what it was and where I can find it in python

Software Development python
Member Avatar for vegaseat
0
138
Member Avatar for judithSampathwa

Hey the code I have for validating the tel no is not working for the string value (567) 789-5677 [CODE] String rePhoneNumber = @"\([1-9]\d{3}\)\s?\d{3}\-\d{4}$"; Regex re = new Regex(rePhoneNumber); if (re.IsMatch(textBox1.Text)) MessageBox.Show("valid phone number"); else MessageBox.Show("Phone Number Must Be Entered As: (555) 555-1234"); [/CODE] Every time the else part is …

Software Development regex
Member Avatar for nick.crane
0
279
Member Avatar for Vox30z

Hello all! I am trying to add to items to a combobox by using the "enter" key. It does work when I add the first item, but if I manually clear the box and add another items it does not get added to the list. (1) I click in the …

Software Development vb.net
Member Avatar for pritesh2010
0
432
Member Avatar for Duki

Hey everyone, I'm having an issue where my application will keep Excel running even after it closes. I think I'm closing everything properly, but is there a way to check on close? Here's part of my code: [code=c#] ////////////// Part of ExcelWriter class public void CreateSheet(Laptop lptp, string file, string …

Software Development
Member Avatar for Duki
0
460
Member Avatar for danturn

Hey guys, I've got 2 collections (one datatable and one list of an object) i need to compare them and get a collection of the matches and a collection of the items that dont match (from both collections) i've got the matched collection sorted: [CODE] var yourNumbers = from DataRow …

Software Development
0
44
Member Avatar for Duki

Hey everyone, I have a warning message in my app saying "Unreachable code detected" - Here's a snippet: [code=c#] //Files are sometimes not closed quickly enough - these loop variables allow for the system to wait and try again const int MAX_TRIES = 3; int loop = 0; ... public …

Software Development open-source session
Member Avatar for Duki
0
218
Member Avatar for dansnyderECE

I chopped down my make file so I can compile a C++ program with very few, but some flags set to see if I can determine if they are working. The following is my make file section on C++ flags: [CODE]# Common compiler flags CFLAGS = -mips1 -Wa,-non_shared \ -mno-abicalls …

Software Development c++ os-x unix
Member Avatar for vijayan121
0
556
Member Avatar for DoEds

Arg... Guys can you correct my code? 'coz it gives me a wrong output if i input "3 , 1, 2 or 1, 3, 2 or 3, 2 ,1" [CODE]import javax.swing.*; public class OutputGreatest { public static void main(String[] args) { int uInput1,uInput2,uInput3; int maxValue; uInput1 = Integer.parseInt(JOptionPane.showInputDialog(null,"<1>Input a number …

Software Development java java-swing
Member Avatar for DoEds
0
126
Member Avatar for shirup

i have difficulties in this area and am kindly requesting for your help.i need to submit an assignment by the end of today.please help

Software Development java
Member Avatar for NormR1
0
105
Member Avatar for AngelicOne

How to bind data in listview? I usually use [CODE]gridview.Datasource=ds.Tables[0];[/CODE] for my datagridview. How can I do this in listview?

Software Development listview
Member Avatar for AngelicOne
0
1K
Member Avatar for ganeshredcobra

hai, i want to create a code to searcha big document in text format and sort one word say "error" and need to print that whole line ....how can i implement this simply in python openfile = open('/home/space/Desktop/test.txt', 'r') data=openfile.read() words=data.split() #print words if "error" in data:

Software Development python
Member Avatar for TrustyTony
0
149
Member Avatar for ryathegr8

slaamz guls and guys! can any body tell ,how to validate input to check whether it in Integer only?? it shouldnot be in Double, Long and float in type..... i am writting simple code for simple calculator.... plz reply me fast if any body knows... regards m0m0

Software Development java
Member Avatar for javaAddict
0
85
Member Avatar for dima shawahneh

Hello every one Can we change the settings of a dll file after deployment if we can not , any alternative suggestions ? thx

Software Development
Member Avatar for k.d.m
0
101
Member Avatar for MARKAND911

I have an MDI form "mdi1". And another form "form1" On mdi1 I have a label "lbl1" I want to change text of lbl1 when a button on form1 is clicked. form1 is a child form of mdi1. How can i do this.

Software Development
Member Avatar for Geekitygeek
0
4K
Member Avatar for aragmus

hi guys what constructors should i use for this program? [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace BACKUPEXEFILES { public class cCOPY { private string _directorypath; private string _filename; public string directorypath { get { return _directorypath; } set { _directorypath = value; } } public string filename …

Software Development oop
Member Avatar for k.d.m
0
130
Member Avatar for Chaster

Hi all, I've been searching for some time without any success. Here's the problem: I have an SWT GUI, which contains some UI elements placed onto a Composite. I would like to dynamically add a new Composite to the old one, when a certain event is triggered. Fine everything works …

Software Development gui java
Member Avatar for mostafaelshafei
0
466
Member Avatar for 0xCMD

Greetings to all, I want to use the "[B]System.IO.File.Delete(PATH);[/B]" function to delete a file that is in my Project whenever I run the app. The problem is that in order for this to work I have to specify a full path [B]"C:\Users\SomeUser\Desktop\SomeAppFolder\Content\Models\Model1.X"[/B] The problem is that this path is different …

Software Development
Member Avatar for Geekitygeek
0
283
Member Avatar for sunil_skmd

Hi, I am new to java. i want to use a switch statement on operators that are in read as strings. Like "==","!=",">=","<=". Please help me to do this as i cannot use even their ascii value of these operators to switch the cases.

Software Development java
Member Avatar for javaAddict
0
213
Member Avatar for Maya Pawar

Hi friends, I have different query in access and vb.net. Sometimes record are inserted sometimes not. All coding is correct. when record is not inserted,it gives an exception that 'could not open;database is locked' What is this exception??? My database is not having password. I m using access2007 database. since …

Software Development vb.net
Member Avatar for G_Waddell
0
454
Member Avatar for steaky1212

Hi, A bit of a tricky question, so I will try to explain everything in its fullest. I am trying to replicate some of the Terrarium work done by the Microsoft guys, but I dont want to look at any of their code. Anyway I have my base class which …

Software Development microsoft-access oop
Member Avatar for nick.crane
0
207
Member Avatar for GrimR7529

Hi, I am having trouble removing a line from a text file. When I click on the button in order to remove the line it gives me an error that access to the file is not possible. Now I assume that the file is in use during me wanting to …

Software Development vb.net
Member Avatar for GrimR7529
0
90
Member Avatar for Mr.UNOwen

Hello, Just recently I learned how to make a game with java using an applet and I was wondering how I’d go about making a java game for cell phones?

Software Development java
Member Avatar for johnfl
0
89
Member Avatar for scorpio26krf

I have a web page where I am trying to populate the PSI # into the txtPSI depending on which customer is selected in ddlCustomers. I have written it a way it has worked on a past project and it compiles with no errors, however it doesn't work when it …

Software Development vb.net
Member Avatar for jugosoft
0
106
Member Avatar for MxDev

Hi guys, Does anyone here know where I can get C# class library documentation, I've search the interenet but I couldn't get what I need. Any help appreciated. Thanks in advance.

Software Development c c# c++
Member Avatar for Teme64
0
174
Member Avatar for evangelyngulip

hi.will you please help me in making a Payroll System that using a Java?Thank you.

Software Development java
Member Avatar for rboffers
0
45
Member Avatar for Anatake

I have a (I thought:confused:) relatively simple converter project I am writing with Visual Studio 2010 C++ Windows Form App. So to be forthwith I am completely stumped as to how I would get the user input from the Amount box (1234.12 for example) and the Rate box (1.04108 for …

Software Development c c# c++ visual-studio
Member Avatar for jonsca
0
226
Member Avatar for jhai_salvador

Yoe guys, need your help.. I want to know on how to setup my client computers and the server so they can connect to sql server 2005 Developer Edition. Client computers are Windows XP. Server is Windows Xp installed with a SQL Server 2005. They are on the same Workgroup. …

Software Development client-server sql visual-basic
Member Avatar for AndreRet
0
1K
Member Avatar for starlight849

Hi guys and gals, I appreciate any help in advance. I have two textbox controls and I want to accept input for textbox 1 and textbox 2. However, when user enters text into textbox 1 I would like textbox 2 to mirror the same text as it is typed. I …

Software Development asp.net vb.net
Member Avatar for GeekByChoiCe
0
294
Member Avatar for pi_lord12

I'm making a JPanel for a game. I want the background to be an imported image, so I set up a ClassLoader to import the image and converted that to a URL. However, that URL appears to be null, as when I try to put the panel into a JFrame, …

Software Development image java
Member Avatar for pi_lord12
0
156
Member Avatar for usafsatwide

I'm not sure if you all need all my files, but I'm getting the following error message when compiling: productionworker.cpp(8) : error C2440: '=' : cannot convert from 'const char [4]' to 'char' productionworker.cpp(10) : error C2440: '=' : cannot convert from 'const char [6]' to 'char' Can anyone help? …

Software Development c++
Member Avatar for usafsatwide
0
265
Member Avatar for libathos

hi guys i want to make a c program,what it has to do is to find its current pathname every time it is executed from diferent locations and then redirect the outcome in a .txt file,through cmd.I have lack of knowledge when it comes to cmd so any help?

Software Development c
Member Avatar for kings_mitra
0
128
Member Avatar for darling332001

Friends, I'm taking a Java programming class online and it seems that the lecture nor the book explains in detail the finer points needed for my programs to work. Thus far, I've gotten by with what I know of prior languages and trial and error. However, I'm having problems with …

Software Development java
Member Avatar for tong1
0
268
Member Avatar for smoothe19

How do i create such a thing like a txt file where i can save usernames and passwords? but is protected that only certain users can access and edit the usernames and passwords? Please help I tried using a txtfile but i realized anyone can access it...is there anyway of …

Software Development java
Member Avatar for NormR1
0
91
Member Avatar for maniakdusoleil

So, I'm working on a project for my Intro to Software Development course; it's a sudoku puzzle program. So far, I've encountered two big bugs: 1.) When I wrote the code in Visual C++, the display worked fine(it showed up on the screen as a normal puzzle), but when I …

Software Development c++ puzzle
Member Avatar for StuXYZ
0
2K
Member Avatar for interist

Hello everyone, I'm newbie with c++. I need to ask you probably a very simple question. When I write a file with numbers from an array I then read in a file something like: 7 8 9 10 11 12 When I then read this file and print on screen …

Software Development c++
Member Avatar for mrnutty
0
80
Member Avatar for jiraiya

Hi everyone, I'm having a problem with a JUnit test I've written. I think there should be a simple solution but I can't work out what's wrong. I'm new to using JUnit so any advice would be a big help. Here's the test class below. At the moment I'm just …

Software Development java
Member Avatar for Taywin
0
100
Member Avatar for leahrose87

I have so many form in different module in one solution. I already instantiate a new Form as a global variables in my parent form. Then, call the code [CODE] frm.show() [/CODE] in my button1 event any idea?

Software Development vb.net
Member Avatar for leahrose87
0
96
Member Avatar for archana.c07

Hi all, I am trying to conver string to decimal. the sting is 8 byte long and contains data as hex nembers e.g 0000000000000D72 i want to conver this data into decimal as 3442 i'm not getting how to do this help me...

Software Development c
Member Avatar for Software guy
0
261
Member Avatar for habib_parisa

I am using Ubuntu-gcc and have a large C code which uses routines from numerical recipes and GNU scientific library. It needs a compilation compilation because each library, i.e. nr and GNUsl, needs its own flags for gcc. Therefore I use a makefile. It works well when the code is …

Software Development shell-scripting ubuntu
Member Avatar for griswolf
0
370
Member Avatar for jcao219

This is not my code! Taken from [URL="http://stackoverflow.com/questions/3230978/code-golf-four-is-magic/3231355#3231355"]this SO post[/URL]. You can use this to get the number of letters in the English representation of an integer, from 0 to 99. So for example 5 (five) is [icode]len("five")[/icode] which is 4.

Software Development python
Member Avatar for TrustyTony
0
176
Member Avatar for TwijoO

hi, due to my FTP server not liking to upload .exe files in order to get my auto updater to work i have to rename the folder .file before i upload [I](example: C:/.../desktop/twijoo.exe.file)[/I] after this is downloaded i need it to check the application folder for any files ending with …

Software Development file-system vb.net
Member Avatar for TwijoO
0
179
Member Avatar for saqib_604

hy! I am writing an integer array class. but there is problem to return array from getter function. any one tell me the procedure of this task. And tell about extract operator for that class.[code]#include<iostream> using namespace std; class integer{ friend ostream& operator<<(ostream& output, const integer& num); private: int array[10]; …

Software Development c++
Member Avatar for mrnutty
0
297
Member Avatar for saranyasara

hi we are doing ATM project in VB.NET using sql connection....how to create database in sql...there are two labels in my project namely pinno and acctno.i had database with three fields pinno ,acctno and amt.how to check the details i entered in textbox1,textbox2 are same when compared with database...pls answer …

Software Development vb.net
Member Avatar for pweegar
0
106
Member Avatar for Tekito

I'm about to write a new program in Visual Basic. I have Visual Studio 6.0, but it's limitations are starting to become a problem and I'm wondering about trying Visual Studio 2008 Express (unfortunately purchasing the full version is not an option). I would hate to get halfway through and …

Software Development oop vb.net visual-basic visual-studio
Member Avatar for pweegar
0
221
Member Avatar for ttboy04

hello, I have called getFruits method from another class (another class is called vegetables). I can't seem to add the names of the fruits in myTable TreeSet in class Test. The error I am getting is "cannot find symbol - variable length". Can anyone help me. Thanks [CODE]public class Test …

Software Development java
Member Avatar for ttboy04
0
138
Member Avatar for smoothe19

My program is not case sensitive it does not display the output my proff wants PLEASE HELP! I don't know how to make it case sensitive The output should be: As entered 0:a:apple 1:a:Apple 2:z:Zone 3:a:apple Bubble Sorted 0:a:apple 1:a:Apple 3:a:apple 2:z:Zone Selection Sorted 1:a:Apple 0:a:apple 3:a:apple 2:z:Zone My program …

Software Development apple java
Member Avatar for NormR1
0
436
Member Avatar for Andreas5

Exercise 12-5 in Accelerated C++. My operator+= works: [CODE]void Str2::operator+=(const Str2& a) { iterator new_data = alloc.allocate((avail - data) + a.size()); iterator new_avail = std::uninitialized_copy(data, avail, new_data); new_avail = std::uninitialized_copy(a.data, a.avail, new_avail); uncreate(); data = new_data; limit = avail = new_avail; }[/CODE] However i cant get the operator+ to work:( …

Software Development c++
Member Avatar for Andreas5
0
93
Member Avatar for ttx336

Hello All, this is my first post here, I was a novice Pascal and C programmer back in the DOS days, now I am taking a C++ class based on "Programming - Principles and Practices Using C++" by Bjarne Stroustrup. In the book he gives an example in which he …

Software Development c++ pascal
Member Avatar for ttx336
0
97
Member Avatar for patrickm129

Hello, I am making a *.vbs file and I need help putting two codes in. The first code is to make a .txt file named "Hello World", with the text in the .txt file "Time ... (your time)-Test123" Code: [CODE]myfilename = "\Hello World.txt" MakeHelloWorldFile myfilename Sub MakeHelloWorldFile (FileName) 'Create a …

Software Development microsoft visual-basic
Member Avatar for patrickm129
0
207

The End.