apeiros changed the topic of #ruby to: Ruby 2.0.0-p353: http://ruby-lang.org (Ruby 1.9.3-p484) || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
reset has joined #ruby
rjhunter has quit [Ping timeout: 246 seconds]
Soda has quit [Read error: Connection reset by peer]
caveat- has quit [Ping timeout: 240 seconds]
culturelabs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikee_ has joined #ruby
xcv_ has quit [Remote host closed the connection]
caveat- has joined #ruby
jmccune has joined #ruby
xcv has joined #ruby
parduse has quit [Read error: Connection reset by peer]
roolo has quit [Quit: Leaving...]
rjhunter has joined #ruby
matchaw has quit [Read error: Operation timed out]
parduse has joined #ruby
parduse has quit [Read error: Connection reset by peer]
kevinykchan has joined #ruby
parduse has joined #ruby
matchaw has joined #ruby
xcv has quit [Ping timeout: 246 seconds]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
bradhe has joined #ruby
tkuchiki has joined #ruby
rjhunter has quit [Ping timeout: 260 seconds]
kevinykchan has quit [Ping timeout: 252 seconds]
parduse has quit []
matchaw_ has joined #ruby
bradhe_ has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
matchaw has quit [Ping timeout: 272 seconds]
Patchou has joined #ruby
reset has quit [Quit: Leaving...]
fomatin has joined #ruby
peshalto has quit [Quit: peshalto]
p4d4w4n has quit [Quit: This computer has gone to sleep]
parduse has joined #ruby
pwh has quit []
Tamae has quit [Ping timeout: 264 seconds]
sepp2k has quit [Quit: Leaving.]
bradhe_ has quit [Ping timeout: 264 seconds]
zigomir has quit [Ping timeout: 272 seconds]
jmccune has quit [Ping timeout: 246 seconds]
morenoh159 has quit [Ping timeout: 260 seconds]
sambao21 has joined #ruby
rjhunter has joined #ruby
parduse has quit []
sparrovv has joined #ruby
rjhunter has quit [Read error: Connection reset by peer]
rjhunter has joined #ruby
rjhunter has quit [Read error: Connection reset by peer]
parduse has joined #ruby
rjhunter has joined #ruby
sambao21 has quit [Ping timeout: 260 seconds]
jmccune has joined #ruby
sleepee has joined #ruby
parduse has quit []
rjhunter has quit [Ping timeout: 245 seconds]
sayan has quit [Ping timeout: 245 seconds]
<wildharvest> Question about tdd, If I'm using an ORM like AR/Sequel, should I test that it saves to the db in the model spec or save that for the integration test?
moneydouble has joined #ruby
peshalto has joined #ruby
hiall has joined #ruby
<MrZYX> wildharvest: don't test libs that you're using, just test your own logic
parduse has joined #ruby
<wildharvest> MrZYX: Cool. Thats what I was taught but was a little confused. Thanks.
<wildharvest> thats genuine, not snarky btw
epscy has quit [Ping timeout: 252 seconds]
rjhunter has joined #ruby
timonv has quit [Remote host closed the connection]
predator217 has joined #ruby
epscy has joined #ruby
petey has quit [Remote host closed the connection]
culturelabs has joined #ruby
zombiebit has joined #ruby
petey has joined #ruby
moneydouble has quit [Quit: Leaving.]
rjhunter has quit [Ping timeout: 260 seconds]
predator117 has quit [Ping timeout: 264 seconds]
zz_taion809 is now known as taion809
Lewix has joined #ruby
zombiebit has quit [Ping timeout: 240 seconds]
petey has quit [Ping timeout: 246 seconds]
hogeo has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
rhunter has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fomatin has joined #ruby
fomatin has quit [Client Quit]
MrZYX is now known as MrZYX|off
estebistec has joined #ruby
kobain has quit [Ping timeout: 252 seconds]
GoodTimes has quit [Ping timeout: 260 seconds]
maroloccio has quit [Quit: WeeChat 0.4.1]
kobain has joined #ruby
maroloccio has joined #ruby
timonv has joined #ruby
agjacome has quit [Ping timeout: 272 seconds]
rhunter has quit [Ping timeout: 240 seconds]
<depesz> canton7, apeiros, MrZYX|off : updated the gist. I most likely missed something, as there was quite a lot of comments/suggestions. But it should be better (a bit?) now.
<depesz> I'm going offline, but would want to thank you - you helped me a lot with it.
Lewix has quit [Remote host closed the connection]
zz_tsykoduk is now known as tsykoduk
meddle has joined #ruby
meddle has quit [Client Quit]
timonv has quit [Ping timeout: 264 seconds]
peshalto has quit [Quit: peshalto]
noyb has quit [Ping timeout: 265 seconds]
akhet has joined #ruby
timonv has joined #ruby
akhet has quit [Changing host]
akhet has joined #ruby
Spami has quit [Read error: Connection reset by peer]
akhet has quit [Client Quit]
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
Es0teric has joined #ruby
robustus has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 260 seconds]
vlad_starkov has joined #ruby
robustus has joined #ruby
drumusician has joined #ruby
k0m has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vlad_starkov has quit [Read error: Connection reset by peer]
kofno has joined #ruby
drumusician has quit [Ping timeout: 246 seconds]
kevinykchan has joined #ruby
bradhe has joined #ruby
kofno has quit [Ping timeout: 252 seconds]
moneydouble has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
estebistec has quit [Remote host closed the connection]
cbetta_afk is now known as cbetta
bigmac has joined #ruby
Hanmac has quit [Read error: Connection reset by peer]
bigmac is now known as i8igmac
xcv has joined #ruby
kevinykchan has quit [Ping timeout: 246 seconds]
Hanmac has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
moneydouble has quit [Ping timeout: 240 seconds]
mklappstuhl has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lukec has joined #ruby
GoodTimes has joined #ruby
djbender has joined #ruby
djbender has quit [Client Quit]
nfk has quit [Quit: yawn]
jamesaanderson has joined #ruby
nisstyre has quit [Read error: Connection reset by peer]
nisstyre has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
bradhe has joined #ruby
volty has quit [Quit: Konversation terminated!]
hogeo has quit [Remote host closed the connection]
timonv has joined #ruby
Lewis has joined #ruby
popl has quit [Ping timeout: 245 seconds]
bradhe has quit [Ping timeout: 264 seconds]
marr has quit [Ping timeout: 252 seconds]
dseitz has joined #ruby
<unstable> Does anyone know a good/simple DFS implementation in ruby that I can look at to learn/play with it?
<unstable> A project euler problem for example would be pretty good.
timonv has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby
Lewis has quit [Ping timeout: 246 seconds]
zombiebit has joined #ruby
psyl0n has quit [Remote host closed the connection]
brupeb_ has quit [Ping timeout: 265 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
brupeb has joined #ruby
zombiebit has quit [Ping timeout: 245 seconds]
justsee has quit [Ping timeout: 245 seconds]
rjhunter has joined #ruby
justsee has joined #ruby
pwh has joined #ruby
timonv has joined #ruby
sparrovv has quit [Quit: sparrovv]
danshultz has joined #ruby
rjhunter has quit [Ping timeout: 264 seconds]
timonv has quit [Ping timeout: 252 seconds]
cbetta is now known as cbetta_afk
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
withnale has quit [Read error: Connection reset by peer]
w4pm has joined #ruby
volty has joined #ruby
jrhe has quit [Ping timeout: 272 seconds]
morenoh159 has joined #ruby
estebistec has joined #ruby
xp_prg has quit [Quit: This computer has gone to sleep]
volty has quit [Client Quit]
lukec has quit [Quit: lukec]
morenoh159 has quit [Ping timeout: 272 seconds]
bradhe has joined #ruby
xp_prg has joined #ruby
mjs2600 has joined #ruby
sparrovv has joined #ruby
lucazi has joined #ruby
moneydouble has joined #ruby
Sourcele1s_ has quit [Ping timeout: 252 seconds]
DanBoy has joined #ruby
Briareos1 has quit [Remote host closed the connection]
ckinni has joined #ruby
tnk1 has quit [Ping timeout: 265 seconds]
heidi has joined #ruby
lucazi has quit [Ping timeout: 264 seconds]
volty has joined #ruby
moneydouble has quit [Ping timeout: 245 seconds]
havenwood has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
lucazi has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamesaanderson has joined #ruby
roadt has joined #ruby
kcombs has joined #ruby
Arzaga has joined #ruby
havenwood has joined #ruby
colonolGron has quit [Quit: Lost terminal]
hadder has quit [Remote host closed the connection]
Mohan has quit [Ping timeout: 252 seconds]
Hanmac has quit [Ping timeout: 246 seconds]
vanwassen has joined #ruby
rickruby_ has quit [Remote host closed the connection]
forced_request has quit [Read error: Connection reset by peer]
jibi has quit [Quit: .]
heidi has quit [Quit: Leaving.]
<sam113101> is it alright to use thin for production?
kitak has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
AndChat| has joined #ruby
danshultz has joined #ruby
peshalto has joined #ruby
<DanBoy> rails?
<sam113101> sinatra
Banistergalaxy has quit [Ping timeout: 272 seconds]
<DanBoy> try #sinatra
bubonicpestilen has joined #ruby
bubonicpestilen has left #ruby [#ruby]
<havenwood> sam113101: Yes, totally fine for production.
moneydouble has joined #ruby
dhruvasagar has joined #ruby
danshultz has quit [Ping timeout: 245 seconds]
<havenwood> sam113101: I prefer Unicorn, but Thin is solid.
Arzaga has quit [Quit: Computer has gone to sleep.]
Lewix has joined #ruby
<sam113101> OK
<sam113101> thanks
zombiebit has joined #ruby
tsykoduk is now known as zz_tsykoduk
threesome has quit [Ping timeout: 260 seconds]
Hanmac has joined #ruby
zombiebit has quit [Ping timeout: 245 seconds]
kofno has joined #ruby
vlad_starkov has joined #ruby
peshalto has quit [Quit: peshalto]
volty has quit [Quit: Konversation terminated!]
k0m has joined #ruby
hogeo has joined #ruby
mercwithamouth has quit [Ping timeout: 245 seconds]
peshalto has joined #ruby
Guazi has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
justsee has quit [Ping timeout: 246 seconds]
heidi has joined #ruby
dhruvasagar has quit [Ping timeout: 272 seconds]
xcv has quit [Remote host closed the connection]
eka has quit [Quit: Computer has gone to sleep.]
xcv has joined #ruby
echevemaster has joined #ruby
dhruvasagar has joined #ruby
Mohan__ has joined #ruby
xcv has quit [Read error: No route to host]
iliketurtles has quit [Quit: zzzzz…..]
rjhunter has joined #ruby
nonamehero has quit [Ping timeout: 240 seconds]
julweber_ has joined #ruby
petey has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
julweber has quit [Ping timeout: 245 seconds]
k0m has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rjhunter has quit [Ping timeout: 246 seconds]
nonamehero has joined #ruby
petey has quit [Ping timeout: 246 seconds]
amacgregor has joined #ruby
nonamehero has quit [Ping timeout: 240 seconds]
mjs2600 has quit [Remote host closed the connection]
<havenwood> DanBoy: You're a MacPorts user, right? Just added Ruby dependency auto-installation for MacPorts to ruby-install. :)
amacgregor has quit [Ping timeout: 245 seconds]
root_empire has joined #ruby
sungai_keruh has joined #ruby
<dseitz> neat, surprised that was never in there
subbyyy_ has joined #ruby
bradhe has joined #ruby
nonamehero has joined #ruby
Mohan__ has quit [Ping timeout: 264 seconds]
ambushsabre has joined #ruby
andro6778 has joined #ruby
Barrin6 has joined #ruby
bradhe has quit [Ping timeout: 260 seconds]
amoli has quit [Ping timeout: 264 seconds]
jonathanwallace has quit [Ping timeout: 245 seconds]
Guest34564 has joined #ruby
brian___ has joined #ruby
hogeo has quit [Remote host closed the connection]
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
Mohan__ has joined #ruby
Guest34564 has quit [Read error: Connection reset by peer]
andro6778 has quit [Client Quit]
mklappstuhl has quit [Remote host closed the connection]
AzizLight has quit [Ping timeout: 265 seconds]
robert_ has joined #ruby
mklappstuhl has joined #ruby
subbyyy_ has quit [Ping timeout: 265 seconds]
mklappstuhl has quit [Remote host closed the connection]
Megtastique has quit []
brunops has joined #ruby
three18ti has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
aryaching has joined #ruby
roadt has quit [Ping timeout: 272 seconds]
jonathanwallace has joined #ruby
timonv_ has joined #ruby
Monie has joined #ruby
radic has joined #ruby
w4pm has quit [Ping timeout: 245 seconds]
timonv has quit [Ping timeout: 246 seconds]
w4pm has joined #ruby
<unstable> Are there logs for this channel?
<unstable> oops, nevermind. I see the url in the topic
vlad_starkov has joined #ruby
<havenwood> unstable: http://irclog.whitequark.org/
<sungai_keruh> hi
<unstable> Hello sungai_keruh
Kricir has joined #ruby
<sungai_keruh> hello @unstable i am nubie on irc
<havenwood> sungai_keruh: welcome
vlad_starkov has quit [Read error: Connection reset by peer]
timonv_ has quit [Ping timeout: 264 seconds]
radic_ has quit [Ping timeout: 264 seconds]
<sungai_keruh> thanks @hevenwood
one_tkbx has joined #ruby
annalena has quit [Quit: Page closed]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> sungai_keruh: likely your irc client supports tab-completion, handy to <tab> the person's name you're writing to
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<one_tkbx> I'm trying to install whirlpool from gem, and this happens http://pastebin.com/0xdGEN0D
Kricir has quit [Remote host closed the connection]
ddd has joined #ruby
Kricir has joined #ruby
<sungai_keruh> thanks for trick havenwood
zombiebit has joined #ruby
<bnagy> one_tkbx: what os?
<one_tkbx> bnagy, debian
<havenwood> one_tkbx: sudo apt-get install ruby1.9.1-dev
<bnagy> ^ that
mmcdaris has joined #ruby
<one_tkbx> worked, thanks
ckinni has quit [Read error: Connection reset by peer]
ckinni has joined #ruby
sungai_keruh has quit [Quit: Leaving]
zombiebit has quit [Ping timeout: 246 seconds]
sungai_keruh has joined #ruby
Kricir has quit [Ping timeout: 264 seconds]
brian___ has quit [Quit: brian___]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
sparrovv has quit [Quit: sparrovv]
jonathanwallace has quit [Ping timeout: 265 seconds]
vlad_starkov has joined #ruby
mengu has quit [Ping timeout: 245 seconds]
danshultz has joined #ruby
subbyyy_ has joined #ruby
randomnick_ has quit [Quit: Leaving]
one_tkbx has left #ruby ["Leaving"]
fomatin has joined #ruby
chuk has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
sungai_keruh has quit [Remote host closed the connection]
krainboltgreene has joined #ruby
danshultz has quit [Ping timeout: 272 seconds]
rjhunter has joined #ruby
dagnachew has joined #ruby
subbyyy_ has quit [Ping timeout: 240 seconds]
rjhunter has quit [Ping timeout: 272 seconds]
dhruvasagar has joined #ruby
Guest6648 has quit [Ping timeout: 252 seconds]
dhruvasagar has quit [Read error: Connection reset by peer]
<unstable> https://gist.github.com/JohnTheodore/03c48739b145c696e55a .. How can this data structure parses.. so it gives me the list of all possible orientations of stackables?
brandon has joined #ruby
brandon is now known as Guest27653
bradhe has joined #ruby
roadt has joined #ruby
dagnachew has quit [Quit: Leaving]
jamesaanderson has joined #ruby
<havenwood> unstable: Take a look at the output of: #group_by { |k, _| k[/\d+/][0] }
jamesaanderson has quit [Client Quit]
<havenwood> unstable: you could map the values of ^ to what you want them to be
bradhe has quit [Ping timeout: 272 seconds]
chuk has quit [Quit: Leaving]
<havenwood> or: group_by { |k, _| k[/\d/].to_i }
browndawg has joined #ruby
<havenwood> ^ makes more sense, after a moment reflection >.>
decoponio has joined #ruby
<unstable> havenwood: I'm not sure if group_by would work with this data structure.
<havenwood> unstable: Given the input from your pastie, it does. Try: Hash[boxes.group_by { |k, _| k[/\d/].to_i }.map { |k, v| [k, Hash[v]] }]
<havenwood> unstable: ^ where `boxes` is your input above.
Yayo has joined #ruby
Barrin6 has quit [Quit: Leaving]
krainboltgreene has quit [Ping timeout: 260 seconds]
Lo^35 has joined #ruby
AzizLight has joined #ruby
Loaft has quit [Ping timeout: 264 seconds]
dseitz has joined #ruby
jamesaanderson has joined #ruby
<unstable> havenwood: I want to output all the possible sequences of boxes. So all possible sequences that start with box01 are : ["box01", "box11", "box21"] ["box01", "box12"] ["box01", "box13"]
<havenwood> unstable: The data structure appears to be a Hash. Is there some magic going on that hijacks the Hash literal?
<unstable> So there are 3 sequences.
<unstable> All sequences that start with box22 are: ["box22", "box11"] ["box22", "box12"] ["box22", "box13", "box03"] ["box22", "box03", "box11"] ["box22", "box03", "box12"] ["box22", "box03", "box13"], so there are 6 options that start with box22
<havenwood> unstable: huh? so box01 is box21 match why?
<havenwood> unstable: it has a 1?
Yayo has quit [Ping timeout: 272 seconds]
<unstable> There are 8 different boxes, and each of them has a unique set of sequences. So far I covered 2/8 with my copy/paste into here.
jamesaanderson has quit [Client Quit]
MrLinuxSwigger has joined #ruby
<MrLinuxSwigger> d
<MrLinuxSwigger> hello
<havenwood> unstable: well, if i understood the rules, getting arrays after group_by is trivial
<unstable> havenwood: Well there will be more, so for each key, it will find all the possible ways the boxes can be stacked for each key.
AzizLight has quit [Ping timeout: 245 seconds]
<havenwood> unstable: okay, starting to understand - actually looked at the vlues
<havenwood> unstable: so you want the key to map to its stackables?
laphlaw has joined #ruby
<unstable> havenwood: yes
<unstable> havenwood: I want a list of all the possible sequences.
<havenwood> unstable: Hash[boxes.map { |k, v| [k, v['stackables']] }]
ewnd9 has joined #ruby
<havenwood> unstable: those with no stackables would be empty arrays: "box11"=>[]
akhet has joined #ruby
A124 has quit [Read error: Operation timed out]
<unstable> havenwood: [ ["box22", "box11"], ["box22", "box12"], ["box22", "box13", "box03"], ["box22", "box03", "box11"], ["box22", "box03", "box12"], ["box22", "box03", "box13"], ["box01", "box11", "box21"], ["box01", "box12"], ["box01", "box13"]]
<havenwood> unstable: What's that?
priyam_ has quit [Quit: Connection closed for inactivity]
<unstable> It would be a large array, if it's empty.. it wouldn't be shown. That large array is all the boxes that start with box22 or box01, but I would also want to include the boxes that start with box02, box03, box21, box23, box11, box12, box14
<unstable> er, s/box14/box13/
lucazi has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> that is the desired output?
<unstable> So it would be a giant array with all the possible ways 3 boxes can be stacked, in their various orientations.
<unstable> havenwood: yes, but with more sequences
root_empire has quit [Remote host closed the connection]
<bnagy> mmm box stacking
<bnagy> you NP complete me
braincrash has quit [Quit: bye bye]
nonamehero has quit [Ping timeout: 240 seconds]
i8igmac has quit [Ping timeout: 240 seconds]
<havenwood> unstable: map { |_, v| v['stackables'] }.delete_if(&:empty?)
hogeo has joined #ruby
<havenwood> unstable: Good to show desired output in the gist with input ;)
braincrash has joined #ruby
rurban has quit [Read error: Connection timed out]
rurban has joined #ruby
nonamehero has joined #ruby
zombiebit has joined #ruby
mrsolo has joined #ruby
Shidash has joined #ruby
<havenwood> is box stacking a thing? i missed out. :P
subbyyy_ has joined #ruby
Lewix has quit [Remote host closed the connection]
<havenwood> i don't think i get box stacking, oh well
mojjojo has joined #ruby
zombiebit has quit [Ping timeout: 240 seconds]
<apeiros> his nick is wrong
<apeiros> should be unstapable
<MrLinuxSwigger> i prank called a pizza delivery. :D
<apeiros> oh dear
<MrLinuxSwigger> to one of my Neighbour's house
<apeiros> MrLinuxSwigger: yes, you're awesome. are you 5?
Guazi has quit []
<MrLinuxSwigger> im english
lyanchih has joined #ruby
<MrLinuxSwigger> :)
<MrLinuxSwigger> Mate
nonamehero has quit [Ping timeout: 240 seconds]
<MrLinuxSwigger> some guy from South Africa
<MrLinuxSwigger> what a joke
<MrLinuxSwigger> :>
nonamehero has joined #ruby
<MrLinuxSwigger> there we go
<MrLinuxSwigger> :)
<MrLinuxSwigger> he throws beer bottles out the second window of the flat
<MrLinuxSwigger> the constables have done nothing
rjhunter has joined #ruby
zastern has joined #ruby
iliketurtles has joined #ruby
iliketurtles has quit [Excess Flood]
<MrLinuxSwigger> trying to call Scotland Yard
bradhe has joined #ruby
<MrLinuxSwigger> pick up the damn phone
<apeiros> MrLinuxSwigger: anything ruby related?
<MrLinuxSwigger> :)
iliketurtles has joined #ruby
<MrLinuxSwigger> apeiros: i bet ya really would luv to go the yard mate. ;)
zastern has quit [Quit: WeeChat 0.4.1]
zastern has joined #ruby
<havenwood> MrLinuxSwigger: yard is great, tried it over rdoc?
<MrLinuxSwigger> :D
* apeiros off
iliketurtles has quit [Client Quit]
<havenwood> oh dear..
<MrLinuxSwigger> i luv r doc
<MrLinuxSwigger> i can't get enouhg
<MrLinuxSwigger> enough of documents
lucazi has joined #ruby
xp_prg has quit [Remote host closed the connection]
<MrLinuxSwigger> rdoc Sockets
<MrLinuxSwigger> socket programming in rub y
<MrLinuxSwigger> i think Sockets is a class
rjhunter has quit [Ping timeout: 246 seconds]
laphlaw has quit [Quit: Computer has gone to sleep.]
maroloccio has quit [Ping timeout: 252 seconds]
<havenwood> getting closer to Ruby related but gibberish territory
rickruby has joined #ruby
bradhe has quit [Ping timeout: 245 seconds]
<MrLinuxSwigger> actually if you look in each class of diffrent objec ts like Socket. You can look at the methods you can append to your cod e
rickruby_ has joined #ruby
* havenwood backs away slowly...
<MrLinuxSwigger> so havenwood
<MrLinuxSwigger> what have you done with the socket clas
<MrLinuxSwigger> class *
<havenwood> MrLinuxSwigger: I've put it in my Unix pipe and smoked it.
<MrLinuxSwigger> :)
<havenwood> MrLinuxSwigger: What have you done with the Rubies lately.
mr-rough has joined #ruby
vlad_starkov has joined #ruby
<MrLinuxSwigger> Socket.unix
ringaroses1 has quit [Ping timeout: 264 seconds]
<MrLinuxSwigger> Socket.unix ("/tmp/sock") {|sock|}
<MrLinuxSwigger> there ya go
brunops has quit [Ping timeout: 246 seconds]
<MrLinuxSwigger> havenwood:
mr-rough has quit [Client Quit]
kitak has joined #ruby
<MrLinuxSwigger> nice ruby block method
<havenwood> MrLinuxSwigger: IFuture.unix Marshal { :oh_saturday }
rickruby has quit [Ping timeout: 265 seconds]
<MrLinuxSwigger> i luv rub y
<MrLinuxSwigger> shareing code
<MrLinuxSwigger> :)
<MrLinuxSwigger> i see you got a symbol there
<MrLinuxSwigger> :oh_saturday
vlad_starkov has quit [Read error: Connection reset by peer]
failshell has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
<MrLinuxSwigger> now
<MrLinuxSwigger> lets create a algrothim that would speed up intel processors using ruby. ;)
mojjojo has quit [Quit: mojjojo]
mrsolo has quit [Quit: This computer has gone to sleep]
havenwood has left #ruby [#ruby]
lyanchih has quit [Quit: lyanchih]
<MrLinuxSwigger> octal would be faster
<MrLinuxSwigger> :)
havenwood has joined #ruby
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
petey has joined #ruby
iliketurtles has joined #ruby
<IceDragon> <MrLinuxSwigger> octal would be faster # good luck setting up a 8 state switch then
iliketurtles has quit [Excess Flood]
Megtastique has joined #ruby
failshell has quit []
_Andres has joined #ruby
jamesaanderson has joined #ruby
jamesaanderson has quit [Client Quit]
kitak has quit [Ping timeout: 246 seconds]
zz_CripperZ is now known as CripperZ
petey has quit [Ping timeout: 260 seconds]
zz_tsykoduk is now known as tsykoduk
_Andres has quit [Ping timeout: 260 seconds]
amacgregor has joined #ruby
julweber_ has quit [Remote host closed the connection]
scottstamp is now known as zz_scottstamp
sergicles has quit [Quit: sergicles]
kitak has joined #ruby
kitak has quit [Remote host closed the connection]
<CripperZ> #singapore
cndiv is now known as cndiv_afk
sergicles has joined #ruby
brunops has joined #ruby
AzizLight has joined #ruby
BizarreCake has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
noyb has joined #ruby
tsykoduk is now known as zz_tsykoduk
zz_tsykoduk is now known as tsykoduk
timonv has joined #ruby
AzizLight has quit [Ping timeout: 252 seconds]
dannymaclean has joined #ruby
amacgregor_ has joined #ruby
amacgregor has quit [Ping timeout: 246 seconds]
hellome has quit [Read error: Connection reset by peer]
laphlaw has joined #ruby
brunops has quit [Ping timeout: 260 seconds]
timonv has quit [Ping timeout: 245 seconds]
hqihvnglfk has joined #ruby
xecqwayerk has joined #ruby
rmxxwphjrx has joined #ruby
dfvcvdbpaw has joined #ruby
abjbfeogtu has joined #ruby
aisynpbbsb has joined #ruby
mtieoakpac has joined #ruby
dfvcvdbpaw has quit [Max SendQ exceeded]
mtieoakpac has quit [Max SendQ exceeded]
yowsydtlhx has joined #ruby
yowsydtlhx has quit [Max SendQ exceeded]
abjbfeogtu has quit [Max SendQ exceeded]
hqihvnglfk has quit [Max SendQ exceeded]
rmxxwphjrx has quit [Max SendQ exceeded]
aisynpbbsb has quit [Max SendQ exceeded]
xecqwayerk has quit [Max SendQ exceeded]
spergy has joined #ruby
zombiebit has joined #ruby
w4pm has quit [Ping timeout: 245 seconds]
w4pm has joined #ruby
kobain has quit [Read error: Connection reset by peer]
thelamest has quit [Ping timeout: 272 seconds]
s00pcan_ has quit [Ping timeout: 246 seconds]
Megtastique has quit []
zombiebit has quit [Ping timeout: 260 seconds]
kitak has joined #ruby
nateberkopec has joined #ruby
sergicles has quit [Quit: sergicles]
rickruby_ has quit []
jamesaanderson has joined #ruby
julweber has joined #ruby
ricardo has joined #ruby
ricardo is now known as Guest85992
bradhe has joined #ruby
thelamest has joined #ruby
Guest85992 is now known as rickruby
w4pm has quit [Ping timeout: 245 seconds]
hiyosi has quit [Ping timeout: 246 seconds]
natevick has joined #ruby
ewnd9 has quit [Ping timeout: 252 seconds]
bradhe has quit [Ping timeout: 265 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
s00pcan_ has joined #ruby
IceDragon has quit [Quit: Space~~~]
saclark has joined #ruby
julweber has quit [Ping timeout: 272 seconds]
timonv has joined #ruby
ddd has quit [Quit: OK, battery empty. Time for sleep]
laphlaw has quit [Quit: Computer has gone to sleep.]
timonv has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby
laphlaw has joined #ruby
natevick has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
brunops has joined #ruby
justsee has quit [Ping timeout: 240 seconds]
laphlaw has quit [Remote host closed the connection]
heidi has quit [Quit: Leaving.]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
saclark has left #ruby [#ruby]
nateberkopec has quit [Quit: Leaving...]
jkline has joined #ruby
brunops has quit [Changing host]
brunops has joined #ruby
browndawg has quit [Quit: Leaving.]
spergy has left #ruby [#ruby]
ewnd9 has joined #ruby
CripperZ is now known as N00D
jamesaanderson has joined #ruby
jamesaanderson has quit [Client Quit]
Lewix has joined #ruby
xue has joined #ruby
havenwood has quit [Remote host closed the connection]
endash has quit [Quit: endash]
sergicles has joined #ruby
osvico has joined #ruby
tsykoduk is now known as zz_tsykoduk
zz_tsykoduk is now known as tsykoduk
roadt has quit [Ping timeout: 246 seconds]
tsykoduk is now known as zz_tsykoduk
Sourceless has joined #ruby
kitak has quit [Remote host closed the connection]
AzizLight has joined #ruby
Azure has quit [Remote host closed the connection]
kitak has joined #ruby
kitak has quit [Remote host closed the connection]
brupeb has quit [Ping timeout: 240 seconds]
brupeb has joined #ruby
kitak has joined #ruby
mrsolo has joined #ruby
mrsolo has quit [Client Quit]
vlad_starkov has quit [Read error: Connection reset by peer]
zombiebit has joined #ruby
kitak has quit [Remote host closed the connection]
AzizLight has quit [Ping timeout: 246 seconds]
BizarreCake has quit [Read error: Connection reset by peer]
hogeo has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
ro9 has joined #ruby
sergicles has quit [Quit: sergicles]
rjhunter has joined #ruby
zombiebit has quit [Ping timeout: 272 seconds]
kitak has joined #ruby
jamesaanderson has joined #ruby
bradhe has joined #ruby
rjhunter has quit [Ping timeout: 240 seconds]
radic has quit [Ping timeout: 264 seconds]
havenwood has joined #ruby
sergicles has joined #ruby
bradhe has quit [Ping timeout: 272 seconds]
sergicles has quit [Client Quit]
jamesaanderson has quit [Ping timeout: 252 seconds]
lucazi has quit [Ping timeout: 245 seconds]
jamesaanderson has joined #ruby
Spami has joined #ruby
lucazi has joined #ruby
Kricir has joined #ruby
vlad_starkov has joined #ruby
kofno has quit [Ping timeout: 246 seconds]
Jdubs has quit [Remote host closed the connection]
hiyosi has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
petey has joined #ruby
subbyyy_ has quit [Ping timeout: 245 seconds]
kcombs has quit [Ping timeout: 252 seconds]
ro9 has quit [Ping timeout: 240 seconds]
nomenkun has joined #ruby
lukec has joined #ruby
moneydouble has quit [Quit: Leaving.]
petey has quit [Ping timeout: 264 seconds]
jkline has quit [Quit: jkline]
lukec has quit [Client Quit]
browndawg has joined #ruby
browndawg has quit [Client Quit]
ruby520 has joined #ruby
ruby520 has left #ruby [#ruby]
mikepack has quit [Remote host closed the connection]
ww26 has joined #ruby
Lewis has joined #ruby
sergicles has joined #ruby
estebistec has quit [Remote host closed the connection]
estebistec has joined #ruby
nebula has joined #ruby
zombiebit has joined #ruby
estebistec has quit [Remote host closed the connection]
moneydouble has joined #ruby
funburn has joined #ruby
zz_scottstamp is now known as scottstamp
xue has quit [Ping timeout: 245 seconds]
noyb has quit [Ping timeout: 272 seconds]
zombiebit has quit [Ping timeout: 246 seconds]
sergicles has quit [Quit: sergicles]
vlad_starkov has quit [Read error: Connection reset by peer]
iliketurtles has joined #ruby
iliketurtles has quit [Client Quit]
jalcine has quit [Excess Flood]
bradhe has joined #ruby
iliketurtles has joined #ruby
iliketurtles has quit [Excess Flood]
hogeo has joined #ruby
iliketurtles has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
rjhunter has joined #ruby
charliesome has joined #ruby
nouitfvf has quit [Ping timeout: 265 seconds]
hogeo_ has joined #ruby
hogeo has quit [Read error: Connection reset by peer]
CaptainJet has quit []
emocakes has joined #ruby
N00D is now known as zz_N00D
bradhe has quit [Ping timeout: 246 seconds]
hogeo_ has quit [Read error: Connection reset by peer]
hogeo has joined #ruby
rjhunter has quit [Ping timeout: 246 seconds]
isieo has joined #ruby
havenwood has quit [Remote host closed the connection]
timonv has joined #ruby
hogeo has quit [Ping timeout: 264 seconds]
Lewix has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
Kricir has joined #ruby
yfeldblum has joined #ruby
timonv has quit [Ping timeout: 265 seconds]
mikepack has joined #ruby
zigomir has joined #ruby
vanwassen has quit [Remote host closed the connection]
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kricir has quit [Ping timeout: 252 seconds]
bluOxigen has joined #ruby
davorb has joined #ruby
frees has joined #ruby
mikepack has quit [Ping timeout: 245 seconds]
amacgregor has joined #ruby
noyb has joined #ruby
amacgregor_ has quit [Read error: Connection reset by peer]
xcess_denied has joined #ruby
vlad_starkov has joined #ruby
sleetdrop has joined #ruby
sleetdrop has quit [Max SendQ exceeded]
sleetdrop has joined #ruby
sleetdrop has quit [Max SendQ exceeded]
xk_id has quit [Quit:
OdNairy has joined #ruby
bradhe has joined #ruby
phansch has joined #ruby
sleetdrop has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krainboltgreene has joined #ruby
zombiebit has joined #ruby
rubyracer has joined #ruby
zipper has joined #ruby
zombiebit has quit [Ping timeout: 246 seconds]
Kricir has joined #ruby
iaj has quit [Ping timeout: 246 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
Jdubs has joined #ruby
krainboltgreene has quit [Ping timeout: 252 seconds]
jamesaanderson has joined #ruby
moneydouble has quit [Quit: Leaving.]
phansch_ has joined #ruby
kofno has joined #ruby
iaj has joined #ruby
phansch has quit [Ping timeout: 245 seconds]
kofno has quit [Ping timeout: 246 seconds]
laphlaw has joined #ruby
moneydouble has joined #ruby
rjhunter has joined #ruby
hogeo has joined #ruby
threesome has joined #ruby
charliesome has joined #ruby
timonv has joined #ruby
rjhunter has quit [Ping timeout: 245 seconds]
anderson has quit [Quit: Leaving]
zipper_ has joined #ruby
h0rrorvacui has quit [Quit: Leaving]
hogeo has quit [Ping timeout: 245 seconds]
frees has quit [Remote host closed the connection]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
kitak has quit [Remote host closed the connection]
polanco has joined #ruby
<PPH> >> 'string34*$*_awdawd'.gsub(/\W|[_]+/, '-')
<eval-in> PPH => "string34----awdawd" (https://eval.in/74814)
<PPH> >> 'string34*$*_awdawd'.gsub(/\W+|[_]+/, '-')
<eval-in> PPH => "string34--awdawd" (https://eval.in/74815)
timonv has quit [Ping timeout: 246 seconds]
zipper has quit [Ping timeout: 265 seconds]
subbyyy_ has joined #ruby
<shevy> hi
Kricir has quit [Remote host closed the connection]
<PPH> hi
<shevy> is your nick PHP man
<PPH> Nope:P
Kricir has joined #ruby
shevy is now known as python
<python> hi friendssssss
<PPH> lawl
Vivekananda has quit [Remote host closed the connection]
<python> let's compare peni... I mean, languages
<python> gots this: "Decorators dynamically alter the functionality of a function, method, or class"
scottstamp is now known as zz_scottstamp
<python> is so awesome
bradhe has quit [Remote host closed the connection]
sayan has joined #ruby
bradhe has joined #ruby
amacgregor_ has joined #ruby
A124 has joined #ruby
<Hanmac> PPH: do you want this?
<Hanmac> >> 'string34*$*_awdawd'.gsub(/[\W_]+/, '-')
<eval-in> Hanmac => "string34-awdawd" (https://eval.in/74816)
<python> ssssssss
<PPH> Hanmac, yeah that's exactly what I was looking for... lol
<python> enough snaking about ...
python is now known as shevy
Kricir has quit [Ping timeout: 240 seconds]
polanco has quit [Remote host closed the connection]
amacgregor has quit [Ping timeout: 245 seconds]
<PPH> Hanmac, I was thinking \W was a class and couldn't actually be in a class
anderson has joined #ruby
<shevy> a class?
<shevy> I dont think you can specify a general class in a regex
<PPH> [class]
hershaw has joined #ruby
bradhe has quit [Ping timeout: 260 seconds]
dannymaclean has quit [Quit: dannymaclean]
<PPH> I want to convert symbols to css classes that would looks-like-this should I add a method to_css to the symbol class? lol
BizarreCake has joined #ruby
arietis has joined #ruby
<PPH> It might be a little bit drastic I guess:P
amacgregor has joined #ruby
emocakes has quit [Quit: Leaving...]
emocakes has joined #ruby
mrsolo has joined #ruby
amacgregor_ has quit [Ping timeout: 246 seconds]
mrsolo has left #ruby [#ruby]
<shevy> wat
<shevy> ah
<shevy> you mean
<shevy> >> :foo-bar
<eval-in> shevy => undefined local variable or method `bar' for main:Object (NameError) ... (https://eval.in/74817)
<shevy> >> :"foo-bar"
<eval-in> shevy => :"foo-bar" (https://eval.in/74818)
<shevy> >> :"foo-bar".class
<eval-in> shevy => Symbol (https://eval.in/74819)
<shevy> PPH if you use it more than once, perhaps
nomenkun has quit [Remote host closed the connection]
<shevy> but if you want to distribute it to other people, modifications to core classes can be annoying in large projects
<PPH> nah i mean convert :foo_bar to "foo-bar"
<Hanmac> >> :foo_bar.to_s.tr('_','-')
<eval-in> Hanmac => "foo-bar" (https://eval.in/74820)
<PPH> but no I don't mean to distribute it... lol
funburn has quit [Quit: funburn]
<jrobeson> reminds me that i wanna have thatthat for haml
<jrobeson> except built in
petey has joined #ruby
Lewis has quit [Remote host closed the connection]
<Hanmac> "need some kind of function? ruby already had it build in" ;P
<PPH> In rails I often want to render a symbol has a css class but I really don't like css class_names_with_undercores
jeffdb has joined #ruby
zombiebit has joined #ruby
petey has quit [Ping timeout: 240 seconds]
SeySayux has quit [Ping timeout: 252 seconds]
<emocakes> huh
<emocakes> PPH...
<emocakes> >> 1+1
<eval-in> emocakes => 2 (https://eval.in/74821)
julweber has joined #ruby
<emocakes> >> `uname -a`
<eval-in> emocakes => (https://eval.in/74822)
fedesilv_ has joined #ruby
<emocakes> >> `whoami`
<eval-in> emocakes => (https://eval.in/74823)
GoodTimes has quit [Ping timeout: 246 seconds]
* emocakes gives up
<PPH> lol
Lewis has joined #ruby
SeySayux has joined #ruby
fedesilva has quit [Ping timeout: 252 seconds]
zombiebit has quit [Ping timeout: 260 seconds]
<jrobeson> Hanmac, i meant built into haml.. so it'd stop turning classes into foo_bar
<jrobeson> i want foo-bar
browndawg has joined #ruby
spider-mario has joined #ruby
<jrobeson> it does it automatically for data attributes.. but nowhere else
amacgregor has quit [Ping timeout: 246 seconds]
jalcine- has joined #ruby
julweber has quit [Ping timeout: 252 seconds]
zombiebit has joined #ruby
laphlaw has quit [Quit: Computer has gone to sleep.]
sergicles has joined #ruby
<emocakes> >> %x[ps ax | awk '{ print $1 }' | xargs]
<eval-in> emocakes => (https://eval.in/74824)
<jrobeson> hah
laphlaw has joined #ruby
<emocakes> <3 shevy
<shevy> die emocakes!
<shevy> oops sorry
<shevy> wrong idiom!
<shevy> <3 emocakes
<emocakes> *hi
<emocakes> :p
* jrobeson eats emocakes
<jrobeson> now i'm all sad
<shevy> I never know in which channel I must fight and in which channel I must hug so I kinda do both at the same time
<shevy> I shall now wear a disguise and infiltrate #python ...
shevy is now known as python
emocakes is now known as shevy
<python> I keep you informed about my findingssss friendsss...
<shevy> hah!
<python> WTF
<jrobeson> that's like wearing the tshirt of the band you're going to see
<python> * Cannot join #python (You are banned).
<python> !!!
<python> hmm
python is now known as python_reloaded
<shevy> try emocakes python_reloaded
python_reloaded is now known as python
<python> lol
<python> damn it
<python> that does not work on #python
<python> emocakes go back to your old nick pls :(
<shevy> why dont you go to emocakes?
<jrobeson> python, go to emocakes
<python> no that confuses the hell outta me emocakes...
<shevy> pls, lets do roleplay
<jrobeson> that's the point.. it's supposed to be ridiculous
<shevy> i'll be shevy, you be emocakes
python is now known as emocakes
emocakes has quit [Disconnected by services]
<shevy> :D
zz_tsykoduk is now known as tsykoduk
shevy is now known as emocakes
PPH is now known as PHP
<emocakes> thats all i wanted to do
<jrobeson> hah did you ghost him?
<jrobeson> lol
<emocakes> yup
<jrobeson> you're mean
shevy has joined #ruby
shevy is now known as emocakes2
<emocakes> wb shaman42_
<emocakes> erm
<emocakes> emocakes
<emocakes> erm emocakes2
<emocakes2> omg
<jrobeson> emocakes2, you can go back to shevy now..
<jrobeson> he just wanted to ghost you
<emocakes2> * emocakes :Nickname is already in use.
<emocakes> ok so i go to shevy now?
emocakes is now known as shevy
<emocakes2> you got me disconnected! :(
emocakes2 is now known as emocakes
emocakes has quit [Disconnected by services]
<PHP> Omg I dunno who's who now!
<shevy> lol
<jrobeson> hah!
<shevy> again!/
krainboltgreene has joined #ruby
shevy2 has joined #ruby
<jrobeson> i don't think he understands irc like that
<shevy2> you did it again!
shevy is now known as emocakes
<emocakes> ok, who am i now
<emocakes> im confused
shevy2 is now known as shevy
<jrobeson> or rather.. they understand irc like that
phansch_ is now known as phansch
<jrobeson> now it's back to nromal
<shevy> phew
<emocakes> shevy, when someone steals your nick, you can ghost them
<emocakes> i.e:
<emocakes> /ns ghost <nick> <password>
<jrobeson> if you have in fact registered your nick
PHP is now known as tralala
zipper_ has quit [Ping timeout: 252 seconds]
<emocakes> yup
<tralala> yay
<shevy> hey
<jrobeson> if you haven't registered your nick.. you should
<shevy> I only idle to power on IRC
<shevy> it's not as if I learn anything :)
<jrobeson> go register your nick now if you haven't.. not kidding..
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<emocakes> yah, registering it is good to do
laphlaw has quit [Quit: Computer has gone to sleep.]
<jrobeson> i loled
<tralala> we need to be registered to get in #rubyonrails
<shevy> who goes there anyway
tralala is now known as PPH
<jrobeson> among other channels
<shevy> PPH do "/nick PHP" please
<jrobeson> you missed it already shevy ... already happened
PPH is now known as PHP
<shevy> yay!
<shevy> PHP why are you so badly designed?
<PHP> reserved tho...
* jrobeson codes in PHP
<PHP> lawl
<shevy> omg
PHP is now known as PPH
<shevy> that looked bad jrobeson
<jrobeson> i walk over to that person.. and just start pressin buttons
<shevy> lol
<jrobeson> nose.. eyes..
<jrobeson> whatever
<jrobeson> the nose is a squishy button
<jrobeson> hey.. i've coded in the actual language php before..
<shevy> and what effect does this have?
<shevy> me too
<jrobeson> people get mad
<shevy> php is annoying but you can build stuff still
<jrobeson> shevy, well it's true that many php frameworks are better designed than rubyonrails
<jrobeson> even if ruby is better than php itself
iliketurtles has quit [Quit: zzzzz…..]
brunops has quit [Ping timeout: 260 seconds]
hogeo has joined #ruby
bradhe has joined #ruby
Hanmac1 has joined #ruby
<shevy> yeah
<shevy> it reminds me of the old "worse is better" approach
culturelabs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> in php it just has to work
tsykoduk is now known as zz_tsykoduk
<shevy> it does not want to become a perfect language
timonv has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
roolo has joined #ruby
<jrobeson> shevy, that would imply that php was designed at all :)
<jrobeson> although .. it is getting a lot better now..
<shevy> it's like a melting pot
<jrobeson> even if the old crap is still around
<shevy> you throw in ideas and rarely remove old ideas
iliketurtles has joined #ruby
<jrobeson> give me objects for String and Intger and i'd be happy enough
<PPH> I read somewhere that ruby peope liked changement, python people was scared of it and php people was both... keeping old stuff and piling it with new stuff... lol
<jrobeson> changement?
iliketurtles has quit [Client Quit]
bradhe has quit [Ping timeout: 252 seconds]
<jrobeson> if that's a real word.. i'm not sure how i haven't heard it before
<sam113101> it's French
<PPH> Ah
<sam113101> it means "change"
<PPH> my bad
<jrobeson> hah .. thanks :)
<jrobeson> the python people change well enough imo..
<jrobeson> based on 3.x .. the adoption seems to be proceeding at a steady pace
<jrobeson> at least python had the option to import future stuff ..
<shevy> PPH dunno... change can be good and bad everywhere
<jrobeson> i wish ruby was changing faster myself
<shevy> some of the new things in ruby 2.x I dont like or need
timonv has quit [Ping timeout: 246 seconds]
<jrobeson> there's not a lot to 2.1..
monkegjinni has joined #ruby
<shevy> well, I include 1.9 to that too as it paved the way to it, away from good old 1.8
<jrobeson> oh.. i am so glad for 1.9 and 2 tho
<PPH> why would you chage a perfect language?:P
<shevy> yeah PPH
<jrobeson> uhmm.. no such thing
<shevy> PPH though ruby is not perfect... it is about 85% perfect
<jrobeson> ruby can be ridiculously ambiguous sometimes
<shevy> :)
<jrobeson> and sometimes you have to close your hash with {}, sometimes you dn't
<jrobeson> add a another argument at the end of what was previous parsed as a hash but without being wrapped in a {}.. and now you have to go back and wrap it
<PPH> Hash[]!
Hanmac has joined #ruby
xcess_denied has quit [Quit: Leaving...]
emocakes has quit [Quit: Leaving...]
hogeo has quit [Remote host closed the connection]
<shevy> yeah
<PPH> i wish we could do {} << :key, value :P
<shevy> what can be confusing is how things like {} are used for different things
<shevy> like hash, and blocks
<shevy> right
<shevy> why does hash not have << ?
noyb has quit [Ping timeout: 245 seconds]
<jrobeson> because it's missing whawt PPH just said
<jrobeson> need a way to assign a key .. and you can't do it with <<
Hanmac1 has quit [Ping timeout: 245 seconds]
<jrobeson> i'm not sure if that really looks better tho PPH
agjacome has joined #ruby
<PPH> I still prefer ruby over every other languages I used so far... I never tried python tho..
<jrobeson> python is nice enough
<jrobeson> PPH, have you ever looked at smalltalk ?
<PPH> yeah but I heard python was more system oriented and ruby more web oriented
<jrobeson> not suggesting that you acdtually write a program in it, but you should at least take a look at some examples for it
<PPH> jrobeson, nope
<jrobeson> PPH, ah.. i wouldn't say that's true of the language itself at all
<jrobeson> not at all
<jrobeson> not even al ittle
<jrobeson> python just happened to be in the right place to replace perl as the glue that held unix together
eka has joined #ruby
aryaching has quit []
Shidash has quit [Read error: No route to host]
<jrobeson> so people started writing system utilities in python
emocakes has joined #ruby
<jrobeson> and that stuff you mentioned about change.. that helps too. python has had a reasonable evolution.. so it makes it an easier choice to do such things
<jrobeson> it's not really inherent to the language though
Tuxist has joined #ruby
<jrobeson> and python would do just as well for web stuff.. rails just came out at the right time also
<emocakes> ruby is nearly perfect
<emocakes> bar the fact it is slow as a dog
<jrobeson> ruby being good at web stuff is mostly a circumstance of hype imo..
<emocakes> yeah
<PPH> that's the point
<emocakes> anyone used golang here?
<emocakes> i really like it
<emocakes> and its fast
<jrobeson> i only sorta like the way golang looks
A124 has quit [Remote host closed the connection]
A124 has joined #ruby
<jrobeson> i do like the convention over configuration aspect of go stuff out of the box tho
<jrobeson> it's even more strict in some ways than python is
<PPH> if i'm a sysadmin and I want to code, I'll find it easyer to get support with python, if i'm a web dev, it's gonna be easyier with ruby
<PPH> imho
Kricir has joined #ruby
<jrobeson> support? i'm not so sure .. i think you'd get decent support within python web stuff
<emocakes> golang is faassst
<jrobeson> emocakes, so is C.. and?
<jrobeson> hell. lua is really fast too
<emocakes> its not as painful as C joast
eka has quit [Ping timeout: 245 seconds]
<emocakes> *jro
<emocakes> fuck
<jrobeson> lua with jit is close enough to native C
<emocakes> jrobeson
<jrobeson> and it's interpreted..
<jrobeson> i mean duh .. sorry
<jrobeson> lol
Hanmac has quit [Ping timeout: 240 seconds]
<emocakes> lol
<jrobeson> so.. how much is of hte slowness in ruby is inherent in the language design vs the intepreter ?
Hanmac has joined #ruby
<jrobeson> the code of the interpeter*
culturelabs has joined #ruby
<jrobeson> i haven't really tried reasonable programs with rubinus 2.x yet..
<emocakes> i want to try rubinius
<emocakes> have it installed, but yeah
skaflem has joined #ruby
<jrobeson> why want.. just do
<jrobeson> emocakes, rebuild ruby in go!
<emocakes> :'(
<jrobeson> go get ti work
<jrobeson> hah
<emocakes> ruby-go
<emocakes> 2 fast 2 furious
<jrobeson> did people in australia really watch those movies?
<emocakes> the first 2
<jrobeson> are you sure you're australian?
<jrobeson> i find it hard to believe
<emocakes> i live here yes
<emocakes> why so?
<jrobeson> did you always live there?
<emocakes> because of my boyish charms?
<jrobeson> well.. the opposite of that.. but yes
<emocakes> what are you trying to say jrobeson?
<jrobeson> that you're actually american
<jrobeson> and i'd know.. becuase i live there!
<emocakes> because im annoying and obnoxious as hell?
<jrobeson> if that's how you wanna describe it..
<jrobeson> hah
kitak has joined #ruby
kitak has quit [Remote host closed the connection]
<emocakes> :p
kitak has joined #ruby
<jrobeson> i'm serious tho.. never would have guessed
<jrobeson> not serious about the american part.. just would never have guessed australia
<emocakes> i spent my formative years in australia
jkhwan has quit [Remote host closed the connection]
hogeo has joined #ruby
jkhwan has joined #ruby
kofno has joined #ruby
<jrobeson> one day i'm gonna vist your country and then likely get killed by some venomous creature
<jrobeson> or run into a roo
<emocakes> hah
<emocakes> my gf is german
<emocakes> she thinks the same thing
<emocakes> that everything is going to kill her
<emocakes> you get used to it
<emocakes> nothing will kill you really
xcess_denied has joined #ruby
<jrobeson> obviously .. i mean the population continues to grow .. you're obviously not all dying :)
<emocakes> unless you are an idiot
<jrobeson> unless the population gets replaced by expats only
<emocakes> hah
<emocakes> expats go to thailand for the ladyboys
<emocakes> or bali
<sam113101> I heard people often get molested by koalas in Australia
<jrobeson> i've known more than a few people who moved to australia
<emocakes> koalas are deadly sam113101
<sam113101> I heard they carry STDs
<jrobeson> i'm gonna let you guys fight this one out
shiva_inu has joined #ruby
jkhwan has quit [Ping timeout: 272 seconds]
<emocakes> asshole
kofno has quit [Ping timeout: 240 seconds]
<emocakes> fucking packer
<emocakes> first he is a billonaire, now he steals my miranda
<emocakes> >:(
subbyyy_ has quit [Ping timeout: 240 seconds]
<sam113101> emocakes: did you ever meet Zyzz?
nomenkun has joined #ruby
carraroj has joined #ruby
julweber has joined #ruby
jalcine- is now known as jalcine
jalcine has quit [Changing host]
jalcine has joined #ruby
Ademan has joined #ruby
nomenkun has quit [Ping timeout: 246 seconds]
peshalto has quit [Quit: peshalto]
emocakes has quit [Quit: Leaving...]
xk_id has joined #ruby
claymore has joined #ruby
jbpros has joined #ruby
moneydouble has quit [Quit: Leaving.]
Kricir has quit [Remote host closed the connection]
xk_id has quit [Client Quit]
jbpros has quit [Client Quit]
Kricir has joined #ruby
roadt has joined #ruby
Kricir has quit [Ping timeout: 245 seconds]
bradhe has joined #ruby
phansch has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
sleetdrop has quit [Quit: Textual IRC Client: www.textualapp.com]
bradhe has joined #ruby
krainboltgreene has quit [Ping timeout: 240 seconds]
rjhunter has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
wallerdev has quit [Quit: wallerdev]
jeffdb has quit [Quit: jeffdb]
bradhe has quit [Ping timeout: 260 seconds]
<Ademan> I also asked in #travis, but I want to run travis-lint... but I don't want to install it globally. I'm admittedly ignorant of most parts of ruby, but it's my understanding RVM can help me install to a quarantined environment... roughly analagous to a Python virtualenv, into which I could install the travis-lint gem, and run it from there. Is RVM my lowest path of resistance to that?
jalcine has quit [Excess Flood]
Es0teric has quit [Quit: Computer has gone to sleep.]
mengu has joined #ruby
timonv has joined #ruby
emocakes has joined #ruby
<emocakes> me and zyzzz used to bench press togehter
<emocakes> he was a fag
MrZYX|off is now known as MrZYX
<waxjar> .. nice
Hanmac1 has joined #ruby
Elhu has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
coderhs has joined #ruby
marr has joined #ruby
moneydouble has joined #ruby
lyanchih has joined #ruby
hiall has quit [Quit: hiall]
timonv has quit [Remote host closed the connection]
sparrovv has joined #ruby
moneydouble has left #ruby [#ruby]
kevinykchan has joined #ruby
nisstyre has quit [Ping timeout: 260 seconds]
banghouse has quit [Quit: What if the hokey pokey really is what it's all about?]
skaflem has quit [Read error: Connection reset by peer]
skaflem has joined #ruby
zombiebit has quit [Remote host closed the connection]
zombiebit has joined #ruby
nomenkun has joined #ruby
nomenkun has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
zombiebit has quit [Ping timeout: 246 seconds]
braincrash has quit [Ping timeout: 245 seconds]
krainboltgreene has joined #ruby
sparrovv has quit [Quit: sparrovv]
petey has joined #ruby
braincrash has joined #ruby
m8 has joined #ruby
jbpros has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
timonv has joined #ruby
eka has joined #ruby
petey has quit [Ping timeout: 246 seconds]
emocakes has quit [Quit: Leaving...]
cbetta_afk is now known as cbetta
vlad_starkov has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
amacgregor has joined #ruby
vlad_sta_ has joined #ruby
liamkeily has joined #ruby
mengu has quit [Remote host closed the connection]
<shevy> how to check if an @ivar exists?
nebula has quit [Quit: Konversation terminated!]
<MrZYX> just checking for nil doesn't work for you?
<shevy> or rather if it was defined
nebula has joined #ruby
<shevy> hmm
<shevy> let's see
<Mon_Ouie> There's defined? @foo
<shevy> it's those warnings
<shevy> warning: instance variable @cut_audio not initialized
swingha has joined #ruby
<Mon_Ouie> But why not initialize them (even to nil) in #initialize?
monkegjinni has quit [Remote host closed the connection]
<shevy> yes I can do that
emocakes has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
swingha has quit [Client Quit]
carraroj has quit [Quit: Konversation terminated!]
jragon has joined #ruby
carraroj has joined #ruby
zipper has joined #ruby
bradhe has joined #ruby
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
bradhe has quit [Ping timeout: 252 seconds]
Leighton has joined #ruby
marr has quit [Ping timeout: 246 seconds]
timonv has joined #ruby
lucazi has quit [Ping timeout: 245 seconds]
roadt has quit [Ping timeout: 245 seconds]
carraroj has quit [Quit: Konversation terminated!]
dhruvasagar has joined #ruby
lucazi has joined #ruby
timonv has quit [Ping timeout: 264 seconds]
carraroj has joined #ruby
nebula has quit [Read error: Connection reset by peer]
zombiebit has joined #ruby
shredding has joined #ruby
sayan has quit [Read error: Operation timed out]
cbetta is now known as cbetta_afk
phus1on has joined #ruby
phus1on has quit [Client Quit]
cbetta_afk is now known as cbetta
zombiebit has quit [Ping timeout: 264 seconds]
popl has quit [Ping timeout: 272 seconds]
vlad_sta_ has quit [Remote host closed the connection]
psyl0n has joined #ruby
Elhu has joined #ruby
io_syl has quit []
julweber has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
liamkeily has quit [Ping timeout: 264 seconds]
julweber has joined #ruby
banghouse2 has joined #ruby
dangerousdave has joined #ruby
devians has joined #ruby
sparrovv has joined #ruby
banghouse2 is now known as banghouse
Leighton has quit [Quit: leaving]
sepp2k has joined #ruby
krainboltgreene has quit []
timonv has joined #ruby
hiall has joined #ruby
mengu has quit [Ping timeout: 245 seconds]
kofno has joined #ruby
xue has joined #ruby
vlad_starkov has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
Jdubs_ has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
flops has joined #ruby
cbetta is now known as cbetta_afk
kofno has quit [Ping timeout: 245 seconds]
tylersmith has quit [Remote host closed the connection]
nomenkun has joined #ruby
mklappstuhl has joined #ruby
Jdubs has quit [Ping timeout: 260 seconds]
roadt has joined #ruby
mercwithamouth has joined #ruby
coderhs has quit [Ping timeout: 252 seconds]
manoj has joined #ruby
xcess_denied has quit [Read error: Connection reset by peer]
Briareos1 has joined #ruby
nomenkun has quit [Ping timeout: 272 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
sparrovv has quit [Quit: sparrovv]
vlad_sta_ has joined #ruby
coderhs has joined #ruby
<shevy> emocakes just shows you that you must get a billionaire as well!
<shevy> with ruby
<shevy> no, wait
<shevy> with ruby *ON RAILS*!
vlad_starkov has quit [Ping timeout: 245 seconds]
sparrovv has joined #ruby
vlad_starkov has joined #ruby
mojjojo has joined #ruby
simplon has quit [Ping timeout: 265 seconds]
simplon has joined #ruby
liamkeily has joined #ruby
Xeago has joined #ruby
vlad_sta_ has quit [Ping timeout: 246 seconds]
speed2 has joined #ruby
vlad_sta_ has joined #ruby
cbetta_afk is now known as cbetta
manoj has quit [Read error: Connection reset by peer]
xcess_denied has joined #ruby
timonv has joined #ruby
bradhe has joined #ruby
<emocakes> i should make my own framework
jmeeuwen has joined #ruby
<emocakes> ruby on rohypnol
jragon has quit [Changing host]
jragon has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby
cbetta is now known as cbetta_afk
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
liamkeily has quit [Ping timeout: 260 seconds]
fixl has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 260 seconds]
jbpros has quit [Quit: jbpros]
vlad_sta_ has quit [Ping timeout: 246 seconds]
gigetoo has quit [Remote host closed the connection]
<Hanmac1> shevy: ruby shall be purified, all curses shall be removed ;P https://bugs.ruby-lang.org/issues/8584
Hanmac1 is now known as Hanmac
gigetoo has joined #ruby
charliesome has joined #ruby
relix has joined #ruby
edwardly has quit [Ping timeout: 245 seconds]
zipper_ has joined #ruby
coderhs has quit [Ping timeout: 246 seconds]
edwardly has joined #ruby
coderhs has joined #ruby
yfeldblum has joined #ruby
zipper has quit [Ping timeout: 260 seconds]
zombiebit has joined #ruby
hoyang has quit [Quit: leaving]
hamakn has quit [Remote host closed the connection]
zipper_ has quit [Ping timeout: 264 seconds]
hamakn has joined #ruby
emocakes has quit [Quit: Leaving...]
yfeldblum has quit [Ping timeout: 260 seconds]
mojjojo has quit [Quit: mojjojo]
speed2 is now known as Speed
kirun has joined #ruby
sayan has joined #ruby
realDAB has joined #ruby
rjhunter has quit [Remote host closed the connection]
zombiebit has quit [Ping timeout: 265 seconds]
raphaelivan has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
hamakn has quit [Ping timeout: 245 seconds]
jbpros has joined #ruby
jbpros has quit [Client Quit]
hogeo has quit [Remote host closed the connection]
zipper has joined #ruby
brtdv has joined #ruby
phansch has joined #ruby
nfk has joined #ruby
Czupa has joined #ruby
sayan has quit [Read error: Connection reset by peer]
shredding has quit [Quit: shredding]
zipper_ has joined #ruby
zipper has quit [Ping timeout: 245 seconds]
amoli has joined #ruby
BizarreCake has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
fomatin has joined #ruby
Lewis has quit [Remote host closed the connection]
yfeldblum has joined #ruby
devians has left #ruby ["Textual IRC Client: www.textualapp.com"]
St_Marx has quit [Quit: Ex-Chat]
Briareos1 has quit [Remote host closed the connection]
Czupa has quit [Remote host closed the connection]
coderhs has quit [Ping timeout: 240 seconds]
coderhs has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
julweber has quit [Remote host closed the connection]
zipper_ has quit [Ping timeout: 240 seconds]
zipper has joined #ruby
mojjojo has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
mojjojo has quit [Client Quit]
nomenkun has joined #ruby
mojjojo has joined #ruby
AzizLight has joined #ruby
shredding has joined #ruby
kcombs has joined #ruby
brtdv has quit []
mojjojo has quit [Client Quit]
havenwood has joined #ruby
brtdv has joined #ruby
mojjojo has joined #ruby
rjhunter has joined #ruby
nomenkun has quit [Ping timeout: 245 seconds]
kcombs has quit [Ping timeout: 252 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
petey has joined #ruby
<shevy> Hanmac lol
Jdubs_ has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
carraroj has quit [Quit: Konversation terminated!]
depesz has left #ruby [#ruby]
spider-mario has quit [Ping timeout: 252 seconds]
danshultz has joined #ruby
rjhunter has quit [Ping timeout: 245 seconds]
bradhe has joined #ruby
realDAB has quit [Quit: realDAB]
eliasp has quit [Quit: No Ping reply in 180 seconds.]
eliasp has joined #ruby
petey has quit [Ping timeout: 264 seconds]
carraroj has joined #ruby
hogeo has joined #ruby
bradhe has quit [Ping timeout: 260 seconds]
danshultz has quit [Ping timeout: 272 seconds]
culturelabs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hogeo has quit [Ping timeout: 245 seconds]
_Andres has joined #ruby
hamakn has joined #ruby
YuviPanda|away is now known as YuviPanda
jbpros has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
browndawg has quit [Quit: Leaving.]
Czupa has joined #ruby
jbpros has quit [Client Quit]
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
zombiebit has joined #ruby
ringaroses has joined #ruby
ringaroses has quit [Read error: Connection reset by peer]
coderhs has quit [Ping timeout: 240 seconds]
coderhs has joined #ruby
hamakn has quit [Ping timeout: 246 seconds]
zombiebit has quit [Ping timeout: 240 seconds]
zipper has quit [Ping timeout: 264 seconds]
tylersmith has joined #ruby
zipper has joined #ruby
zipper has quit [Client Quit]
Jetchisel has quit [Remote host closed the connection]
rubyracer has quit [Quit: Konversation terminated!]
p4d4w4n has joined #ruby
Mon_Ouie has quit [Ping timeout: 246 seconds]
rubyracer has joined #ruby
julweber has joined #ruby
brtdv has quit []
_Andres has quit [Ping timeout: 246 seconds]
tylersmith has quit [Ping timeout: 246 seconds]
lyanchih has quit [Quit: lyanchih]
banister has joined #ruby
mengu has quit [Remote host closed the connection]
ckinni has joined #ruby
brian___ has joined #ruby
dhruvasagar has joined #ruby
_Andres has joined #ruby
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
LadyRainicorn has joined #ruby
zipper has joined #ruby
jrd0 has quit [Quit: ZNC - http://znc.in]
noop has joined #ruby
realDAB has joined #ruby
browndawg has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hamakn has joined #ruby
lyanchih has joined #ruby
spider-mario has joined #ruby
zombiebit has joined #ruby
Czupa has quit [Quit: Wychodzi]
drumusician has joined #ruby
Czupa has joined #ruby
jrd0 has joined #ruby
LadyRainicorn has quit [Quit: Bye]
mklappstuhl has quit [Remote host closed the connection]
Lewis has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
vlad_starkov has joined #ruby
nomenkun has joined #ruby
Czupa has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
hamakn has quit [Ping timeout: 245 seconds]
Lewis has quit [Ping timeout: 260 seconds]
St_Marx has joined #ruby
mklappstuhl has quit [Ping timeout: 272 seconds]
bradhe has joined #ruby
threesome has quit [Ping timeout: 245 seconds]
nomenkun has quit [Ping timeout: 265 seconds]
p4d4w4n has quit [Quit: This computer has gone to sleep]
rjhunter has joined #ruby
justsee has quit [Ping timeout: 245 seconds]
threesome has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
mengu has joined #ruby
sparrovv has quit [Quit: sparrovv]
Lewis has joined #ruby
rjhunter has quit [Ping timeout: 272 seconds]
realDAB has quit [Quit: realDAB]
pac1 has joined #ruby
nomenkun has joined #ruby
Lewis has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
BizarreCake has joined #ruby
nomenkun_ has joined #ruby
nomenkun has quit [Read error: Connection reset by peer]
kitak has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
kitak has joined #ruby
amoli has quit [Ping timeout: 252 seconds]
OdNairy has joined #ruby
lazaro_ has joined #ruby
LadyRainicorn has joined #ruby
danshultz has joined #ruby
greenarrow has joined #ruby
xcess_denied has quit [Quit: Leaving...]
lazaro_ has quit [Client Quit]
habanany has joined #ruby
monkegjinni has joined #ruby
nomenkun_ has quit [Ping timeout: 265 seconds]
mklappstuhl has quit [Ping timeout: 272 seconds]
danshultz has quit [Ping timeout: 252 seconds]
timonv has quit [Remote host closed the connection]
kofno has joined #ruby
banghouse has quit [Remote host closed the connection]
xue has quit [Quit: Konversation terminated!]
mklappstuhl has joined #ruby
xue has joined #ruby
hogeo has joined #ruby
julweber has quit [Remote host closed the connection]
mklappstuhl has quit [Read error: Connection reset by peer]
mklappstuhl has joined #ruby
zombiebit has quit [Remote host closed the connection]
kofno has quit [Ping timeout: 264 seconds]
zombiebit has joined #ruby
psyl0n has quit [Remote host closed the connection]
tylersmith has joined #ruby
hogeo has quit [Ping timeout: 245 seconds]
zombiebit has quit [Read error: No route to host]
zombiebit has joined #ruby
psyl0n has joined #ruby
mklappstuhl has quit [Ping timeout: 252 seconds]
zombiebit has quit [Remote host closed the connection]
Lo^35 has quit [Ping timeout: 264 seconds]
hershaw has quit [Remote host closed the connection]
julweber has joined #ruby
cbetta_afk is now known as cbetta
randomnick_ has joined #ruby
cbetta is now known as cbetta_afk
realDAB has joined #ruby
gunawan has joined #ruby
phansch_ has joined #ruby
monkegjinni has quit [Remote host closed the connection]
mist has quit [Ping timeout: 615 seconds]
Loaft has joined #ruby
bluOxigen has quit [Ping timeout: 264 seconds]
monkegjinni has joined #ruby
tylersmith has quit [Ping timeout: 245 seconds]
nomenkun has joined #ruby
hamakn has joined #ruby
phansch has quit [Ping timeout: 240 seconds]
nomenkun has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
nomenkun has quit [Ping timeout: 252 seconds]
xue has quit [Ping timeout: 245 seconds]
nebula has joined #ruby
xcess_denied has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
yfeldblum has quit [Ping timeout: 245 seconds]
arietis has joined #ruby
timonv has joined #ruby
sergicles has quit [Quit: sergicles]
julweber has quit [Remote host closed the connection]
manoj has joined #ruby
xcess_denied has quit [Read error: Connection reset by peer]
manoj has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
mklappstuhl has joined #ruby
Xeago has quit [Remote host closed the connection]
realDAB has quit [Quit: realDAB]
sergicles has joined #ruby
nomenkun has joined #ruby
CaptainKnots has quit [Ping timeout: 272 seconds]
timonv has quit [Ping timeout: 240 seconds]
realDAB has joined #ruby
mengu has quit []
CaptainKnots has joined #ruby
hiall has quit [Quit: hiall]
nebula_ has joined #ruby
nebula has quit [Ping timeout: 272 seconds]
bradhe has quit [Ping timeout: 245 seconds]
yacks has quit [Quit: Leaving]
mklappstuhl has quit [Ping timeout: 264 seconds]
raphaelivan has quit [Quit: Leaving.]
nomenkun has quit [Ping timeout: 245 seconds]
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
petey has joined #ruby
rjhunter has joined #ruby
hiall has joined #ruby
fomatin has joined #ruby
rjhunter has quit [Ping timeout: 240 seconds]
jamesaanderson has joined #ruby
petey has quit [Ping timeout: 264 seconds]
liamkeily has joined #ruby
nomenkun has joined #ruby
preller has quit [Ping timeout: 260 seconds]
dagnachew has joined #ruby
flops_ has joined #ruby
shachar has joined #ruby
<shachar> hi , newbie question , how can i find a certain file in ruby and then run atime on the result? Thanks
<Hanmac> shachar: File.atime(path) or do you need to glob the path?
kofno has joined #ruby
flops has quit [Ping timeout: 272 seconds]
preller has joined #ruby
julweber has joined #ruby
zipper has quit [Quit: Lost terminal]
Lewis has joined #ruby
<shachar> Hanmac : Thank you , checking
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gokul has joined #ruby
realDAB has quit [Quit: realDAB]
AlSquirikou has joined #ruby
timonv has joined #ruby
p4d4w4n has joined #ruby
OdNairy has joined #ruby
Yayo has joined #ruby
psyl0n has quit [Remote host closed the connection]
Elhu has joined #ruby
Lewis has quit [Ping timeout: 246 seconds]
Loaft has quit [Ping timeout: 260 seconds]
chihhsin has quit [Quit: leaving]
zipper has joined #ruby
aryaching has joined #ruby
psyl0n has joined #ruby
monkegjinni has quit []
julweber has quit [Remote host closed the connection]
shachar has quit [Quit: Leaving]
bluOxigen has joined #ruby
zmansiv has joined #ruby
tylersmith has joined #ruby
chihhsin has joined #ruby
coderhs has quit [Ping timeout: 264 seconds]
Megtastique has joined #ruby
coderhs has joined #ruby
hiyosi has quit [Read error: Operation timed out]
Elhu has quit [Quit: Computer has gone to sleep.]
tylersmith has quit [Ping timeout: 252 seconds]
psyl0n has quit []
GoodTimes has joined #ruby
chuk has joined #ruby
relix has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
banghouse has joined #ruby
banghouse is now known as Guest78232
flops_ has quit [Ping timeout: 253 seconds]
p4d4w4n has quit [Quit: This computer has gone to sleep]
gemmy has joined #ruby
SHyx0rmZ has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
gemmy has quit [Client Quit]
gemmy has joined #ruby
zipper_ has joined #ruby
Guest78232 has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
gemmy has quit [Client Quit]
bradhe has joined #ruby
ckinni has joined #ruby
ckinni has quit [Max SendQ exceeded]
zipper has quit [Read error: Connection reset by peer]
<AzizLight> I think I found a bug in ruby...Method.arity always returns 0 if it is called from `define_method`... http://git.io/2Sb1kw
dhruvasagar has joined #ruby
ckinni has joined #ruby
<AzizLight> anybody can confirm please?
coderhs has quit [Ping timeout: 245 seconds]
ckinni has quit [Max SendQ exceeded]
liamkeily has quit [Ping timeout: 246 seconds]
coderhs has joined #ruby
ckinni has joined #ruby
arietis has joined #ruby
<MrZYX> well, your define method doesn't define any arguments
kleinerdrache has joined #ruby
LadyRainicorn has quit [Ping timeout: 272 seconds]
jalcine- has joined #ruby
<AzizLight> MrZYX: the argument in the search method is optional...
yfeldblum has quit [Ping timeout: 264 seconds]
bradhe has quit [Ping timeout: 245 seconds]
Alina-malina has quit [Quit: Leaving]
Alina-malina has joined #ruby
<MrZYX> where's method added even called?
liamkeily has joined #ruby
<MrZYX> and the arity of a method with only one optional argument being 0 makes sense to me
<AzizLight> MrZYX: method_added is a ruby hook that is called everytime a method is added to a module
<MrZYX> mmh, never seen that
kofno has quit [Quit: leaving]
<waxjar> >> X = Class.new { define_method(:test) {|a,b,| "..." } }; X.new.method(:test).arity
<eval-in> waxjar => 2 (https://eval.in/74856)
mrmist has joined #ruby
liamkeily has quit [Excess Flood]
<MrZYX> or
<MrZYX> >> def foo(a, b); end; define_method(:bar) { method(:foo).arity }; bar
<eval-in> MrZYX => 2 (https://eval.in/74857)
<MrZYX> if that's what you mean
mrmist is now known as mist
liamkeily has joined #ruby
<AzizLight> MrZYX: yeah, that fixed my problem!
<AzizLight> MrZYX: Thanks a lot!
_bart has quit [Remote host closed the connection]
Arzaga has joined #ruby
spike|spiegel has quit [Ping timeout: 260 seconds]
IceDragon has joined #ruby
marr has joined #ruby
hiyosi has joined #ruby
vlad_sta_ has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
SHyx0rmZ has quit [Ping timeout: 246 seconds]
rjhunter has joined #ruby
spike|spiegel has joined #ruby
hrdina has joined #ruby
hoyang has joined #ruby
Linux_Extremist has joined #ruby
SHyx0rmZ has joined #ruby
s00pcan_ has quit [Quit: Lost terminal]
Linux_Extremist has quit [Client Quit]
hiyosi has quit [Ping timeout: 246 seconds]
rjhunter has quit [Ping timeout: 264 seconds]
mklappstuhl has joined #ruby
IceDragon_ has joined #ruby
chuk has quit [Quit: Leaving]
kleinerdrache has quit [Quit: Ex-Chat]
IceDragon has quit [Ping timeout: 260 seconds]
mklappstuhl has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
mklappstuhl has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
julweber has joined #ruby
_bart has joined #ruby
xk_id has joined #ruby
sparrovv has joined #ruby
jalcine- is now known as jalcine
jalcine has quit [Changing host]
jalcine has joined #ruby
mikepack has quit [Ping timeout: 246 seconds]
jonathanwallace has joined #ruby
iamjarvo_ has joined #ruby
zipper has joined #ruby
zipper has quit [Client Quit]
nism has joined #ruby
dhruvasagar has quit [Ping timeout: 272 seconds]
wallerdev has joined #ruby
julweber has quit [Remote host closed the connection]
nebula_ has quit [Quit: Konversation terminated!]
nebula_ has joined #ruby
iamjarvo_ has quit [Remote host closed the connection]
zipper_ has quit [Ping timeout: 252 seconds]
Bish has quit [Excess Flood]
kevinykchan has quit [Quit: Computer has gone to sleep.]
iamjarvo has joined #ruby
bluOxigen has quit [Ping timeout: 246 seconds]
dblack_ has joined #ruby
bruno- has joined #ruby
Bish has joined #ruby
habanany has quit [Ping timeout: 245 seconds]
eka has quit [Quit: Computer has gone to sleep.]
jrhe has joined #ruby
michael_lee has joined #ruby
endash has joined #ruby
hogeo has joined #ruby
BizarreCake has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Ping timeout: 246 seconds]
kofno has joined #ruby
kofno has quit [Client Quit]
kofno has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
hogeo has quit [Ping timeout: 272 seconds]
sayan has joined #ruby
timonv has quit [Remote host closed the connection]
_bart has quit []
arietis has joined #ruby
chihhsin has quit [Ping timeout: 246 seconds]
zipper has joined #ruby
tylersmith has joined #ruby
jonathanwallace has quit [Ping timeout: 260 seconds]
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
jonathanwallace has joined #ruby
wallerdev has quit [Quit: wallerdev]
kcombs has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
sayan has quit [Ping timeout: 245 seconds]
[[johnonymous]] has joined #ruby
tylersmith has quit [Ping timeout: 265 seconds]
St_Marx has quit [Ping timeout: 245 seconds]
ravster has joined #ruby
sparrovv has quit [Quit: sparrovv]
bradhe has joined #ruby
michael_lee has quit [Remote host closed the connection]
lukec has joined #ruby
michael_lee has joined #ruby
ddd has joined #ruby
nomenkun has quit [Remote host closed the connection]
ckinni has joined #ruby
bradhe has quit [Ping timeout: 245 seconds]
iamjarvo has quit [Remote host closed the connection]
Elhu has joined #ruby
ambushsabre has joined #ruby
iamjarvo has joined #ruby
mklappstuhl has joined #ruby
Arzaga has quit [Quit: Computer has gone to sleep.]
dhruvasagar has joined #ruby
yfeldblum has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
mklappstuhl has quit [Remote host closed the connection]
Guest63872 has quit [Remote host closed the connection]
nebula__ has joined #ruby
jonathanwallace has quit [Ping timeout: 265 seconds]
michael_lee has quit [Ping timeout: 252 seconds]
Megtastique has quit []
iamjarvo has quit [Ping timeout: 246 seconds]
lyanchih has quit [Ping timeout: 252 seconds]
ddd has quit [Quit: to load something]
yfeldblum has quit [Ping timeout: 246 seconds]
ddd has joined #ruby
weems has quit [Read error: Connection reset by peer]
weeems has joined #ruby
flops has joined #ruby
nebula_ has quit [Ping timeout: 272 seconds]
psyl0n has joined #ruby
dblack_ has quit [Ping timeout: 246 seconds]
iamjarvo has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
dblack_ has joined #ruby
michael_lee has joined #ruby
gokul has quit [Quit: Leaving]
Zesty has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
dagnachew has quit [Remote host closed the connection]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phansch_ has quit [Remote host closed the connection]
ddd has quit [Quit: once more]
hiyosi has joined #ruby
petey has joined #ruby
phansch has joined #ruby
rjhunter has joined #ruby
jamesaanderson has joined #ruby
xcv has joined #ruby
wallerdev has joined #ruby
weeems has quit [*.net *.split]
alvaro_o has quit [*.net *.split]
wallerdev has quit [Client Quit]
dioms has joined #ruby
petey has quit [Ping timeout: 245 seconds]
hiyosi has quit [Ping timeout: 264 seconds]
dblack_ has quit [Read error: Connection reset by peer]
timonv has joined #ruby
rjhunter has quit [Ping timeout: 272 seconds]
sparrovv has joined #ruby
pleal has joined #ruby
browndawg has left #ruby [#ruby]
mikepack has joined #ruby
Zesty has quit [Quit: Linkinus - http://linkinus.com]
Hanmac1 has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
Hanmac has quit [Ping timeout: 245 seconds]
iamjarvo has quit [Remote host closed the connection]
ae-r has joined #ruby
root has joined #ruby
iamjarvo has joined #ruby
noop has quit [Ping timeout: 264 seconds]
root is now known as Guest28595
mikepack has quit [Ping timeout: 252 seconds]
liamkeily has quit [Ping timeout: 260 seconds]
iamjarvo has quit [Ping timeout: 245 seconds]
xcv has quit [Remote host closed the connection]
xcv has joined #ruby
duggiefresh has joined #ruby
pskosinski has joined #ruby
pskosinski has quit [Read error: Connection reset by peer]
hogeo has joined #ruby
cbetta_afk is now known as cbetta
xcv has quit [Read error: Operation timed out]
Xaitec has joined #ruby
nateberkopec has joined #ruby
xcv has joined #ruby
felixjet has quit [Read error: Connection reset by peer]
bricker`LA has quit [Ping timeout: 246 seconds]
kofno has quit [Ping timeout: 240 seconds]
felixjet has joined #ruby
hogeo has quit [Ping timeout: 245 seconds]
noop has joined #ruby
pwestlund_away has quit [Quit: ZNC - http://znc.in]
ddd has joined #ruby
tjad has joined #ruby
saarinen has joined #ruby
brtdv has joined #ruby
[[johnonymous]] has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
bearlulz has joined #ruby
pskosinski has joined #ruby
heidi has joined #ruby
brtdv has quit [Client Quit]
preller has quit [Ping timeout: 240 seconds]
cbetta is now known as cbetta_afk
tylersmith has joined #ruby
yfeldblum has joined #ruby
bradhe has joined #ruby
ae-r has quit [Remote host closed the connection]
cbetta_afk is now known as cbetta
felixjet has quit [Read error: Connection reset by peer]
cbetta is now known as cbetta_afk
drumusician has quit [Ping timeout: 265 seconds]
saarinen has quit [Ping timeout: 245 seconds]
cbetta_afk is now known as cbetta
atno has quit [Read error: Connection reset by peer]
felixjet has joined #ruby
gianlucadv has joined #ruby
hiyosi has joined #ruby
agjacome has quit [Quit: leaving]
tylersmith has quit [Ping timeout: 252 seconds]
saarinen has joined #ruby
bradhe has quit [Ping timeout: 245 seconds]
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
banghouse has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
havenwood has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
hamakn has joined #ruby
banghouse is now known as Guest99544
phansch_ has joined #ruby
michael_lee has quit [Quit: Ex-Chat]
<shevy> test
michael_lee has joined #ruby
preller has joined #ruby
priyam_ has joined #ruby
phansch has quit [Ping timeout: 245 seconds]
Guest99544 has quit [Ping timeout: 260 seconds]
ae-r has joined #ruby
allsystemsarego has joined #ruby
allsystemsarego has quit [Changing host]
allsystemsarego has joined #ruby
mojjojo has quit [Quit: mojjojo]
mjs2600 has joined #ruby
rubyracer has quit [Ping timeout: 240 seconds]
preller has quit [Ping timeout: 260 seconds]
io_syl has joined #ruby
relix has joined #ruby
hoyang has quit [Quit: leaving]
sng|afk is now known as synergy
synergy is now known as synergy_
i8igmac has joined #ruby
nebula__ has quit [Quit: Konversation terminated!]
preller has joined #ruby
ae-r has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
halfie has quit [Ping timeout: 265 seconds]
St_Marx has joined #ruby
geggam has quit [Disconnected by services]
Briareos1 has joined #ruby
geggam_ has joined #ruby
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
bricker`LA has joined #ruby
vlad_starkov has joined #ruby
halfie has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
<PPH> >> :test
<eval-in> PPH => :test (https://eval.in/74881)
<PPH> yay
rjhunter has joined #ruby
<Morrolan> A symbol in the wild. :o
saarinen has quit [Quit: saarinen]
radic has joined #ruby
halfie has quit [Excess Flood]
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
dhruvasagar has quit [Ping timeout: 264 seconds]
Speed has left #ruby ["WeeChat 0.4.2"]
rjhunter has quit [Ping timeout: 260 seconds]
dhruvasagar has joined #ruby
ua has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Hanmac1 has quit [Ping timeout: 240 seconds]
kleinerdrache has joined #ruby
Hanmac has joined #ruby
Megtastique has joined #ruby
<pac1> in the expression h=Hash[*array], what would you call the asterisk?
preller has quit [Ping timeout: 272 seconds]
<Hanmac> pac1: "splat"
dblack_ has joined #ruby
<pac1> no kidding!
mikepack has quit [Ping timeout: 240 seconds]
<pac1> got it.
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
pleal has quit [Remote host closed the connection]
hamakn has quit [Read error: Connection reset by peer]
ae-r has joined #ruby
hamakn has joined #ruby
pleal has joined #ruby
psyl0n has quit [Remote host closed the connection]
ua has joined #ruby
timonv has joined #ruby
flops has quit [Read error: Connection reset by peer]
flops has joined #ruby
preller has joined #ruby
shredding has quit [Quit: shredding]
zipper has quit [Quit: leaving]
estebanrules has quit []
peshalto has joined #ruby
<pac1> If I splat an array into an array, i get just the array. If I splat an array into a hash, it behaves as if I gave it an array of two element arrays.
mmcdaris has quit [Quit: mmcdaris]
pleal has quit [Ping timeout: 245 seconds]
nism has quit [Ping timeout: 250 seconds]
<pac1> it seems to be repeatedly supplying as many objects as needed for whatever you are constructing. Is that right?
ae-r has quit [Remote host closed the connection]
<waxjar> if you splat an Array into Hash.[] it behaves as Hash[1,2,3,4]. Hash.[] takes an even amount of arguments as well as Arrays of form [key, value] :)
<waxjar> >> Hash[1,2,3,4] == Hash[[[1,2],[3,4]]]
<eval-in> waxjar => true (https://eval.in/74882)
<waxjar> *as well as an Array of Arrays of form [key, value], that should be
<dblack_> in recent 2.1's there's also Array#to_h
sayan has joined #ruby
mark_locklear has joined #ruby
hogeo has joined #ruby
CaptainJet has joined #ruby
jonathanwallace has joined #ruby
preller has quit [Ping timeout: 246 seconds]
Mosselman has joined #ruby
<Mosselman> : hi guys. Within a method, can I access from which file and on which line it was called?
bradhe has joined #ruby
timonv has quit [Remote host closed the connection]
hogeo has quit [Ping timeout: 264 seconds]
pskosinski has quit [Quit: Til rivido Idisti!]
<banister> Mosselman yeah
sayan has quit [Quit: Leaving]
realDAB has joined #ruby
bradhe has quit [Ping timeout: 245 seconds]
preller has joined #ruby
pwh has quit []
tylersmith has joined #ruby
gr33n7007h has quit [Ping timeout: 246 seconds]
jonathanwallace has quit [Ping timeout: 252 seconds]
peshalto has quit [Quit: peshalto]
brupeb has quit [Ping timeout: 240 seconds]
brupeb_ has joined #ruby
<ayaz> Mosselman: you could probably look at TracePoint.
realDAB has quit [Quit: realDAB]
chihhsin has joined #ruby
tylersmith has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
<pac1> where is splat officially documented. I checked http://www.ruby-doc.org/core-1.9.3/ and it appears in neither of class and methods.
Elhu has joined #ruby
<pac1> what exactly is this beast?
mjs2600 has quit [Remote host closed the connection]
preller has quit [Ping timeout: 264 seconds]
<Mosselman> ayaz: thanks, I have, but I am not sure how to implement it in a method so that I get access right there and then to the file and line number.
mjs2600 has joined #ruby
mjs2600 has quit [Remote host closed the connection]
<canton7> pac1, the official docs seem to split its documentation up. for example there's a bit here: http://www.ruby-doc.org/core-2.0.0/doc/syntax/calling_methods_rdoc.html#label-Array+to+Arguments+Conversion
<Mosselman> ayaz: I have a method called 'note' that I pass a message to. Along side with this 'note' I want to know where the note was created (file and line#)
khismetix has joined #ruby
<khismetix> Quick question --- does Ruby 1.9.x support named method parameters ?
<khismetix> or only 2.x ?
<Hanmac> khismetix: 1.9 only supports semi-named ... so you can do func(a: 4,b: 5) but you need def func(options={}) in the method
Lightstalker has quit [Quit: leaving]
<khismetix> thanks Hanmac
yfeldblum has quit [Remote host closed the connection]
<khismetix> I was doing a course on pluralsight and forgot that he required 2.0 or later
Lightstalker has joined #ruby
yfeldblum has joined #ruby
peshalto has joined #ruby
preller has joined #ruby
chuk has joined #ruby
VTLob has joined #ruby
<waxjar> Mosselman, there is #caller, which gives you a backtrace? I'm not sure that's what you mean, though.
khismetix has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
banghouse has joined #ruby
Lightstalker has quit [Client Quit]
banghouse is now known as Guest32896
jonathanwallace has joined #ruby
Lightstalker has joined #ruby
Zespre has quit [Quit: Connection closed for inactivity]
preller has quit [Ping timeout: 240 seconds]
carraroj has quit [Ping timeout: 246 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
yfeldblum has quit [Ping timeout: 260 seconds]
<Mosselman> waxjar: yes thanks :)
<Mosselman> waxjar: looks like I can work something out with 'caller'
vlad_starkov has joined #ruby
jkhwan has joined #ruby
DaniG2k has joined #ruby
<Hanmac> Mosselman: i think you want this:
<Hanmac> >> p __FILE__,__LINE__
<eval-in> Hanmac => "/tmp/execpad-909e17e72a0a/source-909e17e72a0a" ... (https://eval.in/74883)
mois3x has joined #ruby
<DaniG2k> you guys mind if I ask a rails related question in here?
<DaniG2k> :S
<Hanmac> DaniG2k: #rubyonrails
shime has joined #ruby
<DaniG2k> yeah :( I know
MrZYX is now known as MrZYX|off
<DaniG2k> I don't like asking questions there anymore everyone's so snooty
jrhe has quit [Ping timeout: 240 seconds]
<Mosselman> Hanmac: the problem is that that would give me the file and line of where the method is defined though isn't it?
<Hanmac> hm yes
peshalto has quit [Quit: peshalto]
timonv has quit [Remote host closed the connection]
<Hanmac> DaniG2k: "#rubyonrails - now with extra more snoobs" ;P
<Mosselman> caller works great, thanks again waxjar
<waxjar> np :)
<DaniG2k> lol
drumusician has joined #ruby
<DaniG2k> I'll just ask here anyway :P can't hurt
<DaniG2k> I want to run a .group_by method on a Message object to give the feeling of a conversation
<jrobeson> most of the same people in #rubyonrails are also here..
<DaniG2k> so if there are 3 messages from user A to user B, and 2 messages from user B to user A
<jrobeson> except here people will keep bugging you to go to #rubyonrails
<DaniG2k> if I do .group_by :sender => userA
MrZYX|off is now known as MrZYX
<DaniG2k> then it doesnt make a difference cause I will see one "conversation" with the messages from user A to B
Xaitec has quit [Ping timeout: 245 seconds]
<DaniG2k> but I'll also see those from user B to A as a separate thread
<DaniG2k> I'm trying to figure out how to do this without going through all sorts of hoops
<cbetta> #activerecord
<cbetta> :P
kleinerdrache has quit [Quit: Ex-Chat]
<DaniG2k> is there such a channel? :P
<DaniG2k> lol
<DaniG2k> i just tried
* DaniG2k does walk of shame
<cbetta> haha
<cbetta> sorry, was too easy
<cbetta> not sure i get your question though
petey has joined #ruby
<DaniG2k> cbetta: say I have a message where user A is sender, B is recipient
<DaniG2k> cbetta: and then I have a message where user B is sender, A is recipient
timonv has joined #ruby
<DaniG2k> if I do Message.group_by :sender => A
<DaniG2k> then I will still have two objects returned
<DaniG2k> one where sender is A
<DaniG2k> the other where sender is B
<DaniG2k> cbetta: I'm trying to group them so that it looks like there's only one conversation
<DaniG2k> so it doesnt matter if A or B is sender, they both are linked to the same conversation
rjhunter has joined #ruby
<DaniG2k> right now I have this method:
<cbetta> DaniG2k still not 100% sure what you mean
<DaniG2k> Message.where('sender_id = ? or recipient_id = ?', id, id).group(:recipient_id)
<cbetta> but why not do a where?
<DaniG2k> cbetta: yea thats what im doing
<cbetta> yeah
<cbetta> do that
<cbetta> and if that's too long
<cbetta> make a scope
<cbetta> then you could so something like:
<DaniG2k> cbetta: but it still shows messages form A to B as one conversation, and messages from B to A as another
<DaniG2k> when effectively they're the same conversation
<cbetta> Message.from(A)
ewnd9 has quit [Ping timeout: 240 seconds]
<cbetta> ah ok
<cbetta> why not assign an ID to your thread?
<cbetta> so you can just grab them by that?
maoko has joined #ruby
<DaniG2k> cbetta: yea that would be smart...like a conversation or something. Problem is I don't really know how to set that up :P
Mosselman has quit [Ping timeout: 245 seconds]
<cbetta> just have a thread_id
<cbetta> on your message
<cbetta> then every time someone writes a comment you look up the last comment from these 2 people
<cbetta> etc
Mattias has quit [Excess Flood]
jragon has quit [Ping timeout: 264 seconds]
<DaniG2k> cbetta: hmm yea makes sense
zipper has joined #ruby
mmcdaris has joined #ruby
petey has quit [Ping timeout: 252 seconds]
Mattias has joined #ruby
saarinen has joined #ruby
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rjhunter has quit [Ping timeout: 264 seconds]
estebistec has joined #ruby
brtdv has joined #ruby
xcv has quit [Remote host closed the connection]
preller has joined #ruby
jrhe has joined #ruby
xcv has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Spami has joined #ruby
sparrovv has quit [Quit: sparrovv]
tjad has quit [Remote host closed the connection]
yfeldblum has joined #ruby
habanany has joined #ruby
<cbetta> DaniG2k when something is hard to do, you're almost always doing it wrong
<cbetta> personal motto :)
pwestlund_away has joined #ruby
pwestlund_away is now known as pwestlund
xcv has quit [Ping timeout: 252 seconds]
yfeldblu_ has joined #ruby
_Andres has joined #ruby
Tuxist has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 240 seconds]
<shevy> in other words
<shevy> he just sucks
bradhe has joined #ruby
yfeldblu_ has quit [Ping timeout: 272 seconds]
Kricir has joined #ruby
hogeo has joined #ruby
Barrin6 has joined #ruby
closer has quit [Ping timeout: 252 seconds]
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has joined #ruby
DaZ has quit [Read error: Connection reset by peer]
JuanMiguel has joined #ruby
closer has joined #ruby
bradhe has quit [Ping timeout: 272 seconds]
estebistec has quit [Remote host closed the connection]
eka has joined #ruby
hogeo has quit [Ping timeout: 264 seconds]
jhaals has joined #ruby
jamesaanderson has joined #ruby
ringaroses has joined #ruby
DaZ has joined #ruby
duggiefresh has quit [Remote host closed the connection]
decoponio has quit [Quit: Leaving...]
roadt has quit [Ping timeout: 240 seconds]
michael_lee has quit [Ping timeout: 264 seconds]
mikestok has joined #ruby
noop has quit [Ping timeout: 245 seconds]
mikestok has quit [Client Quit]
DaniG2k has quit [Quit: leaving]
Mon_Ouie has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ambushsabre has joined #ruby
relix has joined #ruby
saarinen has quit [Quit: saarinen]
kofno has joined #ruby
bean__ has quit [Ping timeout: 252 seconds]
lukec has quit [Quit: lukec]
jonathanwallace has quit [Quit: WeeChat 0.4.1]
pleal has joined #ruby
xcv has joined #ruby
yfeldblum has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jalcine has quit [Excess Flood]
Yan__ has joined #ruby
lemonsparrow has quit [Ping timeout: 250 seconds]
carraroj has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
tylersmith has joined #ruby
Es0teric has joined #ruby
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
h0rrorvacui has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Emmanuel_Chanel has quit [Ping timeout: 248 seconds]
jalcine has joined #ruby
Spami has joined #ruby
ravster has quit [Quit: Leaving.]
carraroj has quit [Quit: Konversation terminated!]
eka has quit [Quit: Computer has gone to sleep.]
jibi has joined #ruby
jhaals has joined #ruby
lkba has quit [Ping timeout: 265 seconds]
carraroj has joined #ruby
rjhunter has joined #ruby
chuk has quit [Quit: Leaving]
CaptainJet has quit [Ping timeout: 245 seconds]
CaptainJet has joined #ruby
mikepack has joined #ruby
Emmanuel_Chanel has joined #ruby
rjhunter has quit [Ping timeout: 264 seconds]
estebistec has joined #ruby
xk_id has quit [Quit:
julweber has joined #ruby
mikepack has quit [Ping timeout: 245 seconds]
flops has quit [Quit: leaving]
xk_id has joined #ruby
notAzure has joined #ruby
timonv has quit [Remote host closed the connection]
i8igmac has quit [Ping timeout: 265 seconds]
zigomir has quit [Ping timeout: 245 seconds]
skaflem has quit [Quit: Leaving]
yacks has joined #ruby
pleal has quit [Remote host closed the connection]
sheap has joined #ruby
pleal has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
xcv has quit [Remote host closed the connection]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pleal has quit [Ping timeout: 246 seconds]
carraroj has joined #ruby
xcv has joined #ruby
hogeo has joined #ruby
jbpros has joined #ruby
xcv has quit [Ping timeout: 264 seconds]
habanany has quit [Ping timeout: 252 seconds]
hogeo has quit [Ping timeout: 246 seconds]
Arzaga has joined #ruby
gunawan has quit [Remote host closed the connection]
claymore has quit [Quit: Leaving]
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby
estebistec has quit [Remote host closed the connection]
spike|spiegel has quit [Read error: Operation timed out]
pulham has joined #ruby
liamkeily has joined #ruby
notAzure has quit [Quit: Textual IRC Client: www.textualapp.com]
robbyoconnor has joined #ruby
g0bl1n has joined #ruby
MrLinuxSwigger has quit [Quit: leaving]
Azure has joined #ruby
tylersmith has quit [Ping timeout: 240 seconds]
Soda has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
mojjojo has joined #ruby
<yeboot> hey
<yeboot> anyone have a ruby project where they use another ruby file as a config?
<yeboot> or how does one do configuration files in ruby
<yeboot> like should I just write up a module?
<Radar> yeboot: YAML files
<yeboot> Radar you sure?
<sam113101> or json
psyl0n has joined #ruby
<Radar> yeboot: yes.
<yeboot> isn't json a subset of yaml
<sam113101> no
<apeiros> yes
mojjojo has quit [Client Quit]
<apeiros> all json is valid yaml
<Radar> wat
<sam113101> what the fuck man
carraroj has joined #ruby
<yeboot> http://www.yaml.org/spec/1.2/spec.html#id2759572 sam113101 "YAML can therefore be viewed as a natural superset of JSON"
<apeiros> Radar: surprised that you don't know, iirc rails used yaml parser for json for abit :)
<Radar> apeiros: TIL
<yeboot> yeah I learned that the other day when I was looking for json parsers in C
<yeboot> someone was like 'use the yaml lib'
<yeboot> needless to say, i didn't follow through, so I was still unsure; haha
spike|spiegel has joined #ruby
<apeiros> I still wouldn't use the yaml parser for json. it has some insane (= insecure) settings. or at least used to have.
ahawkins has joined #ruby
Yan__ has quit [Ping timeout: 245 seconds]
mercwithamouth has joined #ruby
sergicles has quit [Quit: sergicles]
tonni has joined #ruby
julweber has quit [Remote host closed the connection]
<apeiros> oh, and +1 using yaml for config
iliketurtles has joined #ruby
<apeiros> code for config sucks IMO. hard to integrate into systems which should generate config for you.
<waxjar> i like dotenv, but that can't be used for every kind of application unfortunately
sheap has quit [Quit: Lost terminal]
cdolan has joined #ruby
timonv has joined #ruby
<yeboot> apeiros what do you mean on that second part? I can't make code that generates a default yaml file using the libs?
Mattias has quit [Ping timeout: 252 seconds]
<sam113101> I find json easier to read than yaml, is that weird?
<apeiros> other way round. it's easy to generate yaml configs from code. it's harder to generate code (e.g. .rb) config files
<apeiros> sam113101: yes :-p
<yeboot> ah, thanks
aspires has joined #ruby
ringaroses has quit [Ping timeout: 260 seconds]
havenwood has quit [Remote host closed the connection]
Mattias has joined #ruby
steveeJ has joined #ruby
kofno has quit [Ping timeout: 240 seconds]
<shevy> yeboot I usually use yaml files for config, but I also have one class called Configuration that works on that. every .yml file that is found will become a method on that object
myitcv has joined #ruby
<steveeJ> hey, i want to try a fast hack on gitlab and don't know ruby. would appreciate quick help. how do i concatenate two %w() arrays?
<shevy> what I dislike about yaml is that one is forced to use UTF so I am looking for a general purpose format without specific encoding attached
<shevy> steveeJ + them
havenwood has joined #ruby
<shevy> >> %w( a b c ) + %w( d e f )
<eval-in> shevy => ["a", "b", "c", "d", "e", "f"] (https://eval.in/74901)
<steveeJ> great. thanks!
<Hanmac> or:
<Hanmac> >> %w( a b c ).concat %w( d e f )
<eval-in> Hanmac => ["a", "b", "c", "d", "e", "f"] (https://eval.in/74902)
<Morrolan> Also, the doc's example is wrong.
<Morrolan> Assumes that Array#+ modifies the array, instead of returing a new one. oO
<Morrolan> >> a = [1, 2, 3]; a + [4, 5, 6]; a.inspect
<eval-in> Morrolan => "[1, 2, 3]" (https://eval.in/74903)
* Morrolan stabs Ruby's documentation
tonni has quit [Quit: Leaving...]
<shevy> always so violent against documentation
<shevy> how it's going to improve if you keep on stabbing at it!
jalcine has quit [Excess Flood]
<Morrolan> Well, I'm trying to cut out the bad pieces, just like you do with a tumor. ;)
Lewis has joined #ruby
<shevy> ewwwww
St_Marx has quit [Ping timeout: 245 seconds]
ua has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
GoodTimes has quit [Ping timeout: 252 seconds]
jeffdb has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
dannymaclean has joined #ruby
zipper has quit [Ping timeout: 265 seconds]
dannymaclean has quit [Client Quit]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<myitcv> Hi all. I'm looking for a bit of help clearing up the semantics of define_method
<myitcv> Specifically in the context of this example:
<myitcv> Can anyone help explain why the call on line 18 fails?
stkowski has joined #ruby
<myitcv> Any thoughts much appreciated
iliketurtles has quit [Quit: zzzzz…..]
<dblack_> myitcv: at that point in execution there's no b
<Hanmac> myitcv: 18 fails because wrong reciver
ua has joined #ruby
funburn has joined #ruby
Barrin6 has quit [Quit: Leaving]
petey has joined #ruby
<myitcv> Hanmac, any ideas on how this can be fixed?
chuk has joined #ruby
<Hanmac> instance_exec
zipper has joined #ruby
Mattias has quit [Ping timeout: 252 seconds]
<myitcv> Hanmac, I don't know what to say. Must have made an error in my attempt at that before. Thanks for confirming.... it's up and working now!
brunops has joined #ruby
rjhunter has joined #ruby
abosley has joined #ruby
fedesilva has joined #ruby
atno has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
JuanMiguel has quit [Quit: Saliendo]
petey has quit [Ping timeout: 240 seconds]
pskosinski has joined #ruby
Elhu has joined #ruby
fedesilv_ has quit [Ping timeout: 245 seconds]
rjhunter has quit [Ping timeout: 240 seconds]
schaary_ has joined #ruby
dangerousdave has joined #ruby
colonolGron has joined #ruby
brtdv has quit []
brian___ has quit [Quit: brian___]
vlad_starkov has quit [Remote host closed the connection]
OdNairy has joined #ruby
jeffdb has quit [Quit: jeffdb]
g3orge has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
Mattias has joined #ruby
<shevy> what is instance_exec
<shevy> and why dont I know it
brtdv has joined #ruby
phansch_ has quit [Quit: Leaving]
<waxjar> it executes a block in the context of the receiver
zipper has quit [Ping timeout: 260 seconds]
Zesty has joined #ruby
mojjojo has joined #ruby
zz_scottstamp is now known as scottstamp
pskosinski has quit [Quit: Til rivido Idisti!]
pleal has joined #ruby
Hanmac1 has joined #ruby
<shevy> hmm
zipper has joined #ruby
iliketurtles has joined #ruby
Hanmac has quit [Ping timeout: 260 seconds]
iliketurtles has quit [Max SendQ exceeded]
Solnse has joined #ruby
iliketurtles has joined #ruby
leeurooi has joined #ruby
hogeo has joined #ruby
ckinni has joined #ruby
sambao21 has joined #ruby
g0bl1n has quit [Ping timeout: 260 seconds]
ckinni has quit [Max SendQ exceeded]
tonni has joined #ruby
ckinni has joined #ruby
nisstyre has joined #ruby
mark_locklear has quit [Read error: Operation timed out]
Jetchisel has joined #ruby
leeurooi has quit [Client Quit]
hogeo has quit [Ping timeout: 265 seconds]
<sam113101> do rails users typically use something to generate their css files? like less, scss or I don't know
jeffdb has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
jibi has quit [Read error: Operation timed out]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<Hanmac1> sam113101: #rubyonrails
zombiebit has joined #ruby
steveeJ has left #ruby ["Leaving"]
ludar has joined #ruby
CaptainKnots has quit [Ping timeout: 252 seconds]
funburn has quit [Quit: funburn]
CaptainKnots has joined #ruby
jibi has joined #ruby
funburn has joined #ruby
DouweM has joined #ruby
bootcoder has quit [Quit: Konversation terminated!]
sleepee has quit [Quit: Leaving]
culturelabs has joined #ruby
bootcoder has joined #ruby
timonv has joined #ruby
Yayo has quit [Ping timeout: 252 seconds]
gianlucadv has quit [Ping timeout: 260 seconds]
dhruvasagar has quit [Read error: Operation timed out]
aryaching has quit [Ping timeout: 272 seconds]
myitcv has quit [Quit: Leaving]
iliketurtles has quit [Quit: zzzzz…..]
amoli has joined #ruby
vlad_starkov has joined #ruby
maoko has quit [Quit: Textual IRC Client: www.textualapp.com]
yfeldblum has quit [Remote host closed the connection]
tylersmith has joined #ruby
timonv has quit [Ping timeout: 246 seconds]
ephemerian has joined #ruby
yfeldblum has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
tonni has quit [Read error: Connection reset by peer]
timonv has joined #ruby
Loaft has joined #ruby
tonni has joined #ruby
soulcake has quit [Ping timeout: 260 seconds]
bigmac has joined #ruby
vlad_starkov has joined #ruby
noyb has joined #ruby
lfox has joined #ruby
tylersmith has quit [Ping timeout: 246 seconds]
bigmac is now known as i8igmac
yfeldblum has quit [Ping timeout: 260 seconds]
Briareos1 has quit [Remote host closed the connection]
GoodTimes has joined #ruby
liamkeily has quit [Ping timeout: 246 seconds]
timonv has quit [Ping timeout: 272 seconds]
kofno has joined #ruby
coderhs has quit [Quit: Leaving]
julweber has joined #ruby
funburn has quit [Quit: funburn]
g0bl1n has joined #ruby
tylersmith has joined #ruby
g0bl1n has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
g0bl1n has joined #ruby
charliesome has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
julweber has quit [Ping timeout: 240 seconds]
i8igmac has quit [Ping timeout: 240 seconds]
soulcake has joined #ruby
culturelabs has quit [Quit: Textual IRC Client: www.textualapp.com]
sepp2k1 has joined #ruby
sergicles has joined #ruby
nateberkopec has joined #ruby
sharms has quit [Ping timeout: 240 seconds]
culturelabs has joined #ruby
sepp2k has quit [Ping timeout: 264 seconds]
Elhu has joined #ruby
noob101 has joined #ruby
jkhwan has quit [Remote host closed the connection]
g3orge has quit [Quit: WeeChat 0.4.2]
dangerousdave has joined #ruby
jkhwan has joined #ruby
sharms has joined #ruby
<noob101> What is a convention in ruby? I know some are ! (the bang method) and ? but what is the definition of the/a convention in ruby?
<RubyPanther> Morrolan: you're right that the code example in the docs has a bug, but the text does describe the correct behavior: "Returns a new array built by concatenating the two arrays together to produce a third array."
<Morrolan> RubyPanther: Indeed. The discrepancy between text and example was what made me suspicious in the first place. :)
<shevy> noob101 well, the ruby parser does not care about any convention, except for capital letters
<shevy> >> class foo; end
<eval-in> shevy => /tmp/execpad-765c386b7e49/source-765c386b7e49:2: class/module name must be CONSTANT ... (https://eval.in/74904)
paudam has joined #ruby
<shevy> noob101, other than that, a guideline is to have methods ending with ? return a boolen value
<MrZYX> >> instance_variable_set :foo
<eval-in> MrZYX => wrong number of arguments (1 for 2) (ArgumentError) ... (https://eval.in/74905)
<MrZYX> shevy: so? :P
<shevy> noob101, and ! methods to return the reciever object
<shevy> hmm?
pskosinski has joined #ruby
<shevy> noob101, and ! methods to modify the reciever object
<MrZYX> you can't have instance variables that don't start with @ either
<noob101> shevy ! = permanant change?
<shevy> yeah because @ivars are not local vars
<MrZYX> and core ! methods only return the receiver when there was a modification to it
havenwood has quit [Remote host closed the connection]
pskosinski has quit [Client Quit]
<shevy> noob101 you could think of it like that, yeah. just look:
<noob101> What is the definition of a convention?
<shevy> >> string = 'abc'; string.gsub!(/a/,''); string
<eval-in> shevy => "bc" (https://eval.in/74906)
<shevy> noob101 when a majority of people may use it?
pskosinski has joined #ruby
<MrZYX> a convention is something most people follow but there's nothing that enforces that behavior
rjhunter has joined #ruby
<shevy> noob101 I dont use the convention for instance
hiyosi has quit [Ping timeout: 264 seconds]
paudam has left #ruby [#ruby]
Loaft has quit [Ping timeout: 246 seconds]
jkhwan has quit [Ping timeout: 272 seconds]
pskosinski has quit [Client Quit]
<RubyPanther> noob101: When Matz has posted his opinion on the matter to the mailing list.
Zesty has quit [Quit: Linkinus - http://linkinus.com]
duggiefresh has joined #ruby
sambao21_ has joined #ruby
hrdina has quit [Quit: Leaving.]
<shevy> in japanese
<shevy> noob101 are you using ruby btw?
pskosinski has joined #ruby
havenwood has joined #ruby
pskosinski has quit [Client Quit]
justsee has joined #ruby
rjhunter has quit [Ping timeout: 246 seconds]
pskosinski has joined #ruby
g0bl1n has quit [Ping timeout: 246 seconds]
paudam has joined #ruby
g0bl1n has joined #ruby
stkowski has quit [Quit: stkowski]
paudam has quit []
spider-mario has quit [Read error: Connection reset by peer]
Hanmac has joined #ruby
paudam has joined #ruby
sambao21_ has quit [Ping timeout: 246 seconds]
paudam has quit [Client Quit]
Hanmac1 has quit [Ping timeout: 252 seconds]
freerobby has joined #ruby
ringaroses has joined #ruby
zombiebit has quit [Remote host closed the connection]
Barrin6 has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
threesome has quit [Ping timeout: 245 seconds]
g0bl1n has quit [Ping timeout: 260 seconds]
pwestlund is now known as pwestlund_away
ringaroses has quit [Ping timeout: 245 seconds]
newbiehacker has joined #ruby
newbiehacker has quit [Read error: Connection reset by peer]
newbiehacker has joined #ruby
SHyx0rmZ has quit [Ping timeout: 264 seconds]
hogeo has joined #ruby
Guest32896 has quit [Remote host closed the connection]
jamesaanderson has joined #ruby
<shevy> when I have an array of arrays
<shevy> [[1,2,3],[4,5,6]
<shevy> how to fetch the first element of each subarray there? so that I would get [1,4]
<shevy> I forgot a ]
sambao21 has joined #ruby
<MrZYX> .map(&:first) ?
zipper has quit [Quit: leaving]
Solnse has quit [Remote host closed the connection]
SHyx0rmZ has joined #ruby
hogeo has quit [Ping timeout: 240 seconds]
<shevy> cool
rubyracer has joined #ruby
TDJACR has quit [Ping timeout: 245 seconds]
noob101 has quit [Ping timeout: 250 seconds]
jalcine- has joined #ruby
sambao21 has quit [Ping timeout: 265 seconds]
hiyosi has joined #ruby
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
jalcine- is now known as jalcine
jalcine has quit [Changing host]
jalcine has joined #ruby
petey has joined #ruby
Barrin6 has quit [Quit: Leaving]
jbpros has quit [Quit: jbpros]
pwestlund_away is now known as pwestlund
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
drumusician has quit [Ping timeout: 240 seconds]
hiyosi has quit [Ping timeout: 245 seconds]
pwestlund is now known as pwestlund_away
hiall has quit [Quit: hiall]
Elhu has quit [Quit: Computer has gone to sleep.]
TDJACR has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
g0bl1n has joined #ruby
Mon_Ouie has quit [Ping timeout: 246 seconds]
kirun has quit [Quit: Client exiting]
banghouse has joined #ruby
timonv has joined #ruby
banghouse is now known as Guest7212
scottstamp is now known as zz_scottstamp
zz_scottstamp is now known as scottstamp
TigerWolf has joined #ruby
nowthatsamatt has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
TigerWolf has quit [Client Quit]
Hanmac has quit [Ping timeout: 265 seconds]
Lewix has joined #ruby
abosley has quit [Quit: abosley]
Hanmac has joined #ruby
dagnachew has joined #ruby
Lewix has quit [Remote host closed the connection]
barratt has joined #ruby
allsystemsarego has quit [Quit: Leaving]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wesside has joined #ruby
fomatin has joined #ruby
dnXx has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
ludar has quit [Ping timeout: 265 seconds]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
javon has joined #ruby
charliesome has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iliketur_ has joined #ruby
rjhunter has joined #ruby
hiall has joined #ruby
ckinni has joined #ruby
mojjojo has quit [Quit: mojjojo]
fgo has joined #ruby
mojjojo has joined #ruby
hiall has quit [Client Quit]
javierbuilder1 has joined #ruby
mikepack has joined #ruby
javierbuilder1 has quit [Max SendQ exceeded]
gr33n7007h has joined #ruby
danshultz has joined #ruby
Hanmac1 has joined #ruby
ambushsabre has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
brunto has quit [Ping timeout: 265 seconds]
mikepack has quit [Ping timeout: 240 seconds]
mark_locklear has joined #ruby
noyb has quit [Ping timeout: 260 seconds]
mark_locklear has quit [Remote host closed the connection]
Briareos1 has joined #ruby
petey has quit [Remote host closed the connection]
kofno has quit [Ping timeout: 246 seconds]
mojjojo has quit [Quit: mojjojo]
petey has joined #ruby
kitak has quit [Remote host closed the connection]
sambao21 has joined #ruby
mojjojo has joined #ruby
lfox has quit [Quit: ZZZzzz…]
julweber has joined #ruby
benzrf has joined #ruby
<benzrf> hi, what's a ruby debugger?
jrhe has quit [Quit: jrhe]
lfox has joined #ruby
shime has quit [Ping timeout: 246 seconds]
<DouweM> benzrf: you're asking for an example of a ruby debugger, or what a debugger actually is?
schaary_ has quit [Quit: I sleep ZZZzzz…]
vlad_starkov has quit [Remote host closed the connection]
petey has quit [Ping timeout: 252 seconds]
ludar has joined #ruby
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
sambao21 has quit [Ping timeout: 245 seconds]
justsee has quit [Ping timeout: 252 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tonni has quit [Remote host closed the connection]
dnXx has quit [Ping timeout: 246 seconds]
pwh has joined #ruby
m8 has quit [Quit: Sto andando via]
havenwood has quit [Remote host closed the connection]
tedstrik_ has joined #ruby
<shevy> benzrf I think you can get more information with it
pleal has quit [Remote host closed the connection]
<shevy> ruby -rdebug myscript.rb
<shevy> -
<shevy> b <line>: put break-point
<shevy> and n(ext) or s(tep) and c(ontinue)
<shevy> p(uts) for display
<shevy> -
<benzrf> thanks
<shevy> real men don't need to debug though
<benzrf> pfft
pleal has joined #ruby
<shevy> how do you debug in haskell?
<benzrf> i usually use the REPL
<benzrf> but in haskell, it's easier to repl-debug
<snkcld> I have a hash where each key's value is an array, and i would like to to_s each of those array's elements.. how would i accomplish this
<benzrf> your funcs are usually more broken up & you don't need to see into the middle of one as much
<snkcld> i tried to use .map but that seems to return a hash
<benzrf> snkcld: it returns a list of pairs
<benzrf> snkcld: *k/v pairs
<benzrf> snkcld: use .keys.map
tedstrik_ has quit [Client Quit]
mjs2600 has joined #ruby
<benzrf> >> {[1, 2, 3] => :a, [4, 5, 6] => :b}.keys.map &:to_s
<eval-in> benzrf => ["[1, 2, 3]", "[4, 5, 6]"] (https://eval.in/74919)
<snkcld> ok let me try that
<benzrf> :)
<snkcld> benzrf: for what its worth, heres the sample
<snkcld> i want the datetimes to be to_s'd
<snkcld> but yea, ill try what you said
xcv has joined #ruby
<benzrf> ohhh
<benzrf> you want .values TheNumb
<benzrf> *then
<snkcld> err
<snkcld> wat. lol haha
<benzrf> >> {a: 1, b: 2}.values.map &:to_s
<eval-in> benzrf => ["1", "2"] (https://eval.in/74921)
<snkcld> >> {"updated_at" => [DateTime.now, DateTime.now]}
<eval-in> snkcld => uninitialized constant DateTime (NameError) ... (https://eval.in/74922)
<snkcld> >> {"updated_at" => [Time.now, Time.now]}
<eval-in> snkcld => {"updated_at"=>[2013-12-02 00:20:03 +0100, 2013-12-02 00:20:03 +0100]} (https://eval.in/74924)
pleal has quit [Ping timeout: 245 seconds]
<snkcld> >> {"updated_at" => [Time.now, Time.now]}.values.map &:to_s
<eval-in> snkcld => ["[2013-12-02 00:20:16 +0100, 2013-12-02 00:20:16 +0100]"] (https://eval.in/74925)
<snkcld> hmmm... unfortunately i want each element to still be an element ;P but i think this is the right track
<benzrf> oh, you want to do it in place?
<benzrf> do you want a new hash or to update the old one?
<snkcld> new
<benzrf> ok
<benzrf> you can get a list of pairs with map
<benzrf> then you can turn that into a hash
<benzrf> like so:
<benzrf> >> {a: 1, b: 2}.map {|k, v| [k, v.to_s]}
<eval-in> benzrf => [[:a, "1"], [:b, "2"]] (https://eval.in/74926)
<benzrf> >> pairs = {a: 1, b: 2}.map {|k, v| [k, v.to_s]}; Hash[pairs]
<eval-in> benzrf => {:a=>"1", :b=>"2"} (https://eval.in/74927)
mojjojo has quit [Quit: mojjojo]
<DouweM> use v.map(&:to_s) instead of v.to_s. v is an array of [old, new
<DouweM> ]
<benzrf> hm?
<benzrf> snkcld: do you want the vals to be strings, or arrays of strings?
<snkcld> benzrf: given {"updated_at" => [Time.now, Time.now]}, i would like: {"updated_at" => ["2013-07-16", "2013-07-16"]}
<benzrf> then what DouweM said
<snkcld> but obviously it would be todays date, but yea, just convert the Time objs to strings
<DouweM> :)
<benzrf> also, sup Douwe
<DouweM> sup benzrf
<benzrf> nm
dagnachew has quit [Quit: Leaving]
hiyosi has joined #ruby
jalcine has quit [Excess Flood]
<DouweM> same here, right now anyway. been pretty busy last couple of weeks with school and personal stuff
mojjojo has joined #ruby
Hanmac has joined #ruby
<DouweM> but hey, that's quieted down, so time for IRC :)
Hanmac1 has quit [Ping timeout: 246 seconds]
<snkcld> the thing is, im getting a model's changes via x.changes, and the types of the values arent strings
<snkcld> i just want to convert every value to a string
<DouweM> >> changes = {"updated_at" => [Time.now, Time.now]}; Hash[changes.map{|k,v| [k, v.map(&:to_s)]}]
<eval-in> DouweM => {"updated_at"=>["2013-12-02 00:27:49 +0100", "2013-12-02 00:27:49 +0100"]} (https://eval.in/74928)
havenwood has joined #ruby
<snkcld> whooo hoooooo
<DouweM> that's basically what benzrf said btw, to credit goes to him
<snkcld> haha thanks to both. now i just need to mess with it to understand exactly whats happeneing
amoli has quit [Ping timeout: 246 seconds]
<snkcld> im especially confused about the whole Hash[] thing, like, why does it use square brackets? thats rly strange to me
<DouweM> changes = {"updated_at" => [Time.now, Time.now]}; changes.map{|k,v| [k, v.map(&:to_s)]}
<DouweM> >> changes = {"updated_at" => [Time.now, Time.now]}; changes.map{|k,v| [k, v.map(&:to_s)]}
<eval-in> DouweM => [["updated_at", ["2013-12-02 00:29:17 +0100", "2013-12-02 00:29:17 +0100"]]] (https://eval.in/74929)
hiyosi has quit [Ping timeout: 260 seconds]
<snkcld> well, with Hash actually gave me what im looking for
mojjojo has quit [Client Quit]
kitak has joined #ruby
<DouweM> #map over a hash will return an array with [key, value] arrays for every key/value in the original hash
<snkcld> uh huh
<DouweM> Hash[] is the .[stuff] method on Hash, which understands [[key1, value1],[key2,value2]] and turns it into {key1 => value1, key2 => value2}
<snkcld> ah.. its just weird that it uses... like, it just looks like your accessing an element of the Hash array
javierbuilder1 has joined #ruby
<DouweM> right, looks that way, but ::[] is a method like any other in Ruby
AlSquirikou has quit [Quit: This computer has gone to sleep]
<snkcld> other than the fact that ruby knows to pass whats inside to the [] function yea?
<DouweM> right
<snkcld> like, if knows that you dont want blah.[](1,2)
sepp2k1 has quit [Quit: Leaving.]
<DouweM> well, that's actually what's happening for blah[1,2]
robbyoconnor has quit [Ping timeout: 260 seconds]
<snkcld> yea yea
<snkcld> OH
<snkcld> like even if blah was really an array
<DouweM> that's how operator overloading works in ruby
<DouweM> yes!
<snkcld> haha
<DouweM> it's just the #[key] method
<ddd> i understand what you did, but i'll be a monkey's uncle if i can walk the steps. the mapping of k,v made an anonymouse array, with k as arr[0] and v as arr[0]'s value or arr[0][1] ?
<snkcld> thats awesome.
<ddd> reading its getting messy in the mind's eye
<snkcld> so [] is special, and <<, etc
<DouweM> >> a = [1,2,3]; a.[](1)
<eval-in> DouweM => 2 (https://eval.in/74930)
<DouweM> :)
<DouweM> snkcld: yeah
venkat has joined #ruby
javierbuilder1 has quit [Max SendQ exceeded]
AlSquirikou has joined #ruby
AlSquirikou has quit [Client Quit]
coldie has joined #ruby
<DouweM> >> {:k1 => :v1, :k2 => :v2}.to_a
<eval-in> DouweM => [[:k1, :v1], [:k2, :v2]] (https://eval.in/74931)
<snkcld> but yea, its just strange that whoever wrote Hash would want the functionality accessed like "Hash[]", because still, it looks like youre getting make a value of an array, but really its just converting an array for you
<DouweM> ddd: that's how #to_a and #map work on hash
<DouweM> snkcld: right. in this case you shouldn't think about getting/indexing
<DouweM> snkcld: There's Array[] as well
<ddd> ohhhh
<DouweM> which doesn't index either
<snkcld> DouweM: hmm. strange. maybe its just my naivete
<ddd> don't know why that last one was so much easier to read than your first
javierbuilder1 has joined #ruby
<DouweM> ddd: ;) and Hash[that_array] will turn it into a hash again:
<DouweM> >> Hash[{:k1 => :v1, :k2 => :v2}.to_a]
<snkcld> i mean i can see why you would want to make it look like youre indexing an array, when rly theres more stuff happening behind the scenes, but im notseeing the logic behind Hash
<eval-in> DouweM => {:k1=>:v1, :k2=>:v2} (https://eval.in/74932)
Kricir has quit [Remote host closed the connection]
<snkcld> haha
<ddd> thanks.
<DouweM> snkcld: you mean Hash[] specifically?
petey has joined #ruby
<benzrf> isnt [] an alias to .new on Hash?
Kricir has joined #ruby
gr33n7007h has quit [Ping timeout: 245 seconds]
<DouweM> snkcld: [whatever] also kind of feels like wrapping. So Hash[whatever] wraps whatever inside a hash
<DouweM> benzrf: no!
javierbuilder1 has quit [Max SendQ exceeded]
<benzrf> !
<DouweM> snkcld: same with Array[whatever], which will return whatever if it's already an array, and [whatever] otherwise. so, it wraps it :)
<snkcld> hmm
<benzrf> >> Array[]
<eval-in> benzrf => [] (https://eval.in/74933)
gr33n7007h has joined #ruby
<ddd> >> Hash[]
<eval-in> ddd => {} (https://eval.in/74934)
machi_ has joined #ruby
<DouweM> >> Array[1]
<eval-in> DouweM => [1] (https://eval.in/74935)
<DouweM> >> Array[[1]]
<eval-in> DouweM => [[1]] (https://eval.in/74936)
cbetta has left #ruby ["Textual IRC Client: www.textualapp.com"]
<DouweM> hmm
cbetta has joined #ruby
cbetta has left #ruby ["Textual IRC Client: www.textualapp.com"]
brtdv has quit []
<DouweM> I was mistaken. I meant Array(), I think. forget what I said about Array[]
<snkcld> Hash[[0,1]]
<DouweM> >> Array([1])
<snkcld> >> Hash[[0,1]]
<eval-in> DouweM => [1] (https://eval.in/74937)
<eval-in> snkcld => /tmp/execpad-1faef7a4e072/source-1faef7a4e072:2: warning: wrong element type Fixnum at 0 (expected array) ... (https://eval.in/74938)
<snkcld> >> Hash[[1,2]]
<eval-in> snkcld => /tmp/execpad-895dbcfe6662/source-895dbcfe6662:2: warning: wrong element type Fixnum at 0 (expected array) ... (https://eval.in/74939)
colonolGron has quit [Quit: Lost terminal]
<snkcld> ill just read up more baout i
<snkcld> but yea, what yall gave me is working perfectly. so thanks
colonolGron has joined #ruby
<DouweM> snkcld: what you're ding now is passing [1,2] to Hash[]. but Hash[] expects an array *of arrays*. so [[1,2]], so Hash[[[1,2]]]
<DouweM> >> Hash[[[1,2]]]
<eval-in> DouweM => {1=>2} (https://eval.in/74940)
<DouweM> *doing
g0bl1n has quit [Ping timeout: 252 seconds]
Kricir has quit [Ping timeout: 246 seconds]
<bnagy> or just an even number of elements works
<matled> >> Hash[1,2]
<eval-in> matled => {1=>2} (https://eval.in/74944)
<bnagy> >> Hash[*[1,2]]
<eval-in> bnagy => {1=>2} (https://eval.in/74945)
<DouweM> bnagy: right. but we were discussing the [[key,value]] stuff specifically
<snkcld> uh huh
<DouweM> bnagy: but yeah, that works
<DouweM> >> Hash[1,2,3,4]
<eval-in> DouweM => {1=>2, 3=>4} (https://eval.in/74947)
<snkcld> oooo
<bnagy> splatting into Hash[] comes up pretty often as a technique
<snkcld> ok, so it turns an array into a hash, where the array has the format [key1,value1,key2,value2]
<DouweM> bnagy: yup
<snkcld> heh yea yea
<DouweM> snkcld: yup!
uxp_ has quit [Remote host closed the connection]
machi_ has quit [Client Quit]
<snkcld> DouweM: but how often does one come upon an array following that format?
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
relix has joined #ruby
<DouweM> snkcld: I've never encountered it
<snkcld> i mean, im new to ruby and all, but i dont think im experience ive had experience with arrays following that order
<ddd> i'm going to have to take some time with this i can see because i'm only partially understanding how thats working
<snkcld> obv its useful, as its solving my problem ;P
<snkcld> but still, i mean, maybe in ruby it happens alot?
<snkcld> i mean im loving ruby and all, but this Hash[] thing is just blowing my mind
<snkcld> hahaha
<DouweM> snkcld: you're using [[k,v],[k1,v1]], which you come across when #map or #to_a'ing a Hash ;)
lukec has joined #ruby
<DouweM> snkcld: so it's pretty much there as a counterpart to those
<snkcld> DouweM: yea thats what i was thinking. exactly
<snkcld> its a counterpart
<DouweM> snkcld: [k1,v1,k2,v2] I've never encountered
jibi has quit [Quit: .]
<benzrf> see u
benzrf has left #ruby [#ruby]
mojjojo has joined #ruby
lkba has joined #ruby
<havenwood> snkcld: In Ruby 2.1 you'll be able to: [[:a, 1], [:b, 2]].to_h #=> {:a=>1, :b=>2}
<DouweM> oh!
Lewix has joined #ruby
<snkcld> havenwood: whaaaat! so the order wouldnt matter, or what?
<snkcld> oh wait nvm
<havenwood> snkcld: it is ordered
<DouweM> it's just defining Array#to_h to do Hash[self]
<ddd> that doc page, it looks like 2nd form is taking a hash (innermost), converting to a dble index array, and then converting back to a hash.
<havenwood> DouweM: no, it is different behavior, but similar
<snkcld> it lets you use symbols as keys in the resulting hash
krainboltgreene has joined #ruby
<snkcld> thats the difference no?
<DouweM> havenwood: oh?
Lewix has quit [Remote host closed the connection]
<DouweM> snkcld: symbols are just Symbol objects. Hash[] does that too
<ddd> (whats the word for double index: arr[indx0,idx1])
<havenwood> DouweM: Hash[1, 2, 3, 4] #=> {1=>2, 3=>4}
<DouweM> havenwood: my stating they were the same was just because snkcld was confused—I haven't actually seen the implementation
<havenwood> DouweM: [1, 2, 3, 4].to_h #=> {}
<DouweM> havenwood: ah, all right
<havenwood> DouweM: Similar no doubt, and I way prefer #to_h as far as semantics/syntax.
<DouweM> yeah without a doubt
pleal has joined #ruby
<DouweM> ddd: that doesn't work like you'd (perhaps) expect
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
sprites has joined #ruby
<ddd> it doesn't
<DouweM> ddd: it's not access to a multidimensional array, array[i, n] reads n objects starting from index i
<snkcld> ok, im kinda seeing whats going on in the snippet youre giving me. the Hash[] stuff is being conformed to via [changed_field, change_set.map(&:to_s)]
<DouweM> >> [0,1,2,3,4,5][1,2]
<eval-in> DouweM => [1, 2] (https://eval.in/74952)
<ddd> thats the word i was looking for
<DouweM> snkcld: :D
mjs2600 has quit [Remote host closed the connection]
<snkcld> so yea the idea is you conform to this [k,v] order, then use Hash to hash it
timonv has joined #ruby
<DouweM> snkcld: yup
xcv has quit [Remote host closed the connection]
sambao21 has joined #ruby
<snkcld> well, i must say, im def into it. i mean, the reason this is being done is to leverage .map
xcv has joined #ruby
<snkcld> that is, using .each, if wouldnt be needed, i could just use a temp var some where, return that
<ddd> i'm getting a lesson. works for me :)
<snkcld> but to leverage map in this way, we need to Hash[ [k,v]]
<DouweM> snkcld: right
<snkcld> good god
pleal has quit [Ping timeout: 246 seconds]
<snkcld> so different.
<snkcld> is this Hash[] <-> .map <-> [k,v] usage common?
<DouweM> snkcld: also note that Hash#each and Hash#map actually pass [key, value] to the block. so hash.each { |pair| key = pair[0]; value = pair[1]; }
<DouweM> snkcld: this can be written as hash.each { |(key, value)| ... }
<snkcld> uh huh
<ddd> DouweM: now THAT i'm used to seein
mojjojo has quit [Quit: mojjojo]
<ddd> g
<DouweM> and Ruby is also smart enough to have hash.each { |key, value| ... } work
<DouweM> snkcld: #map <> Hash[] is somewhat common, yeah
<ddd> so #map is equal to the |pair| key =... example?
<ddd> map throws me quite often
timonv has quit [Ping timeout: 240 seconds]
<DouweM> ddd: hash.map basically does hash.to_a.map. so from that point you're dealing with the [[k,v]] array
<ddd> i don't really understand its workings for sure. so i avoid it
xcv has quit [Ping timeout: 252 seconds]
bigmac has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
<DouweM> >> {:a => 1, :b => 2}.map { |k,v| [k,v]}
<eval-in> DouweM => [[:a, 1], [:b, 2]] (https://eval.in/74953)
lfox has quit [Quit: ZZZzzz…]
<DouweM> yeah, it might be confusing that Hash#map doesn't return another Hash, like you expect from Array#map
javax has left #ruby [#ruby]
<DouweM> all right, I'm gonna get some sleep
<DouweM> cya
<snkcld> alriht DouweM thanks!
<ddd> later and thanks
sprites has quit [Quit: Leaving]
eka has joined #ruby
pleal has joined #ruby
<snkcld> *jots down DouweM's nick to ask questions later*
<DouweM> :D
<rjhunter> `Hash#each_pair` exists as well, for explicitness' sake
bigmac is now known as i8igmac
Kricir has joined #ruby
weeems has joined #ruby
ddd has quit [Quit: ok, classes in the morning. early to bed early to rise they say]
pleal has quit [Ping timeout: 246 seconds]
sambao21 has quit [Ping timeout: 252 seconds]
hiyosi has joined #ruby
pleal has joined #ruby
Jetchisel has joined #ruby
ahawkins has quit [Quit: leaving]
dnXx has joined #ruby
vlad_starkov has joined #ruby