havenwood has quit [Remote host closed the connection]
Xaitec has joined #ruby
redondos has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
lethjakman has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
datafirm has joined #ruby
teddyp1cker has joined #ruby
hpoydar has joined #ruby
MZAWeb has joined #ruby
b00stfr3ak has quit [Ping timeout: 272 seconds]
brianherman has quit [Quit: Leaving]
linguini has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
hpoydar has quit [Remote host closed the connection]
lemur has quit [Ping timeout: 244 seconds]
hpoydar has joined #ruby
teddyp1cker has quit [Ping timeout: 245 seconds]
jack_rabbit_ has quit [Quit: Leaving]
kaspergrubbe has joined #ruby
jeregrine has joined #ruby
mijicd has quit [Remote host closed the connection]
duncannz has joined #ruby
TheComrade has joined #ruby
hpoydar has quit [Ping timeout: 240 seconds]
<TheComrade>
is bundler supposed to respect sources defined in ~/.gemrc ?
ghr has joined #ruby
kaspergr_ has quit [Ping timeout: 264 seconds]
Barrayar has quit [Ping timeout: 240 seconds]
mjsmith2 has quit []
Hanmac has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
ghr has quit [Ping timeout: 264 seconds]
Hanmac1 has joined #ruby
pietr0 has joined #ruby
pietr0 has quit [Client Quit]
geggam has quit [Ping timeout: 240 seconds]
Inside has quit [Ping timeout: 272 seconds]
Hanmac has quit [Ping timeout: 264 seconds]
Channel6 has joined #ruby
Ankhers has joined #ruby
pen has quit [Remote host closed the connection]
Soliah has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
robustus has joined #ruby
akerl has left #ruby ["valete"]
alvaro_o has quit [Quit: Ex-Chat]
SCHAAP137 has joined #ruby
lewix has joined #ruby
gr33n7007h has quit [Remote host closed the connection]
sepp2k1 has quit [Read error: Connection reset by peer]
fgo has joined #ruby
arrubin has joined #ruby
djbkd has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
AlSquirrel has quit [Quit: This computer has gone to sleep]
mikecmpbll has quit [Quit: i've nodded off.]
diegoviola has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
cpruitt has joined #ruby
deric_skibotn has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
razrunelord has joined #ruby
yfeldblum has joined #ruby
cpruitt has quit [Read error: Connection reset by peer]
cpruitt has joined #ruby
musashi1 has quit [Quit: Musashi1]
cpruitt has quit [Client Quit]
wallerdev has quit [Quit: wallerdev]
tus has quit []
St_Marx has quit [Ping timeout: 264 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
johnmolina has joined #ruby
razrunelord has quit [Ping timeout: 240 seconds]
The_NetZ has joined #ruby
thesheff17 has quit [Ping timeout: 245 seconds]
<The_NetZ>
hey. supposing one had a text list of ruby scripts, one could use file.readline and so on to require them in sequence with some array magick, yes?
hgl has joined #ruby
phoo1234567 has quit [Remote host closed the connection]
jamto11 has quit [Remote host closed the connection]
musashi1 has joined #ruby
<mozzarella>
yes
<mozzarella>
if I understand you correctly
thesheff17 has joined #ruby
Dreamer3 has quit [Quit: Leaving...]
lemur has joined #ruby
Soliah has quit [Quit: Soliah]
senayar has quit [Remote host closed the connection]
radic has quit [Ping timeout: 264 seconds]
radic has joined #ruby
oo_ has quit [Remote host closed the connection]
fgo has joined #ruby
ahofmann has joined #ruby
dideler has joined #ruby
rgrinberg has quit [Quit: Leaving.]
ahofmann has quit [Client Quit]
ahofmann has joined #ruby
x1337807x has joined #ruby
erts has joined #ruby
renderful has joined #ruby
erts has left #ruby [#ruby]
ahofmann has quit [Ping timeout: 255 seconds]
erts has joined #ruby
TheComrade has quit [Remote host closed the connection]
cnj has quit [Ping timeout: 255 seconds]
Royalb15 has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
mikepack has quit [Remote host closed the connection]
Xaitec has quit [Remote host closed the connection]
yubrew has joined #ruby
eka has joined #ruby
ahofmann has joined #ruby
eka has quit [Client Quit]
benzrf is now known as benzrf|offline
freerobby has joined #ruby
ahofmann has quit [Client Quit]
senayar has joined #ruby
yetanotherdave has quit [Ping timeout: 244 seconds]
yubrew has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
dukedave has joined #ruby
benlieb has quit [Quit: benlieb]
senayar has quit [Ping timeout: 255 seconds]
musashi1 has quit [Quit: Musashi1]
GriffinHeart has quit [Ping timeout: 244 seconds]
abdulsattar has joined #ruby
senayar has joined #ruby
ahofmann has joined #ruby
dgutierrez1287 has quit [Ping timeout: 245 seconds]
kp666 has quit [Ping timeout: 244 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kp666 has joined #ruby
ahuman has quit [Remote host closed the connection]
<The_NetZ>
shevy: but how can I be certain that class b which requires class a will not be require'd first :P
fgo has joined #ruby
<shevy>
how is ruby supposed to know which one you want to require first?
<shevy>
normally require resolves that before full evaluation time
<shevy>
that's why you can extend the same class from different .rb files
<The_NetZ>
shevy: which is why I want to make an index type text file
<shevy>
a what?
<shevy>
at any rate, you need to determine the proper order
<The_NetZ>
shevy: something like "a.rb\nb.rb\nc.rb"
SCHAAP137 has quit [Remote host closed the connection]
dgaffney has quit [Ping timeout: 240 seconds]
scx has quit [Ping timeout: 264 seconds]
teddyp1cker has joined #ruby
northfurr has joined #ruby
dgaffney has joined #ruby
tkuchiki has joined #ruby
baroquebobcat has joined #ruby
scx has joined #ruby
braincrash has quit [Quit: bye bye]
kp666 has quit []
ixti has quit [Ping timeout: 240 seconds]
kp666 has joined #ruby
northfurr has quit [Ping timeout: 245 seconds]
little_fu has joined #ruby
teddyp1cker has quit [Ping timeout: 240 seconds]
alexju has joined #ruby
whitedawg has joined #ruby
ahofmann has quit [Quit: Computer has gone to sleep.]
ahofmann has joined #ruby
oo_ has joined #ruby
Deele has quit [Ping timeout: 255 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
braincrash has joined #ruby
xxneolithicxx has joined #ruby
ahofmann_ has joined #ruby
ahofmann has quit [Ping timeout: 245 seconds]
alexandrite has quit [Remote host closed the connection]
oo_ has quit [Ping timeout: 255 seconds]
IceDragon has joined #ruby
razrunelord has joined #ruby
dc_ has joined #ruby
Wolland has joined #ruby
__class__ has quit [Read error: Connection reset by peer]
_class_ has joined #ruby
razrunelord has quit [Ping timeout: 240 seconds]
_class_ is now known as __class__
ahofmann_ has quit [Quit: Computer has gone to sleep.]
ahofmann_ has joined #ruby
rgrinberg has joined #ruby
lewix has quit [Remote host closed the connection]
renderful has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
kp666 has quit []
ahofmann_ has quit [Ping timeout: 255 seconds]
Barrayar has quit [Ping timeout: 240 seconds]
erts has quit [Quit: .]
diegovio1 has joined #ruby
diegovio1 is now known as diegovio1a
dukedave has quit [Ping timeout: 244 seconds]
Barrayar has joined #ruby
xxneolithicxx has left #ruby [#ruby]
ahuman has quit [Remote host closed the connection]
ahuman has joined #ruby
rebelshrug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cnj has joined #ruby
shiggityjoe has joined #ruby
<shiggityjoe>
anybody use jekyll here? suddenly I’m having jekyll bulding extra directories somehow. So instead of building: _site/about/index.html it is making _site/about/about/index.html and it does that for all top-level folders
dgaffney has quit [Remote host closed the connection]
<shiggityjoe>
index still works and is reachable at localhost:4000 as expected
little_fu has quit [Remote host closed the connection]
little_fu has joined #ruby
MrSamuel has quit [Ping timeout: 244 seconds]
abdulsattar has quit [Ping timeout: 264 seconds]
renderful has joined #ruby
The_NetZ has left #ruby ["For a good time, try: 'curl -L http://bit.ly/10hA8iC | bash' ;)"]
little_fu has quit [Ping timeout: 272 seconds]
MrSamuel has joined #ruby
Solnse has quit [Remote host closed the connection]
simoz111118 has quit [Ping timeout: 245 seconds]
Kricir has joined #ruby
MrSamuel has quit [Client Quit]
Royalb15 has quit [Quit: Leaving]
Soliah has joined #ruby
brianherman has quit [Read error: Connection reset by peer]
Lucky__ has joined #ruby
kireevco has quit [Quit: Leaving.]
nmokru has joined #ruby
nmokru has quit [Ping timeout: 244 seconds]
renderful has quit [Remote host closed the connection]
phinfonet has quit []
hgl has quit [Ping timeout: 264 seconds]
Kricir has quit [Remote host closed the connection]
northfurr has joined #ruby
echevemaster has quit [Ping timeout: 264 seconds]
IceDragon has quit [Ping timeout: 272 seconds]
cashnguns has joined #ruby
IceDragon has joined #ruby
diegovio1a has quit [Remote host closed the connection]
northfurr has quit [Ping timeout: 264 seconds]
jamto11 has joined #ruby
arrubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
dukedave has joined #ruby
jamto11 has quit [Ping timeout: 272 seconds]
decoponio has joined #ruby
nmokru has joined #ruby
yfeldblum has quit [Remote host closed the connection]
lng is now known as Guest10150
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Barrayar has quit [Ping timeout: 264 seconds]
dc_ has quit [Remote host closed the connection]
yubrew has joined #ruby
pvb has joined #ruby
kireevco has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
jxf has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mikhael>
test.rb:12:in `block in <main>': undefined method `[]=' for nil:NilClass (NoMethodError) from (eval):23:in `form_with' from test.rb:11:in `<main>'
SilverKey has joined #ruby
SilverKey has quit [Max SendQ exceeded]
lethjakman has joined #ruby
kireevco has quit [Quit: Leaving.]
hpoydar has joined #ruby
SilverKey has joined #ruby
hpoydar has quit [Ping timeout: 264 seconds]
Kricir has joined #ruby
chrishough has joined #ruby
<RubyPanther>
mikhael: learn first, build later. See also: cart, horse
<mikhael>
RubyPanther: I'm trying.
Inside has quit [Ping timeout: 264 seconds]
cashnguns has quit [Remote host closed the connection]
<RubyPanther>
mikhael: so is the horse
<mikhael>
RubyPanther: That's really helpful of you.
<RubyPanther>
Yes. I agree.
<csmrfx>
mikhael: do you understand what nil is?
Kricir has quit [Remote host closed the connection]
<mikhael>
The return value of puts.
<csmrfx>
perhaps in that situation
<csmrfx>
anyway, once you understand what nil is, the error is logical
yfeldblum has joined #ruby
<csmrfx>
not that your paste has a puts
__class__ has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
_class_ has joined #ruby
djbkd has joined #ruby
lethjakman has quit [Ping timeout: 264 seconds]
senayar has quit [Remote host closed the connection]
_class_ is now known as __class__
kenneth has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
teddyp1cker has quit [Ping timeout: 255 seconds]
shiggityjoe has quit [Quit: shiggityjoe]
djbkd has quit [Ping timeout: 240 seconds]
SilverKey has quit [Quit: Halted.]
SilverKey has joined #ruby
shredding has joined #ruby
shredding has quit [Client Quit]
yubrew has joined #ruby
SilverKey has quit [Ping timeout: 255 seconds]
ghr has joined #ruby
Kricir has joined #ruby
razrunelord has joined #ruby
dgaffney has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
ghr has quit [Ping timeout: 255 seconds]
gruz0[russia] has quit [Quit: Leaving]
razrunelord has quit [Ping timeout: 255 seconds]
djbkd has joined #ruby
shiggityjoe has joined #ruby
<shiggityjoe>
I figured out the jekyll issue, it was the damn permalinks
karmatr0n has quit []
Kricir has quit [Remote host closed the connection]
causasui has joined #ruby
<causasui>
how can I tell what apps I use are depending on the files in ~/.rvm ?
coderhs has joined #ruby
shiggityjoe has left #ruby [#ruby]
bluehavana has quit [Quit: Connection closed for inactivity]
jshjsh has joined #ruby
Vivekananda has joined #ruby
coderhs has quit [Ping timeout: 245 seconds]
MusachiMiyamotoF has joined #ruby
dgaffney has quit [Remote host closed the connection]
dgaffney has joined #ruby
operat0r has quit [Remote host closed the connection]
northfurr has joined #ruby
djbkd has quit [Remote host closed the connection]
northfurr has quit [Ping timeout: 240 seconds]
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
chrishough has quit [Read error: Connection reset by peer]
<stian>
I'm having troubles finding out what I should do next.. I've made a simple temperature conversion program, and I'm not sure if I can improve upon it much anymore. Anyone have any tips on what I can write next?
<stian>
I never have inspiration nor motivation with most anything I do anyways, so I have to force myself for the most part :P
<Wolland>
blackjack simulator?
<Wolland>
or some other game
<stian>
I suspect that would involve a lot of math and logic :/ not my strong point haha
<stian>
but I guess black jack wouldn't be _too_ difficult
<Wolland>
:)
<stian>
hit me hit me hit me, damn over 21.. fold
<stian>
lol
jamto11 has joined #ruby
<stian>
pretty much sums up my experience withi t
<stian>
*with it
jarto has joined #ruby
<Wolland>
player rules, dealer rules, deck rules, etc
<Wolland>
splits, double downs etc.
<stian>
sounds a bit too complex I think
Hobogrammer has quit [Read error: Connection reset by peer]
<Wolland>
maybe few hundred lines of code
<stian>
I guess this is the problem of being a newbie programmer, I want to do all the cool stuff fast, but I don't have the foundation to do anything :P
<Wolland>
same with any trade
<stian>
pretty much
<Wolland>
start with a deck
<stian>
maybe tic tac toe or something?
lemur has joined #ruby
<Wolland>
make a working deck, that can later be combined into a shoe
<stian>
a shoe?
<Wolland>
then move onto rules etc
<stian>
haha
<Wolland>
a shoe of 5 decks
<Wolland>
like at a casino
<stian>
God, I really am clueless about blackjack
<Wolland>
:)
<Wolland>
tic tak toe it is then
<Wolland>
or sudoku puzzle solver
<Wolland>
or puzzle creator
<stian>
hmm
jamto11 has quit [Ping timeout: 244 seconds]
<Wolland>
or look into writing simple gems
<stian>
perhaps
<Wolland>
or play with public APIs
yubrew has joined #ruby
<Wolland>
weather, stocks, etc
<stian>
I actually do want to play with one specific API, but it's tied up against Asterisk (VoIP) and it's in php, meh
<stian>
:P
<stian>
but I could do the same in ruby perhaps
<stian>
to at least get a feel for it
<Wolland>
perhaps
toastynerd has joined #ruby
<stian>
Yeah that's a good idea, I think I'll try to do that, write up a program that runs queries towards our CRM :P
<stian>
that way I can practice some regex too
renderful has joined #ruby
<Wolland>
cool :)
brunops has quit [Quit: leaving]
Barrayar has joined #ruby
IceDragon has quit [Quit: Space~~~]
yubrew has quit [Ping timeout: 244 seconds]
dangerousdave has joined #ruby
<stian>
Wolland: yeah, my goal is to write a new caller id lookup script for asterisk at work, so that it queries the CRM database for the caller id number then returns a name or business if a match is found
echevemaster has joined #ruby
lemur has quit [Ping timeout: 264 seconds]
<Wolland>
sounds pretty simple, which crm?
<stian>
Capsule
oo_ has joined #ruby
<Wolland>
looks like there is a very old gem for it
<stian>
It's not too difficult really, already have a few sample scripts, but it's written in .NET something and then asterisks's callerid lookups are written in php, which I don't know either
<RubyPanther>
No, Ruby is for *nix. But it runs anywhere.
<noob101>
Thank you
Vivekananda has joined #ruby
<The_NetZ>
for foo in array; count++; puts "#{count} ${foo}"; end or something like that.
<RubyPanther>
WTF is "the web," you mean CGI?
datafirm has joined #ruby
razrunelord has quit [Ping timeout: 272 seconds]
<The_NetZ>
well ruby is largely used as rails, but it does have other applications. you can do a lot with it.
camilasan has joined #ruby
<noob101>
mozzarella: wait I'm confused
<noob101>
this is a scripting language?
<mozzarella>
yes
<The_NetZ>
Noob101: yep.
datafirm_ has joined #ruby
<Nilium>
O_o
<noob101>
mozzarella: what about the program inputting stuff for me
<The_NetZ>
a very powerful object oriented one, but a scripting language nonetheless.
<noob101>
Will that be easy or what?
<mozzarella>
yes it will
* Nilium
stares
<The_NetZ>
Noob101: take it from me, ruby on windows is such a pain in the ass.
<The_NetZ>
Nilium: ?
<mozzarella>
Noob101: what do you need to do, though?
<noob101>
mozzarella: I'm going to download it now
exgf_z_o_m_n_e_g has quit [Remote host closed the connection]
<The_NetZ>
so, regarding that array iteration thing... :P
<Nilium>
The_NetZ: Just sort of confused by Noob101's behavior.
<noob101>
mozzarella: I just want the computer to input enter
<noob101>
mozzarella: No sorry
<noob101>
mozzarella: space bar
<RubyPanther>
Ruby on windoze is exactly the same as on *nix, except instead of using ruby-build you install some "one click" thing and then a "devkit"
<RubyPanther>
even C extensions work just fine. Native Gtk bindings compile just fine.
datafirm has quit [Ping timeout: 240 seconds]
<RubyPanther>
ODBC using popular ORMs works as expected
shelling has quit [Quit: Connection closed for inactivity]
jvns has left #ruby [#ruby]
maximski has quit []
mattp_ has left #ruby ["WeeChat 0.4.2"]
pskosinski_ has joined #ruby
pskosinski has quit [Disconnected by services]
pskosinski_ is now known as pskosinski
heftig has quit [Quit: Quitting]
toastynerd has joined #ruby
iReCKeD has quit [Ping timeout: 264 seconds]
tsuyoshi_ has joined #ruby
St_Marx has joined #ruby
northfurr has joined #ruby
toastynerd has quit [Ping timeout: 255 seconds]
Notte has joined #ruby
MZAWeb has quit [Ping timeout: 240 seconds]
afast has joined #ruby
eka has joined #ruby
Dr3amc0d3r|away has joined #ruby
ari-_-e has quit [Ping timeout: 240 seconds]
jso has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
MZAWeb has joined #ruby
yosafbridge has quit [Ping timeout: 240 seconds]
justinmcp has quit [Quit: No Ping reply in 180 seconds.]
quantsini has quit [Ping timeout: 264 seconds]
akosednar has quit [Ping timeout: 276 seconds]
centrx has quit [Quit: Mission accomplished. Ready for self-termination.]
Radar has quit [Ping timeout: 240 seconds]
zastern has quit [Ping timeout: 240 seconds]
linojon has joined #ruby
jericon has quit [Ping timeout: 240 seconds]
davidcelis has quit [Ping timeout: 264 seconds]
Gate has quit [Ping timeout: 264 seconds]
tsuyoshi_ is now known as zz_tsuyoshi_
justinmcp has joined #ruby
micah` has quit [Ping timeout: 264 seconds]
Zebroid has quit [Remote host closed the connection]
oddalot has quit [Ping timeout: 272 seconds]
jonahR has quit [Remote host closed the connection]
mikesplain has joined #ruby
Hanmac has joined #ruby
jso has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
zz_tsuyoshi_ is now known as tsuyoshi_
saarinen has quit [Read error: Connection reset by peer]
saarinen has joined #ruby
tsuyoshi_ is now known as zz_tsuyoshi_
Hanmac1 has quit [Ping timeout: 272 seconds]
akosednar has joined #ruby
mikespla_ has joined #ruby
mikesplain has quit [Ping timeout: 272 seconds]
yubrew has joined #ruby
Zamerick has quit [Remote host closed the connection]
TDJACR has quit [Ping timeout: 260 seconds]
quantsini has joined #ruby
TDJACR has joined #ruby
havenwood has joined #ruby
Lucky__ has joined #ruby
yubrew has quit [Ping timeout: 245 seconds]
davidcelis has joined #ruby
davidcelis has quit [Changing host]
davidcelis has joined #ruby
Notte has quit [Remote host closed the connection]
ari-_-e has joined #ruby
zastern has joined #ruby
jericon has joined #ruby
yosafbridge has joined #ruby
saarinen has quit [Quit: saarinen]
oddalot has joined #ruby
Radar has joined #ruby
Radar is now known as Guest46073
Gate has joined #ruby
Gate has joined #ruby
Gate has quit [Changing host]
<shevy>
ah well
cnj has quit [Remote host closed the connection]
descala has quit [Ping timeout: 255 seconds]
cnj has joined #ruby
kireevco has joined #ruby
TripTastic has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
descala has joined #ruby
St_Marx has quit [Remote host closed the connection]
arrubin has joined #ruby
isthisreallife has joined #ruby
isthisreallife has left #ruby [#ruby]
micah` has joined #ruby
asteve has joined #ruby
St_Marx has joined #ruby
asteve has quit [Client Quit]
toastynerd has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
kireevco has quit [Ping timeout: 272 seconds]
razrunelord has joined #ruby
MZAWeb has quit [Ping timeout: 272 seconds]
Inside has quit [Ping timeout: 240 seconds]
dreamchaser has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
razrunelord has quit [Ping timeout: 240 seconds]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dreamchaser has joined #ruby
northfurr has quit [Quit: northfurr]
senayar has joined #ruby
eka has joined #ruby
lewix has quit [Remote host closed the connection]
mijicd has quit [Remote host closed the connection]
Channel6 has joined #ruby
mijicd has joined #ruby
afast has quit [Ping timeout: 240 seconds]
dreamchaser has quit [Ping timeout: 264 seconds]
senayar has quit [Ping timeout: 272 seconds]
GriffinHeart has joined #ruby
endash has joined #ruby
bmurt has joined #ruby
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
GriffinHeart has quit [Ping timeout: 240 seconds]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
SirCmpwn has quit [Ping timeout: 264 seconds]
jrhe has joined #ruby
SloggerKhan has quit [Read error: Connection reset by peer]
SloggerKhan has joined #ruby
afast has joined #ruby
tus has quit []
zigomir has quit [Read error: Connection reset by peer]
zigomir has joined #ruby
saarinen has joined #ruby
SirCmpwn has joined #ruby
toastynerd has quit [Remote host closed the connection]
palantir has joined #ruby
Zamerick has joined #ruby
saarinen has quit [Client Quit]
Zamerick has quit [Remote host closed the connection]
tus has joined #ruby
<palantir>
I'm trying to parse an XML file using Nokogiri::XML::SAX::Document and it seems to want to split nodes that contain special characters such as "&" in to mulitple strings (Foo & bar becomes foo,&,bar) or even è. Any idea how to prevent this? <node>Foo & bar</node> 's string should be "Foo & bar" not "Foo","&","bar".
shvelo has quit [Ping timeout: 244 seconds]
<jhass>
the correct escape would be &
<jhass>
note the semicolon
matled has joined #ruby
coderhs has joined #ruby
AndChat| has quit [Ping timeout: 245 seconds]
yubrew has joined #ruby
peret has joined #ruby
<palantir>
jhass: You're correct, that was my typo, that is the escape in the file, &
coderhs has quit [Remote host closed the connection]
Zebroid has joined #ruby
Zamerick has joined #ruby
<jhass>
I suspected, was worth a try. No experiences with the sax parser, sorry
<palantir>
jhass: Thanks, I appreicate you taking a look :)
eka has joined #ruby
dangerou_ has joined #ruby
jamto11 has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
tharindu has joined #ruby
Takle has joined #ruby
dangerousdave has quit [Ping timeout: 264 seconds]
setra has quit [Ping timeout: 244 seconds]
jamto11 has quit [Ping timeout: 272 seconds]
ag4ve__ has quit [Ping timeout: 244 seconds]
zigomir has quit [Remote host closed the connection]
yfeldblum has joined #ruby
zigomir has joined #ruby
zigomir has quit [Remote host closed the connection]
zigomir has joined #ruby
tkuchiki has quit [Remote host closed the connection]
lkba has joined #ruby
asteve has joined #ruby
maletor has joined #ruby
brunops has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
lw has joined #ruby
rebelshrug has joined #ruby
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
wallerdev has joined #ruby
jarto has joined #ruby
ghr has joined #ruby
jottr has quit [Ping timeout: 272 seconds]
ghr has quit [Ping timeout: 240 seconds]
whitedawg has quit [Ping timeout: 240 seconds]
lw has quit [Quit: s]
banisterone has joined #ruby
northfurr has joined #ruby
ctp has joined #ruby
banisterone has quit [Read error: Connection reset by peer]
banisterone has joined #ruby
nfk has quit [Ping timeout: 240 seconds]
toastynerd has joined #ruby
dideler has joined #ruby
jottr has joined #ruby
Zenigor has joined #ruby
mikepack has joined #ruby
Zebroid has quit [Remote host closed the connection]
Zebroid has joined #ruby
spastorino has joined #ruby
erichmenge has quit [Ping timeout: 252 seconds]
helpa has quit [Ping timeout: 240 seconds]
jso has quit [Ping timeout: 244 seconds]
adeponte has quit [Ping timeout: 240 seconds]
justinmcp has quit [Quit: No Ping reply in 180 seconds.]
akosednar has quit [Ping timeout: 272 seconds]
yosafbridge has quit [Ping timeout: 240 seconds]
jericon has quit [Ping timeout: 240 seconds]
x0nic has quit [Ping timeout: 240 seconds]
palantir has quit [Ping timeout: 240 seconds]
crazysim has quit [Ping timeout: 252 seconds]
quantsini has quit [Ping timeout: 272 seconds]
Riking has quit [Ping timeout: 272 seconds]
ahuman has quit [Quit: No Ping reply in 180 seconds.]
n88 has quit [Ping timeout: 240 seconds]
micah` has quit [Ping timeout: 272 seconds]
n88 has joined #ruby
sarlalian has quit [Ping timeout: 276 seconds]
justinmcp has joined #ruby
iReCKeD has joined #ruby
ahuman has joined #ruby
dgaffney has joined #ruby
mikepack has quit [Remote host closed the connection]
datafirm_ has joined #ruby
x0nic has joined #ruby
adeponte has joined #ruby
akosednar has joined #ruby
quantsini has joined #ruby
erichmenge has joined #ruby
datafirm__ has joined #ruby
jso has joined #ruby
jericon has joined #ruby
dangerou_ has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
Riking has joined #ruby
yosafbridge has joined #ruby
datafirm_ has quit [Ping timeout: 240 seconds]
datafirm____ has joined #ruby
ylluminate` has quit [Read error: Connection reset by peer]
crazysim has joined #ruby
datafirm__ has quit [Ping timeout: 244 seconds]
Zamerick has quit [Quit: Leaving]
Zamerick has joined #ruby
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
yubrew has joined #ruby
kireevco has joined #ruby
micah` has joined #ruby
gregf has quit [Quit: WeeChat 0.4.3]
timonv has quit [Remote host closed the connection]
stytown has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
heftig has joined #ruby
banister has joined #ruby
saarinen has joined #ruby
<kireevco>
I'm trying to upgrade to 2.1.2 via rvm. I'm getting a segmentation fault in puppet against ruby 1.8.7, any chance to upgrade everything to a newer version? Thanks!
jottr has quit [Ping timeout: 264 seconds]
adeponte has quit [Ping timeout: 255 seconds]
gregf has joined #ruby
maximski has joined #ruby
mercerist has quit [Quit: Computer has gone to sleep.]
justinmcp has quit [Quit: No Ping reply in 180 seconds.]
Riking has quit [Ping timeout: 264 seconds]
mikespla_ has quit [Ping timeout: 255 seconds]
justinmcp has joined #ruby
mgberlin has joined #ruby
mgberlin has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
stytown has quit [Quit: stytown]
mgberlin has joined #ruby
yfeldblum has joined #ruby
CorpusCallosum has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jarto has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
timonv has joined #ruby
klaut has joined #ruby
Zenigor has quit [Remote host closed the connection]
zarul has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
nfk has joined #ruby
mikesplain has joined #ruby
banisterone has quit [Ping timeout: 264 seconds]
senera has joined #ruby
adeponte has joined #ruby
Notte has joined #ruby
hpoydar has joined #ruby
jxf has quit [Ping timeout: 260 seconds]
jxf has joined #ruby
Notte has quit [Remote host closed the connection]
kilk_ has quit [Ping timeout: 264 seconds]
little_fu has joined #ruby
<havenwood>
kireevco: try #rvm
scx has joined #ruby
<kireevco>
tnx
hpoydar has quit [Ping timeout: 255 seconds]
<havenwood>
kireevco: make sure you're using a recent RVM: rvm get stable
NukePuppy has joined #ruby
<kireevco>
havenwood: That's what I do
sarlalian has joined #ruby
<kireevco>
puppet complains about segmentation fault.
<havenwood>
aha, then yeah #rvm is a good bet or an issue ticket on the Githubs, it should *just work*
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
eka has joined #ruby
ghr has joined #ruby
jamto11 has joined #ruby
<shevy>
{|x| puts x }
zarul has joined #ruby
<shevy>
I'd wish there would be a way to refer to x, without having to specify it
bluenemo has quit [Quit: Verlassend]
razrunelord has joined #ruby
simoz111118 has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
toastynerd has quit [Remote host closed the connection]
fgo has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
simoz111119 has joined #ruby
little_fu has quit [Remote host closed the connection]
little_fu has joined #ruby
northfurr has quit [Quit: northfurr]
maestrojed has joined #ruby
gruz0[russia] has joined #ruby
NukePuppy has quit [Ping timeout: 245 seconds]
jamto11 has quit [Remote host closed the connection]
razrunelord has quit [Ping timeout: 240 seconds]
bmurt has quit []
xcv_ has joined #ruby
gruz0[russia] has quit [Client Quit]
northfurr has joined #ruby
kilk_ has joined #ruby
simoz111118 has quit [Ping timeout: 245 seconds]
<jhass>
shevy: how'd that look like?
<eam>
shevy: you mean like Perl does :)
<shevy>
jhass hmm
<eam>
{ puts _ }
GriffinHeart has quit [Ping timeout: 240 seconds]
<shevy>
that would be awesome
<shevy>
jhass do we have any $ variables left to use?
<eam>
unfortunately one of the things ruby removed when it forked
DanielI has joined #ruby
stytown has joined #ruby
<jhass>
eam: I disagree, in Ruby _ is used to mark variables you actually don't use
little_fu has quit [Ping timeout: 244 seconds]
<eam>
shevy: ruby -n still uses $_ for this when
<shevy>
jhass perhaps there could be a generic way to access a Block structure
<eam>
jhass: right sure
<jhass>
shevy: dislike $, even avoid the regex ones as long as I can
iReCKeD has quit [Ping timeout: 272 seconds]
<shevy>
we have yield already to tap into a block; we'd need the rever of yield to access what is inside the block
<eam>
default loop iterators are one of those hot-button opinion things. A lot of folks think they're awful to understand and an equally large number of folks think they're super clear, concise and easy to understand
lw has joined #ruby
lw has quit [Max SendQ exceeded]
Shidash has joined #ruby
casheew has quit [Ping timeout: 264 seconds]
adeponte has quit [Ping timeout: 240 seconds]
lw has joined #ruby
lw has quit [Max SendQ exceeded]
<jhass>
isn't that a lot people find them hard to understand already kind of proof that it's true, even if there's an equally large group not thinking that?
bmurt has joined #ruby
lw has joined #ruby
<eam>
not any moreso than any other language feature like, say, object orientation
lw has quit [Max SendQ exceeded]
zigomir has quit [Remote host closed the connection]
adeponte has joined #ruby
lw has joined #ruby
zigomir has joined #ruby
<jhass>
hm, I guess I just don't think that the return of investment to learn that stuff is as big
<jhass>
you can get quite far in working with an object oriented system without fully grasping it, not so for this IMO
JBreit has joined #ruby
<eam>
I mean, it's a pretty simple concept to say "iterator is named FOO unless you name it something else"
<eam>
my five year old understands that :)
<jhass>
at first yes, I disagree when it comes to (deep) nesting though
<eam>
howso?
<eam>
is it any different than nesting two blocks with overlapping variable names? eg {|x| {|x| ?
<jhass>
you easily loose track, one wrong indentation and your _ is something completely different than you think it is. say a parking lot than a car. Not so if I named them car and parking_lot
<eam>
well sure
<jhass>
ruby -w even warns you if you do that
<jhass>
you should avoid that
<eam>
and it ought to if you nest defaults, seems consistent to me?
<jhass>
sorry, lost me there
<eam>
we're basically discussing syntactic sugar for implying a {|default| if one doesn't exist, right?
stytown has quit [Quit: stytown]
zigomir has quit [Ping timeout: 255 seconds]
<eam>
so { { # nesting |default| twice is identical to writing { |default| { |default|
<eam>
ought to trigger identical warnings and so on
<jhass>
well, then warning about double declarations that aren't in your code is even more confusing
freerobby has quit [Quit: Leaving.]
<eam>
hahaha see
<eam>
this is why I said it's all about preference
<jhass>
and I mean it totally be legit to shadow for such a default
<eam>
it's totally legit to shadow in general
zigomir has joined #ruby
<eam>
that's the entire purpose of scope
<jhass>
okay, let's say a lot more common
zorak has quit [Ping timeout: 240 seconds]
<eam>
all we're saying is that ruby requires boilerplate to declare a name for an iterator
<eam>
and some languages let you get away without that because in the simple case it's just noise
<eam>
eg, every case of |x| in all my code -- and there's quite a few of those
yubrew has joined #ruby
<jhass>
I dunno, if we're talking about simple cases I'd rather like to see &:foo expanded
<jhass>
like crystal does allow you do to map(&.split('_').first.to_i)
<eam>
what if you want to call foo twice?
<jhass>
what if you yield more than one value?
<jhass>
you get to the limits easily
<eam>
here's a concrete example: perl -wle'do {print $_; print $_} for qw{a b c}'
<eam>
in ruby, I'd want to do %w{a b c}.each { puts _; puts _}
<jhass>
.map(&*2).each(&:display)
<eam>
jhass: right, it's only supplied in the simple case (perl actually gives you the entire arg array in a default variable name too, but)
<eam>
jhass: that seems much harder to read
<jhass>
yeah, as said it's easy for either approach to construct the cases where it's hard to read
<eam>
yeah
yubrew has quit [Ping timeout: 244 seconds]
<eam>
I think the larger objection to the perl approach is that there's also a concept of implied arguments
<RubyPanther>
it is guaranteed the cases are hard to read, so making it suck is pretty easy
<eam>
that is: perl -wle'do {print; print} for qw{a b c}'
dukedave has joined #ruby
<RubyPanther>
The Perl approach is intended to be "expert friendly" (that's the jargon term)
<RubyPanther>
in Ruby "expert friendly" is assumed to be crap
<RubyPanther>
so trying to port those patterns is dubious, at best.
<eam>
right, ruby optimizes for people who don't know what they're doing :D
<RubyPanther>
Ruby optimizes so that future you will be able to read it, and not-you will be able to read it
<jhass>
we'll only get more of these. We do need some way to deal with them :P
<eam>
jhass: it's true
sunbeam has joined #ruby
<jhass>
so making stuff easy to follow isn't a bad thing
<RubyPanther>
We have Matz, that is not any sort of given that we're guaranteed to get a bunch of crap features
<sunbeam>
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- jekyll-assets (LoadError)
<sunbeam>
any ideas how come ?
<jhass>
if you need to be explicit for that, so it'd be
<sunbeam>
I get that when I launch jekyll
<RubyPanther>
What I mean is, if crap like that starts getting used, expect it to be removed! lol
<eam>
jhass: the thing is, ruby's pretty far down the black magic path already
<jhass>
I don't know, rails is but only because ruby allows is
<RubyPanther>
That's just hand-waving, Ruby doesn't do or support or encourage black magic
mikepack has joined #ruby
<eam>
I give it another 5 years until it's significantly harder for people who don't know what they're doing to use
<eam>
jhass: even in core, there's some odd stuff
<eam>
eg, stabby lambda
<jhass>
like?
<RubyPanther>
You could have said that 5 years ago and the facts were mostly the same, and it wouldn't have been true
<jhass>
how's stabby lamdba odd?
<jhass>
you not being used to the syntax doesn't count
<eam>
it's just unnecessarily obscure syntax
<eam>
jhass: this is all just being not used to the syntax
mikepack has quit [Remote host closed the connection]
<RubyPanther>
it isn't obscure after you read the manual page, nor is it difficult to recognize or use at that point
<eam>
RubyPanther: you sound like a perl hacker ;-)
<jhass>
I disagree, you can understand syntax without understanding behavior
lw has quit [Quit: s]
<jhass>
and unexpected behavior is where most black magic is
<jhass>
IMO
<eam>
well there's both syntax and behavior
<RubyPanther>
I was, and I chose Ruby for real reasons, reasons that are deep, that are core to Ruby, and this fear that that will change and that Ruby will become Perl is misplaced and unfounded
jottr has joined #ruby
<eam>
ruby's behavior is real inconsistent, especially (again) around blocks
<jhass>
example?
zigomir has quit [Remote host closed the connection]
<RubyPanther>
Ruby's behavior is designed to do the expected thing in each case, and NOT to blindly follow broad, ideological concepts of consistency
zigomir has joined #ruby
<eam>
scope changes in the last few versions, Proc, lambda, etc
<eam>
ask a rubyist: How do I declare a variable local to my block? Most have no clue
<RubyPanther>
Most don't want to be so impolite to tell you, "No, don't want that"
<RubyPanther>
"That is crap, use OOP"
<eam>
you wish
<eam>
has nothing to do with oop
yfeldblum has joined #ruby
havenwood has quit [Remote host closed the connection]
<RubyPanther>
You're complaining there is not a clear answer to a thing that you shouldn't want? You should explicitly not want Perl-style scope that is outside of the OO, except where you want a traditional closure
wingness has quit [Ping timeout: 245 seconds]
<eam>
RubyPanther: what do you mean "perl style scope?"
mgberlin has quit [Read error: Connection reset by peer]
<RubyPanther>
There is some old mailing list thread you can search where Matz talks about that
mgberlin has joined #ruby
<RubyPanther>
I forget what Perl calls it, it's been 10 years now
MZAWeb has joined #ruby
<eam>
anyway, this conversation was more interesting before you joined it,RubyPanther
m8 has quit [Quit: Sto andando via]
timonv has quit [Remote host closed the connection]
<RubyPanther>
Well, that is subjective, and rude, and why would it make me want to make you happy? I care more about, if somebody walks in and reads that crap, there should be a voice telling them about why Ruby is the way it is
mijicd has quit [Remote host closed the connection]
<RubyPanther>
THe whole premise that Ruby is somehow doomed to add a bunch of misfeatures, it is a bit of anti-Ruby flamebait to start with
<RubyPanther>
There are real reasons most of that stuff was rejected in the past, those reasons don't change over time unless our leadership changes
iReCKeD has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
Riking has joined #ruby
rdavila has joined #ruby
* eam
tips fedora
freerobby has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
alem0lars has joined #ruby
sunbeam has left #ruby [#ruby]
northfurr has quit [Quit: northfurr]
renderful has quit [Read error: Connection reset by peer]
renderful has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
fgo has joined #ruby
Hanmac1 has joined #ruby
nescio has joined #ruby
xcv_ has quit [Remote host closed the connection]
nescio has left #ruby [#ruby]
nescio has joined #ruby
xcv has joined #ruby
Wolland has joined #ruby
xcv has quit [Remote host closed the connection]
xcv has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
towbes has joined #ruby
MZAWeb has quit [Ping timeout: 245 seconds]
Cache_Money has joined #ruby
<shevy>
noooo
<shevy>
eam don't stop now :(
<shevy>
I *just* came back
<stian>
:(
<shevy>
had to watch soccer :P
fgo has quit [Ping timeout: 245 seconds]
<stian>
missed the action, buddy
Georg3 has joined #ruby
<shevy>
hehe
<shevy>
you rub it in
<shevy>
I like that :)
<shevy>
next time I need to make controversial statements so that both RubyPanther and eam will chime in
<stian>
just spent 8 hours fucking around with a caller id script for asterisk, written in php. I don't even know php, gah
<shevy>
then I will lean back and watch it unfold ...
<stian>
indeed
<shevy>
ack
<shevy>
8 hours in php
<stian>
php is shit
<shevy>
is that hell?
<shevy>
did you at least succeed?
<Wolland>
lol @ stian
<stian>
yes in fact I named the gist for death
<RubyPanther>
shevy: I'd fall down and fake an injury, but I don't have 8 hrs
<stian>
haha
<shevy>
lol
<stian>
no I have no fucking clue, it doesn't work
<stian>
having a beer now
<Wolland>
plan B = beer
<shevy>
damn it... I am out of beer :(
<stian>
at least I learned something
<shevy>
what did you learn in those eight hours?
<stian>
that php is horrible
<RubyPanther>
stian: Not knowing PHP is the best way to write it. You'll make it out with less damage.
kotk_ has joined #ruby
<RubyPanther>
I only did 1 PHP bugfix, and I made not to learn anything before I did it
<benzrf>
php blows
<benzrf>
php blows 10 hippos at once
<stian>
and that the module I wrote calls another function outside the file, and which essentially ruins my ability to do http get requests with any form of authentication
<Wolland>
Stian, i went to disney world since our conversation last night ... you were stuck in PHP :( sorry/
Notte has joined #ruby
<RubyPanther>
I just treated it like pseudocode and the bug fell right out
<RubyPanther>
Wolland: I'm not sure which sounds more terrifying
<stian>
haha
kotk has quit [Ping timeout: 255 seconds]
tharindu has quit [Quit: Leaving...]
<shevy>
hey
<Wolland>
:) hehe ... I got to meet all the princesses
<shevy>
disney world scales
<Wolland>
Ariel is hot, btw.
<stian>
for all I know it could be an issue with the json parsing too, fuck if I know.. no way of debugging it afaik :(
<stian>
indeed
Georg3 has quit [Client Quit]
<shevy>
sounds like a washing additive... Ariel ...
<stian>
some of those disney chicks are pretty intense
<benzrf>
ariel is from da tempist
<stian>
acting etc, not sure if they're insane and really hot, or just good actors and really hot
simoz111119 has quit [Ping timeout: 264 seconds]
<Wolland>
I hope both
<RubyPanther>
insanity is The Method, so both
<stian>
:P
<stian>
hahah
razrunelord has joined #ruby
<stian>
good times
<RubyPanther>
or was it, The Method is insanity? Whatever
<stian>
does anyone know asterisk (voip) in here though by chance?
<Wolland>
there might be an #asterisk channel stian
noop has quit [Ping timeout: 240 seconds]
<Wolland>
or at least try #php maybe
bluOxigen has joined #ruby
<benzrf>
doint do php
noop has joined #ruby
<benzrf>
it will eat you aliv
<stian>
there is an asterisk channel but they'll be all mad that I'm not running the pure asterisk
<stian>
bastards in there I tell ya
<Wolland>
:) asterisk nazis
<stian>
:P
<RubyPanther>
stian: a decade ago I used it, but I didn't do anything interesting enough for me to remember
<shevy>
nasterisk azis!
<Wolland>
heh
<shevy>
oh damn... RubyPanther starts again with "a decade ago" ...
<shevy>
nobody is older than RubyPanther here
<RubyPanther>
Well, longer but I rounded
<shevy>
yeah I round too when someone asks me how old I am
<shevy>
I round *down*
<Wolland>
rounded from 19?
<shevy>
yes
<shevy>
makes you 15
<shevy>
notice the gap though
<shevy>
when you are 38
<shevy>
you round to 30
<RubyPanther>
No, I just say "30-something"
<shevy>
hehehe
<stian>
RubyPanther: hehe
razrunelord has quit [Ping timeout: 240 seconds]
<stian>
I'll have to start rounding down as well, turn 26 this year.
toastynerd has joined #ruby
elricsfate has joined #ruby
<shevy>
that's still young
<RubyPanther>
Well, until 25 people use their exact age, and then they switch to "20-something," so if you say "20-something" anybody older than you knows that means late-20s
<stian>
still young I guess..
daed_ is now known as daed
Poky has joined #ruby
endash has quit [Quit: endash]
<stian>
I feel that I'm way late to the programming game though
<benzrf>
im 10-something
<Edelwin>
:38
<Edelwin>
(whooooooops)
dANOKELOFF has joined #ruby
<benzrf>
ruby has stunningly flexible syntax
Neomex has joined #ruby
<RubyPanther>
benzrf: Don't worry, you'll be 20-teen before you know it
* benzrf
sinks to his knees
<benzrf>
NOOOOOOOOOOOOOOOOOOOOOOOOO
<stian>
ruby is stunning :P
<Wolland>
i just hash my age so ... -2854098361048895837
<RubyPanther>
I'm not really even convinced by the boundary conditions involved. I've already spent a couple billion years evolving bipedal locomotion.
mechanicles has joined #ruby
kireevco has quit [Client Quit]
havenwood has quit [Ping timeout: 264 seconds]
xmltok has joined #ruby
chrishough has joined #ruby
stytown has joined #ruby
dANOKELOFF has quit []
simoz111119 has joined #ruby
lethjakman has joined #ruby
simoz1111110 has joined #ruby
stytown has quit [Client Quit]
simoz1111111 has joined #ruby
stytown has joined #ruby
coffeina has joined #ruby
kireevco has joined #ruby
jxf has quit [Ping timeout: 264 seconds]
simoz111119 has quit [Ping timeout: 272 seconds]
simoz1111110 has quit [Ping timeout: 244 seconds]
timonv has joined #ruby
mercwithamouth has quit [Ping timeout: 264 seconds]
wallerdev has quit [Quit: wallerdev]
mgorbach has quit [Read error: Connection reset by peer]
simoz1111112 has joined #ruby
kriskova has joined #ruby
simoz1111113 has joined #ruby
Wolland has quit [Remote host closed the connection]
simoz1111111 has quit [Ping timeout: 244 seconds]
datafirm____ has joined #ruby
simoz1111112 has quit [Ping timeout: 244 seconds]
alem0lars has quit [Quit: alem0lars]
toastynerd has joined #ruby
mgorbach has joined #ruby
timonv has quit [Remote host closed the connection]
yfeldblum has joined #ruby
lw has joined #ruby
simoz1111114 has joined #ruby
simoz1111113 has quit [Ping timeout: 244 seconds]
DanielI has quit [Changing host]
DanielI has joined #ruby
towbes has quit [Ping timeout: 272 seconds]
Steve21 has joined #ruby
lxsameer has quit [Quit: Leaving]
<Steve21>
anyone ever see a PDF accessibility library?
<jhass>
you make a method if you have code that you repeat or that works with certain data. You make a class if you have a group of methods working with the same data
<jhass>
if you start doing that you'll get a feeling for it soon enough
<stian>
makes sense, jhass
<stian>
:D
<stian>
thing is, I've been trying to learn a language since I was what 14? Being 25 now, having learned some python earlier I gave up, and eventually just fell for Ruby
<stian>
mostly due to the syntax
<stian>
as a first language it's pretty nifty imo
timonv has quit [Ping timeout: 264 seconds]
<stian>
really appreciate the help I have gotten here the past day or so.
<DanielI>
I like Ruby
<stian>
Me too
<stian>
ruby is my "birthstone", too
<stian>
whatever the hell that means
<stian>
pretty cool anyhow
jtiggo has joined #ruby
Shidash has joined #ruby
<stian>
oh well, gnite guys
<rkazak>
sitan: once you have teh foundations you can apply to most languages...
<stian>
rkazak: my thoughts exactly :P
ChristianDC has left #ruby ["WeeChat 0.4.3"]
gruz0[russia] has quit [Quit: This computer has gone to sleep]
jxf has joined #ruby
wallerdev has joined #ruby
stytown has quit [Quit: stytown]
* stian
is watching Silicon Valley
Notte has quit [Remote host closed the connection]
<stian>
hilarious series :P
jackneill has quit [Remote host closed the connection]
Notte has joined #ruby
afast has quit [Quit: Leaving]
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ari-_-e has quit [Ping timeout: 272 seconds]
gruz0[russia] has joined #ruby
gruz0[russia] has quit [Client Quit]
ctp has joined #ruby
ctp has quit [Client Quit]
lewix has joined #ruby
<lewix>
hey
noop has quit [Ping timeout: 264 seconds]
anarang has quit [Quit: Leaving]
deric_skibotn has joined #ruby
GriffinHeart has joined #ruby
stytown has joined #ruby
ari-_-e has joined #ruby
gzl has joined #ruby
kireevco has quit [Quit: Leaving.]
LexicalScope has quit [Ping timeout: 264 seconds]
<gzl>
I'd like to compute something like an array intersection, but one that only looks at consecutive runs at the beginning of the array. for example, [1,2,4,3] & [1,2,5,3] gives [1,2,3], but I'd like to get [1,2] instead. similarly computing this "prefix intersection" of [2,1] and [3,1] should return []. is there a simple idiomatic way to do this in ruby, or should I just write something "by hand"?
jtiggo has quit [Remote host closed the connection]
<jhass>
hm, zip and take_while a == b, map to first?
GriffinHeart has quit [Ping timeout: 244 seconds]
<jhass>
a.zip(b).take_while {|a, b| a == b }.map(&:first)
gruz0[russia] has joined #ruby
iReCKeD is now known as _iReCKeD_
gzl has quit [Remote host closed the connection]
gzl has joined #ruby
gzl has joined #ruby
gzl has quit [Changing host]
tkuchiki has joined #ruby
tus has quit [Ping timeout: 240 seconds]
darius has joined #ruby
<jhass>
gzl: still got the answer?
darius is now known as Guest60192
gruz0[russia] has quit [Client Quit]
xcv has joined #ruby
<gzl>
jhass: no, did you say something and I missed it reconnecting?
_iReCKeD_ has left #ruby ["Leaving"]
<jhass>
a.zip(b).take_while {|a, b| a == b }.map(&:first)
Guest60192 has quit [Client Quit]
kenneth has joined #ruby
<lewix>
jhass: what does zip do again
Takle has quit [Remote host closed the connection]
<jhass>
a.zip(b).take_while(&:==).map(&:first) if you want to look too smart I guess
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
rdavila has joined #ruby
rkazak has quit [Quit: rkazak]
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gruz0[russia] has joined #ruby
kyb3r_ has joined #ruby
SCHAAP137 has joined #ruby
Steve21 has quit [Quit: Steve21]
<shevy>
object.take(:a_guess)
<shevy>
ruby is like literal english
<gzl>
jhass: thanks, that's great. I actually want it for n arrays. it's easy to modify your code to work, but is there a cleaner way of zipping them all together than arrays[0].zip(*arrays[1..-1]), which is a little gross?
marr has joined #ruby
yubrew has joined #ruby
duncannz has joined #ruby
tus has joined #ruby
havenwood has joined #ruby
<kilk_>
.take_while(&:==)
<kilk_>
not very clear construction
<jhass>
I'd probably do first, *rest = arrays in a line before that
<jhass>
then first.zip(*rest)
<jhass>
kilk_: those that "looking smart" note
<gzl>
jhass: oh, that's neat. thanks.
scx_ has joined #ruby
<jhass>
kilk_: er, *therefore. Forgot how to talk, it's too late here already
kyb3r_ has quit [Read error: Connection reset by peer]
Squarepy has joined #ruby
yubrew has quit [Ping timeout: 245 seconds]
scx has quit [Ping timeout: 240 seconds]
jamto11 has joined #ruby
mijicd has joined #ruby
Zebroid has quit [Ping timeout: 240 seconds]
_a-l-e-x_ has joined #ruby
<_a-l-e-x_>
ruby is cool
fgo has joined #ruby
<kilk_>
_a-l-e-x_, u a still schoolboy
garndt has joined #ruby
jamto11 has quit [Ping timeout: 245 seconds]
jtiggo has joined #ruby
<_a-l-e-x_>
not really, but my education continues at this point with SQL
<kilk_>
cool lang is only math lang
<_a-l-e-x_>
SQL makes sense except for equality testing, but I can't talk in the #sql channel. Dunno how to get voiced.
maximski has quit []
<_a-l-e-x_>
Hm?
Channel6 has quit [Quit: Leaving]
rdavila has quit [Quit: rdavila]
chrishough has joined #ruby
fgo has quit [Ping timeout: 244 seconds]
decoponio has quit [Quit: Leaving...]
_a-l-e-x_ has left #ruby ["Leaving"]
cashnguns has quit [Ping timeout: 240 seconds]
sigurding has joined #ruby
chrishough has quit [Client Quit]
yfeldblu_ has joined #ruby
yfeldbl__ has joined #ruby
yfeldbl__ has quit [Remote host closed the connection]
dangerou_ has joined #ruby
palantir has quit [Ping timeout: 245 seconds]
yfeldbl__ has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
dangerousdave has quit [Ping timeout: 264 seconds]
<jhass>
not even remotely hitting the 70, lots of space for indentation
kotk has quit [Read error: Connection reset by peer]
kotk has joined #ruby
<jhass>
a.take_while.with_index {|a, index| a == b[index] }.map(&:first) but I don't think that's more readable
St_Marx has joined #ruby
johnmolina has quit [Ping timeout: 240 seconds]
mgberlin has quit [Read error: Connection reset by peer]
mgberlin has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
riotjone_ has joined #ruby
<kilk_>
jhass , for me more readable a.each.with_index{|x,ind| break if x != b[ind]; p x }
havenwood has quit [Remote host closed the connection]
<jhass>
I feel sorry for you then
havenwood has joined #ruby
<jhass>
and it doesn't even do the same
havenwood has quit [Remote host closed the connection]
aspires has joined #ruby
benzrf|offline is now known as benzrf
blackgoat has quit [Ping timeout: 245 seconds]
<jhass>
the break version would be a.inject([]).with_index {|(intersection, a), index| break if a != b[index]; intersection << a }, you're not really telling me that's more readable
caveat- has quit [Ping timeout: 252 seconds]
riotjones has quit [Ping timeout: 272 seconds]
<jhass>
a.inject([]).with_index {|(intersection, a), index| break intersection if a != b[index]; intersection << a } actually
blackgoat has joined #ruby
Rahul_Roy has joined #ruby
<kilk_>
then best variant is a.take_while.with_index{|x,ind| x == b[ind] }
caveat- has joined #ruby
<jhass>
I still disagree
<jhass>
you're just not used to zip
<jhass>
it's normal, it takes a while to realize its power. I needed that too
pavelz has quit [Ping timeout: 245 seconds]
kirun has quit [Quit: Client exiting]
<kilk_>
zip is complicated than my last variant)
pavelz has joined #ruby
wallerdev has quit [Quit: wallerdev]
yubrew has joined #ruby
deric_skibotn has quit [Ping timeout: 272 seconds]
mercwithamouth has quit [Ping timeout: 244 seconds]
sigurding has quit [Quit: sigurding]
yubrew has quit [Ping timeout: 264 seconds]
Xeago has joined #ruby
andrewlio has quit [Quit: Leaving.]
bluOxigen has quit [Ping timeout: 244 seconds]
bmurt has quit []
timonv has joined #ruby
benlieb has quit [Quit: benlieb]
mradmacher has quit [Ping timeout: 240 seconds]
jarray52 has joined #ruby
timonv has quit [Ping timeout: 264 seconds]
spider-mario has quit [Read error: Connection reset by peer]
fgo has joined #ruby
nemesit|znc has quit [Ping timeout: 244 seconds]
dangerousdave has quit [Ping timeout: 272 seconds]
johnmolina has joined #ruby
nemesit|znc has joined #ruby
fgo has quit [Ping timeout: 255 seconds]
lewix has quit [Remote host closed the connection]
Blaguvest has joined #ruby
zorak has joined #ruby
<shevy>
.inject is so ugly
renderful has quit [Quit: Leaving...]
MZAWeb has joined #ruby
<shevy>
kilk_ .zip is easy to understand if you think about it like that
djbkd has quit [Remote host closed the connection]
<kilk_>
cool, but if u have array of 100M items
<shevy>
that's a big array
<shevy>
like the mother of all arrays
coffeina has quit [Quit: Wychodzi]
<kilk_>
u have good humor but weak front brain part, gg
djbkd has joined #ruby
cobakobodob has quit [Ping timeout: 255 seconds]
klaut has quit [Remote host closed the connection]
ItSANgo has quit [Read error: Connection reset by peer]
ItSANgo_ has joined #ruby
cashnguns has joined #ruby
djbkd has quit [Ping timeout: 240 seconds]
xcv has quit [Remote host closed the connection]
endash has joined #ruby
mijicd has quit [Remote host closed the connection]
Deele has quit [Ping timeout: 255 seconds]
ari-_-e has quit [Ping timeout: 245 seconds]
GriffinHeart has joined #ruby
mijicd has joined #ruby
ari-_-e has joined #ruby
dc_ has quit [Ping timeout: 272 seconds]
dc_ has joined #ruby
Takle has joined #ruby
dc_ has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
endash has quit [Quit: endash]
GriffinHeart has quit [Ping timeout: 240 seconds]
renderful has joined #ruby
asteve has joined #ruby
Photism has joined #ruby
jxf has quit [Ping timeout: 252 seconds]
jtiggo has quit []
mgberlin has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
deric_skibotn has joined #ruby
Poky has quit [Ping timeout: 245 seconds]
ulluh has joined #ruby
dorei has quit []
aspires has quit []
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ecksit has joined #ruby
<RubyPanther>
kilk_: then you need a data store, not an array
<RubyPanther>
you shouldn't have to use a lot of the front part of your brain in your code, you should be able to save that for thinking about the problem you're solving
<ulluh>
Rationale: I extracted this from another class, seeing that #action was supported by a cluster of methods that did not serve anything else in the original class.
djbkd has joined #ruby
dvcliving has joined #ruby
<toretore>
ulluh: it's hard to say because that code doesn't do anything at all
<RubyPanther>
ulluh: it looks pretty normal, except that you might want to #dup other_param and use protected instead of private
<toretore>
action might as well be called new
yfeldblum has joined #ruby
zigomir has quit [Remote host closed the connection]
yfeldbl__ has quit [Read error: Connection reset by peer]
<jhass>
or if action's return value is out of interest called in initialize
Photism has quit [Quit: Leaving]
yubrew has quit [Ping timeout: 244 seconds]
closer has quit [Ping timeout: 272 seconds]
<RubyPanther>
it is normal to have a class method constructor named according to whatever is normal for the problem domain
rgrinberg has quit [Quit: Leaving.]
<jhass>
note that you can just call new, no need to repeat the class name
closer has joined #ruby
rgrinberg has joined #ruby
jottr has joined #ruby
zigomir has joined #ruby
jarto has joined #ruby
zigomir has quit [Read error: Connection reset by peer]
zigomir has joined #ruby
hl has quit [Ping timeout: 245 seconds]
zigomir has quit [Read error: Connection reset by peer]
zigomir has joined #ruby
rgrinberg has quit [Client Quit]
zigomir has quit [Read error: Connection reset by peer]
zigomir has joined #ruby
Notte has quit [Remote host closed the connection]
zigomir has quit [Read error: Connection reset by peer]
djbkd has quit [Ping timeout: 255 seconds]
zigomir has joined #ruby
zigomir_ has joined #ruby
johnmolina has quit [Ping timeout: 244 seconds]
zigomir_ has quit [Read error: Connection reset by peer]
zigomir_ has joined #ruby
zigomir__ has joined #ruby
zigomi___ has joined #ruby
mgberlin has joined #ruby
zigom____ has joined #ruby
Guest46073 is now known as Radar
zigomir has quit [Ping timeout: 264 seconds]
zigo_____ has joined #ruby
helpa has joined #ruby
zigo_____ has quit [Read error: Connection reset by peer]
zigomir has joined #ruby
CorpusCallosum has quit [Ping timeout: 245 seconds]
zigomir_ has quit [Ping timeout: 264 seconds]
zigomir has quit [Read error: Connection reset by peer]
ctp has joined #ruby
<ulluh>
toretore / RubyPanther / jhass: sorry, had to answer the door. :) The method is generally only used once, so I've used this pattern to avoid needlessly creating the object and calling the method from outside
zigomir has joined #ruby
<ulluh>
Reducing it to only one line of code necessary from the outside.
zigomir has quit [Read error: Connection reset by peer]
zigomir__ has quit [Ping timeout: 264 seconds]
<ulluh>
Also I didn't want to execute the action inside the constructor, as I don't think of object construction as the actual "doing", more... initialization beforehand
zigomir has joined #ruby
zigomi___ has quit [Ping timeout: 264 seconds]
CorpusCallosum has joined #ruby
<toretore>
ulluh: it's a pattern i use myself sometimes, i think it's fine
zigomir has quit [Read error: Connection reset by peer]
zigomir has joined #ruby
jamto11 has joined #ruby
zigom____ has quit [Ping timeout: 264 seconds]
zigomir_ has joined #ruby
zigomir has quit [Read error: Connection reset by peer]
johnmolina has joined #ruby
Neomex has quit [Quit: Leaving]
zigomir_ has quit [Read error: Connection reset by peer]
zigomir has joined #ruby
<ulluh>
toretore: great, thanks. I just wanted to make sure I hadn't got myself into a senseless design habit as if I wasn't thinking of other possibilities
<ulluh>
But they do seem rational now
fgo has joined #ruby
mercwithamouth has quit [Ping timeout: 255 seconds]
zigomir has quit [Read error: Connection reset by peer]
zigomir_ has joined #ruby
havenwood has joined #ruby
zigomir_ has quit [Read error: Connection reset by peer]
zigomir has joined #ruby
jamto11 has quit [Ping timeout: 272 seconds]
aspires has joined #ruby
fgo has quit [Ping timeout: 244 seconds]
CorpusCallosum has quit [Ping timeout: 264 seconds]
CorpusCallosum has joined #ruby
rdavila has joined #ruby
rdavila has quit [Client Quit]
Channel6 has joined #ruby
ecksit has quit [Quit: Computer has gone to sleep.]
likemike has quit [Remote host closed the connection]