similar to: How can I parse this string to extract just the number 11?

Displaying 20 results from an estimated 8000 matches similar to: "How can I parse this string to extract just the number 11?"

2012 Aug 05
1
Extracting desired numbers from complicated lines of web pages
I need to extract the indicted (bold & underlined) numbers from lines coming off web pages. Of course I don't know ahead of time the location or length of the number. What I do know is the tag "Friends", and "Reviews", etc. In fact, it would be good to end up with Value Variable 108 Friends 151 Reviews 5 Review Updates NA First
2005 Dec 30
9
SELECT MAX
How does one do a SELECT MAX query in rails? I''ve searched and searched and tried lots of things with no luck. I want to implement "SELECT MAX(column_name) from table_name and have it return the maximum value from column_name. I just need to get that one value, not the whole object... Thanks for any ideas... Shelby _______________________________________________ Rails mailing
2006 Jun 15
3
how to give a form a name
Using a <%= form_tag ... %>, how do I give a form a name, so that I can reference it with javascript? I sure can''t figure this out from the docs... Thanks, Shelby PS - what I am trying to do is just have the focus in the first form field when the form is loaded. There has to be an easy way to do this, but I can''t figure it out... -------------- next part --------------
2006 Jun 13
7
model validation across multiple views
I have a rather complex object with a number of attributes. For a variety of reasons, I would like one view to create the object with only a couple of fields completed, then a second and third view to finish all the fields. I would like the model to validate_presence_of all these fields, since eventually I need them all there, and I would like each page to validate its portion of the fields that
2013 Oct 24
1
SAMBA 4 - Remove last Windows DC from Domain
HI, i just played around with Windows 2008 R2 as ADS Server and two SAMBA 4 as additional DCs. Setting up the Samba 4 DCs works fine. Now I wanted to remove the last Windows DC with dcpromo. It fails with the following statement: Der Vorgang konnte nicht durchgef?hrt werden. Fehler: Active Directory konnte keinen anderen Dom?nencontroller f?r die ?bertragung der verbleibenden Daten
2006 Jul 09
2
serialized DateTime objects returning as Time objects
I have a database field called dates in which I am trying to serialize an array of DateTime objects. When I unserialize them, they are coming back in as Time objects. I know this, because I am getting errors that say "comparison between Time and DateTime failed. Why is this happening? Is there a way to prevent it?? Thanks Shelby -------------- next part -------------- An HTML attachment
2006 Aug 02
3
faster? database search or rewriting objects
I''m having an argument with my son :) I have a table with about 1500 objects called entries. I need to do something with about 100 of them (schedule manually) I say I should just mark them with a boolean when I have scheduled them. (manual == true) My son says I should pull them out of the entries table and copy them to new objects (lets call them "manual" objects, and store
2005 Dec 27
3
myObject.send(column.name) from Agile Development book
I''m studying the Agile Development with Rails book. In the chapter that first sets up the depot application (page 68), there is this bit of code from a view: <% for product in @products %> <tr> <% for column in Product.content_columns %> <td><%=h product.send(column.name) %></td> <% end %> etc... I am trying to absorb both Ruby and
2005 Aug 07
3
tracking online users
Let''s say I have an application and I want to create an admin program that will show me who is currently online using the application. I don''t know the best way to do this. Assuming I am storing my sessions in the default PStore, I don''t suppose there is any method that lists all the active sessions, is there? The only way I can think of to do this is to setup a
2010 Dec 15
3
How to apitalize leading letters & else of personal names?
Dear R world, Do you know about a function that would capitalize in the correct manner first and family names? I found in the cwhmisc only the CapLeading function, but it just does not do the job, taking care only to capitalize the first letter of a word. I am looking for a function that would recognize " |'|Mc|-" and capitalize the first letter following these characters. An
2005 Dec 26
2
confused about ruby fast C bindings
I am confused about ruby fast C bindings. Does the command: gem install mysql install these? Is this page: http://www.tmtm.org/en/mysql/ruby/ the home page for these bindings? If so, it gives no instructions about installing them with using gem. Wondering if this is all the same??? Thanks for any help... Shelby _______________________________________________ Rails mailing list
2005 Dec 31
4
saving a collection
Reading the Agile book, I can''t find a single command to save a collection. The save command seems to operate on only individual objects. Lets say I have a collection that I have received from a find_all command. I want to go through and change some attributes in various objects in the collection. Then I want to resave the whole collection back to the database. I don''t think
2005 Jan 21
3
Fw: R Citation
Dear Achim, Thanks for the comment. Here is the publisher's style guideline (AGU) "Because the Internet is dynamic environment and sites may change or move, treat World Wide Web, ftp files, and electronically archived data stored at data centers other than World or National Data Centers as unpublished, i.e., in text only." http://www.agu.org/pubs/AuthorRefSheet.pdf So by this
2005 Mar 05
1
Problem with plotting size/location on variation of star/segment plot
Dear R gurus, I'm running into a problem with some modified segment plots I've coded using stars(). What I am trying to do is superimpose two series of data along with radial axes markers in a 2x2 graphics frame. This is working fine now, except for the hitch: my plots overfill the frame and are not centered within it (on my runs they always end up looking like they've been budged
2006 Aug 17
8
instance variables in templates
Hey all, Well... hmm... feeling pretty stupid here... For some reason my controller instance variables are not displaying in my templates. I''ve boiled it down to this test case. class Rss::FilmController < ApplicationController def display @time = Time.now end end and the template: <html> <head> <title>Is This Ever Going To Work</title>
2006 Jul 03
2
moving data from legacy database
I have rewritten a java webapp into rails. The database structure is basically the same except that: 1) in the legacy app, several of the tables did not use ID numbers, but relied on other fields as the primary key 2) in the legacy app, there is a join table that uses email address and category names to do the join, not ID numbers I would like to move or change this database to match my new
2004 Dec 10
9
parallel zone: loc2 is composition of loc1
i have no idea how to definie for a parallel zone the host file if the second zone (net) should be the composition of the first zone (dmz). i tried all the following combinations in the interface and host files: interface: - eth0 - (variante 1) - eth0 192.168.0.255,255,255,255,255 (variante 2) - eth0 192.168.0.255,!192.168.0.255 (variante 3)
2003 Sep 26
2
Set context based on CID...
I was wondering if someone might be able to offer a suggestion to me about how I might go about dropping a caller into a context specific to their CID. For example, I would like to be able to dial Asterisk from a specific number (a mobile phone) and have it drop me into a context other then the one that normal callers receive that has more options tailored to things I might want to do. I assume
2005 Aug 11
2
Converting strings with internal delimiters into lists
Hi UserRs, I know that there has to be an easy way to do this in R (probably easy enough that once someone clues me in I'll smack myself on the forehead for not figuring it out myself), but my searches on my own have not yielded any hints. I have many fields in my dataset that participants entered as "free lists" - i.e., the field constitutes a varying number of names each
2005 Jul 16
2
Applying css style to a link_to
What is the proper syntax to apply a css class to a link created using link_to? I''ve tried <%= link_to("details", :class => "details", :action => "edit", :id => event) %> but that creates a link which looks like /admin/events/edit/3?class=details which is not what I''m looking for. Kyle Heon