search for: byhand

Displaying 20 results from an estimated 33 matches for "byhand".

2016 May 05
1
[PATCH] python: use constants instead of raw values
Extend the internal libguestfsmod module with the CREATE values, so there is no need to hardcode values in GuestFS.__init__. --- generator/python.ml | 7 +++++-- python/guestfs-py-byhand.c | 7 +++++++ python/guestfs-py.h | 2 ++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/generator/python.ml b/generator/python.ml index 9744b8f..470abe7 100644 --- a/generator/python.ml +++ b/generator/python.ml @@ -597,6 +597,9 @@ moduleinit (void) m = Py_InitModule ((...
2009 Mar 25
3
very fast OLS regression?
...t speed. What is the recommended fastest way to get regression coefficients in R? (Is Gentlemen's weighted-least-squares algorithm implemented in a low-level C form somewhere? that one was always lightning fast for me.) regards, /ivo bybuiltin = function( y, x ) coef(lm( y ~ x -1 )); byhand = function( y, x ) { xy<-t(x)%*%y; xxi<- solve(t(x)%*%x) b<-as.vector(xxi%*%xy) ## I will need these later, too: ## res<-y-as.vector(x%*%b) ## soa[i]<-b[2] ## sigmas[i]<-sd(res) b; } MC=500; N=10000; set.seed(0); x= matrix( rnorm(N*MC), nrow=N, ncol=MC ); y= ma...
2014 Sep 23
0
[PATCH 12/13] syntax-check: fix require_config_h_first check
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com> --- python/guestfs-py-byhand.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/guestfs-py-byhand.c b/python/guestfs-py-byhand.c index b071f81..5d2d858 100644 --- a/python/guestfs-py-byhand.c +++ b/python/guestfs-py-byhand.c @@ -24,11 +24,11 @@ /* This has to be included first, else definitions c...
2015 Feb 03
1
Re: make install ignoring PREFIX for bash_completion
> > After using 'python sdist', can't you use the tarball (in python/dist) > > in order to create a venv directly? > > I think I will be able to install the python library in the venv using > the tarball. However, won't my liguestfs application require some of > the binaries installed as part of 'make install' for running? I am > trying to not
2016 Feb 05
7
[PATCH 0/7] lib: Stop exporting the safe_malloc, etc. functions.
The safe_malloc (etc) functions call g->abort_fn on failure. That's not appropriate for language bindings, and we never intended that these internal functions be used from language bindings, that was just a historical accident. This patch series removes any external use of the safe_* functions. Rich.
2013 May 16
3
[PATCH] Use pkg-config for Python
...dnl Check for Ruby and rake (optional, for Ruby bindings). AC_ARG_ENABLE([ruby], diff --git a/python/Makefile.am b/python/Makefile.am index e514a76..ecc25d5 100644 --- a/python/Makefile.am +++ b/python/Makefile.am @@ -43,7 +43,7 @@ libguestfsmod_la_SOURCES = guestfs-py.c guestfs-py.h guestfs-py-byhand.c libguestfsmod_la_CPPFLAGS = \ -DGUESTFS_PRIVATE=1 \ - -I$(PYTHON_INCLUDEDIR) \ + $(PYTHON_CFLAGS) \ -I$(top_srcdir)/src -I$(top_builddir)/src libguestfsmod_la_CFLAGS = \ -- 1.7.10.4
2011 Aug 22
1
[PATCH 1/2] python: Don't build static library
--- python/Makefile.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/python/Makefile.am b/python/Makefile.am index 5884762..82960d6 100644 --- a/python/Makefile.am +++ b/python/Makefile.am @@ -43,7 +43,7 @@ libguestfsmod_la_SOURCES = guestfs-py.c guestfs-py.h guestfs-py-byhand.c libguestfsmod_la_CFLAGS = -Wall -I$(PYTHON_INCLUDEDIR) \ -I$(top_srcdir)/src -I$(top_builddir)/src libguestfsmod_la_LIBADD = $(top_builddir)/src/libguestfs.la -libguestfsmod_la_LDFLAGS = -avoid-version +libguestfsmod_la_LDFLAGS = -avoid-version -shared TESTS_ENVIRONMENT = \ LIBGUESTF...
2003 Jan 28
0
OOPS on 2.4.20-ac2
Hi, I got the OOPS below on my laptop running vanilla 2.4.20-ac2; I had to copy it byhand so it may not be 100% accurate. It hasn't happened again, and this is the first problem I've had with this kernel (or any other kernel, for that matter.) Anyway, I'm not sure, if a) this is actually an ext3 problem, b) OOPS reports of 2.4.20-ac2 are of any interest, so I won't bot...
2007 Nov 04
0
Domain logon through VPN with WINS
...omain or I get this annoying IPC$ error. [IPC$] and [ADMIN$] sections are just for testing purproses in the config file. They had no effect whatsoever. Some older Samba package made by default some group mappings, but this newest version doesn't add anything. I've added those group mappings byhand, but they didn't help. I also tried to make another machine account with the complete name of my machine (jukankone.vpn). That didn't help either. Next step obviously is to compile the latest Samba from sources, but if someone knows anything about this phenomena please be nice and tell me...
2008 Mar 21
2
simple DNS question - reverse nslookup fails.
Hello all, I am trying to configure a subdomain DNS server on a Cent OS 5.1 - for my lab. Brief configuration: Lab machine ---> 192.168.17.2 (should respond to DNS queries from hosts in 192.168.16.0/20 network) 1. I would also like to forward any queries outside the above network to our corporate domain (no firewalls between our 192.168.16.x network and the corporate network. The domain
2015 Oct 23
1
[PATCH v2] perl: Switch to using Module::Build.
version 2: - Fixed handling of clean & distclean. - Use 'all-local' instead of 'all'. - Don't use abs_* paths in Build.PL.in. Rich.
2015 Oct 23
1
[PATCH] perl: Switch to using Module::Build.
Switch from 'ExtUtils::MakeMaker' to 'Module::Build'. There's not really a huge difference here. The interfacing gymnastics that we have to do to make Makefile.am and Module::Build talk to each other is probably a little bit simpler. I compared the output of 'make install' before and after, and there's not much difference. 'perllocal.pod' is not
2015 Oct 23
1
[PATCH v3] perl: Switch to using Module::Build.
version 3: - Split requires into configure_requires/etc. - Use lists for extra_compiler_flags, extra_linker_flags. - Suppress .packlist file. - Set the release_status field. Rich.
2014 Sep 23
27
[PATCH 00/13] syntax-check
...m | 4 +- po-docs/ja.po | 8 +- po-docs/libguestfs-docs.pot | 8 +- po-docs/uk.po | 8 +- podwrapper.pl.in | 6 +- python/examples/Makefile.am | 4 +- python/guestfs-py-byhand.c | 4 +- rescue/Makefile.am | 2 +- resize/Makefile.am | 2 +- resize/resize.ml | 10 +- ruby/examples/Makefile.am | 4 +- sparsify/Makefile.am | 2 +- sparsify/copying.m...
2016 Aug 19
1
[PATCH] virt-rescue rewrite in OCaml
Hi, I tried to rewrite virt-rescue from C to OCaml. Goals were feature parity with C implementation, smaller codebase and hopefully better maintainability. I still don't know if I've covered everything right. So, please check it out. PS: my git send-email seems to be broken, so I'm sending it from thunderbird Thanks! maros
2013 Jan 30
1
[PATCH] Make internal-only functions and structures private
...fig.h: extension/config.m4 ../config.status diff --git a/python/Makefile.am b/python/Makefile.am index d03bfcf..209f9ca 100644 --- a/python/Makefile.am +++ b/python/Makefile.am @@ -41,7 +41,7 @@ python_LTLIBRARIES = libguestfsmod.la libguestfsmod_la_SOURCES = guestfs-py.c guestfs-py.h guestfs-py-byhand.c libguestfsmod_la_CFLAGS = \ - -DGUESTFS_PRIVATE_FUNCTIONS=1 \ + -DGUESTFS_PRIVATE=1 \ $(WARN_CFLAGS) $(WERROR_CFLAGS) \ -I$(PYTHON_INCLUDEDIR) \ -I$(top_srcdir)/src -I$(top_builddir)/src diff --git a/ruby/ext/guestfs/extconf.rb.in b/ruby/ext/guestfs/extconf.rb.in index 15259ea..269ca81 100...
2016 May 04
9
[PATCH 0/8] python: PEP 8 fixes
Hi, this series cleans up the Python sources, either static or generated, including also tests, to make them PEP 8 compliant; see https://www.python.org/dev/peps/pep-0008/ and tools like pep8. Almost all the issues reported by pep8 are fixed, reducing the issues from 3818 to 7. The changes should have no effect on the actual code, while it will help Python users with consistency with other
2015 Feb 14
2
[PATCH 0/2] Change guestfs__*
libguestfs has used double and triple underscores in identifiers. These aren't valid for global names in C++. (http://stackoverflow.com/a/228797) These large but completely mechanical patches change the illegal identifiers to legal ones. Rich.
2012 Apr 30
5
[PATCH 0/4 v1] Remove gettextify, implement OCaml gettext.
Version 1 of the patch, for discussion, but not to be applied. It does work, but needs a lot more testing. This removes all the psychopathic gettextify cruft, and replaces it with a 99 line Makefile.am. A large win, I think. The third patch implements gettext support in the OCaml tools. The fourth patch is just for illustration. It shows the consequent changes to libguestfs.pot and the po
2011 Jun 21
0
builder-debian libguestfs FAILED tests e1e78bcef5e4654bd2456bd696840329359d35cd
...from guestfs-py.h:25, from guestfs-py.c:27: /usr/include/python2.6/pyconfig.h:1031:0: warning: "_POSIX_C_SOURCE" redefined [enabled by default] /usr/include/features.h:210:0: note: this is the location of the previous definition CC libguestfsmod_la-guestfs-py-byhand.lo In file included from /usr/include/python2.6/Python.h:8:0, from guestfs-py.h:25, from guestfs-py-byhand.c:30: /usr/include/python2.6/pyconfig.h:1031:0: warning: "_POSIX_C_SOURCE" redefined [enabled by default] /usr/include/features.h:158:0: note: this...