havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.0; 2.2.4; 2.1.8; 2.0.0-p648: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
<Ox0dea> Er, and /boot as well, but I guess that makes sense.
donske has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Deck` has joined #ruby
skade has joined #ruby
B1n4r10 has joined #ruby
<volty> thx Ox0dea. I see I have only to take it back from /etc
davedev24 has quit [Ping timeout: 252 seconds]
dlitvak has joined #ruby
<Ox0dea> volty: No worries. Back in a bit.
sanguisdex has quit [Ping timeout: 240 seconds]
Ox0dea has joined #ruby
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Deck` has quit [Ping timeout: 260 seconds]
kies^ has joined #ruby
davedev24 has joined #ruby
visudo has quit [Quit: visudo]
visudo has joined #ruby
avril14th has quit [Ping timeout: 250 seconds]
acidrainfall has quit [Quit: Leaving.]
tomchap__ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
agent_white has joined #ruby
travisthenavi has quit [Ping timeout: 276 seconds]
hahuang65 has quit [Ping timeout: 252 seconds]
donske has joined #ruby
donske has quit [Remote host closed the connection]
Rodya_ has quit [Remote host closed the connection]
peterevjan has joined #ruby
peterevjan has quit [Remote host closed the connection]
pawnbox has joined #ruby
whippythellama has quit [Quit: WeeChat 1.4]
dlitvak_ has joined #ruby
dlitvak_ has quit [Read error: Connection reset by peer]
dlitvak_ has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
Brklyn_ has quit [Ping timeout: 250 seconds]
baweaver has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 276 seconds]
kirillzh has joined #ruby
cschneid_ has quit [Remote host closed the connection]
celly has joined #ruby
TomPeed has joined #ruby
platzhirsch has left #ruby [#ruby]
jnj has joined #ruby
peterevjan has joined #ruby
guacamole has joined #ruby
<jnj> Hey, I'm trying to create a ruby script that tests a java program by running java program testfiles, I already have it running through and out putting to the terminal the results of all the test files, is there anyway to take each output and compare them to text files that contain the answers?
s00pcan has quit [Ping timeout: 240 seconds]
<jnj> I know I can just write each output to a text file, then compare the files, but I'd rather I just compare the output of standard output so that I won't end up creating a whole bunch of text files
d10n-work has quit [Quit: Connection closed for inactivity]
<wolffles> talking about output texts, my output text file font size is 512. not sure whats causing it
<jnj> wow, thats very strange
s00pcan has joined #ruby
agentmeerkat has joined #ruby
<ramfjord> very strange - I didn't know text files had font sizes ;)
B1n4r10 has quit [Ping timeout: 245 seconds]
<volty> jnj: you could redirect to StringIO, then read both and compar
<ramfjord> jnj: if you're just worried about makign a bunch of files, you can use Tempfile
<volty> e
<ramfjord> or that
Rodya_ has joined #ruby
<jnj> Thanks! I'll check out tempfile
<volty> I was thinking he wants to compare on fly
wethu has joined #ruby
<jnj> I do wanna compare on the fly
<jnj> So basically, would I just be creating a new string for each result, then compare that string to it's corresponding text file?
victortyau has joined #ruby
baweaver has joined #ruby
trinaldi has quit [Read error: Connection reset by peer]
<volty> StringIO, redirect the $stdout, etc etc
<volty> StringIO behaves as file, so File::read(stringio_object) == File::read(expected_result)
s00pcan has quit [Ping timeout: 248 seconds]
<volty> and of course truncate in between
harly_ has joined #ruby
cdg has quit []
dexter-tzu has joined #ruby
s00pcan has joined #ruby
hahuang65 has joined #ruby
cdg has joined #ruby
Gnut has quit [Ping timeout: 240 seconds]
johnny56 has joined #ruby
arthurix_ has joined #ruby
peterevjan has quit [Remote host closed the connection]
AdamMeghji_ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
<volty> but before all you have to capture the stdout of those java programs. no idea how you run them.
lilvim_ has joined #ruby
aupadhye has joined #ruby
peterevjan has joined #ruby
at46_ has quit [Remote host closed the connection]
carella_ has joined #ruby
kiez0rd has joined #ruby
johnny56_ has quit [Ping timeout: 264 seconds]
colleen__ has joined #ruby
peterhu_ has joined #ruby
<volty> probably IO.read("| the_prog") would be sufficient
idefine_ has joined #ruby
AdamMeghji has quit [Ping timeout: 240 seconds]
lilvim has quit [Ping timeout: 240 seconds]
dexter__ has quit [Ping timeout: 240 seconds]
kies^ has quit [Ping timeout: 240 seconds]
harly has quit [Ping timeout: 240 seconds]
e4xit has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 240 seconds]
idefine has quit [Ping timeout: 240 seconds]
Mekkis has quit [Ping timeout: 240 seconds]
peterhu has quit [Ping timeout: 240 seconds]
carella has quit [Ping timeout: 240 seconds]
gregf__ has quit [Ping timeout: 240 seconds]
AdamMeghji_ is now known as AdamMeghji
colleen__ has quit [Changing host]
colleen__ has joined #ruby
gregf__ has joined #ruby
Mekkis has joined #ruby
peterevjan has quit [Ping timeout: 252 seconds]
sftrabbit has quit [Quit: sftrabbit]
Rodya_ has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rodya_ has quit [Ping timeout: 248 seconds]
pawnbox has joined #ruby
guacamole has quit [Quit: Textual IRC Client: www.textualapp.com]
colleen__ is now known as guacamole
sneakerhax has quit [Ping timeout: 252 seconds]
agentmeerkat has quit [Ping timeout: 264 seconds]
arlek has joined #ruby
Conflict has quit [Quit: Leaving]
Conflict has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
DLSteve has joined #ruby
blackgoat has quit [Quit: WeeChat 1.3]
psayian has joined #ruby
idefine_ has quit [Remote host closed the connection]
idefine has joined #ruby
<psayian> What is a good ruby book for me to learn from? I have a C, bash, C++, and I've done the ruby on code academy.
Sucks has joined #ruby
Brklyn has joined #ruby
truenito has quit [Ping timeout: 248 seconds]
domgetter has joined #ruby
Jardayn has quit [Quit: Leaving]
webopsx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Coldblackice has quit [Read error: Connection reset by peer]
snapcase has joined #ruby
volty has quit [Quit: Konversation terminated!]
x77686d has quit [Quit: x77686d]
Deck` has joined #ruby
law has joined #ruby
<law> hey all, any thoughts on how I can 'flatten' a hash for output in a Nagios check?
<jnj> psayian: I've recently bought the well grounded rubyist and eloquent ruby
<law> http://paste.lopsa.org/201 has the code, with the current and desired output at the bottom
<jnj> psayian: the well grounded rubyist will teach you how to write in ruby, eloquent ruby will teach you the right ways to write ruby
<jnj> I keep on getting the error: `testfile': undefined local variable or method `run' for main:Object (NameError)
chouhoulis has quit [Remote host closed the connection]
Deck` has quit [Ping timeout: 240 seconds]
Coldblackice has joined #ruby
moeabdol has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
moeabdol2 has joined #ruby
idefine has quit [Remote host closed the connection]
<jnj> oh wait nevermidn
ur5us has joined #ruby
ur5us has joined #ruby
skade has quit [Ping timeout: 240 seconds]
<psayian> jnj: thanks
idefine has joined #ruby
at46 has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
RUDIS has joined #ruby
<hays> How do I do this with a Fiber? "That’s pretty big because now you can wrap an incoming web request in its own fiber and tell it to send a response back when it’s done doing its things. In the meantime, you can move on the to next incoming request."
<hays> having trouble seeing how that is structured
felixal has quit [Ping timeout: 245 seconds]
at46 has quit [Remote host closed the connection]
idefine has quit [Remote host closed the connection]
<RUDIS> la personas de cuba por aqui
paradisaeidae has joined #ruby
idefine has joined #ruby
moeabdol3 has joined #ruby
davedev2_ has joined #ruby
at46_ has joined #ruby
moeabdol2 has quit [Ping timeout: 272 seconds]
pawnbox has joined #ruby
TomyLobo has quit [Ping timeout: 248 seconds]
<jnj> How do I redirect stdout back to stdout instead of a file
AccordLTN has joined #ruby
davedev24 has quit [Ping timeout: 260 seconds]
AccordLTN has quit [Client Quit]
<domgetter> jnj the original stdout should still be in STDOUT
at46_ has quit [Remote host closed the connection]
<jnj> Ah, ok, so I could do $stdout = STDOUT?
<Ox0dea> Unless you mutated it with something like #reopen.
<domgetter> yes
<domgetter> And you can always just do STDOUT << "some string"
<domgetter> unless you want puts (and family) to go to it
solocshaw has joined #ruby
<jnj> I did mutate it with something like #reopen, to write from stdout to files
<eam> you have to reopen it again
<jnj> eam: Ah, ok. What would that look like? Would I have to reopen it to stdout, so like $stdout.reopen(STDOUT) or just $stdout.reopen
croberts has joined #ruby
blackmesa has joined #ruby
pawnbox has quit [Ping timeout: 264 seconds]
Brklyn has quit [Ping timeout: 240 seconds]
spider-mario has quit [Remote host closed the connection]
Zai00 has quit [Quit: Zai00]
dlitvak_ has quit [Ping timeout: 260 seconds]
RUDIS has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<eam> jnj: the former
<jnj> eam: ah ok
<eam> jnj: if you get confused, use `lsof` to visualize your descriptors
icbm has joined #ruby
<eam> and #fileno on any IO object
<jnj> eam: so $stdout.reopen(STDOUT)
RegulationD has quit [Remote host closed the connection]
RUDIS has joined #ruby
idefine has quit [Remote host closed the connection]
skade has joined #ruby
Brklyn has joined #ruby
skade has quit [Client Quit]
dlitvak has joined #ruby
<Ox0dea> ?try
<ruby[bot]> Why don't you try it and see for yourself?
<eam> jnj: well, if you've reopened them, actually, you'll be in trouble because you've changed both STDOUT and $stdout
<eam> reopen modifies the meaning of the descriptor underpinning an IO object
<jnj> eam: Ah, ok. I'm just trying to write each result of a test to a text file, then compare that resulting text file to an answers file
<eam> what you can do is old_stdout = STDOUT.dup # then mess with it, and reopen back to old_stdout at the end
<eam> #dup will copy the descriptor to a new #fileno
<jnj> ah nice
agentmeerkat has joined #ruby
<eam> you can also $stdout.reopen $stderr I believe
<eam> assuming this is all a cli program running in your terminal
<eam> that won't work in other contexts however
SPARK33092 has joined #ruby
<jnj> eam: Yeah, I gotchu, but its working in this context, so thanks so much!
dlitvak has quit [Ping timeout: 260 seconds]
<Ox0dea> jnj: Are you sure you need to be redirecting stdout?
<Ox0dea> You know you can just open files and write to them?
davedev2_ has quit [Remote host closed the connection]
<eam> this practical advice doesn't sound nearly as fun
<jnj> Ox0dea: Yeah, I'm testing java files that write to standard output. My professor wants us to test everyone elses java code, so I'm just creating a nice ruby script that will do all the testing for me
dlitvak has joined #ruby
<hays> is there a simple way to turn what looks like synchronous/blocking I/O into asynchronous?
RUDIS has left #ruby [#ruby]
ESpiney has joined #ruby
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<eam> hays: well the interactions are pretty different
babblebre has quit [Quit: Connection closed for inactivity]
shazaum_ has joined #ruby
<Ox0dea> jnj: Ah, fair enough, then.
amb77 has joined #ruby
jottr has joined #ruby
amb77 has quit [Client Quit]
<havenwood> hays: say more about what you're doing? or just a general question?
cdg has quit [Remote host closed the connection]
<eam> I guess one way would be to install an old ruby which used green threads
<eam> 'cuz then it's all nonblocking
<eam> except when it isn't
<jnj> What can I do if running a shell command in ruby takes too long? With my testing script I want it to stop running a system command if someones program is taking too long
marr has quit [Ping timeout: 252 seconds]
<hays> havenwood: im trying to tie to rmodbus, but i need to manage multiple connections and be able to recover them if they drop, but also keep requests to the others going when there is a problem on one connection
<Ox0dea> jnj: Seems a fine use case for Timeout.
<eam> jnj: system() is essentially just a fork { exec CMD }; wait
<havenwood> hays: would the connections be mostly idle?
<jnj> Ah, ok, thanks guys! :)
<eam> you can implement that yourself with waitpid WNOHANG instead of wait if you like
<Ox0dea> jnj: Something for future reference: https://eval.in/513390
amb77 has joined #ruby
<eam> Timeout is evil and should be avoided on pain of death
amb77 has quit [Client Quit]
devbug has quit [Ping timeout: 260 seconds]
elifoster has quit [Ping timeout: 264 seconds]
<hays> havenwood: no, mostly active actually.. there's a constant write operation that needs to happen every 1 second, and interleaved with that are other operations
<jnj> Ox0dea: Thanks man, you're the best
<Ox0dea> jnj: <3
amb77 has joined #ruby
amb77 has quit [Client Quit]
<havenwood> hays: I was going to suggest taking a look at Celluloid::IO: https://github.com/celluloid/celluloid-io
<Ox0dea> eam: Even for something as "straightforward" as timing out #system?
dlitvak_ has joined #ruby
amb77 has joined #ruby
amb77 has quit [Client Quit]
<havenwood> hays: Maybe just Celluloid.
dlitvak has quit [Ping timeout: 256 seconds]
<eam> Ox0dea: depends what else the program is doing, if the code is gonna be present in a library, etc
<eam> also if you just Timeout you won't kill the subprocess
<eam> which probably means death if you do it a lot
segmond has quit [Ping timeout: 260 seconds]
<eam> I think you're all but guaranteed to produce zombies, actually
<eam> checking
<havenwood> hays: And speaking of Celluloid and a timer every second, they have a very nice timers library: https://github.com/celluloid/timers
<hays> ill check out the wiki
visudo has quit [Quit: visudo]
despai has joined #ruby
<eam> Ox0dea: yes, guaranteed to leak zombies
low-profile has joined #ruby
dlitvak_ has quit [Ping timeout: 250 seconds]
Brklyn has quit [Ping timeout: 276 seconds]
despai has quit [Max SendQ exceeded]
Conflict has quit [Read error: Connection reset by peer]
domgetter has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
adgtl has joined #ruby
dlitvak has joined #ruby
despai has joined #ruby
adgtl has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 276 seconds]
<Ox0dea> I realize it's a bodge, but that seems to work fine?
zeroDivisible has quit [Quit: WeeChat 1.3]
<hays> havenwood: you know how this works? http://www.rubydoc.info/gems/celluloid/Celluloid/Actor:every
peterevjan has joined #ruby
SPARK33092 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
dlitvak has quit [Ping timeout: 240 seconds]
duckpuppy has joined #ruby
jnj has quit [Quit: Leaving]
moeabdol4 has joined #ruby
dlitvak has joined #ruby
moeabdol3 has quit [Read error: Connection reset by peer]
<havenwood> hays: Yeah, Timers is already required by Celluloid but it's nice standalone as well.
Azure|dc has quit [Ping timeout: 272 seconds]
<Ox0dea> eam: `pkill -n`, even.
segmond has joined #ruby
<eam> Ox0dea: aaaargh
<eam> you just potentially killed thousands of different processes
Azure has joined #ruby
<Ox0dea> Er, thankfully not?
hxegon has quit [Quit: BRB]
<hays> just not sure how to use the every
<eam> I saw a hilarious and rather serious outage once, where someone had written code very similar to that to kill their own app
<Ox0dea> But we're always the newest process! :P
adgtl has joined #ruby
<Ox0dea> I meant `pkill -n sleep`, to clarify.
<hays> i was thinking I could use that to do an async write every second, in order to handle that watchdog thinger
<eam> they did not realize that their service ran under djb's daemontools, which used readproctitle, which often had exception strings in its argv / process list
<eam> which would match their pkill
peterevjan has quit [Read error: Connection reset by peer]
skweek has joined #ruby
<eam> which ended up sending a SIGPIPE to every "reliable" service daemon running on the machines
peterevjan has joined #ruby
<Ox0dea> Ouch.
<eam> including sshd, sooo
comma8 has quit [Remote host closed the connection]
duckpuppy has quit [Ping timeout: 264 seconds]
<eam> anyway I do not like pkill
<Ox0dea> Anyway, no leaked zombies.
<eam> may as well just pkill -u #{Process.uid}
duderonomy has joined #ruby
<eam> no zombies there either!
<Ox0dea> Lemme try it!
Ox0dea has quit [Quit: WeeChat 1.5-dev]
adgtl has quit [Remote host closed the connection]
mpistone has quit [Remote host closed the connection]
Ox0dea has joined #ruby
peterevjan has quit [Client Quit]
<Ox0dea> It worked; no zombies.
<law> hey all, any thoughts on how I can 'flatten' a hash for output in a Nagios check?
<law> http://paste.lopsa.org/201 has the code, with the current and desired output at the bottom
arthropododo has quit [Remote host closed the connection]
Conflict has joined #ruby
graphettion has joined #ruby
Deck` has joined #ruby
Felix444 has quit [Ping timeout: 250 seconds]
<eam> will trapping SIGCHLD work? That's probably the ideal way
p1k has joined #ruby
lessless has joined #ruby
TomPeed has quit [Ping timeout: 245 seconds]
<eam> Signal.trap("CHLD") { loop {Process.waitpid -1, Process::WNOHANG} rescue "got em" }
p1k has quit [Client Quit]
Deck` has quit [Ping timeout: 245 seconds]
william3 has joined #ruby
<havenwood> law: Ignoring the ", "s": "#{k}#{v.keys.first}=#{v.values.first}"
darix has joined #ruby
<havenwood> law: changing as little as possible and without testing it i'd guess; print checkresult.map { |k, v| "#{k}#{v.keys.first}=#{v.values.first}" }.join(', ')
JDiPierro has joined #ruby
webopsx has joined #ruby
zambini has quit [Quit: Leaving.]
CoderPuppy has joined #ruby
webopsx has quit [Max SendQ exceeded]
william3 has quit [Ping timeout: 260 seconds]
microt has joined #ruby
<law> well slap mah fro and call me Susan, that's pretty darned close
<law> I keep forgetting how insanely flexible .map is
sivoais has joined #ruby
daivyk has joined #ruby
dcunit3d has joined #ruby
Brklyn has joined #ruby
JDiPierro has quit [Ping timeout: 240 seconds]
cpup has quit [Ping timeout: 250 seconds]
bb010g has joined #ruby
jackjackdripper has joined #ruby
terminalrecluse has joined #ruby
Brklyn has quit [Ping timeout: 240 seconds]
jgt4 has quit [Ping timeout: 248 seconds]
FooMunki has quit [Quit: FooMunki]
elifoster has joined #ruby
agent_white has quit [Quit: leaving]
sivoais has quit [Ping timeout: 256 seconds]
Thib has quit [Remote host closed the connection]
jackjackdripper1 has quit [Ping timeout: 252 seconds]
Felix444 has joined #ruby
shellie_ has joined #ruby
Thib has joined #ruby
sivoais has joined #ruby
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Thib has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
Thib has joined #ruby
Thib has quit [Remote host closed the connection]
Thib has joined #ruby
adgtl has joined #ruby
<shellie_> any idea what's happening here? http://paste.ubuntu.com/14884584/
<havenwood> shellie_: don't use sudo to install rvm gems
adgtl has quit [Remote host closed the connection]
Nanuq has quit [Ping timeout: 264 seconds]
<havenwood> shellie_: to get at that gem you installed: sudo rubocop
RegulationD has joined #ruby
<Ox0dea> Don't use software that hates you.
<shellie_> :-)
<shellie_> thanks
adgtl has joined #ruby
wethu has quit [Quit: This computer has gone to sleep]
<eam> anthropomorphized software in general freaks me out, actually -- regardless of how it feels
karapetyan has quit [Ping timeout: 240 seconds]
<shellie_> havenwood: so what's the recommended installation? when I ran 'gem install rubocop' it failed with perms. Perhaps I need to run it in the rvm context somehow?
<havenwood> eam: you shouldn't anthropomorphize software, it hates it when you do that
<havenwood> shellie_: RVM recommends installing itself without sudo as a non-root user. You can restore permissions with: rvm fix-permissions
<shellie_> ok, so I fixed permissions, re-tried the gem install and got the same error back (perms). I presume the rvm is not being instantiated, how can I run 'gem' in the context of rvm, so that the permissions-enabled paths apply?
sivoais has quit [Ping timeout: 240 seconds]
RegulationD has quit [Ping timeout: 252 seconds]
* shellie_ apologizes for noobness, I'm only working with ruby for a few days, but came from python and understand rvm is virtualenv equivalent or similar anyway
<havenwood> shellie_: gem install rubocop
<havenwood> shellie_: sudo drops env
shazaum_ has quit [Quit: Leaving]
jackjackdripper1 has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
sivoais has joined #ruby
<shellie_> the 'gem install rubocop' yields this message: ERROR: While executing gem ... (Gem::FilePermissionError) \n You don't have write permissions for the /usr/local/rvm/gems/ruby-2.0.0-p643 directory.
davedev24 has joined #ruby
<havenwood> shellie_: ah, so you have a system install of rvm
<shellie_> I ran this, but maybe I did it as root? \curl -sSL https://get.rvm.io | bash -s stable
<wolffles> im moding text files and i need to add multiline code using gsub but “\n” isnt working for me halp !
<havenwood> shellie_: RVM doesn't like being installed as root.
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<havenwood> shellie_: I'd suggest `rvm implode` then restart your shell to clear env vars.
<shellie_> wolffles: you may be using single quotes?
jackjackdripper1 has quit [Client Quit]
<wolffles> only for ‘w’ and ‘r’
<wolffles> https://eval.in/513398 heres what im working with
<shellie_> headius: as root or regular user?
sdothum has joined #ruby
<shellie_> that was meant for havenwood
pawnbox has joined #ruby
agentmeerkat has quit [Ping timeout: 240 seconds]
<Ox0dea> shellie_: Always regular user.
<havenwood> ^
davedev24 has quit [Ping timeout: 250 seconds]
Nanuq has joined #ruby
blackmesa has quit [Ping timeout: 245 seconds]
mickey_mouse_2 has quit [Ping timeout: 272 seconds]
<Ox0dea> wolffles: I want to help.
<wolffles> please my head hurts from all the error messages
<Ox0dea> I need your help.
<wolffles> yes
toretore has joined #ruby
pawnbox has quit [Ping timeout: 272 seconds]
sivoais has quit [Ping timeout: 250 seconds]
<shellie_> ok, imploded
<shellie_> now I need to reinstall it
<shellie_> here I go
wethu has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
<Ox0dea> wolffles: What is "lfjiej"?
<wolffles> unimportant text for a macroing software
sivoais has joined #ruby
jottr has joined #ruby
Rodya_ has joined #ruby
<Ox0dea> wolffles: /"}"/ is the problem.
<wolffles> *listening carefully*
<Ox0dea> Your input file doesn't contain "}", so that regular expression isn't matching anything.
<wolffles> would it just be /}/
<shellie_> fixed, yay!
<Ox0dea> Or even "}".
bruce_lee has quit [Read error: Connection reset by peer]
<shellie_> thanks :-)
<shellie_> now onto fixing the 58 offenses in my code :P
domgetter has joined #ruby
<shellie_> rubocop tells me not to introduce global variables. Why?
<havenwood> shellie_: it does? :O
<havenwood> shellie_: what does it say?
<shellie_> q:105:9: C: Do not introduce global variables.
Felix444 has quit [Ping timeout: 250 seconds]
<havenwood> shellie_: Oh, *not to*. Gotcha.
jottr has quit [Ping timeout: 264 seconds]
<Ox0dea> shellie_: Imagine if anybody in the world could move your mouse whenever they wished.
<havenwood> shellie_: Global stomps on whatever else anything else wanted to set.
<Ox0dea> That's global variables.
Rodya_ has quit [Ping timeout: 250 seconds]
<wolffles> so my first attempt the file was corrupted, i couldnt open it. now it looks like this in notepad
Thib has quit []
arlek has quit [Ping timeout: 256 seconds]
<shellie_> I'm not sure I can completely understand the motives, which is why I'm a bit puzzled :)
<eam> Ox0dea: we should keep all our classes in globals
mpistone has joined #ruby
<Ox0dea> eam: Mission complete. :)
sivoais has quit [Ping timeout: 260 seconds]
oetjenj has quit [Ping timeout: 256 seconds]
frem has quit [Quit: Connection closed for inactivity]
<Ox0dea> If Ruby were a brother Karamazov, it'd be Ivan.
<Ox0dea> "Everything is permitted."
oetjenj has joined #ruby
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shellie_> could I ask a bit more clarity on this subject? What specific cases can having global variables hurt me?
lilvim_ is now known as lilvim
<Ox0dea> shellie_: Global variables provide very poor (read: no) encapsulation. If you write a library that uses global variables, anybody who wishes to use it must ensure that they don't use a global variable with the same name.
<toretore> shellie_: two things use the same variable; one changes it, then the other is confused
<havenwood> shellie_: They are aesthetically despicable. You can't universalize the maxim of using globals. If we all did it, the house of cards would tumble.
baweaver has quit [Remote host closed the connection]
<shellie_> thanks :)
<shellie_> I understand the issues with globals
idefine has joined #ruby
finisherr has joined #ruby
<Ox0dea> Of course, Ruby's built-in globals are special and can have scope, but I'll say nothing more of that.
<shellie_> so in a way, this sort of requires me to write my program with OO
<Ox0dea> shellie_: Or FP.
<havenwood> $RANDOM
<Ox0dea> You stop that. <3
<shellie_> how can you store state that needs to be accessed globally using FP?
A124 has quit [Read error: Connection reset by peer]
<toretore> it doesn't have anything to do with fp or oo
ledestin has joined #ruby
<Ox0dea> shellie_: The solution, either way, is to not have state that needs to be accessed globally. :P
victortyau has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<toretore> global state is evil only when it is mutable, and not protected by locks
adgtl has quit [Remote host closed the connection]
<shellie_> it should not be a problem in a single-threaded app, presumably?
<toretore> other than that it's just a really bad idea
<havenwood> shellie_: use your own mouse instead of everybody's mice
<eam> what's a programmer's favorite clothing company?
<shellie_> heh
<lilvim> boom goes the nova
<shellie_> I find that analogy quite weak to describe global variables :)
Deck` has joined #ruby
<havenwood> shellie_: try clicking on something...
duckpuppy has joined #ruby
A124 has joined #ruby
<havenwood> shellie_: moving target
<havenwood> shellie_: or is it? dunno!
<shellie_> :-)
<havenwood> shellie_: We use namespaces for a reason. It's for humans.
<shellie_> funny enough, coming from python, I'm finding ruby's name spaces truly weird
<Ox0dea> It doesn't actually have them.
<Ox0dea> Modules are pseudo-namespaces, but they work well enough for that purpose.
<shellie_> require 'yaml', YAML.foo < it makes no sense
<Ox0dea> ?
<havenwood> pseudo-namespaces?
<Ox0dea> havenwood: Insofar as we can't say `require SomeModule from 'foo'` or the like.
<havenwood> rgr
betabet has joined #ruby
Deck` has quit [Ping timeout: 245 seconds]
<shellie_> that's not what I meant :-)
Felix444 has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
duckpuppy has quit [Ping timeout: 245 seconds]
<shellie_> in python, you can 'import module' and you then reach the objects via module.<object>, not MODULE.<object> (which may not be exactly what I tried to portray above with yaml, but should help explain what I mean?)
_ht has quit [Ping timeout: 240 seconds]
<Ox0dea> shellie_: You say `import os` and then `os.system(...)` in Python; what exactly is blowing your mind about `require 'yaml'` and then `YAML.load`?
<Ox0dea> That module names are constants?
<lilvim> Ox0dea: I imagine s/he's expecting yaml.load
<shellie_> ^
<Ox0dea> shellie_: So you'd want libraries to be able to decide which names you can and can't use for local variables?
_ht has joined #ruby
juniorism has joined #ruby
<shellie_> I'm not sure that's a question I want to answer, the problem here is not what problem that solution is solving (if it is solving a problem at all), but rather a not very logical design choice
sapslaj has quit [Quit: No Ping reply in 180 seconds.]
<Ox0dea> It's not "logical" for an import to override your locals.
<shellie_> I also didn't look into constants, but from your comment above, assume required modules become constants and constants are upper case in ruby?
tjohnson has quit [Quit: Connection closed for inactivity]
northfurr has joined #ruby
celly has quit [Remote host closed the connection]
<Ox0dea> There are such things as anonymous modules, but the ones that do have names must have them capitalized, and that necessitates their being constants, yes.
sapslaj has joined #ruby
ftj has joined #ruby
bronson_ has quit [Remote host closed the connection]
<shellie_> ok, interesting
<shellie_> what did you mean by 'override your locals' ?
<wolffles> my output file keeps coming out corrupted ;_;
<shellie_> wolffles: wheres your code?
<Ox0dea> shellie_: https://eval.in/513405
n00bdev has joined #ruby
Felix444 has quit [Ping timeout: 260 seconds]
<toretore> wolffles: #python
<shellie_> toretore: timing
<shellie_> :)
<shellie_> toretore: the first link is from Ox0dea
<shellie_> Ox0dea: I get what you mean, but it's not common practice to import modules outside the global or after variables have already been declared
<Ox0dea> It's still an arbitrary limitation.
<toretore> shellie_: right, oops
Jonah11_ has joined #ruby
<Ox0dea> My oops too, but it's always quiet enough to defend Ruby against the snakes.
<toretore> wolffles: where are you getting writes from?
<wolffles> stack overflow
<toretore> wolffles: and what makes it corrupted? need more information
<toretore> there's no such method on File or its ancestors
<wolffles> i dont know i cant open it, it runs fine returns no errors
<Ox0dea> Wat.
<toretore> oh
<wolffles> but it keeps saying file format is corrupted
<toretore> i think the problem is that it's broken
<shellie_> wolffles: what are you trying to achieve?
<Ox0dea> wolffles: You're treating an RTF document as text.
<Ox0dea> You're gonna have a bad time.
<wolffles> ill try source as a text
dlitvak_ has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
travisthenavi has joined #ruby
juddey has quit [Remote host closed the connection]
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<travisthenavi> Should I use Rails Installer or individually download Ruby, Rails, and everything else?
<toretore> are you on windows?
<wolffles> that was the problem Ox0dea
<travisthenavi> toretore, Yes.
<toretore> then probably the first option
pawnbox has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
<toretore> your experience is going to be shitty nonetheless, so you might just want to throw your computer out the window right away and save some time
<travisthenavi> toretore, Why do you say that?
<toretore> windows
jbrhbr has quit [Ping timeout: 264 seconds]
<travisthenavi> And what do you prefer, Linux?
B1n4r10 has joined #ruby
ramfjord has quit [Ping timeout: 252 seconds]
<shellie_> maybe clarify the problem isn't being on windows, but that these tools were not made to run natively on windows, hence it may present another set of challenges :->
despai has quit [Ping timeout: 260 seconds]
<travisthenavi> shellie_, So if I want to use Ruby and the Rails framework to develop, would you recommend an OS change, or will it not be a big deal?
pawnbox has quit [Ping timeout: 252 seconds]
<travisthenavi> I'm new to Ruby and I just want to learn enough to be hireable as a junior developer.
<travisthenavi> So I decided to give Rails a shot.
<toretore> travisthenavi: i'm not 100% serious; give it a try and see if it works
<shellie_> travisthenavi: I'm afraid I can only speculate, as I never installed rails on windows, but I'd go ahead and try 'rails installer' and if that falls through, you can always run a virtual machine with Linux and work there
<toretore> travisthenavi: it may work fine for you for some time, but i don't know of any serious developers who don't develop specifically for windows that use it
skweek has joined #ruby
B1n4r10 has quit [Ping timeout: 248 seconds]
<travisthenavi> Do you think it is important to learn Ruby before I dive into Rails?
<travisthenavi> Also, do you know of any good learning resources for each?
<shellie_> depends on what your goals are - what do you want to do/learn?
Jonah11_ has quit [Remote host closed the connection]
<shellie_> as for learning resources, I hear the book 'the well-grounded rubyist' is good
<travisthenavi> My goal is to gain enough skill to be hireable as a junior developer.
adgtl has joined #ruby
visudo has joined #ruby
<toretore> so your goal isn't to learn ruby and/or rails?
Jonah11_ has joined #ruby
Rodya_ has joined #ruby
pawnbox has joined #ruby
<travisthenavi> Well I'm leaning towards Ruby and/or Rails because that is what code bootcamps teach. I figure it is a good place to start.
betabet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freeom has joined #ruby
konsolebox has joined #ruby
<shellie_> I'm not sure what a code bootcamp is and how participating in one relates to your chances of getting a job
hxegon has joined #ruby
<travisthenavi> Alright, let me ask a different question. If I want to get a junior web dev (or even software dev) job within a very limited amount of time, what technologies should I learn?
<toretore> why do you want to get a junior web dev job?
<travisthenavi> To make money of course!
<travisthenavi> And because I enjoy writing code.
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shellie_> rails is likely to give you enough exposure to land on a junior role (that is, depends where, because some circles tend to keep these jobs for recent grads, who have already about 4 years of experience before they apply)
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sankaber has joined #ruby
ss_much has joined #ruby
<travisthenavi> shellie_, Thank you.
<travisthenavi> Well, I have a copy of both Learn to Program and the Pickaxe Book. From what I picked up, I should start there and then move on to learning Rails.
<shellie_> but I would recommend this path instead: learn ruby -> take a CS course (e.g learn fundamental algorithms, how a computer work and concepts, networking), then move to rails or whatever fancy schmancy web framework out there
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<travisthenavi> Are there any text editors/IDEs that you would recommend?
Rodya_ has quit [Remote host closed the connection]
<shellie_> I use vim
Guest35482 has quit [Ping timeout: 250 seconds]
devbug has joined #ruby
dlitvak_ has quit [Remote host closed the connection]
freeom has quit [Ping timeout: 256 seconds]
<shellie_> if you are using windows, notepad++ might be a good start
User458764 has joined #ruby
hfp_work has quit [Ping timeout: 240 seconds]
hfp_work has joined #ruby
<domgetter> travisthenavi: SublimeText is pretty nice
RegulationD has joined #ruby
adgtl has quit [Remote host closed the connection]
bronson has joined #ruby
RegulationD has quit [Ping timeout: 256 seconds]
voidDotClass has joined #ruby
<voidDotClass> What's wrong with this syntax? class Admin::AccountsController < Admin::AdminController
northfurr has quit [Quit: northfurr]
<voidDotClass> it says 'expected ; or end of line'
Deck` has joined #ruby
braincrash has quit [Quit: bye bye]
<toretore> voidDotClass: gist entire file
<voidDotClass> toretore, its a barebones controller
chouhoulis has joined #ruby
<voidDotClass> if i do 'include admin' and change that line to class Admin::AccountsController < AdminController, it works
<toretore> voidDotClass: git it anyway
<toretore> +s
<voidDotClass> tercenya,
<voidDotClass> oops
<voidDotClass> toretore,
<toretore> gist the one that doesn't work
wolffles has quit [Quit: wolffles]
<voidDotClass> toretore the only difference is that top class declaration
Deck` has quit [Ping timeout: 260 seconds]
<toretore> gist it anyway
<Ox0dea> voidDotClass: https://eval.in/513420
Rodya_ has joined #ruby
<Ox0dea> As you can see, it's not a syntax error, even as far back as 1.8.7.
<Ox0dea> Your problem is in another castle.
<voidDotClass> Rubymine highlights it as an error
banghouse2 has joined #ruby
<voidDotClass> may be its just rubymine
voidDotClass has quit [Quit: Leaving]
banghouse2 has quit [Remote host closed the connection]
Rodya_ has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
banghouse2 has joined #ruby
northfurr has joined #ruby
ftj has quit [Quit: Textual IRC Client: www.textualapp.com]
Sucks has quit [Read error: Connection reset by peer]
graphettion has quit [Remote host closed the connection]
braincrash has joined #ruby
davedev24 has joined #ruby
wolffles has joined #ruby
pawnbox has joined #ruby
DmitryBochkarev has joined #ruby
shadoi has quit [Quit: Leaving.]
terminalrecluse has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
karapetyan has joined #ruby
davedev24 has quit [Ping timeout: 260 seconds]
pawnbox has quit [Ping timeout: 272 seconds]
betabet has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
hxegon is now known as hxegon_AFK
kp666 has joined #ruby
hxegon_AFK is now known as hxegon
hxegon is now known as hxegon_AFK
hxegon_AFK is now known as hxegon
hxegon has quit [Quit: BRB]
codezomb has joined #ruby
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
psayian has quit [Quit: Page closed]
bronson has quit [Remote host closed the connection]
banghouse2 has left #ruby ["What if the hokey pokey really is what it's all about?"]
gix has quit [Ping timeout: 240 seconds]
rakm has joined #ruby
procyon_ember has joined #ruby
kirillzh has joined #ruby
Rodya_ has joined #ruby
gix has joined #ruby
jbrhbr has joined #ruby
jottr has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
pawnbox has joined #ruby
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dlitvak has joined #ruby
DmitryBochkarev has joined #ruby
jcdesimp has joined #ruby
duncannz has joined #ruby
djbkd has quit [Quit: My people need me...]
baweaver has joined #ruby
jottr has quit [Ping timeout: 260 seconds]
dlitvak has quit [Ping timeout: 250 seconds]
mezcan has joined #ruby
Guest85414______ is now known as deepak
hacworld has quit [Ping timeout: 240 seconds]
wolffles has quit [Quit: wolffles]
kiez0rd has quit [Ping timeout: 240 seconds]
renderf__ has joined #ruby
domgetter has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
domgetter has joined #ruby
dlitvak has joined #ruby
duckpuppy has joined #ruby
TomPeed has joined #ruby
banghous_ has joined #ruby
konsolebox has quit [Quit: Leaving]
dlitvak has quit [Ping timeout: 240 seconds]
duckpuppy has quit [Ping timeout: 245 seconds]
ponga has joined #ruby
<ponga> damn i need some rbenv tutorials
domgetter has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
betabet has quit [Ping timeout: 272 seconds]
visudo has quit [Quit: visudo]
ensyde has joined #ruby
Oog has joined #ruby
<ponga> how the hell do i edit bash_profile on OSX for rbenv, :(
visudo has joined #ruby
visudo has quit [Client Quit]
northfurr has quit [Quit: northfurr]
pdoherty has quit [Ping timeout: 260 seconds]
kiez0rd has joined #ruby
zast has quit [Remote host closed the connection]
jcdesimp has quit [Quit: Leaving...]
ur5us has quit [Remote host closed the connection]
banghous_ has quit [Remote host closed the connection]
karapetyan has joined #ruby
<ponga> wondering why is it taking unusually long to install ruby 2.3.0 on rbenv
Jonah11_ has quit [Remote host closed the connection]
ur5us has joined #ruby
nodejunkie has joined #ruby
Jonah11_ has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
bMalum has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
supremekay has quit [Ping timeout: 248 seconds]
finisherr has quit [Quit: finisherr]
william3 has joined #ruby
Jonah11_ has quit [Ping timeout: 240 seconds]
fedexo has joined #ruby
<ropeney> ponga: did u work out how to edit bash_profile?
<ponga> Ropeney: I had to log-out and log-in again
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ponga> I hate when docs just skip and expect you know it all
<ponga> :(
<ropeney> or `source ~/.bash_profile`
<ponga> Ropeney: I log out-ted and in again, and its working now
<ropeney> ponga: yeah, but to avoid logging out and in again you just do the source command
william3 has quit [Ping timeout: 250 seconds]
bronson has joined #ruby
<ponga> now I have to learn how to handle gems with bundler
yfeldblum has joined #ruby
<ropeney> bundle install
aryaching has joined #ruby
adgtl has joined #ruby
<ponga> I'm not yet sure how Rbenv handles gem
ur5us has quit [Remote host closed the connection]
Oog has quit []
<ropeney> ponga: rbenv installs the gems in the .rbenv directory for the version you have setup for that project, or defaults to global
bronson has quit [Ping timeout: 260 seconds]
<ponga> Ropeney: which is the exact sentence Im having trouble to understand, so gems all stay in single folder, and shipped out referring to gemfile?
<ropeney> yes to everything, except i dont understand "and shipped out referring to gemfile"
<ponga> Ropeney: for example, If I wanted my 2.3.0 to have cinch gem but not my 1.9.3, what would I do
<ponga> install cinch globally then specify in gemfile?
<ropeney> rbenv local 1.9.3
<ponga> that only sets version in a specific directory
<ropeney> yes, then the gem is installed for 1.9.3
<ropeney> not 2.3.0
skweek has quit [Remote host closed the connection]
Deck` has joined #ruby
<ponga> oh I see
krzkrz has joined #ruby
stevemackinnon has quit [Remote host closed the connection]
<ponga> Ropeney: but then I'd want different gems for different projects in 1.9.3, which means that's bundler's job?
<ponga> have i got it right
stevemackinnon has joined #ruby
djbkd has joined #ruby
<ropeney> yes
stevemac_ has joined #ruby
<ponga> thanks
daivyk has quit [Quit: ZZZzzz…]
<ropeney> nps :D
stevemackinnon has quit [Read error: Connection reset by peer]
ljames has quit []
<travisthenavi> Is there a difference between puts and print?
<travisthenavi> Rather, what is the difference.
Deck` has quit [Ping timeout: 240 seconds]
supremekay has joined #ruby
<eam> travisthenavi: puts appends a newline
ccaffeini has quit [Remote host closed the connection]
<eam> print *may* append a newline, if you use -l
<eam> or play with some magic globals
c355e3b has quit [Quit: Connection closed for inactivity]
jbrhbr has quit [Quit: Leaving.]
karapetyan has joined #ruby
Al2O3 has joined #ruby
<Al2O3> pastie: hi
ur5us has joined #ruby
<Al2O3> seems pastie bot is down
skweek has joined #ruby
<Al2O3> is there an alternative to pastie.org now that is reliable and best?
dionysus69 has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
lemur has joined #ruby
kinduff has joined #ruby
ur5us has quit [Ping timeout: 245 seconds]
kinduff has quit [Client Quit]
dev-MR has joined #ruby
<dev-MR> hi
<dev-MR> I new to rails and deployment
ensyde has quit [Read error: Connection reset by peer]
<baweaver> !rails
<baweaver> ?rails
<ruby[bot]> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<baweaver> that was the one
ensyde has joined #ruby
tjbiddle has joined #ruby
<dev-MR> Now i get an error when deploying one of my project in remorte server
saneax_AFK is now known as saneax
RUDIS has joined #ruby
lemur has quit [Ping timeout: 252 seconds]
Gnut has joined #ruby
<baweaver> dev-MR: see above
<RUDIS> umm /join #zonalatina
<baweaver> !troll RUDIS
RUDIS was kicked from #ruby by ruby[bot] [trolling is a bannable offense, see http://ruby-community.com/pages/user_rules]
LoneHerm_ has joined #ruby
<dev-MR> SSHKit::Runner::ExecuteError: Exception while executing as planb@50.116.43.59: bundle exit status: 137 bundle stdout: bash: line 1: 23884 Killed ~/.rvm/bin/rvm default do bundle install --path /home/planb/staging_app/shared/bundle --without development test --deployment --quiet bundle stderr: Nothing written
<dev-MR> anybody please help me
<baweaver> dev-MR: ?rails
<dev-MR> ya
<baweaver> ?rails
<ruby[bot]> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<dev-MR> when cap deploye
atmosx has joined #ruby
travisthenavi has quit [Ping timeout: 252 seconds]
stevemac_ has quit [Remote host closed the connection]
dev-MR has left #ruby [#ruby]
ss_much has quit [Quit: Connection closed for inactivity]
ensyde has quit [Read error: Connection reset by peer]
ensyde has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
solocshaw has quit [Ping timeout: 245 seconds]
joneshf-laptop has quit [Remote host closed the connection]
govg has quit [Ping timeout: 245 seconds]
stardiviner has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
anisha has joined #ruby
sneakerhax has joined #ruby
tvw has joined #ruby
ta_ has quit [Remote host closed the connection]
Rodya_ has quit [Remote host closed the connection]
paradisaeidae has quit [Quit: ChatZilla 0.9.92 [Firefox 44.0/20160123151951]]
RTG` has quit [Ping timeout: 240 seconds]
idefine has quit [Remote host closed the connection]
Rodya_ has joined #ruby
govg has joined #ruby
ensyde has quit [Read error: Connection reset by peer]
ensyde has joined #ruby
idefine has joined #ruby
skweek has quit [Remote host closed the connection]
skweek has joined #ruby
Brklyn has joined #ruby
workmad3_ has quit [Ping timeout: 240 seconds]
RTG` has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
triangles has quit [Ping timeout: 276 seconds]
Yeomra has quit [Ping timeout: 250 seconds]
Abrin2 has quit [Ping timeout: 250 seconds]
workmad3 has joined #ruby
Brklyn has quit [Ping timeout: 245 seconds]
lkba has joined #ruby
sandstrom has joined #ruby
zenguy_pc has quit [Excess Flood]
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
stardiviner has joined #ruby
saneax is now known as saneax_AFK
workmad3 has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
Contigi has quit [Quit: Leaving]
saneax_AFK is now known as saneax
zenguy_pc has joined #ruby
aganov has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
adac has joined #ruby
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sandstrom has quit [Quit: My computer has gone to sleep.]
workmad3_ has joined #ruby
saneax is now known as saneax_AFK
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Yeomra has joined #ruby
jottr has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
Deck` has joined #ruby
centrx has quit [Quit: If you meet the Buddha on the road, kill him.]
adac has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
bluOxigen has quit [Ping timeout: 256 seconds]
stevemackinnon has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
workmad3_ has quit [Ping timeout: 264 seconds]
govg has quit [Ping timeout: 264 seconds]
mickey_mouse has joined #ruby
Deck` has quit [Ping timeout: 264 seconds]
claw has quit [Ping timeout: 264 seconds]
stevemackinnon has quit [Ping timeout: 245 seconds]
saneax_AFK is now known as saneax
roshanavand has joined #ruby
SOLDIERz has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
aryaching has quit [Read error: Connection reset by peer]
Deck` has joined #ruby
karapetyan has joined #ruby
skade has joined #ruby
solocshaw has joined #ruby
LoneHerm_ has joined #ruby
aryaching has joined #ruby
roshanavand has quit [Ping timeout: 248 seconds]
kirillzh has joined #ruby
claw has joined #ruby
kirillzh has quit [Max SendQ exceeded]
Deck` has quit [Ping timeout: 252 seconds]
solars has joined #ruby
LoneHerm_ has quit [Ping timeout: 245 seconds]
infra-red has joined #ruby
duckpuppy has joined #ruby
Mon_Ouie has quit [Ping timeout: 252 seconds]
duckpuppy has quit [Ping timeout: 245 seconds]
JohnBat26 has joined #ruby
<shevy> any of you use some specific library for colour supporting + ruby CLI commandline? I am not too overly happy the way I use colours myself right now
infra-re_ has joined #ruby
atmosx has quit [Quit: Lost in trance]
barajasfab has quit [Quit: Leaving]
django_ has joined #ruby
infra-red has quit [Ping timeout: 245 seconds]
wethu has quit [Quit: This computer has gone to sleep]
<django_> starting the ruby on rails johns hopkins course on Coursera
lurch_ has joined #ruby
srenatus has joined #ruby
scepticulous has joined #ruby
<baweaver> shevy: memorize the shell codes like a real dev
CloCkWeRX has quit [Ping timeout: 256 seconds]
vdamewood has joined #ruby
<baweaver> https://www.ruby-toolbox.com/categories/Terminal_Coloring - more seriously, normally rainbow
emilkarl has joined #ruby
djbkd has quit [Quit: My people need me...]
<django_> is ruby awesome?
mpistone has quit [Remote host closed the connection]
<baweaver> depends on what you're doing with it.
mpistone has joined #ruby
rakm has joined #ruby
konsolebox has joined #ruby
adgtl has quit [Remote host closed the connection]
mpistone has quit [Ping timeout: 276 seconds]
redasus has joined #ruby
dlitvak has joined #ruby
infernix has quit [Ping timeout: 252 seconds]
infra-red has joined #ruby
Burgestrand has joined #ruby
flughafen_ has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
infra-re_ has quit [Ping timeout: 250 seconds]
wethu has joined #ruby
Yeomra has quit [Read error: Connection reset by peer]
ta has joined #ruby
lubekpl has joined #ruby
Yeomra has joined #ruby
govg has joined #ruby
beast has joined #ruby
infernix has joined #ruby
stevemackinnon has joined #ruby
haxrbyte has joined #ruby
haxrbyte has quit [Client Quit]
ta has quit [Ping timeout: 248 seconds]
<scepticulous> I am having trouble, that Kernel.const_defined(some-const) sometimes returns false in an rails environment. Is there anything known about this or should I not use const_defined?(name) to check before I constantize a dynamically created constant name ?
oetjenj has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
last_staff has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
codecop has joined #ruby
wethu has quit [Quit: This computer has gone to sleep]
omninonsense is now known as [spoiler]
ta has joined #ruby
hanmac has quit [Ping timeout: 260 seconds]
wethu has joined #ruby
amclain has quit [Quit: Leaving]
roshanavand has joined #ruby
AlexJakeGreen has joined #ruby
mpistone has joined #ruby
Deck` has joined #ruby
moei has joined #ruby
blackms has joined #ruby
Rodya_ has quit [Remote host closed the connection]
roshanavand has quit [Ping timeout: 264 seconds]
Zggb has joined #ruby
jas02 has joined #ruby
william3 has joined #ruby
AlexJakeGreen has quit [Quit: Leaving]
karapetyan has quit [Remote host closed the connection]
hanmac has joined #ruby
redasus has quit [Ping timeout: 272 seconds]
sandstrom has joined #ruby
aryaching has quit []
william3 has quit [Ping timeout: 245 seconds]
devbug has quit [Ping timeout: 240 seconds]
ziyadb has joined #ruby
nullFxn has joined #ruby
karapetyan has joined #ruby
nullFxn is now known as edTeach
edTeach is now known as CaptainTeach
mhoungbo has joined #ruby
CaptainTeach has quit [Client Quit]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
adgtl has joined #ruby
darkf has joined #ruby
TomyWork has joined #ruby
karapetyan has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
mdw has joined #ruby
mja has joined #ruby
pawnbox has joined #ruby
al2o3-cr has joined #ruby
karapetyan has joined #ruby
mja is now known as Guest35290
adac has joined #ruby
nullFxn has joined #ruby
nullFxn is now known as captainFlint
adgtl has quit [Remote host closed the connection]
captainFlint has quit [Client Quit]
<hanmac> scepticulous: i think the problem might be some autoload stuff ... hm did you try Object.const_defined? too?
segmond has quit [Ping timeout: 252 seconds]
duncannz has quit [Remote host closed the connection]
AxonetBE has joined #ruby
karapetyan has quit [Remote host closed the connection]
einarj has joined #ruby
redasus has joined #ruby
blackmesa has joined #ruby
devbug has joined #ruby
karapetyan has joined #ruby
avril14th has joined #ruby
karapetyan has quit [Remote host closed the connection]
auzty has joined #ruby
karapetyan has joined #ruby
dmolina has joined #ruby
emilkarl has quit [Quit: Textual IRC Client: www.textualapp.com]
joonty has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
User458764 has joined #ruby
segmond has joined #ruby
SCHAAP137 has joined #ruby
duckpuppy has joined #ruby
atmosx has joined #ruby
blackmesa has joined #ruby
joonty has quit [Ping timeout: 260 seconds]
howdoi has joined #ruby
kedare has joined #ruby
shredding has joined #ruby
baweaver has quit [Remote host closed the connection]
bronson has joined #ruby
mondok has joined #ruby
firstdayonthejob has quit [Quit: WeeChat 1.4-dev]
duckpuppy has quit [Ping timeout: 248 seconds]
stevemackinnon has quit [Remote host closed the connection]
TheHodge has joined #ruby
djbkd has joined #ruby
bronson has quit [Ping timeout: 276 seconds]
mark2 has joined #ruby
cibs has quit [Ping timeout: 272 seconds]
jottr has joined #ruby
beast has quit [Quit: Leaving]
jottr has quit [Ping timeout: 240 seconds]
cibs has joined #ruby
aufi has joined #ruby
YankNYC has quit [Quit: Connection closed for inactivity]
Gnut has quit [Ping timeout: 250 seconds]
zenlot1 is now known as zenlot
bkxd has joined #ruby
Bloomer has joined #ruby
selfadhesivefilm has joined #ruby
Xeago has joined #ruby
TomPeed has joined #ruby
dexter-tzu has quit [Ping timeout: 260 seconds]
mdw has quit [Quit: Sleeping Zzzzz]
jbrhbr has joined #ruby
Guest35290 has quit [Quit: leaving]
moeabdol has joined #ruby
nerium has quit [Quit: nerium]
fedexo has quit [Ping timeout: 252 seconds]
moeabdol4 has quit [Ping timeout: 256 seconds]
flughafen_ has quit [Quit: WeeChat 1.3]
Bloomer has quit [Remote host closed the connection]
DoubleMalt has joined #ruby
joonty has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mdw has joined #ruby
tesuji has joined #ruby
vikas027 has joined #ruby
vikas027 has left #ruby [#ruby]
adac has quit [Ping timeout: 276 seconds]
uehjvh has joined #ruby
gregf__ has quit [Ping timeout: 276 seconds]
firstdayonthejob has joined #ruby
sftrabbit has joined #ruby
elifoster has quit [Ping timeout: 250 seconds]
gregf_ has joined #ruby
neanderslob has quit [Read error: Connection reset by peer]
Xeago has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
huyderman has joined #ruby
aufi has quit [Ping timeout: 250 seconds]
ocbtec has joined #ruby
neanderslob has joined #ruby
dseitz has joined #ruby
dexter-tzu has joined #ruby
marr has joined #ruby
dlitvak has joined #ruby
kirillzh has joined #ruby
kirillzh has quit [Max SendQ exceeded]
jgt4 has joined #ruby
devbug has quit [Ping timeout: 260 seconds]
_ht has quit [Ping timeout: 248 seconds]
lsmola has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
infra-re_ has joined #ruby
stevemackinnon has joined #ruby
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stevemackinnon has quit [Read error: Connection reset by peer]
eGGsha has joined #ruby
stevemackinnon has joined #ruby
exadeci has quit [Quit: Connection closed for inactivity]
futilegames has joined #ruby
infra-red has quit [Ping timeout: 248 seconds]
dojobo has joined #ruby
stevemackinnon has quit [Read error: Connection reset by peer]
stevemackinnon has joined #ruby
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Averna has joined #ruby
platzhirsch has joined #ruby
stevemackinnon has quit [Ping timeout: 272 seconds]
futilegames has quit [Quit: futilegames]
aupadhye has quit [Ping timeout: 248 seconds]
kalopsian has quit [Ping timeout: 240 seconds]
bluOxigen has joined #ruby
django_ has quit [Read error: Connection reset by peer]
lkba_ has joined #ruby
bkxd has quit [Ping timeout: 252 seconds]
william3 has joined #ruby
futilegames has joined #ruby
lkba has quit [Ping timeout: 245 seconds]
User458764 has joined #ruby
lkba_ has quit [Ping timeout: 256 seconds]
dc1 has joined #ruby
platzhirsch has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
jxs_ has joined #ruby
dc1 has quit [Ping timeout: 240 seconds]
william3 has quit [Remote host closed the connection]
last_staff has quit [Quit: last_staff]
roshanavand has quit [Ping timeout: 260 seconds]
william3 has joined #ruby
jbrhbr has quit [Quit: Leaving.]
futilegames has quit [Quit: futilegames]
redasus has quit [Ping timeout: 256 seconds]
dc1 has joined #ruby
flughafen_ has joined #ruby
<flughafen_> shevy: i'm ready for takeoff
<shevy> hah
<flughafen_> was anybody here at euruko last year?
<shevy> not me! perhaps chris2
<shevy> or apeiros
ensyde has quit [Quit: Leaving]
<shevy> they are the typical conference monsters
<flughafen_> ha, ok.
N3sh108 has joined #ruby
platzhirsch has joined #ruby
<N3sh108> hey there. I would like to fetch a page using my own default browser. I just need to be able to fetch a page which would normally require authentication without bothering with it and using the session from my browser
<N3sh108> is that possible?
FooMunki has joined #ruby
ElFerna has joined #ruby
minimalism has quit [Ping timeout: 260 seconds]
kapowaz__ has joined #ruby
<chris2> not me
lsmola has quit [Quit: Leaving]
stevemackinnon has joined #ruby
<shevy> :)
djbkd has quit []
<kapowaz__> Hi all. I'm looking for a recommendation for a framework written in Ruby that can be used for a project I'd like to create a quick and dirty prototype for. I need something that lets me run quick, regularly recurring jobs (mostly polling a JSON endpoint), at most every 30 seconds or so.
rodfersou has joined #ruby
<kapowaz__> Ideally I'd like it to be something I can run through e.g. Heroku without too much thought for environment setup, but ideally also without the need for high worker costs (as I say, dirty prototype)
kapowaz__ is now known as kapowaz
minimalism has joined #ruby
tilllt has joined #ruby
redasus has joined #ruby
william3 has quit [Remote host closed the connection]
dajobat has joined #ruby
<tilllt> hey people, beginner question here. I got a gem, which is a wrapper around the ffprober tool that comes with ffmpeg. it outputs metadata about mediafiles. i can see that the output contains a json hash, but i don’t know how to access it since i don’t understand what kind of data type the gem returns, if anyone could take a look, that would be great. output is here: https://gist.github.com/tilllt/73983d3579a46aed0993
n00bdev has quit [Remote host closed the connection]
ramfjord has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
Ishido has joined #ruby
<ljarvis> kapowaz: just use plain Ruby maybe with something like Sidekiq?
marr has quit [Ping timeout: 240 seconds]
evidex has joined #ruby
<shevy> tilllt you need to access the @json variable
<shevy> ideally, they will have a method called .json that will allow you that
<ljarvis> tilllt: wow they made the json ivar private
<ljarvis> that's some awful api
<shevy> :(
Pumukel has joined #ruby
william3 has joined #ruby
<tilllt> shevy, ljarvis: so what are my options to get to the json then?
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<shevy> I would probably simply add a .json method to Ffprober::Wrapper
<shevy> no idea why they do not make that already
<ljarvis> tilllt: instance_variable_get or a monkeypatch, OR you can just do what this method does: https://github.com/beanieboi/ffprober/blob/master/lib/ffprober/parser.rb#L5 yourself
dlitvak has joined #ruby
chouhoulis has quit [Remote host closed the connection]
<shevy> btw the maintainer seems active, perhaps you can file a github issue request, last change a day ago
mdw has quit [Quit: Sleeping Zzzzz]
<ljarvis> that too
<ljarvis> there's absolutely a case for exposing the json method
karapetyan has quit [Remote host closed the connection]
moeabdol1 has joined #ruby
karapetyan has joined #ruby
<tilllt> shevy, ljarvis: thanks for the pointers, i was going crazy about this since everyone always said, „well just do ffprober.json that works“...
mdw has joined #ruby
chouhoulis has joined #ruby
<shevy> yeah \o/
moeabdol has quit [Ping timeout: 240 seconds]
dlitvak has quit [Ping timeout: 264 seconds]
karapetyan has quit [Ping timeout: 240 seconds]
wolffles has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
aufi has joined #ruby
Yeomra has quit [Quit: WeeChat 1.4]
trinaldi has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kerunaru has joined #ruby
domgetter has joined #ruby
depesz has left #ruby ["WeeChat 1.4-rc1"]
ccaffeini has joined #ruby
<domgetter> Is there a construct in Ruby for opening up a block-like thing that has its own lexical scope and evaluates in-place?
ldnunes has joined #ruby
william3 has quit [Remote host closed the connection]
triangles has joined #ruby
konsolebox has quit [Quit: Leaving]
triangles has quit [Max SendQ exceeded]
triangles has joined #ruby
<shevy> is this a meta question?
triangles has quit [Max SendQ exceeded]
triangles has joined #ruby
triangles has quit [Max SendQ exceeded]
triangles has joined #ruby
kalopsian has joined #ruby
triangles has quit [Max SendQ exceeded]
triangles has joined #ruby
triangles has quit [Max SendQ exceeded]
Zai00 has joined #ruby
triangles has joined #ruby
william3 has joined #ruby
triangles has quit [Max SendQ exceeded]
krzkrz has quit [Ping timeout: 240 seconds]
triangles has joined #ruby
triangles has quit [Max SendQ exceeded]
saltsa has quit [Ping timeout: 245 seconds]
triangles has joined #ruby
Cohedrin has joined #ruby
bluOxigen has quit []
kalopsian has quit [Ping timeout: 240 seconds]
tjbiddle has quit [Quit: tjbiddle]
saltsa has joined #ruby
triangles has quit [Max SendQ exceeded]
triangles has joined #ruby
duckpuppy has joined #ruby
triangles has quit [Max SendQ exceeded]
Averna has quit [Quit: Ex-Chat]
triangles has joined #ruby
triangles has quit [Max SendQ exceeded]
arooni has quit [Ping timeout: 240 seconds]
william3 has quit [Remote host closed the connection]
triangles has joined #ruby
zacstewa_ has joined #ruby
william3 has joined #ruby
jgt4 has quit [Ping timeout: 240 seconds]
baweaver has joined #ruby
zacstewart has quit [Ping timeout: 252 seconds]
ElFerna has quit [Ping timeout: 240 seconds]
duckpuppy has quit [Ping timeout: 252 seconds]
illbyte_ has joined #ruby
bkxd has joined #ruby
illbyte_ has quit [Client Quit]
illbyte_ has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
karapetyan has joined #ruby
dede has joined #ruby
aufi has quit [Ping timeout: 248 seconds]
<chris2> domgetter: lambda { ... }[] ?
jottr has joined #ruby
<chris2> not that people would use that
auzty has quit [Quit: Leaving]
<domgetter> chris2: thanks, that does work.
codecop has quit [Remote host closed the connection]
Burgestrand has joined #ruby
<domgetter> shevy: Someone on Reddit wanted to know what his Scala code would look like in Ruby
<shevy> hehe
illbyte_ has left #ruby [#ruby]
<domgetter> People get so uppity about monads
arooni has joined #ruby
<chris2> it would look nonidiomatic ;)
jottr has quit [Ping timeout: 250 seconds]
<domgetter> chris2: haha, I agree. I ended up writing a method that would yield *entries for me
<chris2> heh
toretore has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
mg^^ has joined #ruby
despai has joined #ruby
dlitvak has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
mg^ has quit [Ping timeout: 256 seconds]
shiver is now known as aibot
<chris2> TIL 3.6 kann suspend to both?
aibot is now known as shiver
shiver has quit [Changing host]
shiver has joined #ruby
<shevy> I dunno
<shevy> I always need to see that something is useful before my old brain can accept it
<shevy> I haven't yet understood monads
<domgetter> hahah
<domgetter> I'll admit there's a good argument that they're useless in Ruby
Yeomra has joined #ruby
<domgetter> Here's a possible use case: authorization wrapping: https://gist.github.com/domgetter/7cfed4e1938de458e153
sandstrom has quit [Quit: My computer has gone to sleep.]
Zggb has quit [Quit: Connection closed for inactivity]
nodejunkie has quit [Ping timeout: 252 seconds]
<shevy> where is the monad hiding
dionysus69 has joined #ruby
<shevy> it's like Waldo
<domgetter> The Authorization class is the monad in that example
mdw has joined #ruby
Brklyn has joined #ruby
<domgetter> it A) wraps values, B) lets you call methods on wrapped values (using #map), and C) always returns another instance of itself when you do that
User458764 has joined #ruby
law has left #ruby [#ruby]
davedev24 has joined #ruby
<kapowaz> ljarvis: I was looking into sidekiq, but it looks more for scheduled tasks? Maybe eventmachine is the way to go?
william3 has quit [Remote host closed the connection]
govg has quit [Ping timeout: 240 seconds]
workmad3_ has joined #ruby
Brklyn has quit [Ping timeout: 256 seconds]
vdamewood has quit [Quit: Life beckons.]
govg has joined #ruby
ramfjord_ has joined #ruby
oz` has joined #ruby
bkxd has quit [Ping timeout: 250 seconds]
Yzguy has joined #ruby
william3 has joined #ruby
crank1988 has quit [Ping timeout: 264 seconds]
N3sh108_ has joined #ruby
n00bdev has joined #ruby
GinoManWorks_ has joined #ruby
N3sh108 has quit [Ping timeout: 264 seconds]
xMopxShell has quit [Ping timeout: 264 seconds]
M-Kodo has quit [Ping timeout: 264 seconds]
N3sh108_ is now known as N3sh108
wolffles has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 264 seconds]
funnel has quit [Ping timeout: 264 seconds]
oz has quit [Ping timeout: 264 seconds]
zacts has quit [Ping timeout: 264 seconds]
perry has quit [Ping timeout: 264 seconds]
anisha_ has joined #ruby
oz` is now known as oz
aibot__ has joined #ruby
bkxd has joined #ruby
domgetter has quit [Ping timeout: 264 seconds]
ramfjord has quit [Ping timeout: 264 seconds]
minimalism has quit [Ping timeout: 264 seconds]
firstdayonthejob has quit [Ping timeout: 264 seconds]
mondok has quit [Ping timeout: 264 seconds]
anisha has quit [Ping timeout: 264 seconds]
ledestin has quit [Ping timeout: 264 seconds]
johnny56 has quit [Ping timeout: 264 seconds]
aibot_ has quit [Ping timeout: 264 seconds]
ahuman_ has quit [Ping timeout: 264 seconds]
user083 has quit [Ping timeout: 264 seconds]
hightower3 has quit [Ping timeout: 264 seconds]
ElSif has quit [Ping timeout: 264 seconds]
uber has quit [Ping timeout: 264 seconds]
spacemud has quit [Ping timeout: 264 seconds]
bahar has quit [Ping timeout: 264 seconds]
incite has quit [Ping timeout: 264 seconds]
jokester has quit [Ping timeout: 264 seconds]
jpoole has quit [Ping timeout: 264 seconds]
modin has quit [Ping timeout: 264 seconds]
Jello_Raptor has quit [Ping timeout: 264 seconds]
genpaku has quit [Ping timeout: 264 seconds]
davedev24 has quit [Ping timeout: 250 seconds]
arooni has quit [Ping timeout: 250 seconds]
user083_ has joined #ruby
wolffles has joined #ruby
gfdhjf has joined #ruby
<gfdhjf> hi everyone
guacamole has quit [Ping timeout: 264 seconds]
GinoManWorks has quit [Ping timeout: 264 seconds]
<gfdhjf> burn all jews in oven
<gfdhjf> death to infidels
<havenwood> !troll gfdhjf
gfdhjf was kicked from #ruby by ruby[bot] [trolling is a bannable offense, see http://ruby-community.com/pages/user_rules]
mhoungbo has quit [Ping timeout: 260 seconds]
ahuman has joined #ruby
zacts has joined #ruby
alnewkirk has joined #ruby
zacts is now known as Guest52031
incite has joined #ruby
funnel has joined #ruby
genpaku has joined #ruby
<dajobat> domgetter: Those slides were interesting, cheers.
guacamole has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DoubleMalt has quit [Remote host closed the connection]
n00bdev has quit [Ping timeout: 252 seconds]
M-Kodo has joined #ruby
perry has joined #ruby
uber has joined #ruby
zacstewart has joined #ruby
bahar has joined #ruby
zacstewa_ has quit [Read error: Connection reset by peer]
Jello_Raptor has joined #ruby
ur5us has joined #ruby
spacemud has joined #ruby
perry has quit [Changing host]
perry has joined #ruby
xMopxShell has joined #ruby
neanderslob has quit [Remote host closed the connection]
nuck has joined #ruby
crank1988 has joined #ruby
nuck is now known as Guest8906
chouhoulis has joined #ruby
mhoungbo has joined #ruby
Jardayn has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
despai has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoulis has quit [Ping timeout: 248 seconds]
_ht has joined #ruby
c355e3b has joined #ruby
kalopsian has joined #ruby
mondok has joined #ruby
hightower3 has joined #ruby
minimalism has joined #ruby
jpoole has joined #ruby
firstdayonthejob has joined #ruby
jokester has joined #ruby
yxhuvud has joined #ruby
al2o3-cr has quit [Ping timeout: 256 seconds]
jgt4 has joined #ruby
flughafen_ has quit [Ping timeout: 250 seconds]
andikr has joined #ruby
sdothum has joined #ruby
kalopsian has quit [Ping timeout: 276 seconds]
dlitvak has quit [Ping timeout: 240 seconds]
<scepticulous> hanmac: no, I did not. Its hard to debug since the error occurs only sometimes.
dlitvak has joined #ruby
<shellie_> I have this, each block, where I need to track if a specific element is found and then use it after the block, so I have a 'found' variable in function block - is there a more ruby-ist way of doing this?
wolffles has quit [Quit: wolffles]
platzhirsch has left #ruby [#ruby]
AlexRussia_ has joined #ruby
AlexRussia has quit [Quit: WeeChat 1.4-dev]
redasus has quit [Ping timeout: 240 seconds]
<scepticulous> Is there a way to extract a specific element out of a ruby hash so that I end up with an array of the match and the rest of the hash ?
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<scepticulous> well no, not hash, i mean array
<scepticulous> like match,rest = arr.myshift{|elem| elem == foo }
redasus has joined #ruby
anisha_ has quit [Quit: Leaving]
<Burgestrand> scepticulous partition is similar, http://ruby-doc.org/core-2.3.0/Enumerable.html#method-i-partition
<scepticulous> Burgestrand: thanks, I will take a look at it
saneax is now known as saneax_AFK
<Burgestrand> scepticulous otherwise you have Hash#delete_if which mutates the hash, http://ruby-doc.org/core-2.3.0/Hash.html#method-i-delete_if
<scepticulous> yes, I tried to not modify the original data.
william3 has quit [Remote host closed the connection]
<scepticulous> paritition will work for me
<Burgestrand> scepticulous alright, keep in mind I believe partition will return an arryified version of your hash, you need to convert either side back to a hash if you want it in that form, using Hash.[]
william3 has joined #ruby
aupadhye has joined #ruby
<scepticulous> ok. I was confused anyway. I am working with an array. ( array of hashes )
Jonah11_ has joined #ruby
<scepticulous> thus first,rest = partition{}.flatten seems to work
<scepticulous> however I dont know if there is a more efficient way to move the matching element to the front
<Burgestrand> Probably not worth it if this is just a fraction of the actual running time.
<Burgestrand> No point in shaving off 3ms if things take 3s to run anyway.
ledestin has joined #ruby
<scepticulous> yepp, totally agree, there is currently no need for optimization. I just wanted to make sure, that I am not misusing partition here to make it behave like someting I just missed
hamed_r has joined #ruby
Xeago has quit [Remote host closed the connection]
jottr has joined #ruby
<Burgestrand> I can't think of any. :)
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
Jonah11_ has quit [Ping timeout: 252 seconds]
mikecmpbll has joined #ruby
newbie22 has joined #ruby
modin has joined #ruby
zacstewart has quit [Ping timeout: 276 seconds]
Xeago has joined #ruby
FooMunki has quit [Quit: FooMunki]
newbie22 has quit [Client Quit]
FooMunki has joined #ruby
zacstewart has joined #ruby
cookiez has joined #ruby
platzhirsch has joined #ruby
aupadhye has quit [Ping timeout: 276 seconds]
johnny56 has joined #ruby
maikowblue has joined #ruby
bauruine has quit [Quit: ZNC - http://znc.in]
arthropododo has joined #ruby
akem has joined #ruby
tjbiddle has joined #ruby
tjbiddle has quit [Client Quit]
jaiks has joined #ruby
ElFerna has joined #ruby
bauruine has joined #ruby
N3sh108 has quit [Quit: Yogo - I'm sleeping, yo]
last_staff has joined #ruby
aupadhye has joined #ruby
roshanavand has quit [Remote host closed the connection]
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
adgtl has joined #ruby
Shaboum has joined #ruby
N3sh108 has joined #ruby
kerunaru has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kerunaru has joined #ruby
crdpink has joined #ruby
crdpink2 has quit [Ping timeout: 240 seconds]
sandstrom has joined #ruby
n00bdev has joined #ruby
Burgestrand has joined #ruby
zacstewart has quit [Ping timeout: 256 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
william3 has quit [Remote host closed the connection]
aryaching has joined #ruby
aupadhye has quit [Ping timeout: 240 seconds]
william3 has joined #ruby
william3 has quit [Remote host closed the connection]
william3 has joined #ruby
workmad3_ has quit [Ping timeout: 245 seconds]
Xeago has quit [Remote host closed the connection]
n00bdev has quit [Ping timeout: 252 seconds]
william3 has quit [Remote host closed the connection]
workmad3 has joined #ruby
marr has joined #ruby
ur5us has quit [Remote host closed the connection]
zacstewart has joined #ruby
Mon_Ouie has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
chouhoulis has joined #ruby
adgtl has quit [Remote host closed the connection]
ccaffeini has quit [Ping timeout: 250 seconds]
adgtl has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kobain has joined #ruby
firstdayonthejob has quit [Quit: WeeChat 1.4-dev]
kalopsian has joined #ruby
chouhoulis has quit [Ping timeout: 276 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
berserk_ren has quit [Ping timeout: 240 seconds]
adgtl has quit [Ping timeout: 276 seconds]
akem has quit [Quit: Bye]
blackmesa has joined #ruby
ElFerna has quit [Quit: WeeChat 1.3]
stevemackinnon has quit [Remote host closed the connection]
crdpink2 has joined #ruby
kalopsian has quit [Ping timeout: 264 seconds]
<shevy> shellie_ you mean to return the first match found?
crdpink has quit [Ping timeout: 252 seconds]
<shevy> I think it is either .select or probably .find ... at any rate I am quite sure that Enumerable should have that, perhaps yet another name
hxegon has joined #ruby
Abrin has joined #ruby
bronson has joined #ruby
flughafen_ has joined #ruby
daivyk has joined #ruby
N3sh108 has quit [Quit: Yogo - I'm sleeping, yo]
askhat has joined #ruby
N3sh108 has joined #ruby
bruce_lee has joined #ruby
Zai00 has quit [Quit: Zai00]
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
newbie22 has joined #ruby
Abrin has quit [Ping timeout: 264 seconds]
Yzguy has quit [Quit: Zzz...]
bronson has quit [Ping timeout: 240 seconds]
stevemackinnon has joined #ruby
duckpuppy has joined #ruby
aupadhye has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
berserk_ren has joined #ruby
kerunaru has quit [Quit: Textual IRC Client: www.textualapp.com]
skade has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
argyaista has joined #ruby
skade has quit [Client Quit]
argyaista has left #ruby [#ruby]
baweaver has joined #ruby
duckpuppy has quit [Ping timeout: 250 seconds]
dlitvak has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
duckpuppy has joined #ruby
N3sh108 has quit [Read error: Connection reset by peer]
william3 has joined #ruby
william3 has quit [Remote host closed the connection]
william3 has joined #ruby
Kollosus has joined #ruby
dlitvak has joined #ruby
hxegon has quit [Quit: BRB]
bahar has quit [Changing host]
bahar has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
Kollosus has left #ruby [#ruby]
flughafen_ has quit [Ping timeout: 245 seconds]
Mon_Ouie has quit [Ping timeout: 276 seconds]
dlitvak_ has joined #ruby
zacstewart has quit [Ping timeout: 245 seconds]
TomPeed has joined #ruby
dlitvak has quit [Ping timeout: 256 seconds]
Coldblackice has quit [Ping timeout: 250 seconds]
zacstewart has joined #ruby
aupadhye has quit [Ping timeout: 272 seconds]
pawnbox has joined #ruby
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
platzhirsch has left #ruby [#ruby]
redasus has quit [Ping timeout: 245 seconds]
mdw has quit [Quit: Sleeping Zzzzz]
roshanavand has joined #ruby
Xeago has joined #ruby
askhat has quit [Read error: Connection reset by peer]
roshanavand has quit [Remote host closed the connection]
atmosx has quit [Ping timeout: 248 seconds]
krzkrz has joined #ruby
roshanavand has joined #ruby
gambl0re has quit [Read error: Connection reset by peer]
gambl0re has joined #ruby
hightower3 has quit [Ping timeout: 240 seconds]
wethu has quit [Quit: This computer has gone to sleep]
codecop has joined #ruby
hightower3 has joined #ruby
jgt4 has quit [Ping timeout: 240 seconds]
joonty has quit [Ping timeout: 240 seconds]
n00bdev has joined #ruby
AlexRussia_ has quit [Ping timeout: 240 seconds]
hxegon has joined #ruby
hxegon is now known as hxegon_AFK
despai has joined #ruby
despai has quit [Client Quit]
william3 has quit [Remote host closed the connection]
william3 has joined #ruby
arietis has joined #ruby
<arietis> hey guys, could anyone explain to me what Array.inject(:+) method does?
ElFerna has joined #ruby
<arietis> can i assume that it's returning the sum of all elements for case of array with integer values?
hxegon_AFK is now known as hxegon
n00bdev has quit [Ping timeout: 250 seconds]
joonty has joined #ruby
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
newbie22 has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
chouhoulis has joined #ruby
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Taxidea has joined #ruby
jgpawletko has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
mooru has joined #ruby
gigetoo has quit [Ping timeout: 250 seconds]
gigetoo has joined #ruby
uehjvh has quit [Read error: Connection reset by peer]
chouhoulis has quit [Ping timeout: 252 seconds]
c0m0 has joined #ruby
tilllt has quit [Read error: No route to host]
Jonah11_ has joined #ruby
Taxidea has quit [Remote host closed the connection]
Zai00 has joined #ruby
_ht has quit [Quit: Konversation terminated!]
<dajobat> arietis: I assume you mean the :+ needs explaining?
<arietis> yes
<EdwardIII> hey, if i implement Enumerable but i want length... what should i do? is Enumerable the right thing to implement? .length doesn't seem to be available (i guessed maybe it would use .each?)
<shevy> wat
<dajobat> the :+ is a symbol which points to the plus method, injects can take symbols in. if you used :* then it would multiply them all.
avril14th has quit [Read error: Connection reset by peer]
<dajobat> it's equivalent to doing array.inject(0) { |acc, x| acc + x} I think
Taxidea has joined #ruby
kp666 has quit [Quit: Leaving]
<shevy> hmm question... some gems use something like:
<shevy> VERSION = "2.1.0".freeze
Jonah11_ has quit [Ping timeout: 240 seconds]
<shevy> why is this done?
<dajobat> arietis: If you look at the Enumerable#inject documentation it has a little paragraph about injects where no block is passed, and what it does with the symbols.
sonOfRa has quit [Quit: Bye!]
arietis has quit [Quit: Leaving.]
akem has joined #ruby
sonOfRa has joined #ruby
moeabdol1 has quit [Ping timeout: 240 seconds]
graffix222 has quit [Read error: Connection reset by peer]
mezcan has quit [Quit: Quitte]
adgtl has joined #ruby
blackmesa has joined #ruby
last_staff has quit [Quit: last_staff]
mdw has joined #ruby
duckpuppy has quit [Ping timeout: 256 seconds]
hightower4 has quit [Read error: Connection reset by peer]
hightower4 has joined #ruby
vikas027_ has joined #ruby
vikas027_ has left #ruby [#ruby]
adgtl_ has joined #ruby
bkxd has quit [Ping timeout: 252 seconds]
adgtl has quit [Ping timeout: 240 seconds]
kalopsian has joined #ruby
Jonah11_ has joined #ruby
<heftig> dajobat: without the 0
<heftig> inject has no idea what the zero element is
Taxidea has quit [Ping timeout: 252 seconds]
<heftig> i.e. the identity element
adgtl_ has quit [Remote host closed the connection]
<dajobat> heftig: it's not the zeroth element, it's passing the value 0 to the accumulator.
despai has joined #ruby
<heftig> dajobat: i was speaking in algebraic terms
kalopsian has quit [Ping timeout: 260 seconds]
stevemackinnon has quit [Remote host closed the connection]
<heftig> what you said would be equivalent to inject(0, :+), not inject(:+) as you claimed
kalopsian has joined #ruby
sgambino has joined #ruby
adgtl has joined #ruby
lessless has joined #ruby
Burgestrand has joined #ruby
jgt4 has joined #ruby
govg has quit [Read error: Connection reset by peer]
<dajobat> heftig: Ah, yeah. Thanks!
yalue has joined #ruby
govg has joined #ruby
aryaching has quit []
aryaching has joined #ruby
adgtl has quit [Ping timeout: 256 seconds]
mooru has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
duckpuppy has joined #ruby
cdg has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
cdg has quit [Remote host closed the connection]
B1n4r10 has joined #ruby
cdg has joined #ruby
User458764 has joined #ruby
mpistone has quit [Ping timeout: 256 seconds]
mdw has quit [Quit: Sleeping Zzzzz]
Jonah11_ has quit [Remote host closed the connection]
adgtl has joined #ruby
<dajobat> shevy: did you figure out the VERSION freeze thing?
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
VeryBewitching has joined #ruby
mooru has joined #ruby
flujan has joined #ruby
<VeryBewitching> Good morning folks.
Shaboum has quit [Quit: WeeChat 1.4]
<flujan> Hello, I have some ruby scripts inside a Rails app. My script require some gems. When I start the script it will use the Gemfile of the rails app?
zacstewa_ has joined #ruby
zacstewart has quit [Read error: Connection reset by peer]
amb77 has joined #ruby
f4cl3y has quit [Ping timeout: 250 seconds]
JDiPierro has joined #ruby
dede has quit [Quit: Connection closed for inactivity]
n00bdev has joined #ruby
UtkarshRay has joined #ruby
blackms has quit [Quit: Leaving]
<EdwardIII> hm i'm going crazy on something very basic
adgtl has quit [Ping timeout: 260 seconds]
<EdwardIII> i've got def self.find(**opts) but in one place i'm getting ArgumentError: wrong number of arguments (1 for 0)
<Burgestrand> flujan yes, Rails requires bundler, which in turn will utilize the Gemfile.
infra-re_ is now known as infrared
idefine has quit [Remote host closed the connection]
infrared is now known as Guest72378
Guest72378 is now known as infra-red
<Burgestrand> EdwardIII how are you calling it?
<EdwardIII> ah hmm it's Enumerable, and Enumerable already contains find heh
adgtl has joined #ruby
n00bdev has quit [Ping timeout: 252 seconds]
<EdwardIII> Burgestrand: lemme gist it
<Burgestrand> EdwardIII code is always lovely :)
krzkrz has quit [Ping timeout: 276 seconds]
aegis3121 has joined #ruby
<flujan> Burgestrand: So the single script that only requires “active_record” will use the Gemfile version, right?
<Burgestrand> flujan it depends, do you also require ./config/environment.rb, the one that boots up rails, before that?
william3 has quit [Remote host closed the connection]
<Burgestrand> flujan if you want to use the Gemfile without Rails, you can require 'bundler/setup'
BSaboia has joined #ruby
robbyoconnor has quit [Ping timeout: 245 seconds]
chouhoulis has joined #ruby
<EdwardIII> looks like it's nothing to do with Enumerable already containing a find method
<EdwardIII> which kind of makes sense
<shevy> dajobat nope, still not entirely sure
<Burgestrand> EdwardIII I have a theory, I will try it, since `params` is not a true hash but a wrapped object, maybe ruby does not unwrap it properly
kobain has quit [Ping timeout: 240 seconds]
<shevy> dajobat it's made more annoying by the fact that like 80% of the gem authors don't do this, 20% do this
<EdwardIII> Burgestrand: hrm ok
<EdwardIII> shevy: you're right
adgtl has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 245 seconds]
<Burgestrand> EdwardIII try to call it with .find(params.to_h)
_ht has joined #ruby
c0m0 has quit [Ping timeout: 276 seconds]
<Burgestrand> EdwardIII looks like my theory is correct :)
hdfhdf has joined #ruby
kobain has joined #ruby
<EdwardIII> Burgestrand: you're right, rather heh
<EdwardIII> damn
redasus has joined #ruby
<shevy> hehe
<Burgestrand> ;)
<shevy> Burgestrand always makes me so hungry just from the nick alone...
supremekay has quit [Ping timeout: 240 seconds]
kobain has quit [Max SendQ exceeded]
william3 has joined #ruby
kobain has joined #ruby
<Burgestrand> burgerstand.se actually redirects to burgestrand.se ;)
<Burgestrand> shevy :D
dlitvak has joined #ruby
<shevy> hah
fahrradflucht has joined #ruby
devbug has joined #ruby
malconis has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
krobzaur has joined #ruby
B1n4r10 has quit [Ping timeout: 264 seconds]
beast has joined #ruby
zacstewa_ has quit [Ping timeout: 248 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
william3 has quit [Ping timeout: 272 seconds]
kiez0rd has quit [Ping timeout: 250 seconds]
adgtl has joined #ruby
dlitvak_ has quit [Ping timeout: 240 seconds]
<EdwardIII> Burgestrand: this is weird
<EdwardIII> Burgestrand: if i do params.symbolize_keys it works. if i do params.to_h it doesn't work
bMalum has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
<Burgestrand> EdwardIII not so weird, https://eval.in/513761
<EdwardIII> .to_h results in ArgumentError: wrong number of arguments (1 for 0)
celly has joined #ruby
User458764 has joined #ruby
devbug has quit [Ping timeout: 252 seconds]
karapetyan has joined #ruby
<Burgestrand> EdwardIII keyword arguments (**options) work with symbol keys
<EdwardIII> ah
<EdwardIII> so what's the most estoeric way to handle this? just use .symbolize_keys?
<Burgestrand> EdwardIII I'd advice you not to symbolize all of the param keys, it opens you up to abuse :)
<EdwardIII> heh er well i kind of need it for another reason
<EdwardIII> which is possibly satanic. let me show you
zacstewart has joined #ruby
<Burgestrand> EdwardIII for one, you probably want to extract the parameters you actually want instead of passing them *all*
ramfjord_ has quit [Ping timeout: 240 seconds]
<Burgestrand> EdwardIII if you do that, it becomes safe to symbolize the keys as well since there can never be more keys than what you extract, i.e. it'll be locked down
krzkrz has joined #ruby
adgtl has quit [Remote host closed the connection]
<Burgestrand> Yeah, danger danger :)
_ht has quit [Read error: Connection reset by peer]
<Burgestrand> Or, well, it depends… which version of ruby?
_ht has joined #ruby
<EdwardIII> 2.2
william3 has joined #ruby
babblebre has joined #ruby
<Burgestrand> EdwardIII ah, nice, ruby 2.2 is the first version that allows garbage collection of symbols, so not so dangerous any more
<EdwardIII> but in a bit i will probably do some params processing of the params in the controller soon
<EdwardIII> going from params straight to an api is kinda asking for trouble heh
amb77 has quit [Quit: amb77]
<Burgestrand> EdwardIII additionally ruby keyword arguments are locked down so you don't need to do the fetching
<EdwardIII> Burgestrand: well here's the dirty bit
<EdwardIII> Burgestrand: that was just a quick check to throw an ex. if a required key was missing
aufi has joined #ruby
<shevy> Burgestrand hmm I remember your nick as ancient from #ruby-lang but you must not have been active on IRC for like a few hundred years or so. Since when have you been writing ruby code by the way?
idefine has joined #ruby
amb77 has joined #ruby
jgt4 has quit [Ping timeout: 245 seconds]
polishdub has joined #ruby
imperator has joined #ruby
nerium has joined #ruby
<Burgestrand> EdwardIII https://eval.in/513780
Lochez has joined #ruby
idefine has quit [Read error: Connection reset by peer]
nerium has quit [Client Quit]
<EdwardIII> Burgestrand: ah, i should be using that instead then heh
Yeomra has quit [Ping timeout: 245 seconds]
freerobby has joined #ruby
idefine has joined #ruby
idefine has quit [Remote host closed the connection]
adgtl has joined #ruby
<Burgestrand> shevy very dormant for the past 4 years :)
jaiks has quit [Ping timeout: 245 seconds]
DoubleMalt has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
aufi has quit [Quit: Konversation terminated!]
ta has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<shevy> hmm
<Burgestrand> shevy been popping my head in here every now and then during this time but not regularly
karapetyan has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
<Burgestrand> shevy used to be a regular for like two years, started doing professional ruby development at elabs (http://elabs.se/) and more or less stopped coding for hobby :)
sanguisdex has joined #ruby
davedev24 has joined #ruby
<shevy> :(
minimalism has quit [Quit: minimalism]
despai_ has joined #ruby
TomPeed has joined #ruby
despai has quit [Ping timeout: 260 seconds]
<Burgestrand> shevy or, well, I just stopped coding at home rather, I still had plenty of time to code non-client things at elabs :)
Deck` has quit [Ping timeout: 252 seconds]
<shevy> work sucks the fun out of people!
<Burgestrand> shevy in my case I was just having too much fun of one thing, so I compensated by having much fun with other things at home (such as gaming)
<Burgestrand> but I don't disagree ;)
kobain has quit [Ping timeout: 240 seconds]
Yeomra has joined #ruby
davedev24 has quit [Ping timeout: 250 seconds]
KensoDev_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Brklyn has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
decoponio has joined #ruby
duckpuppy has quit [Ping timeout: 252 seconds]
william3 has quit [Remote host closed the connection]
amb77 has quit [Quit: amb77]
adgtl has quit [Remote host closed the connection]
amb77 has joined #ruby
saltsa has quit [Ping timeout: 248 seconds]
SwiftFox has joined #ruby
<SwiftFox> hi
idefine has joined #ruby
dhollinger has joined #ruby
dhollinger has quit [Client Quit]
MaveonRemaes has joined #ruby
dhollinger has joined #ruby
ruby_ has joined #ruby
johnmilton has joined #ruby
adgtl has joined #ruby
ramortegui has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
saltsa has joined #ruby
glcx has joined #ruby
sheperson has joined #ruby
<imperator> Burgestrand, board or video?
jds has joined #ruby
dlitvak_ has joined #ruby
Macaveli has joined #ruby
amb77 has quit [Quit: amb77]
Yeomra has quit [Quit: WeeChat 1.4]
adgtl has quit [Remote host closed the connection]
x77686d has joined #ruby
Rodya_ has joined #ruby
n00bdev has joined #ruby
adgtl has joined #ruby
dajobat has quit [Ping timeout: 272 seconds]
william3 has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
amb77 has joined #ruby
mdw has joined #ruby
dEPy has joined #ruby
whippythellama has joined #ruby
zast has joined #ruby
<dEPy> Is there a way to see on how many other classes and object/class depends? Like A.constants ?
johnmilton has quit [Quit: Namaste]
mfb2 has joined #ruby
johnmilton has joined #ruby
duckpuppy has joined #ruby
mdw has quit [Client Quit]
amb77 has left #ruby [#ruby]
Rodya_ has quit [Ping timeout: 250 seconds]
BrunoSaboia has joined #ruby
n00bdev has quit [Ping timeout: 260 seconds]
mary5030 has joined #ruby
johnmilton has quit [Read error: Connection reset by peer]
akem has quit [Remote host closed the connection]
johnmilton has joined #ruby
sepp2k has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sgambino has joined #ruby
effektz has joined #ruby
<shevy> don't think so. you get the dependency chain perhaps via .ancestors but I don't think you can easily get more information, perhaps in ObjectSpace
BSaboia has quit [Ping timeout: 252 seconds]
mary5030 has quit [Remote host closed the connection]
mooru has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Lorn has quit [Changing host]
Lorn has joined #ruby
<EdwardIII> when i'm hacking around in the debugger is there a way for me to see the retval for the last line?
mary5030 has joined #ruby
FooMunki has quit [Quit: FooMunki]
Mon_Ouie has joined #ruby
agentmeerkat has joined #ruby
aganov has quit [Remote host closed the connection]
jxs_ has quit [Remote host closed the connection]
adgtl has quit [Remote host closed the connection]
sandstrom has joined #ruby
rodfersou is now known as rodfersou|lunch
mooru has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roger_rabbit has quit [Ping timeout: 240 seconds]
<dEPy> shevy: tnx. I'm trying to find a tool to easily check dependencies in my ruby files. Just look up what classes or modules it uses so maybe I could make a graph and see what files have too many dependencies. Any tool like that maybe?
uri_ has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
adgtl has joined #ruby
troulouliou_div2 has joined #ruby
scepticulous has quit [Ping timeout: 240 seconds]
dlitvak has joined #ruby
scepticulous has joined #ruby
sanguisdex has quit [Read error: Connection reset by peer]
<shevy> ah
<shevy> that reminds me dEPy
<shevy> I think hanmac wrote a graph-drawer in ruby graphviz
dajobat has joined #ruby
karapetyan has quit [Remote host closed the connection]
<shevy> I am not sure if it keeps any manual track of the amount of times any object is used or something, but I think he drew the proper ependency chain... the pictures created were huge though, dunno where the code is *poke hanmac*
stannard has quit [Remote host closed the connection]
dragon9783 has quit [Quit: Connection closed for inactivity]
<dEPy> Maybe I could just go trough files and match any camel cae string including those seperated with :: :)
<dEPy> That's the simplest thing I can think of
dlitvak_ has quit [Ping timeout: 248 seconds]
stannard has joined #ruby
ElFerna has quit [Ping timeout: 248 seconds]
quaristice has joined #ruby
FooMunki has joined #ruby
karapetyan has joined #ruby
quaristice has quit [Client Quit]
B1n4r10 has joined #ruby
karapetyan has quit [Remote host closed the connection]
Mia has quit [Read error: Connection reset by peer]
kies^ has joined #ruby
william3 has quit [Read error: Connection reset by peer]
infra-red has quit [Remote host closed the connection]
dionysus69 has joined #ruby
william3 has joined #ruby
karapetyan has joined #ruby
adgtl has quit [Remote host closed the connection]
shellie_ has quit [Quit: leaving]
jottr has quit [Ping timeout: 250 seconds]
hanmac has quit [Ping timeout: 250 seconds]
Shaboum has joined #ruby
karapetyan has quit [Remote host closed the connection]
bMalum has quit [Ping timeout: 250 seconds]
failshell has joined #ruby
idefine has quit [Remote host closed the connection]
gregf_ has left #ruby [#ruby]
karapetyan has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
<dajobat> Anyone working on anything interesting?
Conflict has quit [Ping timeout: 245 seconds]
gregf___ has joined #ruby
tesuji has quit [Read error: Connection reset by peer]
redasus has quit [Ping timeout: 245 seconds]
sepp2k has quit [Read error: Connection reset by peer]
<shevy> dajobat I am trying to find out which names I have forgotten in one gem ... https://www.w3.org/TR/SVG11/types.html#ColorKeywords I have only like 128 or so and they have like 143 or so
<shevy> not very interesting :D
adgtl has joined #ruby
karapetyan has quit [Remote host closed the connection]
Conflict has joined #ruby
mooru has quit [Quit: Textual IRC Client: www.textualapp.com]
sgambino has joined #ruby
flujan has quit [Quit: flujan]
<shevy> I'd love to do more advanced things in ruby
failshell has quit []
<shevy> like a VM allowing to control how something is compiled; control what and where something is installed
idefine has joined #ruby
idefine has quit [Remote host closed the connection]
Deck` has joined #ruby
idefine has joined #ruby
effektz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Sucks has joined #ruby
antgel has joined #ruby
hanmac has joined #ruby
jgt4 has joined #ruby
duckpuppy has quit [Ping timeout: 250 seconds]
casadei has joined #ruby
TomyWork has quit [Ping timeout: 248 seconds]
FooMunki has quit [Quit: FooMunki]
Deck` has quit [Ping timeout: 240 seconds]
FooMunki has joined #ruby
Al2O3 has quit [Ping timeout: 250 seconds]
<VeryBewitching> My Kingdom for a PHP framework that doesn't make me want to become suddenly murderous.
<Burgestrand> imperator both I guess :)
<VeryBewitching> I need to find Rails work.
mark2 has quit [Remote host closed the connection]
agent_white has joined #ruby
duckpuppy has joined #ruby
Al2O3 has joined #ruby
wscmsa has joined #ruby
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mdw has joined #ruby
tatsuo has joined #ruby
adgtl has quit [Remote host closed the connection]
mondok has quit [Ping timeout: 260 seconds]
Brando753 has quit [Ping timeout: 240 seconds]
dlitvak has quit [Ping timeout: 245 seconds]
frem has joined #ruby
dlitvak_ has joined #ruby
Brando753 has joined #ruby
waka_ has joined #ruby
wanderer_ has joined #ruby
dc1 has quit [Ping timeout: 240 seconds]
dc1 has joined #ruby
peterhu has joined #ruby
havenn has joined #ruby
havenn has joined #ruby
flughafen_ has joined #ruby
nofacade has joined #ruby
User458764 has joined #ruby
duderon__ has joined #ruby
kobain has joined #ruby
griffindy has joined #ruby
shaman42_ has joined #ruby
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
bakingbread has joined #ruby
genpaku_ has joined #ruby
agent_wh1te has joined #ruby
Rutix has joined #ruby
Rutix has joined #ruby
sheperson has quit [Quit: sheperson]
Dreamer__ has joined #ruby
ozzloy_ has joined #ruby
govg has quit [Ping timeout: 256 seconds]
j416_ has joined #ruby
mpistone has joined #ruby
adgtl has joined #ruby
flughafe1 has joined #ruby
guacamol1 has joined #ruby
iszak has joined #ruby
iszak has joined #ruby
greenhat_ has joined #ruby
TomyLobo has joined #ruby
M-shine has joined #ruby
huyderman has quit [Remote host closed the connection]
tomchap__ has joined #ruby
jinie_ has joined #ruby
Jonah11_ has joined #ruby
adgtl has quit [Remote host closed the connection]
<dajobat> Yeah, annoyingly I only really use ruby for scripting stuff at work, and a few minor projects at home.
agent_white has quit [*.net *.split]
guacamole has quit [*.net *.split]
genpaku has quit [*.net *.split]
ldnunes has quit [*.net *.split]
duderonomy has quit [*.net *.split]
peterhu_ has quit [*.net *.split]
jinie has quit [*.net *.split]
flughafen has quit [*.net *.split]
iszak_ has quit [*.net *.split]
waka has quit [*.net *.split]
Dreamer3_ has quit [*.net *.split]
j416 has quit [*.net *.split]
havenwood has quit [*.net *.split]
wanderer has quit [*.net *.split]
icedp has quit [*.net *.split]
shaman42 has quit [*.net *.split]
M-shine1 has quit [*.net *.split]
greenhat| has quit [*.net *.split]
ozzloy has quit [*.net *.split]
Rutix`away has quit [*.net *.split]
j416_ is now known as j416
jinie_ is now known as jinie
havenn is now known as havenwood
wanderer_ is now known as wanderer
ElFerna has joined #ruby
despai_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
n00bdev has joined #ruby
jpoole has left #ruby [#ruby]
Gnut has joined #ruby
Rodya_ has joined #ruby
dannluciano has quit [Ping timeout: 272 seconds]
dEPy has quit [Quit: (null)]
rmrrn has quit [Quit: ZNC - http://znc.in]
badeball has quit [Ping timeout: 272 seconds]
badeball has joined #ruby
dannluciano has joined #ruby
adgtl has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<agent_wh1te> Mornin' folks
<pipework> agent_wh1te: I concur, thanks to UGT.
ldnunes has joined #ruby
adgtl has quit [Remote host closed the connection]
<agent_wh1te> UGT's sun is up too much. No time to sleep. But it's morning here :)
n00bdev has quit [Ping timeout: 240 seconds]
einarj has quit [Remote host closed the connection]
<EdwardIII> i quite like all this ruby sugar
<EdwardIII> but i wonder if it's bad for my teeth heh
<EdwardIII> implicit return caught me out
adgtl has joined #ruby
SenpaiSilver has quit [Quit: Leaving]
ElFerna has quit [Ping timeout: 240 seconds]
Rodya_ has quit [Ping timeout: 276 seconds]
sandstrom has joined #ruby
TinyHats has joined #ruby
TinyHats has quit [Client Quit]
flujan has joined #ruby
<tatsuo> hello
johnnyt has quit [Ping timeout: 272 seconds]
Rodya_ has joined #ruby
sneakerhax has quit [Ping timeout: 252 seconds]
<dajobat> hello tatsuo, agent_wh1te
d10n-work has joined #ruby
<tatsuo> nice to mee you :)
<tatsuo> meet you :-0
chouhoulis has joined #ruby
afx_ has joined #ruby
afx_ has quit [Max SendQ exceeded]
kalopsian has quit [Quit: leaving]
dlitvak_ has quit [Remote host closed the connection]
imperator has left #ruby ["Leaving"]
ElFerna has joined #ruby
dlitvak has joined #ruby
duckpuppy has quit [Ping timeout: 252 seconds]
Shaboum has quit [Quit: WeeChat 1.4]
BSab has joined #ruby
ElFerna has quit [Ping timeout: 252 seconds]
davedev24 has joined #ruby
adgtl has quit [Remote host closed the connection]
stannard has quit [Remote host closed the connection]
symm- has joined #ruby
BrunoSaboia has quit [Ping timeout: 252 seconds]
SOLDIERz has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
Conflict has quit [Read error: Connection reset by peer]
Domaldel has quit [Quit: Leaving]
jas02 has quit [Quit: jas02]
jottr has joined #ruby
x77686d has quit [Quit: x77686d]
ropeney has joined #ruby
Conflict has joined #ruby
Abrin has joined #ruby
adgtl has joined #ruby
ponga has quit []
stephenh has quit [Remote host closed the connection]
platzhirsch has joined #ruby
johnnyt has joined #ruby
flujan has quit [Quit: flujan]
<shevy> EdwardIII you can use explicit return too all the time
ElFerna has joined #ruby
<EdwardIII> shevy: s'not the spirit of the thing though is it
<shevy> who defines the spirit
<pipework> I like implicit return for the end of blocks, and use returns for early returns to avoid extra processing.
<EdwardIII> the community
<shevy> the ultimate authority is the ruby parser
Alayde has joined #ruby
Abrin2 has joined #ruby
adgtl has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 252 seconds]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rmrrn has joined #ruby
rmrrn has joined #ruby
banghouse2 has joined #ruby
skakri has quit [Ping timeout: 240 seconds]
jbrhbr has joined #ruby
Abrin has quit [Ping timeout: 250 seconds]
despai has joined #ruby
roger_rabbit has joined #ruby
sepp2k has joined #ruby
AlexRussia_ has joined #ruby
skakri has joined #ruby
solars has quit [Ping timeout: 252 seconds]
einarj has joined #ruby
baweaver has joined #ruby
adgtl has joined #ruby
wolffles has joined #ruby
ElFerna has quit [Ping timeout: 245 seconds]
ramfjord has joined #ruby
einarj has quit [Read error: Connection reset by peer]
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dlitvak has quit [Ping timeout: 240 seconds]
einarj has joined #ruby
[Butch] has joined #ruby
User458764 has joined #ruby
adgtl has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 264 seconds]
stardiviner has quit [Ping timeout: 276 seconds]
stannard has joined #ruby
adgtl has joined #ruby
dlitvak has joined #ruby
chipotle has quit [Quit: cheerio]
rmrrn has quit [Quit: ZNC - http://znc.in]
RegulationD has joined #ruby
baweaver has quit [Ping timeout: 276 seconds]
User458764 has quit [Client Quit]
mustmodify has joined #ruby
mustmodify has left #ruby [#ruby]
fahrradflucht has quit [Quit: Connection closed for inactivity]
rmrrn has joined #ruby
rmrrn has quit [Changing host]
rmrrn has joined #ruby
davedev2_ has joined #ruby
Deck` has joined #ruby
ElFerna has joined #ruby
stannard has quit [Remote host closed the connection]
rmrrn has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 240 seconds]
davedev24 has quit [Ping timeout: 252 seconds]
<Gnut> Is there a more succinct way to do this? https://gist.github.com/Ghjnut/750db24a24c5cf6118ff
stannard has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
rodfersou|lunch is now known as rodfersou
Macaveli has joined #ruby
<Ox0dea> Gnut: new_arr = object.map &method(:symbolize_object)
aep has quit [Ping timeout: 252 seconds]
aegis3121 has quit [Ping timeout: 260 seconds]
ixti has joined #ruby
anisha has joined #ruby
Macaveli has quit [Client Quit]
Alayde has left #ruby ["WeeChat 1.1.1"]
Deck` has quit [Ping timeout: 240 seconds]
amclain has joined #ruby
scepticulous has quit [Ping timeout: 248 seconds]
Spami has joined #ruby
kirillzh has joined #ruby
devbug has joined #ruby
william3 has quit [Remote host closed the connection]
AxonetBE has quit [Quit: AxonetBE]
uri_ has quit [Quit: --]
mechanicles has joined #ruby
mkosaki_ has quit [Ping timeout: 240 seconds]
<SaintAardvark> Hi folks -- is there a particularly Ruby-ish way to validate JSON from a Rakefile? I can call out to jsonlint or something similar, but I'm wondering if there's a better way to do this.
rmrrn has joined #ruby
rmrrn has joined #ruby
<Gnut> Ox0dea: Ambiguous block operator. Parenthesize the method arguments if it's surely a block operator
<Gnut> That's rubocop's response
william3 has joined #ruby
gizmore has joined #ruby
<Gnut> And i don't really follow how it's expecting me to clean that up
<Ox0dea> Gnut: It's only ambiguous to the computer; we humans can quite easily intuit what's going on. Proceed as you will.
<Gnut> Ox0dea: Correct, i'm just wondering is there's a different way to write it so rubocop won't complain. Sorry, my ruby-fu is weak
adgtl has quit [Remote host closed the connection]
<Ox0dea> Gnut: Just needs more parentheses.
ElFerna has quit [Ping timeout: 240 seconds]
<Ox0dea> Alternatively, ignore the linter. It secretly hates you.
<Gnut> Ha, tried to wing that
zambini has joined #ruby
rmrrn has quit [Ping timeout: 256 seconds]
stardiviner has joined #ruby
aep has joined #ruby
Abrin2 is now known as Abrin
mondok has joined #ruby
<shevy> lol
codecop has quit [Remote host closed the connection]
glcx has quit [Quit: Quitte]
ElFerna has joined #ruby
<shevy> rubocop will use its baton to whack you into submission!
duckpuppy has joined #ruby
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
joonty has quit [Ping timeout: 240 seconds]
antgel has quit [Ping timeout: 252 seconds]
<Ox0dea> warning: `&' interpreted as argument prefix
banghous_ has joined #ruby
<Ox0dea> Well done, parser. I'd give you a cookie if you'd eat it.
mdw has quit [Quit: Sleeping Zzzzz]
sepp2k has quit [Quit: Leaving.]
jgt4 has quit [Ping timeout: 240 seconds]
<gregf___> shouldn't that be as simple as %w|foo bar baz|.map(&:to_sym)
Mon_Ouie has quit [Ping timeout: 272 seconds]
antgel_ has joined #ruby
kobain has quit [Ping timeout: 240 seconds]
<Ox0dea> No.
banghouse2 has quit [Ping timeout: 260 seconds]
Xeago has quit [Remote host closed the connection]
<Ox0dea> `map(&:foo)` is `map { |obj| obj.foo }`, whereas `map(&method(:foo))` is `map { |obj| foo(obj) }`.
banghous_ has left #ruby [#ruby]
celly has quit [Ping timeout: 276 seconds]
Yeomra has joined #ruby
<Ox0dea> I suspect Gnut's #symbolize_object method is doing a little more than String#to_sym, but perhaps not.
devbug has quit [Ping timeout: 248 seconds]
DoubleMalt has quit [Remote host closed the connection]
flughafen_ has quit [Ping timeout: 252 seconds]
<gregf___> ah - cool. thanks Ox0dea!
redasus has joined #ruby
hobodave has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
jottr has joined #ruby
tjohnson has joined #ruby
DonOtreply has joined #ruby
idefine has quit [Remote host closed the connection]
kies^ has quit [Ping timeout: 264 seconds]
<Ox0dea> gregf___: Sure thing. :)
<procyon_ember> Does Ruby make programmers happy?
<Ox0dea> >> symbolizer = Hash.new { |h, k| k.to_sym }; %w[foo bar baz].map &symbolizer
<ruby[bot]> Ox0dea: # => [:foo, :bar, :baz] (https://eval.in/513861)
<Ox0dea> gregf___: ^ More #to_proc fun.
ElFerna has quit [Ping timeout: 250 seconds]
<gregf___> hmm, ta ;)
redasus has quit [Read error: Connection reset by peer]
<Ox0dea> Da. :P
ramfjord has quit [Ping timeout: 248 seconds]
jds has quit [Quit: Connection closed for inactivity]
<apeiros> procyon_ember: mostly, sure
<Radar> procyon_ember: BLISSFUL, even.
aryaching has quit [Ping timeout: 276 seconds]
adgtl has joined #ruby
jbrhbr has quit [Quit: Leaving.]
zast has quit [Remote host closed the connection]
mechanicles has quit [Remote host closed the connection]
adgtl has quit [Remote host closed the connection]
PedramT has joined #ruby
duckpuppy has quit [Ping timeout: 276 seconds]
adgtl has joined #ruby
kirillzh has quit [Quit: Textual IRC Client: www.textualapp.com]
adgtl has quit [Read error: No route to host]
kirillzh has joined #ruby
hdfhdf has quit [Ping timeout: 245 seconds]
kirillzh has quit [Client Quit]
ropeney has joined #ruby
pdoherty has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
govg has joined #ruby
karapetyan has joined #ruby
<tatsuo> "> \r\e[K> \r\e[K> \r\e[K> \r\e[K> \r\e[K{\"service\": false, how can I remove this carriage return string in popen?
agent_wh1te is now known as agent_white
maikowblue has quit [Ping timeout: 245 seconds]
mechanicles has joined #ruby
maikowblue has joined #ruby
elifoster has joined #ruby
<apeiros> &ri String#delete tatsuo
mhoungbo has quit [Read error: No route to host]
flughafen_ has joined #ruby
<Ox0dea> I think tatsuo probably wants to remove the control sequences as well.
dmolina has quit [Quit: Leaving.]
mhoungbo has joined #ruby
<Ox0dea> "\e[K" is for erasing everything to the right.
<tatsuo> thank you for your kind! :)
Gadgetoid has left #ruby [#ruby]
dudedudeman has joined #ruby
dudedudeman has quit [Changing host]
dudedudeman has joined #ruby
despai has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dudedudeman> woo more parsing questions
<dudedudeman> so i’ve got this API call i’m doing wtih httparty
SwiftFox has quit [Read error: Connection reset by peer]
<dudedudeman> and it returns this JSON that has a ton of info, and then a child element. i want the three child elements it’s returning to me, but, it’s returning them to me with the same element name
<dudedudeman> so body -> child -> uri uri uri
SwiftFox has joined #ruby
<dudedudeman> when those uri’s are all different values
<dudedudeman> any thoughts on the best way to parse that?
agentmeerkat has quit [Ping timeout: 264 seconds]
<Ox0dea> dudedudeman: To be clear, you're getting back JSON data with an object containing a repeated key?
akem has joined #ruby
karapetyan has quit [Remote host closed the connection]
zacstewart has quit [Ping timeout: 276 seconds]
Deck` has joined #ruby
lurch_ has quit [Quit: lurch_]
mechanicles has quit [Ping timeout: 240 seconds]
dudedudeman_ has joined #ruby
SwiftFox has quit [Ping timeout: 240 seconds]
dudedudeman has quit [Ping timeout: 256 seconds]
dudedudeman_ is now known as dudedudeman
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mechanicles has joined #ruby
sftrabbit has quit [Quit: sftrabbit]
zacstewart has joined #ruby
amoeba has quit [Remote host closed the connection]
slash_part is now known as slash_join
oetjenj has joined #ruby
sftrabbit has joined #ruby
<dudedudeman> @Ox0dea here’s a gist of a JSON response that i’m getting https://gist.github.com/anonymous/742e13ef8720d5d6eb2b
<tatsuo> Ox0dea: Thank you for your help. I'm so glad this worked out.
<Ox0dea> dudedudeman: Right, you've got an Array of Hashes.
KensoDev has joined #ruby
kies^ has joined #ruby
<dudedudeman> mmm
<Ox0dea> You can say `array_of_hashes.map { |hash| hash['uri'] }` or the like to extract the URIs.
aryaching has joined #ruby
DonOtreply has quit [Quit: DonOtreply]
<Ox0dea> It would've been much trickier if you were getting back (invalid) JSON containing repeated keys.
rakm has joined #ruby
TomPeed has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
<dudedudeman> aight, i’ll play around with that
sneakerhax has joined #ruby
platzhirsch has left #ruby [#ruby]
adgtl has joined #ruby
<shevy> Ox0dea are you coding something naughty as of late
<Ox0dea> shevy: Yes. It's basically Krampus in Ruby form.
<Ox0dea> Should be a laugh.
devbug has joined #ruby
devbug has quit [Remote host closed the connection]
cats has joined #ruby
devbug has joined #ruby
ElFerna has joined #ruby
acidrainfall has joined #ruby
djbkd has joined #ruby
kobain has joined #ruby
SHyx0rmZ has joined #ruby
jbrhbr has joined #ruby
gizmore has quit [Quit: KVIrc 4.9.1 Aria http://www.kvirc.net/]
adgtl has quit [Remote host closed the connection]
devbug has quit [Ping timeout: 272 seconds]
joonty has joined #ruby
firstdayonthejob has joined #ruby
dlitvak has joined #ruby
jottr has joined #ruby
PedramT has quit [Remote host closed the connection]
tvw has quit [Ping timeout: 245 seconds]
podman has joined #ruby
pdoherty has quit [Ping timeout: 272 seconds]
kirillzh has joined #ruby
<acidrainfall> Hey all. My syntax checker is telling me I have an unused variable, is it because they're not in the same scope? https://gist.github.com/ntent-ashton/b4e9a9409ff13a8315c2#file-rolypoly-rb-L15
<shevy> lol Krampus... that reminds me
<acidrainfall> logfile is defined there at the top, and used in file_to_array()
PedramT has joined #ruby
<acidrainfall> Did I do that wrong?
<acidrainfall> maybe I should pass logfile in as file?
<acidrainfall> def file_to_array(file)?
zacstewart has quit [Ping timeout: 260 seconds]
gizmore has joined #ruby
idefine has joined #ruby
casadei has quit [Remote host closed the connection]
<acidrainfall> Or could it be that the variable name is log_file and I used logfile in the defs? :P
polishdub has quit [Quit: Leaving]
kirillzh has quit [Client Quit]
kirillzh has joined #ruby
<Ox0dea> acidrainfall: It's both. :P
kirillzh has quit [Client Quit]
anisha has quit [Quit: Leaving]
<Ox0dea> The names mismatch, but you also don't have access to top-level locals from within methods.
zacstewart has joined #ruby
kirillzh has joined #ruby
joonty has quit [Ping timeout: 272 seconds]
evidex has quit [Ping timeout: 260 seconds]
<acidrainfall> Ox0dea: I was unaware of that
<acidrainfall> Thank you
<Ox0dea> Sure thing.
<acidrainfall> Is the reverse true?
tomchap__ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<acidrainfall> my function file_to_array defines an array
<acidrainfall> is that array available?
aep has quit [Ping timeout: 252 seconds]
<Ox0dea> ?try
<ruby[bot]> Why don't you try it and see for yourself?
<Ox0dea> ^_^
casadei has joined #ruby
<acidrainfall> lol
<acidrainfall> thanks :P
aep has joined #ruby
PedramT has quit [Remote host closed the connection]
adgtl has joined #ruby
Anderson69s has joined #ruby
roshanavand has quit [Remote host closed the connection]
adgtl has quit [Read error: Connection reset by peer]
ixti has quit [Quit: WeeChat 1.4]
duckpuppy has joined #ruby
idefine has quit [Ping timeout: 276 seconds]
PedramT has joined #ruby
mhoungbo has quit [Ping timeout: 245 seconds]
flughafen_ has quit [Ping timeout: 245 seconds]
hamed_r has quit [Quit: Leaving]
bigkevmcd has quit [Quit: outta here]
<acidrainfall> Ox0dea: obviously not
<acidrainfall> What's the best way to go about what I need done?
<acidrainfall> Should I Just take that bit of code out of the function maybe?
akem has quit [Quit: Bye]
<Ox0dea> acidrainfall: Giving your script a bit more structure would pay dividends.
<Ox0dea> You could use a module as a namespace under which to put your state, or structure your thing as a class with instance variables, such that the methods all have access as appropriate.
ixti has joined #ruby
<acidrainfall> let's start small ok?
<acidrainfall> :P
<acidrainfall> this is my first ruby script
RegulationD has joined #ruby
<acidrainfall> I just need help with scope right now
bluOxigen has joined #ruby
diegoviola has joined #ruby
roshanavand has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
polishdub has joined #ruby
ramfjord has joined #ruby
william3 has quit [Remote host closed the connection]
idefine has joined #ruby
DonOtreply has joined #ruby
PedramT has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 245 seconds]
stardiviner has quit [Ping timeout: 250 seconds]
tatsuo has quit [Remote host closed the connection]
kirun has joined #ruby
roshanavand has quit [Ping timeout: 260 seconds]
Spami has quit [Quit: This computer has gone to sleep]
arlek has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
duckpuppy has quit [Ping timeout: 256 seconds]
diegoviola has quit [Quit: WeeChat 1.4]
sandstrom has joined #ruby
chouhoulis has quit [Remote host closed the connection]
PedramT has joined #ruby
krzkrz has quit [Ping timeout: 272 seconds]
chouhoulis has joined #ruby
<dajobat> acidrainfall: you'll need to refactor your code to be inside a class to get the joys of instance variables.
idefine has quit [Ping timeout: 264 seconds]
<dajobat> looking at your code, i'm guessing you probably want a node and a client class
Anderson69s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arlek has quit [Ping timeout: 256 seconds]
nfk has joined #ruby
jackjackdripper has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<dajobat> anyway, I need to head off. Cheerio everyone.
dajobat has quit [Quit: Leaving]
anisha has joined #ruby
PedramT_ has joined #ruby
Zai00 has quit [Quit: Zai00]
PedramT has quit [Ping timeout: 260 seconds]
jackjackdripper has quit [Client Quit]
jackjackdripper has joined #ruby
pdoherty has joined #ruby
hobodave has joined #ruby
n00bdev has joined #ruby
dcunit3d has quit [Ping timeout: 260 seconds]
dc1 has quit [Ping timeout: 272 seconds]
freerobby has quit [Quit: Leaving.]
devbug has joined #ruby
Timberwo|f has quit [Quit: Sleep.]
zeroDivisible has joined #ruby
<acidrainfall> I just needed to return the variable value
<acidrainfall> perfection isn't what I'm going for here, right now it's a task to figure ruby out :)
Timberwo|f has joined #ruby
<acidrainfall> I appreciate the 'you should do it the right way' suggestions but that's a lot for a beginner
Marsupermammal has joined #ruby
Marsupermammal has quit [Client Quit]
Coldblackice has joined #ruby
bronson has joined #ruby
jackjackdripper1 has joined #ruby
celly has joined #ruby
jackjackdripper has quit [Ping timeout: 250 seconds]
Deck` has quit [Ping timeout: 240 seconds]
adgtl has joined #ruby
jackjackdripper1 has quit [Client Quit]
jackjackdripper has joined #ruby
sftrabbit has quit [Quit: sftrabbit]
Xeago has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
guacamol1 has quit [Changing host]
guacamol1 has joined #ruby
zacstewart has quit [Ping timeout: 256 seconds]
fantazo has joined #ruby
jackjackdripper1 has joined #ruby
baweaver has joined #ruby
dlitvak has quit [Ping timeout: 264 seconds]
Dreamer__ is now known as Dreamer3
jackjackdripper has quit [Ping timeout: 245 seconds]
supremekay has joined #ruby
codecop has joined #ruby
wscmsa has quit [Read error: Connection reset by peer]
shadoi has joined #ruby
zacstewart has joined #ruby
dlitvak has joined #ruby
andikr has quit [Remote host closed the connection]
trinaldi has quit [Quit: bye]
mpistone has quit []
KensoDev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
idefine has joined #ruby
KensoDev has joined #ruby
KensoDev has quit [Client Quit]
<bob_f> Hi, is there an equivalent(ish) way of doing 'do; ... end.method` for a class ? I'm finding that `class Foo; end.cls_method` gives confusing errors.
<bob_f> But it seems that it's not supported.
baweaver has quit [Remote host closed the connection]
<bob_f> It's no big deal, just would've been vaguely convenient for setting up a subject for a spec.
supremekay has quit [Ping timeout: 248 seconds]
KensoDev has joined #ruby
travisthenavi has joined #ruby
aryaching has quit []
spider-mario has joined #ruby
hobodave_ has joined #ruby
freerobby has joined #ruby
johnmilton has quit [Ping timeout: 264 seconds]
j0n3 has joined #ruby
<Ox0dea> bob_f: https://eval.in/513909
BrunoSaboia has joined #ruby
hobodave has quit [Ping timeout: 250 seconds]
<procyon_ember> apeiros, Radar ty :)
supremekay has joined #ruby
joonty has joined #ruby
BSab has quit [Ping timeout: 256 seconds]
shredding has quit [Ping timeout: 245 seconds]
<bob_f> Ox0dea: Ah, cool - cheers.
<Ox0dea> bob_f: No worries.
duckpuppy has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Lochez has quit [Quit: Textual IRC Client: www.textualapp.com]
nerium has joined #ruby
joonty has quit [Ping timeout: 245 seconds]
ctp__ has joined #ruby
baweaver has joined #ruby
karapetyan has joined #ruby
pdoherty has quit [Ping timeout: 250 seconds]
Zai00 has joined #ruby
Conflict has quit [Read error: Connection reset by peer]
jgt4 has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
finisherr has joined #ruby
n00bdev has quit [Remote host closed the connection]
supremekay has quit [Ping timeout: 260 seconds]
theunraveler has joined #ruby
mickey_mouse_2 has joined #ruby
mickey_mouse has quit [Ping timeout: 252 seconds]
ricer2 has joined #ruby
zacstewart has quit [Ping timeout: 240 seconds]
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zacstewart has joined #ruby
peeja has joined #ruby
nazrath has joined #ruby
baweaver has quit [Remote host closed the connection]
DrCode has quit [Remote host closed the connection]
celly has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
n00bdev has joined #ruby
DmitryBochkarev has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
blackmesa has joined #ruby
mkosaki has joined #ruby
mechanicles has quit []
dome22xl has joined #ruby
stannard has quit [Remote host closed the connection]
Jonah11_ has quit [Remote host closed the connection]
<Ox0dea> hanmac: https://eval.in/513920
fedexo has joined #ruby
<Ox0dea> You probably don't even remember wanting it, but there's Bignum#[]=. :)
<hanmac> nice one ;P
kirun has quit [Ping timeout: 264 seconds]
stannard has joined #ruby
kirun has joined #ruby
dc1 has joined #ruby
jgt4 has quit [Ping timeout: 276 seconds]
johnmilton has joined #ruby
carella_ has quit [Read error: Connection timed out]
carella has joined #ruby
Jackneill has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
djbkd has quit [Quit: My people need me...]
william3 has joined #ruby
Mon_Ouie has joined #ruby
treehug88 has joined #ruby
Conflict has joined #ruby
kirillzh has joined #ruby
mhoungbo has joined #ruby
Guest8906 has quit [Changing host]
Guest8906 has joined #ruby
Guest8906 is now known as nuck
<Conflict> rails new testapp
<Conflict> /usr/lib/ruby/2.3.0/rubygems/dependency.rb:319:in `to_specs': Could not find 'act
<Conflict> ivesupport' (= 4.2.5) - did find: [activesupport-4.2.5.1] (Gem::LoadError)
jackjackdripper1 has quit [Read error: Connection reset by peer]
<Conflict> anyone know why this is happening?
jackjackdripper has joined #ruby
anisha has quit [Quit: Leaving]
Jonah11_ has joined #ruby
ocbtec has quit [Quit: leaving]
robbyoconnor has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
dlitvak has quit [Remote host closed the connection]
<hanmac> Conflict: your gemfile.lock is the problem, remove it and it should work
Xeago has quit [Remote host closed the connection]
dudedudeman has quit [Quit: dudedudeman]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> Er, I think their Gemfile got mutilated?
<Ox0dea> There's a newline in the string.
toretore has joined #ruby
<Ox0dea> hanmac: Be mindful of BIGNUM_EMBED_LEN_MAX if you do in fact find a use case for Bignum#[]=.
<Ox0dea> Bignums are heap-allocated at and after 2 ** 192 on 64-bit machines.
zacstewart has quit [Ping timeout: 256 seconds]
blackmesa has quit [Ping timeout: 264 seconds]
<Conflict> hanmac: which directory does that live in?
<hanmac> Conflict: should be in the main dir where Gemfile is
<Conflict> /usr/lib/ruby/gems/2.3.0/gems/rack-test-0.6.3/Gemfile.lock i'm assuming?
yqt has joined #ruby
<hanmac> hm no that is only the Gemfile.lock fo the rack-test your project might have its own one
Rodya_ has joined #ruby
zacstewart has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
griffindy has joined #ruby
<Conflict> hanmac: hmm my project directory is empty, i was trying to start a new project
jackjackdripper has joined #ruby
<Conflict> rails new testapp
<Conflict> /usr/lib/ruby/2.3.0/rubygems/dependency.rb:319:in `to_specs': Could not find 'activesupport' (= 4.2.5) - did find: [activesupport-4.2.5.1] (Gem::LoadError)
<Conflict> Checked in 'GEM_PATH=/home/conflict/.gem/ruby/2.3.0:/usr/lib/ruby/gems/2.3.0', execute `gem env` for more information
<Conflict> from /usr/lib/ruby/2.3.0/rubygems/specification.rb:1438:in `block in activate_dependencies'
<Conflict> from /usr/lib/ruby/2.3.0/rubygems/specification.rb:1427:in `each'
<Conflict> from /usr/lib/ruby/2.3.0/rubygems/specification.rb:1427:in `activate_dependencies'
<Conflict> from /usr/lib/ruby/2.3.0/rubygems/specification.rb:1409:in `activate'
<Conflict> from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_gem.rb:68:in `block in gem'
<Conflict> from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_gem.rb:67:in `synchronize'
<Conflict> from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_gem.rb:67:in `gem'
<hanmac> Conflict: first rails questions might be better in #rubyonrails
<Conflict> from /usr/bin/rails:22:in `<main>'
<Conflict> thats the full error
<Conflict> cheers
<hanmac> and next time use a pastie service like gist from github
ss_much has joined #ruby
<Conflict> np
<hanmac> Conflict: for now what i see is that some in the dependencies of rails does want a specific activesupport version but you have a newer one
<hanmac> an easy way to fix that would be to install that special version of it
stannard has quit [Ping timeout: 252 seconds]
Deck` has joined #ruby
stannard has joined #ruby
ta has joined #ruby
kies^ has quit [Ping timeout: 240 seconds]
ta has quit [Remote host closed the connection]
ta has joined #ruby
chouhoul_ has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
agent_white has quit [Quit: leaving]
chouhoulis has quit [Ping timeout: 250 seconds]
tomchap__ has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
casadei has quit [Remote host closed the connection]
einarj has quit [Ping timeout: 264 seconds]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
dudedudeman has joined #ruby
dionysus69 has quit [Ping timeout: 250 seconds]
idefine has quit [Remote host closed the connection]
<adgtl> Did Ruby get |> operator?
zacstewart has quit [Ping timeout: 260 seconds]
dlitvak has joined #ruby
<kspencer> just so i know, if i ever see it, what does that do adgtl
celly has joined #ruby
joonty has joined #ruby
fedexo has quit [Ping timeout: 256 seconds]
dupa has joined #ruby
<adgtl> kspencer: similar to elixir one?
rodfersou has quit [Quit: leaving]
hxegon is now known as hxegon_AFK
ramfjord has joined #ruby
zacstewart has joined #ruby
einarj has joined #ruby
freerobby has quit [Quit: Leaving.]
blackmesa has joined #ruby
joonty has quit [Ping timeout: 260 seconds]
<Ox0dea> adgtl: No, but there's this: https://github.com/matz/streem
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
ldnunes has quit [Quit: Leaving]
toretore has quit [Ping timeout: 276 seconds]
Sucks has quit [Read error: Connection reset by peer]
daivyk has quit [Ping timeout: 250 seconds]
duckpuppy has joined #ruby
zast has joined #ruby
agentmeerkat has joined #ruby
<Ox0dea> adgtl: You're still missing the bangarang (!~). :P
f3ttX] has joined #ruby
freerobby has joined #ruby
konsolebox has joined #ruby
dlitvak_ has joined #ruby
momomomomo has joined #ruby
adgtl has quit [Remote host closed the connection]
FernandoBasso has joined #ruby
dlitvak has quit [Ping timeout: 252 seconds]
hxegon_AFK is now known as hxegon
snguyen has joined #ruby
duncannz has joined #ruby
Rodya_ has quit [Remote host closed the connection]
baweaver has joined #ruby
yfeldblum has joined #ruby
tilllt has joined #ruby
dupa has quit [Quit: This computer has gone to sleep]
einarj has quit [Read error: Connection reset by peer]
einarj has joined #ruby
mfb2 has quit [Remote host closed the connection]
nazrath has left #ruby [#ruby]
ur5us has joined #ruby
DonOtreply has quit [Ping timeout: 276 seconds]
AciD` has joined #ruby
chipotle has joined #ruby
<AciD`> hi. Big ruby noob here. I'm trying to install scss_lint following this installation guide (https://github.com/brigade/scss-lint#installation), but I really don't know what 'bundle install' do, nor where I should create the 'GemFile'. I want to be able to use scss_lint from my IDE, so where should I finish that installation (and with which user)?
baweaver has quit [Ping timeout: 276 seconds]
krobzaur has quit [Quit: WeeChat 1.2]
momomomomo has quit [Quit: momomomomo]
sftrabbit has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
symbol has joined #ruby
DonOtreply has joined #ruby
blackgoat has joined #ruby
dupa has joined #ruby
<Mon_Ouie> If you're not using Bundler, just use 'gem install scss_lint' and make sure the directory where the binaries are stored is in your PATH environment variable
<Mon_Ouie> (gem should warn you after the install if that isn't the case, as well as tell you what that directory is)
Rodya_ has joined #ruby
Spami has joined #ruby
<pipework> Not using bundler without using gemsets sounds horrid.
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
atmosx has joined #ruby
william3 has quit [Remote host closed the connection]
Rodya_ has quit [Remote host closed the connection]
last_staff has joined #ruby
symbol has quit [Quit: WeeChat 1.1]
n00bdev has quit [Remote host closed the connection]
toretore has joined #ruby
dionysus69 has joined #ruby
danman has joined #ruby
idefine has joined #ruby
TomPeed has joined #ruby
adgtl has joined #ruby
mhoungbo has quit [Ping timeout: 240 seconds]
adgtl has quit [Read error: Connection reset by peer]
benlieb has joined #ruby
govg has quit [Ping timeout: 245 seconds]
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
momomomomo has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
jonathanwallace_ has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
toretore has quit [Ping timeout: 250 seconds]
idefine has quit [Ping timeout: 272 seconds]
DonOtreply has quit [Quit: DonOtreply]
nettoweb has joined #ruby
Gadgetoid has joined #ruby
Rodya_ has joined #ruby
<travisthenavi> I cannot get my loop to work as intended. Here is my source code: http://pastebin.com/S8QAJ7mF
<ruby[bot]> travisthenavi: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/27eb3573bae482ede17b
<ruby[bot]> travisthenavi: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
p0wn3d has joined #ruby
theunraveler has quit [Remote host closed the connection]
sheperson has joined #ruby
theunraveler has joined #ruby
bluOxigen has left #ruby [#ruby]
<travisthenavi> My goal is to only loop when the input assigned to the variable answer is NOT "yes" or "no"
<travisthenavi> What am I doing wrong?
casadei has joined #ruby
devbug has quit [Ping timeout: 272 seconds]
dupa has quit [Quit: This computer has gone to sleep]
<travisthenavi> My logic must be off somehwere.
<hanmac> this does not work that way you think answer != "yes" or "no"
p0wn3d has quit [Client Quit]
p0wn3d has joined #ruby
kirillzh has joined #ruby
<travisthenavi> hanmac, What would be the proper way to go about doing this? You understand my logic, right?
<hanmac> travisthenavi: i think you want this: until ["yes", "no"].include?(answer)
einarj has quit [Read error: Connection reset by peer]
johnmilton has quit [Quit: Namaste]
johnmilton has joined #ruby
blackmesa has joined #ruby
aep has quit [Ping timeout: 276 seconds]
dupa has joined #ruby
einarj has joined #ruby
arthropododo has quit [Quit: Leaving]
aibot__ has quit [Remote host closed the connection]
arthropododo has joined #ruby
aibot has joined #ruby
craysiii has quit [Quit: Leaving.]
aep has joined #ruby
Xeago has joined #ruby
mhoungbo has joined #ruby
fedexo has joined #ruby
tvw has joined #ruby
freerobby has quit [Quit: Leaving.]
craysiii has joined #ruby
dlitvak has joined #ruby
jottr has joined #ruby
aibot has quit [Remote host closed the connection]
dlitvak_ has quit [Ping timeout: 260 seconds]
aibot has joined #ruby
celly has quit [Remote host closed the connection]
zacstewa_ has joined #ruby
celly has joined #ruby
dmolina has joined #ruby
celly has quit [Read error: No route to host]
duncannz has quit [Remote host closed the connection]
celly has joined #ruby
momomomomo has quit [Quit: momomomomo]
zacstewart has quit [Read error: Connection reset by peer]
blackmesa has quit [Quit: WeeChat 1.4]
mg^2 has joined #ruby
<mg^2> join #ruby-offtopic
zambini has quit [Quit: Leaving.]
blackmesa has joined #ruby
<mg^2> bah
zambini has joined #ruby
joonty has joined #ruby
cdg has joined #ruby
jonathanwallace_ has quit [Quit: ZNC - http://znc.in]
infra-red has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
joonty has quit [Ping timeout: 245 seconds]
moeabdol1 has joined #ruby
kies^ has joined #ruby
devbug has joined #ruby
griffindy has joined #ruby
baweaver has joined #ruby
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
travisthenavi has quit [Ping timeout: 256 seconds]
dlitvak has quit [Remote host closed the connection]
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> oh talking about offtopic... adaedra I just read the news! long live the old french accent character ... :(
jottr has quit [Ping timeout: 260 seconds]
tomchap__ has quit [Quit: Textual IRC Client: www.textualapp.com]
fantazo has quit [Ping timeout: 276 seconds]
<adaedra> Ah, you mean the 25 year old reform?
<adaedra> years*
jgpawletko has quit [Quit: jgpawletko]
<shevy> yeah!
<shevy> "onion" to become "ognon" :D
dc1 has quit [Ping timeout: 245 seconds]
moeabdol1 has quit [Client Quit]
<shevy> this so reminds me of monty python
<adaedra> old spelling remains valid.
django_ has joined #ruby
tvw has quit [Remote host closed the connection]
<django_> hey all
<django_> im trying to get started on web dev security
<shevy> adaedra awww :(
jbrhbr has quit [Quit: Leaving.]
<adaedra> shevy: so right now, it would be as if I just came to the channel and said "long live the old german double-s character"
jackjackdripper has quit [Quit: Leaving.]
<shevy> the swiss did away with it!
<shevy> we here still must use it... :(
jackjackdripper has joined #ruby
sheperson has quit [Ping timeout: 272 seconds]
jonathanwallace_ has joined #ruby
hxegon is now known as hxegon_AFK
dlitvak has joined #ruby
s0n1c- has joined #ruby
tomchap__ has joined #ruby
s0n1c- has quit [Changing host]
s0n1c- has joined #ruby
x77686d has joined #ruby
tomchap__ has quit [Client Quit]
ElFerna has quit [Quit: WeeChat 1.3]
<baweaver> django_: This is the ruby channel. It would be better to ask in a security channel.
einarj has quit [Read error: Connection reset by peer]
heeih has joined #ruby
einarj has joined #ruby
kies^ has quit [Ping timeout: 240 seconds]
tilllt has quit [Quit: tilllt]
blackgoat has quit [Quit: WeeChat 1.3]
mfb2 has joined #ruby
CloCkWeRX has joined #ruby
benlieb has quit [Quit: benlieb]
arooni has joined #ruby
johnmilton has quit [Quit: Namaste]
yfeldblum has quit [Ping timeout: 252 seconds]
Al2O3 has quit [Read error: Connection reset by peer]
bb010g has quit [Quit: Connection closed for inactivity]
jonathanwallace_ has quit [Ping timeout: 245 seconds]
bronson has quit [Remote host closed the connection]
Al2O3 has joined #ruby
einarj has quit [Ping timeout: 252 seconds]
mfb2 has quit [Ping timeout: 240 seconds]
devbug has quit [Ping timeout: 250 seconds]
CloCkWeRX has quit [Ping timeout: 252 seconds]
Cohedrin has joined #ruby
bluOxigen_ has joined #ruby
benlieb has joined #ruby
tomchap__ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
bronson has joined #ruby
mfb2 has joined #ruby
ropeney has joined #ruby
ESpiney has quit [Ping timeout: 252 seconds]
benlieb has quit [Client Quit]
ixti has quit [Quit: WeeChat 1.4]
Jackneill has quit [Ping timeout: 250 seconds]
SCHAAP137 has joined #ruby
B1n4r10 has quit [Ping timeout: 245 seconds]
polishdub has quit [Quit: Leaving]
TomyLobo has quit [Ping timeout: 240 seconds]
ixti has joined #ruby
ljames has joined #ruby
flughafen_ has joined #ruby
yaroslav has joined #ruby
devbug has joined #ruby
crixer is now known as crowell
benlieb has joined #ruby
crowell has quit [Changing host]
crowell has joined #ruby
jgpawletko has joined #ruby
neohunter has joined #ruby
hxegon_AFK has quit [Quit: BRB]
theunraveler has quit [Remote host closed the connection]
theunraveler has joined #ruby
dc1 has joined #ruby
CloCkWeRX has joined #ruby
theunraveler has quit [Client Quit]
kies^ has joined #ruby
heeih has quit [Quit: Page closed]
Xeago has quit [Remote host closed the connection]
infra-red has quit [Remote host closed the connection]
celly has quit [Ping timeout: 264 seconds]
einarj has joined #ruby
moeabdol has joined #ruby
codecop has quit [Remote host closed the connection]
dudedudeman has quit [Quit: dudedudeman]
pushcx has joined #ruby
vdamewood has joined #ruby
<shevy> hmmm I am trying to come up with a convention...
<shevy> say there is a class called Foobar (and lots of other classes). Since some time I have added the option to have output from commandline programs, be prefixed with the name of the class
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> colourized too. So we have something like:
<shevy> Foobar: Removing empty directories.
<shevy> A bit later, I also decided that I should also display the proper namespace... so I have output such as Foo::Bar: now
srenatus has quit [Quit: Connection closed for inactivity]
<shevy> And yesterday... I wondered whether I should also denote any travel path, say that you have a namespace Foo, and it invokes some class in namespace Bar
<shevy> and I was thinking of using ->
<shevy> So ... Foo->Bar::Bla:
<shevy> now I need opinions on the ->
duckpuppy has quit [Ping timeout: 256 seconds]
yaroslav has quit [Quit: Textual IRC Client: www.textualapp.com]
JDiPierro has quit [Remote host closed the connection]
<Papierkorb> Looks too complicated to me tbh
<Papierkorb> If something breaks I'll see it in the stacktrace
<Papierkorb> if nothing breaks, why should I care?
dlitvak has quit [Remote host closed the connection]
<Papierkorb> shevy: regarding the 'travel path'
benlieb has quit [Quit: benlieb]
<shevy> Papierkorb yeah I thought so too... I probably end up with me being the only one understanding it :(
kies^ has quit [Ping timeout: 252 seconds]
agentmeerkat has quit [Ping timeout: 272 seconds]
<Papierkorb> shevy: I'd leave it out. Sounds like complex code, and complex output for not that-much gain
<shevy> yeah
_ht has quit [Quit: Konversation terminated!]
flughafen_ has quit [Ping timeout: 250 seconds]
jackjackdripper1 has joined #ruby
baweaver has quit [Remote host closed the connection]
poguez_ has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
trinaldi has joined #ruby
benlieb has joined #ruby
jackjackdripper has quit [Ping timeout: 252 seconds]
arooni has quit [Ping timeout: 250 seconds]
hxegon has joined #ruby
joonty has joined #ruby
wolffles has quit [Quit: wolffles]
djbkd has joined #ruby
hobodave_ has quit [Quit: Computer has gone to sleep.]
momomomomo has joined #ruby
B1n4r10 has joined #ruby
gizless has joined #ruby
joonty has quit [Ping timeout: 250 seconds]
chadhs has joined #ruby
vikas027 has joined #ruby
gizmore|2 has joined #ruby
django_ has quit [Quit: Leaving]
PaulCapestany has quit [Quit: .]
slash_join is now known as slash_nick
DonOtreply has joined #ruby
symm-_ has joined #ruby
symm- has quit [Ping timeout: 245 seconds]
gizmore has quit [Ping timeout: 240 seconds]
bluOxigen_ has left #ruby [#ruby]
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
hobodave has joined #ruby
dc1 has quit [Ping timeout: 250 seconds]
gizless has quit [Ping timeout: 240 seconds]
stannard has quit [Remote host closed the connection]
PaulCapestany has joined #ruby
vdamewood has quit [Quit: Life beckons.]
vdamewood has joined #ruby
snguyen has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ramortegui has quit [Quit: Ex-Chat]
postmodern has joined #ruby
zacstewa_ has quit [Ping timeout: 240 seconds]
minimalism has joined #ruby
framling has joined #ruby
ur5us has joined #ruby
stannard has joined #ruby
dhollinger has quit [Quit: WeeChat 1.4]
zacstewart has joined #ruby
jackjackdripper1 has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
jbrhbr has joined #ruby
jgpawletko has quit [Quit: jgpawletko]
nfk has joined #ruby
davedev24 has joined #ruby
davedev2_ has quit [Ping timeout: 250 seconds]
ur5us has quit [Ping timeout: 240 seconds]
momomomomo has quit [Quit: momomomomo]
DonOtreply has quit [Quit: DonOtreply]
hobodave has quit [Ping timeout: 245 seconds]
incite has quit [Quit: Leaving]
idefine has joined #ruby
PedramT_ has quit []
zast has left #ruby [#ruby]
s0n1c- has quit [Ping timeout: 260 seconds]
idefine has quit [Remote host closed the connection]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
karapetyan has joined #ruby
dupa has quit [Quit: Leaving]
DonOtreply has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
vdamewood has quit [Quit: Life beckons.]
zenlot1 has joined #ruby
Rodya_ has quit [Quit: Leaving...]
[Butch] has quit [Quit: I'm out . . .]
zenlot has quit [Ping timeout: 250 seconds]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
travisthenavi has joined #ruby
tomchap__ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 240 seconds]
mfb2 has quit [Remote host closed the connection]
zambini has quit [Quit: Leaving.]
malconis has joined #ruby
travisthenavi has quit [Client Quit]
travisthenavi has joined #ruby
mfb2 has joined #ruby
lubekpl has quit [Ping timeout: 240 seconds]
mwlang has quit [Quit: mwlang]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
malconis has quit [Remote host closed the connection]
malconis has joined #ruby
duckpuppy has joined #ruby
symm-_ has quit [Ping timeout: 276 seconds]
malconis has quit [Client Quit]
pawnbox has quit [Ping timeout: 264 seconds]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Jonah11_ has quit [Remote host closed the connection]
snguyen has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
s0n1c- has joined #ruby
s0n1c- has joined #ruby
duckpuppy has quit [Ping timeout: 252 seconds]
Mon_Ouie has quit [Quit: WeeChat 1.3]
FernandoBasso has quit [Quit: Leaving]
saneax_AFK is now known as saneax
stannard has quit [Remote host closed the connection]
davedev24 has quit [Remote host closed the connection]
sandstrom has joined #ruby
symm- has joined #ruby
stannard has joined #ruby
stannard has quit [Remote host closed the connection]
baweaver has joined #ruby
karapetyan has joined #ruby
einarj has quit [Remote host closed the connection]
n00bdev has joined #ruby
whippythellama has quit [Ping timeout: 264 seconds]
baweaver has quit [Ping timeout: 248 seconds]
mary5030 has quit [Remote host closed the connection]
s0n1c- has quit [Ping timeout: 260 seconds]
jbrhbr has quit [Quit: Leaving.]
joonty has joined #ruby
ziyadb has joined #ruby
jottr has joined #ruby
dopamean_ has quit [Ping timeout: 240 seconds]
peeja has quit [Ping timeout: 260 seconds]
pwnd_nsfw has quit [Read error: Connection reset by peer]
pwnd_nsfw has joined #ruby
elifoster has quit [Ping timeout: 240 seconds]
joonty has quit [Ping timeout: 240 seconds]
Yeomra has quit [Quit: WeeChat 1.4]
sandstrom has quit [Quit: My computer has gone to sleep.]
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davedev24 has joined #ruby
DrCode has joined #ruby
dc1 has joined #ruby
acidrainfall has quit [Quit: Leaving.]
jottr has quit [Ping timeout: 245 seconds]
karapetyan has quit [Remote host closed the connection]
sandstrom has joined #ruby
chadhs has quit [Quit: Textual IRC Client: www.textualapp.com]
whippythellama has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
zacstewart has quit [Ping timeout: 256 seconds]
mondok has quit [Remote host closed the connection]
pawnbox has joined #ruby
mondok has joined #ruby
travisthenavi has quit [Ping timeout: 276 seconds]
s0n1c- has joined #ruby
nofacade has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
toretore has joined #ruby
zacstewart has joined #ruby
casadei has quit [Remote host closed the connection]
casadei has joined #ruby
firstdayonthejob has quit [Ping timeout: 240 seconds]
dc1 has quit [Ping timeout: 245 seconds]
symm- has quit [Ping timeout: 240 seconds]
mg^2 has quit [Ping timeout: 260 seconds]
pawnbox has quit [Ping timeout: 272 seconds]
sftrabbit has quit [Quit: sftrabbit]
Rickmasta has joined #ruby
MaveonRemaes has quit [Quit: Leaving]
casadei has quit [Ping timeout: 260 seconds]
persistence has quit [Ping timeout: 256 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
skweek has joined #ruby
sepp2k has joined #ruby
Zai00 has quit [Quit: Zai00]
sandstrom has joined #ruby
<pizzaops> Anybody here with experience working with SOAP APIs in Ruby? As in leveraging them, not building them (god forbid). Most of the libraries seem unmaintained, although Savon has recent commits.
<pizzaops> My question I guess being, what library did you use/like, if any?
cdg has quit [Remote host closed the connection]
RubyRev has joined #ruby
duderon__ has quit [Quit: Textual IRC Client: www.textualapp.com]
n00bdev has quit [Remote host closed the connection]
RubyRev has quit []
zacstewart has quit [Ping timeout: 240 seconds]
jbrhbr has joined #ruby
RubyRev has joined #ruby
skade has joined #ruby
zacstewart has joined #ruby
VeryBewitching has quit [Quit: Konversation terminated!]
saltsa has quit [Ping timeout: 240 seconds]
<toretore> pizzaops: mostly i just do straight http - generate some xml, send it, then parse the reply xml
Deck` has quit [Ping timeout: 240 seconds]
<pizzaops> Mm. I'm going to give Savon a shot since some of my coworkers use it and "XML" makes me sad.
<toretore> depends on the scope of your usage though, for me it's usually just a single call to each api
<pizzaops> But I'll do that if I have to.
<toretore> i found savon to be a little limiting at times, which is why i'm doing straight http/xml
ricer2 has quit [Quit: Caught SystemExit exception.]
kobain has quit [Ping timeout: 240 seconds]
ptierno has joined #ruby
ptierno has joined #ruby
ptierno has quit [Client Quit]
sandstrom has quit [Quit: My computer has gone to sleep.]
davedev24 has quit [Remote host closed the connection]
framling has quit [Ping timeout: 276 seconds]
CrazyEddy has joined #ruby
bb010g has joined #ruby
sandstrom has joined #ruby
ptierno has joined #ruby
ptierno has quit [Client Quit]
jackjackdripper has quit [Quit: Leaving.]
whippythellama has quit [Ping timeout: 245 seconds]
KensoDev has quit [Quit: Textual IRC Client: www.textualapp.com]
s0n1c-__ has joined #ruby
stannard has joined #ruby
davedev24 has joined #ruby
duderonomy has joined #ruby
ramfjord_ has joined #ruby
kies^ has joined #ruby
persistence has joined #ruby
s0n1c-___ has joined #ruby
travisthenavi has joined #ruby
mfb2 has quit [Remote host closed the connection]
jackjackdripper has joined #ruby
s0n1c- has quit [Ping timeout: 264 seconds]
zenlot1 is now known as zenlot