search for: sometext

Displaying 20 results from an estimated 25 matches for "sometext".

2010 Nov 27
1
sed with several lines, how?
...there are _not in_ the pattern! "OUTPUT" is what i want after "seding" the PATTERN#X's so i for e.g.: need the first, and second "magic" sed "FIRSTMAGIC" PATTERN#1 sed "SECONDMAGIC" PATTERN#2 PATTERN#1: ----------------------------------- SOMETEXT#1 <br><font size=3>SOMETEXT#2</font><br> <br><font size=3>SOMETEXT#3</font><br> SOMETEXT#4 ----------------------------------- "exact pattern", what is unique from the pattern: ----------------------------------- </font><br>\n&l...
2009 Apr 17
2
how to call javascript function in text_field_tag
Dear all Sorry for dummy question. How can I convert a text input in form to upper case letter in view? Can I call the javascript function toUpperCase() in text_field_tag?? <%= text_field_tag(:sometext, nil, :size => 14) %> I know I can achieve this using params[:sometext].upcase in controller, but I want to do this in view. Any ideas? Many thanks Valentino -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because y...
2006 Mar 25
2
Textilize problems with line breaks
I''m having a problem formatting some text. I have a textarea that I input my text into, which will then be put into an e-mail and sent out. The problem I am having is when there is a single line break. Multiple line breaks work fine (hitting enter twice), but single line breaks don''t seem to work properly. Take the following input: Line1. Line2. Line3. Line4. Using
2000 Nov 08
1
Graphics-Device-Size vs. Window-Size
I want to layout on screen a graphic bigger than the screen (width=16.53543, height=11.69291) but strwidth() and strheight() give wrong results. > x11(width=42/2.54, height=29.7/2.54, pointsize=12) > plot(1,1, type="n", xlim=c(0, 1), ylim=c(-1, 0), xlab="", ylab="", axes=FALSE) > strwidth("Whatever") [1] 0.08471151 > # Now resize the window and
2000 Nov 08
1
Graphics-Device-Size vs. Window-Size
I want to layout on screen a graphic bigger than the screen (width=16.53543, height=11.69291) but strwidth() and strheight() give wrong results. > x11(width=42/2.54, height=29.7/2.54, pointsize=12) > plot(1,1, type="n", xlim=c(0, 1), ylim=c(-1, 0), xlab="", ylab="", axes=FALSE) > strwidth("Whatever") [1] 0.08471151 > # Now resize the window and
2005 Jul 19
2
segfault with grid and null unit (PR#8014)
...rid/doc/grid.pdf ("Introduction to grid") and had the following code, where I'd mis-typed 1,3 instead of 1,2 as the first arguments to grid.layout. Sourcing this code causes the R GUI to crash. I've enclosed a partial backtrace from the crash below. ============== require(grid) sometext = "hello there\nthis is a \ntest!" pushViewport( viewport( layout=grid.layout(1,3, widths=unit.c( unit(1,"strwidth",sometext) + unit(2,"cm"),...
2015 Jul 31
2
FTS not indexing new folders (mailboxes)
Hello, Im getting problem on FTS on new created folders (mailboxes). How to simulate: - Enable FTS (solr on our case) - Create a new folder (mailbox) - Move some message to that mailbox - Try to search for the message contents *doveadm search -u user at domain text sometext* # Found nothing, but if i move the message to another mailbox, the search catch the message. # I tried doveadm index command but no response as well # This works only after a full fts rescan *doveadm fts rescan -u user at domain* # And now, works *doveadm search -u user at domain text sometext3...
2008 Oct 06
2
textilize with --- (3 dashes) removes text
Hi, using --- (3 dashes) at the end of a string that is textilized, results in a single hr tag without any text. This seems weird to me. Am I overlooking something? >> av = ActionView::Base.new >> av.textilize("sometext ---") => "<hr />" Cheers, Jan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw...
2007 Apr 17
2
format() applied to an NA character string (PR#9616)
I get strange results when I try to format() an NA character string. > x <- 'sometext' > x[1] <- NA > format(NA, width=32) # displays sensibly, right-justified > format(x,width=32) # displays sensibly, left-justified > format(x,width=33) # displays "" > format(x,width=36) # R exits abnormally with code 5 > version platform i386-pc-ming...
2004 Jul 29
2
Parsing multi-line strings. Bug? Feature?
...dat()) cat(" More static text ") With S-Plus I can just cut and paste HTML code from other files into my S-Plus script file. This makes maintenance of the script fairly easy. The R parser chokes on this and requires strings to have a backslash for line continuation: f = function(){ sometext = " abc \ def" } Mark Bravington discussed the same issue (with comments about the documentation) here: http://tolstoy.newcastle.edu.au/R/help/02b/5199.html I would like to echo Mark's request that compatability with S-Plus be considered. Thanks Kevin Wright
2011 Apr 07
1
doveadm search doesn't update fts
Hello, Doveadm search is failing to update our Squat indexes. The search itself works fine but the dovecot.index.search* files remain unchanged. I tried: doveadm search -u test mailbox INBOX body sometext doveadm search -u test mailbox INBOX text sometext I also tried the exact syntax Timo expressed in an earlier post: doveadm search -A body asdf If I run the same search through IMAP, the index files update as expected. The searches finish with a clean exit status and nothing shows up in the logs...
2006 Sep 30
2
Using a C program inside of Rails
Hi, I have a compiled c program I use to do text processing. It operates as a pipe: cat sometext.txt | /usr/local/bin/my_c_program > othertext.txt I want to use it to process text which is typed into a textarea field in an HTML form. What are some options I have to make use of this executable so I could use it as a text filter inside of Rails? -Dan --~--~---------~--~----~------------~-...
2011 Apr 07
1
Adding text to page margin with lattice graphics
...: I can print the graphics without problems with the command: print(MYFUNCTION(SOMEOBJECT) However, I would like to add margin text (this terminology might not apply in this setting). I am able to do so with the following command: print(MYFUNCTION(SOMEOBJECT, page=function(page) grid.text("SOMETEXT", x=0.5, y=0.01))) Two issues: 1. The added text overlaps text in SOMEOBJECT. How do I reserve space at the margins of the page in which I can print the added text? (the equivalent of par(mar=c(1,1,1,1))) 2. I was able to construct the command with some assistance from a colleague. But,...
2011 Apr 10
3
Adding margin text to lattice graphics
Colleagues I am learning lattice graphics (R 2.12.2; OS X). Several days ago, I inquired about adding margin text to lattice graphics. Jim Price offered a useful reply, suggesting that I add: page = function(page) grid.text('words', x = 0.5, y = 0.01) to my call to the function. The entire function that he suggested was; xyplot(1 ~ 1, par.settings = list(layout.heights =
2006 Jan 23
16
Adding form fields (extending a form) on the fly
Hello, I just can''t seem to find a way to extend a form dynamically in ROR. Say I am writing a recipe website. There is one form to enter the recipe. There is room for N number of ingredients (let''s say a text field for each ingredient name and selection list for the amount). What if the user wants to add more than N ingredients as he types them in? how do I do this without
2015 Sep 24
0
FTS not indexing new folders (mailboxes)
...problem on FTS on new created folders (mailboxes). > > How to simulate: > > - Enable FTS (solr on our case) > - Create a new folder (mailbox) > - Move some message to that mailbox > - Try to search for the message contents > > *doveadm search -u user at domain text sometext* > # Found nothing, but if i move the message to another mailbox, the search > catch the message. > # I tried doveadm index command but no response as well Same here with Dovecot 2.2.13 and Solr. > # This works only after a full fts rescan > *doveadm fts rescan -u user at domain* &...
2007 Jul 09
0
Problem with Sweave and pdf version 1.4
...ting to a pdf 1.4 file. The latter works but the first doesn't. Probably I'm doing something wrong (see the Rnw file below). The file tmp_tmp.pdf is generated but is corrupt. Using the second option, is there a way to create the filename based on some variable. Something like x <- "sometext" filename <- paste(x, ".pdf", sep = "") pdf(file=filename, version="1.4") But how can I pass the filename to \includegraphics? The Rnw file \documentclass[11pt]{report} \usepackage{Sweave} \SweaveOpts{echo = FALSE, pdf.version=1.4, eps = FALSE} \begin{docum...
2008 Feb 15
0
Question about DIALSTATUS NOANSWER
Hi, according to the wiki the value NOANSWER for the channel variable DIALSTATUS means: No answer. The dial command reached its number, the number rang for too long, then the dial timed out. In out dialplan we grap all these events with exten => s-NOANSWER,1,Playback(sometext) exten => s-NOANSWER,2,WAIT(1) exten => s-NOANSWER,3,Hangup() The dial commands for internal and external connections let the phone on the other ring for 60 seconds. But the cdr file Master.csv contains entries like the following: "","15","s-NOANSWER","f...
2008 Jan 07
0
HTML handling in SuperRedCloth
...a problem if you have something like <em>asd</em> blabla or indeed even <em>something<em>. SRC needs to be smart enough to know that EM tags need to be within P tags, but not to wrap LI tags in P tags. And do things in DIV tags always need to be in Ps? <div>sometext</div> is perfectly valid, too. I''ll keep working on it, but if you have thoughts on the subject, please share them! Jason Garber -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/redcloth-upwards/attachments/20080107/74...
2008 May 01
2
using the sink() function in a for-look
hi all, i wanted to use the sink function to sequentially output regression summaries within a for-loop. i must have something wrong somewhere (or be using the sink function incorrectly), but can anyone help? the code I am using is: where data.x is a data.frame of independents, and data.y is a data.frame of dependents. > for (i in 1:length(data.y)){ > taxa.i <- names(data.y[i])