132,726 Archived Topics
Remove Filter ![]() | |
Hi, I'm trying to run my script but is not working for some reason the functions is not working at all. Anyone willing to help me to find out the error. Thank you. #!/bin/bash DATE=$(date +"%m_%d_%Y"); turn_off_services() { echo -e "\n## Remove unnecessary services" ## Turn off unnecessary services ## … Software Development shell-scripting | |
hi, I have to write an algorithm for getting a matching string from list of saves string after comparing it with the given string. say example: Saved string: ` ` Book ABC Book ABC XYZ Note Copy Note Book YYYe` If user gives Book, then the algorithm can return Book … Software Development algorithm | |
`Inline Code Example Here`I am using a pair of pthreads that call a pair of functions for ping-pong dma data transfer that are used in a loop for data transfer from an acquisition board. For a large # of waveforms, I ultimately run out of PC memory and the program … Software Development c++ motherboards-cpu-ram window-manager | |
So im working on a public and private case and i posted ealier with issues, but i thought i had most of them fixed and turns out fixing those just opened up more problems... any help is appreciated thank you! ( I am very new to using java...) /** * … Software Development java | |
Hi, I have a Python script that calls a program that only prints to the terminal [yes I tried to force it to print to file ... no luck]. However, I need to save the output of the terminal to file in order to perform further analysis. In the code … | |
One large chemical company sells its chemical equipment at the following rates: Equipment Code Description Price RQ1 Reactor 0.5KL GMP $1500 RQ2 Reactor 20 KL Non GMP $3000 The company pays its salespeople on a commission basis. The salespersons receive the basic pay of $ 2000 per month plus a … Software Development java | |
hello, I think it is just a silly thing but i can't work out why im only getting one number back from this..? def MakeList(n): # Returns a list of n random numbers List = [] for i in range(0, n): List.append(random.randint(0,1000)) return (List) MakeList(10) I get: [546] But if … Software Development python | |
Hi everyone. i was wondering if anyone new any good tutorials on how to make a picturebox play a video in vb.net 2010 **WITHOUT** using the windows media player component. i want this to be 100% my program. thx in advance! | |
Hello i'm getting theses to error with my sql code can anyone help me ot at all i'm really lost and can't find much to help where i'm going wrong.Code is below Error 3 The best overloaded method match for 'System.Data.SqlClient.SqlCommandBuilder.SqlCommandBuilder(System.Data.SqlClient.SqlDataAdapter)' has some invalid arguments Error 4 Argument 1: cannot … | |
I'm trying to add a new row to my database so that i can add a new record. But it always gives this error: "Object reference not set to an instance of an object." And i can't figure out. Can you guys help me? I ahve my codee. Private Sub … Software Development vb.net | |
I have been working on this code for days now and I am down to one error:error: class, interface, or enum expected showing at line 56, I have no idea why it won't work... any suggestions? thanks! import java.util.*; public class Pet { // This gives the user a field … Software Development java user-interface | |
Guys, Am trying to open a file and read the content in that using C from mainframes. Here is the code, #include<stdio.h> int main() { int i; FILE *fp1; fp1=fopen("**********.CPP.SAVE","w"); if(fp1==NULL)return; for(i=0;i<256;i++) { fprintf(fp1,"%c",i); } fclose(fp1); return 0; else { printf("File does not exist"); } } Only the else part … Software Development c file-system | |
Hey guys, i need a wave sound file for my program i am working for a basic tutorial for grade school and pre-scool so i am looking for a sound file that fitted to my quiz in pre-school i can`t find in google or to any sites.. Software Development visual-basic | |
Hi everyone, Heres my problem: I've installed Qt 4, and there is **no** qmysql.dll/.a in C:\Qt\4.8.4\plugins\sqldrivers\. I am running a MySQL database program and I get Database error: Driver not loaded. Theres not really a lot of help anywhere on google so hopefully DaniWeb will yet again prove itself as … | |
New to c++. I'm trying to figure out how to use strcmp with array's . I need to see if a array holds the word "hello". I can't get my code to work quite right. What is it missing? #include<iostream> #include<cctype> #include<cstring> using namespace std; int main() { char a[30]; … Software Development c++ | |
Hi, I'm trying to sort a DataTable using the following code: [CODE=VB.NET]Private Function sortDataTable(ByVal dTable As DataTable) As DataTable Dim dView As New DataView(dTable) dView.Sort = "Field ASC" Return dTable End Function[/CODE] But it doesn't work. What is wrong? How can I sort the DataTable? Thanks, Ana Software Development vb.net | |
I am new to windows app development in c sharp. I am trying to create a scenerio were a user would click on a button to display a new page of information instead of poping out a new window. Just like it is done in java CardLayout Manager. Pls most … Software Development window-manager | |
I have two text files containing multiple lines of text, I need to compare both files and write the missing lines in the file two. i will use a while loop for check every 60 seconds, i an idea but just work 1 pass File one: 2012-10-04 01:03:11,50EF87C3.req,192.168.1.1,12312312312,OK -- HUAWEI … Software Development python | |
I'm a student. My code is skipping over my printString function when I run it. Pardon the poor spacing. #include <stdio.h> #include <string.h> #include <stdlib.h> char * reverseString(char * original); void printString(char * string); int main() { char a[] = "this is a test \0"; char * b = a; … Software Development c | |
Hi i have a form1 and form2 and also a button1 in my button1 i have this code Form2.show now when the Form2 is show and everytime i click a button Private Sub Combo_AM_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)_ Handles Combo_AM.SelectedIndexChanged With Combo_AM If Combo_EBU.Text = "EBU 2" … Software Development vb.net | |
Hi, I have web page which has an array.I want that array to be passed in to stored procedure?Can anybody tell me how to do this? wen the stored procedure is executed i want the following output. a[0]=a,a[1]=b,a[2]=c etc... Software Development | |
Hi all, I'm having a problem with comparing two strings and telling the user if they are equal or not. The program is written in Assembly 8086. (.com extension) The layout is the following: 1? Hello ;input of first string 2? hello ;input of second string not equal ;final string … Software Development assembly | |
Hi Guys, The reason for my message was to do with UPDATE and DELETE Statements from within C# when contacting a MDB file. I currently have the INSERT INTO SQL Query working perfectly The Code I used for this is below: else if (radioButton2.Checked == true) { //Creates new versions … Software Development dataset microsoft-access open-source sql | |
Ok so I do not know where this post belongs, but apparently, Java is the language that is used for Arduino boards...I thought that it would be C. I have no idea where to begin, but I am really interested in tinkering with Arduino boards. Like REALLY. So I need … Software Development java | |
Hi, I seem to be having a problem when attempting to insert a new record into my database through vb.net. From what I can gather, there seems to be an error in the code that the command builder (cBuilder) is creating for me. Here's a copy of the code for … Software Development open-source sql vb.net | |
hi experts, i have problem in displaying commas and decimal to a certain amount in a textbox and label. it only display certain amount without comma. below are my codes; ______ Private Sub lblAllowable_Change() lblAllowable.Caption = Format("4321", "#,##0.00") End Sub ____ ____ Private Sub cmdSearch_Click() txtLastname.Text = "" txtFirstname.Text = … Software Development visual-basic | |
Hey guys I'm having problems figuring out how to write my driver class for my Array class. My questions 1.How do I make the array in my Array class reference the array in my Driver class? 2.How do I pass my class methods from my Array class to my Driver … Software Development java java-swing | |
Hey guys looking for some help with my ArrayTester class... The array is supposed to 1.create a 20 element int array and populates it with random elements in the range 20 through 65 (both inclusive). -I Believe I have already done this. 2.Use the java.util.Random class with a seed of … Software Development java | |
I'm writing a class to represent a flight. The only error I'm getting is on line 97. Flight.java:97: error: missing return statement /** Class Flight represents a plane at an airline Author: Anna Mae Decker E-mail address: adecker0033@kctcs.edu Last changed: 02/10/13 Assignment1 */ public class Flight { /* * declare … Software Development java | |
Hello guys, I would appreciate if you could help my on the below issue. When i used an Excel object in my code, when closing this, the excel.xls applicataion remains opened at the task manager. i am copying below the test code for your reference, which i am using in … Software Development microsoft-office visual-basic | |
Im trying to call the method "public void insertCard(int p)" within the same class into the method " public void deposit (double amount) " My code for both methods is displayed below. the objective would be to have the deposit method return the last print statement if the card is … Software Development java | |
Tryying to coun the numeber of comparicion but dont know how to count them include <iostream> #include <time.h> #include <stdio.h> #include <conio.h> using namespace std; //funcion para dividir el array y hacer los intercambios int dividir (int *array, int inicio, int fin){ int comp=0; int izq; int der; int pibote; … Software Development c++ | |
Hi guys, I am building a program which has 5 forms, 1 mainmenuform with 4 buttons and each of them buttons have a form corrisponding to that button and this program is connected to my access database. The problem I have is I've put all my code into my first … Software Development dataset microsoft-access open-source vb.net | |
My Thinking: struct student { int *subjects_number = new int [NoOfSubjects]; } main() { int NoOfSubjects; cin >> NoOfSubjects; } Objective: students could have taken different number of subjects. Now modify the structure such that its variable subjects_numbers has type pointer to int so that we can store scores for … Software Development c++ | |
Segmentation fault (core dumped) Can someone please explain what that error message means? I'M tryin to use `strcat()` to add "0" to the left end of char `*argv[1]` I want it to do this only when the lenth of `argv[1]` can not evenly be divided by 3. So if I … Software Development c++ | |
I'm wanting to create a while loop that asks the user if he wants to run the program or not... very basic... I know. I was wanting the prompt to ask the user to input "Y" or "y" to have the program run. Like this: programStart = str(input("Please press 'y' … Software Development python | |
Hi, Someone please guide me to get the right sintax to print the numbers of above and below arrays. Right now it print the totals quantity, but what I really want is print each number for above an below array. Thanks. public class RandomArray { public static void main(String[] args) … Software Development java | |
So I am working on a program and it has two seperate classes.. One of them contain the forum layout and the other contain some calculations and totals.. The problem is that the class with the calculations contain a constructor and other functions that I need to pass from this … | |
#! /usr/bin/python import numpy as np data = np.loadtxt('path-tracks.csv',dtype=np.str,delimiter=',',skiprows=1) print data [['19.70' '-95.20' '2/5/04 6:45 AM' '1' '-38' 'CCM'] ['19.70' '-94.70' '2/5/04 7:45 AM' '1' '-48' 'CCM'] ['19.30' '-93.90' '2/5/04 8:45 AM' '1' '-60' 'CCM'] ['19.00' '-93.50' '2/5/04 9:45 AM' '1' '-58' 'CCM'] ['19.00' '-92.80' '2/5/04 10:45 AM' '1' '-50' … Software Development python | |
Hi , I am new to python coding . I have a Strace output file and i need to extract two columns. The sample Strace file i have attached here i would like to extract the "calls" columns and store the count of the calls withrespect to the syscall. I … Software Development python | |
Public Class LoginForm1 Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click Dim con As New SqlConnection("Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\ahamdi2\Documents\Visual Studio 2008\Projects\sistemPengesanan\sistemPengesanan\admin.mdf;Integrated Security=True;User Instance=True") Dim cmd As New SqlCommand("SELECT * FROM info WHERE username = '" & UsernameTextBox.Text & "' AND [password] = '" & PasswordTextBox.Text & "' ", … Software Development open-source vb.net visual-studio | |
Hi, I am given this assignment that should be run in Jython. The assignment says that the program consists of a Java application with a canvas and a textarea for turtle code. I need to create a Jython application that takes turtle code from the Java application, parses it with … Software Development python | |
I can see methods in stdio.h, iostream, etc in Turbo C++. But I confuse now because now I try to use code::blocks. Thank you if you solve my problem Software Development c++ | |
Hi , I am trying for a program which takes any no of characters as input and stores, so obviously i would need DMA. My approch is to Take a buffer of some fixed size(5 in this case) Fill the buffer till the fixedsize-1 Allocate memory dynamically and store the … Software Development c | |
How to handle null values in C#. When I am entering characters in a char array i want to leave some values blank or empty (null). But when i do that my program terminates giving me an error. The error is shown in the pic below. What should i do … | |
Hi Guys, Right... I've managed to run select statements with associated Joins to show the data I want in DGV's which is great. Seems to be working fine. I'm not to the point where I need to be able to Insert, Update & Delete Rows in my Database. I am … Software Development microsoft-access | |
Why the condition if ((a[0] == 'y') | (a[0] = 'Y')) is ALWAYS TRUE in the following code? #include <iostream> using namespace std; int main() { cout << "Enter 10 integers seperated by spaces: "; int array[10]; for (int i = 0; i<1; i++) cin>>array[i]; cin.ignore(); cout << "Do you … Software Development c++ | |
hi, i am trying to run the java EE application and when i clean and build the EJB and the web compoenent i get an error as below > Failed to execute goal on project account-web: Could not resolve dependencies for project edu.depaul.cdm.se:account-web:war:2.0.0: Failed to collect dependencies for [javax:javaee-web-api:jar:6.0 (provided), … Software Development apache api ide java java-netbeans | |
I am compiling some source that is linked to two packages. One is OpenCV and the other is a driver library for an infrared camera. The company only provides a 32-bit version of the library via an rpm package. I compiled OpenCV from source and it's libraries are installed in … Software Development c++ | |
Hi, I have a problem that wants to be calculated only by while loop. (no other loop, no goto, break) Develop a program that will input the miles driven and gallons used for each tankful. The program should calculate and display the miles per gallon obtained for each tankful. After … Software Development c |
The End.