apeiros changed the topic of #ruby to: Ruby 2.1.0-p0; 2.0.0-p353; 1.9.3-p484: http://ruby-lang.org|| Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
mml has joined #ruby
Targen has quit [Ping timeout: 260 seconds]
lnormous has joined #ruby
pehlert has quit [Ping timeout: 260 seconds]
Targen has joined #ruby
sassamo has joined #ruby
psyl0n has quit [Remote host closed the connection]
bennyboobooboo has quit [Remote host closed the connection]
psyl0n has joined #ruby
bennyboobooboo has joined #ruby
zxd has joined #ruby
dweeb_ has quit [Quit: Computer has gone to sleep.]
toastynerd has joined #ruby
sassamo has quit [Remote host closed the connection]
lethjakman has quit [Quit: WeeChat 0.4.0]
sassamo has joined #ruby
sassamo has quit [Read error: Connection reset by peer]
sassamo has joined #ruby
yasushi has quit [Remote host closed the connection]
okinomo has quit [Ping timeout: 252 seconds]
kevind has quit [Quit: kevind]
bennyboobooboo has quit [Ping timeout: 260 seconds]
zxd has quit [Ping timeout: 252 seconds]
senj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mklappstuhl has joined #ruby
kevind has joined #ruby
ando has quit [Ping timeout: 252 seconds]
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danshultz has quit [Remote host closed the connection]
gasbakid has quit [Remote host closed the connection]
mklappstuhl has quit [Ping timeout: 252 seconds]
mklappstuhl has joined #ruby
kitak has joined #ruby
v0n has quit [Quit: WeeChat 0.4.2]
dik_dak has quit [Quit: Leaving]
FifthWork has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
kitak_ has joined #ruby
ereslibre_laptop has quit [Ping timeout: 276 seconds]
burlyscudd has quit [Quit: Leaving.]
sheap has joined #ruby
okinomo has joined #ruby
mklappstuhl has quit [Ping timeout: 252 seconds]
kitak has quit [Ping timeout: 245 seconds]
pranny has joined #ruby
kitak has joined #ruby
pel_daniel has joined #ruby
mary5030_ has quit [Remote host closed the connection]
v0n has joined #ruby
kitak_ has quit [Ping timeout: 245 seconds]
coca_rails has joined #ruby
mojjojo has joined #ruby
Bira has quit [Remote host closed the connection]
timonv has joined #ruby
fgo has joined #ruby
troyready has quit [Ping timeout: 245 seconds]
pranny has quit [Ping timeout: 252 seconds]
pel_daniel has left #ruby [#ruby]
wallerdev has joined #ruby
CaptainJet has quit []
coca_rails has quit [Ping timeout: 245 seconds]
zRecursive has joined #ruby
yarou has joined #ruby
ahawkins has quit [Ping timeout: 252 seconds]
dEPy has quit [Quit: Computer has gone to sleep.]
timonv has quit [Ping timeout: 252 seconds]
LiohAu has quit [Quit: LiohAu]
<pontiki> o/
doodlehaus has joined #ruby
lfox has quit [Quit: ZZZzzz…]
IceDragon has quit [Quit: Space~~~]
fijimunk1i has quit [Ping timeout: 252 seconds]
zcreative has joined #ruby
kitak has quit [Remote host closed the connection]
Mars has joined #ruby
Mars is now known as Guest61108
breakingthings has quit []
<benzrf|afk> hows it goin mars
benzrf|afk is now known as benzrf
<benzrf> did i see you on synirc
colonolGron has quit [Quit: Lost terminal]
nateberkopec has joined #ruby
Kar- has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
mojjojo has quit [Quit: mojjojo]
momomomomo has joined #ruby
fgo has quit [Remote host closed the connection]
okinomo has quit [Ping timeout: 265 seconds]
okinomo_ has joined #ruby
fijimunkii has joined #ruby
freebs has joined #ruby
Dorf2 is now known as Dorf
nateberkopec has quit [Ping timeout: 252 seconds]
nwertman has quit [Ping timeout: 252 seconds]
Dorf has quit [Changing host]
Dorf has joined #ruby
mklappstuhl has joined #ruby
Kar- has quit [Ping timeout: 265 seconds]
jamesaanderson has joined #ruby
Jdubs has quit [Remote host closed the connection]
jamesaanderson has quit [Max SendQ exceeded]
Vivekananda has joined #ruby
blarghmatey has joined #ruby
jamesaanderson has joined #ruby
kitak has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
Jetchisel has joined #ruby
VTLob has quit [Quit: VTLob]
maroloccio has quit [Quit: WeeChat 0.4.2]
ner0x has joined #ruby
MrZYX is now known as MrZYX|off
enebo has joined #ruby
zz_karupanerura is now known as karupanerura
maletor has quit [Quit: Computer has gone to sleep.]
jamesaanderson has joined #ruby
jamesaanderson has quit [Client Quit]
mklappstuhl has quit [Ping timeout: 261 seconds]
haleigh has joined #ruby
haleigh has quit [Client Quit]
tylersmith has quit [Remote host closed the connection]
Aryasam has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
tylersmith has joined #ruby
aryaching has quit []
horofox_ has quit [Quit: horofox_]
lukec has quit [Quit: lukec]
enebo has quit [Client Quit]
jonahR has joined #ruby
benlieb has quit [Quit: benlieb]
|RicharD| has quit [Quit: Sto andando via]
predator217 has joined #ruby
tylersmith has quit [Ping timeout: 252 seconds]
wang_ is now known as wang
predator117 has quit [Ping timeout: 252 seconds]
rootshift has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
lmickh has quit [Remote host closed the connection]
cameronbarton has quit [Quit: cameronbarton]
jonathanwallace has quit [Quit: ZNC - http://znc.in]
phipes has quit [Remote host closed the connection]
dayepa has quit [Quit: dayepa]
m00nlight_ has quit [Quit: Konversation terminated!]
dayepa has joined #ruby
brianpWins has quit [Quit: brianpWins]
robustus has quit [Ping timeout: 245 seconds]
aryaching has joined #ruby
maroloccio has joined #ruby
kevind has quit [Quit: kevind]
Aryasam has quit [Quit: Bye]
pen has quit [Remote host closed the connection]
freezey has joined #ruby
robustus has joined #ruby
Nogbit has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
nanoyak has joined #ruby
mansi has joined #ruby
wildroman2 has joined #ruby
beneggett has quit [Ping timeout: 252 seconds]
dachi_ has joined #ruby
dada123 has joined #ruby
phipes has joined #ruby
Albright has quit [Read error: Connection reset by peer]
shadoi has quit [Quit: Leaving.]
fgo has joined #ruby
Albright has joined #ruby
wildroman2 has quit [Ping timeout: 252 seconds]
havenwood has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
tkuchiki has joined #ruby
havenwood has joined #ruby
dachi_ has quit [Disconnected by services]
d2dchat has joined #ruby
Oog has joined #ruby
jonnyro has quit [Quit: leaving]
mklappstuhl has quit [Read error: Connection reset by peer]
<Oog> im doing fork block and want to monitor in the parent the status of the forked process to see if it has exited. how can i do this? I see Process::Status but that seems to only work with the last fork or osmething?
mklappstuhl has joined #ruby
<Oog> f = fork my_block f.exited? taht work?
<benzrf> pry
<benzrf> oops
<benzrf> not bash
Albright has quit [Read error: Connection timed out]
ereslibre has joined #ruby
tt1187 has quit [Ping timeout: 252 seconds]
<benzrf> Oog: the return value of fork should be the child pid in the original
<benzrf> and nil in the child
havenwood has quit [Ping timeout: 265 seconds]
<Oog> indeed it is how do i heck the status of a pid
mklappstuhl has quit [Read error: Connection reset by peer]
mklappstuhl has joined #ruby
<benzrf> hm?
<benzrf> oh i see
<bnagy> Process ?
shadoi has joined #ruby
<Oog> looks like I can do wait() and it will wait for any child to exit
<Oog> thats actually what i want to do
<Oog> is monitory my chidlren
<Oog> and if anye xit restart them
freezey has quit [Remote host closed the connection]
Landshark753 has joined #ruby
<bnagy> that uses $? though, which is barfy
<Oog> bnagy: i saw that but it doesnt take a pid in any of the functions? thats why i was confused
<Oog> yeah
cbetta is now known as cbetta_afk
<Oog> do i just set $?=pid then call it?
<bnagy> you need to Process.wait first to get $? assigned
aryaching has quit [Ping timeout: 260 seconds]
freezey has joined #ruby
<bnagy> there has to be another way though
jamesaanderson has joined #ruby
rootshift has quit [Quit: rootshift]
alexfreidah has quit [Ping timeout: 260 seconds]
mklappstuhl has quit [Ping timeout: 252 seconds]
fgo has quit [Remote host closed the connection]
<bnagy> oh waitpid(pid)
pranny has joined #ruby
<bnagy> there are some specific notes about child processes of your own process
<benzrf> whats 32 * 3
<benzrf> oh
alexfreidah has joined #ruby
jamesaanderson has quit [Client Quit]
<Oog> intereting thanks
dachi_ has joined #ruby
coca_rails has joined #ruby
thumpba has quit [Remote host closed the connection]
<benzrf> does super return to where it was called?
<bnagy> well, immediately after, yeah
<bnagy> otherwise, you know. Loop.
jonathanwallace has joined #ruby
<benzrf> ;p
thumpba has joined #ruby
Virtualize has joined #ruby
danshultz has joined #ruby
pranny has quit [Ping timeout: 252 seconds]
<benzrf> 32 * 8
jonathanwallace has quit [Client Quit]
cbetta_afk is now known as cbetta
coca_rails has quit [Ping timeout: 245 seconds]
Soliah has joined #ruby
juarlex has joined #ruby
dada123 has quit [Quit: Page closed]
benlieb has joined #ruby
okinomo_ has quit [Ping timeout: 254 seconds]
Megtastique has quit []
jamesaanderson has joined #ruby
danshultz has quit [Ping timeout: 260 seconds]
binaryhat has joined #ruby
okinomo has joined #ruby
nateberkopec has joined #ruby
fgo has joined #ruby
mary5030 has joined #ruby
marr has quit [Ping timeout: 252 seconds]
jbueza has quit [Quit: Textual IRC Client: www.textualapp.com]
jamesaanderson has quit [Client Quit]
keen_ has joined #ruby
Oog has quit [Quit: Page closed]
Landshark753 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf> ##programming
<benzrf> oops
deens has quit []
aryaching has joined #ruby
d2dchat has quit [Remote host closed the connection]
jonahR has quit [Quit: jonahR]
nateberkopec has quit [Ping timeout: 265 seconds]
mary5030 has quit [Ping timeout: 260 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
dik_dak has joined #ruby
Landshark753 has joined #ruby
Kar- has joined #ruby
benlieb has quit [Quit: benlieb]
okinomo_ has joined #ruby
bricker is now known as bricker`away
okinomo has quit [Ping timeout: 260 seconds]
havenwood has joined #ruby
dachin has joined #ruby
<dachin> join sailsjs
Guest61108 has quit [Remote host closed the connection]
<dachin> sorry
joaoh82 has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
freebs has quit [Quit: Leaving.]
Radcircle has joined #ruby
Mars has joined #ruby
freezey has quit [Ping timeout: 260 seconds]
Mars is now known as Guest90829
Kar- has quit [Ping timeout: 260 seconds]
zRecursive has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
jlast has joined #ruby
guilund has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 252 seconds]
Megtastique has joined #ruby
lfox has joined #ruby
mklappstuhl has quit [Ping timeout: 252 seconds]
lnormous has quit [Ping timeout: 252 seconds]
lukec has joined #ruby
mneorr has quit [Remote host closed the connection]
croaky has quit [Ping timeout: 265 seconds]
hiall has quit [Quit: hiall]
mneorr has joined #ruby
Megtastique has quit [Client Quit]
pwh has quit [Ping timeout: 260 seconds]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pwh has joined #ruby
mary5030 has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
amedeiros has joined #ruby
Megtastique has joined #ruby
mneorr has joined #ruby
sevenseacat has joined #ruby
chrisramon has joined #ruby
devdazed_ has quit [Quit: Bye]
<sevenseacat> is Nilium around right now?
amedeiros has quit [Read error: No route to host]
amedeiro_ has joined #ruby
<Nilium> Yes.
<Nilium> Is that a good thing or a bad thing?
<sevenseacat> well I'm just going to ask what on earth you updated in your ST2 Nil theme today
binaryhat has quit [Quit: Leaving]
<Nilium> Well there's a commit log..
<Radcircle> is there any way to pick a random value out of an array? as in, if you get one output, how do you prevent it from repeating the last output?
<Nilium> If you prevent it from repeating the last output, isn't that not random?
simoz118 has joined #ruby
aryaching_ has joined #ruby
<Nilium> sevenseacat: The short answer is that I changed the XML/HTML colors.
<Nilium> For Big Duo, anyway.
<Nilium> Every other color scheme is the same because I don't use them.
<sevenseacat> okay my problem is unrelated then
Landshark753 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has quit [Remote host closed the connection]
<sevenseacat> it updated and its just... gone
mary5030 has joined #ruby
<bnagy> Radcircle: you can sort randomly then pop, for example
<benzrf> Radcircle: use sample
<benzrf> Radcircle: oh i see
<benzrf> Radcircle: yeah what bnagy said
<Radcircle> thank you
aryaching has quit [Ping timeout: 265 seconds]
<benzrf> yep
<Nilium> http://dl.dropbox.com/u/31892/Screenshots/ufke.png ⇐ XML used to be just purple, now it looks like this (ignore the shite support for XML in Sublime and my inconsistent placement of attributes).
havenwood has joined #ruby
<benzrf> that looks purple to me
sepp2k has quit [Read error: Connection reset by peer]
fijimunkii has quit [Ping timeout: 265 seconds]
<bnagy> benzrf: no you're right, sample(n) does the same if you need less than the whole array
tylersmith has joined #ruby
<Nilium> It's less purple.
pehlert has joined #ruby
<benzrf> bnagy: it doesn't remove the element though
<bnagy> no, but it won't repeat
<benzrf> Radcircle: do you want to never get the element chosen again?
<Radcircle> not for the next "cycle"
<Radcircle> if that makes sense.
<Radcircle> quotes = [:bread, :butter, :cow, :goat].sample.pop(1) is that looking good?
<benzrf> Radcircle: no, don't use sample
<Radcircle> forgive me if i suck, first day with rails
<bnagy> >> [1,2,3,4].sample(4).sort == [1,2,3,4]
travisjeffery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<benzrf> sample picks a random element but doesn't change anything
<benzrf> Radcircle: if you want a random ordering, just scramble the array
<bnagy> hm. Well 'true'. eval-in still broken huh?
<benzrf> *shuffle
<benzrf> dammit charliesome
<Radcircle> so what method should i use instead of sample?
shedd has quit [Remote host closed the connection]
<sevenseacat> hooray, i uninstalled it and reinstalled it a couple times and now it works o.O
<benzrf> Radcircle: you want a random ordering, right?
<sevenseacat> sorry to bother you Nilium >_>
<shevy> .shuffle[0]
travisjeffery has joined #ruby
<Nilium> No problem.
<Radcircle> yes sir
<benzrf> shuffle
<bnagy> shuffle is expensive if you want less samples than the length of the array
<Radcircle> so shuffle.pop(1) ?
<benzrf> wait
<benzrf> Radcircle: are you going to consume the whole array?
<bnagy> just pop, only pop(n) for n > 1
<shevy> I dont think you need the argument to pop
<Radcircle> i'm not sure what that means :(
<Radcircle> i just want no repeats, but random cycling
<Radcircle> if that makes sense
<benzrf> Radcircle: ohhhh ok
<benzrf> i see what you are saying
coca_rails has joined #ruby
otherj has joined #ruby
<bnagy> well it's not a cycle if you want no repeats
<benzrf> is this some kind of music player ;p
<bnagy> like, it stops at ary.size
<Radcircle> i'm just trying something practical to learn ruby/rails
<Radcircle> so i figured cycling words was a good start
<benzrf> i would probably handle this
<benzrf> like so
<benzrf> words = %w{this that the other}
<benzrf> last = ""
jonathanwallace has joined #ruby
tylersmith has quit [Ping timeout: 252 seconds]
sethen has joined #ruby
pehlert has quit [Ping timeout: 265 seconds]
<benzrf> and then
<benzrf> last = words.shuffle.pop
<benzrf> reply with last
chrisramon has quit [Quit: chrisramon]
<benzrf> next time
<benzrf> words << last
<benzrf> last = words.shuffle.pop
<benzrf> etc
<bnagy> o_0
<Radcircle> okay
<Radcircle> i will give that a try..thank you!
<benzrf> oh wait shuffling is unnecessary
<bnagy> no, that is amazingly wrongh
<benzrf> you just need to pick & pop a random element
<Radcircle> :\
<benzrf> bnagy: hmm?
<bnagy> if you're just going to put it back just use sample
<benzrf> oh crap
<benzrf> put the << AFTER you get the new one
<benzrf> derp
<benzrf> but then you'd have to toggle lasts or something, w/e
prc has joined #ruby
<benzrf> ok how about this:
Guest90829 has quit [Remote host closed the connection]
<bnagy> just stop
<benzrf> :(
<bnagy> you're making my head hurt
<Radcircle> :{
<Radcircle> its okay
<Radcircle> i guess i can live with sample
<Radcircle> thanks anyways
<benzrf> hold on try this
<benzrf> while true
<benzrf> cur = words.shuffle!.pop
Megtastique has quit []
<benzrf> words << last
<benzrf> reply cur
<benzrf> last = cur
chrisramon has joined #ruby
<benzrf> end
<benzrf> only modify the shuffle to sample and pop or something
<bnagy> :E
<benzrf> bnagy: how else would you do it
<bnagy> how can you even fit so much wrong in so few lines?
coca_rails has quit [Ping timeout: 245 seconds]
<benzrf> well fu
<benzrf> how else do you propose doing it
lukec has quit [Quit: lukec]
<benzrf> please, enlighten me
<bnagy> first up, never while true
<benzrf> pfft
<bnagy> use loop do, it's what it's for
dachi_- has joined #ruby
<benzrf> yes, but that creates a new scope
<bnagy> second, you don't need an intermediate var
<benzrf> don't i?
sethen has quit [Client Quit]
<bnagy> if you just want to spit one random word just words.shuffle.each
<benzrf> bnagy: he wants it continuous
<benzrf> but without repeats
<benzrf> oh wait that is true
<bnagy> that is not possible
<benzrf> repeats in a row
<bnagy> like after the end of the array you will have repeats
varfoo has joined #ruby
<benzrf> so abcbabcbabc is ok
<benzrf> but no bb
nwertman has joined #ruby
<bnagy> sure, so loop words.shuffle.each
sethen has joined #ruby
<benzrf> yeah that is true
<benzrf> but my solution is perfectly fine for that way of doing it
<benzrf> :P
<benzrf> loop do creates a new scope doesn't it?
mklappstuhl has joined #ruby
<benzrf> you cannot assign to the outside world from within a block?
<benzrf> wait wtf
<toastynerd> benzrf: you can if it's an instance variable
<benzrf> procs don't shadow?
<benzrf> yeah
<benzrf> but lvars
<bnagy> benzrf: it's locally bound
<bnagy> no eval-in but irb a=3; loop do; a+=1; break if a > 5; end; a
phinfonet has quit [Quit: exitiing]
ItSANg___ has joined #ruby
<benzrf> :E
<benzrf> welp
<benzrf> i couldve SWORN procs just shadow, not assign
<benzrf> ?!
sevenseacat has left #ruby [#ruby]
<benzrf> :\
<benzrf> oh crud
sheap has left #ruby [#ruby]
PantsMeh has joined #ruby
<benzrf> ctrl+f verb = 'rescued'
<benzrf> it demonstrates that block params do not override existing variables
<benzrf> and my memory generalized that to block assignment entirely
<benzrf> >_>
Gnubie_ has joined #ruby
joaoh82 has joined #ruby
dachin has quit [Quit: dachin]
timonv has joined #ruby
fgo has quit [Remote host closed the connection]
Pixels has quit [Ping timeout: 264 seconds]
mklappstuhl has quit [Ping timeout: 260 seconds]
crypt1d has quit [Remote host closed the connection]
wereHams1er has joined #ruby
figgleberry has quit [Ping timeout: 265 seconds]
ericwood_ has joined #ruby
<Radcircle> is there a list of methods somewhere? like .upcase or .sample or .downcase
MrJoshua has quit [Quit: MrJoshua]
joshu has joined #ruby
jinxcz_ has joined #ruby
SirCmpwn_ has joined #ruby
travisjeffery has quit [Ping timeout: 243 seconds]
<bnagy> ruby-doc.org or a local rdoc tool like ri
<shevy> Radcircle p String.methods
hackeron_ has joined #ruby
<bnagy> they're arranged by module
Bish_ has joined #ruby
sumark_ has joined #ruby
end_guy has quit [Ping timeout: 240 seconds]
sec^nd has quit [Ping timeout: 240 seconds]
ItSANgo has quit [Ping timeout: 272 seconds]
mburns has quit [Ping timeout: 272 seconds]
tfitts has quit [Ping timeout: 272 seconds]
ericwood has quit [Ping timeout: 272 seconds]
abstr4ct has quit [Ping timeout: 272 seconds]
wereHamster has quit [Ping timeout: 272 seconds]
Rylee has quit [Ping timeout: 272 seconds]
rdevilla has quit [Ping timeout: 272 seconds]
SirCmpwn has quit [Ping timeout: 272 seconds]
canton7 has quit [Ping timeout: 272 seconds]
mgorbach has quit [Ping timeout: 272 seconds]
jinxcz has quit [Ping timeout: 272 seconds]
DanKnox has quit [Ping timeout: 272 seconds]
klaas has quit [Ping timeout: 272 seconds]
beardedn1nja has quit [Ping timeout: 272 seconds]
theRoUS has quit [Ping timeout: 272 seconds]
tziOm has quit [Ping timeout: 272 seconds]
hackeron has quit [Ping timeout: 272 seconds]
Bish has quit [Ping timeout: 272 seconds]
cjk101010 has quit [Ping timeout: 272 seconds]
sumark has quit [Ping timeout: 272 seconds]
Gnubie__ has quit [Ping timeout: 272 seconds]
qpls has quit [Ping timeout: 272 seconds]
joshu_ has quit [Ping timeout: 272 seconds]
theRoUS` has joined #ruby
blz37 has quit [Ping timeout: 272 seconds]
tchebb has quit [Ping timeout: 272 seconds]
riku- is now known as riku
tziOm has joined #ruby
mgorbach_ has joined #ruby
tfitts has joined #ruby
cbetta is now known as cbetta_afk
klaas has joined #ruby
mgorbach_ is now known as mgorbach
<benzrf> Radcircle: the ruby docs
<benzrf> bnagy: i insist that my solution requires an intermediate var though
<benzrf> they are on the net
tchebb has joined #ruby
dachi__ has joined #ruby
cjk101010 has joined #ruby
dachi__ is now known as dachi3
DanKnox_ has joined #ruby
SirCmpwn_ is now known as SirCmpwn
Rylee has joined #ruby
Davey is now known as Eomar
rdevilla has joined #ruby
<benzrf> ri doesnt show me built in methods
<benzrf> ?
<shevy> please remove ri
mburns has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
joaoh82 has quit [Ping timeout: 252 seconds]
<shevy> ri String#bla I think?
AlSquire has quit [Quit: This computer has gone to sleep]
alexfreidah has quit [Ping timeout: 252 seconds]
Pixels has joined #ruby
kobain has quit [Ping timeout: 265 seconds]
<benzrf> ri sux
dachi_ has quit [Ping timeout: 252 seconds]
sethen has quit [Quit: Leaving...]
<bnagy> benzrf: while still pointing out that the whole approach is wrong, you could just rotate n times and return the last elem, for example
binaryhat has joined #ruby
<bnagy> no intermediate ar
<bnagy> *var
<benzrf> hmm, true
<benzrf> sorry for using what came up off the top of my head
<benzrf> >_<
gancl has joined #ruby
kobain has joined #ruby
qpls has joined #ruby
<bnagy> also, it's buggy isn't it? You only ensure no repeats in a row
<benzrf> yes, so?
<benzrf> that's what he wanted..
<benzrf> specifically
<bnagy> well I thought it was no repeats in n elems where n is the size of the array
<benzrf> ah
<benzrf> well I parsed it as no repeats in a row
pranny has joined #ruby
freebs has joined #ruby
<bnagy> yeah, re-reading you might be right
<benzrf> and my thoughts went like 'ok remove it to prevent a repeat... need to hold onto it... put that in a var... add it again later... oh wait i need a temp var' -> my solution
dachi_- has quit [Quit: Bouncer]
krz has joined #ruby
krz has joined #ruby
krz has quit [Changing host]
aspires has quit []
<bnagy> in that case I agree with the temp var, but not with altering the array, just use an infinite loop of sample with a last var
<benzrf> hmm, ok
shevy has quit [Ping timeout: 246 seconds]
gja has joined #ruby
<bnagy> unless the array has dups
<benzrf> i was thinking it was simpler to remove it than to add a subloop for checking
Targen has quit [Ping timeout: 252 seconds]
nateberkopec has joined #ruby
cbetta_afk is now known as cbetta
<bnagy> shuffling for every elem is hellishly expensive
pranny has quit [Ping timeout: 252 seconds]
<benzrf> yeah
<benzrf> that was why i said to change it to popping
<benzrf> ;p
<benzrf> *sample/pop
blz37 has joined #ruby
<benzrf> words.pop(rand words.length) or something
<benzrf> is there a samplepop
doodlehaus has quit [Remote host closed the connection]
<bnagy> oh.. you can just sample(2) forever
* benzrf facepalms
<bnagy> no direct repeats but otherwise unbiased
<benzrf> god dammit
maletor has joined #ruby
alexfreidah has joined #ruby
nateberkopec has quit [Ping timeout: 260 seconds]
momomomomo has quit [Quit: momomomomo]
shedd has joined #ruby
zcreative has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
olivier_bK has quit [Ping timeout: 252 seconds]
binaryhat has quit [Quit: Leaving]
Megtastique has joined #ruby
sec^nd has joined #ruby
reset has quit [Read error: Operation timed out]
psyl0n has quit [Remote host closed the connection]
Kricir has joined #ruby
dachin has joined #ruby
doodlehaus has joined #ruby
subbyyy_ has quit [Ping timeout: 260 seconds]
shevy has joined #ruby
mehlah has quit [Ping timeout: 260 seconds]
ce_afk is now known as cescalante
<Radcircle> def US_time
<Radcircle> Time.now.in_time_zone("Eastern Time (US & Canada)")
<Radcircle> end
<Radcircle> how can i modify the output of eastern time to something more readable? like 7:30 PM
chrisramon has quit [Quit: chrisramon]
dachi3 has left #ruby [#ruby]
firewater5 has joined #ruby
<bnagy> try strftime
phipes has quit [Remote host closed the connection]
<firewater5> If you multiply yield by a number, shouldn't the yield run that many times?
Voodoofish430 has quit [Quit: Leaving.]
dachin_ has joined #ruby
Hanmac1 has quit [Ping timeout: 252 seconds]
<firewater5> I know if you write yield 4 times, it will run four times for example.
Kar- has joined #ruby
<firewater5> But, how can you do that with just a multiplyer?
okinomo_ has quit [Ping timeout: 252 seconds]
Barrin6 has joined #ruby
cbetta is now known as cbetta_afk
<firewater5> Anyone?
phipes has joined #ruby
dachin_ has quit [Client Quit]
shedd has quit [Ping timeout: 260 seconds]
binaryhat has joined #ruby
Xiti` has joined #ruby
cbetta_afk is now known as cbetta
kiba has joined #ruby
robertdalin has joined #ruby
<kiba> hey guys
test123 has joined #ruby
<benzrf> sup kiba
<benzrf> hi firewater5
<benzrf> hows it goin
* kiba is slowly working on his survival analysis of gems
<firewater5> benzrf: Good how are you doing?
<benzrf> nb
<kiba> I need to speed up the process and finish the god damn project
<firewater5> I solved that time thing just now.
robertdalin is now known as cashnguns
SHyx0rmZ has joined #ruby
Kar- has quit [Ping timeout: 260 seconds]
<benzrf> nice
<firewater5> I figured out what I was doing wrong yesterday, I was subtracting the wrong times.
<firewater5> I had to flip them around.
<firewater5> It was giving me negative results.
<benzrf> ah
Xiti has quit [Ping timeout: 260 seconds]
okinomo has joined #ruby
<firewater5> Do you know how to mak a yield run multiple times though?
<firewater5> Besides writing yield x times?
<benzrf> loop
<firewater5> You can't just say yield * 4?
<benzrf> there's no reason why that would do that
<firewater5> or 3.times do yield?
<benzrf> it gets the result of yield, them sends it the method * with the arg 4
<benzrf> firewater5: 3.times {yield} is fine
<benzrf> the block prevents the code from being executed
<benzrf> instead it sends it as something you can run
<benzrf> then the times method runs it that many times
fgo has joined #ruby
dachin is now known as dachi_
<firewater5> IC, so basically the block just does whatever the yield is.
<firewater5> Without messing with it?
<firewater5> And then basically, it runes it as many times as the times method says.
<firewater5> right?
<firewater5> Whereas the yield * 4 is multiplying whatever is in yield by 4?
lnormous has joined #ruby
eka has joined #ruby
<benzrf> right
w4pm has quit [Read error: No route to host]
<benzrf> well, yield runs the block passed
w4pm has joined #ruby
<firewater5> So, if yield= n+=1. Its basically multiplying n by 4, which is going to result in four or no?
<benzrf> there's nothing 'in' yield
<benzrf> every time you do 'yield' it runs the block again
<benzrf> so if I do this:
<benzrf> def foo
<benzrf> yield * 4
<benzrf> end
<benzrf> n = 0
<benzrf> foo {n += 1}
<benzrf> n is now 1
<benzrf> foo yields, which runs the code in the block, which increments n
<benzrf> the result of yield is 1, because that's what 'n += 1' comes out to
<benzrf> the result is then * 4, then returned
maroloccio has quit [Quit: WeeChat 0.4.2]
<benzrf> when i say 'foo * 4', all that's doing is 'foo.*(4)
binaryhat has quit [Quit: Leaving]
gancl has quit [Ping timeout: 252 seconds]
cbetta is now known as cbetta_afk
<firewater5> So, why would the foo{n+=1} not return 4 then?
<firewater5> If the result is then *4 and returned?
maletor has quit [Quit: Computer has gone to sleep.]
<benzrf> it does return 4
Hanmac has joined #ruby
<benzrf> but i'm not doing anything with the return value
<benzrf> I'm not saying 'n = foo {n += 1}'
<Radcircle> is it bad practice in ruby/rails to call models in a view?
<benzrf> im just saying 'foo {n += 1}'
<popl> benzrf++
<bnagy> Radcircle: #rubyonrails
<benzrf> popl: thanks?
<benzrf> does that do anything at all
<popl> no
<benzrf> ;p
<popl> but it's the thought that counts
<benzrf> hah
diegoviola has joined #ruby
failshell has joined #ruby
<firewater5> IC, I think then I get it.
<firewater5> I think I am just saying it wrong.
endash has joined #ruby
<popl> /msg perlbot benzrf++ # benzrf has karma of 1
<popl> SMASH THE SYSTEM
<benzrf> hue
<firewater5> benzrf, in the above example. Doesn't it really accomplish the same thing a 4.times {yield}?
<firewater5> AKA, the return will also be 4 both ways from foo?
gja has quit [Quit: This computer has gone to sleep]
<benzrf> hmm
<benzrf> ?
<benzrf> what do you mean?
toastynerd has quit [Remote host closed the connection]
heidi has quit [Quit: Leaving.]
cbetta_afk is now known as cbetta
<benzrf> those two things are entirely separate
<benzrf> yield * 4 means calculate the result of yielding, then multiply it by four
<benzrf> it does NOT mean yield + yield + yield + yield
<firewater5> ok, IC then.
<firewater5> So, competely different things, they may both get 4, but for different reasons.
toastynerd has joined #ruby
<benzrf> yes.
<firewater5> IC, thanks, this finally makes sense.
<benzrf> also, Fixnum#times returns the number of times
<benzrf> not the result ;p
gja has joined #ruby
<benzrf> it's a coincidence in that case
browndawg has joined #ruby
<firewater5> So, 4.times {yield} == yield+yield+yield+yield?
<firewater5> Or no?
w4pm has quit [Ping timeout: 265 seconds]
<benzrf> no
<benzrf> they both run yield 4 times
<benzrf> but 4.times {anything} will always return 4
<benzrf> that's what times returns
<benzrf> remember, /evaluating yield/ is what runs the code
<benzrf> in the expression 'yield * 4', you evaluate yield, then call * on it, and pass in 4
<benzrf> haskell, btw, has no side effects
Caius has quit [Ping timeout: 260 seconds]
<benzrf> evaluating an expression and not evaluating it cannot do different things in haskell
<benzrf> so the order doesnt matter at all
<firewater5> Sigh, so I guess back to what my goal is.
<firewater5> I want to run yield as if I wrote it four times.
* dachi_ is away
<firewater5> What is the correct way to do that without writing yield 4 times?
<benzrf> so use 4.times
<firewater5> But, I thought you said that always returns four.
toastynerd has quit [Ping timeout: 252 seconds]
<firewater5> For example 4.times {n+=2}
<krz> i have an array %W(foo bar_attributes baz_attributes). how do i return elements with _attributes in them? as in ['bar_attributes', 'baz_attributes']
<benzrf> oh
<benzrf> ohhh i see
<benzrf> Fixnum#times is not times as in multiply
lnormous has quit [Ping timeout: 265 seconds]
<benzrf> it is times as in 'do this 4 times'
mklappstuhl has joined #ruby
<firewater5> Yes, that is what I want then :).
<benzrf> you want the result of adding 4 yields?
<firewater5> Sorry, I think I was confused on one of your sentences was all.
<shevy> krz array = %w(foo bar_attributes baz_attributes)
<shevy> array.grep(/attribute/) # => ["bar_attributes", "baz_attributes"]
<firewater5> yes.
<benzrf> firewater5: and you want the effects of all 4?
<firewater5> yes, I think?
<shevy> benzrf was there a tutorial in ruby that you liked
<benzrf> shevy: i read wpgtr
<shevy> wpgtr?
<benzrf> shevy: poignant guide
<shevy> ah
nanoyak has quit [Quit: Computer has gone to sleep.]
<shevy> damn :(
<benzrf> firewater5: so 4.times {yield} is wrong because it does not add them, and yield * 4 is wrong because it does not run it 4 times
subbyyy has joined #ruby
<firewater5> benzrf: It seems to make the puzzle test pass though :/.
dachi_ has left #ruby [#ruby]
<benzrf> well, do you want both the result of summing them and the effects of running it 4 times
<benzrf> or only one of the above?
<firewater5> Only want to run it four times.
Caius has joined #ruby
<firewater5> So, for example.
<firewater5> foo{n+=2}
<firewater5> n.should == 8 if that block is run 4 times.
<benzrf> then 4.times
<firewater5> I want n to equal 8.
<benzrf> the method will give back 4
<benzrf> but the block will be run 4 times
<benzrf> that is what matters
<benzrf> you do not care what the method returns, right?
<firewater5> Yes, I think I get what you are saying.
<benzrf> ok :)
<firewater5> Yes, I don't care what foo does.
<firewater5> I just care what is in the block does.
mklappstuhl has quit [Ping timeout: 252 seconds]
dachi_ has joined #ruby
<firewater5> benzrf: I have a good idea what you are saying, I just have a lot to learn still.
pwh has quit []
<benzrf> ok
w4pm has joined #ruby
<benzrf> well, you care what foo does
<benzrf> you DONT care what it returns
<firewater5> I'm confused, I just care that n==8 :/.
<firewater5> And yield get run 4 times.
dachi_ has left #ruby [#ruby]
dachi_ has joined #ruby
<firewater5> to get that n==8.
<firewater5> n+=2 is the block.
<firewater5> The method just seems as a tool to run the block 4 times.
<benzrf> ok
<benzrf> exactly
<benzrf> you care what the method /does/
<benzrf> that is, what happens when you run ut
<shevy> firewater5 just add to n
<benzrf> *it
<benzrf> you just don't care what value it results in
<benzrf> *it gives back
<benzrf> so given 'result = foo {n += 2}'
<benzrf> you dont care what result is
<benzrf> you just care that the block is run 4 times
<firewater5> yes, I think we are agreeing lol.
<shevy> are you two guys actually writing any code on a pastie?
<firewater5> I think I just need to learn terminology better possibly.
<firewater5> I think that is all that is going on.
<firewater5> shevy: I already solved it, I'm just getting an explanation from benzrf .
<shevy> ah
test123 has left #ruby [#ruby]
<shevy> good!
<benzrf> im a helper!
<shevy> yes
<shevy> but you are still young
nfk has quit [Quit: yawn]
<shevy> once you are old, you'll know better
<firewater5> shevy: What do you mean?
<shevy> you'll get all grumpy and grouchy and cranky
joaoh82 has joined #ruby
<benzrf> ^this is what the refrance
<shevy> I don't know that pixel massacre
<shevy> reminds me of gameboy
<firewater5> benzrf: Anyways, I'll be honest, probalby get a good idea what you were saying, but blocks in ruby still semi confuse me.
<shevy> benzrf do you know what gameboy was?
<firewater5> I am just going to have to keep working with them I guess to get it.
<benzrf> shevy: >:o
D4rk|2 has joined #ruby
<benzrf> firewater5: ok well
<benzrf> firewater5: you know how when you put code in a method
<benzrf> you can run the code at will
<benzrf> ?
<shevy> I think the early ones looked like that http://upload.wikimedia.org/wikipedia/commons/c/c6/Nintendo_Gameboy.jpg or even more primitive
<benzrf> it is like you are wrapping it up in a name
<firewater5> yes.
fgo has quit [Remote host closed the connection]
<benzrf> a block does the same thing
<benzrf> it wraps the code in it up into an invokable bundle
<benzrf> then running 'yield' in the method runs the code in the block as though it were a method
<benzrf> blocks are like unnamed methods that you can toss around
<firewater5> So yield is basically the way to call blocks, just like calling the method is how you call the code in a method?
<benzrf> right!
<firewater5> I think I get it then.
<benzrf> you can also receive the block given as an object that you can do more with
<benzrf> if you need more power than yield gives you
<firewater5> I'm lost on what one.
<firewater5> I am getting yield.
Kricir has quit [Remote host closed the connection]
joaoh82 has quit [Ping timeout: 252 seconds]
<shevy> good!
<benzrf> thats ok
<benzrf> yield is more than powerful enough for you right now
<benzrf> ;p
jamesaanderson has joined #ruby
<shevy> don't try to understand the world in one day
<firewater5> Godo enough for me, lol :).
<benzrf> ^^^^
<firewater5> *good.
dachi_ has left #ruby [#ruby]
dachi_ has joined #ruby
<firewater5> Anyhow, have to go to bed again and get ready for work.
<benzrf> ok, see you!
<firewater5> Thanks again for your help, see ya :).
nateberkopec has joined #ruby
<benzrf> np
dachi_ has left #ruby [#ruby]
jlast has quit [Remote host closed the connection]
dachi_ has joined #ruby
firewater5 has quit [Quit: Page closed]
eka has quit [Quit: Computer has gone to sleep.]
beardedninja has joined #ruby
pranny has joined #ruby
subbyyy has quit [Ping timeout: 252 seconds]
nateberkopec has quit [Ping timeout: 252 seconds]
zeade has quit [Quit: Leaving.]
<shevy> benzrf did you publish your first gem finally?
cbetta is now known as cbetta_afk
<benzrf> Norrin:
<benzrf> *no
<benzrf> i am still working on legend
cescalante is now known as ce_afk
toastynerd has joined #ruby
toastynerd has quit [Remote host closed the connection]
pranny has quit [Ping timeout: 260 seconds]
lukec has joined #ruby
prc has quit [Quit: Leaving.]
Sid05 has quit [Ping timeout: 260 seconds]
fgo has joined #ruby
aspires has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
narcan has joined #ruby
mklappstuhl has joined #ruby
shedd has joined #ruby
burlyscudd has joined #ruby
dachi_ has left #ruby [#ruby]
dachi_ has joined #ruby
<shevy> hmmm
mneorr has quit [Remote host closed the connection]
mklappstuhl has quit [Ping timeout: 260 seconds]
mneorr has joined #ruby
Targen has joined #ruby
alexfreidah has quit [Ping timeout: 260 seconds]
shedd has quit [Ping timeout: 252 seconds]
okinomo has quit [Ping timeout: 260 seconds]
okinomo has joined #ruby
jamesaanderson has joined #ruby
D4rk|2 has quit [Quit: Reconnecting]
jamesaanderson has quit [Max SendQ exceeded]
failshell has quit []
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
<krz> thanks shevy
mneorr has quit [Read error: Connection reset by peer]
mneorr_ has joined #ruby
<krz> shevy: what if i need it to look for _attributes only at the end of the string
jamesaanderson has joined #ruby
crazed_ has joined #ruby
Kar- has joined #ruby
<krz> %W(zzz_attributes_foo bar_attributes baz_attributes).grep(/attributes/) would still return all elements
<popl> krz: learn regexp :)
<popl> There's rubular.com if you want to test them
fijimunkii has joined #ruby
<popl> >> %W(zzz_attributes_foo bar_attributes baz_attributes).grep(/attributes\Z/)
<shevy> krz you can use a regex in grep(//)
<popl> eval-in: fuck you
Kricir has joined #ruby
<popl> :(
<shevy> krz, %W(zzz_attributes_foo bar_attributes baz_attributes).grep(/attributes$/) # => ["bar_attributes", "baz_attributes"]
<popl> I just did that
<popl> :P
<krz> thanks shevy
<shevy> yeah it was teamwork with popl
doodlehaus has quit [Remote host closed the connection]
<popl> What's up with eval-in?
Kar- has quit [Ping timeout: 252 seconds]
<krz> which is better $ or \Z ?
dukz has joined #ruby
<benzrf> krz: \Z for absolute end of string
<benzrf> $ may mean end of line
<benzrf> but it isnt usually a big deal
<benzrf> you probably arent going to have line breaks in there
<benzrf> *those worsd
<benzrf> ugh
<krz> kk
aspires has quit [Ping timeout: 264 seconds]
<shevy> krz $ is easier
Fire-Dragon-DoL has quit [Quit: Leaving.]
<shevy> ^ is beginning of line, $ is end of
<shevy> so when you put your left hand on your keyboard
<shevy> to the left of your left hand is start of the line, to the right of your left hand is end of the line (^, $)
Sawbones has joined #ruby
radic has quit [Ping timeout: 246 seconds]
<Sawbones> Is ruby just for rails, are there other non web projects people have used ruby for?
aspires has joined #ruby
shawn42 has joined #ruby
<shawn42> I use ruby for some hobby game dev
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krz has quit [Ping timeout: 260 seconds]
<benzrf> i use it for EVERYTHING
<benzrf> i put it on sandwiches
<benzrf> i fix creaky doors with it
<benzrf> its a FIX ALL
aspires has quit [Client Quit]
simoz118 has quit [Ping timeout: 252 seconds]
jbueza has joined #ruby
toastynerd has joined #ruby
radic has joined #ruby
thomasxie has joined #ruby
varfoo has quit [Quit: WeeChat 0.4.0]
dukz has quit [Read error: Connection reset by peer]
fgo has quit [Remote host closed the connection]
dukz has joined #ruby
<shevy> Sawbones ruby is general purpose
varfoo has joined #ruby
<shevy> hey shawn42 :)
ehc has quit [Quit: ehc]
<shevy> Sawbones ruby is like the ideal glue language. for instance you want to use ffmpeg for audio and video manipulation right? but you dont want to write shell scripts
<shawn42> shevy: hi there
<shevy> so there you go, use ruby
fire has joined #ruby
<Sawbones> Oh god I very much dislike shell scripts
varfoo has quit [Client Quit]
keen_ has left #ruby [#ruby]
<shawn42> Sawbones: most of us do ;)
freebs has quit [Quit: Leaving.]
<shawn42> Ruby can be used for full fledged applications or as a scripting language to replace perl / bash / etc scripts
pwh has joined #ruby
<benzrf> it is a cross between lisp, perl, and smalltalk
<Sawbones> I stopped using Python, I kept hitting road blocks with it
<benzrf> maybe a small dash of python, to taste
<Sawbones> I can call my C++ classes in it?
varfoo has joined #ruby
jamesaanderson has joined #ruby
pehlert has joined #ruby
<shevy> Sawbones probably with ffi or specific bindings
<shevy> given that C++ is like C
<shevy> I used Ruby C and it worked
Sawbones has quit [Remote host closed the connection]
timonv has joined #ruby
<shevy> VALUE wrapped_address=Data_Wrap_Struct(address_wrapper_class, 0, free_m,&addr);
<shevy> that's a typical line
<shevy> a call to Data_Wrap_Struct
<shevy> and that here
<shevy> foo_class = rb_define_class("Person", rb_cObject);
<shevy> is like
<shevy> class Person; end
otherj has quit []
okinomo has quit [Ping timeout: 265 seconds]
krz has joined #ruby
okinomo has joined #ruby
pwh has quit []
L8D has left #ruby [#ruby]
nwertman has quit [Ping timeout: 252 seconds]
mary5030 has quit [Remote host closed the connection]
juarlex_ has joined #ruby
pehlert has quit [Ping timeout: 260 seconds]
braincrash has quit [Quit: bye bye]
Radcircle has quit []
timonv has quit [Ping timeout: 252 seconds]
juarlex has quit [Ping timeout: 260 seconds]
soba has joined #ruby
burlyscudd has quit [Quit: Leaving.]
braincrash has joined #ruby
troyready has joined #ruby
dukz has quit [Ping timeout: 265 seconds]
fgo has joined #ruby
dachi_ has left #ruby [#ruby]
dachi_ has joined #ruby
dukz has joined #ruby
pwh has joined #ruby
pwh has quit [Max SendQ exceeded]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
pwh has joined #ruby
nateberkopec has joined #ruby
larissa has quit [Quit: Leaving]
croaky has joined #ruby
dayepa has quit [Quit: dayepa]
joaoh82 has joined #ruby
dukz has quit [Remote host closed the connection]
w4pm has quit [Read error: Operation timed out]
tectonic has joined #ruby
freezey has joined #ruby
w|t has joined #ruby
digital-ghost has quit [Remote host closed the connection]
juarlex_ has quit [Remote host closed the connection]
ewnd9 has joined #ruby
nateberkopec has quit [Ping timeout: 260 seconds]
nari has joined #ruby
shawn42 has left #ruby [#ruby]
joaoh82 has quit [Ping timeout: 265 seconds]
benzrf has quit [Quit: leaving]
dayepa has joined #ruby
pranny has joined #ruby
dapz has joined #ruby
Megtastique has quit []
juarlex has joined #ruby
ripperbone has joined #ruby
dukz has joined #ruby
ewnd9 has quit [Ping timeout: 252 seconds]
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
fgo has quit [Remote host closed the connection]
mary5030 has joined #ruby
jamesaanderson has joined #ruby
mklappstuhl has joined #ruby
Megtastique has joined #ruby
Megtastique has quit [Client Quit]
okinomo has quit [Ping timeout: 252 seconds]
Red_Onyx has joined #ruby
pranny has quit [Ping timeout: 260 seconds]
okinomo has joined #ruby
juarlex has quit [Ping timeout: 252 seconds]
dukz has quit [Remote host closed the connection]
tharindu has joined #ruby
dukz has joined #ruby
dukz_ has joined #ruby
mklappstuhl has quit [Ping timeout: 260 seconds]
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dukz_ has quit [Remote host closed the connection]
lioninawhat has joined #ruby
Megtastique has joined #ruby
pwh has quit []
mansi has quit [Remote host closed the connection]
shedd has joined #ruby
mansi has joined #ruby
dukz has quit [Ping timeout: 252 seconds]
cmedeiros has quit [Remote host closed the connection]
raja_ has joined #ruby
juarlex_ has joined #ruby
Liothen has quit [Remote host closed the connection]
robertrv has joined #ruby
Liothen has joined #ruby
shedd has quit [Ping timeout: 252 seconds]
dachi_ has quit [Remote host closed the connection]
mansi has quit [Ping timeout: 260 seconds]
fijimunkii has quit [Ping timeout: 260 seconds]
raja_ has quit [Quit: Textual IRC Client: www.textualapp.com]
endash has quit [Quit: endash]
dachi_ has joined #ruby
Kar- has joined #ruby
tyl has joined #ruby
raja_ has joined #ruby
dachi_ has left #ruby [#ruby]
dachi_ has joined #ruby
juarlex_ has quit [Ping timeout: 265 seconds]
juarlex has joined #ruby
sethen has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
lukec has quit [Quit: lukec]
dachi_ has left #ruby [#ruby]
end_guy has joined #ruby
dachi_ has joined #ruby
cads has quit [Ping timeout: 252 seconds]
browndawg has quit [Read error: Connection reset by peer]
casheew_ has joined #ruby
Kar- has quit [Ping timeout: 265 seconds]
fgo has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Doc_X_ has joined #ruby
bricker`1way has joined #ruby
fire has quit [Quit: WeeChat 0.4.1]
chinkung has joined #ruby
aryaching has joined #ruby
e62 has joined #ruby
mini````` has joined #ruby
tkuchiki_ has joined #ruby
mary5030_ has joined #ruby
Eomar is now known as Davey
e62 has quit [Client Quit]
po10_ has joined #ruby
okinomo_ has joined #ruby
CpuID2 has joined #ruby
CpuID2 has quit [Changing host]
CpuID2 has joined #ruby
Dorf2 has joined #ruby
sassamo_ has joined #ruby
shreknet has joined #ruby
Gnubie__ has joined #ruby
havenn has joined #ruby
freezey_ has joined #ruby
amedeiros has joined #ruby
butblack has joined #ruby
XenoWolf_ has joined #ruby
makkura_ has joined #ruby
billiam_ has joined #ruby
mgorbach_ has joined #ruby
Megtasti_ has joined #ruby
alvaro_o_ has joined #ruby
qpls_ has joined #ruby
iMe_ has joined #ruby
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
cj3kim has joined #ruby
minsa has joined #ruby
jamesaanderson has joined #ruby
foooobear has joined #ruby
sethen has quit [Remote host closed the connection]
OdNairy has joined #ruby
rezzack has quit [Ping timeout: 252 seconds]
juarlex_ has joined #ruby
okinomo_ has quit [Ping timeout: 260 seconds]
pwh has joined #ruby
Liothen has quit [*.net *.split]
Megtastique has quit [*.net *.split]
okinomo has quit [*.net *.split]
mary5030 has quit [*.net *.split]
freezey has quit [*.net *.split]
blz37 has quit [*.net *.split]
qpls has quit [*.net *.split]
tziOm has quit [*.net *.split]
mgorbach has quit [*.net *.split]
Bish_ has quit [*.net *.split]
Gnubie_ has quit [*.net *.split]
havenwood has quit [*.net *.split]
amedeiro_ has quit [*.net *.split]
aryaching_ has quit [*.net *.split]
tkuchiki has quit [*.net *.split]
ereslibre has quit [*.net *.split]
sassamo has quit [*.net *.split]
mini```` has quit [*.net *.split]
CpuID has quit [*.net *.split]
bricker`away has quit [*.net *.split]
kung has quit [*.net *.split]
mak|idle has quit [*.net *.split]
po10 has quit [*.net *.split]
alvaro_o has quit [*.net *.split]
billiam has quit [*.net *.split]
Doc_X has quit [*.net *.split]
Alina-malina has quit [*.net *.split]
kiri has quit [*.net *.split]
avalarion has quit [*.net *.split]
iMe has quit [*.net *.split]
casheew has quit [*.net *.split]
XenoWolf has quit [*.net *.split]
Dorf has quit [*.net *.split]
nuck has quit [*.net *.split]
mgorbach_ is now known as mgorbach
juarlex has quit [Ping timeout: 252 seconds]
16WAAA81W has joined #ruby
kiri has joined #ruby
ereslibre has joined #ruby
Alina-malina has joined #ruby
Bish has joined #ruby
PLejeck has joined #ruby
Alina-malina has quit [Max SendQ exceeded]
fijimunkii has joined #ruby
Alina-malina has joined #ruby
kitak has quit [Read error: Connection reset by peer]
Mattx has joined #ruby
<Mattx> Hi
<dachi_> hi
kitak has joined #ruby
<Mattx> is there any elegant way to call a function with args and a block? func(foo) {|bar|...}
browndawg has joined #ruby
<Mattx> I'm asking because it doesn't work: func foo {|bar|...}
<Mattx> neither func foo, {|bar|...}
e62 has joined #ruby
<bnagy> whatever(foo) {|x| ... is the standard invocation
<dachi_> the first one it is possible
<Mattx> I know, I know
<dachi_> you have to yield in a method definition
<Mattx> it's kind of ugly tough
kevinykchan has joined #ruby
tziOm has joined #ruby
<dachi_> i think it's nice
<bnagy> whatever foo, &blk works
<Mattx> func foo {|bar|...}
<Mattx> would be nicer :P
raja has joined #ruby
krz has quit [Quit: WeeChat 0.4.2]
<dachi_> i generally use parenthesis, but can't you do that?
<bnagy> you could probably declare the block inline in that form, but naked curly braces don't do that. You'd need a Proc or lambda or stabby syntax of some sort
<bnagy> func foo { is just a syntax error, always
<bnagy> interpreter don't work like dat
lioninawhat has quit [Ping timeout: 252 seconds]
<Mattx> I can, the problem is that I was defining a function to make my life easy in an app I'm writing
<Mattx> and that syntax is ugly for this use case
<Mattx> it looks like this:
<Mattx> def try(type=Object, &block)
<Mattx> result = block.call rescue nil
<Mattx> end
<Mattx> (result.is_a? type) ? result : type.new
<Mattx> so I can do data = try Array { whatever }
<Mattx> and even if whatever crashes I get something of type Array
jnoob22 has quit [Read error: Connection reset by peer]
<bnagy> o_0
ambushsabre has quit [Read error: Operation timed out]
zz_jrhorn424 has quit [Ping timeout: 240 seconds]
shedd has joined #ruby
jnoob22 has joined #ruby
verto has quit [Ping timeout: 245 seconds]
aetaric has quit [Ping timeout: 240 seconds]
DarkFoxDK has quit [Ping timeout: 240 seconds]
<bnagy> ok well I don't see how parantheses make that any more bizarre than it already is
utkarsh has quit [Ping timeout: 240 seconds]
Nightmare has quit [Ping timeout: 240 seconds]
Guest8854 has quit [Ping timeout: 240 seconds]
lukec has joined #ruby
<Mattx> it doesn't make much sense but I have this app in which I have to constantly check types, and /whatever/ is some data I don't generate so it's usually wrong and unexpected u.u
CaptainJet has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.2]
butblack has quit [Quit: butblack]
<bnagy> whatever being the block contents?
<bnagy> and that is something you don't generate?
nateberkopec has joined #ruby
blo has quit [Ping timeout: 240 seconds]
mjmac has quit [Ping timeout: 240 seconds]
cschneid has quit [Ping timeout: 245 seconds]
spyderman4g63 has quit [Read error: Connection reset by peer]
ckinni has quit [Read error: Connection reset by peer]
<Mattx> to be preciser /whatever/ is a hash, but I can't not guarantee that it has the structure I want, so instead of asking for its keys, I just do try(String) { data[:i][:dont][:care][:if][:its][:ok] }
croaky has quit [Read error: Connection reset by peer]
<Mattx> s/can't not/can't/
spyderman4g63 has joined #ruby
<bnagy> oh, this is like Rails crap - they have some stupid workaround for hashes like that
fgo has quit [Remote host closed the connection]
<Mattx> oh, really?
nwertman has joined #ruby
ambushsabre has joined #ruby
<Mattx> I haven't seen anything like this in rails
freezey_ has quit [Remote host closed the connection]
16WAAA81W has quit []
tfitts has quit [Read error: Connection reset by peer]
jhn_ has joined #ruby
tfitts has joined #ruby
ckinni has joined #ruby
justinxreese has quit [Ping timeout: 246 seconds]
orionstein_away is now known as orionstein
<bnagy> there's some class that acts like a hash but nonexistant nests always return nil ( and anyway a class like that is trivial to implement )
<bnagy> then you can just do Array( data[x][y][z][q] ) and you'll get an array
<Mattx> that's a good idea actually
<bnagy> Integer() is the one that won't work
<bnagy> well the first one that springs to mind
CaptainJet has quit []
<Mattx> do you remember the name of that class?
<dachi_> bnagy what do use other than rails for web? just a rack app?
justinxreese has joined #ruby
nateberkopec has quit [Ping timeout: 272 seconds]
<bnagy> Mattx: sorry, I don't
sergicles has joined #ruby
<bnagy> but probably someone will, or #rubyonrails
CaptainJet has joined #ruby
<Mattx> <bnagy> whatever foo, &blk works
<Mattx> I think it doesn't
kitak_ has joined #ruby
<bnagy> should, assuming you have defined blk
subbyyy has joined #ruby
<Mattx> ah, ok, but not with {..}
<Mattx> sure
<bnagy> you have to call the block in that syntax, you can't yield it
<Mattx> yep, I got what you mean
croaky has joined #ruby
<bnagy> whatever foo, Proc.new {|x| ...} should work
<bnagy> or lambda or (maybe) stabby
raja_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bnagy> yeah def foo(arg,blk) then foo 3, ->{ #stuff } works
kitak has quit [Ping timeout: 245 seconds]
<bnagy> dachi_: I don't web
<Mattx> ->{} would work as well but you have to change the def of the function
yarou has quit [Quit: This computer has gone to sleep]
mklappstuhl has joined #ruby
mechanicles has joined #ruby
<dachi_> bnagy: thanks for responding, i just wondered, if devs who're way far more experienced than I am use rails or not
tyl has quit [Ping timeout: 252 seconds]
Agamemnus has joined #ruby
<Agamemnus> hello.
krz has joined #ruby
krz has quit [Changing host]
krz has joined #ruby
<bnagy> dachi_: there are quite a few good ruby options for web stuff other than rails, with varying sized communities
pranny has joined #ruby
tyl has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dachi_> i see thanks
raja_ has joined #ruby
raja_ has quit [Client Quit]
<e62> win 4
<e62> eh, woops
mklappstuhl has quit [Ping timeout: 265 seconds]
e62 has quit [Quit: leaving]
browndawg has quit [Quit: Leaving.]
<Radar> dachi_: Rails is fineeee.
<Radar> dachi_: Sinatra is great for light stuff, but for anything more than a couple of pages I would totally use Rails.
<Radar> dachi_: I say this after building two "apps" (http://logs.ryanbigg.com and http://github.com/spree/spree) of different sizes using Rails.
orionstein is now known as orionstein_away
<dachi_> Radar: yes that's how I had my opinion about those two. I'll go there, thanks!
pranny has quit [Ping timeout: 265 seconds]
toastynerd has quit [Remote host closed the connection]
toastynerd has joined #ruby
<Radar> np
<bnagy> Radar: what's the hash thing rails people use sometimes that returns nil instead of raises for nonexistant nested stuff?
<Radar> bnagy: hash[key]
<Radar> bnagy: I think the raise method you're talking about is hash.fetch(key)
<bnagy> uh, no like hsh[:a][:b][:c] where :b isn't there
<Radar> oh
helpa has joined #ruby
<Radar> That's more of an ActiveSupport thing
<Radar> hash[:a].try(:[], :b)
alexfreidah has joined #ruby
ahmedelgabri has joined #ruby
<bnagy> it monkeypatches Hash?
<Radar> No, that monkeypatch is for object
<bnagy> o_0 even better
<bnagy> anyway, Mattx ^^
mansi has joined #ruby
rajasaurus has joined #ruby
kobain has quit []
<Mattx> let's see
raja has quit [Ping timeout: 252 seconds]
<Mattx> come on! mine is better :P
kizzx2 has joined #ruby
Jeticus has joined #ruby
<kizzx2> hey guys
<bnagy> yours is pretty vile, tbh
CaptainJet has quit [Ping timeout: 252 seconds]
<kizzx2> so ruby 2 has been out for a while, what's the new features you find useful your day to day?
juarlex_ has quit [Remote host closed the connection]
<Mattx> haters gonna hate
<Mattx> :P
alexfreidah has quit [Ping timeout: 252 seconds]
<Radar> Mattx: the speed of Ruby 2.1 :)
fgo has joined #ruby
<bnagy> well the ternary is bad, and lots of the classes a user might want that is not you might not support #new
* Mattx forwards Radar's message to kizzx2
<bnagy> plus any use of is_a? makes people itch, generally
mansi has quit [Ping timeout: 252 seconds]
stetho has joined #ruby
<Mattx> bnagy, I used ternary so I can paste it here, it's shorter..
<Mattx> and what's wrong with is_a?
havenn has quit [Remote host closed the connection]
havenwood has joined #ruby
<bnagy> in this case it's kind-of-fine, but it's an anti duck typing thing
Kar- has joined #ruby
<bnagy> maybe passing a literal would be nicer
ckinni has quit [Read error: Connection reset by peer]
<bnagy> then you could have like try("validation error") {|x|...
ckinni has joined #ruby
<Mattx> it's not the same
<bnagy> and just check res.kind_of? default
<Mattx> you want to pass a default value
<Mattx> or the class of the default valua
<bnagy> it is. String.new gets you ""
fusi0n has quit [Quit: .]
<bnagy> so would try("") {..
justinxreese has quit [Ping timeout: 246 seconds]
<bnagy> and you can still class check
havenwood has quit [Ping timeout: 260 seconds]
<bnagy> plus it works for Integers now
<bnagy> try(0) {...
<Mattx> "bar".kind_of? "" -> error
<bnagy> res.kind_of? default.class
justinxreese has joined #ruby
ner0x has quit [Quit: Leaving]
<Mattx> well, yeah, it could be a better idea
Liothen has joined #ruby
Agamemnus has left #ruby [#ruby]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kar- has quit [Ping timeout: 272 seconds]
mklappstuhl has joined #ruby
brennanMKE has quit [Remote host closed the connection]
mneorr_ has quit [Remote host closed the connection]
vallieres_ has quit [Quit: Computer has gone to sleep.]
mneorr has joined #ruby
JohnBat26 has joined #ruby
mrnugget has joined #ruby
timonv has joined #ruby
browndawg has joined #ruby
mklappstuhl has quit [Ping timeout: 260 seconds]
heftig has quit [Quit: Quitting]
mneorr has quit [Ping timeout: 260 seconds]
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
timonv has quit [Ping timeout: 252 seconds]
jack_rabbit has joined #ruby
OdNairy has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
BrixSat has quit [Remote host closed the connection]
pehlert has joined #ruby
BrixSat has joined #ruby
Red_Onyx has quit [Ping timeout: 252 seconds]
Aryasam has joined #ruby
cj3kim has quit [Remote host closed the connection]
nateberkopec has joined #ruby
phipes has quit [Remote host closed the connection]
Aryasam has quit [Client Quit]
cj3kim has joined #ruby
cj3kim has quit [Remote host closed the connection]
ahawkins has joined #ruby
JJMalina has joined #ruby
nateberkopec has quit [Read error: Connection reset by peer]
lukec has quit [Quit: lukec]
pehlert has quit [Ping timeout: 272 seconds]
zipper has joined #ruby
zxd has joined #ruby
St_Marx has quit [Ping timeout: 240 seconds]
fgo has quit [Remote host closed the connection]
St_Marx has joined #ruby
phipes has joined #ruby
JJMalina has quit [Ping timeout: 265 seconds]
troyready has quit [Ping timeout: 265 seconds]
zxd has quit [Ping timeout: 265 seconds]
ambushsabre has quit [Quit: rip]
hexus0 has quit [Quit: Quantum dynamics are affecting the transistors]
nwertman has quit [Ping timeout: 260 seconds]
ripperbone has quit [Quit: ripperbone]
mklappstuhl has joined #ruby
Patchou has joined #ruby
RaCx has joined #ruby
aspires has joined #ruby
sepp2k has joined #ruby
joaoh82 has joined #ruby
Tamae has quit [Ping timeout: 276 seconds]
phipes has quit [Remote host closed the connection]
jbueza has joined #ruby
brennanMKE has joined #ruby
mklappstuhl has quit [Ping timeout: 252 seconds]
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
joaoh82 has quit [Ping timeout: 252 seconds]
Tamae has joined #ruby
Virtualize has quit [Ping timeout: 260 seconds]
lnormous has joined #ruby
pranny has joined #ruby
phipes has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
Patchou has quit [Ping timeout: 252 seconds]
croaky has quit [Ping timeout: 260 seconds]
sergicles has quit [Quit: sergicles]
shadoi has quit [Quit: Leaving.]
Oog has joined #ruby
Tamae has quit [Ping timeout: 272 seconds]
<Oog> if I want to use something like https://github.com/aarongough/mini-smtp-server how can i get gem to install itin my local project folder so i can edit it
<Oog> and it wont impact the global isntance of the gem?
<Oog> or should i just download the source and put it in my project fodler and forget gem?
croaky has joined #ruby
pranny has quit [Ping timeout: 260 seconds]
brennanMKE has quit [Ping timeout: 252 seconds]
lnormous has quit [Quit: Leaving]
Alina-malina has quit [Quit: Leaving]
Alina-malina has joined #ruby
pwh has quit []
Oog has quit [Quit: Page closed]
Barrin6 has quit [Quit: Leaving]
mansi has joined #ruby
phipes has quit [Remote host closed the connection]
fijimunkii has quit [Ping timeout: 252 seconds]
dukz has joined #ruby
<bnagy> some of the version managers let you change gemsets
phipes has joined #ruby
<bnagy> rvm, although tbh I don't personally recommend it, and I think chruby has chgem or something now
phipes has quit [Remote host closed the connection]
lfox has quit [Quit: ZZZzzz…]
mansi has quit [Ping timeout: 260 seconds]
Jeticus has quit []
nwertman has joined #ruby
fgo has joined #ruby
phansch has joined #ruby
timonv has joined #ruby
phipes has joined #ruby
pranny has joined #ruby
dukz has quit [Remote host closed the connection]
phipes has quit [Remote host closed the connection]
pranny has quit [Client Quit]
mklappstuhl has joined #ruby
Kar- has joined #ruby
noop has joined #ruby
pranny has joined #ruby
dukz has joined #ruby
e62 has joined #ruby
Agamemnus has joined #ruby
fgo has quit [Ping timeout: 265 seconds]
rubyracer has quit [Quit: Konversation terminated!]
<Agamemnus> does anyone have an ipad and can lend 2 min of their time?
x__ has quit [Ping timeout: 260 seconds]
stryek has quit [Ping timeout: 248 seconds]
nwertman has quit [Ping timeout: 260 seconds]
mklappstuhl has quit [Ping timeout: 272 seconds]
ehaliewicz has quit [Remote host closed the connection]
fijimunkii has joined #ruby
apeiros has joined #ruby
ahawkins has quit [Ping timeout: 260 seconds]
<bnagy> for?
fgo has joined #ruby
Kar- has quit [Ping timeout: 260 seconds]
<Agamemnus> for testing a site of mine
Megtasti_ has quit []
e62 has quit [Ping timeout: 265 seconds]
dukz_ has joined #ruby
dukz_ has quit [Remote host closed the connection]
h_kon has joined #ruby
mengu has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 252 seconds]
dukz_ has joined #ruby
vlad_starkov has joined #ruby
dukz has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
phansch_ has joined #ruby
dukz_ has quit [Remote host closed the connection]
aspires has quit []
dukz has joined #ruby
phipes has joined #ruby
phansch has quit [Ping timeout: 265 seconds]
aspires has joined #ruby
dapz has quit [Ping timeout: 260 seconds]
nateberkopec has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
phipes has quit [Remote host closed the connection]
tagrudev has joined #ruby
aspires has quit [Client Quit]
apeiros has quit [Remote host closed the connection]
braddeicide has quit [Ping timeout: 256 seconds]
nateberkopec has quit [Ping timeout: 272 seconds]
toastynerd has quit [Remote host closed the connection]
iMe_ is now known as iMe
postmodern has quit [Quit: Leaving]
Soliah has quit [Quit: Soliah]
aspires has joined #ruby
okinomo has joined #ruby
saarinen has joined #ruby
charliesome has joined #ruby
phipes has joined #ruby
saarinen has quit [Client Quit]
mechanicles has quit [Quit: Computer has gone to sleep.]
kc8qvp has joined #ruby
kc8qvp has left #ruby [#ruby]
braddeicide has joined #ruby
virt|away has quit [Ping timeout: 276 seconds]
okinomo has quit [Ping timeout: 260 seconds]
phipes has quit [Remote host closed the connection]
okinomo has joined #ruby
ewnd9 has joined #ruby
freezey has joined #ruby
tskogberg has quit [Ping timeout: 252 seconds]
aspires has quit []
joaoh82 has joined #ruby
camilasan has joined #ruby
tskogberg has joined #ruby
aspires has joined #ruby
rajasaurus has quit [Ping timeout: 260 seconds]
croaky has quit [Ping timeout: 260 seconds]
simoz118 has joined #ruby
joaoh82 has quit [Ping timeout: 252 seconds]
phipes has joined #ruby
rajasaurus has joined #ruby
kacperix has joined #ruby
dagobah has joined #ruby
razibog has joined #ruby
cheeti has joined #ruby
fixl has joined #ruby
jbueza has quit [Quit: Textual IRC Client: www.textualapp.com]
cheeti has quit [Client Quit]
brennanMKE has joined #ruby
timonv has quit [Remote host closed the connection]
Spami has joined #ruby
cheeti has joined #ruby
ahawkins has joined #ruby
apeiros has joined #ruby
dukz has quit [Remote host closed the connection]
freezey has quit [Remote host closed the connection]
phansch_ has quit [Quit: Leaving]
mary5030_ has quit [Remote host closed the connection]
alexfreidah has joined #ruby
Xzanron has joined #ruby
mansi has joined #ruby
razibog has quit [Ping timeout: 252 seconds]
mklappstuhl has joined #ruby
alexfreidah has quit [Ping timeout: 252 seconds]
blarghmatey has quit [Ping timeout: 260 seconds]
mansi has quit [Ping timeout: 260 seconds]
juarlex has joined #ruby
mklappstuhl has quit [Read error: Operation timed out]
thomasxie has quit [Ping timeout: 260 seconds]
daidoji has quit [Ping timeout: 252 seconds]
ahawkins has quit [Quit: leaving]
ahawkins has joined #ruby
kacperix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brennanMKE has quit [Ping timeout: 260 seconds]
toastynerd has joined #ruby
nwertman has joined #ruby
LostMonk_ has quit [Ping timeout: 265 seconds]
Kar- has joined #ruby
fire has joined #ruby
<Wixy> I have an array of arrays, like [[1], [2], ...]
<Wixy> and I want to loop over it
juarlex has quit [Ping timeout: 252 seconds]
<Wixy> but when it only has one element, it works differently
<Wixy> wait, I think I'm wrong :P
<Wixy> nm
toastynerd has quit [Read error: No route to host]
toastynerd has joined #ruby
LostMonk has joined #ruby
kacperix has joined #ruby
nwertman has quit [Ping timeout: 252 seconds]
fgo has joined #ruby
Kar- has quit [Ping timeout: 260 seconds]
dukz has joined #ruby
shedd has quit [Remote host closed the connection]
enape_101 has quit [Ping timeout: 252 seconds]
fgo has quit [Ping timeout: 252 seconds]
nateberkopec has joined #ruby
mengu has quit [Remote host closed the connection]
aganov has joined #ruby
amundj has joined #ruby
e62 has joined #ruby
dweeb_ has joined #ruby
camilasan has quit [Ping timeout: 272 seconds]
dukz has quit [Remote host closed the connection]
nateberkopec has quit [Ping timeout: 252 seconds]
dukz has joined #ruby
phipes has quit []
wudofyr_ has joined #ruby
jprovazn has joined #ruby
wudofyr_ has quit [Remote host closed the connection]
browndawg has quit [Quit: Leaving.]
jonahR has joined #ruby
Agamemnus has left #ruby [#ruby]
<pontiki> confident rubyist is confident
e62 has quit [Ping timeout: 252 seconds]
wudofyr_ has joined #ruby
wudofyr_ has quit [Remote host closed the connection]
tskogberg has quit [Ping timeout: 260 seconds]
mengu has joined #ruby
pehlert has joined #ruby
daidoji has joined #ruby
mklappstuhl has joined #ruby
dukz has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
andikr has joined #ruby
claymore has joined #ruby
ahmedelgabri has quit [Remote host closed the connection]
zeade has joined #ruby
Wolland has quit [Remote host closed the connection]
jhn_ has quit [Ping timeout: 260 seconds]
Xeago has joined #ruby
pehlert has quit [Ping timeout: 260 seconds]
mklappstuhl has quit [Ping timeout: 252 seconds]
Xeago has quit [Remote host closed the connection]
saarinen has joined #ruby
dukz has joined #ruby
Xeago has joined #ruby
daidoji has quit [Ping timeout: 272 seconds]
zeade has quit [Quit: Leaving.]
mechanicles has joined #ruby
apeiros_ has joined #ruby
Xeago has quit [Ping timeout: 260 seconds]
w4pm has joined #ruby
kacperix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
simoz118 has quit [Ping timeout: 252 seconds]
aspires has quit []
CpuID2 has quit [Ping timeout: 265 seconds]
mechanicles has quit [Ping timeout: 252 seconds]
mrnugget has quit [Quit: mrnugget]
Macaveli has joined #ruby
joaoh82 has joined #ruby
w4pm has quit [Ping timeout: 260 seconds]
jhaals has joined #ruby
jhaals_ has joined #ruby
zipper has quit [Ping timeout: 252 seconds]
rootshift has joined #ruby
holderbaum has quit [Quit: leaving]
holderbaum has joined #ruby
shedd has joined #ruby
zigomir has joined #ruby
nwertman has joined #ruby
joaoh82 has quit [Ping timeout: 260 seconds]
jhaals has quit [Ping timeout: 265 seconds]
charliesome has joined #ruby
DouweM has quit [Ping timeout: 252 seconds]
daidoji has joined #ruby
rdark has joined #ruby
rootshift has quit [Quit: rootshift]
zipper has joined #ruby
nwertman has quit [Ping timeout: 252 seconds]
saarinen has quit [Read error: Connection reset by peer]
Spami has quit [Quit: This computer has gone to sleep]
arietis has joined #ruby
saarinen has joined #ruby
kacperix has joined #ruby
baschtmobil has joined #ruby
meatherly has joined #ruby
tectonic has quit []
tskogberg has joined #ruby
mklappstuhl has joined #ruby
Vivekananda has quit [Remote host closed the connection]
noname001__ has joined #ruby
apeiros_ has quit [Remote host closed the connection]
shedd has quit [Ping timeout: 265 seconds]
CpuID has joined #ruby
meatherly has quit [Ping timeout: 256 seconds]
vlad_starkov has quit [Remote host closed the connection]
wildroman2 has joined #ruby
blo has joined #ruby
mklappstuhl has quit [Ping timeout: 265 seconds]
mansi has joined #ruby
mjmac has joined #ruby
aetaric has joined #ruby
DarkFoxDK has joined #ruby
verto has joined #ruby
zz_jrhorn424 has joined #ruby
Xeago has joined #ruby
zxd has joined #ruby
mbff has joined #ruby
mbff is now known as Guest88655
brennanMKE has joined #ruby
holderbaum has quit [Remote host closed the connection]
utkarsh has joined #ruby
simoz118 has joined #ruby
holderbaum has joined #ruby
holderbaum has quit [Read error: Connection reset by peer]
dukz has quit [Remote host closed the connection]
stetho has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xeago has quit [Read error: Connection reset by peer]
holderbaum has joined #ruby
holderbaum has quit [Read error: Connection reset by peer]
fusi0n has joined #ruby
ephemerian has joined #ruby
mechanicles has joined #ruby
cschneid has joined #ruby
mansi has quit [Ping timeout: 272 seconds]
yosafbridge has quit [Ping timeout: 264 seconds]
brennanMKE has quit [Ping timeout: 264 seconds]
Xeago has joined #ruby
dEPy has joined #ruby
mrnugget has joined #ruby
holderbaum has joined #ruby
yosafbridge has joined #ruby
mary5030 has joined #ruby
dfranciosi has joined #ruby
holderbaum has quit [Remote host closed the connection]
aryaching has quit [Ping timeout: 265 seconds]
LekeFly has joined #ruby
kacperix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nateberkopec has joined #ruby
okinomo has quit [Ping timeout: 252 seconds]
holderbaum has joined #ruby
holderbaum has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 264 seconds]
atmosx has joined #ruby
vlad_starkov has joined #ruby
dweeb_ has quit [Quit: Computer has gone to sleep.]
Kricir has quit [Remote host closed the connection]
dayepa has quit [Ping timeout: 252 seconds]
nateberkopec has quit [Ping timeout: 252 seconds]
saarinen has quit [Quit: saarinen]
dayepa has joined #ruby
Kar- has joined #ruby
toastynerd has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
rootshift has joined #ruby
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tyl has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
mklappstuhl has quit [Ping timeout: 272 seconds]
mehlah has joined #ruby
CpuID has quit [Read error: Connection reset by peer]
dweeb_ has joined #ruby
rajasaurus has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
gasbakid has joined #ruby
Xeago has joined #ruby
relix has joined #ruby
kewubenduben has joined #ruby
roolo has joined #ruby
dik_dak has quit [Quit: Leaving]
Xeago has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
poulson has joined #ruby
obs_ has joined #ruby
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shaunbaker has joined #ruby
tesuji has joined #ruby
olivier_bK has joined #ruby
camilasan has joined #ruby
tskogberg has quit [Ping timeout: 260 seconds]
wildroman2 has quit [Remote host closed the connection]
epic has quit [Ping timeout: 248 seconds]
vlad_starkov has joined #ruby
timonv has joined #ruby
joaoh82 has joined #ruby
johchri has joined #ruby
johchri has quit [Client Quit]
carraroj has joined #ruby
Advocation has joined #ruby
nvrch has joined #ruby
Advocation has quit [Client Quit]
vlad_starkov has quit [Ping timeout: 264 seconds]
joaoh82_ has joined #ruby
Kricir has joined #ruby
timonv has quit [Ping timeout: 264 seconds]
shedd has joined #ruby
joaoh82 has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
mklappstuhl has joined #ruby
hiall has joined #ruby
atmosx has quit [Quit: computer went to sleep...]
shedd has quit [Ping timeout: 265 seconds]
krz has quit [Ping timeout: 260 seconds]
tskogberg has joined #ruby
toastynerd has joined #ruby
ferr has joined #ruby
mklappstuhl has quit [Ping timeout: 252 seconds]
travisjeffery has joined #ruby
sirecote has quit [Ping timeout: 252 seconds]
sirecote has joined #ruby
marr has joined #ruby
hiall has quit [Quit: hiall]
wallerdev has joined #ruby
toastynerd has quit [Ping timeout: 260 seconds]
travisjeffery has quit [Client Quit]
ghr has joined #ruby
alexfreidah has joined #ruby
epic has joined #ruby
mojjojo has joined #ruby
mansi has joined #ruby
krz has joined #ruby
nhhagen has joined #ruby
tt1187 has joined #ruby
nhhagen has quit [Remote host closed the connection]
alexfreidah has quit [Ping timeout: 264 seconds]
nhhagen has joined #ruby
brennanMKE has joined #ruby
dukz has joined #ruby
himsin has joined #ruby
subbyyy has quit [Ping timeout: 253 seconds]
drumusician has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
juarlex has joined #ruby
tskogberg has quit [Ping timeout: 272 seconds]
nateberkopec has joined #ruby
Advocation has joined #ruby
mojjojo has quit [Quit: mojjojo]
Advocation has quit [Client Quit]
toastynerd has joined #ruby
mojjojo has joined #ruby
ahmedelgabri has joined #ruby
brennanMKE has quit [Ping timeout: 252 seconds]
dukz has quit [Remote host closed the connection]
toastynerd has quit [Read error: Connection reset by peer]
toastyne_ has joined #ruby
nwertman has joined #ruby
dukz has joined #ruby
juarlex has quit [Ping timeout: 252 seconds]
wildroman2 has joined #ruby
nateberkopec has quit [Ping timeout: 264 seconds]
ewnd9 has quit [Ping timeout: 260 seconds]
jonahR has quit [Quit: jonahR]
zipper has quit [Ping timeout: 260 seconds]
Wixy has quit [Read error: Connection reset by peer]
Mattx has quit [Read error: Connection reset by peer]
dukz has quit [Ping timeout: 252 seconds]
toastyne_ has quit [Ping timeout: 260 seconds]
thomasxie has joined #ruby
zipper has joined #ruby
travisjeffery has joined #ruby
TMM has joined #ruby
freezey has joined #ruby
shaunbaker has quit [Remote host closed the connection]
freezey has quit [Write error: Broken pipe]
<Cope> I want to test a website that requires me to pass a specific host header. I'm using watir-webdriver. Seems like the Browser.goto method expects a string, but I need to pass it an IP and host header. Any suggestions on how to do something like this?
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
Kricir has quit [Ping timeout: 264 seconds]
krz has quit [Quit: WeeChat 0.4.2]
wildroman2 has quit [Remote host closed the connection]
razibog has joined #ruby
<zxd> hi
<zxd> I am new to ruby why would I want to use RVM why would I need multiple ruby interpreters
gja has quit [Quit: This computer has gone to sleep]
e62 has joined #ruby
rajasaurus has joined #ruby
mojjojo has quit [Quit: mojjojo]
canton7-mac has joined #ruby
ahawkins_ has joined #ruby
Speed has joined #ruby
ewnd9 has joined #ruby
<tobiasvl> it's not just multiple interpreters, it gives you separate environments (version, gems, etc)
stetho has joined #ruby
ahawkins has quit [Read error: Operation timed out]
<Cope> zxd: fwiw I don't bother with rvm at all; bundler provides all I need; if I need multiple ruby version/interpreters I use chruby.
nwertman has quit [Ping timeout: 252 seconds]
fire has quit [Ping timeout: 252 seconds]
wallerdev has quit [Quit: wallerdev]
e62 has quit [Ping timeout: 272 seconds]
timonv has joined #ruby
pehlert has joined #ruby
joaoh82_ has quit []
joaoh82 has joined #ruby
krz has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
narcan has joined #ruby
Wixy has joined #ruby
Wixy has quit [Changing host]
Wixy has joined #ruby
Mattx has joined #ruby
Mattx has joined #ruby
Mattx has quit [Changing host]
rajasaurus has quit [Ping timeout: 260 seconds]
pehlert has quit [Ping timeout: 264 seconds]
aryaching has joined #ruby
tskogberg has joined #ruby
timonv_ has joined #ruby
gja has joined #ruby
mklappstuhl has joined #ruby
hiall has joined #ruby
workmad3 has joined #ruby
karupanerura is now known as zz_karupanerura
timonv has quit [Ping timeout: 260 seconds]
nhhagen has quit [Remote host closed the connection]
simoz118 has quit [Ping timeout: 252 seconds]
nhhagen has joined #ruby
h_kon has quit [Remote host closed the connection]
aryaching has quit [Ping timeout: 264 seconds]
noname001__ is now known as noname001
ahawkins_ has quit [Quit: leaving]
ahawkins has joined #ruby
ewnd9 has quit [Ping timeout: 264 seconds]
foooobear has quit [Remote host closed the connection]
Guedes has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
Guedes has left #ruby [#ruby]
sepp2k has quit [Read error: Connection reset by peer]
aryaching has joined #ruby
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nhhagen has quit [Ping timeout: 252 seconds]
shaunbaker has joined #ruby
krz has quit [Ping timeout: 256 seconds]
zeeraw has joined #ruby
Kricir has joined #ruby
mojjojo has joined #ruby
shedd has joined #ruby
krz has joined #ruby
mojjojo has quit [Client Quit]
h_kon has joined #ruby
Kricir has quit [Ping timeout: 272 seconds]
shedd has quit [Ping timeout: 252 seconds]
zipper has quit [Ping timeout: 252 seconds]
akemrir has joined #ruby
chinkung has quit [Read error: Connection reset by peer]
chinkung has joined #ruby
nateberkopec has joined #ruby
Bira has joined #ruby
wildroman2 has joined #ruby
robertrv_ has joined #ruby
dEPy has quit [Quit: Computer has gone to sleep.]
mklappstuhl has quit [Remote host closed the connection]
nwertman has joined #ruby
Xeago_ has quit [Remote host closed the connection]
nateberkopec has quit [Ping timeout: 260 seconds]
brennanMKE has joined #ruby
VeinMelted has joined #ruby
jprovazn has quit [Quit: Leaving]
robertrv has quit [Ping timeout: 265 seconds]
toastynerd has joined #ruby
aryaching has quit []
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nhhagen has joined #ruby
sepp2k has joined #ruby
brennanMKE has quit [Ping timeout: 252 seconds]
zipper has joined #ruby
e62 has joined #ruby
dEPy has joined #ruby
toastynerd has quit [Ping timeout: 272 seconds]
fgo has joined #ruby
carraroj has quit [Ping timeout: 272 seconds]
aryaching has joined #ruby
nhhagen has quit [Ping timeout: 252 seconds]
mikecmpbll has joined #ruby
zipper has quit [Ping timeout: 252 seconds]
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
e62 has quit [Ping timeout: 252 seconds]
daidoji has quit [Ping timeout: 252 seconds]
dukz has joined #ruby
zeeraw has joined #ruby
zipper has joined #ruby
nwertman has quit [Ping timeout: 252 seconds]
camilasan has quit [Remote host closed the connection]
fijimunkii has quit [Ping timeout: 260 seconds]
fgo has quit [Ping timeout: 252 seconds]
fusi0n has quit [Quit: .]
mengu has quit [Write error: Broken pipe]
charliesome has joined #ruby
camilasan has joined #ruby
dukz has quit [Remote host closed the connection]
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
camilasan has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
nhhagen has joined #ruby
cj3kim has joined #ruby
<ddd> zxd you would want something like rvm or rbenv or chruby when you have multiple projects each using different ruby versions, and if you wanted multiple gemsets (gemsets allow you to have isolated packs of gems specific to different projects)
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
psyl0n has joined #ruby
psyl0n has quit [Changing host]
psyl0n has joined #ruby
nari has quit [Ping timeout: 252 seconds]
<ddd> rvm gives you the multiple gemsets (just remember to rvm gemset globalcache enable so that you can share previously downloaded gems from a central cache. this is just the downloads, not the actual gems once installed. basically it keeps you from hitting rubygems.org every time you need that same gem version. once oyu got it you got it)
camilasan has quit [Remote host closed the connection]
<ddd> the other two i'm not extremely familiar with their inner workings so you'll have to check their docs to see how they do the same thing
camilasan has joined #ruby
<rdark> is 1.9.3 really now EOL?
Bira has quit [Remote host closed the connection]
JoeTheGuest_ has quit [Read error: Connection reset by peer]
kacperix has joined #ruby
JoeTheGuest__ has joined #ruby
alexherbo2 has joined #ruby
hamed_r has joined #ruby
himsin has quit [Quit: himsin]
cj3kim has quit [Ping timeout: 252 seconds]
andikr has quit [Read error: Operation timed out]
<workmad3> rdark: no
<workmad3> rdark: if you read that, you'll see it's still maintained but most likely just security fixes now
<workmad3> rdark: hence the status of 'maintained' rather than the 1.8.7 and 1.9.2 statuses of EOL ;)
andikr has joined #ruby
jprovazn has joined #ruby
<mikecmpbll> yeah that's a clue
<rdark> workmad3: that's what I thought, thanks :)
<rdark> I read 'normal maintenance' 2013/12 as EOL, not enought coffee yet this morning
<Hanmac> 1.8.7 has the status "undead" ... because it is still maintained my third party after the developers did EOL'd it
<workmad3> 1.8.7 - zombie ruby
AlSquire has joined #ruby
<rdark> yeah, that's the problem with long distro release cycles, RHEL has worked around it with SCL, but they're going to be supporting system 1.8.7 for years to come on RHEL6
<workmad3> or maybe it's vampire ruby? sucking the life out of help channels even after it died and was buried
<Hanmac> xD
browndawg has joined #ruby
Beoran_ has quit [Ping timeout: 252 seconds]
thejoecarroll has quit [Quit: ZNC - http://znc.in]
Beoran_ has joined #ruby
akemrir has quit [Quit: WeeChat 0.4.2]
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
zeeraw has joined #ruby
thejoecarroll has joined #ruby
tkuchiki_ has quit [Remote host closed the connection]
orionstein_away is now known as orionstein
tkuchiki has joined #ruby
mrnugget has quit [Quit: mrnugget]
zeeraw has quit [Client Quit]
Galgorth has quit [Quit: Galgorth]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zeeraw has joined #ruby
intuxicated has joined #ruby
Kricir has joined #ruby
Bira has joined #ruby
gcds has joined #ruby
Guedes has joined #ruby
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
shedd has joined #ruby
po10_ has quit [Quit: ZZZzzz…]
asmodlol has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 260 seconds]
Beoran_ has quit [Ping timeout: 260 seconds]
lkba has joined #ruby
wildroman2 has quit [Remote host closed the connection]
Czupa has joined #ruby
ozgun has joined #ruby
Kricir has quit [Ping timeout: 264 seconds]
rndstr has joined #ruby
razibog has quit [Quit: Leaving.]
intuxicated has quit [Read error: No route to host]
shedd has quit [Ping timeout: 264 seconds]
intuxicated has joined #ruby
nateberkopec has joined #ruby
nateberkopec has quit [Ping timeout: 272 seconds]
prc has joined #ruby
alexfreidah has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
orionstein is now known as orionstein_away
wildroman2 has joined #ruby
ahmedelgabri has quit [Remote host closed the connection]
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Beoran_ has joined #ruby
zipper has quit [Remote host closed the connection]
zeeraw has joined #ruby
alexfreidah has quit [Ping timeout: 259 seconds]
nwertman has joined #ruby
brennanMKE has joined #ruby
Bira has quit [Remote host closed the connection]
juarlex has joined #ruby
tkuchiki has joined #ruby
psyl0n has quit [Remote host closed the connection]
toastynerd has joined #ruby
aryaching_ has joined #ruby
nari has joined #ruby
dangerousdave has joined #ruby
claymore has quit [Ping timeout: 265 seconds]
Xeago has joined #ruby
cbetta_afk is now known as cbetta
jlebrech has joined #ruby
LekeFly has joined #ruby
eka has joined #ruby
brennanMKE has quit [Ping timeout: 252 seconds]
Bumptious has joined #ruby
juarlex has quit [Ping timeout: 265 seconds]
casheew_ has quit [Read error: Connection reset by peer]
casheew has joined #ruby
aryaching has quit [Ping timeout: 272 seconds]
Gooder has quit [Remote host closed the connection]
toastynerd has quit [Ping timeout: 252 seconds]
nwertman has quit [Ping timeout: 252 seconds]
sergicles has joined #ruby
Gooder` has joined #ruby
rootshift has quit [Quit: rootshift]
zipper has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
dogonthesun has joined #ruby
fgo has joined #ruby
dEPy has quit [Quit: Computer has gone to sleep.]
claymore has joined #ruby
ms_steampunk has joined #ruby
Bira has joined #ruby
Bira has quit [Read error: Connection reset by peer]
zipper_ has joined #ruby
zipper has quit [Ping timeout: 260 seconds]
Bira has joined #ruby
Al__ has joined #ruby
psyl0n has joined #ruby
TMM has quit [Quit: Ex-Chat]
obs_ has quit [Read error: Connection reset by peer]
guilund has joined #ruby
ahmedelgabri has joined #ruby
shaunbaker has quit [Remote host closed the connection]
canton7 has joined #ruby
wald0 has joined #ruby
pehlert has joined #ruby
<wald0> does Macros (like the C ones) exist in ruby or we have only functions for that?
<workmad3> wald0: no, there's no pre-processor in ruby (and no compile time to run one at)
m00nlight has joined #ruby
<workmad3> wald0: and in ruby, everything is a method, not a function (OO terminology)
<workmad3> well, anything you call is a method, everything is an object (with some provisos :) )
<wald0> ok :)
<canton7> and no, there's no preprocessor
<ms_steampunk> Hey guys, I'm kind of confused with Nokogiri, can I use Nokogiri to see if the page has RSS in it? I've noticed that some RSS may have .xml appended to the end while others do not
kacperix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mrnugget has joined #ruby
pehlert has quit [Ping timeout: 255 seconds]
Freijo is now known as Fraeon
<wald0> how i can define a method to be called like a function ? (without object.method mode), so simply directly the name of the method in a single line
<Hanmac1> wald0 but it can look like Macros ... like attr_accessor for sample
<canton7> ms_steampunk, yeah, look for <link> tags with type="application/rs+xml"
Hanmac1 is now known as Hanmac
<ms_steampunk> canton7: Thanks a lot!
<canton7> *rss+xml rather
spyderman4g63 has quit [Remote host closed the connection]
<wald0> Hanmac: im trying to see the info of attr_accessor in pry, where it is exactly located?
kacperix has joined #ruby
Kar- has quit [Ping timeout: 252 seconds]
<Hanmac> wald0: defined as instance method in Module and so accessable in each module and class
<workmad3> wald0: dropping the object is just syntax sugar for 'self.method' (assuming the method isn't shadowed by a local variable)
chebyte has left #ruby [#ruby]
<workmad3> wald0: which should give you an idea of how and when you can drop the explicit receiver :)
pranny has quit [Quit: Leaving.]
dEPy has joined #ruby
soba has quit [Ping timeout: 283 seconds]
doodlehaus has joined #ruby
andikr has quit [Remote host closed the connection]
dEPy has quit [Client Quit]
browndawg has quit [Ping timeout: 252 seconds]
figgleberry has joined #ruby
agjacome has joined #ruby
<wald0> mmmh, class Module ; def pwd ; Dir.pwd ; end ; end
<wald0> something like this should work ?
dEPy has joined #ruby
<wald0> im trying it in pry but i have: NameError: undefined local variable or method `pwd' for main:Object
<workmad3> wald0: that's because you defined the method as a mixin method on Module
<wald0> or just outside any class?
<ddd> can you have a class Module? wouldn't that conflict with the existing Module? or is he trying to extend it?
<workmad3> ddd: Module is an existing class
VeinMelted has quit [Quit: Computer has gone to sleep.]
<workmad3> ddd: it's the class that modules are instances of
dEPy has quit [Client Quit]
<ddd> right, so he's trying to add this to the class?
<wald0> ddd: im doing a test, trying to have available a "function" (method) call anywhere without the need of to call from an object
lupine has quit [Ping timeout: 245 seconds]
klaut has joined #ruby
<workmad3> wald0: as I already said, there is *always* an object you're calling on in ruby
eka has quit [Quit: Computer has gone to sleep.]
<workmad3> wald0: not having an explicit object just means you're implicitly calling it on 'self'
<workmad3> wald0: which means that the method needs to be defined on whatever 'self' is at that point
<ddd> even if you're in the top level (outside of any class etc) you have an object. Ruby's top-level is main
<wald0> workmad3: so i should simply define methods at the start of my code and i can use it later?
gasbakid has quit [Read error: Connection reset by peer]
<wald0> (without be defined inside classes)
<workmad3> wald0: if you're writing a script, you can do that
figgleberry has quit [Ping timeout: 264 seconds]
<wald0> script, app, code, whats the difference ? :)
<workmad3> wald0: if you're writing a larger application, I'd recommend against polluting your top-level
<workmad3> wald0: a script is a short, single-file chunk of code that's intended to be run as-is
<workmad3> wald0: so the difference is in the amount of structuring that's appropriate :P
<wald0> ah
Neomex has joined #ruby
<workmad3> wald0: namely, you *can* put the methods at the top-level no matter what... but if it's a larger application, it's not a good idea because it'll mess things up :)
Neomex has quit [Client Quit]
BizarreCake has joined #ruby
nhhagen has quit [Remote host closed the connection]
<wald0> yeah, sounds like, but by other side you could have "functions that trigger actions", mmh, maybe i need to be more familiarized with rb :)
Kricir has joined #ruby
nhhagen has joined #ruby
nateberkopec has joined #ruby
<ddd> it'd be akin to defining a bunch of globals ($var). why would you
joonty has quit [Ping timeout: 267 seconds]
<wald0> what is the best way to set an alias of NULL to be nil ?
nhhagen has quit [Remote host closed the connection]
<wald0> class NULL < nil ; end ?
<workmad3> wald0: you don't
<workmad3> wald0: you use nil
nhhagen has joined #ruby
<wald0> workmad3: but sometimes i want to use NULL :)
Xeago has quit [Read error: Connection reset by peer]
<tobiasvl> you can't subclass nil
<workmad3> wald0: stop writing C inside ruby
<ddd> hehe
<tobiasvl> nil is not a class, it's an instance
<tobiasvl> NilClass is the class nil is a (singleton) instance of
Xeago has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
ewnd9 has joined #ruby
<wald0> workmad3: lol you got me, in fact im trying to have some C code that directly works without modifications in a paste to ruby, just for make things faster, the only things that doesnt works are these macros, so i should create for them methods i assume, and NULL to be translated to nil
<workmad3> wald0: does this C code have 'i++' anywhere?
<ddd> people do some really weird things
<workmad3> wald0: because that's not possible in ruby :P
<tobiasvl> NULL = nil
<tobiasvl> boom?
<workmad3> tobiasvl: would work, I guess
<wald0> not here, they are mostly like "calls of functions" for GUI development (it could but not here)
<workmad3> tobiasvl: but I wasn't going to make it easy to do crazy things personally :)
sergicles has quit [Quit: sergicles]
<wald0> this is an actual working example, as you can see, most of them are "pure C code" http://paste.debian.net/75204/
ms_steampunk has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 265 seconds]
emocakes has joined #ruby
<workmad3> ewww
<workmad3> :P
<wald0> ddd: fast development of ruby from C code :), just paste hte C code, run it and see that it works, then rename it to be more ruby-like syntax
nateberkopec has quit [Ping timeout: 252 seconds]
<ddd> that is no not fast development
<Hanmac> ms_steampunk: i think with doc.xpath("//link[@type=\"application/rss+xml\"]")
<ddd> s/no /so /
threesome has joined #ruby
popl has quit [Quit: And then there are people who prefer to look their fate in the eye.]
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
<ddd> what you're doing doesn't make any sense if you're just mimicing in an interpreted language what you're doing in a compiled language which gains execution speed gains
<wald0> if you want to see a look to this GUI toolkit bindings this is a nice demo of some codes in a video, workmad3 ^
doodlehaus has quit [Remote host closed the connection]
ms_steampunk has joined #ruby
<ddd> in fact you're slowing it down. (not to mention its ugly as sin)
sergicles has joined #ruby
<wald0> ddd: yes it does, this GUI c-api is very powerful and complete, but is C, by using it in ruby i can have "all the features of ruby" for the same speedy interfaces gui
<ddd> if you say so
<emocakes> wheres wald0
<wald0> ruby is much nicer to code and to use features, so i just need to re-use hte parts that i need for the gui elements
browndawg has joined #ruby
<wald0> emocakes: here!
browndawg has quit [Max SendQ exceeded]
<wald0> ddd: by other side of course you could create classes with pre-made code on it
zipper_ has quit [Ping timeout: 252 seconds]
<workmad3> wald0: ruby is only much nicer with something like that when you have a decent ruby wrapper around the API
<workmad3> wald0: what you have there is C code in ruby
<workmad3> wald0: which is not much nicer... it's just C code
browndawg has joined #ruby
<wald0> workmad3: right, this is just a GUI example part, think about make an app that does a lot of things and shows "a few of them" in a gui form (this c code)
<wald0> gui checkbox --> run mechanize to follow some actions in a web-page
apeiros_ has joined #ruby
<wald0> example
<workmad3> wald0: I'd wrap that gui interface in ruby objects to make it more natural to use
VeinMelted has joined #ruby
zipper has joined #ruby
<workmad3> wald0: I wouldn't try to copy-paste C code to just make it work any old way
<wald0> workmad3: yeah, that could be much nicer, but im actually novice at ruby, just readed a book yet (called: begining ruby), i think that i must practice a bit first
<wald0> maybe i will make some basic interface calls like the ones of zenity
<workmad3> wald0: I'd agree... I'd also suggest that in order to practice, you should be looking to do things in an idiomatic ruby manner
lupine has joined #ruby
<wald0> yeah, and i like the ruby manner for sure :)
dEPy has joined #ruby
<workmad3> wald0: and not just figure out how to get C style ruby code :P
shreknet has quit [Ping timeout: 252 seconds]
<workmad3> wald0: which would, to me, imply that maybe you should delay this particular project a bit ;)
mansi has joined #ruby
<wald0> well, my goal will be of course to use a much simpler "ruby manner" to make gui's, otherwise i would stick using directly the C coding (losing the ruby features)
utkarsh has quit [Changing host]
utkarsh has joined #ruby
<workmad3> wald0: or stretch yourself and try to do it properly from the start, figuring out the difficult bits as you go along
vallieres_ has joined #ruby
<wald0> mmh, for me i feel much easier if "my first test" simply works (a paste of the C equivalent code), and then start translating it to more ruby style... otherwise i feel it frustrating if you need to translate all before you get the single instance working
<wald0> well
<wald0> by other side these bindings has already a lot of ruby-manner available
<wald0> i can use it in c-style and ruby-style
nwertman has joined #ruby
<wald0> but i just found it very complex and hard to understand when it is ruby :///
<wald0> so i want to make my own ones
avalarion has joined #ruby
mengu has quit [Remote host closed the connection]
mechanicles has quit [Remote host closed the connection]
brennanMKE has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
<ddd> so basically you're trying to remove the pressure to actually learn the language and keep doing what you're doing the way you're used to doing it.
<ddd> interesting
toastynerd has joined #ruby
dEPy has quit [Quit: Computer has gone to sleep.]
gcds has quit [Quit: gcds]
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
codenapper has joined #ruby
VeinMelted has quit [Remote host closed the connection]
codenapper has quit [Client Quit]
gcds has joined #ruby
codenapper has joined #ruby
brennanMKE has quit [Ping timeout: 252 seconds]
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
gja has quit [Client Quit]
nwertman has quit [Ping timeout: 252 seconds]
toastynerd has quit [Ping timeout: 272 seconds]
pranny has joined #ruby
dukz has joined #ruby
<wald0> ddd: well, yes and no, its much easier for me to use the already-known api
achru has joined #ruby
<wald0> just because im very familiarized with it, not because "i like it more" :)
dukz has quit [Remote host closed the connection]
sn0wb1rd has quit [Ping timeout: 252 seconds]
LiquidInsect has quit [Ping timeout: 252 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
RaCx has joined #ruby
dEPy has joined #ruby
cbetta is now known as cbetta_afk
<wald0> mmmh im checking the ruby-style of these bindings, they doesnt seems very hard, but i would like to know if there's some doc/reference of them, because i have not them
himsin has joined #ruby
LiquidInsect has joined #ruby
sn0wb1rd has joined #ruby
jkamenik has joined #ruby
jkamenik has quit [Client Quit]
codenapper has quit [Quit: codenapper]
jkamenik has joined #ruby
<wald0> mmh, how i can generate the docs for my system instead to check them online ? http://rubydoc.info/gems/ffi-efl/0.1.1/frames
codenapper has joined #ruby
shedd has joined #ruby
dblessing has joined #ruby
dEPy has quit [Quit: Computer has gone to sleep.]
ferr has quit [Read error: Operation timed out]
Czupa has quit [Remote host closed the connection]
dogonthesun has quit [Read error: Connection reset by peer]
shedd has quit [Ping timeout: 252 seconds]
dogonthesun has joined #ruby
gja has joined #ruby
ahawkins has quit [Ping timeout: 265 seconds]
spider-mario has joined #ruby
shaunbaker has joined #ruby
fgo has quit [Remote host closed the connection]
tvw has joined #ruby
shaunbak_ has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
shaunbaker has quit [Ping timeout: 260 seconds]
gja has quit [Quit: This computer has gone to sleep]
drumusician has quit [Ping timeout: 265 seconds]
dEPy has joined #ruby
dfranciosi has quit [Remote host closed the connection]
RaCx has quit [Quit: Computer has gone to sleep.]
RaCx has joined #ruby
<ms_steampunk> can I get a link using Nokogiri by using an element attribute or would I have to use Mechanize for that? Also sorry for the nub questions, I just started programming shortly before Christmas
<apeiros> mechanize afaik uses nokogiri underneath
<apeiros> nokogiri on its own is enough to parse an html/xml file and extract links from it
kacperix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ms_steampunk> Oh okay, thanks apeiros
jovon has joined #ruby
Doc_X_ has quit []
vallieres_ has quit [Quit: Computer has gone to sleep.]
vt102 has joined #ruby
einarj has joined #ruby
Doc_X has joined #ruby
RaCx has quit [Client Quit]
kacperix has joined #ruby
dkamioka has joined #ruby
prophile has quit [Ping timeout: 245 seconds]
DouweM has joined #ruby
prophile has joined #ruby
rajasaurus has joined #ruby
shaunbak_ has quit [Remote host closed the connection]
breakingthings has joined #ruby
<emocakes> making a bot ms_steampunk
<emocakes> ?
doodlehaus has joined #ruby
<emocakes> i started ruby with using mechanize
<emocakes> and making a bot for an online game
<emocakes> :)
zeeraw has joined #ruby
RaCx has joined #ruby
<ms_steampunk> emocakes: Mm, not exactly, I'm not sure if it'd be considered a bot. Just something that checks whether a website has RSS and if it does, it displays the feed.
ahawkins has joined #ruby
<emocakes> well, a scraper of sorts then
<emocakes> :)
nateberkopec has joined #ruby
<emocakes> good way to learn
<ms_steampunk> emocakes: What are you using to learn about making bots?
<ms_steampunk> :)
<emocakes> nothing
<emocakes> imitate the way i play the game normally
<emocakes> but make it a program doing it
<emocakes> just logic
<emocakes> and mechanize
<emocakes> this was years ago though
<emocakes> now I do RoR development
sergicles has quit [Quit: sergicles]
<emocakes> and because of that, my ruby skills are low :p
varfoo has quit [Quit: WeeChat 0.4.0]
<ms_steampunk> Oh haha I doubt that!
rootshift has joined #ruby
sergicles has joined #ruby
krz has quit [Quit: WeeChat 0.4.2]
tharindu has quit [Quit: Leaving...]
tskogberg has quit [Read error: Operation timed out]
tskogberg has joined #ruby
fedez77 has joined #ruby
nateberkopec has quit [Ping timeout: 260 seconds]
shaunbaker has joined #ruby
ewnd9 has quit [Ping timeout: 260 seconds]
doodlehaus has quit [Remote host closed the connection]
browndawg has quit [Quit: Leaving.]
shaunbak_ has joined #ruby
Kricir has joined #ruby
dfranciosi has joined #ruby
yoshie902a has joined #ruby
mark_locklear has joined #ruby
rajasaurus has quit [Ping timeout: 252 seconds]
<yoshie902a> I am using attributes.fetch :myvalue, but I get an error when I use { 'myvalue'=>1}, is there a way to get attribute.fetch to grab the value of either a symbol or string key with the same name?
stryek has joined #ruby
x__ has joined #ruby
tskogberg has quit [Ping timeout: 264 seconds]
dEPy has quit [Quit: Computer has gone to sleep.]
tskogberg has joined #ruby
shaunbaker has quit [Ping timeout: 264 seconds]
Kricir has quit [Ping timeout: 264 seconds]
SeySayux has quit [Ping timeout: 253 seconds]
dEPy has joined #ruby
ahmedelgabri has quit [Remote host closed the connection]
RaCx has quit [Quit: Computer has gone to sleep.]
kotk has joined #ruby
dEPy has quit [Client Quit]
SeySayux has joined #ruby
shaunbak_ has quit [Remote host closed the connection]
jonathanwallace has quit [Quit: ZNC - http://znc.in]
kacperix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mklappstuhl has joined #ruby
<yoshie902a> anyone around?
<yoshie902a> hello?
alexfreidah has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
<DouweM> nope
<yoshie902a> seems like it
mklappstuhl has joined #ruby
<yoshie902a> except for you and myself
dEPy has joined #ruby
<DouweM> But anyway, if you have a hash that you want to access using both strings or symbols, check out ActiveSupport's HashWithIndifferentAccess
mansi has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
<DouweM> I also like HashWithAmbiguousAccess: https://gist.github.com/cheesecow/1041540
<yoshie902a> DouweM: is there a quick change to my code, I am not using activeSupport
mklappstuhl has joined #ruby
<DouweM> yoshie902a: covert to_s/to_sym manually?
benzrf has joined #ruby
<benzrf> hello
<benzrf> legend is working as expectedB)
<DouweM> hi
blarghmatey_ has joined #ruby
dukz has joined #ruby
nwertman has joined #ruby
<benzrf> I wrote a test example thing in it and it actually works
<benzrf> woop
<yoshie902a> DouweM: I was hoping there was a flag for fetch or something
<DouweM> yoshie902a: why would there be? this is really not a concern of Hash
<DouweM> yoshie902a: strings aren't symbols and symbols aren't strings
RaCx has joined #ruby
<benzrf> yoshie902a: write an extension method
<benzrf> or something
ahmedelgabri has joined #ruby
alexfreidah has quit [Ping timeout: 252 seconds]
<benzrf> class Hash
cashnguns has quit [Quit: cashnguns]
<benzrf> def special_fetch(key)
kaldrenon has joined #ruby
<benzrf> etc
mklappst_ has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
<yoshie902a> DouweM: can you look at my import_to_array function. http://pastie.org/8615515 how would you advice changing the code to convert to symbols. I tried a few things, but I got errors
<DouweM> that's a gross monkeypatch
mansi has quit [Ping timeout: 265 seconds]
brennanMKE has joined #ruby
dEPy has quit [Client Quit]
<DouweM> yoshie902a: I'll have a look
toastynerd has joined #ruby
Elhu has joined #ruby
<DouweM> yoshie902a: why not just use attributes.fetch("report_date") etc?
<DouweM> yoshie902a: also, Security_master -> SecurityMaster
ando has joined #ruby
yasushi has joined #ruby
<yoshie902a> DouweM: because, most of the code actually uses symbols
<yoshie902a> the import is uniq because its importing from text
<yoshie902a> DouweM: good catch with SecurityMaster
<yoshie902a> thanks
<DouweM> then it's the import that should make symbols out of them, or that should pass a HashWithIndifferentAcces
<DouweM> s
ItSANg___ has quit [Quit: Leaving...]
<DouweM> after #transpose, you can map and call #to_sym on the first element
<alexherbo2> why "ArgumentError: wrong number of arguments (0 for 1..3) from (pry):21:in `initialize'" ?
mklappstuhl has joined #ruby
thomasxie1 has joined #ruby
dkamioka has quit [Remote host closed the connection]
thomasxie has quit [Write error: Connection reset by peer]
toastynerd has quit [Ping timeout: 252 seconds]
brennanMKE has quit [Ping timeout: 252 seconds]
nwertman has quit [Ping timeout: 252 seconds]
<yoshie902a> DouweM: that's what I was trying to do originally, but when I use data<<Hash[[header, spreadsheet.row(i)].transpose].to_sym, it does not work,
<DouweM> go over that line step by step. at what point could you use #map and #to_sym to get the desired result
mklappst_ has quit [Ping timeout: 264 seconds]
<DouweM> right now you're calling #to_sym on a Hash, which makes little sense
<yoshie902a> Should I replace the header line?
arietis has quit [Quit: Computer has gone to sleep.]
dkamioka_ has joined #ruby
<yoshie902a> I tried this too, but got errors header = header.map(|key| key.to_sym)
coderhs has joined #ruby
<DouweM> that looks better!
<DouweM> but that's not block syntax, use {} rather than ()
dEPy has joined #ruby
<yoshie902a> DouweM: yay, thanks!
<yoshie902a> your help was much apprecaited
<yoshie902a> ok, got to get to work.
yoshie902a has left #ruby [#ruby]
mechanicles has joined #ruby
shedd has joined #ruby
ItSANgo has joined #ruby
Megtastique has joined #ruby
dkamioka_ has quit [Ping timeout: 265 seconds]
dEPy has quit [Quit: Computer has gone to sleep.]
dEPy has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kacperix has joined #ruby
charliesome has joined #ruby
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dgheath21 has joined #ruby
shedd has quit [Ping timeout: 265 seconds]
toastynerd has joined #ruby
maoko has joined #ruby
himsin has quit [Quit: himsin]
spyderman4g63 has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
LekeFly has joined #ruby
ando has quit [Remote host closed the connection]
dEPy has quit [Quit: Computer has gone to sleep.]
jamesaanderson has joined #ruby
toastynerd has quit [Ping timeout: 272 seconds]
ando has joined #ruby
ando has quit [Remote host closed the connection]
mansi has joined #ruby
pehlert has joined #ruby
ando has joined #ruby
ando has quit [Remote host closed the connection]
ando has joined #ruby
ando has quit [Remote host closed the connection]
ando has joined #ruby
ando has quit [Remote host closed the connection]
dogonthesun has quit [Ping timeout: 260 seconds]
ahmedelgabri has quit [Ping timeout: 272 seconds]
cyberarm has joined #ruby
RaCx has joined #ruby
Neomex has joined #ruby
ewnd9 has joined #ruby
joaoh82 has quit []
IceyEC has joined #ruby
ando has joined #ruby
pehlert has quit [Ping timeout: 252 seconds]
ce_afk is now known as cescalante
RedNifre has joined #ruby
drumusician has joined #ruby
<RedNifre> Hey there!
h_kon has quit [Remote host closed the connection]
Bira has quit [Remote host closed the connection]
jerius has joined #ruby
Thanatermesis has joined #ruby
<apeiros> Erfinder…
<RedNifre> I'm new to ruby. I had this method that yielded a block, but now I refactored it by moving the yielding part to a separate method. How do I pass the block from the first to the second method so that it can yield it?
<RedNifre> :)
arietis has joined #ruby
<benzrf> RedNifre: &
keen_ has joined #ruby
<benzrf> RedNifre: def foo(arg1, arg2, &block)
nateberkopec has joined #ruby
<canton7-mac> def my_method(&blk) some_other_method(blk) end, then blk.call
<benzrf> block will now contain a proc object of the block passed
<benzrf> or nil if no block
<benzrf> RedNifre: when calling, pass the object as the block arg with foo.bar(1, 2, 3, &block)
<RedNifre> So I add it as a separate parameter and no longer use "yield"?
MindfulMonk has joined #ruby
<benzrf> yep
<RedNifre> how odd. Is there a reason why it is like that?
havenwood has joined #ruby
mansi has quit [Remote host closed the connection]
apeiros_ has quit [Remote host closed the connection]
<tobiasvl> RedNifre: do you know what yield actually does?
<RedNifre> My understanding is that it runs the block that was passed to the method.
zegerjan has joined #ruby
mansi has joined #ruby
browndawg has joined #ruby
<canton7-mac> it's just shorthand. def foo \n yield \n end and def foo(&blk) \n blk.call \n end are equivalent
wildroman2 has quit [Remote host closed the connection]
emocakes has quit [Quit: Leaving...]
Bira has joined #ruby
ambushsabre has joined #ruby
Xzanron has quit [Read error: Connection reset by peer]
emocakes has joined #ruby
emocakes has quit [Client Quit]
w4pm has joined #ruby
bettyclamp has joined #ruby
nateberkopec has quit [Ping timeout: 252 seconds]
Megtastique has quit []
krawchyk has joined #ruby
ahawkins has quit [Ping timeout: 265 seconds]
x__ has quit [Quit: Leaving]
ando has quit [Write error: Broken pipe]
ando has joined #ruby
mansi has quit [Ping timeout: 272 seconds]
ando has quit [Remote host closed the connection]
ando has joined #ruby
apeiros_ has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
eka has joined #ruby
w4pm has quit [Ping timeout: 252 seconds]
ahawkins has joined #ruby
ffranz has joined #ruby
ando has quit [Remote host closed the connection]
clamstar has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Thana` has joined #ruby
Thana` has quit [Changing host]
Thana` has joined #ruby
joonty has joined #ruby
Thanatermesis has quit [Write error: Broken pipe]
jaybe has quit [Excess Flood]
jaybe_ has joined #ruby
ando has joined #ruby
cbetta_afk is now known as cbetta
jaybe_ has left #ruby [#ruby]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
ando_ has joined #ruby
ando has quit [Write error: Broken pipe]
doodlehaus has joined #ruby
wildroman2 has joined #ruby
jamesaanderson has joined #ruby
lfox has joined #ruby
larissa has joined #ruby
kpshek has joined #ruby
guilund has quit []
tesuji has quit [Read error: Connection reset by peer]
<RedNifre> Ok, now I'm confused. If I call a method that takes a parameter and a block and passes the block, it doesn't work if I call it like "bla a {something}", but it works as "bla(a) {something}" and if that method yields directly it works as "bla a {something}". Why is that?
guilund has joined #ruby
mechanicalfish has joined #ruby
<apeiros> RedNifre: precedence
tesuji has joined #ruby
<apeiros> `blah x { foo }` is `blah(x { foo })`
Cephalostrum has quit [Quit: Aim higher. Try this: why am I here? Why do I exist, and what is my purpose in this universe? (Answers: 'Cause you are. 'Cause you do. 'Cause I got a shotgun, and you ain't got one.)]
<apeiros> i.e., the block is associated with x, not with blah
<RedNifre> Oh, that makes sense.
<apeiros> use do/end instead, then precedence changes
_maes_ has joined #ruby
DouweM has quit [Ping timeout: 260 seconds]
<apeiros> `blah x do foo end` is `blah(x) do foo end`
pwh has joined #ruby
dkamioka has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
peneconleche has joined #ruby
ando_ has quit [Remote host closed the connection]
doodlehaus has quit [Ping timeout: 272 seconds]
ando has joined #ruby
dEPy has joined #ruby
makkura_ is now known as makkura
cj3kim has joined #ruby
nwertman has joined #ruby
ahmedelgabri has joined #ruby
agjacome has quit [Ping timeout: 252 seconds]
ando has quit [Ping timeout: 252 seconds]
guilund has quit []
tijmencc has joined #ruby
dukz has quit [Remote host closed the connection]
<shevy> apeiros is back!
<shevy> with a fully repaired laptop
<benzrf> hello apeiros
momomomomo has joined #ruby
toastynerd has joined #ruby
<benzrf> i divided my project into tiny files as per your orders
dukz has joined #ruby
brennanMKE has joined #ruby
cj3kim has quit [Ping timeout: 264 seconds]
lukec has joined #ruby
enebo has joined #ruby
thomasxie1 has quit [Remote host closed the connection]
<apeiros> benzrf: great, at least one person who actually listens to my advice ;-)
tijmencc has quit [Client Quit]
<shevy> apeiros can you please also order benzrf to make a gem
<apeiros> shevy: since new years eve already
<apeiros> benzrf: you heard THE MAN :D
sergicles has quit [Quit: sergicles]
achru has quit [Remote host closed the connection]
<benzrf> i am MAKING a gem god dammit
nwertman has quit [Ping timeout: 265 seconds]
<benzrf> it is currently far from being in pre-gamma
toastynerd has quit [Ping timeout: 264 seconds]
<benzrf> are you insisting that i push it as is
<benzrf> @_@
<apeiros> no
brennanMKE has quit [Ping timeout: 252 seconds]
<apeiros> that's not necessary when developing a gem
apeiros_ has quit [Remote host closed the connection]
Landshark753 has joined #ruby
<benzrf> apeiros: i implemented some simple display logic
<benzrf> now it is possible to use the library a little bit B)
atraylen has joined #ruby
<benzrf> anybody care to take a glance @ drawable.rb and tell me why I should not be using class vars
jonathanwallace has joined #ruby
sambao21 has joined #ruby
burlyscudd has joined #ruby
gcds has quit [Quit: gcds]
drumsrgr8forn8 has joined #ruby
<havenwood> you shouldn't be using class variables because they are an anti-pattern that shouldn't have been in Ruby in the first place and hopefully will be gone in 3.0 :P
ehc has joined #ruby
<benzrf> nuuu
gcds has joined #ruby
<benzrf> then are you telling me to use ivars in the module object
<benzrf> that would require manually referring to it
codepython777 has quit [Quit: Leaving.]
<benzrf> i.e. Drawable.foo instead of @@foo
doodlehaus has joined #ruby
<havenwood> benzrf: i haven't actually looked at the use case. maybe they're useful and appropriate in your case? i tend to architect to avoid them, but do see them used from time to time.
<apeiros> benzrf: additionally to what havenwood said: because they don't work the way you think they work
<Kneferilis> hi, ruby has abstract classes and interfaces?
<benzrf> ah, but they do :)
<benzrf> Kneferilis: interfaces in ruby would be pointless
<apeiros> Kneferilis: no
<benzrf> Kneferilis: ruby has duck typing
<benzrf> Kneferilis: it has mixins/modules for similar use cases to abstract classes
<havenwood> if it grows and chases you, its not a duck
`petey` has joined #ruby
<apeiros> Kneferilis: I assume you try to solve a problem. don't solve it by applying other languages idioms. learn the idioms of a new language.
jonathanwallace has quit [Quit: ZNC - http://znc.in]
<apeiros> Kneferilis: best done by asking how to solve the problem instead of forcing a specific solution in your question.
<benzrf> Kneferilis: indeed!
<benzrf> Kneferilis: in ruby, assume the object you get has the methods you need
jlast has joined #ruby
<benzrf> Kneferilis: if it doesn't, that's the callers' problem
<benzrf> Kneferilis: you can use Object#respond_to? if you need to check whether something has a method
<benzrf> but you shouldn't have to use it unless your method takes multiple kinds of input and you need to figure out which one you got
shedd has joined #ruby
<benzrf> Kneferilis: mixins let you define a set of methods that can be added to any class easily
bettyclamp has left #ruby [#ruby]
workmad3 is now known as foucist
DouweM has joined #ruby
jlast_ has joined #ruby
<benzrf> Kneferilis: which is a little bit like abstract classes
metasyntax has joined #ruby
jlast_ has quit [Remote host closed the connection]
jlast has quit [Read error: Connection reset by peer]
foucist is now known as f0ucist
jlast has joined #ruby
<Kneferilis> but PHP has abstract classes and interfaces
f0ucist is now known as workmad3
Kricir has joined #ruby
jonathanwallace has joined #ruby
doodlehaus has quit [Ping timeout: 252 seconds]
doodlehaus has joined #ruby
kcombs has joined #ruby
JohnBat26 has quit [Read error: Operation timed out]
vlad_starkov has joined #ruby
sergicles has joined #ruby
shedd has quit [Ping timeout: 252 seconds]
decoponio has joined #ruby
Kricir has quit [Client Quit]
vlad_starkov has quit [Remote host closed the connection]
achru has joined #ruby
jonathanwallace has quit [Client Quit]
achru has quit [Remote host closed the connection]
cescalante is now known as ce_afk
intuxicated has quit [Read error: Connection reset by peer]
QKO has quit [Ping timeout: 252 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
nateberkopec has joined #ruby
emocakes has joined #ruby
vlad_starkov has joined #ruby
larissa has quit [Quit: Leaving]
QKO has joined #ruby
jonathanwallace has joined #ruby
doodlehaus has quit [Ping timeout: 272 seconds]
Jdubs has joined #ruby
Evixion` has joined #ruby
<olivier_bK> i have a problem with this command but i dont know how to resolv it
<olivier_bK> @get_uid_instance = command = "cat #{@paramfile[1]}#{@url_instance}.php |grep uid | cut -d = -f2 | sed "{s/\('\|;\)//g} "
Evixion` has quit [Client Quit]
<olivier_bK> i have a problem with " and '
<tobiasvl> you need to escape "
ando has joined #ruby
<tobiasvl> or hang on, is there a missing " at the end of that, to terminate the string command?
Evixion has quit [Ping timeout: 276 seconds]
jonathanwallace has quit [Client Quit]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RaCx has joined #ruby
Landshark753 has quit [Quit: Textual IRC Client: www.textualapp.com]
vlad_sta_ has joined #ruby
doodlehaus has joined #ruby
maoko has quit [Quit: Textual IRC Client: www.textualapp.com]
<IceyEC> yeah, try:
<IceyEC> @get_uid_instance = command = "cat #{@paramfile[1]}#{@url_instance}.php |grep uid | cut -d = -f2 | sed \"{s/\('\|;\)//g} \""
burlyscudd has quit [Quit: Leaving.]
<IceyEC> err
<IceyEC> that will leave the slashes
<IceyEC> no it won't
<IceyEC> it should be happy :-P
danshultz has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
wildroman2 has quit [Remote host closed the connection]
<olivier_bK> IceyEC, thanks men
mlpinit has joined #ruby
<olivier_bK> that's work :)
<IceyEC> olivier_bK: of course!
<olivier_bK> lol
<olivier_bK> i know how you are
<olivier_bK> it's you
mlpinit has quit [Remote host closed the connection]
<olivier_bK> matz !!
<olivier_bK> :p
<IceyEC> heh
mlpinit has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
`petey` has quit [Remote host closed the connection]
`petey` has joined #ruby
Cephalostrum has joined #ruby
Cephalostrum has quit [Max SendQ exceeded]
croaky has joined #ruby
devdazed has joined #ruby
Cephalostrum has joined #ruby
maroloccio has joined #ruby
doodleha_ has joined #ruby
ctp_ has joined #ruby
zeeraw has joined #ruby
dukz_ has joined #ruby
baordog_ has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
lukec has quit [Quit: lukec]
danshultz has joined #ruby
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
VeinMelted has joined #ruby
doodlehaus has quit [Ping timeout: 264 seconds]
bennyboobooboo has joined #ruby
Soda has quit [Read error: Connection reset by peer]
`petey` has quit [Ping timeout: 265 seconds]
dukz has quit [Ping timeout: 252 seconds]
ctp has quit [Ping timeout: 246 seconds]
ctp_ has quit [Ping timeout: 264 seconds]
apeiros_ has joined #ruby
Bumptious has quit [Remote host closed the connection]
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sailias has joined #ruby
himsin has joined #ruby
himsin has quit [Client Quit]
kevind has joined #ruby
po10 has joined #ruby
doodleha_ has quit [Ping timeout: 265 seconds]
Macaveli has quit [Ping timeout: 260 seconds]
snath has quit [Ping timeout: 246 seconds]
Xzanron has joined #ruby
po10_ has joined #ruby
mrnugget has quit [Quit: mrnugget]
rippa has joined #ruby
_5kg has quit [K-Lined]
Sawbones has joined #ruby
Sawbones has quit [Remote host closed the connection]
noop has quit [Ping timeout: 272 seconds]
mengu has quit []
Sawbones has joined #ruby
kacperix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RaCx has quit [Quit: Computer has gone to sleep.]
rudisimo has joined #ruby
Hanmac1 has joined #ruby
po10 has quit [Ping timeout: 260 seconds]
zegerjan has quit [Quit: WeeChat 0.4.2]
Sawbones has quit [Client Quit]
tagrudev has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 264 seconds]
doodlehaus has joined #ruby
danshult_ has joined #ruby
Kneferilis has quit [Read error: Connection reset by peer]
atraylen has quit [Quit: Nettalk6 - www.ntalk.de]
dEPy has quit [Quit: Computer has gone to sleep.]
mary5030 has joined #ruby
[_aeris_] is now known as _aeris_
`petey` has joined #ruby
danshult_ has quit [Remote host closed the connection]
danshult_ has joined #ruby
Hamburglr has joined #ruby
FifthWork has joined #ruby
interactionjaxsn has joined #ruby
c-alpha has joined #ruby
tharindu has joined #ruby
doodlehaus has quit [Read error: Connection reset by peer]
Bira has quit [Remote host closed the connection]
kacperix has joined #ruby
mrnugget has joined #ruby
lfox has quit [Quit: ZZZzzz…]
dEPy has joined #ruby
danshultz has quit [Ping timeout: 297 seconds]
dogonthesun has joined #ruby
dEPy has quit [Client Quit]
<roolo> I am trying to setup subcontractor ( https://github.com/pitluga/subcontractor ), but i am still getting no such file error.
mary5030 has quit [Remote host closed the connection]
<roolo> Do you know about some dependencies not listed in gemspec, or alternative to subcontractor inself?
geggam has joined #ruby
nwertman has joined #ruby
<roolo> * iteself ;)
doodlehaus has joined #ruby
failshell has joined #ruby
Xzanron has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
yasushi has quit [Remote host closed the connection]
Hamburglr has quit [Client Quit]
danshult_ has quit [Ping timeout: 260 seconds]
cameronbarton has joined #ruby
<roolo> * itself :O
ms_steampunk has quit []
sassamo_ has quit [Ping timeout: 260 seconds]
Bira has joined #ruby
IceDragon has joined #ruby
toastynerd has joined #ruby
phansch has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sassamo has joined #ruby
brennanMKE has joined #ruby
RaCx has joined #ruby
ando has quit [Ping timeout: 252 seconds]
Spami has joined #ruby
ikawnoclast has joined #ruby
Vivekananda has joined #ruby
joaoh82 has joined #ruby
toastynerd has quit [Ping timeout: 264 seconds]
ahawkins has quit [Quit: leaving]
dEPy has joined #ruby
bean has joined #ruby
brennanMKE has quit [Ping timeout: 260 seconds]
jerius has quit [Ping timeout: 260 seconds]
ozgun has quit [Quit: Leaving]
visof has joined #ruby
<visof> hi
<benzrf> hello visof
<benzrf> why do you join us today
mechanicles has quit [Quit: Computer has gone to sleep.]
psyl0n has quit [Remote host closed the connection]
drumusician has quit [Read error: Operation timed out]
teddyp1cker has joined #ruby
tesuji has quit [Quit: /quit (recursive exit)]
dogonthesun has quit [Read error: Connection reset by peer]
zxd has quit [Ping timeout: 272 seconds]
Deejay_ has joined #ruby
Norrin has quit [Ping timeout: 246 seconds]
zeeraw has quit [Write error: Broken pipe]
dogonthesun has joined #ruby
_maes_ has joined #ruby
Wixy has quit [Ping timeout: 252 seconds]
gilcosson has joined #ruby
ambushsabre has quit [Quit: rip]
Mattx has quit [Ping timeout: 265 seconds]
<visof> is this code right http://pastie.org/8617550?
<IceyEC> visof: right for what?
visof has quit [Quit: leaving]
joaoh82_ has joined #ruby
c-alpha has left #ruby ["Leaving"]
_maes_ has quit [Client Quit]
bennyboobooboo has quit [Remote host closed the connection]
mary5030 has joined #ruby
po10_ is now known as po10
shedd has joined #ruby
_maes_ has joined #ruby
mary5030 has quit [Remote host closed the connection]
Hanmac has joined #ruby
heftig has joined #ruby
bennyboobooboo has joined #ruby
zxd has joined #ruby
mary5030 has joined #ruby
IceDragon has quit [Ping timeout: 265 seconds]
<havenwood> i think better to `threads.map(&:join)` but (s)he left i guess
croaky has quit [Ping timeout: 272 seconds]
apeiros has quit [Remote host closed the connection]
wildroman2 has joined #ruby
mary5030 has quit [Remote host closed the connection]
IceDragon has joined #ruby
<IceyEC> I bet you're right but what would be the practical difference?
apeiros has joined #ruby
zeeraw has joined #ruby
<pontiki> the return value
yasushi has joined #ruby
mary5030 has joined #ruby
vlad_sta_ has quit [Write error: Broken pipe]
vlad_starkov has joined #ruby
jedimind has joined #ruby
Hanmac1 has quit [Ping timeout: 265 seconds]
peneconleche has quit [Ping timeout: 272 seconds]
joaoh82 has quit [Ping timeout: 264 seconds]
<havenwood> yeah, just a return value that reflects the post #join thread
mechanicles has joined #ruby
marienz has quit [Ping timeout: 600 seconds]
<havenwood> threads*
<IceyEC> gotcha
yellow5 has quit [Ping timeout: 248 seconds]
tkuchiki has quit [Remote host closed the connection]
<havenwood> could end up being handy for debugging or whatever, even if you're not directly using it
tkuchiki has joined #ruby
<DouweM> but Thread#join returns self, so the result would just be the same as threads :/
shedd has quit [Ping timeout: 252 seconds]
bennyboobooboo has quit [Ping timeout: 251 seconds]
phinfonet has joined #ruby
bennyboobooboo has joined #ruby
apeiros_ has quit [Remote host closed the connection]
e62 has joined #ruby
<havenwood> DouweM: you're in an #each though
<DouweM> what do you mean?
gcds has quit [Quit: gcds]
momomomomo has quit [Quit: momomomomo]
gcds has joined #ruby
apeiros has quit [Ping timeout: 252 seconds]
yasushi has quit [Ping timeout: 272 seconds]
<havenwood> DouweM: i dunno, i need coffee to think
mechanicles has quit [Read error: Connection reset by peer]
mechanicles has joined #ruby
geekbri has joined #ruby
mansi has joined #ruby
dogonthesun_ has joined #ruby
tkuchiki has quit [Ping timeout: 252 seconds]
geekbri has quit [Remote host closed the connection]
Mattx has joined #ruby
Mattx has quit [Changing host]
Mattx has joined #ruby
Wixy has joined #ruby
senj has joined #ruby
senj has quit [Client Quit]
tylersmith has joined #ruby
senj has joined #ruby
dogonthesun has quit [Ping timeout: 265 seconds]
momomomomo has joined #ruby
mikecmpbll has joined #ruby
prc has quit [Quit: Leaving.]
mechanicles has quit [Client Quit]
max96at has joined #ruby
<havenwood> seems i'm totally wrong on differing return value, oops!
`petey` has quit [Remote host closed the connection]
<havenwood> DouweM: good point! >.>
<DouweM> :D
freezey has joined #ruby
yellow5 has joined #ruby
`petey` has joined #ruby
axl_ has joined #ruby
threesome has quit [Ping timeout: 252 seconds]
lmickh has joined #ruby
dangerousdave has joined #ruby
razibog has joined #ruby
`petey`_ has joined #ruby
pagios has joined #ruby
cameronbarton has quit [Quit: cameronbarton]
einarj has quit [Remote host closed the connection]
`petey` has quit [Read error: Connection reset by peer]
<pagios> hello, i would like to track the duration time of a script since it started , the duration needs to be written every second on a file since the system can be shutdown at anytime can that be done using ruby
Albright has joined #ruby
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pontiki> what can't be done using ruby?
<pontiki> anyway
digital-ghost has joined #ruby
drumusician has joined #ruby
gasbakid has joined #ruby
wald0_ has joined #ruby
<wald0_> hi shevy ! did you had any problem installing libefl & libelementary the other day ?
gja has joined #ruby
ferr has joined #ruby
<`petey`_> I'm working on a config.rb file and I have to take windows and macs in account for directories
<`petey`_> how can I set a directory that covers both?
<`petey`_> I know that windows uses \ and macs use /
`petey`_ is now known as `petey`
<DouweM> Use Pathname#join
<`petey`> Sweet. thank you
shedd has joined #ruby
dogonthesun_ has quit [Ping timeout: 260 seconds]
_maes_ has quit [Ping timeout: 252 seconds]
burlyscudd has joined #ruby
jamesaanderson has joined #ruby
krz has joined #ruby
willb2 has quit [Ping timeout: 272 seconds]
figgleberry has joined #ruby
gasbakid has quit [Max SendQ exceeded]
CaptainJet has joined #ruby
axl_ has quit [Quit: axl_]
rajasaurus has joined #ruby
gasbakid has joined #ruby
Hanmac1 has joined #ruby
cads has joined #ruby
axl_ has joined #ruby
jhaals_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Hanmac has quit [Ping timeout: 260 seconds]
ambushsabre has joined #ruby
gasbakid has quit [Write error: Connection reset by peer]
billiam_ is now known as billiam
shime has joined #ruby
meatherly has joined #ruby
gasbakid has joined #ruby
babysnakes has joined #ruby
babysnakes has quit [Client Quit]
billiam has quit [Changing host]
billiam has joined #ruby
zipper has quit [Quit: Lost terminal]
sassamo has quit [Remote host closed the connection]
sassamo has joined #ruby
snath has joined #ruby
_aeris_ is now known as [_aeris_]
gasbakid has quit [Max SendQ exceeded]
meatherly has quit [Ping timeout: 264 seconds]
willb2 has joined #ruby
sassamo_ has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dweeb_ has quit [Quit: Computer has gone to sleep.]
yasushi has joined #ruby
gasbakid has joined #ruby
drumusician has quit [Read error: Operation timed out]
croaky has joined #ruby
Norrin has joined #ruby
<pagios> i have a bash script that can be called at anytime, once the script is called i need to track for how long that script got executed before it exits. Now my concern is that the system can be turned off at anytime while the script is executing + the system does not have a backedup battery so the time and date are irrelevant (set to jan 1 1978 all the time since no ntp available - no internet) how can i track the duration to the secon
<pagios> ds level?
sassamo has quit [Ping timeout: 264 seconds]
dachi_ is now known as dachi_afk
dkamioka has quit [Read error: Connection reset by peer]
nowthatsamatt has joined #ruby
jamesaanderson has joined #ruby
dkamioka has joined #ruby
subbyyy has joined #ruby
avril14th_ has joined #ruby
burlyscudd has quit [Quit: Leaving.]
avril14th_ has quit [Read error: Connection reset by peer]
Targen has quit [Ping timeout: 252 seconds]
avril14th_ has joined #ruby
kiba has quit [Read error: Operation timed out]
Cephalostrum has quit [Quit: Aim higher. Try this: why am I here? Why do I exist, and what is my purpose in this universe? (Answers: 'Cause you are. 'Cause you do. 'Cause I got a shotgun, and you ain't got one.)]
<IceDragon> pagios: You could run the script on one thread, and then have ruby keep a counter (thread { script }; thread { loop { sleep 1; counter+= 1 } })
cameronbarton has joined #ruby
<IceDragon> of course you break the counter thread when the script stops executing
axl_ has quit [Quit: axl_]
wildroman2 has quit [Remote host closed the connection]
<pagios> IceDragon: you mean have thread { loop { sleep 1; counter+= 1 ,,, writing duration to ile too } }) ?
<IceDragon> yup
lukec has joined #ruby
<pagios> what happens if system dies while writing to file?
<pagios> i am afraid file gets corrupt or sunno what
<pagios> i need that to be atomic
toastynerd has joined #ruby
<IceDragon> you could write multiple files
freezey has quit [Remote host closed the connection]
<IceDragon> and alternate between them
fijimunkii has joined #ruby
mansi_ has joined #ruby
emocakes has quit [Quit: Leaving...]
<pagios> i will then need to check for junks in a file
noname001 has quit [Ping timeout: 272 seconds]
mansi has quit [Read error: Connection reset by peer]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CaptainJet has quit []
<IceDragon> pagios, or you could use File.sync and append
brennanMKE has joined #ruby
<IceDragon> even if power goes out, at least the latter part of the file would still be intact
axl_ has joined #ruby
mercwithamouth has joined #ruby
mansi_ has quit [Read error: Connection reset by peer]
emocakes has joined #ruby
tannerburson has left #ruby [#ruby]
<Fuzai> journaling filesystems would help here
emocakes has quit [Client Quit]
Albright has quit [Read error: Connection reset by peer]
Cephalostrum has joined #ruby
mansi has joined #ruby
Albright has joined #ruby
awarner_ has quit [Read error: Connection reset by peer]
awarner has joined #ruby
croaky has quit [Ping timeout: 265 seconds]
<pagios> IceDragon: with file.sync i would write every second on a line for example?
danshultz has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
toastynerd has quit [Ping timeout: 264 seconds]
<IceDragon> file.sync ensures that the file is written to the disk with every change
gja has joined #ruby
jamesaanderson has joined #ruby
wildroman2 has joined #ruby
<Fuzai> why not use something like a database engine instead of flat files?
ambushsabre has quit [Quit: rip]
jamesaanderson has quit [Client Quit]
<makkura> pagios: Create log file on script start, store timestamp, close file. loop with a 1 second sleep/wait .. then just system("touch logfile.log") so you don't risk the file corrupting while editing
<makkura> assumes a linux file system there but should be something similar for other oses
<pagios> touch logfile.log is atomic?
marienz has joined #ruby
brennanMKE has quit [Ping timeout: 264 seconds]
jamesaanderson has joined #ruby
<makkura> it's editing the modified time on a file rather than the contents, pretty sure it's safer but i don't have a way to verify offhand :/
mansi has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
drumusician has joined #ruby
awarner has quit [Read error: Connection reset by peer]
jamesaanderson has quit [Client Quit]
<pagios> added layer of complexity is that system might go on the internet every now and then so ntp will update it....
awarner has joined #ruby
dachi_afk is now known as dachi_
Bira has quit []
mansi has joined #ruby
enape_101 has joined #ruby
freezey has joined #ruby
<makkura> pagios: well any timestamp or time feature you use is going to update automatically then. Consider you normally check how long something has been running by comparing timestamps
pen has joined #ruby
jamesaanderson has joined #ruby
danshultz has quit [Ping timeout: 252 seconds]
gja has quit [Client Quit]
<makkura> you could keep a counter and increment it.. or read from the file and add 1 each time.. but that leaves a lot of potential time with the file open for something so small
joaoh82_ has quit [Remote host closed the connection]
terrellt has quit [Ping timeout: 265 seconds]
yasushi has quit [Remote host closed the connection]
brennanMKE has joined #ruby
<pagios> so mainly if i create a file when system is Sat Jan 1 06:36:29 EET 2000 and then i update the system, the date of the file will be updated accordingly?
rajasaurus has quit [Ping timeout: 272 seconds]
simplyaubs has joined #ruby
siwica has joined #ruby
<makkura> be careful of your file system there.. as i recall created dates aren't stored, modified dates are
avril14th_ has quit [Read error: Connection reset by peer]
avril14th_ has joined #ruby
drumsrgr8forn8 has quit [Ping timeout: 260 seconds]
avril14th_ has quit [Read error: Connection reset by peer]
<makkura> thus you can use touch to set a modified date and use it as the 'the program last executed at' time..
senj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rajasaurus has joined #ruby
<makkura> if you store the timestamp in the file then you have the start time.. but if the clock is updated between putting the time stamp in the file and the final touch call.. the difference created by the updated time will be there
<makkura> since the timestamp inside the file is just text at that point.. it won't be updated to take in account any change
pehlert has joined #ruby
threesome has joined #ruby
<pagios> makkura: i mena consider this, system is date: 2000, script starts, i record the start date which is 2000, then i start doing "touch" to update every second the modification date, now while this is happening an ntp comes in and updates the system now my date is 2014, the duration is like 14 years
<makkura> that's how it would read, yes
jamesaanderson has quit [Ping timeout: 260 seconds]
<makkura> normally clock drift due to dysynced time is pretty low, though
<pagios> so that is a problem
<pagios> system can come up anytime on the internet and get updated by an ntp
<makkura> is the internet access constant so you can make a regular time update to minimize the impact or is it intermittent ?
<pagios> so i was thinking of working on duration instead of modification dates
VeinMelted has quit [Quit: Lingo - http://www.lingoirc.com]
<pagios> it happens randomly makkura
<makkura> so consider it intermittent then.. hmm
<IceyEC> so write a single bit to the file every time and then check the file size
IceDragon_ has joined #ruby
vlad_sta_ has joined #ruby
<IceyEC> lets you get away without having to read the file)
<benzrf> hows it goin makkura
<pagios> IceyEC: what happens if system dies while writing that bit
<pagios> coz it can be unplugged anytime too
<IceyEC> then your'e a second behind
<IceyEC> you're*
<makkura> benzrf: doing alright, got some progress on my RVM issue. Internal proxy / web filter junk was messing with it's file grabs.
<IceyEC> you should write it as an append
acrussell has joined #ruby
<pagios> IceyEC: maybe the file gets corrupted?
Cephalostrum has quit [Quit: Aim higher. Try this: why am I here? Why do I exist, and what is my purpose in this universe? (Answers: 'Cause you are. 'Cause you do. 'Cause I got a shotgun, and you ain't got one.)]
dkamioka has quit [Remote host closed the connection]
pel_daniel has joined #ruby
<pagios> if i append it is garanteed the file headers and content stay safe?
IceDragon has quit [Disconnected by services]
IceDragon_ is now known as IceDragon
senj has joined #ruby
Cephalostrum has joined #ruby
<makkura> well the content itself doesn't matter in that case.. just the file size itself
<pagios> yea but if headers are corrypt i wont be able to read the file size
ambushsabre has joined #ruby
lukec has quit [Quit: lukec]
zigomir has quit [Remote host closed the connection]
sassamo_ has quit [Remote host closed the connection]
SirCmpwn has quit [Max SendQ exceeded]
avril14th_ has joined #ruby
SirCmpwn has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
mityaz has joined #ruby
zigomir has joined #ruby
sassamo has joined #ruby
dukz_ has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 252 seconds]
asobrasil has joined #ruby
<IceyEC> File.open('some-file.txt', 'a') { |f| f.write(0) }
<IceyEC> should be /fairly/ safe
<makkura> why is the per second run time so critical? it seems to leave you open to a fraction of a second of potential corruption every second :|
lfox has joined #ruby
<pagios> so the big question is can a file have its headers corrupted when power is lost and at the same time appending to that file
<pagios> i am using ext4 as filesystem
<makkura> I'm not particularly familiar with the safety of files from file corruption for situations like these between file systems :|
aganov has quit [Quit: Leaving]
<IceyEC> I'm going with no
<IceyEC> i = 0
<IceyEC> while true
<IceyEC> i+= 1
<IceyEC> File.open('some-file.txt', 'a') { |f| f.write(0); raise Exception.new if i % 100 == 0 }
<IceyEC> end
<IceyEC> works just fine
<IceyEC> and the file is open for appending in that block
<IceyEC> comes out as a well formed file with all 0
WhereIsMySpoon has joined #ruby
dkamioka has joined #ruby
sassamo has quit [Ping timeout: 246 seconds]
RaCx has quit [Quit: Computer has gone to sleep.]
Neomex has quit [Quit: Neomex]
toastynerd has joined #ruby
<WhereIsMySpoon> o/
zigomir has quit [Ping timeout: 260 seconds]
<pagios> IceyEC: each 0 written is a byte
Spami has joined #ruby
<IceyEC> right, so you'd count bytes
<IceyEC> instead of bits
<makkura> If you're just looping and writing to a file and waiting a second before repeating.. you're slowly time drifting for the duration of the execution of the block .. some tiny amount each file write. How critical is this 1s accuracy? [this is one of the reasons we normally use timestamps]
<IceyEC> or replace the write(0) with a bit
<pagios> need to sleep 1 no?
MindfulMonk has quit [Ping timeout: 260 seconds]
clamstar has quit [Ping timeout: 252 seconds]
<pagios> makkura: it is fine if i loose up to 5 sec
<makkura> pagios: you'd need a sleep in IceyEC's example, yes
<pagios> lose*
<makkura> 5 seconds over the course of how long?
danshultz has joined #ruby
peneconleche has joined #ruby
<pagios> all in all, everytime the scripts starts and dies
mansi has quit [Read error: Connection reset by peer]
dagobah has quit [Remote host closed the connection]
ce_afk is now known as cescalante
mansi has joined #ruby
<pagios> in IceyEC i would lose at most 1 sec right
sassamo has joined #ruby
RaCx has joined #ruby
<IceyEC> except that there is the potential for drift while the loop is iterating
<pagios> drift?
<IceyEC> namely, your loop iteration is 1 second + time to append the file
<pagios> you mean maybe cpu threading and stuff?
terrellt has joined #ruby
<IceyEC> that too
<IceyEC> saying you want to track time without using time introduces a lot of other issues
<pagios> if system gets overloaded and pipelining and cpu stuff take place a second wont be a real second
<IceyEC> right
<IceyEC> and ruby's sleep doesn't give a hard guarantee of a second for that reason
Spami has quit [Client Quit]
<pagios> maybe running it with nice will do it
nhhagen has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
Cephalostrum has quit [Quit: Aim higher. Try this: why am I here? Why do I exist, and what is my purpose in this universe? (Answers: 'Cause you are. 'Cause you do. 'Cause I got a shotgun, and you ain't got one.)]
agjacome has joined #ruby
<pagios> i unfortunately cant use "time" since the system time can change anytime with the ntp
danshultz has joined #ruby
pehlert has quit [Ping timeout: 245 seconds]
fijimunkii has quit [Ping timeout: 252 seconds]
drumusician has quit [Ping timeout: 252 seconds]
zigomir has joined #ruby
zigomir has quit [Read error: Operation timed out]
Deejay_ has quit [Quit: Textual IRC Client: www.textualapp.com]
jlast_ has joined #ruby
<IceyEC> may want to look into https://github.com/bwbuchanan/absolute_time
burlyscudd has joined #ruby
clamstar_ has joined #ruby
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
<pagios> "Also, please note that because the timer is dependent on the time since the system was booted" IceyEC
<IceyEC> right, since the system was booted
<IceyEC> it uses an internal timer which you should be able to use
<makkura> that's not changed by ntp updates
<IceyEC> not the request for wall clock time
burlyscudd has quit [Client Quit]
<pagios> so there is mainly a timer in the OS that tracks the uptime
<pagios> it relies on that
<makkura> so as long as you're updating the file in some way regularly, as you're planning, you'll know when it stopped
codenapper has quit [Quit: codenapper]
clamstar_ is now known as clamstar
<IceyEC> well, you can get a literal amount of cpu cycles of uptime
<IceyEC> which it basically what that should be doing
danshultz has quit [Ping timeout: 272 seconds]
Fuzai is now known as Ponyo
VTLob has joined #ruby
Parker0 has joined #ruby
jlast has quit [Ping timeout: 260 seconds]
maletor has joined #ruby
<pagios> can you emphasis in highlevel how i would use that gem?
blaxter has quit [Quit: foo]
<pagios> end_time = AbsoluteTime.now would never be reached
burlyscudd has joined #ruby
soulcake has quit [Read error: Connection reset by peer]
<pagios> if system dies on value = function_that_takes_a_long_time()
soulcake has joined #ruby
<pagios> reading from the usage example in https://github.com/bwbuchanan/absolute_time
[_aeris_] is now known as _aeris_
roolo has quit [Remote host closed the connection]
<IceyEC> while(true)if AbsoluteTime.now%1.0 == 0
croaky has joined #ruby
<IceyEC> File.open('some-file.txt', 'a') { |f| f.write(0); raise Exception.new if i % 100 == 0 }
<IceyEC> end
<IceyEC> end
MrThePlague has joined #ruby
_aeris_ is now known as [_aeris_]
* IceyEC shudders
<IceyEC> that's some nasty looking code
dreinull_ has quit [Ping timeout: 252 seconds]
dEPy has quit [Quit: Computer has gone to sleep.]
<makkura> yeah but keeping to the second timing information over a long term isn't an elegant problem, either :/
dEPy has joined #ruby
<IceyEC> fair point
<pagios> makkura: maximum time of script is 6h
rubyracer has joined #ruby
<pagios> IceyEC: for what are you using this condition if AbsoluteTime.now%1.0 == 0
bean has joined #ruby
<IceyEC> AbsoluteTime.now should return a float, when it is evenly divisible by 0, it is a single second
<IceyEC> ex: 10.0 % 0 == 0
<IceyEC> but 10.1 % 0 != 0
sambao21 has quit [Quit: Computer has gone to sleep.]
peneconleche has quit [Quit: Leaving...]
jinie has quit [Quit: ZNC - http://znc.in]
<pagios> so if AbsoluteTime.now%1.0 == 0 means match every 1 sec
<IceyEC> actually, it should probably be
<IceyEC> AbsoluteTime.now.to_f % 1.0 == 0
<IceyEC> basically, yeah
<IceyEC> except that it may miss the second depending on how fast it runs
<IceyEC> which would be unfortunate
<IceyEC> how accurate do you need to be?
Virtualize has joined #ruby
<pagios> need accuracy to the second level
<IceyEC> so, you need to be able to say accurately, to the second, how long it ran?
<pagios> if script dies in the middle due to power problem i can afford losing 5 sec
<pagios> yes
Voodoofish430 has joined #ruby
<IceyEC> ok, give me a minute to think of it :-P
avril14th_ has quit [Read error: Connection reset by peer]
<pagios> thanks , been thinking about it for the last past days
jinie has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
canton7-mac has quit [Quit: Leaving]
Hanmac has joined #ruby
vlad_starkov has joined #ruby
<pagios> so script can die in the middle or can exit gracefully i need to handle both scenarios and report back the duration till the crash, or till the graceful exit
fedez77 has quit [Ping timeout: 272 seconds]
troyready has joined #ruby
WhereIsMySpoon has left #ruby [#ruby]
Bumptious has joined #ruby
Hanmac1 has quit [Ping timeout: 260 seconds]
<IceyEC> that will increment the first time that the loop iterates after the second that follows the previous write
zeade has joined #ruby
dukz has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<IceyEC> anyways, food time for me
kevind_ has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
Galgorth has joined #ruby
cbetta is now known as cbetta_afk
kevind has quit [Ping timeout: 260 seconds]
kevind_ is now known as kevind
mercwithamouth has quit [Ping timeout: 252 seconds]
vlad_sta_ has joined #ruby
ghr has quit [Quit: Computer has gone to sleep.]
diegoviola has joined #ruby
nhhagen has joined #ruby
camilasan has quit []
RaCx has quit [Quit: Computer has gone to sleep.]
psyl0n has joined #ruby
subbyyy has quit [Ping timeout: 256 seconds]
wildroman2 has quit [Remote host closed the connection]
dukz has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Read error: Operation timed out]
havenwood has quit [Ping timeout: 246 seconds]
Hanmac1 has joined #ruby
aspires has joined #ruby
ctp has joined #ruby
wallerdev has quit [Quit: wallerdev]
Hanmac has quit [Ping timeout: 260 seconds]
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<pagios> IceyEC: why are you using i+=1 ?
fedez77 has joined #ruby
OdNairy has joined #ruby
wildroman2 has joined #ruby
aryaching has joined #ruby
ahawkins has joined #ruby
cbetta_afk is now known as cbetta
allaire has joined #ruby
olivier_bK has quit [Read error: Operation timed out]
axl_ has quit [Ping timeout: 260 seconds]
heftig has quit [Quit: Quitting]
gja has quit [Quit: This computer has gone to sleep]
siwica has quit [Remote host closed the connection]
aryaching_ has quit [Ping timeout: 272 seconds]
MrZYX|off is now known as MrZYX
coderhut has joined #ruby
havenwood has joined #ruby
nwertman has quit [Ping timeout: 252 seconds]
phansch has quit [Quit: Leaving]
klaut has quit [Remote host closed the connection]
pehlert has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
poulson has quit [Remote host closed the connection]
axl_ has joined #ruby
ewnd9 has quit [Remote host closed the connection]
ewnd9 has joined #ruby
asterite has joined #ruby
asterite has left #ruby [#ruby]
krz has quit [Ping timeout: 252 seconds]
teddyp1cker has quit [Read error: Operation timed out]
Ponyo is now known as Fuzai
teddyp1cker has joined #ruby
cameronbarton has quit [Quit: cameronbarton]
krz has joined #ruby
nwertman has joined #ruby
coderhs has quit [Ping timeout: 252 seconds]
nvrch has quit [Quit: nvrch]
`petey` has quit [Remote host closed the connection]
`petey` has joined #ruby
saarinen has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
saarinen has quit [Client Quit]
zcreative has joined #ruby
<Hanmac1> IceyEC are you looking looking for FileUtils.touch ? or is there a reason why you add 0 to the files?
asobrasil has quit [Ping timeout: 272 seconds]
burlyscudd has quit [Ping timeout: 246 seconds]
IceDragon_ has joined #ruby
failshel_ has joined #ruby
krz has quit [Ping timeout: 264 seconds]
saarinen has joined #ruby
<IceyEC> back, I'm adding the 0 to the file to increase file size, does FileUtils.touch actually write to the file or just modify its last modified date? Hanmac1
<Hanmac1> only change the last modified date
<IceyEC> pagios: I'm using the += 1 there so that I could verify that it was working as expected, after running (and then breaking out of the loop with ctrl-c) you can verify that the iterations counter (i) is the same as the number of bytes in the file
`petey` has quit [Ping timeout: 264 seconds]
<Hanmac1> why are you adding 0 to the file in a loop?
<IceyEC> n bytes = n seconds
jedimind has quit [Quit: Textual IRC Client: www.textualapp.com]
<pagios> IceyEC: what happens if system breaks between line 8 and 9
saarinen has quit [Client Quit]
DrShoggoth has joined #ruby
freezey has quit [Remote host closed the connection]
<pagios> i would lose 1 sec
LekeFly has joined #ruby
<IceyEC> no, that would actually be the most accurate place for it to break
jedimind has joined #ruby
juarlex has joined #ruby
apeiros has joined #ruby
<pagios> \i am trying to think where would it be a problem for it to break
IceDragon has quit [Disconnected by services]
IceDragon_ is now known as IceDragon
failshel_ has quit [Read error: Operation timed out]
<IceyEC> before the loop starts?
failshell has quit [Ping timeout: 260 seconds]
<pagios> i dont really care then since the script would run in the loop
<IceyEC> even if you raise an exemption in the middle of the writing block, it still doesn't corrupt the file
saarinen has joined #ruby
<pagios> IceyEC: because it is an append?
<pagios> so i would lose 1 sec in worst case
bennyboobooboo has quit [Remote host closed the connection]
<IceyEC> sure, I tested it with throwing exceptions in that block
<IceyEC> and it should be fairly close
<IceyEC> and pretty good at eliminating drift
<Hanmac1> IceyEC: File.write('some-file.txt',0, mode: 'a')
moted has quit [Quit: moted]
vlad_starkov has joined #ruby
awarner has quit [Ping timeout: 252 seconds]
lukec has joined #ruby
awarner has joined #ruby
<IceyEC> pooh, even better: File.atomic_write
gja has joined #ruby
<IceyEC> damn nevermind
<IceyEC> it can't append apparently
failshell has joined #ruby
<pagios> what happens if the system drops when writing?
<pagios> it is not atomic i guess
moted has joined #ruby
<IceyEC> that's the reason for appends
LekeFly has quit [Ping timeout: 252 seconds]
<IceyEC> if it crashes mid writing, you're not manipulating anything except attempting to put something on the end of the file
ctp has quit [Quit: Leaving...]
<pagios> yea so i will lose 1 sec
<IceyEC> right, same thing as if the system crashes anywhere else in the loop
kpshek has quit []
<pagios> ok great so worst case is 1sec :)
Elhu has quit [Quit: Computer has gone to sleep.]
freezey has joined #ruby
RaCx has joined #ruby
<IceyEC> call it 1.01 seconds to cover the loop variation in the last iteration on that AbsoluteTime bit
baschtmobil has quit [Ping timeout: 260 seconds]
`petey` has joined #ruby
<pagios> but surely not 5 sec
<IceyEC> right
<IceyEC> assuming you call your other program form the line before while(true)
RaCx has quit [Client Quit]
RaCx has joined #ruby
jamesaanderson has joined #ruby
sepp2k has quit [Quit: Konversation terminated!]
browndawg has quit [Quit: Leaving.]
RaCx has quit [Client Quit]
joaoh82 has joined #ruby
coderhs has joined #ruby
mehlah has quit [Quit: Leaving...]
tvw has quit []
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
joaoh82 has quit [Client Quit]
wallerdev has joined #ruby
Albright has left #ruby [#ruby]
gcds has left #ruby [#ruby]
aurimasn has joined #ruby
asobrasil has joined #ruby
jamesaanderson has quit [Client Quit]
asobrasil has quit [Max SendQ exceeded]
bennyboobooboo has joined #ruby
Advocation has joined #ruby
<aurimasn> Hello everyone and thank you all for helping me to release my project to daylight!!!! http://bit.ly/1lY7An3
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
hamed_r has quit [Quit: Ex-Chat]
cameronbarton has joined #ruby
_honning_ has joined #ruby
sumark_ is now known as sumark
kpshek has joined #ruby
ewnd9 has quit [Remote host closed the connection]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
Cephalostrum has joined #ruby
ewnd9 has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
coderhs has quit [Ping timeout: 260 seconds]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
aurimasn has quit [Quit: aurimasn]
<benzrf> aurimasn: you're fucking welcome >:P
asobrasil has joined #ruby
jamesaanderson has joined #ruby
asobrasil has quit [Max SendQ exceeded]
<IceyEC> haha benzrf he's already gone!
aurimasn has joined #ruby
razibog has quit [Ping timeout: 260 seconds]
cascalheira has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
jovon has quit [Quit: Leaving]
Bumptious has quit [Remote host closed the connection]
aurimasn has quit [Client Quit]
dreinull has joined #ruby
<benzrf> IceyEC: i proofread that page
<benzrf> he sent me a poor-english version and i edited it to what it is atn
<benzrf> *atm
asobrasil has joined #ruby
aurimasn has joined #ruby
asobrasil has quit [Max SendQ exceeded]
<benzrf> wait
<benzrf> this looks different from what i wrote
<IceyEC> hahaha
<benzrf> oh wait
<benzrf> just minorly
<aurimasn> Hello everyone and thank you all for helping me to release my project to daylight!!!! http://bit.ly/1lY7An3
<benzrf> hello aurimasn
arietis has joined #ruby
<aurimasn> Hi
danshultz has joined #ruby
<benzrf> can i expect a 0.1% cut of your indiegogo
<benzrf> if not, expect a copyright lawsuit
<aurimasn> :D
Virtualize has quit [Read error: Connection reset by peer]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
jovon has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
heidi has joined #ruby
echevemaster_ has joined #ruby
Cephalostrum has quit [Remote host closed the connection]
asobrasil has joined #ruby
echevemaster has quit [Quit: Leaving]
Cephalostrum has joined #ruby
asobrasil has quit [Max SendQ exceeded]
echevemaster_ has quit [Remote host closed the connection]
echevemaster has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
danshultz has quit [Ping timeout: 272 seconds]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
nmabry has joined #ruby
mechanicalfish has left #ruby [#ruby]
cescalante is now known as ce_afk
ce_afk is now known as cescalante
ferdev has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
Exeia has joined #ruby
tt1187 has quit [Ping timeout: 260 seconds]
rootshift has quit [Quit: rootshift]
camilasan has joined #ruby
jamesaanderson has joined #ruby
postmodern has joined #ruby
[_aeris_] is now known as _aeris_
bennyboobooboo has quit [Remote host closed the connection]
coderhs has joined #ruby
bennyboobooboo has joined #ruby
aurimasn has quit [Read error: Connection reset by peer]
aurimasn has joined #ruby
sassamo has quit [Remote host closed the connection]
sassamo has joined #ruby
workmad3 has quit [Ping timeout: 272 seconds]
cescalante is now known as ce_afk
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<Morrolan> aurimasn: That bit.ly link looks sketchy as hell.
joaoh82 has joined #ruby
<aurimasn> Morrolan: why?
freezey has quit [Remote host closed the connection]
<Morrolan> Because you don't see where it leads to.
<DouweM> unnecessary use of shorteners is always sketchy
<Morrolan> Exactly.
peneconleche has joined #ruby
<aurimasn> Oh, ok thanks guys :)
bennyboobooboo has quit [Ping timeout: 264 seconds]
<Morrolan> :)
<aurimasn> Hello everyone and thank you all for helping me to release my project to daylight!!!! http://www.indiegogo.com/projects/dbeater/x/5730113
<DouweM> why the /x/etc ?
mklappstuhl has quit [Remote host closed the connection]
<aurimasn> Here is updated
<aurimasn> DouweM: dunno...
lethjakman has joined #ruby
sambao21 has joined #ruby
freezey has joined #ruby
<aurimasn> DouweM: maybe some kind of referall ?
<DouweM> possibly
<DouweM> Why XML?
<aurimasn> DouweM: widely used syntax :)
sassamo has quit [Ping timeout: 264 seconds]
<aurimasn> html, xml, and so on
cameronbarton has quit [Quit: cameronbarton]
axl_ has quit [Quit: axl_]
<DouweM> xml not for data but for actions looks very strange to me. <add_field> as tag makes little sense
<DouweM> from a data perspective anyway
<DouweM> this also looks like a thin layer around ActiveRecord's migrations
<DouweM> not that that's bad, I just don't really see the point
momomomomo has quit [Quit: momomomomo]
<aurimasn> DouweM: my idea was to make platform and technology which are independent of ruby, php, node and so on...
<DouweM> but it's still gonna be a ruby script?
awarner_ has joined #ruby
<aurimasn> DouweM: it's like LessCSS compiler which is javascript but is css
gja has quit [Quit: This computer has gone to sleep]
jlebrech has quit [Quit: Konversation terminated!]
mlpinit_ has joined #ruby
<aurimasn> DouweM: Yes, i choose ruby because of easier package manager
coderhut has quit [Ping timeout: 272 seconds]
awarner has quit [Ping timeout: 272 seconds]
jamesaanderson has quit [Quit: Textual IRC Client: www.textualapp.com]
<aurimasn> DouweM: I was thinking about Node but npm is bit a hell to work with :)
<DouweM> :)
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
mrnugget has quit [Quit: mrnugget]
<aurimasn> DouweM: In home I work a lot with ruby, in work i work with PHP mainly so I think PHP developers would be more clever with XML than Ruby syntax
<DouweM> But why not use AR? It already has migrations, DB adapters etc. The only thing you'd need to add is support for XML
dgheath21 has quit [Quit: dgheath21]
<DouweM> I'm sorry, but raising 50k for this is completely unrealistic
axl_ has joined #ruby
<aurimasn> DouweM: AR works bit different from my idea
<aurimasn> DouweM: I am quitting job for this
<havenwood> xml :O
failshell has quit []
<DouweM> migrations are a part of AR that can be used standalone with a little creativity
<aurimasn> DouweM: I know :)
<DouweM> havenwood: my first though as well
blarghmatey_ has quit [Remote host closed the connection]
interactionjaxsn has quit [Remote host closed the connection]
<aurimasn> havenwood: I run a research in my company and some forums and 75% was XML chosen...
mlpinit has quit [Ping timeout: 272 seconds]
<DouweM> people don't know what's good for them :P
<DouweM> But I don't think XML is the biggest problem with this
<havenwood> i like the looks of Ruby Object Mapper: http://rom-rb.org/
<DouweM> havenwood: that's pretty neat
gasbakid has quit [Read error: Connection reset by peer]
bricker`1way is now known as bricker
`petey` has quit [Remote host closed the connection]
<lethjakman> is there anything like coffeescript's (@name) -> for functions in ruby?
nanoyak has joined #ruby
rdark has quit [Quit: leaving]
<lethjakman> the @name automatically assigns name to a instance variable
`petey` has joined #ruby
<DouweM> not that I know of
dangerousdave has joined #ruby
<waxjar> you can use -> to create a lambda: ->(x,y) { "#{x}, #{y}" } ?
<havenwood> lethjakman: there have been some proposals on the mailing list
<DouweM> havenwood: link? I'm curious
<havenwood> stabby lambda, stab stab!
ferdev has quit [Quit: ferdev]
<DouweM> lethjakman is asking specifically about `(@name) ->` being a shortcut for `(name) -> @name = name` in CS, for which there is no equivalent that I know of in Ruby
coderhs has quit [Ping timeout: 252 seconds]
<DouweM> yeah, tha's the same thing. interesting
codenapper has joined #ruby
Xeago has quit [Remote host closed the connection]
w4pm has joined #ruby
<havenwood> or the more recent: https://bugs.ruby-lang.org/issues/8564
<benzrf> anybody care to look over my newest commit on legend
dweeb_ has joined #ruby
`petey` has quit [Ping timeout: 272 seconds]
<havenwood> attr_reader tea: 'earl grey', temperature: 'hot'
<DouweM> neat
<lethjakman> DouweM: ok one sec.
IceDragon has quit [Read error: Connection reset by peer]
<lethjakman> DouweM: this is a translation: https://gist.github.com/lethjakman/8339843
IceDragon has joined #ruby
<waxjar> i hope that doesn't come in, it looks ugly :p
<lethjakman> havenwood: think it'll make it in to the language?
<DouweM> lethjakman: I know what it does, and no, that's not currently in Ruby
<lethjakman> oh
<lethjakman> I thought you asked for a link
<DouweM> link to the proposal ;)
<lethjakman> are there any proposials for adding class sensative functions like in c++?
<lethjakman> because that's one thing I really want in ruby.
<DouweM> lethjakman: what's that?
_aeris_ is now known as [_aeris_]
<canton7> they were talking about it for 2.0, I think?
<havenwood> lethjakman: i think some syntactic sugar is probably coming, but not sure what it'll look like yet
kellsn has joined #ruby
kellsn is now known as kells
<lethjakman> that's what I'm wanting but I don't remember the exact termnology
<lethjakman> rather than having to write a case statement in the function
<DouweM> lethjakman: right. that would be useful, but I'm wary of checking types rather than duck typing
<lethjakman> DouweM: is that called duck typing?
<DouweM> nah
<DouweM> duck typing is the idea that you should ask something for its class to determine behavior, but you should look at what it can actually do. So no .is_a?(Proc) but .responds_to?(:call)
`petey` has joined #ruby
<DouweM> If it looks like a duck, swims like a duck, and quacks like a duck, then it probably is a duck.
<DouweM> If it looks like a duck, swims like a duck, and quacks like a duck, then it probably is a duck.
<DouweM> whoops
subbyyy has joined #ruby
Czupa has joined #ruby
dkamioka has quit [Remote host closed the connection]
tannerburson has joined #ruby
<Hanmac1> "Dragon! Now you are a duck!" "Okay *sadface*"
dkamioka has joined #ruby
<DouweM> *you should *not* ask something for its class
shime has quit [Ping timeout: 260 seconds]
<havenwood> DouweM: Or a cleverly disguised navy reconnaissance drone.
<DouweM> obviously :)
kells has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
baschtmobil has joined #ruby
arubin has joined #ruby
<txdv> I will have duck for dinner if it looks like a duck
dreinull has quit [Read error: Operation timed out]
* Hanmac1 ask for class but only in his binding ... because a wrong cast can be your last one
Brolen has joined #ruby
<wald0> what "include" does exactly?
<txdv> yoda you are in the wrong channel
dkamioka has quit [Ping timeout: 252 seconds]
<DouweM> wald0: what don't you understand exactly? have you read the docs?
arubin has left #ruby [#ruby]
<wald0> DouweM: im trying to see the difference between include, require, and load
<DouweM> include is a completely different beast from the others
<Hanmac1> wald0 require and load are similar, include is not
Hanmac1 is now known as Hanmac
<wald0> so what include does ? :)
<wald0> or how i read the doc for it ?
<Hanmac> its like comparing an apple a pear and a dog
<DouweM> haha
LekeFly has joined #ruby
<benzrf> wald0: include mixes a module into a class
vlad_sta_ has joined #ruby
mneorr has joined #ruby
<benzrf> wald0: you can define a set of methods in a module, then mix it into multiple classes
<benzrf> wald0: for example, the Enumerable module defines a crapload of methods like map, reverse, and stuff, that rely on the 'each' method
<benzrf> wald0: so you can define 'each' for your class, then mix in Enumerable
uuuu has joined #ruby
<benzrf> wald0: and just like that, you have bajillions of handy methods
LekeFly has quit [Read error: Operation timed out]
coderhs has joined #ruby
benzrf is now known as benzrf|readingpa
benzrf|readingpa is now known as benzrf|reading
<benzrf|reading> bbloom:
<benzrf|reading> *bbl
<wald0> hum... i think that i need to understand better what is a module vs class vs mixin
vlad_starkov has quit [Ping timeout: 245 seconds]
mlpinit_ has quit [Remote host closed the connection]
dkamioka has joined #ruby
<DouweM> another apple, pear, dog comparison :) module and class are related/similar, mixin is (in Ruby's case) the act of "copying" a module's methods into a class or module
<wald0> include is for add the contents (methods only?) of a module ?
<DouweM> pretty much
<wald0> mmh
* wald0 reading its own reference of ruby
mlpinit has joined #ruby
<apeiros> wald0: include adds the module to the ancestry of a class
<apeiros> (with a module it's a bit more involved)
sepp2k has joined #ruby
joaoh82 has quit [Remote host closed the connection]
zxd has quit [Ping timeout: 265 seconds]
<wald0> can i see some example of include somewhere in (which?) docs ?
Advocation has quit [Quit: Advocation]
simoz118 has joined #ruby
<DouweM> >> module Foo; def bar; puts "bar"; end; end; class X; include Foo; end; X.new.bar
tt1187 has joined #ruby
<DouweM> poor eval-in
tvw has joined #ruby
aurimasn has quit [Read error: Connection reset by peer]
nanoyak has quit [Quit: Computer has gone to sleep.]
<DouweM> the Ruby docs about include aren't very useful, but there's plenty of material on rest of the web
kirun has joined #ruby
freezey has quit [Remote host closed the connection]
<wald0> checking my reference docs I think that I understand it better
<wald0> fortunately i write those summary's after to read a book lol
aurimasn has joined #ruby
huttan- has joined #ruby
<wald0> specially this comment: # basically is a method defined outside of any class form, so when integrating a module inside an external class it will simply work on it
aurimasn has quit [Read error: Connection reset by peer]
freezey_ has joined #ruby
crazed_ is now known as crazed
nanoyak has joined #ruby
dfranciosi has quit [Remote host closed the connection]
Elhu has joined #ruby
kirun_ has joined #ruby
hiall has quit [Ping timeout: 252 seconds]
dreinull has joined #ruby
kirun_ has quit [Remote host closed the connection]
aurimasn has joined #ruby
fijimunkii has joined #ruby
Al__ has quit [Quit: Al__]
Mars has joined #ruby
Mars is now known as Guest60566
<wald0> well, this is my summary about what is a module http://piratepad.net/fey51EoPuD
klaut has joined #ruby
Xeago has joined #ruby
<wald0> if there's anything wrong on it, please directly change it on this multieditor doc :)
Megtastique has joined #ruby
ewnd9 has quit [Ping timeout: 245 seconds]
huttan- has quit [Ping timeout: 252 seconds]
<benzrf|reading> my current network doesnt like websockets
<benzrf|reading> do you have anything else
<wald0> basically, the definition/usage of what is "include" is what is writed in the lines 30,31,32 ?
bennyboobooboo has joined #ruby
<wald0> mmh, yeah let me paste it somehwere
<wald0> http://paste.debian.net/75280/ benzrf|reading
<benzrf|reading> lookin
<benzrf|reading> not exactly
<benzrf|reading> let me write an example
edwardly_ has joined #ruby
<benzrf|reading> p:
fusi0n has joined #ruby
<wald0> im not sure to understand correctly what i wrote in lines 15,16, i think that they are wrong :/
sambao21 has quit [Quit: Computer has gone to sleep.]
Xeago has quit [Ping timeout: 264 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
tannerburson has quit [Quit: tannerburson]
<benzrf|reading> 1 moment sorry
nari has quit [Ping timeout: 252 seconds]
burlyscudd has joined #ruby
endash has joined #ruby
Wolland has joined #ruby
danshultz has joined #ruby
mordocai has joined #ruby
danshultz has quit [Remote host closed the connection]
tannerburson has joined #ruby
<mordocai> Can anyone help me with this error message while running rspecs? I saw a lot of references to similar errors on google, but no explanation of why this is happening nor how to fix it. http://pastebin.com/ZAm6pxaZ'
danshultz has joined #ruby
<wald0> if i print "class" inside a Module it says the name of the module, so... is a module considered a class?
<benzrf|reading> one sec sorry |:
edwardly has quit [Ping timeout: 264 seconds]
<benzrf|reading> wald0: Module is a superclass of Class
edwardly has joined #ruby
<DouweM> `module X; puts self.class; end;` will result in "Module" being printed
Guest60566 has quit [Remote host closed the connection]
<apeiros> wald0: um, no, SomeModule.class does not print the name of the module
<apeiros> it'll print Module, because modules are instances of the class `Module`
<benzrf|reading> wald0: here is an example http://bpaste.net/show/o2tKpkpOyB3v5Q55npz1/
<maroloccio> what is the "right (TM)" hashbang for ruby
<benzrf|reading> wald0: the Formattable module defines some methods for different kinds of output formatting
edwardly_ has quit [Ping timeout: 245 seconds]
<benzrf|reading> wald0: then you can mix it into any class that can provide messages to give it extra functionality
<DouweM> benzrf|reading: that's similar to Enumerable, which isn't the only use for modules/include, but it is a good example.
<benzrf|reading> ;p
sassamo has joined #ruby
<DouweM> maroloccio: I use `#!/usr/bin/env ruby`
<sec^nd> What is the best way to print a backtrace?
<maroloccio> DouweM: i dig that.
<benzrf|reading> maroloccio: timtowtdi >:{
<maroloccio> benzrf|reading: ?!
<benzrf|reading> sec^nd: i feel like ive seen you seen you before somewhere besides #ruby ?
<sec^nd> I basically want to print an error and have it continue on
alexfreidah has joined #ruby
<benzrf|reading> maroloccio: There Is More Than One Way To DoIt
<benzrf|reading> maroloccio: one of perl's mottos
<benzrf|reading> maroloccio: inherited by ruby
<benzrf|reading> =_=
<maroloccio> benzrf|reading: oh, you are right. i should have known! perl!
<sec^nd> benzrf|reading: I'm all over the place
<maroloccio> benzrf|reading: you are totally right. what do you use?
barriniphone has joined #ruby
edwardly has quit [Max SendQ exceeded]
ce_afk is now known as cescalante
<benzrf|reading> just /usr/bin/ruby
danshultz has quit [Ping timeout: 265 seconds]
bluOxigen has joined #ruby
<benzrf|reading> but env might be more right
rezzack has joined #ruby
cj3kim has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
Bumptious has joined #ruby
<maroloccio> yeah i dig that env thingy there
edwardly has joined #ruby
<DouweM> env is better when the exact location of the interpreter is unknown
dEPy has quit [Quit: Computer has gone to sleep.]
danshultz has joined #ruby
<DouweM> portability ftw
<sec^nd> benzrf|reading: do you know the answer to my question?
<maroloccio> DouweM: yes, nice touch, i agree.
bennyboobooboo has quit [Remote host closed the connection]
<benzrf|reading> sec^nd: nope
bennyboobooboo has joined #ruby
alexfreidah has quit [Ping timeout: 246 seconds]
barriniphone has quit [Client Quit]
sassamo_ has joined #ruby
lfox has quit [Quit: ZZZzzz…]
vlad_sta_ has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
sassamo has quit [Read error: No route to host]
kacperix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
danshultz has joined #ruby
cj3kim has quit [Ping timeout: 253 seconds]
hiall has joined #ruby
_honning_ has quit [Quit: Leaving]
shime has joined #ruby
JPascal has joined #ruby
dkamioka has quit [Remote host closed the connection]
momomomomo has joined #ruby
dkamioka has joined #ruby
bennyboobooboo has quit [Ping timeout: 245 seconds]
interactionjaxsn has joined #ruby
dangerousdave has joined #ruby
joaoh82 has joined #ruby
araujo has quit [Ping timeout: 245 seconds]
decoponio has quit [Quit: Leaving...]
<wald0> take your time benzrf|reading what is .sample ? i dont see doc for that (where i should search docs?)
cescalante is now known as ce_afk
wildroman2 has quit [Remote host closed the connection]
<DouweM> Google "ruby array sample"
camilasan has quit [Ping timeout: 252 seconds]
<benzrf|reading> wald0: it picks a random element
danshultz has quit [Ping timeout: 272 seconds]
<wald0> DouweM: anything without internet (im going to be out of connection for 2 weeks soon), in pry i did "? sample" but dont found anything
dkamioka has quit [Ping timeout: 246 seconds]
joaoh82 has quit [Ping timeout: 260 seconds]
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
<benzrf|reading> yeah, it doesnt seem to work on built-in methods
colonolGron has joined #ruby
Jdubs has quit [Remote host closed the connection]
gja has quit [Quit: This computer has gone to sleep]
<apeiros> wald0: gem install pry-doc
<apeiros> then you have docs and sources for core methods too
<miah> you can also just rdoc from the cli
<miah> or use Dash
<miah> or go to a web rdoc
zcreative has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
bennyboobooboo has joined #ruby
w4pm has quit [Ping timeout: 272 seconds]
<benzrf|reading> miah: how i do rdoc from the cli?
uuuu has left #ruby ["WeeChat 0.3.8"]
tharindu has quit [Quit: Leaving...]
wildroman2 has joined #ruby
pel_daniel has quit [Ping timeout: 245 seconds]
wildroman2 has quit [Remote host closed the connection]
BaroMeter has joined #ruby
mtraptor4_ has quit [Quit: Connection closed for inactivity]
<Hanmac> benzrf|reading & miah i think he mean "ri" and not "rdoc"
wildroman2 has joined #ruby
<miah> s/he/she
<benzrf|reading> ri does not seem to work on builtins for me
<benzrf|reading> ~_~
codenapper has quit [Quit: codenapper]
<benzrf|reading> >> Array#sample
<benzrf|reading> Nothing known about Array#sample
<benzrf|reading> ^ri
<Hanmac> works for me ;P
<miah> also wfm
zellio has joined #ruby
zellio has left #ruby [#ruby]
<Hanmac> benzrf|reading: i think you use rvm right? rvm does not build the doc as far as i know by default
<miah> it looks to me like you are trying to end that command into pry or something
<miah> and not just.. a command line from your shell
<miah> unless your PS1 is indeed set to >>
<apeiros> benzrf|reading: installed ruby via rvm?
<wald0> benzrf|reading: in your Formattable module, you have "message.upcase", if im not wrong "message" is a static name, is not this a problem? i mean, can it know the "parameter" dynamically ?
jnoob22 has quit [Remote host closed the connection]
mansi has quit [Read error: Connection reset by peer]
mrnugget has joined #ruby
dreinull has quit [Ping timeout: 245 seconds]
mansi has joined #ruby
figgleberry has quit [Ping timeout: 260 seconds]
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
soapscum has joined #ruby
<wald0> what means the # in Array#sample ? it should be not Array.sample instead ?
<apeiros> wald0: in documentation, # denotes instance methods
<apeiros> and :: denotes class methods
<apeiros> . is ambivalent
<soapscum> quick question... coming from a python background, i'm used to a statement like "import other_file.py as newName", and then i can do things like newName.method(), newName.property.... is there an equivalent in ruby?
figgleberry has joined #ruby
<apeiros> soapscum: only partially
<soapscum> i used require_relative
lmickh has quit [Ping timeout: 264 seconds]
<soapscum> thanks, apeiros
<miah> require 'foo'
<soapscum> right
Oog has joined #ruby
<miah> then you instantiate and assign
<apeiros> soapscum: there's require 'file' which will load a file relative to any of $LOAD_PATH's paths (+ gems)
<soapscum> but in ruby, everything is just loaded into the same namespace, right?
<miah> so if your class is 'class Foo'
Brolen has quit [Quit: Brolen]
<miah> you just 'derp = Foo.new'
<apeiros> soapscum: yes, toplevel
<soapscum> so if i have def say_hello in 'foo'
<Oog> why would gembundle install need root?!
<Oog> on osx
<soapscum> ah, i see
<soapscum> let me go play with that
wgosling has quit [Ping timeout: 252 seconds]
<apeiros> soapscum: toplevel defined methods used to be file local, not sure it's still that way
<soapscum> at least on my version it's still that way
benzrf|reading has quit [Read error: Connection reset by peer]
bricker`LA has quit [Ping timeout: 252 seconds]
<soapscum> thanks a bunch for the help
<apeiros> soapscum: if you want to define methods which work like e.g. `puts`, define them in the Kernel module and mark them as module_function
<soapscum> ah, nothing that complicated
<wald0> apeiros: # only for documentation but not real ruby code, right?
<apeiros> soapscum: e.g.: module Kernel; def say_hello; …; end; module_function :say_hello; end
<apeiros> wald0: yes, only for docs
Mars has joined #ruby
Mars is now known as Guest23627
<soapscum> sweet, got it working. really appreciate it, apeiros & miah
<apeiros> soapscum: above example is globally available as `say_hello` without receiver, additionally it can be called as `Kernel.say_hello`
teddyp1cker has quit []
<soapscum> apeiros: thanks for laying down some ruby truth on me =)
thumpba has quit [Remote host closed the connection]
<apeiros> yw
maletor has quit [Quit: Computer has gone to sleep.]
thumpba has joined #ruby
fijimunkii has quit [Ping timeout: 252 seconds]
momomomomo has quit [Quit: momomomomo]
Elhu has quit [Quit: Computer has gone to sleep.]
<miah> no problem
havenwood has quit [Remote host closed the connection]
Elhu has joined #ruby
mmitchel_ has joined #ruby
pushpak has joined #ruby
wgosling has joined #ruby
Brolen has joined #ruby
reset has joined #ruby
soapscum has quit [Quit: Page closed]
nhhagen__ has joined #ruby
nhhagen has quit [Ping timeout: 264 seconds]
thumpba has quit [Ping timeout: 252 seconds]
Oog has quit [Quit: Page closed]
ferr has quit [Ping timeout: 252 seconds]
maletor has joined #ruby
momomomomo has joined #ruby
platzhirsch1 has joined #ruby
<platzhirsch1> There is a Ruby Heroes Award every year
ahawkins has quit [Ping timeout: 252 seconds]
<platzhirsch1> http://rubyheroes.com/
gilcosson has quit [Remote host closed the connection]
dweeb_ has quit [Quit: Textual IRC Client: www.textualapp.com]
thumpba has joined #ruby
ahawkins has joined #ruby
aurimasn has quit [Quit: aurimasn]
<sweeper> the fact that they say 'ruby/rails dev community' makes them invalid :3
dik_dak has joined #ruby
lmickh has joined #ruby
Cephalostrum has quit [Ping timeout: 252 seconds]
heidi has quit [Quit: Leaving.]
dreinull has joined #ruby
mneorr has quit [Remote host closed the connection]
yfeldblum has joined #ruby
mneorr has joined #ruby
Cephalostrum has joined #ruby
aurimasn has joined #ruby
Cephalostrum has quit [Client Quit]
helpa has quit [Remote host closed the connection]
ahawkins has quit [Client Quit]
helpa has joined #ruby
havenwood has joined #ruby
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
Bumptious has quit [Remote host closed the connection]
Cephalostrum has joined #ruby
travisjeffery has quit [Ping timeout: 252 seconds]
edwardly has quit [Ping timeout: 264 seconds]
peneconleche is now known as peneconleche|awa
Cephalostrum has quit [Max SendQ exceeded]
Cephalostrum has joined #ruby
Cephalostrum has quit [Client Quit]
edwardly has joined #ruby
codenapper has joined #ruby
Cephalostrum has joined #ruby
dblessing has quit [Remote host closed the connection]
achru has joined #ruby
dblessing has joined #ruby
pranny1 has joined #ruby
pranny1 has quit [Read error: Connection reset by peer]
pranny has quit [Read error: Connection reset by peer]
pranny1 has joined #ruby
<wald0> i have a stupid question, why all the sites made with ruby looks much nicer (in design terms) than the ones made in crappy traditional languages ?
mneorr has quit [Ping timeout: 264 seconds]
dblessing_ has joined #ruby
<platzhirsch1> wald0: Depends on the kind of people using language X
<platzhirsch1> Ruby = Hipsters, often have a somewhat good taste for design
mmitchel_ has quit [Remote host closed the connection]
Elhu has quit [Quit: Computer has gone to sleep.]
shime has quit [Ping timeout: 246 seconds]
w4pm has joined #ruby
tt1187 has quit [Ping timeout: 265 seconds]
<cout> platzhirsch1: ironic, given their terrible tastes in clothing
<platzhirsch1> cout: naw, you are wrong :P
BizarreCake has quit [Quit: Leaving]
vlad_sta_ has joined #ruby
edwardly has quit [Ping timeout: 260 seconds]
<apeiros> cout: that's just… like… your opinion, you know? :-p
baroquebobcat has joined #ruby
tt1187 has joined #ruby
dblessing has quit [Ping timeout: 264 seconds]
dblessing_ is now known as dblessing
edwardly has joined #ruby
<wald0> Hipsters!
Guest23627 has quit [Ping timeout: 272 seconds]
gilcosson has joined #ruby
ahmedelgabri has quit []
* wald0 happy to not see anymore the "young fashion" of spain was 15 years ago
wildroman2 has quit [Remote host closed the connection]
ckinni has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
mansi has quit [Read error: Connection reset by peer]
kacperix has joined #ruby
mansi has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
dunckr has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
edwardly has quit [Ping timeout: 272 seconds]
<platzhirsch1> wald0: you are from Spain?
helpa has quit [Ping timeout: 260 seconds]
wildroman2 has joined #ruby
heftig has joined #ruby
edwardly has joined #ruby
mansi has quit [Read error: Connection reset by peer]
serp` has joined #ruby
mansi has joined #ruby
wgosling has quit [Ping timeout: 272 seconds]
Jetchisel has quit [Read error: Connection reset by peer]
Czupa has quit [Quit: Wychodzi]
arietis has quit [Quit: Computer has gone to sleep.]
razibog has joined #ruby
achru has quit []
sambao21 has joined #ruby
ce_afk is now known as cescalante
wgosling has joined #ruby
cescalante is now known as ce_afk
burlyscudd has quit [Quit: Leaving.]
mlpinit_ has joined #ruby
jerius has joined #ruby
simoz118 has quit [Ping timeout: 272 seconds]
Advocation has joined #ruby
Xeago has joined #ruby
mlpinit has quit [Read error: Operation timed out]
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jlast_ has quit [Remote host closed the connection]
jlast has joined #ruby
joaoh82 has joined #ruby
IceDragon_ has joined #ruby
IceDragon has quit [Disconnected by services]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
IceDragon_ is now known as IceDragon
dreinull has quit [Ping timeout: 246 seconds]
pranny1 has quit [Quit: Leaving.]
coderhs has quit [Quit: Leaving]
dangerousdave has joined #ruby
huttan- has joined #ruby
joaoh82 has quit [Ping timeout: 245 seconds]
zegerjan has joined #ruby
dagnachew has joined #ruby
dagnachew has quit [Client Quit]
jkamenik has quit [Quit: Leaving.]
Brolen has quit [Quit: Brolen]
IceyEC_ has joined #ruby
danshultz has joined #ruby
kaldreno_ has joined #ruby
Mars has joined #ruby
edwardly has quit [Ping timeout: 252 seconds]
Mars is now known as Guest54337
IceyEC has quit [Ping timeout: 252 seconds]
IceyEC_ is now known as IceyEC
dangerousdave has quit []
aspires has quit []
kaldrenon has quit [Ping timeout: 252 seconds]
dreinull has joined #ruby
Jdubs has joined #ruby
wildroman2 has quit [Remote host closed the connection]
Brolen has joined #ruby
aspires has joined #ruby
mneorr has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
pranny has joined #ruby
danshultz has quit [Ping timeout: 272 seconds]
arietis has joined #ruby
jlast_ has joined #ruby
<platzhirsch1> I feel like an idiot looking at all the cover letters I have written last year,.. the text is even worse :P
bigoldrock has joined #ruby
jonahR has joined #ruby
platzhirsch1 has left #ruby [#ruby]
stetho has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
platzhirsch1 has joined #ruby
mereghost is now known as mereghost_afk
heidi has joined #ruby
red_menace has joined #ruby
lmickh has quit [Ping timeout: 260 seconds]
allaire has quit []
acrussell has quit [Quit: Leaving.]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
aspires has quit [Client Quit]
jlast has quit [Ping timeout: 264 seconds]
ferr has joined #ruby
vlad_starkov has joined #ruby
nhhagen__ has quit [Remote host closed the connection]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
BlakeRG has joined #ruby
tannerburson has quit [Quit: tannerburson]
pranny has quit [Quit: Leaving.]
tannerburson has joined #ruby
nanoyak has joined #ruby
io_syl has joined #ruby
wereHams1er has quit [Changing host]
wereHams1er has joined #ruby
wereHams1er is now known as wereHamster
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
vlad_starkov has quit [Read error: Connection reset by peer]
Speed has joined #ruby
danshultz has joined #ruby
mansi has quit [Read error: Connection reset by peer]
Parker0 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonahR has quit [Quit: jonahR]
lmickh has joined #ruby
mansi has joined #ruby
mrnugget has quit [Quit: mrnugget]
Speed has left #ruby [#ruby]
fedez77 has quit [Ping timeout: 264 seconds]
<Wixy> what's wrong with {a: ->{ |v| v }} ?
<Wixy> how do you put a block/lambda inside a hash?
Dorf2 is now known as dorf
spyderma_ has joined #ruby
dorf is now known as Dorf
Dorf has quit [Changing host]
Dorf has joined #ruby
<platzhirsch1> Wixy: {a: lambda { |v| v } }
<Wixy> this works {:a => ->{ |v| v }}
<waxjar> Wixy: stabby lambdas take their arguments like this: ->(arg) { arg }
<Wixy> oh, my fault
<Wixy> you're right :P
<platzhirsch1> I always get this wrong
<waxjar> i think the parenthesis are even optional
<Wixy> actually lambda {|v| v} works
<Wixy> but I guess it's a different thing
<Wixy> it's a lambda executing a block
<DouweM> "just" a different syntax
<mereghost_afk> It's the same thing.
<DouweM> you'll end up with the same thing
swistak35 has quit [Read error: Connection reset by peer]
<Wixy> so why ->{|v|} is not acceptable?
<DouweM> but yeah, the one is written in the Ruby syntax, the other is just the lambda method plus a block
<waxjar> -> will work even if #lambda is overwritten, tho :D
<DouweM> Wixy: that's just not stabby lambda syntax
<Wixy> ah, ok, I was right then
krawchyk has quit []
peneconleche|awa has quit [Ping timeout: 245 seconds]
Brolen has quit [Quit: Brolen]
ldiamond has joined #ruby
spyderman4g63 has quit [Ping timeout: 264 seconds]
<Wixy> anyway, I don't know the internals
kacperix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nmabry has quit [Read error: Connection reset by peer]
<ldiamond> How do I attach irb to a running process? (I.e. I want to run the application in one terminal and irb in another)
<ldiamond> It's a curses application so it's hard to debug via the same terminal
yalue has quit [Quit: Leaving]
Speed has joined #ruby
<MrZYX> check pry and pry-remote
Speed has left #ruby [#ruby]
aryaching has quit [Ping timeout: 265 seconds]
mojjojo has joined #ruby
troyready has quit [Read error: Operation timed out]
aryaching has joined #ruby
nmabry has joined #ruby
mr_red has quit [Ping timeout: 265 seconds]
kacperix has joined #ruby
danshultz has quit [Remote host closed the connection]
Exeia has quit [Quit: Lost terminal]
* LoRdToLsToI YouTube - Sting - Desert Rose original song
LoRdToLsToI has left #ruby [#ruby]
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
zcreative has joined #ruby
Jdubs has quit [Remote host closed the connection]
Guedes has quit [Disconnected by services]
Guedes_ has joined #ruby
mr_red has joined #ruby
kacperix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest54337 has quit [Ping timeout: 252 seconds]
BlakeRG has left #ruby [#ruby]
mehlah has joined #ruby
gilcosson has quit [Remote host closed the connection]
jerius has quit []
JPascal has quit [Read error: No route to host]
JPascal has joined #ruby
jfoy has joined #ruby
nwertman has quit [Ping timeout: 246 seconds]
bilbo_swaggins has joined #ruby
lfox has joined #ruby
benzrf has joined #ruby
<benzrf> hows it going ruby users
<platzhirsch1> Bad
platzhirsch1 is now known as platzhirsch
mlpinit_ has quit [Remote host closed the connection]
tannerburson has quit [Quit: tannerburson]
<bilbo_swaggins> doin good. just got an arch environment set up to dual boot and I'm going to play with that
pehlert has quit [Ping timeout: 265 seconds]
<bilbo_swaggins> I'll pay it forward and help out with Ruby where I can
tannerburson has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
<benzrf> platzhirsch: whats the problem?
<benzrf> bilbo_swaggins: why arch o_o
<bilbo_swaggins> what are some cool gems you guys like?
aurimasn has quit [Read error: Connection reset by peer]
<benzrf> bilbo_swaggins: lolcat =D
<bilbo_swaggins> benzrf: because Mint has become easy
<benzrf> but more seriously, sinatra is excellent
<platzhirsch> benzrf: solved one of these coding interview questions, which shouldn't take more than 1h to solve, but I think it took me 2,5 - 3
Nightmare has joined #ruby
<benzrf> bilbo_swaggins: you're seeking out difficulty.
Nightmare has quit [Changing host]
Nightmare has joined #ruby
<benzrf> platzhirsch: can i try them
timonv_ has quit [Remote host closed the connection]
<platzhirsch> benzrf: definitely, I pm it
aurimasn has joined #ruby
<bilbo_swaggins> I'm learning Rails finally so that I may earn money on a contract I'm working out with my music teacher
<benzrf> bilbo_swaggins: sinatra is great for ur web needs
<bilbo_swaggins> Sinatra looked nice too
<benzrf> bilbo_swaggins: gosu is nice for games
<benzrf> bilbo_swaggins: i like andand
<bilbo_swaggins> Arch is nice for its simplicity as well as being a neat toy
<benzrf> & lolcat is amusing
ldiamond has quit [Ping timeout: 272 seconds]
mlpinit has joined #ruby
<bilbo_swaggins> platzhirsch: it all depends on how much experience you have entering into it
<benzrf> it is like cat, but better
maletor has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
cj3kim has joined #ruby
grayWolf has joined #ruby
jlast_ has quit [Remote host closed the connection]
chrisramon has joined #ruby
<bilbo_swaggins> I'll check them all out, but it appears during backup and restoration of my Mint partition, I've borked RVM
<bilbo_swaggins> somewhatish
<bilbo_swaggins> oh god and the touchpad is reenabled. Synaptics is the worst
<benzrf> bilbo_swaggins: why do you want things to be hard for oyu
yfeldblum has quit [Remote host closed the connection]
clamstar has quit [Quit: Computer has gone to sleep.]
nhhagen has joined #ruby
<bilbo_swaggins> I have a good Mentor who just got an internship at Microsoft
gigetoo has quit [Remote host closed the connection]
<bilbo_swaggins> I'd like to get a better career as well
sepp2k has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
EngierkO has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
grayWolf has quit [Client Quit]
jlast has joined #ruby
troyready has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
huttan- has quit [Ping timeout: 260 seconds]
Jetchisel has joined #ruby
clamstar has joined #ruby
<bilbo_swaggins> tech support for scan software is not a great career
grayWolf has joined #ruby
mark_locklear has quit [Ping timeout: 272 seconds]
<benzrf> hah
red_menace has left #ruby ["peer reset by connection"]
nanoyak has joined #ruby
Wolland has quit [Remote host closed the connection]
allaire has joined #ruby
cj3kim_ has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
clamstar has quit [Client Quit]
nhhagen has quit []
danshultz has joined #ruby
yfeldblum has joined #ruby
gilcosson has joined #ruby
zegerjan has quit [Quit: WeeChat 0.4.2]
cj3kim_ has quit [Remote host closed the connection]
boboc has joined #ruby
mlpinit has quit [Remote host closed the connection]
fgo has joined #ruby
Mars has joined #ruby
mneorr has quit [Remote host closed the connection]
araujo has joined #ruby
Mars is now known as Guest83585
mneorr has joined #ruby
jovon has quit [Quit: Leaving]
IceDragon_ has joined #ruby
lkba has joined #ruby
brennanMKE has quit [Remote host closed the connection]
mlpinit has joined #ruby
brennanMKE has joined #ruby
IceDragon has quit [Disconnected by services]
cbetta is now known as cbetta_afk
bennyboobooboo has quit [Remote host closed the connection]
IceDragon_ is now known as IceDragon
CaptainJet has joined #ruby
CaptainJet has quit [Client Quit]
grayWolf has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
bennyboobooboo has joined #ruby
grayWolf has joined #ruby
CaptainJet has joined #ruby
DrShoggoth has quit [Quit: Leaving]
cbetta_afk is now known as cbetta
mneorr has quit [Ping timeout: 264 seconds]
Jdubs has joined #ruby
brennanMKE has quit [Ping timeout: 245 seconds]
dreinull has quit [Quit: leaving]
bluOxigen has quit [Ping timeout: 246 seconds]
<platzhirsch> bilbo_swaggins: Then hustle :D
zigomir has joined #ruby
kcombs has quit [Remote host closed the connection]
kellsn has joined #ruby
rajasaurus has quit [Ping timeout: 260 seconds]
Brolen has joined #ruby
bennyboobooboo has quit [Ping timeout: 272 seconds]
aspires has joined #ruby
ldiamond has joined #ruby
mercwithamouth has joined #ruby
<ldiamond> I need to debug a curses application. So I need to run the debugger from a different console than the one the program runs in.
<ldiamond> I'm trying pry and pry-remote, but for some reason I can't get it do do anything useful
croaky has quit [Ping timeout: 272 seconds]
grayWolf is now known as Speed
kellsn is now known as kells
<ldiamond> I basically added binding.remote_pry to the file I want to debug and I'm attaching using pry-remote
mneorr has joined #ruby
<mordocai> Question about variable scope. In this paste http://pastebin.com/M8bRiG0m. Why with line 2 commented out(like it is) I get an error due to x not existing (on line 6), but if that line is not commented out line 6 prints out 4? Also, if both line 2 and 6 are commented out the rest of the code works. So apparently a begin/end (and from other testing if/end and while) will create new variables in parent scope, but .times do (and .each and
<mordocai> ...) wont?
<mordocai> won't*
<bilbo_swaggins> platzhirsch: that's why I'm moonlighting as a Rails dev till I can get cooler programming jobs. Sind Sie Deutscher?
diegoviola has quit [Quit: WeeChat 0.4.2]
<platzhirsch> jup
<ldiamond> [1] pry(main)> break 1610
<ldiamond> SyntaxError: (eval):2: Can't escape from eval with break
joaoh82 has joined #ruby
Albright has joined #ruby
<MrZYX> ldiamond: you probably want to add pry-debugger (ruby 1.9.x) or pry-byebug (ruby 2.x) to the mix. I also find pry-stack_explorer handy for debugging
<bilbo_swaggins> Ich hab' Deutsch in amerikanische Hochschule studiert. Es hast viel zeit gewesen worden.
<apeiros> klingt amüsant
<apeiros> probably still better than my english :o)
Wolland has joined #ruby
<bilbo_swaggins> haha I have the grammar down pretty well, except as sentences get very complex, but meine Vokabeln ist klein
boboc has quit []
<ldiamond> MrZYX, I'll try that
<bilbo_swaggins> mordocai: if you define a variable outside of a block and then alter it within the block, the changes are permanent. However, if you define it first within the block, it's not accessible in the parent scope
<mordocai> bilbo_swaggins: That is not true in the case of begin/end, if/end, and while.
<mordocai> bilbo_swaggins: Try it yourself
<bilbo_swaggins> I'm referring only to blocks
snath has quit [Ping timeout: 264 seconds]
Megtastique has quit []
<mordocai> bilbo_swaggins: Is not begin/end a block then?
<ldiamond> MrZYX, that's what I was missing
<ldiamond> thankx
snath has joined #ruby
<MrZYX> yw
<bilbo_swaggins> begin marks the start of a exception test. I can't speak authoratively on the matter of scoping related to it, but it is different to be sure
vlad_starkov has joined #ruby
<mordocai> bilbo_swaggins: Well. How about if/end? And while do end? Both of those exhibit the same behavior.
pranny has joined #ruby
<bilbo_swaggins> blocks, procs and lambdas have nuanced and purposeful specific scoping cases
<bilbo_swaggins> this is a better explanation than I can manage: http://www.robertsosinski.com/2008/12/21/understanding-ruby-blocks-procs-and-lambdas/
tvw has quit [Read error: Operation timed out]
<mordocai> bilbo_swaggins: Read that, doesn't answer my question.
<bilbo_swaggins> blocks behave differently because they're supposed to
<ferr> what's your question mordocai
vlad_starkov has quit [Read error: Connection reset by peer]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
<mordocai> bilbo_swaggins: Very informative.
<bilbo_swaggins> look I answered your question as asked
<bilbo_swaggins> if you have more to ask, feel free
IceyEC has quit [Quit: IceyEC]
Speed has joined #ruby
kaldreno_ has quit [Remote host closed the connection]
<mordocai> bilbo_swaggins: You may THINK you answered my question, you did not. ferr: Why does scope with begin/end, if/end, and while do end not work like other blocks? As in, if I create a new variable inside one of the aforementioned blocks I can use it in the parent scope. However, in a (for example) 3.times do end that doesn't work.
dapz has joined #ruby
dapz has quit [Max SendQ exceeded]
<bilbo_swaggins> mordocai: read why's poignant guide
brennanMKE has joined #ruby
breakingthings has quit []
<bilbo_swaggins> if, begin, etc aren't blocks
rudisimo has quit [Quit: Leaving.]
<bilbo_swaggins> they're control structures
<benzrf> mordocai: if isnt a method taking a block
<benzrf> mordocai: it's its own thing
<mordocai> bilbo_swaggins: Now you have answered my question! benzrf: You too!
<ferr> block is {} or do end stuff
<bilbo_swaggins> you didn't ask that question
<mordocai> bilbo_swaggins: Yes, i did
jedimind has quit [Quit: Textual IRC Client: www.textualapp.com]
<mordocai> ferr: While do end does it
<mordocai> ferr: it counts as "do end stuff"
<bilbo_swaggins> do; end
<bilbo_swaggins> is the same as {}
<bilbo_swaggins> after a method
<mordocai> bilbo_swaggins: indeed
<bilbo_swaggins> read this
narcan has joined #ruby
<mordocai> bilbo_swaggins: I don't need basic ruby crap, i'm asking about the actual internals of why it works that way. I know very well how it works, I want to know why.
<bilbo_swaggins> the internals are the basic crap
<Jdubs> lololol
<mordocai> bilbo_swaggins: I've read why's poignant guide, it does not answer questions that in depth
croaky has joined #ruby
<bilbo_swaggins> as for why, the first link goes into use cases
<ferr> lol mordocai
<bilbo_swaggins> the first one I gave
<ferr> the answer for why is because it's made up that way
<txdv> mordocai: what functionality are you discussing?
<bilbo_swaggins> lambdas have different scope rules than blocks/procs
<bilbo_swaggins> it's because it's useful
<txdv> o i see
<Hanmac> bilbo_swaggins: do...end and {} are not 100% the same ... both have different preference ... (i think one of them was higher than other)
<benzrf> mordocai: blocks create a new scope because that behavior is most useful and intuitive to people with programming experience who know lambdas and such from other languages
<bilbo_swaggins> Hanmac: for the purposes of what he was asking, they are essentially
<benzrf> mordocai: if and while and so on do not create a new scope because it is useful for them not to
<bilbo_swaggins> Hanmac: but I'd like more info on that myself
<mordocai> I guess what i'm really asking what is the code incapsulated between if/end, begin/end, and while do/end? Since it doesn't act like a lambda, proc, or block.
<txdv> ruby blocks and genereal blocks are two different terms
<mordocai> As far as I can tell
agjacome has quit [Quit: leaving]
Xeago has quit [Ping timeout: 272 seconds]
mlpinit has quit [Remote host closed the connection]
<benzrf> mordocai: the code in if/end, begin/end, and while/end is a syntactic block
<benzrf> mordocai: a different kind of block from what you usually mean when you say a 'block'
<bilbo_swaggins> mordocai: some call it a block of code, though it's misleading. If is a control structure and the code within it is control logic
<mordocai> benzrf: Got it, and a syntactic block does NOT have scope in ruby. That makes more sense then. Some languages they do.
Al__ has joined #ruby
mlpinit has joined #ruby
<benzrf> by syntactic block i mean that the syntactical element is referred to as a block
<benzrf> that is, the bit between the if and the end is a 'block' of code
<bilbo_swaggins> it's not a matter of having or not having scope, but rather having scope with different reaches
<bilbo_swaggins> fair enough
<benzrf> i do not think there is a general term for all of those
brennanMKE has quit [Remote host closed the connection]
<benzrf> control structures I guess
huttan- has joined #ruby
<ferr> yes it is
<ferr> ^
<bilbo_swaggins> I feel iffy about calling the code between "if...end" a control structure, but it's the best I can think of as well
brennanMKE has joined #ruby
<bilbo_swaggins> I figured that referred to the if statement itself
<benzrf> the if..end as a whole is a control structure
<apeiros> no, the if/else/end itself is a control structure
troyready has quit [Ping timeout: 260 seconds]
<apeiros> the code within it is not
<bilbo_swaggins> alright
<bilbo_swaggins> ha
ctp has joined #ruby
<bilbo_swaggins> we're debating semantics
<mordocai> Right, the code within would normally be called a block... except we already defined block to mean something else :P
JPascal has quit [Ping timeout: 246 seconds]
<txdv> mordocai: we are talking about a language where the 'switch' keyword is 'case'
<bilbo_swaggins> yes it's ambiguous
phansch has joined #ruby
burlyscudd has joined #ruby
<bilbo_swaggins> however, the context you discuss it within usually resolves that ambiguity
<bilbo_swaggins> just be aware of it
bennyboobooboo has joined #ruby
dunckr has quit []
<bilbo_swaggins> even if we could come up with a more specific word, you ought to watch out for people using 'block' to mean both things
<mordocai> Right
blandflakes has quit [Ping timeout: 272 seconds]
kells has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marr has quit [Ping timeout: 260 seconds]
<bilbo_swaggins> what are you trying to do, anyway?
zigomir has quit [Ping timeout: 272 seconds]
aurimasn has quit [Read error: Connection reset by peer]
brennanMKE has quit [Ping timeout: 245 seconds]
Sawbones has joined #ruby
DrShoggoth has joined #ruby
<mordocai> It was an interesting question that came up at work. Not sure if it has much practical use.
kebabski has joined #ruby
mneorr has quit [Remote host closed the connection]
kewubenduben has quit [Ping timeout: 252 seconds]
aurimasn has joined #ruby
jprovazn has quit [Quit: Odcházím]
<txdv> ofc it has
Megtastique has joined #ruby
momomomomo has quit [Quit: momomomomo]
<bilbo_swaggins> A block as received by a method is internally handled as a Proc
mneorr has joined #ruby
<txdv> now you can go to work and play the enlightened rubyist to whom everything is obvious
<mordocai> Lol, right
klaut has quit [Remote host closed the connection]
<bilbo_swaggins> I've never had need for the distinction between lambdas and procs, but it must exist for a reason
<benzrf> oh man i LOVE pretending everything is obvious
<bilbo_swaggins> and I could see it as a good tool
<benzrf> bilbo_swaggins: preventing localjumperrors
<benzrf> maybe
<txdv> benzrf: you should be a teacher
<mordocai> bilbo_swaggins: It does, i've had the need once or twice. I always have to look it up
<benzrf> txdv: ive considered it
<txdv> stuff that you learned and are teaching to others is always obvious to you and not obvious to others
tvw has joined #ruby
<bilbo_swaggins> lol @ benzrf
<benzrf> but im not sure i want to get more than a BA or something
<benzrf> wait ba is the wrong term isnt it
<benzrf> w/e idk
<bilbo_swaggins> I'm going to make it without school, you bet your ass
zastern has quit [Quit: WeeChat 0.4.2]
bennyboobooboo has quit [Ping timeout: 264 seconds]
<bilbo_swaggins> and I'll work twice as hard as the average BA curriculum demands
<benzrf> well if i am offered an internship right out of hi school id probably take it
<benzrf> but i really doubt thatll happen
<benzrf> so off to college it is
momomomomo has joined #ruby
<txdv> college is a sad place
zastern has joined #ruby
<bilbo_swaggins> I found it disappointing
<ldiamond> pry / pry-remote keeps crashing when running curses commands.
<benzrf> txdv: orly
<bilbo_swaggins> if I were to go back, I'd study music instead
<txdv> thats what she said
<bilbo_swaggins> ohhh
Hanmac1 has joined #ruby
hiall has quit [Quit: hiall]
<ldiamond> anyone else had such problem?
<txdv> whats pry
kirun has quit [Quit: Client exiting]
fgo has quit [Remote host closed the connection]
<bilbo_swaggins> it's a more powerful irb alternative
spyderma_ has quit []
<bilbo_swaggins> I've been meaning to play with it
<bilbo_swaggins> can't say I know anything about it though
<txdv> is it supposed to run with NCURSES?
<bilbo_swaggins> supposed to or able to?
<txdv> writing bindings for ncurses was the most annoying thing I ever did
<txdv> defines everywhere
<txdv> and external variables
hiall has joined #ruby
mneorr has quit [Ping timeout: 264 seconds]
Hanmac has quit [Ping timeout: 245 seconds]
mojjojo has quit [Quit: mojjojo]
w4pm_ has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
<shevy> it's awful
ferr has quit [Ping timeout: 272 seconds]
Speed has joined #ruby
Wolland has quit [Remote host closed the connection]
w4pm has quit [Ping timeout: 260 seconds]
mengu has quit [Remote host closed the connection]
Wolland has joined #ruby
<mordocai> txdv: Pry is an alternative to irb btw
mojjojo has joined #ruby
<shevy> benzrf can't you do college and intern at the same time? with intern during holidays?
croaky has quit [Ping timeout: 264 seconds]
<bilbo_swaggins> my friend's doing that at Msoft
<bilbo_swaggins> that exact scenario
Advocation has quit [Quit: Advocation]
<shevy> bilbo_swaggins I am also not sure about the distinction between lambdas and procs. I think one allows you to have mandatory arguments, the other not
<shevy> but it seems an arbitrary distinction to me
prc has joined #ruby
<shevy> ewww
<shevy> Microsoft
<shevy> Excel macro writer!
<txdv> to me too
<bilbo_swaggins> I toured the campus
mneorr has joined #ruby
<bilbo_swaggins> oh god yeah I don't want to work on Office
<txdv> why lamda/proc?
<txdv> we need a blog article to inform us
Xeago has joined #ruby
<bilbo_swaggins> however, I'd rather work in research for a company than run a business
bennyboobooboo has joined #ruby
<txdv> What do you want to research?
<bilbo_swaggins> if I could get a more advanced role than "code monkey"
<txdv> aren't private businesses not just an accumulation of code monkeys which are for hire/
<mordocai> txdv: This does say
<bilbo_swaggins> for a while, I was into algebras
<bilbo_swaggins> I think I'd like to try AI
<shevy> bilbo_swaggins well research is never bad, you'll learn a lot of stuff that you can then apply onto business lateron if you still decide to go found a company or work more attached with one
<mordocai> A lambda can be treated like a value, a proc can't. Basically.
<bilbo_swaggins> mordocai: you can pass procs around.
<bilbo_swaggins> not sure what you mean
<shevy> bilbo_swaggins what kind of AI exactly?
<txdv> nice, thanks mordocai
joaoh82 has quit [Remote host closed the connection]
<bilbo_swaggins> shevy, txdv: honestly I just want to be paid to do what I already do
<shevy> there are many... some are into neuronal research
<mordocai> bilbo_swaggins: Maybe better way is to say a lambda doesn't have side effect? (I sound like a haskell programmer...)
<bilbo_swaggins> spend too much time on Wikipedia, etc
<bilbo_swaggins> mordocai: I think that was it
<txdv> O boy I would like that too
<bilbo_swaggins> they scope differently
<shevy> with -> you can also do lambdas
<bilbo_swaggins> I'll learn about neural nets, sure, and I've made a simple implementation
<shevy> this will make your code very ugly
<platzhirsch> A lambda in lambda calculus yes, a lambda in Ruby no ^^
<mordocai> Yeah, they scope differently and a return in a lambda doesn't end the calling function. Does in a proc
<mordocai> Here we go "The answer is in the conceptual differences between procedures and methods. Procs in Ruby are drop in code snippets, not methods. Because of this, the Proc return is the proc_return method’s return, and acts accordingly. Lambdas however act just like methods, as they check the number of arguments and do not override the calling methods return. For this reason, it is best to think of lambdas as another way to write methods,
<mordocai> an anonymous way at that"
<bilbo_swaggins> but I decided to start programming when a card game I was designing got more and more complex to the point of requiring some basic economy and machine learning >.>
<shevy> bilbo_swaggins well neural networks are rather boring, they always did sound like a poor man's substitute for real intelligence you could even see in a simple fly already
<bilbo_swaggins> they can't reason, only identify
<shevy> yeah
<txdv> so you were right with the 'less side effects'
<bilbo_swaggins> which is cool enough, but there's got to be more to explore
<shevy> they are like fancified pattern recognition... input, output, like in a factory, but no real intelligent, driven decision making process
<bilbo_swaggins> also they're complete black boxes past a certain size
troyready has joined #ruby
<bilbo_swaggins> true of everything I suppose, though
Andrevan has joined #ruby
<txdv> but flies are awesome
<txdv> i would like to have a controllable fly
<bilbo_swaggins> bees are the shit
<txdv> O yeah
<txdv> reminds me of the B prank
robbyoconnor has quit [Ping timeout: 252 seconds]
<bilbo_swaggins> if a bee keeps returning to the hive drunk on fermented fruit, he'll get a warning, which escalates eventually to having his legs bitten off by the guards
<txdv> the letter B can scare the shit out of people
<bilbo_swaggins> I grew up in a house with a pool, near an abandoned bee farm
<bilbo_swaggins> if you're calm, they're totally cool
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<bilbo_swaggins> if you freak out, they feel threatened and attack
<bilbo_swaggins> I've stood in small swarms of them
<bilbo_swaggins> wasps, however, are dicks
<shevy> bilbo_swaggins sounds like straight from a horror movie
doodlehaus has quit [Remote host closed the connection]
mr_red has quit [Quit: Bye :)]
<shevy> when I was like 5 years old, I had nightmares from movies like "arachnophobia" or something, where they spiders cast their web all around a house and trapped the humans inside
<txdv> bees are like 'o what is this, I want to explore'
<txdv> wasps are like 'o what is this, i want to sting this motherfucker'
Neomex has joined #ruby
<bilbo_swaggins> ^
klaut has joined #ruby
mr_red has joined #ruby
<bilbo_swaggins> I've let daddy longlegs crawl on me. I don't think it's good to fear harmless things.
figgleberry has quit [Ping timeout: 252 seconds]
ambushsabre has quit [Quit: rip]
<bilbo_swaggins> speaking of AI, bug behavior is fascinating when viewed through a computational lense
<txdv> controlling thousands of bees
<txdv> reminds me of enders game
<e62> bilbo_swaggins: I read that as "buggy behavior" and could not figure out what that meant.
rajasaurus has joined #ruby
max96at has quit [Write error: Broken pipe]
<shevy> I love those japanese bees (or more, hornets) - they are smaller than those in Mexico I suppose but rely on teamwork, killing invaders by thermal shock (covering the body of an invader in masses and thus causing heat increase to it)
baordog_ has quit [Remote host closed the connection]
<bilbo_swaggins> damn
<bilbo_swaggins> group hug!
momomomomo has quit [Quit: momomomomo]
bennyboobooboo has quit [Remote host closed the connection]
<shevy> ants are cool. it's like little objects communicating with one another!
<shevy> and the pheromones are like the messages passed along
<txdv> i have the ultimate theory
<bilbo_swaggins> they're simple enough to abstract well
<txdv> that computers are just inventions which reflected humans
bennyboobooboo has joined #ruby
<shevy> bilbo_swaggins yeah, it's rather awesome. so small but really efficient in what little they do
<txdv> since ants are living beings as well, they are just simpler
aurimasn has quit [Read error: Connection reset by peer]
troyready has quit [Ping timeout: 272 seconds]
<txdv> the environment is just different
<txdv> in our programming world it is bits and bytes
<txdv> in the real world it is every possible chemical combination that can be exploited for specific usage
aurimasn has joined #ruby
<bilbo_swaggins> computation is actually a ubiquitous property of the universe. Physics is a matter of information being transformed in accordance with its laws, a computation in a broad sense. From there, evolution is a computation. Move to insects and you're getting pretty complex, but the details of physics fall by the wayside on relevant scales. We are merely reinventing and discovering all which already exists.
<bilbo_swaggins> Even the most abstract mathematics seems to find a niche of applicability.
danshultz has quit [Remote host closed the connection]
butblack has joined #ruby
workmad3 has joined #ruby
<bilbo_swaggins> some physicists seriously consider that on a small enough scale, everything is discrete
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aurimasn has quit [Client Quit]
benzrf has left #ruby [#ruby]
<shevy> txdv yeah. chemistry is cool. it provides information (the structure of molecules especially organic compounds, linear sequence found in polymers of DNA nucleotides) and also provides energy for biochemical reactions (the nucleotides found in DNA can also be used for energy mostly due to the phosphor bonds at one end, i.e. in ATP molecule but also GTP etc..)
CpuID has joined #ruby
CpuID has quit [Changing host]
CpuID has joined #ruby
IceDragon_ has joined #ruby
<bilbo_swaggins> It is quite a leap to deduce that continuousness exists in a real sense from the granular levels of reality we have been able to experience
<txdv> this means these physics would accept the possibility that the universe is a computer simulation?
<shevy> bilbo_swaggins my problem with physics was that I always sucked in math, especially when it became complex or abstract :(
bennyboobooboo has quit [Ping timeout: 252 seconds]
<bilbo_swaggins> shevy: molecbiology is the coolest science
<shevy> yeah
<bilbo_swaggins> txdv: in a trivial sense, everything is a simulation of itself implemented on itself
<shevy> and it's cool and interesting to read. it is so much harder to study math especially when it is boring
<txdv> in school i never sucked at math, but my father always said that they don't teach people math in school
<bilbo_swaggins> shevy: everyone sucks at math
<shevy> a few don't! hehe
<bilbo_swaggins> txdv: oh lord no they dont
<txdv> my father was a mathematician
IceDragon has quit [Ping timeout: 272 seconds]
<bilbo_swaggins> those who are driven to understand the mathematics will keep trying till they do
<txdv> probability theory on objects which have infinite dimensions and shit
<shevy> I guess it depends on the type of school a lot as well
abstractj has quit [Ping timeout: 272 seconds]
<bilbo_swaggins> MiT students are magically gifted so much as masochistically hard workers
<bilbo_swaggins> aren't*
<apeiros> that's a gift too
<bilbo_swaggins> txdv: I keep putting down math and coming back to it
<bilbo_swaggins> I wanted to be a physicist from age 8 to 18
abstractj has joined #ruby
<bilbo_swaggins> but you need to be a good student
<e62> bilbo_swaggins: Have you tried picking it back up in the context of comp sci?
<e62> bilbo_swaggins: That really helped me quite a bit.
<txdv> yeah
<bilbo_swaggins> comp sci has helped
interactionjaxsn has quit [Remote host closed the connection]
claymore has quit [Quit: Leaving]
razibog has quit [Quit: Leaving.]
Andrevan has quit [Quit: WeeChat 0.4.2-rc1]
<bilbo_swaggins> it made it easier to think of physical processes as specific mathematical algorithms
VTLob has quit [Quit: VTLob]
<bilbo_swaggins> and vectors, spaces, etc are just data structures
<txdv> reminds me of the book 'permutation city'
<bilbo_swaggins> also, we choose to define mathematics the way we do, with the axioms we do, merely because it's useful
<bilbo_swaggins> I *love* permutations
<txdv> well, the title is not representitive of the book
<txdv> its a sci-fi book about simulation
<txdv> simulating worlds and stuff
<shevy> bilbo_swaggins yeah
<shevy> bilbo_swaggins programming seemed simpler than maths in school
<shevy> it's all about data structures
<txdv> I think it is simpler because you can 'thouch it'
<txdv> change a line, run it, look what happens
<shevy> right and you get results back
<bilbo_swaggins> a common assumption is that programming is heavily mathy
<bilbo_swaggins> I think the inverse is true
<shevy> dunno
<shevy> would you say there is more math in ruby or in haskell?
<txdv> these are programming languages you are talking about
<e62> bilbo_swaggins: Depends on how you wield the tool
<bilbo_swaggins> I think you are free to build the math from the parts given to you by the language
<shevy> how do you wanna do programming without a language ;)
<bilbo_swaggins> turing machines
<txdv> TO FORGE BOTH LANGUAGES a lot of applied math was used
<bilbo_swaggins> e62: or the angle you view it from
<txdv> parsers and stuff, everything is just applied math
<e62> bilbo_swaggins: Yeah, like you can't really escape boolean logic and basic arthimatic...
makkura is now known as mak|idle
nateberkopec has quit [Quit: Leaving...]
marr has joined #ruby
<bilbo_swaggins> if you accept logic, control structures, etc as math, then yes, it's all math
IceDragon_ is now known as IceDragon
<bilbo_swaggins> matter of definitions
<txdv> e62: with quantum bits you can! somehow
<e62> lol
<e62> That sounds like an outlier to me :P
troyready has joined #ruby
<bilbo_swaggins> you *have* to be both a physicist and comscientist to understand those arcane voodoo manipulators
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
sailias has quit [Quit: Leaving.]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<e62> Oh man, arcane voodoo manipulators... They're tricky
psyl0n has quit [Remote host closed the connection]
<shevy> wtf is an arcane voodoo manipulator
Speed has joined #ruby
<bilbo_swaggins> quantum computers
spider-mario has quit [Remote host closed the connection]
<e62> lol
<bilbo_swaggins> I'm pretty sure I read somewhere that they literally run on unicorn blood
<e62> bilbo_swaggins: The hybrid models can take wizard energy, too
<bilbo_swaggins> do not bring haskell into this!
nanoyak has quit [Quit: Computer has gone to sleep.]
MindfulMonk has joined #ruby
kpshek has quit []
<txdv> nobody understand quantum computers, but everyone talks about them
tannerburson has quit [Quit: tannerburson]
serp` has quit [Quit: serp`]
pagios has left #ruby ["Leaving"]
<rhys> magic magic magic light magic
<bilbo_swaggins> it's pretty safe to assume it's a crackpot level understanding as soon as the Q word comes out
robertrv_ has quit [Read error: Operation timed out]
fgo has joined #ruby
jlast has quit [Remote host closed the connection]
bennyboobooboo has joined #ruby
Al__ has quit [Read error: Connection reset by peer]
Al__ has joined #ruby
vlad_starkov has joined #ruby
huttan- has quit [Read error: Operation timed out]
zcreative has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<txdv> you called me crackpot
<txdv> what is a crackpot
Speed has quit [Ping timeout: 260 seconds]
wald0_ has quit [Quit: Lost terminal]
Thana` has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
joaoh82 has joined #ruby
<workmad3> txdv: a crazy person
tannerburson has joined #ruby
<txdv> are all crack users crazy persons?
<bilbo_swaggins> an example: someone who "solves" some crazy hard problem like creating a grand unified theory of physics without learning any of the actual math
<bilbo_swaggins> some brilliant people are also crackpots
tannerburson has quit [Client Quit]
yasushi has joined #ruby
<txdv> well i didn't solve anything, i'm just talking about it
vlad_starkov has quit [Read error: Connection reset by peer]
<workmad3> bilbo_swaggins: I have a lovely GUT that I'm just working some bits through before I publish it :P
<bilbo_swaggins> I have tremendous respect for Sir Roger Penrose, mathematician, but he also has some nonmainstream, bizarre ideas that the brain uses quantum mechanical effects to achieve consciousness. I can't disprove that, but it's certainly an odd belief.
<bilbo_swaggins> txdv: I didn't mean to refer to you
<workmad3> bilbo_swaggins: it ties together all of physics and only requires the supposition that unicorns exist
<bilbo_swaggins> well that's 2 fewer than mine
<bilbo_swaggins> by occam's razor, it must be true
mlpinit has quit [Ping timeout: 272 seconds]
<workmad3> bilbo_swaggins: Penrose's theory is that the brain relies on quantum gravitational effects
<workmad3> bilbo_swaggins: on the idea (as far as I can tell) that consciousness isn't understood and neither is quantum gravity...
<bilbo_swaggins> he's certifiably extraordinarily brilliant
<workmad3> doesn't stop him having a bad idea
<bilbo_swaggins> oh totally
phansch has quit [Remote host closed the connection]
wald0 has quit [Ping timeout: 264 seconds]
<workmad3> unfortunately (for him, I think) he published it... and is now kinda stuck with it haunting him
lfox has quit [Quit: ZZZzzz…]
<bilbo_swaggins> genius isn't magic, but hard work, trial and error, and at best a guiding intuition that others don't have
joaoh82 has quit [Ping timeout: 272 seconds]
Jdubs has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
<bilbo_swaggins> he's also been knighted for his contributions to mathematics, so I think he's doing alright :P
Brolen has quit [Quit: Brolen]
aryaching has quit [Ping timeout: 245 seconds]
Kar- has joined #ruby
<bilbo_swaggins> have you read much of his writing?
psyl0n has joined #ruby
psyl0n has quit [Changing host]
psyl0n has joined #ruby
<workmad3> only one I've managed to get through is The Emperor's New Mind
Speed has joined #ruby
aryaching has joined #ruby
<bilbo_swaggins> I learned real calculus from The Road to Reality and put the book down for years
burlyscudd has quit [Quit: Leaving.]
<bilbo_swaggins> I've only recently decided to give it another go, because I'm insane
<workmad3> I've also got Cycles of Time on the bookshelf and Road to Reality on my bedside table (underneath 'Theoretical Physics', 'Tensors, Differential Forms and Variational Theory', 'Further Maths for the Physical Sciences' and 'Smalltalk Best Practice Patterns')
mary5030 has quit [Remote host closed the connection]
sambao21 has joined #ruby
<workmad3> bilbo_swaggins: I keep on doing that with R2R
<bilbo_swaggins> ah yes, the bookstack that we all have
<bilbo_swaggins> it's fantastically well written
<bilbo_swaggins> but I am not as smart as I'd like to be
<workmad3> bilbo_swaggins: one of these days... I guess the warning sign was that I first learned about it when a uni friend mentioned it... as a course book on his masters level physics course
zcreative has joined #ruby
<bilbo_swaggins> the issue for me is that I can't decide on studying *one* thing. I've come to terms with that, however
<workmad3> just browse? :)
<bilbo_swaggins> I'll make my way as I make it and so be it
jfoy has quit [Quit: jfoy]
<workmad3> I'm on a bit of a maths binge atm... just finished a book on discrete maths (intro book to refresh myself on some things)
figgleberry has joined #ruby
<bilbo_swaggins> yeah, there's too much cool stuff in this universe to decide you aren't going to study anything outside of a narrow field
brennanMKE has joined #ruby
<bilbo_swaggins> which book?
<workmad3> then got a maths and physics book @ christmas but they quickly bring up determinants and I couldn't remember them
<bilbo_swaggins> Discrete Mathematics for New Technology is a great one
<workmad3> Discrete Mathematics for Computation
<bilbo_swaggins> determinants are weird
<bilbo_swaggins> isn't that the name of the operation used for filling each cell in a matrix?
<workmad3> yeah, just read the chapter on them in Further Maths for the Physical Sciences
<bilbo_swaggins> It never clicked why they are as they are
<workmad3> no, it's the name of the operation that turns a square matrix into a single value
<bilbo_swaggins> I know "because it's useful", but I'd like to see how people derived their usefulness
<workmad3> based on co-factors
<bilbo_swaggins> ah
enebo has quit [Quit: enebo]
araujo has quit [Ping timeout: 272 seconds]
stryek has quit [Ping timeout: 272 seconds]
Wixy has quit [Ping timeout: 272 seconds]
brennanMKE has quit [Remote host closed the connection]
Deele has quit [Ping timeout: 260 seconds]
brennanMKE has joined #ruby
Neomex has quit [Quit: Neomex]
<workmad3> but basically, the determinant of a matrix is equal to the vector cross product (if you set the top row of the matrix to the unit vectors of your basis)
<workmad3> or the scalar triple product, and some other things
nanoyak has joined #ruby
<bilbo_swaggins> so cross product, then cross product again along the other axis?
cbetta is now known as cbetta_afk
psyl0n has quit [Ping timeout: 252 seconds]
<workmad3> scalar triple product is a . b x c
<bilbo_swaggins> I found permutation groups more interesting and learned those before linear algebra
<workmad3> vector triple product is a x b x c
<bilbo_swaggins> okay. I'd need a true resource.
cbetta_afk is now known as cbetta
<workmad3> well, (a x b) x c or a x (b x c) (seeing as the order matters and it's equal precedence :) )
<bilbo_swaggins> I'm sure R2R brings it up eventually
phinfone_ has joined #ruby
<workmad3> not sure it does
olivier_bK has joined #ruby
Mohan has joined #ruby
Mohan has joined #ruby
<bilbo_swaggins> I thought physics used like... all the math
<workmad3> R2R kinda jumps onto tensors quickly, which is something I've never managed to grok
Guest83585 has quit [Remote host closed the connection]
psyl0n has joined #ruby
<bilbo_swaggins> is that the diagrams that look like a game of DDR?
platzhirsch has left #ruby [#ruby]
<workmad3> those might just be vector fields :)
<bilbo_swaggins> or the ones which look like circuits :P
pehlert has joined #ruby
<workmad3> circuits, I think
postmodern has quit [Quit: Leaving]
gilcosson has quit [Remote host closed the connection]
<bilbo_swaggins> I picked up that book because I was fascinated with how arcane it was
<bilbo_swaggins> like it was things not meant to be known
phinfonet has quit [Ping timeout: 260 seconds]
wald0 has joined #ruby
brennanMKE has quit [Ping timeout: 264 seconds]
mojjojo has quit [Quit: mojjojo]
<workmad3> Further Maths for Physical Sciences at least helped me with what a vector field is though :)
postmodern has joined #ruby
<workmad3> which should hopefully help when I rotate back to R2R
danshultz has joined #ruby
<bilbo_swaggins> I'm determined to grok the Schroedinger equation if I die with pen in hand
<workmad3> it also has a section on path and surface integrals which I'm getting up to after matrices... never really looked at the book before (despite it being a first year textbook on my course :$)
ambushsabre has joined #ruby
<bilbo_swaggins> you're a physics major, eh?
<workmad3> nope
<workmad3> should have said it *was* a first year textbook
Jdubs has joined #ruby
<workmad3> and I was on a Computer Science course
mojjojo has joined #ruby
capicue has joined #ruby
<workmad3> been out for almost 6 years now :)
dblessing has quit [Quit: dblessing]
psyl0n has quit [Remote host closed the connection]
<workmad3> so... 10 years on, and I just got around to cracking open a book I bought in my first year :D
Mars has joined #ruby
pushpak has quit [Quit: Linkinus - http://linkinus.com]
<bilbo_swaggins> ha I'm 25 and I can only call myself an intellectual drifter
Mars is now known as Guest45369
<bilbo_swaggins> I'll get around to a lot of things
pehlert has quit [Ping timeout: 246 seconds]
<workmad3> I went on a rationality and physics binge last year, that was fun :)
<bilbo_swaggins> I recently got through Goedel's first Incompleteness Theorem. I've picked it up multiple times over the last two years. And even then there were parts where I accepted certain assumptions when I got the greater picture.. Do not attempt this. It's not worth it.
juarlex has quit [Remote host closed the connection]
<workmad3> should probably pick up on those lesswrong sequences again at some point...
bennyboobooboo has quit [Remote host closed the connection]
fgo has quit [Remote host closed the connection]
juarlex has joined #ruby
<bilbo_swaggins> I found their IRC community jarring
DrShoggoth has quit [Quit: Leaving]
<workmad3> yeah, I didn't jump into the community, just read the main sequences
<bilbo_swaggins> but I know another guy who can't get enough
bennyboobooboo has joined #ruby
juarlex has quit [Remote host closed the connection]
wald0 has quit [Ping timeout: 272 seconds]
mojjojo has quit [Client Quit]
clamstar has joined #ruby
<workmad3> still getting my head around some of it, but it was a bit of an eye opener in terms of just how sophisticated rationality really is
ffranz has quit [Quit: Leaving]
sambao21 has quit [Read error: Connection reset by peer]
MrThePlague has quit []
mojjojo has joined #ruby
<bilbo_swaggins> I'm more interested in what can't be proven, computed or known.
`petey` has quit [Remote host closed the connection]
araujo has joined #ruby
Wixy has joined #ruby
Wixy has joined #ruby
Wixy has quit [Changing host]
`petey` has joined #ruby
<bilbo_swaggins> It would be a cruel joke nature's playing if P=NP? is unprovable
stryek has joined #ruby
<bilbo_swaggins> there's something to be said for intuition, I think
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sambao21 has joined #ruby
<workmad3> sure, as long as you're aware of and correct for known biases in how human intuition works when possible
<workmad3> and as long as you tune your intuition
<workmad3> and are well aware of its limits :)
<bilbo_swaggins> and oh! the biases
<bilbo_swaggins> rationality and intuition work together beautifully
<workmad3> in many ways, the study of rationality is (nowadays) the study of probability and cognitive biases
danshultz has quit [Ping timeout: 265 seconds]
nateberkopec has joined #ruby
<workmad3> in the form of 'how can we arrive at correct conclusions even when our neural machinery is actively working against us?'
Sawbones_ has joined #ruby
<bilbo_swaggins> lesswrong is so cynical
<bilbo_swaggins> brains do pretty well for themselves
<workmad3> I dunno, I'd say it's pretty optimistic
<bilbo_swaggins> especially taking into consideration their original use-case
<workmad3> as it's assuming that we can actually achieve that :)
radic has quit [Disconnected by services]
radic_ has joined #ruby
<workmad3> and yeah, they do pretty well... but they could do so much better!
<bilbo_swaggins> that's what the internet is for
Al__ has quit [Quit: Al__]
<bilbo_swaggins> and I, for one, welcome strong AI
<workmad3> Tsuyoku naritai! is probably one of the most optimistic calls to arms I've come across, from lesswrong
<workmad3> Tsuyoku naritai! I want to be stronger!
<bilbo_swaggins> oh god
sergicles has quit [Quit: sergicles]
<bilbo_swaggins> I read "Friendship is optimal"
gilcosson has joined #ruby
<workmad3> hehe
<bilbo_swaggins> I never meant to read a my little pony fanfic
ghr has joined #ruby
<bilbo_swaggins> but it was an exception to be sure
mityaz has quit [Quit: See ya!]
mudmaster has quit [Ping timeout: 260 seconds]
<workmad3> bilbo_swaggins: at least it wasn't a my little pony slash fiction...
psyl0n has joined #ruby
MindfulMonk has quit [Ping timeout: 264 seconds]
* bilbo_swaggins passes
<workmad3> that just (randomly) reminded me though... I have a book on my shelf that I really should read at some point
eyckelboom has quit [Read error: Operation timed out]
jxport has quit [Read error: Operation timed out]
<workmad3> and I know it's going to be awful... but still
jxport has joined #ruby
Sawbones has quit [Ping timeout: 272 seconds]
eyckelboom has joined #ruby
<workmad3> Star Trek TNG
`petey` has quit [Remote host closed the connection]
<workmad3> and the X-Men...
<workmad3> crossover novel!!!
mansi has quit [Remote host closed the connection]
<bilbo_swaggins> that's intriguingly horrifying
<workmad3> picked it up in a charity shop a couple of years ago
mansi has joined #ruby
lukec has quit [Quit: lukec]
Sawbones_ has quit [Ping timeout: 272 seconds]
<workmad3> I was 'wtf? why does this book have data and wolverine on the cover? wow!!!'
<bilbo_swaggins> the only fiction I've read in a long time, having had been an avid reader as a kid, is the Girl With The Dragon Tattoo series
<bilbo_swaggins> and only then because I like Lisbeth
<workmad3> I tend to get through a fair bit of fiction
psst has joined #ruby
<workmad3> I should probably get to bed tbh...
<workmad3> bilbo_swaggins: going back to the original thing about quantum computers - lesswrong has a sequence on non-mysterious Quantum Mechanics that was a pretty interesting read too :)
<workmad3> if you're interested in a bit of physics
<txdv> isn't this the book where the author died and then the book got popular?
<bilbo_swaggins> yes
<txdv> with the movie
<bilbo_swaggins> and I will read more R2R
<txdv> i didntwatch the movie
<txdv> because i dont want to spoil thebook
<txdv> but i usually read only scifi
<bilbo_swaggins> I didn't like the movie for the usual reasons + it being too dark to enjoy actually seeing
mneorr has quit []
<txdv> usually only ... i tend to favour scifi books
sethen has joined #ruby
rubyracer has quit [Quit: Konversation terminated!]
mansi has quit [Ping timeout: 272 seconds]
<txdv> the usual reason for the movie sucking is that the story gets compressed into 2 hours
<workmad3> sci fi & fantasy for me
<txdv> harry potter is the best example
Guest45369 has quit [Remote host closed the connection]
<txdv> 7 movies, still feels compressed, like watching split scenes from the book
<workmad3> txdv: I dunno... I think them turning harry into a coward that hid under the stairs while dumbledore was killed was also a major point of suckage...
Jdubs has quit [Remote host closed the connection]
chrisramon has quit [Quit: chrisramon]
<txdv> snape killed dumbledore
axl_ has quit [Quit: axl_]
<txdv> i rememer a shitty video on youtube on the event when that book came out
<workmad3> txdv: book - harry is frozen by a total body paralysis charm under the invisibility cloak and can't do anything, but wanted to
<txdv> it was a white version of a drive by shooting
<workmad3> txdv: film - he stands under the stairs and does nothing...
<workmad3> he can... but he doesn't...
Galgorth has quit [Quit: Galgorth]
<txdv> some guys in a car driving past a bookstore shouting "snape killed dumbledore"
<workmad3> hehe
<bilbo_swaggins> and some chick saying "nooooo! you bitch! youuuu biiiiiiitch!"
<txdv> its funny because she is female and the people shouting it are male
<workmad3> I remember going out and buying two copies on the day of release (for me and my wife) and being finished by about mid-afternoon :)
Megtastique has quit []
vallieres_ has joined #ruby
<bilbo_swaggins> it's funny in a very petty schadenfreude kind of way
mudmaster has joined #ruby
<txdv> i read the first 3 or 4 when I was in school
IceDragon_ has joined #ruby
<workmad3> anyway, almost midnight, really should be off to bed
<workmad3> hf
<txdv> yeah
<txdv> wife be mad and shit
w4pm_ has quit [Ping timeout: 264 seconds]
<workmad3> not yet, but give it another 10 mins and no doubt she will be
Jake232 has joined #ruby
<bilbo_swaggins> night then
<txdv> bilbo_swaggins: yeah, imagine, these people where standing in line until 12 oclock so they could buy the book and rush reading
IceDragon has quit [Disconnected by services]
simplyaubs has quit [Quit: simplyaubs]
IceDragon_ is now known as IceDragon
<bilbo_swaggins> how did they get access to the books before everyone else?
MrZYX is now known as MrZYX|off
sethen has quit [Quit: Leaving...]
<txdv> time zones and shit
havenwood has quit [Remote host closed the connection]
<bilbo_swaggins> ah the same reason workmad3 is going to bed at 4pm
freezey has joined #ruby
<txdv> i hate that 12h system
havenwood has joined #ruby
<bilbo_swaggins> so do I
Targen has joined #ruby
<bilbo_swaggins> I also wish the US used metric
<bilbo_swaggins> but you cant always get what you want
<psst> Can anyone suggest why {puts p} would do nothing while {puts p.to_s} would print the value returned by to_s?
figgleberry has quit [Ping timeout: 260 seconds]
<bilbo_swaggins> p is an alias for puts
sethen has joined #ruby
<bilbo_swaggins> I'm not sure how redifining it would affect things
<txdv> do you live in the us?
<bilbo_swaggins> California
<txdv> nerd central station of the world
workmad3 has quit [Ping timeout: 260 seconds]
<psst> oh - I'll use some other variable
<bilbo_swaggins> psst when you call puts, the object passed in should automatically be converted to a string
freezey_ has quit [Ping timeout: 245 seconds]
<bilbo_swaggins> no matter the object
<bilbo_swaggins> so try with a different name and let us know how it goes
mini````` has quit [Ping timeout: 260 seconds]
<bnagy> you can overload p
<txdv> is there snow in cali?
<bilbo_swaggins> thankfully none where I am
<bilbo_swaggins> but in the mountains, yes
<psst> I changed my local variable to proj. Same result.
<bilbo_swaggins> interesting
<bilbo_swaggins> can you show more of the code?
<bnagy> psst: if whatever is in that var prints as nothing ( eg blank string ) you'll see nothing
lukec has joined #ruby
<bnagy> some stuff has specific to_s
freezey has quit [Ping timeout: 252 seconds]
<bilbo_swaggins> is p a method or a variable in your code?
havenwood has quit [Ping timeout: 265 seconds]
<psst> variable
<txdv> you can overload the to_s method and puts won't use the overload?
Hanmac has joined #ruby
<psst> correct