similar to: is there a multiline ruby "comment" approach? like java's /* code */ ???

Displaying 20 results from an estimated 6000 matches similar to: "is there a multiline ruby "comment" approach? like java's /* code */ ???"

2009 Apr 16
3
Depot App Who Bought Enhancements
I''ve completed the chapter on Internationalization successfully, but found out just recently that the "Who Bought" function produces an error page that looks very ugly when someone enters a product ID that does not exist. My preference would be to design the app to have a list of hyperlinks presented when you visit the URL, http://localhost:3000/info/ that describes the list of
2010 Jun 18
5
convertir archivo texto en data frame
Tengo un archivo de texto donde cada línea es de la siguiente forma: "aa-mm-dd hh:mm:ss Nombre Apellido" ¿Hay alguna forma de usar read.table o algo similar para obtener directamente un data frame que tenga dos columnas donde una tenga la fecha y quede de tipo PosiX y la otra character con el nombre completo? Gracias, Sebastián.
2010 Feb 14
4
Feature Request: Multiline Comments
Hello, Is it possible to extend the R lexer/parser to include multiline comments like /* acomment */ ? This way I can integrate emacs org-mode with my R code, so that I can have a table of contents, section folding, html-output of source etc. e.g /* * Display Code */ #+BEGIN_SRC R foo <- function(...){ stuff } #+end_src and so on . Thanks Saptarshi
2010 May 08
3
Count cases in a list
Hi everybody, I would like to count how many times names in list L, nombreL, apear in list C, nombreC. Can I improve the next program? cuenta <- 0 topL <- length(nombreL) topC <- length(nombreC) for (i in 1:topL) { for (j in 1:topC) { k <- grep(noquote(nombreL[i]),nombreC[j])
2006 Jul 28
2
newb question...
This is what it says when i have this stupid error... app/controllers/info_controller.rb:9: syntax error this is what is inside of info_controller, class InfoController < ApplicationController def who_bought @product = Product.find(params[:id]) @orders = @product.orders respond_to do |accepts| accepts.html accepts.xml end end if someone could please help me... -/ James --
2006 Apr 07
6
Multiple view types for a single action?
Is it possible to have more than one kind of view for a specific action, for example an .rhtml and a .rjs file to handle the view for the same action? I suspect not, but this makes me wonder if there a way to call the .rjs file from within the .rhtml so the statements within it get executed? Thanks, Andy
2010 Jan 25
1
Using Protect filter on a merge rules file
Hy, I've a strange problem using rsync version 3.0.6 protocol version 30: My /etc/rsyncd.conf: --------------------------------------------------- ... [bianco-home] read only = no filter = . /etc/rsync/filter/bianco-home path=/home/bianco/ list = yes use chroot = no auth users = bianco uid= bianco secrets file = /etc/rsync/rsyncd.secrets ...
2005 Jul 28
2
Win95 on a Samba3+LDAP domain on a Debian box
Hi folks, I have successfuly migrated a WinNT 4.0 Domain to a Debian server with Samba3+Ldap following the Samba-3 by Example guide from John H. Terpstra (an impressive good guide) and The Linux Samba-OpenLADP Howto from Jerome Tournier & Olivier Lemaire. The domain holds about 800 accounts. There are WinNT servers, WinXP and Win95 clients belonging to it. WinNT servers and WinXP clients
2006 Apr 08
5
What is the h for?
In the "Agile Web Development with Rails" book it runs through making an example application, a shopping cart. In one of the views files, there is one line of code I dont understand (below), I dont know what the "h" is for, also I took the h out, and it did not affect the application (as far as i could see). <%= h(product.title) %> Can anyone shed some light on this
2010 Feb 26
2
Fwd: how to install rmagick on fedora please help urgent
hi all i want to run project at local system ..see this i m getting some error http://pastie.org/843746 and when i run server http://pastie.org/843748 plz tell me how to install rmagick on fedora Regards, Shyam +91-9716-18-9650 -- 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
2007 Mar 21
6
Converting Rails app to desktop with XUL?
Hi, We are thinking about choosing Rails as our weapon of choice for our next project, which is basically a text editor on steroids, whith some functionality that need an Internet connection. In the first step we are going to develop it as a plain web app (AJAX-ified, yay!), however, in the next step we would like to port some of the functionality (such as the editor) to a desktop app (which can
2006 May 05
2
how to get image properties
Hi friends in PHP there is a direct function GetImageSize(), with it I can easily determine the dimentions of an image file. How can I do in RoR. Please help me out Thanks in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060505/13ba1640/attachment.html
2006 Jan 26
3
userPassword in a LDAP database of a Samba3 domain
Hi folks, I have been able to migrate a WinNT4 domain to a Samba3 PDC domain using openldap as a backend and smbldap-tools to vampire the WinNT4 domain (pretty much following Samba3 by Example and documentation in smbldap project by IDEALX). Nevertheless, all 600 users migraged from the WinNT4 domain have attributes like these on the ldap database: userPassword: {crypt}x
2006 Jul 24
2
Flash problem with RoR? missed something?
I have tried to put a flash movie inside of my RoR page and it shows up with nothing on IEPC. It does very well on every other type of browser but does not work with IEPC. I made a folder - "flash" in my public directory and have had the one instance of it point there. Thus my flash directory is www.rails-app.com/flash/flash.swf Is there anything that anyone knows to help out?
2006 Aug 17
3
[MARKABY] Multiline text?
Anybody know if it''s possible to have multiline text in Markaby without resorting to a bunch of text statements or putting the text block in another file and using render :file ? I need to add chunks of HTMLized javascript to my templates. Joe -- Posted via http://www.ruby-forum.com/.
2006 May 19
5
How to determine if an object has just been created
Is there a built-in way to determine if a model object has just been created (ie. this object was the one that was originally persisted)? I can''t see it anywhere in the AR code, but thought I''d check. I want something like: p = Person.create p.original_instance? # true Is this built-in or should I just patch AR? -Jonathan.
2004 Sep 22
3
Optus Australia Multiline SHDSL service
Hi, I am currently trying to find a replacement for a dinosaur PBX and want to replace it with a VoIP solution. We have just moved our lines over to an Optus Multiline from a Telstra ISDN Onramp 30 service with 100 lines. My question for you good people is what sort of hardware do I need to interface Asterix into the Optus Multiline? The Optus service is terminated in my office to a SHDSL
2003 Jun 14
0
[Bug 99] New: multiline strings in gcc 3.3
https://bugzilla.netfilter.org/cgi-bin/bugzilla/show_bug.cgi?id=99 Summary: multiline strings in gcc 3.3 Product: netfilter/iptables Version: linux-2.4.x Platform: i386 OS/Version: SuSE Linux Status: NEW Severity: normal Priority: P2 Component: ip_tables (kernel) AssignedTo: laforge@netfilter.org
2011 Aug 31
2
Entering Multiline Commands With ESS
If there's a separate ESS user mail list, please point me to it. I'm using emacs with ESS and want to enter multiline commands for plots. Examples in my reference books show each line terminating with a comma so labels and other attributes can be specified for the plot before it is submitted for rendering. When I try to do this, however, I get an error: > boxplot(chemdata$quant ~
2012 Aug 22
1
multiline text() with different cex sizes
This question has probably been asked & answered before, but I can't find it: How to print a multiline figure caption in a plot, where different lines have different fonts and font sizes, and so that the lines of text are spaced in a reasonable way. Here's a simple example, where I have to keep tweaking the y coordinate and the cex combos, while I also manually adjust the aspect