199,114 Archived Topics
Remove Filter ![]() | |
Could you explain me how to build web service in eclipse? | |
![]() | I've got this code that read in a text file into a string [code=c]private void Read(string path) { StreamReader sr = new StreamReader(path); data = sr.ReadToEnd(); data = data.ToUpper(); sr.Close(); }[/code] it works all right with a small text file, say 1kb. But when I tried to read a 350KB … |
[code] using System; using System.Reflection; using System.Diagnostics; using System.IO; namespace VersionExe { class Program { public static void Main(string[] args) { int i; // Get the file version for the notepad. FileVersionInfo.GetVersionInfo(Path.Combine(Environment.SystemDirectory, "notepad.exe")); FileVersionInfo myFileVersionInfo = FileVersionInfo.GetVersionInfo(Environment.SystemDirectory + "\\notepad.exe"); // Print the file name and version number. Console.WriteLine("File: " + … | |
Hey Guys and Gals, I'm stuck on a little project im doing myself at home,I need to randomly pick an element from an array and I can only use that element three times,I can randomly pick the element but how do I go about only using it three times,if any … | |
i m searching a record from database. and it contain more than 10lac records. it take lot of time and some times mysql got crashed. how i can reduce searching time..?? does xml will be helpful in this case.? | |
I need to validate three image fields with javascript so the user cant upload anything else expect files with image extensions. A i also need to control the size of the image, for example to restrict user uploading files with greater size than 1MB. Does this thing can be done? … | |
Hi Friends I have about 10 hour recorded sound and now i need when user click in one button from that sound minutes of 6:45 play and then after 5 second it stops how i can do it(not from at the beginnig i want it start from 6:45 reapet not … | |
| |
I am using Visual Basic 2008. I am trying to create a web page. I can't seem to get the labels, controls, etc. to let me place them where I want them on the page. I found several articles that suggest to make sure document shows in property window then … | |
how to upload photos used in registration form | |
Hi, I have [code] SessionData sdc = new SessionData(); [/code] And all the properties of sdc are stored in a table in sql server. I want to retrieve the properties of the sdc dynamically. And i know [code] sdc. reader1["xmlname"]= [/code] is a wrong way of doing it. So can … | |
Hi everyone. We were given a homework to code a hash table. The objects and their members were given by our professor and we were only supposed to implement the functions (Add, Remove, Contains and Print), so I shouldn't change the objects. I should also do a copy constructor and … | |
Hello I have write a simple code just to test about BeginInvoke and EndInvoke methods but i don't get anything. The form has 2 buttons and 2 labels .. if you press the button1 label1 gets increase and so on . here what i have do so far [CODE] Public … | |
Hi there, ive been comin here for about a month glancing at forum posts and the practice thread.. I have been self teaching myself C++ for a few months, and it was pretty challenging at first, my biggest problem is memorization.. so anyways... i was wondering if anyone could help … | |
how can we access a global variable defined in xxx.asax file in asp.net | |
Hello I want to implement this function: boolean check(String str,String exp) that gets a string, and an expression and see if it mathches. But (!), according to a format by '*' (maybe similar to the SQL LIKE statement, but with * instead of %). Examples of tests of this function … | |
Hello .. :) Im on ma way completing my C# project,, but i have a small issue .. let me tell you what it is /// since its complicated to send the whole image to a db i only the send the image name to the database ( table ) … | |
hi all, i m new to sharepoint pls help - Any idea about the Sharepoint Databse structure ? I am using SqlServer 2005 with .NET, Sharepoint How to access my database? where is connection file in sharepoint ? | |
i want to convert string into byte....this can be done in vb.net..can somebody help me in doing this in vb6.0..here the simple code.. Private Sub Form_Load() Dim str1 As String Dim i As Byte i = CByte(Val(str1)) Text1.Text = i End Sub but this code still not able to convert … | |
JAVA SCRIPT CODE [CODE] function NumbrOnly() { if(event.KeyCode==45 || event.KeyCode==46 || event.KeyCode==48 || event.KeyCode==49 || event.KeyCode==50 || event.KeyCode==51 || event.KeyCode==52 || event.KeyCode==53 || event.KeyCode==54 || event.KeyCode==55 || event.KeyCode==56 || event.KeyCode==57) { event.retunValue=false; } <asp:TextBox ID="TextBox3" onkeypress="NumberOnly('TextBox3')" runat="server"></asp:TextBox> [/CODE] WHAT IAM MISSIGN AND WHEN I WRITE event. then after 'dot' it … | |
Hi, I have a file in C which has many lines. I want to store each line separately so that i can reference it later with a char *host. How can i do that? Thanks. | |
Regarding the title, i want to know the exact way to writing text data to a text file on a web server using http connection in J2ME. I tried the way as below: OutputConnection connection=)OutputConnection)Connector.open("http://localhost/message.txt;append=true",Connector.WRITE); OutputStream out=connection.openOutputStream(); PrintStream output=new PrintStream(out); output.println("Testing"); out.close(); the codes have no problem and no exception. … | |
Hi guys, I gat a VB project for a hospital information management system, almost in completion. The issue is that, i want it to collect information from the user installing it. Information like maybe the database name, etc and the likes, you know relevant information necessary for the program to … | |
how does the propositional logic and set theory support computing? answer for me this question. | |
Hey guys, I've been looking around the web but can't find a definite answer for this one. I have a program I'm making and I want to cut down my lines by using an array and just have it create my lines for me. I have this set up [code] … | |
[code] import java.util.*; public class Homework11 { Scanner input = new Scanner(new File("keyvalues.txt")); Map<String, Integer> wordCountMap = getCountMap(in); for (String word: wordCountMap.keySet()) { int count = wordCountMap.get(word); while (input.hasNextLine()) { line = input.nextLine(); numLine++; Scanner word = new Scanner(line); while (word.hasNext()){ String nextWord = word.next(); numWord++; numChar = numChar + … | |
Hi, I am trying to parse an xml which i am getting in a variable in my xsl. till the time i do not have any namespace in my xml i can parse all the tags of my xml from my xsl, however, for any tag with a namespace i … | |
Hello there. It's me again. I think I got most of the Pseudorandom code fixed but there's a problem. [CODE]// Name: Wesley Montgomery // Assignment 1 (Pseudorandom Class) // CS 211 (5:30 PM-7:40 PM) // Craig Niiyama // This class creates a Pseudorandom Number as well as returns the number … | |
Hi, I have a very big vb6 project file with about 16 form modules, 3 class modules and 3 global modules. I want this to be converted into a exe file so that it could run in any system as a stand alone. I tried the make projectname.exe present in … | |
hi! gud day! Here is my problem. Can you help me on how to make a monthly report?? im doing a Payment System of a school here in our place. as our Project. and can you help me on how to hide columns and rows of a datagrid also how … | |
I'm an extreme beginner with Python (this game is the first time I have ever seen it) so please bear with me. Creating a simple dice game. Place a bet. Three dice are rolled, if any are the same value you lose. If you win, you get double your bet. … | |
I got the first part of my code from my teacher, its how the function should be done, I am just have trouble with what to put for my cin statments as, none of them work. Please help. [CODE]#include <iostream> using namespace std; void reverse(int* a, int n) { int* … | |
I have looked around on this forum and none of the past posts really addressed my issue. I created a .txt file with cust no first and last name. I open the file and read in the first line of the file, this part works well. And it displays to … | |
Hi All, This is the first time I'm working with FTP functions in PHP. I have to create a link to send a [B].sql[/B] file to another server using its' FTP logins. I used ftp_put() function in the following way [CODE]ftp_put($connection, $file_name_1, $file_name_2, FTP_ASCII);[/CODE] It works perfectly in my [B]localhost[/B]. … | |
I am asking this as general question first because I am not sure that what I am trying to do is even possible. I am using Dreamweaver 8. I have created a php page that accesses a mySQL database to include information from just one record on a form. Through … | |
Hello everyone. I am working on my lab assignment and am somewhat stuck on how to proceed. We are studying using the book [I]Starting out with C++: From Control Structures through Objects[/I] by Gaddis. The lab assignment is as stated: [QUOTE]NamesOf1980s.txt is a text file from the SSA detailing the … | |
I have a Photoalbum class and a Photo class. The Photoalbum class obviously holds a bunch of photos in an array. Each photo has a subject, location, date, and path. I need to make a method to search for a a photo with a certain String path. I tried: [code] … | |
This is due within a few hours, and I am unable to spot what is causing the program to not work. Any suggestions? ["""Bounce - is a game that has a ball which increases in speed when you click on the ball. That click signals the ball to speed up, … | |
i need library system coding using vb[code]I need library sytem codings. can anyone help me out in this problem.[/code] | |
I"m trying to make a [URL="en.wikipedia.org/wiki/Sudoku"]sudoku[/URL] puzzle generator (or at least the basics of one) for my project. I'm approaching this by dividing the sudoku grid into 9 rows. Each of the rows will be represented by a list and each list will have 9 elements to represent the nine … | |
I'm having troubles with a code for a program (involving classes) where I am supposed to input the three sides of a triangle and the program determines whether the triangle is a right triangle, equilateral, isosceles, and scalene, etc. I have only one error preventing me from compiling my program, … | |
[CODE] maxDays = calendar.getActualMaximum(calendar.DAY_OF_MONTH); System.out.println(maxDays); [/CODE] When looking through the javadocs it seems like this would work but it apparently doesn't. Any help on figuring why it doesn't or another way would be appreciated | |
Greetings community, I've exhausted all ideas and patience and turn to the community at large for help. I have data formatted as an ASCII text file with easting, northing, and depth fields. I've attempted an arrayList with some success, but there has to be a better and more efficient approach. … | |
Hello, I just started trying to learn c++ a few days ago. Right now I have run into probems, which, has always happened when I try to learn a programming language. Can anyone help me fix this simple multiplication program? [CODE]#include <iostream> int Multiply27( first, second) { cout << "in … | |
[CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #define TRAINING_LIST "./rc/training.list" #define TRAINING_FILE "./training_set/%s" #define TEST_PATH "./test_set/%s" #define PREDICTION_FILE "./prediction.txt" #define FEATURE_FILE "./feat/features.txt" #define MAX_RATINGS 100480508 // Ratings in entire training set (+1) #define MAX_CUSTOMERS 480190 // Customers in the entire training set (+1) #define MAX_MOVIES 17771 // Movies in … | |
I'm getting errors at every occurrence of my void definitions. "expected primary-expression before "void"" and "expected ';' before "void"" at my "void displayMenu ()" "a function-definition is not allowed here before '{" token" "expected ',' or ';' before '{' token' " At every future occurrence of void. Any ideas? I've … | |
Hello,.. Im a New Guy to this forum and 1st of all;... Hi :twisted: im a newbie to c# programming as well ,,, anyway.. i have a huge issue .. here is what s going to happen.. [CODE] if (txtPath.Text != "") { FileInfo fn = new FileInfo(txtPath.Text); string p … | |
I'm working (well have been for the past few weeks) on a polynomial class to do different things between two polynomials: multiply, divide, get remainder, subtract, add. The coefficients are stored in a pointer to an array listed under private and the degree (also the amount of slots in the … | |
Hi folks. I have a text file with a thousands of rows of numbers in it. For example: 1 2 4 6 11 13 19 21 66 97 101 ........ 1 3 9 12 18 26 44 56 98 113...... ........... ...... What I want to do is find the … | |
Hi I am Making a horse racing application .... and the concept is when you enter a number in the textfield and select a horse(one of the 8 jButtons) the application will randomly select one of the JButtons and if the Jbutton is the same as the one selected by … |
The End.