apeiros_ changed the topic of #ruby to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
sepp2k has quit [Ping timeout: 240 seconds]
sepp2k1 has joined #ruby
Barrayar has quit [Ping timeout: 245 seconds]
MusachiMiyamotoF has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jamto11 has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mercwith1mouth has quit [Ping timeout: 240 seconds]
Hobogrammer has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
atox has quit [Remote host closed the connection]
jahkobi has quit [Quit: jahkobi]
kilk_ has quit [Ping timeout: 240 seconds]
kyb3r_ has quit [Ping timeout: 240 seconds]
kyb3r_ has joined #ruby
abdulsattar has joined #ruby
<gr33n7007h> LoadError: cannot load such file -- mime/message; What gem do I install ??
freerobby has joined #ruby
Guest41920 has quit [Ping timeout: 245 seconds]
<benzrf> 2
EvanR has joined #ruby
<havenwood> gr33n7007h: mime, it looks like
EvanR is now known as Guest87659
<benzrf> mime-message maybe
toastynerd has quit [Remote host closed the connection]
<gr33n7007h> let me check
<gr33n7007h> no luck, mime is installed but still the error
aspires has quit []
<gr33n7007h> I need it to work for the gmail gem
rgrinberg has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<gr33n7007h> havenwood, Thanks
Stalkr^ has quit [Quit: Leaving...]
aspires has joined #ruby
mercwithamouth has joined #ruby
saarinen has quit [Quit: saarinen]
mikesplain has joined #ruby
<gr33n7007h> havenwood, removing the require 'mime/message' from gmail/message.rb did the trick :) :)
dreamchaser has joined #ruby
dreamchaser has quit [Client Quit]
tcstar has quit [Ping timeout: 255 seconds]
benlieb has quit [Quit: benlieb]
Hobogrammer has joined #ruby
aspires has quit []
scarolan has joined #ruby
bluOxigen has quit [Ping timeout: 272 seconds]
marr has quit [Ping timeout: 272 seconds]
maestrojed has quit [Quit: Computer has gone to sleep.]
mjsmith2 has joined #ruby
bricker`work has quit [Quit: leaving]
datafirm has quit [Quit: Computer has gone to sleep.]
datafirm has joined #ruby
hpoydar has quit [Remote host closed the connection]
hpoydar has joined #ruby
dreamchaser has joined #ruby
Barrayar has joined #ruby
freerobby has quit [Quit: Leaving.]
dreamchaser has quit [Client Quit]
datafirm has quit [Ping timeout: 244 seconds]
rlazoti has joined #ruby
hpoydar has quit [Ping timeout: 240 seconds]
tcstar has joined #ruby
fgo has joined #ruby
<timgauthier> ugh :P
renderful has quit [Remote host closed the connection]
mikesplain has quit [Ping timeout: 240 seconds]
mgberlin has quit [Remote host closed the connection]
\13k has quit [Quit: so long and thanks for the fish]
Rojo has quit [Ping timeout: 272 seconds]
fgo has quit [Ping timeout: 244 seconds]
scarolan has quit [Remote host closed the connection]
andrewjanssen has quit [Quit: Linkinus - http://linkinus.com]
yubrew has joined #ruby
andrewjanssen has joined #ruby
lemur has joined #ruby
LadyRainicorn has quit [Quit: Bye]
musashi1 has joined #ruby
abdulsattar has quit [Ping timeout: 245 seconds]
yubrew has quit [Ping timeout: 264 seconds]
alexandrite_ is now known as alexandrite
GriffinHeart has joined #ruby
rlazoti has quit [Remote host closed the connection]
goleldar has quit [Remote host closed the connection]
jack_rabbit_ has joined #ruby
benlieb has joined #ruby
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Zamerick has joined #ruby
GriffinHeart has quit [Ping timeout: 264 seconds]
redondos has quit [Excess Flood]
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]
ahuman has joined #ruby
lemur has quit [Ping timeout: 264 seconds]
johnmolina has quit []
Rollabunna has joined #ruby
Inside has joined #ruby
MrSamuel has joined #ruby
IceDragon has quit [Ping timeout: 264 seconds]
fgo has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Barrayar has joined #ruby
brianherman has joined #ruby
<shevy> The_NetZ sure... Dir['*.rb'].each {|f| File.readlines(f) }
<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…]
GriffinHeart has joined #ruby
bluOxigen has joined #ruby
red_hulk has joined #ruby
GriffinHeart has quit [Ping timeout: 245 seconds]
kilk_ has joined #ruby
Sc0rp10n has quit [Ping timeout: 255 seconds]
chrishough has quit [Quit: chrishough]
dukedave has quit [Ping timeout: 240 seconds]
mikhael has joined #ruby
dideler has quit [Ping timeout: 264 seconds]
<mikhael> Hi, I'm literally new to Ruby, I'm trying to use ruby with mechanize to login to a website,http://paste.ubuntu.com/7678170/ but it gives me this error: http://paste.ubuntu.com/7678170/
<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
<stian> hmm
<stian> really now
<Wolland> this one might be a little newer
Soliah has quit [Quit: Soliah]
Channel6 has quit [Quit: Leaving]
<stian> Neat
<Wolland> you probably just need to write an API to connect the 2
<stian> haha
GriffinHeart has joined #ruby
<Wolland> it's easier than it sounds :)
<stian> well, asterisk has a module called superfecta which is the /best/ CallerID lookup thingy
<stian> however it sounds daunting as hell tbh
<stian> I guess I could make Asterisk run my ruby script then?
PPH has quit [Ping timeout: 244 seconds]
<Wolland> that I don't know
<stian> but it sounds overly complex considering ruby is my first language so far and I barely know anything :P
<Wolland> or you can do a sort of a sync and populate Asterisk db with data from your CRM
<Wolland> Asterisk is on mysql I think, so read out of your crm > mysql
GriffinHeart has quit [Ping timeout: 240 seconds]
alem0lars has joined #ruby
<stian> Yes that could work Wolland
<Wolland> endless options :)
<stian> there are too many :P
<stian> well I have a few ideas of what I can work with now, we'll see
<stian> thanks man ;-)
<Wolland> good luck
<Wolland> np
senayar has joined #ruby
garndt has quit [Quit: Connection closed for inactivity]
Wolland has quit [Remote host closed the connection]
Wolland has joined #ruby
ponga has joined #ruby
setra has joined #ruby
gimpygoo has joined #ruby
pencilcheck has joined #ruby
noop has joined #ruby
senayar has quit [Ping timeout: 240 seconds]
Wolland has quit [Ping timeout: 245 seconds]
dmyers has joined #ruby
senayar has joined #ruby
Zamerick has quit [Ping timeout: 272 seconds]
Hobogrammer has joined #ruby
gruz0[russia] has joined #ruby
senayar has quit [Remote host closed the connection]
scx has quit [Ping timeout: 245 seconds]
scx_ has joined #ruby
grabe has joined #ruby
robbyoconnor has quit [Remote host closed the connection]
dgaffney has quit [Remote host closed the connection]
grabe has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
markl3ster has quit []
noop has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
<kilk_> coud you recommend good articles or books abour ruby internals?
<ari-_-e> kilk_: there's a book called "ruby under a microscope" which might be of interest?
<ari-_-e> but what aspect of the internals?
repl is now known as dub-
<kilk_> info about memory managment
boris has joined #ruby
sski has quit [Remote host closed the connection]
yeticry has quit [Quit: leaving]
buub has joined #ruby
sski has joined #ruby
yeticry has joined #ruby
Rollabunna has quit [Remote host closed the connection]
fluve has joined #ruby
ponga has quit [Ping timeout: 245 seconds]
brookeas01 has joined #ruby
Vivekananda has quit [Quit: Ex-Chat]
yubrew has joined #ruby
Takle has quit [Remote host closed the connection]
aslan has quit [Ping timeout: 245 seconds]
alem0lars has quit [Quit: Going AFK...]
zigomir has joined #ruby
Notte has joined #ruby
senayar has joined #ruby
brookeas01 has quit [Ping timeout: 255 seconds]
Rollabunna has joined #ruby
yubrew has quit [Ping timeout: 244 seconds]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
Takle has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerou_ has joined #ruby
nmokru has quit [Ping timeout: 244 seconds]
senayar has quit [Ping timeout: 272 seconds]
fluve has quit [Remote host closed the connection]
Morkel has joined #ruby
pvb has quit [Read error: Connection reset by peer]
buub has quit [Ping timeout: 240 seconds]
dgaffney has joined #ruby
noob101 has joined #ruby
dgaffney has quit [Remote host closed the connection]
<noob101> Hello, is anyone here?
baroquebobcat has joined #ruby
<mozzarella> yes
<noob101> Oh ok, I have a question.
<noob101> This is not relevant to ruby but can I ask anyway?
razrunelord has joined #ruby
<mozzarella> sure
<noob101> mozzarella: What program can I download from the web that can press like the keys or move the mouse for me automatically while I am gone.
datafirm has quit [Quit: Lingo - http://www.lingoirc.com]
<noob101> mozzarella: Example, what program can press the spacebar for me while I'm afk?
mradmacher has joined #ruby
<RubyPanther> come on, be cool noob, build a bot for that
camilasan has quit [Ping timeout: 240 seconds]
<noob101> RubyPanther: Can I build one using ruby?
<mozzarella> Noob101: autoit
The_NetZ has joined #ruby
<RubyPanther> sure, why not?
<noob101> mozzarella: may I get a link or something please?
klaut has joined #ruby
<The_NetZ> hey. looking for a way to iterate over an array and have an incrementing rubyint for each element
<mozzarella> what's your operating system, though?
<noob101> RubyPanther: How would that be achieved if ruby is for the web right?
relix has joined #ruby
<noob101> mozzarella: Windows
<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
oo_ has quit [Remote host closed the connection]
ponga has joined #ruby
<noob101> mozzarella: which one do I download
<mozzarella> Noob101: then use something like this, then: http://sourceforge.net/projects/autokeypresser/ (never tried it)
<mozzarella> if you don't need the full scripting power of autoit
<noob101> mozzarella: thank you
baroquebobcat has quit [Quit: baroquebobcat]
sigurding has joined #ruby
<The_NetZ> RubyPanther: I just use msys2 and run pacman -S mingw-w64-$arch-ruby :P
<noob101> mozzarella: this program doesnt move the mouse for you right
Morkel has quit [Quit: Morkel]
<RubyPanther> The_NetZ: probably why you think it is a PITA
<atmosx> hello
__JokerDoom has quit [Ping timeout: 240 seconds]
<The_NetZ> RubyPanther: actually no, it became easy after discovering msys2 :P
<mozzarella> Noob101: I doubt it, but you didn't say you needed that
<The_NetZ> but, I don't think Noob101 has the chops to run an arch-like system :P
<atmosx> how can I load an 'irb' session requiring a file?
<atmosx> from cli?
<The_NetZ> atmosx: I think you can pass the same options to irb as ruby, so irb -r something or the like
<noob101> mozzarella: I have a problem
<The_NetZ> atmosx: or, stick it into your irbrc. I personally have irb/completion required automatically by this method :P
<noob101> mozzarella: the program looks great and all but it doesn't do spacebar sadly
<The_NetZ> Noob101: what is your end goal?
<The_NetZ> why do you need the computer to do spacebar?
<The_NetZ> what is the point?
echevemaster has quit [Quit: Leaving]
<atmosx> The_NetZ: irbrc works on a per directory basis?
<The_NetZ> atmosx: no clue.
<mozzarella> Noob101: tried the key combination thing?
<noob101> The_NetZ: All I want to do is have the computer be able to input spacebar
mijicd has joined #ruby
<noob101> is that so hard?
<The_NetZ> its more or less the same as a bashrc
<noob101> mozzarella: whats the combination for spacebar
<noob101> I wonder
toastynerd has quit [Remote host closed the connection]
<mozzarella> spacebar
<mozzarella> lol
<The_NetZ> Noob101: WHY! can you not press it yourself? are you attempting to automate something? is it broken?
<noob101> mozzarella: I can't use it for the program, it doesn't show up
<mozzarella> autohotkey builds on autoit IIRC
<noob101> The_NetZ: Yes automate
<atmosx> The_NetZ: okay thanks mate,
<The_NetZ> Noob101: automate what.
mercwithamouth has joined #ruby
rgrinberg has quit [Quit: Leaving.]
bluOxigen has quit [Read error: Connection reset by peer]
<The_NetZ> it can't be terribly hard if all it takes is pressing space every now and again.
<noob101> The_NetZ: my spacebar
<The_NetZ> =_= you must be feeble.
<The_NetZ> Noob101: for. what. purpose!
<noob101> mozzarella: I would love to read that but I wanted something quick because I want to go to bed
<The_NetZ> autofire for some video game?
<The_NetZ> move down a webpage really fast?
<mozzarella> wat
<mozzarella> it's like two sentences
<noob101> The_NetZ: my game
bluOxigen has joined #ruby
<The_NetZ> Noob101: it doesn't have an autofire function? and you can't remap space to something you *can* automate with the suggested program?
<noob101> The_NetZ: nope
snath has quit [Ping timeout: 255 seconds]
<noob101> The_NetZ: The game doesn't have an autofire function
St_Marx has joined #ruby
<The_NetZ> and you can't remap 'shoot' to something else?
<atmosx> I need to get on the airplane and get some sleep really quickly
<noob101> The_NetZ: I'll try that, thankks
<The_NetZ> Noob101: you need to start just stating your *real* problem.
datafirm_ has quit [Quit: Computer has gone to sleep.]
<The_NetZ> Noob101: you'll get answers faster.
datafirm_ has joined #ruby
kotk has quit [Read error: Connection reset by peer]
dmyers has quit [Quit: dmyers]
The_NetZ has quit [Quit: leaving]
kotk has joined #ruby
JBreit has joined #ruby
Shidash has joined #ruby
datafirm_ has quit [Ping timeout: 240 seconds]
dangerou_ has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
JBreit has left #ruby [#ruby]
Kricir has joined #ruby
setra has quit [Ping timeout: 264 seconds]
apeiros has joined #ruby
yfeldblu_ has joined #ruby
<noob101> The_NetZ: are you still here?
ponga has quit [Ping timeout: 255 seconds]
MZAWeb has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Read error: Connection reset by peer]
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
jamto11 has joined #ruby
shinz0n has joined #ruby
SegFaultAX has quit [Ping timeout: 240 seconds]
GriffinHeart has joined #ruby
johnhamelink has quit [Ping timeout: 240 seconds]
senayar has joined #ruby
germanstudent has quit [Ping timeout: 245 seconds]
SegFaultAX has joined #ruby
jamto11 has quit [Ping timeout: 272 seconds]
GriffinHeart has quit [Ping timeout: 245 seconds]
wallerdev has joined #ruby
germanstudent has joined #ruby
senayar has quit [Ping timeout: 245 seconds]
Barrayar has quit [Read error: Connection reset by peer]
mercwithamouth has quit [Ping timeout: 264 seconds]
Kricir has quit [Remote host closed the connection]
johnhamelink has joined #ruby
three18t- has quit [Ping timeout: 264 seconds]
three18ti has joined #ruby
techsethi has joined #ruby
diegoviola has quit [Remote host closed the connection]
germanstudent has quit [Ping timeout: 255 seconds]
olivier_bK has joined #ruby
pvb has joined #ruby
sigurding has quit [Quit: sigurding]
germanstudent has joined #ruby
carraroj has joined #ruby
ponga has quit [Ping timeout: 244 seconds]
Hobogrammer has quit [Ping timeout: 240 seconds]
hy2guru_ has quit [Quit: Connection closed for inactivity]
Boohbah has quit [Quit: Lost terminal]
jackneill has joined #ruby
buub has joined #ruby
buub has left #ruby [#ruby]
lxsameer has quit [Remote host closed the connection]
germanstudent has quit [Ping timeout: 245 seconds]
germanstudent has joined #ruby
cloud|droid has joined #ruby
shinz0n has quit [Remote host closed the connection]
Azure has quit [Ping timeout: 255 seconds]
GriffinHeart has joined #ruby
Azure has joined #ruby
snath has joined #ruby
mradmacher has quit [Ping timeout: 264 seconds]
toastynerd has joined #ruby
Arkaniad has quit [Remote host closed the connection]
obs has joined #ruby
shelling has joined #ruby
scx_ has quit [Ping timeout: 245 seconds]
toastynerd has quit [Ping timeout: 240 seconds]
pvb has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
timonv has joined #ruby
kireevco has quit [Ping timeout: 264 seconds]
spider-mario has joined #ruby
yubrew has joined #ruby
techsethi has quit [Quit: techsethi]
techsethi has joined #ruby
duncannz has quit [Ping timeout: 255 seconds]
tesuji has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
Eyes has quit [Read error: Connection reset by peer]
elricsfate has quit [Ping timeout: 264 seconds]
Eyes has joined #ruby
brookeas01 has joined #ruby
jheg has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
senayar has joined #ruby
tiguser has quit [Ping timeout: 272 seconds]
tiguser has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
Notte has quit [Remote host closed the connection]
cloud|droid has quit [Ping timeout: 244 seconds]
ponga has joined #ruby
ecksit has joined #ruby
senayar has quit [Ping timeout: 264 seconds]
hpoydar has joined #ruby
hpoydar has quit [Ping timeout: 245 seconds]
andrewlio has joined #ruby
lkba has quit [Ping timeout: 245 seconds]
pvb has joined #ruby
Xeroa has joined #ruby
Notte has joined #ruby
northfurr has joined #ruby
razrunelord has joined #ruby
mikecmpbll has joined #ruby
northfurr has quit [Ping timeout: 240 seconds]
razrunelord has quit [Ping timeout: 240 seconds]
alexju has quit [Remote host closed the connection]
ponga has quit []
AlSquirrel has joined #ruby
fluve has joined #ruby
teddyp1cker has joined #ruby
teddyp1cker has quit [Client Quit]
toastynerd has joined #ruby
dorei has joined #ruby
tvw has joined #ruby
camilasan has quit [Ping timeout: 240 seconds]
maximski has joined #ruby
toastynerd has quit [Ping timeout: 264 seconds]
gustavn has joined #ruby
centrx has joined #ruby
centrx has quit [Remote host closed the connection]
toastynerd has joined #ruby
MusachiMiyamotoF has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
yubrew has joined #ruby
toastynerd has quit [Ping timeout: 240 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yubrew has quit [Ping timeout: 264 seconds]
jheg has quit [Quit: jheg]
<gustavn> Is there any built-in "compose" function, that composes procs?
RubyPanther has quit [Read error: Connection timed out]
pvb has quit [Read error: Connection reset by peer]
bluenemo has joined #ruby
wallerdev has quit [Quit: wallerdev]
DrCode has quit [Remote host closed the connection]
camilasan has joined #ruby
DrCode has joined #ruby
Xeago has joined #ruby
<apeiros> gustavn: where "compose" means what?
<gustavn> apeiros: Let's say I compose the procs f and g to get h. Then h.call(x) should be equal to f.call(g.call(x)). Get it?
<apeiros> proc { |*args| f.call(g.call(*args)) }
<gustavn> yep, does there exist any built-in function which can do that?
<apeiros> I don't think so
mijicd has quit [Remote host closed the connection]
cloud|droid has joined #ruby
camilasan has quit [Ping timeout: 240 seconds]
<gustavn> http://lpaste.net/7606546922718887936 So that would be a valid definition of compose? (I'm pretty new to Ruby, you can probably notice)
sawtooth has quit [Ping timeout: 255 seconds]
sawtooth has joined #ruby
jamto11 has joined #ruby
SCHAAP137 has joined #ruby
jamto11 has quit [Read error: Connection reset by peer]
<apeiros> IMO yes
jamto11 has joined #ruby
zxq9 has quit [Quit: Konversation terminated!]
cloud|droid has quit [Ping timeout: 264 seconds]
senayar has joined #ruby
jamto11 has quit [Ping timeout: 244 seconds]
ecksit has quit [Quit: Computer has gone to sleep.]
jshjsh has quit [Ping timeout: 246 seconds]
RubyPanther has joined #ruby
MusachiMiyamotoF has joined #ruby
MusachiMiyamotoF has quit [Max SendQ exceeded]
dilated_dinosaur has joined #ruby
tvw has quit []
m8 has joined #ruby
senayar has quit [Remote host closed the connection]
Deele has joined #ruby
Takle has quit [Read error: Connection reset by peer]
dgaffney has joined #ruby
jshjsh has joined #ruby
<Hanmac1> gustavn: i would use (other = nil, &block) as parameters so you can do pr.compose(&:to_s) or something
camilasan has joined #ruby
dukedave has joined #ruby
<gustavn> Hanmac1: And then other ||= block in the method?
<Hanmac1> jo that would be my first idea
Xeago has quit [Remote host closed the connection]
zxq9 has joined #ruby
<Hanmac1> i have a gist somewhere so oyu could so this: &:to_s.().to_i(16) and it would turn into proc {|obj| obj.to_s.to_i(16) }
dgaffney has quit [Ping timeout: 240 seconds]
lkba has joined #ruby
AndChat| has joined #ruby
lkba has quit [Read error: Connection reset by peer]
mijicd has joined #ruby
Nahra has joined #ruby
bluOxigen has quit [Ping timeout: 244 seconds]
Notte has quit [Remote host closed the connection]
pencilcheck has quit [Remote host closed the connection]
techsethi has quit [Ping timeout: 240 seconds]
klaut has quit [Remote host closed the connection]
jshjsh has quit [Quit: Leaving]
techsethi has joined #ruby
centrx has joined #ruby
thesheff17 has quit [Ping timeout: 255 seconds]
camilasan has quit [Ping timeout: 240 seconds]
gruz0[russia] has quit [Quit: This computer has gone to sleep]
pencilcheck has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
ctp has joined #ruby
sski has quit [Remote host closed the connection]
tus has joined #ruby
gustavn has quit [Quit: Textual IRC Client: www.textualapp.com]
sigurding has joined #ruby
ctp has quit [Ping timeout: 245 seconds]
toastynerd has joined #ruby
dukedave has quit [Ping timeout: 244 seconds]
pencilcheck has quit [Remote host closed the connection]
toastynerd has quit [Ping timeout: 272 seconds]
camilasan has joined #ruby
sski has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
senayar has joined #ruby
sigurding has quit [Quit: sigurding]
shelling has quit [Quit: Connection closed for inactivity]
jiddy has joined #ruby
dc_ has joined #ruby
kp666 has joined #ruby
senayar has quit [Ping timeout: 255 seconds]
boris has quit [Ping timeout: 240 seconds]
northfurr has joined #ruby
setra has joined #ruby
boris has joined #ruby
pencilcheck has joined #ruby
TripTastic has joined #ruby
kp666 has quit [Remote host closed the connection]
kp666 has joined #ruby
shelling has joined #ruby
hpoydar has joined #ruby
hpoydar has quit [Ping timeout: 264 seconds]
kireevco has joined #ruby
ag4ve__ has joined #ruby
<ag4ve__> so i'm trying to install rvm and having issues...
Takle has joined #ruby
<ag4ve__> list-known gives: Unknown ruby interpreter version (do not know how to handle): list-known.
Asher has quit [Quit: Leaving.]
<ag4ve__> and when i type 'rvm install ruby' it tries to use the system's package manager (i thought the point was to keep it local?)
<apeiros> ag4ve__: list known, not list-known
Asher has joined #ruby
<ag4ve__> ok, so now it just says 'Vim: Reading from stdin...
<ag4ve__> '
mijicd has quit [Remote host closed the connection]
kireevco has quit [Ping timeout: 245 seconds]
razrunelord has joined #ruby
mijicd has joined #ruby
<apeiros> that doesn't sound like you were calling rvm from a shell
<apeiros> no idea what you're doing
<ag4ve__> i'm using zsh
<ag4ve__> i think it's got an issue because of my pager...
<apeiros> ag4ve__: that doesn't explain "vim". vim has nothing to do with rvm.
nectarys has joined #ruby
<ag4ve__> but i think that's a bug with rvm i wasn't going to mention, but since it seems to be an issue with me getting started....
<apeiros> I don't see why your pager not emitting rvm's output is a bug in rvm - but I suggest you discuss that over in #rvm
Takle has quit [Ping timeout: 264 seconds]
nectarys has quit [Max SendQ exceeded]
<ag4ve__> ugh, i need to register my 3rd nick :(
<csmrfx> bash
<csmrfx> ok
razrunelord has quit [Ping timeout: 272 seconds]
nectarys has joined #ruby
<csmrfx> let me guess, even rvm docs mention its written for bash?
Xeroa has quit [Quit: Ex-Chat]
Xeago has joined #ruby
Eyes has quit [Remote host closed the connection]
nectarys has quit [Excess Flood]
mercerist has joined #ruby
phoo1234567 has joined #ruby
yubrew has joined #ruby
MrDoctor has joined #ruby
nectarys has joined #ruby
Kricir has joined #ruby
Xeago has quit [Ping timeout: 245 seconds]
nectarys has quit [Read error: Connection reset by peer]
northfurr has quit [Quit: northfurr]
ctp has joined #ruby
sigurding has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
eka has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
MrDoctor has quit [Ping timeout: 240 seconds]
ctp has quit [Ping timeout: 245 seconds]
banister has joined #ruby
banister has quit [Client Quit]
carraroj has joined #ruby
techsethi has quit [Quit: techsethi]
Kricir has quit [Remote host closed the connection]
toastynerd has joined #ruby
ixti has joined #ruby
alem0lars has joined #ruby
<atmosx> hello
rails426 has joined #ruby
SeanH_ has joined #ruby
toastynerd has quit [Ping timeout: 240 seconds]
tesuji has quit [Read error: Connection reset by peer]
sepp2k has joined #ruby
ixti has quit [Ping timeout: 240 seconds]
gigetoo has quit [Remote host closed the connection]
alexju has joined #ruby
gigetoo has joined #ruby
jiddy has quit [Quit: Lost terminal]
coffeina has joined #ruby
dontwork has joined #ruby
dilated_dinosaur has quit [Ping timeout: 264 seconds]
SeanH_ has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GriffinHeart has quit [Remote host closed the connection]
jamto11 has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
Nahra has quit [Remote host closed the connection]
jamto11 has quit [Ping timeout: 240 seconds]
carraroj has quit [Ping timeout: 272 seconds]
Inside has joined #ruby
rails426 has quit [Ping timeout: 272 seconds]
yfeldblu_ has quit [Ping timeout: 272 seconds]
ari-_-e has quit [Ping timeout: 264 seconds]
jarto has quit [Ping timeout: 245 seconds]
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kireevco has joined #ruby
causasui has quit [Ping timeout: 264 seconds]
shvelo has joined #ruby
coffeina has quit [Quit: Wychodzi]
causasui has joined #ruby
kireevco has quit [Ping timeout: 272 seconds]
freggles has quit [Ping timeout: 264 seconds]
alexju has quit [Remote host closed the connection]
yubrew has joined #ruby
obs has quit [Quit: Konversation terminated!]
yubrew has quit [Ping timeout: 240 seconds]
thesheff17 has joined #ruby
SirCmpwn has quit [Ping timeout: 252 seconds]
senayar has joined #ruby
alem0lars has quit [Quit: alem0lars]
maximski has quit []
ctp has joined #ruby
phinfonet has joined #ruby
<shevy> ag4ve__ come on man, use the source ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.bz2
SirCmpwn has joined #ruby
suffice has joined #ruby
suffice has quit [Client Quit]
senayar has quit [Ping timeout: 264 seconds]
ctp has quit [Ping timeout: 240 seconds]
pskosinski has joined #ruby
fluve has quit [Remote host closed the connection]
jottr has joined #ruby
ari-_-e has joined #ruby
suffice has joined #ruby
mradmacher has joined #ruby
Notte has joined #ruby
kirun has joined #ruby
toastynerd has joined #ruby
toastynerd has quit [Ping timeout: 244 seconds]
cobakobodob has quit [Ping timeout: 244 seconds]
wald0_ has joined #ruby
Dr3amc0d3r|away has quit [Ping timeout: 240 seconds]
wald0_ has quit [Client Quit]
wald0 has quit [Remote host closed the connection]
wald0 has joined #ruby
Guest73043 has quit [Read error: Connection reset by peer]
sara2010 has joined #ruby
<shevy> hmmm
<shevy> why don't we have File.empty?
relix has joined #ruby
jonahR has joined #ruby
dontwork has quit []
<apeiros> shevy: make a feature request. and in the meantime: def File.empty?(path); File.size(path).zero?; end unless File.respond_to?(:empty?)
relix has quit [Read error: Connection timed out]
<shevy> hmm let's see
lxsameer has quit [Quit: Leaving]
<shevy> ohhhh
<shevy> it's called File.zero?
relix has joined #ruby
<apeiros> no
<apeiros> File.size returns an Integer
<apeiros> and Integer has #zero?
<shevy> static VALUE rb_file_zero_p(VALUE obj, VALUE fname)
fightback has joined #ruby
freerobby has joined #ruby
<shevy> what's the _p there? pointer?
Shidash has quit [Quit: Leaving.]
maximski has joined #ruby
tiguser has quit [Ping timeout: 264 seconds]
tiguser has joined #ruby
sski has quit [Remote host closed the connection]
sski has joined #ruby
kp666 has quit [Ping timeout: 272 seconds]
yeticry has quit [Ping timeout: 244 seconds]
sigurding has quit [Quit: sigurding]
sski has quit [Ping timeout: 245 seconds]
felixjet has joined #ruby
Notte has quit [Remote host closed the connection]
mityaz has joined #ruby
cobakobodob has joined #ruby
sski has joined #ruby
cjs is now known as ChristianDC
kireevco has joined #ruby
yeticry has joined #ruby
yubrew has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
kireevco has quit [Ping timeout: 244 seconds]
yubrew has quit [Ping timeout: 255 seconds]
noop has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
lw has joined #ruby
yfeldblum has joined #ruby
yeticry has quit [Ping timeout: 240 seconds]
dc_ has quit [Ping timeout: 272 seconds]
jottr has quit [Ping timeout: 240 seconds]
little_fu has joined #ruby
Zebroid has joined #ruby
vifino has joined #ruby
dc_ has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
little_fu has quit [Remote host closed the connection]
andrewjanssen has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
andrewjanssen has quit [Client Quit]
fightback has quit [Ping timeout: 272 seconds]
toastynerd has joined #ruby
AlexRussia has quit [Remote host closed the connection]
ponga has joined #ruby
dreamchaser has joined #ruby
tobago has joined #ruby
toastynerd has quit [Ping timeout: 240 seconds]
tobago has quit [Client Quit]
sigurding has joined #ruby
GriffinHeart has joined #ruby
relix has quit [Ping timeout: 245 seconds]
relix has joined #ruby
GriffinHeart has quit [Ping timeout: 244 seconds]
iReCKeD has joined #ruby
sski has quit []
AlexRussia has joined #ruby
mercwithamouth has joined #ruby
yeticry has joined #ruby
dan__ has joined #ruby
jhass|off is now known as jhass
Zamerick has joined #ruby
jottr has joined #ruby
dan__ has left #ruby [#ruby]
jamto11 has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
cnj has quit [Remote host closed the connection]
Notte has joined #ruby
cnj has joined #ruby
Hanmac has joined #ruby
lw has quit [Quit: s]
jamto11 has quit [Ping timeout: 240 seconds]
Hanmac1 has quit [Ping timeout: 272 seconds]
mradmacher has quit [Ping timeout: 245 seconds]
brianherman has joined #ruby
yubrew has joined #ruby
hpoydar has joined #ruby
fgo has quit [Ping timeout: 244 seconds]
benzrf|offline is now known as benzrf
obs has joined #ruby
xcv has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
hpoydar has quit [Ping timeout: 240 seconds]
Takle has joined #ruby
kireevco has joined #ruby
fgo has joined #ruby
obs has quit [Remote host closed the connection]
kireevco has quit [Ping timeout: 240 seconds]
Takle has quit [Ping timeout: 264 seconds]
St_Marx has quit [Quit: Ex-Chat]
razrunelord has joined #ruby
yfeldblum has joined #ruby
ponga has quit []
jottr has joined #ruby
lewix has joined #ruby
MZAWeb has joined #ruby
razrunelord has quit [Ping timeout: 272 seconds]
futuredale has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
Notte has quit [Remote host closed the connection]
<benzrf> yo shevy
<shevy> hey bean
<shevy> grrrr
<benzrf> did u know ruby also has haskell's monadic buind operator
<shevy> hi benzrf
<benzrf> *bind
futuredale has joined #ruby
<shevy> my first genuine mis-tab completion
<shevy> what's the monadic bind operator do?
senayar has joined #ruby
jzigmund has joined #ruby
<benzrf> it binds mobits
<benzrf> proof ruby has it:
<benzrf> >> x = 3; func = 1; x >>= func
<eval-in> benzrf => 1 (https://eval.in/165540)
<benzrf> :3
sigurding has quit [Quit: sigurding]
Hanmac1 has joined #ruby
<centrx> Isn't that just the right shift operator
saarinen has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
<benzrf> centrx: in lesser languages it is
senayar has quit [Ping timeout: 240 seconds]
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 "&amp" in to mulitple strings (Foo & bar becomes foo,&,bar) or even è. Any idea how to prevent this? <node>Foo &amp bar</node> 's string should be "Foo & bar" not "Foo","&","bar".
shvelo has quit [Ping timeout: 244 seconds]
<jhass> the correct escape would be &amp;
<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, &amp;
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
<shevy> let's call it
<shevy> dleiy
<shevy> class Dleiy
<eam> (echo foo; echo bar) | ruby -ne'puts "line: #{$_}"'
<shevy> what's $_
<shevy> can we use it
<shevy> {|x| puts x }
xcv has quit [Ping timeout: 264 seconds]
<shevy> { puts $_ }
<eam> it's the same thing it is in perl, it's the default iterator variable
<shevy> damn
<eam> except ruby doesn't set it for blocks
<eam> it's only set in -n
datafirm____ has quit [Quit: Computer has gone to sleep.]
arrubin has quit [Quit: Textual IRC Client: www.textualapp.com]
casheew_ has joined #ruby
<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
dapz has joined #ruby
<benzrf> >> [1..100].map(&:hash).index -2854098361048895837
<eval-in> benzrf => nil (https://eval.in/165622)
<benzrf> >> [1..100].map(&:hash).index(-2854098361048895837)
<eval-in> benzrf => nil (https://eval.in/165623)
<Wolland> :)
<benzrf> Wolland: liar
dc_ has quit [Remote host closed the connection]
<benzrf> >> [1..100000].map(&:hash).index(-2854098361048895837)
<eval-in> benzrf => nil (https://eval.in/165624)
<jhass> benzrf: splat
kireevco has quit [Quit: Leaving.]
<Wolland> >> 36.hash
<eval-in> Wolland => 188552166 (https://eval.in/165625)
toastynerd has quit [Ping timeout: 264 seconds]
<benzrf> jhass: ?
<Wolland> hwat :)
<jhass> >> [1..10]
<benzrf> >> 36.hash
<eval-in> jhass => [1..10] (https://eval.in/165626)
<eval-in> benzrf => -789990637 (https://eval.in/165627)
<stian> yup no help in #php
<stian> ahah
<Wolland> hehe
<benzrf> jhass: oh wow
havenwood has joined #ruby
<benzrf> haskell syntax
<stian> bastards
pontiki has joined #ruby
<benzrf> >> (1..1000000.map(&:hash).index(-2854098361048895837)
<eval-in> benzrf => /tmp/execpad-e85dff50e270/source-e85dff50e270:3: syntax error, unexpected keyword_rescue, expecting ')' ... (https://eval.in/165628)
<benzrf> >> (1..100000).map(&:hash).index(-2854098361048895837)
<eval-in> benzrf => nil (https://eval.in/165629)
Hanmac has joined #ruby
<Wolland> that's nice benzrf :)
<benzrf> Wolland: so youre nil?
<jhass> and so we learn that Rubys #hash isn't stable across processes
freerobby has quit [Quit: Leaving.]
<Wolland> :(
xcv has quit []
kireevco has joined #ruby
rkazak has joined #ruby
Hanmac1 has quit [Ping timeout: 245 seconds]
kireevco has quit [Max SendQ exceeded]
lolmaus has quit [Ping timeout: 255 seconds]
<Wolland> 2.1.2 hash value is different I guess
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
<jhass> >> 1.hash
<eval-in> jhass => 1037518673 (https://eval.in/165630)
<jhass> >> 1.hash
<eval-in> jhass => 286178709 (https://eval.in/165631)
<Wolland> good thing you put range to 100000 ... wtf :)
kireevco has joined #ruby
<jhass> >> RUBY_VERSION
<eval-in> jhass => "2.1.0" (https://eval.in/165632)
<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?
mercwithamouth has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
<rkazak> second is probably more what you want.
lolmaus has joined #ruby
havenwood has joined #ruby
Photism has quit [Quit: Leaving]
simoz1111114 has quit [Ping timeout: 240 seconds]
Azure has quit [Ping timeout: 240 seconds]
Azure has joined #ruby
fgo has joined #ruby
linojon has quit [Quit: linojon]
lethjakman has quit [Ping timeout: 264 seconds]
aspires has joined #ruby
yfeldblum has joined #ruby
mikesplain has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
mikesplain has joined #ruby
fgo has quit [Ping timeout: 244 seconds]
havenwood has quit [Ping timeout: 264 seconds]
brianherman has quit [Read error: Connection reset by peer]
kotk has joined #ruby
kilk_ has quit [Ping timeout: 244 seconds]
kotk_ has quit [Ping timeout: 255 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
gattuso has quit [Ping timeout: 260 seconds]
chrishough has quit [Quit: chrishough]
phinfonet has quit []
chrishough has joined #ruby
GriffinHeart has joined #ruby
Hobogrammer has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
GriffinHeart has quit [Ping timeout: 244 seconds]
gattuso has joined #ruby
timonv has quit [Remote host closed the connection]
ghr has joined #ruby
lethjakman has joined #ruby
rebelshrug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
palantir has joined #ruby
<stian> hahah
lolmaus has joined #ruby
stytown has quit [Quit: stytown]
kilk_ has joined #ruby
ghr has quit [Ping timeout: 255 seconds]
stytown has joined #ruby
jamto11 has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
setra has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
fgo has joined #ruby
rdavila has quit [Quit: rdavila]
mechanicles has quit [Remote host closed the connection]
quitobro has joined #ruby
yubrew has joined #ruby
djbkd has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
fgo has quit [Ping timeout: 244 seconds]
lethjakman has quit [Ping timeout: 272 seconds]
gruz0[russia] has joined #ruby
havenwood has joined #ruby
gattuso has quit [Ping timeout: 260 seconds]
gattuso has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
anarang has joined #ruby
quitobro has quit []
quitobro has joined #ruby
kireevco has quit [Read error: Connection reset by peer]
boris has quit [Ping timeout: 240 seconds]
kireevco has joined #ruby
kireevco has left #ruby [#ruby]
mikesplain has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rgrinberg has joined #ruby
saarinen has quit [Quit: saarinen]
NukePuppy has joined #ruby
datafirm____ has quit [Quit: Computer has gone to sleep.]
LexicalScope has joined #ruby
bmurt has quit []
havenwood has quit [Remote host closed the connection]
datafirm____ has joined #ruby
bmurt has joined #ruby
moted has quit [Quit: moted]
<shevy> eam, are you still using perl btw?
thesheff17 has quit [Remote host closed the connection]
<benzrf> ew perl
thesheff17 has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> benzrf don't say ew
<shevy> perl6 will be awesome
Geo has joined #ruby
NukePuppy has quit [Ping timeout: 240 seconds]
<rkazak> perl6 was but now move swift(ly) along…
quitobro has quit [Remote host closed the connection]
tus is now known as tus_test
tus_test is now known as tus
chrishough has quit [Quit: chrishough]
kenneth has joined #ruby
mradmacher has joined #ruby
<stian> do you guys recommend one being decent at ruby before getting into rails?
kireevco has joined #ruby
<shevy> stian depends
<shevy> if you know too much ruby you might find rails too boring
<shevy> if you want to go into ruby only because of rails, then you should start with rails directly
<stian> I definitely don't know enough ruby :)
<shevy> yeah but you don't know enough about rails either
<stian> oh, well I don't have a specific reason to get into rails
<shevy> for me it's like that
<shevy> I know a bit about ruby
<stian> nor do I have a good reason to get into ruby either tbh :P
<shevy> but I can't will myself to want to learn the whole rails ecosystem
<stian> I just want to know a language and build upon that so I can eventually create stuff
<shevy> aha ok, that was different for me
<shevy> I needed a language better than php
<stian> yeah, I have no motivation etc
<stian> nor any specific needs
JBreit has left #ruby ["Leaving"]
<shevy> hehehe
<shevy> well then start with ruby
cashnguns has joined #ruby
<stian> yup, I have :)
Shidash has quit [Ping timeout: 240 seconds]
<shevy> stian did you work through this here already? https://pine.fm/LearnToProgram/?Chapter=01
<shevy> if so then it is time to quiz your knowledge
<stian> currently I'm reading Well Grounded Rubyist
<stian> chapter one is pretty easy
<stian> but yeah, I just need to stick with the book I guess
<shevy> aha no idea, I don't know it
<shevy> but when you finished the pine.fm book let me know so I can quiz you :P
<shevy> Question #1: How do you obtain user input in ruby?
<stian> gets
<stian> I have a hard time remembering the names of what things are called though
<stian> such as methods and the differences between all of the different names
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
quitobro has joined #ruby
quitobro has quit [Read error: Connection reset by peer]
<stian> I guess I just have to be patient :P
quitobro has joined #ruby
<jameyd> eh, does FactoryGirl not support the building of objects that use #initualize...?
<jameyd> initialize
benzrf is now known as benzrf|offline
quitobro has quit [Remote host closed the connection]
<stian> time to get some sleep I think, been a long day/
<DanielI> I should too.
<DanielI> Stian.. Norwegian name?
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lw has quit [Quit: s]
Geo has quit [Ping timeout: 240 seconds]
cocotton has joined #ruby
nescio has quit []
cocotton has quit [Client Quit]
<stian> DanielI: yes :)
<DanielI> Hyggelig. xD
<DanielI> Anyway, what's up?
<stian> nothing much really, about to try to find something to watch then get some sleep
<stian> want to get up at a reasonable hour tomorrow to hopefully try to fix the caller id script I have been hacking away at (in PHP...)
<stian> then move on to more ruby :)
<shevy> stian well, what helps is if you scan through the main docu
<shevy> so you know what is in class String, class Object, module Kernel, class Array, class Hash
<shevy> these 5 are the most important and you will re-use them often
<stian> I do, but I mix the terminology at lot
<stian> :P
<shevy> repetition helps
<shevy> let me quiz you again
<stian> sure
<shevy> of those 5 names mentioned, which ones do respond to the .size method call?
<stian> array and hash, probably
<stian> string too
<shevy> yeah
<stian> I'm guessing
<shevy> then you did guess correctly
<shevy> so you get full points
<stian> sweet
<jhass> shevy: what about Enumerable ?
<shevy> stian ok, jhass will give you a question about Enumerable now
<stian> I don't even know what an enumerable is
<jhass> Array and Hash both are
<jhass> but you can make your own, it's a module
fgo has joined #ruby
<shevy> ok good, jhass quizzed you now ... I think. Let's turn to the next question
<shevy> stian you mentioned gets before
<stian> yes
<shevy> stian where might we find gets?
<shevy> hint: we mentioned it already
<stian> hmm
aspires has quit []
<DanielI> well crap
<DanielI> I lurked, helped a friend with some Python stuff
<shevy> shsHSHs szzshshs?
<stian> I dunno man
<stian> kernel?
<shevy> stian yeah module Kernel
<shevy> if you open Irb
<stian> i.e a part of the core modules then?
<shevy> yeah
<stian> alright
<shevy> stian have a look at this too http://rubylearning.com/images/rubyclass.jpg
<shevy> it helps to visualize the main object hierarchy
<jhass> >> Object.ancestors
<eval-in> jhass => [Object, Kernel, BasicObject] (https://eval.in/165662)
<shevy> BasicObject -> Object
<stian> ruby-doc is /amazing/ btw
<stian> ah look at that, neat!
<shevy> from Object it will cascade downwards
<stian> thanks shevy
<shevy> user defined subclasses
<shevy> or class Array...
<shevy> >> Array.ancestors
<eval-in> shevy => [Array, Enumerable, Object, Kernel, BasicObject] (https://eval.in/165663)
<shevy> there, you see that Enumerable is added
timonv has joined #ruby
<stian> essentially I have a hard time knowing when I should create a class or a function ? method? eh.. etc
<jhass> yeah no functions in ruby, only methods
fgo has quit [Ping timeout: 240 seconds]
<stian> but wouldn't for example: def hello() be a function?
<stian> or at least in python / other languages?
<shevy> stian well, you want to use a class if you wish to namespace things, and re-use them
<jhass> no, the toplevel is an object in ruby
<jhass> >> self
<eval-in> jhass => main (https://eval.in/165664)
<jhass> >> self.class
<eval-in> jhass => Object (https://eval.in/165665)
<stian> right
johnmolina has joined #ruby
<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> [a1, a2, a3].zip([b1, b2, b3]) #=> [[a1, b1], [a2, b2], [a3, b3]]
<xybre> >> defined? Pry
<eval-in> xybre => nil (https://eval.in/165666)
<gzl> jhass: oh, that's interesting.
<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]
yfeldblu_ has quit [Ping timeout: 244 seconds]
benlieb has joined #ruby
Zebroid has joined #ruby
skinny_much has quit [Quit: ZNC - http://znc.sourceforge.net]
Zebroid has quit [Read error: No route to host]
Zebroid has joined #ruby
ferr has joined #ruby
LexicalScope has joined #ruby
<ferr> What is the difference between require and include?
<jhass> they do completely different things
St_Marx has quit [Ping timeout: 264 seconds]
spastorino has quit [Quit: Connection closed for inactivity]
<toretore> question resolved. next.
<benlieb> toretore: lol
<ferr> lol
<jhass> seriously, I don't know how to compare them
<ferr> kthx for answer
<toretore> require loads a file, include includes a module
<toretore> they are completely different things
<ferr> An by loading a file it does not include any modules?
<jhass> only if that file has includes
<jhass> or extends
<jhass> or prepends
<toretore> loading a file loads the code in the file
<toretore> nothing more, nothing less
dangerousdave has joined #ruby
<benlieb> but it can make a module available to be included
<toretore> ferr: if you have to ask, you do not want to use include yet
<benlieb> This seems refactorable, but I'm not sure how. Anyone want to take a stab: https://gist.github.com/pixelterra/b18cebd8c0f7a0edb57e
<benlieb> it's rails, but rails channel is quite
<benlieb> quiet
duncannz has quit [Ping timeout: 240 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ferr> Ok
dc_ has joined #ruby
<jhass> benlieb: for starters you could extract - @d.instructors.in_groups(2) to - @d.instructors.in_groups(2).first(2).each do |instructors| %td
dangerou_ has quit [Ping timeout: 264 seconds]
<jhass> benlieb: then make sure to give x a proper name
arrubin has joined #ruby
<kilk_> i get some small trouble
<kilk_> a.each.with_index{|x,ind| break if x != b[ind]; p x;}
Zebroid has quit [Remote host closed the connection]
chipotle has quit [Quit: cya]
<kilk_> work good, but how can return array
ferr has quit [Quit: Konversation terminated!]
<jhass> kilk_: isn't that basically gzl's question from earlier?
<shevy> kilk_ did you try to use .map yet
<kilk_> i want puts result as " puts a.each.with_index{|x,ind| break if x != b[ind]}"
<kilk_> jhass, yes
johnmolina has quit [Remote host closed the connection]
<jhass> so what's wrong with a.zip(b).take_while {|a, b| a == b}.map(&:first) ?
johnmolina has joined #ruby
<kilk_> too long)
<jhass> ?!
<jhass> how's that long
<jhass> >> "a.zip(b).take_while {|a, b| a == b}.map(&:first)".size
<eval-in> jhass => 48 (https://eval.in/165675)
fgo has joined #ruby
<kilk_> first u zip 2 arrays, then compare
<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
<shevy> two players, both have one stack of cards
<shevy> now the dealer mixes these cards together
<shevy> and he will get:
<shevy> >> [1,3,5].zip([2,4,6])
<eval-in> shevy => [[1, 2], [3, 4], [5, 6]] (https://eval.in/165689)
<shevy> tada!
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
<kilk_> u a very smart
yubrew has joined #ruby
setra has quit [Ping timeout: 272 seconds]
<ulluh> Hi guys. I keep finding myself using this pattern for classes
<ulluh> Is this a bad thing?
<toretore> dicker: command not found
cobakobodob has joined #ruby
<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]
toastynerd has joined #ruby
kilk_ has quit [Ping timeout: 272 seconds]
senera has quit [Ping timeout: 244 seconds]
nerocrux has joined #ruby
codabrink has quit [Ping timeout: 240 seconds]