Radar changed the topic of #ruby to: Can't talk? Register/identify with Nickserv first! || http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
axl_ has joined #ruby
failshell has quit [Ping timeout: 265 seconds]
Pupeno has joined #ruby
axl_ has quit [Client Quit]
giuseppesolinas has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
bebonu is now known as bejonu
chinmay_dd has joined #ruby
zzxc has quit [Ping timeout: 265 seconds]
ghr has quit [Read error: No route to host]
momomomomo has quit [Ping timeout: 256 seconds]
Guest82598 has quit [Ping timeout: 245 seconds]
ghr has joined #ruby
baweaver has quit [Read error: Connection reset by peer]
DerisiveLogic has quit [Ping timeout: 244 seconds]
baweaver has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
spider-mario has quit [Remote host closed the connection]
Rickmasta has joined #ruby
baweaver has quit [Remote host closed the connection]
djbkd has joined #ruby
ghr has quit [Ping timeout: 244 seconds]
nii236 has joined #ruby
momomomomo has joined #ruby
phizzbuzz has joined #ruby
Porfa has quit [Quit: porfa]
Porfa has joined #ruby
toretore has quit [Quit: This computer has gone to sleep]
dseitz has joined #ruby
thumpba has quit [Ping timeout: 258 seconds]
car has quit [Ping timeout: 264 seconds]
P1RATEZ has joined #ruby
_blizzy_ has quit [Ping timeout: 256 seconds]
mengu has joined #ruby
haylon has quit [Quit: Page closed]
marr has quit [Ping timeout: 256 seconds]
SubjectiveBias has quit [Ping timeout: 264 seconds]
scripore has quit [Quit: This computer has gone to sleep]
d10n-work has quit [Quit: Connection closed for inactivity]
Porfa has quit [Quit: porfa]
mengu has quit [Ping timeout: 252 seconds]
Mohan_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
jottr has quit [Ping timeout: 256 seconds]
DerisiveLogic has joined #ruby
shock_one has joined #ruby
DerisiveLogic has quit [Remote host closed the connection]
jottr has joined #ruby
DerisiveLogic has joined #ruby
Mohan_ has quit [Ping timeout: 245 seconds]
Mohan_ has joined #ruby
jbomo has joined #ruby
shock_one has quit [Ping timeout: 250 seconds]
casadei has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
phizzbuzz has quit [Read error: Connection reset by peer]
Mohan_ has quit [Ping timeout: 264 seconds]
inspiron has quit [Ping timeout: 244 seconds]
robustus|Off has joined #ruby
robustus|Off is now known as robustus
wallerdev has joined #ruby
cryptarium has joined #ruby
bruno- has quit [Ping timeout: 252 seconds]
zzxc has joined #ruby
GaryOak_ has joined #ruby
casadei has quit [Ping timeout: 256 seconds]
juanpaucar has quit [Remote host closed the connection]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jeromelanteri has joined #ruby
exadeci has quit [Quit: Connection closed for inactivity]
GaryOak_ has quit [Ping timeout: 276 seconds]
claptor has joined #ruby
Channel6 has joined #ruby
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jeromelanteri has quit [Read error: Connection reset by peer]
havenwood has quit [Ping timeout: 276 seconds]
jeromelanteri has joined #ruby
Mohan has joined #ruby
Mohan is now known as Guest1465
<weaksauce> hololeap out of curiosity, what's the use case?
scripore has joined #ruby
mistermocha has joined #ruby
<hololeap> weaksauce: trying to set up a multi-threaded web scraper with a queue
FernandoBasso has quit [Quit: leaving]
<weaksauce> hololeap can you not accomplish that with sidekiq?
phizzbuzz has joined #ruby
Guest1465 has quit [Ping timeout: 246 seconds]
failshell has joined #ruby
Mohan_ has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hololeap> weaksauce: i don't know. i haven't used sidekiq, but it seems like it's made for setting up a number of jobs and then running them from a shell. i want to keep it all within a ruby script and just use native threads
<weaksauce> it's a background task worker hololeap
car has joined #ruby
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
deric_skibotn has quit [Ping timeout: 256 seconds]
Porfa has joined #ruby
ascarter has joined #ruby
failshell has quit [Ping timeout: 256 seconds]
<weaksauce> one use case is sending emails after someone signs up to your website. you create the task and it gets thrown into a queue.
mistermocha has quit [Ping timeout: 256 seconds]
jeromelanteri has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
jeromelanteri has joined #ruby
<hololeap> weaksauce: what i was planning to do is have multiple threads that pull an object (string, url, etc) from a queue, process the object, potentially add a new object to the queue, then repeat until the queue is empty all threads are complete
Mohan_ has quit [Ping timeout: 256 seconds]
Narzew has quit [Remote host closed the connection]
redlegion has quit [Quit: Time for me to pass out.]
nii236 has quit [Ping timeout: 256 seconds]
<hololeap> weaksauce: its a basic pattern that i've needed for a number of web-scraping apps. would sidekiq be able to help with this? i was planning on just extending Queue with the redis-objects gem
<weaksauce> it sounds like sidekiq is right up your alley.
<hololeap> ok. i'll look into it further. it seemed like it wasn't quite what i was looking for, but perhaps it can be leveraged
<weaksauce> basically you'd start the crawl on one page or a list of pages and then those pages create new background jobs for each link.
mistermocha has joined #ruby
<hololeap> weaksauce: is it possible to limit the number of running jobs?
dorei has quit []
zzxc has quit [Ping timeout: 256 seconds]
redlegion has joined #ruby
zzxc has joined #ruby
djbkd has quit [Quit: My people need me...]
Jarsue has joined #ruby
<Jarsue> What's the difference between s1 = Set.new [1, 2] and s2 = [1, 2].to_set
io_syl has joined #ruby
Azure|dc has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Spami has quit [Quit: This computer has gone to sleep]
redlegion has quit [Client Quit]
towski_ has quit [Remote host closed the connection]
redlegion has joined #ruby
Azure has quit [Ping timeout: 276 seconds]
<hololeap> Jarsue: nothing. `an_enum.to_set` just calls `Set.new(an_enum)`: http://ruby-doc.org/stdlib-2.2.2/libdoc/set/rdoc/Enumerable.html#to_set-method (check the source code)
Joufflu has quit [Ping timeout: 265 seconds]
Mohan_ has joined #ruby
endash has joined #ruby
redlegion has quit [Client Quit]
Rollabunna has joined #ruby
airdisa has quit []
bkxd has joined #ruby
Mohan_ has quit [Ping timeout: 276 seconds]
Rollabunna has quit [Ping timeout: 264 seconds]
jack_rabbit has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 245 seconds]
mrsolo has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
JDiPierro has joined #ruby
jenrzzz has joined #ruby
Guest1421 has quit [Ping timeout: 256 seconds]
momomomomo has quit [Quit: momomomomo]
Azure|dc is now known as Azure
greenbagels has joined #ruby
lidenska_ has quit [Remote host closed the connection]
f3lp has joined #ruby
mistermocha has quit [Ping timeout: 255 seconds]
wallerdev has quit [Ping timeout: 255 seconds]
bruno- has joined #ruby
jackcom has joined #ruby
lidenskap has joined #ruby
bruno- is now known as Guest95646
<jackcom> what is lambda?
<Aeyrix> Anonymous function.
havenwood has joined #ruby
<Aeyrix> Basically an "inline" function not really bound to anything; generally only used once.
<Aeyrix> Not really sure how to explain it any better than that.
tcrypt has quit [Remote host closed the connection]
<jackcom> ;) thanks Aeyrix
car has quit [Ping timeout: 265 seconds]
<jackcom> i saw ‘mad max fury road, before one hour, it is very exciting.
tekacs has quit [Quit: Disappearing... *poof*]
tekacs has joined #ruby
Guest95646 has quit [Ping timeout: 240 seconds]
<Aeyrix> I need to go see that.
<jackcom> yeah, it is nice choice.
s2013 has joined #ruby
AlphaAtom has joined #ruby
bmurt has joined #ruby
rkazak has joined #ruby
<baweaver> >> -> x { x * 2 }.call('lambda!')
<ruboto> baweaver # => "lambda!lambda!" (https://eval.in/362673)
<baweaver> >> def div_by(n) -> x { x % n == 0 } end; (1..10).select(&div_by(3))
<ruboto> baweaver # => [3, 6, 9] (https://eval.in/362674)
<baweaver> >> def div_by(n) -> x { x % n == 0 } end; (1..10).select(&div_by(4))
<ruboto> baweaver # => [4, 8] (https://eval.in/362675)
pontiki has joined #ruby
<baweaver> Lambdas make for fun
<baweaver> especially for partially applied functions and closures
<jackcom> great ;) baweaver
michaeldeol has quit [Ping timeout: 265 seconds]
<baweaver> jackcom: Did you catch what it's doing there with div_by?
<hololeap> jackcom: you can also think of it as a method or a block wrapped up as an object (with some slight differences).
<jackcom> not yet baweaver
<baweaver> The method returns a lambda
<jackcom> :(
<baweaver> but that lambda remembers what n was
<diegoviola> rust 1.0 released today
tekacs has quit [Quit: Disappearing... *poof*]
tekacs has joined #ruby
bkxd has quit [Quit: Lost terminal]
Mohan_ has joined #ruby
serivichi has joined #ruby
lidenskap has quit [Remote host closed the connection]
lidenskap has joined #ruby
<hololeap> ~help
lidenskap has quit [Remote host closed the connection]
<hololeap> oops
<hololeap> wrong channel
ramfjord has quit [Ping timeout: 258 seconds]
Mohan_ has quit [Ping timeout: 256 seconds]
Sirupsen has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
baweaver has quit [Remote host closed the connection]
MatthewsFace has joined #ruby
x77686d has joined #ruby
turtil has joined #ruby
bejonu is now known as irobevjodu
n008f4g_ has quit [Ping timeout: 246 seconds]
Papipo has quit [Remote host closed the connection]
Papipo has joined #ruby
cryptarium has quit [Ping timeout: 276 seconds]
nii236 has joined #ruby
<jackcom> Blocks is lamda?
shuber_ has quit [Remote host closed the connection]
alvaro_o has quit [Quit: Ex-Chat]
Porfa has quit [Quit: porfa]
failshell has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
byprdct has joined #ruby
failshell has quit [Remote host closed the connection]
_blizzy_ has joined #ruby
havenwood has quit []
tubuliferous_ has quit [Ping timeout: 272 seconds]
Sawbones has joined #ruby
<hololeap> jackcom: blocks are similar to lambdas, and you can use lambdas in place of a block by passing it with &
<jackcom> ;) hololeap
<hololeap> >> my_lambda =lambda {|x| puts "#{x} It's a lambda!" }; (1..3).each(&my_lambda)
<ruboto> hololeap # => 1 It's a lambda! ...check link for more (https://eval.in/362765)
A205B064 has quit [Ping timeout: 255 seconds]
<jackcom> thanks hololeap ;)
Sawbones has quit [Ping timeout: 246 seconds]
<hololeap> you can use either `lambda {|arg1, arg2| lambda_code }` or `->(arg1, arg2) { lambda_code }`
<hololeap> both will create a lambda
chinmay_dd has quit [Ping timeout: 255 seconds]
arescorpio has joined #ruby
hewenhong has joined #ruby
Dopagod has quit [Quit: WeeChat 1.0]
Mohan has joined #ruby
GnuYawk has joined #ruby
Mohan is now known as Guest62223
<jackcom> nice hololeap i will read it now ;)
nii236 has quit [Ping timeout: 256 seconds]
lthomas has quit [Quit: lthomas]
jfarmer has joined #ruby
jfarmer has quit [Client Quit]
zacts has joined #ruby
keen____ has quit [Read error: Connection reset by peer]
meph has quit [Quit: Leaving.]
Guest62223 has quit [Ping timeout: 256 seconds]
iamninja has quit [Read error: Connection reset by peer]
cgrieger^away has quit [Ping timeout: 256 seconds]
Mohan_ has joined #ruby
iamninja has joined #ruby
keen____ has joined #ruby
renanoronfle has joined #ruby
Xiti has joined #ruby
jfarmer has joined #ruby
cryptarium has joined #ruby
cgrieger^away has joined #ruby
<jackcom> dice.each do |die|
zacts has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<jackcom> puts die.roll
<jackcom> end <————— |die| is parameter?
<mozzarella> yes
<jackcom> mozzarella: thanks
<jackcom> ;)
Sirupsen has quit [Quit: Textual IRC Client: www.textualapp.com]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jackcom> toast = Proc.new do puts 'Cheers! end == toast = Proc.new(do puts 'Cheers! end)?
<mozzarella> no
<hololeap> Proc.new { puts 'Cheers' }
<jackcom> why?
rahult has joined #ruby
<mozzarella> it's the same as Proc.new() do puts 'Cheers!' end
jaygen has quit []
tjbiddle has quit [Quit: tjbiddle]
<hololeap> anything within the curly braces {} is a block. anything between parenthesis () is a list of arguments (aka parameters)
Mohan_ has quit [Ping timeout: 256 seconds]
shakes has joined #ruby
hewenhong has quit [Remote host closed the connection]
<jackcom> thanks hololeap and mozzarella
<jackcom> ;)
<hololeap> a block can either look like `do block_code end` or `{ block_code}`
<jackcom> good
<hololeap> you don't need the "do" or "end" when using the curly braces
<jackcom> i understand
Mohan_ has joined #ruby
<hololeap> k
<jackcom> Proc.new do puts 'Cheers! end == Proc.new() do puts 'Cheers!' end ?
<jfarmer> jackcom: Your instinct is a fair one, though. Seems like you're thinking of a block as a kind of function you can pass to other functions, hence "Proc.new(do ... end)" might make sense.
DEA7TH has joined #ruby
<jackcom> :) jfarmer thanks i think so
<jfarmer> While that's conceptually true, blocks can't be passed directly as arguments like that.
<jackcom> yeah
<jackcom> using Proc
<jfarmer> Yes, you can pass Proc objects as arguments, but they still don't "fit" in the same place as blocks.
<jfarmer> Like...
<jfarmer> These are not the same:
zzxc has quit [Ping timeout: 255 seconds]
<jfarmer> [1,2,3,4].each do |num|
<jfarmer> puts "The number is #{num}"
<jfarmer> end
cryptarium_ has joined #ruby
<jfarmer> vs.
<jfarmer> do_stuff = Proc.new { |num| puts "The number is #{num}" }
<jfarmer> [1,2,3,4].each(do_stuff)
<jfarmer> The "seems" like the same thing, but the latter will give some kind of error (not sure what kind off the top of my head).
<mozzarella> you can do:
<mozzarella> >> def test; yield; end; test(&proc { puts 'hello' })
<ruboto> mozzarella # => hello ...check link for more (https://eval.in/362798)
<jackcom> ok i understand it
<hololeap> jackcom: you can use a Proc object as a block by putting & in front of it, but a method can only take one block whether it be from a Proc object or a "traditional" block
<jackcom> finally ‘Proc.new’ is same to ‘Proc.new()'
<hololeap> jackcom: if the argument list is empty you can leave the () off
<jfarmer> Yeah, so, not to confuse you further, but blocks in Ruby have this special place. You can "pass" a block to _any_ function/method in Ruby as the "last" argument — that's built right into the language.
<hololeap> jackcom: for any function
<hololeap> jackcom: not just Proc.new(). ['this', 'that'].each == ['this
<jfarmer> It's like an invisible argument slot that Ruby adds to every method, which you pass in using different syntax.
<jackcom> thanks i understand it.
<hololeap> jackcom: *** ['this', 'that'].each == ['this', 'that'].each()
<jackcom> :)
JDiPierro has quit [Remote host closed the connection]
cryptarium has quit [Ping timeout: 246 seconds]
<jfarmer> You can prefix an argument with & to tell Ruby: "I'm passing this in as a normal argument, but treat it like the block argument." So [1,2,3,4].each(do_stuff) would raid an error saying you didn't supply a block while [1,2,3,4].each(&do_stuff) would work as expected.
<jfarmer> jackcom: Ok, cool.
<jackcom> ;)
asmodlol has quit [Ping timeout: 272 seconds]
ndrei has quit [Ping timeout: 264 seconds]
<jfarmer> Probably one of the Top 5 most Ruby-specific things in the language.
rodfersou has quit [Ping timeout: 264 seconds]
<jfarmer> jackcom: If you're curious, the syntax was borrowed directly from Smalltalk.
slawrence00 has joined #ruby
<jackcom> Smalltalk oh
<jackcom> nice
tcrypt has joined #ruby
ndrei has joined #ruby
<jfarmer> Not the &-business, though, that's a Ruby-ism. In Smalltalk, blocks could be used much like you thought to use them initially (as plain ol' values)
MatthewsFace has quit [Remote host closed the connection]
Mohan_ has quit [Ping timeout: 264 seconds]
asmodlol has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<hololeap> jackcom: one other thing you might be interested in: if you pass (&:whatever), it will call the "whatever" method on the passed object, so these are the same:
<hololeap> >> ['this', 'that'].map {|i| i.upcase }
<ruboto> hololeap # => ["THIS", "THAT"] (https://eval.in/362829)
<hololeap> >> ['this', 'that'].map(&:upcase)
<ruboto> hololeap # => ["THIS", "THAT"] (https://eval.in/362830)
<hololeap> notice the colon between & and upcase
tcrypt has quit [Ping timeout: 252 seconds]
Mohan_ has joined #ruby
<jackcom> what is :? hololeap ?
nii236 has joined #ruby
<hololeap> the : signifies a symbol, which is like a stripped down string. the &: basically says, "turn this symbol into a proc for the given object"
<hololeap> don't mean to confuse you here :)
Guest1421 has joined #ruby
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
<jackcom> yes thanks hololeap ;)
<hololeap> i just wanted to point out that if you have a block that looks like {|i| i.some_method}, you can just pass &:some_method instead
<jackcom> yeah, thanks
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Mohan_ has quit [Ping timeout: 258 seconds]
Mohan_ has joined #ruby
rawrmonstar has joined #ruby
DynamicMetaFlow has joined #ruby
GnuYawk has quit [Ping timeout: 272 seconds]
irobevjodu has quit [Ping timeout: 256 seconds]
endash has quit [Quit: endash]
Mohan_ has quit [Ping timeout: 240 seconds]
braincrash has quit [Quit: bye bye]
rahult has quit [Quit: Back to the world of zombies]
shuber_ has joined #ruby
car has joined #ruby
lidenskap has joined #ruby
braincrash has joined #ruby
braincrash is now known as braincras
dcr89 has joined #ruby
rahult has joined #ruby
Mohan_ has joined #ruby
shuber_ has quit [Ping timeout: 264 seconds]
idafyaid has joined #ruby
idafyaid has quit [Changing host]
idafyaid has joined #ruby
Mohan_ has quit [Ping timeout: 252 seconds]
shock_one has joined #ruby
Rollabunna has joined #ruby
pocketprotector is now known as bocketprotector
bocketprotector is now known as pocketprotector
Guest1421 has quit [Ping timeout: 244 seconds]
shock_one has quit [Ping timeout: 252 seconds]
bocketprotector has joined #ruby
casadei has joined #ruby
bruno- has joined #ruby
bocketprotector is now known as Guest50583
Rollabunna has quit [Ping timeout: 244 seconds]
e1nh4nd3r has quit [Quit: Leaving.]
icebourg has joined #ruby
baweaver has joined #ruby
bahar has joined #ruby
arescorpio has quit [Quit: Leaving.]
casadei has quit [Ping timeout: 256 seconds]
bruno- has quit [Ping timeout: 256 seconds]
Guest50583 has quit [Remote host closed the connection]
Mohan has joined #ruby
s2013 has joined #ruby
adam- has left #ruby [#ruby]
Mohan is now known as Guest27521
adam12 has joined #ruby
rahult is now known as rahult_
phutchins has quit [Ping timeout: 265 seconds]
lidenskap has quit [Remote host closed the connection]
tjohnson has quit [Quit: Connection closed for inactivity]
rahult_ is now known as rahult
rotcetorptekcop has joined #ruby
rahult is now known as rahult_
rotcetorptekcop is now known as Guest82342
lidenskap has joined #ruby
tkuchiki has joined #ruby
Guest27521 has quit [Ping timeout: 244 seconds]
rahult_ is now known as rahult
ascarter_ has joined #ruby
jfarmer has quit [Quit: Textual IRC Client: www.textualapp.com]
<ruboto> jackcom, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/d7ceb92134bc9d87c948
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<jackcom> how can i do?
CloCkWeRX has joined #ruby
Mohan_ has joined #ruby
rahult is now known as rahult_
Sawbones has joined #ruby
greenbagels has quit [Read error: Connection reset by peer]
dcr89 has quit [Quit: WeeChat 1.1.1]
ascarte__ has joined #ruby
Guest82342 has quit [Remote host closed the connection]
ascarter_ has quit [Ping timeout: 245 seconds]
rotcetorptekcop has joined #ruby
Mohan_ has quit [Ping timeout: 240 seconds]
<jackcom> how can i do?
tkuchiki has quit [Ping timeout: 256 seconds]
mengu has joined #ruby
Mohan_ has joined #ruby
<jackcom> hololeap:
bmurt has quit []
<hololeap> jackcom: take out the &
<hololeap> jackcom: puts compose(doubleIt, squareIt, 5)
<pontiki> also, you've not declared 3 params, only 2
ascarter_ has joined #ruby
<pontiki> that's how it should work
<pontiki> your compose method is creating a proc, not calling it
<hololeap> ^
lavros has joined #ruby
ascarte__ has quit [Ping timeout: 245 seconds]
rahult_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jackcom> my_proc = compose(doubleIt, squareIt)
<jackcom>
<jackcom> puts my_proc.call(5) <—— i don’t use ‘Proc.new’ so how can i use call method? pontiki ?
mengu has quit [Ping timeout: 276 seconds]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
lidenskap has quit [Remote host closed the connection]
<jackcom> thanks pontiki
<jackcom> ;)
DEA7TH has quit [Ping timeout: 252 seconds]
Mohan_ has quit [Ping timeout: 246 seconds]
MatthewsFace has joined #ruby
Mohan has joined #ruby
Mohan is now known as Guest35247
tubuliferous_ has joined #ruby
failshell has joined #ruby
Guest35247 has quit [Ping timeout: 265 seconds]
tubuliferous_ has quit [Ping timeout: 256 seconds]
Mohan_ has joined #ruby
Musashi007 has joined #ruby
ascarter_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
failshell has quit [Ping timeout: 265 seconds]
nii236 has quit [Ping timeout: 256 seconds]
rotcetorptekcop has quit [Remote host closed the connection]
rotcetorptekcop has joined #ruby
Mohan_ has quit [Ping timeout: 244 seconds]
nii236 has joined #ruby
Papipo has quit [Ping timeout: 250 seconds]
zotherstupidguy has quit [Read error: No route to host]
jack_rabbit has joined #ruby
shuber_ has joined #ruby
bmurt has joined #ruby
bmurt has quit [Client Quit]
rotcetorptekcop has quit [Remote host closed the connection]
<jackcom> : https://gist.github.com/anonymous/86f5936446a5d7be5590 <—— pontiki are you busy?
sevenseacat has joined #ruby
shock_one has joined #ruby
shuber_ has quit [Ping timeout: 246 seconds]
rotcetorptekcop has joined #ruby
<rawrmonstar> jackcom I don't see a difference besides where you are creating the proc
CloCkWeRX has quit [Ping timeout: 265 seconds]
davedev2_ has joined #ruby
<jackcom> i don’t know :( anyway thanks
Joufflu has joined #ruby
<jackcom> rawrmonstar:
davedev24_ has quit [Ping timeout: 265 seconds]
<mozzarella> how can I get RestClient to follow redirections?
_blizzy_ has quit [Ping timeout: 265 seconds]
KnownSyntax has quit [Quit: Connection closed for inactivity]
lkba_ has joined #ruby
lkba has quit [Ping timeout: 256 seconds]
DynamicMetaFlow has quit [Quit: Leaving]
rotcetorptekcop has quit [Remote host closed the connection]
davedev24_ has joined #ruby
davedev2_ has quit [Read error: Connection reset by peer]
starless has joined #ruby
serivichi has quit [Ping timeout: 272 seconds]
Musashi007 has quit [Ping timeout: 258 seconds]
rotcetorptekcop has joined #ruby
serivichi has joined #ruby
Rephiax has joined #ruby
hololeap has quit [Ping timeout: 258 seconds]
nii236 has quit [Ping timeout: 240 seconds]
Xiti has quit [Read error: Connection reset by peer]
kt2 has joined #ruby
bronson has quit [Remote host closed the connection]
kt2 has quit [Client Quit]
Sawbones has quit [Remote host closed the connection]
dcarmich has joined #ruby
pwnz0r has joined #ruby
Sawbones has joined #ruby
CloCkWeRX has joined #ruby
Rollabunna has joined #ruby
Kortes has joined #ruby
rawrmonstar has quit [Quit: Textual IRC Client: www.textualapp.com]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Channel6 has quit [Quit: Leaving]
starless has quit [Quit: Leaving]
Rephiax has quit []
Kortes has quit []
dru has joined #ruby
Mohan_ has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thomcom has quit [Quit: Textual IRC Client: www.textualapp.com]
Sawbones has quit [Remote host closed the connection]
s2013 has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lidenskap has joined #ruby
disKounted has quit []
Scentamental has joined #ruby
riotjones has joined #ruby
Mohan_ has quit [Ping timeout: 252 seconds]
rahult has joined #ruby
hewenhong has joined #ruby
Mohan has joined #ruby
Scentamental has left #ruby [#ruby]
Mohan is now known as Guest89490
duncannz has quit [Ping timeout: 272 seconds]
riotjones has quit [Ping timeout: 245 seconds]
GnuYawk has joined #ruby
_cake has quit [Quit: leaving :c]
_seanc_ has quit [Quit: _seanc_]
BlackPower has joined #ruby
Guest89490 has quit [Ping timeout: 272 seconds]
_seanc_ has joined #ruby
failshell has joined #ruby
tagrudev has joined #ruby
rahult is now known as rahult_
<xxneolithicxx> ask it nicely?
MatthewsFace has quit [Remote host closed the connection]
rahult_ is now known as rahult
failshell has quit [Ping timeout: 265 seconds]
pontiki has quit [Quit: Textual IRC Client: www.textualapp.com]
Mohan_ has joined #ruby
Ropeney has joined #ruby
diegoviola has quit [Quit: WeeChat 1.1.1]
diegoviola has joined #ruby
arup_r has joined #ruby
tuelz1 has quit [Ping timeout: 272 seconds]
Mohan_ has quit [Ping timeout: 272 seconds]
nii236 has joined #ruby
chinmay_dd has joined #ruby
A205B064 has joined #ruby
Pupeno has quit [Ping timeout: 255 seconds]
<shevy> xxneolithicxx lol
jenrzzz has quit [Ping timeout: 255 seconds]
mwlang has quit [Quit: mwlang]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Mohan_ has joined #ruby
BlackPower has quit [Remote host closed the connection]
lavros_ has joined #ruby
bronson has joined #ruby
<Jarsue> When a framework says, "Add this line to your applications Gemfile" what does it mean?
<Jarsue> Where is that Gemfile?
<sevenseacat> in the root folder of your application.
<Jarsue> sevenseacat, So, let me see. If I create a new map for a new application, I need to have a Gemfile?
lavros has quit [Ping timeout: 256 seconds]
<sevenseacat> a new map?
<Jarsue> folder*
<sevenseacat> all applications will typically have Gemfiles, because they will use bundler to specify their dependencies
<Jarsue> No idea what Gemfiles are.
<sevenseacat> http://bundler.io might be worth a read for you then
scripore has quit [Quit: This computer has gone to sleep]
ni291187 has joined #ruby
<Jarsue> Yea thanks
<Jarsue> Should I read the in-depth one?
<Jarsue> The Gemfile manual.
ni291187 has left #ruby [#ruby]
<St1gma> Gemfiles are gem (library) configuration files for bundler (a dependency "checker")
<sevenseacat> just getting an overview of what bundler does will likely be sufficuent.
<sevenseacat> sufficient
<St1gma> Some things you have to read Jarsue, otherwise you will have answers that are a simple Google away from you.
Mohan_ has quit [Ping timeout: 244 seconds]
bronson has quit [Ping timeout: 256 seconds]
<shevy> reading the right thing makes you a smarter person
Mohan_ has joined #ruby
<St1gma> ^
<St1gma> I'm not saying go read the full RFC22616 (HTTP) in order to understand basic HTTP methods, but some minor reading of documentation is always useful to have at least a basic understanding of how things work, as as shevy said, you will end up being a smarter more capable person.
<shevy> catching the right mice makes you a better cat
<shevy> oh
<shevy> I am notoriously lazy
sent-hil has joined #ruby
* sevenseacat is reading Programming Elixir, does that count?
<shevy> I wouldn't read anything myself, I'd just ask on IRC :D
<St1gma> who isn't
<shevy> yeah sevenseacat you are an educated cat. though I have no idea how useful elixir is
<shevy> I still have not finished "The C Programming language" either :(
<sevenseacat> me either, but it's interesting
<Allenom> lol..
dru has quit [Ping timeout: 256 seconds]
<shevy> sometimes you get a new insight by looking at things differently or from a different angle
<Allenom> shevy, Why you reading K&R?
Jarsue has left #ruby ["Leaving"]
<St1gma> only a handful of books that I've read, like Shellcoder's Handbook (just the first one, I got too lazy on the second one), Hacking: The art of exploitation, and How to program C++. I was forced to read some Java stuff at school but that was about it for Java, I felt dirty.
<Allenom> St1gma, That C++ book is horrible.
<St1gma> oh and TCP/IP Illustrated Vol1 <- very good book
<sevenseacat> i upset my computer by telling ot calculate the factorial of 100,000,000
<Allenom> There are only x good books for C++.
<St1gma> Allenom: yeah it was given to me :S
scripore has joined #ruby
<Allenom> St1gma, Damn..
Mohan_ has quit [Ping timeout: 250 seconds]
<sevenseacat> that took 14GB of memory very very quickly
<shevy> Allenom I am semi-ok with regular ruby code, and did not feel as if I progress much for quite a long while (no surprise, I am lazy); so I'd have to learn something new... either a new programming language (like nim), or rails (but I dunno...) or C (then I could help with bindings in ruby, if I'd ever get myself to grok pointers... it's what stops me usually, I think I need to have it make "click" in my brain)
<sevenseacat> i have no interest in re-learning C
icebourg has quit []
<Allenom> shevy, Why don't you try to get really good at Rails. Also, I will give you an advice. There are people that are very good with Rails and have pretty good ideas, but I will tell it, they are stupid. And they are stupid because they don't execute their ideas and end up working for someone else.
<shevy> hehe
<Allenom> I have seen people executing so bad ideas at the right time, and now yea they have huge companies.
<shevy> nah, rails just doesn't excite me. I trust linus and matz
weaksauce has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> oops didn't finish reading before typing
<Allenom> shevy, What doesn't excite you?
<shevy> I am not fully awake yet ...
<shevy> rails!
<Allenom> Yes, for what reason?
<sevenseacat> lol, calling people stupid
<St1gma> I feel the same about it :S
<sevenseacat> Allenom: I probably wouldnt do that.
<St1gma> I never got into it and I mostly write stuff in Sinatra when I have to do web related things.
queequeg1 has joined #ruby
<St1gma> I just don't have the time to learn the monster Rails API
<Allenom> sevenseacat, Yes because I get tired everyday when I heard people, "what to do to success". Well, fkn execute your ideas and stop whining. You will never have enough skills.
<Allenom> hear*
<sevenseacat> and what does that have to do with rails?
<Allenom> shevy, Also, what don't you understand about pointers?
tubuliferous_ has joined #ruby
<St1gma> *
<sevenseacat> because that just sounds like you're calling all people who are good at rails stupid, which i have a small issue with.
<Allenom> sevenseacat, Because some will whine that Rails is not the right tool to use for startups and I'm like, are you ok?
<sevenseacat> your logic seems really really faulty
<St1gma> Allenom: so what is the argument behind that?
pwnz0r has quit [Remote host closed the connection]
<St1gma> Allenom: I'm not sure I understand, if you know rails really well, you can get up and running very fast with little issue.
<shevy> Allenom everything
Pupeno has joined #ruby
<Allenom> sevenseacat, That's why I'm working as a quant, because my logic was faulty all the way, right? :)
<shevy> Allenom rails does not excite me because I don't know what I gain
<Allenom> shevy, Tell me I will help you.
queequeg1 has quit [Client Quit]
<shevy> what with!
<Allenom> With pointers.
haylon_ has quit [Quit: Bye]
<shevy> aaah ok
<shevy> thought you meant rails
<shevy> pointers also don't excite me much haha :)
<Allenom> And also, what do you mean by "I don't know what I gain" ?
<shevy> with rails
queequeg1 has joined #ruby
<Allenom> Because of it's magic?
<shevy> no
<shevy> I am not sure why I should use rails
inspiron has joined #ruby
tubuliferous_ has quit [Ping timeout: 256 seconds]
<shevy> hmm how many downloads from rubygems.org are due to bots?
<Allenom> For prototypes. You can get up and running really fast. There are some languages you should prefer if you are a startup or alone in a project. Once your project becomes really big and needs, for example to run faster, by that time you sure have investors to lend you money so you can hire developers :)
riotjones has joined #ruby
<diegoviola> pointers are easy
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
gusrub has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
jud has quit [Quit: Leaving]
Papipo has joined #ruby
<Allenom> diegoviola, They are? :)
riotjones has joined #ruby
devoldmx has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
<diegoviola> Allenom: I won't lie, I hard a hard time to understand them, but I think I got it now
riotjones has joined #ruby
Mohan has joined #ruby
<sevenseacat> Allenom: dunno what a quant is, but there are very real problems with saying 'people who are good at rails are stupid because they dont realize their ideas and whine a lot'
<Allenom> diegoviola, What's the difference between int* buffer1[10]; and int (*buffer2)[10]; ?
<diegoviola> int main(void) { int a = 10; int *p; *p = &a; printf("value of a is: %d", *p); return 0; } <-- returns value of a through the pointer variable
riotjones has quit [Read error: Connection reset by peer]
Mohan is now known as Guest12955
<diegoviola> actually that would be p = &a;
riotjones has joined #ruby
<sevenseacat> anyway
* sevenseacat goes back to reading
<diegoviola> Allenom: I don't know
<shevy> the cat is distracted by IRC!
riotjones has quit [Read error: Connection reset by peer]
<Allenom> diegoviola, So, you don't understand pointers yet :)
<diegoviola> okay
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
swgillespie has joined #ruby
<shevy> diegoviola welcome to my world!
riotjones has joined #ruby
<Allenom> I will give you an easy one for both
<Allenom> What's the difference between, void foo(char arr[]); and void boo(char *arr); ?
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
GriffinHeart has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
car has quit [Quit: Leaving]
riotjones has joined #ruby
<Allenom> shevy, The above question will help you a lot.
f3lp has quit [Ping timeout: 276 seconds]
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
Guest36441 has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
riotjones has joined #ruby
Guest12955 has quit [Ping timeout: 250 seconds]
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
krz has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjone_ has joined #ruby
riotjone_ has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
<hanmac> apeiros: riotjones does have "Connection reset by peer" problems
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
f3lp has joined #ruby
nii236 has quit [Ping timeout: 256 seconds]
riotjones has quit [Read error: Connection reset by peer]
shuber_ has joined #ruby
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjone_ has joined #ruby
Papipo has quit [Ping timeout: 276 seconds]
riotjone_ has quit [Read error: Connection reset by peer]
gkra_ has joined #ruby
riotjones has joined #ruby
gkra has quit [Read error: Connection reset by peer]
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
phutchins has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
jud has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
shuber_ has quit [Ping timeout: 276 seconds]
riotjones has joined #ruby
hewenhong has quit [Remote host closed the connection]
riotjones has quit [Read error: Connection reset by peer]
slawrence00 has joined #ruby
riotjones has joined #ruby
hewenhong has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
taiansu has joined #ruby
riotjones has joined #ruby
krz has quit [Ping timeout: 246 seconds]
riotjones has quit [Read error: Connection reset by peer]
hewenhon_ has joined #ruby
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
phutchins has quit [Ping timeout: 264 seconds]
spiderbyte has quit [Ping timeout: 265 seconds]
riotjones has joined #ruby
sigurding has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
inspiron has quit [Quit: Leaving]
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
scripore has quit [Quit: This computer has gone to sleep]
hewenhong has quit [Ping timeout: 256 seconds]
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
krz has joined #ruby
riotjones has joined #ruby
postmodern has quit [Quit: Leaving]
scripore has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
riotjones has quit [Read error: Connection reset by peer]
nii236 has joined #ruby
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
mengu has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjone_ has joined #ruby
riotjone_ has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
scripore has quit [Quit: This computer has gone to sleep]
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
nii236 has quit [Ping timeout: 264 seconds]
riotjones has joined #ruby
Mohan_ has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
mengu has quit [Ping timeout: 264 seconds]
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
Renich has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjone_ has joined #ruby
chinmay_dd has quit []
shakes has quit [Quit: Leaving]
riotjone_ has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
DerisiveLogic has quit [Remote host closed the connection]
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
Mohan_ has quit [Ping timeout: 240 seconds]
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
SubjectiveBias has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
chinmay_dd has joined #ruby
riotjones has joined #ruby
Mohan_ has joined #ruby
taiansu has quit [Remote host closed the connection]
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
Mon_Ouie has joined #ruby
riotjones has joined #ruby
taiansu has joined #ruby
taiansu has quit [Read error: Connection reset by peer]
riotjones has quit [Read error: Connection reset by peer]
taiansu has joined #ruby
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
bahar has quit [Ping timeout: 265 seconds]
failshell has joined #ruby
jackcom has left #ruby [#ruby]
riotjones has joined #ruby
Mohan_ has quit [Ping timeout: 276 seconds]
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
taiansu_ has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
lidenskap has quit [Remote host closed the connection]
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
sigurding has quit [Quit: sigurding]
failshell has quit [Read error: Connection timed out]
taiansu has quit [Ping timeout: 240 seconds]
riotjones has quit [Read error: Connection reset by peer]
bahar has joined #ruby
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
bruno- has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
renanoronfle has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
riotjones has joined #ruby
Mohan_ has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 37.0.2/2015041600]]
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
Guest36441 has quit [Ping timeout: 256 seconds]
riotjones has joined #ruby
taiansu_ has quit [Remote host closed the connection]
Spami has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
Jarboe has quit []
riotjones has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
f3lp has quit [Ping timeout: 256 seconds]
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
Mohan_ has quit [Ping timeout: 245 seconds]
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
Mohan_ has joined #ruby
riotjone_ has joined #ruby
jeromelanteri has quit [Ping timeout: 240 seconds]
riotjone_ has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
asmodlol has quit [Ping timeout: 265 seconds]
riotjones has quit [Read error: Connection reset by peer]
Spami has quit [Quit: This computer has gone to sleep]
shuber_ has joined #ruby
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
taiansu has joined #ruby
riotjones has joined #ruby
baweaver has quit [Remote host closed the connection]
_blizzy_ has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
Mohan_ has quit [Ping timeout: 240 seconds]
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
sevenseacat has quit [Quit: Me dun like you no more.]
riotjones has quit [Read error: Connection reset by peer]
asmodlol has joined #ruby
riotjones has joined #ruby
shuber_ has quit [Ping timeout: 256 seconds]
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjone_ has joined #ruby
_blizzy_ has quit [Ping timeout: 265 seconds]
riotjone_ has quit [Read error: Connection reset by peer]
attlasbot has joined #ruby
User458764 has quit [Ping timeout: 265 seconds]
riotjone_ has joined #ruby
riotjone_ has quit [Read error: Connection reset by peer]
taiansu has quit [Remote host closed the connection]
riotjone_ has joined #ruby
hanmac has quit [Ping timeout: 256 seconds]
User458764 has joined #ruby
riotjone_ has quit [Read error: Connection reset by peer]
mengu has joined #ruby
riotjon__ has joined #ruby
riotjon__ has quit [Read error: Connection reset by peer]
vickleton has joined #ruby
Mohan_ has joined #ruby
riotjo___ has joined #ruby
riotjo___ has quit [Read error: Connection reset by peer]
riot_____ has joined #ruby
riot_____ has quit [Read error: Connection reset by peer]
rio______ has joined #ruby
rio______ has quit [Read error: Connection reset by peer]
byprdct has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_________ has joined #ruby
_________ has quit [Read error: No route to host]
nii236 has joined #ruby
Mohan_ has quit [Ping timeout: 255 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Mohan_ has joined #ruby
nii236 has quit [Ping timeout: 256 seconds]
_________ has joined #ruby
_________ has quit [Read error: Connection reset by peer]
tubuliferous_ has joined #ruby
Mohan_ has quit [Ping timeout: 264 seconds]
hanmac has joined #ruby
Joufflu has quit [Quit: Peace]
tubuliferous_ has quit [Ping timeout: 272 seconds]
djbkd has joined #ruby
vickleton has quit [Ping timeout: 256 seconds]
<snobbo> rrrruby eh
Sawbones has joined #ruby
taiansu has joined #ruby
arup_r has joined #ruby
Sawbones has quit [Ping timeout: 272 seconds]
turtil has quit [Ping timeout: 258 seconds]
Contigi has quit [Read error: Connection reset by peer]
shock_one has quit [Remote host closed the connection]
shock_one has joined #ruby
unshadow has quit [Quit: leaving]
chinmay_dd has quit [Remote host closed the connection]
unshadow has joined #ruby
_seanc_ has quit [Quit: _seanc_]
lidenskap has joined #ruby
shock_one has quit [Ping timeout: 240 seconds]
edwinvdgraaf has joined #ruby
Papipo has joined #ruby
P1RATEZ has quit []
Mohan has joined #ruby
<Aeyrix> Allenom: Do you need an answer to that or?
<Aeyrix> Oh, wait, no. You were helping someone.
Mohan is now known as Guest84178
<Allenom> Aeyrix, What are you referring to?
<Aeyrix> [17:57:44] <Allenom>[01:57:29] What's the difference between, void foo(char arr[]); and void boo(char *arr); ?
<Aeyrix> >those timestamps
<Allenom> Ah
<Allenom> I'm a C guru :)
<Aeyrix> :>
<Aeyrix> I'm a garbage tier C hacker when I need to be.
<Allenom> :)
frem has quit [Quit: Connection closed for inactivity]
last_staff has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mengu has quit [Remote host closed the connection]
Guest84178 has quit [Ping timeout: 256 seconds]
Papipo has quit [Remote host closed the connection]
Papipo has joined #ruby
Mohan_ has joined #ruby
marr has joined #ruby
neanderslob has quit [Remote host closed the connection]
edwinvdgraaf has quit [Remote host closed the connection]
attlasbot has quit [Quit: Leaving]
last_staff has quit [Ping timeout: 244 seconds]
armyriad has quit [Ping timeout: 258 seconds]
Renich has quit [Quit: leaving]
shuber_ has joined #ruby
digitalextremist has joined #ruby
arup_r has quit [Ping timeout: 265 seconds]
_________ has joined #ruby
_________ has quit [Read error: Connection reset by peer]
riot_____ has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shuber_ has quit [Ping timeout: 252 seconds]
Mohan_ has quit [Ping timeout: 244 seconds]
digitalextremist has quit [Ping timeout: 265 seconds]
taiansu has quit [Read error: Connection reset by peer]
riot_____ has quit [Ping timeout: 264 seconds]
shock_one has joined #ruby
A205B064 has quit [Ping timeout: 256 seconds]
chinmay_dd has joined #ruby
sinkensabe has joined #ruby
_blizzy_ has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
DeBot has quit [Quit: Crystal]
DeBot has joined #ruby
chinmay_dd has quit [Remote host closed the connection]
bb010g has quit [Quit: Connection closed for inactivity]
bronson has joined #ruby
vickleton has joined #ruby
digitalextremist has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
bronson has quit [Read error: Connection timed out]
DEA7TH has joined #ruby
gusrub has quit [Quit: Leaving]
GriffinHeart has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
lkba_ has quit [Ping timeout: 255 seconds]
edwinvdgraaf has joined #ruby
taiansu has joined #ruby
failshell has joined #ruby
Mohan_ has joined #ruby
Papipo has quit [Remote host closed the connection]
edwinvdgraaf has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
Papipo has joined #ruby
shock_one has quit [Remote host closed the connection]
shock_one has joined #ruby
chinmay_dd has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
shock_one has quit [Read error: Connection reset by peer]
edwinvdg_ has joined #ruby
Zai00 has joined #ruby
shock_one has joined #ruby
failshell has quit [Ping timeout: 256 seconds]
edwinvdg_ has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
gauke has joined #ruby
djbkd has quit [Remote host closed the connection]
Mohan_ has quit [Ping timeout: 256 seconds]
edwinvdgraaf has quit [Remote host closed the connection]
shock_one has quit [Ping timeout: 255 seconds]
Mohan_ has joined #ruby
jph98 has joined #ruby
selu has joined #ruby
arfvidse_ has joined #ruby
edwinvdgraaf has joined #ruby
sinkensabe has joined #ruby
arfvidse_ has quit [Client Quit]
lidenskap has quit [Remote host closed the connection]
Ropeney has joined #ruby
code1o6 has joined #ruby
code1o6 has quit [Remote host closed the connection]
code1o6 has joined #ruby
code1o6 has quit [Client Quit]
edwinvdgraaf has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
code1o6 has joined #ruby
Mohan_ has quit [Ping timeout: 255 seconds]
<apeiros> hanmac: thanks for pinging. I was not around. !ops will ping all ops.
<hanmac> ah good to konw
sinkensabe has joined #ruby
gauke has quit [Read error: Connection reset by peer]
hewenhon_ has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 244 seconds]
sinkensabe has quit [Remote host closed the connection]
al2o3-cr has quit [Ping timeout: 264 seconds]
nii236 has joined #ruby
hewenhong has joined #ruby
Musashi007 has joined #ruby
al2o3-cr has joined #ruby
charliesome has joined #ruby
Papipo has quit [Read error: Connection reset by peer]
Papipo has joined #ruby
selu has quit [Quit: Textual IRC Client: www.textualapp.com]
rdark has joined #ruby
DLSteve has joined #ruby
Papipo_ has joined #ruby
Papipo has quit [Read error: Connection reset by peer]
nii236 has quit [Ping timeout: 240 seconds]
sinkensabe has joined #ruby
Mohan has joined #ruby
gauke has joined #ruby
Mohan is now known as Guest23885
Igorshp has joined #ruby
ERIK__ has joined #ruby
<DLSteve> Is there a recommended book for a reference of the Ruby Language?
blizzy has joined #ruby
code1o6 has quit [Ping timeout: 244 seconds]
sinkensabe has quit [Remote host closed the connection]
exadeci has joined #ruby
sinkensabe has joined #ruby
jbomo has quit [Ping timeout: 264 seconds]
Papipo_ has quit [Remote host closed the connection]
Papipo has joined #ruby
_blizzy_ has quit [Ping timeout: 256 seconds]
jph98 has quit [Quit: jph98]
gizless has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
yeticry has quit [Ping timeout: 264 seconds]
Guest23885 has quit [Ping timeout: 244 seconds]
gizmore has quit [Ping timeout: 246 seconds]
Papipo has quit [Remote host closed the connection]
yeticry has joined #ruby
sinkensabe has quit [Remote host closed the connection]
taiansu has quit [Remote host closed the connection]
Anthony__ has joined #ruby
<rdark> DLSteve: depends what you're looking for
Papipo has joined #ruby
bruno- has joined #ruby
taiansu has joined #ruby
taiansu has quit [Read error: Connection reset by peer]
<rdark> for beginners, there's _why's poignant guide (which is a little dated now I guess)
<rdark> and there's the bastards book of ruby
arup_r has joined #ruby
Shidash_ has joined #ruby
joe2 has joined #ruby
dudedudeman1 has joined #ruby
shuber_ has joined #ruby
<rdark> For OO theory, there's Practical Object Oriented Design in Ruby
<rdark> rails is a whole other topic in itself
chinmay_dd has quit [Remote host closed the connection]
marr has quit [Ping timeout: 264 seconds]
Shidash has quit [Ping timeout: 256 seconds]
dudedudeman has quit [Ping timeout: 256 seconds]
livinded has quit [Ping timeout: 256 seconds]
prasselpikachu has quit [Ping timeout: 256 seconds]
thoffmeyer has quit [Ping timeout: 256 seconds]
blizzy has quit [Ping timeout: 256 seconds]
asmodlol has quit [Ping timeout: 256 seconds]
tobiasvl has quit [Ping timeout: 256 seconds]
tvl has joined #ruby
thoffmeyer has joined #ruby
thoffmeyer has quit [Changing host]
thoffmeyer has joined #ruby
asmodlol has joined #ruby
DLSteve has quit [Ping timeout: 256 seconds]
tvl is now known as tobiasvl
Papipo has quit [Remote host closed the connection]
Papipo has joined #ruby
prasselpikachu has joined #ruby
thatslifeson has joined #ruby
shuber_ has quit [Ping timeout: 244 seconds]
coffeecup has joined #ruby
attlasbot has joined #ruby
bigsky_ has joined #ruby
coffeecup has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
chinmay_dd has joined #ruby
sent-hil has quit [Quit: Connection closed for inactivity]
DLSteve has joined #ruby
bigsky has quit [Ping timeout: 240 seconds]
tubuliferous_ has joined #ruby
Guest6417 has quit [Ping timeout: 245 seconds]
vdamewood has joined #ruby
brandon has joined #ruby
brandon is now known as Guest91529
tubuliferous_ has quit [Ping timeout: 240 seconds]
bigsky_ has quit [Ping timeout: 250 seconds]
bigsky has joined #ruby
sinkensabe has joined #ruby
gauke has quit [Ping timeout: 245 seconds]
Igorshp has quit [Remote host closed the connection]
oz` has joined #ruby
dfoolz_ has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
psy_ has quit [Ping timeout: 272 seconds]
kartouch_ has joined #ruby
sinkensabe has quit [Remote host closed the connection]
enliightenment has joined #ruby
devoldmx_ has joined #ruby
wlanboy_ has joined #ruby
shock_one has joined #ruby
timonv has joined #ruby
kyle____ has joined #ruby
swills_ has joined #ruby
diegoviola has quit [Remote host closed the connection]
Mohan_ has joined #ruby
devoldmx has quit [Ping timeout: 255 seconds]
scpike_ has joined #ruby
Papipo has quit [Remote host closed the connection]
mjmac_ has joined #ruby
unreal_ has joined #ruby
axsuul_ has joined #ruby
Papipo has joined #ruby
shock_one has quit [Remote host closed the connection]
sinkensabe has joined #ruby
moloch has joined #ruby
jack_rabbit_ has joined #ruby
sweeper_ has joined #ruby
shock_one has joined #ruby
bakingbread has joined #ruby
hostess_ has joined #ruby
Darkwater_ has joined #ruby
mgorbach_ has joined #ruby
chihhsin_ has joined #ruby
prasselpikachu has quit [*.net *.split]
tobiasvl has quit [*.net *.split]
unshadow has quit [*.net *.split]
hanmac has quit [*.net *.split]
jack_rabbit has quit [*.net *.split]
Allenom has quit [*.net *.split]
axsuul has quit [*.net *.split]
poguez_ has quit [*.net *.split]
ninjazach has quit [*.net *.split]
enlightenment has quit [*.net *.split]
Deele has quit [*.net *.split]
atmosx has quit [*.net *.split]
dfoolz has quit [*.net *.split]
mozzarella has quit [*.net *.split]
Nilium has quit [*.net *.split]
Billias has quit [*.net *.split]
brixen has quit [*.net *.split]
wookiehangover has quit [*.net *.split]
unreal has quit [*.net *.split]
chihhsin has quit [*.net *.split]
Derasi has quit [*.net *.split]
auraka has quit [*.net *.split]
jinie has quit [*.net *.split]
saltsa has quit [*.net *.split]
mgorbach has quit [*.net *.split]
kartouch has quit [*.net *.split]
epochwolf has quit [*.net *.split]
tessi_zz has quit [*.net *.split]
bartj3 has quit [*.net *.split]
machty has quit [*.net *.split]
oz has quit [*.net *.split]
cschneid has quit [*.net *.split]
hostess has quit [*.net *.split]
sweeper has quit [*.net *.split]
icedp has quit [*.net *.split]
scpike has quit [*.net *.split]
omegahm has quit [*.net *.split]
Darkwater has quit [*.net *.split]
wlanboy has quit [*.net *.split]
Seich has quit [*.net *.split]
mjmac has quit [*.net *.split]
swills has quit [*.net *.split]
zly has quit [*.net *.split]
sparr has quit [*.net *.split]
kyle__ has quit [*.net *.split]
george2 has quit [*.net *.split]
papercode has quit [*.net *.split]
mgorbach_ is now known as mgorbach
sparr has joined #ruby
hewenhong has quit [Remote host closed the connection]
Narzew has joined #ruby
brixen_ has joined #ruby
x77686d has quit [Quit: x77686d]
Billias has joined #ruby
bartj3 has joined #ruby
machty_ has joined #ruby
saltsa has joined #ruby
jinie has joined #ruby
sinkensabe has quit [Remote host closed the connection]
goggy has joined #ruby
george2 has joined #ruby
ninjazach has joined #ruby
DLSteve has quit [Quit: Textual IRC Client: www.textualapp.com]
shock_one has quit [Ping timeout: 258 seconds]
machty_ is now known as machty
Nilium has joined #ruby
atmosx has joined #ruby
n008f4g_ has joined #ruby
tvl has joined #ruby
tvl is now known as tobiasvl
sinkensabe has joined #ruby
wookiehangover has joined #ruby
hanmac has joined #ruby
Anthony__ has left #ruby [#ruby]
_blizzy_ has joined #ruby
<_blizzy_> anyone know any good sandbox gems for ruby?
cschneid has joined #ruby
epochwolf has joined #ruby
poguez_ has joined #ruby
sinkensabe has quit [Remote host closed the connection]
unshadow has joined #ruby
shock_one has joined #ruby
rdark has quit [Quit: leaving]
rahult has joined #ruby
diegoviola has joined #ruby
Deele has joined #ruby
Seich has joined #ruby
asi_ has joined #ruby
prasselpikachu has joined #ruby
auraka has joined #ruby
lidenskap has joined #ruby
fgo has joined #ruby
omegahm has joined #ruby
sinkensabe has joined #ruby
Leef_ has joined #ruby
bigsky has quit [Read error: Connection reset by peer]
bigsky has joined #ruby
dorei has joined #ruby
TinkerTyper has quit [Ping timeout: 244 seconds]
sinkensabe has quit [Remote host closed the connection]
lidenskap has quit [Ping timeout: 244 seconds]
fgo has quit [Ping timeout: 240 seconds]
attlasbot has quit [Quit: Leaving]
TinkerTyper has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thatslifeson has quit [Remote host closed the connection]
<dorei> hello
devoldmx_ has quit [Remote host closed the connection]
<dorei> let's say i have some code that scraps a url
<dorei> how can i test that?
marr has joined #ruby
<dorei> i guess that the tests should be run against a prefetched instance of the url's html
AlphaAtom has joined #ruby
prasselpikachu_ has joined #ruby
prasselpikachu has quit [Ping timeout: 256 seconds]
blizzy has joined #ruby
quimrstorres has joined #ruby
axsuul_ has quit [Ping timeout: 272 seconds]
papercode has joined #ruby
mozzarella has joined #ruby
_blizzy_ has quit [Ping timeout: 265 seconds]
sinkensabe has joined #ruby
sinkensabe has quit [Remote host closed the connection]
astrobun_ has joined #ruby
<atmosx> dorei: You could run tests on a live website using capybara (js too). But what happens if that URL structure/css ids and calsses change without prior notification? :-)
<atmosx> bbl
<dorei> i dont want to run it on a live website
_blizzy_ has joined #ruby
astrobun_ has quit [Remote host closed the connection]
hewenhong has joined #ruby
ta has joined #ruby
AlHafoudh has joined #ruby
Mohan_ has quit [Ping timeout: 250 seconds]
Papipo has quit [Remote host closed the connection]
sinkensabe has joined #ruby
Papipo has joined #ruby
sinkensabe has quit [Remote host closed the connection]
Deele has quit [Ping timeout: 256 seconds]
shuber_ has joined #ruby
sinkensabe has joined #ruby
Musashi007 has joined #ruby
jottr has joined #ruby
Ropeney has joined #ruby
blizzy has quit [*.net *.split]
Seich has quit [*.net *.split]
asi_ has quit [*.net *.split]
toretore has joined #ruby
shuber_ has quit [Ping timeout: 265 seconds]
sinkensabe has quit [Remote host closed the connection]
idafyaid has quit [Ping timeout: 245 seconds]
ndrei has joined #ruby
Derasi has joined #ruby
Deele has joined #ruby
failshell has joined #ruby
DLSteve has joined #ruby
ta has quit [Remote host closed the connection]
ta has joined #ruby
denver has joined #ruby
Seich has joined #ruby
ta has quit [Read error: Connection reset by peer]
ta has joined #ruby
Derasi has quit [Ping timeout: 256 seconds]
failshell has quit [Ping timeout: 250 seconds]
shock_one has quit [Remote host closed the connection]
asi_ has joined #ruby
shock_one has joined #ruby
Mohan has joined #ruby
Mohan is now known as Guest73495
shock_one has quit [Read error: No route to host]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
ebbflowgo has quit [Read error: Connection reset by peer]
sinkensabe has joined #ruby
ebbflowgo has joined #ruby
duncannz has joined #ruby
nfk has joined #ruby
casadei has joined #ruby
shock_one has joined #ruby
duncannz has quit [Max SendQ exceeded]
diegoviola has quit [Quit: WeeChat 1.1.1]
leafybasil has quit [Remote host closed the connection]
duncannz has joined #ruby
Squarepy has joined #ruby
Guest73495 has quit [Ping timeout: 250 seconds]
n008f4g_ has quit [Ping timeout: 256 seconds]
Deele has quit [*.net *.split]
Zai00 has quit [Quit: Zai00]
casadei has quit [Ping timeout: 240 seconds]
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
Musashi007 has quit [Quit: Musashi007]
Darkwater_ is now known as Darkwater
Deele has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
Alina-malina has quit [Ping timeout: 256 seconds]
sevenseacat has joined #ruby
Mohan_ has joined #ruby
nii236 has joined #ruby
diegoviola has joined #ruby
shock_one has quit [Remote host closed the connection]
shock_one has joined #ruby
jayeshsolanki has joined #ruby
shock_one has quit [Read error: Connection reset by peer]
shock_one has joined #ruby
qwertme has joined #ruby
ta has quit [Remote host closed the connection]
nii236 has quit [Ping timeout: 252 seconds]
Papipo has quit [Remote host closed the connection]
lkba has joined #ruby
Mohan_ has quit [Ping timeout: 246 seconds]
Papipo has joined #ruby
phutchins has joined #ruby
shock_one has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
shock_one has joined #ruby
Zai00 has joined #ruby
sinkensabe has joined #ruby
jenrzzz has joined #ruby
gluten_hell has joined #ruby
A124 has quit [Remote host closed the connection]
FernandoBasso has joined #ruby
phutchins has quit [Ping timeout: 276 seconds]
seitensei has quit [Ping timeout: 252 seconds]
nisstyre has quit [Ping timeout: 256 seconds]
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shock_one has quit [Ping timeout: 255 seconds]
qwertme has joined #ruby
nisstyre has joined #ruby
mjs2600 has joined #ruby
xxneolithicxx has quit [Ping timeout: 255 seconds]
ghr has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
Deele has quit [Ping timeout: 256 seconds]
qwertme has quit [Client Quit]
Ropeney has quit [Max SendQ exceeded]
konsolebox has joined #ruby
tubuliferous has joined #ruby
chihhsin_ has quit [Quit: leaving]
chihhsin has joined #ruby
Musashi007 has joined #ruby
Deele has joined #ruby
mjs2600 has quit []
mjs2600 has joined #ruby
codecop has joined #ruby
tubuliferous has quit [Ping timeout: 256 seconds]
shuber_ has joined #ruby
Rickmasta has joined #ruby
hewenhong has quit [Remote host closed the connection]
iamninja has quit [Read error: Connection reset by peer]
Leef_ has quit [Quit: Leaving]
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shuber_ has quit [Ping timeout: 246 seconds]
bakingbread is now known as icedp
rahult has joined #ruby
sigurding has joined #ruby
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 37.0.2/2015041600]]
cryptarium has joined #ruby
arup_r has joined #ruby
duncannz has quit [Ping timeout: 258 seconds]
Papipo has quit [Remote host closed the connection]
hewenhong has joined #ruby
cryptarium_ has quit [Ping timeout: 272 seconds]
rahult has quit [Client Quit]
Notte_ has joined #ruby
Papipo has joined #ruby
Papipo has quit [Remote host closed the connection]
<arup_r> any direct command to do the same as : Dir.mkdir(directory_name) unless File.exists?(directory_name) ?
Papipo has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
sinkensabe has quit [Remote host closed the connection]
sdothum has joined #ruby
<arup_r> Am I visible ?
<sevenseacat> no.
Narzew has quit [Ping timeout: 256 seconds]
leafybasil has joined #ruby
cryptarium has quit [Ping timeout: 252 seconds]
<arup_r> ok
<arup_r> :)
n008f4g_ has joined #ruby
konsolebox has quit [Ping timeout: 258 seconds]
Narzew has joined #ruby
MasterPiece has joined #ruby
<adaedra> arup_r: there's a mkdir_p somewhere
<arup_r> yes,, just found
<arup_r> thanks
sinkensabe has joined #ruby
iasoon has joined #ruby
sigurding_ has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sigurding has quit [Ping timeout: 264 seconds]
ghr has quit [Ping timeout: 246 seconds]
iamninja has joined #ruby
hewenhong has quit [Remote host closed the connection]
Papipo has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Papipo has joined #ruby
konsolebox has joined #ruby
Mohan_ has joined #ruby
bruno- has quit [Ping timeout: 264 seconds]
wasamasa has quit [Quit: ZNC - http://znc.in]
Guest22687 has quit [Ping timeout: 255 seconds]
Mohan_ has quit [Ping timeout: 250 seconds]
prasselpikachu_ has quit [Ping timeout: 265 seconds]
Musashi007 has quit [Quit: Musashi007]
chinmay_dd has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
wasamasa has joined #ruby
wasamasa has quit [Changing host]
wasamasa has joined #ruby
failshell has joined #ruby
Papipo has quit [Remote host closed the connection]
Papipo has joined #ruby
qwertme has joined #ruby
shock_one has joined #ruby
lxsameer has quit [Quit: Leaving]
Papierkorb has joined #ruby
failshell has quit [Ping timeout: 252 seconds]
Narzew has quit [Ping timeout: 256 seconds]
spider-mario has joined #ruby
Biohazard has joined #ruby
prasselpikachu has joined #ruby
sigurding_ has quit [Quit: sigurding_]
Biohazard is now known as Guest69973
ki0 has quit []
ki0 has joined #ruby
fgo has joined #ruby
Papipo has quit [Read error: Connection reset by peer]
neektza has quit [Quit: Connection closed for inactivity]
Papipo has joined #ruby
iteratorP has joined #ruby
iteratorP has quit [Remote host closed the connection]
shock_one has quit [Ping timeout: 272 seconds]
sinkensabe has joined #ruby
qwertme has quit [Ping timeout: 256 seconds]
Alina-malina has joined #ruby
Papipo has quit [Remote host closed the connection]
Papipo has joined #ruby
iteratorP has joined #ruby
HotCoder has joined #ruby
<HotCoder> hello there
fgo has quit [Ping timeout: 258 seconds]
<HotCoder> what ide/editor do you guys use for ruby?
iteratorP has quit [Remote host closed the connection]
<Jamo> vim
Hounddog has joined #ruby
<sevenseacat> sublime text
<adaedra> vim
qwertme has joined #ruby
<certainty> emacs
<HotCoder> interesting
<HotCoder> i think i'll use sublime
gluten_hell has quit [Quit: Computer has gone to sleep.]
<certainty> *nod*
<diegoviola> vim
Mohan has joined #ruby
Mohan is now known as Guest30083
Spami has joined #ruby
shuber_ has joined #ruby
lthomas has joined #ruby
lthomas has quit [Client Quit]
<diegoviola> certainty: do you use evil with emacs?
<apeiros> HotCoder: sublime
<HotCoder> yeah
<HotCoder> i'll do that too
<HotCoder> fuck i forgot my git password
Guest30083 has quit [Ping timeout: 256 seconds]
<wasamasa> diegoviola: I do!
<diegoviola> wasamasa: how do you like it
<wasamasa> diegoviola: I like it
<diegoviola> wasamasa: I need to try that sometime
sinkensabe has quit [Remote host closed the connection]
scripore has joined #ruby
<wasamasa> diegoviola: just don't use a starterkit, hmkay
<diegoviola> wtf is that?
shuber_ has quit [Ping timeout: 255 seconds]
ghr has joined #ruby
havenwood has joined #ruby
<wasamasa> well
sinkensabe has joined #ruby
<wasamasa> ever heard of oh-my-zsh?
<certainty> diegoviola: nope
<wasamasa> that's a starterkit for zsh
rodfersou has joined #ruby
<certainty> i do use a starterkit for zsh
<sevenseacat> i dont
<diegoviola> wasamasa: I don't use oh-my-zsh
<diegoviola> nor zsh
<wasamasa> well, ok
<diegoviola> and yes I heard of it
<diegoviola> but I never used it
<wasamasa> the thing is that there's these things, but for emacs/vim
<certainty> i use zpresto for zsh and i like it
sinkensabe has quit [Remote host closed the connection]
<wasamasa> they're basically huge and complicated configs coming with snazzy looking things that then turn out to take a life of their own and being hard to debug
jeank has joined #ruby
<DLSteve> wasamasa, Yah I just use standard bash for that reasion.
casadei has joined #ruby
Papipo has quit [Remote host closed the connection]
<wasamasa> which is very weird because you try the standard advice for modifying PATH and it just doesn't work
Papipo has joined #ruby
<certainty> agreed. OTOH getting to a configuration that is somewhat complete can easily take long without starterkits in emacs
<wasamasa> so you'll have instead to bother the people who wrote it
<HotCoder> i wish i knew wtf you guys were talking about
weemsledeux has joined #ruby
Guest1421 has joined #ruby
turtil has joined #ruby
chinmay_dd has quit [Remote host closed the connection]
<DLSteve> HotCoder, setting up emacs I think.
ghr has quit [Ping timeout: 256 seconds]
<wasamasa> nah, the discussion hasn't even come to that point yet
jeank has left #ruby [#ruby]
goggy has quit [Ping timeout: 264 seconds]
jeanfoo has joined #ruby
casadei has quit [Ping timeout: 244 seconds]
jeanfoo has quit [Quit: Page closed]
dudedudeman1 has quit [Ping timeout: 240 seconds]
iasoon has quit [Ping timeout: 252 seconds]
rodfersou has quit [Ping timeout: 256 seconds]
kenndel has quit [Ping timeout: 244 seconds]
Mohan_ has joined #ruby
jayeshsolanki has quit [Quit: bye!]
goggy has joined #ruby
* HotCoder wishes he knew a lot about ruby
* HotCoder feels awkward
<sevenseacat> start learning :)
_blizzy_ has quit [Ping timeout: 276 seconds]
<HotCoder> how long does it take one to "git gud"?
dudedudeman has joined #ruby
devoldmx has joined #ruby
nii236 has joined #ruby
<sevenseacat> depends.
<certainty> 10 years
chinmay_dd has joined #ruby
Mohan_ has quit [Ping timeout: 265 seconds]
chinmay_dd has quit [Remote host closed the connection]
goggy has quit [Ping timeout: 256 seconds]
chinmay_dd has joined #ruby
chinmay_dd has quit [Remote host closed the connection]
goggy has joined #ruby
kenndel has joined #ruby
devoldmx has quit [Ping timeout: 245 seconds]
iasoon has joined #ruby
Mohan_ has joined #ruby
nii236 has quit [Ping timeout: 265 seconds]
phutchins has joined #ruby
ndrei has quit [Ping timeout: 276 seconds]
Mohan_ has quit [Ping timeout: 255 seconds]
SubjectiveBias has quit [Ping timeout: 252 seconds]
<arup_r> I have this array. --> ["Greco Roman Ltd", "Twisted Records (INgrooves)"] and I want to get the result as "'Greco Roman Ltd','Twisted Records (INgrooves)'" Is it possible ?
Mohan_ has joined #ruby
<havenwood> arup_r: yup!
<arup_r> >> ["Greco Roman Ltd", "Twisted Records (INgrooves)"].join(",")
<ruboto> arup_r # => "Greco Roman Ltd,Twisted Records (INgrooves)" (https://eval.in/364085)
<arup_r> don't give what I want
<arup_r> havenwood: hints plz
<sevenseacat> join with the extra quotes?
rahult has joined #ruby
goggy has quit [Ping timeout: 265 seconds]
rahult is now known as rahult_
<havenwood> arup_r: Or first map the quotes on with interpolation then join.
platzhirsch has joined #ruby
rahult_ is now known as rahult
rahult is now known as rahult_
rahult_ is now known as rahult
javiercito has joined #ruby
Mohan_ has quit [Ping timeout: 272 seconds]
<havenwood> arup_r: Know how to use #map to return an Array of Strings with the single quotes added?
sinkensabe has joined #ruby
A124 has joined #ruby
crazydiamond has quit [Ping timeout: 265 seconds]
jottr has quit [Read error: Connection reset by peer]
<arup_r> no :(
<arup_r> i didn't get you.......
jottr has joined #ruby
<havenwood> >> ['hi', 'ya'].map { |word| "***#{word}***" }
<ruboto> havenwood # => ["***hi***", "***ya***"] (https://eval.in/364086)
<arup_r> Ooooo.......
Papipo has quit [Remote host closed the connection]
turtil has quit [Ping timeout: 256 seconds]
<arup_r> >> ['hi', 'ya'].map { |word| "***#{word}***" }.join(",")
<ruboto> arup_r # => "***hi***,***ya***" (https://eval.in/364087)
<havenwood> arup_r: yup yup
<arup_r> what are those ***
<arup_r> ??
Papipo has joined #ruby
<arup_r> >> ['hi', 'ya'].map { |word| "#{word}" }.join(",")
tubuliferous has joined #ruby
<ruboto> arup_r # => "hi,ya" (https://eval.in/364089)
RegulationD has joined #ruby
<havenwood> arup_r: Three splats. You wanted a single quote, ya?
<arup_r> vanished
<arup_r> humm
<arup_r> >> ['hi', 'ya'].map { |word| "'#{word}'" }.join(",")
<ruboto> arup_r # => "'hi','ya'" (https://eval.in/364105)
<arup_r> yupppppppp
sinkensabe has quit [Remote host closed the connection]
Mohan has joined #ruby
Mohan is now known as Guest74093
Deele2 has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
bmurt has joined #ruby
platzhirsch has quit [Quit: Leaving.]
RegulationD has quit [Ping timeout: 272 seconds]
tubuliferous has quit [Ping timeout: 272 seconds]
Deele has quit [Ping timeout: 256 seconds]
Guest74093 has quit [Ping timeout: 258 seconds]
<arup_r> and i am \0/
<sevenseacat> you're manually building sql???
<sevenseacat> why!?
<sevenseacat> just pass your array of stuff straight to AR
<apeiros> the common reason is ignorance
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<arup_r> apeiros: no
<arup_r> intentionally
<apeiros> arup_r: yes
gizless has quit [Ping timeout: 256 seconds]
gizmore has joined #ruby
A124 has quit [Ping timeout: 264 seconds]
<arup_r> using \copy command of Postgres to get CSV file is fastest...
<arup_r> and it is under a Rake task
<arup_r> that's why I did it this way
Hounddog has quit [Remote host closed the connection]
codecop has quit [Remote host closed the connection]
A124 has joined #ruby
<apeiros> arup_r: so instead of putting that code into a library, you shell out to rake? doesn't sound reasonable.
scripore has quit [Quit: This computer has gone to sleep]
<arup_r> I agree... But I don't know what other fastest way to build the csv file without using Ruby CSV lib.. which is in my case much slower.. and I got one suggestion from http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/433445
bmurt has quit []
<arup_r> which had been asked by me..
<arup_r> apeiros:
hewenhong has joined #ruby
SouL_|_ has quit [Read error: Connection reset by peer]
SouL_|_ has joined #ruby
<apeiros> yes, copy is the fastest to load a csv. and no, this has nothing to do with shelling out to rake to do it.
<arup_r> Ok.. Well your sugesstion then ?
<apeiros> 15:13 apeiros: arup_r: so instead of putting that code into a library, you shell out to rake? doesn't sound reasonable.
shadowcat has joined #ruby
User458764 has joined #ruby
shadowcat has quit [Client Quit]
qwertme has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
<arup_r> apeiros: Well.. I got some code http://stackoverflow.com/q/15408285/2767755 .. I'll change my code like this...
shuber_ has joined #ruby
<arup_r> But can you tell me why are you against to put it inside `sh` method ? what is the disadvantage of it ? Asking for self knowledge
_blizzy_ has joined #ruby
thumpba has joined #ruby
<shevy> :)
mengu has joined #ruby
jenrzzz has joined #ruby
shuber_ has quit [Ping timeout: 256 seconds]
<apeiros> arup_r: I suggest you think about the reason. pros and contras.
<yxhuvud> .. loading the full rails environment in something that should be fast? Heh.
scripore has joined #ruby
<arup_r> humm... then I need to wait for situations to understand why it is bad.. Right now my skills not helping me to imagine why is it bad.. But I'll remember your warnings...
gluten_hell has joined #ruby
<arup_r> yxhuvud: rake db:create also does load.. Right ? :)
mengu has quit [Ping timeout: 264 seconds]
<arup_r> and all rake db:*... etc.. ??
jenrzzz has quit [Ping timeout: 276 seconds]
<yxhuvud> yes.
<shevy> I love colours
<arup_r> I am seeing it fast here...
lidenskap has joined #ruby
parduse has joined #ruby
<yxhuvud> arup: it will grow slower as your app grows.
<apeiros> arup_r: I think you should start with this question: why do you shell out in the first place?
<yxhuvud> but it may not matter if you don't need to do it often
<arup_r> yxhuvud: daily once...
<arup_r> this task will be invoked..
<yxhuvud> if nothing else, it is quite possible to invoke rake tasks directly from the code.
<arup_r> yes.. I did so from the controller..
parduse has quit [Client Quit]
<arup_r> :D
<arup_r> apeiros: humm..
airdisa has joined #ruby
countryHick has joined #ruby
gluten_hell has quit [Ping timeout: 252 seconds]
Mohan_ has joined #ruby
ndrei has joined #ruby
SouL_|_ has quit [Read error: Connection reset by peer]
lidenskap has quit [Ping timeout: 264 seconds]
parduse has joined #ruby
asmodlol has quit [Ping timeout: 255 seconds]
SouL_|_ has joined #ruby
slawrence00 has joined #ruby
aryaching has joined #ruby
asmodlol has joined #ruby
Blaguvest has joined #ruby
Notte_ has quit [Remote host closed the connection]
zzxc has joined #ruby
bahar has quit [Ping timeout: 256 seconds]
The_Phoenix has joined #ruby
parduse has quit []
_blizzy_ has quit [Ping timeout: 265 seconds]
Guest1421 has quit [Ping timeout: 240 seconds]
bahar has joined #ruby
Mohan_ has quit [Ping timeout: 272 seconds]
failshell has joined #ruby
Mohan_ has joined #ruby
chinmay_dd has joined #ruby
Sawbones has joined #ruby
Sawbones has quit [Remote host closed the connection]
parduse has joined #ruby
rahult has quit [Read error: Connection reset by peer]
rahult has joined #ruby
<shevy> undefined method `parse' for Time:Class (NoMethodError)
<shevy> hmmm
avelldiroll has quit [Ping timeout: 245 seconds]
failshell has quit [Ping timeout: 276 seconds]
<adaedra> strptime
<adaedra> or it's in another class, maybe
Mohan_ has quit [Ping timeout: 252 seconds]
mordof has joined #ruby
bMalum has joined #ruby
parduse has quit []
avelldiroll has joined #ruby
rahult_ has joined #ruby
rahult has quit [Ping timeout: 272 seconds]
Mohan_ has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<kstuart> DateTime.parse
<kstuart> then you can do #to_time if you want a time object
noonius has joined #ruby
parduse has joined #ruby
<mordof> for turning a string into a time object?
vdamewood has quit [Quit: Life beckons.]
<mordof> it'd be nice if Time could do the full parsing in that scenario.
<hectortrope> Hi can some one tell me where can I learn about api?
<hectortrope> api management
<apeiros> kstuart: Time has parse of its own
<apeiros> shevy: a) as adaedra already said, use strptime over parse, b) require 'time'.
Mohan_ has quit [Ping timeout: 256 seconds]
<kstuart> true, uses Date._parse
<apeiros> mordof: Time can.
<apeiros> kstuart: yes. and does not generate an intermediary DateTime object
bruno- has joined #ruby
<kstuart> I've just been doing a load of DateTime parsing and assumed from shevy's message Time had no parse...
<kstuart> my bad ;)
<kstuart> I see Date Time and DateTime all have parse method
Musashi007 has joined #ruby
nii236 has joined #ruby
rahult_ has quit [Ping timeout: 245 seconds]
<apeiros> kstuart: Time doesn't have .parse - until you require 'time'.
platzhirsch has joined #ruby
parduse has quit []
alexherbo2 has quit [Ping timeout: 246 seconds]
<kstuart> yeah, I see that in the docs "When ‘time’ is required, Time is extended with additional methods for parsing and converting Times."
parduse has joined #ruby
nii236 has quit [Ping timeout: 264 seconds]
Mohan has joined #ruby
Mohan is now known as Guest28892
unclouded has quit [Ping timeout: 265 seconds]
parduse has quit []
Guest28892 has quit [Ping timeout: 244 seconds]
taiansu has joined #ruby
Musashi007 has quit [Quit: Musashi007]
Mohan_ has joined #ruby
weaksauce has joined #ruby
kirun has joined #ruby
scripore has joined #ruby
shuber_ has joined #ruby
DeBot has quit [Remote host closed the connection]
geefolk has joined #ruby
jhass has quit [Quit: Bye]
geefolk has quit [Max SendQ exceeded]
geefolk has joined #ruby
yehh_ has joined #ruby
geefolk has quit [Max SendQ exceeded]
yehh_ has quit [Max SendQ exceeded]
geefolk has joined #ruby
yehh__ has joined #ruby
geefolk has quit [Max SendQ exceeded]
ghr has joined #ruby
yehh__ has quit [Max SendQ exceeded]
Mohan_ has quit [Ping timeout: 272 seconds]
Ilyes512 has joined #ruby
alexherbo2 has joined #ruby
taiansu has quit [Read error: Connection reset by peer]
taiansu has joined #ruby
shuber_ has quit [Ping timeout: 256 seconds]
leslie has quit [Ping timeout: 276 seconds]
JStoker has quit [Ping timeout: 276 seconds]
alexherbo2 has quit [Client Quit]
al2o3-cr has quit [Ping timeout: 276 seconds]
soulcake has quit [Ping timeout: 276 seconds]
al2o3-cr has joined #ruby
kobain has joined #ruby
[k- has joined #ruby
ghr has quit [Ping timeout: 246 seconds]
leslie has joined #ruby
leslie has quit [Changing host]
leslie has joined #ruby
unclouded has joined #ruby
edwardly has quit [Read error: Connection reset by peer]
JStoker has joined #ruby
soulcake has joined #ruby
Aswebb_ has joined #ruby
DLSteve has quit [Quit: Textual IRC Client: www.textualapp.com]
charliesome has quit [Quit: zzz]
catsoup has quit [Ping timeout: 276 seconds]
catsoup has joined #ruby
diego3 has joined #ruby
Dreamer3_ has joined #ruby
Dreamer3 has quit [Read error: Connection reset by peer]
rahult has joined #ruby
diego3 has quit [Changing host]
diego3 has joined #ruby
diegoviola is now known as Guest76811
diego3 is now known as diegoviola
bruno- has quit [Read error: Connection reset by peer]
Mohan_ has joined #ruby
f3lp has joined #ruby
<arup_r> apeiros: Thanks for the teaching ... and I resolved it.. using this https://gist.github.com/aruprakshit/7d3c78c86c2ea33ebd85#file-csv-rake-L5 .. this time no shell out.. used AR.. and worked well..
Guest76811 has quit [Ping timeout: 250 seconds]
Sawbones has joined #ruby
Squarepy has quit [Quit: Leaving]
Jarboe has joined #ruby
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
jhass has joined #ruby
pwattstbd has joined #ruby
Porfa has joined #ruby
DeBot has joined #ruby
tagrudev has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
Billias has quit [Read error: Connection reset by peer]
ShortyCode has joined #ruby
byprdct has joined #ruby
hewenhong has quit [Remote host closed the connection]
AlexRussia has quit [Quit: WeeChat 1.2-dev]
spiderbyte has joined #ruby
taiansu has quit [Remote host closed the connection]
taiansu has joined #ruby
Papipo has quit [Ping timeout: 264 seconds]
sinkensabe has joined #ruby
hewenhon_ has joined #ruby
sinkensabe has quit [Remote host closed the connection]
Dreamer3_ is now known as Dreamer3
Billias has joined #ruby
scripore has joined #ruby
taiansu has quit [Ping timeout: 256 seconds]
sinkensabe has joined #ruby
scripore has quit [Max SendQ exceeded]
tubuliferous has joined #ruby
RegulationD has joined #ruby
* arup_r expecting a "good job!!" ... but :(
Mohan_ has quit [Ping timeout: 265 seconds]
centrx has joined #ruby
sinkensabe has quit [Remote host closed the connection]
scripore has joined #ruby
rahult has quit [Read error: Connection reset by peer]
ShortyCode has quit [Quit: Leaving]
tubuliferous has quit [Ping timeout: 244 seconds]
psy_ has joined #ruby
kstuart_ has joined #ruby
RegulationD has quit [Ping timeout: 256 seconds]
taiansu has joined #ruby
parduse has joined #ruby
airdisa_ has joined #ruby
Channel6 has joined #ruby
kstuart has quit [Read error: Connection reset by peer]
airdisa has quit [Read error: Connection reset by peer]
Meeh has quit [Quit: No Ping reply in 180 seconds.]
Killerkeksdose has quit [Read error: Connection reset by peer]
Killerkeksdose has joined #ruby
Mohan_ has joined #ruby
Meeh has joined #ruby
mozzarella has quit [Ping timeout: 276 seconds]
Spleeze has quit [Ping timeout: 276 seconds]
scripore has quit [Ping timeout: 272 seconds]
shortdudey123 has quit [Excess Flood]
hewenhong has joined #ruby
shortdudey123 has joined #ruby
mozzarella has joined #ruby
dwn has quit [Ping timeout: 276 seconds]
dwn has joined #ruby
shadoi1 has quit [Read error: Connection reset by peer]
shadoi has joined #ruby
poguez_ has quit [Ping timeout: 265 seconds]
wookiehangover has quit [Ping timeout: 265 seconds]
Paradox has quit [Ping timeout: 265 seconds]
BackEndCoder has quit [Ping timeout: 265 seconds]
zrl has quit [Ping timeout: 265 seconds]
alol___ has quit [Ping timeout: 265 seconds]
teotwaki has quit [Ping timeout: 265 seconds]
hewenhon_ has quit [Ping timeout: 244 seconds]
sfr^ has quit [Ping timeout: 265 seconds]
amitchellbullard has quit [Ping timeout: 265 seconds]
bestie has quit [Ping timeout: 265 seconds]
jimeh has quit [Ping timeout: 265 seconds]
HashNuke has quit [Ping timeout: 265 seconds]
terrellt has quit [Ping timeout: 265 seconds]
blackjid has quit [Ping timeout: 265 seconds]
Klumben has quit [Ping timeout: 265 seconds]
RoryHughes has quit [Ping timeout: 265 seconds]
akitada has quit [Read error: Connection reset by peer]
cbetta has quit [Read error: Connection reset by peer]
lancetw has quit [Read error: Connection reset by peer]
alekst_ has quit [Write error: Connection reset by peer]
ntln has quit [Quit: No Ping reply in 180 seconds.]
hostess_ has quit [Quit: No Ping reply in 180 seconds.]
noonius has quit [Quit: noonius]
crdpink has joined #ruby
kwd has quit [Quit: I'm using a Free IRC Bouncer from BNC4FREE - http://bnc4free.com/]
BLuEGoD has quit [Quit: oh cruel destiny]
prasselpikachu has quit [Ping timeout: 265 seconds]
Seich has quit [Ping timeout: 265 seconds]
epochwolf has quit [Ping timeout: 265 seconds]
cschneid has quit [Ping timeout: 265 seconds]
mjmac_ has quit [Ping timeout: 265 seconds]
SegFaultAX has quit [Ping timeout: 265 seconds]
psmolen has quit [Ping timeout: 265 seconds]
jsrn has quit [Ping timeout: 265 seconds]
johnhamelink has quit [Ping timeout: 265 seconds]
LBRapid has quit [Ping timeout: 265 seconds]
waxjar has quit [Ping timeout: 265 seconds]
larissa has quit [Ping timeout: 265 seconds]
universa1 has quit [Ping timeout: 265 seconds]
tylersmith has quit [Ping timeout: 265 seconds]
jaxxstorm has quit [Ping timeout: 265 seconds]
coventry` has quit [Remote host closed the connection]
lupine has quit [Excess Flood]
ChasedSpade has quit [Read error: Connection reset by peer]
DerisiveLogic has joined #ruby
coventry` has joined #ruby
crdpink2 has quit [Ping timeout: 265 seconds]
jalcine has quit [Ping timeout: 265 seconds]
ntln has joined #ruby
sinkensabe has joined #ruby
Dwarf has quit [Ping timeout: 265 seconds]
teotwaki has joined #ruby
lupine has joined #ruby
Seich has joined #ruby
universa1 has joined #ruby
wookiehangover has joined #ruby
jaxxstorm has joined #ruby
prasselpikachu has joined #ruby
epochwolf has joined #ruby
RoryHughes has joined #ruby
ChasedSpade has joined #ruby
jsrn has joined #ruby
jordanm has quit [Remote host closed the connection]
cschneid has joined #ruby
tylersmith has joined #ruby
mjmac has joined #ruby
LBRapid has joined #ruby
sfr^ has joined #ruby
waxjar has joined #ruby
wolfleemeta___ has joined #ruby
larissa has joined #ruby
psmolen has joined #ruby
SegFaultAX has joined #ruby
Dwarf has joined #ruby
aawe has joined #ruby
terrellt has joined #ruby
Paradox has joined #ruby
jalcine has joined #ruby
Spleeze has joined #ruby
jimeh has joined #ruby
hostess has joined #ruby
blackjid has joined #ruby
BackEndCoder has joined #ruby
lavros_ has quit [Quit: leaving]
jordanm has joined #ruby
Klumben has joined #ruby
alexherbo2 has joined #ruby
lavros has joined #ruby
Mohan_ has quit [Ping timeout: 264 seconds]
amitchellbullard has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
alol___ has joined #ruby
parduse has quit []
BLuEGoD has joined #ruby
wolfleemeta__ has quit [Ping timeout: 255 seconds]
johnhamelink has joined #ruby
zrl has joined #ruby
bestie has joined #ruby
cbetta has joined #ruby
alekst_ has joined #ruby
HashNuke has joined #ruby
poguez_ has joined #ruby
zzxc_ has joined #ruby
sankaber has joined #ruby
greenbagels has joined #ruby
akitada has joined #ruby
GaryOak_ has joined #ruby
lancetw has joined #ruby
zzxc has quit [Ping timeout: 256 seconds]
AlexRussia has joined #ruby
sinkensabe has quit [Remote host closed the connection]
Xiti has joined #ruby
hewenhong has quit [Read error: Connection reset by peer]
quimrstorres has quit [Remote host closed the connection]
hewenhong has joined #ruby
sinkensabe has joined #ruby
MasterPiece has quit [Remote host closed the connection]
parduse has joined #ruby
GaryOak_ has quit [Ping timeout: 272 seconds]
quimrstorres has joined #ruby
mburns has quit [Ping timeout: 256 seconds]
dru has joined #ruby
bMalum has quit [Ping timeout: 264 seconds]
rodfersou has joined #ruby
sinkensabe has quit [Remote host closed the connection]
bMalum has joined #ruby
parduse has quit []
Sawbones has quit []
kwd has joined #ruby
thumpba has quit [Remote host closed the connection]
quimrstorres has quit [Ping timeout: 264 seconds]
zzxc has joined #ruby
BlackGear has joined #ruby
Jackneill has joined #ruby
sevenseacat has quit [Quit: Me dun like you no more.]
mburns has joined #ruby
BlackGear has quit [Max SendQ exceeded]
BlackGear has joined #ruby
BlackGear has quit [Client Quit]
rodfersou has quit [Client Quit]
BlackGear has joined #ruby
mrsolo has joined #ruby
zzxc_ has quit [Ping timeout: 276 seconds]
bMalum_ has joined #ruby
bMalum has quit [Read error: Connection reset by peer]
bMalum_ is now known as bMalum
<diegoviola> damn, tried i3-wm, can't go back...
shuber_ has joined #ruby
rahult has joined #ruby
<adaedra> it's a good thing
<diegoviola> yes
_blizzy_ has joined #ruby
sinkensabe has joined #ruby
Mohan has joined #ruby
Mohan is now known as Guest36961
parduse has joined #ruby
shock_one has joined #ruby
lkba has quit [Ping timeout: 244 seconds]
wjlroe has joined #ruby
mistermocha has joined #ruby
rahult is now known as rahult_
parduse has quit [Client Quit]
shuber_ has quit [Ping timeout: 256 seconds]
marr has quit []
marr has joined #ruby
Guest36961 has quit [Ping timeout: 272 seconds]
vickleton has quit [Read error: Connection reset by peer]
sinkensabe has quit [Remote host closed the connection]
vickleton has joined #ruby
arup_r has quit [Ping timeout: 265 seconds]
noonius has joined #ruby
noonius has quit [Client Quit]
sinkensabe has joined #ruby
renanoronfle has joined #ruby
scripore has joined #ruby
scripore has quit [Remote host closed the connection]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
claptor has quit [Quit: this channel is bakas]
zotherstupidguy has joined #ruby
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
failshell has joined #ruby
bMalum has quit [Quit: bMalum]
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
timonv has quit [Ping timeout: 272 seconds]
MasterPiece has joined #ruby
riotjones has joined #ruby
mjs2600 has quit [Quit: Connection closed for inactivity]
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjone_ has joined #ruby
riotjone_ has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
airdisa_ has quit [Remote host closed the connection]
riotjones has quit [Read error: Connection reset by peer]
failshell has quit [Ping timeout: 265 seconds]
mistermocha has quit [Remote host closed the connection]
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
rahult_ has quit [Ping timeout: 264 seconds]
riotjone_ has joined #ruby
Xiti has quit [Quit: Xiti]
riotjone_ has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
rahult has joined #ruby
denver has quit [Read error: Connection reset by peer]
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Mohan_ has joined #ruby
riotjones has quit [Ping timeout: 256 seconds]
P1RATEZ has joined #ruby
sinkensabe has quit [Remote host closed the connection]
FernandoBasso has quit [Ping timeout: 244 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
A124 has quit [Remote host closed the connection]
rahult has quit [Read error: Connection reset by peer]
brixen_ has left #ruby [#ruby]
brixen has joined #ruby
A124 has joined #ruby
scripore has joined #ruby
chinmay_dd has quit [Quit: See ya!]
mrsolo has joined #ruby
Mohan_ has quit [Ping timeout: 256 seconds]
chinmay_dd has joined #ruby
sinkensabe has joined #ruby
rahult has joined #ruby
Mohan_ has joined #ruby
arup_r has joined #ruby
nii236 has joined #ruby
ERIK__ has quit [Quit: Leaving]
idafyaid has joined #ruby
idafyaid has joined #ruby
jgt has joined #ruby
SouL_|__ has joined #ruby
leafybasil has quit [Remote host closed the connection]
code1o6 has joined #ruby
leafybasil has joined #ruby
Stalkr_ has joined #ruby
ddv has quit [Read error: Connection reset by peer]
SouL_|_ has quit [Ping timeout: 265 seconds]
Mohan_ has quit [Ping timeout: 255 seconds]
mrsolo has left #ruby ["Leaving"]
sinkensabe has quit [Remote host closed the connection]
diegoviola has quit [Quit: WeeChat 1.1.1]
nii236 has quit [Ping timeout: 246 seconds]
Mohan_ has joined #ruby
sak has joined #ruby
sak has quit [Client Quit]
supsakens has joined #ruby
supsakens has quit [Client Quit]
mase-chatter has joined #ruby
_blizzy_ has quit [Ping timeout: 265 seconds]
bMalum has joined #ruby
dru has quit [Ping timeout: 258 seconds]
rahult has quit [Read error: Connection reset by peer]
Ilyes512 has joined #ruby
airdisa has joined #ruby
rahult has joined #ruby
endash has joined #ruby
rahult has quit [Client Quit]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sohrab has joined #ruby
Mohan_ has quit [Ping timeout: 258 seconds]
Ilyes512 has quit [Client Quit]
Mohan has joined #ruby
Mohan is now known as Guest31481
Nigel_ has joined #ruby
G has quit [Disconnected by services]
Nigel_ is now known as G
sinkensabe has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
lkba has joined #ruby
bruno- has joined #ruby
scripore has joined #ruby
byprdct has quit [Ping timeout: 255 seconds]
crazydiamond has joined #ruby
DynamicMetaFlow has joined #ruby
m8 has joined #ruby
TuxOtaku_ has joined #ruby
Guest31481 has quit [Ping timeout: 256 seconds]
sinkensabe has quit [Remote host closed the connection]
DynamicMetaFlow has quit [Remote host closed the connection]
bruno- has quit [Read error: Connection reset by peer]
DynamicMetaFlow has joined #ruby
TuxOtak__ has joined #ruby
digitalextremist has quit [Quit: Leaving]
thumpba has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
sinkensabe has joined #ruby
FernandoBasso has joined #ruby
sinkensabe has quit [Remote host closed the connection]
shuber_ has joined #ruby
TuxOtaku_ has quit [Ping timeout: 264 seconds]
giuseppesolinas has joined #ruby
nahtnam has joined #ruby
ascarter_ has joined #ruby
scripore has joined #ruby
ghr has joined #ruby
thatslifeson has joined #ruby
zzxc has quit [Ping timeout: 245 seconds]
bMalum has quit [Quit: bMalum]
scripore has quit [Client Quit]
dented42 has joined #ruby
shuber_ has quit [Ping timeout: 246 seconds]
pwattstbd has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jbomo has joined #ruby
joshingly has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
thumpba has quit [Remote host closed the connection]
Papipo has joined #ruby
javiercito has quit [Remote host closed the connection]
Papipo has quit [Ping timeout: 245 seconds]
TuxOtak__ is now known as PolymathSound
bosma has joined #ruby
failshell has joined #ruby
Mohan_ has joined #ruby
DynamicMetaFlow has quit [Remote host closed the connection]
tubuliferous has joined #ruby
RegulationD has joined #ruby
failshell has quit [Ping timeout: 265 seconds]
Mohan_ has quit [Ping timeout: 252 seconds]
hewenhong has quit [Remote host closed the connection]
lifenoodles_ has quit [Ping timeout: 265 seconds]
hewenhong has joined #ruby
bronson has joined #ruby
tubuliferous has quit [Ping timeout: 256 seconds]
astrobun_ has joined #ruby
RegulationD has quit [Ping timeout: 264 seconds]
bruno- has joined #ruby
lifenoodles has joined #ruby
unreal_ is now known as unreal
hewenhong has quit [Ping timeout: 240 seconds]
leafybas_ has joined #ruby
Notte has joined #ruby
gluten_hell has joined #ruby
Mohan_ has joined #ruby
taiansu has quit [Remote host closed the connection]
taiansu has joined #ruby
Channel6 has quit [Quit: Leaving]
Papipo has joined #ruby
leafybasil has quit [Ping timeout: 264 seconds]
doodlehaus has joined #ruby
hewenhong has joined #ruby
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 37.0.2/2015041600]]
bronson has quit [Remote host closed the connection]
Mohan_ has quit [Ping timeout: 272 seconds]
idafyaid has quit [Ping timeout: 255 seconds]
taiansu has quit [Ping timeout: 264 seconds]
bMalum has joined #ruby
Leef_ has joined #ruby
AndyBotwin has joined #ruby
astrobun_ has quit []
mase-chatter has quit [Quit: Leaving]
BlackGear has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ascarter_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
s2013 has joined #ruby
taiansu has joined #ruby
kobain has quit [Ping timeout: 272 seconds]
bronson has joined #ruby
DexterLB has quit [Ping timeout: 240 seconds]
nii236 has joined #ruby
kobain has joined #ruby
Squarepy has joined #ruby
DexterLB has joined #ruby
odin22 has joined #ruby
shuber_ has joined #ruby
zzxc has joined #ruby
noonius has joined #ruby
tesuji_ has joined #ruby
nii236 has quit [Ping timeout: 244 seconds]
shock_one has quit [Remote host closed the connection]
Porfa has quit [Quit: porfa]
shock_one has joined #ruby
yqt has joined #ruby
tesuji_ has quit [Ping timeout: 272 seconds]
_seanc_ has joined #ruby
_seanc_ has quit [Client Quit]
Porfa has joined #ruby
_seanc_ has joined #ruby
Porfa has quit [Client Quit]
xxneolithicxx has joined #ruby
noonius has quit [Quit: noonius]
pengin has joined #ruby
noonius has joined #ruby
shock_one has quit [Ping timeout: 276 seconds]
asmodlol has quit [Ping timeout: 246 seconds]
veleno has joined #ruby
pengin has quit [Client Quit]
<shevy> I fell asleep not long after asking my last question :(
<shevy> the heat is killing me
<veleno> hello. there is something that i can’t get write: https://gist.github.com/vschiavoni/514503fc5ca1f644b4f4 very simple client/server. the client sends strings that the server is supposed to receive and print. but instead, the server closes and exit abruptly just after the server.accept
doodlehaus has quit [Remote host closed the connection]
asmodlol has joined #ruby
dseitz has joined #ruby
scripore has joined #ruby
odin22 has quit [Quit: Lost terminal]
shock_one has joined #ruby
<ebonics> veleno, why are you calling server.accept twice
bronson has quit [Remote host closed the connection]
<ebonics> veleno, do you see an error?
<veleno> i don’t see the the line being printed on the server side
qwertme has joined #ruby
<shevy> REM Location of the Ghostscript exectuble
<shevy> REM is a comment?
<shevy> he should use ruby
scripore has quit [Client Quit]
zotherstupidguy has quit [Quit: Lost terminal]
<ebonics> shevy, "REM" is hella old syntax from basic
<ebonics> it stands for remark
shuber_ has quit [Remote host closed the connection]
scripore has joined #ruby
<centrx> Basic rulez
ascarter_ has joined #ruby
scripore has quit [Client Quit]
<ebonics> m9 basic is actually kinda funny if you bother to play with it
<ebonics> it's so garbage that it's fun to use
scripore has joined #ruby
scripore has quit [Remote host closed the connection]
Cache_Money has joined #ruby
<shevy> that script there has a "goto" statement
<shevy> I am scared to no ends by that
<shevy> the shell script there http://www.alfredklomp.com/programming/shrinkpdf/ seems easier to read though. I can probably put this into a ruby version
<Cache_Money> I just installed rbenv through Homebrew `$ brew install rbenv ruby-build`. I then tried `$ rbenv install 2.2.2` but I got "ruby-build: definition not found: 2.2.2" What do I need to do to install 2.2.2?
<ebonics> shevy, theres not much code there lol
<ebonics> you can surely convert it to ruby
<shevy> ebonics \o/
<shevy> I am trying to collect all short pdf-based thingies out there
hololeap has joined #ruby
<Cache_Money> ^^ I had to upgrade ruby-build (brew upgrade --HEAD ruby-build) to get 2.2.2
leafybas_ has quit [Remote host closed the connection]
leafybasil has joined #ruby
noonius has quit [Quit: noonius]
failshell has joined #ruby
shuber_ has joined #ruby
jhass has quit [Quit: Bye]
vmatiyko has joined #ruby
jhass has joined #ruby
failshell has quit [Ping timeout: 265 seconds]
bMalum has quit [Quit: bMalum]
P1RATEZ has quit [Ping timeout: 256 seconds]
ascarter_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cashnguns has joined #ruby
joelataylor has joined #ruby
Porfa has joined #ruby
aryaching has quit [Ping timeout: 246 seconds]
hololeap has quit [Ping timeout: 265 seconds]
shuber_ has quit [Remote host closed the connection]
asmodlol has quit [Ping timeout: 246 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Encapsulation has quit [Quit: Leaving]
Zai00 has quit [Quit: Zai00]
scripore has joined #ruby
chinmay_dd has quit [Remote host closed the connection]
vikaton has joined #ruby
asmodlol has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
noonius has joined #ruby
Mohan has joined #ruby
parduse has joined #ruby
Mohan is now known as Guest21662
edwardsykes1 has joined #ruby
ohaibbq has joined #ruby
sohrab has quit [Quit: leaving]
serivichi has quit [Ping timeout: 256 seconds]
s2013 has joined #ruby
BlackGear has joined #ruby
BlackGear has quit [Max SendQ exceeded]
Guest21662 has quit [Ping timeout: 252 seconds]
doodlehaus has joined #ruby
seitensei has joined #ruby
mary5030 has joined #ruby
baweaver has joined #ruby
<shevy> at rubular.com one can make a permalink
<shevy> how long will such a link persist?
BlackGear has joined #ruby
BlackGear has quit [Max SendQ exceeded]
Mohan_ has joined #ruby
vikaton has quit []
yqt has quit [Ping timeout: 240 seconds]
<atmosx> hello people
<havenwood> atmosx: hellooo
<atmosx> havenwood: how's life?
Notte has quit [Remote host closed the connection]
<havenwood> atmosx: pretty good
<atmosx> havenwood: nice :D
nii236 has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
bb010g has joined #ruby
doodlehaus has quit [Remote host closed the connection]
qwertme has joined #ruby
<bb010g> What's the equivalent of `rvm docs generate` for rbenv? I've been looking around and haven't found anything.
ta has joined #ruby
DeBot has quit [Quit: Crystal]
Notte has joined #ruby
DeBot has joined #ruby
Mohan_ has quit [Ping timeout: 244 seconds]
Notte has quit [Remote host closed the connection]
nii236 has quit [Ping timeout: 272 seconds]
joelataylor has quit [Quit: Be back later ...]
joelataylor has joined #ruby
RegulationD has joined #ruby
Encapsulation has joined #ruby
mary5030 has quit [Ping timeout: 265 seconds]
parduse has quit []
qwertme has quit [Ping timeout: 276 seconds]
ascarter_ has joined #ruby
hewenhong has quit [Remote host closed the connection]
ohaibbq has quit [Quit: Leaving...]
platzhirsch has left #ruby [#ruby]
RegulationD has quit [Ping timeout: 244 seconds]
leafybasil has quit [Ping timeout: 246 seconds]
joelataylor has quit [Ping timeout: 265 seconds]
DeBot has quit [Quit: Crystal]
DeBot has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bollullera has joined #ruby
noonius has quit [Quit: noonius]
s2013 has joined #ruby
bollullera has left #ruby [#ruby]
Notte has joined #ruby
<havenwood> bb010g: So you want both ri and rdoc for gems and ruby?
<bb010g> havenwood: Yes.
<havenwood> bb010g: You can use the rdoc command from the src dir where Ruby was built.
<havenwood> bb010g: For ri: rdoc -V -a --ri-site
Mohan_ has joined #ruby
al2o3-cr has quit [Ping timeout: 258 seconds]
<havenwood> bb010g: For gem docs: gem rdoc --all --ri
_blizzy_ has joined #ruby
Guest36441 has joined #ruby
yqt has joined #ruby
DynamicMetaFlow has joined #ruby
zzxc has quit [Ping timeout: 256 seconds]
<havenwood> bb010g: gem install rdoc-data && rdoc-data --install
Encapsulation has quit [Quit: Leaving]
axsuul has joined #ruby
bronson has joined #ruby
<havenwood> bb010g: Then whatever these paths translate to: rdoc -V -a -o "${rvm_docs_path:-"$rvm_path/docs"}/$rvm_docs_ruby_string/$rvm_docs_type"
<bb010g> havenwood: That has to be from the build dir? Currently using ruby-build, and haven't seen any way to hook into that. There's .patch support for source, but no hooks
al2o3-cr has joined #ruby
edwinvdgraaf has joined #ruby
jgt has quit [Ping timeout: 255 seconds]
Notte has quit [Remote host closed the connection]
edwinvdgraaf has quit [Remote host closed the connection]
<bb010g> Also, rdoc-data --install gives: Your ruby version 2.1.0 is not supported, only 1.8.7, 1.9.2, 1.9.3, 2.0.0
<havenwood> bb010g: Ah, that must have been for older Rubies only - I guess you don't need it anymore.
<havenwood> bb010g: I was just skimming rvm's code.
<havenwood> bb010g: It looks like they nuke the src dir by default: -k/--keep Keep source tree in $RBENV_BUILD_ROOT after installation
gluten_hell has quit [Quit: Computer has gone to sleep.]
tyfighter has joined #ruby
tubuliferous has joined #ruby
Mohan_ has quit [Ping timeout: 264 seconds]
<bb010g> havenwood: https://github.com/sstephenson/ruby-build/issues/156 mentions the rdocs being built.
TheNet has joined #ruby
quimrstorres has joined #ruby
edwinvdgraaf has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
airdisa has quit []
<bb010g> rdoc is working for gems just fine.
<havenwood> bb010g: That's about an option to omit building rdoc itself.
* bb010g derps
<havenwood> bb010g: I assumed you were asking about generating additional documentation. ;)
shuber_ has joined #ruby
<veleno> given an array of strings, what is the method to create a string out of the elements in the array from index x to index y ?
<havenwood> veleno: join the slice?
<ruboto> bb010g, we in #ruby do not like irccloud.com, it has no syntax highlighting, distracting formatting and loads slowly for most. Please use https://gist.github.com
tubuliferous has quit [Ping timeout: 255 seconds]
<bb010g> :(
mengu has joined #ruby
<havenwood> bb010g: Just uninstall the rdoc-data gem.
<havenwood> bb010g: I didn't realize it was just for old rubies.
lidenskap has joined #ruby
<havenwood> bb010g: gem rdoc --all --ri
joshingly has quit [Quit: Connection closed for inactivity]
jonasof has joined #ruby
jonasof has left #ruby [#ruby]
Mohan_ has joined #ruby
GriffinHeart has joined #ruby
<havenwood> >> [1, 2, 3, 4, 5].slice(1..3).join
<ruboto> havenwood # => "234" (https://eval.in/364811)
leafybasil has joined #ruby
<havenwood> veleno: ^
Cache_Money has quit [Quit: Cache_Money]
izzol_ has left #ruby [#ruby]
izzol_ has joined #ruby
izzol_ has left #ruby [#ruby]
<veleno> havenwood: i’ve tried it https://gist.github.com/vschiavoni/5edcd690de4aefa1432f but i get a join method not found
Mohan_ has quit [Ping timeout: 252 seconds]
GriffinHeart has quit [Ping timeout: 265 seconds]
izzol has joined #ruby
<izzol> Hi
<havenwood> veleno: When the slice gets nothing it returns: nil
lele is now known as Guest24
<izzol> I just created a gem but there is a problem and I'm not sure what exactly :(
<havenwood> izzol: How can you tell there's a problem?
<izzol> I'm getting: LoadError: cannot load such file -- linker/version When I'm trying to require 'my_gem'
<shevy> izzol so you don't have that file there
<shevy> so it fails
<shevy> solution: add the file
<izzol> shevy: but where? I think I'm missing something :( I have this file here: https://github.com/wolfedale/linker/blob/master/lib/linker/version.rb
<shevy> if you would have installed that file
<shevy> as part of the linker-gem in this example
<shevy> it could be found
<shevy> there is no real other explanation; perhaps you forgot to update the gem, or you may have multiple different paths for gems, but if that file exists, and is part of the gem, and you installed it through gem install, it will be there, I can assure you that
<shevy> have a look whether the base .rb file pulls in that file
snobby has joined #ruby
shock_one has quit [Remote host closed the connection]
<shevy> btw I think putting requires into a module won't matter
<shevy> you can put it on top
shock_one has joined #ruby
<shevy> what I usually do is, in that base .rb file; add require 'name_of_gem_goes_here/version/version.rb' # I have that in a separate version directory, I Lvoe directories
j0n3 has joined #ruby
snobbo has quit [Ping timeout: 272 seconds]
hectortrope has quit [Quit: WeeChat 0.4.2]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
hectortrope has joined #ruby
shuber_ has quit [Remote host closed the connection]
djbkd has joined #ruby
centrx has quit [Quit: Shutting down, Please wait...]
shock_one has quit [Ping timeout: 256 seconds]
x77686d has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<havenwood> izzol: Add all the files you require to that list. Typically folk use code to generate those files but you can add them manually if you prefer. Can't omit them though.
<izzol> [1] pry(main)> require 'linker'
<izzol> => true
<izzol> :D
<izzol> I added just two lines to the gemfile:
<izzol> $:.push File.expand_path("../lib", __FILE__)
<izzol> require "linker/version/version"
<izzol> And now it works fine.
shock_one has joined #ruby
kadoppe has quit [Ping timeout: 256 seconds]
cmckee has quit [Quit: Leaving]
Spami has joined #ruby
<shevy> that is not required for gem-installed projects
finnnnnnnnnnn has joined #ruby
cobragoat has joined #ruby
bintelli has joined #ruby
kadoppe has joined #ruby
<finnnnnnnnnnn> I’m trying to require a file from a class http://tinypic.com/view.php?pic=5x6hj9&s=8
<finnnnnnnnnnn> I’m trying to get env.rb from weather.rb
<finnnnnnnnnnn> when I do require '../env' I get cannot load such file -- env
<havenwood> izzol: Your gemspec is also missing require_paths: http://guides.rubygems.org/specification-reference/#require_paths=
MasterPiece has quit [Remote host closed the connection]
airdisa has joined #ruby
claptor has joined #ruby
<finnnnnnnnnnn> I’m new to ruby, any idea what I’m doing wrong?
<shevy> izzol remember! if it takes you effort to do something in ruby, there often is a much simpler way :)
BlackGear has joined #ruby
<shevy> izzol I used to use Pathname to find out the path of my gems
<shevy> then I realized that: RbConfig::CONFIG['sitelibdir']+'/name_of_project'
<shevy> works too
<shevy> I hate Pathname so much...
BlackGear has quit [Max SendQ exceeded]
<havenwood> finnnnnnnnnnn: Use text to show code instead of pictures. Here's a guide to using Gist: https://github.com/radar/guides/blob/master/using-gist.markdown
nux443 has quit [Ping timeout: 246 seconds]
<finnnnnnnnnnn> havenwood: thanks, I was using an image to show the folder structure
<izzol> thanks havenwood and shevy
<shevy> sexy sexy pictures
<shevy> I always spice up my code with animated gifs
<shevy> dancing lolcats and stuff
<izzol> I will read more careful the doc ;-)
<shevy> \o/
<shevy> you'll be an expert in no time
<shevy> at the least after your tenth gem made
oz` has left #ruby [#ruby]
oz has joined #ruby
<shevy> like to always find better ways to do something
<shevy> and become as good as havenwood
<izzol> now I just need to fix my Sublime. Somehow it broken all spaces/tabs in my files :(
<havenwood> izzol: Two-space soft tabs!
<shevy> down with tabs!
bintelli has quit [Ping timeout: 246 seconds]
Cust0sLim3n has quit [Ping timeout: 250 seconds]
threh has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<izzol> havenwood: I know, I just switch from vim to Sublime (just to see how it can help)..
<finnnnnnnnnnn> ahh, I understand. I needed require_relative
swgillespie has joined #ruby
<shevy> cool
icebourg has joined #ruby
Cust0sLim3n has joined #ruby
<shevy> vimsters switching to sublime is good!
<finnnnnnnnnnn> is require_relative bad practise?
<shevy> Any good ruby-podcasts or videos out there lately in the last 2 years?
<shevy> finnnnnnnnnnn in a gem-structured project, you do not need require_relative()
<shevy> they added this method when they got rid of ./ by default
DynamicMetaFlow has quit [Read error: Connection reset by peer]
<finnnnnnnnnnn> shevy: ok thanks. I’ll try to avoid
scripore has joined #ruby
<finnnnnnnnnnn> I’m making a sinatra app, but it would be nice to tuen it into a gem
<finnnnnnnnnnn> *turn
<finnnnnnnnnnn> so I’ll use a gem structure for that class
<finnnnnnnnnnn> thanks again
finnnnnnnnnnn has left #ruby [#ruby]
<shevy> I used a workaround; I symlinked my main-ruby directory into SITE_DIR, as name "x"... so I do: require 'x/tools/image_optimizer.rb' and then invoke it ImageOptimizer.optimize('bla.png'); but once you have a project, you don't even need to do this either, just do: require 'name_of_project_here'
<shevy> and it's shorter to write require than require_relative too \o/
<shevy> yeah turn things into a gem-structure, it's a bit more to setup initially but much easier in the long run
<havenwood> izzol: Sublime Text > Preferences > Settings - Default: "tab_size": 4 and "translate_tabs_to_spaces": true
s2013 has joined #ruby
<havenwood> izzol: 2 I mean >.>
swgillespie has quit [Client Quit]
nux443 has joined #ruby
<shevy> aha slip-up!
<shevy> he is a 4er rather than a 2er by heart
<havenwood> shevy: Noooo. Untrue! I don't use Sublime, had a clean install and it was the default value. I copy pasted!
parduse has joined #ruby
DynamicMetaFlow has joined #ruby
veleno has quit [Ping timeout: 240 seconds]
DynamicMetaFlow has quit [Max SendQ exceeded]
<havenwood> shevy: Changed the false to true but forgot the 4 to 2. These crazy defaults. :P
DynamicMetaFlow has joined #ruby
mary5030 has joined #ruby
<havenwood> shevy: Atom is coming along nicely it seems.
<shevy> cool
<izzol> havenwood: thanks :-)
wjlroe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
asmodlol has quit [Ping timeout: 264 seconds]
<ebonics> oh boi
<ebonics> rust 1.0
<shevy> oh you need node.js for atom
<shevy> which has node-v0.12.3.tar.gz 19M
<shevy> we are approaching boost-size here :-)
<ebonics> havenwood, ?
<shevy> k, still some way off to it ... boost-1.56.0.tar.xz 86M
<havenwood> ebonics: 1.0s of interest to Rubyists left and right
<ebonics> Elixir v1.0 released
<ebonics> September 18, 2014
<ebonics> o.o
lidenskap has quit [Remote host closed the connection]
jgt has joined #ruby
<havenwood> ebonics: Well, months apart but some great langs getting stable.
asmodlol has joined #ruby
mary5030 has quit [Ping timeout: 265 seconds]
<ebonics> ic
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s2013 has joined #ruby
cashnguns has quit [Read error: Connection reset by peer]
m8 has quit [Quit: Sto andando via]
fgo has joined #ruby
failshell has joined #ruby
jgt has quit [Ping timeout: 245 seconds]
Aswebb_ has quit []
failshell has quit [Ping timeout: 276 seconds]
fgo has quit [Ping timeout: 258 seconds]
BLACK_POWER has joined #ruby
RegulationD has joined #ruby
tyfighter has quit [Quit: tyfighter]
icebourg has quit []
ki0 has quit [Remote host closed the connection]
BLACK_POWER has quit [Remote host closed the connection]
Notte has joined #ruby
MatthewsFace has joined #ruby
GlenK_ has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
ascarter_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gluten_hell has joined #ruby
Jarsue has joined #ruby
<Jarsue> What does, if @var mean in Ruby, where @var is a global var. Is it a way to check if the variable is initialized?
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<yxhuvud> @var is not a global var. it is *always* an instance variable to the current self.
TheHodge has joined #ruby
<jhass> if expression passed is if expression returns a truthy value, that is any value besides false and nil
Blaguvest has quit [Read error: Connection reset by peer]
<jhass> instance vars, if not set to anything prior, default to nil
lidenskap has joined #ruby
gluten_hell has quit [Ping timeout: 256 seconds]
<jhass> eh, "passes if"
<Jarsue> yxhuvud, I meant $var..
<Jarsue> sry
<jhass> don't use globals :(
<Jarsue> jhass, I dont get what you mean.
renanoronfle has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Jarsue> With the above.
<Jarsue> If
<Jarsue> jhass, That's a bad thing to say. Say rather avoid them as much as possible.
ascarter_ has joined #ruby
<jhass> >> if nil; puts "nil is truthy"; end; if false; puts "false is truthy"; end; if Object.new; puts "everything else is truthy"; end;
<ruboto> jhass # => everything else is truthy ...check link for more (https://eval.in/364934)
<yxhuvud> defined?($var) should work (though I agree with jhass - avoid them if possible)
<jhass> defined? is a second smell ontop
baweaver has quit [Remote host closed the connection]
MasterPiece has joined #ruby
ascarter_ has quit [Max SendQ exceeded]
HotCoder has quit [Ping timeout: 264 seconds]
<jhass> Jarsue: I yet have to run across a usecase where there wasn't a better solution (like a pseudo global as last resort)
<jhass> simply don't use them
<Jarsue> jhass, I'm not asking for an if lesson, I'm a C guru after all. I'm just asking how the if some_var works in Ruby.
ascarter_ has joined #ruby
<Jarsue> Since 0 is not false.
<jhass> my example just demonstrated that
sinkensabe has joined #ruby
axsuul has quit [Ping timeout: 276 seconds]
<Jarsue> jhass, Simply don't use them is stupid to say. We have been using globals for a lot of work.
<jhass> nil and false are considered falsey, everything else is truthy
ascarter_ has quit [Max SendQ exceeded]
sinkensabe has quit [Remote host closed the connection]
<jhass> and that you've been using them just asserts that they work, not that they're the optimal or only solution
Encapsulation has joined #ruby
rawrmonstar has joined #ruby
<Jarsue> jhass, Yes, there were the only solutions when I used them.
redlegion has joined #ruby
<jhass> I'm interested to learn about that case then, as said I yet have to run across one
rodfersou has joined #ruby
shuber_ has joined #ruby
sinkensabe has joined #ruby
<jhass> (in Ruby)
<Jarsue> So, actually when I do if some_var, I only check it against nil and false? I see. @first_name = '' unless @first_name will set @first_name unless it's already initialized with a value other than false/nil right?
<jhass> right
<jhass> better way to write that: @first_name ||= ''
<Jarsue> And it's preferred to write, @first_name ||= ''?
<Jarsue> Yea :p
<jhass> which is a shortuct to @first_name || @first_name = ''
c_nick has joined #ruby
<jhass> (not @first_name = @first_name || '')
<c_nick> how to enhance the system path through code?
<Jarsue> The || are blocks, or?
<jhass> c_nick: "system path"?
sinkensabe has quit [Remote host closed the connection]
<jhass> Jarsue: no, it's the or operator
nii236 has joined #ruby
<Jarsue> Oh..
alexherbo2 has quit [Quit: WeeChat 1.1.1]
<jhass> blocks are delimited by { } or do end
<Jarsue> jhass, Ah now I see :)
<c_nick> jhass: yes, i get the path using ENV['path'] but i dont know how to update it?
<Jarsue> jhass, Now I fully get the @first_name ||= ''
<jhass> c_nick: ENV['PATH'] you mean? and update it for who?
<Jarsue> So in English, is @first_name? or should I initialize it?
<c_nick> current user
<jhass> c_nick: it's an environment variable, you can't update the environment of a parent process
shuber_ has quit [Ping timeout: 258 seconds]
<yxhuvud> actually there is some additional magic involved in ||= that makes it work even if it is not defined. doesn't matter for globals or ivars, but matters for constants.
<Jarsue> So Ruby is more into unless/until/or instead of if/while
<jhass> yxhuvud: actually no, a variable is defined the moment the parser sees var = expression
The_Phoenix has quit [Read error: Connection reset by peer]
<jhass> >> foo = 1 if false; foo
<ruboto> jhass # => nil (https://eval.in/364965)
<yxhuvud> >> FOO || FOO = 14
<ruboto> yxhuvud # => uninitialized constant FOO (NameError) ...check link for more (https://eval.in/364966)
<Jarsue> jhass, You mean initialized I guess? Variables are defined upon declaration ?
<c_nick> I am using a library which relies on the Environment Path to tell it where the dependency lies (another dll) so would a $LOAD_PATH variable assist here?
[k- has quit [Quit: Lingo: www.lingoirc.com]
<c_nick> jhass: ^^
<Jarsue> jhass, Or is there no declaration thing in Ruby?
<yxhuvud> jass: and constants are different in your case as well:
<jhass> c_nick: $LOAD_PATH is a Ruby global which defines the directories to search for require (and load) calls
<yxhuvud> >> FOO = 1 if false; FOO
<ruboto> yxhuvud # => uninitialized constant FOO (NameError) ...check link for more (https://eval.in/364967)
<apeiros> Jarsue: no, there's no declaration in ruby. only assignment.
<jhass> oh, then it special cases constants, TIL
<Jarsue> apeiros, Assignment implies declaration.
nii236 has quit [Ping timeout: 255 seconds]
<apeiros> Jarsue: no
<apeiros> Jarsue: define "declaration"
<Jarsue> apeiros, Huh? Of course it does.
MasterPiece has quit [Ping timeout: 256 seconds]
atomi has quit [Quit: :(]
<apeiros> Jarsue: no. it does not. you don't have to declare the variables before you can assign to them. no declaration.
millerti has joined #ruby
<yxhuvud> jhass: also, the ||= expansion you pointed to does not work for variables that isn't autovivified, even if ||= do work:
gigetoo has quit [Read error: Connection reset by peer]
<yxhuvud> >> foo || foo = 2
<ruboto> yxhuvud # => undefined local variable or method `foo' for main:Object (NameError) ...check link for more (https://eval.in/364968)
atomi has joined #ruby
<apeiros> Jarsue: but again, define "declaration". maybe you have an understanding of that term which deviates from what I know.
<jhass> eh, I was sure that used to work
<jhass> 19>> foo || foo = 2
<ruboto> jhass # => undefined local variable or method `foo' for main:Object (NameError) ...check link for more (https://eval.in/364969)
gigetoo has joined #ruby
<jhass> meh, phantom memory I guess
<c_nick> jhass: a LoadLibrary to load the win32 dll ?
<Jarsue> apeiros, I have the definition of declaration as every computer scientist have. There is one declaration only.
Guest36441 has left #ruby [#ruby]
<c_nick> win32API.LoadLibrary
<jhass> c_nick: windows territory? I bail
<Jarsue> apeiros, I'm pretty good when it comes to low level stuff and been developing in C over 14 years. Ruby is in C. Assignment always implies declaration and definition.
<apeiros> Jarsue: ok. then you're wrong, as per facts. there's no declaration in ruby. assignment is not a declaration.
hmsimha_ has joined #ruby
hmsimha_ has left #ruby [#ruby]
<Jarsue> apeiros, Tho not directly in Ruby maybe.
hewenhong has joined #ruby
<apeiros> Jarsue: there's no "not directly". there's no declaration, period.
<Jarsue> In Ruby world I would say. But declaration is happening.
<c_nick> Jarsue: Assignment is not always declaration
<c_nick> int c; //declaration
<c_nick> c = 1; //definition/assignment
<c_nick> int c = 1; //declaration and definition
<Jarsue> c_nick, int c; //declaration and definition
<c_nick> defined to garbage ?
<Jarsue> c = 1; //This is not a definition, this is assignment
<yxhuvud> apeiros: of variables. I'd count 'class Foo .. end; and def foo; .. end; as declarations.
<Jarsue> c_nick, intermediate value
<apeiros> yxhuvud: def foo does not deal with any variable. unless you're talking about its parameters.
<apeiros> class Foo - ok. you can consider it to be plain assignment too. one of 4 available syntaxes (or 3 if you consider module & class as equivalent syntax)
asmodlol has quit [Ping timeout: 244 seconds]
<Jarsue> c_nick, indeterminate|
<Jarsue> *
<c_nick> jhass: you cannot update the environment of the parent process meaning ? my ruby code will be a process so wheres the parent process here?
<jhass> c_nick: well I asked who you want to change it for and you said "the user2
<jhass> I guess "the user" == the one who invokes your program
<jhass> == the parent process
hewenhong has quit [Ping timeout: 264 seconds]
<Jarsue> apeiros, "Variables are declared and assigned values by placing the variable name and the value either side of the assignment operator (=)."
casadei has joined #ruby
<apeiros> Jarsue: anyway, you asked "Or is there no declaration thing in Ruby?", you got the answer, which is "no".
Mohan has joined #ruby
asmodlol has joined #ruby
<apeiros> Jarsue: if you don't want to believe the answer - why do you ask in the first place?
<yxhuvud> apeiros: def is still a declaration, just not of a variable.
<Jarsue> apeiros, Because you are wrong.
<Jarsue> You simply don't understand the machine.
Mohan is now known as Guest92900
<ebonics> ithink "attr_accessor" is a declaration in ruby
<apeiros> Jarsue: and you don't understand language. but good to know that answering your questions is pointless.
<ebonics> Jarsue, yeah we're not talking about C or what happens internally. most people here know C , you're not special
<Jarsue> apeiros, I don't understand language? I'm developing embedded systems.
<jhass> Jarsue: apeiros both of you, you have very apparently different definitions of declaration, for god's sake state yours. Both
<ebonics> we're talking about ruby.. the high level language and its features and characteristics
<apeiros> Jarsue: developing embedded systems does not help you with using proper terminology.
chridal has joined #ruby
chridal has left #ruby ["WeeChat 1.1.1"]
<Jarsue> ebonics, Most people think they do.
<apeiros> Jarsue: anyway, I'm not interested in pursuing this "discussion". I suggest that in future, if you think you already know the answer, you don't ask.
<yxhuvud> jarsue: the *machine* doesn't have declarations. C does, but that is really only instructions to instruct the compiler.
P1RATEZ has joined #ruby
TuxOtaku has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
giuseppesolinas has joined #ruby
<ebonics> Jarsue, how can you "think" you know C?
<Jarsue> yxhuvud, What? First I said understanding the machine and I'm pretty aware who does the declaration.
MasterPiece has joined #ruby
casadei has quit [Ping timeout: 258 seconds]
<apeiros> Jarsue: also "I have been developing in C over 14 years" is not an argument.
Guest92900 has quit [Ping timeout: 258 seconds]
<ebonics> plus 14 years is nothing haha
taiansu has quit [Remote host closed the connection]
<Jarsue> ebonics, Because I have been a professional developer in C for 14 years, studying it for ~ 20.
<ebonics> yeah and what do you know about C that i don't?
<ebonics> i'm 23
taiansu has joined #ruby
<shevy> you could have started at age 3
<ytti> this may not be heading in conductive direction
<ebonics> i started at age 12
<apeiros> I think it's of no value to pursue this
<Jarsue> ebonics, I'm 33 :)
<shevy> you are approaching the 40s
imkmf has joined #ruby
<Jarsue> ebonics, So, you want to go there?
<ebonics> surprising that you're 33. that's pretty young to be pulling the "ive been developng for" argument
<shevy> 33 is not young man!
<shevy> 23 is still :-)
<ebonics> usually it's the 50+ FLOSS community who use that argument
<yxhuvud> shevy, shut up.
<shevy> 50+ is the fossil era
* yxhuvud older
<toretore> your definition of young changes as you get older ;)
<Jarsue> ebonics, No? It doesn't matter as long as you been working.
<shevy> I think we don't have many +50 here
<shevy> matz
<c_nick> jhass: hmm so even if i get the environment variable set the code will be indifferent towards it
iasoon has quit [Ping timeout: 252 seconds]
<ebonics> Jarsue, not everyone learns at the same rate
<shevy> wait... he isn't yet 50
A205B064 has joined #ruby
* apeiros sobds
<shevy> damn he is
<apeiros> *sobs
<Jarsue> ebonics, I will just say that, many people think they know C, and that's same for Ruby, Python etc. Which is not true.
<shevy> :(
<jhass> c_nick: I still have no actual clue to what you're doing, so maybe
<Jarsue> ebonics, I did raw read 2 standards. Took a lot of time.
<apeiros> the point is that authority doesn't make an argument.
* shevy waits for a kick-ban ...
<apeiros> shevy: as long as nobody insults anybody, that won't happen.
s2013 has joined #ruby
<ebonics> right and because you're 33 and read some "standards" you're more qualified than i am to make assertions?
quimrstorres has quit [Remote host closed the connection]
tubuliferous has joined #ruby
<shevy> ohhh... a battle of old versus young :)
<ebonics> you're just dumb to be honest
<shevy> was that an insult ;P
<apeiros> ebonics: um, that's exactly the kind of thing which leads to a kick. please don't.
* Nilium sighs and wanders off to get a burrito.
<toretore> strike 1
<Jarsue> ebonics, What does this mean. double(*(*ptr)())[10]; ?
<keyofnight> lol... what is going on here?
s2013 has quit [Client Quit]
spiderbyte has quit [Ping timeout: 256 seconds]
iamninja_ has joined #ruby
<apeiros> keyofnight: kindergarten.
<shevy> it means that there is a lot of syntax there
iamninja has quit [Ping timeout: 246 seconds]
taiansu has quit [Ping timeout: 265 seconds]
<apeiros> Jarsue, ebonics: stop. both of you.
wjlroe has joined #ruby
<Jarsue> ebonics, And that one is very fundamental.
<Nilium> Jarsue: Calling a double **(**)() and dereferencing the result and then getting the tenth thingy or something?
<Nilium> Well, 11th, I guess.
<Jarsue> Nilium, This is a pointer declaration.
davedev24_ has quit [Ping timeout: 272 seconds]
<toretore> ebonics: might as well give up, jarsue's c dick is clearly bigger than yours
<jhass> toretore: strike 1 for you
<Nilium> Jarsue: I just see an expression from calling a function pointer pointer that returns a double pointer pointer.
<Jarsue> Nilium, Return type is a pointer to an array.
* apeiros checks channel name…
<Nilium> Yeah, double** / double pointer pointer.
<apeiros> um, nope, not ##c
<c_nick> jhass: ok so i have a ruby framework that downloads a bunch of dlls which are written in C++ and then run some tests on it. Now the code in the binary is crashing because it does not know where its dependent dll is (actually in the same folder as the calling dll) This it only comes to know from the Environment PATH. So I need to make ammendments to system PATH
<Jarsue> Nilium, Not same thing.
<Nilium> Bah.
nisstyre has joined #ruby
nisstyre has quit [Changing host]
<Nilium> Evaluating weird C in my head is not working.
<c_nick> Nilium: thats a pointer to a pointer to a double
<toretore> jhass: it's only an insult as long as you think bigger is better :P
tubuliferous has quit [Ping timeout: 272 seconds]
<Nilium> Because of how subscripts work in C, I just auto-associate arrays and T*.
<Jarsue> c_nick, No.
davedev24_ has joined #ruby
<jhass> c_nick: ENV['PATH'] += ":#{path}" doesn't work? and $PATH is the library path on windows?
<Nilium> Either way, I need a burrito.
<c_nick> Jarsue: Double ** is a pointer to a pointer to a double
jgt has joined #ruby
<Jarsue> double ** is a double pointer to a double pointer :)
Macaveli has joined #ruby
<c_nick> jhass: when u do $PATH in the terminal u will get the system path
P1RATEZ has left #ruby [#ruby]
<jhass> "the system path" means nothing to me
<jhass> I've never done any programming on windows. At all.
<jhass> or even remotely more complex sysadmin stuff
<shevy> windows was too much for you to handle
<jhass> exactly
<c_nick> jhass: its PATH on Linux
Mohan_ has joined #ruby
<c_nick> pretty much the same thing
<jhass> $PATH is the shell (binary) lookup path on linux
<c_nick> correct same on windows
<jhass> the dynamic library lookup path is defined by LD_LIBRARY_PATH and /etc/ld.conf (or something)
bayed has joined #ruby
<c_nick> by adding to the normal shell lookup path will do too
<c_nick> let me try
jgt has quit [Ping timeout: 250 seconds]
zzxc has joined #ruby
s2013 has joined #ruby
<Jarsue> jhass, @first_name = @first_name || '', should visualize the (@first_name = @first_name) as, "Do the following if true" ?
<c_nick> jhass: it works temporarily
<adaedra> Jarsue: @first_name ||= ''
Zai00 has joined #ruby
<jhass> Jarsue: as yxhuvud pointed out some details are missing, but @first_name || @first_name = '' is still closer to what's happening
<jhass> Jarsue: it matters because in a.b ||= c, a.b = c is a method call
redlegion has quit [Quit: Time for me to pass out.]
lavros has quit [Quit: leaving]
<jhass> so if it expanded to a.b = a.b || c, it would always execute that method call, which could cause unintended side effects
c_nick1 has joined #ruby
parduse has quit []
<apeiros> to be precise, there's 2 method calls in it. `a.b=` and `a.b`. and it'd always execute `a.b=` if it expanded to `a.b = a.b || c`
c_nick1 has quit [Client Quit]
duncannz has joined #ruby
<Jarsue> jhass, Ah I see. But this is also a shorter way, at the same time, do x while checking if y?
<Jarsue> shorter way to do*
duncannz has quit [Max SendQ exceeded]
Mohan_ has quit [Ping timeout: 258 seconds]
c_nick has quit [Ping timeout: 258 seconds]
<jhass> not sure I follow your question, but I think the answer is no
duncannz has joined #ruby
parduse has joined #ruby
<jhass> it really helps to think of it as a || a = c, keeping the short-circuiting behavior of || and the truthiness and falisness rules in mind
<Jarsue> jhass, Yea. I meant that there is an implicit if somewhere.
<jhass> not really
<Jarsue> So you cut it down to, a ||= c, yes?
<jhass> what's "it" now?
<Jarsue> What you said above.
<shevy> What jhass said 10 years ago!!!
<jhass> then again I don't follow your question
<jhass> shevy: I think it was "I need a computer"
rodfersou has quit [Quit: leaving]
<shevy> You think a computer could parse Jarsue's question properly
<Jarsue> jhass, "If @first_name happened to start out as
<Jarsue> false , the code would cheerfully go ahead and reset it to the empty string." That means that there must be an if checking if @first_name is false/true.
<shevy> I also don't quite understand what he meant to say ;)
sinkensabe has joined #ruby
<jhass> shevy: nah, natural language processing is still hard
<jhass> Jarsue: no, that doesn't imply
<jhass> the short-circuiting behavior of || suffices
brianstorti has joined #ruby
<Mon_Ouie> Well, you may consider that all shortcircuiting logical operators are "implicit ifs"
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
<hectortrope> hi jhass
<Mon_Ouie> 'a || b' being basically 'if a then a else b end'
<hectortrope> where can I learn about api management can someone help
<hectortrope> a-z of api's
<Jarsue> jhass, So you are saying that, ?: has no implicit if. There must be some sort of implicit if for such evaluation.
vickleton has quit [Ping timeout: 272 seconds]
<jhass> Jarsue: you're stuck in mapping language constructs into other language constructs (of a different language) you know. Try to get rid of that, it'll be very harmful for learning further languages and adopting their idioms
<ebonics> >> a = 'a'; a ||= 'b'; a = 'b' if !a; a
<ruboto> ebonics # => "a" (https://eval.in/365066)
DEA7TH has quit [Ping timeout: 244 seconds]
<jhass> that you can find equivalent code for most constructs doesn't mean it's the same thing
<ebonics> logically it's the same thing
<jhass> ebonics: careful, ! is a method call
<apeiros> ebonics: should use `unless a`. sadly `if !a` is no longer equivalent to `unless a`.
<ebonics> orly?
<jhass> yeah
<jhass> >> class TrueClass; def !; true; end; !!!true
<ruboto> jhass # => /tmp/execpad-9d71295014ac/source-9d71295014ac:7: syntax error, unexpected end-of-input, expecting ke ...check link for more (https://eval.in/365067)
<apeiros> and jhass just told the reason :)
<jhass> >> class TrueClass; def !; true; end; end; !!!true
<ruboto> jhass # => true (https://eval.in/365068)
<ebonics> ic
<Jarsue> jhass, So you are saying that, @first_name = '' unless @first_name is not same as @first_name ||= '' ?
havenwood has quit [Ping timeout: 264 seconds]
<apeiros> I'm actually not sure whether I wish for unless to call !
<jhass> Jarsue: it's equivalent (= same result, same effect), it's not the same and it doesn't help to think of one as the transformation into the other
taiansu has joined #ruby
<Jarsue> jhass, That's what the book Eloquent Ruby says to do :)
<Jarsue> "The trouble with this if statement is that it is just slightly more verbose than it needs
<Jarsue> to be. A more concise—and idiomatic—way to say the same thing is:"
<jhass> I see how you can imply that, though if you're pedantic it doesn't say that
dfinninger has joined #ruby
<jhass> either way, I happen to disagree obviously ;)
mary5030 has joined #ruby
<ebonics> that is pretty pedantic to be honest but i see where youre coming from
<jhass> especially with your background you'll happen to try to map to C constructs all to quickly otherwise
idafyaid has joined #ruby
<ebonics> being able to redefine methods in ruby so dynamically can cause a lot of unforeseen consequences when using other peoples' code
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> ebonics: IME it's not really an issue
<ebonics> a = 'a'; a ||= 'b'; a = 'b' unless a; a
<ebonics> >> a = 'a'; a ||= 'b'; a = 'b' unless a;
<ruboto> ebonics # => nil (https://eval.in/365071)
<ebonics> ermagerd im a spammer
<ebonics> >> a = 'a'; a ||= 'b'; a = 'b' unless a; a
<ruboto> ebonics # => "a" (https://eval.in/365080)
<ebonics> you can redefine ||= right?
<apeiros> no
<apeiros> || is not a method
<Jarsue> jhass, The book clearly explains that all all equal, just that some are less verbose than others.
<jhass> Jarsue: a book in the end is just the authors opinion
<ebonics> apeiros, so basically those things are strictly equivalent
<apeiros> Jarsue: terminology again. same != equivalent
<apeiros> Jarsue: and jhass already confirmed that they're equivalent
<ebonics> there is no way to alter the output without changing the statements themselves?
<jhass> ebonics: yes
dfinninger has quit [Remote host closed the connection]
<apeiros> ebonics: yes, a ||= b is strictly equivalent to a = b unless a. no way to change that
<ebonics> ok
<apeiros> even for a.b ||= c
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
<yxhuvud> apeiros: except for things that doesn't autovivify like that, such as constants :)
<yxhuvud> ah.. circles :)
<apeiros> yxhuvud: right
<Jarsue> apeiros, Are you from Greece?
<ebonics> i find myself always wanting to use ruby now
<apeiros> Jarsue: no
<jhass> Jarsue: maybe to clarify a bit: I would consider it the same if the parser would actually do an AST transformation from one expression into the other. But I'm 98% certain that's not happening here
<ebonics> im so bad at it though cause i refuse to read a book
<ebonics> im just a cowboy
<Porfa> (anyone in here happend to be bulgarian or cirilic speaking country? im cross asking this in freenode.. but a guest from bulgaria left a note at my house and i can’t understant shit…! )
<apeiros> jhass: given the special casing yxhuvud named, you can be 100% sure.
taiansu has quit [Ping timeout: 264 seconds]
<jhass> right
shuber_ has joined #ruby
dfinninger has joined #ruby
lidenskap has quit [Remote host closed the connection]
tuelz1 has joined #ruby
<ebonics> i wish there were more integrations with ruby
parduse has quit []
<ebonics> like i want to use ruby with php but it's not really feasible
<ebonics> maybe ill write some type of middleware to make it easier
<apeiros> ebonics: you can always interface over things like sockets
<yxhuvud> hmm. I wonder how much break if ! is defined as def !; [true, false].sample; end
doodlehaus has joined #ruby
<ebonics> apeiros, thats what im doing currently
<ebonics> but it's sorta shitty
<ebonics> even if it's doing the same thing, it would be nice if there was some thin layer so i didnt have to do everything myself
<jhass> yxhuvud: given a large enough program, 50% will break
<apeiros> yxhuvud: do that for april fools at your job and tell us the results? :)
<apeiros> though I guess you'd have to hide it in a bunch of commits
<apeiros> otherwise it's quickly found
<shevy> apeiros is not from greece but his evil twin brother, apieros is
<jhass> I used to smuggle stuff into translation updates
BlackGear has joined #ruby
axsuul has joined #ruby
<shevy> you were a real gangsta when you were young jhass
<shevy> I was much more evil - I got rid of all but english
<apeiros> shevy: if only I had only a twin brother. obviously we're octuplets…
BlackGear has quit [Max SendQ exceeded]
multi_io has quit [Ping timeout: 255 seconds]
<Mon_Ouie> Just tried it in Pry. Surprisingly I could still type and get syntax highlighting, after a couple of lines it randomly returned nil and exited.
shuber_ has quit [Ping timeout: 246 seconds]
<apeiros> "randomly"
<apeiros> wasn't that the point? :D
scripore has quit [Quit: This computer has gone to sleep]
<yxhuvud> irb get very confused as well
multi_io has joined #ruby
<shevy> you guys are trying to break ruby
<Mon_Ouie> I'm mostly surprised that the syntax highlighting logic doesn't break
<apeiros> that was actually one of the rare cases where monkey patching cost me a lot of time. when zenspider patched NilClass#method_missing to return nil.
<shevy> hehe
<yxhuvud> what the hell
iasoon has joined #ruby
<apeiros> that said, I still wish nobu's feature request for .? would have been accepted :-/
<shevy> what is .? doing?
dented42_ has joined #ruby
<apeiros> shevy: basically `a.?b` is `a.b unless a.nil?`
dented42 has quit [Ping timeout: 258 seconds]
greenbagels has quit [Read error: Connection reset by peer]
<apeiros> i.e. it returns nil if the receiver is nil and won't even call the method. otherwise it will call the method just like `.`
<apeiros> common use cases are e.g. input = gets.?chomp
<shevy> hmm
<shevy> the ? in the middle there actually looks weird to read
<apeiros> I agree
<apeiros> but it still looks nicer than all the boilerplate you need without it
dented42 has joined #ruby
<jhass> so basically Object#try
<apeiros> jhass: almost. the huge difference is that it shortcuts
Cache_Money has joined #ruby
<jhass> apeiros: do you happen to have a link? might suggest it to Crystal
<apeiros> jhass: uh, it's ancient. I doubt I'll find it again.
<apeiros> I think that was even back in 1.8 times.
<shevy> people suggest weird things
<shevy> look at that part:
<shevy> "For example, snippet foo!?1:2 is interpreted to call method foo! and ternary operation now"
dented42_ has quit [Ping timeout: 240 seconds]
airdisa has quit []
moloch has left #ruby [#ruby]
endash has quit [Quit: endash]
platzhirsch has joined #ruby
DynamicMetaFlow has quit [Remote host closed the connection]
zly has joined #ruby
awojnarek has joined #ruby
hectortrope has quit [Quit: WeeChat 0.4.2]
awojnarek is now known as andywojo
sinkensabe has quit [Remote host closed the connection]
andywojo has quit [Client Quit]
doodlehaus has quit [Remote host closed the connection]
awojnarek has joined #ruby
<apeiros> jhass: nope, didn't find it
awojnarek has quit [Client Quit]
<jhass> thanks anyway
Jarsue has quit [Quit: Leaving]
andywojo has joined #ruby
n80 has joined #ruby
sinequanon has joined #ruby
SouL_|__ has quit [Read error: Connection reset by peer]
SouL_|_ has joined #ruby
failshell has joined #ruby
scripore has joined #ruby
javiercito has joined #ruby
mary5030 has quit [Remote host closed the connection]
quimrstorres has joined #ruby
AndyBotwin has quit [Read error: Connection reset by peer]
platzhirsch has left #ruby [#ruby]
mary5030 has joined #ruby
rtcoms has joined #ruby
failshell has quit [Ping timeout: 276 seconds]
rtcoms has quit [Client Quit]
hectortrope has joined #ruby
Jackneill has quit [Read error: Connection reset by peer]
kohvihoor has quit [Remote host closed the connection]
Notte has quit [Remote host closed the connection]
quimrstorres has quit [Ping timeout: 264 seconds]
mary5030 has quit [Ping timeout: 265 seconds]
andywojo has quit [Quit: WeeChat 1.1.1]
hectortrope has quit [Client Quit]
_blizzy_ has quit [Read error: Connection reset by peer]
andywojo has joined #ruby
MasterPiece has quit [Quit: Leaving]
_blizzy_ has joined #ruby
Zackio has left #ruby [#ruby]
hectortrope has joined #ruby
javiercito has quit [Remote host closed the connection]
Zackio has joined #ruby
hectortrope has quit [Client Quit]
neanderslob has joined #ruby
idafyaid has quit [Ping timeout: 256 seconds]
<andywojo> ]/join ##brogrammers
javiercito has joined #ruby
<jhass> are you sure?
<apeiros> *sob*, from https://rubyplus.com/articles/1981 ("Class Methods Demystified"): "The class methods live in a ghostclass, eigenclass or metaclass"
hectortrope has joined #ruby
<apeiros> ruby has settled on singleton_class.
<jhass> ghostclass is new to me :D
<jhass> mh, is that a new article?
<adaedra> « ghostclass »
<jhass> doesn't seem to have a date on it
<adaedra> booo, I'm a class, and I come to haunt you.
hectortrope has quit [Changing host]
hectortrope has joined #ruby
<apeiros> jhass: it was posted on ruby-flow today. but the article itself doesn't seem to have a date.
<apeiros> "Copyright 2013-2015" implies it was written long after 1.9, though :)
<jhass> it doesn't say ghost method too :(
<apeiros> I vote for spooky_class
|Zz_fan| has joined #ruby
<jhass> well, there's a Contact form... soo... https://xkcd.com/386/
<apeiros> or in ruby's case, heisenclass. because it only starts to exist when needed :)
shock_one has quit [Remote host closed the connection]
shock_one has joined #ruby
<apeiros> that's an *excellent* reason to stay online. also I commented (on ruby-flow, though, due to a lack of comment functionality on the article's site)
|Zz_fan| has quit [Client Quit]
<jhass> mh, I should submit the google fight plugin to ruboto :P
javiercito has quit [Remote host closed the connection]
vmatiyko has quit [Ping timeout: 245 seconds]
hectortrope has quit [Quit: WeeChat 0.4.2]
Pupeno has quit [Remote host closed the connection]
<apeiros> do it :D
<apeiros> also a lmgtfy
malcolmva has quit [Ping timeout: 272 seconds]
<jhass> !enable Google
<jhass> ah, right
<apeiros> will you add it to the todo or shall I?
<jhass> !gf ghostclass vs singleton class
<DeBot> singleton class destroys ghostclass! (1,790,000 to 30,800)
<jhass> !gf eigenclass vs singleton class
<DeBot> singleton class destroys eigenclass! (1,790,000 to 18,300)
<jhass> !gf metaclass vs singleton class
<DeBot> singleton class crushes metaclass! (1,790,000 to 386,000)
j0n3 has quit [Quit: Leaving]
<jhass> that's all
<apeiros> unfair, though, since "singleton class" will also contain singleton pattern
hectortrope has joined #ruby
<jhass> we don't care
<jhass> and you add it to the todo please ;P
<apeiros> kk
<adaedra> !gf class vs module
idafyaid has joined #ruby
<adaedra> :'(
shock_one has quit [Ping timeout: 250 seconds]
asmodlol has quit [Ping timeout: 255 seconds]
zzxc has quit [Ping timeout: 276 seconds]
parduse has joined #ruby
zzxc has joined #ruby
zzxc has joined #ruby
zzxc has quit [Changing host]
asmodlol has joined #ruby
<adaedra> If it's like that, I'm gonna play hangman on the other channel, na!
<apeiros> !hangman ruby
<apeiros> no hangman in here anymore?
<jhass> that one still needs the prefix
<apeiros> DeBot: !hangman ruby
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<apeiros> aha
<apeiros> that's actually good. follows bot rules :)
<apeiros> DeBot: esn#
<DeBot> ␣␣␣e#␣␣n␣␣␣␣ [s] 1/12
<adaedra> DeBot: !?
<DeBot> ␣␣␣e#␣␣n␣␣␣? [s!] 2/12
<jhass> DeBot: _
<DeBot> ␣␣␣e#␣␣n␣␣␣? [s!_] 3/12
hectortrope has quit [Changing host]
hectortrope has joined #ruby
<apeiros> DeBot: ia
<DeBot> ␣a␣e#␣␣n␣a␣? [s!_i] 4/12
powder has quit [Ping timeout: 252 seconds]
<jhass> DeBot: s
<DeBot> ␣a␣e#␣␣n␣a␣? [s!_i] 4/12
<jhass> oh, had that already
<adaedra> huhu
<adaedra> DeBot: n
<DeBot> ␣a␣e#␣␣n␣a␣? [s!_i] 4/12
<adaedra> this too D:
<jhass> DeBot: t
<DeBot> ␣ate#␣␣n␣a␣? [s!_i] 4/12
<adaedra> DeBot: d
<DeBot> Date#␣␣nda␣? [s!_i] 4/12
<adaedra> DeBot: suy
<DeBot> Date#␣␣nday? [s!_iu] 5/12
<jhass> DeBot: y
<DeBot> Date#␣␣nday? [s!_iu] 5/12
<jhass> DeBot: mo
<DeBot> Date#monday? [s!_iu] 5/12 You won!
<adaedra> DeBot: mo
<adaedra> /o
<adaedra> /o\*
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
powder has joined #ruby
nii236 has joined #ruby
duncannz has quit [Ping timeout: 258 seconds]
CryBro has joined #ruby
hectortrope has quit [Quit: WeeChat 0.4.2]
shuber_ has joined #ruby
brianstorti has quit [Remote host closed the connection]
ad123fe has joined #ruby
nii236 has quit [Ping timeout: 272 seconds]
ad123fe has quit [Client Quit]
malcolmva has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Papipo has quit [Ping timeout: 272 seconds]
poguez_ has quit [Quit: Connection closed for inactivity]
JDiPierro has joined #ruby
rawrmonstar has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has joined #ruby
vickleton has joined #ruby
lidenskap has joined #ruby
JDiPierro has quit [Remote host closed the connection]
meph has joined #ruby
javiercito has joined #ruby
<shevy> you guys rather play than code
JDiPierro has joined #ruby
<adaedra> problem?
<andywojo> Anyone know a good rubygem for dealing with binary files? I have some files that are all in hex I want to parse
<adaedra> String#unpack is not enough?
gluten_hell has joined #ruby
casadei has joined #ruby
<apeiros> andywojo: if they're in hex, they're not binary ;-)
mordof has quit [Quit: Leaving]
<apeiros> (well, they are binary in the sense that all files are binary)
JDiPierro has quit [Remote host closed the connection]
Musashi007 has joined #ruby
<heftig> for the purposes of text/binary distinction, hex is text
<apeiros> andywojo: but to be more helpful - what precisely do you have and what do you want? I doubt you need a gem for it.
lidenskap has quit [Ping timeout: 252 seconds]
avelldiroll has quit [Remote host closed the connection]
DynamicMetaFlow has joined #ruby
DynamicMetaFlow has quit [Max SendQ exceeded]
DynamicMetaFlow has joined #ruby
avelldiroll has joined #ruby
<andywojo> I want to parse a file that's a binary file
<andywojo> Let me provide an example...
casadei has quit [Ping timeout: 240 seconds]
decoponio has quit [Read error: Connection reset by peer]
AlphaAtom has quit [Quit: Textual IRC Client: www.textualapp.com]
decoponio has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<andywojo> from vim it looks like: http://pastebin.com/AS6Mdtun
<ruboto> andywojo, we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<apeiros> andywojo: ok, so it's not all hex.
<adaedra> yes, that's binary
<apeiros> andywojo: so first step is: data = File.read(path, encoding: Encoding::BINARY)
<andywojo> It's a heros of the storm replay file, I've been told it can be parsed via hex, but it is binary.
<andywojo> ok
<apeiros> as for the parsing - that depends a lot on how the data is structured. common tools: String#unpack, String#match and StringScanner
<apeiros> note that you'll probably want to use the //n flag with your regex
decoponio has quit [Max SendQ exceeded]
neanderslob has quit [Remote host closed the connection]
<apeiros> toretore: looks nice. I also remember a differently named gem which does about the same.
DynamicMetaFlow has quit [Remote host closed the connection]
bitri has joined #ruby
decoponio has joined #ruby
DynamicMetaFlow has joined #ruby
gluten_hell has quit [Quit: Lingo - http://www.lingoirc.com]
tubuliferous has joined #ruby
<toretore> apeiros: i think that's what i was searching for when i came upon this one
<toretore> i couldn't remember if it was the same or not
<andywojo> sweet thanks guys
shuber_ has quit [Remote host closed the connection]
jgt has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
tubuliferous has quit [Ping timeout: 256 seconds]
andywojo has quit [Remote host closed the connection]
edwinvdgraaf has quit [Remote host closed the connection]
tubuliferous has joined #ruby
jgt has quit [Ping timeout: 255 seconds]
edwardsykes1 has quit [Quit: edwardsykes1]
n80 has quit [Read error: Connection reset by peer]
failshell has joined #ruby
ascarter has joined #ruby
tyfighter has joined #ruby
Zackio has quit [Quit: ZNC - http://znc.in]
CryBro has quit [Remote host closed the connection]
failshell has quit [Ping timeout: 265 seconds]
scripore has quit [Quit: This computer has gone to sleep]
postmodern has joined #ruby
joelataylor has joined #ruby
joelataylor has quit [Client Quit]
SouL_|_ has quit [Ping timeout: 258 seconds]
joast has quit [Quit: Leaving.]
scripore has joined #ruby
sinequanon has quit [Remote host closed the connection]
sinequanon has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ki0 has joined #ruby
ki0 has quit [Remote host closed the connection]
gambl0re has quit [Ping timeout: 250 seconds]
mary5030 has joined #ruby
Zai00 has quit [Quit: Zai00]
Pupeno has joined #ruby
Pupeno has joined #ruby
ghr has joined #ruby
tuelz1 has quit [Ping timeout: 264 seconds]
edwinvdgraaf has joined #ruby
DynamicMetaFlow has quit [Remote host closed the connection]
ascarter has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
idafyaid has quit [Ping timeout: 276 seconds]
Squarepy has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 258 seconds]
Musashi007 has quit [Quit: Musashi007]
Zackio has joined #ruby
idafyaid has joined #ruby
idafyaid has quit [Changing host]
idafyaid has joined #ruby
mary5030 has quit [Ping timeout: 258 seconds]
endash has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
javiercito has quit [Remote host closed the connection]
bogdanteleaga has quit [Ping timeout: 250 seconds]
bogdanteleaga has joined #ruby
BlackGear has joined #ruby
oldbones has joined #ruby
x77686d has quit [Quit: x77686d]
javiercito has joined #ruby
tyfighter has quit [Quit: tyfighter]
argoneus is now known as SCoin
SCoin is now known as argoneus
sinequanon has quit []
BlackGear has quit [Ping timeout: 256 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
javiercito has quit [Remote host closed the connection]
RegulationD has quit [Remote host closed the connection]
RegulationD has joined #ruby
Pupeno has quit [Remote host closed the connection]
lidenskap has joined #ruby
endash has quit [Quit: endash]
Stalkr_ has quit [Quit: Leaving...]
havenwood has joined #ruby
duncannz has joined #ruby
kirun has quit [Quit: Client exiting]
lidenskap has quit [Ping timeout: 264 seconds]
DynamicMetaFlow has joined #ruby
jottr has joined #ruby
weemsledeux has joined #ruby
twistedpixels is now known as zz_twistedpixels
javiercito has joined #ruby
shuber_ has joined #ruby
<shevy> does the world wide web have a universal icon or logo?
ohaibbq has joined #ruby
zz_twistedpixels is now known as twistedpixels
hardlin3r has joined #ruby
mengu has quit [Remote host closed the connection]
nahtnam has quit [Quit: Connection closed for inactivity]
nii236 has joined #ruby
<apeiros> I'd say the wireglobe
<apeiros> but I wouldn't know what authority could declare a www icon/logo to be official
turtil has joined #ruby
colorados has joined #ruby
TheNet has quit [Ping timeout: 256 seconds]
failshell has joined #ruby
dfinninger has quit [Remote host closed the connection]
<shevy> hah cool
<shevy> I did not even know the word wireglobe before
javiercito has quit [Remote host closed the connection]
crazydiamond has quit [Ping timeout: 244 seconds]
<shevy> a question
<shevy> if I have: Foo.new { :bla }
<shevy> where is that block given to? it's passed into initialize() or?
<toretore> yes
nii236 has quit [Ping timeout: 272 seconds]
<toretore> well, first to new, which by default passes it on to initialize
Leef_ has quit [Quit: Leaving]
postmodern has quit [Quit: Leaving]
failshell has quit [Ping timeout: 264 seconds]
<ebonics> ;o
javiercito has joined #ruby
jack_rabbit_ has quit [Quit: Leaving]
jack_rabbit_ has joined #ruby
<apeiros> ActiveSupport::Inflector.inflections.acronym_regex # => /(?=a)b/
<apeiros> interesting
jack_rabbit_ has quit [Remote host closed the connection]
jack_rabbit has joined #ruby
swgillespie has joined #ruby
Deele2 has quit [Quit: User excited]
spider-mario has quit [Read error: Connection reset by peer]
wjlroe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
javiercito has quit [Remote host closed the connection]
lxsameer has quit [Quit: Leaving]
Papipo has joined #ruby
<apeiros> hrmpf, can't define an anonymous empty struct :(
<apeiros> oooh, actually I can :D
<apeiros> Struct.new(nil) works
Musashi007 has joined #ruby
javiercito has joined #ruby
javiercito has quit [Remote host closed the connection]
<havenwood> apeiros: Used that for my Hash#to_struct refinement: https://gist.github.com/havenwood/6350198
<apeiros> havenwood: I have the refinement the other way round - Struct.from_hash :)
<havenwood> apeiros: Oh, no I didn't use nil, nvm. My memory fails me.
<apeiros> you probably should
<apeiros> try an empty hash with your current code
hewenhong has joined #ruby
<apeiros> personally I find that code a bit dangerous - missing key will lead to collisions
javiercito has joined #ruby
<apeiros> with a given struct name that is
tuelz1 has joined #ruby
DynamicMetaFlow has quit [Remote host closed the connection]
<shevy> you two scare me
<apeiros> anyway, I'd replace Struct.new(*keys) with Struct.new(nil, *keys)
<shevy> just like the movie Event Horizon ... you are in the deep scary parts of The Rubyverse
colorados has quit [Quit: Leaving]
DynamicMetaFlow has joined #ruby
<havenwood> apeiros: Nice. Yeah, just a one-off script from a few years back.
<havenwood> I was coding Ruby years ago now, yay! :)
mengu has joined #ruby
hewenhong has quit [Ping timeout: 272 seconds]
<havenwood> I wish Ruby methods written in C responded properly to #parameters.
tuelz1 has quit [Ping timeout: 272 seconds]
casadei has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
shevy has quit [Ping timeout: 276 seconds]
casadei has quit [Ping timeout: 264 seconds]
mengu has quit [Ping timeout: 250 seconds]
shevy has joined #ruby
s2013 has joined #ruby
slawrence00 has joined #ruby
redlegion has joined #ruby
scripore has joined #ruby
rahult has joined #ruby
tuelz1 has joined #ruby
tubuliferous_ has joined #ruby
rahult has quit [Client Quit]
gmas has quit [Quit: WeeChat 1.1.1]
threh has quit [Quit: Leaving]
jgt has joined #ruby
marr has quit []
bitri has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CloCkWeRX has joined #ruby
tubuliferous_ has quit [Ping timeout: 250 seconds]