baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.10: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || Rails questions? Ask on #RubyOnRails || logs @ https://irclog.whitequark.org/ruby/
<jazzonmym111nd> Thread.new {}, fork {}. they're part of ruby but they're unlikely to be what you want in a webapp.
dminuoso has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 265 seconds]
<jaequery> Celluloid, i think i need to modify my class to include the Celluloid library
NetSage has quit [Remote host closed the connection]
<jaequery> which i dont want to do, i want the async to just work anywhere like a helper utility
<jaequery> so, am i asking for too much? wanting an async library that works for webapp, in a fashion like, async do { .... code .... } ?
<Papierkorb> jaequery: Use fork{} if you're using a forking webserver or Thread.new{} if you're using a threading webserver. If unsure, fork.
<jaequery> im using passenger phusion
<Papierkorb> jaequery: What are you trying to do? For what?
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jazzonmym111nd> it forks, and you're gonna collect zombies unless you use Process.wait() at which point you're not async anymore.
<Papierkorb> Most likely, you'll want to have a worker process outside the webapp anyway.
<jaequery> just send out emails without blocking the page
NetSage has joined #ruby
<jazzonmym111nd> in webapps people use sidekiq most of the time.
<jaequery> yeah i understand sidekiq is what most uses, it's just i wanted something that works in the fashion i described above
<jaequery> i know im picky but i have a lot of other node.js guys with me asking for same thing
<Papierkorb> jaequery: What you described above won't work with an external worker
<Papierkorb> Which is common place to have in Ruby-webdev-land
<eam> jazzonmym111nd: you can always call wait non-blocking
etetz has joined #ruby
jphase has quit [Remote host closed the connection]
<jaequery> so, what i asked above is not possible? even for my use case?
zeroDi has quit [Quit: WeeChat 1.5]
jphase has joined #ruby
BrianJ has joined #ruby
<Papierkorb> jaequery, jazzonmym111nd you can also use Process.detach() to not accumulate zombies
solocshaw has joined #ruby
<jazzonmym111nd> eam: maybe, i think it will always depend on what the web server will do.
<eam> or just fork { fork { } }
<Papierkorb> jaequery: You can fork{}. If you're sure you know about the consequences
elenatanasoiu has joined #ruby
<Papierkorb> Having a track record of all async jobs ran in a database is actually really nice
RegulationD has quit [Ping timeout: 248 seconds]
<jaequery> i dont know basedd on what you guys said, im a bit weary on using forks
<Papierkorb> huh?
<jazzonmym111nd> fork isn't a good idea imo, especially in a rails app but if your application is small and the web server doesn't kill the fork, it could work. it'd be a shabby solution tbh.
<Papierkorb> Well, you may have to fix stuff like database connections (if you need that) after forking
<Papierkorb> jazzonmym111nd: The wanted solution is already shabby anyway
<eam> any time you fork, flip a coin and maybe your objects with shared state will all get jacked up
JakFrist has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jaequery> so, if i were to use sidekiq, do you think its possible for me to create a helper utility method to do what i want? def async &block ?
JoshS has joined #ruby
<jazzonmym111nd> yes it's possible.
rcvalle has quit [Quit: rcvalle]
<Papierkorb> jaequery: No. How do you think would the code inside the block be sent to the worker process?
etetz has quit [Ping timeout: 255 seconds]
<lupine> well :D
RedNifre_ has joined #ruby
<jazzonmym111nd> def aysnc(&block); Class.new { include Sidekiq::Worker; def perform(*args); block.call(*args); end; } something like that *might* work.
jphase has quit [Ping timeout: 248 seconds]
<Papierkorb> Except for completely insane RubyVM::InstructionSequence hacks
<lupine> or just eval
<lupine> or, um, what's it called
<Papierkorb> jazzonmym111nd: Nope.
<lupine> that insane remote ruby thing
<al2o3-cr> Frankel
<Papierkorb> lupine: drb
<lupine> yeah, that piece of insanity
<Papierkorb> lupine: But that does RPC, not code distribution
<Papierkorb> So kinda like JSON-RPC
elenatanasoiu has quit [Ping timeout: 265 seconds]
<lupine> expect it uses Marshal under the hood, at least from memory
<lupine> except*
arnonhongklay has quit [Read error: Connection reset by peer]
jshjsh has quit [Ping timeout: 260 seconds]
RedNifre has quit [Ping timeout: 240 seconds]
Rickmasta has joined #ruby
blackmes1 has joined #ruby
solocshaw has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 265 seconds]
<jaequery> sorry guys, so what was the verdict? was it possible to do or , not possible to do
<jaequery> i need to head out in a bit so just wanna get some quick closure to this if possible
ninja007 has joined #ruby
jrafanie has joined #ruby
<ninja007> Hi
<ninja007> I’m new to Ruby language,
<jazzonmym111nd> welcome
<ninja007> and some inherited legacy code here for help:
<ninja007> if ( name[0] != ?_) ....
arnonhongklay has joined #ruby
<ninja007> what the ‘?_’ mean?
<ninja007> should it be something like ‘_’ the single char underbar?
tmtwd has joined #ruby
jenrzzz has joined #ruby
<jazzonmym111nd> was that code written for ruby 1.8?
<ninja007> I can guess that it compares the first letter of name variable to underbar char.
arnonhongklay has quit [Remote host closed the connection]
<ninja007> @jazzonmym111nd, yes
<ninja007> the code was developed in 2011.
<ninja007> or earlier.
<jazzonmym111nd> 18>> ?a
<ruby[bot]> jazzonmym111nd: # => 97 (https://eval.in/644955)
<jazzonmym111nd> 18>> ?_
<ruby[bot]> jazzonmym111nd: # => 95 (https://eval.in/644957)
arnonhongklay has joined #ruby
<raldu> wow
<jazzonmym111nd> same as String#ord.
<ninja007> sorry, what’s that?
<lupine> could be rewritten as if name[0] != '_' in ruby1.9
<jaequery> @jazz, so i take it , what you described is not doable? as per papierkorb said?
<ninja007> then what does ? in ruby 1.8 mean?
<lupine> in ruby1.8, anystring[x] returned a fixnum
panpainter has quit [Remote host closed the connection]
JeanCarloMachado has quit [Quit: leaving]
tdy has joined #ruby
JeanCarloMachado has joined #ruby
<lupine> and ?<anychar> returned a fixnum
<lupine> those were the bad old days
<jazzonmym111nd> jaequery: yeah it wouldn't work, because a job class is initialized in a different process responsible for running jobs.
<ninja007> oh, in 1.8, then name[0] retruns a fixnum instead of char?
<lupine> yep
<raldu> is ?<char> construct outdated now? this is the first time I am seeing it, and I couldn't find anything related in the v2 docs.
<lupine> yeah, I wouldn't use it these days
<lupine> not least because it confuses new rubyists in a way '_'.ord would not
<ninja007> and also the ?<char> returns a fixnum too, so the above compare is compare two fixnum,
<jaequery> oh that is a bummer :(
elenatanasoiu has joined #ruby
jblack has quit [Ping timeout: 265 seconds]
<ninja007> instead of a real char to char compare, right? :)
nitric has quit [Ping timeout: 272 seconds]
<jazzonmym111nd> ninja007: right.
<jaequery> okay, i guess i'll just try sucker punch then
<ninja007> I’m on a Centos 6 box, and the ruby is still 1.8.7
<jazzonmym111nd> if you're running on >1.8 now you can just say name[0] == '_'.
<ninja007> Got it.
arnonhongklay has quit [Ping timeout: 244 seconds]
<ninja007> the question mark puzzle me — not easy to google it. Thanks a lot to all.
<jazzonmym111nd> yw
dsea has joined #ruby
<lupine> only in ruby < 1.9
<lupine> in modern ruby, ?_ would return '_' it seems
<lupine> and '_foo'[0] would return '_'
<lupine> so it still works, just for different reasons
elephants has joined #ruby
<lupine> is it a perl operator?
AzureStigma has joined #ruby
toretore has quit [Ping timeout: 240 seconds]
UserOO7 has quit [Remote host closed the connection]
elenatanasoiu has quit [Ping timeout: 240 seconds]
gp has quit [Quit: Leaving]
wldcordeiro has quit [Ping timeout: 272 seconds]
LuckyABA has joined #ruby
redpants has joined #ruby
UserOO7 has joined #ruby
nando293921 has joined #ruby
AzureStigma has quit [Client Quit]
astrobunny has quit [Remote host closed the connection]
newbie1 has quit [Ping timeout: 248 seconds]
ruby_ has quit [Remote host closed the connection]
jshjsh has joined #ruby
stamina has joined #ruby
panpainter has joined #ruby
JoshS has quit [Ping timeout: 264 seconds]
duderonomy has quit [Ping timeout: 272 seconds]
dunj3 has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
chouhoulis has quit [Ping timeout: 265 seconds]
dunj3 has joined #ruby
ixti has quit [Quit: WeeChat 1.5]
mistermocha has joined #ruby
panpainter has quit [Ping timeout: 255 seconds]
AzureStigma has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackmes1 has quit [Ping timeout: 248 seconds]
meinside has joined #ruby
skweek has quit [Ping timeout: 250 seconds]
AzureStigma has quit [Client Quit]
mistermocha has quit [Ping timeout: 255 seconds]
neanderslob has quit [Remote host closed the connection]
mtkd has quit [Ping timeout: 272 seconds]
shinnya has joined #ruby
skweek has joined #ruby
_djbkd has quit [Quit: My people need me...]
Rasi has quit [Ping timeout: 250 seconds]
mtkd has joined #ruby
<havenwood> lupine: maybe from Smalltalk's $ char literal?
Rasi has joined #ruby
<lupine> mm, doesn't seem to be a direct perl copy
<ratatine> Is there a way to do string interpolation referencing a nested hash? Like puts "Value: %{w}" % { a: { w: "one", x: "two"}} ?
Rickmasta has joined #ruby
stamina has quit [Ping timeout: 240 seconds]
LoneHermit has joined #ruby
Moosashi has joined #ruby
solocshaw has joined #ruby
jblack has joined #ruby
<jazzonmym111nd> ratatine: dont think so. why cant you just say "%{w}" % hash[:a] ?
LoneHermit has quit [Ping timeout: 260 seconds]
dminuoso has joined #ruby
jblack has quit [Ping timeout: 265 seconds]
<ratatine> jazzonmym111nd, I have a nested hash coming from a rest API. I want to display a form of a subset of the data, grabbing fields from multiple levels. I thought I'd create the form with formtemplate = <<-eos ... and put in all the fields where I want them and just pass the hash to it.
<ratatine> Would be about the most slick way of rendering out the data in a human readable output.
<jazzonmym111nd> you could just use pretty print
<ratatine> Everywhere else I turn people are all "oh use awesome print" but that just does what pp does.
<ratatine> ugh
<ratatine> Not you too. ;)
<ratatine> I don't want to display the whole json document. Jut subsets.
<ratatine> And I'd like to do so without a massive list of puts statements formatting each line individually and a bunch of each clauses parsing out the nests.
<jazzonmym111nd> well, String#% won't work with nested hashes like that, unless you are explicit about which subset you want. pretty print works well if you just supply subsets too.
<jazzonmym111nd> >> "%{foo}" % {foo: {bar: 1}}
<ruby[bot]> jazzonmym111nd: # => "{:bar=>1}" (https://eval.in/644967)
dminuoso has quit [Ping timeout: 260 seconds]
<jazzonmym111nd> so it kinda works.
Moosashi has quit [Quit: Moosashi]
<ratatine> pp from what I've seen just gives me a lint for json. is there a method I missed?
wingwalker has joined #ruby
<jazzonmym111nd> >> pp {foo: {bar: 1}}
<ruby[bot]> jazzonmym111nd: # => /tmp/execpad-2f33c9f132b8/source-2f33c9f132b8:2: syntax error, unexpected ':', expecting '}' ...check link for more (https://eval.in/644968)
<jazzonmym111nd> >> require 'pp'; pp {foo: {bar: 1}}
<ruby[bot]> jazzonmym111nd: # => /tmp/execpad-778747681fac/source-778747681fac:2: syntax error, unexpected ':', expecting '}' ...check link for more (https://eval.in/644969)
<ratatine> this is my json: http://pastebin.com/F3jLwBYt
<ruby[bot]> ratatine: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/cc8ff0f0924e9f655d350b3161ac05c9
<ruby[bot]> ratatine: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<ratatine> Thank you ruby[bot]. You're so kind.
AzureStigma has joined #ruby
pavshn has quit [Ping timeout: 244 seconds]
<ratatine> So pp would display that in a linted style which is unsuitable for sending to a user.
<ratatine> Users don't speak json afterall.
<jazzonmym111nd> im not sure, you might just have to write a small parser that creates a digest of it that's readable to a human.
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ratatine> Guess so. My hope was I could do something like puts "Location: %{geolocation}{country}" % jsondata
<ratatine> Except my format string would be a long report style string created with formatstring = %{...} ....
<ratatine> Thanks for your thoughts though.
AzureStigma has quit [Client Quit]
<jazzonmym111nd> i don't think String#% is that sophiscated.
jblack has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
jshjsh is now known as JoshS
symm- has quit [Quit: Leaving...]
SteenJobs has joined #ruby
pragmati- has quit [Remote host closed the connection]
Bellthoven has quit []
workmad3 has quit [Ping timeout: 264 seconds]
aryaching has quit [Ping timeout: 244 seconds]
CloCkWeRX has joined #ruby
ropeney has joined #ruby
pragmatism has joined #ruby
wldcordeiro has joined #ruby
jrozner has quit [Ping timeout: 272 seconds]
saneax is now known as saneax-_-|AFK
AzureStigma has joined #ruby
JeanCarloMachado has quit [Ping timeout: 265 seconds]
jblack has quit [Ping timeout: 264 seconds]
JeanCarloMachado has joined #ruby
workmad3 has joined #ruby
AzureStigma has quit [Client Quit]
<jazzonmym111nd> ratatine: you could write an ERB template
<ratatine> Never heard of it. I'll google it. Thanks.
parantapVikram has joined #ruby
watersoul has quit [Remote host closed the connection]
watersoul has joined #ruby
SenpaiSilver has quit [Ping timeout: 240 seconds]
Vivekananda has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
SenpaiSilver has joined #ruby
ruby_ has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
aryaching has joined #ruby
rsampaio_ has joined #ruby
arescorpio has joined #ruby
Puffball has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ruby_ has quit [Ping timeout: 265 seconds]
A_Drone has joined #ruby
xcesariox has joined #ruby
xcesariox has quit [Client Quit]
xcesariox has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
ramfjord_ has joined #ruby
Puffball has quit [Remote host closed the connection]
ichkv has joined #ruby
shinnya has quit [Ping timeout: 244 seconds]
Blackpajamas has joined #ruby
A_Drone has quit [Remote host closed the connection]
replay has quit [Quit: Textual IRC Client: www.textualapp.com]
<ichkv> hi all, this channek been any body from speach russian; also writing only english? Thnks
ramfjord has quit [Ping timeout: 240 seconds]
<ichkv> *chanel
Puffball has joined #ruby
<jazzonmym111nd> #ruby.ru
<ichkv> ok, Thank you
<jazzonmym111nd> hm no sorry
<jazzonmym111nd> no one in that channel
blackmes1 has joined #ruby
<ichkv> pretty... default me search on jabber (xmpp)
<ichkv> but in "*.ru.net" info after 11-12 years very minimal and only from beginners
mistermocha has joined #ruby
ninja007 has quit [Quit: ninja007]
Guest40 has joined #ruby
gizmore has joined #ruby
<jazzonmym111nd> yeah, might not be a ruby channel for russian
duderonomy has joined #ruby
<ichkv> so, me login in to #ruby.ru, but nobody them
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ichkv has left #ruby [#ruby]
ichkv has joined #ruby
A_Drone has joined #ruby
blackmes1 has quit [Ping timeout: 260 seconds]
mistermocha has quit [Ping timeout: 250 seconds]
AzureStigma has joined #ruby
<ichkv> so guys, if your using linux and beginners/middle RoR then me been pair question from your :)
Immune has quit [Ping timeout: 260 seconds]
Puffball has quit [Remote host closed the connection]
Puffball has joined #ruby
<eam> good evening, how are your rubies
<jazzonmym111nd> shiny
tdy has quit [Ping timeout: 264 seconds]
_sfiguser has quit [Ping timeout: 250 seconds]
<ichkv> what?) me? my english-skill tell as reading man pages linux (read but easy writung)
<ichkv> *writing
xcesariox has quit [Quit: Textual IRC Client: www.textualapp.com]
d10n-work has quit [Quit: Connection closed for inactivity]
nankyokusei has joined #ruby
hosttor has quit [Remote host closed the connection]
ramfjord_ has quit [Ping timeout: 240 seconds]
plasticxu has quit [Quit: Leaving]
ramfjord has joined #ruby
Bellthoven has joined #ruby
AzureStigma has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dminuoso has joined #ruby
AzureStigma has joined #ruby
Sashimi has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jblack has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
optiz0r has quit [Ping timeout: 240 seconds]
Joufflu has quit [Quit: Leaving]
<ichkv> anybody sing nginx + unicorn? me configuration as instructions, but itsnot deploing
Puffball has quit [Remote host closed the connection]
sarkis has quit [Ping timeout: 265 seconds]
A_Drone has quit [Remote host closed the connection]
dminuoso has quit [Ping timeout: 255 seconds]
Puffball has joined #ruby
jblack has quit [Ping timeout: 244 seconds]
Puffball has quit [Remote host closed the connection]
dhollinger has quit [Ping timeout: 240 seconds]
jblack has joined #ruby
AzureStigma has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_sfiguser has joined #ruby
dhollinger has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AzureStigma has joined #ruby
ratatine has quit [Quit: Leaving]
Puffball has joined #ruby
AndrewIsHere has quit [Remote host closed the connection]
AzureStigma has quit [Client Quit]
ruby_ has joined #ruby
panpainter has joined #ruby
jblack has quit [Ping timeout: 248 seconds]
jphase has joined #ruby
eljimmy has quit [Ping timeout: 240 seconds]
cabs has quit [Remote host closed the connection]
Blackpajamas has quit [Quit: ZZZzzz…]
lel has quit [Read error: Connection reset by peer]
panpainter has quit [Ping timeout: 244 seconds]
cdg has joined #ruby
lifeai has joined #ruby
charliesome has joined #ruby
tmtwd has quit [Ping timeout: 265 seconds]
charliesome has quit [Client Quit]
A_Drone has joined #ruby
Zamyatin has joined #ruby
wisn has joined #ruby
charliesome has joined #ruby
jtzero1 has quit [Ping timeout: 265 seconds]
ninja007 has joined #ruby
fullofca_ has joined #ruby
sarkis has joined #ruby
fullofcaffeine has quit [Ping timeout: 265 seconds]
A_Drone has quit [Remote host closed the connection]
Immune has joined #ruby
wisn has quit [Quit: Leaving]
tdy has joined #ruby
jshjsh has joined #ruby
A_Drone has joined #ruby
JoshS has quit [Ping timeout: 255 seconds]
ramfjord has quit [Ping timeout: 250 seconds]
blackmes1 has joined #ruby
arnonhongklay has joined #ruby
dviola has quit [Quit: WeeChat 1.5]
blackmes1 has quit [Ping timeout: 248 seconds]
redpants has quit [Ping timeout: 272 seconds]
tectonic has quit []
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SteenJobs has quit [Quit: SteenJobs]
Madplatypus has quit [Quit: Connection closed for inactivity]
Bellthoven has quit []
craigp has quit [Ping timeout: 255 seconds]
A_Drone has quit [Remote host closed the connection]
jtzero1 has joined #ruby
JoshS has joined #ruby
arnonhongklay has quit [Read error: Connection reset by peer]
ninja007 has quit [Ping timeout: 250 seconds]
ninja007 has joined #ruby
gizmore has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
arnonhongklay has joined #ruby
dminuoso has joined #ruby
jkeeney has joined #ruby
solocshaw has quit [Ping timeout: 272 seconds]
jshjsh has quit [Ping timeout: 264 seconds]
A_Drone has joined #ruby
NetSage has quit [Remote host closed the connection]
wingwalker has quit [Ping timeout: 250 seconds]
Puffball has quit [Remote host closed the connection]
lifeai has quit [Ping timeout: 265 seconds]
habitullence has quit [Quit: habitullence]
lifeai has joined #ruby
dminuoso has quit [Ping timeout: 250 seconds]
AndrewIsHere has joined #ruby
ninja007_ has joined #ruby
charliesome has joined #ruby
Puffball has joined #ruby
ninja007 has quit [Ping timeout: 264 seconds]
ninja007_ is now known as ninja007
AndrewIsHere has quit [Remote host closed the connection]
UserOO7 has quit [Remote host closed the connection]
UserOO7 has joined #ruby
braincras has quit [Quit: bye bye]
tectonic has joined #ruby
A_Drone has quit [Remote host closed the connection]
arnonhongklay has quit [Read error: Connection reset by peer]
A_Drone has joined #ruby
arnonhongklay has joined #ruby
herbmillerjr has quit [Quit: Konversation terminated!]
A_Drone has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 272 seconds]
A_Drone has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
_djbkd has joined #ruby
karmatr0n has joined #ruby
ninja007 has quit [Quit: ninja007]
A_Drone has quit [Remote host closed the connection]
JoshS has quit [Ping timeout: 255 seconds]
A_Drone has joined #ruby
herbmillerjr has joined #ruby
wingwalker has joined #ruby
braincras has joined #ruby
jkeeney has quit [Ping timeout: 265 seconds]
Puffball has quit [Remote host closed the connection]
marxarelli|afk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruby_ has quit []
hornairs has quit [Quit: hornairs]
Puffball has joined #ruby
A_Drone has quit []
Vingador has joined #ruby
tectonic has quit []
solocshaw has joined #ruby
karmatr0n has quit [Ping timeout: 240 seconds]
wldcordeiro has quit [Quit: WeeChat 1.4]
cdg has quit [Ping timeout: 265 seconds]
wldcordeiro has joined #ruby
UserOO7 has quit []
Guest7611 is now known as rprimus
fullofcaffeine has joined #ruby
blackmes1 has joined #ruby
Blaguvest has quit [Remote host closed the connection]
fullofca_ has quit [Ping timeout: 276 seconds]
fullofcaffeine has quit [Ping timeout: 272 seconds]
jhack has quit [Remote host closed the connection]
JoshS has joined #ruby
ule has quit [Ping timeout: 255 seconds]
jhack has joined #ruby
blackmes1 has quit [Ping timeout: 264 seconds]
fullofcaffeine has joined #ruby
arnonhongklay has quit [Ping timeout: 265 seconds]
csk has quit [Quit: ZZZzzz…]
jphase has quit [Remote host closed the connection]
arnonhongklay has joined #ruby
RegulationD has joined #ruby
yokel has quit [Ping timeout: 265 seconds]
ichkv1 has joined #ruby
ap4y has quit [Remote host closed the connection]
ule has joined #ruby
ichkv has quit [Ping timeout: 265 seconds]
yokel has joined #ruby
gix has quit [Ping timeout: 265 seconds]
RegulationD has quit [Ping timeout: 248 seconds]
nankyokusei has joined #ruby
arnonhongklay has quit [Read error: Connection reset by peer]
arnonhon_ has joined #ruby
arescorpio has quit [Excess Flood]
_djbkd has quit [Quit: My people need me...]
gix has joined #ruby
dminuoso has joined #ruby
nankyokusei has quit [Ping timeout: 272 seconds]
Rickmasta has quit [Quit: Textual IRC Client: www.textualapp.com]
ur5us has joined #ruby
dminuoso has quit [Ping timeout: 264 seconds]
domgetter has joined #ruby
<domgetter> Anyone know what the time complexity of Array#min(n) is?
gnufied has quit [Ping timeout: 250 seconds]
AndrewIsHere has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
<domgetter> sorry, Enumerable#min(2)
<domgetter> Enumerable#min(n) (I must be tired)
fullofcaffeine has joined #ruby
<domgetter> Does Ruby sort the sequence with quicksort?
ninja007 has joined #ruby
ninja007 has quit [Client Quit]
ninja007 has joined #ruby
Eiam has quit [Ping timeout: 264 seconds]
fullofcaffeine has quit [Ping timeout: 255 seconds]
AndrewIsHere has quit [Ping timeout: 272 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arnonhon_ has quit [Read error: Connection reset by peer]
symm- has joined #ruby
panpainter has joined #ruby
arnonhongklay has joined #ruby
astrobunny has joined #ruby
domgetter has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
solocshaw has quit [Ping timeout: 272 seconds]
jtzero1 has quit [Ping timeout: 255 seconds]
optiz0r has joined #ruby
panpainter has quit [Ping timeout: 265 seconds]
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
wingwalker has quit [Ping timeout: 250 seconds]
alfiemax has quit [Ping timeout: 240 seconds]
fullofcaffeine has joined #ruby
Puffball has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
arnonhon_ has joined #ruby
Puffball has joined #ruby
arnonhongklay has quit [Read error: Connection reset by peer]
wingwalker has joined #ruby
jshjsh has joined #ruby
JoshS has quit [Ping timeout: 265 seconds]
<baweaver> &ri Enumerable#min
ARCADIVS has joined #ruby
<baweaver> so yeah, quicksort whenever domgetter shows back up
Guest40 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
boxbeatsy has quit [Quit: Lost terminal]
blackmes1 has joined #ruby
Puffball has quit [Remote host closed the connection]
the_drow has joined #ruby
Puffball has joined #ruby
blackmes1 has quit [Ping timeout: 272 seconds]
p0p0pr37_ has joined #ruby
pawnbox has joined #ruby
p0p0pr37 has quit [Ping timeout: 255 seconds]
p0p0pr37_ is now known as p0p0pr37
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
AnoHito_ has joined #ruby
mwlang has joined #ruby
arnonhon_ has quit [Ping timeout: 272 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wingwalker has quit [Quit: Leaving]
yokel has quit [Ping timeout: 240 seconds]
AnoHito has quit [Ping timeout: 248 seconds]
arnonhongklay has joined #ruby
eljimmy has joined #ruby
ule has quit [Ping timeout: 272 seconds]
sai_ has joined #ruby
dminuoso has joined #ruby
ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
Guest21796 has quit [Ping timeout: 244 seconds]
olspookishmagus has joined #ruby
olspookishmagus is now known as Guest23085
dminuoso has quit [Ping timeout: 264 seconds]
dminuoso has joined #ruby
AndrewIsHere has joined #ruby
blackgoat has quit [Ping timeout: 265 seconds]
joekarma has joined #ruby
BigGold has joined #ruby
ArielMT has quit [Ping timeout: 240 seconds]
BigGold is now known as ArielMT
Cohedrin has joined #ruby
dminuoso has quit [Ping timeout: 272 seconds]
sh1znc has joined #ruby
AndrewIsHere has quit [Ping timeout: 248 seconds]
arnonhon_ has joined #ruby
jpterry has quit [Ping timeout: 264 seconds]
arnonhongklay has quit [Read error: Connection reset by peer]
RedNifre_ has quit [Ping timeout: 248 seconds]
RedNifre has joined #ruby
ta_ has quit [Remote host closed the connection]
jpterry has joined #ruby
domgetter has joined #ruby
SirCmpwn has quit [Ping timeout: 265 seconds]
alfiemax has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
SirCmpwn has joined #ruby
fullofcaffeine has joined #ruby
saneax-_-|AFK is now known as saneax
grh has joined #ruby
joekarma has quit [Quit: joekarma]
ArielMT has quit [Ping timeout: 248 seconds]
astrobunny has quit [Remote host closed the connection]
yokel has joined #ruby
ArielMT has joined #ruby
Vingador has quit [Read error: Connection reset by peer]
Vingador has joined #ruby
Puffball has quit [Remote host closed the connection]
fullofcaffeine has quit [Ping timeout: 265 seconds]
fullofcaffeine has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
craigp has joined #ruby
astrobunny has joined #ruby
djbkd_ has joined #ruby
airhorns has joined #ruby
ule has joined #ruby
fullofcaffeine has quit [Ping timeout: 276 seconds]
amclain has quit [Quit: Leaving]
airhorns has quit [Ping timeout: 255 seconds]
sneakerhax has joined #ruby
arnonhon_ has quit [Remote host closed the connection]
Puffball has joined #ruby
panpainter has joined #ruby
yeticry has quit [Ping timeout: 248 seconds]
sai_ has quit [Remote host closed the connection]
panpainter has quit [Ping timeout: 240 seconds]
yeticry has joined #ruby
blackmes1 has joined #ruby
mistermocha has joined #ruby
jblack has joined #ruby
dionysus69 has joined #ruby
arnonhongklay has joined #ruby
cdown has joined #ruby
mistermocha has quit [Ping timeout: 248 seconds]
tubuliferous_ has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
jblack has quit [Ping timeout: 276 seconds]
teclator has joined #ruby
arnonhongklay has quit [Remote host closed the connection]
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
arnonhongklay has joined #ruby
Vingador has quit [Remote host closed the connection]
last_staff has joined #ruby
dminuoso has joined #ruby
anisha has joined #ruby
Wolland has joined #ruby
bocaneri has joined #ruby
nankyokusei has joined #ruby
arnonhongklay has quit [Ping timeout: 250 seconds]
elenatanasoiu has joined #ruby
vqrs has quit [Ping timeout: 260 seconds]
grh has quit [Ping timeout: 255 seconds]
lifeai has quit [Ping timeout: 265 seconds]
KillerFox has quit [Ping timeout: 244 seconds]
astrobunny has quit [Remote host closed the connection]
vqrs has joined #ruby
bronson has joined #ruby
elenatanasoiu has quit [Ping timeout: 244 seconds]
nankyokusei has quit [Ping timeout: 264 seconds]
KillerFox has joined #ruby
_sfiguser has quit [Ping timeout: 244 seconds]
sai_ has joined #ruby
howdoi has joined #ruby
raeoks has joined #ruby
sai_ has quit [Ping timeout: 250 seconds]
dionysus69 has quit [Ping timeout: 260 seconds]
Puffball_ has joined #ruby
Puffball has quit [Ping timeout: 264 seconds]
Sammichmaker has quit [Read error: Connection reset by peer]
ruby-lang050 has joined #ruby
<ruby-lang050> hi
vqrs has quit [Ping timeout: 248 seconds]
dionysus69 has joined #ruby
<ruby-lang050> hi
jpterry has quit [Ping timeout: 264 seconds]
Vivekananda has joined #ruby
jeffreylevesque_ has joined #ruby
jeffreylevesque has quit [Ping timeout: 248 seconds]
symm- has quit [Ping timeout: 244 seconds]
parantapVikram has quit [Ping timeout: 265 seconds]
vqrs has joined #ruby
nando293921 has quit [Ping timeout: 265 seconds]
raeoks has quit [Max SendQ exceeded]
<ruby-lang050> :'v
sneakerhax has quit [Ping timeout: 265 seconds]
_sfiguser has joined #ruby
zipace has quit [Ping timeout: 272 seconds]
jpterry has joined #ruby
ur5us has quit [Remote host closed the connection]
symm- has joined #ruby
nullfxn has joined #ruby
arnonhongklay has joined #ruby
arnonhongklay has quit [Remote host closed the connection]
arnonhongklay has joined #ruby
dminuoso has quit [Ping timeout: 240 seconds]
firstdayonthejob has joined #ruby
elenatanasoiu has joined #ruby
DoubleMalt has joined #ruby
dminuoso has joined #ruby
lxsameer has joined #ruby
ishe_ua has joined #ruby
mtkd has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
ruby-lang050 has quit [Ping timeout: 240 seconds]
joekarma has joined #ruby
elenatanasoiu has quit [Ping timeout: 244 seconds]
tubuliferous_ has quit [Ping timeout: 276 seconds]
cdown has quit [Remote host closed the connection]
joekarma has quit [Quit: joekarma]
craigp has quit [Ping timeout: 244 seconds]
firstdayonthejob has quit [Ping timeout: 240 seconds]
ICantCook has quit [Quit: bye]
ur5us has joined #ruby
johnmccabe has joined #ruby
eljimmy has quit [Quit: This computer has gone to sleep]
sai_ has joined #ruby
nofxx has quit [Ping timeout: 244 seconds]
robfrawley has joined #ruby
craigp has joined #ruby
robfrawley is now known as Guest89167
nofxx has joined #ruby
conta has joined #ruby
ur5us has quit [Ping timeout: 265 seconds]
mistermocha has joined #ruby
blackmes1 has joined #ruby
mark_66 has joined #ruby
grh has joined #ruby
LoneHermit has joined #ruby
mistermocha has quit [Ping timeout: 248 seconds]
dminuoso has quit [Remote host closed the connection]
wugy has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
LoneHermit has quit [Ping timeout: 240 seconds]
nullfxn has quit [Quit: leaving]
bsrd has joined #ruby
Sashimi has joined #ruby
submitnine has joined #ruby
dminuoso has joined #ruby
ropeney has joined #ruby
astrobunny has joined #ruby
Guest89167 has quit [Ping timeout: 260 seconds]
Pumukel has joined #ruby
tubuliferous_ has joined #ruby
ninja007 has quit [Quit: ninja007]
symm- has quit [Ping timeout: 240 seconds]
djbkd_ has quit [Remote host closed the connection]
robfrawl1y has joined #ruby
Sashimi has quit [Quit: Textual IRC Client: www.textualapp.com]
grh has quit [Remote host closed the connection]
minimalism has quit [Ping timeout: 260 seconds]
AndrewIsHere has joined #ruby
joekarma has joined #ruby
joekarma has quit [Client Quit]
aganov has joined #ruby
Guest23085 is now known as olspookishmagus
rafadc has joined #ruby
AndrewIsHere has quit [Ping timeout: 272 seconds]
dionysus69 has quit [Ping timeout: 248 seconds]
blaxter has joined #ruby
grh has joined #ruby
Wolland has quit [Remote host closed the connection]
tubuliferous_ has quit [Ping timeout: 244 seconds]
biberu has joined #ruby
Wolland has joined #ruby
mwlang has quit [Quit: mwlang]
ta_ has joined #ruby
aufi has joined #ruby
claudiuinberlin has joined #ruby
dionysus69 has joined #ruby
tomphp has joined #ruby
rsampaio_ has quit [Ping timeout: 248 seconds]
edwinvdgraaf has joined #ruby
chwbacca has joined #ruby
chwbacca has quit [Client Quit]
yokel has quit [Ping timeout: 240 seconds]
ule has quit [Remote host closed the connection]
arthurnn has quit [Ping timeout: 265 seconds]
tubuliferous_ has joined #ruby
arthurnn has joined #ruby
sai_ has quit [Read error: Connection reset by peer]
sai__ has joined #ruby
antgel has joined #ruby
jblack has joined #ruby
last_staff has quit [Quit: bbl]
priodev has quit [Ping timeout: 265 seconds]
cibs has quit [Ping timeout: 268 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
jblack has quit [Ping timeout: 248 seconds]
Vivekananda has quit [Read error: Connection timed out]
priodev has joined #ruby
panpainter has joined #ruby
pharaoh2 has joined #ruby
Vivekananda has joined #ruby
pawnbox has quit [Ping timeout: 255 seconds]
cibs has joined #ruby
panpainter has quit [Ping timeout: 250 seconds]
pharaoh2 has left #ruby [#ruby]
lyjwdu has joined #ruby
mistermocha has joined #ruby
sai_ has joined #ruby
sai__ has quit [Read error: Connection reset by peer]
blackmes1 has joined #ruby
LoneHerm_ has joined #ruby
Burgestrand has joined #ruby
DoubleMalt has quit [Ping timeout: 264 seconds]
mistermocha has quit [Ping timeout: 265 seconds]
flying has joined #ruby
nofxx has quit [Ping timeout: 244 seconds]
grh has quit [Remote host closed the connection]
nofxx has joined #ruby
blackmes1 has quit [Ping timeout: 265 seconds]
RegulationD has joined #ruby
LoneHerm_ has quit [Ping timeout: 260 seconds]
grh has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
nankyokusei has joined #ruby
blackmes1 has joined #ruby
priodev has quit [Ping timeout: 276 seconds]
sai_ has quit [Read error: Connection reset by peer]
sai_ has joined #ruby
priodev has joined #ruby
rgon91 has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marr has joined #ruby
nankyokusei has quit [Ping timeout: 276 seconds]
andikr has joined #ruby
ocbtec has joined #ruby
koma has joined #ruby
jaequery has joined #ruby
f4cl3y has joined #ruby
sai_ has quit [Read error: Connection reset by peer]
sai__ has joined #ruby
pandaant has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jackjackdripper has quit [Quit: Leaving.]
<naviaa> Hi all, as a starting programmer i'm interested in pair programming. What resources/articles are a "must-read"? How do I get started?
salut has joined #ruby
ta__ has joined #ruby
ule has joined #ruby
pandaant has quit [Ping timeout: 264 seconds]
err_ok has joined #ruby
ARCADIVS has quit [Quit: ARCADIVS]
<Burgestrand> naviaa Oh, that's an interesting one. I worked for a company for 5 years that did (almost) exclusively pair program, but unfortunately I'm not aware of any resources around it. I'm assuming you're googling around by yourself, so a keyword that you could expand your search with is "mob programming". It's probably going to give you even more questions though. :)
pandaant has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Burgestrand> naviaa (and frankly this channel is for ruby questions, so it's possible this is a bit off-topic)
ruby[bot] has joined #ruby
<Burgestrand> >> "Hello!"
<ruby[bot]> Burgestrand: # => "Hello!" (https://eval.in/645192)
<dminuoso> Burgestrand: I consider programming methodologies to be within the scope of this channel.
ta_ has quit [Ping timeout: 276 seconds]
evidex has joined #ruby
jaequery has joined #ruby
<Burgestrand> dminuoso Arguably they could be within the scope of all programming channels, or none, I don't make the rules so I'm trying to communicate my uncertainty!
<Burgestrand> dminuoso But that is good to know. :)
<naviaa> Burgestrand: thanks for that keyword, never connected that to pair programming :) Is there a channel for pair programming?
ule has quit [Ping timeout: 265 seconds]
<dminuoso> Burgestrand: As long as you stop discussing "slightly" off-topic stuff when someone brings up a ruby question it doesn't really matter.
<dminuoso> It's normal in this channel.
<Burgestrand> dminuoso Yeah, I agree, a programming-related discussion is no worse than a quiet channel.
<Burgestrand> (and a programming-related meta-discussion, haha)
<apeiros> your discussion of what's ontopic is offtopic, please move it
<apeiros> j/k ;-)
<Burgestrand> ;)
ur5us has joined #ruby
<Burgestrand> naviaa I don't know one! I guess this channel is as good as any. :)
madgen has joined #ruby
griff has joined #ruby
<Burgestrand> naviaa Thinking on it a bit, I think the best resource I had was practice. Are you searching for resources because you want to pair program with somebody, or just to educate yourself?
robfrawl1y has quit [Ping timeout: 276 seconds]
yokel has joined #ruby
habitullence has joined #ruby
<naviaa> Burgestrand: both actually. From what i read, pair programming is a wonderful way of exchanging experience. I'd like to try it, but i don't know if i'm good enough, what programs ppl use to engage in pp, and how/where to start.
robfrawley has joined #ruby
ferr has joined #ruby
robfrawley is now known as Guest31347
ule has joined #ruby
sevenfourk has left #ruby [#ruby]
shortCircuit__ has joined #ruby
<shortCircuit__> hi
pawnbox has joined #ruby
gingray has joined #ruby
f4cl3y has quit [Ping timeout: 272 seconds]
wldcordeiro has quit [Ping timeout: 244 seconds]
pawnbox has quit [Remote host closed the connection]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
<shortCircuit__> I have a question, presently, I have an api, which returns a json and the json contains a link to the next page .. now when I had nodejs, I had a promisified method, which would take the page_index as parameter . then after the first call I would have [0..page_num].map(callApi) .. In ruby how do I do this recursive retrival without recursion ? just the same thing , but that everything will be synchronous and no promise
edwinvdgraaf has quit [Ping timeout: 244 seconds]
DoubleMalt has joined #ruby
<apeiros> shortCircuit__: what do you have so far?
Fire-Dragon-DoL has quit [Ping timeout: 265 seconds]
habitullence_ has joined #ruby
Technodrome has joined #ruby
habitullence has quit [Ping timeout: 265 seconds]
habitullence_ is now known as habitullence
joes has quit [Ping timeout: 265 seconds]
joes has joined #ruby
<Burgestrand> naviaa It can definitely be a wonderful way of exchanging experience, and there's no experience requirement or "you must know this" part of it. Most people do some form of pair-something in school from working on assignments and whatnot, it's not that much different so it can be quite natural even for the first time.
<rafadc> naviaa, there is no such thing as good enough for pair programming. We pair some time in our job and the best approach IMHO is getting rid of al those "I'm worthy", "He think's I'm stupid"... as soon as possible :D
<rafadc> That is just getting in the middle of getting something done
<rafadc> If you want to self critizice yourself, believe me, you will find a readon.
Fire-Dragon-DoL has joined #ruby
<rafadc> (reason)
elenatanasoiu has joined #ruby
<Burgestrand> naviaa It's completely OK to grab a friend, sit yourself behind a computer together and work on a problem without anybody telling you how to work correctly. :)
<Burgestrand> s/yourself/yourselves/
tomphp has joined #ruby
<naviaa> Thanks for the encouraging words :) I don't work in an environment where can (pair) program. Is there a site where ppl go to start or coordinate to pair program?
f4cl3y has joined #ruby
ohcibi has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
ohcibi has joined #ruby
habitullence_ has joined #ruby
<naviaa> i.e. i don't have friends which whom i can pair-program.
habitullence has quit [Ping timeout: 244 seconds]
habitullence_ is now known as habitullence
<Burgestrand> naviaa I'd recommend programming meetups, if there are any in your city, you ought to be able to find somebody there that don't mind pairing.
jaiks has joined #ruby
<Burgestrand> There's probably online tools for pairing too, but frankly I'm not too keen on remote pairing. To me the communication part about it is very important, and in-person communication has less friction than remote
<Burgestrand> (you can very much still pair program online if you want to, that last part is a very subjective personal preference)
CloCkWeRX has quit [Ping timeout: 272 seconds]
mistermocha has joined #ruby
habitullence_ has joined #ruby
madgen has quit [Ping timeout: 265 seconds]
habitullence has quit [Ping timeout: 264 seconds]
habitullence_ is now known as habitullence
johnmccabe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<naviaa> Burgestrand: I think i'll try it nevertheless, thanks for the warning though. The easiest way to share a dev environment i know of is a shared tmux/dtach session over ssh. Is that the preferred way in your experience?
madgen has joined #ruby
etetz has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
stamina has joined #ruby
edwinvdgraaf has joined #ruby
LoneHermit has joined #ruby
mistermocha has quit [Ping timeout: 248 seconds]
claudiuinberlin has quit []
habitullence has quit [Ping timeout: 244 seconds]
jaiks has quit [Ping timeout: 255 seconds]
habitullence has joined #ruby
<Burgestrand> naviaa Yeah, that'd probably do just fine, and then have some way of audio/video communication in a side-channel (e.g. Skype, Google Hangouts, Discord). Remote pairing does have increased risk of both people accidentally trying to type at the same time :)
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
etetz has quit [Ping timeout: 240 seconds]
slackbotgz has joined #ruby
LoneHermit has quit [Ping timeout: 248 seconds]
<naviaa> thanks for the pointers and encouraging words, i hope to dip my feet in the pp pool soon.
jaiks has joined #ruby
jaiks has quit [Remote host closed the connection]
zacstewart has quit [Read error: Connection reset by peer]
zacstewart has joined #ruby
Dimik has quit [Ping timeout: 240 seconds]
<rafadc> shaed tmux is nice but I found the learning curve very steep for a lot of people. To be honest in my company we just share screen using hangouts and don't switch to much from driver to copilot
<rafadc> (to much/ too much)
jaiks has joined #ruby
madgen has quit [Ping timeout: 240 seconds]
<naviaa> rafadc: does that mean you git push/pull everytime you do switch?
TomyWork has joined #ruby
madgen has joined #ruby
Burgestrand has joined #ruby
evidex has quit [Remote host closed the connection]
evidex has joined #ruby
braincras has quit [Ping timeout: 250 seconds]
ropeney has quit [Ping timeout: 265 seconds]
jaruga___ has joined #ruby
jaruga___ is now known as jaruga_____
jaiks has quit [Ping timeout: 255 seconds]
sandelius has joined #ruby
sonikspin has joined #ruby
sandelius has quit [Client Quit]
serard has joined #ruby
sai__ has quit [Read error: Connection reset by peer]
<serard> Hello
sai_ has joined #ruby
jblack has joined #ruby
braincrash has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
cdown has joined #ruby
rbr has quit [Disconnected by services]
rbr has joined #ruby
bauruine has quit [Quit: ZNC - http://znc.in]
astrobunny has quit [Remote host closed the connection]
bauruine has joined #ruby
jblack has quit [Ping timeout: 264 seconds]
braincrash has quit [Ping timeout: 265 seconds]
slackbotgz has quit [Remote host closed the connection]
jaiks has joined #ruby
braincrash has joined #ruby
dminuoso_ has joined #ruby
dminuoso has quit [Ping timeout: 250 seconds]
JeanCarloMachado has joined #ruby
blackmes1 has quit [Ping timeout: 265 seconds]
<rafadc> no, just when we change. that is why we don't do it so often. We rebase our branches before merging to master to keep story readable so a couple of commits there make no harm
* shortCircuit__ is back
<shortCircuit__> apeiros I will write and get back
aurelien has joined #ruby
ledestin has joined #ruby
nikivi has joined #ruby
koooge has quit [Quit: Leaving...]
postmodern has quit [Quit: Leaving]
panpainter has joined #ruby
rgon910 has joined #ruby
rgon91 has quit [Quit: Page closed]
olblak has quit [Ping timeout: 250 seconds]
rgon910 is now known as rgon91
braincrash has quit [Ping timeout: 248 seconds]
lifeai has joined #ruby
braincrash has joined #ruby
panpainter has quit [Ping timeout: 248 seconds]
mistermocha has joined #ruby
nofxx has quit [Remote host closed the connection]
panpainter has joined #ruby
nikivi has quit [Quit: irc]
Hyuk has joined #ruby
mistermocha has quit [Ping timeout: 248 seconds]
evidex has quit [Remote host closed the connection]
panpainter has quit [Ping timeout: 250 seconds]
evidex has joined #ruby
claudiuinberlin has joined #ruby
RegulationD has joined #ruby
serard has quit [Read error: Connection reset by peer]
ur5us has quit [Read error: Connection reset by peer]
olblak has joined #ruby
toretore has joined #ruby
RegulationD has quit [Ping timeout: 265 seconds]
nankyokusei has joined #ruby
braincrash has quit [Ping timeout: 244 seconds]
braincrash has joined #ruby
madgen_ has joined #ruby
madgen has quit [Ping timeout: 244 seconds]
connor_goodwolf has quit [Ping timeout: 244 seconds]
rtl has quit [Ping timeout: 244 seconds]
connor_goodwolf has joined #ruby
Liothen has quit [Ping timeout: 244 seconds]
Liothen has joined #ruby
nankyokusei has quit [Ping timeout: 250 seconds]
rtl has joined #ruby
sepp2k has joined #ruby
zacstewart has quit [Read error: Connection reset by peer]
zacstewart has joined #ruby
madgen_ has quit [Ping timeout: 276 seconds]
craigp has quit [Ping timeout: 240 seconds]
madgen has joined #ruby
jazzonmym111nd has quit [Ping timeout: 276 seconds]
claudiuinberlin has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
Guest49142 has joined #ruby
<Guest49142> hi
drbrain has quit [Ping timeout: 240 seconds]
cdown has quit [Remote host closed the connection]
<Guest49142> i have arr = [ {}, {}, {a,"b"=>["1","2"]}....{}] how do i access all hashesd where "b"[0] => "1"
<apeiros> Guest49142: arr.select { |hash| …test your hash here… }
duncannz has quit [Remote host closed the connection]
drbrain has joined #ruby
drbrain has quit [Changing host]
drbrain has joined #ruby
blackgoat has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
blackmes1 has joined #ruby
<Guest49142> apeiros: yeah. my question is more about how do i check "first" element of "b" ??
<Guest49142> that specific part only?
<Guest49142> i am doing this for google map api json["results"][0]["address_components"].select { |x| x["types"][0] == ["administrative_area_level_1"]} which do not work
<Guest49142> that x["types"][0] is wrong.
<apeiros> how do you figure that that's the part which is wrong?
<shortCircuit__> https://gist.github.com/argentum47/3e1702a30cfff9fc62d04819d281a5c4 I have this .. but the code is not good .. and also the recursion doesn't end :'(
<Guest49142> apeiros: nvm. .include works.
<apeiros> Guest49142: that does test something else, though.
<Guest49142> no.
JeanCarloMachado has quit [Ping timeout: 240 seconds]
<Guest49142> x["types"].include? "string" works.
<shortCircuit__> I can separate out the two .. like separate the fetch from insert and then use a loop, that would take the recursion out
JoshS has joined #ruby
jsrn_ has joined #ruby
<apeiros> >> ["some", "string", "array"].include?("string")
<ruby[bot]> apeiros: # => true (https://eval.in/645297)
<apeiros> >> ["some", "string", "array"][0] == "string"
<ruby[bot]> apeiros: # => false (https://eval.in/645298)
tlaxkit has joined #ruby
jshjsh has quit [Ping timeout: 272 seconds]
<apeiros> Guest49142: not "no". yes. they do test entirely different things.
<apeiros> whether that's what you need is another question. but it's certainly not what you *said* you need.
JeanCarloMachado has joined #ruby
<Guest49142> :-(
<Guest49142> I am doing HTTParty inside my rails model. how do I take care of the security?
<Guest49142> its calling .get to get a json returned by google maps api.
JeanCarloMachado has quit [Remote host closed the connection]
madgen has quit [Read error: Connection reset by peer]
JeanCarloMachado has joined #ruby
madgen has joined #ruby
craigp has joined #ruby
claudiuinberlin has joined #ruby
sts has quit [Ping timeout: 244 seconds]
ledestin_ has joined #ruby
sts has joined #ruby
sts is now known as Guest8435
johnmccabe has joined #ruby
ledestin has quit [Ping timeout: 265 seconds]
phone has joined #ruby
<phone> is there method overloading in ruby?
<shortCircuit__> nah
<phone> def func end; and def func(arg) end; both are considered to be method overriding
vedu has joined #ruby
lyjwdu has quit [Ping timeout: 260 seconds]
<shortCircuit__> method overriding is for two classes I guess. but I think the last one with shadow the former
edwinvdgraaf has quit []
cdown has joined #ruby
Puffball_ has quit [Remote host closed the connection]
<shortCircuit__> you can have optional arguments tho
<shortCircuit__> def func(args = nil) end;
esmeuo has joined #ruby
<phone> If parameters are different still they are in method overloading
<phone> it's different from python
ledestin has joined #ruby
<phone> or any other languages
jaruga_____ has quit [Quit: jaruga_____]
<shortCircuit__> o.O
<phone> method should have unique name
cdown_ has joined #ruby
rodfersou has joined #ruby
<shortCircuit__> in a given namespace .. right .. but there is nothing preventing you from rdefining .. that is how monkey patching is done
Puffball has joined #ruby
<phone> good
rgon91 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
ledestin_ has quit [Ping timeout: 264 seconds]
<phone> ruby instead supports this: *args
giz|work has joined #ruby
cdown has quit [Ping timeout: 250 seconds]
cdown_ is now known as cdown
mistermocha has joined #ruby
esmeuo has quit [Remote host closed the connection]
<shortCircuit__> you could do that instead of optional arguments . depends on the use case
<phone> optional hash
<phone> def func(a:1,b:2) end
<shortCircuit__> o.O what is this
<phone> this is hash
last_staff has joined #ruby
<shortCircuit__> anyway I gotta worry about handling cursors in returned result of an api .. maybe I have to use an Enumerator
knight_ has quit [Ping timeout: 244 seconds]
<phone> you can achieve this question in this way
<shortCircuit__> plz help
Snowy has joined #ruby
LoneHermit has joined #ruby
teclator has quit [Read error: Connection reset by peer]
<shortCircuit__> which question, how can I achieve that with that
mistermocha has quit [Ping timeout: 240 seconds]
teclator has joined #ruby
<gener1c> meh
arnonhon_ has joined #ruby
knight_ has joined #ruby
<gener1c> how do i do testing on event driven stuff?
<phone> I don't even understand shortCircuit__'s question. :)
arnonhongklay has quit [Ping timeout: 255 seconds]
phone is now known as mobile
LoneHermit has quit [Ping timeout: 265 seconds]
<shortCircuit__> the question is I have this https://gist.github.com/argentum47/3e1702a30cfff9fc62d04819d281a5c4 code .. how can this https://gist.github.com/argentum47/3e1702a30cfff9fc62d04819d281a5c4#file-parse_api_data-rb-L22 recursive part be improved .. this can lead to an stackoverflow
<gener1c> ah sorryz
<shortCircuit__> I don't think ruby does any tail call optimization .. not sure
<dminuoso_> shortCircuit__: Ruby has the capability, and it can be enabled.
<dminuoso_> shortCircuit__: Look at RubyVM::InstructionSequence.compile_option
<shortCircuit__> ow .. ok . but can it be done without that .. and will tail call optimization be helpful in this case
erlingur has joined #ruby
<mobile> lazy stuff?
<shortCircuit__> yeah lazy stuff
<dminuoso_> shortCircuit__: Word of advice, use public_send over send every time.
<mobile> instead of recursion
<shortCircuit__> ok
<shortCircuit__> the @config is an openstruct
Puffball has quit [Remote host closed the connection]
<shortCircuit__> mobile , I understand, but how
<mobile> I don't know further. i just started to learn ruby
<shortCircuit__> ah .. same here
<shortCircuit__> :D
<mobile> maybe there's lazy thing.
<dminuoso_> shortCircuit__: The thing about send is that it lets you call private/protected methods and thus breaking encapsulation. You should never want this, so by using public_send you sign the class invariant contract.
<dminuoso_> shortCircuit__: And prove that you are not peaking into a classes implementation.
<shortCircuit__> hm. ok understood :)
Puffball has joined #ruby
Hyuk has quit [Quit: Textual IRC Client: www.textualapp.com]
gnufied has joined #ruby
phone has joined #ruby
braincrash has quit [Ping timeout: 255 seconds]
jazzonmym111nd has joined #ruby
mobile has quit [Ping timeout: 240 seconds]
braincrash has joined #ruby
phone_ has joined #ruby
blackmes1 has quit [Ping timeout: 265 seconds]
banisterfiend has quit [Quit: Textual IRC Client: www.textualapp.com]
jblack has joined #ruby
hanmac has quit [Ping timeout: 272 seconds]
griff has quit [Quit: Textual IRC Client: www.textualapp.com]
AzureStigma has joined #ruby
AzureStigma has quit [Client Quit]
phone has quit [Ping timeout: 264 seconds]
AndrewIsHere has joined #ruby
erlingur has quit [Quit: WeeChat 1.5]
erlingur has joined #ruby
jazzonmym111nd has quit [Ping timeout: 272 seconds]
johnmilton has quit [Remote host closed the connection]
Guest49142 has quit [Quit: leaving]
madgen has quit [Ping timeout: 240 seconds]
Macaveli has joined #ruby
madgen has joined #ruby
giz|work has quit [Ping timeout: 250 seconds]
jblack has quit [Ping timeout: 265 seconds]
braincrash has quit [Ping timeout: 244 seconds]
sai_ has quit [Read error: Connection reset by peer]
raeoks has joined #ruby
sai_ has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
AndrewIsHere has quit [Ping timeout: 250 seconds]
spectrum has joined #ruby
arnonhon_ has quit [Remote host closed the connection]
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gnufied has quit [Ping timeout: 250 seconds]
Hyuk has joined #ruby
Wolland has quit []
phone_ has quit [Quit: Leaving]
ichkv1 has quit [Remote host closed the connection]
Chair has joined #ruby
raeoks has quit [Ping timeout: 276 seconds]
hanmac has joined #ruby
Chair is now known as Couch
Snowy has quit [Remote host closed the connection]
panpainter has joined #ruby
dviola has joined #ruby
panpainter has quit [Ping timeout: 244 seconds]
matp has quit [Remote host closed the connection]
matp has joined #ruby
madgen_ has joined #ruby
binaryplease has joined #ruby
<shmulik> hi guys, who know 3des encryption ?
nuck has quit [Ping timeout: 264 seconds]
madgen has quit [Ping timeout: 265 seconds]
<shmulik> i need to change padding method from pcks5 to iso9797-1
singleorigin has joined #ruby
<elomatreb> shmulik: Why are you using 3DES anyway?
d10n-work has joined #ruby
singleorigin has quit [Client Quit]
marchelzo has joined #ruby
<marchelzo> hello
incog has joined #ruby
braincrash has joined #ruby
Tempesta has joined #ruby
nuck has joined #ruby
nuck is now known as Guest29441
<shmulik> for encrypt user data in gsm ota message
<shmulik> elomatreb for encrypt user data in gsm ota message
lifeai has quit [Ping timeout: 248 seconds]
incog has quit [Changing host]
incog has joined #ruby
<marchelzo> say you have an array of paths, some of which may refer to non-existing files. how do you get an array of strings containing the contents of all of the existing files?
<marchelzo> without filtering the array by checking whether the files exist
saneax is now known as saneax-_-|AFK
jsrn__ has joined #ruby
braincrash has quit [Ping timeout: 250 seconds]
<marchelzo> no ruby rockstars around?
<elomatreb> marchelzo: array_of_paths.map {|p| File.open(p).read } or something in that nature
jsrn_ has quit [Ping timeout: 248 seconds]
<marchelzo> elomatreb: won't that throw an exception if one of the files doesn't exist?
<elomatreb> Probably. You could use a guarding rescue clause to handle that
<marchelzo> what would that look like
<elomatreb> So: array_of_paths.map {|p| File.open(p).read rescue WhateverExceptionThisThrows }
<elomatreb> The array would then contain nil for those paths where the files do not exist
<marchelzo> now what happens if it throws?
<marchelzo> oh
<marchelzo> is rescue used a lot in idiomatic ruby code?
<elomatreb> Rescue yes, guarding rescue (with the rescue after the code) not so much, because you can't to proper handling
<marchelzo> is non-guarding rescue just like 'catch' is other languages?
jshjsh has joined #ruby
<elomatreb> Basically yes. begin ... <some code> ... rescue ExceptionClass => e ... <handle e> ... end
mistermocha has joined #ruby
<elomatreb> A guarding rescue is equivalent to this, with the "handle e" part just returning nil
braincrash has joined #ruby
<marchelzo> i see
Tempesta has quit [Quit: See ya!]
gingray has quit [Ping timeout: 272 seconds]
Dysp has joined #ruby
JoshS has quit [Ping timeout: 265 seconds]
<Dysp> Hi there.
<marchelzo> elomatreb: how do you when it's appropriate to return nil vs. throwing an exception
<marchelzo> e.g., [1, 2, 3][100] yields nil, as does 'test'[100], but it would seem equally logical for them to throw.
<Dysp> I need some advice on how to overcome a problem. I need to do a rolling average. How would you guys do that? I cannot wrap my head around it.
<marchelzo> whats a rolling average?
<elomatreb> marchelzo: A generally accepted rule of thumb is to only raise exceptions if it actually is an error condition, whereas nil is used where it is an acceptable value indicating nothing
mistermocha has quit [Ping timeout: 248 seconds]
<elomatreb> shmulik: I don't know the specific answer to your question, but you could try reading the docs for the Ruby OpenSSL binding: http://ruby-doc.org/stdlib-2.3.1/libdoc/openssl/rdoc/OpenSSL.html
RegulationD has joined #ruby
<Dysp> marchelzo: 1, 2, 3, 4, 5. Lets say we average over 2 numbers. 1+2/2 = 1,5. Then 2+3/2 = 2,5. Then 3+4/2 = 3,5 etc.
<Dysp> Oh, and the commas should be dots.
<Dysp> 1.5, 2.5, 3.5
johnmilton has joined #ruby
johnmilton has quit [Read error: Connection reset by peer]
<elomatreb> Dysp: If you have an Array, there is this method: http://ruby-doc.org/core-2.3.1/Enumerable.html#method-i-each_cons
<marchelzo> so what should the result be?
Tempesta has joined #ruby
<marchelzo> why do you have 5 numbers but end up with 3?
yeticry has quit [Ping timeout: 265 seconds]
<Dysp> elomatreb: Beautiful!
johnmilton has joined #ruby
<elomatreb> Enumerable is a really nice module, actually worth reading the docs for it just for methods like this one
<Dysp> marchelzo: If you have a big array of data and you want to find the highest data point, you could just do array.max. But what if the data range contains invalid data points where there is an abnormal high max value? To assess this you can do a rolling average over maybe 10 numbers.
yeticry has joined #ruby
rafadc_ has joined #ruby
<Dysp> In that case you 'normalize' the fluctation and can easier find a proper max value.
<Dysp> Did that make sense?
cdown has quit [Ping timeout: 265 seconds]
<marchelzo> and then you take the max of the rolling averages?
Hyuk has quit [Ping timeout: 265 seconds]
<Dysp> Exactly
RegulationD has quit [Ping timeout: 240 seconds]
<Dysp> :)
<marchelzo> ok, sure.
<marchelzo> so in your first example, you omitted the 4.5 (i guess it was part of the "etc.")
pwnd_nsfw` has joined #ruby
<marchelzo> its omission confused me, but i see what you mean now
<marchelzo> each_cons is very neat. i'm going to steal it.
ropeney has joined #ruby
ropeney has quit [Client Quit]
nankyokusei has joined #ruby
<Dysp> Yeah.
<Dysp> Steal away!
<marchelzo> elomatreb: do you ever wish that something that returns nil threw an exception or vice versa?
sai_ has quit [Read error: Connection reset by peer]
sai__ has joined #ruby
rafadc has quit [Ping timeout: 272 seconds]
nadir has joined #ruby
pwnd_nsfw has quit [Ping timeout: 250 seconds]
sai__ has quit [Read error: Connection reset by peer]
<elomatreb> marchelzo: Me personally not too often, but I'm reasonably sure it's definitely a thing that happens
ctp has joined #ruby
ctp has quit [Client Quit]
sai_ has joined #ruby
<marchelzo> i'm working on a programming language, and i'm really unsure of how to design the built-in functions and standard library interfaces
<marchelzo> exceptions vs. nil vs. some kind of sum type like Some(x)/None
nankyokusei has quit [Ping timeout: 244 seconds]
<marchelzo> having everything return Optional values is super cumbersome when you know that it won't fail, but makes it easier to chain potentially-failing operations together
<elomatreb> An example from ActiveRecord (Rails) for the Ruby conventions (not rules!) is the `find` method. Regular find just returns nil if there is no match, whereas `find!` will raise
redpants has joined #ruby
blackmes1 has joined #ruby
evidex has quit [Ping timeout: 255 seconds]
<marchelzo> interesting
negatifze has quit [Quit: negatifze]
jazzonmym111nd has joined #ruby
erlingur has quit [Quit: WeeChat 1.5]
erlingur has joined #ruby
claudiuinberlin has joined #ruby
newbie1 has joined #ruby
blackmes1 has quit [Ping timeout: 264 seconds]
jeffreylevesque_ has quit [Ping timeout: 265 seconds]
claudiui_ has joined #ruby
claudiuinberlin has quit [Read error: Connection reset by peer]
jazzonmym111nd has quit [Ping timeout: 265 seconds]
gnufied has joined #ruby
p0p0pr37_ has joined #ruby
<incog> freenode is spying on you: Head over to #antispammeta @ freenode & type ;investigate & your usual nick to see a snitchbot spam your info
erlingur has quit [Quit: WeeChat 1.5]
erlingur has joined #ruby
p0p0pr37 has quit [Ping timeout: 265 seconds]
p0p0pr37_ is now known as p0p0pr37
erlingur has quit [Client Quit]
erlingur has joined #ruby
GinoManWorks has joined #ruby
fmcgeough has joined #ruby
hakunin has joined #ruby
hakunin has quit [Remote host closed the connection]
jmignault has joined #ruby
hakunin has joined #ruby
blackmes1 has joined #ruby
Silthias has quit [Ping timeout: 255 seconds]
rafadc_ has quit [Remote host closed the connection]
incog has quit [K-Lined]
erlingur has quit [Client Quit]
petercooper has joined #ruby
hakunin_ has joined #ruby
erlingur has joined #ruby
tectonic has joined #ruby
hakunin has quit [Ping timeout: 240 seconds]
lncog has joined #ruby
lncog has quit [K-Lined]
lncog has joined #ruby
dsea11 has joined #ruby
lncog has quit [K-Lined]
DoubleMalt has quit [Ping timeout: 248 seconds]
hakunin_ has quit [Ping timeout: 248 seconds]
jeffreylevesque has joined #ruby
Robtop__ has joined #ruby
dsea has quit [Ping timeout: 248 seconds]
Silthias has joined #ruby
tyang has joined #ruby
binaryplease has quit [Ping timeout: 276 seconds]
JoshS has joined #ruby
bsrd has quit [Quit: WeeChat 1.5]
bsrd has joined #ruby
DoubleMalt has joined #ruby
madgen_ has quit [Ping timeout: 244 seconds]
pwnd_nsfw` has quit [Ping timeout: 272 seconds]
jshjsh has quit [Ping timeout: 255 seconds]
SteenJobs has joined #ruby
sepp2k has quit [Quit: Leaving.]
chouhoulis has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
pavshn has joined #ruby
erlingur has quit [Quit: WeeChat 1.5]
sai__ has joined #ruby
last_staff has quit [Quit: makes like a tree]
soulisson has joined #ruby
soulisson has quit [Quit: Quitte]
sai_ has quit [Read error: Connection reset by peer]
erlingur has joined #ruby
<marchelzo> how swag is that?
tlaxkit has quit [Read error: Connection reset by peer]
cdown has joined #ruby
chouhoulis has quit [Remote host closed the connection]
pavshn has quit [Client Quit]
tlaxkit has joined #ruby
chouhoulis has joined #ruby
eljimmy has joined #ruby
Zamyatin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wethu has quit [Quit: This computer has gone to sleep]
mistermocha has joined #ruby
the_drow has quit [Quit: Leaving]
pragmaticus has joined #ruby
tyang has quit [Ping timeout: 255 seconds]
arnonhongklay has joined #ruby
tlaxkit has quit [Remote host closed the connection]
tlaxkit has joined #ruby
the_drow has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
LoneHermit has joined #ruby
mistermocha has quit [Ping timeout: 248 seconds]
alfiemax has quit [Ping timeout: 240 seconds]
csk has joined #ruby
newbie1 has quit [Ping timeout: 255 seconds]
hmnhf has joined #ruby
xemehc has joined #ruby
LoneHermit has quit [Ping timeout: 240 seconds]
jshjsh has joined #ruby
jblack has joined #ruby
synthroid has joined #ruby
tubuliferous_ has quit [Ping timeout: 248 seconds]
newbie1 has joined #ruby
JoshS has quit [Ping timeout: 255 seconds]
blackgoat has quit [Quit: WeeChat 1.5]
fredlinhares1 has joined #ruby
<apeiros> marchelzo: it doesn't look like ruby?
jblack has quit [Ping timeout: 265 seconds]
wlanboy has quit [Ping timeout: 264 seconds]
<dminuoso_> apeiros: It doesn't even parse in Ruby.
bsrd has quit [Quit: WeeChat 1.5]
marchelzo has quit [Ping timeout: 255 seconds]
<gener1c> how do i do continuose unit testing in ruby?
<gener1c> i wanna tdd a little
JakFrist has joined #ruby
renger has joined #ruby
<gener1c> do i use rspec or unit/test and what do i run em with?
redpants has quit [Ping timeout: 244 seconds]
renger has left #ruby [#ruby]
<gener1c> test/unit*
<dminuoso_> gener1c: An example could be github/travis
<gener1c> yeah well travis is online
<gener1c> i want to tdd
wlanboy has joined #ruby
<gener1c> or test before i push
<gener1c> if you want
<gener1c> i can just run watch rubyscript
marchelzo has joined #ruby
<gener1c> for the test/unit
<gener1c> but i assume there is something more fitting than my homebrew hack
<elomatreb> apeiros, dminuoso_: marchelzo said earlier they were designing their own language and wanted to take some inspiration from Ruby
<canton7> gener1c, then follow tdd. Have a test suite. When writing a unit, write the test first. Run it. Make sure it fails. Write the unit. Make sure the test passes. Commit
<canton7> doesn't really matter what unit test framework you use
<dminuoso_> elomatreb: Ah.
<gener1c> and waht about a watchdog
<gener1c> so the test will run only on something i have changed and not the whole thing canton7
chandlerbing has quit [Quit: ZNC - http://znc.in]
<dminuoso_> gener1c: travis ci lets you automate build/tests on each commit.
<gener1c> yeah but thats server side i mean dev side
cdg has joined #ruby
<gener1c> i can write a commit hook
<canton7> gener1c, why would you need that? you should be able to run your whole test suite in a few seconds, or you can usually specify a particular class of tests to run
shinnya has joined #ruby
AndrewIsHere has joined #ruby
<apeiros> elomatreb: aha
<canton7> having the test suite run automatically sounds like a PITA - it'll run when you're in the middle of changing something, and see a syntax error (because you haven't finished typing) as a test failure
<gener1c> canton7: because i want to focus on the unit im developing canton7 and not the whole class
<dminuoso_> gener1c: You can also use branches properly then.
<canton7> gener1c, tell your test runner to just run that unit's tests, then
<dminuoso_> gener1c: keep a development branch where you push (and let travis ci integration do its magic)
<dminuoso_> gener1c: and then rebase/merge into a master/release branch
symm- has joined #ruby
<canton7> gener1c, but a bunch of passing tests is fine - your test suite will give details about failures (which you care about), and passes (which you don't, really)
<canton7> so having a bunch of passes for other units isn't an issue
<dminuoso_> gener1c: if you are still interested in your mentioned approach
Jardayn has joined #ruby
<gener1c> dminuoso_: you are missing the point here i think.
<canton7> dminuoso_, testing on commit kinda defeats the point of tdd
<gener1c> thanks canton7
ramortegui has joined #ruby
<dminuoso_> Ah.
ChiefAlexander has joined #ruby
AndrewIsHere has quit [Ping timeout: 250 seconds]
<gener1c> so canton7 how do i run a test on filesave? simply use gulp"?
jblack has joined #ruby
<canton7> again, I don't think you want to do that
<gener1c> why? it would save me the hassle of retyping the command again and again
<canton7> if you're anything like me, you'll save multiple times while writing the unit. Each save will trigger a test failure
<canton7> is pressing the 'up' arrow and pressing enter really so hard? :P
<gener1c> hehehe
<gener1c> maybe i should write a vim macro :P
<gener1c> ESC:^ in my case
JakFrist has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tectonic has quit []
jphase has joined #ruby
binaryplease has joined #ruby
danielius has joined #ruby
aguynamedben has quit [Ping timeout: 248 seconds]
jblack has quit [Ping timeout: 240 seconds]
blackjid has quit [Excess Flood]
binaryplease has quit [Client Quit]
fredlinhares1 has quit [Quit: WeeChat 1.4]
fredlinhares1 has joined #ruby
jazzonmym111nd has joined #ruby
aguynamedben has joined #ruby
AndrewIsHere has joined #ruby
malconis has joined #ruby
malconis has quit [Remote host closed the connection]
redpants has joined #ruby
blackjid has joined #ruby
malconis has joined #ruby
Burgestrand has joined #ruby
tubuliferous_ has joined #ruby
lizard2010 has quit [Quit: Leaving]
Burgestrand has quit [Client Quit]
flashpoint9 has joined #ruby
flashpoint9 has quit [Client Quit]
arnonhongklay has quit [Ping timeout: 248 seconds]
aegis3121 has joined #ruby
chouhoulis has quit [Remote host closed the connection]
AndrewIsHere has quit [Remote host closed the connection]
chouhoulis has joined #ruby
arnonhongklay has joined #ruby
jrafanie has joined #ruby
Burgestrand has joined #ruby
panpainter has joined #ruby
wldcordeiro has joined #ruby
jaruga___ has joined #ruby
jaruga___ is now known as jaruga_____
candelabra has quit [Quit: Leaving]
ule has quit [Changing host]
ule has joined #ruby
panpainter has quit [Ping timeout: 240 seconds]
Guest40 has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
cdown has quit [Ping timeout: 276 seconds]
arnonhongklay has quit [Read error: Connection reset by peer]
arnonhon_ has joined #ruby
sai__ has quit [Read error: Connection reset by peer]
hmnhf has quit [Quit: Konversation terminated!]
sai_ has joined #ruby
cdown has joined #ruby
pawnbox has quit [Ping timeout: 244 seconds]
bmurt has joined #ruby
patarr has joined #ruby
fullofcaffeine has joined #ruby
dionysus69 has quit [Ping timeout: 250 seconds]
Ishido has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
mistermocha has joined #ruby
ta__ has quit [Remote host closed the connection]
redpants has quit [Ping timeout: 260 seconds]
emilkarl has joined #ruby
mistermocha has quit [Ping timeout: 248 seconds]
arooni has quit [Quit: ZNC - http://znc.in]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
sai_ has quit [Read error: Connection reset by peer]
coolboy has joined #ruby
sai_ has joined #ruby
dionysus69 has joined #ruby
tyang has joined #ruby
grh has quit [Ping timeout: 244 seconds]
lifeai has joined #ruby
arnonhongklay has joined #ruby
nankyokusei has joined #ruby
[k- has joined #ruby
coolboy has quit [Remote host closed the connection]
arnonhon_ has quit [Ping timeout: 264 seconds]
karmatr0n has joined #ruby
Dysp has quit [Quit: Page closed]
r4z has joined #ruby
Zamyatin has joined #ruby
gingray has joined #ruby
arooni has joined #ruby
hakunin has joined #ruby
redpants has joined #ruby
_sfiguser has quit [Ping timeout: 255 seconds]
nankyokusei has quit [Ping timeout: 264 seconds]
marxarelli has joined #ruby
lxsameer has quit [Quit: WeeChat 1.5]
sai_ has quit [Read error: Connection reset by peer]
sai__ has joined #ruby
Silthias has quit [Read error: Connection reset by peer]
marxarelli is now known as marxarelli|afk
marxarelli|afk is now known as marxarelli
SteenJobs has joined #ruby
harfangk has joined #ruby
saneax-_-|AFK is now known as saneax
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_sfiguser has joined #ruby
Ishido has quit [Remote host closed the connection]
craigp has quit [Ping timeout: 265 seconds]
Ishido has joined #ruby
arnonhongklay has quit [Ping timeout: 248 seconds]
sdothum has joined #ruby
ninja007 has joined #ruby
ramortegui has quit [Quit: Ex-Chat]
Silthias has joined #ruby
ramortegui has joined #ruby
ngscheur1 has joined #ruby
coolboy has joined #ruby
arnonhongklay has joined #ruby
marchelzo has quit [Ping timeout: 272 seconds]
TreyG has quit [Quit: Lost terminal]
symm- has quit [Ping timeout: 248 seconds]
AndrewIsHere has joined #ruby
Guest193 has quit [Ping timeout: 265 seconds]
pawnbox has joined #ruby
tyang has quit [Ping timeout: 255 seconds]
tyang has joined #ruby
pawnbox has quit [Read error: Connection reset by peer]
marchelzo has joined #ruby
pawnbox has joined #ruby
TvL2386 has joined #ruby
Wizznt has joined #ruby
AndrewIsHere has quit [Ping timeout: 255 seconds]
Tempesta_ has joined #ruby
finisherr has joined #ruby
dminuoso_ has quit [Ping timeout: 260 seconds]
marxarelli has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
b has joined #ruby
b is now known as Guest58275
marxarelli has joined #ruby
Guest21095 has joined #ruby
Tempesta has quit [Ping timeout: 240 seconds]
hutch34 has joined #ruby
Guest58275 is now known as incog
Tempesta_ is now known as Tempesta
Tempesta has joined #ruby
Tempesta has quit [Changing host]
madgen has joined #ruby
dminuoso has joined #ruby
incog has quit [K-Lined]
Caelum has quit [Quit: WeeChat 1.5]
submitnine has quit []
xemehc has quit [Quit: ZZZzzz…]
panpainter has joined #ruby
DoubleMalt has quit [Ping timeout: 260 seconds]
chouhoulis has quit [Remote host closed the connection]
workmad3 has quit [Read error: Connection reset by peer]
oldmacd has joined #ruby
KlinedByAVirgin has joined #ruby
xemehc has joined #ruby
Renich has joined #ruby
Caelum has joined #ruby
rippa has joined #ruby
KlinedByAVirgin has quit [K-Lined]
mistermocha has joined #ruby
bsrd has joined #ruby
redpants has quit [Ping timeout: 250 seconds]
chouhoul_ has joined #ruby
conta has quit [Ping timeout: 244 seconds]
JakFrist has joined #ruby
conta has joined #ruby
bsrd has quit [Client Quit]
danielius has quit [Ping timeout: 265 seconds]
greister has quit [Quit: WeeChat 1.3]
LoneHermit has joined #ruby
shortCircuit__ has quit [Remote host closed the connection]
greister has joined #ruby
jaequery has joined #ruby
mistermocha has quit [Ping timeout: 272 seconds]
dionysus69 has quit [Ping timeout: 244 seconds]
KlinedByAVirgin has joined #ruby
conta has quit [Ping timeout: 244 seconds]
KlinedByAVirgin has quit [K-Lined]
greister has quit [Client Quit]
ngscheurich has joined #ruby
Bellthoven has joined #ruby
greister has joined #ruby
chouhoul_ has quit [Ping timeout: 265 seconds]
conta has joined #ruby
ixti has joined #ruby
LoneHermit has quit [Ping timeout: 265 seconds]
arnonhon_ has joined #ruby
tubuliferous_ has quit [Ping timeout: 250 seconds]
arnonhongklay has quit [Ping timeout: 264 seconds]
tdy has quit [Ping timeout: 255 seconds]
ngscheur1 has quit [Ping timeout: 276 seconds]
dionysus69 has joined #ruby
JakFrist has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
emilkarl has quit [Quit: Textual IRC Client: www.textualapp.com]
LemonJuice has joined #ruby
dinoangelov has joined #ruby
tdy has joined #ruby
cdg has quit [Remote host closed the connection]
alfiemax has joined #ruby
conta has quit [Ping timeout: 248 seconds]
blackmes1 has joined #ruby
zipace has joined #ruby
tyang has quit [Ping timeout: 255 seconds]
MrBusiness3 has quit [Quit: quittin' this]
synthroid has quit [Remote host closed the connection]
chouhoulis has joined #ruby
Ishido has quit [Ping timeout: 265 seconds]
aegis3121 has quit [Ping timeout: 272 seconds]
dminuoso has quit [Quit: Reconnecting]
mark_66 has quit [Remote host closed the connection]
dminuoso has joined #ruby
workmad3 has joined #ruby
etetz has joined #ruby
aegis3121 has joined #ruby
uwjbvg has joined #ruby
blackmes1 has quit [Ping timeout: 265 seconds]
pawnbox has quit [Read error: Connection reset by peer]
jblack has joined #ruby
pawnbox has joined #ruby
dminuoso has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
whatwhat has joined #ruby
whatwhat is now known as JoshS
jshjsh has quit [Disconnected by services]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<baweaver> !spam incog
Snowy has joined #ruby
jhooker has joined #ruby
pragmaticus has quit [Read error: No route to host]
rbr has quit [Ping timeout: 265 seconds]
Ishido has joined #ruby
aganov has quit [Remote host closed the connection]
JakFrist has joined #ruby
symm- has joined #ruby
rbr has joined #ruby
wldcordeiro has quit [Ping timeout: 250 seconds]
nettoweb has joined #ruby
AndrewIsHere has joined #ruby
wspider has quit [Quit: leaving]
RegulationD has joined #ruby
loincloth has joined #ruby
arnonhon_ has quit [Read error: Connection reset by peer]
arnonhongklay has joined #ruby
sai__ has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
Bellthoven has quit []
RegulationD has quit [Ping timeout: 244 seconds]
Oclair_ has joined #ruby
Oclair has quit [Ping timeout: 264 seconds]
hammond-ey is now known as hammond
erlingur has quit [Quit: WeeChat 1.5]
erlingur has joined #ruby
erlingur has quit [Client Quit]
snood1205 has quit []
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Renich has quit [Ping timeout: 248 seconds]
JakFrist has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
madgen_ has joined #ruby
Renich has joined #ruby
madgen has quit [Ping timeout: 255 seconds]
coolboy has quit [Remote host closed the connection]
ninja007 has quit [Quit: ninja007]
tyang has joined #ruby
blackmes1 has joined #ruby
bjmllr has quit [Quit: WeeChat 1.0.1]
oldmacd has quit [Ping timeout: 264 seconds]
Jardayn has quit [Read error: Connection reset by peer]
tyang has quit [Ping timeout: 255 seconds]
arnonhongklay has quit [Read error: Connection reset by peer]
Emmanuel_Chanel has quit [Ping timeout: 265 seconds]
aufi has quit [Ping timeout: 272 seconds]
teclator has quit [Ping timeout: 265 seconds]
arnonhongklay has joined #ruby
teclator has joined #ruby
[Butch] has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
SteenJobs has joined #ruby
amclain has joined #ruby
Emmanuel_Chanel has joined #ruby
LuckyABA has joined #ruby
ninja007 has joined #ruby
ngscheurich has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
dminuoso has joined #ruby
sarkis has quit [Ping timeout: 260 seconds]
ngscheurich has joined #ruby
synthroid has joined #ruby
duderonomy has quit [Ping timeout: 244 seconds]
<dminuoso> Mmm, is there some idiomatic way to define a class instance variable in a base class for derives classes?
agent_white has joined #ruby
<agent_white> Mornin'
<dminuoso> As a contrived example of what I would like to do:
bjmllr has joined #ruby
lifted has quit [Ping timeout: 240 seconds]
<dminuoso> >> class Base; @foo = []; def self.add(o); @foo << o; end; end; class Derived < Base; add(1); end
<ruby[bot]> dminuoso: # => undefined method `<<' for nil:NilClass (NoMethodError) ...check link for more (https://eval.in/645544)
<dminuoso> Now it's clear why this does not work.
<dminuoso> Obviously I could do something like:
<dminuoso> >> class Base; def self.add(o); @foo ||= []; @foo << o; end; end; class Derived < Base; add(1); end
<ruby[bot]> dminuoso: # => [1] (https://eval.in/645545)
JeanCarloMachado has quit [Ping timeout: 260 seconds]
antgel has quit [Ping timeout: 260 seconds]
<dminuoso> In a Ruby world without public/protected/private inheritance, it's probably better to hide away a Base classes internals anyway..
<dminuoso> What do you think?
mistermocha has quit [Ping timeout: 260 seconds]
<dminuoso> Though the moment add is called, then @foo is defined even for Derived.
bjmllr has quit [Client Quit]
RegulationD has joined #ruby
bjmllr has joined #ruby
coolboy has joined #ruby
arnonhongklay has quit [Read error: Connection reset by peer]
arnonhongklay has joined #ruby
madgen_ has quit [Ping timeout: 265 seconds]
madgen has joined #ruby
sandelius has joined #ruby
lifted has joined #ruby
jsrn__ has quit [Quit: Leaving]
nankyokusei has joined #ruby
tlaxkit has quit [Quit: tlaxkit]
newbie1 has quit [Ping timeout: 240 seconds]
sai__ has joined #ruby
tubuliferous_ has joined #ruby
Zingo has joined #ruby
karmatr0n has quit [Ping timeout: 260 seconds]
nankyokusei has quit [Ping timeout: 244 seconds]
blackmes1 has quit [Ping timeout: 255 seconds]
marchelzo has quit [Ping timeout: 265 seconds]
Zingo has quit [Client Quit]
sandelius has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hakunin has quit [Remote host closed the connection]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hakunin has joined #ruby
hakunin has quit [Ping timeout: 244 seconds]
JoshS has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
cdg has joined #ruby
jphase is now known as jphase-werk
polishdub has joined #ruby
arnonhongklay has quit [Ping timeout: 244 seconds]
Snowy has quit [Read error: Connection reset by peer]
tomphp has quit [Ping timeout: 248 seconds]
uwjbvg has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Snowy has joined #ruby
arnonhongklay has joined #ruby
dinoangelov has quit [Quit: (null)]
fly5566 has quit [Ping timeout: 244 seconds]
tyang has joined #ruby
aegis3121 has quit [Ping timeout: 272 seconds]
danielius has joined #ruby
tyang has quit [Read error: Connection reset by peer]
tubuliferous_ has quit [Ping timeout: 265 seconds]
Couch has quit [Ping timeout: 240 seconds]
karmatr0n has joined #ruby
pwnd_nsfw` has joined #ruby
lifted has quit [Ping timeout: 265 seconds]
f4cl3y has quit [Ping timeout: 272 seconds]
JeanCarloMachado has quit [Quit: leaving]
JeanCarloMachado has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
madgen has quit [Read error: Connection reset by peer]
jrozner has joined #ruby
Robtop__ has quit [Ping timeout: 248 seconds]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jphase-werk is now known as jphase
lifted has joined #ruby
claudiui_ has quit []
rodfersou is now known as rodfersou|lunch
Sashimi has joined #ruby
DroidBurgundy has joined #ruby
blaxter has quit [Quit: foo]
Macaveli has joined #ruby
madgen has joined #ruby
arnonhongklay has quit [Read error: Connection reset by peer]
arnonhon_ has joined #ruby
h0ffmann has joined #ruby
saneax is now known as saneax-_-|AFK
johnmccabe has quit [Ping timeout: 250 seconds]
tyang has joined #ruby
<jokke> hello
madgen has quit [Ping timeout: 240 seconds]
xemehc has quit [Quit: ZZZzzz…]
<jokke> can someone help me out with yard? i tried the @!macro definition and i think it's very cool but i miss being able to customize the output of the macro sometimes. is this at all possible?
madgen has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
ninja007 has quit [Quit: ninja007]
pwnd_nsfw has joined #ruby
stamina has quit [Ping timeout: 244 seconds]
pwnd_nsfw` has quit [Ping timeout: 250 seconds]
jaruga_____ has quit [Quit: jaruga_____]
JoshS has joined #ruby
finisherr has quit [Quit: finisherr]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
madgen_ has joined #ruby
bjh13 has joined #ruby
SteenJobs has joined #ruby
danielius has quit [Ping timeout: 260 seconds]
madgen has quit [Ping timeout: 240 seconds]
<salut> clear
<salut> sorry
JoshS has quit [Ping timeout: 265 seconds]
hakunin has joined #ruby
jrozner has quit [Ping timeout: 244 seconds]
pwnd_nsfw` has joined #ruby
grul has joined #ruby
Pumukel has quit [Remote host closed the connection]
hk238 has joined #ruby
jrozner has joined #ruby
sarkis has joined #ruby
pwnd_nsfw has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
Zamyatin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arnonhon_ has quit [Ping timeout: 244 seconds]
grul has left #ruby ["Leaving"]
cdown has quit [Ping timeout: 265 seconds]
arnonhongklay has joined #ruby
zacstewart has quit [Read error: Connection reset by peer]
aegis3121 has joined #ruby
grh has joined #ruby
blackmes1 has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
panpainter has quit []
mtkd has quit [Ping timeout: 244 seconds]
LoneHermit has joined #ruby
RedNifre has quit [Ping timeout: 260 seconds]
mistermocha has quit [Ping timeout: 248 seconds]
mtkd has joined #ruby
flying has quit []
RedNifre has joined #ruby
Snowy has quit [Quit: ragequit]
nitric has joined #ruby
marchelzo has joined #ruby
FastJack has quit [Read error: Connection reset by peer]
LoneHermit has quit [Ping timeout: 244 seconds]
FastJack has joined #ruby
cdg has quit [Remote host closed the connection]
DaniG2k has joined #ruby
cdown has joined #ruby
<DaniG2k> hello all. I'm trying to make a really simple gem but am getting an error when trying to require it from irb
<DaniG2k> LoadError: cannot load such file -- korean_name
<DaniG2k> its a super simple gem right now, just trying to get it up and running
hakunin has quit [Remote host closed the connection]
<DaniG2k> i ran bundle install, I have a korean_name.gemspec file and a korean_name-0.1.0.gem file
<DaniG2k> and I ran gem build korean_name.gemspec
hakunin has joined #ruby
<DaniG2k> am I missing something?
Zamyatin has joined #ruby
BillSussman has joined #ruby
AndyBotwin has quit [Ping timeout: 255 seconds]
TomyWork has quit [Ping timeout: 240 seconds]
sandelius has joined #ruby
redpants has joined #ruby
LemonJuice has quit [Quit: Leaving]
LemonJuice has joined #ruby
marchelzo has quit [Quit: WeeChat 1.4]
hakunin has quit [Read error: No route to host]
jaequery has joined #ruby
coolboy has quit [Ping timeout: 244 seconds]
blackmes1 has quit [Ping timeout: 264 seconds]
gener1c has quit [Ping timeout: 255 seconds]
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
bsrd has joined #ruby
kirun has joined #ruby
ninja007 has joined #ruby
redpants has quit [Ping timeout: 265 seconds]
karmatr0n has quit []
jenrzzz has quit [Ping timeout: 265 seconds]
rcvalle has joined #ruby
_djbkd has joined #ruby
arnonhon_ has joined #ruby
arnonhongklay has quit [Read error: Connection reset by peer]
xemehc has joined #ruby
DaniG2k has quit [Quit: leaving]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
bmurt has joined #ruby
h0ffmann has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
h0ffmann has joined #ruby
tubuliferous_ has joined #ruby
finisherr has joined #ruby
elenatanasoiu has quit [Ping timeout: 264 seconds]
joelwallis has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
coolboy has joined #ruby
JakFrist has joined #ruby
craigp has joined #ruby
arnonhon_ has quit [Ping timeout: 244 seconds]
KlinedByAVirgin has joined #ruby
Blaguvest has joined #ruby
arnonhongklay has joined #ruby
cdown has quit [Ping timeout: 250 seconds]
salut has quit [Quit: salut]
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
JakFrist has quit [Ping timeout: 276 seconds]
Pumukel has joined #ruby
SeepingN has joined #ruby
Cohedrin has joined #ruby
firstdayonthejob has joined #ruby
replay has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
rcvalle has quit [Quit: rcvalle]
Cohedrin has quit [Max SendQ exceeded]
Cohedrin has joined #ruby
loincloth has quit [Read error: Connection reset by peer]
xemehc has quit [Quit: I'm out]
RegulationD has quit [Remote host closed the connection]
fullofca_ has joined #ruby
fullofcaffeine has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
jud has joined #ruby
jud has quit [Changing host]
jud has joined #ruby
loincloth has joined #ruby
astrobunny has joined #ruby
No_One is now known as kspencer
cdg has joined #ruby
saneax-_-|AFK is now known as saneax
arnonhongklay has quit [Ping timeout: 248 seconds]
tdy has quit [Ping timeout: 244 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Azure has joined #ruby
Biciato has joined #ruby
<Biciato> Hi people
Pumukel has quit [Remote host closed the connection]
<Biciato> can someone help me ?
arnonhongklay has joined #ruby
tdy has joined #ruby
Azure|dc has quit [Ping timeout: 265 seconds]
<dminuoso> ?help
<ruby[bot]> You can find an overview of my commands at http://ruby-community.com/ruboto/commands
<dminuoso> mmm
<dminuoso> Biciato: don't ask for help, just tell us about your problem.
miqlas-H has joined #ruby
Eiam has joined #ruby
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.2 Aria]
<Biciato> is there a problem to ask a "logic" problem here ?
<Biciato> just to know
pragmaticus has joined #ruby
arnonhongklay has quit [Remote host closed the connection]
blackmes1 has joined #ruby
redpants has joined #ruby
<dminuoso> Biciato: Ask.
<dminuoso> Worst is we tell you to ask somewher else.
<dminuoso> But asking to ask, and then asking to ask some more is just pissing me off.
ziprar has joined #ruby
zipace has quit [Disconnected by services]
mistermocha has joined #ruby
<Biciato> i'm new here, that's why i'm asking
<Biciato> but anyway
<SeepingN> <Jeopardy>
jrozner has quit [Quit: leaving]
<Biciato> all i want is delete the second char from a string but that string is inside an array
ocbtec has quit [Quit: leaving]
TvL2386 has quit [Remote host closed the connection]
<baweaver> dminuoso: watch it
AndrewIsHere has quit [Remote host closed the connection]
<dminuoso> baweaver: My apologies. :-)
<baweaver> Biciato: just the first element of the array?
<Biciato> is the only element of the array
<baweaver> Ok. To start, how would you get the first element of an array?
<baweaver> or rather, what have you already tried?
<Biciato> ["AsQs"] is my array and i need to delete de first "s"
AndrewIsHere has joined #ruby
<dminuoso> Biciato: How do you access that string? :)
<SeepingN> Some call it..... Tim?
moneylotion has joined #ruby
moneylotion has quit [Excess Flood]
mistermocha has quit [Ping timeout: 264 seconds]
nitric has quit [Quit: quit]
<Biciato> by index
<Biciato> ??
moneylotion has joined #ruby
<dminuoso> Biciato: Right, You just refer to the string. You can then use str.slice!(n) to remove the nth index.
bmurt has joined #ruby
nitric has joined #ruby
<baweaver> &ri String
<baweaver> that may be of some help as well.
<dminuoso> baweaver: Am I forgiven now? :S
pandaant has quit [Remote host closed the connection]
<baweaver> They'll look up to the ops and yell "forgive us!" and we'll look down and whisper "no"
<baweaver> jokes aside, not a problem
<baweaver> just be sure to be nice.
<dminuoso> I'm nice. Mostly.
miqlas-H has quit [Ping timeout: 240 seconds]
<baweaver> It's the mostly part I was after you on :P
<baweaver> (well, that and I can't help but quote Rorschach)
Pumukel has joined #ruby
negatifze has joined #ruby
_djbkd has quit [Quit: My people need me...]
nankyokusei has joined #ruby
wldcordeiro has joined #ruby
<Biciato> i'll try
<Biciato> thankx
rodfersou|lunch is now known as rodfersou
minimalism has joined #ruby
skweek has joined #ruby
ishe_ua has quit [Ping timeout: 265 seconds]
ta_ has joined #ruby
zeroDi has joined #ruby
_djbkd has joined #ruby
nankyokusei has quit [Ping timeout: 276 seconds]
<Biciato> hey dminuoso , it's not removing the nth index but keeping
<baweaver> &ri String#slice!
<baweaver> notice what each slice! call returns
<Biciato> yeah , it is removing
<Biciato> my mistaken
jenrzzz_ has joined #ruby
Zamyatin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoul_ has joined #ruby
<Biciato> thankx
jenrzzz has quit [Ping timeout: 276 seconds]
<Biciato> thanks
moneylotion has quit [Ping timeout: 260 seconds]
chouhoulis has quit [Ping timeout: 250 seconds]
brent__ has joined #ruby
claudiuinberlin has joined #ruby
moneylotion has joined #ruby
jackjackdripper has joined #ruby
bmurt has quit [Ping timeout: 244 seconds]
symm- has quit [Ping timeout: 264 seconds]
cdown has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
RegulationD has joined #ruby
moei has quit [Quit: Leaving...]
bocaneri has quit [Remote host closed the connection]
joelwallis has quit [Quit: Leaving]
chouhoul_ has quit [Remote host closed the connection]
firstdayonthejob has quit [Quit: WeeChat 1.5]
Guest40 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
biberu has quit [Ping timeout: 244 seconds]
Pumukel has quit [Remote host closed the connection]
cdown has quit [Remote host closed the connection]
madgen has joined #ruby
stamina has joined #ruby
Guest40 has joined #ruby
Pumukel has joined #ruby
madgen_ has quit [Ping timeout: 244 seconds]
bsrd has quit [Quit: WeeChat 1.5]
Zamyatin has joined #ruby
firstdayonthejob has joined #ruby
Guest40_ has joined #ruby
marciol has joined #ruby
Guest40 has quit [Ping timeout: 265 seconds]
miqlas-H has joined #ruby
justinweiss has joined #ruby
Pumukel has quit [Remote host closed the connection]
DroidBurgundy has quit [Remote host closed the connection]
DroidBurgundy has joined #ruby
KlinedByAVirgin is now known as incog
symm- has joined #ruby
duderonomy has joined #ruby
incog has quit [K-Lined]
biberu has joined #ruby
KlinedByAVirgin has joined #ruby
KlinedByAVirgin is now known as incog
loincloth has quit [Ping timeout: 244 seconds]
cdg has quit [Remote host closed the connection]
ninja007 has quit [Quit: ninja007]
ramfjord has quit [Ping timeout: 255 seconds]
Zamyatin has quit [Quit: Knocking out. Peace y'all...]
the_drow has joined #ruby
nikivi has joined #ruby
nikivi has quit [Client Quit]
DroidBurgundy has quit []
dsea11 has quit [Quit: Leaving]
anisha has joined #ruby
stamina has quit [Quit: WeeChat 1.5]
kitikonti has joined #ruby
DroidBurgundy has joined #ruby
mistermocha has joined #ruby
stamina has joined #ruby
moneylotion has quit [Read error: Connection reset by peer]
moneylotion has joined #ruby
mistermocha has quit [Ping timeout: 244 seconds]
jenrzzz_ has quit [Ping timeout: 265 seconds]
allcentury has joined #ruby
bmurt has joined #ruby
ninja007 has joined #ruby
ninja007 has quit [Client Quit]
vuoto has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
weemsledeux has joined #ruby
madgen has quit [Read error: Connection reset by peer]
madgen_ has joined #ruby
negatifze has quit [Quit: negatifze]
howdoi has quit [Quit: Connection closed for inactivity]
ninja007 has joined #ruby
negatifze has joined #ruby
johnmilton has quit [Remote host closed the connection]
etetz has quit [Quit: Leaving...]
ali_ has joined #ruby
ali_ has quit [Client Quit]
ferr has quit [Quit: WeeChat 1.5]
claudiuinberlin has quit [Remote host closed the connection]
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
kitikonti has quit [Ping timeout: 265 seconds]
claudiuinberlin has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
bmurt has quit [Read error: Connection reset by peer]
bmurt has joined #ruby
johnmilton has joined #ruby
sai__ has quit [Read error: Connection reset by peer]
sai_ has joined #ruby
loincloth has joined #ruby
DroidBurgundy has quit []
jmignault has quit [Ping timeout: 250 seconds]
claudiuinberlin has quit [Remote host closed the connection]
AnoHito_ has quit [Read error: Connection reset by peer]
johnmilton has quit [Ping timeout: 255 seconds]
claudiuinberlin has joined #ruby
AnoHito_ has joined #ruby
sai_ has quit [Read error: Connection reset by peer]
sai_ has joined #ruby
BLuEGoD has joined #ruby
kx has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
last_staff has joined #ruby
<kx> can you do partial array comparisons e.g. [1,2,3] == [1, _, 3] without gems?
<kx> as a one liner
rodfersou is now known as rodfersou|afk
incog has quit [Changing host]
incog has joined #ruby
incog was kicked from #ruby by ruby[bot] [spamming is a bannable offense, see http://ruby-community.com/pages/user_rules]
Sashimi_ has joined #ruby
Xiti has quit [Quit: Xiti]
<chris2> >> data=[1,2,3]; pat=[1,nil,3]; pat.each_with_index.all? { |a,i| a == nil || pat[i] == data[i] }
<ruby[bot]> chris2: # => true (https://eval.in/645606)
<kx> that's a cool idea, thanks
Sashimi has quit [Ping timeout: 265 seconds]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackwind_123 has quit [Quit: Easy as 3.14159265358979323846...]
<chris2> or use :_ or something
<bmurt> hey ya'll, question for ya.. im using the aws ruby sdk (specifically ec2's describe_key_pairs and create_key_pair, but when a key isn't found in the query or if there's a duplicate key, i get one of two exceptions: Aws::EC2::Errors::InvalidKeyPairNotFound and Aws::EC2::Errors::InvalidKeyPairDuplicate respectively. how can i get this to "retry" vs hit the exception and exit
<kx> yeah, probably better to avoid future wtfs
nettoweb has joined #ruby
Guest40_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
johnmilton has joined #ruby
nettoweb has quit [Max SendQ exceeded]
SteenJobs has quit [Quit: SteenJobs]
<JeanCarloMachado> cler
<JeanCarloMachado> sorry :P
nettoweb has joined #ruby
ta_ has quit [Remote host closed the connection]
jmignault has joined #ruby
nettoweb has quit [Max SendQ exceeded]
marxarelli is now known as marxarelli|afk
negatifze has quit [Quit: negatifze]
marxarelli|afk is now known as marxarelli
JoshS has joined #ruby
negatifze has joined #ruby
nettoweb has joined #ruby
claudiuinberlin has joined #ruby
cdown_ has joined #ruby
ramfjord has joined #ruby
Xiti has joined #ruby
cdown_ has quit [Remote host closed the connection]
hakunin has joined #ruby
elastix has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
babblebre has joined #ruby
Vingador has joined #ruby
marxarelli has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Nahra` has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
chouhoulis has joined #ruby
mistermocha has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
weemsledeux has quit [Quit: Textual IRC Client: www.textualapp.com]
<baweaver> &ri Array#===
chouhoul_ has joined #ruby
Guest40 has joined #ruby
Nahra has joined #ruby
<baweaver> so only range redefines that to includes. Hrm,
JeanCarloMachado has joined #ruby
<petercooper> possible variation to keep all the data on the outside
<petercooper> >> [1,2,3].zip([1,nil,3]).all? { |a,b| b.nil? || a == b }
mistermocha has quit [Ping timeout: 240 seconds]
<ruby[bot]> petercooper: # => true (https://eval.in/645610)
ta_ has joined #ruby
chouhoulis has quit [Ping timeout: 265 seconds]
workmad3 has quit [Ping timeout: 265 seconds]
<dminuoso> baweaver: IPAddr does something similar too.
kspencer is now known as ZeeNoodley
redpants has quit [Ping timeout: 244 seconds]
<dminuoso> >> [[1,2,3],[1,nil,3]].transpose.all? { |a,b| b.nil? || a == b } # petercooper
<ruby[bot]> dminuoso: # => true (https://eval.in/645611)
<dminuoso> >> [[1,2,3],[1,nil,3]].transpose.all? { |a,b| !a&.==(b).nil? } # petercooper
<ruby[bot]> dminuoso: # => true (https://eval.in/645612)
<dminuoso> for extra sillyness points.
<kx> :)
Vingador has quit [Ping timeout: 264 seconds]
<petercooper> haha very smart
<kx> cool stuff
tomphp has joined #ruby
nankyokusei has joined #ruby
<dminuoso> petercooper: actually strike that last one
<baweaver> >>class Array;def ===(o)o.each_with_index.all?{|x,i|x==:*||self[i]==x}end;end; [1,2,3] === [1, :*, 3]
<ruby[bot]> baweaver: # => true (https://eval.in/645617)
<baweaver> boom
<baweaver> though not suggested to actually do
claudiuinberlin has quit [Remote host closed the connection]
Guest40 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord_ has joined #ruby
<baweaver> You _could_ abuse the array initializer too, but that'd be a longer mess.
arup_r has joined #ruby
<petercooper> if we're getting silly, another suggestion just for fun..
xemehc has joined #ruby
<petercooper> >> a=[1,2,3]; b=[1,nil,3]; a|b.compact==a
<dminuoso> petercooper: Im thinking how to make some fun on that condition like I tried.
<ruby[bot]> petercooper: # => true (https://eval.in/645622)
<petercooper> it has a few flaws of course ;)
<petercooper> s/few/thousand
flying has joined #ruby
<baweaver> If you use a Hash instead you can treat it like an array and intercept anything that returns :* to return an object with == defined that'll always be true.
ramfjord has quit [Ping timeout: 240 seconds]
fmcgeough has quit [Quit: fmcgeough]
<baweaver> Hashes are really freakishly powerful, especially when you combine with lambdas
<dminuoso> Don't see a way how I could use the safe navigation operator to get rid off that ||
nankyokusei has quit [Ping timeout: 250 seconds]
<baweaver> ^ that's how you properly abuse a hash
Moosashi has joined #ruby
<dminuoso> baweaver: That is hilarious.
<baweaver> I'll change it up a bit later to be like a deep select instead
<baweaver> but the gist of it is that it abuses the fact that lambdas can be called with :[]
sai_ has quit [Remote host closed the connection]
postmodern has joined #ruby
blackgoat has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<arup_r> I am writing a little wrapper of Stripe for my own project use. https://gist.github.com/aruprakshit/c38182c1861dd03bdf7d3b3122e40026 So what I don't like is `_load` . I have to do it like that, because there is a 2 way we can stripe subscription object with subscription_id or without ( when it is the first one ). Any idea how can I improve the Subscription class?
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #ruby
<baweaver> Just inline it in the initialize
<baweaver> also customer.customer?
<arup_r> ok, but I need to comment on the code to tell others how it works. Is that fine?
<baweaver> Yeah
<baweaver> that's a good reason to use comments
lel has joined #ruby
negatifze has quit [Quit: negatifze]
<baweaver> anything that's not immediately apparent should probably have a comment explaining so
<arup_r> hm. ok feels like I becoming a programmer .. thanks baweaver :D
indefiniteloop has joined #ruby
<baweaver> all things in time arup_r
<arup_r> hmm customer.customer i didn't notice.. that is ugly too
<baweaver> Might call it something like stripe_customer instead
fullofca_ has quit [Remote host closed the connection]
<baweaver> it's a bit towards Hungarian notation, but I find it nice to be able to quickly find what's mine and what's not.
tubuliferous_ has quit [Ping timeout: 248 seconds]
gizmore has joined #ruby
<arup_r> you mean the local variable or the attr_reader?
<dminuoso> arup_r: also remove that silly underscore :)
blackgoat has quit [Quit: WeeChat 1.5]
_djbkd has quit [Ping timeout: 244 seconds]
pawnbox has quit [Remote host closed the connection]
<dminuoso> arup_r: It's private, people can't call it anyway without intentionally breaking encapsulation.
<baweaver> Anything that references a literal stripe customer object
<baweaver> but send is so much fun :D
jeffreylevesque has quit [Ping timeout: 260 seconds]
elephants has quit [Quit: Leaving...]
ninja007 has quit [Quit: ninja007]
hightower2 has quit [Ping timeout: 276 seconds]
claudiuinberlin has joined #ruby
<baweaver> anyways, the reason I'd do that is so whenever errors come in it's pretty clear that it's a stripe_customer object that's causing the error instead of my implementation of it.
Biciato has quit [Ping timeout: 240 seconds]
<baweaver> Though this may also be a good use for SimpleDelegator or Forwardable
<baweaver> that way it can just pass through all methods to the stripe object by default except for what you override in the class.
hutch34 has quit [Ping timeout: 265 seconds]
<arup_r> yeah, I can see what you mean. So should I rewrite ? :)
cdg has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<baweaver> if it works, it works
<dminuoso> arup_r: https://xkcd.com/1205/
<baweaver> don't burn too much time trying to refactor for an ideal case.
pokalyis has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
<dminuoso> arup_r: ^- that actually is one of the more crucial resources for programming
<dminuoso> One of the valid xkcds to actually post from time to time
<arup_r> ok
<dminuoso> If it saves enough time later on in maintenance or usage to compensate for the effort spent rewriting, do it. Otherwise not.
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
<SeepingN> or makes it less prone to errors
lifeai has quit [Ping timeout: 265 seconds]
miqlas-H has quit [Ping timeout: 276 seconds]
<dminuoso> SeepingN: I consider that to be effort in maintenance. :p
tomphp has joined #ruby
whathappens has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
Nanuq has quit [Ping timeout: 255 seconds]
Vivekananda has quit [Quit: Leaving]
elenatanasoiu has joined #ruby
allcentury has quit [Ping timeout: 240 seconds]
shinnya has quit [Ping timeout: 240 seconds]
ninja007 has joined #ruby
ur5us has joined #ruby
indefiniteloop has quit [Quit: Mutter: http://www.mutterirc.com]
vuoto has quit [Quit: Lost terminal]
indefiniteloop has joined #ruby
<JackMc> Hey, I'm trying to decrypt a Blowfish string with an IV, key, and some ciphertext. I have not much knowledge about this text other than that I have some Python code that can decrypt it.
fullofcaffeine has joined #ruby
<JackMc> I want to get it working in Ruby, but the OpenSSL module with a shit ton of different settings doesn't seem to work.
<JackMc> Has anyone here done this before?
<dminuoso> Look what I found :-)
<baweaver> beat me to it
<JackMc> haha thanks dminuoso but I tried that :\
<dminuoso> JackMc: Okay, recognizing that this is from Ruby 1.9 times, what issues did you have?
<JackMc> I have tried all the strategies suggested in the top 10 Google results :p
<dminuoso> Great, means you're worth my time!
<dminuoso> :-P
<JackMc> Let me reproduce it again
Pumukel has joined #ruby
<baweaver> y'might toss it up on a gist too when you get it
<JackMc> I definitely will, this is a hell of a rabbit hole, been my last 8 hours :)
jmignault has quit [Ping timeout: 240 seconds]
BillSussman has quit [Quit: Leaving]
Pumukel has quit [Client Quit]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
arup_r has left #ruby [#ruby]
synthroid has quit []
hutch34 has joined #ruby
rodfersou|afk is now known as rodfersou
<JackMc> Here's an IRB session with what I tried and the results dminuoso https://www.irccloud.com/pastebin/aT8lwF1A/
<ruby[bot]> JackMc: 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
<baweaver> naggy bot is naggy
<adam12> lol
<JackMc> It does have syntax highlighting though mr bot
<JackMc> But I'll throw it on gist
<baweaver> done
<JackMc> Oh plus irb(main):011:0> cipher = OpenSSL::Cipher.new('bf-cbc')
<JackMc> To initialize the cipher :)
marxarelli has joined #ruby
<dminuoso> JackMc: Just so there is no confusion. Are you sure about the BF-CBC cipher?
allcentury has joined #ruby
<JackMc> dminuoso: Yeah, that's the one the reference Python code uses. I can throw that up on gist too if you'd like
<dminuoso> JackMc: Sure, why not.
vqrs has quit [Max SendQ exceeded]
hello_world has joined #ruby
* baweaver wanders off for meetings
fullofca_ has joined #ruby
hello_world is now known as Guest26977
<JackMc> 👋
domgetter has quit []
JeanCarloMachado has joined #ruby
<Guest26977> Can somebody get me this book for free:
vqrs has joined #ruby
<JackMc> Lol
claw has quit [Quit: No Ping reply in 180 seconds.]
fullofcaffeine has quit [Ping timeout: 272 seconds]
last_staff has quit [Quit: last_staff]
bousquet has joined #ruby
claw has joined #ruby
claudiuinberlin has joined #ruby
miqlas-H has joined #ruby
Moosashi has quit [Quit: Moosashi]
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
Dimik has joined #ruby
<dminuoso> JackMc: So before we start chasing different problems. What problems did you experience?
nando293921 has joined #ruby
dionysus69 has quit [Ping timeout: 265 seconds]
LoneHerm_ has joined #ruby
ur5us_ has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
fullofcaffeine has joined #ruby
Lildirt has quit [Quit: Leb wohl, meine Freunde. Ich wünsche Ihnen das beste von Tagen.]
<JackMc> dminuoso: tried things like encoding everything and combinations thereof into ASCII ("data size not multiple of block size"), change padding to 0 (garbage output), running stuff like .pack("H*") on the data (misaligns it), reconverting to Unicode at the end (no change)
Lildirt has joined #ruby
chouhoulis has joined #ruby
fredlinhares1 has quit [Quit: WeeChat 1.4]
<dminuoso> JackMc: Alright. So let's start with the data you have.
Lildirt has quit [Client Quit]
<dminuoso> JackMc: Im seeing URI parsing and forced encodings, and after 8 hours you've probably arrived at the "I'll just try things until this works" - so I'm curious about the original form of the data.
LoneHerm_ has quit [Ping timeout: 240 seconds]
gizmore has quit [Remote host closed the connection]
fullofca_ has quit [Ping timeout: 260 seconds]
chouhoul_ has quit [Ping timeout: 244 seconds]
<JackMc> The URI parsing is cause this stuff actually comes from a web app - but I feed the output of that URI parse into the python and it succeeds
Moosashi has joined #ruby
indefiniteloop has quit [Remote host closed the connection]
_djbkd has joined #ruby
<JackMc> But the person gave me three numbers: an IV (12345678), a key (16 characters) and after receiving output from the app it gave me a blowfish encrypted blob
chouhoulis has quit [Ping timeout: 240 seconds]
<dminuoso> JackMc: Alright.
<dminuoso> JackMc: Im curious, how do you set the key?
<JackMc> The unencrypted data looks like IP=blah USER=blah2 OTHERINFO=blah3
<dminuoso> Sad panda, I was more hoping for your credit card details.
<dminuoso> But fine.
xemehc has quit [Quit: ZZZzzz…]
<JackMc> The cipher.key = "notthekey" above is doing that I think
<dminuoso> JackMc: Curious because I'm getting exceptions on the key length there.
jmignault has joined #ruby
<dminuoso> JackMc: Though based on your snippets, you naughty. You forgot to initialize your cipher as a decrypt cipher!
<dminuoso> 22:48 < JackMc> Oh plus irb(main):011:0> cipher = OpenSSL::Cipher.new('bf-cbc')
skweek has joined #ruby
<dminuoso> It should be cipher = OpenSSL::Cipher.new('bf-cbc').decrypt
<JackMc> Yeah it's actually a 16 character string. I can DM it to you cause the resultant data isn't actually sensitive (a UUID and an IP)
ur5us_ has quit [Read error: Connection reset by peer]
<dminuoso> That explains it. :-)
<JackMc> Yeah I did that in my actual code unfortunately:(
<dminuoso> JackMc: You can send it to me via DM if you like.
stamina has quit [Ping timeout: 244 seconds]
ur5us has joined #ruby
teclator has quit [Ping timeout: 240 seconds]
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
BLuEGoD has quit [Ping timeout: 265 seconds]
teclator has joined #ruby
xemehc has joined #ruby
Guest26977 has quit [Quit: Page closed]
ngscheurich has quit [Quit: WeeChat 1.2]
h0ffmann has quit [Ping timeout: 255 seconds]
aesthetikx has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
madgen_ has quit [Quit: Lost terminal]
<dminuoso> JackMc: Let's get some things out of the way:
<dminuoso> JackMc: force endocing these first two strings to ascii is not necessary
<dminuoso> The reason is even though they are UTF8 strings, they are using the ascii compatible set, so their codepoints will be ascii codepoints still.
flying has quit []
ledestin has joined #ruby
incog has quit [Remote host closed the connection]
KlinedByAVirgin has joined #ruby
KlinedByAVirgin has quit [Client Quit]
ramortegui has quit [Quit: Ex-Chat]
ur5us_ has joined #ruby
theOneWho has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
ChiefAlexander has quit [Quit: Leaving...]
marciol has quit [Ping timeout: 244 seconds]
filtered has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
xemehc has quit [Quit: ZZZzzz…]
aryaching has quit [Ping timeout: 265 seconds]
ur5us_ has quit [Client Quit]
claudiuinberlin has quit []
filtered has quit [Read error: Connection reset by peer]
blackgoat has joined #ruby
filtered has joined #ruby
fullofcaffeine has quit [Read error: Connection reset by peer]
<dminuoso> JackMc: Im really unsure where the problem is. IV could be wrong, key could be wrong, or the data is not interpreted correctly here
<dminuoso> But that should work.
Nanuq has joined #ruby
<JackMc> Sorry dminuoso I got a phone call
ninja007 has quit [Quit: ninja007]
teclator has quit [Ping timeout: 260 seconds]
<dminuoso> Not an issue.
teclator has joined #ruby
<dminuoso> Im about to crash, so..
yokel has quit [Ping timeout: 240 seconds]
genpaku has quit [Ping timeout: 265 seconds]
filtered is now known as incog
incog has quit [Changing host]
incog has joined #ruby
incog was kicked from #ruby by ruby[bot] [spamming is a bannable offense, see http://ruby-community.com/pages/user_rules]
Madplatypus has joined #ruby
genpaku has joined #ruby
Moosashi has quit [Quit: Moosashi]
allcentu1 has joined #ruby
ur5us has joined #ruby
SteenJobs has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
allcentury has quit [Ping timeout: 255 seconds]
arnonhongklay has joined #ruby
toretore has quit [Ping timeout: 265 seconds]
aesthetikx has quit [Quit: WeeChat 1.4]
ninja007 has joined #ruby
cloaked1 has joined #ruby
cloaked1 has quit [Changing host]
cloaked1 has joined #ruby
arnonhongklay has quit [Remote host closed the connection]
lucast has quit [Ping timeout: 240 seconds]
lucast has joined #ruby
sonikspin has quit [Ping timeout: 250 seconds]
gdonald has joined #ruby
kirun has quit [Quit: Konversation terminated!]
Blaguvest has quit [Read error: Connection reset by peer]
xemehc has joined #ruby
Renich has quit [Quit: leaving]
domgetter has joined #ruby
nofxx has joined #ruby
genpaku has quit [Ping timeout: 255 seconds]
domgetter has quit [Client Quit]
solocshaw has joined #ruby
ninja007 has quit [Quit: ninja007]
whathappens has quit [Remote host closed the connection]
whathappens has joined #ruby
gdonald has quit []
wldcordeiro has quit [Ping timeout: 276 seconds]
ninja007 has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
xemehc has quit [Quit: ZZZzzz…]
ta_ has quit [Remote host closed the connection]
arnonhongklay has joined #ruby
marxarelli is now known as marxarelli|afk
pragmaticus has quit [Remote host closed the connection]
arnonhongklay has quit [Remote host closed the connection]
Guest40 has joined #ruby
Guest40 has quit [Client Quit]
d10n-work has quit [Quit: Connection closed for inactivity]
arnonhongklay has joined #ruby
sarkis has quit [Quit: WeeChat 1.5]
Guest40 has joined #ruby
mistermocha has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
LemonJuice has quit [Quit: Leaving]
LoneHermit has joined #ruby
xemehc has joined #ruby
bodgix has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
NetSage has joined #ruby
allcentu1 has quit [Ping timeout: 255 seconds]
<JackMc> Thanks so much for your help dminuoso <3
<JackMc> Sorry I had to dip out - family called
arnonhongklay has quit [Ping timeout: 276 seconds]
<bodgix> Hi. I'm testing the main/entry script with rspec. How can I stub a global method? I've tried expect(Module).to receive and expect_any_instance_of(Module).to receive but they didn't work
skweek has quit [Ping timeout: 248 seconds]
<baweaver> define global method
pragmaticus has joined #ruby
<baweaver> you could always do a `p self.class` to see where it's binding.
nankyokusei has joined #ruby
LoneHermit has quit [Ping timeout: 240 seconds]
dminuoso has quit [Ping timeout: 264 seconds]
moei has joined #ruby
weaksauce has joined #ruby
biberu has quit []
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
coolboy has quit [Ping timeout: 248 seconds]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
loincloth has quit [Remote host closed the connection]
arnonhongklay has joined #ruby
_sfiguser has quit [Ping timeout: 250 seconds]
nankyokusei has quit [Ping timeout: 240 seconds]
justinweiss has quit [Quit: Connection closed for inactivity]
<bodgix> global as in defined outside of all modules with def in the script.rb file
xemehc has quit [Quit: ZZZzzz…]
<baweaver> probably Kernel then
jphase has quit [Ping timeout: 240 seconds]
blackgoat has quit [Quit: WeeChat 1.5]
<baweaver> do the self.class thing from above to be sure.
loincloth has joined #ruby
<bodgix> tried expect(Kernel) and expect_any_instance_of(Kernel) but didn't work
<bodgix> fwiw I could stub puts in the same spec file by expect_any_instance_ok(Kernel).to receive(:puts)
JeanCarloMachado has quit [Ping timeout: 240 seconds]
<baweaver> self.class
<baweaver> find that
Ebok has joined #ruby
loincloth has quit [Remote host closed the connection]
<bodgix> good point.: Object
arnonhongklay has quit [Ping timeout: 265 seconds]
wethu has joined #ruby
<baweaver> Try that then
grh has quit [Ping timeout: 272 seconds]
<bodgix> thanks baweaver. It worked
<bodgix> Don't know why I thought it was a Module. Seemed to make more sense
* baweaver shrugs
<baweaver> who knows.
jeffreylevesque has joined #ruby
ninja007 has quit [Quit: ninja007]
claw has quit [Ping timeout: 244 seconds]
ninja007 has joined #ruby
nikivi has joined #ruby
aryaching has joined #ruby
claw has joined #ruby
incog has quit [Read error: Connection reset by peer]
hightower2 has joined #ruby
aesthetikx has joined #ruby
jmignault has quit [Ping timeout: 265 seconds]
_sfiguser has joined #ruby
unreal has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
wldcordeiro has joined #ruby
solocshaw has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LuckyABA has joined #ruby
<patrick99e99> hey everyone.. I am trying to install 2.2.5 via rvm, but I keep getting dyld: Symbol not found: _clock_gettime
<patrick99e99> it also says Libraries missing for ruby-2.2.5: /usr/local/opt/gmp/lib/libgmp.10.dylib. Refer to your system manual for installing libraries
aegis3121 has quit [Ping timeout: 255 seconds]
<havenwood> patrick99e99: which OS/distro?
<patrick99e99> mac os x, 10.11.6
Xeago has quit [Ping timeout: 265 seconds]
elenatanasoiu has quit [Ping timeout: 276 seconds]
cloaked1 has quit [Quit: leaving]
<havenwood> patrick99e99: try?: brew install gmp
<patrick99e99> havenwood: ahh.. thank you! works now.
jenrzzz has joined #ruby
<havenwood> patrick99e99: you're welcome, happy hacking!
yokel has joined #ruby
<baweaver> havenwood is turning into avdi
Xeago has joined #ruby
lacuna has joined #ruby
SteenJobs has joined #ruby
LuckyABA has quit [Client Quit]
LuckyABA has joined #ruby
ap4y has joined #ruby
ninja007 has quit [Quit: ninja007]
Wizznt is now known as Wazznt
gingray has quit [Ping timeout: 276 seconds]
patarr has quit [Quit: patarr]
aesthetikx has quit [Ping timeout: 255 seconds]
jphase has joined #ruby
GodFather has joined #ruby
unreal has quit [Read error: Connection reset by peer]
<havenwood> oops, misstell >.>
<baweaver> somehow this does not surprise me in the least
unreal has joined #ruby
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LuckyABA has joined #ruby
Sashimi has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
LuckyABA has quit [Client Quit]
LuckyABA has joined #ruby
solocshaw has joined #ruby
Sashimi_ has quit [Ping timeout: 260 seconds]
jtzero1 has joined #ruby
ninja007 has joined #ruby
SteenJobs has joined #ruby
wingwalker has joined #ruby
loincloth has joined #ruby
elenatanasoiu has joined #ruby
[k- has quit [Ping timeout: 272 seconds]
firstdayonthejob has quit [Ping timeout: 276 seconds]
SteenJobs has quit [Client Quit]
elastix has quit [Quit: elastix]
brendan- has quit [Quit: Textual IRC Client: www.textualapp.com]
ruby-lang873 has joined #ruby
arnonhongklay has joined #ruby
<ruby-lang873> O great Ruby wizards - I pose a hopefully simple Ruby question which your 'umble narrator cannot solve thus far.
<ruby-lang873> The method is: # Determine the percent byte usage # def percent_bytes(fs_info) (100.0 - (100.0 * fs_info.bytes_free / fs_info.bytes_total)).round(2) end
loincloth has quit [Ping timeout: 264 seconds]
elenatanasoiu has quit [Ping timeout: 244 seconds]
<ruby-lang873> It always returns a fractional part. I want to truncate it. If I replace the round(2) with trunc, I get NaN "not-a-number" errors. Help O Great Ruby gurus.
arnonhongklay has quit [Remote host closed the connection]
<havenwood> >> 100.0 * 0 / 0 # ruby-lang873
<ruby[bot]> havenwood: # => NaN (https://eval.in/645651)
statelesscode has quit [Quit: statelesscode]
Guest31347 has quit [Ping timeout: 265 seconds]
ruby-lang646 has joined #ruby
<ruby-lang873> havenwood > /dev/null
ruby-lang646 has quit [Client Quit]
kx has quit [Read error: Connection reset by peer]
jottr has joined #ruby
nikivi has quit [Quit: irc]
<Papierkorb> ruby-lang873: Just not pass an argument to #round?
polishdub has quit [Quit: Leaving]
wingwalker has quit [Remote host closed the connection]
wingwalker has joined #ruby
<ruby-lang873> Papierkorb - thankyou for your response. I had tried .round() s well but it gave a "NaN" as well.
rodfersou has quit [Quit: leaving]
<havenwood> ruby-lang873: Don't divide 0.0 by 0! :-)
<havenwood> >> Float::NAN.round(0)
<ruby[bot]> havenwood: # => NaN (FloatDomainError) ...check link for more (https://eval.in/645655)
statelesscode has joined #ruby
nando293921 has quit [Ping timeout: 248 seconds]
<havenwood> ruby-lang873: You'll get NaN if both `fs_info.bytes_free` and `fs_info.bytes_total` are zero with the code above.
<havenwood> >> (100.0 - (100.0 * 0 / 0))
<ruby[bot]> havenwood: # => NaN (https://eval.in/645656)
robfrawley has joined #ruby
robfrawley is now known as Guest56791
Nahra has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
dminuoso has joined #ruby
LoneHerm_ has joined #ruby
nikivi has joined #ruby
Azure has quit [Quit: Oops.]
oncall-pokemon has quit [Quit: Connection closed for inactivity]
elenatanasoiu has joined #ruby
blackmes1 has quit [Quit: WeeChat 1.5]
dminuoso has quit [Ping timeout: 240 seconds]
LoneHerm_ has quit [Ping timeout: 265 seconds]
jmignault has joined #ruby
elenatanasoiu has quit [Ping timeout: 272 seconds]
marxarelli|afk is now known as marxarelli
Sashimi has quit [Quit: Textual IRC Client: www.textualapp.com]
jmignault has quit [Ping timeout: 244 seconds]
tyang has quit [Read error: Connection reset by peer]
wingwalker has quit [Remote host closed the connection]
wingwalker has joined #ruby
<ruby-lang873> havenwood, fs_info.bytes_total can't be zero.
tyang has joined #ruby
banisterfiend has joined #ruby
r4z has left #ruby ["Leaving"]
jeffreylevesque has quit [Ping timeout: 265 seconds]
SteenJobs has joined #ruby
hutch34 has quit [Ping timeout: 276 seconds]
bousquet has quit []
chouhoulis has joined #ruby
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JeanCarloMachado has joined #ruby
Anatzum has quit [Remote host closed the connection]
LuckyABA has joined #ruby
elenatanasoiu has joined #ruby
symm- has quit [Quit: Leaving...]
<ruby-lang873> #{blahblahblah.round(0)}
jmignault has joined #ruby
<baweaver> ruby-lang873 can't or isn't?
Ebok has quit [Quit: Leaving]
<baweaver> there's a large amount of difference between those two
ratatine has joined #ruby
elenatanasoiu has quit [Ping timeout: 265 seconds]
<baweaver> verify that your assumption is correct
marxarelli has quit [Quit: Textual IRC Client: www.textualapp.com]
jmignault has quit [Ping timeout: 260 seconds]
nando293921 has joined #ruby
tyang_ has joined #ruby
tyang has quit [Ping timeout: 240 seconds]
koooge has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marr has quit [Ping timeout: 272 seconds]
babblebre has quit [Quit: Connection closed for inactivity]
whathappens has quit [Quit: Leaving...]
ruby-lang873 has quit [Ping timeout: 240 seconds]
jeffreylevesque has joined #ruby
BackEndCoder has quit [Excess Flood]
BackEndCoder has joined #ruby
theOneWho has quit [Read error: Connection reset by peer]
nikivi has quit [Quit: irc]
theOneWho has joined #ruby
grill has joined #ruby
<grill> is this a hash or an array? {:level=>"1", :stardust_cost=>"200", :candy_cost=>"1", :total_powerups=>"1", :total_stardust=>"200", :total_candy=>"1"}
<al2o3-cr> grill: former
<havenwood> grill: Ask it: {:level=>"1"}.class #=> Hash
<grill> why does ruby tell me it's an Array when i use .class on it?
agent_white has quit [Quit: leaving]
<havenwood> grill: Is the Hash you showed us in an Array, and that Array is what you're calling #class on?
<havenwood> >> [{}].class
<ruby[bot]> havenwood: # => Array (https://eval.in/645659)
solocshaw has quit [Ping timeout: 250 seconds]
jottr has quit [Quit: WeeChat 1.5]
duncannz has joined #ruby
<grill> looks like it
<grill> odd
wingwalker has quit [Remote host closed the connection]
wingwalker has joined #ruby
wingwalker has quit [Client Quit]
mistermocha has joined #ruby
<grill> mm. i see where it all went wrong. thanks
CamonZ has joined #ruby
nitric has quit [Ping timeout: 255 seconds]
Wazznt has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
zeroDi has quit [Quit: WeeChat 1.5]
dminuoso has joined #ruby
loincloth has joined #ruby