<arooni-mobile>
hi folks; i have a string that looks like this: ... query=Rio+de+Janeiro+-+State+of+Rio+de+Janeiro%2C+Brazil&latitude=-22.9082998&longitude=-43.1970773 .. i want to take the lat and long out. here is my attempt that seems to match both; /latitude=-([\d.])*\&longitude=-([\d.])*/
<waxjar>
does that come from a URL arooni-mobile?
<arooni-mobile>
yeah
<womble>
arooni-mobile: Run it through Rack::Utils.parse_query
<arooni-mobile>
im pasting the part of it thats relavent
<waxjar>
uri = URI.parse("foo"); URI.decode_www_form(uri.query), i believe
<zenspider>
I agree to use URI... but arooni-mobile still needs to learn regexps
<arooni-mobile>
what version of ruby is that found in
<arooni-mobile>
well i think my approach works; im sure its not the best
<zenspider>
change )* -> *)
<waxjar>
arooni-mobile: any version, really
<womble>
zenspider: He also needs to learn to use the right tool for the job, though...
<zenspider>
womble: totally agree
bmichelsen has joined #ruby-lang
<zenspider>
but a programming w/o regexps? esp who has been in here for ... I dunno... 6+ years?
<arooni-mobile>
occasional programmer
<zenspider>
I'd also change -( -> (-
<womble>
Oh yeah, regexps are like your text editor... if you don't know them, you can't be productive.
<womble>
And you'll want to make the `-` optional, by appending a ?
<zenspider>
oops. right. that too. I had that thought and then it slipped
<zenspider>
I think I need food
<waxjar>
bring some for me too :p
<womble>
Also you only want to match `.` once, rather than an arbitrary number of times.
* womble
just got his lunch, so he's operating at peak efficiency
<zenspider>
what TZ are you in?
<womble>
zenspider: Australia/Sydney
<zenspider>
well... it's earlyish dinner time here (PDT)... later
<womble>
Something more like (latitude|longitude)=(-?(\d+)+\.(\d+)+) would do the trick, just grab out $1 to know which you've got, and $2 to get the value.
<jhass>
meh, globals
<jhass>
String#[] ftw
<arooni-mobile>
i thought that you could only extract stuff that you had inside () ...
ur5us has quit [Remote host closed the connection]
arBmind1 has quit [Quit: Leaving.]
marcdel_ has joined #ruby-lang
benlovell has quit [Ping timeout: 244 seconds]
gianlucadv has joined #ruby-lang
tkuchiki has joined #ruby-lang
ikrima has quit [Ping timeout: 256 seconds]
sunaku has joined #ruby-lang
sunaku has quit [Client Quit]
sunaku has joined #ruby-lang
kyb3r_ has joined #ruby-lang
nofxx_ has quit [Ping timeout: 255 seconds]
nofxx_ has joined #ruby-lang
lsegal has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
chouhoul_ has quit [Remote host closed the connection]
kyb3r_ has quit [Read error: Connection reset by peer]
ben_thatmust has left #ruby-lang ["Leaving"]
kyb3r_ has joined #ruby-lang
allomov has joined #ruby-lang
jgpawletko has quit [Quit: jgpawletko]
kyb3r_ has quit [Quit: Leaving]
saramic has quit [Remote host closed the connection]
senor_jalapeno has quit [Remote host closed the connection]
rumitte has quit [K-Lined]
ta__ has quit [Ping timeout: 245 seconds]
ta has joined #ruby-lang
robbyoconnor has joined #ruby-lang
robbyoconnor has quit [Changing host]
robbyoconnor has joined #ruby-lang
fedexo has joined #ruby-lang
gjaldon has joined #ruby-lang
kiyote23 has quit [Ping timeout: 272 seconds]
saramic has joined #ruby-lang
hramrach_ has quit [Ping timeout: 250 seconds]
robbyoconnor has quit [Ping timeout: 255 seconds]
robbyoconnor has joined #ruby-lang
fuhgeddaboudit has quit [Ping timeout: 272 seconds]
sunaku has quit [Ping timeout: 264 seconds]
hramrach_ has joined #ruby-lang
shubhamg_ has quit [Remote host closed the connection]
caseydriscoll has quit [Remote host closed the connection]
kiyote23 has joined #ruby-lang
shubhamgoyal has joined #ruby-lang
spastorino has quit [Quit: Connection closed for inactivity]
ikrima has joined #ruby-lang
jimbach has joined #ruby-lang
ItSANgo has quit [Quit: Leaving...]
cleopatra has joined #ruby-lang
jimbach has quit [Ping timeout: 258 seconds]
ur5us has joined #ruby-lang
AKASkip has joined #ruby-lang
ur5us has quit [Ping timeout: 264 seconds]
kiyote23 has quit [Ping timeout: 264 seconds]
chouhoulis has joined #ruby-lang
ikrima has quit [Ping timeout: 240 seconds]
sunaku has joined #ruby-lang
jxie has quit [Ping timeout: 245 seconds]
ItSANgo has joined #ruby-lang
jxie has joined #ruby-lang
ikrima has joined #ruby-lang
AKASkip has quit [Ping timeout: 272 seconds]
kiyote23 has joined #ruby-lang
gianlucadv has quit [Ping timeout: 240 seconds]
symm- has joined #ruby-lang
lewix has quit [Remote host closed the connection]
oleo has quit [Quit: Verlassend]
benlovell has joined #ruby-lang
symm- has quit [Ping timeout: 255 seconds]
benlovell has quit [Ping timeout: 272 seconds]
midhir has joined #ruby-lang
kiyote23 has quit [Ping timeout: 265 seconds]
ikrima has quit [Ping timeout: 245 seconds]
midhir has quit [Ping timeout: 264 seconds]
kiyote23 has joined #ruby-lang
shubhamgoyal has quit [Remote host closed the connection]
allomov has quit [Remote host closed the connection]
apeiros_ has quit [Ping timeout: 255 seconds]
AKASkip has joined #ruby-lang
amclain has quit [Quit: Leaving]
symm- has joined #ruby-lang
symm- has quit [Ping timeout: 265 seconds]
Mothore_ has quit [Quit: Be back later ...]
gjaldon has quit []
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
kiyote23 has quit [Ping timeout: 258 seconds]
rahul_j has joined #ruby-lang
bmichelsen has quit [Quit: ZZZzzz…]
JohnBat26 has joined #ruby-lang
charliesome has quit [Quit: zzz]
rahul_j_ has joined #ruby-lang
rahul_j has quit [Ping timeout: 264 seconds]
rahul_j_ is now known as rahul_j
sunaku has quit [Ping timeout: 244 seconds]
dxta has joined #ruby-lang
allomov has joined #ruby-lang
mattyohe has quit [Quit: Connection closed for inactivity]
jg has joined #ruby-lang
ta has quit [Remote host closed the connection]
jxie has quit [Read error: Connection reset by peer]
clauswitt has joined #ruby-lang
jxie has joined #ruby-lang
ItSANgo has quit [Quit: Leaving...]
nculpitt has joined #ruby-lang
bb010g has quit [Quit: Connection closed for inactivity]
q_leonetti has joined #ruby-lang
<nculpitt>
Hey, is anyone around to help out with a noob question?
benlovell has joined #ruby-lang
<zenspider>
just ask
Forgetful_Lion has joined #ruby-lang
<nculpitt>
uugh how do i word this so that it makes sense
<nculpitt>
So im working on a webpage with nokogiri and sinatra that pulls a bunch of data from a website, throws them into a small table and then chucks in onto a webpage
<nculpitt>
I'm trying to figure out if there's a way to tell it when I'm outputting it to only push out the first 8 entries instead of printing everything?
benlovell has quit [Ping timeout: 256 seconds]
rumitte has joined #ruby-lang
rumitte is now known as Guest1882
relampago has joined #ruby-lang
relampago has quit [Client Quit]
saramic has quit [Remote host closed the connection]
kwd has joined #ruby-lang
Mothore_ has joined #ruby-lang
benlovell has joined #ruby-lang
ikrima has joined #ruby-lang
Mothore_ has quit [Ping timeout: 255 seconds]
mistym has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
cyndis has quit [Ping timeout: 272 seconds]
datazombie has joined #ruby-lang
rothman has joined #ruby-lang
rothman has left #ruby-lang [#ruby-lang]
cyndis has joined #ruby-lang
xcesariox has quit [Read error: Connection reset by peer]
<zenspider>
nculpitt: first 8 entries of what?
solars has joined #ruby-lang
michael_mbp has quit [Excess Flood]
ta has joined #ruby-lang
nculpitt has quit [Ping timeout: 246 seconds]
chussenot has joined #ruby-lang
michael_mbp has joined #ruby-lang
nofxx_ has quit [Ping timeout: 258 seconds]
|jemc| has quit [Quit: WeeChat 1.0.1]
bmichelsen has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
bf4 has quit [Ping timeout: 258 seconds]
nitrocell has joined #ruby-lang
robbyoconnor has quit [Remote host closed the connection]
xcesariox has joined #ruby-lang
mamantoha has joined #ruby-lang
ta has quit [Remote host closed the connection]
stardiviner has quit [Ping timeout: 255 seconds]
robbyoconnor has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
midhir has joined #ruby-lang
robbyoconnor has quit [Read error: No route to host]
saramic_ has joined #ruby-lang
robbyoconnor has joined #ruby-lang
rahul_j has joined #ruby-lang
midhir has quit [Ping timeout: 264 seconds]
shubhamgoyal has joined #ruby-lang
dr_bob has joined #ruby-lang
yfeldblum has quit [Ping timeout: 258 seconds]
ta has joined #ruby-lang
ta has quit [Read error: Connection reset by peer]
ta has joined #ruby-lang
nitrocell has left #ruby-lang [#ruby-lang]
yusuf has quit [Quit: Leaving.]
saramic_ has quit [Read error: Connection reset by peer]
fedexo has quit [Ping timeout: 244 seconds]
skade has joined #ruby-lang
francisfish has joined #ruby-lang
tbuehlmann has joined #ruby-lang
t7y9r has quit [Ping timeout: 255 seconds]
Mothore_ has joined #ruby-lang
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marr has joined #ruby-lang
datazombie has quit [Remote host closed the connection]
NoNMaDDeN has quit [Remote host closed the connection]
bf4 has joined #ruby-lang
Mothore_ has quit [Ping timeout: 258 seconds]
relix has joined #ruby-lang
32NAAJMSV has joined #ruby-lang
32NAAJMSV has quit [Remote host closed the connection]
NoNMaDDeN has joined #ruby-lang
bf4 has quit [Ping timeout: 240 seconds]
Tab__ has joined #ruby-lang
jimbach has joined #ruby-lang
jimbach has quit [Ping timeout: 258 seconds]
elia has joined #ruby-lang
Tab__ has quit [Quit: This computer has gone to sleep]
cornerma1 has joined #ruby-lang
cornerman has quit [Ping timeout: 240 seconds]
cornerma1 is now known as cornerman
yfeldblum has joined #ruby-lang
Tab__ has joined #ruby-lang
<yorickpeterse>
morning
jmrepetti has joined #ruby-lang
ikrima has quit [Ping timeout: 272 seconds]
<yorickpeterse>
ljarvis: apeiros: /ban Guest1882 plox, it's a privmsg spammer
ItSANgo has joined #ruby-lang
arBmind has joined #ruby-lang
Tab__ has quit [Quit: This computer has gone to sleep]
benlovell has quit [Ping timeout: 255 seconds]
lewix has joined #ruby-lang
benlovell has joined #ruby-lang
workmad3 has joined #ruby-lang
lewix has quit [Ping timeout: 244 seconds]
rahul_j has quit [Quit: rahul_j]
ducklobster has quit [Ping timeout: 240 seconds]
midhir has joined #ruby-lang
certaint1 has joined #ruby-lang
midhir has quit [Ping timeout: 245 seconds]
chussenot has quit [Quit: chussenot]
koderok has joined #ruby-lang
dsilva_ has joined #ruby-lang
koderok has quit [Client Quit]
zenspider has quit [Quit: bye]
ldnunes has joined #ruby-lang
dsilva has quit [Ping timeout: 264 seconds]
zenspider has joined #ruby-lang
rahul_j has joined #ruby-lang
dsilva has joined #ruby-lang
Mothore_ has joined #ruby-lang
dsilva_ has quit [Ping timeout: 255 seconds]
pablocantero has joined #ruby-lang
Mothore_ has quit [Ping timeout: 258 seconds]
dsilva_ has joined #ruby-lang
dsilva__ has joined #ruby-lang
Missphoenix has quit [Read error: Connection reset by peer]
dsilva has quit [Ping timeout: 255 seconds]
Missphoenix has joined #ruby-lang
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arBmind has quit [Quit: Leaving.]
chussenot has joined #ruby-lang
dsilva_ has quit [Ping timeout: 265 seconds]
jamo_ has quit [Remote host closed the connection]
jimbach has joined #ruby-lang
jamo_ has joined #ruby-lang
jimbach has quit [Ping timeout: 258 seconds]
mamantoha has quit [Ping timeout: 272 seconds]
dsilva has joined #ruby-lang
rolfb has joined #ruby-lang
dsilva__ has quit [Ping timeout: 265 seconds]
jmrepett_ has joined #ruby-lang
jmrepetti has quit [Ping timeout: 264 seconds]
qba73 has joined #ruby-lang
mkaesz has joined #ruby-lang
dangerousdave has joined #ruby-lang
arBmind has joined #ruby-lang
pablocantero has quit [Remote host closed the connection]
cleopatra has quit [Ping timeout: 264 seconds]
certainty has quit [Ping timeout: 256 seconds]
Guest1882 has quit [K-Lined]
dsilva_ has joined #ruby-lang
mikecmpbll has joined #ruby-lang
dsilva has quit [Ping timeout: 265 seconds]
mamantoha has joined #ruby-lang
clauswitt has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
pablocantero has joined #ruby-lang
hramrach_ has quit [Ping timeout: 250 seconds]
chouhoulis has joined #ruby-lang
chouhoulis has quit [Ping timeout: 264 seconds]
chussenot has quit [Quit: chussenot]
caseydriscoll has joined #ruby-lang
benlovell has quit [Read error: Connection reset by peer]
hramrach_ has joined #ruby-lang
bmichelsen has quit [Quit: ZZZzzz…]
x0f_ has quit [Ping timeout: 264 seconds]
x0f has joined #ruby-lang
charliesome has joined #ruby-lang
bmichelsen has joined #ruby-lang
mkaesz has quit [Ping timeout: 240 seconds]
postmodern has quit [Quit: Leaving]
dsilva has joined #ruby-lang
arooni-mobile has joined #ruby-lang
midhir has joined #ruby-lang
dsilva_ has quit [Ping timeout: 244 seconds]
rahul_j has quit [Quit: rahul_j]
midhir has quit [Ping timeout: 264 seconds]
mkaesz has joined #ruby-lang
rsl has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 264 seconds]
sarkyniin has joined #ruby-lang
apeiros_ has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 272 seconds]
rahul_j has joined #ruby-lang
arooni-mobile has joined #ruby-lang
jgpawletko has joined #ruby-lang
jgpawletko has quit [Client Quit]
skade has joined #ruby-lang
rahul_j has quit [Read error: Connection reset by peer]
Mothore_ has joined #ruby-lang
kiyote23 has joined #ruby-lang
dsilva_ has joined #ruby-lang
chussenot has joined #ruby-lang
pablocantero has quit [Remote host closed the connection]
chills42 has joined #ruby-lang
dsilva has quit [Ping timeout: 272 seconds]
Mothore_ has quit [Ping timeout: 258 seconds]
davs has joined #ruby-lang
rahul_j has joined #ruby-lang
rsl has quit [Ping timeout: 245 seconds]
dr_bob has quit [Quit: arbeit]
rahul_j has quit [Ping timeout: 256 seconds]
lewix has joined #ruby-lang
midhir has joined #ruby-lang
pablocantero has joined #ruby-lang
chills42 has quit [Remote host closed the connection]
Forgetful_Lion has quit [Remote host closed the connection]
bmichelsen has quit [Quit: ZZZzzz…]
jimbach has joined #ruby-lang
workmad3 is now known as wm3|away
jimbach has quit [Ping timeout: 258 seconds]
chinmay_dd has joined #ruby-lang
michael_mbp has quit [Excess Flood]
Iskarlar has joined #ruby-lang
michael_mbp has joined #ruby-lang
rsl has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
chills42 has joined #ruby-lang
certaint1 is now known as certainty
chills42 has quit [Remote host closed the connection]
dxta has quit [Remote host closed the connection]
jmrepett_ has quit [Remote host closed the connection]
jmrepetti has joined #ruby-lang
dxta has joined #ruby-lang
jmrepetti has quit [Ping timeout: 264 seconds]
arooni-mobile has quit [Ping timeout: 244 seconds]
davs has quit [Quit: Lost terminal]
elia has joined #ruby-lang
chouhoulis has joined #ruby-lang
lele|w has joined #ruby-lang
hinbody has joined #ruby-lang
[spoiler] has quit [Quit: Leaving]
pablocantero has quit [Remote host closed the connection]
pablocantero has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
[spoiler] has joined #ruby-lang
jds has joined #ruby-lang
shubhamgoyal has quit [Remote host closed the connection]
bf4 has joined #ruby-lang
<Eising>
oh man, why didn't anyone tell me about docker? It's crazily cool
pskosinski has quit [Ping timeout: 258 seconds]
jimbach has joined #ruby-lang
heftig has quit [Ping timeout: 258 seconds]
pskosinski has joined #ruby-lang
bmichelsen has joined #ruby-lang
mjc_ has quit [Ping timeout: 258 seconds]
dsilva has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
heftig has joined #ruby-lang
chills42 has joined #ruby-lang
mjc_ has joined #ruby-lang
dsilva_ has quit [Ping timeout: 240 seconds]
hao has joined #ruby-lang
hao has quit [Client Quit]
shtirlic has quit [Ping timeout: 258 seconds]
wm3|away is now known as workmad3
shtirlic has joined #ruby-lang
dsilva_ has joined #ruby-lang
AKASkip has quit [Ping timeout: 264 seconds]
dsilva has quit [Ping timeout: 240 seconds]
kiyote23 has quit [Read error: Connection reset by peer]
<ruby-lang640>
i installed mysql2 gem bt when i tried to use my rails command on those projects which was build with "-d mysql" command its give a bug report notice.i tried evething bt it didn't work :( plz help
yfeldblum has joined #ruby-lang
mistym has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 255 seconds]
nelsonsar has quit [Remote host closed the connection]
jmrepett_ has quit [Remote host closed the connection]
AKASkip has joined #ruby-lang
diegoviola has joined #ruby-lang
jmrepetti has joined #ruby-lang
senor_jalapeno has quit [Ping timeout: 250 seconds]
jmrepetti has quit [Ping timeout: 264 seconds]
mirageglobe has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ruby-lang640 has quit [Ping timeout: 246 seconds]
nelsonsar has joined #ruby-lang
j4cknewt has quit []
amsi has joined #ruby-lang
marcdel_ has quit []
mistym has joined #ruby-lang
mkaesz has quit [Remote host closed the connection]
cmhobbs has quit [Remote host closed the connection]
j2p2 has joined #ruby-lang
mirageglobe has quit [Remote host closed the connection]
mirageglobe has joined #ruby-lang
gjaldon has joined #ruby-lang
mirageglobe has quit [Ping timeout: 240 seconds]
ta has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
mikecmpbll has quit [Quit: ciao.]
dsilva has joined #ruby-lang
dsilva__ has quit [Ping timeout: 255 seconds]
apeiros_ has quit [Remote host closed the connection]
__butch__ has joined #ruby-lang
klmlfl_ has quit [Remote host closed the connection]
matp_ has joined #ruby-lang
matp has quit [Ping timeout: 264 seconds]
qba73 has quit []
klmlfl has joined #ruby-lang
yfeldblum has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
jg has quit [Quit: Leaving]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
yfeldblum has quit [Ping timeout: 258 seconds]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
klmlfl_ has joined #ruby-lang
chussenot has quit [Quit: chussenot]
klmlfl has quit [Ping timeout: 265 seconds]
nelsonsar has quit [Remote host closed the connection]
amsi has quit [Ping timeout: 240 seconds]
sunaku has quit [Ping timeout: 265 seconds]
amsi has joined #ruby-lang
allomov has quit [Remote host closed the connection]
nelsonsar has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
riotingpacifist2 has joined #ruby-lang
t7y9r has joined #ruby-lang
mirageglobe has joined #ruby-lang
kapott has joined #ruby-lang
<riotingpacifist2>
is there a way to compair the output of 2 commands using serverspec?
mirageglobe has quit [Ping timeout: 272 seconds]
midhir has joined #ruby-lang
gianlucadv has joined #ruby-lang
dsilva_ has joined #ruby-lang
rikkipitt has quit [Remote host closed the connection]
loincloth has quit [Remote host closed the connection]
Tab_ has joined #ruby-lang
AKASkip has quit [Ping timeout: 264 seconds]
pricees has joined #ruby-lang
usershell has joined #ruby-lang
davs has joined #ruby-lang
Tab_ has quit [Read error: Connection reset by peer]
mkyurchev has quit [Remote host closed the connection]
NoNMaDDeN has joined #ruby-lang
Averna has joined #ruby-lang
jimbach has joined #ruby-lang
usershell has quit [Remote host closed the connection]
davs has quit [Quit: Lost terminal]
jimbach has quit [Ping timeout: 256 seconds]
NoNMaDDeN has quit [Ping timeout: 244 seconds]
arBmind1 has joined #ruby-lang
arBmind has quit [Ping timeout: 264 seconds]
usershell has joined #ruby-lang
bf4 has quit [Ping timeout: 255 seconds]
senor_jalapeno has quit [Ping timeout: 264 seconds]
Obfuscate has joined #ruby-lang
nofxx_ has joined #ruby-lang
nofxx_ has joined #ruby-lang
jimbach has joined #ruby-lang
jimbach has quit [Remote host closed the connection]
jimbach has joined #ruby-lang
<zenspider>
waxjar: really? I use rake for _everything_ :D
<waxjar>
the only thing i've ever used it for is running tests :|
<zenspider>
it's (pretty) good for build systems. pretty much any time you have project wide tasks and don't want to bother writing a bunch of command line processing stuff. just create a rakefile, put task :name do ... end and done