search for: xsp

Displaying 20 results from an estimated 28 matches for "xsp".

Did you mean: esp
2016 Jul 07
0
[PATCH v3 4/8] mllib: Add some imperative list manipulation functions.
...++++ 2 files changed, 56 insertions(+) diff --git a/mllib/common_utils.ml b/mllib/common_utils.ml index 77b9acd..40a19bc 100644 --- a/mllib/common_utils.ml +++ b/mllib/common_utils.ml @@ -282,6 +282,26 @@ let sort_uniq ?(cmp = Pervasives.compare) xs = let xs = uniq ~cmp xs in xs +let push xsp x = xsp := !xsp @ [x] +let unshift x xsp = xsp := x :: !xsp +let pop xsp = + let x, xs = + match List.rev !xsp with + | x :: xs -> x, xs + | [] -> failwith "pop" in + xsp := List.rev xs; + x +let shift xsp = + let x, xs = + match !xsp with + | x :: xs -> x, xs...
2017 Nov 21
2
[PATCH v3 0/2] common/mlstdutils: Extend the List module.
v2 -> v3: - Renamed List.assoc_ -> List.assoc_lbl. - Rebased on top of current master branch. Rich.
2016 Sep 23
2
[PATCH 1/2] mllib: move remove_duplicates from v2v
...re) xs = let xs = uniq ~cmp xs in xs +let remove_duplicates xs = + let h = Hashtbl.create (List.length xs) in + let rec loop = function + | [] -> [] + | x :: xs when Hashtbl.mem h x -> xs + | x :: xs -> Hashtbl.add h x true; x :: loop xs + in + loop xs + let push_back xsp x = xsp := !xsp @ [x] let push_front x xsp = xsp := x :: !xsp let pop_back xsp = diff --git a/mllib/common_utils.mli b/mllib/common_utils.mli index 68c0d54..ad43345 100644 --- a/mllib/common_utils.mli +++ b/mllib/common_utils.mli @@ -147,6 +147,12 @@ val uniq : ?cmp:('a -> 'a -> int...
2017 Oct 08
4
[PATCH 0/3] common/mlstdutils: Add Std_utils List and Option modules.
In Std_utils we already extend Char and String. These commits take it a little further by extending List and adding a new Option submodule. All basically simple refactoring. Rich.
2017 Oct 08
7
[[PATCH v2 0/4] common/mlstdutils: Add Std_utils List and Option modules.
This time including the first commit ...
2010 Nov 20
1
how to draw manifold?
Hi, I need some help either in how to configure variables for wireframe(), or some suggestions as to other graphics commands to use for plotting a 2-D manifold in 3-D space. Here is an example I tried (in the hopes that it would plot a helical line) : xsp<-matrix(c(cos(seq(0,80)/5)),9,9) ysp<-matrix(c(sin(seq(0,80)/5)),9,9) zsp<-matrix(c((seq(0,80)/20)),9,9) wireframe(zsp~xsp*ysp) The resulting plot looks vaguely like a helix, but not right. And if I change my variables' dimensions to c(3,27) it looks "better," but if the...
2017 Jun 15
0
[PATCH v6 04/41] mllib: Split ‘Common_utils’ into ‘Std_utils’ + ‘Common_utils’.
...mp xs in + let xs = uniq ~cmp xs in + xs + +let remove_duplicates xs = + let h = Hashtbl.create (List.length xs) in + let rec loop = function + | [] -> [] + | x :: xs when Hashtbl.mem h x -> xs + | x :: xs -> Hashtbl.add h x true; x :: loop xs + in + loop xs + +let push_back xsp x = xsp := !xsp @ [x] +let push_front x xsp = xsp := x :: !xsp +let pop_back xsp = + let x, xs = + match List.rev !xsp with + | x :: xs -> x, xs + | [] -> failwith "pop" in + xsp := List.rev xs; + x +let pop_front xsp = + let x, xs = + match !xsp with + | x :: xs...
2016 Jul 07
12
[PATCH v3 0/8] v2v: Move Curl wrapper to mllib and more.
v2 -> v3: - Changes to the Curl API suggested by Pino.
2016 Jul 07
9
[PATCH v2 0/8] v2v: Move Curl wrapper to mllib and use it for virt-builder (and more).
v1 -> v2: - Fixed the bug with precedence of if / @. - Add some imperative list operators inspired by Perl, and use those for constructing the Curl arguments, and more. Rich.
2010 Feb 08
4
Anyone using Active Driectory auth with Centos 5.4.....?
Setting up a new backuppc for a small group of device and I am running centos 5.4 with winbind setup and working. Everything is working and I would like the users to authenicate using their AD creds and was wondering what folks are using to do that with apache 2.2 and centos 5.4. I know about mod_auth_pam but that seems pretty dead so I was just wondering what folks were using and whats the
2013 Jun 24
1
[LLVMdev] DebugInfo: Missing non-trivially-copyable parameters in SelectionDAG
...:%vreg18 %X3<def> = COPY %vreg18; GPR64:%vreg18 %X4<def> = COPY %vreg18; GPR64:%vreg18 %X5<def> = COPY %vreg18; GPR64:%vreg18 %X6<def> = COPY %vreg18; GPR64:%vreg18 %X7<def> = COPY %vreg18; GPR64:%vreg18 TC_RETURNdi <ga:@callee_stack8>, 0, <regmask>, %XSP<imp-use>, %X0<imp-use>, %X1<imp-use>, %X2<imp-use>, %X3<imp-use>, %X4<imp-use>, %X5<imp-use>, %X6<imp-use>, %X7<imp-use> %vreg15<def> = COPY %vreg7:sub_32; GPR32:%vreg15 GPR64:%vreg7 %vreg14<def> = COPY %vreg6:sub_32; GPR32:%vreg14...
2010 Jul 24
1
Bridging Issues with Xen
Hey All I''m Using Xen 3.0.3-105 on CentOS 5.5. It Has to Nics: eth0 - Internet eth1 - Internal Lan ( where Dhcp , DNs , Cobbler - Kick Start Server Resides ) I''ve Set xend-config.xsp to create xenbr1 on eth1 and it looks well So Guest May Get Access TO ALl Resources via the Bridge. brctl show bridge name bridge id STP enabled interfaces xenbr1 8000.feffffffffff no vif1.0 p...
2017 Jun 19
16
[PATCH v7 00/13] Refactor utilities
This is just the utilities part of the patch series from: https://www.redhat.com/archives/libguestfs/2017-June/msg00103.html I believe this addresses everything raised in comments on that patch series. Rich.
2017 Jun 09
12
[PATCH 00/12] Refactor utility functions.
This turned out to be rather more involved than I thought. We have lots of utility functions, spread all over the repository, with not a lot of structure. This moves many of them under common/ and structures them so there are clear dependencies. This doesn't complete the job by any means. Other items I had on my to-do list for this change were: - Split up mllib/common_utils into: -
2017 Oct 08
0
[PATCH v2 3/4] common/mlstdutils: Introduce Option submodule.
...match notes with | notes :: _ -> diff --git a/common/mlstdutils/std_utils.ml b/common/mlstdutils/std_utils.ml index 558b1e3e2..32bba4113 100644 --- a/common/mlstdutils/std_utils.ml +++ b/common/mlstdutils/std_utils.ml @@ -359,6 +359,20 @@ module List = struct let push_front_list xs xsp = xsp := xs @ !xsp end +module Option = struct + let may f = function + | None -> () + | Some x -> f x + + let map f = function + | None -> None + | Some x -> Some (f x) + + let default def = function + | None -> def + | Some x -> x +end +...
2006 Mar 15
1
shorewall config
Hi * in xend-config.xsp I have: ******************************** (network-script network-route) (vif-bridge xen-br0) (vif-script vif-bridge) ******************************** and in /etc/network/interfaces ********************************* iface eth0 inet static address 0.0.0.0 auto xen-br0 iface xen-br0 inet static...
2007 Apr 11
0
windows 2003 install trhough vnc problem
...9; ] device_model = ''/usr/'' + arch_libdir + ''/xen/bin/qemu-dm'' cdrom="/templates/Iso/en_windows_server_2003_standard.iso" boot="d" sdl=0 vnc=1 vncviewer=1 ne2000=0 stdvga=0 ----- I have vncviewer installed in the host. Here is the xend-config.xsp file: -- (network-script ''network-bridge netdev=eth1'') (vif-script vif-bridge) (dom0-min-mem 196) (dom0-cpus 0) (vnc-listen ''0.0.0.0'') -- And here''s a "xm dmesg": --- (XEN) Xen trace buffers: disabled (XEN) Xen is relinquishing VGA console. (X...
2003 Jun 18
0
A slight weird diversion
...roduce an XML output file representing the Abstract Syntax Tree. I thought it would be kind of fun to take the results and throw the XML into Exist (an XML database) so that you can search the structure of an R script. I have a sample up at my site at: http://www.zedshaw.com:8888/simple/xquery.xsp Where you can search for things in a chunk of the R test suite using the XPath and XQuery syntax. So, you can search for all function calls inside of for loops with: //FOR//CALL, or find all calls to c() with //CALL[ID at text="c"]. Have fun with it. It's nothing serious, but...
2017 Jun 12
32
[PATCH v5 00/32] Refactor utilities, implement some APIs in OCaml.
This is a combination of: https://www.redhat.com/archives/libguestfs/2017-June/msg00046.html [PATCH 00/12] Refactor utility functions. plus: https://www.redhat.com/archives/libguestfs/2017-June/msg00023.html [PATCH v3 00/19] Allow APIs to be implemented in OCaml. with the second patches rebased on top of the utility refactoring, and some other adjustments and extensions. This passes
2010 Feb 08
4
Gnome wine menu entry gone
Well for a long time now my wine menu entry in gnome has been gone. Most threads I read all say to fine the <deleted> tag in .config/menus/applications.menu but mine doesn't have it.