Error: Cannot convert parameter 1 from std::string to char*. Confused on why it is giving me this er

:So once again I need some help with this program for class. Maybe its that I'm tired but I can't seem to find the logic error I'm sure I've made here. Here is my code:#include "Book.h"using namespace std;void add (char*, char*, int);void remove (in

MySql expected output not coming

:So I have this program which reads serial Input from COM port and places it in MySql database named asset.Code:import java.io.*;import java.util.*;import gnu.io.*;import java.sql.*;public class SimpleRead implements Runnable, SerialPortEventListener {sta

Why GC does not collect an unused object

:I'm trying to understand how the GC acts when an object is not being used anymore, my test is to do nothing with the object (after used) but it didn't work, the object's destructor was never called.I've created an example program trying to wait until

Type mismatch, cannot convert from void to char[]

:I'm testing if 2 strings are anagrams. I figured that if I make them arrays then sort them, and they turn out to be equal, they are anagrams. I'm having a type mismatch compiler error though, and I cannot figure out why.package local.random;import java

How to create JFrame in the same thread so that it blocks?

:For debug purposes, I need to draw image on the screen in a simple window.Swing handles all it's events in a separate message loop thread. That means that if I do the following: while(true) { //Get screenshot BufferedImage screenshot = MSWindo

Print arguments inside thread

:void * consumer_child(void *arguments){ Range rng = *((Range *) arguments); //prinnting with the range to easily identify each thread printf("consumer_child[%d-%d] started\n", rng.start, rng.end ); pthread_exit(0);}When I print it, it prin

Why isn't my UserControl keeping its initialization?

:I have a UserControl for which I think I'm initializing some of the members:// MyUserControl.csusing System;using System.Collections.Generic;using System.ComponentModel;using System.Drawing;using System.Data;using System.Linq;using System.Text;using Sys

Hibernate - Foreign key is empty while using mappedBy

:I've 2 tables Employee & Vehicle, where one employee can have multiple vehicles.Below is the mapping that I've defined:Employee.java@Entity(name = "emp_details")public class Employee { @Id @GeneratedValue(strategy = GenerationType.AUTO) priv

LocationManager not working on Android phone

:I have a problem,The locationmanager is working perfectly fine when i test it in the emulator and edit the location in the DDMS screen, but when i test it on the Samsung Galaxy SII, its nog working..Please help me.import android.app.Activity;import andro

Erasing vector.end() fails

:Why does using vector.erase(vector.end()) produces a Segmentation fault (core dumped)when using this code:#include #include using namespace std;void printMe(vector& v){ for(auto &i:v) cout<

Need help changing variable value to then change a displayed message

:I am new to Javascript, HTML, and CSS so I have been playing with a lot of new functions, objects, styles, tags, etc.I was working on some basic math. functions and decided to try and create a life system for future reference if I ever made a game. I wan

Pass URL as a parameter to XSL

:I'd like to pass current page URL as an attribute to XSL template. As far as I understood it should be passed as a parameter, and then used as an attribute.I use PHP to load XML & XSL files:?php$xml = new DOMDocument;$xml->load('main.xml');$xsl =

IOException: Read Error

:If you want more info on the error, the full source can be downloaded hereHey, I'm reading an ini file using java.util.Properties; and I've run into a strange issue. When I try to load a specific file, the thing spits out this strange exception that I

java class main error for crontab

:When I try to run the exe jar file in unix:$ java -jar /tnpm_pm_test.jarIt runs properly without any errors but when I try to add it in a crontab*/15 * * * * /usr/bin/java java -jar /home/user1/tnpm/tnpm_pm_test.jar &> /dev/nullI'm getting the error bel

Running periodic Dataflow job

:I have to join data from Google Datastore and Google BigTable to produce some report. I need to execute that operation every minute. Is it possible to accomplish with Google Cloud Dataflow (assuming the processing itself should not take long time and/or

Syntax error in a Python library, and I'm not sure how to proceed

:I'm using pyramid 1.5.1 and python 3.2, and I just added quite a bit of code and a couple libraries to my project.On running development.ini, I'm getting the error below.If I had to take a wild guess, I would say that this particular library (looks lik

Package a Maven-transformed web.xml in the final war

:I want to make Maven process the web.xml file prior to including it in the final war. This is going to be profile-dependent, so editing the source XML is not an option.I'm using the xml-maven-plugin to add the new elements to the file (you can get addit

Jquery drag drop form hidden value inserting into php mysql

:I'm trying to create a form from the following code, but not having any success. I want to input hidden fields to capture a value of 1 when I put one of the draggable items into the "Most Like Me" field, a value of 2 when the draggable item is in the

How to use mapply to calculate CCF for list of pairs of time series?

:I am trying to apply functions described here for a set of time series. For this, mapply seems to be a good approach but I guess there is some problem either in defining the function or in using mapply. Here is the example code, where I found some discre

SIGSTOP not working in c program

:I am trying to write a C program in which the parent process suspends the child process and after a few seconds continues executing it.#include #include #include #include void sigstop(); void sigcont();void sigquit(

Node js - Error: spawn ENOENT (Windows 8.1)

:I'm using nodejs version - v0.10.31On one machine it does work, and on my machine it doesn't. Can someone give me some advice where I can start searching for a problem ?var express = require('express'),path = require('path'),fs = require('fs'),mo

Using selenium, I need to iterate over all iframes and their child iframes on the fly

:I need to iterate over all iframes and their child iframes on the fly as I want to perform some action on all the tags. I am using selenium.public class logic {static WebDriver driver;static List TotaliinnerFrames=null;logic() { driv

How to make GUI wait for user input? [duplicate]

: This question already has an answer here: How to stop Java from running the entire code with out waiting for Gui input from The user 1 answer I'm a rather basic programmer

Wait for an event to finish (threading)

:I need to wait for an event to finish before continuing.Here is my code:foreach (KeyValuePair pair in this.XMLCollection){ ... this.eventAggregator.GetEvent().Publish(credentials); //wait ...}Before con

How to use jgit to clone the existing repositories to new github instance?

:We have two separate GitHub instance running. One GitHub instance is https://github.dev.host.com and other github instance is https://github.host.com. I have various repositories in https://github.dev.host.com which I need to migrate to this new github i

 4707    1 2 3 4 5 6 7 8 9 10 Next Last