43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for SAM2012

I am new to this forum. I need help in defining the same kind of function according to my requirements. as [url]http://www.codeproject.com/Articles/1088/Wildcard-string-compare-globbing[/url] I hope, I 'll get good response. Words are strings which are separated by dots. Two additional characters are also valid i.e:The *, which matches 1 word and …

Software Development c++
Member Avatar for deceptikon
0
202
Member Avatar for riahc3

Hey I am having problems making a exact copy of a file. It seems that it changes the headers of the file. I tried using the Apache fileutils copyfile method but it seems to change the header completely. The rest of the file looks pretty much OK. I think it …

Software Development apache java
Member Avatar for riahc3
0
238
Member Avatar for riahc3

Hey I have a FTP server with this [url]ftp://192.168.100.2/folder/[/url] And I have something like anotherfolder: afolderinsidethatone: file1.bin file2.bin file.txt I want to pass all of that to the ftp server so it takes this form: [url]ftp://192.168.100.2/folder/anotherfolder/[/url] [url]ftp://192.168.100.2/folder/anotherfolder/afolderinsidethatone/[/url] [url]ftp://192.168.100.2/folder/anotherfolder/afolderinsidethatone/file1.bin[/url] [url]ftp://192.168.100.2/folder/anotherfolder/afolderinsidethatone/file2.bin[/url] [url]ftp://192.168.100.2/folder/anotherfolder/file.txt[/url] I have this code: [code] public void subidaftp(String ip, String …

Software Development client-server java
Member Avatar for riahc3
0
217
Member Avatar for mkaynutty

So basically this is suppose to be a grade calculator and the program works, I now just have to put it into a do-while loop so it can work for more than one student. My professor wants it to say Y for another student and N to quit at the …

Software Development c++ programming-construct
Member Avatar for doma18
0
202
Member Avatar for prethum

Hi i am making a combobox multi search. I have a table and coloums like studentid,Fullname,lastname which i have populated into the combobox. Beside the combobox i have textbox. The function i am trying to create is the user selects the colums he wants and enter the search text in …

Software Development
Member Avatar for prethum
0
120
Member Avatar for xopenex

Hello all, I found a thread similar, but it was closed... so here is the code and my question... I am wondering how to change the code from creating files to creating variables? this is the code from the thread on here.... and below it is the code that i …

Software Development python
Member Avatar for TrustyTony
0
201
Member Avatar for 1bung100

I have an xml having same tags (<value> tag) as given below: [CODE]<number> <type>decimal</type> <value>12</value> <value>14</value> </number>[/CODE] I am trying to parse using either Digester or JAXB (without Schema). What I have done is I have created a java class that will map with the given xml. For this I …

Software Development java xml
Member Avatar for 1bung100
0
2K
Member Avatar for G_Waddell

Hi, I'm writing a routine to import salesorders from an Excel sheet into Sage. The Sheet is broken down by product rather than by order so I want to use OLEDB to connect and run a query against it sorting by Order Number to get the items back per order. …

Software Development vb.net
Member Avatar for G_Waddell
0
1K
Member Avatar for liphoso

with integer arrays when i add them i can have code that looks like this result[0] = array[0] + array2[0] all the arrays being of integer type now if my arrays are of Huge type and i would like to get their sum, how would i do that? this is …

Software Development java
Member Avatar for stultuske
0
245
Member Avatar for breatheasier

Hi, I'm wanting my program to loop and create different files outputting at different stages in a while loop, I just can't work out how to make it happen! here's a stupid example [code=python] while (a<10): a = a+1 if (a=4) or (a=6): output = open('output'+a, 'w') #something like this? …

Software Development python
Member Avatar for xopenex
0
5K
Member Avatar for saneeha.nust

I need to apply the "&" operator in where clause... the code is: [CODE]com = new OleDbCommand("select Accesstype from FTPSitesAuthorisation WHERE (SiteName = @site_name) & (UserName=@user_name)", conn); [/CODE] It does not give any error,,, but the result is not correct , the "and" operation is not applied... please guide , …

Software Development
Member Avatar for saneeha.nust
0
134
Member Avatar for stevo7624

Can someone help me finish this code off. Its a simple program that prompts two players to pick a card. Each picks between 0-51. An array is holding each of the cards by rank and suit using a struct. Everything works great except the greater_than function. The only issue with …

Software Development c++
Member Avatar for stevo7624
0
128
Member Avatar for saneeha.nust

I am using a select statement for selecting certain rows of database table. the statement returns multiple rows. please guide me how can i store all the rows so that they can be used latter for comparison. each row contains one variable of type string... I was using string user …

Software Development
Member Avatar for saneeha.nust
0
145
Member Avatar for NicoleD90

I have to create a program that simulates flipping a coin. The directions my teacher gave me are as follows: 1. Program should prompt the user for number of runs 2. Program should prompt the user for the number of times to flip the coin in a single run 3. …

Software Development java
Member Avatar for NicoleD90
0
700
Member Avatar for jbutardo

Hi, I have this fileupload control which saves excel file on my server, but somehow, if the excel file is larger than 4 mb it does not save the file, i used this code fileupload1.SaveAs can you please help me on why does this happen? Thanks

Software Development file-system vb.net
Member Avatar for desynch
0
445
Member Avatar for pattmorter

a friend asked me to help him with his lab. the lab involves opening a file and adding the numbers in the file together displaying how many even and how many odd numbers there are. I have the file "textinput.txt" in the directory with the .cpp file but when i …

Software Development c++ file-system
Member Avatar for pattmorter
0
304
Member Avatar for gedas

Hey guys, what would be a neat why of geting every third token in the string. lets say there is a: String longString= "i want this"; how would i be able to get "this" ? Thanks

Software Development java
Member Avatar for JamesCherrill
0
1K
Member Avatar for darkelflemurian

Hello everyone. I have the following issue: I have a Windows XP computer with excel 2003 installed. we use several automation robots using excel. everything works fine, files area created and all that. but we have a problem. for some reason the document recovery pane of excel is getting filled …

Software Development microsoft-office vb.net visual-basic
Member Avatar for darkelflemurian
0
243
Member Avatar for DavidKroukamp

Hi all, I'm in my 2nd year of software development (doing C#) and having come from a Java background, and having programmed a few GUI's in C#/Visual Studio's; I was wondering... Like in Java You can use an IDE to build a GUI, however you can also simply add Frames, …

Software Development c# gui visual-studio web-design
Member Avatar for DavidKroukamp
0
341
Member Avatar for johang_80

Hello everyone I have a task of changing values in an int[][], for example if I input 1 it is changed to 0 and vice versa. So far I tried the following for a hundred times amending the xs and ys but with no happy ending. [CODE] public void reverseOrder(int …

Software Development java
Member Avatar for johang_80
0
193
Member Avatar for sw8revenge

hello everyone i just wanna ask some help regarding on how to delete all datas in the data grid view from search result. i have a form which search data in specific date and show result in the datagridview, what i want is that when delete button is clicked all …

Software Development vb.net
Member Avatar for artemix22
0
232
Member Avatar for digiguy

Hi All! I just have a question (looking for advice) i'm trying to write a web based app and i don't know if i should program in c# or asp.net. What advice would you give a noob, who is more comfortable on the hardware side trying to get a better …

Software Development
Member Avatar for skatamatic
0
145
Member Avatar for ChevyScience

I am having a problem with my code, it is suppose to be rearranging the characters inside the array, but every time i enter the lower bounds (x) and upper bounds (y), i rearranges the wrong alphabets. Here is my code [CODE] int main() { char a[5]={'A','B','C','D','E'}; int x, y; …

Software Development c++
Member Avatar for ravenous
0
172
Member Avatar for arindam31

Hi , I want to achieve something like this . Consider the example [CODE]>>> txt 'arin.thearc@gmail.com' if '@' or '.' in txt: do something[/CODE] I just want to know how can we nest ORs and ANDs inside the if or while loops...

Software Development python
Member Avatar for TrustyTony
0
219
Member Avatar for whitech

I've to write a program which gets a colour from user.Users will enter the colour's name if the colours is exist in my string,program will give a msg.If it doesn't exist give an error msg and stop program.I've already write a code but it doesnt works accurately. [CODE]int i,j; void …

Software Development c
Member Avatar for Subhasis giri
0
122
Member Avatar for Labdabeta

To what extent does the system endianness effect a program. I know that doing pointer assignment will be affected, and unions are too, but what about bitshift operators? Do they apply to the value, merely emulating real bitshifts, or do they apply to the bits themselves? Are there any other …

Software Development c++
Member Avatar for Labdabeta
0
89
Member Avatar for vuquanghoang

I have done almost all things in my project. I think file SlList.java in my project has something wrong( in insert function). When I insert something in the middle of link list, I rest disappear although I link the rest to the next of the node I want to insert. …

Software Development java
Member Avatar for Philippe.Lahaie
-1
257
Member Avatar for vlady

hi! I have another struggle. I'd like to have this kind of output: [COLOR="Green"]som object studenta: Janko Mrkvicka som object predmetu: fyzika, mam znamky: [4, 1] a priemer: 2,5[/COLOR] How can I make it? my output is a bit different (it is in last line): [COLOR="Red"]som object studenta: Janko Mrkvicka …

Software Development python
Member Avatar for Lucaci Andrew
0
136
Member Avatar for Thropian

I started looking into networking and storing/altering data on a computer. I've got everything running, but can't get it to work from an outside computer. Is there an easy way to get past the LAN restrictions or am I going to have to change settings on my router?

Software Development python socket-programming
Member Avatar for ihatehippies
0
296
Member Avatar for luskbo

Okay, been working on Android program and since its JAVA based, I figured this might be a place to get some good advice. I have been writing this program to run tcpdump, but for some reason it freezes and crashes. I am able to execute the shell commands, but after …

Software Development android android-development java sqlite
Member Avatar for luskbo
0
285
Member Avatar for grh1107

how you would compute/denote the time complexity of two loops based on different variables? I understand how to compute the time complexity for a simple loop PseduoCode while X<N { while Y<M { Z++ } X++ } one loop occurs N times - time complexity O(N) the other loop occurs …

Software Development c++
Member Avatar for mrnutty
0
315
Member Avatar for adil_bashir

Can anyone help me to convert String to BigInteger. please

Software Development java
Member Avatar for adil_bashir
0
1K
Member Avatar for msrikanth

Hi Everyone, I need a replace a string (ex : this) with the string (ex : that) in each line of a file (sample.txt) using a C Shell Script and I am not allowed to use sed,awk and replace command in the unix , So i tried to use tr …

Software Development shell-scripting unix
Member Avatar for histrungalot
0
7K
Member Avatar for collin_ola

Hi, I am trying to split a single line of data into three separate parts so that they can be displayed in different textboxes. The data looks like this: item1_item2_item3 The code that I tried is: [CODE]Dim arrayLines() As String Dim record As String record = Subs.Text arrayLines = record.Split("_") …

Software Development vb.net
Member Avatar for collin_ola
0
164
Member Avatar for choosechrist

I know how to set the tab order on the forms on VB.net. but i want to set such that when i press enter while on the form, the cursor will go to the next textbox based on the tab order set.

Software Development vb.net
Member Avatar for M.Waqas Aslam
0
111
Member Avatar for artemix22

can anyone help me please.. i'm stuck with this thing for 2 days.. i have try to find answer from one forum to another, and it is give me heavy headache. what i want is that my panel size in my form has a function as print area, in my …

Software Development vb.net
Member Avatar for artemix22
0
754
Member Avatar for NCl

The title says it all; I want to make a simple, not all-over-the-place HTML code. I'm asking for help since I'm still in middle school. I understand a lot of code, but if you give me a from college class explanation, it's not going to help until I get to …

Software Development html-css vb.net visual-basic web-browser
Member Avatar for thines01
0
300
Member Avatar for saneeha.nust

I want to update some record in access data base, but the update command is not updating the table... Insertiion is working fine.. the code is: com = new OleDbCommand("UPDATE ServerAuthorisation SET Permissions=@permission WHERE UserName=@user_name", conn); conn.Open(); if (conn.State == ConnectionState.Open) { com.Parameters.Add("@user_name", OleDbType.Char, 100); com.Parameters.Add("@permission", OleDbType.Char, 100); com.Parameters["@user_name"].Value = …

Software Development
Member Avatar for saneeha.nust
0
171
Member Avatar for biojet

Hi all, I am trying to make the script to find 3 amino acid at the position form the diffirent sequence into the same file data. in put 1: [CODE] Name posi 14067_contig01 18 14067_contig05 8 14067_contig03 26 ....................... [/CODE] in put 2: [CODE]>gi|354512101|gb|AGQQ01000001.1| Corynebacterium glutamicum ATCC 14067 Contig01, whole …

Software Development perl
Member Avatar for biojet
0
312
Member Avatar for Fitchie

I have never used Python before, and unfortunately, this makes me completely ignorant. For this I apologise. I have a Dell Dell Latitude D430 laptop running Mint Katya I am attempting to start up a python script which is used to program 4 servos. I have python 2.7.1-0 as supplied …

Software Development gui os-x python tkinter ubuntu
Member Avatar for Fitchie
0
295
Member Avatar for pwolf

The exercise says the following: """ Pairwise comparision of DNA sequences is a popular technique used in Bioinformatics. It usually involves some scoring scheme to express the degree of similarity. Write a function that compares two DNA sequences based on the following scoring scheme: +1 for a match, +3 for …

Software Development python
Member Avatar for TrustyTony
0
1K
Member Avatar for mehnihma

I have problems with choosing a line and to find a number or times specifif word repeats in that line? Can you help me with that? [CODE]import java.awt.*; import javax.swing.*; import java.awt.event.*; public class DefectInspector { private JFrame frame = new JFrame(); private JPanel p1,p2,p3,p4; private JMenuBar jmb; private JMenu …

Software Development java java-jsp java-swing
Member Avatar for stultuske
0
116
Member Avatar for adil_bashir

hello, i have written the below piece of code for calculating the power function, but when i run the program, it shows the wrong result and i verified it by calculating manually. so please help me to get the correct result. [CODE] public class powerFunction { public static void main(String …

Software Development java
Member Avatar for dantinkakkar
0
168
Member Avatar for bhagawatshinde

Hi Guys, I am developing an windows application which is downloading file from webserver using FTP, my question is can i download file using HTTP. can anybody help me with some source. I am downloading a xml file. Thanks in advance.

Software Development c#
Member Avatar for bhagawatshinde
0
3K
Member Avatar for coxxie

Need some help. My game locks up when you go to load file and it just locks up. Please help. [CODE] /* WumpusGame header file Contains the WumpusGame Class. This is the main workhorse of the program, and contains all of the global data, including the master world map. WumpusGame …

Member Avatar for coxxie
0
3K
Member Avatar for riahc3

Hey I have this code [code] FileUtils.forceDelete(new File(nombreprograma+".zip"); FileUtils.forceDelete(new File(nombreprograma+"/"+nombrebmp+".bmp")); [/code] Deleting the zip inside of the root works perfect but for some reason the BMP inside of a folder, doesnt. The error it gives is that it cannot delete the file, nothing else. Any tips?

Software Development java
Member Avatar for dantinkakkar
0
282
Member Avatar for Sonny101

Hi, I am currently doing a JDBC project where I am manipulating data in a Access DB on a table named empDetail and one of my tasks has got me stumped, considering I only started learning about JDBC yesterday. I hope somebody can give me a bit of direction as …

Software Development java
Member Avatar for dantinkakkar
0
134
Member Avatar for franmaez_0716

My professor told me to put an audio in my program but he did not taught me how to. please help me because i do not have any idea on how to do this thing. i know that you guys are experties so please help me.. tnx alot.. :)

Software Development audio c++
Member Avatar for franmaez_0716
0
2K
Member Avatar for shean1488

Hi everybody Help me please to figure out what's wrong with my code When I try to compile it it gives me an error ClassNotFoundException I have never had such an error befoure, so I don't know what to do.... [CODE]import java.util.LinkedList; import java.util.List; import java.util.ListIterator; public class Example { …

Software Development java
Member Avatar for thines01
0
227
Member Avatar for easygi

I downloaded one type of free code 3 of 9 font but the barcode scanner doesn't read it and the other fonts that I downloaded are not compatible to the crystal report and it says "True Fonts only"(not exact but just like that)

Software Development vb.net
Member Avatar for easygi
0
191

The End.