similar to: sed with several lines, how?

Displaying 20 results from an estimated 80 matches similar to: "sed with several lines, how?"

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
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
2005 Jul 19
2
segfault with grid and null unit (PR#8014)
Full_Name: Jonathan Paisley Version: 2.1.1 OS: Mac OS X 10.4.2 Submission from: (NULL) (81.178.107.67) I was following an example from library/grid/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
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
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-mingw32
2004 Jul 29
2
Parsing multi-line strings. Bug? Feature?
I have an S-Plus library that I would like to port to R. The library sends a mix of static and dynamic output to an html file. For example cat(" ... Big block of HTML formatting code ... ") cat(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
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
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
2011 Apr 07
1
Adding text to page margin with lattice graphics
R: 2.12.1 OS X Colleagues I am working with lattice graphics for the first time and I am confused by some aspects of controlling these graphics. The most pressing issue is the following: 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
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
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])
1999 Apr 07
2
Bug list summary (automatic post)
================================================= This is an automated summary of the status of the R-bugs repository. Note that this may be neither complete nor perfectly correct at any given instance: Not all bugs are reported, and some reported bugs may have been fixed, but the repository not yet updated. Some bug fixes are difficult to verify because they pertain to specific hardware or
2006 Jan 15
13
Hotlinking an entire row in an HTML table
Hi, This seems simple but I cant get it to work... I have a table with 4 or 5 columns and 20-30 rows. I''d like to have the ability to click anywhere in a particular row to fire an action, such as bringing up a "Details" page for the clicked row. This would eliminate the need to generate a "Details" link at the end of every row, which is what I have now and looks
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
2008 Jan 07
0
HTML handling in SuperRedCloth
I''m having all kinds of fun trying to get HTML to work "properly" in SRC (mild sarcasm). I''m still working on the problem, but wanted to run it by the group. Currently, Textile2 lets you put in HTML as long as it''s in the same block (i.e. no double-returns). <ul> <li>You can put HTML code right in Textile.</li> <li>It will
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
2015 Sep 24
0
FTS not indexing new folders (mailboxes)
Hi, At Fri, 31 Jul 2015 09:41:10 -0300, Francisco Wagner C. Freire wrote: > 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*