Displaying 20 results from an estimated 20000 matches similar to: "using samba as a WINS server"
2009 Dec 02
2
Reordering the results from table(cut()) by break argument
I have a vector and need to count how many data points fall inside
each bin:
dat <- rnorm(100)
breaks <- -3:3
table((cut(dat, breaks)))
(-3,-2] (-2,-1] (-1,0] (0,1] (1,2] (2,3]
3 13 42 30 12 0
if I reverse the breaks vector, the results remains the same:
breaks <- rev(breaks)
table((cut(dat, breaks)))
(-3,-2] (-2,-1] (-1,0] (0,1] (1,2]
2004 Nov 23
1
File Creation Error on an SMB Volume
> Hi folks,
> My SMB server is a Helios Ethershare 3.1 on a Tru64 Alpha machine.
> We are now integrating more and more gentoo-Linux Servers. These are the
> SMB Clients.
>
> On Obelix (one of our gentoo-Servers) I can mount the SMB Volume from the
> Ethershare Server.
> obelix nc4smb # whoami
> root
> obelix # mount -t smbfs -o username=m.heckmann
2011 May 19
0
Flattening lists and environments (was: "how to flatten a list to the same level?")
Dear list,
I came up with a two functions that flatten arbitrary deeply nested
lists (as long as they're named; not tested for unnamed) and
environments (see attachment; 'flatten_examples.txt' contains some
examples).
The paradigm is somewhat similar to that implemented in 'unlist()', yet
extends it. I would have very much liked to build upon the superfast
functionality
2011 Apr 12
1
clustered samba registers all non CTDB addresses at WINS server
Hi all,
in the first step to separate my wins/netbios/nmbd and my clustered samba
servers i've installed the WINS feature on a windows 2k8r2 server, and set
the "wins server = ip.adress.of.windows.server"
the weird thing is: my samba 3.5.8 do not only register the public CTDB ip
addresses specified by "cluster addresses =", but also the static
maintenance ip's + the
2003 May 28
1
Cross Subnet WINS?
But the win wks on the other subnet is configured to use my
SAMBASERVER as its WINS SERVER, and it is configured using the
IP Adress of the SAMBASERVER and not the name. Shouldn't this
do the trick?
win wks is on a wireless subnet and hence runs at 11 MBPS, while
the SAMBASERVER is on a wired subnet. I read somewhere that windows
does some kind of "optimization" with slow networks.
2004 Aug 25
0
Heckman estimation
Hi,
I wrote a function to perform a two-step Heckman (also known as "heckit")
estimation. This function is mainly a wrapper function to "glm" (1st step
probit estimation) and "lm" (2nd step OLS estimation). Though this function
is not perfect yet, it is IMHO already very useful. Since there were some
questions about Heckmann estimation in this list, I would like
2010 Jan 01
2
changing a list element's name during execution in lapply - possible?
Happy New Year, all!
I want to do calculations on each element of a list l, but i want the
returned list element to be named differently after the calculation.
Is it possible to do the renaming somehow within the lapply call?
l <- list(a=NA, b=NA)
lapply(l, function(x) {names(x) <- "new name"; return(x) })
This does not work, any ideas?
TIA
2011 Apr 25
4
blank space escape sequence in R?
Is there a blank space escape sequence in R, i.e. something like \sp etc. to produce a blank space?
TIA
Mark
???????????????????????????????????????
Mark Heckmann
Blog: www.markheckmann.de
R-Blog: http://ryouready.wordpress.com
2009 Dec 27
2
RGtk2 / gWidgets - addHandlerClicked Problem
In The following code, the table handler is executed twice when the
button is pressed (from the 2nd pressing on).
I want it to be executed only once. Does someone know, why this
happens and how I can change it?
library(gWidgets)
w <- gwindow()
b <- gbutton("press", cont=w)
tbl <- gtable(1:10, cont=w)
addhandlerclicked(b, handler=function(h, ...){
2005 Mar 30
0
netBIOS API for WINS
I would like to get IP adress from WINS (not from broadcast or LMHOSTS file) for given NetBIOS name using Windows netbios API (functions) - however - I can't understand what I should specifu into NBC structure - should I make socket connection to WINS server and issue NCBFIND or should I use SEND/RECEIVE to communicate directly with WINS - if later is teh case - then what chunk of data should
2012 Mar 08
3
"figure margins too large" in RGtk2 drawing area as cairo device - why?
When using a gtkDrawingArea as a Cairo device I very often encounter the error: "figure margins too large"
Even for the below "getting started" example from http://www.ggobi.org/rgtk2/ this is the case.
> win = gtkWindow()
> da = gtkDrawingArea()
> win$add(da)
> asCairoDevice(da)
[1] TRUE
> plot(1:10)
Fehler in plot.new() : Grafikr?nder zu gro?
>
Also
2011 Oct 24
2
splitting a string into words preserving blanks (using regex)
I would like to split a string into words at its blanks but also to preserve all blanks.
Example:
c(" some words to split ")
should become
c(" ", "some", " ", " words", " ", "to" , " ", "split", " ")
I was not able to achieve this via strsplit() .
But I am not familiar with regular
2009 Jun 08
3
using regular expressions to retrieve a digit-digit-dot structure from a string
Hi,
i need to recognize itemization structures in strings which follow the
format: "digit-digit-dot" like e.g.
1.
2.
19.
211.
Given the string " This happened in the 21. century." (the dot behind 21 is
used in German instead of 21st) I want know where the dots are but I do not
want the 21.-dot to be returned as well.
I am not good at regular expressions. How
2012 Mar 05
2
changing the drawing context using Cairo and RGtk2
I am not too familiar with Cairo and RGtk2 and have the following problem:
I have a container with two GTK drawing areas converted into Cairo devices.
I know that I can set the current drawing context e.g. using dev.set().
But this is tedious. How can I set the context using the objects da1 or da2?
w <- gtkWindow()
w$setSizeRequest(400, 400)
vbox <- gtkVBox()
da1 <- gtkDrawingArea()
2011 Dec 22
1
RGtk2: How to overlay a gtkDrawingArea with a button or any other widget?
I try to overlay a plot inside a gtkDrawingArea with a button (or any other widget).
I tried to put both into a gtkFixed container.
But this does not work, no printing occurs.
Does someone know a solution?
What I tried:
w <- gtkWindow()
w$setSizeRequest(400,400)
fx <- gtkFixed()
da <- gtkDrawingArea()
fx$put(da, 100, 100)
asCairoDevice(da)
par(mar=c(0,0,0,0))
plot(1:10)
btn.1
2009 Dec 27
1
gWidgets / RGtk2 - how to change a handler from a toolbar?
I want to assign a default handler to a toolbar button and change the
handler later.
The addhandlerclicked() method does not apply to a gAction Object, I
think...
defHandler <- function(h, ...) print("default")
w <- gwindow()
aTest <- gaction(label="Test", icon="open", handler=defHandler)
tblList = list( test = aTest )
toolBar = gtoolbar(tblList,
2010 Jan 08
1
how to flatten a list to the same level?
I have a nested list l like:
l <- list(A=c(1,2,3), B=c("a", "b"))
l <- list(l,l, list(l,l))
I want the list to be unlisted, but not on the lowest level of each
"branch".
I want the lowest level of each list branch to remain as it is.
So unlist or unlist(rec=F) do not work here as the level of nesting
may differ on the elements.
The result should look like:
2010 Dec 08
2
S4 "["-method called twice - why?
Dear list,
When playing around with the "[" method for S4 classes I noticed that it gets called twice in my example.
setClass("testClass",
representation(a="character"))
setMethod("[", signature(x = "testClass", i = "ANY", j="ANY"),
function (x, i, j, ..., drop){
print("void function")
2011 Sep 08
1
problem with math expressions in grid graphics when using line breaks (\n)
I want to plot a multiline annotation including a mathematical expression using grid graphics (grid.text).
This works fine for a single line, but the math expression is misplaced when I insert a line break ("\n" escape sequence):
grid.text(expression(paste("Some words here\n more ", sigma)))
Does someone have an idea how to fix that?
TIA!
Mark
2011 Dec 18
1
gWidgets: how to remove that is box drawn when moving the mouse with pressed button
Hi,
how can I omit the box drawn from the starting position to the current position
of the mouse when clicking and it over a GTK graphics object?
I have seen that in the 'playwith' package the box changes to an arrow when
using the 'pan' button. But I do not find the corresponding line in the code to implement that.
library(gWidgets)