search for: bin2

Displaying 20 results from an estimated 36 matches for "bin2".

Did you mean: bin
2017 Aug 23
1
[PATCH supermin] bin2s: make sure the data is aligned
...ed init written is bogus (since it will contain random padding at the beginning, and truncated of the same amount at the end). To overcome that, make sure the rodata section with the embedded init is always aligned to 8 bytes, which should work fine for both 32bit and 64bit architectures. --- src/bin2s.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bin2s.pl b/src/bin2s.pl index 6c70446..67ff1f2 100755 --- a/src/bin2s.pl +++ b/src/bin2s.pl @@ -44,6 +44,7 @@ print $ofh <<"EOF"; \t.globl\t_binary_${infile_basename}_end \t.section\t.rodata +\t.align 8 _binary_${infil...
2013 Jul 15
2
Serialize data.frame to database
...nect(con, "test") dbSendQuery(db, 'CREATE TABLE frames("simID" INT, "data" BLOB)') data.bin <- serialize(iris, NULL, ascii = FALSE) dbSendQuery(db, paste("INSERT INTO frames VALUES(1, X'", data.bin, "')", sep = "")) data.bin2 <- dbGetQuery(db, "SELECT DATA FROM frames WHERE simID = 1") data.bin2 data 1 58 So, only the first entry of data.bin is saved to the database. I tried to first convert the binary data to raw data: data.raw <- rawToChar(data.bin) Error in rawToChar(data.bin) : embedded nul in...
2016 Jan 12
2
Re: Note regarding bin2s.pl
On Tue, Jan 12, 2016 at 07:57:03AM +0100, Hilko Bengen wrote: > Helge, > > I have applied all the architecture-specific bits but not the bin2s > script yet. TBH, so far I don't see what is wrong about export and use > of the "_binary_init_size" constant. [https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=809185] I see it as a reasonable simplification - it allows us to get rid of that conditional code for HP-UX in b...
2011 Aug 24
1
[PATCH] febootstrap-supermin-helper: Replace objcopy call for embedding init binary
objcopy needs "output-target" and "binary-architecture" parameters which makes it necessary to keep a list of known architectures. The bin2s.pl script generates input for the GNU assembler which should produce an object file that is equivalent to that produced by objcopy. I have successfully tested the change on an amd64 Debian/unstable system. --- helper/Makefile.am | 10 ++++++++-- helper/bin2s.pl | 45 ++++++++++++...
2017 Aug 23
2
[PATCH v2 supermin 0/1] Fix embedding of init
.../archives/libguestfs/2017-August/msg00117.html The approach now is to use a C snippet, which should pose way less compatibility issues. Thanks, Pino Toscano (1): Switch binary embedding to a C source .gitignore | 2 +- src/Makefile.am | 18 +++++++++--------- src/{bin2s.pl => bin2c.pl} | 24 +++++++++--------------- src/format-ext2-init-c.c | 9 ++++----- 4 files changed, 23 insertions(+), 30 deletions(-) rename src/{bin2s.pl => bin2c.pl} (69%) -- 2.13.5
2017 Aug 23
0
[PATCH v2 supermin 1/1] Switch binary embedding to a C source
...wkward interface (i.e. uint8_t offsets) - the assembler source is built with a manual rule - the embedded data is not properly aligned according to the needs of the platform - in the past, the snippet had also tweaks for specific architectures (e.g. HPPA) To overcome this situation, turn the bin2s.pl script into a bin2c.pl, which instead generates a C snippet containing a C array with the data, and a variable with the length of the data. The code produced this way has various advantages: - it is simple C code, with no need for architecture tweaks - it is constant, so the compiler places it...
2010 Apr 13
1
Binning Question
Hi, I'm trying to setup some complicated binning with statistics and could use a little help. I've found the bin2 function from the ash package, but it doesn't do everything I need. My intention is to copy some of their code and then modify as needed. I have a vector of two columns: head(data) r1 r2 [1,] 0.03516559 0.03102128 [2,] 0.02162539 0.14847034 [3,] 0.02210339 0.0653...
2016 Jan 12
2
Re: Note regarding bin2s.pl
On 12.01.2016 12:10, Richard W.M. Jones wrote: > On Tue, Jan 12, 2016 at 10:05:00AM +0000, Richard W.M. Jones wrote: >> On Tue, Jan 12, 2016 at 07:57:03AM +0100, Hilko Bengen wrote: >>> Helge, >>> >>> I have applied all the architecture-specific bits but not the bin2s >>> script yet. TBH, so far I don't see what is wrong about export and use >>> of the "_binary_init_size" constant. >> >> [https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=809185] >> >> I see it as a reasonable simplification - it allows us...
2016 Jan 12
0
Re: Note regarding bin2s.pl
On Tue, Jan 12, 2016 at 10:05:00AM +0000, Richard W.M. Jones wrote: > On Tue, Jan 12, 2016 at 07:57:03AM +0100, Hilko Bengen wrote: > > Helge, > > > > I have applied all the architecture-specific bits but not the bin2s > > script yet. TBH, so far I don't see what is wrong about export and use > > of the "_binary_init_size" constant. > > [https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=809185] > > I see it as a reasonable simplification - it allows us to get rid of > t...
2016 Jan 12
0
Re: Note regarding bin2s.pl
...hard W.M. Jones wrote: > > On Tue, Jan 12, 2016 at 10:05:00AM +0000, Richard W.M. Jones wrote: > >> On Tue, Jan 12, 2016 at 07:57:03AM +0100, Hilko Bengen wrote: > >>> Helge, > >>> > >>> I have applied all the architecture-specific bits but not the bin2s > >>> script yet. TBH, so far I don't see what is wrong about export and use > >>> of the "_binary_init_size" constant. > >> > >> [https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=809185] > >> > >> I see it as a reasonable...
2007 Apr 16
1
Stuck on MySQL UPDATE
...gt; sav,n,MYSQL(QUERY resultid ${connid}UPDATE\ dnislookup\ SET\ ${BINID}\ =\ ${NEWPHRASENAME}\ WHERE\ dnis\ =\ ${IVR-Exten}) But I've tried this too: exten => sav,n,MYSQL(Connect connid localhost root password dax) exten => sav,n,MYSQL(QUERY resultid ${connid}UPDATE\ dnislookup\ SET\ bin2\ =\ ${NEWPHRASENAME}\ WHERE\ dnis\ =\ ${IVR-Exten}) However, neither one of these saves to new value into the bin2 (or ${BINID}) field. From the logs: Apr 16 12:40:05 VERBOSE[13718] logger.c: == Where Field Name = bin2 and value to update is 2_4643 Apr 16 12:40:05 DEBUG[13718] pbx.c: Launchin...
2015 Dec 31
0
[PATCH] init: Use .rodata instead of .data.
This allows sharing of the read only data between supermin binaries running on the same machine. Thanks: Christian Vogel See thread: https://news.ycombinator.com/item?id=10816921 --- src/bin2s.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin2s.pl b/src/bin2s.pl index 0f892f8..ccb060b 100755 --- a/src/bin2s.pl +++ b/src/bin2s.pl @@ -26,7 +26,7 @@ print $ofh <<"EOF"; \t.globl\t_binary_${infile}_end \t.globl\t_binary_${infile}_size -\t.sect...
2011 Dec 17
1
Binning a 2 column matrix by avarages of rows.
Newbie here. Many apologies in advance for using the incorrect lingo. I'm new to statistics and VERY new to R. I have a "nx2" matrix , I want to sort the values based on the average of 2 columns and put k lowest (or highest) values in bin1, second k high/low values in bin2, and so on (bins would be of the same dimensions). I should also know what the first index (or position) of the pair has been. car-1 29 30 car-2 22 24 car-3 16 16 car-4 41 41 car-5 43 45 car-6 34 36 for exmample in bins of 2x2 bin1 car-3 16 16 car-2 22 24 bin2 car-1 29 30 car-6 34 35 bin3 car-4...
2011 Apr 12
1
How to set the dimension of a matrix correctly?
...## ptemp <- ppt1[,3] ll <- which(ptemp>0) ppt2 <- matrix(0,nrow=length(ll),ncol=3) # (lon,lat,ptemp) ppt2[,1] <- lat[ll] # y-axis ppt2[,2] <- lon[ll] # x-axis ppt2[,3] <- ptemp[ll] # ppt pptd <- as.geodata(ppt2) bin1 <- variog(pptd) # plot(bin1) # fig1 bin2 <- variog(pptd,estimator.type="modulus")# plot(bin2) # fig2 ini1 <- max(bin1$v) ols <- variofit(bin1, fix.nugget = F,weights="cressie",ini.cov.pars=c(ini1,4)) kc <- krige.conv(pptd, loc=pgrid,krige=krige.control(type.krige="OK",trend.d="2nd"...
2011 Jan 21
1
3D Binning
I am trying to do binning on three variables (3d binning). The bin boundaries are specified by the user separately for each variable. I used the bin2 function in the 'ash' package for 2d binning that involves only two variables but didn't any package for similar binning with three variables. Are there any packages or codes available for 3d binning?? Thank you. -- View this message in context: http://r.789695.n4.nabble.com/3D-Binnin...
2014 May 02
5
[PATCH 1/3] build: fix srcdir!=builddir builds
...r)/lib -I../lib + -I$(top_srcdir)/lib -I../lib BOBJECTS = $(SOURCES_ML:.ml=.cmo) XOBJECTS = $(SOURCES_ML:.ml=.cmx) @@ -148,16 +148,16 @@ ext2init-bin.S: init strip --strip-all $< @file $< | grep -isq static || \ (echo "*** error: init is not staticly linked"; exit 1) - ./bin2s.pl $< $@ + $(srcdir)/bin2s.pl $< $@ depend: .depend -.depend: $(SOURCES) +.depend: $(wildcard $(abs_srcdir)/*.mli) $(wildcard $(abs_srcdir)/*.ml) config.ml rm -f $@ $@-t - $(OCAMLFIND) ocamldep $^ | \ + $(OCAMLFIND) ocamldep -I $(abs_srcdir) -I $(builddir) $^ | \ $(SED) 's/ *$...
2014 Nov 12
1
[PATCH] configure: simplify the qemu cpu mapping
...6],[qemu_cpu=i386], + [arm*],[qemu_cpu=arm], + [amd64],[qemu_cpu=x86_64], + [powerpc64 | ppc64le],[qemu_cpu=ppc64], + [qemu_cpu=$host_cpu]) +default_qemu="qemu-kvm kvm qemu-system-$qemu_cpu qemu" AC_ARG_WITH([qemu], [AS_HELP_STRING([--with-qemu="bin1 bin2 ..."], [set default QEMU binary @<:@default="[qemu-kvm] qemu-system-<host> qemu"@:>@])], -- 1.9.3
2006 Dec 06
2
ssh 4.x using aix 5.3 auditing
...login, that the same would be true for the logout. I've opened a PMR w/IBM, but not getting very much help. below is an example of my /etc/security/audit/config file: start: binmode = off streammode = on bin: trail = /audit/trail bin1 = /audit/bin1 bin2 = /audit/bin2 binsize = 10240 cmds = /etc/security/audit/bincmds freespace = 65536 stream: cmds = /etc/security/audit/streamcmds classes: default = login init = USER_Login, USER_Logout, USER_Exit, USER_Logout users: root = ini...
2006 Feb 11
4
Need frequency distribution for x,y coordinates
Hi, I have a set of data in x,y coordinates across the range of -5 to 5 in each dimension. I would like to obtain the frequency distribution of the different points, and then graph them so you can see which of the points are the most frequently occurring. This would seem to be easy in Matlab, which has the hist3 command for doing frequency distributions/histograms in 3 dimensions. However,
2008 Nov 07
1
For Loop - loading 10 sets of data and calculating
I am trying to simplify my code by adding a for loop that will load and compute a sequence of code 10 time. They way i run it now is that the same 8 lines of code are basically reproduced 10 times. I would like to replace the numeric value in the code (e.g. Bin1, Bin2....Bin10) each time the loop goes around. Below i tried doing this with a simple for loop and adding the string character before each numeric value. I need to first load the data then calculate, im sure this is possible as i have seen it done but cant seem to reproduce it in my own code. Hope my...