serialize javascript array

:I am using the dojo enhanced grid and the variable marked "myGrid" refers to the grid.function addtocart() { $("#additem").click(function(){ var myGrid = dojo.byId(dataGrid); var ids = []; var gridRow = myGrid.

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

try catch for Scanner

:I am using Scanner to get user input. If the user inputs a name, I add that to the ArrayList. If the user does not enter a name then I want to throw an exception, but I want to continue the loop that gets the answer. for(int i = 0; i < totalLanes; i++){

Getting 'Attempt to invoke virtual method 'java.lang.String java.lang.String.trim()'

:I'm using FirebaseUI in my app and FirebaseRecyclerAdapter to be more specific.I'm fetching data from my FirebaseDatabase reference using the method given here.Here's my code:private void attachRecyclerViewAdapter() { Query lastFifty = mDatabas

iOS Google+ SignIn finishedWithAuth not called after application openURL delegate

:iOS Google+ SignIn finishedWithAuth never triggered after the application:openURL:sourceApplication:annotation: app delegate method. This was working, but now it does not. The response is: url:com.**************:/oauth2callback?state=19139956&code=4/

Using a Html file for mail.body in .net.mail

:MVC3, VB.NET. I have a function in my app that is supposed to use a html file's contents for the email body. However what I have so far is failing at the mail.body = file.readalltext(_body) line.. Any ideas?? Function

Why does “10” > “9” = false? [duplicate]

: This question already has an answer here: Why is one string greater than the other when comparing strings in JavaScript? 3 answers Javascript string/integer

Accessing the Custom Object Return type from ojdbc6 JDBC Thin Drivers

:I'm writing some JDBC code which calls a Oracle 11g PL/SQL procdedure which has a Custom Object return type. I can get the code to call the procedure, but how do I access the returned Custom Object to obtain it's contained values?. An example of my cod

Sorting list having itemBean by date?

:how to sort a list by date in androidList listIB = new ArrayList();for(int i=0; i

how do I access variable attributes using gon (in jQuery & Rails)

:I was recently pointed to gon for passing variables from my controller to javascripts available on a page.Suppose I pass a variable @note that has attributes location, content, and tags (associated tags). How to I access these attributes in the jQuery fi

Get country code based on user's current location Android

:I have already tried out the following code to get country code nameTelephonyManager tm = (TelephonyManager)getActivity().getSystemService(getActivity().TELEPHONY_SERVICE); String countryCodeValue = tm.getNetworkCountryIso();But I guess this does

Passing a string pointer to a struct in C++

:I'm trying to pass various strings into members of a Struct via pointer but I am doing something fundamentally incorrect. What I think is that it doesn't need to be dereferenced. The process below works for other types of data such as int or char. For

How to get a view from a fragment layout in android?

:I have an xml like thisactivity_loginscreen.xml

Using AsyncTasks as separate public classes

:this question is a continuation of what i have asked orginally here i am trying to find a better way to pass the ArrayList from AsyncTask to the Activity (any activity that calls the AsyncTask) so in my situation i have a which extends

IBOutlet nil after instantiateViewControllerWithIdentifier

:Not sure exactly what I'm doing wrong here. I've listed out what my problem is and my code. Would love to get some help. Thanks!Problem: VC1 presents VC2. IBOutlets from VC1 are now nil.VC2 dismisses back into VC1. IBOutlets in VC1 are still nil. VC1 l

How to clone a prototype with property methods?

:I am using the Typed.React library which includes a method to extend one prototype definition with that of another:function extractPrototype(clazz) { var proto = {}; for (var key in clazz.prototype) { proto[key] = clazz.prototype[key]; }

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

Data not posted on firebase database

:I am trying to save new data in firebase under a node President. i have already set some rules on that node."President":{ "$userId":{ ".write": "auth != null && $userId === auth.uid", ".read": " auth.uid != null" }},In my appFirebas

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

Endorsement Epson TM-h6000IV Java Printing

:I need to print to an Epson Endorsement TM-h6000iv printer (usb version) with Java. However, I read the manual without hope to find sth can help. I change in printer preferences without hope also! I try with this code of java which TextPrinter class in j

itext pdf verify if signature is visible or invisible

:I am currently using Itext 5.4.4 and I would like to know if it is possible to check if a signature in my current PDF is visible or invisible. Is this possible? Or do I have to upgrade to a newer versión of Itext? 1:You can do it like the code below.

C# application not running on startup

:I can't for the life of me figure this one out. I have created a fairly large C# application that basically runs a bunch of separate components and reboots the machine periodically. The idea of this application is basically to automate a process that we

How to read integers and date in binary file

:I have a binary file of records. Each record is of the following format:Each record consists of two integers, number of vehicles and number of persons involved; a floating point number, severity code; and a string which contains the date of the accident.

checkout when you close the tab

:In my application with Java EE and JSF 2.0 I would like that when the user closes the tab of the application the session ends. If this user has opened another tab in the application then the session of this other tab should not be closed. This so to not

PHP SoapServer formatting

:I am new to SOAP and trying to format a SOAP response using PHP's SoapServer class.It might be useful to know that this is for an EWS Push Subscription callback service and that I am using the php-ews library. I have managed to subscribe to the EWS Push

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