132,726 Archived Topics
Remove Filter ![]() | |
Hi all, First-timer and first post. I have been given a task of convert large data files to/from a self-defined format. In the "xml" form, the format for each record is: [CODE] <power> <name> </name> <level> </level> <kind> </kind> <source> </source> <flavor> </flavor> <type> </type> <keywords> </keywords> <action> </action> <attackTypeAndRange> … Software Development data-structure open-source python xml | |
[code] if(!getEmail().matches("^[a-zA-Z][\\w\\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\\w\\.-]*[a-zA-Z0-9]\\.[a-zA-Z][a-zA-Z\\.]*[a-zA-Z]$")) { errors.add("name",new ActionMessage("email.invalid)); } [/code] Do not FULLY understand the characters starting from '^' .... Software Development java | |
so i have created a program, im not sure how to change gui screens, for example, the first screen is username/password on the opening scree, and than it will move onto the next screen where i can input data when i have enterd password correctly. cheers | |
I need 2 programs in C language 1.Which create a Box and in a square box it takes input from user and print with in the box.I have made a program but when i take input the box corners are breaking from left and right side please help in in … Software Development c | |
I need to do reporting in VB6. Can I use Crystal Reports ? My program doesn't get its data from a database. I need to pass simple variables to the report rather than link it to a database. Please enlighten me. Thanks and regards Preethi Software Development visual-basic | |
i am trying to display a DB infos into a textbox. This my code sqlstr ="SELECT Description, Price FROM T_barcode WHERE Barcode ='" & Text1.Text & "'" con.Execute sqlstr Text2.Text = rec.Fields("Description") Text3.Text = rec.Fields("price") and iam recieving this "Item cannot be found in a collection corresponding to the requested … Software Development visual-basic | |
I have an assignment that asks to create a program to input students names & test scores. After which the user gets the option to calculate the average and print out which students were below, and/or print out the highest score and which students had that score. Since the total … Software Development c++ | |
hi everyone, im searching for a way to insert several values i get from a command [top |grep root |awk '{print $10}'] to a variable, so that the variable will contain the sum of all values returned. (trying to calculate MEM usage by all root processes ) can anyone help? … Software Development shell-scripting | |
I am newbie and trying to make a data display application in VB6 with 3 forms - Form1 is background Flash animation & graphics (Interface) - Form2 is for data-1 display - Form3 is for data-2 display Form2 & Form3 will display as slides on Form1 Data is in text … Software Development flash visual-basic | |
[code=Python] def checkIt(arr,inp): bool = 0 for i in arr: if i in inp: bool = 1 break return bool array = ['hi','hey','hello'] string = "Hi there!" if checkIt(array,string) print "Yay!"; [/code] That's my code. It returns, "Yay!". Now... I like what it does-- it searches the string for a … Software Development python | |
PLease help me with this? [B]SCENARIO:[/B] I have developed an application with [LIST] [*]>2 custom dlls , [*]>a .mdb file, and [*]>my exe file. [/LIST] Using C# and VIsual Studio 2005. The application requires .NET Framework 2.0 to run. The application runs fine when all files are kept in the … Software Development visual-studio | |
I have been using vector in c++ lately, but I needed to speed up my code a bit so someone recommended I use regular arrays. My question is 2 part - 1) I thought you couldn't do this!!?? For some reason it is working with no problem? [code] int a=2; … Software Development c++ | |
![]() | Hey all, Just a quick C++ question from me...I'm sure this is info that is available on the web somewhere but a couple of searches weren't very fruitful. Would it be possible for someone to provide an example of the following? [list] [*]Calling/opening and executing a batch file from within … Software Development c++ |
I am newbe trying to make a data display application in VB6 with Flash Animation (Interface). My question is: When I run the application, it should opens in normal window with title bar (not maximized). But when user press a button or some thing like that, window should resize (maximize) … Software Development flash user-interface visual-basic | |
Hello everyone: I want to change this date "12 Apr 2006 23:35:47" into "2006-04-12 23:35:47",I have tested lots of parameters of the command "date",but it still not execute UNDER FreeBSD,pls help me,thanks! Software Development shell-scripting | |
If I have 2 Forms in my application and Form1 is my startingForm. Is it possible to make Form2 as my startingForm instead. What indicates in the code that Form1 is my startingForm. Is this possible to do ? Software Development c++ | |
![]() | Hey there, I am trying to make a unique ID for each of my records. So in my "First Name" and "Last Name" fields, I am trying to ADD ALL of the characters' ASCII code in both fields. AN e.g First Name : JOHN (string) Last Name : DOE(string) Member … Software Development visual-basic |
I'm new to Python and not anywhere near a competent programmer. Anyway, if someone could help me get over this hump, I'd appreciate it. I need to write a Python script that calls commands from the OS that may have lengthy output. Let's say I want to see the results … Software Development python | |
In the Perl language, you can fork a child process with the following syntax [code=perl] open CHILD, " | programA | programB | program C"; print CHILD "this is an example input"; [/code] (at least, you can do this under linux). This statement starts 3 processes in fact; programA, B … | |
Assume that a language uses /* and */ pair for comments.Write a C program to check for balanced /* and */ pair in a given text file.Use pointer implementation of the data structure. Software Development c data-structure | |
Hello I'm reading through Scott Meyer's book Effective C++, third Edition. I'm having an issue understanding Page 14, Item 2, paragraph 4. The below is a snippet of code with an explanation quoted from his book-- [code=c++] // Author: Scott Meyers class GamePlayer{ private: static const int NumTurns = 5; … Software Development c++ | |
Hi there. I am new to this forum. I would like to know how can I download a file or .exe from a server on to the client machine. My software will run on the client machine. I want to know if there is some built in functionalty in windows … Software Development c# client-server windows-server | |
I'm enjoying the book Effective C++. It has highlighted things that I've looked over, never heard of, or never even though of before! However, even with this book my understanding of C++ still doesn't seem to be solid. For some time now I've been curious about how binary data is … Software Development c++ data-structure | |
Hello i am Sarathy, I am pursuing my final year MCA, my projects are just 2 months head. I have joined in ASP.Net class before 2 months, the course comprises of C#, GUI, XML, ADO.Net, ASP.Net in the order which i specified. Just now they have completed the first module(C#). … | |
three questions that i need to ask. 1) i developed connection between database and Forms of c#. entries are successful.i databse i have two columns, "Date/time" and "Cash". the format of date is like "1/11/2000". Suppose i have record of 1 year. what query should i use if i complete … Software Development | |
I'm working on some C++ excercies in my book and now I'm supposed to write a program that converats a number of seconds into days, hours, minutes and seconds with the help of arithmetic operators and integer and float variables. Nothing to fancy that is. It ended up looking something … Software Development c++ | |
Consider the following code: Result= input_number Mod 7 If (Result > 0) Then Cells(1,1).Value = 3 Else NextResult = input_number Mod 5 If (NextResult > 0) Then Cells(1,1).Value = 2 Else Cells(1,1).Value = 1 End If End If What will be the content of cell A1 if input_number equals 56? … Software Development visual-basic | |
Hi everyone, I'm new and hope someone can help with my problem. First of all English is not my first languaje so I hope you all can be a little patient with my writing :icon_cheesygrin: Here's the thing. I'm new to C++, and I'm using Borland 3.1 (this is the … Software Development c++ | |
Hi im trying to make a maths program and im having trouble with one of my sections where im currently just using '+' incorporated in to a do while loop until the score = 10 though i'm stuck on how to make it randomly change the question between + or … Software Development c++ | |
I am making my own file manager for linux, hopefully it will be cross platform, and I am trying to identify different file types, in particular folders. I have already searched google but I could only find a way of identifying text files. Does anyone have any advice on identifying … Software Development python | |
Hi, i m currently working in autoCAD Can anyone provide me syntax for multidimensional array in VB6.0 for VBA whn i declare by following syntax it gives me error [CODE]dim arra(,) as Long[/CODE] Any help would be appreciated I want to declare a multidemsional array row is of long data … Software Development visual-basic | |
Hey everyone, I am a beginner at python, and on these forums (even though I have lurked here quite a bit). Anyway, I really need some help with recursive functions. I don't exactly know how they work, and I have to be able to answer the following questions: [code] Turn … Software Development python | |
I need to do the following question: [code]Turn a line of input containing matching pairs of round (()) or curly ({}) brackets into a mountain range. The height of the mountain should indicate how deeply nested the brackets are. For example, given this input: {({(){}()}{(){}()})({(){}()}{(){}()})({(){}()}{(){}()})} Your program should output: (){}() … Software Development python | |
[code] void HandleTCPClient(int clntSocket) { int recvMsgSize; char echoBuffer[32]; char test[32]; char reply[32]; memset(&echoBuffer,0,sizeof(echoBuffer)); memset(&test,0,sizeof(test)); memset(&reply,0,sizeof(reply)); if((recvMsgSize = recv(clntSocket, echoBuffer, 32, 0)) <0) { DieWithError("recv() failed."); } while (recvMsgSize > 0) { if(send(clntSocket, echoBuffer, recvMsgSize, 0) != recvMsgSize) { DieWithError("send() failed."); } if((recvMsgSize = recv(clntSocket, echoBuffer, 32, 0)) <0) { … Software Development c client-server | |
I'm trying to create a table of values based upon tanh(x) (nevermind the cubic function for the moment): [code=python]#!/usr/bin/python import math def cubic(y0, y1, y2, y3, mu): a0 = y3 - y2 - y0 + y1 a1 = y0 - y1 - a0 a2 = y2 - y0 a3 = … Software Development python | |
I have created a program that records my input through the python command line, it asks for ie, name, favourite food, (they are examples only) it than writes the inputs to a text file, and calls the text file by one of the inputs (eg, name) i now want it … | |
I want someone to help me write a program to read the integer elements of two arrays A and B of different size from the user. And use link list to save this elements instead of arrays. And then do the following to the link lists given: 1. Sort link … Software Development c++ | |
Hi, I am using a dialog box where user selects a XML file from the local drive. The selected file along with the folder path is displayed in a textbox on the form. The user can now edit the textbox. On click on 'Proceed' button, I am parsing that xml … Software Development visual-basic xml | |
Hi I just want to count files of particular type (like *.txt) in a folder. I searched net and found this for all files count : file_count = len(os.walk(valid_path).next()[2]) But I need perticuler type like *.txt . (means how many .txt files in folder) How to do this ? Thanks … Software Development python | |
Main.cpp [code=cpp] #include <stdio.h> #include "CServer.cpp" class EventReceiver: public CServer { void OnClientReceive(CServer* SVR) { char* Packet = SVR->GetReceivedBuffer(); int packetsize = SVR->GetReceivedSize(); PCLIENT_HANDLE clientthatsent = SVR->GetLatestReadClient(); printf("\n Packet Recieved - %s", Packet); CLIENT_LIST_LOOP(SVR) if(CUR_CLIENT_SOCKETID != clientthatsent->sSocketId) { SVR->SendPacketToClient(Packet,packetsize,CUR_CLIENT); Sleep(250); } CLIENT_LIST_END_LOOP(SVR); } void OnClientConnection(CServer* SVR) { PCLIENT_HANDLE ConnectedClient = … Software Development c++ client-server windows-server | |
Im looking for a way to "ping" an ip and if it replies back then its "on" so it returns true else it returns false. If anyone can either show me a way to do this or point me in the right direction i would appreciate it. Software Development c++ | |
im just wondering how you use send() and recv() like: [code=cpp] bool blah() { if(recv(send("10.1.1.1", "HI"), szBuffer, sizeof(szBuffer)) { MessageBox(NULL, "WORKED", "??", MB_OK); return true; } else { MessageBox(NULL, "FAIL", "??", MB_OK); return false; } } [/code] i know that wouldnt compile but you get the point? Software Development c++ | |
I got following algorithm for finding permutation but I can't code it. Can any one can code this permutation algorithm in c++ using recursive method as below [I]bool nextPermutation(int array[])[/I] 1. The first permutation is the permutation represented by the sequence (1, 2, …, n). 2. The last permutation is … | |
Hello, I need your help in this programme. The programme is explained in the attachment file. the main problems are: 1) how can I get specific data from a data file. (as required in 3,4,5 and 6) 2) how can I solve the problem of over written the data file … Software Development c | |
For: Sum = Var1 + Var2 Difference = Var1 - Var2 Quotient = Var1 / Var2 Product = Var1 * Var2 What Exponent = ? Thanks in advance... Software Development java | |
Hey guys. Question is. I need an example of a working code for a multiset. Hope theres someone out there who can help me on this, kind soul. Probably a multiset with a set of a grocery lists; not numbers you know.. for eg... {eggs, tomatoes, onions, chicken, shampoo..etc} you … Software Development c++ | |
This program does not have any input. Instead, the main routine, called the driver, calls the Pay function, testing it with a variety of parameters. Your job is to write the function. It should calculate the rate of pay, but in this case, the function returns the amount of pay … Software Development c++ | |
[code]using System; class abc { public static void fun() { Console.WriteLine("Function"); } public static void Main(string[] args) { ThreadStart ts=new ThreadStart(fun()); Console.WriteLine("Main begins"); Thread t=new Thread(ts); t.Start(); Console.WriteLine("Main ends"); } } [/code] [B]Output showing[/B] Main Begins Main ends Function. [B]My Question[/B] The thread has been started and then the "Main … Software Development | |
Hey I'm writing a color class, and I want to have a constructor that can take in an unsigned int like 0x00FF00FF and interpret it as fully opaque green. I have code for that (I think it should work, could someone check it?): [CODE] rzb::color::color(unsigned int hex) { m_red = … | |
I m new to java. I need help What are the software/component used to compile Java program? What are the editors used to write Java program? What are the software/component used to write Java program? What are the software/component used to execute Java program? Software Development java |
The End.