64,152 Solved Topics
Remove Filter ![]() | |
I have this code that searches for a set of numbers in my textfile. When it finds those numbers I want it to print what's on column 5 to 12 in the same line. Is this possible to do? I've been looking for an answer for ages now, and I … | |
Why this Error may happend? I have to readjust huge application and I need the most supposed possibilities which make this kind of error. | |
What's the the difference if I were to use "this.x=y" instead of just "x=y"? All I know is that this refers to the object created from the class. Also what's the difference if I were to use "this.method()" as compared to creating a new class like so, "Class cs = … | |
I WAS WONDERING IF SOMEONE COULD HELP ME WITH MAKING A CODE FOR THIS TYPE OF WINDOWS APP PROGRAM. [URL=http://img692.imageshack.us/i/90497460.png/]CLICK HERE[/URL] | |
Hello, pls can anybody help me to break following string? example: output is 000 (type str) an I need to get [0,0,0] here is a script: [CODE]def test(n_input): bin_n=2 r=bin_n**n_input ## print r for x in range(r): ## print bin(x) f=str(bin(x))[2:].zfill(n_input) # x is type int, f is type str … | |
Hello, I have I program that makes text turn into int32. I would like to convert the int32 (int32 is inside the text box) to text. Any ideas? Nothing on google. | |
![]() | Hi, Yesterday I downloaded and extracted ActiveMQ and ran the consumer/producer example and it worked. Today I did the exact same thing but I get the following feedback: [CODE] C:\Java\apache-activemq-5.3.2\example>ant consumer Buildfile: C:\Java\apache-activemq-5.3.2\example\build.xml init: compile: [javac] C:\Java\apache-activemq-5.3.2\example\build.xml:146: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable … ![]() |
Hello, I have a xml file which has 106 books.. I xsl tranformed it and here: [CODE]<xsl:value-of select=" bioghist/bioghist/chronlist/chronitem/date"/> [/CODE] is the date every book was created with that format: ddmmyyyy how can i add slashes? and make it like that dd/mm/yyyy ?? thanks in advance :) | |
I made this code and i dont know what to do with my warning in calling function calc() inside the function getOption(). What should i do? need some little help here. [CODE]#include<stdio.h> void getOption(); void getData(int *num1, int *num2); void calc(int option, int num1, int num2); float add(int num1, int … | |
I have created a vb application that uses "shell" to run another vb application that uses a webbrowser to navigate to a web site and then sign in to the site and collect information for use in the original application. I built the browser application to execute the navigation automatically … | |
Hi all, I am trying to work an an array , by storing them in a txt file so I can process it. I tried several ways for storing the key and value in a text file, but it does not work [CODE] $diff = array_diff($array1, $array2); $myFile = "1.txt"; … ![]() | |
i am not able to write anti virus as filter driver can any one help me to write it in c#. | |
[CODE]SqlConnection connection = new SqlConnection(); connection.ConnectionString = "Data Source = kumar\\SQLEXPRESS; Initial Catalog = phonebook; Integrated Security = TRUE"; connection.Open(); SqlCommand cmd = new SqlCommand("Select * From contacts", connection); SqlDataAdapter adp = new SqlDataAdapter(cmd); DataSet ds = new DataSet(); adp.Fill(ds, "contacts"); comboBox1.DataSource = ds.Tables["contacts"]; comboBox1.ValueMember = "phone"; comboBox1.DisplayMember = "name"; … | |
while scanning string we won't use ambers '&' why?? | |
how can i move images? and then if the image i move is not equal to the other image it returns back to its place?thanks.! | |
hi i have a question about C++. if anybody could pplease help me out id highly appreciate it. this is what i am trying to do and honestly I have no idea how to do it or how to go about it: Write a C++ program that does the following. … | |
just an idea ...im not a programmer yet starting college aug. c++ and java both have complex syntax and i cant learn on my own, python is good but not supported aswell and basic is really basic any more thanks to object oriented stuff English the programming and scripting language … | |
Ok, I am working on a website which will accept uploads and in an iFrame next to the upload form display a list of files in the upload folder. The iFrame will be showing a php script that is listing the files. Here is where the problem is, I can … | |
Hello all, Got a small problem I'm trying to figure out an obscure error (to me). What I'm trying to do is implement error handling with a loop count within a while statement for two sets of Menus in my Hangman game. Perhaps you all can lend me hand in … | |
hi., there is a parent page and child page . when i click parent page button it should go to child page and take values from there and return to preivous page its not working :( parent page: public class Default : Page { protected TextBox txtFirstName; protected TextBox txtLastName; … | |
hello guys and hope you are fine :) please take a look to this code [CODE]#include <iostream> using namespace std; int sum(int num1,int num2, int sum1){ cout <<"Please enter two numbers:"; cin >> num1 >> num2; sum1 = num1 + num2; cout << sum1; return 0; } int div(int num3,int … | |
Hello all, I'll try to explain what I'm wanting to do the best way I can. I have an event_results table that contains multiple athlete id's and for each athlete they are tied to an event in the same table. The screen shots should help explain. I also created a … | |
I need a function which can take in a variety of time formats like "05/26/1999" and "02/14/2010 12:44" and convert them into this format: May-26 or Feb-14. I've tried to do this, but without success. Here's the code I tried (with some prints included for debugging purposes): [CODE] #Function for … | |
I need to do CSV parsing and I was wondering if this is possible with python and where I should go to learn how to code this script or get help. Let's say I have a CSV file with 20 rows and 4 columns. I need to: -Strip out the … | |
Hey everyone, I have a label that gets data from a database and uses that as the .Text field. I want to compare this .Text field with an integer value, but I can't convert the text. The value I'm trying to convert to integer is "25,000". Here's what I've tried: … | |
Hi, Long time lurker, first time poster! Basically here is my assignment, number 3 [url]http://books.google.com/books?id=20xVrpISzoYC&lpg=PA27&ots=llLlOPBIRL&dq=cout%20%3C%3C%20%22this%20is%20Exercise%2016.%22%3C%3C%20endl%3B%20%20%20%20cout%20%3C%3C%20%22In%20C%2B%2B%2C%20the%20multiplication&pg=PA638#v=onepage&q&f=false[/url] and so far here is what I got, and I really am stuck on this, if you can help would be great: [CODE]#include <iostream> #include <string> #include <iomanip> #include <list> using namespace std; struct menuItemType … | |
hello mods!! i am a newbie in jsp and just wanted to ask a basic question! i have a small jsp code for displaying the date and time. i have tomcat6 and apache web server installed on my linux machine(using fedora 12). can somebody plzz tell me how to run … | |
I have an application that loops through files and moves them to their respective folder. if a file already exists in a folder, I need to append a letter to the filename: myfilehere.txt will become myfilehere_a.txt and if it comes in again, myfilehere_b.txt the error is on the increment. nothing … | |
Is there a way to create a certain number of double variables based on user input. For example a user has three cars so when asked by the software how many vehicles he has and he enters the number 3 my software will create 3 double variables named car01, car02, … | |
I made a form with only 1 Button. I want that when i click that button, 2 more buttons should be appeared. Example: Button1 is clicked. Button2 and Button3 are displayed. I have named Button1 as Scan. When i click on Scan, the Button2(Pause) and Button3(Stop) should be displayed. When … | |
I have another string dilemma. I am asked to write a program that counts the number of words in a sentence entered by the user. This is what I have right now, although I don't think that it is anywhere near being correct: [code] import string def main(): print "This … | |
Hey everyone, I'm not sure where I should be posting this - if a mod finds a more appropriate form, feel free to move it. I'm trying to figure out how to not only require .Net 4.0 with my installation package, but in the case 4.0 isn't installed already have … | |
Here is a program to find the sum of n numbers entered .. I have done this programme in c++ but now I was asked to do it using c.. there is some error with the program.The basic array input ,display thing itself is not working.. Kindly help me .. … | |
Hi..!! i have created a Customer Details form in C# asking detail about customer...One of its field asks for customer email.. Please tell me how to validate a email id..Thnx..!! | |
Hi, I am using a FILE to write a protocol of the program execution which I will be using in case of crashes. Whenever I write a message to the file I open it [CODE] if ((mfdprot = fopen(protfile, "a")) == NULL) { [/CODE] after that I close it: [CODE] … | |
Hello all, I have a question. You see i have a file which contains data in this format: index 388.315813 index 311.214286 syndrome 289.708333 factor 184.246753 loss 168.578313 index 451.123455 factor 321.676544 What i want to do is to read every line and print it. However if i encounter the … | |
Ok. I have ZERO PHP Knowledge, still good in editing php and all that stuff. Only know copy paste and have no knowledge what that means. Still would try to explain my problem. I use variable to fetch data from mysql. Ex. my url is [url]http://www.example.com/venue.php?vcity=New[/url] York. Now, I want … | |
[CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication8 { public partial class Form1 : Form { double deger1; double deger2; char isaret; public Form1() { InitializeComponent(); } private void button_1_Click(object sender, EventArgs e) { string a = ("1"); textBox1.AppendText(a); } … | |
i pass this to a div innerhtml from javascript. when i do it like this it doesn't work. it should display an image hyperlink [code]var newtext4=("<a href=" + number + "><img src=" + newtext2 + " /></a>");[/code] if i do just text, it displays a hyperlink. [code]var newtext4=("<a href=" + … | |
Hi Iam very begginer I want to use the script named lavaLamp from here [url]http://www.gmarwaha.com/blog/2007/08/23/lavalamp-for-jquery-lovers/?cp=all[/url] ) but I donn't know how I can use it I try to change the <li class="current">[B]<a href="#">Home[/B]</a></li> tag to the <li class="current">[B]<a href="http://google.com">Home</[/B]a></li> but it doesnt work please help me [CODE] <h3>With Image</h3> <ul … | |
I have a text file in this format: AUGC U[B]1212[/B] A[B]2121[/B] G[B]3434[/B] C[B]4343[/B] I need to extract the number that I need depending on which variables (letters) I'm comparing. For example, I need the value for A and U, so the value I need to look up for or extract … | |
Hi I am tryibg to check for presance of a string in a big string. I tried as follows: [CODE]IS_VECTOR_TEST_CASE=`grep AIV "$PWD"` if [ "$IS_VECTOR_TEST_CASES" = "" ] then #do something else #do something fi[/CODE] This always giving me as if [ "$IS_VECTOR_TEST_CASES" = "" ] is true with following … | |
I'm calling a GUID with a system function and trying to insert it into a database as a primary key. i'm using vb 2010 .net framework with sqlce server making my datatables. the column is AutoNumber which i set up to be a uniqueidentifier. the length is not adjustable and … | |
Can someone please advise what I may be missing? How can I not only make it better, but this does not seem to be working, although 1 domain instance has worked for some time, I tried adding to it: [CODE] if(document.form1.email.value.length > 0) { var theEmail = document.form1.email; var at … | |
Hello ladies and gents, Had to make the following exercise in Accelerated C++ Write a program to calculate the average of the numbers stored in a vector<double>. THis was my solution: [code] #include <iostream> #include <iomanip> #include <vector> using std::cin; using std::istream; using std::cout; using std::setprecision; using std::endl; using std::vector; … | |
hello can you help me how can i count the element in array heres my code [CODE] int [] num = new int [10]; int i; System.out.print("Please input 10 numbers"); for(i=1;i<=10;i++) { num[i]= console.nextInt(); System.out.print(" " + num[i]); } System.out.print("\n"); System.out.print("The elements are"); for(i=1;i<=10;i++) { System.out.print("The elements are: " + … | |
Hello, I try to generate output (all posibilities) for logical AND. Nb inputs is 10 and that means there are 1024 combination. example: n i1 i2 i3 i4 i5 i6 i7 i8 i9 i10 output 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 … | |
hello can you help me please what is the string method to be use when searching a keyword that can be found in first, middle, end of the word... example "CH" this will search all names having this "CH"...can you help me what is the string method to use this...hoping … | |
Hi, I am trying to get money to display correctly with the decimal points in the right place. I have read the PHP manual, but just don't get it. I want to do 2 things: 1: if someone types in 123.23 -> I want to remove the '.' (so it … | |
Forgive my ignorance with such matters, but I have what is probably a simple issue that I can't seem to resolve on my own. I'm getting this error when sending a request to the SOAP server [CODE]org.xml.sax.SAXParseException: Content is not allowed in trailing section.[/CODE] I've checked the end of all … |
The End.