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?!
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]
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.]
<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
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
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)
<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
<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?
<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 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 "½ 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]
<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]