Questions tagged [name-value]

The tag has no usage guidance.

name-value
Filter by
Sorted by
Tagged with
-2 votes
1 answer
41 views

Convert Table data in a array to multiple objects in array

I have an array data = [ 0 3x abcd aezakmi 900 1 2x defg panjer 800 2 1x hijk flyhigh 750 ] I want to convert it to this data = [ [`{0}{3x}{abcd}{aezakmi}{900}`] [`{1}{2x}{defg}{...
viswanath's user avatar
0 votes
1 answer
109 views

send name value pairs to simulate web form in python

I'm working on parsing name/value pairs in Python 3. I want to send name/value pairs to my script to simulate them coming from a web form. I'm trying something like: python myscript.py?v1=a&v2=b&...
Shawn's user avatar
  • 3,069
2 votes
2 answers
94 views

Can I avoid to use the "value" attribute to actually retrieve the value of an element in an Enum?

Imagine a class that works like a container of database table information (table names and columns). This is an implementation. class TABLES(Enum): class TABLE1: """ ...
chattershuts's user avatar
1 vote
1 answer
420 views

Parse Email Body with Multiple Lines

How would I go about parsing a email body with multiple lines in javascript? Example Employee: 123456789 Name: John Doe This is what I'm using right now. var emailObj = {}; var body_text = inputs....
Dan Chan's user avatar
0 votes
1 answer
137 views

Why does add_column assign a letter to the data?

I tried reading through R's documentation on the add_column function, but I'm a little confused as to the examples it provides. See below: # add_column --------------------------------- df <- ...
Stephen's user avatar
  • 173
1 vote
1 answer
46 views

What is Paypal's Recurring Payment Profile RPSTATE parameter?

PayPal's Recurring Payment Profile inquiry will return a string of parameters similar to any other PayPal "RESULT". Most of these are either self-evident, or are explained in the docs. I can not find ...
Parapluie's user avatar
  • 716
1 vote
2 answers
100 views

Query that displays which attributes an instance possesses, out of a superset of attributes

I have a relational dataset in Bigquery containing two tables. The first table holds customer data +-------------+--------+ | Customer ID | Name | +-------------+--------+ | 1 | Bob ...
Zak Smith-Sanga's user avatar
0 votes
2 answers
410 views

Azure Api "NameValue" within "NameValue" is not working

Trying to use Azure API "NameValue" variable within another variable. //NameValue variable 1 Namedvalue_URL_Name: sts://domain.com //NameValue variable 2 that using above variable within. ...
user3711357's user avatar
  • 1,525
1 vote
1 answer
89 views

Variable argument pairs in MATLAB functions

I'm trying to develop a function that contains multiple arguments. To be as robust as possible, I want to be able to call my function as follows: foo( x, y, z, 'OptionalArg1', bar, 'OptionalArg2', ...
Iliketoproveit's user avatar
-1 votes
1 answer
194 views

Xquery statement to get a value for specific name

I am trying to write a xquery to get the Value for a specific name .Below is the request payload: i.e. if the Name ="ID" then get the "Value" for that tag (i.e.1000000000.)If the Name="User" get the "...
Simran's user avatar
  • 67
0 votes
0 answers
40 views

MVC 5 post serializing issue when name value pair is missing within the collection [duplicate]

I recently ran into a problem within my MVC5 C# project where my dynamically generated HTML elements (a collection of phone numbers) could be posted to the server where indexes were missing. Like ...
RichieMN's user avatar
  • 935
1 vote
1 answer
26 views

Function that storages variables from a list automatically, in another function

For example I'd like to storage my variables only in f() function with the function setObj(argument), whose argument is a list with a,b,c,d fields, for example. f<-function(x){ setObj(...
Gianluca Pietronigro's user avatar
0 votes
1 answer
899 views

Xquery to map the value of a specific name attribute

I am trying to create an xquery in jdeveloper . I am stuck at a small portion of it. It would be great if I get some suggestions. Below is the part I am stuck at The request is: `<variables> ...
Simran's user avatar
  • 67
1 vote
1 answer
1k views

Making a jar that accepts names and values on command line

Relevant Links: Java: Passing combination of named and unnamed parameters to executable Jar/Main Method Passing arguments to JAR which is required by Java Interpreter I understand how to pass ...
BurntPieCrust's user avatar
2 votes
1 answer
88 views

Oracle query, need one row output by id for multiple rows (name/value pairs)

I've been trying to figure this out for a while. I have a table where there are multiple rows containing name value pairs, type, and date (not included for simplicity). They are all tied by an id. ...
Laurie's user avatar
  • 21
0 votes
1 answer
112 views

Storing account settings in a single row with complex data

I need to store account settings for each account profile. I decided to use SQL DB for this, but not sure should I go with complex data (json/xml). I found answers Using a Single Row configuration ...
mko's user avatar
  • 7,045
0 votes
2 answers
271 views

Name value pair table vs parent child

I want to store about 100k rows of data, and all data some common field. All data have a category and other fields is base on category. For example if data is in category 1, It had extrafield1 and ...
Ali Akbar Azizi's user avatar
0 votes
0 answers
64 views

android name value pairs for HttpPost

I am new to android and I have a question about name value pairs that I am a little confused on. For example I am trying to post to the following example and get the response code using the endpoint: ...
adrian m's user avatar
-3 votes
2 answers
163 views

Need help formatting a JSON array

I have this array for my web service : {"update":true,"msg":"Logged in Bro","role":"admin"} Now, I need to use this in Android to work around my application beyond login. So what I need here is a ...
Krishnakant Mishra's user avatar
0 votes
1 answer
115 views

Access dynamic(mysql) multiple field values of selected options using jquery or javascript

<select id="sub-category" name="scat[]" multiple="multiple" placeholder="Select SubCategories"><option val=""></option>'; I have used select2 jquery plugin for selecting mutiple ...
dinesh citymate's user avatar
1 vote
2 answers
41 views

Need to manipulate string data using bash

I have data being displayed on the console in the following format: "name1", "value1", "name2", "value2", "name3", "value3", ... ... I need to somehow manipulate this output so that it will ...
p0ptha5tack's user avatar
1 vote
1 answer
576 views

how get name-value pair when creating JSON string from using JSON boost serialization?

Before answering this question I would request all you good people here to first take a look at this output that I am getting presently. The output is fetched from a sqlite3 table SiteCode which has ...
K.K's user avatar
  • 411
2 votes
4 answers
8k views

How to convert Object to NameValuePair ArrayList in Java?

Lets say we have an object of Class Person with all String parameters : Class Person { String name; String email; } Person p = new Person(); p.name = "ABC"; p.email = "[email protected]"; How do we ...
Parth mehta's user avatar
  • 1,438
0 votes
1 answer
723 views

Matlab Function - ask for user input for given argument

I have a Matlab function that has numerous name-value parameter inputs. For some of the parameter names, there are a lot of possible values (which are not always obvious) that the user can choose from....
RickyG's user avatar
  • 1
0 votes
1 answer
988 views

Remove or replace special character in namevaluepair for http post request android

I have a problem when I tried to post my data it logged as : [ObserverTRID=5QEET3TE10, ObsType=Evaluate, ObsDate=17-Jul-2014, ObsTime=09:22:12, // == loc ObsTitle=bolllloooo, //==obstset ...
Ahmad Arslan's user avatar
  • 4,528
1 vote
1 answer
904 views

Find/Replace in xml file, with name/value pairs

I'm trying to write a shell script which will take, as input, a set of name/value pairs and an XML file. The aim is to search within the XML file for the "name" string from the name/value pairs file ...
KetchupBottle's user avatar
15 votes
4 answers
58k views

Convert an array to an array of objects

How I can convert an array to an array of JavaScript objects. For example I have an array as data = [ ["fruits","frozen","fresh","rotten"], ["apples",884,494,494], ["oranges",4848,494,...
user3084017's user avatar
0 votes
1 answer
2k views

R plot, actual Row values instead of row numbers

I have a data set containing names of Solar Panel arrays, their dates of completion and location (long/lat). I created an rplot with the time of completion on the x axis and the names of each array ...
tijanicharles's user avatar
1 vote
1 answer
675 views

Java passing multidimensional array to PHP

I tryied to find some information about this but is a bit difficult since all i found is about javascript instead of java, I want to know how i can get it in php too because i m not sure how to do it ...
D4rWiNS's user avatar
  • 2,595
0 votes
2 answers
2k views

How can I convert a query string to variables in PHP?

I have a string like this stored in mysql table: ?name1=value1&name2=value2&name3=value3 originally this data was only going to be used to send GET data to another script but now i find ...
I wrestled a bear once.'s user avatar
0 votes
2 answers
157 views

Create this string exactly in Android

I want to build 2 same products for Android and iOs. The iOs already works, but the android doesnt, that's because of the format of the string. in iOs this is: NSString*jsonString = [[NSString alloc]...
David Raijmakers's user avatar
1 vote
0 answers
173 views

Posting HTTPS form results in html 404 status code

I keep getting a HTML 404 reply from the server when I try to login via a httppost (https). Not sure if this is a cookie problem or something else. The code should be good as I have copied it from ...
charlie0440's user avatar
1 vote
1 answer
363 views

Parsing xml name-value fields

In my xml, I am seraching for speciffic names and want to retrieve their value. for example i have this field: <n0:field> <n0:name n4:type="n3:string" xmlns:n3="http://www.w3.org/2001/...
Michael A's user avatar
  • 5,820
3 votes
1 answer
8k views

Sending Name Value Pair in POST using Jersey Client

How can i pass name value pairs as body to a POST ReST Service in Jersey. Something similar to the code below using Apache Commons PostMethod final PostMethod post = new PostMethod(url); post....
basiljames's user avatar
  • 4,797
0 votes
1 answer
504 views

How can I store name/value pairs in a file with Ruby where the values can be also multiline text? [closed]

How can I store name/value pairs (also called hashes) in a file with Ruby where the values can be also multiline text? Of course I want to code the most simple way. I have seen such text files ...
Konstantin's user avatar
  • 3,033
1 vote
1 answer
674 views

Oracle view creation from name value pair table

Folks, I have a oracle database table which has name value pairs. A set of name value pairs is identified by row_num. Also set size may vary. I want to create a view which converts set of name value ...
sigirisetti's user avatar
1 vote
1 answer
3k views

HttpPost android: 500 Server error with name value pairs , 200 ok without name value pairs in url

I have been trying to follow this tutorial:http://www.androidhive.info/2012/01/android-login-and-registration-with-php-mysql-and-sqlite/. It is to create an android login app. I've read through the ...
Leoa's user avatar
  • 1,167
0 votes
1 answer
47 views

how can I use array in place of name value pair in a function

In the below code how can I use options array which is passed as a argument to drawOval drawOval=function(options) { $triangle = new Triangle({ // how can I use options array here ...
deepsingh's user avatar
  • 161
12 votes
4 answers
8k views

Improve querying fields exist in MongoDB

I'm in progress with estimation of MongoDB for our customers. Per requirements we need associate with some entity ent variable set of name-value pairs. db.ent.insert({'a':5775, 'b':'b1'}) db.ent....
Dewfy's user avatar
  • 23.5k
4 votes
4 answers
5k views

Properties or Enums or static final

When it comes to declare predefined constants in a name-value pair, I have been randomly choosing between 'java.util.Properties', 'enums' or a separate class with 'public static final' values. For ...
dev's user avatar
  • 11.2k
0 votes
2 answers
747 views

Configuration object from name value pairs

I am working on a web app that needs to store and update configurations in a database. For example, I might store user preferences like default colors, languages, preferred date formats, etc. The ...
anonymous's user avatar
1 vote
2 answers
175 views

Any tradeoffs for putting a set of name value pairs in a single field rather than each in their own field

We have a set of user data that is made up of name/value pairs represented in a single document. We are using mongodb to store that data and are thinking to just put the document of name/value pairs ...
Vinae's user avatar
  • 13
3 votes
2 answers
10k views

XSD: is there a way to build an enumeration from name/value pairs?

I would like to have an enumeration in my XSD that specifies a set of name/value pairs corresponding to error codes and associated descriptions. E.g.: 101 Syntax error 102 Illegal operation 103 ...
Edward Hamlin's user avatar
72 votes
15 answers
53k views

How to deal with name/value pairs of function arguments in MATLAB

I have a function that takes optional arguments as name/value pairs. function example(varargin) % Lots of set up stuff vargs = varargin; nargs = length(vargs); names = vargs(1:2:nargs); values = ...
Richie Cotton's user avatar
2 votes
2 answers
2k views

Converting non-delimited text into name/value pairs in Delphi

I've got a text file that arrives at my application as many lines of the following form: <row amount="192.00" store="10" transaction_date="2009-10-22T12:08:49.640" comp_name="blah ...
robsoft's user avatar
  • 5,555
4 votes
5 answers
11k views

Javascript accessing name/value pairs

I'm getting JSON name/value pairs that looks like this: { "Name":"parentid", "Value":"blah" }, { "Name":"siteid", "Value":"blah" }, { "Name":"sitename", "Value":"blah" } But I ...
resopollution's user avatar
9 votes
4 answers
5k views

Turning a hash into a string of name-value pairs

If I'm turning a ruby hash into a string of name-value pairs (to be used in HTTP params, for example), is this the best way? # Define the hash fields = {"a" => "foo", "b" => "bar"} # Turn it ...
jerhinesmith's user avatar
  • 15.3k
93 votes
5 answers
45k views

What characters are allowed in an HTML attribute name?

In HTML attribute name=value pairs, what are the characters allowed for the 'name' portion? ..... Looking at some common attributes it appears that only letters (a-z and A-Z) are used, but what other ...
Robin Rodricks's user avatar
1 vote
2 answers
2k views

Name Value pairs and fact tables

I'm working on a star schema for analysis of posted form data. The site that the form data will be posted to is actually external to the site hosting the form, so only the data in the form will be ...
Simon Farrow's user avatar
  • 1,911