132,729 Archived Topics
Remove Filter ![]() | |
Hi, I'm trying to use regular expressions on a log file and am trying to extract search terms. Each line in the file is of the form: [CODE]mystring = "00:00:11 192.168.21.44 GET /images/help.gif - 200 Mozilla/4.0+(compatible;+MSIE+5.0;+Windows+98;+DigExt) ASPSESSIONIDGGGGGQEG=CLDIHIJBJAPFAGBFIOMCFGGA;+PRO%5FOnline=SEARCHQUERY=%09%3Cinput+type%3Dhidden+name%3D%27HrowColumns%27+ID%3D%27HrowColumns%27++value%3D%271%3B6%27%3E%0D%0A%09%3Cinput+type%3Dhidden+name%3D%27txtScopeData10%27+ID%3D%27txtScopeData10%27++value%3D%27[COLOR="Red"]catherine[/COLOR]%27%3E%0D%0A%09%3Cinput+type%3Dhidden+name%3D%27txtScopeData30%27+ID%3D%27txtScopeData30%27++value%3D%27[COLOR="Red"]porter[/COLOR]%27%3E%0D%0A%09%3Cinput+type%3Dhidden+name%3D%27txtScopeData50%27+ID%3D%27txtScopeData50%27++value%3D%27%27%3E%0D%0A%09%3Cinput+type%3Dhidden+name%3D%27txtScopeData11%27+ID%3D%27txtScopeData11%27++value%3D%27%27%3E%0D%0A%09%3Cinput+type%3Dhidden+name%3D%27txtScopeData31%27+ID%3D%27txtScopeData31%27++value%3D%27%27%3E%0D%0A%09%3Cinput+type%3Dhidden+name%3D%27txtScopeData51%27+ID%3D%27txtScopeData51%27++value%3D%27%27%3E%0D%0A%09%3Cinput+type%3Dhidden+name%3D%27HCollection%5Fid%27+ID%3D%27HCollection%5Fid%27++value%3D%271%27%3E%0D%0A%09%3Cinput+type%3Dhidden+name%3D%27Submit1%2Ex%27+ID%3D%27Submit1%2Ex%27++value%3D%2736%27%3E%0D%0A%09%3Cinput+type%3Dhidden+name%3D%27Submit1%2Ey%27+ID%3D%27Submit1%2Ey%27++value%3D%2718%27%3E%0D%0A http://www.foo-bar.com/SearchResult.asp"[/CODE] I have put the search terms that I'm trying to extract above … | |
Hi I am trying to make a nursery registration form for an assignment at uni and have hit a stumbling block. I have written the functions but dont really know what to declare them as. Could anyone help. [CODE]#include <cstdlib> #include <iostream> #include <fstream> using namespace std; int menu(); //creating … | |
Hey, I'm wondering if this is possible. I store customers in an array: [code] string customer[10]; customer[1] = "Phil"; [/code] But I have a menu, that has things like [INDENT]1. Display customers 2. Add customers[/INDENT] The thing I want to do is not show the 'Display customers' if there has … Software Development c++ | |
hi every one this is the Project requirements i did the first three things but i have problme with number 4 You are hired by an electronics company aiming to build microwaves. You are asked to develop an application that simulates the work of these microwaves. Consider the following specifications: … Software Development c++ | |
Hi could any body help me out fixing this code . Because when I compile it I got an error, I've tried to solve it, but unfortunately I could't . Here is the java code : import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.io.*; class MyPad extends JFrame implements ActionListener, … Software Development java java-swing window-manager | |
hi! i have to connect a thumb imression device with my project for attendence of students. how can i capture an impression & compare it? can anybody help? it's urgent.. Software Development visual-basic | |
Hi again, I have a class that is supposed to match different people of different genders together under different rules. For example, they are supposed to live in the same postal district. The problem is Java seems to be mismatching people, and I think its because it isn't comparing the … Software Development java | |
I am trying to find the best cmplier for the C++ program. All answer will accepted. Software Development c++ | |
Hi, At the moment my program holds a list video titles in a doubly linked list. When the user wants to save the list to file it is converted to an array then saved onto file. But the problem starts when i want to delete from the list. Say for … Software Development file-system java linked-list | |
[CODE] FileReader readKGN = new FileReader("KGNLibrary.txt"); int KGNLib = readKGN.read(); readKGN.close();[/CODE] i dunwan read it as int.. because i wan use it on IF, so i need it to compare wat i input string item into text area with text file inside string item. [CODE] if (POS[i].equals(KGNLib)) { jTextArea2.append((POS[i] + … Software Development java | |
hi.. so basically my program works like this.....first frame > buttons > another frame > more buttons > lead to another frame ... but a few problems are preventing me from doing this. p.s. I don't want to use the cardlayout because I want my buttons like a column, and … | |
Hi... I'm trying to study graphs but I cant find a good tutorial on it. I googled it, but couldn't find what I needed. Can you please suggest me a good tutorial on graphs in c++. I am basically looking for how a graph class is implemented in c++, an … Software Development c++ | |
Hello, I get a out of memory error on line 4: [CODE]int isDeleted = 0; PreparedStatement psDeleteRecord=null; try { psDeleteRecord=con.prepareStatement(delQuery); isDeleted = psDeleteRecord.executeUpdate(); if(isDeleted !=1){ echoLog("Could not Delete: " + delQuery); } else { numDel++; } } catch (SQLException s) { echoLog("Failed: " + delQuery); s.printStackTrace(); }[/CODE] This block of … Software Development java | |
How to customise the paper size to 6 inch by 10 inch I tried the following, giving problem printer.height = 600 printer.width = 15100 while running it will eject full sheet of a4 after printing Kindly help me to solve this problem (any code example is better) Software Development printer visual-basic | |
please correct this------the desired output is in the bottom [CODE] #include <iostream> #include <ctime> #include <cstdlib> using namespace std; int main() { int randomNumber=0; int guess = 0; int balance=100; int amount=0; int bet=0; double balanceLeft; cout<<" Guessing Game:"<<endl; cout<<"Written by coolfriend:"<<endl; do { cout<<"Please enter your bet$100.00):"<<endl; cin >>bet; … Software Development c++ | |
hello everyone, Output is coming not equal for same input.what is the error in this program? import java.util.*; class newobj_equal { public static void main(String[] args) { int eid; String ename; double salary; Scanner sin=new Scanner(System.in); System.out.println("Enter eid");z eid=sin.nextInt(); System.out.println("Enter ename"); ename=sin.next(); System.out.println("Enter salary"); salary=sin.nextDouble(); emp e1=new emp(); e1.accept(eid,ename,salary); e1.display(); … Software Development java | |
This simple code is producing weird output. I write a line and press enter, it echo's the line...well, supposed to...Because, sometimes, it is not showing. In code blocks, i can assume that when the program is returning zero the program is terminating correctly. I tried to figure out, when it … Software Development c | |
Hi All, I am new with the send keys in VBA. Basically I'd like to send a bunch of sendkeys. I don't have problem with the synthax but the problem is that excel only execute the 1st sendkeys I have written. [CODE]Sub test() SendKeys ("^+F") Wait SendKeys ("^+L") End Sub[/CODE] … Software Development visual-basic | |
hi everyone, i m messed up with intializer lis. please help me by solving these questions. [QUOTE]How does compiler impliments intializer lits? How intializer lits improve performence? When it is must to use intializer lits? When intializer lits must not be used?[/QUOTE] What is wrong with this pice of code.. … Software Development c++ | |
G'day all, I'm currently a little stuck with my application. The strings i'm working with are a filepath and then a filename, what I want is to compare the filename with the filepath and then output the directory that most matches with the filename. My current code below works like … Software Development | |
i have this part of my link list program [CODE]template <class E> LinkedList<E>::node * LinkedList<E>::getNode{ ... ... }(const E &item) [/CODE] and my compiler, bloodshed dev c++, says expected constructor, destructor, or type conversion before "*" token expected ";" before "*" token i don't think there is an syntax error … Software Development c++ | |
hello can you please help me on how to make the loading bar in java can you make this code..i have a program and i want to put a loading bar ..thanks in advance hoping for your positive responds. Software Development java | |
i've written a game board currently but its minimal. i draw the board and then i've added two labels that i've postiioned off to the right side with setlocation. I dont know that set location will work as i add more controls so i'm looking for a better way. currently … Software Development java | |
heya.. i wanted to ask if there was a way to give a pointer to a multidimensional array of, say, ints, as a function argument. i tried a somewhat natural approach, which seems to have failed.. i'm no expert at stuff like that, so i tried: [CODE] int numbers[ 10 … Software Development c++ | |
i have created executable jar file for my program pedit.java as follows jar cvfm pedit.jar manifest.txt images *.class splash.gif where images is a directory where the icons for toolbar are there,as my program is a editor... my problem is that when i run the jar file the application is loaded … Software Development java | |
Hi to everyone, i am wondering which language (java or c#) can create more robust and scalable application including stuffs such as multiprocessing, multithreading, and of course speed???? Thanks, in advance!!! Software Development c# java multithreading | |
Hey guys, I have a already written package in python2.5.1 for windows,it includes wxpython biopython1.44 modules and now i want to transfer it to unix server,is there any way i can do that or i have to write that functions again...\ Thanks in advance Prankyrules | |
Hi there i am new at OOP and i want learn about it. I start with the book how to think like a computer scientist but at the ending chapters i get lost .... Can some one advice me a good book that covers OOP ?with good examples,diagrams e.t.c. | |
Hello. I would like to open and read OO Writer. I used the script: [file = open('myfile.odt', 'r'] [lines = file.readlines()] [file.close()] [for i in lines: print i] I get some strange characters. I had write 'rb', instead 'r', but it did not work. I have copied a ODT file … Software Development python | |
Alright guys so I have a little problem with a nested list. so here is my list: [code=python] a = [[1,2,3], [4,5,6], [7,8,9]] #I know that I can do for example a[0][0] and that will return the first value in the first nested list but I don't know how to … Software Development python | |
[code] String filename = jfr.getTitle(); File fname = new File(filename); System.out.println(filename); if(filename.equals("untitled")) { System.out.println(filename); return; } else { System.out.println(filename+"+"); } [/code] when i run the above code though the filename is "untitled",the statements under both if and else are been executed... is there any wrong in it?? Software Development java | |
Hi, My code requires to send an email to list of people that satisfy certain conditions. This email will in turn have a hyperlink to open another email,with subject and body pre populated. When I try creating this hyperlink, i want the code to be hidden ie. i want to … | |
Hi I must to do a program capable to order a vector of integers, and calculate the mean and median values of the vector. Also the vector integers is initialized and has a fixed size of 20 elements, and the output data be made to the monitor. This is for … Software Development assembly | |
Hey, I'm trying to make a program restart if a function (in this case playAgain) is true. Is there a simple way to do this? Here's the end of my program: [CODE=python]theGame() if playAgain() == True: else: quit()[/CODE] Software Development python | |
I am writing a C program that requires me to use a dynamically allocated struct which is defined as below. [CODE]typedef struct 513 { 514 char* word; 515 int freq; 516 }wordfreq;[/CODE] When I allocate the word field of this struct, I am allocating this dynamically as well (using strdup). … Software Development c | |
Hey guys... i am trying to view contents of a text file to a textbox via aid of a button (ViewBtn). i have a treeview(TreeView1) which shows the root folder and displays content in the listview. my query is how do i select a file from listview (ListView1) and display … | |
I have a little program that goes to news aggregater's, gets the hrefs, and returns in a window. I want to have multiple windows open if multiple sites are choosen, right now, it will only go to the first one in a list, and completes perfectly. I assume I am … Software Development python | |
I am using line function to draw line in the picturebox from the x1,y1 to x2,y2. I can draw it, but I also want to write a string on top of the line. My application is drawing a cable across with corresponded voltage, Something like 110 ------------------------------------------- but the line … Software Development visual-basic | |
Hi, Simple but driving me nuts. I am trying to create a table of pointers to already defined structures. But I can't find correct directions and I'm not used to this so HELP pliz! I managed to do it for functions, for some reason I can't find how to do … | |
Dear friends! Can anyone tell me how can I connect an additional data query I created inside the tableadapter (inside dataset-editor) to a combo box list? So I will actually see the data in list. I managed to create a query inside tableadapter, which only contains data from one column … Software Development dataset visual-basic visual-studio | |
How can i extract the information as below from the input file and then show it in the messagebox? and can i show it as center alignment? Adjustment Statistical Summary ============================== Convergence Iterations = 2 Number of Stations = 36 Number of Observations = 128 Number of Unknowns = 70 … | |
[CODE] //Encryption/decryption program that encrypts or decrypts //user input as a string. #include <iostream> #include <string> using namespace std; string encrypt(string text, string message); string decrypt(string text, string message); char choice; int main() { //Ask user to encrypt or decrypt cout << "Would you like to encrypt or decrypt?" << … Software Development c++ encryption | |
sooo i finally got the new "pop up" frame after a button is clicked. so than after the user clicks the button and new frame pops up i try to add some stuff and buttons to that new frame.. but it doesn't show. it's just a black frame. I don't … Software Development gui java java-swing | |
what is the return type of new and delete operators?.. Software Development c++ | |
hi all, sorry i am posting on top of this mail i have a problem see one xml file look like <my-app> <name></name> <!--<class></class>--> </my-app> i want to uncomment the commented part through xslt. please help me thanks in advance Software Development xml | |
hi, I am creating a ThreadPool. I know that thread pool is collection of [B]live threads[/B]. Its main purpose is to assign task to any of available thread. I am not going through any complex tutorial available on net. So I am just creating threadpool by my own. For this … Software Development c++ | |
I have an Excel workbook containing named variables across several worksheets. In one of these worksheets I have a "run solver" button, which kicks off a VBA routine. The first thing this routine does is allocate values of variables picked up from the workbook to local variables inside the VBA … Software Development microsoft-office visual-basic | |
Hi All.. I am using MsFlexGrid in my program.. normally after I double click, enter value, KillFocus then press OK to close the dialog.. now I would like to add a message box once I enter value. Then I found out that, after message box prompt out and I click … Software Development c++ | |
So I am new to C#, and I am trying to to figure out what the problem is with my code. I know this works in VB.Net just not sure why it doesn't in C# [CODE] private Connection myConnection = new Connection(); private SqlConnection mySqlConnection = new SqlConnection(myConnection.connectionString); [/CODE] I … Software Development vb.net |
The End.