search for: kludgy

Displaying 20 results from an estimated 241 matches for "kludgy".

2010 Nov 10
2
Centring titles for pairs of plots.
...I have attached an example in "demo.pdf" showing roughly what I want. I managed to produce the example using mtext(outer=TRUE,side=3,line=<whatever>,text=YR,font=2) I got the appropriate (negative) values for "line" by trial-and-error experimentation. That's pretty kludgy, and the result only works for the screen graphics device with which I experimented. If I switch to pdf() everything is out of whack. I produced demo.pdf by plotting to the screen graphics device and then using dev.copy(). Is there a non-kludgy way of accomplishing my objective? Thanks. cheer...
2010 Jul 30
4
transpose of complex matrices in R
...<- function(x){if(is.complex(x)){return(base::t(Conj(x)))} else {return(base::t(x))}} (This fails because of infinite recursion, but I don't quite understand why). 3. Try to define a t.complex() function: t.complex <- function(x){t(Conj(x))} (also fails because of recursion) 4. Try a kludgy workaround: t.complex <- function(x){t(Re(x)) - 1i*t(Im(x))} Solution 1 is not good because it's easy to forget to use myt() rather than t() and it does not seem to be good OO practice. As Martin Maechler points out, solution 2 (even if it worked as desired) would break the code of e...
2015 Jun 13
2
Lack of protection bug in current R release candidate
...ring and R_print.na_string_noquote fields of the static R_print structure declared in Print.h. This shows up very occassionally as incorrect output from the following lines in reg-tests-2.R: x <- c("a", NA, "b") factor(x) factor(x, exclude="") The solution (kludgy, but the whole concept is kludgy) is to forward R_print.na_string and R_print.na_string_noquote with the other "roots" in RunGenCollect (after the comment /* forward all roots */). Radford Neal
2006 Mar 23
3
Intercepts in linear models.
...ld be fitted, if it's 1 then no intercept. This doesn't work ``of course''. The cflag just gets treated as another predictor and because it is of the wrong length an error is generated. The best I could come up with was lm(as.formula(paste("y ~ x -",cflag))) Which is kludgy. It (of course!) also be done using an if statement. Is there a sexier way? cheers, Rolf Turner
2017 Aug 02
2
Bulk add users and rfc2307 attributes questions
...gure the next user. It would appear that if I set the correct uid in the unix attributes tab when I configure a user in ADUC, that it would then move on from there with the correct uid. So my questions are: 1. Are my assumptions above correct? 2. Is there a better way to do this? This just seems kludgy to me. 3. Is there an automatic way to have samba-tool assign the correct rfc-2307 uid? Regards, -- Tom me at tdiehl.org Spamtrap address me123 at tdiehl.org
2010 Feb 22
3
gsub patterns from vector elements w/out loop?
...at y looks like this: y [1] "something else blah" "something else blah" "something else blah" [4] "something else blah" I can do this using a loop: for ( i in 1:length(x) ) { y <- gsub(x[i],"something else",y) } Surely, there must be a less kludgy way? I tried looking at the different apply()s but am not getting anywhere, partly because I lack the mental flexibility to combine the fact that I am applying gsub() to y but now want to apply that to x ... erm. :/ Marianne -- Marianne Promberger PhD, King's College London http://promber...
2007 Oct 03
3
Factor levels.
...f the levels are actually present in the factor. But if ``Scholarship'' is absent (as if often is) then I get an error. I can do a workaround such as fff <- factor(c("U","A","S")[fff],levels=c("U","A","S")) but this seems kludgy to me. Is there a sexier way? cheers, Rolf Turner ###################################################################### Attention:\ This e-mail message is privileged and confidenti...{{dropped}}
2003 Mar 25
3
mailbox problem
Hi list! Since a week I am testing with dovecot, and I must say, I like it a lot :) Keep up the good work :) I do have one questing regarding dovecot: If I login to a mailbox, and the mailbox does NOT exist, and the parent directory does not exist either, I will get disconnected, and dovecot claims it cannot create the directory. (eg: my user blah at test.com has mail directory
2009 Mar 25
3
Converting a Matrix to a Vector
...vector v from matrix m that looks like this: A.O 0.2655087 B.O 0.3721239 v <- as.vector( m ) almost gives me what I want, but then I need to take combinations of colnames( m ) and rownames( m ) to get my labels and hope they match up in order: if not, manipulate the order. This approach feels kludgy... Is this the right approach or is there a better way? -- View this message in context: http://www.nabble.com/Converting-a-Matrix-to-a-Vector-tp22696267p22696267.html Sent from the R help mailing list archive at Nabble.com.
2009 Jan 30
4
TAPI and Asterisk
...I knew a way to synch their mobile device contacts with the system in some way so that they would have quick access to speed dial or otherwise call up a personal directory on their (Polycom) phones that could be synched in this manner. It struck me that the Polycom directory interface is a bit kludgy for such things, having no search capability and no sorting capability once loaded that I am aware of. Given the meeting last week it seems that a more elegant solution would be to link Outlook itself with Asterisk, so "right clicking" a contact makes it possible to launch an outboun...
2012 May 05
2
Pasting with Quotes
...... } The problem I always seem to have is that in the formula, I need to have quotes around "rbfdot" (for example). But, when I paste the expression together, it removes the quotes. Is there a better way to do this (or at least a way around this problem)? My method seems a bit kludgy :) Thanks for all your help! Josh [[alternative HTML version deleted]]
2005 Dec 15
5
site takes a while to load after first visit in a while
Using lighttpd + fcgi to power a site. When no one has accessed it in a while, the first visit to the page takes a while to load up. Then subsequent visits are fairly fast. Any ideas on how to fix it?
2005 Apr 07
2
axis colors in pairs plot
...)]) Trying to fool pairs in the following way produces the same plot as above: pairs(iris[1:4], main = "Anderson's Iris Data -- 3 species",pch = "+", col = c("black", "red", "green3", "blue")[ 1+ unclass(iris$Species)]) One very kludgy work-around is to define a new level 1, say "foo" in the first row of iris: iris2=iris iris2$Species = as.character(iris2$Species) iris2$Species[1]="foo" iris2$Species = factor(iris2$Species) pairs(iris2[1:4], main = "Anderson's Iris Data -- 3 species", pch = &...
2012 Aug 20
1
Asterisk 11 queue calls - emulate Dial(b) functionality
I currently run an Asterisk 10 system with hotdesking functionality set up. Several of the users have worked with a system in the past that supported BLF on their IP phones, and would like their current phones to behave in a similar fashion. Right now I have a really kludgy system that mostly works, but doesn't consistently trigger the cleanup macro to "clear" the device state on the end of a call. Rather than continue to beat my head against the wall playing "which context isn't firing an h extension to dump calls into the cleanup macro",...
2007 Dec 07
2
Building packages
...ckage to be installed before being able to build them, but not being able to install the package because the vignettes wouldn't build without the package already being installed. The fix is to build with --no-vignettes, then install the package, then build with the vignettes enabled. Seems kludgy, plus it means that vignettes are always built with the currently installed package and not the currently-being-installed package. So I install and do a second pass to get it all right again. Or am I doing it wrong? Once I get smooth running of R package development and SVN I might write i...
2017 Aug 02
0
Bulk add users and rfc2307 attributes questions
...> uid in the unix attributes tab when I configure a user in ADUC, that > it would then move on from there with the correct uid. > > So my questions are: > > 1. Are my assumptions above correct? Unfortunately, yes > > 2. Is there a better way to do this? This just seems kludgy to me. not really, when you are doing this on an individual, it does seem kludgy, but, if you feed your script all the info, it will work as expected. > > 3. Is there an automatic way to have samba-tool assign the correct > rfc-2307 uid? Probably only sat on my HD and this got reject...
2015 Jun 15
0
Lack of protection bug in current R release candidate
...static R_print structure declared in Print.h. This > shows up very occassionally as incorrect output from the > following lines in reg-tests-2.R: > x <- c("a", NA, "b") > factor(x) > factor(x, exclude="") > The solution (kludgy, but the whole concept is kludgy) is > to forward R_print.na_string and R_print.na_string_noquote > with the other "roots" in RunGenCollect (after the comment > /* forward all roots */). > Radford Neal "Interesting" ... .. more serioulsy: Thank...
2006 Jun 02
2
What''s the model pattern for just storing an array of ints?
...ccess the data? Or does Ruby have some cool trick where I can translate my array of ints into a String, store it in a single field, and then be smart enough that when I pull it back out I can convert it back into an array so nobody''s the wiser? (I''m sure I can do this and be kludgy about it, I''m wondering if there''s something already built in that might mean I can do it invisibly). Thanks! -- Posted via http://www.ruby-forum.com/.
2006 Jun 08
2
Page caching for urls with dots
hi everyone, I have a pesky problem with page caching, sorry if it sounds dummy. Whenever I''m caching an url like /controller/argument.with.dots instead of getting a saved page like /public/controller/arguments.with.dots.html I get /public/controller/arguments.with.dots which makes the webserver confused as to how to send it (it gets a Content-Type of text/plain instead of
2006 Apr 05
2
Return Rendering Controller In View
I have a shared partial which could be rendered by two different controllers. Is there an easy way in the view to return which controller rendered the partial? I''ve tried using: <%debug(params[''controller''])%> While that does return what I need it seems like a kludgy fit since debug is not meant to be used for that. Thanks, LarsenMTL -- Posted via http://www.ruby-forum.com/.