apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
kaspergrubbe has joined #ruby
apeiros has quit [Remote host closed the connection]
sparq_ has quit [Remote host closed the connection]
antix_ has quit [Ping timeout: 264 seconds]
tkuchiki has joined #ruby
apeiros has joined #ruby
<ace_striker_> morning
apeiros has quit [Read error: Operation timed out]
antix_ has joined #ruby
notjohn has joined #ruby
iliketurtles has joined #ruby
ssvo has quit [Ping timeout: 245 seconds]
Guest94584 is now known as ned
<ace_striker_> what might be the problem..https://gist.github.com/igauravsehrawat/6834833
i_s has joined #ruby
zarubin has quit [Ping timeout: 245 seconds]
freerobby has quit [Quit: Leaving.]
notjohn has quit [Ping timeout: 240 seconds]
fgo has quit [Remote host closed the connection]
T_T has quit [Remote host closed the connection]
antix_ has quit [Ping timeout: 245 seconds]
kaspergrubbe has quit [Ping timeout: 245 seconds]
SkuliOskarsson has joined #ruby
kilophoton has quit [Ping timeout: 260 seconds]
antix has joined #ruby
i_s has quit [Ping timeout: 252 seconds]
antix is now known as Guest20928
funburn has joined #ruby
SeySayux has quit [Ping timeout: 240 seconds]
echevemaster has joined #ruby
echevemaster has joined #ruby
echevemaster has quit [Changing host]
brennanMKE has quit [Remote host closed the connection]
brennanMKE has joined #ruby
Popple has quit [Quit: Computer has gone to sleep.]
kilophoton has joined #ruby
starfox21 has quit [Quit: starfox21]
SeySayux has joined #ruby
tylersmi_ has quit [Remote host closed the connection]
Guest20928 has quit [Ping timeout: 246 seconds]
tylersmith has joined #ruby
antix_ has joined #ruby
ehc has quit [Quit: ehc]
ehaliewicz has quit [Remote host closed the connection]
ehaliewicz has joined #ruby
simplyaubs has quit [Quit: simplyaubs]
duggiefresh has joined #ruby
kdaigle has quit [Ping timeout: 245 seconds]
reset has quit [Quit: Leaving...]
simplyaubs has joined #ruby
kdaigle has joined #ruby
<ace_striker_> got it..do chown on directory
luckyruby has joined #ruby
tylersmith has quit [Ping timeout: 264 seconds]
drumsrgr8forn8 has joined #ruby
ehaliewicz has quit [Remote host closed the connection]
jarm has joined #ruby
ehaliewicz has joined #ruby
antix_ has quit [Ping timeout: 264 seconds]
Mars` has quit [Ping timeout: 245 seconds]
T_T has joined #ruby
antix_ has joined #ruby
Popple has joined #ruby
Popple has quit [Client Quit]
brennanMKE has quit [Remote host closed the connection]
JMcAfreak has quit [Quit: Dang it, Moon Moon!]
intuxicated has quit [Ping timeout: 264 seconds]
intuxicated has joined #ruby
bsaboia_ has quit [Ping timeout: 264 seconds]
tvw has quit []
antix_ has quit [Ping timeout: 240 seconds]
cj3kim has quit [Remote host closed the connection]
stuartrexking has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
antix_ has joined #ruby
sepp2k1 has quit [Ping timeout: 260 seconds]
SkuliOskarsson has quit [Quit: SkuliOskarsson]
kdaigle has quit [Ping timeout: 264 seconds]
mneorr has joined #ruby
volty_ has quit [Quit: Konversation terminated!]
kofno has quit [Ping timeout: 240 seconds]
<ace_striker_> don't anyone thinks :: variable declaration part should be N+1 instead of N+2 http://s15.postimg.org/hxg58fpmj/doubt.png
blackmesa has quit [Ping timeout: 240 seconds]
starfox21 has joined #ruby
Davey has joined #ruby
antix_ has quit [Ping timeout: 252 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
lyanchih has joined #ruby
antix_ has joined #ruby
antix_ has quit [Changing host]
antix_ has joined #ruby
pen has joined #ruby
richardr has joined #ruby
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
<richardr> If I have a class that has global variables defined, and pass it as an object to another class, e.g. Task.new(self), within class how do I access the global vars within the argument passed through?
<richardr> i.e. config
DonRichie has quit [Ping timeout: 264 seconds]
fgo has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
DonRichie has joined #ruby
kvirani has joined #ruby
starfox21 has quit [Quit: starfox21]
iliketurtles has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
mneorr_ has joined #ruby
Aryasam has joined #ruby
Mars` has joined #ruby
kdaigle has joined #ruby
danman has joined #ruby
danman has quit [Client Quit]
antix_ has quit [Ping timeout: 264 seconds]
v1n has quit [Ping timeout: 256 seconds]
antix_ has joined #ruby
antix_ has quit [Changing host]
antix_ has joined #ruby
zz_karupanerura is now known as karupa64
karupa64 is now known as karupanerura
simplyaubs has quit [Quit: simplyaubs]
rager is now known as Trufax
mneorr has joined #ruby
mneorr_ has quit [Ping timeout: 252 seconds]
fgo has quit [Ping timeout: 256 seconds]
antix_ has quit [Ping timeout: 240 seconds]
kofno has joined #ruby
verto has quit [Ping timeout: 246 seconds]
antix_ has joined #ruby
antix_ has quit [Changing host]
antix_ has joined #ruby
pikapp has quit [Quit: leaving]
Guest4307 has quit [Ping timeout: 260 seconds]
Xeago has joined #ruby
cooldman224 has joined #ruby
siezer has quit [Ping timeout: 252 seconds]
simplyaubs has joined #ruby
nari has quit [Ping timeout: 264 seconds]
Nogbit has quit [Ping timeout: 260 seconds]
elplatt has quit [Quit: elplatt]
stuartrexking has quit [Quit: Leaving...]
hogeo has joined #ruby
Xeago has quit [Ping timeout: 245 seconds]
brennanMKE has joined #ruby
Aryasam_ has joined #ruby
antix_ has quit [Ping timeout: 264 seconds]
emergion has joined #ruby
Aryasam has quit [Read error: Connection reset by peer]
postmodern has joined #ruby
antix_ has joined #ruby
antix_ has quit [Changing host]
antix_ has joined #ruby
pen has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 264 seconds]
mneorr has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
ace_striker_ has quit [Ping timeout: 250 seconds]
schaerli has joined #ruby
adeponte has quit [Remote host closed the connection]
Aryasam_ has quit [Ping timeout: 245 seconds]
lewtds has joined #ruby
lewtds has left #ruby [#ruby]
emergion has quit [Quit: Computer has gone to sleep.]
adeponte has joined #ruby
pen has joined #ruby
Aryasam has joined #ruby
antix_ has quit [Ping timeout: 245 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
lukec has quit [Quit: lukec]
antix_ has joined #ruby
Aryasam has quit [Read error: Connection reset by peer]
Aryasam has joined #ruby
brennanMKE has quit [Ping timeout: 252 seconds]
Voodoofish430 has quit [Quit: Leaving.]
schaerli has quit [Ping timeout: 240 seconds]
coderhs has quit [Ping timeout: 246 seconds]
Aryasam has quit [Read error: Connection reset by peer]
Aryasam_ has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
adeponte has quit [Ping timeout: 260 seconds]
kreeves has quit [Ping timeout: 256 seconds]
siezer has joined #ruby
Aryasam has joined #ruby
ColKurtz has quit [Quit: Textual IRC Client: www.textualapp.com]
Mars` has quit [Remote host closed the connection]
Mars` has joined #ruby
devoldmx has joined #ruby
Aryasam_ has quit [Read error: Connection reset by peer]
mmitchell has quit [Remote host closed the connection]
antix_ has quit [Ping timeout: 245 seconds]
antix_ has joined #ruby
antix_ has joined #ruby
antix_ has quit [Changing host]
Beoran_ has quit [Read error: Connection reset by peer]
Beoran_ has joined #ruby
Nogbit has joined #ruby
jarm has quit [Ping timeout: 240 seconds]
Mars` has quit [Ping timeout: 256 seconds]
bsaboia_ has joined #ruby
robbyoconnor has joined #ruby
emergion has joined #ruby
antix_ has quit [Ping timeout: 240 seconds]
ravster has quit [Quit: Leaving.]
SkuliOskarsson has joined #ruby
Aryasam has quit [Ping timeout: 245 seconds]
antix has joined #ruby
antix is now known as Guest86101
Aryasam has joined #ruby
i_s has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
drumsrgr8forn8 has quit [Ping timeout: 240 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
reset has joined #ruby
Guest86101 has quit [Ping timeout: 240 seconds]
soheil has quit [Remote host closed the connection]
nari has joined #ruby
Aryasam has quit [Ping timeout: 256 seconds]
xkickflip has joined #ruby
antix_ has joined #ruby
Aryasam has joined #ruby
nisstyre has quit [Quit: Leaving]
soheil has joined #ruby
soheil has quit [Remote host closed the connection]
soheil_ has joined #ruby
dustyfields has joined #ruby
VictorSK has joined #ruby
VictorSK_ has joined #ruby
petey has joined #ruby
VictorSK has quit [Client Quit]
antix_ has quit [Ping timeout: 252 seconds]
louism2wash has joined #ruby
soheil_ has quit [Remote host closed the connection]
amacgregor_ has joined #ruby
soheil has joined #ruby
emergion has joined #ruby
antix_ has joined #ruby
zz_tsykoduk is now known as tsykoduk
VictorSK_ has quit [Remote host closed the connection]
amacgregor has quit [Ping timeout: 245 seconds]
Hanmac1 has joined #ruby
hogeo has quit [Quit: Leaving...]
amacgregor_ has quit [Ping timeout: 246 seconds]
soheil has quit [Ping timeout: 264 seconds]
Hanmac has quit [Ping timeout: 264 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
antix_ has quit [Ping timeout: 240 seconds]
threesome has quit [Read error: Operation timed out]
dustyfields has quit [Ping timeout: 256 seconds]
gnnr has quit [Read error: Operation timed out]
antix_ has joined #ruby
funburn has quit [Quit: funburn]
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
robbyoconnor has quit [Ping timeout: 245 seconds]
tsykoduk is now known as zz_tsykoduk
elplatt has joined #ruby
antix_ has quit [Ping timeout: 245 seconds]
nari has quit [Ping timeout: 245 seconds]
senayar has quit [Ping timeout: 264 seconds]
DanKnox is now known as DanKnox_away
antix_ has joined #ruby
funburn has joined #ruby
fgo has joined #ruby
adeponte has joined #ruby
simplyaubs has quit [Quit: simplyaubs]
xk_id has quit [Quit:
duggiefresh has quit [Remote host closed the connection]
duggiefresh has joined #ruby
mansi has joined #ruby
Aryasam has quit [Read error: Connection reset by peer]
Aryasam has joined #ruby
LiquidInsect has quit [Ping timeout: 256 seconds]
jefflyne1 has joined #ruby
luckyruby has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 264 seconds]
mcm30114 has joined #ruby
luckyruby has joined #ruby
antix_ has quit [Ping timeout: 256 seconds]
duggiefresh has quit [Ping timeout: 240 seconds]
antix_ has joined #ruby
user98345 has joined #ruby
Xeago has joined #ruby
i_s has quit [Remote host closed the connection]
user98345 has left #ruby ["Leaving"]
Xeago has quit [Read error: Operation timed out]
duggiefresh has joined #ruby
heidi has quit [Quit: Leaving.]
antix_ has quit [Ping timeout: 252 seconds]
Mars` has joined #ruby
duggiefresh has quit [Remote host closed the connection]
Aryasam has quit [Ping timeout: 245 seconds]
antix_ has joined #ruby
zeade has joined #ruby
kmurph has joined #ruby
bklane has joined #ruby
randomnick_ has quit [Quit: Leaving]
angelxmoreno has joined #ruby
elplatt has quit [Quit: elplatt]
nari has joined #ruby
Aryasam has joined #ruby
pwh has joined #ruby
mcm30114 has left #ruby [#ruby]
LiquidInsect has joined #ruby
lukec has joined #ruby
zeade has quit [Client Quit]
kilophoton has quit [Ping timeout: 264 seconds]
Zekka has joined #ruby
antix_ has quit [Ping timeout: 264 seconds]
kdaigle has quit [Read error: Connection reset by peer]
kevinykchan has joined #ruby
antix_ has joined #ruby
antix_ has quit [Changing host]
antix_ has joined #ruby
valesk has quit [Remote host closed the connection]
apeiros has joined #ruby
skoovdebo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elplatt has joined #ruby
antix_ has quit [Ping timeout: 240 seconds]
danshultz has joined #ruby
LiquidIn1ect has joined #ruby
brennanMKE has joined #ruby
Aryasam has quit [Ping timeout: 245 seconds]
veinofstars has joined #ruby
antix_ has joined #ruby
antix_ has joined #ruby
antix_ has quit [Changing host]
cfi30 has joined #ruby
LiquidInsect has quit [Ping timeout: 264 seconds]
Aryasam has joined #ruby
elplatt has quit [Quit: elplatt]
mrsolo has joined #ruby
Aryasam has quit [Read error: Connection reset by peer]
pwh has quit []
antix_ has quit [Ping timeout: 253 seconds]
antix has joined #ruby
elplatt has joined #ruby
antix is now known as Guest16316
<Zekka> Design problem here, anybody care to look it over? https://gist.github.com/Zekka/4498c96f7aeebc6e7a92
kilophoton has joined #ruby
Aryasam has joined #ruby
Aryasam has quit [Read error: Connection reset by peer]
xcv_ has quit [Remote host closed the connection]
Aryasam has joined #ruby
xcv has joined #ruby
funburn has quit [Quit: funburn]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
<Zekka> Let me know if you need further clarification of my problem, although I think the gist I posted (not just code: also a description of the problem) was pretty comprehensive
jhn has joined #ruby
radic has quit [Disconnected by services]
radic_ has joined #ruby
Guest16316 has quit [Ping timeout: 240 seconds]
Inside has quit [Ping timeout: 240 seconds]
araujo has quit [Quit: Leaving]
<veinofstars> Zekka: having a look..
xcv has quit [Ping timeout: 245 seconds]
kevinykchan has quit [Quit: Computer has gone to sleep.]
Aryasam has quit [Ping timeout: 260 seconds]
antix_ has joined #ruby
simplyaubs has joined #ruby
<veinofstars> Zekka: one idea…define your ProblemPartNs as modules, and include them as needed in Problem
<apeiros> Zekka: it's a bit too abstract for me. but one thing I wondered is how you think in problem parts, as opposed to "a problem", and "solution parts". but maybe that's just naming and not much related to your approach.
headius has joined #ruby
<Zekka> apeiros - They're closer to solution parts: each solves a small part of the problem
<Zekka> the problem parts manipulate a specific kind of data that occurs in the problem, and define some operations on it.
<apeiros> Zekka: I think in "a problem" + "solvers", I'd have the config be part of the problem object
<Zekka> veinofstars - That sounds reasonable, but I think I actually need the object-style semantics
Inside has joined #ruby
<veinofstars> why do you think that?
<veinofstars> you should still be able to access assumed instance variables in the modules
fixl has quit [Remote host closed the connection]
<Zekka> The problem parts aren't just instantiated one and then used: each stores some data related to the problem and there can be multiple of each
<sweeper> Zekka: the only good way to share state is by passing messages :3
<apeiros> you can use extend to have the modules only on single problem instances
<Zekka> sweeper - I'm afraid that I'm about to learn that lesson, yes.
antix_ has quit [Ping timeout: 240 seconds]
<Zekka> apeiros - I'm not quite sure I follow. If some details are a little unclear, I can write up another example
tjbiddle has quit [Quit: tjbiddle]
Targen has quit [Read error: Operation timed out]
<Zekka> (My code is pretty long and not all of it is in one file, so I figure examples might be more useful)
<apeiros> Zekka: that was related to veinofstars' suggestion
antix_ has joined #ruby
<apeiros> in ruby, you can do: a = Foo.new; b = Foo.new; a.extend SomeModule; a.method_of_some_module # b does not have method_of_some_module, only a
<Zekka> That actually looks pretty close to what I'd like.
emergion has quit [Quit: Computer has gone to sleep.]
<Zekka> Thanks: I'm still not all that comfortable with Ruby's mixin model and I appreciate the guidance.
schaerli has joined #ruby
<veinofstars> take a chance, try it out :)
<Zekka> I'd still have to use explicit message-passing rather than scope manipulation, but Sweeper's probably right that it's safer
aspires has quit [Quit: aspires]
<apeiros> schaerli: up early?
<apeiros> or home late? :D
digital-ghost has quit [Remote host closed the connection]
agjacome has quit [Quit: leaving]
AlSquire has quit [Quit: This computer has gone to sleep]
raphaelivan has joined #ruby
ewnd9 has joined #ruby
antix_ has quit [Ping timeout: 240 seconds]
SkuliOskarsson has quit [Quit: SkuliOskarsson]
schaerli has quit [Ping timeout: 245 seconds]
<Zekka> Revised design in progress: the Problem object will tell every ProblemPart (or SolutionPart, I suppose) to extend it, and it will keep track of the shared state
antix_ has joined #ruby
Mars` has quit [Remote host closed the connection]
Mars` has joined #ruby
richardr has quit [Remote host closed the connection]
soheil has joined #ruby
endash has joined #ruby
reset has quit [Ping timeout: 240 seconds]
Mars` has quit [Ping timeout: 264 seconds]
antix_ has quit [Ping timeout: 245 seconds]
kmurph has quit [Quit: kmurph]
DaZ has joined #ruby
pairup has joined #ruby
antix_ has joined #ruby
antix_ has quit [Changing host]
antix_ has joined #ruby
petey has quit [Remote host closed the connection]
nfk has quit [Quit: yawn]
petey has joined #ruby
cfi30_ has joined #ruby
soheil has quit [Ping timeout: 252 seconds]
narcan has joined #ruby
cfi30 has quit [Ping timeout: 264 seconds]
petey has quit [Ping timeout: 245 seconds]
senayar has joined #ruby
antix_ has quit [Ping timeout: 256 seconds]
antix_ has joined #ruby
Xeago has joined #ruby
dustyfields has joined #ruby
dbjeepn has joined #ruby
aryaching has joined #ruby
krz has joined #ruby
krz has joined #ruby
krz has quit [Changing host]
i_s has joined #ruby
senayar has quit [Ping timeout: 252 seconds]
jefflyne1 has quit [Ping timeout: 252 seconds]
pairup has quit [Quit: See ya later.]
antix_ has quit [Ping timeout: 245 seconds]
Bosox20051 has joined #ruby
Xeago has quit [Ping timeout: 246 seconds]
antix_ has joined #ruby
dbjeepn has quit [Client Quit]
headius has quit [Quit: headius]
freerobby has joined #ruby
aggregatebot has quit [Remote host closed the connection]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
bline79_ has joined #ruby
xkickflip has quit [Quit: h..hi]
karupanerura is now known as zz_karupanerura
deens has joined #ruby
narcan has joined #ruby
antix_ has quit [Ping timeout: 256 seconds]
antix_ has joined #ruby
kmurph has joined #ruby
elplatt has quit [Quit: elplatt]
luckyruby has quit [Remote host closed the connection]
Hobogrammer has joined #ruby
luckyruby has joined #ruby
elplatt has joined #ruby
coderhs has joined #ruby
Hobogrammer has quit [Read error: Connection reset by peer]
T_T has quit [Remote host closed the connection]
Hobogrammer has joined #ruby
blackratdog has joined #ruby
raphaelivan has quit [Quit: Leaving.]
mayorga has quit [Ping timeout: 256 seconds]
antix_ has quit [Ping timeout: 260 seconds]
jarm has joined #ruby
antix_ has joined #ruby
antix_ has quit [Changing host]
antix_ has joined #ruby
airtonix_ is now known as airtonix
zz_karupanerura is now known as karupa64
conner has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
antix_ has quit [Ping timeout: 264 seconds]
karupa64 is now known as zz_karupa64
antix_ has joined #ruby
krz has quit [Quit: krz]
Tearan has joined #ruby
riku- has quit [Ping timeout: 260 seconds]
sleepshuck has quit [Ping timeout: 246 seconds]
kmurph has quit [Quit: kmurph]
riku has joined #ruby
dustyfields has quit [Remote host closed the connection]
riku is now known as Guest95456
Inside has quit [Ping timeout: 260 seconds]
alvaro_o has quit [Quit: Ex-Chat]
antix_ has quit [Ping timeout: 256 seconds]
antix has joined #ruby
antix has joined #ruby
antix has quit [Changing host]
kdaigle has joined #ruby
antix is now known as Guest1150
kvirani has quit [Remote host closed the connection]
kvirani has joined #ruby
zz_tsykoduk is now known as tsykoduk
Deele has quit [Ping timeout: 260 seconds]
aspires has joined #ruby
michael_mbp is now known as zz_michael_mbp
drumsrgr8forn8 has joined #ruby
zz_michael_mbp is now known as michael_mbp
Guest1150 has quit [Ping timeout: 256 seconds]
kvirani has quit [Ping timeout: 248 seconds]
dhruvasagar has joined #ruby
antix_ has joined #ruby
antix_ has quit [Changing host]
antix_ has joined #ruby
danshultz has quit [Remote host closed the connection]
PragCypher has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
decoponio has joined #ruby
deens has quit [Quit: deens]
blackratdog has quit [Quit: This computer has gone to sleep]
antix_ has quit [Ping timeout: 264 seconds]
drumsrgr8forn8 has quit [Quit: Konversation terminated!]
drumsrgr8forn8_ has joined #ruby
antix_ has joined #ruby
antix_ has quit [Changing host]
antix_ has joined #ruby
kaspergrubbe has quit [Ping timeout: 245 seconds]
Matix has quit [Quit: Leaving]
zz_karupa64 is now known as karupa64
dbjeepn has joined #ruby
Tearan has quit [Quit: Sleepy Badger....]
antix_ has quit [Ping timeout: 246 seconds]
Mars` has joined #ruby
Cyrus has quit [Quit: Cyrus.close()]
antix_ has joined #ruby
Tearan has joined #ruby
drumsrgr8forn8_ has quit [Ping timeout: 240 seconds]
kdaigle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
headius has joined #ruby
apeiros has quit [Remote host closed the connection]
simplyaubs has quit [Quit: simplyaubs]
apeiros has joined #ruby
dbjeepn has quit [Quit: Leaving...]
<i8igmac> how would you display a directory list by new'st to oldest? Dir.glob("*")
<i8igmac> newest
<i8igmac> newist
<i8igmac> nooest
antix_ has quit [Ping timeout: 256 seconds]
<i8igmac> knew'st
<i8igmac> modification date
simplyaubs has joined #ruby
antix_ has joined #ruby
w3pm has quit [Ping timeout: 246 seconds]
Tearan has quit [Quit: Sleepy Badger....]
mrsolo has quit [Quit: This computer has gone to sleep]
Xeago has joined #ruby
twoism has joined #ruby
twoism has quit [Remote host closed the connection]
Akuma has joined #ruby
twoism has joined #ruby
dhruvasagar has quit [Ping timeout: 260 seconds]
antix_ has quit [Ping timeout: 245 seconds]
antix_ has joined #ruby
Xeago has quit [Ping timeout: 246 seconds]
dbjeepn has joined #ruby
antix_ has quit [Ping timeout: 245 seconds]
brennanMKE has quit [Remote host closed the connection]
antix_ has joined #ruby
robbyoconnor has joined #ruby
Guest66192 has joined #ruby
Tearan has joined #ruby
Kabaka has quit [Ping timeout: 240 seconds]
gwb3 has quit [Read error: Connection reset by peer]
elplatt has quit [Remote host closed the connection]
elplatt has joined #ruby
<bnagy> >> Dir["*"].sort_by {|fn| File.mtime fn}
<eval-in> bnagy => ["source-166c0d88726c", "input-166c0d88726c", "output-166c0d88726c"] (https://eval.in/52758)
virtualize has quit [Read error: Connection reset by peer]
gwb3 has joined #ruby
<bnagy> probably reversed or something
virtualize has joined #ruby
Tearan has quit [Client Quit]
antix_ has quit [Ping timeout: 252 seconds]
antix_ has joined #ruby
angelxmo_ has joined #ruby
angelxmoreno has quit [Read error: Connection reset by peer]
freerobby has quit [Quit: Leaving.]
heidi has joined #ruby
intuxicated has quit [Ping timeout: 241 seconds]
dbjeepn has quit [Quit: Leaving...]
heidi has quit [Client Quit]
dbjeepn has joined #ruby
antix_ has quit [Ping timeout: 245 seconds]
cooldman224 has quit [Remote host closed the connection]
antix_ has joined #ruby
twoism_ has joined #ruby
pwh has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
Bosox20051 has quit [Read error: Connection reset by peer]
twoism has quit [Ping timeout: 252 seconds]
ace_striker has joined #ruby
antix_ has quit [Ping timeout: 245 seconds]
kmurph has joined #ruby
antix has joined #ruby
i_s has quit [Remote host closed the connection]
elplatt has quit [Quit: elplatt]
antix is now known as Guest59711
kreeves has joined #ruby
Bosox20051 has joined #ruby
aspires has quit [Ping timeout: 256 seconds]
twoism_ has quit [Remote host closed the connection]
twoism has joined #ruby
dbjeepn has quit [Quit: Leaving...]
dkamioka has joined #ruby
dkamioka has quit [Read error: Connection reset by peer]
Guest59711 has quit [Ping timeout: 246 seconds]
dkamioka has joined #ruby
aspires has joined #ruby
antix_ has joined #ruby
kdaigle has joined #ruby
mrsolo has joined #ruby
twoism has quit [Ping timeout: 245 seconds]
ehc has joined #ruby
xkickflip has joined #ruby
angelxmoreno has joined #ruby
angelxmo_ has quit [Read error: Connection reset by peer]
tsykoduk is now known as zz_tsykoduk
kdaigle has quit [Client Quit]
antix_ has quit [Ping timeout: 252 seconds]
antix_ has joined #ruby
|jemc| has joined #ruby
bklane has quit [Remote host closed the connection]
kay has joined #ruby
kay is now known as Guest83275
antix_ has quit [Ping timeout: 245 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
Lewix has joined #ruby
antix_ has joined #ruby
<Lewix> Morrolan: thanks for your donations, It's much appreciated
<Lewix> ace_striker: email
ged has quit [Read error: Connection reset by peer]
end_guy has joined #ruby
<ace_striker> i have no clue ..what this cause the error :: issued sudo -u git -H bundle exec rake gitlab:setup RAILS_ENV=production got https://gist.github.com/igauravsehrawat/6836708
dallasm has quit [Read error: Connection reset by peer]
ged has joined #ruby
dallasm has joined #ruby
kmurph has quit [Quit: kmurph]
aspires has quit [Quit: aspires]
antix_ has quit [Ping timeout: 246 seconds]
antix_ has joined #ruby
bsaboia_ has quit [Remote host closed the connection]
pjackson_desktop has joined #ruby
kevinykchan has joined #ruby
faoiseamh has quit [Ping timeout: 248 seconds]
postmodern has quit [Quit: Leaving]
jiyinyiyong has joined #ruby
Akuma has quit [Ping timeout: 264 seconds]
aspires has joined #ruby
jefflyne1 has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
LLckfan has joined #ruby
<LLckfan> I have a Gateway laptop and when I opened the lid the power light was on but the laptop was asleep. When I pushed the power it started flashing with the lights for the light bulb and the battery but only when it was plugged in. Is this a sign I need a new tip end for my charger?
Vivekananda has quit [Ping timeout: 252 seconds]
Xeago has joined #ruby
antix_ has quit [Ping timeout: 264 seconds]
<onewheelskyward> I don't know but for sure you need to update your ruby version.
mercwithamouth has joined #ruby
Akuma has joined #ruby
antix_ has joined #ruby
<xybre> LLckfan: They still make Gateway laptops?
ehc has quit [Quit: ehc]
pwh has quit []
mansi has quit [Ping timeout: 264 seconds]
Banistergalaxy has quit [Ping timeout: 260 seconds]
Xeago has quit [Ping timeout: 246 seconds]
mansi has joined #ruby
Banistergalaxy has joined #ruby
antix_ has quit [Ping timeout: 260 seconds]
antix_ has joined #ruby
mrsolo has joined #ruby
mrsolo has quit [Remote host closed the connection]
Zerogrifter has quit [Ping timeout: 264 seconds]
osvico has joined #ruby
ehc has joined #ruby
zeropx has quit [Read error: Connection reset by peer]
AntelopeSalad has quit [Read error: Connection reset by peer]
zeropx has joined #ruby
AntelopeSalad has joined #ruby
Targen has joined #ruby
antix_ has quit [Ping timeout: 252 seconds]
antix_ has joined #ruby
SilverKey has quit [Quit: Zzzzzz.]
ace_striker has quit [Ping timeout: 250 seconds]
cfi30_ has quit [Quit: ;]
jarm has quit [Ping timeout: 252 seconds]
antix_ has quit [Ping timeout: 264 seconds]
antix_ has joined #ruby
antix_ has quit [Changing host]
antix_ has joined #ruby
iliketurtles has joined #ruby
iliketurtles has quit [Client Quit]
joshwines_ has quit [Remote host closed the connection]
joshwines has quit [Remote host closed the connection]
aspires has quit [Quit: aspires]
antix_ has quit [Ping timeout: 241 seconds]
mrsolo has joined #ruby
antix_ has joined #ruby
dhruvasagar has joined #ruby
antix_ has quit [Ping timeout: 240 seconds]
antix has joined #ruby
antix is now known as Guest85369
io_syl has quit []
ehc has quit [Quit: ehc]
LLckfan has quit []
pnbeast has quit [Quit: leaving]
lyanchih has quit [Quit: lyanchih]
aspires has joined #ruby
mansi has quit [Remote host closed the connection]
Guest85369 has quit [Ping timeout: 264 seconds]
mansi has joined #ruby
antix_ has joined #ruby
antix_ has joined #ruby
antix_ has quit [Changing host]
soulcake_ has quit [Read error: Connection reset by peer]
soulcake has joined #ruby
freerobby has joined #ruby
conner has quit [Ping timeout: 245 seconds]
angelxmoreno has quit [Remote host closed the connection]
aagdbl has joined #ruby
DonRichie has quit [Ping timeout: 252 seconds]
angelxmoreno has joined #ruby
angelxmoreno has quit [Read error: Connection reset by peer]
DonRichie has joined #ruby
mansi has quit [Ping timeout: 260 seconds]
dik_dak has joined #ruby
<n88> i'm issuing a request that returns a large xml response... what can i use to better display/visualize the structure of it ?
angelxmoreno has joined #ruby
antix_ has quit [Ping timeout: 245 seconds]
antix_ has joined #ruby
antix_ has joined #ruby
BizarreCake has joined #ruby
conner has joined #ruby
RORgasm_ has joined #ruby
RORgasm has quit [Read error: Connection reset by peer]
hakunin_ has joined #ruby
hakunin has quit [Read error: Connection reset by peer]
Barrin6 has joined #ruby
WillAmes has quit [Ping timeout: 248 seconds]
ChronocityLC has joined #ruby
antix_ has quit [Ping timeout: 245 seconds]
<onewheelskyward> nokogiri?
antix_ has joined #ruby
antix_ has quit [Changing host]
antix_ has joined #ruby
osvico has quit [Ping timeout: 252 seconds]
iliketurtles has joined #ruby
RangerMauve has joined #ruby
sergicles_ has joined #ruby
veinofstars has quit [Quit: veinofstars]
kilophoton has quit [Ping timeout: 260 seconds]
sergicles has quit [Ping timeout: 256 seconds]
angelxmoreno has quit [Read error: Connection reset by peer]
sergicles_ is now known as sergicles
angelxmoreno has joined #ruby
antix_ has quit [Ping timeout: 260 seconds]
postmodern has joined #ruby
antix_ has joined #ruby
dik_dak has quit [Quit: Leaving]
Xeago has joined #ruby
gja has joined #ruby
coderhs has quit [Ping timeout: 264 seconds]
sergicles_ has joined #ruby
noop has joined #ruby
simplyaubs has quit [Quit: simplyaubs]
sergicles has quit [Ping timeout: 264 seconds]
sergicles_ is now known as sergicles
Xeago has quit [Read error: Operation timed out]
jefflyne1 has quit [Ping timeout: 264 seconds]
antix_ has quit [Ping timeout: 246 seconds]
kmurph has joined #ruby
antix_ has joined #ruby
antix_ has quit [Changing host]
antix_ has joined #ruby
helloworld has quit [Ping timeout: 245 seconds]
lyanchih has joined #ruby
Tearan has joined #ruby
tomzx_mac has quit [Read error: Connection reset by peer]
tomzx_mac has joined #ruby
antix_ has quit [Ping timeout: 260 seconds]
antix_ has joined #ruby
aagdbl has quit [Quit: Leaving.]
tvw has joined #ruby
<weeb1e> xybre: I thought of another AS feature I use :P
RichardBaker has joined #ruby
<weeb1e> String#starts_with? and String#ends_with? sound a lot better than start_with? and end_with?
iliketurtles has quit [Quit: Textual IRC Client: www.textualapp.com]
altivec has joined #ruby
aspires has quit [Quit: aspires]
kreeves has quit [Ping timeout: 245 seconds]
antix_ has quit [Ping timeout: 240 seconds]
<sam113101> where can I find the official ruby interpreter's code
<Hanmac1> sam113101: https://github.com/ruby/ruby
Hanmac1 is now known as Hanmac
<sam113101> Hanmac: thanks
antix_ has joined #ruby
hogeo has joined #ruby
Apocalypse has quit [Quit: Input/Output Error]
altivec has quit [Ping timeout: 240 seconds]
hogeo has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
leehambley has quit [Ping timeout: 260 seconds]
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
<Barrin6> anyone ever used "learning ruby the hard way"?
leehambley has joined #ruby
antix_ has quit [Ping timeout: 256 seconds]
antix_ has joined #ruby
antix_ has joined #ruby
antix_ has quit [Changing host]
Apocalypse has joined #ruby
aspires has joined #ruby
lukec has quit [Quit: lukec]
angelxmoreno has quit [Read error: Connection reset by peer]
angelxmoreno has joined #ruby
freerobby has quit [Quit: Leaving.]
fixl has joined #ruby
tonni has quit [Remote host closed the connection]
sectionme has joined #ruby
jiyinyiyong has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
antix_ has quit [Ping timeout: 241 seconds]
sectionme has quit [Read error: Operation timed out]
angelxmoreno has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
antix has joined #ruby
angelxmoreno has joined #ruby
antix is now known as Guest62099
angelxmoreno has quit [Read error: Connection reset by peer]
kmurph has quit [Quit: kmurph]
noop has quit [Ping timeout: 245 seconds]
dorkmafia has joined #ruby
dorkmafia has left #ruby ["WeeChat 0.3.9.2"]
dorkmafia has joined #ruby
aspires has quit [Quit: aspires]
ChronocityLC has quit [Ping timeout: 252 seconds]
Guest62099 has quit [Ping timeout: 256 seconds]
dorkmafia has left #ruby ["WeeChat 0.3.9.2"]
agent_white has quit [Read error: No route to host]
antix_ has joined #ruby
antix_ has quit [Changing host]
antix_ has joined #ruby
endash has quit [Quit: endash]
T_T has joined #ruby
jhn has quit [Ping timeout: 256 seconds]
lyanchih has quit [Quit: lyanchih]
jacktrick has quit [Ping timeout: 248 seconds]
hogeo has joined #ruby
hogeo has quit [Client Quit]
atmosx has quit [Ping timeout: 240 seconds]
antix_ has quit [Ping timeout: 264 seconds]
shvelo has joined #ruby
antix_ has joined #ruby
Guest66192 has quit [Ping timeout: 240 seconds]
atmosx has joined #ruby
Vivekananda has joined #ruby
Guest66192 has joined #ruby
tonni has joined #ruby
BizarreCake has quit [Read error: Connection reset by peer]
nwertman has quit [Ping timeout: 264 seconds]
Inside has joined #ruby
abstractj has quit [Quit: See ya!]
amacgregor has joined #ruby
Ripp__ has joined #ruby
antix_ has quit [Ping timeout: 246 seconds]
amacgregor_ has joined #ruby
antix_ has joined #ruby
antix_ has quit [Changing host]
antix_ has joined #ruby
BizarreCake has joined #ruby
amacgregor has quit [Ping timeout: 246 seconds]
noop has joined #ruby
aspires has joined #ruby
antix_ has quit [Ping timeout: 245 seconds]
T_T has quit [Remote host closed the connection]
araujo has joined #ruby
antix_ has joined #ruby
antix_ has joined #ruby
antix_ has quit [Changing host]
tomzx_mac has quit [Ping timeout: 245 seconds]
fgo has joined #ruby
sarmiena_ has joined #ruby
<sarmiena_> i'm trying to achieve something like "some_method rescue(SomeException) nil"?
<sarmiena_> instead of using begin, rescue, end
<sarmiena_> but that line doesn't work. is one line rescue with specific exception possible?
<Hanmac> nope
<sarmiena_> well then :)
<sarmiena_> hanks
<sarmiena_> thanks
Xeago has joined #ruby
tatsuya_o has quit [Read error: Connection reset by peer]
tatsuya_o has joined #ruby
robbyoconnor has joined #ruby
Macaveli has joined #ruby
louism2wash has quit [Quit: This computer has gone to sleep]
antix_ has quit [Ping timeout: 252 seconds]
kilophoton has joined #ruby
antix_ has joined #ruby
Matriks has joined #ruby
nwertman_ has joined #ruby
Targen has quit [Ping timeout: 245 seconds]
araujo has quit [Ping timeout: 256 seconds]
Targen_ has joined #ruby
Xeago has quit [Ping timeout: 245 seconds]
headius has quit [Quit: headius]
TheHodge has quit [Ping timeout: 248 seconds]
jalcine has quit [Ping timeout: 248 seconds]
karlfreeman has quit [Ping timeout: 248 seconds]
davidboy has quit [Ping timeout: 248 seconds]
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
<Barrin6> exit
DanKnox_away has quit [Ping timeout: 248 seconds]
<Barrin6> oops lol
Barrin6 has quit [Quit: HydraIRC -> http://www.hydrairc.com <- Po-ta-to, boil em, mash em, stick em in a stew.]
Inside has quit [Ping timeout: 264 seconds]
jalcine has joined #ruby
MetaCosm_ has quit [Ping timeout: 248 seconds]
taion809 has quit [Quit: No Ping reply in 180 seconds.]
taion809_ has joined #ruby
kilophoton has quit [Ping timeout: 264 seconds]
DanKnox_away has joined #ruby
MetaCosm has joined #ruby
DanKnox_away is now known as DanKnox
tatsuya_o has quit [Remote host closed the connection]
luckyruby has quit [Remote host closed the connection]
antix_ has quit [Ping timeout: 260 seconds]
agent_white has joined #ruby
antix_ has joined #ruby
ayaz has joined #ruby
ananthakumaran has joined #ruby
kevinykchan has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
taion809_ is now known as taion809
antix_ has quit [Ping timeout: 245 seconds]
antix_ has joined #ruby
Lewix has quit [Ping timeout: 245 seconds]
ewnd9 has quit [Remote host closed the connection]
Matriks has quit [Remote host closed the connection]
iliketurtles has joined #ruby
ewnd9 has joined #ruby
Rollabunna has quit [Remote host closed the connection]
agent_white has quit [Ping timeout: 245 seconds]
relix has joined #ruby
claymore has joined #ruby
emergion has joined #ruby
antix_ has quit [Ping timeout: 252 seconds]
amacgregor_ has quit [Ping timeout: 246 seconds]
amacgregor has joined #ruby
antix_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
freerobby has joined #ruby
Tearan has quit [Quit: Sleepy Badger....]
antix_ has quit [Ping timeout: 240 seconds]
antix_ has joined #ruby
antix_ has quit [Changing host]
antix_ has joined #ruby
zz_tsykoduk is now known as tsykoduk
gmas has quit [Ping timeout: 240 seconds]
shvelo has quit [Ping timeout: 240 seconds]
rippa has joined #ruby
antix_ has quit [Ping timeout: 245 seconds]
Elhu has joined #ruby
freerobby has quit [Ping timeout: 246 seconds]
antix has joined #ruby
antix is now known as Guest28363
alexju has quit [Remote host closed the connection]
dkamioka has quit [Remote host closed the connection]
dkamioka has joined #ruby
xkickflip has quit [Ping timeout: 260 seconds]
alexju_ has joined #ruby
xkickflip has joined #ruby
Hganavak has joined #ruby
tsykoduk is now known as zz_tsykoduk
dzhulk has joined #ruby
dkamioka has quit [Ping timeout: 245 seconds]
Apocalypse has quit [Ping timeout: 245 seconds]
Guest28363 has quit [Ping timeout: 264 seconds]
antix_ has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
ace_striker has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
Elhu has joined #ruby
Elhu has quit [Client Quit]
schaerli has joined #ruby
shvelo has joined #ruby
fgo has quit [Remote host closed the connection]
antix_ has quit [Ping timeout: 245 seconds]
claymore has quit [Ping timeout: 245 seconds]
xkickflip has quit [Ping timeout: 245 seconds]
antix_ has joined #ruby
antix_ has joined #ruby
antix_ has quit [Changing host]
Mars` has quit [Remote host closed the connection]
ElderFain has quit [Ping timeout: 260 seconds]
tonini_ has joined #ruby
Mars` has joined #ruby
Elhu has joined #ruby
<ace_striker> what might cause this ..https://gist.github.com/igauravsehrawat/6836708
claymore has joined #ruby
Elhu has quit [Client Quit]
Macaveli has quit [Remote host closed the connection]
Xiti` has joined #ruby
<udoprog> ace_striker: I would guess that the git user (role) is missing in the postgres database
banisterfiend has quit [Quit: Computer has gone to sleep.]
Xiti has quit [Ping timeout: 245 seconds]
aspires has quit [Quit: aspires]
Mars` has quit [Ping timeout: 264 seconds]
antix_ has quit [Ping timeout: 245 seconds]
<ace_striker> udoprog: thanks for reply..i already did sudo -u git -H bundle install --deployment --without development test mysql aws
amacgregor_ has joined #ruby
antix_ has joined #ruby
<ace_striker> do i have to do some chown operations.
amacgregor has quit [Ping timeout: 246 seconds]
<udoprog> ace_striker: don't know, I'm just decoding your error. You should probably get comfortable with connecting to the database directly and checking that everything got migrated the way you expect it to be
<ace_striker> ok..i will to fight with it .i guess
<ace_striker> *will have
dzhulk has quit [Quit: Leaving.]
xkickflip has joined #ruby
tonni has quit [Remote host closed the connection]
Xeago has joined #ruby
ecksit has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
<ecksit> hey, is anyone using thor? i am trying to make a cli app that uses colons to separate commands instead of a space.
antix_ has quit [Ping timeout: 245 seconds]
jefflyne1 has joined #ruby
antix_ has joined #ruby
Vivekananda has quit [Read error: Connection reset by peer]
coderhs has joined #ruby
alexju_ has quit [Remote host closed the connection]
alexju has joined #ruby
Xeago has quit [Ping timeout: 264 seconds]
Hanmac1 has joined #ruby
ecksit has quit [Quit: Computer has gone to sleep.]
tonini_ has quit [Ping timeout: 260 seconds]
antix_ has quit [Ping timeout: 246 seconds]
RangerMauve has left #ruby [#ruby]
echevemaster has quit [Ping timeout: 245 seconds]
antix_ has joined #ruby
schaerli has quit [Remote host closed the connection]
alexju has quit [Ping timeout: 264 seconds]
Hanmac has quit [Ping timeout: 260 seconds]
Mars` has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
Hanmac has joined #ruby
nyuszika7h has left #ruby ["WeeChat 0.4.2-rc2"]
diegoviola has joined #ruby
Hanmac1 has quit [Ping timeout: 245 seconds]
antix_ has quit [Ping timeout: 264 seconds]
antix_ has joined #ruby
antix_ has quit [Changing host]
antix_ has joined #ruby
echevemaster has joined #ruby
sectionme has joined #ruby
noop has quit [Ping timeout: 240 seconds]
mercwithamouth has quit [Ping timeout: 256 seconds]
nisstyre has joined #ruby
mklappstuhl has joined #ruby
fgo has joined #ruby
Hanmac1 has joined #ruby
fgo has quit [Remote host closed the connection]
fgo has joined #ruby
sectionme has quit [Ping timeout: 246 seconds]
antix_ has quit [Ping timeout: 256 seconds]
antix_ has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
Advocation has quit [Quit: Advocation]
Advocation has joined #ruby
cj3kim has joined #ruby
antix_ has quit [Ping timeout: 260 seconds]
deanrock0 has joined #ruby
antix_ has joined #ruby
antix_ has quit [Changing host]
antix_ has joined #ruby
seoNinjaWarrior has quit [Read error: Connection reset by peer]
Ripp__ has quit []
<deanrock0> hi, why would i get "no such file to load" even though i have compass-normalize gem installed? https://gist.github.com/deanrock/b5c40e84632b851a6587
freerobby has joined #ruby
antix_ has quit [Ping timeout: 240 seconds]
tonni has joined #ruby
blackmesa has joined #ruby
antix has joined #ruby
antix is now known as Guest50575
dkamioka has joined #ruby
freerobby has quit [Ping timeout: 256 seconds]
dzhulk has joined #ruby
mrsolo has quit [Quit: Leaving]
tonini_ has joined #ruby
Advocation has quit [Quit: Advocation]
Guest50575 has quit [Ping timeout: 240 seconds]
antix_ has joined #ruby
jacktrick has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
chairabanta has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Remote host closed the connection]
skaflem has joined #ruby
dzhulk has quit [Quit: Leaving.]
carraroj has joined #ruby
Apocalypse has joined #ruby
antix_ has quit [Ping timeout: 240 seconds]
lkba has quit [Ping timeout: 252 seconds]
antix_ has joined #ruby
dzhulk has joined #ruby
atno has quit [Quit: Leaving]
schaerli has joined #ruby
ericmathison has joined #ruby
dkamioka has quit [Remote host closed the connection]
ace_striker has quit [Ping timeout: 250 seconds]
Apocalypse has quit [Ping timeout: 264 seconds]
dzhulk has quit [Client Quit]
apeiros has quit [Remote host closed the connection]
carraroj has quit [Ping timeout: 264 seconds]
apeiros has joined #ruby
antix_ has quit [Ping timeout: 260 seconds]
robertjpayne has joined #ruby
dkamioka has joined #ruby
antix_ has joined #ruby
adambeynon has joined #ruby
<xybre> Thor is a PITA.
schaerli has quit [Remote host closed the connection]
<xybre> deanrock0: well you're using an ancient version of Ruby, are those gems even compatible?
fgo has quit [Remote host closed the connection]
schaerli has joined #ruby
antix_ has quit [Ping timeout: 256 seconds]
antix_ has joined #ruby
antix_ has quit [Changing host]
antix_ has joined #ruby
Xeago has joined #ruby
louism2wash has joined #ruby
mikepack has quit [Remote host closed the connection]
schaerli has quit [Ping timeout: 245 seconds]
mikepack has joined #ruby
TheHodge has joined #ruby
Xeago has quit [Read error: Operation timed out]
karlfreeman has joined #ruby
lyanchih has joined #ruby
davidboy has joined #ruby
antix_ has quit [Ping timeout: 264 seconds]
jefflyne1 has quit [Ping timeout: 256 seconds]
antix_ has joined #ruby
antix_ has joined #ruby
antix_ has quit [Changing host]
mikepack has quit [Ping timeout: 264 seconds]
tonini_ has quit [Ping timeout: 264 seconds]
<diegoviola> nice, rubinius 2.0 released
<apeiros> indeed. I'm wondering whether it's undead or alive
brennanMKE has joined #ruby
fixl has quit [Remote host closed the connection]
banisterfiend has joined #ruby
tvw has quit []
tvw has joined #ruby
antix_ has quit [Ping timeout: 252 seconds]
jibi has joined #ruby
<deanrock0> xybre: ruby --version says 1.9.3, don't know why it's looking under 1.8
antix_ has joined #ruby
brennanMKE has quit [Ping timeout: 245 seconds]
<xybre> deanrock0: that would be your problem then
louism2wash has quit [Quit: This computer has gone to sleep]
sarmiena_ has quit [Quit: sarmiena_]
antix_ has quit [Ping timeout: 240 seconds]
antix_ has joined #ruby
antix_ has quit [Changing host]
antix_ has joined #ruby
rippa has quit [Ping timeout: 248 seconds]
|jemc| has quit [Ping timeout: 246 seconds]
rippa has joined #ruby
antix_ has quit [Ping timeout: 246 seconds]
sleepshuck has joined #ruby
antix_ has joined #ruby
ayaz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fgo has joined #ruby
ottoinfo has joined #ruby
antix_ has quit [Ping timeout: 252 seconds]
antix_ has joined #ruby
MrZYX|off is now known as MrZYX
blackmesa has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
nari has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ElderFain has joined #ruby
freerobby has quit [Ping timeout: 246 seconds]
fgo has quit [Ping timeout: 245 seconds]
dzhulk has joined #ruby
antix_ has quit [Ping timeout: 240 seconds]
igas has joined #ruby
codecop has joined #ruby
antix has joined #ruby
antix is now known as Guest58235
fixl has joined #ruby
scottstamp is now known as zz_scottstamp
conner has quit [Ping timeout: 245 seconds]
gyzmodo has joined #ruby
lkba has joined #ruby
dangerousdave has joined #ruby
Guest58235 has quit [Ping timeout: 256 seconds]
Nss has joined #ruby
antix_ has joined #ruby
tonini_ has joined #ruby
dhruvasagar has quit [Ping timeout: 260 seconds]
xkickflip has quit [Ping timeout: 240 seconds]
ewnd9 has quit [Remote host closed the connection]
ewnd9 has joined #ruby
Mars` has quit [Remote host closed the connection]
ayaz has joined #ruby
Mars` has joined #ruby
antix_ has quit [Ping timeout: 245 seconds]
lemonsparrow has joined #ruby
antix_ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
antix_ has quit [Changing host]
antix_ has joined #ruby
xkickflip has joined #ruby
tkuchiki has joined #ruby
Mars` has quit [Ping timeout: 245 seconds]
fgo has joined #ruby
tkuchiki_ has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
tkuchiki_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby
aryaching has quit []
antix_ has quit [Ping timeout: 264 seconds]
antix_ has joined #ruby
cj3kim has quit [Ping timeout: 245 seconds]
tkuchiki has quit [Ping timeout: 240 seconds]
iliketurtles has quit [Quit: zzzzz…..]
Xeago has joined #ruby
antix_ has quit [Ping timeout: 252 seconds]
Hanmac1 has quit [Quit: Leaving.]
ottoinfo has quit [Quit: ottoinfo]
leehambley has quit [Ping timeout: 245 seconds]
antix_ has joined #ruby
antix_ has quit [Changing host]
antix_ has joined #ruby
leehambley has joined #ruby
jiyinyiyong has joined #ruby
jiyinyiyong has quit [Max SendQ exceeded]
Xeago has quit [Ping timeout: 252 seconds]
SkuliOskarsson has joined #ruby
tonini_ has quit [Ping timeout: 260 seconds]
antix_ has quit [Ping timeout: 246 seconds]
antix_ has joined #ruby
tatsuya_o has joined #ruby
popl has quit [Quit: We must make an idol of our fear, and call it God.]
Hanmac has joined #ruby
Xeago has joined #ruby
antix_ has quit [Ping timeout: 240 seconds]
Deele has joined #ruby
antix_ has joined #ruby
antix_ has quit [Changing host]
antix_ has joined #ruby
MrZYX is now known as MrZYX|off
ericmathison has quit [Ping timeout: 240 seconds]
antix_ has quit [Ping timeout: 245 seconds]
antix_ has joined #ruby
jonathanwallace has joined #ruby
sleepshuck is now known as pixelshuck
aspiers has joined #ruby
shvelo has quit [Ping timeout: 240 seconds]
dzhulk1 has joined #ruby
shvelo has joined #ruby
DaZ has quit [Ping timeout: 245 seconds]
dzhulk has quit [Ping timeout: 246 seconds]
antix_ has quit [Ping timeout: 245 seconds]
m8 has joined #ruby
antix_ has joined #ruby
antix_ has quit [Changing host]
antix_ has joined #ruby
igas has quit []
igas has joined #ruby
Hanmac1 has joined #ruby
freerobby has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
lyanchih has quit [Quit: lyanchih]
DaZ has joined #ruby
antix_ has quit [Ping timeout: 264 seconds]
Hanmac has joined #ruby
jb41 has joined #ruby
antix has joined #ruby
antix is now known as Guest89708
Hanmac1 has quit [Ping timeout: 245 seconds]
freerobby has quit [Ping timeout: 264 seconds]
SkuliOskarsson has quit [Quit: SkuliOskarsson]
Hanmac1 has joined #ruby
amacgregor has joined #ruby
Guest89708 has quit [Ping timeout: 264 seconds]
Hanmac has quit [Ping timeout: 246 seconds]
antix_ has joined #ruby
leehambley has quit [Ping timeout: 264 seconds]
VTLob has joined #ruby
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
amacgregor_ has quit [Ping timeout: 252 seconds]
pixelshuck is now known as awayshuck
leehambley has joined #ruby
starfox21 has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
antix_ has quit [Ping timeout: 245 seconds]
Rollabunna has joined #ruby
antix_ has joined #ruby
starfox21 has quit [Ping timeout: 246 seconds]
Hanmac has joined #ruby
igas has quit []
Xeago has quit [Ping timeout: 245 seconds]
starfox21 has joined #ruby
sepp2k has joined #ruby
Hanmac1 has quit [Ping timeout: 264 seconds]
antix_ has quit [Ping timeout: 245 seconds]
Rollabunna has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
antix_ has joined #ruby
blackmesa has joined #ruby
Xeago has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
chairabanta has quit [Quit: Leaving...]
Mars` has joined #ruby
starfox21 has quit [Ping timeout: 256 seconds]
SkuliOskarsson has joined #ruby
Xeago_ has joined #ruby
antix_ has quit [Ping timeout: 245 seconds]
antix_ has joined #ruby
jbpros has joined #ruby
Mars` has quit [Ping timeout: 245 seconds]
starfox21 has joined #ruby
jefflyne1 has joined #ruby
Xeago_ has quit [Ping timeout: 264 seconds]
Apocalypse has joined #ruby
jbpros has quit [Client Quit]
plotter has quit [Remote host closed the connection]
antix_ has quit [Ping timeout: 256 seconds]
antix_ has joined #ruby
plotter has joined #ruby
plotter has quit [Changing host]
plotter has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
antix_ has quit [Ping timeout: 246 seconds]
jbpros has joined #ruby
nouitfvf has joined #ruby
threesome has joined #ruby
Apocalypse has quit [Ping timeout: 245 seconds]
antix_ has joined #ruby
tonini_ has joined #ruby
SkuliOskarsson has quit [Quit: SkuliOskarsson]
cads has quit [Ping timeout: 246 seconds]
tatsuya_o has quit [Remote host closed the connection]
kdaigle has joined #ruby
antix_ has quit [Ping timeout: 245 seconds]
antix_ has joined #ruby
jbpros has quit [Quit: jbpros]
jlebrech has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
Apocalypse has joined #ruby
jbpros has joined #ruby
jbpros has quit [Client Quit]
antix_ has quit [Ping timeout: 256 seconds]
antix_ has joined #ruby
antix_ has quit [Changing host]
antix_ has joined #ruby
<shevy> "Thanks David Heinemeier Hansson for creating Ruby on Rails, which spread Ruby happiness around the world."
<shevy> hmmm
<shevy> rails spread ruby happiness around the world?
kdaigle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
danshultz has joined #ruby
fgo_ has joined #ruby
Astralum has joined #ruby
jbpros has joined #ruby
<shevy> "Ruby became popular because Ruby on Rails accelerated the delivery of value by an order of magnitude."
<shevy> hmmmmmm
fgo has quit [Ping timeout: 246 seconds]
<Hanmac1> each time there is a rails bug others only read there is a bug in ruby ...
Hanmac1 is now known as Hanmac
<shevy> man... look at this:
<shevy> "These components participate in the Ruby ecosystem, for example Bundler or dep"
<shevy> they make it sound as if bundler is now a necessary component of the Ruby ecosystem :(
sumark is now known as Guest48046
eka has joined #ruby
freerobby has joined #ruby
antix_ has quit [Ping timeout: 252 seconds]
apeiros has quit [Remote host closed the connection]
antix_ has joined #ruby
antix_ has quit [Changing host]
antix_ has joined #ruby
apeiros has joined #ruby
<Hanmac> yeah let us use our ruby-voodoo dolls to torture him for this sentences ;D
kdaigle has joined #ruby
fgo_ has quit [Remote host closed the connection]
<waxjar> i like that they mentioned dep
<shevy> never heard of it before
<shevy> Hanmac, do you use bundler?
ewnd9 has quit [Ping timeout: 240 seconds]
<Hanmac> not that i know ;P
<shevy> aside from the ... very opinionated stuff on the blog entry, it has some other things that are new to me. like: "Evan created Puma to meet the need for a fast web server"
freerobby has quit [Ping timeout: 245 seconds]
<waxjar> dep is really nice and simple
<shevy> a web server called puma! if that is not built for speed ... :D
* shevy will work on a web server called snailserve ...
* Hanmac prefers rake for this stuff
<ker2x_> can't convert nil into String (TypeError) <- why not ? o_O
banisterfiend has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
<Hanmac> ker2x_: there is a difference between to_s and to_str
<ker2x_> so i should use to_str ?
<Hanmac> hm nope, i mean nil does not have an auto convert to string
antix_ has quit [Ping timeout: 240 seconds]
igas has joined #ruby
antix has joined #ruby
<ker2x_> what should i do then ? i parse a long json and create a long sql query from it. and some json parameters are optional
<waxjar> >> String(nil)
<eval-in> waxjar => "" (https://eval.in/52792)
diegoviola has quit [Ping timeout: 256 seconds]
antix is now known as Guest36783
kdaigle has quit [Ping timeout: 245 seconds]
<Hanmac> for sample numeric has to_i and also to_int .. to_i is explicit covertion, to_int is implicit convertion
<Hanmac> same for Array with to_a and to_ary and Hash for to_h and to_hash
xkickflip has quit [Read error: Operation timed out]
xkickflip has joined #ruby
ehaliewicz has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 240 seconds]
kdaigle has joined #ruby
<ker2x_> is it related to my problem ?
awayshuck is now known as pixelshuck
<Hanmac> maybe, because nil does not have a to_str method, ruby will not automatic convert it into a string
<Hanmac> you need to pastie your code so we can look over it
<ker2x_> mmmm
<ker2x_> i'll try to paste some
cads has joined #ruby
Guest36783 has quit [Ping timeout: 240 seconds]
svector has joined #ruby
Hganavak has quit [Read error: Connection reset by peer]
antix_ has joined #ruby
antix_ has quit [Changing host]
antix_ has joined #ruby
jbpros has quit [Quit: jbpros]
<ker2x_> http://pastebin.com/U1GpKi6A i deleted stuff from the pastebin, i hope it's still readable
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
<ker2x_> hummm
<ker2x_> is delete! appropriate ?
afrodiziak has joined #ruby
<waxjar> most bang-methods return nil
<ker2x_> yes, that was the problem :)
kdaigle has quit [Quit: Textual IRC Client: www.textualapp.com]
<afrodiziak> can someone explain me a bit how passing by ref/value works in ruby... how can i achieve that the change of a string stays only in a methode when i do splice to delete some chars and when i go out of the function i want from variable that has been given as an argument to stay the same
<waxjar> also, i think you've got an sql injection vulnerability there
<ker2x_> good, now i'm back to my original problem : ERROR: invalid input syntax for type timestamp: "1380973465.22" (PG::InvalidDatetimeFormat) :))
<ker2x_> thank you
<waxjar> (and obj is probably the least descriptive variable name you can use in Ruby :P)
kdaigle has joined #ruby
mary5030 has joined #ruby
antix_ has quit [Ping timeout: 264 seconds]
<Hanmac> ker2x_: the bang-methods are useful in conditions, like
<Hanmac> >> "Ab".upcase! ? "changed" : "not"
<eval-in> Hanmac => "changed" (https://eval.in/52793)
<Hanmac> >> "AB".upcase! ? "changed" : "not"
<eval-in> Hanmac => "not" (https://eval.in/52794)
<afrodiziak> so why is my string being changed even outside of function http://pastie.org/8379611 and how do achieve that it stay the same outside?
antix_ has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
<Hanmac> afrodiziak: why not: word1.chars.sort == word2.chars.sort ?
lemonsparrow has quit [Quit: Page closed]
<afrodiziak> Hanmac would you mind clarifying a bit?
Xeago has quit [Ping timeout: 246 seconds]
<Hanmac> >> src = "serbia".chars.sort; words = "rabies bla rabsie ccc jesus".slit(' '); words.select {|w| w.chars.sort == src}
<eval-in> Hanmac => undefined method `slit' for "rabies bla rabsie ccc jesus":String (NoMethodError) ... (https://eval.in/52795)
<Hanmac> >> src = "serbia".chars.sort; words = "rabies bla rabsie ccc jesus".split(' '); words.select {|w| w.chars.sort == src}
<eval-in> Hanmac => ["rabies", "rabsie"] (https://eval.in/52796)
kofno has quit [Ping timeout: 252 seconds]
antix_ has quit [Ping timeout: 260 seconds]
<afrodiziak> Hanmac great, thats awesome, but would you mind telling me how to do it with using the same way (deleting a substring each time)?
antix_ has joined #ruby
osvico has joined #ruby
<Hanmac> why do you want to delete a substing?
schaerli has joined #ruby
kofno has joined #ruby
Xeago has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
svector has quit [Ping timeout: 245 seconds]
danshultz has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
<ker2x_> 1380973465.22 -> Time.at(obj["timestamp"]).strftime("%Y%m%D %H:%M:%S.%L") -> ERROR: timestamp out of range: "20131010/05/13 11:57:48.723"
<ker2x_> isn't it weird ?
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
coderhs has quit [Ping timeout: 245 seconds]
<ker2x_> mmmm
<ker2x_> ha
<ker2x_> %D ?
ananthakumaran has joined #ruby
antix_ has quit [Ping timeout: 260 seconds]
ananthakumaran has quit [Max SendQ exceeded]
Xeago has quit [Ping timeout: 245 seconds]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
<ker2x_> yup, it's %d
antix_ has joined #ruby
antix_ has joined #ruby
antix_ has quit [Changing host]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
apeiros has joined #ruby
<afrodiziak> Hanmac becuase i want to find an anagram, see here http://pastie.org/8379611
<afrodiziak> anyways for future cases too
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
<Hanmac> sint that what my does too?
<afrodiziak> lets say i want to build a function which deletes some substring
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
<apeiros> is_anagram?(w1,w2) w1 == w2.reverse end
<afrodiziak> but only inside
banisterfiend has quit [Quit: Computer has gone to sleep.]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
<afrodiziak> the function
ananthakumaran has joined #ruby
<afrodiziak> apeiros thanks, but i just want to find out why i cannot delete a substring like in javascript
duggiefresh has joined #ruby
<apeiros> because ruby is not javascript?
<afrodiziak> yes
SHyx0rmZ has joined #ruby
<apeiros> I'd ask "how do I delete a substring" instead.
<Hanmac> you need to understand that deleting chars has consequeces
goganchic has joined #ruby
<afrodiziak> ok what is the difference than, if i pass it as a reference by value it should work well
<apeiros> based on what do you want to delete your substring?
fgo has joined #ruby
jefflyne1 has quit [Ping timeout: 245 seconds]
<apeiros> match? offset+length? from offset to offset?
<afrodiziak> apeiros, nevermind that for now
<apeiros> also: do you want it in-place (modifying the string) or applied on a copy?
<afrodiziak> i just want to manipulate a string
<afrodiziak> which was given as a parameter
<apeiros> afrodiziak: generic questions can't be meaningfully answered.
<afrodiziak> and when i go out of the method that it stays the same
<apeiros> afrodiziak: then don't use mutating methods
HalfMadDad has joined #ruby
<apeiros> those with ! in the end almost always mutate the receiver
<afrodiziak> because i want to just work on a local copy of the variable
<apeiros> then copy it
banisterfiend has joined #ruby
antix_ has quit [Ping timeout: 245 seconds]
jlebrech has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<afrodiziak> right, but i read somewhere that ruby used passing by value
IceyEC has joined #ruby
<afrodiziak> that means i dont have to copy it
<apeiros> afrodiziak: on what level?
nari has joined #ruby
<afrodiziak> it should work like that straight from the box
<apeiros> in ruby, you pass objects
hackeron has joined #ruby
<apeiros> there's no such thing as a reference on rubys own level
<afrodiziak> right, so if i change them inside the function theyy are changed outside always?
<apeiros> of course
antix_ has joined #ruby
<afrodiziak> ok, thx
<apeiros> that's the same in JS too btw., just that JS doesn't have mutable strings. all methods return a copy there.
mary5030 has quit [Remote host closed the connection]
alexju has joined #ruby
ewnd9 has joined #ruby
IceyEC has quit [Client Quit]
duggiefresh has quit [Remote host closed the connection]
<afrodiziak> is it normal to make copies like that every time?
<afrodiziak> with ruby
<afrodiziak> i find it unnantural
<apeiros> afrodiziak: you cite javascript string manipulation and find it unnatural?
tonini_ has quit [Ping timeout: 240 seconds]
<apeiros> as I just said: that's *exactly* what you do in JS
<afrodiziak> no, javascript passing by reference and value as explained in the link i sent above
<apeiros> what "no"?
kdaigle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<afrodiziak> if its a string or integer for example in js it will not be changed
<afrodiziak> if its an object then you work directly with it and it will be changed
<apeiros> afrodiziak: yes, because *you create copies*
<apeiros> as I said: every string method in js creates a copy
<afrodiziak> its called passing by value as far as i know
antix_ has quit [Ping timeout: 264 seconds]
<canton7> afrodiziak, yes. passing by value = making a copy
<afrodiziak> ok
<afrodiziak> we agree on that
tvw has quit []
<apeiros> that's not what js does
schaerli has quit [Remote host closed the connection]
antix_ has joined #ruby
<apeiros> try this: function x(obj) { obj.x = 1 }; o = {x: 100}; x(o); o.x
<apeiros> tell me what x returns
<afrodiziak> i said about this case "if its an object then you work directly with it and it will be changed"
<apeiros> JS does *exactly* the same as ruby. it passes objects. if you modify the object, it's reflected everywhere where you access that object.
schaerli has joined #ruby
<apeiros> afrodiziak: same for string, just that you *CANT CHANGE A STRING*
<apeiros> argh, how difficult can it be to grasp that.
<apeiros> with js, you can't do this with strings: x = "foo"; foo(x); x // => "FOO"
<apeiros> it's not possible. not because of how objects (or primitves) are passed, but because you CANT MUTATE a string.
<afrodiziak> its not, string are also objects so they are passed as reference in ruby
notjohn has joined #ruby
<apeiros> walls
<apeiros> no use talking to them
<apeiros> afrodiziak: believe whatever the fuck you want to.
* apeiros off, got better things to do
IceyEC has joined #ruby
<canton7> this sounds like fun :P what exactly is the confusion, afrodiziak?
<afrodiziak> canton7 there is none if this is right "string are also objects so they are passed as reference in ruby" ?
<canton7> strings are passed by reference in both javascript and ruby. it's a subtle point, but everything is passed by reference in ruby, it's just that some things (like numbers) are immutable, so give the appearance of being passed by value
coderhs has joined #ruby
schaerli has quit [Ping timeout: 256 seconds]
<apeiros> it might even be that a JS runtime choses to pass string primitives by value. but that's an implementation detail and has nothing to do with the exposed behavior.
antix_ has quit [Ping timeout: 264 seconds]
<apeiros> also it's entirely irrelevant because the representation of strings within JS itself and the language used to implement the interpreter will differ anyway.
banisterfiend has quit [Quit: Computer has gone to sleep.]
antix_ has joined #ruby
antix_ has joined #ruby
antix_ has quit [Changing host]
<canton7> I can't honestly imagine that it does - that's a huge inefficiency
<afrodiziak> canton7 what was confusing is that here it says for string that they are passed by values http://snook.ca/archives/javascript/javascript_pass
<canton7> Yeah there are sources out there saying that string are passed by value in JS
<canton7> sorry, passed by REFERENCE
<canton7> it's just that they're immutable, so behave like stuff passed by value
<apeiros> canton7: same here. but as said, it wouldn't even matter if it did.
<afrodiziak> canton7 sure, thanks
<canton7> afrodiziak, I think he's wrong. They just appear to be passed by value because of the immutability. As apeiros says, it's an implementation detail
duggiefresh has joined #ruby
kleinerdrache has joined #ruby
chairabanta has joined #ruby
<canton7> >> def foo(x); x.object_id; end; a = 1; p [a.object_id, foo]
<eval-in> canton7 => wrong number of arguments (0 for 1) (ArgumentError) ... (https://eval.in/52797)
<canton7> >> def foo(x); x.object_id; end; a = 1; p [a.object_id, foo(a)]
<eval-in> canton7 => [3, 3] ... (https://eval.in/52798)
alexju_ has joined #ruby
fgo has quit [Remote host closed the connection]
alexju has quit [Read error: Operation timed out]
lfox has joined #ruby
g0bl1n has quit [Quit: g0bl1n]
antix_ has quit [Ping timeout: 240 seconds]
antix_ has joined #ruby
shvelo has quit [Read error: Operation timed out]
freerobby has joined #ruby
duggiefresh has quit [Remote host closed the connection]
drumsrgr8forn8_ has joined #ruby
duggiefresh has joined #ruby
duggiefresh has quit [Remote host closed the connection]
Astralum has quit [Ping timeout: 240 seconds]
lkba has quit [Remote host closed the connection]
osvico has quit [Read error: Connection reset by peer]
<kleinerdrache> how can i replace a single \ with a double \ in a string? i try mystr.gsub /\\/, "\\\\" - but it does not work
freerobby has quit [Ping timeout: 246 seconds]
antix_ has quit [Ping timeout: 245 seconds]
lkba has joined #ruby
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
antix has joined #ruby
antix is now known as Guest60823
<canton7> gsub("\\", "\\\\")
<canton7> beware that backslashes have special meaning in regex, and you don't need a regex here anyway
<apeiros> sadly, that won't do
<apeiros> >> "foo\\bar".gsub("\\", "\\\\")
<eval-in> apeiros => "foo\\bar" (https://eval.in/52799)
<apeiros> it's a bit crazy, but:
<apeiros> >> "foo\\bar".gsub("\\", "\\\\\\\\")
<eval-in> apeiros => "foo\\\\bar" (https://eval.in/52800)
<Hanmac> or
<Hanmac> >> "foo\\bar".gsub("\\", '\\\\')
<eval-in> Hanmac => "foo\\bar" (https://eval.in/52801)
<apeiros> (and yes, that's 2 backslashes - don't forget that you look at an inspect)
<Hanmac> huch?
<apeiros> Hanmac: \ is escaped in ' too (\ and ' are the only sequences in single quoted strings)
zarubin has joined #ruby
<kleinerdrache> ok, thanks
fgo has joined #ruby
forced_request has joined #ruby
<kleinerdrache> can i open a read write process and have pipes somehow?
Guest60823 has quit [Ping timeout: 240 seconds]
guillaum has joined #ruby
osvico has joined #ruby
antix_ has joined #ruby
alexju_ has quit [Remote host closed the connection]
Ahti333 has joined #ruby
Kruppe has quit [Ping timeout: 240 seconds]
Lorn has quit [Ping timeout: 240 seconds]
cha1tanya has joined #ruby
<apeiros> kleinerdrache: take a look at popen and spawn
alexju has joined #ruby
Ace__ has quit [Ping timeout: 240 seconds]
zeusmns has quit [Ping timeout: 240 seconds]
Ace__ has joined #ruby
chairabanta has quit [Ping timeout: 256 seconds]
Lorn_ has joined #ruby
chairabanta has joined #ruby
Kruppe has joined #ruby
blackmesa has joined #ruby
guillaum has quit [Ping timeout: 252 seconds]
<ker2x_> woooooooooooooo it works \o/
<ker2x_> thank you for your help. now i can be in weekend :)
zeusmns has joined #ruby
bline79_ has quit [Read error: Connection reset by peer]
<ker2x_> my proof of concept is ok. i know a coder that will have some work to do monday :(and it's not me \o/) :)
antix_ has quit [Ping timeout: 252 seconds]
IceyEC has quit [Quit: IceyEC]
fgh2 has joined #ruby
<ker2x_> see you later. have fun :)
cads has quit [Read error: Operation timed out]
antix_ has joined #ruby
Ziarkaen has joined #ruby
IceyEC has joined #ruby
ker2x_ has quit [Quit: ChatZilla 0.9.90.1 [Firefox 24.0/20130910160258]]
IceyEC has quit [Client Quit]
<kleinerdrache> how can i write a end of string or something, or end of file to an IO.popen instance?
<apeiros> you close the write end
<apeiros> close_write, iirc
fgh has quit [Read error: Connection reset by peer]
<kleinerdrache> apeiros, thats great, thanks
kdaigle has joined #ruby
Aryasam has joined #ruby
banisterfiend has joined #ruby
afrodiziak has quit [Quit: Going offline, see ya! (www.adiirc.com)]
antix_ has quit [Ping timeout: 240 seconds]
antix_ has joined #ruby
antix_ has quit [Changing host]
antix_ has joined #ruby
fgo has quit [Remote host closed the connection]
Xeago has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
kdaigle has quit [Ping timeout: 245 seconds]
goganchic has quit []
aryaching has joined #ruby
antix_ has quit [Ping timeout: 240 seconds]
antix_ has joined #ruby
antix_ has quit [Changing host]
antix_ has joined #ruby
Xeago has quit [Ping timeout: 252 seconds]
mklappstuhl has joined #ruby
kdaigle has joined #ruby
apeiros has quit [Remote host closed the connection]
noop has joined #ruby
Aryasam has quit [Quit: Bye]
antix_ has quit [Ping timeout: 264 seconds]
antix_ has joined #ruby
antix_ has quit [Changing host]
antix_ has joined #ruby
cha1tanya has quit [Ping timeout: 264 seconds]
fgo has joined #ruby
JonTheNiceGuy has joined #ruby
kdaigle has quit [Ping timeout: 252 seconds]
lkba has quit [Ping timeout: 240 seconds]
antix_ has quit [Ping timeout: 246 seconds]
Lewix has joined #ruby
Lewix has quit [Read error: Connection reset by peer]
<JonTheNiceGuy> Hi, this is a really newbie-ish question, but I'm trying to use a ruby app called showoff (github.com/puppetlabs/showoff - branch "v0.9.2"), and I'm getting what appears to be a stack trace when it's trying to resize an image using imagemagick. I've installed rmagick, both using Gem and, when that didn't work, removed it and tried again using apt-get install gem-plugin-rmagick. The error I'm getting is "NoMethodError - undefined
<JonTheNiceGuy> method `has_key?' for nil:NilClass:" followed by a stacktrace - happy to provide the full stack trace, or content and images. Alternatively, if there's a "preferred distro" I could be using with something like vagrant, for fixed troubleshooting, that would be good too! I'm using the packaged version of Ruby from Kubuntu 13.04 which is 1.9.3p194 (2012-04-20 revision 35410) on an x64 Linux box
antix_ has joined #ruby
antix_ has quit [Changing host]
antix_ has joined #ruby
DaZ has quit [Read error: Operation timed out]
bean has joined #ruby
antix_ has quit [Ping timeout: 264 seconds]
antix_ has joined #ruby
antix_ has quit [Changing host]
antix_ has joined #ruby
starfox21_ has joined #ruby
starfox21_ has quit [Client Quit]
freerobby has joined #ruby
starfox21 has quit [Ping timeout: 256 seconds]
niklasb has joined #ruby
DaZ has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
scarolan has joined #ruby
lord1234 has joined #ruby
<lord1234> is freeze a deprecated method?
dzhulk1 has quit [Quit: Leaving.]
antix_ has quit [Ping timeout: 260 seconds]
scarolan_ has quit [Ping timeout: 256 seconds]
IceyEC has joined #ruby
kdaigle has joined #ruby
antix_ has joined #ruby
<Hanmac> lord1234: why do you guess that?
lkba has joined #ruby
schaerli has joined #ruby
T_T has joined #ruby
<shevy> lord1234 dont think it is
<shevy> I'd wish it were
michael_mbp is now known as zz_michael_mbp
zz_michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
apeiros has joined #ruby
mansi has joined #ruby
antix_ has quit [Ping timeout: 246 seconds]
bline79_ has joined #ruby
antix_ has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
gja has joined #ruby
krz has joined #ruby
krz has quit [Changing host]
krz has joined #ruby
sectionme has joined #ruby
kdaigle has quit [Ping timeout: 264 seconds]
alyi has joined #ruby
mansi has quit [Ping timeout: 246 seconds]
bean has quit [Quit: Computer has gone to sleep.]
KobraKao has joined #ruby
antix_ has quit [Ping timeout: 256 seconds]
banisterfiend has quit [Quit: Computer has gone to sleep.]
antix has joined #ruby
antix has joined #ruby
antix has quit [Changing host]
kdaigle has joined #ruby
sectionme has quit [Ping timeout: 256 seconds]
khushildep has joined #ruby
antix is now known as Guest56823
volty has joined #ruby
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
bean has joined #ruby
<volty> hi, a method that returns all the keywords ?
<shevy> cc1plus: all warnings being treated as errors
<shevy> rubinius does not wanna build for me
<shevy> volty not sure there is one
Tearan has joined #ruby
<volty> pity
IceyEC has quit [Quit: IceyEC]
Jetchisel has joined #ruby
<apeiros> volty: there's none. check zenspiders quickref. it afaik lists all.
<shevy> alias and BEGIN begin break case class def defined? do else elsif
<shevy> END end ensure false for if in module next nil not or redo
<shevy> rescue retry return self super then true undef unless until when while yield
<shevy> hmmmm
<shevy> I may have forgotten a few...
<shevy> 38 only? hmmm
KobraKao has quit [Quit: Saindo]
Guest92381 has joined #ruby
choobie has quit [Remote host closed the connection]
<volty> apeiros: i would like to get a list dynamically, i see the list on rdoc, will see zenspider's too, thanks
Guest56823 has quit [Ping timeout: 240 seconds]
<apeiros> volty: it hasn't changed in the last 10 years afaik
<apeiros> i.e., little gain from getting it dynamically.
<shevy> volty idea!
<shevy> volty file an issue at the bug tracker :)
* apeiros wonders where getting keywords dynamically is actually a use case
<shevy> RUBY_CONSTANTS
<shevy> I am silly
<apeiros> you mean RUBY_KEYWORDS ?
<shevy> RUBY_KEYWORDS
<shevy> yeah
<volty> apeiros: little but (would be more) elegant, for a syntax highlighter
<shevy> dunno why I thought about constants suddenly...
wesside has joined #ruby
Xeago has joined #ruby
senayar has joined #ruby
fgo has quit [Remote host closed the connection]
<krz> im playing around with a personal mini orm for a db solution. when the class is called (ie User) should trigger something like this: $rethinkdb.table(class_name). I can do this with an extend and a module, in some method. however, im trying figure out where to define this functionality. should i be using a class variable?
<volty> yes ruby keywords, def, begin, end // all that is in
nisstyre has quit [Remote host closed the connection]
<apeiros> krz: if "class variable" is the answer, then you're asking the wrong question :-p
<apeiros> krz: class instance variable is usually what people want when they use class variables.
<krz> apeiros: https://github.com/nviennot/nobrainer/blob/master/lib/no_brainer/document/core.rb is storing it as a class variable though
<volty> keywords.rb (btw is it a gem or virtual (buit in)?)
kdaigle has quit [Ping timeout: 240 seconds]
<krz> line 25 apeiros
choobie has joined #ruby
<apeiros> krz: no. @@vars are class variables.
<apeiros> @vars are instance variables.
xk_id has joined #ruby
<krz> apeiros: yeap. the comment on line 21 probably needs working on. so are instance variables fine for this case?
<apeiros> yes
<krz> no issues with race conditions?
alekst has joined #ruby
<apeiros> and that comment there makes no sense whatsoever
<krz> yea its a new orm
<krz> orm/odm
<apeiros> what kind of variable is unrelated to raciness. sharing is what matters.
alekst has quit [Client Quit]
<krz> if the author is using an instance variable, that also means the class that includes the module SHOULD not be able to define @table again, right? i.e. @table is reserved
tonni has quit [Remote host closed the connection]
<apeiros> o0
<apeiros> you can't reserve variable names in ruby
<apeiros> you have scopes, and some code has a different scope so it won't be able to access it.
yxhuvud has quit [Quit: Nettalk6 - www.ntalk.de]
<krz> no your cant. but the consensus is just that. the orm breaks if @table is defined in the class that includes the module
<apeiros> with instance variable, the scope is not lexical. it depends on the context of `self`. same self -> same ivars.
<apeiros> so it doesn't matter where your method/code is defined which accesses an ivar. it only depends in what object's context it is evaluated.
<krz> class includes a module. the module defines an instance variable. the class has access to that instance variable
<apeiros> no
yxhuvud has joined #ruby
yxhuvud has quit [Client Quit]
<krz> hmm ill give this a shot
kdaigle has joined #ruby
Xeago_ has joined #ruby
elaptics`away is now known as elaptics
<volty> it depends on what krz means by 'defines an instance variable' -- it is different from 'creates an instance variable' - that the class can access
Xeago_ has quit [Read error: Operation timed out]
<volty> but to create an instance variable from a module you have to do it through an instance method (and call it)
yxhuvud2 has joined #ruby
kleinerdrache has quit [Quit: Ex-Chat]
svector has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
yxhuvud2 has quit [Read error: Connection reset by peer]
s0ber has quit [Remote host closed the connection]
jefflyne1 has joined #ruby
s0ber has joined #ruby
yxhuvud has joined #ruby
afrodiziak has joined #ruby
Ox6abe has joined #ruby
SHyx0rmZ has joined #ruby
kreeves has joined #ruby
<shevy> volty where did you find keywords.rb in the ruby source btw?
tkuchiki has joined #ruby
zweistein has joined #ruby
<volty> last night (or better: this night :) ) I read a doc that says we should think more about self -- that is the key for understanding how ruby works
<shevy> ruby is so selfish
<shevy> damn it... I searched my hdd for a file called keywords.rb and did not find one
<volty> shevy: i didn't find it, i saw it there, on the rdoc page (corner up left)
carraroj has joined #ruby
<shevy> yeah
kindjal has joined #ruby
<shevy> I can verify that it is not part of standard ruby source tarball
<shevy> but David A. Black apparently wanted it ;)
<volty> neither a gem, it's a virtual "thingy"
veinofstars has joined #ruby
Matriks has joined #ruby
kdaigle has quit [Quit: Textual IRC Client: www.textualapp.com]
<volty> never mind, i pasted the list and saw that i missed half of the keybords :)
<volty> s/i missed/i was missing/
<apeiros> s/keybords/keyboards/i worsprovement!
banisterfiend has joined #ruby
<volty> :)
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> lol
<shevy> you use too many keyboards perhaps
<shevy> or keyboars
* apeiros can't motivate himself to code :-|
spike|spiegel has quit [Quit: WeeChat 0.4.1]
mklappstuhl has quit [Ping timeout: 241 seconds]
eka has joined #ruby
<volty> it happens only when I'm thinking about other things, i make no mistakes when I retype something without thinking
JonTheNiceGuy has quit [Quit: No Ping reply in 180 seconds.]
<volty> apeiros: your neural needs time to re-organize itself
<apeiros> I remember when I was fresh into ruby (from php, with mysql), had a class with an ivar @myself, and my hands would automatically type it as mysqlf
<volty> it's normal
mklappstuhl has joined #ruby
<svector> why should I use the send method when I can directly make the call?
<apeiros> svector: you shouldn't
<svector> so there is no advantage at all?
<svector> I mean difference...
<apeiros> if you can call it directly, no.
spike|spiegel has joined #ruby
<apeiros> you use send either because you want to call a private method or because you want to call a method dynamically by name (e.g. have the name in a variable)
<apeiros> if none of that is the case, it's even a bad idea to use send.
<svector> aha, so I can call private methods with send ?
<apeiros> yes
Nss has quit [Ping timeout: 246 seconds]
<svector> apeiros, thanks
<apeiros> which is why you should generally use public_send, not send
<apeiros> (for the dynamically calling methods part)
<svector> got it. Never saw public_send actually. Will use that if I have to
<apeiros> it's relatively new (1.9+)
khushildep has quit [Quit: khushildep]
<svector> oh okay
<apeiros> and "relative" here means: exists for >5y and only no longer supported rubies don't have it
<apeiros> so it's perfectly fine to use it
<Xeago> apeiros: osx mavericks finally has an updated rubies
<apeiros> I heard so :)
<apeiros> but doesn't matter to me much since I use rvm anyway
<apeiros> how're you doing anyway, Xeago? :)
<Xeago> doing great, except for some conflict with my old gov in holland
<Xeago> spotify is really cool :)
<apeiros> nice!
kindjal has quit [Read error: Connection reset by peer]
fgo has joined #ruby
<apeiros> glad you enjoy your work
<shevy> Xeago BURN THE GOVERNMENT!!!
<Xeago> one of the uncertainties they had was my matureness - my first 1on1 with my lead told my they were blown away by the opposite :)
<apeiros> shevy: that's not environmentally safe
<Xeago> s/one of the/the main
<apeiros> Xeago: nice :D
<shevy> matureness? you mean in terms of programming? or your looks
<apeiros> maturity
<Xeago> programming and attitude/behaviour/etc
<lord1234> does anyone know where I can find the pragmatic samples?
<lord1234> i figured they'd be online somewhere
<lord1234> but can't seem to find them anywhere....
<shevy> lord1234 I think it was a downloadable bundle... hmm
<lord1234> i found a ruby-code.zip file on the prag website
<lord1234> but it is not in the same format as the book calls for
maletor has joined #ruby
<Xeago> haven't written much python
notjohn has quit [Quit: notjohn]
<Xeago> mostly puppet, and patches to puppet-core
<Xeago> (which is ruby)
<Xeago> unfortunately puppet runs only on 1.8.x :\
<shevy> good old 1.8.x!
catom has joined #ruby
<apeiros> Xeago: I hear you port it to ruby 2.1? :D
<volty> good new when you forget old
<Xeago> apeiros: porting our private patches first, then the public code - yes :)
<Xeago> and also some other tooling we have around puppet that was in ruby
<volty> i'm back with a question: semantics of next changed in 1.9 (in each block) ?
HalfMadDad has quit [Ping timeout: 245 seconds]
threesome has quit [Ping timeout: 264 seconds]
AlSquire has joined #ruby
<apeiros> volty: don't think so
<apeiros> next returns control to the yielding method (optionally with a value), it basically prematurely returns from the block.
<apeiros> has been that way in 1.8 too
Xanderby has joined #ruby
<lord1234> shevy if you can help me find the dl bundle, I'd much appreciate!
zweistein has quit [Remote host closed the connection]
habanany has joined #ruby
fgo has quit [Read error: Connection reset by peer]
yxhuvud has quit [Quit: Nettalk6 - www.ntalk.de]
Ox6abe has quit [Remote host closed the connection]
nisstyre has joined #ruby
platzhirsch has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
tonni has joined #ruby
<platzhirsch> How would you rename a key in a hash?
mrbrdo has quit [Read error: No route to host]
habanany has quit [Quit: Bye]
<krz> apeiros: at https://github.com/nviennot/nobrainer/blob/master/lib/no_brainer/document/core.rb line 24, why do you think he used a class_eval block
kvirani has joined #ruby
<platzhirsch> apeiros: btw. there was this talk about don't symbolize all your hashes a week ago or so.. turns out I had a symbolize keys options left in my parser for a 3 GB JSON dump, effectively exploding my memory ;)
<lord1234> sadly no
<lord1234> doesn't match
<shevy> what version did you need again?
<lord1234> all the files are lableed sample* in the book...and in the zip ar exXXXX.rb
<lord1234> no folder structure
<apeiros> krz: to set the ivar in the context of root_class. could have used instance_eval for that too.
<lord1234> thats the URL referenced in the book actually
<lord1234> which is frustrating
zarul has quit [Quit: Leaving]
<apeiros> platzhirsch: rename hash-key: delete + store again
<krz> apeiros: still nothing related to race conditions right? just checking
<krz> to do*
<krz> with*
<apeiros> krz: no. related to scoping of variables.
veinofstars has quit [Quit: veinofstars]
<krz> got it
<lord1234> same file
<lord1234> :(
<apeiros> krz: really, you have to understand how ivars are evaluated.
Squarepy has joined #ruby
<apeiros> class_eval changes the context of self to be the receiver of class_eval. hence all ivars referenced in the code are ivars belonging to the receiver.
lkba has quit [Ping timeout: 245 seconds]
|jemc| has joined #ruby
HalfMadDad has joined #ruby
rippa has joined #ruby
tonni has quit [Read error: Connection reset by peer]
<volty> yap, thx, u r right, it wasn't the 'next' that changed, but forgotten rescue errostr to_s, so caught by another rescue (far away) that broke the each loop
zarul has joined #ruby
afrodiziak has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<volty> so the implicit conversion of Exceptions to strings must have changed ( I had rescue Exception => err_str , and afterwards passing err_str as string)
<volty> (without to_s)
mikepack has joined #ruby
fourq__ is now known as forker
forker is now known as bigfun
<apeiros> Exception#to_str was removed
endash has joined #ruby
bigfun is now known as fourqqq
lukec has joined #ruby
<apeiros> 18>> Exception.new("fooobar!").to_str
<eval-in> apeiros => "fooobar!" (https://eval.in/52804)
<apeiros> >> Exception.new("fooobar!").to_str
<eval-in> apeiros => undefined method `to_str' for #<Exception: fooobar!> (NoMethodError) ... (https://eval.in/52805)
<volty> I didn't have either that, just Exception => err_str, then error_msg(this + ': ' + err_str) --- missing to_s
<apeiros> you had it
leehambley has quit [Ping timeout: 264 seconds]
<apeiros> String#+ expects a string or something string-like. and to_str means string-like.
<volty> ah, ya, i see what you mean, implicit
<Xeago> isn't to_str implicit
<Xeago> ?
<apeiros> how do you mean, Xeago?
<Xeago> doesn't String#+ call .to_str if it's argument isn't a str?
<apeiros> yes
<volty> -- > <apeiros> Exception#to_str was removed
<apeiros> many methods expecting a string do
<apeiros> even in C
<Xeago> can't see where that is done tho
<Xeago> ah it calls StringValue(str2);
pixelshuck is now known as FootballShuck
<apeiros> yupp. and StringValue() calls to_str
mikepack has quit [Remote host closed the connection]
tonni has joined #ruby
Zai00 has joined #ruby
mikepack has joined #ruby
leehambley has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
kilophoton has joined #ruby
dangerousdave has joined #ruby
gyre007 has joined #ruby
lkba has joined #ruby
Xeago_ has joined #ruby
mikepack has quit [Ping timeout: 264 seconds]
<Xeago> wonder how that works, StringValue doesn't return anything
<Xeago> it must change what it val2 points to
<Xeago> o
<Hanmac> its witchcraft! ;D
banisterfiend has joined #ruby
gyre007 has quit [Remote host closed the connection]
Xeago_ has quit [Ping timeout: 245 seconds]
taptapdan has joined #ruby
<shevy> wicked magic
petey has joined #ruby
bean has quit [Quit: Computer has gone to sleep.]
KobraKao has joined #ruby
* Morrolan scratches head
<Morrolan> First some guy thinks that I represent Rubygems when I poke fun at him, now some other guy highlights me saying "thanks for your donations"
_whitelogger has joined #ruby
SkuliOskarsson has joined #ruby
ElderFain has quit [Quit: I'm Gone]
<volty> yap
butblack has joined #ruby
shredding has quit [Quit: shredding]
veinofstars has joined #ruby
mlpinit has quit [Ping timeout: 260 seconds]
kdaigle has joined #ruby
<volty> but i do not use default values since too often i don't know that kind of hash is going to come, so i always use (h[k] ||= def_val), usually with << afterwards
<volty> s/that/what/
brennanMKE has joined #ruby
Xeago_ has joined #ruby
ukd1 has joined #ruby
freerobby has joined #ruby
coderhs has quit [Ping timeout: 240 seconds]
Xeago_ has quit [Read error: Operation timed out]
<nhmood_> Oh sorry that was unclear, I didn't mean the default value of a newly created Hash (and its keys)
<nhmood_> I meant in .fetch(key, [default])
brennanMKE has quit [Ping timeout: 245 seconds]
<nhmood_> Is there a way to set the [default] in there such that I don't have to explicitly call it every time
<apeiros> nhmood_: no.
<apeiros> but you can easily define your own method
lewis_ has joined #ruby
lewis_ is now known as Lewix
Lewix has quit [Changing host]
Lewix has joined #ruby
nomenkun has joined #ruby
<nhmood_> apeiros : Ok thanks
mercwithamouth has joined #ruby
<volty> but at that point it's better to initialize with a default value and change, if needed later, the default or default_proc of the hash
shredding has joined #ruby
<volty> e.c. with a default value or proc
<volty> s/it's better/ isn't it better/
khushildep has joined #ruby
KobraKao has joined #ruby
<volty> can't he continue using the default fetch and just change the default value of the hash?
notjohn has joined #ruby
<volty> no
pwh has joined #ruby
Rollabunna has joined #ruby
wallerdev has quit [Quit: wallerdev]
tomzx_mac has joined #ruby
b00stfr3ak has quit [Ping timeout: 260 seconds]
<volty> nhmood_doesn't want to retype all of his fetch's
<volty> if
sayan has joined #ruby
Naoe-Kanno has joined #ruby
<apeiros> I wouldn't override existing fetch
SHyx0rmZ has quit [Ping timeout: 264 seconds]
<apeiros> that's confusing for no good reason
aagdbl1 has joined #ruby
<volty> apeiros: it's just on that object, just what nhmood_ wants to achieve
<apeiros> volty: "just on that object" doesn't change that it is confusing to a reader
<apeiros> fetch has a defined behavior. you alter it.
<apeiros> and there's no good reason for it. use a different method name instead.
dbjeepn has quit [Quit: Leaving...]
<apeiros> nhmood_: is there any good reason for why you want to use fetch instead of [] with Hash#default set?
<volty> i suspect that he has many many fetches around and does not want to retype // then i don't know if his code is for public
<apeiros> volty: don't suspect. ask :-p
<volty> apeiros: I already asked :)
aagdbl1 has quit [Client Quit]
<apeiros> well then - nhmood_, answer! :D
Dave has joined #ruby
* apeiros gtg groceries
dangerousdave has quit [Read error: Connection reset by peer]
Dave is now known as Guest34230
threesome has joined #ruby
baroquebobcat has joined #ruby
noopq has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
Alina-malina has joined #ruby
dangerousdave has joined #ruby
Guest34230 has quit [Read error: Connection reset by peer]
sergicles has quit [Remote host closed the connection]
b00stfr3ak has joined #ruby
noop has quit [Ping timeout: 245 seconds]
taion809 is now known as zzz_taion809
kdaigle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
catom has quit [Remote host closed the connection]
ukd1 has quit [Remote host closed the connection]
r0bgleeson has quit [Ping timeout: 264 seconds]
ukd1 has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
MrZYX|off is now known as MrZYX
pwh has quit []
coderhs has joined #ruby
T_T has quit [Remote host closed the connection]
dallasm has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
b00stfr3ak has quit [Ping timeout: 246 seconds]
KobraKao has quit [Ping timeout: 252 seconds]
butblack has quit [Quit: butblack]
wallerdev has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
nwertman1 has joined #ruby
ukd1 has quit [Ping timeout: 252 seconds]
shvelo has quit [Read error: Operation timed out]
mary5030 has joined #ruby
Bosox20051 has quit [Quit: Leaving]
fridim_ has joined #ruby
Matriks has quit [Remote host closed the connection]
agjacome has joined #ruby
tylersmith has joined #ruby
mayorga_ has joined #ruby
mayorga has quit [Read error: Connection reset by peer]
johnnyfuchs has joined #ruby
Zerogrifter has joined #ruby
ce_afk is now known as cescalante
mobileblue has joined #ruby
shvelo has joined #ruby
brennanMKE has joined #ruby
yxhuvud has joined #ruby
Ahti333 has quit [Ping timeout: 240 seconds]
johnnyfuchs has quit [Client Quit]
Ahti333 has joined #ruby
xk_id has quit [Quit:
mikepack has joined #ruby
tonni has joined #ruby
siwica has joined #ruby
forced_request has quit [Ping timeout: 256 seconds]
Evixion has joined #ruby
gmas has joined #ruby
tonni has quit [Ping timeout: 264 seconds]
Ox6abe has joined #ruby
postmodern has quit [Quit: Leaving]
cescalante is now known as ce_afk
predator117 has quit [Remote host closed the connection]
predator117 has joined #ruby
brennanM_ has joined #ruby
Xiti` has quit [Read error: Connection reset by peer]
freakazoid0223 has quit [Ping timeout: 240 seconds]
r0bgleeson has joined #ruby
SkuliOskarsson has quit [Quit: SkuliOskarsson]
SilverKey has joined #ruby
gmas has quit [Quit: WeeChat 0.4.1]
gmas has joined #ruby
BSaboia has joined #ruby
Xeago_ has joined #ruby
brennanMKE has quit [Ping timeout: 264 seconds]
T_T has joined #ruby
Rollabunna has quit [Remote host closed the connection]
svector has quit [Ping timeout: 240 seconds]
Es0teric has joined #ruby
butblack has joined #ruby
Xeago_ has quit [Ping timeout: 264 seconds]
mary5030 has quit [Remote host closed the connection]
Xiti has joined #ruby
arietis has joined #ruby
Mekkis_ has quit [Ping timeout: 260 seconds]
boxmein has joined #ruby
brennanM_ has quit [Read error: Connection reset by peer]
Advocation has quit [Quit: Advocation]
Inside has joined #ruby
ce_afk is now known as cescalante
taptapdan has quit [Quit: taptapdan]
maletor has quit [Quit: Computer has gone to sleep.]
thesheff17 has quit [Ping timeout: 256 seconds]
nisstyre has joined #ruby
scarolan has quit [Ping timeout: 252 seconds]
freakazoid0223 has joined #ruby
Mekkis has joined #ruby
pavilionXP has joined #ruby
sayan has quit [Ping timeout: 260 seconds]
bline79_ has quit [Quit: bline79_]
IceDragon has joined #ruby
SkuliOskarsson has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
freerobby has quit [Quit: Leaving.]
notjohn has quit [Quit: notjohn]
skaflem has quit [Quit: Leaving]
deweichen has joined #ruby
predator217 has joined #ruby
siwica has left #ruby [#ruby]
brennanMKE has joined #ruby
jefflyne1 has joined #ruby
mgorbach has quit [Ping timeout: 245 seconds]
Mekkis has quit [Ping timeout: 260 seconds]
nomenkun has quit [Remote host closed the connection]
carlyle has joined #ruby
cescalante is now known as ce_afk
nomenkun has joined #ruby
predator117 has quit [Ping timeout: 264 seconds]
sayan has joined #ruby
lfox has quit [Quit: ZZZzzz…]
yxhuvud has quit [Remote host closed the connection]
lfox has joined #ruby
yxhuvud has joined #ruby
Mekkis has joined #ruby
nomenkun has quit [Ping timeout: 245 seconds]
jgrevich_ has joined #ruby
xk_id has joined #ruby
brennanMKE has quit [Remote host closed the connection]
thesheff17 has joined #ruby
akemrir has joined #ruby
sayan has quit [Ping timeout: 246 seconds]
rubyracer has joined #ruby
Notte has joined #ruby
petey has quit [Remote host closed the connection]
petey has joined #ruby
pavilionXP has quit [Quit: Forget progress by proxy. Land on your own moon.]
<rubyracer> I have existing data in a database that I need to use for a rails application. now i added the schema for the tables in the migration files but how to move the data into the new db?
volty has quit [Quit: Konversation terminated!]
DaZ has quit [Read error: Connection reset by peer]
yxhuvud has quit [Quit: Leaving]
<akemrir> hi, how to break endless loop? break hangs my script
<apeiros> rubyracer: um, you export the data from the old database and insert it into the new database?
hside has joined #ruby
<apeiros> akemrir: break is what it'd be.
schaerli has quit [Remote host closed the connection]
<apeiros> also an infinite loop with a break isn't really an infinite loop :-p
schaerli has joined #ruby
<akemrir> apeiros: yeah, isn't so infinite
<IceDragon> akemrir: try using "catch" and "throw"
Mekkis has quit [Ping timeout: 245 seconds]
schaerli has quit [Read error: Connection reset by peer]
<IceDragon> catch(:my_break) { loop { your_stuff; throw(:my_break) } }
schaerli has joined #ruby
jgrevich_ has quit [Quit: jgrevich_]
<akemrir> Hmm, that would do the job. Ill test it
comodo_dragon has joined #ruby
comodo_dragon has left #ruby ["Konversation terminated!"]
petey has quit [Ping timeout: 246 seconds]
randomnick_ has joined #ruby
<apeiros> problem solving by cargo culting. nice.
<apeiros> akemrir: better you find out why your script hangs and actually solve your problem. but that's just me.
<akemrir> apeiros: Ill do that too
endash has quit [Quit: endash]
aspires has joined #ruby
nisstyre has quit [Quit: Leaving]
louism2wash has joined #ruby
yxhuvud has joined #ruby
zz_scottstamp is now known as scottstamp
yum has joined #ruby
iliketurtles has joined #ruby
yum has quit [Read error: Connection reset by peer]
helloworld has joined #ruby
Mekkis has joined #ruby
DaZ has joined #ruby
<nhmood_> apeiros : I wrote a wrapper to make HTTP requests and it takes in a hash of options (ssl, post/get, ect)
<nhmood_> apeiros: I want to use fetch so that I don't have to check with .key?(:key)
<apeiros> nhmood_: and you can't use [] with Hash#default because?
<nhmood_> apeiros: I'm afraid I don't know what you mean by Hash#default :-[
<nhmood_> apeiros: Let me look it up
<nhmood_> apeiros: I see it has similar functionality to .fetch but it doesn't require the default parameter
<apeiros> Hash#default means "instance method `default` of class Hash"
<nhmood_> apeiros: Which seems to show that it is really what I am looking for! :)
<Hanmac> apeiros: i recomment to you to read "terry patchett" lovels ;P ... they are "AWESOME!" ;P
<apeiros> nhmood_: personally I prefer this: def foo(opts); opts = DefaultOptions.merge(opts)
scarolan has joined #ruby
<apeiros> nhmood_: a) you get a copy of the options hash, so you can mutate it, b) you get sane defaults, and can apply different defaults per key
sayan has joined #ruby
<apeiros> c) your options are documented in code
Mekkis has quit [Ping timeout: 260 seconds]
fuleo has quit [Read error: Connection reset by peer]
KobraKao has joined #ruby
pwh has joined #ruby
Mekkis has joined #ruby
fuleo has joined #ruby
<nhmood_> apeiros: Do you have any recommended doc/resource for DefaultOption so I can read more about it
schaerli has quit [Remote host closed the connection]
<apeiros> nhmood_: it's just a constant with a hash with your default options
<apeiros> no pixie dust or fairies there.
schaerli has joined #ruby
<nhmood_> Oh DefaultOptions is something you define in your code that has all the hash values + their defaults?
<nhmood_> And you merge the input hash with that, to give you a new hash with updated values + defaults?
<nhmood_> I thught DefaultOptions was a class or something I didn't know about :P
xk_id has quit [Ping timeout: 264 seconds]
<apeiros> yes. yes. and no. :)
sayan has quit [Ping timeout: 264 seconds]
xk_id has joined #ruby
<nhmood_> apeiros : That is a nice way of doing it though, thanks again
schaerli has quit [Ping timeout: 252 seconds]
siwica1 has joined #ruby
nhmood_ has quit [Quit: leaving]
scottstamp is now known as zz_scottstamp
zz_scottstamp is now known as scottstamp
nhmood has joined #ruby
<akemrir> apeiros and IceDragon, thanks for help
conner has joined #ruby
<IceDragon> np
mgorbach has joined #ruby
aspires has quit [Quit: aspires]
FootballShuck is now known as ShowerShuck
DaZ has quit [Ping timeout: 252 seconds]
igas has quit []
enebo has joined #ruby
forcefsck has joined #ruby
sarmiena_ has joined #ruby
Atrumx has joined #ruby
heidi has joined #ruby
dallasm has joined #ruby
DaZ has joined #ruby
Xeago_ has joined #ruby
Ahti333 has quit [Quit: Textual IRC Client: www.textualapp.com]
enebo has quit [Client Quit]
SkuliOskarsson has quit [Quit: SkuliOskarsson]
Mekkis has quit [Ping timeout: 260 seconds]
dkamioka has quit [Remote host closed the connection]
Xeago_ has quit [Ping timeout: 264 seconds]
siwica1 has quit [Ping timeout: 252 seconds]
osvico has quit [Ping timeout: 240 seconds]
Mekkis has joined #ruby
siwica has joined #ruby
KobraKao has quit [Remote host closed the connection]
jefflyne1 has quit [Ping timeout: 256 seconds]
heidi has quit [Quit: Leaving.]
dv_ has quit [Quit: mooh]
<shevy> hmmm
osvico has joined #ruby
<shevy> anyone knows of a tiny ascii library that pads a little table with cells and rows?
KobraKao has joined #ruby
dv_ has joined #ruby
deweichen has left #ruby [#ruby]
Mekkis has quit [Ping timeout: 260 seconds]
freerobby has joined #ruby
KobraKao has quit [Remote host closed the connection]
gazzik has joined #ruby
nomenkun has joined #ruby
DaZ has quit [Read error: Operation timed out]
Mekkis has joined #ruby
dallasm has quit [Remote host closed the connection]
dallasm has joined #ruby
Deele has quit [Quit: User excited]
freerobby has quit [Ping timeout: 246 seconds]
T_T has quit [Remote host closed the connection]
louism2wash has quit [Quit: This computer has gone to sleep]
lord1234 has quit [Quit: Leaving.]
<apeiros> shevy: you can do that in 2 lines of code :)
nfk has joined #ruby
<apeiros> format = rows.transpose.map { |col| col.max_by(&:length).length }.map { |col_size| "%-#{col_size}s" }.join(' | ')
<apeiros> puts rows.map { |cells| format % cells }
T_T has joined #ruby
<apeiros> something along those lines
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
<shevy> hmmm a moment... I feel a little bit slow right now...
<r0bgleeson> shevy: try solve problems with math instead of abstractions
DaZ has joined #ruby
ehaliewicz has joined #ruby
<shevy> 2+2 =
<shevy> 5
<r0bgleeson> hehe
<shevy> I read that in a book!
Mekkis has quit [Ping timeout: 245 seconds]
<MrZYX> true, for big 2
jefflyne1 has joined #ruby
butblack has quit [Quit: butblack]
<r0bgleeson> shevy: seriously though, it's a good idea, functional programming is probably a brain dead way to end up exposed to it
<apeiros> and small 5
love_color_text has joined #ruby
kalesage has joined #ruby
joshu has quit [Quit: Bye.]
intuxicated has joined #ruby
ce_afk is now known as cescalante
marcdel has joined #ruby
intuxicated has quit [Max SendQ exceeded]
intuxicated has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
brianpWins has joined #ruby
love_color_text has quit [Remote host closed the connection]
T_T has quit [Remote host closed the connection]
mengu has joined #ruby
aspires has joined #ruby
Deele has joined #ruby
Ziarkaen` has joined #ruby
boxmein_ has joined #ruby
chairabanta has quit [Quit: Leaving...]
brennanMKE has joined #ruby
Ziarkaen has quit [Ping timeout: 252 seconds]
boxmein has quit [Disconnected by services]
cescalante is now known as ce_afk
joshu has joined #ruby
shredding has quit [Quit: shredding]
ehc has joined #ruby
boxmein_ is now known as boxmein
brennanMKE has quit [Ping timeout: 252 seconds]
ericmathison has joined #ruby
jefflyne1 has quit [Ping timeout: 256 seconds]
jefflyne2 has joined #ruby
Xanderby_ has joined #ruby
<Tearan> *pulls out hair* Bad test. No kookie!
mrnugget has quit [Quit: mrnugget]
chairabanta has joined #ruby
Xanderby has quit [Ping timeout: 264 seconds]
Xanderby_ is now known as Xanderby
scottstamp is now known as zz_scottstamp
afrodiziak has quit [Ping timeout: 240 seconds]
raul782 has joined #ruby
raul782 has left #ruby [#ruby]
St_Marx_ is now known as St_Marx
dzhulk has joined #ruby
poisonarms has joined #ruby
<poisonarms> Hello all. So, Perl has WWW::Mechanize for use with web scraping and things like that. What is the recommended library for Ruby?
<sweeper> I like httparty
<canton7> ruby also has mechanize iirc?
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<poisonarms> I'll look into both, thanks.
<poisonarms> Getting back into Ruby because I've decided I don't know enough Ruby.
Guest48046 is now known as sumark
deens has joined #ruby
<poisonarms> Oh and I forgot all about :symbols. Damn.
Xanderby has quit [Quit: Xanderby]
<Tearan> there is also metainspector
aspires has quit [Quit: aspires]
DaZ has quit [Ping timeout: 246 seconds]
codecop has joined #ruby
jimeh_ is now known as jimeh
<shevy> hmm how to find out that today is a Saturday?
<r0bgleeson> poisonarms: https://github.com/tarcieri/http
<sweeper> shevy: checkout the rdocs for the datetime class
<r0bgleeson> faraday is suppose to be good too
dzhulk1 has joined #ruby
<sweeper> there's a weekday function in there somewhere
<canton7> >> Time.now.saturday?
<eval-in> canton7 => true (https://eval.in/52832)
<shevy> wow
<sweeper> >> Time.now.friday?
<eval-in> sweeper => false (https://eval.in/52833)
<shevy> I never saw that before
<sweeper> me neither
<sweeper> that's some sugar right there
<r0bgleeson> >> Time.now.end_of_days?
<eval-in> r0bgleeson => undefined method `end_of_days?' for 2013-10-05 21:02:02 +0200:Time (NoMethodError) ... (https://eval.in/52834)
<Tearan> *laughs*
<canton7> >> Time.now.strftime('%A')
<eval-in> canton7 => "Saturday" (https://eval.in/52835)
<poisonarms> r0bgleeson, looks easy enough
<sweeper> >> Time.now.wday
<eval-in> sweeper => 6 (https://eval.in/52836)
<canton7> also
<Tearan> Time.now.secondBreakfast?
<sweeper> ^ the one I usually use
<canton7> require 'date'; DateTime.now.strftime('%A')
marcdel has joined #ruby
<shevy> cool, thanks
<canton7> >> require 'date'; DateTime.now.strftime('%A')
<eval-in> canton7 => "Saturday" (https://eval.in/52837)
ericmathison has quit [Quit: Lost terminal]
dzhulk has quit [Ping timeout: 264 seconds]
dustyfields has joined #ruby
ShowerShuck is now known as PixelShuck
DaZ has joined #ruby
<poisonarms> Don't suppose anyone can give me a quick "explain to me like I'm 5" explanation of symbols? I never really understood what they were for...Every time I see them used though, they always looked like they were used like you would use key values in hashes in other languages. Am I wrong in making that assumption? In Ruby though, aren't they immutable or something once you set them?
akemrir has quit [Quit: WeeChat 0.4.1]
<Tearan> Yes immutable
<canton7> >> a = "test"; b = "test"; [a.object_id, b.object_id]
<eval-in> canton7 => [540068020, 540068010] (https://eval.in/52838)
<canton7> >> a = :test; b = :test; [a.object_id, b.object_id]
<eval-in> canton7 => [98488, 98488] (https://eval.in/52839)
zz_scottstamp is now known as scottstamp
<canton7> so every time you use :test, you're using the same object instance
Xeago_ has joined #ruby
<canton7> this makes comparisons dirt cheap, compared to string. however it does mean that symbols can never be garbage collected
<Hanmac> there is also fun with regex literals
<Hanmac> >> a = /abc/; b = /abc/; [a.object_id, b.object_id]
<eval-in> Hanmac => [542411820, 542411760] (https://eval.in/52840)
<poisonarms> canton7, I don't understand what's going on there.
<popl> poisonarms: if you want a fundamental understanding, look up the rubykoans and work through them. I found them super instructive.
<Hanmac> >> def test;/abc/; end; [test.object_id, test.object_id]
<eval-in> Hanmac => [540060760, 540060760] (https://eval.in/52841)
nomenkun has quit [Remote host closed the connection]
<canton7> so use them where it's important that comparisons are cheap, but don't go and created loads of them, in a loop or some user input or something
nomenkun has joined #ruby
<Hanmac> canton7: about strings and object_id ... frozen string literals also share the same object id ;P
<canton7> poisonarms, so if I create the string "test" twice, I get two different objects
nomenkun has quit [Read error: Connection reset by peer]
BSaboia has quit [Ping timeout: 246 seconds]
kalesage has quit [Quit: ThrashIRC v2.9 sic populo comunicated]
<canton7> Hanmac, ooh cool!
Barrin6 has joined #ruby
nomenkun has joined #ruby
<Hanmac> canton7: there is the new "str"f syntax for in ruby2.1
dustyfields has quit [Remote host closed the connection]
<poisonarms> canton7, but :test assigned to multiple variables is always :test?
<canton7> poisonarms, but if I refer to the symbol :test twice, ruby makes sure that it's always the same object
<canton7> so `a = :test; b = :test` is the same as `a = :test; b = a`
<poisonarms> Gotcha.
<poisonarms> And so, :symbol => 'Some whatever' ?
<canton7> Hanmac, yeah, people didn't seem too happy with that syntax
conner has quit [Ping timeout: 245 seconds]
<canton7> poisonarms, and so? you're using a symbol as a key in a hash
<poisonarms> Okay
<poisonarms> Gotcha
chairabanta has quit [Quit: Leaving...]
<poisonarms> That's what I figured was going on.
<canton7> cool
<Hanmac> poisonarms: did you have other languages experimence? like C ? ... if yes just thing about symbols as the enum type
<poisonarms> Yea I have other language experience.
<poisonarms> symbol just always seemed weird to me.
boxmein_ has joined #ruby
boxmein_ has quit [Max SendQ exceeded]
<canton7> fun fact: if you've got a website in ruby, which automatically creates symbols from user input, a mailcious user can keep creating symbols until your server runs out of memory
Xeago_ has quit [Ping timeout: 264 seconds]
boxmein_ has joined #ruby
boxmein_ has quit [Max SendQ exceeded]
<Hanmac> canton7: yeah *point and laugth about rails*
<canton7> rails does that? ouch
boxmein_ has joined #ruby
nomenkun has quit [Ping timeout: 240 seconds]
akemrir has joined #ruby
<Hanmac> i did some times ... but mostly the problem is that they pipe user input unchecked into yaml ...
<Tearan> canton7: Tell me more about that please
marcdel has quit [Quit: Textual IRC Client: www.textualapp.com]
<Hanmac> it did
boxmein_ has quit [Client Quit]
<canton7> yeah, I heard about the YAML one
marcdel has joined #ruby
<Tearan> how do you do that?
<Hanmac> Tearan: he means on ruby, like in very other language too, you need to check the user input because it could break your system
<Tearan> *nods*
<canton7> Tearan, hmm? since the symbol table can never be cleared out, every symbol ever created lives on in it. so just created a ton of massive symbols, and they all sit around taking up memory
<Tearan> I'm a qa engineer. I'm interested in HOW it does that
<Tearan> I tont understand yet
<canton7> what don't you understand?
<Tearan> don't, even
akemrir has quit [Client Quit]
michael_mbp is now known as zz_michael_mbp
boxmein has quit [Ping timeout: 264 seconds]
Ox6abe has quit [Remote host closed the connection]
<Tearan> How you would feed data, and what kind of places would be vulnerable. Just any input field?
<canton7> if the framework, or part of the website, creates a symbol from some bit of user input
BizarreCake has quit [Ping timeout: 246 seconds]
Ox6abe has joined #ruby
<Tearan> so for example of you took search parameters and made them into symbols?
<canton7> sure, or you create a hash of {form field name => value}, and wanted the hash keys to be symbols
<Tearan> I'm just trying to think of a usecase
<Tearan> ok, so anyplace you can potentially create an array of stuff
yacks has quit [Quit: Leaving]
Ox6abe has quit [Ping timeout: 253 seconds]
workmad3 has joined #ruby
endash has joined #ruby
mayorga_ has quit [Quit: Leaving]
T_T has joined #ruby
<nhmood> apeiros : If I want to use that method of having a DefaultOptions hash, where would I define/declare that
<canton7> or say you have, somewhere, an internal hash of {symbol => string} relationships, where are used to populate a <select> element, with the hash's keys becoming the <option>'s value field. The user submits the form, and you want to use the submitted value of the <select> as a key in the aforementioned hash. So you turn it into a symbol, to index into the hash
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
raphaelivan has quit [Quit: Leaving.]
ewnd9 has quit [Ping timeout: 245 seconds]
<nhmood> apeiros : The method is a static method inside of Class Foo lets say
freerobby has joined #ruby
<nhmood> apeiros : Would it be better to declare inside the method itself or inside the Class as a sort of global? (I'm new to Ruby, still learning how these things should be organized)
kmurph has joined #ruby
PragCypher has joined #ruby
petey has joined #ruby
coderhs has quit [Ping timeout: 252 seconds]
gazzik has quit [Read error: Connection reset by peer]
freerobby has quit [Ping timeout: 245 seconds]
threesome has quit [Ping timeout: 245 seconds]
<apeiros> nhmood: within the class where you want to use it
iliketurtles has quit [Quit: zzzzz…..]
lfox has quit [Quit: ZZZzzz…]
<apeiros> whether a class- or instance-method uses it doesn't matter. both can see it.
dangerousdave has joined #ruby
yacks has joined #ruby
kmurph has quit [Read error: Connection reset by peer]
<nhmood> apeiros : Do I need to declare it with $default_options, or would just defining it inside the class (without any prepending symbol (@/$)) be enough?
boboc has joined #ruby
<boboc> how to check if a string represents a binary number in Ruby?
PragCypher has quit [Remote host closed the connection]
zz_michael_mbp is now known as michael_mbp
deens has quit [Quit: deens]
<canton7> erm, you mean see if it contains just 0's and 1's?
lfox has joined #ruby
PragCypher has joined #ruby
drumsrgr8forn8_ has quit [Ping timeout: 240 seconds]
tatsuya_o has joined #ruby
deens has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
nfk has quit [Quit: yawn]
michael_mbp is now known as zz_michael_mbp
zmike has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
tatsuya_o has joined #ruby
tjbiddle has joined #ruby
Davey has joined #ruby
arietis has joined #ruby
zmike has quit [Client Quit]
gazzik has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
cih has joined #ruby
KobraKao has joined #ruby
KobraKao has quit [Read error: Connection reset by peer]
<apeiros> nhmood: just start it with an uppercase letter
<apeiros> so it is a constant
<apeiros> boboc: use a regex
scottstamp is now known as zz_scottstamp
<boboc> apeiros: i did :) /^[01]+$/.match(s)
Evixion has quit [Read error: Connection reset by peer]
<apeiros> boboc: use \A instead of ^ and \z instead of $
<apeiros> ^$ relates to line, not string
<apeiros> but other than that - seems fine
T_T has quit [Remote host closed the connection]
Evixion has joined #ruby
T_T has joined #ruby
lord1234 has joined #ruby
<boboc> apeiros: how can i convert a binary string to a decimal nr? in both cases then only 1010 are used and when 0b1010 is used with 0b prefix?
dangerousdave has quit [Read error: Connection reset by peer]
<apeiros> boboc: to_i(2)
<apeiros> or Integer(str,2)
dangerousdave has joined #ruby
<apeiros> not sure to_i(2) deals with the 0b prefix
jefflyne2 has quit [Ping timeout: 245 seconds]
<apeiros> seems like it does
<boboc> thanks
<apeiros> yw
<boboc> no, you're right, to_i(2) doesn't work with prefix
<boboc> but Interger(str,2) works fine
<boboc> thanks again
T_T has quit [Ping timeout: 246 seconds]
poisonarms has quit [Ping timeout: 245 seconds]
ehaliewicz has quit [Remote host closed the connection]
codecop has quit [Remote host closed the connection]
xkickflip has quit [Ping timeout: 246 seconds]
<apeiros> hm? works with ruby2
brianpWins has quit [Quit: brianpWins]
<apeiros> >> "0b101011".to_i 2
<eval-in> apeiros => 43 (https://eval.in/52858)
<apeiros> 19>> "0b101011".to_i 2
<eval-in> apeiros => 43 (https://eval.in/52859)
<apeiros> 18>> "0b101011".to_i 2
<eval-in> apeiros => 43 (https://eval.in/52860)
<apeiros> seems 1.8 through 2.0 all deal properly with the prefix
T_T has joined #ruby
NicolasTarzia has joined #ruby
senayar_ has joined #ruby
codecop has joined #ruby
<r0bgleeson> 10>> "0b101011".to_i(2)
<eval-in> r0bgleeson => /tmp/execpad-18d0245bd4dd/source-18d0245bd4dd:3: syntax error ... (https://eval.in/52861)
robustus has quit [Ping timeout: 264 seconds]
<r0bgleeson> a syntax error?
carlyle has quit [Remote host closed the connection]
<r0bgleeson> rescue Exception => e
ananthakumaran has quit [Quit: Leaving.]
<r0bgleeson> i guess the wrapper script is broke
<r0bgleeson> 10>> 1
<eval-in> r0bgleeson => /tmp/execpad-2800ba2fd5ff/source-2800ba2fd5ff:3: syntax error ... (https://eval.in/52862)
<r0bgleeson> k
robustus has joined #ruby
senayar has quit [Ping timeout: 245 seconds]
mengu has quit [Remote host closed the connection]
decoponio has quit [Quit: Leaving...]
mengu has joined #ruby
khushildep has quit [Quit: khushildep]
nathancahill has joined #ruby
iamjarvo has joined #ruby
IceyEC has joined #ruby
NicolasTarzia has quit [Quit: Leaving]
boboc has quit [Remote host closed the connection]
NicolasTarzia has joined #ruby
petey has quit [Remote host closed the connection]
pwh has quit []
SilverKey has quit [Quit: Zzzzzz.]
mengu has quit [Ping timeout: 264 seconds]
ehc has quit [Quit: ehc]
<Morrolan> r0bgleeson: No, that syntax isn't supported by Ruby 1.0.
iamjarvo has quit [Remote host closed the connection]
petey_ has joined #ruby
nfk has joined #ruby
<Morrolan> 10>> 1+1
<eval-in> Morrolan => /tmp/execpad-a04901242426/source-a04901242426:3: syntax error ... (https://eval.in/52871)
iamjarvo has joined #ruby
Xeago_ has joined #ruby
<Morrolan> Works just fine. Except that, erm, it behaves slightly different than recent versions. :P
T_T has quit [Remote host closed the connection]
<Morrolan> Oh, wait.
p8952 has quit [Remote host closed the connection]
T_T has joined #ruby
<Morrolan> Okay, combination of two things. One being 1.0 not supporting the 0b... notation, the other being that the bot seems to do something funky.
DanKnox is now known as DanKnox_away
w3pm has joined #ruby
p8952 has joined #ruby
<Freeaqingme> Does anyone know what this operator does? ||=
staafl has joined #ruby
brianpWins has joined #ruby
iamjarvo has quit [Ping timeout: 260 seconds]
Xeago_ has quit [Ping timeout: 245 seconds]
petey_ has quit [Ping timeout: 264 seconds]
T_T has quit [Read error: Operation timed out]
<Morrolan> x ||= 5 sets x to 5, if x is nil or false.
<Morrolan> Lazy initialization. Just don't use it with things which might be false.
mac___ has joined #ruby
Squarepy has quit [Quit: Leaving]
<Freeaqingme> x = false; x ||= true; results in x being true Morrolan ?
<Morrolan> Yep.
<Freeaqingme> ; being a command separator
arietis has quit [Quit: Computer has gone to sleep.]
<Freeaqingme> aight. tnx!
<Morrolan> :)
w3pm has quit [Client Quit]
nouitfvf has quit [Ping timeout: 245 seconds]
<Mon_Ouie> Yes, the eval-in script wasn't written with 1.8 in mind probably
aryaching has quit [Ping timeout: 264 seconds]
arietis has joined #ruby
marcdel has joined #ruby
Al___ has joined #ruby
staafl has quit [Read error: Operation timed out]
dkamioka has joined #ruby
staafl has joined #ruby
fijimunkii has joined #ruby
ericmathison has joined #ruby
San1ty_ has quit [Read error: Connection reset by peer]
boxmein has joined #ruby
mrnugget has joined #ruby
mrnugget has quit [Client Quit]
sniffingcats has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
freerobby has joined #ruby
dkamioka has quit [Ping timeout: 256 seconds]
w3pm has joined #ruby
Mars` has joined #ruby
aspires has joined #ruby
freerobby has quit [Ping timeout: 245 seconds]
cih has quit [Remote host closed the connection]
yekta has joined #ruby
amacgregor has quit [Read error: Connection reset by peer]
amacgregor has joined #ruby
forced_request has joined #ruby
xkickflip has joined #ruby
gazzik has quit [Remote host closed the connection]
boxmein is now known as [boxmein]
freerobby has joined #ruby
noopq has quit [Ping timeout: 240 seconds]
mikepack has quit [Remote host closed the connection]
marcdel has quit [Remote host closed the connection]
mikepack has joined #ruby
marcdel has joined #ruby
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
Mars` has quit [Remote host closed the connection]
Mars` has joined #ruby
notjohn has joined #ruby
marcdel has quit [Client Quit]
<sarmiena_> can someone help me figure out why my block isn't returning expected results? http://hastebin.com/yewujivevi.vala
Mars` has quit [Ping timeout: 252 seconds]
<popl> could you paste it to gist or some other pastebin that doesn't require me to use js please?
tomzx_mac has quit [Ping timeout: 246 seconds]
<sarmiena_> popl: sure sec
<nhmood> Is it acceptable to have the functionality of a Class run inside the initialize method? Or is it common practice to have initialize setup the parameters then call a .run method
<apeiros> sarmiena_: because block_given? is from the outer scope
<apeiros> use block ? block.call : prefix
<shevy> nhmood I usually bundle things into a run method when a class becomes larger
<sarmiena_> apeiros: but it's still hitting the block_given case.. but it's just returning nil
<apeiros> sarmiena_: pretty sure it doesn't
<apeiros> it returns nil because prefix is nil
<sarmiena_> ahhhhhh smart man
deens has quit [Quit: deens]
<sarmiena_> apeiros: lemme verify
<apeiros> Illetye
<sarmiena_> you are correct!
Alina-malina has quit [Ping timeout: 240 seconds]
<apeiros> ofcourseiam
<sarmiena_> :)
<popl> that's why he's got the hat
<apeiros> iamwhatiamandthatscorrect!
<nhmood> shevy : Is there an advantage of separating out the initialization (setting up parameters, error checking input, ect) from the "run" functionality?
<apeiros> popl: damn man, you just shocked me. I thought I had still my wizard hat on.
<nhmood> shevy : Or I guess better question is "what is the advantage of..."
<apeiros> nhmood: it makes your code more glittery and shiny
<popl> apeiros: I'm a shocking individual.
<nhmood> shevy : Haha that is a good reason
<shevy> nhmood I can initialize the object step by step, and once done call #run on it. when I use #run though I also often have a #reset method
<apeiros> sarmiena_: any reason you use define_method instead of def?
<sarmiena_> iterating through a list of methods & don't want to define each one
<sarmiena_> apeiros: ^
schaerli has joined #ruby
forcefsck has quit [Remote host closed the connection]
<shevy> nhmood for small classes it is not really worth it though
<shevy> every method adds at least three lines to your file!
Alina-malina has joined #ruby
bsaboia_ has joined #ruby
<popl> nhmood: another advantage is that it makes your code easier for humans to parse
mac___ has quit [Read error: Connection reset by peer]
<shevy> nhmood perhaps you could use a struct
nfk has quit [Quit: yawn]
<shevy> Sword = Struct.new(:length, :weight)
freerobby has quit [Quit: Leaving.]
<shevy> sword = Sword.new(120, 4.5) # => #<struct Sword length=120, weight=4.5>
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
mac___ has joined #ruby
Matriks has joined #ruby
<nhmood> I was just wondering what the convention was thanks
<nhmood> I think you are right, separating them out is a good idea
choobie has joined #ruby
joshu has quit [Ping timeout: 240 seconds]
<shevy> there is not really a convention
<shevy> there is ruby code out there in the wild that truly scares me
<apeiros> sarmiena_: you omitted .call in ? block :
atno has joined #ruby
mac___ has quit [Remote host closed the connection]
<popl> just "what will prevent the next person who reads my code from hunting me down and harming me?"
<shevy> nhmood one reason I like small methods is that you can build on top of them like lego building blocks
<sarmiena_> apeiros: these are class methods. need to be eval'd at the instance level for a rails controller
<shevy> and it is often more logical, unless perhaps you have long method names
mac___ has joined #ruby
<shevy> really_remove_this_damn_directory_now_but_check_first()
marcdel has joined #ruby
<apeiros> sarmiena_: you still need to call the block :-p
<nhmood> sehvy : lol I'll try to refrain from method names like that :P
danshultz has joined #ruby
<nhmood> popl : Great reason to do things correctly
<popl> nhmood: fear of death is a well-known, historical motivator
<popl> :)
joshu has joined #ruby
cj3kim has joined #ruby
danshultz has quit [Client Quit]
Guest92381 has quit [Read error: Connection reset by peer]
pwh has joined #ruby
danshultz has joined #ruby
<sarmiena_> apeiros: at the instance level. not the class level, though
mac___ has quit [Ping timeout: 240 seconds]
sectionme has joined #ruby
<sarmiena_> apeiros: https://gist.github.com/sarmiena/6845700 look at bottom
mengu has joined #ruby
Squarepy has joined #ruby
zz_scottstamp is now known as scottstamp
joshu has quit [Ping timeout: 240 seconds]
sniffingcats has quit [Quit: Til rivido Idisti!]
<sarmiena_> forgot to check if value was hash, but you get the idea
cj3kim has quit [Remote host closed the connection]
schaerli has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
adambeynon has joined #ruby
nfk has joined #ruby
schaerli has joined #ruby
<shevy> am I the only one to find it hard to work with data structures where arrays are put into hashes which are put into arrays into one big hash...
sectionme has quit [Ping timeout: 260 seconds]
zz_michael_mbp is now known as michael_mbp
scmaccal has joined #ruby
scmaccal has quit [Excess Flood]
beaky has joined #ruby
<beaky> hello
scmaccal has joined #ruby
scmaccal has quit [Excess Flood]
<beaky> does ruby string handle unicode
Hanmac has quit [Ping timeout: 241 seconds]
<MrZYX> yes
marcdel_ has joined #ruby
schaerli has quit [Read error: Operation timed out]
Ziarkaen` has quit [Ping timeout: 252 seconds]
dash_ has joined #ruby
kaspergrubbe has joined #ruby
<shevy> beaky you can specify an Encoding in a .rb file in several ways. one way is magic comment close to the top of the file
michael_mbp is now known as zz_michael_mbp
marcdel has quit [Quit: marcdel]
<shevy> # Encoding: ASCII
<beaky> ah
jarm has joined #ruby
notjohn has quit [Quit: notjohn]
gimlilongbow has joined #ruby
gimlilongbow has quit [Client Quit]
<shevy> but you can also set the encoding of a string at runtime
<shevy> "blä".force_encoding("ASCII-8BIT")
notjohn has joined #ruby
<shevy> hmm
<shevy> "blä".force_encoding("US-ASCII")
<shevy> official encoding docu http://ruby-doc.org/core-2.0.0/Encoding.html
admin0 has joined #ruby
Xeago_ has joined #ruby
dash_ has quit [Ping timeout: 240 seconds]
brianpWins has quit [Quit: brianpWins]
kvirani has quit [Remote host closed the connection]
kaspergrubbe has quit [Ping timeout: 260 seconds]
Inside has quit [Ping timeout: 240 seconds]
kvirani has joined #ruby
joshu has joined #ruby
felipec has joined #ruby
<felipec> any developers around can explain why the patch to fix strptime() is not applied?
jarm has quit [Ping timeout: 260 seconds]
beaky has quit [Quit: leaving]
Xeago_ has quit [Ping timeout: 246 seconds]
<MrZYX> I think there are usually more language devs around at #ruby-lang
badquanta has quit [Ping timeout: 245 seconds]
pwh has quit []
kvirani has quit [Ping timeout: 248 seconds]
Xeago has quit [Ping timeout: 260 seconds]
Dreamer3 has joined #ruby
scarolan_ has joined #ruby
Xeago has joined #ruby
cj3kim has joined #ruby
<felipec> MrZYX: thanks
rickmasta has joined #ruby
<shevy> we must overthrow #ruby-lang
[Rickmasta] has quit [Ping timeout: 240 seconds]
cj3kim has quit [Remote host closed the connection]
scarolan has quit [Ping timeout: 260 seconds]
tomzx_mac has joined #ruby
danshultz has quit [Remote host closed the connection]
Inside has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Remote host closed the connection]
DaZ has quit [Ping timeout: 246 seconds]
zarubin has quit [Ping timeout: 246 seconds]
nathancahill has quit [Quit: nathancahill]
<shvelo> aye!
Dreamer3 has quit [Read error: Connection reset by peer]
DaZ has joined #ruby
mansi has quit [Remote host closed the connection]
serp` has quit [Quit: serp`]
<Hanmac1> shevy my name is standing in the ruby CHANGELOG ;P
mansi has joined #ruby
Hanmac1 is now known as Hanmac
<MrZYX> Hanmac code in ruby core? we're doomed...
v1n has joined #ruby
<shevy> lol
<MrZYX> ok, stdlib. there's a little bit of hope
carraroj has quit [Quit: Konversation terminated!]
workmad3 has quit [Ping timeout: 245 seconds]
dallasm has quit [Remote host closed the connection]
Davey has quit [Quit: Computer has gone to sleep.]
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
<Hanmac> i overtake in small steps ;P
mansi has quit [Ping timeout: 264 seconds]
<Hanmac> MrZYX: what do you think about this? http://www.kickstarter.com/projects/mightyno9/mighty-no-9
Dreamer3 has joined #ruby
ravster has joined #ruby
<MrZYX> I think that I use games a replacement/extension to movies and books. I play them for the story and much less for the challenge
<MrZYX> *as a
<Dwarf> I have an error when updating my gems: https://gist.github.com/anonymous/5c5690aba2b264b3288d
kofno has quit [Ping timeout: 264 seconds]
<MrZYX> that is aborting the installation?
<MrZYX> doesn't just the doc generation fail?
tonni has joined #ruby
<MrZYX> just get rid of this darkfish thingy, it appears to be broken
saarinen has joined #ruby
<Dwarf> It just quits after
Guest66192 has quit [Ping timeout: 240 seconds]
<Dwarf> strange stuff
<Dwarf> Oh well
tjbiddle has quit [Ping timeout: 260 seconds]
VTLob has quit [Quit: VTLob]
gja has joined #ruby
agent_white has joined #ruby
xkickflip has quit [Ping timeout: 245 seconds]
HalfMadDad has quit [Quit: Leaving]
Guest66192 has joined #ruby
tjbiddle has joined #ruby
amacgregor has quit [Ping timeout: 260 seconds]
raphaelivan has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
admin0 has quit [Quit: admin0]
dhruvasagar has joined #ruby
Davey has joined #ruby
saarinen has quit [Read error: Connection reset by peer]
xkickflip has joined #ruby
dkamioka has joined #ruby
saarinen has joined #ruby
siekoku has joined #ruby
Al___ has quit [Quit: Al___]
Mars` has joined #ruby
Mars` has quit [Read error: Connection reset by peer]
Mars` has joined #ruby
DaZ has quit [Ping timeout: 264 seconds]
dangerousdave has quit [Quit: Leaving...]
pencilcheck has joined #ruby
pen has quit [Ping timeout: 240 seconds]
tonni has quit [Remote host closed the connection]
DaZ has joined #ruby
kaspergrubbe has joined #ruby
saarinen has quit [Quit: saarinen]
xk_id has quit [Quit:
DaZ has quit [Ping timeout: 264 seconds]
mac___ has joined #ruby
saarinen has joined #ruby
jarm has joined #ruby
atno has quit [Ping timeout: 246 seconds]
brennanMKE has joined #ruby
Mars` has quit [Remote host closed the connection]
Mars` has joined #ruby
notjohn has quit [Quit: notjohn]
admin0 has joined #ruby
notjohn has joined #ruby
bsaboia_ has quit [Ping timeout: 256 seconds]
bret has joined #ruby
saarinen has quit [Quit: saarinen]
kirun has quit [Quit: Client exiting]
Mars` has quit [Ping timeout: 240 seconds]
SkuliOskarsson has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
Xeago_ has joined #ruby
Dreamer3 has quit [Read error: Connection reset by peer]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bsaboia_ has joined #ruby
Valesk has joined #ruby
zz_tsykoduk is now known as tsykoduk
mac___ has quit [Remote host closed the connection]
mac___ has joined #ruby
xk_id has joined #ruby
kvirani has joined #ruby
Xeago_ has quit [Ping timeout: 256 seconds]
tonni has joined #ruby
volty has joined #ruby
admin0 has quit [Quit: admin0]
xk_id has quit [Remote host closed the connection]
xk_id has joined #ruby
DanKnox_away is now known as DanKnox
relix has joined #ruby
tonni has quit [Remote host closed the connection]
Targen_ has quit [Ping timeout: 260 seconds]
aspires has quit [Quit: aspires]
emergion has joined #ruby
gyzmodo has quit []
tomzx_mac has quit [Ping timeout: 245 seconds]
xkickflip has quit [Read error: Operation timed out]
MrZYX is now known as MrZYX|off
xkickflip has joined #ruby
choobie has quit [Quit: choobie]
Dreamer3 has joined #ruby
robert_ has quit [Read error: Connection reset by peer]
mansi has joined #ruby
kvirani has quit [Remote host closed the connection]
kvirani has joined #ruby
<pontiki> the mouse returns
bsaboia_ has quit [Ping timeout: 264 seconds]
byprdct has joined #ruby
<apeiros> hello tiki
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Davey has quit [Quit: Computer has gone to sleep.]
nerdy has joined #ruby
Es0teric has joined #ruby
conner has joined #ruby
mansi has quit [Ping timeout: 245 seconds]
kvirani has quit [Ping timeout: 248 seconds]
dkamioka has quit [Remote host closed the connection]
aspires has joined #ruby
Mars` has joined #ruby
brennanMKE has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 252 seconds]
xk_id has quit [Quit:
v1n has quit [Ping timeout: 264 seconds]
aspires has quit [Client Quit]
aspires has joined #ruby
mjs2600 has quit [Quit: leaving]
kvirani has joined #ruby
xk_id has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
brennanM_ has joined #ruby
lord1234 has quit [Quit: Leaving.]
kvirani has quit [Remote host closed the connection]
kvirani has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
swordsmanz has quit [Quit: swordsmanz]
kaspergrubbe has joined #ruby
xk_id has quit [Client Quit]
Mars` has quit [Ping timeout: 260 seconds]
sectionme has joined #ruby
m8 has quit [Quit: Sto andando via]
Valesk has quit [Remote host closed the connection]
Valesk has joined #ruby
dzhulk1 has quit [Quit: Leaving.]
dzhulk has joined #ruby
seoNinjaWarrior has joined #ruby
claymore has quit [Quit: night]
kvirani has quit [Ping timeout: 248 seconds]
tjbiddle has quit [Quit: tjbiddle]
kaspergrubbe has quit [Ping timeout: 260 seconds]
sectionme has quit [Read error: Operation timed out]
RichardBaker has joined #ruby
RichardBaker has quit [Client Quit]
conner has quit [Read error: Operation timed out]
Dreamer3 has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
niklasb has joined #ruby
kaspergrubbe has joined #ruby
fixl has joined #ruby
saarinen has joined #ruby
mercwithamouth has joined #ruby
Xeago has quit [Remote host closed the connection]
tatsuya_o has quit [Remote host closed the connection]
cads has joined #ruby
[boxmein] is now known as boxmein
Xeago has joined #ruby
tatsuya_o has joined #ruby
Davey has joined #ruby
codecop has quit [Quit: Išeinu]
scarolan_ has quit [Ping timeout: 246 seconds]
Xeago has quit [Ping timeout: 240 seconds]
tatsuya_o has quit [Ping timeout: 260 seconds]
yekta has quit [Quit: yekta]
aboudreault has left #ruby ["Leaving"]
byprdct has quit [Read error: Connection reset by peer]
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
Spleeze has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby
sepp2k1 has joined #ruby
kaspergrubbe has quit [Ping timeout: 246 seconds]
Inside has quit [Ping timeout: 240 seconds]
raphaelivan has quit [Quit: Leaving.]
elaptics is now known as elaptics`away
sepp2k has quit [Ping timeout: 256 seconds]
Mars` has joined #ruby
baroquebobcat has joined #ruby
mengu has quit [Remote host closed the connection]
mengu has joined #ruby
Dreamer3 has joined #ruby
DanKnox is now known as DanKnox_away
Xeago has joined #ruby
saarinen has quit [Quit: saarinen]
siekoku has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
rubyracer has quit [Quit: Konversation terminated!]
schaerli has joined #ruby
apeiros has joined #ruby
mengu has quit [Ping timeout: 240 seconds]
veinofstars has quit [Ping timeout: 241 seconds]
schaerli has quit [Remote host closed the connection]
schaerli has joined #ruby
Xeago has quit [Ping timeout: 264 seconds]
jibi has quit [Quit: .]
schaerli has quit [Ping timeout: 240 seconds]
Atrumx has quit [Quit: Quitting]
kofno has joined #ruby
siwica has quit [Ping timeout: 246 seconds]
Guest69093 has joined #ruby
<Guest69093> please ping me emails to invite to igdb.com (ruby driven).
siwica has joined #ruby
lfox has quit [Quit: ZZZzzz…]
dkamioka has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
kaspergrubbe has joined #ruby
DanKnox_away is now known as DanKnox
mansi has joined #ruby
colonolGron has quit [Quit: Lost terminal]
nwertman_ has quit [Ping timeout: 245 seconds]
lord1234 has joined #ruby
lord1234 has left #ruby [#ruby]
sailias has joined #ruby
tonni has joined #ruby
zeropx has quit [Quit: zeropx]
w33dWizard[420] is now known as BraddPitt
mansi has quit [Ping timeout: 252 seconds]
boxmein has quit [Quit: [02:26.00] <Ristovski> mozzarella filofax fadget]
Ox6abe has joined #ruby
DanKnox is now known as DanKnox_away
tonni has quit [Ping timeout: 264 seconds]
jlebrech has joined #ruby
predator217 has quit [Ping timeout: 246 seconds]
smlgs has quit [Remote host closed the connection]
mansi has joined #ruby
predator117 has joined #ruby
<jb41> what is the most ruby and fastes way to get from array A values, when indexes of the values to take are in array B
maletor has joined #ruby
Clooth has joined #ruby
nisstyre has joined #ruby
<jb41> the fastes way is important here
kilophoton has quit [Quit: leaving]
staafl has quit [Ping timeout: 245 seconds]
<pontiki> so array a is like: [27, 2, 13, 'banana', :zig], and b is [2,5] ?
<volty> b.map { |i| a[i] }
<jb41> jep
<jb41> omg ;d
<jb41> sometimes simplicity of ruby is confusing. I was thinking about inject, making new array, blah, blah, blah
<pontiki> heh
<jb41> but it's just map
<pontiki> many times, if i'm thinking inject/reduce, there's a map
<jb41> yes
<pontiki> i love reduce
<IceDragon> >.> does the C Api have something like rb_str_to_sym(my_rb_str)
aspires has quit [Quit: aspires]
Banistergalaxy has quit [Ping timeout: 260 seconds]
<pontiki> but map is usually simpler
<jb41> it's really powerful
lfox has joined #ruby
Banistergalaxy has joined #ruby
dzhulk has quit [Quit: Leaving.]
<Morrolan> Map and reduce serve quite different needs. :P
<jb41> btw, pontiki: 'banana', :zig <3
<volty> i like map but hate to open the damn parenthesis for simple tasks
<Morrolan> volty: Can use do end, if you prefer. :)
SkuliOskarsson has quit [Quit: SkuliOskarsson]
<jb41> there is &:method_name
<volty> Morrolan: i hate that couple much more :)
<Morrolan> Hehe.
<volty> jb41: not enough if you have to pass other params
<jb41> right
<pontiki> <curtsey
<volty> i did my bmap { "<#{self}>" } // ["ruby"] -> ["<ruby>"]
Guest69093 has quit [Remote host closed the connection]
snearch has joined #ruby
<volty> touch that was a collateral block eval when coding for passing just params
<volty> s/touch/though/
scmaccal has joined #ruby
scmaccal has quit [Excess Flood]
scmaccal has joined #ruby
scmaccal has quit [Remote host closed the connection]
nwertman_ has joined #ruby
aspires has joined #ruby
scmaccal has joined #ruby
scmaccal has quit [Excess Flood]
kaspergrubbe has quit [Remote host closed the connection]
cads has quit [Read error: Operation timed out]
<ravster> hey all, could someone point me to a guide to getting Faraday to follow redirects?
<pontiki> no idea what faraday is
<ravster> I'm trying to get it to work with
<ravster> conn1 = Faraday.new("http://cockroach:3001") {|c|c.use FaradayMiddleware::FollowRedirects}
<ravster> buts its not doing anything
<ravster> pontiki: Faraday is an http client
rumours has quit [Quit: ZNC - http://znc.sourceforge.net]
intuxicated_ has joined #ruby
niklasb has quit [Ping timeout: 240 seconds]
intuxicated has quit [Ping timeout: 256 seconds]
snearch has quit [Quit: Verlassend]
sailias has quit [Ping timeout: 240 seconds]
tsykoduk is now known as zz_tsykoduk
yestermorn16 has joined #ruby
petey has joined #ruby
Zai00 has quit [Quit: Zai00]
Xeago has joined #ruby