Displaying 20 results from an estimated 2000 matches similar to: "Extending assigns in controller specs?"
2013 Jan 18
5
reading multiple key=value pairs per line
Hi,
Thanks for a great environmentfor statistical computing :-)
I have some input data in a file ("input_kvpairs.csv") of the form
key1=23, key2=67, key3="hello there"
key1=7, key2=22, key3="how are you"
key1=2, key2=77, key3="nice day, thanks"
Now in my head I wish it was of the form ("input.csv")
#key1, key2, key3
23, 67, "hello
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
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
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
+++
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
2009 Jul 10
2
[PATCH: server 0/3] Add host-register.rb (replaces host-browser.rb in part)
Removes node identification functionality from host-browser.rb and adds a new script,
host-register.rb, that takes over that functionality.
The chief difference is that host-browser used a simple TCP server setup to get data
from the node, while host-register uses the qpid bus to do so. Specifically, it
communicates with the matahari qmf agent added to the node in two related patchsets to
node
2006 Oct 16
2
Edge + Mouse button draft patches
Attached are my draft patches to add edge + mouse button to the
actions
It is useful because the edge bindings are too easily triggered, an edge +
mouse button is good because it confirms the action. An additional side
benefit is that the mouse wheel can be used for rotating the cube and for
the switcher (it is an excellent alternative to alt-tab).
I wanted to share the patches before cleaning
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
2006 Jan 16
3
routing to controller inside module
Hey,
am i to stupid to find the information about how to route to a
controller in a module? Maybe module support has gone!
The controller is under:
app/controllers/admin/my_controller.rb
The my_controller.rb file looks like this:
module Admin
class MyController
def index
render :text => ''Hello!''
end
end
end
How does a route to all controllers under module
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
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) {
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
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 =
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
2014 Aug 16
7
[hivex] [PATCH 0/6] Python fixes for node_set_value
Hi,
This patch series is based on a prior patch[1], splitting off changes as
requested and incorporating feedback from Richard Jones. It introduces type
validation to avoid segmentation faults (instead, it reports an exception) and
fixes handling of the bytes type in Python 3.
Major changes since that series:
- Drop newly introduced support for integer types for DWORD/QWORDS
- Reject Unicode
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",
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
2012 Apr 30
2
for loop problem
Hi all,
I was wondering if you can help me with the following situation:
I have a data frame that includes weather station data for 30 years in
the form:
YEAR, MONTH, DAY, TEMP
1970, 01, 01, -15
...
1999, 12, 31, -21
I would like to add another variable "JULIAN" that assigns the integers
1 to 365 (and 1 to 366 for leap years) for each day of a year over
multiple years.
Here is what