Displaying 20 results from an estimated 1000 matches similar to: "reading multiple key=value pairs per line"
2014 Feb 03
1
[PATCH] hivex: python: value_value no longer generates Unicode strings
This fixes Github issue #2 reported by "kupiakos".
<https://github.com/libguestfs/hivex/issues/2>
---
generator/generator.ml | 2 +-
python/t/210-setvalue.py | 26 +++++++++++++++++---------
2 files changed, 18 insertions(+), 10 deletions(-)
diff --git a/generator/generator.ml b/generator/generator.ml
index 908c5f3..02aaf12 100755
--- a/generator/generator.ml
+++
2009 May 19
2
Feature request: "database show" from manager API
Hi,
In ASTDB, I've got a rather long list of entries like:
/FamilyA/Key1 Value1
/FamilyA/Key2 Value2
/FamilyA/Key3 Value3
...
Instead of sending several DBGet queries (and parsing every response), I'm
wondering if a single "database show" or "database show family" query could
be implemented.
Alternative if to use ssh ("asterisk -rx "database show
2007 Apr 05
3
Extending assigns in controller specs?
Hello,
I am interested in enhancing assigns in controller specs to do
things like the following
assigns[:key1, :key2, :key3] #=> vals for keys
Is there away to "break open" this construction to overload the :[] operator?
Thanks.
-Chris
2012 Oct 10
2
reading in a (very simple) list from a file
Apologies - I feel this is a very simple thing to do yet I am failing
massively. I keep finding information about how to do much more complicated
things (usually on this mailing list!), which then fail when I try to apply
it to my simple task.
Anyway, all I want to do is read in a series of key-value pairs from a file.
I thought a list would be a good way to keep these, such that I could access
2008 Jun 09
1
Basic Question on Keys/Values
As a java programmer, I'm having issue conceptualizing the following use
case:
Given an value, passed into a function, how do I pull out the lookup?
Ie.
A list of keys (key1, key2, key3)
A list of values (val1,val2,val3)
I want to write a function (or is there something built in?) such that
Callit <- (thekey) {
(magic happens here)
Return value
}
Any ideas?
Thanks a bunch!
2006 Oct 25
2
[PATCH] Edge buttons
Here are my patches to add edge + button functionality.
I still feel that there is a problem with gconf, but I have just made it
so that the edge button functionality works.
I have included a patch for gconf to display AnyButton if it is set
to 0. There is also a patch to make the edge size configurable
because 1 pixel was too small and the mouse keeps slipping off
when using it for the
2011 May 02
2
INSERT OR UPDATE
I'm trying to insert rows of a data.frame into a database table, or update where the key fields of a record already exist in the table. I've come up with a possible solution below, but would like to hear if anyone has a better solution.
# The problem demonstrated:
# Create a data.frame with test values
library(RODBC)
tbl <- data.frame(
key1 = rep(1:3, each = 2),
key2 =
2012 Aug 14
1
Can we interlink these three if conditions?
key1.=c(1, 2, 3)
key2.=c(2)
if (identical(key1.,key2.) == "TRUE") {
cat("No Errors found")
}
if (length(setdiff(key1., key2.)) !=0) {
2019 Jan 17
1
[hivex PATCH] ruby: improve test functions
Use better functions to check for proper values instead of assert:
- refute_nil for non-null functions
- assert_equal for checking equality
Also, make sure that the parameters for assert_equal are correct:
expected value, then got value.
---
ruby/tests/tc_120_rlenvalue.rb | 4 ++--
ruby/tests/tc_130_special.rb | 12 ++++++------
ruby/tests/tc_200_write.rb | 4 ++--
2015 May 30
3
Using two agents
On 30/05/15 08.34, Nico Kadel-Garcia wrote:
> On Sat, May 30, 2015 at 8:00 AM, Kasper Dupont
> <kasperd at kdxdx.23.may.2015.kasperd.net> wrote:
> > As far as I can tell when the ssh command uses an agent to
> > authenticate to a server and then forwards an agent to that
> > server, it will always use the same agent for both purposes.
> >
> > Has there
2013 Oct 20
1
Call parking issue with Cisco SPA phone
I'm trying to implement call parking with asterisk and Cisco SPA504G phones:
features.conf
parkext => 700
parkpos => 701-702
context => parkedcalls
I defined one of the unused keys to park the calls:
Key2:
fnc=sd;ext=700 at 10.0.1.103;vid=1;nme=Park
I also defined two other keys to pickup/unpark the calls:
Key3:
fnc=blf+sd+cp;sub=701 at 10.0.1.103
Key4:
fnc=blf+sd+cp;sub=702 at
2009 Mar 04
3
Table Transformation
Dear R-experts,
recently, I started to discover the world of R. I came across a problem,
that I was unable to solve by myself (including searches in R-help, etc.)
I have a flat table similar to
key1 key2 value1
abcd_1 BP 10
abcd_1 BSMP 1A
abcd_1 PD 25
abcd_2 BP 20
abcd_3 BP 80
abcd_4 IA 30
abcd_4 PD 70
abcd_4 PS N
I wish to transform this table to obtain the following result:
key2
key1 BP
2005 Feb 24
1
Place more than one key with xyplot
Dear R-users
I have some trouble to generate more than one key with xyplot using the
legend argument.
I would like one key with rectangles:
library(lattice)
library(grid)
key1 <- list(rectangles = list(col= c(rev(heat.colors(5))[1:5],
rev(heat.colors(5))[4:1])),
title="Percentiles",
space="right",
2010 Aug 23
1
Sort ordering
Using MultiValueSorter, I can sort by key1, key2, relevance; or relevance, key1, key2.
But AFAIK, I can't sort by key1, relevance, key2. Unless I spool out the entire result set or write some C++.
I wonder if we need a new 'sort by' function that accepts any combination of keys and relevance in any order? The function would make it's own optimisations (ie is relevance first or
2009 Jul 25
1
Ordering of key offers with "ssh -i"
Hi
Is it expected behaviour that when using "ssh -i", the key specified in the
"-i" option is only sent to the server *after* trying all other keys in ~/.ssh
? I couldn't find anything about this in the manual, and it seems like
surprising behaviour to me. It can be the cause of unexpected failures in some
cases, if a server has MaxAuthTries set to a value which is
2005 Aug 08
1
php_serialize-1.0.2.1.rb questions
Has anyone used this to get data out of PHP sessions?
I can get data out using the php_unserialize function however I am
getting a array of strings that looks like this:
["key1: data1","key2: data2"]
I would rather get RoR session style of associative arrays
["key1"=>"data", "key2"=>"data2"]
Am I just being dense and there is an
2009 Jul 08
1
[PATCH: host-browser replacement 0/3] replacement of host-browser on ovirt-server
The purpose of this patch is to replace the identify function in
host-browser.rb with a new script, host-register.rb.
host-register.rb is a qmf ruby console that interfaces with the newly
added matahari qmf agent on the ovirt node. While it stores node data
in the database with the same behavior as the original host-browser
implementation, it acquires the data using the amqp protocol (and
2010 Mar 03
1
data.table evaluating columns
Hi everyone,
I have the following code that works in data frames taht I would like tow
ork in data.tables . However, I'm not really sure how to go about it.
I basically have the following
names = c("data1", "data2")
frame = data.frame(list(key1=as.integer(c(1,2,3,4,5,6)),
key2=as.integer(c(1,2,3,2,5,6)),data1 = c(3,3,2,3,5,2), data2=
c(3,3,2,3,5,2)))
for(i in
2009 May 22
3
Parsing Asterisk's .conf files from Perl, Java or PHP file
Hi,
To a large extend, Asterisk's /etc/asterisk/*.conf configuration files
conform to a format such as:
[section1]
key1=value1
key2=value2
[section2]
key1=value1
key2=value2
...
To increase coherence when running custom-made application in Perl, Java,
PHP, ...) and Asterisk on the same platform, I'm wondering if could extend a
bit Asterisk's config files instead of duplicating data
2009 Sep 08
1
Function to query ASTDB families
Hi,
Asterisk database is made of <family><key> records such as:
fam key1 val1
fam key2 val2
...
fam key100 val100
I'm looking for the smartest way to iterate among different keys associated
to a given family.
One way to do this is to parse "database show fam" response.
Is there something smarter ?
Something like ${DBKEYS(fam)} which would evaluate to "key1