ChanServ changed the topic of #ruby-lang to: Ruby 1.9.3-p125: http://ruby-lang.org | Paste >3 lines of text on http://pastie.org or use a gist
mistym has quit [Remote host closed the connection]
postmodern has joined #ruby-lang
perryh is now known as perryh_away
m3nd3s has quit [Remote host closed the connection]
sora_h is now known as s0ra_h
apeiros_ has quit [Remote host closed the connection]
bluemonk has quit [Ping timeout: 244 seconds]
burgestrand has quit [Quit: Leaving.]
bluemonk has joined #ruby-lang
sandbags has joined #ruby-lang
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
burgestrand has joined #ruby-lang
malev has quit [Remote host closed the connection]
tenderlove has quit [Remote host closed the connection]
deryl has joined #ruby-lang
srbartlett has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
Sambalero has quit [Remote host closed the connection]
methym has quit [Quit: methym]
neocoin has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
wardrop has quit [Read error: Connection reset by peer]
bytephilia has quit [Quit: Computer has gone to sleep.]
tenderlove has joined #ruby-lang
tenderlove has quit [Ping timeout: 244 seconds]
s0ra_h is now known as sora_h
tonni_ has joined #ruby-lang
tonni has quit [Read error: Connection reset by peer]
chrismcg is now known as zz_chrismcg
brianpWins has quit [Quit: brianpWins]
apeiros_ has joined #ruby-lang
apeiros_ has quit [Ping timeout: 245 seconds]
sora_h is now known as s0ra_h
mistym has quit [Remote host closed the connection]
voker57 has joined #ruby-lang
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
tenderlove has joined #ruby-lang
itcharlie has joined #ruby-lang
dfr|mac has joined #ruby-lang
t15229 has quit [Remote host closed the connection]
t49487 has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
itcharlie has left #ruby-lang [#ruby-lang]
arooni-mobile has joined #ruby-lang
pygmael has quit [Quit: pygmael]
banisterfiend` has quit [Remote host closed the connection]
banisterfiend has joined #ruby-lang
s0ra_h is now known as sora_h
towski has joined #ruby-lang
eridani has quit [Read error: Connection reset by peer]
eridani has joined #ruby-lang
banisterfiend has quit [Ping timeout: 246 seconds]
Xzyx987X_ has joined #ruby-lang
Sambalero has joined #ruby-lang
Xzyx987X has quit [Ping timeout: 252 seconds]
coryf has joined #ruby-lang
dfr|mac has quit [Remote host closed the connection]
sora_h is now known as s0ra_h
setmeaway has joined #ruby-lang
jkprg has quit [Read error: Connection reset by peer]
jkprg has joined #ruby-lang
tonni has joined #ruby-lang
tonni_ has quit [Read error: Connection reset by peer]
deryl has quit [Quit: Time To Go, Too Bad, So Sad!]
Sambalero has quit [Remote host closed the connection]
gokulnath has joined #ruby-lang
t49487 has quit [Remote host closed the connection]
Sambalero has joined #ruby-lang
t40666 has joined #ruby-lang
chimkan has joined #ruby-lang
chimkan has quit [Client Quit]
coryf has quit [Remote host closed the connection]
Sambalero has quit [Remote host closed the connection]
perryh_away is now known as perryh
Sambalero has joined #ruby-lang
towski has quit [Remote host closed the connection]
seanstickle has joined #ruby-lang
gokulnath has quit [Remote host closed the connection]
s0ra_h is now known as sora_h
Sambalero has quit [Remote host closed the connection]
iamjarvo has joined #ruby-lang
iamjarvo has quit [Remote host closed the connection]
gmci has quit [Quit: Computer has gone to sleep.]
gmci has joined #ruby-lang
pfaff has quit [Read error: Connection reset by peer]
justinmcp has joined #ruby-lang
sora_h is now known as s0ra_h
d3vic3 has joined #ruby-lang
banisterfiend has joined #ruby-lang
lcdhoffman has joined #ruby-lang
s0ra_h is now known as sora_h
rippa has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
jackhammer2022 has quit [Ping timeout: 244 seconds]
savage- has joined #ruby-lang
banisterfiend has quit [Remote host closed the connection]
t40666 has quit [Remote host closed the connection]
t12807 has joined #ruby-lang
<zenspider> god I love my job. on my umpteenth code drive of the summer. outside a gorgeous river (now dark), listening to good music, connected to a mifi and coding (well... working on a talk currently)
brianpWins has joined #ruby-lang
<seanstickle> Talking about what?
brianpWins has quit [Client Quit]
macmartine has joined #ruby-lang
<zenspider> (and eating FANTASTIC plums I bought at a roadside stand)
<zenspider> (also... some of the best texan BBQ for dinner... out of a bus)
<zenspider> seanstickle: challenges of OSS contributions
<seanstickle> Aha.
charliesome has joined #ruby-lang
dc5ala has joined #ruby-lang
<zenspider> abstr4ct: dude. please don't use hpricot. you'll be happier if you transition to nokogiri sooner rather than later
<foucist> zenspider: challenges?! what challenges?!
<zenspider> finally found it:
sepp2k has quit [Remote host closed the connection]
<zenspider> foucist: whatcha think?
<zenspider> I'm working on the outline now
<foucist> zenspider: is the increased decision making by the maintainer a result of the increased contributions?
<foucist> any solutions?
<foucist> seems like the forking and patches is an incomplete form of crowdsourcing, do you really need a centralized maintainer
<foucist> hmm, well, you do need people that do the hard work of abstracting/generalizing the fixes properly
<zenspider> you do if you don't want to wind up w/ rspec or rails codebases
<zenspider> pretty much all tenderlove does these days is cleanup, refactor, and rearchitect
<zenspider> it'd have been a lot easier if it were done at the gate
<zenspider> I also need to work in the idea that non-contributions are even worse... monkey patching instead of communicating or contributing...
gmci has quit [Quit: Computer has gone to sleep.]
lcdhoffman has quit [Quit: lcdhoffman]
<zenspider> how many ppl active here do NOT contribute to open source ?
<foucist> abstr4ct: variable = (doc/MuraS).inner_html.gsub!(RemSpace, " ").gsub!(RemTags," ") then in the ".... SET data='#{variable}' ...."
<seanstickle> Does writing your own stuff count as contributing?
d3vic3 has quit [Ping timeout: 240 seconds]
<zenspider> seanstickle: I guess in this context it depends if you work in a vacuum or not. if you have ppl using it and sending in bugs/reqs and stuff... then it counts
<seanstickle> Ah, ok
* foucist decides to contribute by inventing yet another language.. inspired by Forth, Ruby, and Clojure! muwahaha.. muwahahaha
banisterfiend has joined #ruby-lang
<bnagy> does using MIT license count as open source? GPL is the devil :>
<zenspider> bnagy: not touching that one
<seanstickle> Haha
<zenspider> foucist: I've been tempted to see how much work it'd be to implement method lookup and dispatch on a forth-like language
<zenspider> prolly factor, just because it helps you more
<foucist> i want forth with the readability of ruby specifically
savage- has quit [Remote host closed the connection]
<foucist> factor has no ruby influence sadly :P
{DV8} has joined #ruby-lang
<foucist> "puts" gives me an orgasm.. how many languages fuck up the naming of that simple primitive?
<zenspider> that _might_ be tmi
<foucist> heh
hahuang65 has joined #ruby-lang
t12807 has quit [Remote host closed the connection]
t65256 has joined #ruby-lang
brianpWins has joined #ruby-lang
<zenspider> ok. driving home now. laters
gmci has joined #ruby-lang
codewrangler has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
sailias has quit [Quit: Leaving.]
snorkdude has joined #ruby-lang
lun_ has quit [Remote host closed the connection]
vertroa has quit [Read error: Connection reset by peer]
dfr|mac has joined #ruby-lang
macmartine has quit [Quit: Computer has gone to sleep.]
banisterfiend has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby-lang
t65256 has quit [Remote host closed the connection]
cirwin has joined #ruby-lang
<abstr4ct> foucist thank you for your help, gonna give that a shot!
t50041 has joined #ruby-lang
vertroa has joined #ruby-lang
<abstr4ct> foucist, that worked great. thank you!
charliesome has quit [Read error: Connection reset by peer]
charliesome has joined #ruby-lang
gmci has quit [Quit: Computer has gone to sleep.]
mistym has quit [Remote host closed the connection]
snorkdude has quit [Remote host closed the connection]
awalrond has quit [Quit: leaving]
andrewhl has quit [Remote host closed the connection]
rippa has quit [Ping timeout: 246 seconds]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
stayarrr has joined #ruby-lang
apeiros_ has joined #ruby-lang
igotnole_ has quit [Quit: Computer has gone to sleep.]
apeiros_ has quit [Remote host closed the connection]
dc5ala has quit [Quit: Ex-Chat]
stayarrr has quit [Quit: Linkinus - http://linkinus.com]
yats_ has quit [Remote host closed the connection]
yats has quit [Remote host closed the connection]
stayarrr has joined #ruby-lang
yats has joined #ruby-lang
apeiros_ has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
solars has joined #ruby-lang
{DV8} has quit [Quit: Leaving]
perryh is now known as perryh_away
gregmoreno has quit [Read error: Connection reset by peer]
gregmoreno has joined #ruby-lang
t50041 has quit [Remote host closed the connection]
t67582 has joined #ruby-lang
yats_ has joined #ruby-lang
gmci has joined #ruby-lang
yats has quit [Ping timeout: 240 seconds]
d3vic3 has joined #ruby-lang
sora_h is now known as s0ra_h
dfr|mac has quit [Remote host closed the connection]
eyda|mon has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
thone_ has joined #ruby-lang
thone has quit [Ping timeout: 240 seconds]
savage- has joined #ruby-lang
seanstickle has quit [Quit: seanstickle]
banisterfiend has quit [Remote host closed the connection]
banisterfiend has joined #ruby-lang
banisterfiend has quit [Ping timeout: 265 seconds]
Jotade11 has joined #ruby-lang
savage- has quit [Remote host closed the connection]
justinmcp has joined #ruby-lang
banisterfiend has joined #ruby-lang
bluemonk has quit [Ping timeout: 268 seconds]
[1]dtribble has joined #ruby-lang
dtribble has quit [Ping timeout: 246 seconds]
apeiros_ has joined #ruby-lang
eyda|mon has quit [Ping timeout: 252 seconds]
apeiros_ has quit [Ping timeout: 272 seconds]
bluemonk has joined #ruby-lang
eyda|mon has joined #ruby-lang
eyda|mon has quit [Changing host]
eyda|mon has joined #ruby-lang
burgestrand has joined #ruby-lang
eyda|mon has quit [Ping timeout: 252 seconds]
gmci has quit [Quit: Computer has gone to sleep.]
s0ra_h is now known as sora_h
yats_ has quit [Quit: Leaving]
bluemonk has quit [Ping timeout: 240 seconds]
Jotade11 has quit [Quit: Linkinus - http://linkinus.com]
bluemonk has joined #ruby-lang
gmci has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
ryez has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
burgestrand has joined #ruby-lang
Z33K|Lux has quit [Ping timeout: 252 seconds]
Technodrome has joined #ruby-lang
<Technodrome> i want to use the latest rails but i only have 1.8.7 installed
<cirwin> install a more recent version of ruby
t67582 has quit [Remote host closed the connection]
<cirwin> rvm or rbenv can help you do that
t98085 has joined #ruby-lang
<steveklabnik> the latest released rails supports 1.8.7
<steveklabnik> rails 4 will not.
workmad3 has joined #ruby-lang
fgomez has joined #ruby-lang
sora_h is now known as s0ra_h
qwerxy has joined #ruby-lang
<Technodrome> yes dvm was failing on me
<Technodrome> rvm
tenderlove has joined #ruby-lang
qwerxy has quit [Client Quit]
<steveklabnik> you can go ask over in #rvm about it, that channel is super helfpul
<steveklabnik> it is 0400 EST right now though, so I'm not sure that anyone is awake right now
<Technodrome> just so annoying for me to have these issues every time i go to use raise on a new osx box
<Technodrome> getting rails on windows was easier
<steveklabnik> :)
<steveklabnik> i'm glad you found it easy on windows
<steveklabnik> are you running mountain lion?
<Technodrome> yes
<Technodrome> still has 1.8.7 on it
<steveklabnik> yeah, due to compiler changes, it fails sometimes.
<steveklabnik> building newer rubies
<steveklabnik> i got lucky and had no problem
<Technodrome> idiotic
<Technodrome> for mac to b the goto rails os for dev's, its difficult as shit to get a working install on it sometimes
<steveklabnik> yes, apple tends to make changes that hit rubyists especially hard
<steveklabnik> do you use homebrew?
tenderlove has quit [Ping timeout: 240 seconds]
<steveklabnik> i 1) updated xcode 2) downloaded the command line tools through xcode 3) fixed every thing that 'brew doctor' complained about and then 4) rvm install 1.9.3
<steveklabnik> and it all Just Worked
<steveklabnik> dunno if that helps or not :/
toretore has joined #ruby-lang
<Technodrome> i did not use homebrew
<Technodrome> i did what you said
<Technodrome> updated Xcode, installed commnd line tools
<steveklabnik> what error were you getting? the one about libxml?
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
stardiviner has joined #ruby-lang
AnarchoTroll has joined #ruby-lang
<AnarchoTroll> Does anyone know why importing a library in this ruby C extension: https://github.com/vicentealencar/ruby-native-extension is failing?
d3vic3 has quit [Quit: leaving]
cirwin has quit [Ping timeout: 246 seconds]
<yorickpeterse> AnarchoTroll: You need to include the library
<yorickpeterse> $CFLAGS << " -I path/to/hello"
<yorickpeterse> Put that in your extconf
<banisterfiend> yorickpeterse: are you looking forward to relaxing with robgleeson
brdude has joined #ruby-lang
<yorickpeterse> that's very on topic :)
<yorickpeterse> but nfi, first see if he actually gets the place
dumfries has quit [Excess Flood]
dumfries has joined #ruby-lang
rue has quit [Ping timeout: 276 seconds]
<injekt> yorickpeterse: what's that?
<postmodern> im afraid of what extconf entails
<postmodern> at least it wont be as messy as autoconf
bluemonk has quit [Ping timeout: 276 seconds]
bluemonk has joined #ruby-lang
poga has joined #ruby-lang
<yorickpeterse> postmodern: extconfs are fine
<yorickpeterse> injekt: re: what?
<injekt> yorickpeterse: rob :P
<yorickpeterse> Oh, he's looking for an apartment and the one below me is available
<yorickpeterse> So I sent my landlord an Email about it
huug has joined #ruby-lang
<injekt> he's looking for an apartment in DE?
<yorickpeterse> ...
<yorickpeterse> I don't live in DE you muppet
<injekt> o
<injekt> where do you live?
<yorickpeterse> NL. Some might think that's a province in DE but I'd expect you to know better :)
<injekt> ah no I actually thought it was de
<injekt> tehe 'muppet' so british of you yorickpeterse
<injekt> so why's he moving there?
dc5ala has joined #ruby-lang
toretore has quit [Quit: This computer has gone to sleep]
<yorickpeterse> He mentioned that he wanted to live in NL, not sure of what the exact reasons for that are
<injekt> ah
<injekt> cool
<injekt> his apartment in ireland is pretty sexy
<Technodrome> where are you located?
<injekt> me?
<Technodrome> yeah
<injekt> UK
<banisterfiend> yorickpeterse: definitely for the people, dutch people are famously k00 and easy to get along with
<injekt> ...
<Technodrome> i didn't find many european apartments sexy when i visited but it was just a different style
huug has quit [Ping timeout: 246 seconds]
<banisterfiend> yorickpeterse: Nah, he just likes your laws.
<banisterfiend> :P
<injekt> Technodrome: his was a new complex
workmad3 has quit [Ping timeout: 245 seconds]
<injekt> banisterfiend: pretty sure those laws are being extinguished
<Technodrome> i live in miami florida atm
<banisterfiend> not for a while yet in amsterdam i think, couple more years or at leats a year
<injekt> Technodrome: well, that's why you couldn't find any sexy aprtments in eu
<injekt> banisterfiend: I thought amsterdam was this year? That's why I'm not going next year anymore
<injekt> been every year for the past like 4-5
<Technodrome> well most apartments in miami are minimalistic
<yorickpeterse> banisterfiend: the gobment/laws/whatever aren't that bad
gmci has quit [Quit: Computer has gone to sleep.]
[1]dtribble has quit [Ping timeout: 252 seconds]
<Technodrome> also water views are hard to get i think
<injekt> my apartment in vancouver was possibly the sexiest thing ever
bluemonk has quit [Ping timeout: 248 seconds]
<Technodrome> let me see if i can find a pic of mine online
<AnarchoTroll> yorickpeterse, Wasn't dir_config supposed to do that?
<yorickpeterse> no
bluemonk has joined #ruby-lang
<Technodrome> looks like the great outdoors
<yorickpeterse> I believe dir_config does the --with-bla-dir part but it doesn't actually link the library to your extension
<injekt> Technodrome: yeah over the harbour and close the to mountains, perfecto
<yorickpeterse> injekt: why did you move back to UK actually?
<injekt> yorickpeterse: waiting for visa stuff to clear mostly
<Technodrome> similar to miami but i guess more tropical looking here
<AnarchoTroll> now I got the following error:
<AnarchoTroll> checking for hello() in -lhello... /home/vicente/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/mkmf.rb:368:in `try_do': The complier failed to generate an executable file. (RuntimeError)
<AnarchoTroll> You have to install development tools first.
<injekt> and ensuring our company does well enough for it to be worth me moving back
<yorickpeterse> ah
<yorickpeterse> AnarchoTroll: Do you have the Ruby development headers installed?
<yorickpeterse> as in, is ruby.h available?
<Technodrome> apartments are a lot cheaper in miami than people think
<injekt> surely rvm deals with that
<Technodrome> mine is 1,450 a month
<injekt> Technodrome: that one in vancouver was 3,600 a month
<injekt> lol
<injekt> 3.6m to buy
<AnarchoTroll> yorickpeterse, I think so. I did manage to create an extension without including an external lib
<yorickpeterse> hm
<Technodrome> hmmm same builder as here, you can't see it very well because its only one angle but http://www.hoteles-en-miami-beach.com/miami_beach_rentals/south_beach_condo_31.jpg
<yorickpeterse> The pkg-config bit takes care of adding all the -I flags
<injekt> Technodrome: nice
<Technodrome> probably any new apartment in miami since the 80's is like that
<Technodrome> err 70;s
<Technodrome> its crazy how many empty places there are thats cheap though
bluemonk has quit [Ping timeout: 240 seconds]
khaase_ has left #ruby-lang [#ruby-lang]
khaase has joined #ruby-lang
AnarchoTroll has quit [Remote host closed the connection]
lun_ has joined #ruby-lang
<Technodrome> injekt: when i was in france and spain most apartments were just older contemporary styled
<injekt> heh
esad has quit [Quit: Computer has gone to sleep.]
<Technodrome> madrid had a few nice modern ones though
qwerxy has joined #ruby-lang
AnarchoTroll has joined #ruby-lang
fgomez has quit [Quit: leaving]
fgomez has joined #ruby-lang
fgomez has quit [Client Quit]
fgomez has joined #ruby-lang
t98085 has quit [Remote host closed the connection]
t85586 has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
Criztian has joined #ruby-lang
bluemonk has joined #ruby-lang
<AnarchoTroll> I just found out what was going on
<AnarchoTroll> The problem was how I was naming the library. I wasn't prefixing "lib" on its name, causing gcc not to find it
<yorickpeterse> ah
yats has joined #ruby-lang
brdude has quit [Quit: brdude]
banisterfiend` has joined #ruby-lang
banisterfiend has quit [Ping timeout: 272 seconds]
ryanf has quit [Quit: leaving]
stayarrr has quit [Quit: Leaving...]
qwerxy has quit [Quit: offski]
bluemonk has quit [Ping timeout: 248 seconds]
bluemonk has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
benanne has joined #ruby-lang
qwerxy has joined #ruby-lang
Asher has joined #ruby-lang
Weems has quit [Ping timeout: 268 seconds]
rue has joined #ruby-lang
diegoviola has quit [Ping timeout: 245 seconds]
esad has joined #ruby-lang
gmci has joined #ruby-lang
bluemonk has quit [Ping timeout: 252 seconds]
bluemonk has joined #ruby-lang
spuk has quit [Ping timeout: 240 seconds]
esad has quit [Quit: Computer has gone to sleep.]
jbsan has quit [Quit: jbsan]
t85586 has quit [Remote host closed the connection]
t88216 has joined #ruby-lang
srbartlett has quit [Remote host closed the connection]
srbartlett has joined #ruby-lang
bluemonk has quit [Ping timeout: 260 seconds]
bluemonk has joined #ruby-lang
srbartlett has quit [Read error: Connection reset by peer]
eyda|mon has joined #ruby-lang
srbartle_ has joined #ruby-lang
yats has quit [Read error: Connection timed out]
Weems has joined #ruby-lang
Weems has joined #ruby-lang
Weems has quit [Changing host]
yats has joined #ruby-lang
jxie has quit [Quit: leaving]
Weems has quit [Ping timeout: 256 seconds]
diegoviola has joined #ruby-lang
charliesome has quit [Ping timeout: 244 seconds]
eyda|mon has quit [Ping timeout: 240 seconds]
awalrond has joined #ruby-lang
banisterfiend` has quit [Read error: Connection reset by peer]
<awalrond> I keep doing this and can never remember why it doesn't work:
<awalrond> irb(main):005:0> a= lambda { puts "hello" }; case a.class; when Proc; puts "PROC"; else puts "NOPE"; end
<awalrond> NOPE
<awalrond> why?
Weems has joined #ruby-lang
Weems has joined #ruby-lang
Weems has quit [Changing host]
banisterfiend has joined #ruby-lang
eyda|mon has joined #ruby-lang
<awalrond> Ahha
<awalrond> a= lambda { puts "hello" }; case a.class; when Proc.class; puts "PROC"; else puts "NOPE"; end
<awalrond> PROC
<awalrond> Now I remember ;)
<banisterfiend> awalrond: you can do this instead
<banisterfiend> awalrond: case a; when Proc; ...; else; ...; end
eyda|mon has quit [Ping timeout: 240 seconds]
<awalrond> Really? tries...
postmodern has quit [Quit: Leaving]
eyda|mon has joined #ruby-lang
<awalrond> So you can. But a === Proc doesn't work?!?
dejongge has joined #ruby-lang
<awalrond> I thought case uses === for comparisons? Such are the perils of weekend ruby coding....
<injekt> Proc === a
<injekt> a === Proc isn't the same as Proc === a
eyda|mon has quit [Ping timeout: 240 seconds]
voker57 has quit [Read error: Connection reset by peer]
fgomez has quit [Remote host closed the connection]
<awalrond> injekt: oh yeah. Too much lisp is obviously bad for me
gmci has quit [Quit: Computer has gone to sleep.]
bluemonk has quit [Ping timeout: 260 seconds]
rubylion has joined #ruby-lang
banisterfiend has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby-lang
rubylion has quit [Read error: Connection reset by peer]
bluemonk has joined #ruby-lang
chendo_ has quit [Ping timeout: 246 seconds]
chendo_ has joined #ruby-lang
qwerxy has quit [Quit: offski]
eyda|mon has joined #ruby-lang
eyda|mon has joined #ruby-lang
eyda|mon has quit [Changing host]
tbuehlmann has joined #ruby-lang
banisterfiend has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby-lang
eyda|mon has quit [Ping timeout: 240 seconds]
rohit has joined #ruby-lang
banisterfiend has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby-lang
banisterfiend has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby-lang
toretore has joined #ruby-lang
rohit has quit [Ping timeout: 240 seconds]
s0ra_h is now known as sora_h
tenderlove has joined #ruby-lang
stayarrr has joined #ruby-lang
tenderlove has quit [Ping timeout: 240 seconds]
quatauta has joined #ruby-lang
eyda|mon has joined #ruby-lang
yats has quit [Ping timeout: 272 seconds]
rohit has joined #ruby-lang
srbartle_ has quit [Remote host closed the connection]
gmci has joined #ruby-lang
yats has joined #ruby-lang
quatauta has quit [Quit: Verlassend]
sora_h is now known as s0ra_h
eyda|mon has quit [Ping timeout: 240 seconds]
banisterfiend has quit [Read error: Connection reset by peer]
Jake232 has joined #ruby-lang
banisterfiend has joined #ruby-lang
andrewhl has joined #ruby-lang
chendo_ has quit [Ping timeout: 276 seconds]
banisterfiend has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby-lang
banisterfiend has quit [Read error: Connection reset by peer]
chendo_ has joined #ruby-lang
Hakon has quit [Remote host closed the connection]
Criztian has quit [Remote host closed the connection]
Hakon has joined #ruby-lang
banisterfiend has joined #ruby-lang
s0ra_h is now known as sora_h
zmack has joined #ruby-lang
toretore has quit [Quit: This computer has gone to sleep]
Axsuul has quit [Ping timeout: 252 seconds]
banisterfiend has quit [Read error: Connection reset by peer]
<sandbags> can anyone tell me what I am missing here: https://gist.github.com/d0badc5b06add76908a7 <-- (gem which puzzlement)
banisterfiend has joined #ruby-lang
<sandbags> banisterfiend: you went offline just before i wrote, can you see what i am missing here https://gist.github.com/d0badc5b06add76908a7 ?
Technodrome has left #ruby-lang [#ruby-lang]
rohit has quit [Quit: Leaving]
lcdhoffman has joined #ruby-lang
pabloh has joined #ruby-lang
methym has joined #ruby-lang
methym has quit [Client Quit]
gmci has quit [Quit: Computer has gone to sleep.]
chendo_ has quit [*.net *.split]
bluemonk has quit [*.net *.split]
abstr4ct has quit [*.net *.split]
Skif has quit [*.net *.split]
ged has quit [*.net *.split]
MrWGW has quit [*.net *.split]
stephenp has quit [*.net *.split]
no_i_wont has quit [*.net *.split]
VGoff has quit [*.net *.split]
bmaland has quit [*.net *.split]
ReinH has quit [*.net *.split]
mahlon has quit [*.net *.split]
SubSpawn has quit [*.net *.split]
anacond109 has quit [*.net *.split]
s1n4 has quit [Quit: leaving]
emanon_ has joined #ruby-lang
pabloh has quit [Quit: Ex-Chat]
chendo_ has joined #ruby-lang
dejongge has quit [Quit: Leaving.]
zz_chrismcg is now known as chrismcg
gmci has joined #ruby-lang
m3nd3s has joined #ruby-lang
yats has quit [Ping timeout: 240 seconds]
banisterfiend has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby-lang
seanstickle has joined #ruby-lang
jxie has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
diegoviola has quit [Quit: leaving]
NOKAH has joined #ruby-lang
ged has joined #ruby-lang
stephenp has joined #ruby-lang
Skif has joined #ruby-lang
bluemonk has joined #ruby-lang
abstr4ct has joined #ruby-lang
MrWGW has joined #ruby-lang
VGoff has joined #ruby-lang
no_i_wont has joined #ruby-lang
bmaland has joined #ruby-lang
SubSpawn has joined #ruby-lang
anacond109 has joined #ruby-lang
ReinH has joined #ruby-lang
mahlon has joined #ruby-lang
t88216 has quit [Remote host closed the connection]
t14845 has joined #ruby-lang
ged is now known as Guest14440
Hakon has quit [Ping timeout: 252 seconds]
deryl has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
Criztian has joined #ruby-lang
bytephilia has joined #ruby-lang
jbsan has joined #ruby-lang
workmad3 has joined #ruby-lang
stayarrr has quit [Quit: Linkinus - http://linkinus.com]
codewrangler has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 246 seconds]
FluffyCode has joined #ruby-lang
workmad3 has quit [Ping timeout: 272 seconds]
akira989 has quit [Remote host closed the connection]
<abstr4ct> Got a scenario where i need 2 arrays of variables to change in the code in lock step. I am coming up empty as to how to achive this. https://gist.github.com/3395334
sepp2k has joined #ruby-lang
<abstr4ct> the only (stupid) thing i can come up with is to variablize a variable... which makes my brain melt and seems like a bad idea on the surface, i must be missing something simple (ruby noob here)
seanstickle has quit [Quit: seanstickle]
t14845 has quit [Remote host closed the connection]
t90414 has joined #ruby-lang
<sandbags> abstr4ct: my first thought would be to store your query in a hash keyed on your query_day
<sandbags> or use a function if one can be deduced from the other
jmcphers has quit [Ping timeout: 248 seconds]
Leeky_afk is now known as Leeky
spuk has joined #ruby-lang
jmcphers has joined #ruby-lang
<lianj> abstr4ct: https://pastee.org/zw7gf
<abstr4ct> clever, now to figure it out! hehe, thanks for the help gonna get to work on understanding it :)
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
<abstr4ct> test3.rb:97: formal argument cannot be a constant
<abstr4ct> ...M] ].each{|Query_day, Venue_day|
<Mon_Ouie> Yeah, the parameter names of a block or a method can't be constants
<Mon_Ouie> Anything that starts with an upper case letter is a constant
<Mon_Ouie> (well not *anything*, but in this context, it's a constant)
Leeky is now known as Leeky_afk
Sambalero has joined #ruby-lang
<abstr4ct> hrm... didnt realize having a capital letter was that important
countdigi has joined #ruby-lang
<abstr4ct> so now it runs.. and the "puts" work, but the insert into DB doesnt loop through each iteration...
<Mon_Ouie> Using the code pasted by lianj?
<abstr4ct> yes...
<abstr4ct> the sanitized part is where it breaks down
<Mon_Ouie> That's because it uses an ivar sometimes
<Mon_Ouie> Instead of the argument passed to the block
<Mon_Ouie> (@foo is an ivar)
<abstr4ct> hrm okay.. this is what i ahve now
bytephilia has quit [Remote host closed the connection]
<abstr4ct> still no looping on the santitized part
<Mon_Ouie> Also, just surrounding something with single quotes doesn't assure proper quoting or prevent SQL injections
<Mon_Ouie> Whatever is inserted between the quotes also need to be escaped
<Mon_Ouie> That code is hard to read due to bad indentation, that would be the first thing to change
<abstr4ct> feel free to teach me, i am very new to ruby, and programming in general
<abstr4ct> but i figured the best way to learn is to try, which has generated more questions than answers to some degree. but its fun.
<abstr4ct> ill find myself confused when someone helps me, then the next day ill awake from sleep when it "clicks"
<abstr4ct> hehe
qwerxy has joined #ruby-lang
<abstr4ct> oh, yeah i see what you mean, that does seem to read/flow much nicer...
qwerxy has quit [Client Quit]
<abstr4ct> Thank you for the comments beside the code with your input. that really helps me learn how a more seasoned rubier thinks.
<abstr4ct> some people just remove stuff, but it leaves me with i lingering "but why" wuestion
<abstr4ct> question...
FluffyCo_ has joined #ruby-lang
wpaulson has joined #ruby-lang
macmartine has joined #ruby-lang
FluffyCode has quit [Ping timeout: 276 seconds]
toretore has joined #ruby-lang
<abstr4ct> open-uri.rb:35:in `open': can't convert nil into String (TypeError)
<abstr4ct> doh
<abstr4ct> my mistake
<abstr4ct> it does not error and it runs. but it does not iterate through the DB insert...
qwerxy has joined #ruby-lang
havenn has joined #ruby-lang
<abstr4ct> however, the puts do iterate through
<abstr4ct> i suspect the following lines
<abstr4ct> sanitized_data = (doc/venue_day).inner_html.gsub!(RemSpace, " ").gsub!(RemTags," ")
<abstr4ct> con.query("UPDATE specials SET data='#{sanitized_data}' WHERE name='#{query_name}' AND day='#{query_day}'")
<abstr4ct> are not iterating
<abstr4ct> they feel wrong to me...
<abstr4ct> the iside parts all variables that update, but the method isnt tied to something to iterate as far as i can tell
chimkan_ has joined #ruby-lang
<abstr4ct> EXample in other language would be "for i in...."
<lianj> [1,2,3,4].each{|number| puts number }
<abstr4ct> right... and i see that
<abstr4ct> but i need to extend that to the other methods
<lianj> other methods?
<abstr4ct> con.query
zmack has quit [Remote host closed the connection]
<lianj> [1,2,3,4].each{|number| con.query(...) }
Z33K|Lux has joined #ruby-lang
z33k|Luxx has joined #ruby-lang
FluffyCo_ has quit [Remote host closed the connection]
FluffyCode has joined #ruby-lang
dous has quit [Remote host closed the connection]
wpaulson_ has joined #ruby-lang
wpaulson has quit [Read error: Connection reset by peer]
wpaulson_ is now known as wpaulson
esad has joined #ruby-lang
ryez has quit [Ping timeout: 245 seconds]
radge has joined #ruby-lang
macmartine has quit [Quit: Computer has gone to sleep.]
<abstr4ct> im stupid
<abstr4ct> needed to have some schema behind it, and it works
<abstr4ct> thanks for all your help!
<lianj> now make the sql query secure..
<abstr4ct> hehe, im not that far yet...
<abstr4ct> i need to figure out how to have mysql auto increment the primary key
<lianj> abstr4ct: in the schema
bytephilia has joined #ruby-lang
bytephilia has quit [Remote host closed the connection]
bytephilia has joined #ruby-lang
<abstr4ct> think i found it
esad has quit [Quit: Computer has gone to sleep.]
t90414 has quit [Remote host closed the connection]
t4699 has joined #ruby-lang
Fullmoon has joined #ruby-lang
esad has joined #ruby-lang
savage- has joined #ruby-lang
NOKAH has quit [Quit: Leaving...]
sepp2k1 has joined #ruby-lang
apeiros_ has joined #ruby-lang
sepp2k has quit [Ping timeout: 276 seconds]
banisterfiend has quit [Remote host closed the connection]
banisterfiend has joined #ruby-lang
macmartine has joined #ruby-lang
qwerxy has quit [Ping timeout: 240 seconds]
sora_h is now known as s0ra_h
Z33K|Lux has quit []
z33k|Luxx has quit []
banisterfiend has quit [Ping timeout: 246 seconds]
voker57 has joined #ruby-lang
qwerxy has joined #ruby-lang
lcdhoffman has joined #ruby-lang
chimkan_ has quit [Quit: chimkan_]
tenderlove has joined #ruby-lang
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
tallship has quit [Ping timeout: 252 seconds]
qwerxy has quit [Quit: offski]
zmack has joined #ruby-lang
wpaulson has joined #ruby-lang
macmartine has quit [Quit: Computer has gone to sleep.]
zmack has quit [Read error: Connection reset by peer]
zmack has joined #ruby-lang
towski has joined #ruby-lang
anannie has joined #ruby-lang
<anannie> Hi can someone please help me out with a question?
qwerxy has joined #ruby-lang
savage- has quit [Remote host closed the connection]
jbsan has quit [Quit: jbsan]
<rue> It’ll be easier if you ask it
havenn has quit [Remote host closed the connection]
<zzak> xmlrpc up to 43% doc coverage now, just have parser and server left to go through
<zzak> from 17%
<anannie> I'm on OS 10.7 I want to find where the general ruby libraries are stored. I've searched with the library names but I haven't found anything. (and yes I have googled looked in /Library as well) Can someone please help me?
tallship has joined #ruby-lang
<lianj> anannie: `gem env`
<anannie> lianj thank you!
dtribble has joined #ruby-lang
<anannie> lianj: Searched my machine I can't seem to find it...
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
<lianj> anannie: find what? type it in the shell
<anannie> lianj: Ah thank you, this is neat. (I thought that gem env was the name of the folder and I did a search in spotlight)
Hakon has joined #ruby-lang
dous has quit [Ping timeout: 276 seconds]
jbsan has joined #ruby-lang
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
towski has quit [Remote host closed the connection]
qwerxy has quit [Ping timeout: 240 seconds]
lcdhoffman has quit [Quit: lcdhoffman]
wpaulson has joined #ruby-lang
lcdhoffman has joined #ruby-lang
spuk has quit [Ping timeout: 244 seconds]
jackhammer2022 has joined #ruby-lang
seanstickle has joined #ruby-lang
s0ra_h is now known as sora_h
dc5ala has quit [Quit: Ex-Chat]
qwerxy has joined #ruby-lang
itsmeduncan has joined #ruby-lang
jbwiv has quit [Read error: Connection reset by peer]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
jbsan has quit [Quit: jbsan]
qwerxy has quit [Quit: offski]
Jake232 has quit [Quit: Computer has gone to sleep.]
sora_h is now known as s0ra_h
s0ra_h is now known as sora_h
macmartine has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
Hakon has quit [Quit: Leaving...]
Hakon has joined #ruby-lang
sora_h is now known as s0ra_h
t4699 has quit [Remote host closed the connection]
t83971 has joined #ruby-lang
jkprg has quit [Remote host closed the connection]
lsegal has joined #ruby-lang
spuk has joined #ruby-lang
jkprg has joined #ruby-lang
jbwiv has joined #ruby-lang
dous has joined #ruby-lang
dous has joined #ruby-lang
dous has quit [Changing host]
jkprg has quit [Remote host closed the connection]
chendo_ has quit [Ping timeout: 248 seconds]
chendo_ has joined #ruby-lang
dous has quit [Ping timeout: 240 seconds]
rippa has joined #ruby-lang
lcdhoffman has joined #ruby-lang
answer_42 has joined #ruby-lang
workmad3 has joined #ruby-lang
ruby-code has joined #ruby-lang
MouseTheLuckyDog has quit [Remote host closed the connection]
wallerdev has joined #ruby-lang
igotnolegs has joined #ruby-lang
Z33K|Lux has joined #ruby-lang
tenderlove has quit [Ping timeout: 246 seconds]
m3nd3s has quit [Remote host closed the connection]
esad has quit [Quit: Computer has gone to sleep.]
tenderlove has joined #ruby-lang
workmad3 has quit [Ping timeout: 265 seconds]
wallerdev has quit [Quit: wallerdev]
ruby-code has quit [Quit: Page closed]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
jbwiv has quit [Read error: Connection reset by peer]
s0ra_h is now known as sora_h
mytrile has joined #ruby-lang
macmartine has quit [Read error: Connection reset by peer]
gmci has quit [Quit: Computer has gone to sleep.]
gmci has joined #ruby-lang
macmartine has joined #ruby-lang
sora_h is now known as s0ra_h
radge has quit [Quit: Leaving...]
ryanf has joined #ruby-lang
tbuehlmann has quit []
macmartine has quit [Ping timeout: 252 seconds]
t83971 has quit [Remote host closed the connection]
t12926 has joined #ruby-lang
chimkan_ has joined #ruby-lang
dous has joined #ruby-lang
chimkan_ has quit [Quit: chimkan_]
cirwin has joined #ruby-lang
dous has quit [Ping timeout: 276 seconds]
Sambalero has quit [Remote host closed the connection]
wallerdev has joined #ruby-lang
retro|cz has quit [Ping timeout: 265 seconds]
jbsan has joined #ruby-lang
havenn has joined #ruby-lang
t12926 has quit [Remote host closed the connection]
t40431 has joined #ruby-lang
workmad3 has joined #ruby-lang
<abstr4ct> ie got hpricot working well enough, but now i need to grab everything between to div tags.. can this be done?
Guest14440 has left #ruby-lang [#ruby-lang]
ged has joined #ruby-lang
<abstr4ct> it would be really great if i could work out how to do this in the xpath syntax without doing some sort of loop for each element
havenn has quit [Ping timeout: 240 seconds]
<abstr4ct> so far no luck...
<lianj> what page do you try to scrape again?
<abstr4ct> well its a few, i have a few spots i like to eat at.. and this scrapes the specials so i can query my db
<abstr4ct> its kinda lame, but a good learning exercise for me..
benanne has quit [Quit: kbai]
<abstr4ct> but right now its 4 places..
zmack has quit [Remote host closed the connection]
<lianj> link to a sample html you like to scrape?
jtoy has joined #ruby-lang
<abstr4ct> oh sure
workmad3 has quit [Ping timeout: 260 seconds]
s0ra_h is now known as sora_h
<injekt> heh
<abstr4ct> in the link i sent, its only the lunch specials that have me tripped up because they span multiple divs, the others i have just fine.
Soleone has joined #ruby-lang
<injekt> where is the link?
<abstr4ct> i ./msgd it
<injekt> i see
<injekt> that's helpful ;)
<abstr4ct> hehe
<abstr4ct> http://www.sonoraleigh.com/index.php/specials its just the lunch specials.. the rest i have fine....
<abstr4ct> i need to span multiple div containers in one sweep. or so it seems
sandbags has quit [Remote host closed the connection]
<abstr4ct> hahaha http://www.youtube.com/watch?v=kAaZaK8_y6s lol at the top comment :P
sandbags has joined #ruby-lang
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
burgestrand has quit [Quit: Leaving.]
burgestrand has joined #ruby-lang
<lianj> abstr4ct: sadly its ugly html to parse. but i suggest using nokogiri anyway
<lianj> ah hehe, like injekt did
<injekt> lianj: always <3
<abstr4ct> nokogiri, i hear that alot. but i dont know enough to know the pros and cons... but thanks for the suggestion
<lianj> thought Hpricot was long dead
<abstr4ct> oh really
<injekt> its faster, supports more syntax out the box, updated more often
<injekt> I could go on all day
<abstr4ct> well now i feel foolish
<hipe> abstr4ct: nokogiri is the way. hpricot is over
<injekt> it's not long dead
<injekt> but it's not very alive, either
<injekt> it was dead for a long time, though
<injekt> someone revived it
<hipe> hpricot is part of ruby mythology now
<abstr4ct> hehe
<injekt> it's still not near nokogiri
<injekt> so you should use that, abstr4ct :)
<injekt> plus as you can see, you'll get much more support with nokogiri
<injekt> (ala my example)
<abstr4ct> well shit, here i am starting a new fun project using a corpse
<abstr4ct> shit, i wonder how much work i can salvage
<abstr4ct> hrm
<abstr4ct> hehe
<hipe> ohey, what are ppls favorite places to read up on ::Regexp, (e.g. oniguruma.) i'm trying to figure out what the '\G' modifier does in a regexp and i'm having a heckuva time finding reasonable documentation for it
<hipe> (telling me what that modifier does does not count as answering my question ;))
<injekt> you can use nokogiri in place of hpricot sometimes
<injekt> try it, abstr4ct
<hipe> abstr4ct: i assume you mean corpus
<injekt> \G is matching start position
<injekt> it's an anchor
<hipe> to start a fun project using a corpse you would have to put a lot of energy into justifying that statement, immediately after it ;)
<abstr4ct> no corpse, as in something that is dead
Jake232 has joined #ruby-lang
<abstr4ct> ie: hpricot
<hipe> injekt: thx! whenever it turns up in searches, i never think to acutally go to a geocities page to use as refernece for regexp ;)
<abstr4ct> hehe
<hipe> abstr4ct: OIC! haha i get it ;)
<injekt> hipe: heh yeah, bookmark that page, it's awesome :-)
havenn has joined #ruby-lang
<anannie> I've been trying to download the ri docs for the default ruby (1.8) installed on OS X. I went into the /Library/Ruby/Gems/1.8 folder (which gems env shows as my installation directory) and did rdoc --all --ri, I got "No newer files." However I know for sure that some documentation isn't there as it returns ri File.open as "Nothing known about File.open"
<abstr4ct> alright got the nokogiri gem isntalled
<anannie> Can someone please help me out with this?
<injekt> anannie: gem install rdoc-data
havenn_ has joined #ruby-lang
<injekt> iirc
lun__ has joined #ruby-lang
<anannie> thanks injekt! I'll let this run and see what happens.
havenn_ has quit [Read error: No route to host]
lun_ has quit [Ping timeout: 256 seconds]
havenn_ has joined #ruby-lang
sora_h is now known as s0ra_h
burgestrand has quit [Quit: Leaving.]
bfreeman has quit [Quit: bfreeman]
ryanf has quit [Quit: leaving]
havenn_ has quit [Ping timeout: 240 seconds]
bfreeman has joined #ruby-lang
<anannie> injekt: Nothing changed. However a bit of Googling revealed this in stackoverflow; http://stackoverflow.com/a/6963148 is running that a safe option?
Soleone has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
<injekt> anannie: yeah that's part of the process, sorry I should have mentioned that
<anannie> injekt: So I have to do rdoc-data --install ?
havenn has quit [Remote host closed the connection]
<anannie> injekt: Okay
<injekt> yup
<anannie> injekt: Thanks once again :)
jtoy has quit [Quit: jtoy]
dous has joined #ruby-lang
<anannie> injekt: It works :D
<injekt> anannie: great!
publicvoid_ has quit [Ping timeout: 246 seconds]
<anannie> injekt: Hrm. I don't really understand most of this... Does this change at some point? The document is a bit obtuse (I've just started learning ruby fwiw)
dous has quit [Ping timeout: 276 seconds]
<injekt> anannie: what version of ruby are you on? Default OS X? (ruby -v)
<anannie> injekt: 1.8
<injekt> I recommend upgrading
<injekt> 1.8 is old
<rue> …And thus we get to rvm/rbenv/rbfu
<anannie> injekt: 1.8.7... Will upgrading cause any problems?
<injekt> rue: hey i didn't mention that :D
<anannie> rue: I've read about rvm...
<injekt> anannie: with your code?
<injekt> I personally use rbenv
macmartine has joined #ruby-lang
<anannie> injekt: No my code is non existent, but I remembered reading somewhere that it isn't smart to mess around with the language distributions bundled with an OS... Upgrading python on Ubuntu for example was hard.
Sambalero has joined #ruby-lang
<injekt> that's because ubuntu are assholes when it comes to language package management
<injekt> apple is just outdated
<injekt> these tools have been built (and are popular) for this reason
<anannie> injekt: Okay you have convinced me. I shall take the plunge
<injekt> it's always good to have the latest stable version of ruby
<anannie> injekt: Why, if I may ask?
<injekt> upgrades are there for a reason, stability, speed, important features, bug fixes
<injekt> you of course want to take advantage of these
<ddfreyne> anannie: I greatly recommend rvm or rbenv
<injekt> that and, if someone has built a gem specific for 1.9 you wont be able to use it
<anannie> ddfreyne: I'm using rvm right now...
<ddfreyne> ok :)
<anannie> injekt: Even if you're doing essentially boring things right now?
<injekt> especially
<anannie> injekt: What I'm trying to ask if there is a certain point at which measures like these become relevant
<anannie> ddfreyne: Thanks :)
<injekt> when 1.9 has been out over a year
<injekt> and gems become incompatible with a former version of ruby
<injekt> that is, dropping version support
yxhuvud has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby-lang
publicvoid_ has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
<anannie> injekt: Oh I see. It's nearly done now
m3nd3s has joined #ruby-lang
m3nd3s has quit [Remote host closed the connection]
macmartine has quit [Quit: Computer has gone to sleep.]
<anannie> injekt: Which version should I install? 1.9.2? Or one of the versions which says things such as; 1.9.2-p318
<anannie> ?
<injekt> 1.9.3
<anannie> injekt: 1.9.3-head?
<injekt> no
<injekt> tha't not stable
<injekt> that's*
<injekt> the latest patchlevel
<injekt> I think that's p194
<deryl> it is
<anannie> Oh so 1.9.3-head means the most recently released version?
<deryl> current 1.9.3 stable is ruby 1.9.3p194 (2012-04-20 revision 35410)
<injekt> anannie: head points to the tip of the online codebase
<anannie> injekt: Ah I see, thank you
t40431 has quit [Remote host closed the connection]
Fullmoon has quit [Quit: Fullmoon]
<anannie> injekt: I got a few interesting instructions when I ran rvm install 1.9.3
t56818 has joined #ruby-lang
<anannie> To use an RVM installed Ruby as default, instead of the system ruby:
<anannie> rvm install 1.8.7 # installs patch 357: closest supported version
<anannie> rvm system ; rvm gemset export system.gems ; rvm 1.8.7 ; rvm gemset import system.gems # migrate your gems
<anannie> rvm alias create default 1.8.7
<injekt> rvm use 1.9.3 --default
<anannie> can you please explain what this means? I just want to understand what's going on
<injekt> that's for importing your system gems
<injekt> into the new rvm version
<abstr4ct> nokogiri seems pretty good but now im getting "\u00BD price drafts and hot sake" instead of "&frac12; price......."
<anannie> Am I supposed to run it right now before doing the installation?
<deryl> no. if you want to use an rvm controlled ruby (one that rvm builds and tracks) rather than the *system's* installed ruby you do that
<deryl> if you are just trying to install 1.9.3 and leave the system ruby all alone and do nothing with it, you ignore those instructions
<injekt> before? you said you installed 1.9.3, then just run the use command i said
<injekt> as deryl says ^^
<injekt> abstr4ct: try .inner_html
<deryl> system ruby means the ruby the distribution you're running installed and uses for itself (to manage the system with, to run any ruby scripts for root etc)
<anannie> injekt: I ran rvm install 1.9.3 and this popped up
<injekt> anannie: see what deryl is saying
answer_42 has quit [Quit: WeeChat 0.3.8]
<deryl> rvm install 1.9.3 --default will install ruby version 1.9.3 (most current 1.9.3 patchlevel) and set that as the default ruby for *your user* (as opposed to the **system** ruby)
<anannie> deryl: I want to use the rvm controlled ruby
<deryl> then listen to injekt and follow what he said
<anannie> deryl: Okay I will. Thank you.
<deryl> the --default flag just sets that 1.9.3 install to be the default selected ruby (remember with rvm you can have multiple rubies installed. without that flag, rvm has no way to know which of them to set as your default, so it would constantly set the *syetm* ruby to be your 'ruby')
wallerdev has joined #ruby-lang
<deryl> the --default just means set the alias called 'default' (which rvm uses to decide what ruby is default) to the ruby you passed it
<deryl> rvm alias list
<anannie> deryl: Ah I'll do that the next time I have to do this... (I've already executed the command)
<deryl> rvm alias list on MY machine gives me: default => ruby-1.9.3-p194@me
<abstr4ct> same outcome with inner_html hrm
<injekt> abstr4ct: then convert it
esad has joined #ruby-lang
<deryl> (you can pass gemsets as well to the --default flag in order to also use a specific gemset as a default for the ruby you selected)
<deryl> anannie: just do rvm use 1.9.3 --default
<deryl> does the same thing as i was just describing (uses it rather than installs it, since you're already installing it now)
<anannie> deryl: Okay I will once it's done. Thank you so much for being patient and helping me
<deryl> see the rvm.io website and read through
<anannie> deryl: Yeah I am.
Axsuul has joined #ruby-lang
<deryl> but i would suggest you put all RVM related questions to the RVM mailing list, not this channel. you just caught a couple people being nice. RVM is _not_ supported by this particular channel. see the Mailing List, and the #rvm channel on this network.
<anannie> deryl: Okay I understand. I'll start doing that from now on.
<deryl> cool. just trying to keep you from getting yelled at in the future :)
<anannie> deryl: Thanks :)
s0ra_h is now known as sora_h
<deryl> np. and with that i'm off,. later
<injekt> me too
<anannie> bye deryl, injekt and thank you once again
spuk has quit [Ping timeout: 240 seconds]
benanne has joined #ruby-lang
rippa has quit [Ping timeout: 256 seconds]
neocoin has quit [Remote host closed the connection]
solars has quit [Ping timeout: 240 seconds]
lcdhoffman has quit [Quit: lcdhoffman]
sora_h is now known as s0ra_h
t56818 has quit [Remote host closed the connection]
t96933 has joined #ruby-lang
mytrile has quit [Quit: Leaving.]
emanon_ has quit [Ping timeout: 268 seconds]
emanon_ has joined #ruby-lang
bytephilia has quit [Ping timeout: 260 seconds]
burgestrand has joined #ruby-lang
dous has joined #ruby-lang
dous has joined #ruby-lang
dous has quit [Changing host]
Hakon has quit [Quit: Leaving...]
conorwade has joined #ruby-lang
bytephilia has joined #ruby-lang
dous has quit [Ping timeout: 265 seconds]
Soleone has joined #ruby-lang
ryez has joined #ruby-lang
havenn has joined #ruby-lang
Hakon has joined #ruby-lang
s0ra_h is now known as sora_h
itsmeduncan has quit [Quit: itsmeduncan]
jkprg has joined #ruby-lang
<abstr4ct> got nokogiri behaving nicly now. thanks for the tips
t96933 has quit [Remote host closed the connection]
t9225 has joined #ruby-lang
<abstr4ct> any ideas? https://gist.github.com/3397955
eyda|mon has joined #ruby-lang
eyda|mon has joined #ruby-lang
eyda|mon has quit [Changing host]
banisterfiend has joined #ruby-lang
<canton7> abstr4ct, you might need some ruby, as well as xpath, to do this
<canton7> (I don't know xpath that well, but I don't believe it's possible with css at least)
eyda|mon has quit [Ping timeout: 260 seconds]
lcdhoffman has joined #ruby-lang
<apeiros_> it is possible with css
<apeiros_> xpath is far more powerful, though
Soleone has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
<apeiros_> 'td div:nth-child(2)' should do it
<apeiros_> I never remember whether it starts counting with 0 or with 1…
<apeiros_> above assumes 1
<canton7> as I understand it, he wants the div which is after the div which contains "Mondays" and before the div which contains "Tuesdays"
<apeiros_> ah, well, yes, if you can establish that neighborhood as reliable, then that can be done with xpath
<apeiros_> but not with css
sandbags has quit [Remote host closed the connection]
<abstr4ct> well maybe i am being to strict... it just struct me more elegant to find something before and after and get what is in the middle.. that way if it changed slightly mostl likley it would still yeild a usable result
<abstr4ct> that was my thought, just trying to see if thats plausable
<abstr4ct> i might have described that poorly...
workmad3 has quit [Ping timeout: 256 seconds]
benanne has quit [Quit: kbai]
bryancp has joined #ruby-lang
seanstickle has quit [Quit: seanstickle]
<abstr4ct> the idea was to not use stright forward xpath chaining (one element after the other) instead search for a starting point, then do some sort of action (step 3 divs up) and stop at the top anchor
mytrile has joined #ruby-lang
<abstr4ct> seems more flexible
sora_h is now known as s0ra_h
<abstr4ct> it really struck me when with inkjets last code link
<abstr4ct> err, inkjekt
<abstr4ct> err, injekt
<abstr4ct> haha
<apeiros_> he comes with colors!
<abstr4ct> so i went back and redid my hpricot stuff with nokogiri...
<abstr4ct> almost done, was able to stream line most stuff... but i needed to use alot of gsub for converts which gotta a little messy... need more variables or something, oh well ill get back to that later
TorpedoSkyline has joined #ruby-lang
<abstr4ct> i am only scraping like 4 sites right now, but they seem to present just the right amount of complexity to create problems that end up with solutions that i keep needing to go back and port into the other functions.. been stuck in this loop for a few days
crankharder has quit [Remote host closed the connection]
dous has joined #ruby-lang
dous has joined #ruby-lang
dous has quit [Changing host]
gmci has quit [Quit: Computer has gone to sleep.]
gmci has joined #ruby-lang
spuk has joined #ruby-lang
dous has quit [Ping timeout: 260 seconds]
<andrewvos> abstr4ct: Why do you have to keep on going back?
chrismcg is now known as zz_chrismcg
<abstr4ct> because i am a noob
<abstr4ct> i dont know the proper/best way to do it, as this is my first programing exercise once i figure something out that is better, i go back and implement it
<abstr4ct> so its kinda cyclical for me
<andrewvos> Maybe you should use version control.
<andrewvos> And try to complete something. Make that your goal. You'll learn how to write code in better ways eventually.
<abstr4ct> yeah, much to learn
laszlokorte has joined #ruby-lang
poga has quit [Remote host closed the connection]
JoshWines has joined #ruby-lang
bryancp has quit [Remote host closed the connection]
TorpedoSkyline has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
igotnolegs has quit [Quit: Computer has gone to sleep.]
TorpedoSkyline has joined #ruby-lang
toretore has quit [Quit: Leaving]
srbartlett has joined #ruby-lang
bryancp has joined #ruby-lang
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
dtribble has quit [Quit: HydraIRC -> http://www.hydrairc.com <- The professional IRC Client :D]
awalrond has quit [Quit: leaving]
s0ra_h is now known as sora_h
justinmcp has joined #ruby-lang
bryancp has quit [Remote host closed the connection]
Sambalero has quit [Remote host closed the connection]
justinmcp has quit [Remote host closed the connection]
banisterfiend has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby-lang
deryl has quit [Quit: deryl]
conorwade has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
esad has quit [Quit: Computer has gone to sleep.]
dous has joined #ruby-lang
banisterfiend has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby-lang
jtoy has joined #ruby-lang
dous has quit [Ping timeout: 240 seconds]
Criztian has quit [Remote host closed the connection]
apeiros_ has quit [Remote host closed the connection]
Criztian has joined #ruby-lang
jtoy has quit [Read error: Connection reset by peer]
jtoy has joined #ruby-lang
Jake232 has quit [Quit: Computer has gone to sleep.]
coryf has joined #ruby-lang
Criztian has quit [Ping timeout: 260 seconds]
banisterfiend has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby-lang
TorpedoSkyline has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
bytephilia has quit [Quit: Computer has gone to sleep.]
Jay_Levitt has joined #ruby-lang
kingCrawlerx has joined #ruby-lang
jkprg has quit [Read error: Connection reset by peer]
jkprg_ has joined #ruby-lang
havenn has quit [Remote host closed the connection]
srbartlett has quit [Remote host closed the connection]
kingCrawlerx has left #ruby-lang [#ruby-lang]
kingCrawlerx has joined #ruby-lang
<kingCrawlerx> does cascadia ruby have its own IRC channel?
Booya_ has joined #ruby-lang
Booya_ has quit [Client Quit]
TorpedoSkyline has joined #ruby-lang
Criztian has joined #ruby-lang
Criztian has quit [Remote host closed the connection]
havenn has joined #ruby-lang
gmci has quit [Quit: Computer has gone to sleep.]
<zenspider> kingCrawlerx: you mean for the conference or for seattle.rb?
havenn_ has joined #ruby-lang
gmci has joined #ruby-lang
<kingCrawlerx> seattle.rb
<zenspider> #seattle.rb
<kingCrawlerx> thanks
qwerxy has joined #ruby-lang
s1n4 has joined #ruby-lang