search for: get_id

Displaying 20 results from an estimated 104 matches for "get_id".

2004 Jan 19
1
self.get_id
Hi! Is it possible to somehow eliminate the use of the self.get_id''s in most situations? When you set up an event, you always must type sg. like evt_tree_key_down(self.get_id) {|e| where self.get_id can be the default or something... Gergo -- +-[ Kontra, Gergely<kgergely@mcl.hu> PhD student Room IB113 ]---------+ | http://www.mcl.hu/~kgergely...
2010 Feb 26
2
Problem accessing sub-methods of functions stored in a vector
...nction, this only works directly. When I try to access these within an array only the first declared sub-function is run. For example I have the function: agent <- function(id) { # MANY VARIABLES DECLARED list( set_id = function(newid) { id <<- newid }, get_id = function(newid) { return(id) }, # LOTS MORE SUB FUNCTIONS ) } If I create a variable to hold this function, I can then access all the subfunctions without problem Example: myAgent = agent(1) myAgent$get_id() # Works fine However, once this function is stored in a vector,...
2006 Nov 23
0
[754] trunk/wxruby2/samples/bigdemo: Rubified samples and added in missing client data sample code
...oBox.new(self, 500, "default value", Wx::Point.new(90,50), Wx::DEFAULT_SIZE, </span><span class="cx"> sampleList, Wx::CB_DROPDOWN) </span><span class="cx"> </span><del>- evt_combobox(cb.get_id()) {|event| on_combobox(event)} - evt_text(cb.get_id()) {|event| on_evt_text(event)} - evt_text_enter(cb.get_id()) {|event| on_evt_text_enter(event)} </del><ins>+ evt_combobox(cb.get_id) {|event| on_combobox(event)} + evt_text(cb.get_id) {|event| on_evt_text(...
2012 Oct 02
1
patch proposal for ssh-copy-id script
Hello everybody, I write an update version of ssh-copy-id script in order to support sshd non running on standard port 22. So I added another parameter to the script to allow user to specify the daemon port. I've also changed the way the command line parameter are retrieved in order to have a more "robust" way of getting them using getopts. Due to this change host name must be
2009 Sep 29
0
[PATCH 4/4] lguest: GET_ID "support"
...1654,7 +1654,11 @@ static void blk_request(struct virtqueue * In general the virtio block driver is allowed to try SCSI commands. * It'd be nice if we supported eject, for example, but we don't. */ - if (out->type & VIRTIO_BLK_T_SCSI_CMD) { + if (out->type == VIRTIO_BLK_T_GET_ID) { + fprintf(stderr, "GET ID command unsupported\n"); + *in = VIRTIO_BLK_S_UNSUPP; + wlen = sizeof(*in); + } else if (out->type & VIRTIO_BLK_T_SCSI_CMD) { fprintf(stderr, "Scsi commands unsupported\n"); *in = VIRTIO_BLK_S_UNSUPP; wlen = sizeof(*in); @@ -1751,6...
2009 Sep 29
0
[PATCH 4/4] lguest: GET_ID "support"
...1654,7 +1654,11 @@ static void blk_request(struct virtqueue * In general the virtio block driver is allowed to try SCSI commands. * It'd be nice if we supported eject, for example, but we don't. */ - if (out->type & VIRTIO_BLK_T_SCSI_CMD) { + if (out->type == VIRTIO_BLK_T_GET_ID) { + fprintf(stderr, "GET ID command unsupported\n"); + *in = VIRTIO_BLK_S_UNSUPP; + wlen = sizeof(*in); + } else if (out->type & VIRTIO_BLK_T_SCSI_CMD) { fprintf(stderr, "Scsi commands unsupported\n"); *in = VIRTIO_BLK_S_UNSUPP; wlen = sizeof(*in); @@ -1751,6...
2011 Dec 20
3
ssh-copy-id -p port option
..." : ".*\.pub" > /dev/null ; then - ID_FILE="$1" - else - ID_FILE="$1.pub" - fi - shift # and this should leave $1 as the target name - fi -else - if [ x$SSH_AUTH_SOCK != x ] && ssh-add -L >/dev/null 2>&1; then - GET_ID="$GET_ID ssh-add -L" - fi +while [ $# -gt 0 ]; do + case "$1" in + -i) + shift + # remains last argument or next argument is another option + if [ -z "$2" ] || expr "$1" : "^--\?[a-z]*\$" > /dev/null ; then + OPT_I=&quo...
2018 Oct 02
1
[supermin PATCH] rpm: generalize openSUSE support
...+++ b/src/ph_rpm.ml @@ -40,7 +40,8 @@ let fedora_detect () = let opensuse_detect () = Config.rpm <> "no" && Config.rpm2cpio <> "no" && rpm_is_available () && Config.zypper <> "no" && - (List.mem (Os_release.get_id ()) [ "opensuse-leap"; "opensuse"; "sled"; "sles" ] || + (List.mem (Os_release.get_id ()) [ "sled"; "sles" ] || + string_prefix "opensuse" (Os_release.get_id ()) || try (stat "/etc/SuSE-release").st_kind =...
2016 Aug 31
8
[PATCH 0/2] supermin: use /etc/os-release
Hi, let's make supermin use /etc/os-release as primary source instead of the various release files in /etc; apparently distros (e.g. openSUSE) are starting removing them. Thanks, Pino Toscano (2): Add simple handling of /etc/os-release Use os-release to detect the distro src/Makefile.am | 3 +++ src/dpkg.ml | 3 ++- src/os_release.ml | 78
2007 Sep 15
2
wxRuby 1.9.1 and id accessor consistency problem
Hi all, wxRuby 1.9.1 introduced great Rubish style accessors (x.label as a synonym for x.get_label). I just found that get_id has no corresponding Rubish style id accessor. For a CheckListBox or a StaticText (I haven''t checked for other kind of controls), id just returns the Ruby object_id. This is very confusing and not consistent with other accessors. Chauk-Mean. ____________________________________________...
2001 Sep 27
3
[PATCH] ssh-copy-id should do chmod go-w
Hi, quick patch to ssh-copy-id to make it set the file modes more correctly. Thanks, Matthew --- contrib/ssh-copy-id.orig Thu Sep 27 21:47:44 2001 +++ contrib/ssh-copy-id Thu Sep 27 21:47:52 2001 @@ -33,7 +33,7 @@ exit 1 fi -{ eval "$GET_ID" ; } | ssh $1 "test -d .ssh || mkdir .ssh ; cat >> .ssh/authori zed_keys ; chmod g-w . .ssh .ssh/authorized_keys" +{ eval "$GET_ID" ; } | ssh $1 "test -d .ssh || mkdir .ssh ; cat >> .ssh/authori zed_keys ; chmod go-w . .ssh .ssh/authorized_keys" cat...
2016 Aug 31
0
[PATCH 2/2] Use os-release to detect the distro
...t () = Config.dpkg_query <> "no" && Config.dpkg_divert <> "no" && Config.apt_get <> "no" && - try (stat "/etc/debian_version").st_kind = S_REG with Unix_error _ -> false + (List.mem (Os_release.get_id ()) [ "debian"; "ubuntu" ] || + try (stat "/etc/debian_version").st_kind = S_REG with Unix_error _ -> false) let dpkg_primary_arch = ref "" let settings = ref no_settings diff --git a/src/pacman.ml b/src/pacman.ml index 3340fa6..c35668a 100644 ---...
2018 Oct 01
2
[supermin PATCH] rpm: support openSUSE Leap 15
...+++ b/src/ph_rpm.ml @@ -40,7 +40,7 @@ let fedora_detect () = let opensuse_detect () = Config.rpm <> "no" && Config.rpm2cpio <> "no" && rpm_is_available () && Config.zypper <> "no" && - (List.mem (Os_release.get_id ()) [ "opensuse"; "sled"; "sles" ] || + (List.mem (Os_release.get_id ()) [ "opensuse-leap"; "opensuse"; "sled"; "sles" ] || try (stat "/etc/SuSE-release").st_kind = S_REG with Unix_error _ -> false) let m...
2006 Aug 25
3
Patch to wxComboBox.rbw
This patch fixes the sample so it works correctly. You''ll need to patches in the previous e-mail. Roy _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
2009 Jan 29
4
Help understanding EVERYTHING
Team, I am trying to learn a GUI for Ruby and I picked wxRuby. The problem is that I am kind of slow learning this and I now feel frustrated after trying for about at least 7 hours. I am trying to design a simple Sudoku 9x9 grid to display numbers, 1 - 9, using buttons. I posted a question on Ruby forum ruby-talk and a gentleman, Alex Fenton, answered my questions. Alex gave me what appear to be
2008 Jan 31
1
RFC: ssh-copy-id tweaks
...st accept password authentication, # or one of the other keys in your ssh-agent, for this to work. -ID_FILE="${HOME}/.ssh/identity.pub" +ID_FILE="${HOME}/.ssh/id_dsa.pub" if [ "-i" = "$1" ]; then shift @@ -38,7 +38,7 @@ exit 1 fi -{ eval "$GET_ID" ; } | ssh $1 "umask 077; test -d .ssh || mkdir .ssh ; cat >> .ssh/authorized_keys" || exit 1 +{ eval "$GET_ID" ; } | ssh $1 "umask 077; test -d .ssh || mkdir .ssh ; cat >> .ssh/authorized_keys && sort -u -o .ssh/authorized_keys .ssh/authorized_keys...
2009 Sep 04
3
[LLVMdev] TOT opt does not terminate!
...orning, and of a week ago: clang foo.c and clang -O1 foo.c work fine. clang -O2 foo.c and clang -O3 foo.c do not terminate. (At least after 10 minutes) If I generate the bit code (clang-cc -emit-llvmbc) and then run: opt -O3 foo.bc it does not terminate. //foo.c int get_id(int); typedef short short2 __attribute__ ((vector_size (2))); union _X { short2 s; int i; }; typedef union _X X; inline short2 as_short2(int x) { X result; result.i = x; return result.s; } inline int as_int(short2 x) { X result; resul...
2009 Aug 27
1
[patch] ssh-copy-id: improve error reporting with -i and documentation
...f [ "-i" = "$1" ]; then fi shift # and this should leave $1 as the target name fi + if [ ! -e "$ID_FILE" ]; then + echo "$0: ERROR: $ID_FILE does not exist" >&2 + exit 1 + fi else if [ x$SSH_AUTH_SOCK != x ] ; then GET_ID="$GET_ID ssh-add -L" Index: contrib/ssh-copy-id.1 =================================================================== RCS file: /cvs/openssh/contrib/ssh-copy-id.1,v retrieving revision 1.3 diff -u -p -r1.3 ssh-copy-id.1 --- contrib/ssh-copy-id.1 21 Jan 2009 09:29:21 -0000 1.3 +++ contrib/...
2017 Sep 01
0
[supermin][PATCH] os-release: use ID_LIKE as a fallback for SUSE detection
...match field with | "ID" -> id := value + | "ID_LIKE" -> id_like := String.split_on_char ' ' value | _ -> () ) lines; - Some { id = !id; } + Some { id = !id; id_like = !id_like } ) else None @@ -76,3 +79,8 @@ let get_id () = match get_data () with | None -> "" | Some d -> d.id + +let get_id_like () = + match get_data () with + | None -> [] + | Some d -> d.id_like diff --git a/src/os_release.mli b/src/os_release.mli index 2ae349b..e9f2993 100644 --- a/src/os_release.mli +++ b/src/o...
2017 Sep 01
0
[supermin][PATCH v2] os-release: use ID_LIKE as a fallback for SUSE detection
...match field with | "ID" -> id := value + | "ID_LIKE" -> id_like := string_split " " value | _ -> () ) lines; - Some { id = !id; } + Some { id = !id; id_like = !id_like } ) else None @@ -76,3 +79,8 @@ let get_id () = match get_data () with | None -> "" | Some d -> d.id + +let get_id_like () = + match get_data () with + | None -> [] + | Some d -> d.id_like diff --git a/src/os_release.mli b/src/os_release.mli index 2ae349b..e9f2993 100644 --- a/src/os_release.mli +++ b/src/o...