Displaying 20 results from an estimated 48 matches for "astring".
Did you mean:
string
2008 Mar 17
4
VNC authentication failures to windows HVM
I''ve set xend service properties as follows:
config/vnc-listen astring \''0.0.0.0\''
config/vncpasswd astring \''vnc\''
config/default-nic astring ''nge1''
but I get an authentication error whenever I try to connect to the
console with
''vncviewer :0'' - I''m on the xvm host itself.
other rele...
2006 Sep 05
1
Inflector::pluralize("Agencies")=="Agency" ?
...nd it goes back to the singular ?
Is this as expected ?
Also, I have a need to know if a word is singular or plural, and to
convert it to one or the other regardless of it already being so.
Anyway, I''ve written these which seem to work. Do they already exist
somewhere ?
def is_plural?(astring)
Inflector::singularize(astring)!=astring
end
def is_singular?(astring)
Inflector::singularize(astring)==astring
end
def pluralize2(astring)
is_singular?(astring) ? Inflector::pluralize(astring) : astring
end
def singularize2(astring)
is_plural?(astring) ? Inflector::singularize(astring) : ast...
2009 Aug 04
4
regex question
Hi,
I am getting stuck over an apparently simple problem in the use of regular expressions :
To collect together the first letters of the words from the Perl motto, ?There is more than one way to do it? in the following form ? TIMTOWTDI.
I tried the following code :
?
##### A regex problem with the Perl motto
astr<-"There is more than one way to do it"
b1<-grep("\\<",
2007 Dec 17
16
How to configure default NIC when creating Guest
Hi All,
I have a machine with three network cards, and the third card(named
e1000g2) is in use now. I want to use e1000g2 as default NIC when I
create Guest. How can I change the default NIC? I can override the
default value of config/default-nic property of svc:/system/xvm/xend.
But xend still use e1000g0 when creating Guest.
BTW, I can explicitly set "bridge=e1000g2" when creating
2009 Dec 05
4
paste adjacent elements matching string
Hi all,
I would like to combine elements of a vector:
vec <- c("astring", "b", "cstring", "d", "e")
> vec
[1] "astring" "b" "cstring" "d" "e"
such that for every element that contains "string" at the end, it is
combined with the next element, s...
2007 Nov 19
3
virt-install complains about vnc-password not being set
...39;,
conn=self)
libvirt.libvirtError: virDomainCreateLinux() failed POST operation
failed: (xend.err ''Error creating domain: vncpasswd is not set up in
VMconfig and xend-config.'')
I have set the vncpassword property as follows:
# svccfg -s xvm/xend setprop config/vncpasswd = astring: \”somepwd\”
# svcadm refresh xvm/xend; svcadm restart xvm/xend
# svccfg -s xvm/xend setprop config/vnc-listen = astring: \”0.0.0.0\”
# svcadm refresh xvm/xend; svcadm restart xvm/xend
Is there something particular I need to set the password to? Im not
really concerned with authentication at the...
2007 May 11
2
Problems with BEFORE searches.
Ok, I am trying to modify some code given to me by the author of the
dspam plugin for dovecot (sorry the name eludes me). I am modifying it
to handle UNSEEN differently than SEEN.
Below is the python code. I am not a python programmer, but I get the
basic idea.
ok, uids = conn.search(None, 'BEFORE', unreadsentbefore, 'SEEN')
"11-May-2007 06:18:29 -0600" is the value
2013 Mar 15
2
Icalendar.Parse(StringIO.new(aString)) complains about missing method, bytesize
I need to send an ics file to a web service, so however it gets there it
will arrive as a string. Is there another way to begin Icalendar''s Parse
than with a file?
I''m currently sending the file using the curl command...
curl -v --data-urlencode ics at invite.ics http://127.0.0.1:4567/ics2event
I''ve tried curl''s --data-binary and sinatra''s
2008 Oct 26
9
vncviewer reporting connection refused (146)
...bin/virt-install -n windowsts -r 2048 -s 20 -f /data/domU/windowsts --hvm --vnc -c /dev/dsk/c0t0d0s2
The vncviewer is unable to open a connection to the xend VNC server and is failing with the Connection refused (146) error message.
xend is set up with the following properties:
config/vnc-listen=astring:"0.0.0.0"
config/vncpasswd=astring:"newroot"
config/default-nic=astring:""
The problem seems to be that the VNC server is starting at a later time than that at which the VNC viewer is attempting to connect to it. After the virt-install command fails, I run netstat -an...
2008 Jun 26
2
Oops: zfs-auto-snapshot with at scheduling
Hi all,
I''ll attach a new version zfs-auto-snapshot including some more
improvements, and probably some new bugs. Seriously, I have
tested it, but certainly not all functionality, so please let me know
about any (new) problems you come across.
Except from the change log:
- Added support to schedule using at(1), see
README.zfs-auto-snapshot.txt
- take_snapshot will only run if
2014 Aug 04
6
[hivex] Segfault for an integer value to node_set_value
Hi,
When an integer argument is passed as value, node_set_value
segfaults. Reproducer is at the end of this message
The backtrace points at hivex-py.c, function get_value. While obj
is non-NULL, `bytes = PyUnicode_AsUTF8String (obj);` returns NULL.
Kind regards,
Peter
https://lekensteyn.nl
#!/usr/bin/env python3
import hivex, sys
h = hivex.Hivex(sys.argv[1])
print(h)
val = {
2011 Apr 03
4
replace last 3 characters of string
Hi,
I would like to replace the last tree characters of the values of a certain
column in a dataframe.
This replacement should only take place if the last three characters
correspond to the value "/:/" and they should be replaced with ""(blank)
I cannot perform a simple gsub because the characters /:/ might also be
present somewhere else in the string values and then they
2010 Jul 03
1
[PATCH] hivex: add hivex_set_value api call and perl bindings, tests
...UnusedFlags]),
+ "set a single (key, value) pair at a given node",
+ "\
+This call can be used to set a single (key, value) pair
+stored in C<node>.
C<node> is the node to modify.";
]
@@ -459,6 +467,7 @@ let name_of_argt = function
| ANode n | AValue n | AString n | AStringNullable n -> n
| AOpenFlags | AUnusedFlags -> "flags"
| ASetValues -> "values"
+ | ASetValue -> "val"
(* Check function names etc. for consistency. *)
let check_functions () =
@@ -806,6 +815,7 @@ and generate_c_prototype ?(extern = fa...
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
2006 Jan 10
1
VMauthenticate always asks for mailbox
I've been trying to use the VMAuthenticate function in 1.2+. This
function is supposed to "behave[s] the same way as the Authenticate
application, but the passwords are taken from voicemail.conf."
The problem is that it always gives the "comedian mail" prompt and
requests the mailbox number, even though I provide the mailbox
number already.
The upshot is that
2013 Apr 29
1
CATENATE doesn't support literal+ url
...rl] missing or invalid uid
a4 OK NOOP completed.
I believe the RFCs indicate that nonsync literal URLs should be permitted.
RFC 4469 section 5:
append-data =/ "CATENATE" SP "(" cat-part *(SP cat-part) ")"
cat-part = text-literal / url
url = "URL" SP astring
RFC 3501 section 9:
astring = 1*ASTRING-CHAR / string
string = quoted / literal
RFC 2088 section 4:
literal ::= "{" number ["+"] "}" CRLF *CHAR8
2010 Jul 03
1
[PATCH] hivex: add hivex_set_value api call
...UnusedFlags]),
+ "set a single (key, value) pair at a given node",
+ "\
+This call can be used to set a single (key, value) pair
+stored in C<node>.
C<node> is the node to modify.";
]
@@ -459,6 +467,7 @@ let name_of_argt = function
| ANode n | AValue n | AString n | AStringNullable n -> n
| AOpenFlags | AUnusedFlags -> "flags"
| ASetValues -> "values"
+ | ASetValue -> "val"
(* Check function names etc. for consistency. *)
let check_functions () =
@@ -806,6 +815,7 @@ and generate_c_prototype ?(extern = fa...
2017 Oct 10
0
Opensolaris-ish joins but does not seem to be valid
...39; backend and will be able to use RSAT on a WIN 7
or 8.1 to admin it.
>
> This allows us to set some properties in idmap to tell it which AD
> attribute (CN) to query to find out how to map AD users to local
> users: svccfg -s svc:/system/idmap setprop
> config/ad_unixgroup_attr=astring: cn svccfg -s svc:/system/idmap
> setprop config/ad_unixuser_attr=astring: cn svccfg -s
> svc:/system/idmap setprop config/directory_based_mapping=astring:
> name svcadm refresh idmap
>
>
> At this point smb/server and idmap should be able to look up AD users
> and map them t...
2010 Aug 14
4
\" character in folder name results in strange LIST
Hi Timo,
>> * LIST (\HasNoChildren) "/" "folder1"
>> * LIST (\HasNoChildren) "/" "folder2"
>> * LIST (\HasNoChildren) "/" {9}
>> six"wafer
>> . OK List completed.
>>
>> Note the {9} length of the following real folder name. Is this normal
>> handling of special folder names ?
>Yes.
Well,
2006 Dec 17
1
1.4 sounds long space before and after prompt
Is anyone else finding in the new audio files that the longer space
at the beginning and end of the files tends to be extremely irritating?
An excellent example is when going into voicemail and Allison says how
many messages you have, the space between the files is annoyingly long:
you have ...... four ...... old ...... messages
..and..
first ...... message ...... received ..... July .....