similar to: commenting out ruby code

Displaying 20 results from an estimated 100000 matches similar to: "commenting out ruby code"

2007 Nov 05
1
marker event listeners
I''d like to add an event listener for dragging markers, but it looks like YM4R GM (and Mapstraction) doesn''t support this. I need an init like: marker = new GMarker(... GEvent.addListener(marker, "dragend", function() { }) but the current setup makes "anonymous" markers - never creates variable that can be used to access them. Has anyone thought about
2008 Sep 04
3
Moving HTML out of a model
G''day folks. My RentalMap model uses ym4r_gm to generate a Google map and plot markers on the map. However, a marker''s body contains HTML. It feels dirty to put HTML in the model, but the markers should be plotted by the model. Any suggestions for how I can move the marker HTML template out of the RentalMap model? Cheers, Nick
2010 Nov 08
1
API Google MAPS
Hello everybody, I''m working with Version 3 of Google Maps JavaScript API, and I have the next code: In a layout of my application: <script type="text/javascript" src="http://ajax.googleapis.com/ajax/ libs/jquery/1.4.1/jquery.min.js"></script> <script type="text/javascript" src="http://maps.google.com/maps/api/js?
2012 Mar 30
1
Popups not appearing for leaflet using mxn 2.0.18
Good day, I''m trying out the new Leaflet provider using the 2.0.18 release. Unfortunately, I haven''t been able to get a marker bubble (popup) to appear after clicking on the marker. I think my use of Mapstraction is correct as I see a popup appear for the googlev3, ovi, and openlayers providers when I switch with no other changes to my code. Is there a step I''m
2009 Apr 22
3
Merging data frames, or one column/vector with a data frame filling out empty rows with NA's
Hello I have two data frames, SNP4 and SNP1: > head(SNP4) Animal Marker Y 3213 194073197 P1001 0.021088 1295 194073197 P1002 0.021088 915 194073197 P1004 0.021088 2833 194073197 P1005 0.021088 1487 194073197 P1006 0.021088 1885 194073197 P1007 0.021088 > head(SNP1) Animal Marker x 3213 194073197 P1001 2 1295 194073197 P1002 1 915 194073197
2016 Jan 09
2
[cfe-dev] Is it a va_arg bug in clang?
Hi Richard, Thank you for the info. I build my code in Ubuntu-64bits with simply commands: “clang X64.c”, then run “./a.out” to see the output. If I replace my va_list, va_start, va_arg va_end with __builtin_ms_va_list, __builtin_ms_va_start, __builtin_ms_va_arg, __builtin_ms_va_end, my code will build fail in Ubuntu with below message. Do you suggest I should build it in windows and not in
2011 Jun 29
3
very large pair() plot
Hi everyone, I'm a newbie and this is my first post. My boss wants me to make a series of scatter plots where 76 variables are plotted against each other. I know how to do this using pair()...my problem is that there are just too many plots to fit in the window. Is there any way I can get all the plots to fit and make the font size and marker size scale so it is readable? My goal is to
2010 Sep 12
11
Rails Commenting, Plugins?
Hello, I''m looking to add comments to records in my app like Books. So a user can view a Book and then comment on it... As a newbie, is this something that I should build from scratch, or are there any popular Commenting Plug-ins, (Ajax implemented) that might be worth utilizing? Thanks -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2016 Jan 08
2
Is it a va_arg bug in clang?
For the variadic function error with AMD64 abi and windows calling convention on 64bits x86, I find it has been tracked in Bug 20847 (https://llvm.org/bugs/show_bug.cgi?id=20847) (http://reviews.llvm.org/D1622#inline-9345). Do we still plan to fix it? You know, I meet exactly same va_arg mistake with llvm3.7 when I enable the Uefi firmware (http://www.uefi.org/) build with clang. The ms_abi is
2001 Jan 21
4
Comments ect
(Just a copy of the message I sent to Vorbis, better to send it here.) Hello, I'm just letting everyone know that I've begun the preliminary part of putting together a working comment system. I have a few idea's on how to implement this system. 1. What I would like to do is grab the General and Input SDK's for Winamp first. Then I would like to add to our existing Winamp
2006 Aug 12
2
Anyone up for this? Maps...Bounty...
Community, Bounty? I should know better than to post on Friday night - they usually go unanswered! But I''ll give it a shot... I need google maps integrated with rails in such a way that I can: 1) Give it (something) a set of records from an ActiveRecord search 2) Have it take those records, and do the following: a) Plot origin and destination location(s) b) Add a line
2006 Jan 22
2
a newbie doomed in the first introduction to ruby.
Hello, I have bought the Dave Thomas Agile Developtment with Rails. (I have previously bought and read his Programming with Ruby book) On my winxp sp2 system ruby 1.8.15 (one click installer), rails 1.0framework (with ruby gems) and mysql 5.0 are installed. While following the example stated in the Chapter Building an Application I had following problem. After creating databases for test,
2009 Dec 04
1
Lattice : Help with changing the labels of x-axis in respective panels
Dear R-Helpers, I am not very experienced in using lattice and I am still in the learning stage I have a data set which looks like this: (I have deleted a few lines in order to save space) Chromosome marker Marker.Name Distance 1 1 1 PeMm261 0.0000 2 1 2 Xtxp8 10.1013 .. 20 1 20 EbMi148 210.3099 21 1 21 Xtxp25
2009 Aug 04
2
error in Elastic net
Dear R users,   I am new user for elastic net. I am trying to use elasticnet library. I have marker data with 359 markers and 168 samples, and response is metabolites. I am trying to do regression between a metabolite and markers.  But i am getting the following error:   > en<-enet(marker,as.numeric(vio),lambda=0.5,normalize=FALSE,intercept=TRUE) Error in one %*% x : requires numeric
2011 Jan 14
2
read in data, maintain decimal places
Good day, All, Is there any way to maintain the number of decimal places in the type of situation below? I would like to maintain the number of decimal places in 0.667, despite the fact that its column-mates have a fourth decimal place. Thank you for your time. Jim dat.txt contents: MARKER ALLELES FREQ1 RSQR EFFECT2 STDERR CHISQ PVALUE rs6599753 C,T
2012 May 07
1
commenting out a block of R code
Dear friends, Is there an easy way of commenting out a block of R code after it has been written? (I am aware that R-aware editors can insert # line-by-line while it is being written, but I want to basically block out chunks of R code in a few strokes.) This question was asked on this mailing list some time ago: Professor Ripley's answer was to try the following:
2009 Dec 04
3
Use of apply rather than a loop
Colleagues, R 2.9.0 on all platforms I have a dataset that contains three columns of interest: ID's, serial elapsed times, and a marker. Representative data: Subject Time Marker 1 100.5 0 1 101 0 1 102 1 1 103 0 1 105 0 For each subject, I would like to find the time associated with MARKER == 1, then replace Time with Time - (Time[Marker == 1]) The result for this
2010 Apr 30
6
addListener
I am trying to use the marker method addlistener(). A simplified version of what I''m trying to do: var map; var marker; map = new mxn.Mapstraction(''myMap'',''google''); map.setCenterAndZoom(new mxn.LatLonPoint(45.559242,-122.636467), 15); marker = new mxn.Marker(new mxn.LatLonPoint(45.559242,
2012 Jul 10
5
How to add marker in Stacked bar plot?
Hi, I am working on stacked bar plot and want to add marker(arrow) in stacked bar plot. DF=data.frame(names=c("tomato", "potato", "cabbage", "sukuma-wiki", "terere"), freq=c(7,4,5,8,20)) barplot(as.matrix(DF[,2]), col=heat.colors(length(DF[,2])), legend=DF[,1], xlim=c(0,9), width=2) http://r.789695.n4.nabble.com/file/n4635946/Screenshot.png
2010 Jan 05
2
Fast nested List->data.frame
I have very large data sets given in a format similar to d below. Converting these to a data frame is a bottleneck in my application. My fastest version is given below, but it look clumsy to me. Any ideas? Dieter # ----------------------- len = 100000 d = replicate(len, list(pH = 3,marker = TRUE,position = "A"),FALSE) # Data are given as d # preallocate vectors pH =rep(0,len) marker