132,726 Archived Topics
Remove Filter ![]() | |
Hi all, I am new to Linux/shell scripting having moderate knowledge. In my script, I need the execution time of command (say 'ls') in mili seconds level. For this, I would like to use 'time' command. The problem is that, how to save the output of time command in a … Software Development shell-scripting | |
i need some help/idea in coding a matrix class capable of giving its transpose matrix, inverse matrix & also the determinant of the matrix i am totally a newbie in c++; & learing all the way i just got the thought that to find the determinant it would be recursive … Software Development c++ | |
Hello forum. I'm new to c programming. I have been reading source files from my smt32 firmware and I came across this code. In one of my books I read that you can have macro functions. Is this function testing whether I2C1 and I2C2 is enabled? [CODE]#define IS_I2C_ALL_PERIPH(PERIPH) (((PERIPH) == … Software Development c | |
Hey, I'm trying to link my .c file together with the .h file and I got a C1014 error that stated that I got "too many include files : depth = 1024" I need some help with this error. Did I do something wrong here? Thanks. This is the change2.c: … Software Development c++ | |
Hi freinds, How we can do a graphics under window program as like draw a different shapes,as like Circle,REctangle etc. Software Development c | |
Friend i m new in .net socket programing ............ i have made many management application in C#.net ......... i have tried to make chat application over local network and i have made it. but now i want to make a chat application which work over internet ............. can anyone help … Software Development | |
I have to create a database with the data stored in a .txt file. Each record is for a company with the following fields: Name, Place, East(km), North(km). Each record from the file needs to be read into a struct array. I have managed to read the records into a … Software Development c | |
i had a quiz ,im confused about answer..can you please clarify which of the following is true? with reason 1. int a[ ][ ] ={{2,3},{3,4},{4,5}}; i. It will create a 3*2 matrix and initialize it ii. It will create a 3*2 empty matrix iii. It will actually create a single … Software Development c++ | |
Hi, i know how to read specific line form a text file but if we want to delete lines by specifying the line number. here is the code, but it's not working: i want to delete line 1 and 2 of the text file. [CODE]import java.io.*; public class ReadSpecificLine { … Software Development java | |
I am in the process of writing the best first algorithm. i have not yet implemented the "best" part of it to select only the best node to expand. currently it is expanded each node created. However the while loop expanding the nodes stops executing before it should thus never … | |
Hi, I need to use LPT as SPI with CS DO CLK But how to setup LPT pins for SPI can I use D0 D1 D2 on lpt port for this ? is this correct ? lpt pin 2 CLK Lpt pin 3 CS Lpt pin 4 DI [CODE]Const Po378 … Software Development visual-basic | |
Hi All i have downloaded following code from web that inputs sound samples and displays spectrum, i want to print frequencies present in each second in the spectrum.i.e when ever the spectrum is displayed i want to print those frequencies as well on the console. Below is the code i … | |
The question is "write a program that request the user to enter two integers. The program should then calculate and report the sum of all the integers between and including the two integers. At this point, assume that the smaller integer is entered first. For example, if the user enters … Software Development c++ | |
DLL Injector coded in C: [CODE]#include <windows.h> #include <tlhelp32.h> #include <shlwapi.h> #include <conio.h> #include <stdio.h> #define WIN32_LEAN_AND_MEAN #define CREATE_THREAD_ACCESS (PROCESS_CREATE_THREAD | PROCESS_QUERY_INFORMATION | PROCESS_VM_OPERATION | PROCESS_VM_WRITE | PROCESS_VM_READ) BOOL Inject(DWORD pID, const char * DLL_NAME); DWORD GetTargetThreadIDFromProcName(const char * ProcName); int main(int argc, char * argv[]) { // Retrieve process … Software Development c++ | |
Hi, Can anyone tell me what is the problem with the below code: [CODE] String eleSrc=srcEle.toString(); String srcdata_list[]=eleSrc.split("-"); String eleDest=destEle.toString(); String destdata_list[]=eleDest.split("-"); int found=0; for(int i=0;i<srcdata_list.length;i++) { for(int j=0;j<destdata_list.length;i++) { if(srcdata_list[i].equals(destdata_list[j])) { found++; System.out.println("matches"); System.out.println("after matches"); break; } else { System.out.println("in else"); } } System.out.println("out of first for lopp"); if(found==0) … Software Development java | |
Hello python experts! I have a simple script that sends an email with no problem, in order to interface with vb6 I'm tried to modify the entire code into COM service...but I'm having trouble with this error..global name 'MIMEMultipart' is not defined which is on the send_email method. any help … | |
Hi, please don't blame me for reinventing the wheel, I was bored and had nothing to do, so I thought: what would I write? And apparently this code is the result :P Software Development c++ | |
Hi, I am a new user and I want to show you my Python library. [B][I][U][COLOR="Red"]pypol[/COLOR][/U][/I][/B] pypol is a Python library that allows you to manipulate monomials, polynomials and algebraic fractions. An example: [CODE]>>> import pypol >>> a = pypol.polynomial('3xy - 3a^2 + 2b') >>> a - 3a² + 3xy … | |
Dear All, I’m implementing a vector class that allows me to do vector arithmetic. What I’ve implemented is the following: [CODE]class mVec { private: float vec[3]; public: mVec(); mVec(const float * const parray); mVec(const float a, const float b, const float c); ~mVec(); mVec operator+(const mVec& param); mVec operator-(const mVec& … Software Development c++ | |
Hei, I tried to find "dynamic programming" algorithms in Python. If anyone has examples of what it means a dynamic programming, it's would be nice. (Please not post Wikipedia links). Google -> c++, java and other, not Python. Thanks! Software Development python | |
Hi guys I just started writing in c++ yesterday, although I did write in visual basic before. After watching some basic c++ youtube video's i decided i wanted to make my first game, tic tac toe. So as a warning i did this without using anyone else's code or any … Software Development c++ visual-basic | |
Hai all, I'm being create a dictionary. In the dictionary have feature search the word. if user entering the character "g" the word view in JList will show the word begin with "g". i try this first using Linier Search, it found the word, but linier. i mean if i … Software Development java | |
Consider and ADT list of integers. Write a function that computes the sum of the integers in the list aList. The definition of your function should be independent of the list’s implementation. may i know how to do this type of question? Software Development c++ | |
Hello, I could use some help in making a program that computes the volume of either a cube, a cyliner, or box. The user enters the shape (strings) they want (ex: cube. Then the program asks to enter the values such as side length, radius, etc. The program then displays … Software Development c++ | |
Hi all, I installed jdk 6_23 and set the path of jdk in system path properly. And then I could run any jar file by command line, but when i double-clicked on the jar file, a message of Java Virtual Machine Launcher occured : " could not find the main … Software Development file-system java | |
Hi all, I need help with the save button of my java inventory program part 6. It compiles and runs but then it get the error message stating C:\data\inventory.dat"(access denied) and then general output field shows: [code=text] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) at … Software Development java | |
I am trying to modify and recompile a dll file. I disassembled it so I have the C# code. I also have the .resources file that is a Pack URI. I want my version to have it's own resources file, but I need parts from the original. How can I … Software Development | |
What the code does: accept a stock ticker eg AAPL as text input. It assigns it a number if it hasn't already been assigned a number. Then returns the number associated with that ticker. Part of a larger program. The code for int gethandle worked fine when it was in … Software Development c++ | |
i have a question about casting for pointers! int *pointer = 30000; store address 30000 into pointer int *pointer2 = pointer; // store address 30000 into pointer2 the above 2 statements are equivalent to.... int *pointer = (int*)30000; is this statement correct? if not whats the difference! thx Software Development c | |
I am trying to do the following in C++, the C# code is here test is a string btw. [CODE]if (test == null || !test.Equals("Item Name\t")) return data;[/CODE] I did this in C++, but its crashing the program [CODE] if (test.compare(NULL) == 0 || test.compare("Item Name\t") != 0) return data;[/CODE] Software Development c++ | |
I created a program that will display a question, then the user has to answer the question within a time limit. I want to make it so for long questions, the question will just go to the next line instead of cutting off. Is there another way to display the … Software Development java java-swing | |
This loop is going slow because of the push_back part at the end, can i make this go any faster? Basically this is what it does 1) Reads file into a char array 2) takes each char in the array and transfers to vector. [CODE]char *tempItem = new char[1]; delete … Software Development c++ | |
Ok, here's another problem which i really need help. One suggestion from our panel suggested if we can have a module which do not allow deleting a record (one or more) in the database which are Administrator type. Those records cannot be deleted whether through 1. the program itself (via … Software Development visual-basic | |
![]() | ...i'am quite confuse about event-driven programming in java applet... ....i have been using a "TextField" for creating an applet that would require a password ... ...my goal is to make an error_message saying "SystemBlocked" whenever I entered 3 wrong passwords and would terminate the applet at the same time... ...how … Software Development java ![]() |
hi, i'm new to python. i want to read from a text file (as attached) and i want to plot a scatterplot. i want to plot lane as X-axis, EyVt and EyHt as Y-axis. i have a sample code but i need help on how to get python start reading … Software Development python | |
Hi. I have a troubble with reading string from file and saving it in a structure. Here's my code: [CODE] FILE*t; t=fopen("file.txt", "r"); wt=(pointer)malloc(sizeof(list)); w=wt; for(i=0; i<3; ++i) { w=(pointer)malloc(sizeof(list)); fscanf(t, "%d", &w->id_t); fscanf(t, "%s", &w->name); fscanf(t, "%f", &w->price); fscanf(t, "%d", &w->tax); printf("%d\n", w->name); //for check w->next=NULL; fscanf(t, "%c", &c); … Software Development c | |
Hi, I'm new to Python and having difficulty opening my .py file (ex1.py). In the command prompt I cd to the folder containing the file and when I try to open it nothing happens. The prompt just gives me a new line. It looks like this... 1. I open the … Software Development python | |
I am confused, I seem to be losing the variable item.Size when i go from one for loop to the next....why? When i show item.Size the first time it shows all the #s, the second time I get straight 0s? [CODE]for (unsigned long int q = 0; q < tableCount; … Software Development c++ | |
I have a question about function precedence. How does the compiler decide which function to call in quasi ambiguous situations? Is it laid out in the standard or is it implementation dependent? If you look at the attached code you'll see I'm outputting the value contained by the myint object. … Software Development c++ | |
Hello, My friend and I are learning to program by creating and solving little challenges for each other. In the most recent one, he hid something in the resources of his program. I can find and save the resource off manually using .NET Reflector; but I am trying to do … Software Development assembly | |
When i am trying to run a C program in Eclipse, it gives error. Saying, "launch failed, Binary Not found" Could anyone plz tell me how to put in Binaries into Eclipse........ | |
Hi! I would like to make transparent my two JScrollPane components. Could please someone explain me why the code [ICODE] scrollPane1.setOpaque(false); scrollPane2.setOpaque(false); imagePanel.setOpaque(false); beads.setOpaque(false);[/ICODE] does not work? Thanks! [CODE] public SelectablePanel() { beads = new BeadsCollection(NR_OF_BEADS); imagePanel = new ImageSelectionPanel(0, NR_OF_BEADS_SIZE); p = new Point(); JInternalFrame jif = new JInternalFrame("Title", … Software Development java | |
if i were to do this in a program, would it possibly overwrite data/memory that is already being using by my application? int main() { char *pointer = "hi"; pointer = "weeeeeeeeeeeeeeeeeeeeeee"; return 0; } Software Development c | |
This Code works fine, but i try add all Offsets and memory bytes into txt db, anyone have idea? i want read all lines from a txt to compare in memory... is for anticheat.. :) ex of txt.. Offset Memory Dump Offset Memory Dump.. but i donw know how use … Software Development c++ | |
Hi there, I'm trying to develop some old code (for a class to model affine transformations) which was working thanks to a Daniweb member. The old code is [CODE] void IFS::eval(float x, float y, float& a, float&b) { a = (matrix[0]*x + matrix[1]*y + matrix[2]); b = (matrix[3]*x + matrix[4]*y … Software Development c++ | |
Pretty much what it says in the title, _orgDrspath = std::string, newDrsName = std::string [CODE]std::cout << "Opening original " << _orgDrsPath << std::endl; // Store all bytes into a variable called exe std::ifstream inFileDrs(_orgDrsPath, std::ios::in | std::ios::binary); inFileDrs.seekg(0, std::ios::end); size_t len = inFileDrs.tellg(); int newLen = 1024*1024; char *theDrs = … | |
for ($i=0;$i<=$SIZE;$i++) { $_=$LINES[$i]; if (........... need to know how to ask if a line contains <!--addsearch--> AND more than two " speech quotes Hope you can help Marko Software Development perl | |
I I'm trying to create an application in real mode that uses the flags to store the results of calculations and other stuff. I'm trying to do this to take up less memory. So can someone please give me some example code or tell me how to do this. I … Software Development assembly | |
Hi... I want to insert a variable [I]finalScore[/I] into an array [I]competitorsArray[competitorCounter] [/I]. I can't find any instructions anywhere on how to do this, so I'm wondering if it's even possible. Also, how do I output an error message if the user enters a number that I then store into … Software Development c++ | |
Hello! I am very pleased to join Daniweb. I found it very interesting and helpful and immediately joined the community in the hope of getting some help regarding my final year project. Well coming to the point, m designing an Attendance Management System(AMS) for my college. I have created accounts … Software Development sql visual-basic |
The End.