132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Bombshock

Heya Daniweb, I've been working on Regular Expressions, thanks to cghtkh who told me about them. I've used resources from: [URL="Newthinktank.com"]NewThinkTank.com[/URL] [URL="http://docs.python.org/library/re.html"]Python Regular Expression Documentation[/URL] and [URL="daniweb.com"]Daniweb.com[/URL]! I figured I'd share my code, ask a few questions, and get some feedback on what I did if I can. Feedback helps …

Software Development daniweb-feedback python regex
Member Avatar for TrustyTony
0
218
Member Avatar for mebrahtom

I recently want to develop an English and three other languages of my country software Dictionary and I can code in C/C++.peple told me that file operation is the best topic for that.BUt I don't have any idea on how to do that. help please!!

Software Development c
Member Avatar for N1GHTS
0
163
Member Avatar for kangkan_14

can anyone please tell me what is wrong with dis code.....i am getting a segmentation fault even though it has been compiled successfully(in a unix system): [CODE]#include<stdio.h> int low,high,mid; void msort(int a[],int low,int high); void merge(int a[],int low,int high,int mid); int main() { int a[10]; int count; for(count=0;count<10;count++) { printf("Enter …

Software Development c ubuntu unix
Member Avatar for N1GHTS
0
177
Member Avatar for odlanzednanref

im in trouble. this program would be easy if our professor taught the lessons well. but he's just like a student reporting his assignment. err. need your help..it would be so much appreciated. here's the problem: Virtual ATM Machine Problem Create a program that displays a log in menu that …

Software Development c++
Member Avatar for Fbody
0
607
Member Avatar for cclausen7

I decieded to make a program that translates a phrase in english to "1337" or "elite". I have searched this website and others and can't find an answer to the error I'm getting. Thanks for any help :). Btw I'm using Bloodshed Dev C++, not sure if that matters. [code] …

Software Development c++
Member Avatar for cclausen7
0
3K
Member Avatar for pacers10

I have to write a table called tempconv.txt, the table should have temps from -300-212 fah and the cel equivalents with steps of 10 or 20, presented in 2 columns.I keep getting a syntax error. I think i am having trouble with the opening and closing of the file. Thanks …

Software Development python
Member Avatar for TrustyTony
0
165
Member Avatar for cherryduck

Hey guys and guyettes, I'm trying to make a game, when you click on a card, a certain set of things happen to that particular card. As the set of actions that occur are the same for each and every card, putting everything in the MouseClicked event for each and …

Software Development java
Member Avatar for cherryduck
0
133
Member Avatar for nagatron

The traditional way of displaying a file in a fileListBox is by using DriveListBox, DirListBox, and FileListBox. I would like to know how to show files on FileListBox by just using DriveListBox. Let say if I choose C:\, all the files on drive C: with a .ico, .dll, .exe, .ocx …

Software Development visual-basic
Member Avatar for nagatron
0
148
Member Avatar for TGeorge824

So I'm simulating a File system for my Operating Systems class. I'm kinda lazy and didn't want to do it in C, so I did it in Java :(. I also didn't make any new data structures, I just made a File and Directory class, where the Directory class has …

Software Development java operating-system
Member Avatar for JamesCherrill
0
1K
Member Avatar for DocBreen

[CODE]import random name = raw_input("Write your name:") print "Hello",name,"you're about to play Hangman." print "Everything you get a wrong guess, you will get a {}, if the word were Nicky you'd get 5 tries." raw_input("Press [[ENTER]]") words = ["bat","girl","epic","blocks","block","chips","boy","fire","fox","school","community"] wordnum = random.randrange(1,11,1) hangword = words[wordnum] a = len(hangword) print "The …

Software Development python
Member Avatar for TrustyTony
0
113
Member Avatar for Bandit290

I'm trying to print out the contents arr of objects, but all I get is a print out of my project name. I guess printing is working, but probably not correctly building my "result" so it can print out the contents. I don't really understand why, if someone can help …

Software Development
Member Avatar for nick.crane
0
164
Member Avatar for hatux

Hello there I have a small question. I've been looking on the web for it but didn';t come down with an answer. As far as i've read we can get user input from the console via Scanner [CODE] Scanner asdf = new Scanner(System.in); [/CODE] What if we wanted to analyze …

Software Development java
Member Avatar for kramerd
0
153
Member Avatar for Iron-Man1138

This is program for figuring out cost of carpet at X length Y Width and Z cost/sqft (turned to yard). I am not very strong in looping yet, but I am pretty sure that is what has to be done here. Ideally at the end I want to ask the …

Software Development python
Member Avatar for TrustyTony
0
320
Member Avatar for koduruabhinav

Hi, I have one problem in perl script development. I have big logic executing in script and finally should save in directory structure specified. directory structure is created at runtime dependind on user runtime arguments by argv my MAKEPATH.the script works if i gave destination directory as /home/abhinav/direc1/ (/home/abhinav/) is …

Software Development perl
Member Avatar for koduruabhinav
0
172
Member Avatar for Jamesbch

Hello, I'm kinda weird I know but I'm trying to encode my mp3 to a lower quality (for my mobile phone) with one line of shell (with bash). I'm wasting some more time as I would do by hand but I'm very interested. Here is my not-working line : [CODE]find …

Software Development shell-scripting
Member Avatar for ole.tange
0
347
Member Avatar for penny90

[CODE]#include<stdio.h> #include<stdlib.h> #include<string.h> int bin2dec1(char *afterx1); int bin2dec2(char *afterx2); void displayBits(unsigned value); /* function main begins program execution */ int main() { int opcode,dec1,dec2; char oprand1[13]="",oprand2[13]=""; char ones[13]="111111111111"; char zeros[13]="000000000000"; char afterx1[13]="",afterx2[13]=""; printf("Instruction : "); scanf("%d%s%s",&opcode,oprand1,oprand2); if((opcode == 1||opcode == 0) && strlen(oprand1)<=12 && strlen(oprand2)<=12) { if(strncmp(oprand1,ones,1)==0) { strncpy(afterx1,ones,12-strlen(oprand1)); } …

Software Development c
Member Avatar for N1GHTS
0
155
Member Avatar for avataralien

I got a HTML file. I wish to parse the content I need to a text file. How can I make use of The unix utility application that strips the HTML markup tags from the file’s content leaving just content text? Thanks for the advise! [B][U]Partial HTML file code[/U][/B] [CODE]<thead> …

Software Development c++ file-system html-css unix
Member Avatar for shibblez
0
569
Member Avatar for ASIWYFA

Hey guys, I am having trouble with my java pacman game. What I have currently is the basics. I am reading in my maze from a txt file which is working. I am stumpted on how to replace the W for my walls with my jpeg of a blue wall(imgGhost …

Software Development java java-swing
Member Avatar for JamesCherrill
0
583
Member Avatar for arawani

Hai, can anyone help me? missing return statement error keep appear when i tried to run this code class CoffeeBags{ //Data member private static final double PRICE_PER_LB = 5.99; private static final double TAX_RATE = 0.0725; private int numberOfBags; private double totalPrice; private double totalPriceWithTax; private int bagWeight; //constructor public …

Software Development java
Member Avatar for arawani
0
98
Member Avatar for unikshegz

I am working on a java project,i want to sequentially read an ASCII file into an arraylist and then add a method to print out the array. i want to also be able to search through the ASCII file can anyone help me with the coding. will realy b much …

Software Development java
Member Avatar for unikshegz
0
135
Member Avatar for Jazerix

Hey there. One of my friends want me to make him a gui, so i was wondering, how do I make it more graphical? I mean, in many programs I've seen the buttons look nothing like the ones I'm able to find in C#. Is there any way I can …

Software Development gui
Member Avatar for Momerath
0
92
Member Avatar for mjoshi

Hello, I am having trouble with a simple math operation after reading from a file. If a particular condition is met, i am copying a number(7 positions), starting from position 31. My aim is to sum all these numbers when the condition is met. I am testing the code on …

Software Development c c# c++
Member Avatar for r.stiltskin
0
186
Member Avatar for ktsangop

Hi everyone! My function UsbID uses the libusb library ([url]http://www.libusb.org/[/url]) to get a flash disk's serial number. Libusb needs for some reason a Window created or else it doesn't work properly for me. So i created a CWnd inside my UsbID function which is invisible. My problem is that if …

Software Development c++ flash
Member Avatar for ktsangop
0
140
Member Avatar for baconswife

With this program I need to be able to find the circumference, area, diameter and radius of a circle. Here is what I have, please let me know of any advice you have: [CODE]#include <iostream> #include <iomanip> #include <cmath> using namespace std; int main () { int x1; int x2; …

Software Development c++
Member Avatar for Fbody
0
2K
Member Avatar for exception

I used VB a long time.. i never manipulate a Class.. I just want to know what is the concept in using a class.. because i already graduated in an IT course, and then im eventually working with VB with a back-end SQL Server 2000. when i look at their …

Software Development visual-basic
Member Avatar for sajan666
0
87
Member Avatar for Kalusingh

Please help me in the following matter:- vb6 Ado database connection vb6 Ado recordset connection show record add record in database delete record from database edit record from database find record from database and all sort of ado connection and add record in datagrid Please give me solution.

Software Development visual-basic
Member Avatar for kinwang2009
0
265
Member Avatar for juniper2009

Dear All I am trying to learn JAVA with Eclipse.I have a class like Form.java and it has a form which contains 4 text fields.When I press the submit button(Register) I want my program to put every thing into a file(test.txt) line by line. I tried to do something from …

Software Development java
Member Avatar for JamesCherrill
0
134
Member Avatar for Devasya

Hi all I just want to know, how to insert the data from a datagrid into access database? please help me.... :'(

Software Development
Member Avatar for bbauraj
0
695
Member Avatar for slychronic

Hello. i am looking for a C++ code that caaculates permutations...for example your input is abc output should be.. sample output is abc cba bca cab acb bac its just for revision so a full answer is appreciated...:)

Software Development c++
Member Avatar for csurfer
0
133
Member Avatar for Prachu

Hi all.. I am new to Python and badly need help...I am trying to run a DOS batch file from Python..I have given the inputs also..It runs half and then exits at the point of time when I need to give answer to whether I need to replace two files …

Software Development python
Member Avatar for changtraidoc
0
2K
Member Avatar for SAINTJAB

Guys, I need your help again in C#. I have a folder that contains txt files. I want to be able to convert the text to audio of any file in that folder. I know how to do the convestion but how to automatically convert whenever there is any new …

Software Development audio file-system
Member Avatar for Kimpl
0
103
Member Avatar for USC_Megoy

Hi everyone...Can ask some help with you guyz..I want to study cursor-base but I cant find it in the internet...can anyone help me to explain what is a cursor-base implementation and what are the functions..I saw virtualheap, Mymalloc and myfree function... Thanks for the explanations...More power...

Software Development c
Member Avatar for Martin B
0
131
Member Avatar for uptheirons1

Hi, I don't usually turn to forums, but I have run out of options. I am not asking any of you to complete this homework project for me, but what I am asking is if you could just give me a gameplan on how to tackle it. I am basically …

Software Development vb.net
Member Avatar for uptheirons1
0
294
Member Avatar for blessedboy123

Hey i have 1000 replicate files with a file name looks like below a.out1 a.out2 a.out3 ..... a.out1000 each file contains 12 rows and 12 columns including the header. a.out1 looks like this n col1 col2 col3 col4 ...........col12 1 0.3 0.1 0.1 0.11............0.5 2 .................................... 3 4 5 6 …

Software Development c++
Member Avatar for mitrmkar
0
102
Member Avatar for krosty4782

Hi guys. I have a question. How i could do to display a panel of options if the cursor click in a item of the listview ? I know about the MouseEvent and how to select the right click event, but i lost to apply that click in a item. …

Software Development listview
Member Avatar for Kimpl
0
126
Member Avatar for Peter Ferber

I have a form in VB.Net (2008) that includes a Data Grid (DataGrid1) and an ADO Data Control 6.0 (ADODC1), which were inherited from VB6 in a VB6 to VB.Net upgrade. The application in VB6 ran perfectly; and my VB.Net version also runs perfectly, but not without first generating some …

Software Development vb.net
Member Avatar for codegans
0
336
Member Avatar for Skillzilog

"SELECT * FROM customer where customer_ID LIKE '%" & Trim(TextBox1.Text) & "%'" good day everyone, im having a problem with querrying i want to query from the field customer_ID,customer_Name,customer_MI,customerLname and textbox 1, 2, 3 and 4 i already tried select * from customer where customer id like textbox1.text or customer_name …

Software Development vb.net
Member Avatar for crapulency
0
171
Member Avatar for novice20

hi... how can this be done using python 1.prompting user for a file location from within a script 2.reading the file location entered by the user 3.storing it in a file like object

Software Development python
Member Avatar for novice20
0
85
Member Avatar for Tiny_trixer

I'm just playing around with C++ as a preperation for coming assignments and well, exams. And I'm a little stuck with the switch statements. I've done this simple switch just to test the functions: [CODE] #include <iostream> using namespace std; int main(void) { char input; cout << "\nChoose function.\n1. Test …

Software Development c++
Member Avatar for Tiny_trixer
0
117
Member Avatar for GHETTO COWBOY

Hi I'm currently working on a college programming assignment and for this assignment I need to create a contact list of first name and last name and store them as the program runs I may not be able to explain this well but I understand what i have to do …

Software Development c linked-list
Member Avatar for csurfer
0
134
Member Avatar for gunjannigam

I have a database hosted at a remote location. I want to access that database. But I keep getting the error [CODE] com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access denied for user 'username'@'%' to database 'db' [/CODE] This is the code that i have written [CODE] Connection con = null; Class.forName("com.mysql.jdbc.Driver"); String username = "username"; …

Software Development java mysql
Member Avatar for gunjannigam
0
2K
Member Avatar for Dean_Grobler

Hello there, In one of my projects I'm working on currently. I have a 'cancel' button in my GUI window that is suppose to close the JFrame the button resides in. I have done some research on the web about this. But it seems like one has to write a …

Software Development gui java
Member Avatar for masijade
0
133
Member Avatar for Priyanka88

Hello, I am using vb6 as front end and oracle as back end. i want to insert new row in database using adodc. i put adodc1.recordset.addnew on command's click event....do i need to mention adodc1.recorset.save or adodc1.recorset.update? and while executing the code text boxes are becoming blank whenever i goto …

Software Development oracle visual-basic
Member Avatar for AndreRet
0
809
Member Avatar for lulus

i´m trying to transfer the info that appears on a textbox to a label in another Form. I wrote this: Me.form9.label5.text=Form2.textbox3.text could you please help me thanks!!

Software Development visual-basic
Member Avatar for AndreRet
0
95
Member Avatar for qinise4

Hi Everyone I am currently writing a program in C++ which uses a very big matrix, I have been told to try and store the matrix in disc and try to retrieve only the chunks of the matrix I will be needing and keep swapping them around. The problem is …

Software Development c++
Member Avatar for qinise4
0
2K
Member Avatar for macla

Hi, I want to install the softwares remotely.Backups of these software are with my Local system.Now i want to install it on another computer on lan or wan using c or c++ .... Any ideas ?

Software Development c++ lan-wan
Member Avatar for macla
0
104
Member Avatar for c++ failure

The Green Tree Service Company offers the following services to its customers: * tree planting - $35 for a small tree, $100 for a medium tree, $250 for a large tree * tree removal - $150 per tree * tree trimming - $50 per hour * stump removal - $75 …

Software Development c++
Member Avatar for c++ failure
0
153
Member Avatar for gotjeff5

So here is my problem. I have been working on a program that impliments a tic tac toe game, but for some reason my array gets messed up after the switch statement in playerX function. If you could take a look that would be great. Heres my program: [CODE]#include<iostream> using …

Software Development c++
Member Avatar for Intrade
0
140
Member Avatar for iwanttolearnc

ive been trying my hand on using modules to make my codes cleaner. i started off with a simple case. i created a module, usermodule.py, which i will pass to a main program openme.jpg - 640x480 [CODE] #this is usermodule.py import Image #image = Image.open ('openme.jpg') #imload = image.load() def …

Software Development python
Member Avatar for iwanttolearnc
0
133
Member Avatar for novice20

hi... am using pysnmp module to do an snmp get on a USB key status from pysnmp.entity.rfc3413.oneliner import cmdgen #--query on ccmSDIDUKeyStatus errorIndication, errorStatus, errorIndex, varBinds = cmdgen.CommandGenerator().getCmd( cmdgen.CommunityData('xxx', 'xxx', 1), cmdgen.UdpTransportTarget(('192.168.5.157', 161)), (1,3,6,1,4,1,18489,1,2,4,2,8,0)) varBinds gives the following: [(ObjectName('1.3.6.1.4.1.18489.1.2.4.2.8.0'), Integer('2'))] I need to print the key status, based on varBinds, …

Software Development python
Member Avatar for novice20
0
994

The End.