apeiros_ changed the topic of #ruby to: Ruby 2.2.0; 2.1.5; 2.0.0-p598; 1.9.3-p551: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<bradland> good stuff, thx
<bradland> i'm digging around
<blahwoop> thanks
<Patt> is there a known diagram which shows how ruby, node and the packages intertwine?
evanjs has quit [Remote host closed the connection]
pietr0 has joined #ruby
<bradland> blahwoop: this app is difficult to debug because the LeaguePoints class also handles user input
doritostains has joined #ruby
<bradland> normally, what i'd do is fire up an IRB console, load up a new instance of the object, call some methods, then inspect the output
bronson has quit [Ping timeout: 252 seconds]
<bradland> but that's not really possible with this code because 'ask_scores' is part of your LeaguePoints class
<bradland> if you move that out to a CLI class, it'd be a lot easier to test
<eam> there's an uncolorize method to strip sequences
s00pcan has quit [Remote host closed the connection]
s00pcan_ has quit [Remote host closed the connection]
<shevy> cool
<eam> not sure if it's exhaustive
<blahwoop> i see
<eam> gsub /\033\[.*?m/, "" is probably good enough if you just want to nuke colors
snath has quit [Ping timeout: 264 seconds]
<shevy> now that is even better
<eam> there are other sequences that won't match that regex though
<blahwoop> i will give CLI a try next time
<blahwoop> see how that works
DadoCe has quit [Ping timeout: 244 seconds]
olivier_bK has quit [Ping timeout: 244 seconds]
<blahwoop> it's weird. doesn't throw an error out
<shevy> the \033 is equal to \e ?
<bradland> blahwoop: here's an example: https://gist.github.com/bradland/aa947f7e82b8e63c2f06
Channel6 has quit [Quit: Leaving]
<eam> shevy: yes
<bradland> see how CLI creates an instance of LeaguePoints and interacts with it
<shevy> I see... strangely I have somehow managed to turn the "\e" into "\\e"'s hmm
hephaestus_rg has quit [Ping timeout: 264 seconds]
<blahwoop> i see
<bradland> blahwoop: refresh my gist link
<bradland> i added a conditional to the last line
AndyBotwin has joined #ruby
s00pcan has joined #ruby
<bradland> wrapping the run! invocation in `if $0 == __FILE__` allows you to "require" this file from another lcoation
<blahwoop> i see
<blahwoop> cool
<eam> wow Fixnum#to_i differs weirdly from String#to_i
<bradland> and CLI#run! won't be triggered
<blahwoop> ill save this
sambao21 has joined #ruby
s00pcan_ has joined #ruby
<eam> >> "\e".ord.to_s.to_i(8)
<eval-in__> eam => 23 (https://eval.in/240398)
<eam> >> "\e".ord.to_i(8)
<eval-in__> eam => wrong number of arguments (1 for 0) (ArgumentError) ... (https://eval.in/240399)
<bradland> now, fire up IRB and `require_relative 'score'`
<eam> ruby what are you dooooing
snath has joined #ruby
<bradland> you should now be able to do LeaguePoints.new in a console
<bradland> so you can call methods and inspect output
<bradland> to see how it behaves
<blahwoop> i see
vdamewood has quit [Quit: Computer has gone to sleep.]
<blahwoop> cool. ill be back in 10 min
<blahwoop> thanks bradland
<bradland> i gotta run to dinner, but wanted to get you swtiched over
<bradland> bbiab
<bradland> you bet
blahwoop has quit [Remote host closed the connection]
babykosh has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
tesaf has quit [Quit: Lost terminal]
<eam> oh that's backwards
<eam> to_i's arg is the base of the string
<eam> duh
tubuliferous has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<eam> >> "\e".ord.to_s(8)
<eval-in__> eam => "33" (https://eval.in/240400)
<eam> there we go
hackeron_ has quit [Ping timeout: 264 seconds]
s00pcan has quit [Read error: Connection reset by peer]
sambao21 has quit [Ping timeout: 252 seconds]
s00pcan_ has quit [Remote host closed the connection]
s00pcan has joined #ruby
<godd2> >> class String; alias :to_decimal_from_base :to_i; end; "11".to_decimal_from_base(2)
<eval-in__> godd2 => 3 (https://eval.in/240401)
n008f4g_ has quit [Ping timeout: 264 seconds]
s00pcan has quit [Remote host closed the connection]
s00pcan has joined #ruby
<eam> >> class String; alias :to_decimal_from_base :to_i; end; "11".to_decimal_from_base(0)
<eval-in__> eam => 11 (https://eval.in/240402)
s00pcan has quit [Remote host closed the connection]
<Patt> should i be installing bootstrap-sass with bower or gem ?
<eam> weird that 0 is a valid radix
jenrzzz has joined #ruby
acrawford_ has quit [Ping timeout: 244 seconds]
n008f4g_ has joined #ruby
djbkd has quit [Remote host closed the connection]
<godd2> itd be the slowerst radix sort ever
<godd2> slowest*
geggam has quit [Ping timeout: 265 seconds]
s00pcan has joined #ruby
<eam> interestingly the highest allowable radix is 37 which means the US alphabet is the only allowable alphabet to extend higher base numbers
<eam> that's gotta be annoying for non-english speakers
hackeron has joined #ruby
ta_ has joined #ruby
<godd2> eam more generally, non-latin-alphabet-character-havers
poetazus has quit [Remote host closed the connection]
Fire-Dragon-DoL has joined #ruby
Fire-Dragon-DoL has quit [Max SendQ exceeded]
sambao21 has joined #ruby
kotk_ has joined #ruby
SilkFox_ has joined #ruby
danielcharles has quit [Read error: Connection reset by peer]
<eam> well, except it's specifically the character set from US-ASCII
danielcharles has joined #ruby
Fire-Dragon-DoL has joined #ruby
<eam> there are plenty of latin alphabet characters which aren't in a-z
nanoyak has quit [Quit: Computer has gone to sleep.]
s00pcan_ has joined #ruby
kotk has quit [Ping timeout: 244 seconds]
s00pcan_ has quit [Remote host closed the connection]
<godd2> thats true
<eam> I guess the ISO basic latin alphabet is the same thing huh
d10n-work has joined #ruby
s00pcan_ has joined #ruby
<workmad3> eam: and you could also unambigously assign different values to upper and lower case, giving you 62 characters without roaming into symbols or non-latin glyphs
jenrzzz has quit [Ping timeout: 244 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
ta_ has quit [Ping timeout: 245 seconds]
s00pcan_ has quit [Remote host closed the connection]
jenrzzz has joined #ruby
emmesswhy has joined #ruby
SilkFox_ has quit [Ping timeout: 265 seconds]
<shevy> eam digs deep into encoding
<eam> and oddly, base16 allows for 17 characters to comprise the number string
<eam> 0-9a-fx
<eam> but only with "x" as the second digit
djbkd has joined #ruby
valeriansaliou has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
vdamewood has joined #ruby
SilkFox_ has joined #ruby
silkfox has joined #ruby
<eam> >> [15,16,17,33,34,35,36].map {|n| "0x10".to_i(n)}
<eval-in__> eam => [0, 16, 0, 0, 38182, 40460, 42804] (https://eval.in/240403)
maestrojed has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
Takle has quit [Remote host closed the connection]
renderful has quit [Remote host closed the connection]
ghostmoth has quit [Quit: ghostmoth]
acrawford_ has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<shevy> hmm why would one use RestClient.get() rather than simply open-uri and open() ?
valeriansaliou has joined #ruby
leafybasil has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
vdamewood has quit [Quit: Computer has gone to sleep.]
tokik has joined #ruby
gsd has quit [Ping timeout: 245 seconds]
oo_ has quit [Ping timeout: 244 seconds]
<bricker> shevy: parsing, plus you can't use open-uri for post, put, delete, etc.
<bricker> shevy: error handling
<bricker> parameters
<bricker> lots of reasons
sevenseacat has joined #ruby
it0a has joined #ruby
oo_ has joined #ruby
babykosh_ has joined #ruby
s00pcan_ has joined #ruby
babykosh has quit [Ping timeout: 244 seconds]
babykosh_ is now known as babykosh
gsd has joined #ruby
ylluminarious_ has quit [Ping timeout: 265 seconds]
meschi has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 240 seconds]
pengin has quit [Remote host closed the connection]
recurrence has joined #ruby
pengin has joined #ruby
conniemj has quit [Quit: (null)]
aarwine has joined #ruby
sshao_ has quit [Remote host closed the connection]
sinequanon has joined #ruby
sinequanon has quit [Client Quit]
Guest80031 has joined #ruby
s00pcan_ has quit [Remote host closed the connection]
Guest80031 has left #ruby [#ruby]
jordonbiondo has joined #ruby
SOLDIERz has joined #ruby
workmad3 is now known as wm3|away
pozican has joined #ruby
pengin has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
blizzy is now known as blizzy
studiotate has quit [Quit: Lingo - http://www.lingoirc.com]
<pozican> are these code snippets the same? http://pastie.org/pastes/9819240/text
<bricker> pozican: no
livingstn has joined #ruby
<pozican> bricker: hrm, am I misunderstanding the << operator?
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
s00pcan_ has joined #ruby
jordonbiondo has quit [Ping timeout: 245 seconds]
<sevenseacat> definitely not the same
<bricker> pozican: it looks more like you are misunderstanding =
<pozican> :(
<pozican> I'm trying to understand `stdout << data if stream == :stdout`
SOLDIERz has quit [Ping timeout: 256 seconds]
<bricker> pozican: that works probably as you expect it would
<bricker> pozican: the second snippet is doing... something else
<pozican> the second snippet was my understanding :(
<terrellt> I kind of expect stdout = data to set the local variable "stdout" to data.
pietr0 has quit [Quit: pietr0]
nicolastarzia has quit [Remote host closed the connection]
valeriansaliou has quit [Read error: Connection reset by peer]
skj3gg has joined #ruby
valeriansaliou has joined #ruby
<pozican> Ok, what would i call the << operator?
<sevenseacat> an append operator
<pozican> oh
scripore has joined #ruby
roolo has joined #ruby
Hijiri has quit [Ping timeout: 264 seconds]
codefo has joined #ruby
valeriansaliou has quit [Client Quit]
deconfigured has quit [Ping timeout: 244 seconds]
mikecmpbll has quit [Quit: ciao.]
icebourg has quit []
roolo has quit [Ping timeout: 264 seconds]
<pozican> I can't figure out why on_request('exit-status') gets called back on freebsd systems but not ubuntu systems
<pozican> inside of Net::SSH::Connection::Session#exec
codefo has quit [Ping timeout: 245 seconds]
Xspl0it has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
Hijiri has joined #ruby
DadoCe has joined #ruby
Xsploit has quit [Ping timeout: 264 seconds]
s00pcan_ has quit [Remote host closed the connection]
pwnz0r has quit [Remote host closed the connection]
emmesswhy has quit [Quit: Leaving]
pwnz0r has joined #ruby
Mia has quit [Read error: Connection reset by peer]
s00pcan_ has joined #ruby
nunayerBeezwax has quit []
s00pcan_ has quit [Remote host closed the connection]
DadoCe has quit [Ping timeout: 255 seconds]
jenrzzz has quit [Ping timeout: 244 seconds]
beneggett has quit [Ping timeout: 256 seconds]
pwnz0r has quit [Ping timeout: 264 seconds]
skj3gg has quit [Quit: ZZZzzz…]
Spami has quit [Read error: Connection reset by peer]
pen has quit [Remote host closed the connection]
pen has joined #ruby
jetblack has quit [Ping timeout: 244 seconds]
pdoherty has joined #ruby
delianides has joined #ruby
s00pcan_ has joined #ruby
TheRinger has joined #ruby
GaryOak_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby
s00pcan_ has quit [Remote host closed the connection]
iamninja has quit [Quit: ZZZzzz…]
alkoma has quit [Remote host closed the connection]
pen has quit [Ping timeout: 264 seconds]
sshao has joined #ruby
pdoherty has quit [Ping timeout: 240 seconds]
Spami has joined #ruby
delianides has quit [Ping timeout: 244 seconds]
thumpba has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
vinc has joined #ruby
mary5030 has joined #ruby
Rollabunna has joined #ruby
skj3gg has joined #ruby
sshao has quit [Ping timeout: 256 seconds]
Channel6 has joined #ruby
marr has quit [Ping timeout: 255 seconds]
Photism_ has quit [Quit: Leaving]
rbennacer has joined #ruby
graydot has joined #ruby
Rollabunna has quit [Ping timeout: 256 seconds]
Spami has quit [Quit: This computer has gone to sleep]
rpag has quit [Ping timeout: 265 seconds]
davasaurous has quit [Remote host closed the connection]
s00pcan_ has joined #ruby
s00pcan_ has quit [Remote host closed the connection]
beneggett has joined #ruby
pwh has quit []
babykosh has quit [Quit: babykosh]
rbennacer has quit [Ping timeout: 244 seconds]
pwh has joined #ruby
mleung_ has joined #ruby
baweaver has quit [Remote host closed the connection]
mleung has quit [Ping timeout: 256 seconds]
mleung_ is now known as mleung
pen has joined #ruby
Mdgd` has joined #ruby
<Mdgd`> Hey guys
<Mdgd`> I've got a weird issue in Rails and I was hoping you fellas could help me debug it.
Takle has joined #ruby
<Mdgd`> I've got an applicationcontroller where I set some instanced vars, one of which @user, which references the currently logged in user.
mrmargolis has joined #ruby
<Mdgd`> This basically does a .find() after establishing session[:id] isn't nil.
charliesome has joined #ruby
<zenspider> ... bring it back to ruby?
pen has quit [Remote host closed the connection]
<zenspider> otherwise, you prolly want #rubyonrails
nfk has quit [Quit: yawn]
linguini has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<Mdgd`> All across the application this works, e.g. I can call @user.first_name anywhere. Except in a new controller/view combination I just generated, where it always returns nil. I have no idea why.
<ericwood> hey ruby friends, I'm trying to organize a new project, but I'm not sure if I'm taking the right approach
<ericwood> what sayeth y'all to this code organization strategy, or lack thereof
<Mdgd`> I had to register for #rubyonrails so I figured I'd check here first :-/
robustus|Off has quit [Ping timeout: 264 seconds]
<sevenseacat> yes, you do, we like to keep spammers out
maestrojed has quit [Quit: Computer has gone to sleep.]
<Mdgd`> This ringing any bells though?
pen has joined #ruby
<ericwood> the part that I'm really not happy with is how the Shoes app in the gui.rb file just kinda...execute
<ericwood> s
<postmodern> how would you do .to be_nil.or(!be_foo) in rspec3?
robustus|Off has joined #ruby
<shevy> Mdgd` we kind chase the railsers into their own channel ;)
<postmodern> can't seem to mix the not operator with .or()
robustus|Off is now known as robustus
mleung has quit [Read error: Connection reset by peer]
Takle has quit [Ping timeout: 240 seconds]
pietr0 has joined #ruby
Trep has quit [Ping timeout: 252 seconds]
Mdgd` is now known as Mdgd
zorak8 has quit [Ping timeout: 264 seconds]
Trep has joined #ruby
Mdgd is now known as Mdgd`
mleung has joined #ruby
emmesswhy has joined #ruby
<ericwood> the fact that I'm creating an instance of Sequencer at the bottom of sequencer.rb also worries me
baroquebobcat has joined #ruby
mleung has quit [Client Quit]
<zenspider> ericwood: a gui?
<ericwood> zenspider: for guiness
s00pcan_ has joined #ruby
zorak8 has joined #ruby
<zenspider> I'd push the instantiation into a bin/script
conniemj has joined #ruby
<zenspider> makes for more testability too
<ericwood> oooh good point
<zenspider> I don't know how testable shoes apps are tho
<ericwood> this whole thing will be not testable
<ericwood> the critical piece of it is that thread with the timer thing going on
jordsmi has quit [Quit: Connection closed for inactivity]
<ericwood> zenspider: what do you think about the @@ variables?
Hobogrammer has joined #ruby
s00pcan_ has quit [Remote host closed the connection]
duncannz has quit [Ping timeout: 245 seconds]
s00pcan_ has joined #ruby
<ericwood> there's a couple big state things I need to keep track of across all of my bits and pieces
leafybasil has joined #ruby
<zenspider> hrm... where's @@output?
Trep has quit [Read error: Connection reset by peer]
<ericwood> oof I haven't committed it yet, it gets defined in the initializer of the Sequencer class
<ericwood> it basically just looks like "@@input = UniMIDI::Input.use(:first)"
<zenspider> ok. just confused. seems fine
<ericwood> woohoo
<zenspider> but I'm not in the camp of ZOMG NO CLASS VARS
<zenspider> and many are
Trep has joined #ruby
bricker has quit [Ping timeout: 244 seconds]
conniemj has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
sankaber has joined #ruby
s00pcan_ has quit [Remote host closed the connection]
<ericwood> if this were a more serious project I'd be inclined to be in that camp
<ericwood> but it's so convenient for sharing state in this case :\
codeFiend has quit [Quit: codeFiend]
Kazuhiro has joined #ruby
tuelz1 has joined #ruby
Photism has joined #ruby
tuelz has quit [Read error: Connection reset by peer]
<zenspider> I still access my cvars via methods 99% of the time
<Kazuhiro> Is the cost of GC::Profiler.enable expensive in ruby 2.1.5? Or is this a negligible performance hit?
leafybasil has quit [Ping timeout: 240 seconds]
reset has quit [Quit: Leaving...]
yfeldblum has quit [Ping timeout: 244 seconds]
vin` has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
Techguy305 has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
<zenspider> Kazuhiro: tenderlove would be a better person to answer that than me... but I believe it is fairly negligible. IIRC, it isn't sampling, but it is still fairly lightweight
<zenspider> not for production... but for measurement
jenrzzz has quit [Ping timeout: 264 seconds]
ishikawa91 has joined #ruby
<pipework> You could benchmark your app with and without profiling. :D
ahem has joined #ruby
<Kazuhiro> ok thanks.
ishikawa91 has left #ruby [#ruby]
emmesswhy has joined #ruby
yfeldblum has joined #ruby
Trep has quit [Read error: Connection reset by peer]
pwh has quit []
djbkd has quit [Quit: My people need me...]
_1_whatsapp has joined #ruby
Techguy305 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Trep has joined #ruby
lethan has joined #ruby
s00pcan_ has joined #ruby
<ericwood> here goes nothingggggggggg
maletor has quit [Quit: Computer has gone to sleep.]
TheRinger has quit [Remote host closed the connection]
DadoCe has joined #ruby
lampd1 has joined #ruby
s00pcan_ has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
Trep has quit [Read error: Connection reset by peer]
recurrence has quit [Quit: recurrence]
graydot has quit [Quit: graydot]
omosoj has joined #ruby
claptor has joined #ruby
Trep has joined #ruby
oo_ has quit [Remote host closed the connection]
DadoCe has quit [Ping timeout: 264 seconds]
<ericwood> maybe I'm misunderstanding require...
<ericwood> so I have my repo: https://github.com/eric-wood/sequencer
<ericwood> I'm using that little shoes executable to get the jruby stuff going (don't worry about it)
<ericwood> so, I'm running "shoes bin/sequencer.rb"
<ericwood> it's throwing an error here saying it can't find the file: https://github.com/eric-wood/sequencer/blob/master/lib/sequencer.rb#L4
pwnz0r has joined #ruby
pwnz0r has quit [Remote host closed the connection]
<ericwood> what am I missing here?
<ericwood> is require trying to go from the base dir I'm running it from?
bayed has quit [Quit: Connection closed for inactivity]
Trep has quit [Read error: Connection reset by peer]
<ericwood> hmmm, changing it to require_relative fixes it, I guess that was the case
<pontiki> i don't see anywhere that you add the ./lib directory to your load path
econerd4ever has quit [Remote host closed the connection]
s00pcan has quit [Read error: Connection reset by peer]
codeFiend has joined #ruby
_1_whatsapp has quit [Quit: WhatsChat IRC Android APP]
Trep has joined #ruby
oo_ has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
<ericwood> where would be the correct place to do that?
amclain has joined #ruby
pen has quit []
mjuszczak has quit []
ilias0029 has quit [Ping timeout: 240 seconds]
mjuszczak has joined #ruby
s00pcan has joined #ruby
paulfm has joined #ruby
<pontiki> i'm not sure when working with Shoes; i've never done so
AlexRussia has quit [Ping timeout: 245 seconds]
<pontiki> but if the shoes script is what starts everything off, that might be the place to do it?
bradland_ has joined #ruby
<ericwood> hmmm yeah
vin` has quit [Ping timeout: 256 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
greenbagels has joined #ruby
bradland_ has left #ruby [#ruby]
bradland_ has joined #ruby
hamakn has joined #ruby
<bradland_> any thoughts/endorsements for http://readruby.io/ ?
<bradland_> it’s dry, but i’m kind of digging it
fenzil has joined #ruby
paulfm has quit [Quit: Zzzzz...]
josephndenton has quit [Ping timeout: 244 seconds]
<ericwood> never seen it, looks really thorough though
Hijiri has quit [Ping timeout: 245 seconds]
davasaurous has joined #ruby
omosoj has quit [Quit: leaving]
baroquebobcat has joined #ruby
nanoyak has joined #ruby
<bradland_> this is kind of meta, but it’s a slow night. how does the eval-in bot work?
jaequery has joined #ruby
<bradland_> is it an open-source bot? and how does the operater prevent someone from doing something ugly with it?
<pipework> bradland_: it pair programs with zenspider's subconscious.
Techguy305 has joined #ruby
<sevenseacat> its not open source... i think charliesome said that wasnt going to happen because its a huge hack or something
<bradland_> that’s unkind. even for a bot.
<bradland_> i see
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bradland_> i’m curious how it’s saneboxed.
<pipework> Would be kind of fun though to pass whatever command to a linux container that gets dropped afterwards.
<charliesome> bradland_: sandbox is a modified version of this: http://www.ucw.cz/moe/
<bradland_> sweet stuff
<charliesome> i might open source it at some point, but it's just a matter of time and energy
davasaurous has quit [Ping timeout: 255 seconds]
<sevenseacat> ah cool :)
<bradland_> understand completely
davasaurous has joined #ruby
<ericwood> hmmm apparently shoes doesn't mesh well with me spinning off another thread elsewhere
<charliesome> i also need to move to a different sandbox because this one only works on 32 bit and doesn't work at all on newer kernels
Hijiri has joined #ruby
<bradland_> >> puts “hello"
<charliesome> so the evaluator is running ubuntu 10.04 32 bit
<bradland_> hrm
<charliesome> blargh don't tell me it's dead
<ericwood> my background thread works fine, but as soon as I start up the Shoes app it keeps the thread from executing until the shoes app is killed
<bradland_> i noticed it was unresponsive earlier. looks like it’s still on siesta.
eval-in__ has quit [Remote host closed the connection]
eval-in has joined #ruby
<charliesome> >> 1+2
<bradland_> >>puts “hello"
<eval-in> charliesome => 3 (https://eval.in/240410)
renderful has joined #ruby
seitensei has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gsd has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s00pcan_ has joined #ruby
s00pcan_ has quit [Read error: Connection reset by peer]
AndyBotwin has quit [Read error: Connection reset by peer]
ptrin has joined #ruby
az7ar_away has quit [Ping timeout: 265 seconds]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Trep has quit [Read error: Connection reset by peer]
renderful has quit [Ping timeout: 265 seconds]
nicolastarzia has joined #ruby
rbennacer has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ptrin> Is this a good place to request a code review?
<ericwood> sure
<agent_white> Nope! This is the official ruby cooking channel.
<ptrin> Do you think it's worth making it OO?
fandi has quit [Remote host closed the connection]
<charliesome> ptrin: probably not for a script as short and simple as this
<charliesome> although there's a few things you could do to make it read a little more nicely, one sec
mjuszczak has quit []
<bradland_> only if you plan on using any of this elsewhere (in a larger program)
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<charliesome> ptrin: you can use reject and map in get_planes_array rather than manually building up an array: https://gist.github.com/charliesome/7c61c929c226c22eb727
s00pcan_ has joined #ruby
nicolastarzia has quit [Ping timeout: 245 seconds]
skj3gg has joined #ruby
codefo has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
<ptrin> charliesome: ah, cool
s00pcan_ has quit [Remote host closed the connection]
AlexRussia has joined #ruby
<bradland_> ptrin: that applies to most places where you’ve initialized an empty array and push on to it.
nanoyak has quit [Quit: Computer has gone to sleep.]
<charliesome> ptrin: with the regex stuff, you can check for a match with the =~ operator and then use the back ref variables rather than indexing the match object
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<charliesome> that trick is a double edged sword though, it can make code more concise and easy to read sometimes, and other times it can just make things confusing
<charliesome> still worthwhile having that in your toolbox though
<ptrin> Yeah, =~ is something that I've missed out on so far
<ptrin> wasn't covered by codecademy :)
<gr33n7007h> agreed on gistfile2 more readable to me :)
josephndenton has joined #ruby
deavid has quit [Ping timeout: 244 seconds]
adriancb has joined #ruby
codefo has quit [Ping timeout: 264 seconds]
s00pcan_ has joined #ruby
valeriansaliou has joined #ruby
kapil__ has joined #ruby
valeriansaliou has quit [Excess Flood]
<charliesome> ptrin: you can also use map for building up hashes too, if you call to_h at the end: https://gist.github.com/charliesome/f28667b157c1e315f90c
jordonbiondo has joined #ruby
<charliesome> also rather than passing the plane hash into each get_ method and having that method add data to the hash, I think you'd be better off returning that data from the method and doing the assignment in the main loop
<ptrin> right
az7ar_away has joined #ruby
_maes_ has joined #ruby
Neomex has quit [Read error: Connection reset by peer]
SilkFox_ has quit [Ping timeout: 252 seconds]
s00pcan_ has quit [Quit: Lost terminal]
eka has joined #ruby
SilkFox_ has joined #ruby
osvico has joined #ruby
<ptrin> charliesome: thanks for taking a look!
<charliesome> np, any time!
Fretta has quit [Quit: Textual IRC Client: www.textualapp.com]
AlSquire has quit [Quit: This computer has gone to sleep]
s00pcan_ has joined #ruby
bronson has joined #ruby
TinkerTyper has quit [Ping timeout: 255 seconds]
beneggett has quit [Quit: Textual IRC Client: www.textualapp.com]
oleo__ has joined #ruby
davasaurous has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
oleo is now known as Guest71246
banister has joined #ruby
Guest71246 has quit [Ping timeout: 240 seconds]
maletor has joined #ruby
icebourg has joined #ruby
phutchins has quit [Ping timeout: 265 seconds]
bronson has quit [Ping timeout: 264 seconds]
deavid has joined #ruby
alkoma has joined #ruby
paulfm has joined #ruby
ahem has quit [Read error: Connection timed out]
TinkerTyper has joined #ruby
davasaurous has joined #ruby
krz has joined #ruby
pdoherty has joined #ruby
rbennacer has joined #ruby
roadworks has joined #ruby
lemur has joined #ruby
jordonbiondo has quit [Ping timeout: 245 seconds]
DadoCe has joined #ruby
JollyRoger12 has joined #ruby
JollyRoger12 has left #ruby [#ruby]
jenrzzz has joined #ruby
ta_ has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
JollyRoger12 has joined #ruby
pdoherty has quit [Ping timeout: 240 seconds]
wolf4ood has quit [Quit: (null)]
wallerdev has quit [Quit: wallerdev]
d10n-work has quit [Quit: Connection closed for inactivity]
recurrence has joined #ruby
rbennacer has quit [Remote host closed the connection]
jaequery has joined #ruby
Rollabunna has joined #ruby
ta_ has quit [Ping timeout: 244 seconds]
Dolphi has joined #ruby
n008f4g_ has quit [Ping timeout: 252 seconds]
Dolphi has quit [Client Quit]
<JollyRoger12> hi
hiyosi has joined #ruby
<agent_white> hiyo
Rollabunna has quit [Ping timeout: 245 seconds]
codeFiend has quit [Quit: codeFiend]
whomp has quit [Ping timeout: 240 seconds]
<JollyRoger12> what language maeks the most $$$?
ta_ has joined #ruby
<JollyRoger12> the most green
XvXBladeXvX has joined #ruby
<XvXBladeXvX> hi all
<JollyRoger12> hiho
oo_ has quit [Remote host closed the connection]
<XvXBladeXvX> Is this an active ruby chat?
<JollyRoger12> yeah
<sevenseacat> we try.
conniemj has joined #ruby
tumaru has joined #ruby
<JollyRoger12> not at the moment but usually it is
<XvXBladeXvX> I see, well obviously I am new here.. I plan on checking back frequently
oo_ has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
oo_ has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 244 seconds]
oo_ has joined #ruby
maestrojed has joined #ruby
aagdbl has joined #ruby
JollyRoger12 has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
conniemj has quit [Ping timeout: 252 seconds]
Spami has joined #ruby
jgrevich has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
ajaiswal has joined #ruby
whomp has joined #ruby
whomp has quit [Client Quit]
ta_ has joined #ruby
silkfox has quit [Ping timeout: 240 seconds]
bradland_ has quit [Quit: bradland_]
<ericwood> it's more active during work hours
<XvXBladeXvX> Oh okay.
wallerdev has joined #ruby
* sevenseacat is in work hours
hmsimha has quit [Ping timeout: 252 seconds]
<XvXBladeXvX> I'm messing around with esxi at the moment anyway.
* sevenseacat is messing around with promotions in Spree
thumpba has joined #ruby
reinaldob has joined #ruby
ta_ has quit [Ping timeout: 264 seconds]
sshao has joined #ruby
deric_skibotn has quit [Ping timeout: 264 seconds]
<ericwood> what would be some good resources on code organization for ruby apps?
<ericwood> I'm really weak in this area and would love to read about it
<pipework> ericwood: Mostly I just look through gems I like or people I think aren't terrible's code.
reinaldob has quit [Ping timeout: 252 seconds]
<ericwood> tumaru: get the fuck out you spammer
<ericwood> PM spam is intolerable
<pipework> A lot of people split up code by what kind of thing it is, I deal with it, but I prefer to split by vertical features, having a pseudovertical for shared behaviours.
_maes_ has joined #ruby
acrawford_ has quit [Remote host closed the connection]
<ericwood> yeah, I'll just keep reading source code
sshao has quit [Ping timeout: 255 seconds]
ponga has joined #ruby
<ericwood> most of my ruby work falls either into the Rails category or simpler things that require minimal architecture
ptrin has quit [Quit: Page closed]
<ponga> hi ericwood
<ericwood> hello
Kazuhiro has left #ruby [#ruby]
Takle has joined #ruby
<ericwood> I'm really upset with Shoes right now...I can't seem to split some threading code outside of the block the DSL takes in
<ericwood> it makes no sense
baroquebobcat has joined #ruby
<ericwood> the threading code is in a separate class; in the shoes DSL block I instantiate it thinking that'd work, but no
bradland_ has joined #ruby
<ericwood> but if I copy/paste the thread code into that block directly it works
thumpba has quit [Remote host closed the connection]
Techguy305 has quit [Ping timeout: 252 seconds]
paulfm has quit [Quit: Zzzzz...]
dc__ has quit [Remote host closed the connection]
davasaurous has quit [Remote host closed the connection]
Guest67716 is now known as bl4ckdu5t
bl4ckdu5t is now known as Guest28988
hmsimha has joined #ruby
Guest28988 is now known as bl4ckdu5t
bl4ckdu5t has quit [Changing host]
bl4ckdu5t has joined #ruby
Takle has quit [Ping timeout: 256 seconds]
cpt_yossarian has joined #ruby
Hijiri has quit [Ping timeout: 265 seconds]
metadave has joined #ruby
<bradland_> when using attr_accessor, what is the difference in accessing the value using a class variable versus just the method name?
aagdbl has quit [Quit: This computer has gone to sleep]
<bradland_> for example, these two versions: https://gist.github.com/bradland/33a0ef84e4252c36b24e
radic has quit [Ping timeout: 245 seconds]
<bradland_> is there any difference at all?
<bradland_> bar vs @bar?
arescorpio has quit [Excess Flood]
metadave has quit [Client Quit]
Sawbones has joined #ruby
radic has joined #ruby
lampd1 has quit [Read error: Connection reset by peer]
lampd1 has joined #ruby
<pipework> One is a method call, the other is referencing an instance variable
<bradland_> so unless a getter method is defined, the values are always equivalent
<pipework> Nope.
<ericwood> @bar is inaccessible until you create the getter
<pipework> The instance variable will always point to the value, the method call can do anything.
<ericwood> well, inaccessible outside of the scope of the class instance
<pipework> ericwood: Not correct, actually.
<ericwood> how so?
<pipework> ericwood: instance_variable_get
<ericwood> sorry I meant without reflection bits
<bradland_> updated the gist with a circumstance where the difference becomes obvious: https://gist.github.com/bradland/33a0ef84e4252c36b24e
<ericwood> but yeah it's Ruby, nothing is truly private
<bradland_> yeah, i’m used to that by now
Techguy305 has joined #ruby
Techguy305 has quit [Max SendQ exceeded]
braincrash has quit [Quit: bye bye]
davasaurous has joined #ruby
hephaestus_rg has joined #ruby
<bradland_> pipework: what circumstance would they differ were a getter is not defined?
ohaibbq has joined #ruby
Techguy305 has joined #ruby
<pipework> bradland_: you'd probably raise an exception trying to call the getter without it.
duncannz has joined #ruby
<pipework> An instance method references a value. That's all it can do. A method can do anything.
<bradland_> have another look at the code
<bradland_> attr_accessor :foo
<bradland_> err :bar
<pipework> When you say getter not defined, what do you mean?
<bradland_> so, in my example, if the method bar were not defined
<pipework> Do you mean that there's no #foo method, or that there's an alternative foo method other than the one that attr_reader and attr_accessor defines?
<bradland_> both @bar and bar still work
<pipework> bradland_: It is defined, you're redefining it.
<bradland_> well, technicall bar is defined by attr_accessor
<bradland_> ok, i see. i was misunderstanding what you meant earlier
<pipework> If it were not defined, I'd expect it to not be defined.
davasaurous has quit [Remote host closed the connection]
<pipework> bradland_: What are you confused about though?
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<bradland_> i meant the difference between the bar method being defined by calling attr_accessor versus defining it explicitly in the class body
<bradland_> i’ll gist it up
Fusl has quit [Ping timeout: 250 seconds]
<pipework> bradland_: Not much.
bigmac has quit [Read error: Connection reset by peer]
jfarmer has joined #ruby
<pipework> One is using the class method called .attr_accessor to define instance methods for the attribute, the other is a method you wrote.
bigmac_ has joined #ruby
mleung has joined #ruby
St1gma has quit [Ping timeout: 250 seconds]
<ericwood> weird, does jRuby not support -d?
<ericwood> I'm getting all kinds of weirdness trying that
<pipework> bradland_: I'm not sure what you're asking. Is it about general equivalency, or what?
gtrak has quit [Ping timeout: 245 seconds]
mengu has quit [Remote host closed the connection]
bigmac_ has quit [Read error: Connection reset by peer]
braincrash has joined #ruby
<bradland_> i understand it now
mengu has joined #ruby
<bradland_> it’s a simple as the difference between accessing the class variable directly, versus calling the getter
bigmac_ has joined #ruby
aagdbl has joined #ruby
<roadworks> Have you ever had a good mentor?
<pipework> Not a class variablke, no.
adriancb has quit [Remote host closed the connection]
<pipework> bradland_: A class variable is something entirely different. It's about accessing an instance variable directly, or calling a method.
braincra- has joined #ruby
<bradland_> sry, instance variable
<bradland_> @bar
bigmac_ has quit [Read error: Connection reset by peer]
bigmac_ has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
mengu has quit [Read error: No route to host]
mengu__ has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<bradland_> roadworks: are you asking me?
Sawbones has quit [Remote host closed the connection]
aagdbl has quit [Client Quit]
Techguy305 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Techguy305 has joined #ruby
zorak8 has quit [Ping timeout: 244 seconds]
Sawbones has joined #ruby
braincrash has quit [Ping timeout: 244 seconds]
thomasfedb_ has quit [Quit: ZNC - http://znc.sourceforge.net]
DadoCe has quit [Remote host closed the connection]
alexherbo2 has joined #ruby
blizzy has quit [Ping timeout: 264 seconds]
mleung has quit [Quit: mleung]
recurrence has quit [Quit: recurrence]
davedev24_ has quit []
davedev24_ has joined #ruby
tumaru has quit [K-Lined]
fenzil has quit [Read error: Connection reset by peer]
fandi has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
fandi has quit [Max SendQ exceeded]
bradland_ has quit [Quit: bradland_]
fandi has joined #ruby
fandi has quit [Max SendQ exceeded]
Joufflu has joined #ruby
bluOxigen has joined #ruby
fenzil has joined #ruby
Musashi007 has joined #ruby
fandi has joined #ruby
livingstn has quit []
dc_ has joined #ruby
hasB4K_ is now known as hasB4K
hasB4K has joined #ruby
hasB4K has quit [Changing host]
roadworks has quit [Quit: Page closed]
dc_ has quit [Remote host closed the connection]
yeticry has quit [Ping timeout: 245 seconds]
yeticry has joined #ruby
codefo has joined #ruby
ponga has quit [Read error: Connection reset by peer]
lele has quit [Ping timeout: 244 seconds]
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
lemur has quit [Read error: Connection reset by peer]
lemur has joined #ruby
lele has joined #ruby
codefo has quit [Ping timeout: 245 seconds]
ponga has quit [Read error: Connection reset by peer]
jefus__ has joined #ruby
ponga has joined #ruby
valeriansaliou has joined #ruby
mary5030 has quit [Remote host closed the connection]
blizzy has joined #ruby
jenrzzz has joined #ruby
oo_ has quit [Remote host closed the connection]
panga has joined #ruby
jefus_ has quit [Ping timeout: 245 seconds]
valeriansaliou has quit [Ping timeout: 244 seconds]
ponga has quit [Ping timeout: 256 seconds]
sigurding has joined #ruby
vinc has quit [Ping timeout: 264 seconds]
_maes_ has joined #ruby
sshao has joined #ruby
vinc has joined #ruby
devoldmx_ has quit []
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
devoldmx has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
jfarmer has quit [Quit: Textual IRC Client: www.textualapp.com]
dfinninger has joined #ruby
sshao has quit [Ping timeout: 255 seconds]
duncannz has quit [Ping timeout: 255 seconds]
aagdbl has joined #ruby
ARCADIVS has joined #ruby
Sawbones has quit [Remote host closed the connection]
bronson has joined #ruby
chipotle has quit [Ping timeout: 264 seconds]
thumpba has joined #ruby
agent_white has quit [Quit: leaving]
<scripore> why do some variables begin with an underscore?
thumpba has quit [Remote host closed the connection]
panga has quit [Read error: Connection reset by peer]
<scripore> I remember seeing it one time before... haven't since
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
roolo has joined #ruby
ta_ has joined #ruby
jenrzzz has joined #ruby
ddd has quit [Quit: leaving]
thumpba has joined #ruby
mrmargolis has quit [Remote host closed the connection]
pietr0 has quit [Quit: pietr0]
bronson has quit [Ping timeout: 264 seconds]
mrmargolis has joined #ruby
<pipework> scripore: Because they really don't want you to access them. Utility or privacy, but not in the visibility sense.
<pipework> It's the "really, don't screw with these."
<pipework> Or do you mean locals starting with underscore?
skj3gg has quit [Quit: ZZZzzz…]
Musashi007 has quit [Quit: Musashi007]
roolo has quit [Ping timeout: 240 seconds]
sigurding has quit [Quit: sigurding]
ta_ has quit [Ping timeout: 244 seconds]
chipotle has joined #ruby
thumpba has quit [Remote host closed the connection]
mrmargolis has quit [Ping timeout: 244 seconds]
<scripore> local variables. so it's just a naming convention for the benefit of the programmer to indicate that they shouldn't be accessed?
thumpba has joined #ruby
jack_rabbit has quit [Ping timeout: 264 seconds]
thumpba has quit [Remote host closed the connection]
<pipework> scripore: Ah, with locals, it means that the local isn't used.
Spami has quit [Quit: This computer has gone to sleep]
XvXBladeXvX has quit [Ping timeout: 264 seconds]
cpt_yossarian has quit [Ping timeout: 245 seconds]
oleo__ has quit [Quit: Verlassend]
thumpba has joined #ruby
mleung has joined #ruby
agrinb has quit [Remote host closed the connection]
nanoyak has joined #ruby
agrinb has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
dfinninger has quit [Remote host closed the connection]
konsolebox has joined #ruby
bigmac_ has quit [Read error: Connection reset by peer]
fedexo_ has joined #ruby
fedexo has joined #ruby
<scripore> ah, okay. thanks.
pwnz0r has joined #ruby
thumpba_ has joined #ruby
russt has quit [Quit: russt]
davasaurous has joined #ruby
blahwoop has joined #ruby
mengu__ has quit [Remote host closed the connection]
mleung has quit [Quit: mleung]
hanachin has joined #ruby
<blahwoop> hey bradland
<blahwoop> im back!
mengu has joined #ruby
mengu has joined #ruby
<pipework> He missed you so much.
<blahwoop> lol
<blahwoop> i hope so
bigmac has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
it0a has quit [Quit: WeeChat 1.0.1]
SilkFox_ has quit [Ping timeout: 244 seconds]
bigmac has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
thumpba has quit [Ping timeout: 245 seconds]
oleo has joined #ruby
<blahwoop> i can't seem to figure out why line 67 is not working liek it supposed to. team_list only holds one team only. https://gist.github.com/bradland/aa947f7e82b8e63c2f06
DonOtreply has quit [Quit: DonOtreply]
<blahwoop> i went into irb trouble shoot it
<blahwoop> when i create a new team and push it into team_list individually it works
<blahwoop> but it won't work with the find_team method
DonOtreply has joined #ruby
pdoherty has joined #ruby
codeFiend has joined #ruby
mengu has quit [Ping timeout: 255 seconds]
davasaurous has quit [Ping timeout: 264 seconds]
p0wn3d_mhs has quit [Ping timeout: 250 seconds]
<blahwoop> any ideas
x77686d has quit [Quit: x77686d]
<pipework> Mostly ones having to do with liquor, why?
russt has joined #ruby
timonv_ has quit [Ping timeout: 264 seconds]
oo_ has quit [Remote host closed the connection]
TripTastic has joined #ruby
oo_ has joined #ruby
<epitron> pipework: i wouldn't say it's to stop them from being accessed... it's more to ensure they don't collide
pdoherty has quit [Ping timeout: 245 seconds]
<epitron> i mean, that's how i usually see them
conniemj has joined #ruby
V_Ve has joined #ruby
thumpba has joined #ruby
Crazy_Atheist has quit [Ping timeout: 264 seconds]
fedexo has quit [Read error: Connection reset by peer]
fedexo_ has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
fedexo__ has joined #ruby
oo_ has joined #ruby
fedexo has joined #ruby
oo_ has quit [Remote host closed the connection]
Rollabunna has joined #ruby
krz has quit [Ping timeout: 245 seconds]
cobakobodob has quit [Ping timeout: 244 seconds]
thumpba_ has quit [Ping timeout: 264 seconds]
x77686d has joined #ruby
conniemj has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
skj3gg has joined #ruby
krz has joined #ruby
Rollabunna has quit [Ping timeout: 264 seconds]
TripTastic has left #ruby ["Leaving"]
Crazy_Atheist has joined #ruby
gsd has joined #ruby
aagdbl0 has joined #ruby
oo_ has quit [Remote host closed the connection]
aagdbl has quit [Ping timeout: 245 seconds]
mjuszczak has joined #ruby
segfalt has quit [Quit: Connection closed for inactivity]
oo_ has joined #ruby
coderwill has joined #ruby
mleung has joined #ruby
konsolebox has quit [Ping timeout: 245 seconds]
mjuszczak has quit []
Takle has joined #ruby
astrobun_ has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<astrobun_> lol
coderwill has joined #ruby
Morkel has joined #ruby
mleung has quit [Quit: mleung]
Takle has quit [Ping timeout: 265 seconds]
coderwill has quit [Client Quit]
Channel6 has quit [Quit: Leaving]
towski_ has quit [Remote host closed the connection]
JBreit has joined #ruby
baltazore has quit [Remote host closed the connection]
oo_ has quit [Read error: Connection reset by peer]
oo__ has joined #ruby
JBreit has left #ruby [#ruby]
jetblack has joined #ruby
mary5030 has joined #ruby
mleung has joined #ruby
pwnz0r has quit [Remote host closed the connection]
SparkMasterTape has joined #ruby
pwnz0r has joined #ruby
cobakobodob has joined #ruby
StoneCypher has quit [Ping timeout: 265 seconds]
panga has joined #ruby
ponga has quit [Read error: Connection reset by peer]
bluehavana has quit [Quit: Connection closed for inactivity]
tus has quit []
pwnz0r has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Ping timeout: 245 seconds]
oleo has quit [Quit: Verlassend]
athan has joined #ruby
mleung has quit [Quit: mleung]
konsolebox has joined #ruby
mleung has joined #ruby
konsolebox has quit [Max SendQ exceeded]
baltazore has joined #ruby
konsolebox has joined #ruby
Fusl has joined #ruby
konsolebox has quit [Max SendQ exceeded]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phutchins has joined #ruby
V_Ve has quit [Ping timeout: 255 seconds]
thumpba has quit [Ping timeout: 264 seconds]
baltazore has quit [Ping timeout: 245 seconds]
gsd has joined #ruby
jetblack_ has joined #ruby
p0wn3d_mhs has joined #ruby
SilkFox_ has joined #ruby
mleung has quit [Quit: mleung]
phutchins has quit [Ping timeout: 244 seconds]
baltazore has joined #ruby
jetblack has quit [Ping timeout: 255 seconds]
jetblack_ has quit [Client Quit]
Joufflu has quit [Read error: Connection reset by peer]
emmesswhy has quit [Quit: This computer has gone to sleep]
davasaurous has joined #ruby
SparkMasterTape has quit [Quit: Leaving]
emmesswhy has joined #ruby
duncannz has joined #ruby
SilkFox_ has quit [Ping timeout: 265 seconds]
hmsimha has quit [Ping timeout: 252 seconds]
Crazy_Atheist has quit [Ping timeout: 244 seconds]
SparkMasterTape has joined #ruby
tobago has joined #ruby
apeiros_ has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
davasaurous has quit [Ping timeout: 252 seconds]
MarcWeber has quit [Remote host closed the connection]
russt has quit [Quit: russt]
russt has joined #ruby
DonOtreply has quit [Quit: DonOtreply]
nicolastarzia has joined #ruby
ARCADIVS has quit [Quit: ARCADIVS]
mary5030 has quit [Remote host closed the connection]
lxsameer has joined #ruby
lxsameer has joined #ruby
dfinninger has joined #ruby
mary5030 has joined #ruby
arup_r has joined #ruby
rbennacer has joined #ruby
nicolastarzia has quit [Ping timeout: 240 seconds]
codefo has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
dfinninger has quit [Ping timeout: 244 seconds]
bronson has joined #ruby
apeiros_ has quit [Remote host closed the connection]
rbennacer has quit [Ping timeout: 244 seconds]
blahwoop has quit [Remote host closed the connection]
econerd4ever has joined #ruby
codefo has quit [Ping timeout: 255 seconds]
bronson has quit [Ping timeout: 245 seconds]
valeriansaliou has joined #ruby
anarang has joined #ruby
icebourg has quit []
xcesariox has joined #ruby
mengu has joined #ruby
dc_ has joined #ruby
ta_ has joined #ruby
valeriansaliou has quit [Ping timeout: 264 seconds]
charliesome has quit [Quit: zzz]
baltazore has quit [Remote host closed the connection]
DonOtreply has joined #ruby
spider-mario has quit [Remote host closed the connection]
baltazore has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blizzy has quit [Ping timeout: 244 seconds]
tagrudev has joined #ruby
baltazore has quit [Remote host closed the connection]
baltazore has joined #ruby
recurrence has joined #ruby
josephndenton has quit [Ping timeout: 245 seconds]
ta_ has quit [Ping timeout: 244 seconds]
timonv_ has joined #ruby
hvxgr has quit [Ping timeout: 240 seconds]
arup_r_ has joined #ruby
timonv_ has quit [Ping timeout: 265 seconds]
arup_r has quit [Ping timeout: 256 seconds]
ndrei has joined #ruby
ptrrr has joined #ruby
ptrrr has quit [Client Quit]
Patt has quit [Quit: jIRCii - http://www.oldschoolirc.com]
codecop has joined #ruby
charliesome has joined #ruby
kapil__ has quit [Quit: Connection closed for inactivity]
pengin has joined #ruby
osvico has quit [Ping timeout: 264 seconds]
scripore has quit [Quit: This computer has gone to sleep]
x1337807x has joined #ruby
sinkensabe has joined #ruby
SOLDIERz has joined #ruby
fenzil has quit [Read error: Connection reset by peer]
anarang has quit [Quit: Leaving]
greenbagels has quit [Read error: Connection reset by peer]
<certainty> moin
Hijiri has joined #ruby
lampd1 has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
Macaveli has joined #ruby
bMalum has joined #ruby
baltazore has quit [Remote host closed the connection]
conniemj has joined #ruby
kapil__ has joined #ruby
pengin has quit [Remote host closed the connection]
^wald0 has quit [Ping timeout: 256 seconds]
baltazore has joined #ruby
pengin has joined #ruby
intyl has quit [Ping timeout: 244 seconds]
aagdbl0 has quit [Quit: This computer has gone to sleep]
sandelius has joined #ruby
Techguy305 has quit [Ping timeout: 256 seconds]
elaptics`away is now known as elaptics
zendy has joined #ruby
keen__________24 has quit [Read error: Connection reset by peer]
zendy has left #ruby [#ruby]
conniemj has quit [Ping timeout: 264 seconds]
Morkel has quit [Quit: Morkel]
keen__________24 has joined #ruby
SilkFox_ has joined #ruby
pengin has quit [Ping timeout: 252 seconds]
bal has joined #ruby
bal has quit [Read error: Connection reset by peer]
krzkrz has joined #ruby
SilkFox_ has quit [Ping timeout: 264 seconds]
intyl has joined #ruby
fabrice31 has joined #ruby
Pharaoh2 has joined #ruby
bal has joined #ruby
hvxgr has joined #ruby
baltazore has quit [Remote host closed the connection]
pdoherty has joined #ruby
DivineEntity has quit [Ping timeout: 256 seconds]
bigmac has joined #ruby
aswen has joined #ruby
<astrobun_> stupid me
<astrobun_> ran two bundle installs at the same time
<astrobun_> stupid
<astrobun_> stupid
mengu has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
pdoherty has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: zzz]
atom3_ has joined #ruby
atom3_ has quit [Client Quit]
charliesome has joined #ruby
reinaldob has joined #ruby
mengu__ has joined #ruby
Rollabunna has joined #ruby
mengu has quit [Read error: No route to host]
Photism has quit [Quit: Leaving]
emmesswhy has quit [Ping timeout: 245 seconds]
noop has joined #ruby
p0wn3d_mhs has quit [Ping timeout: 250 seconds]
emmesswhy has joined #ruby
^wald0 has joined #ruby
bMalum has quit [Quit: bMalum]
reinaldob has quit [Ping timeout: 255 seconds]
Rollabunna has quit [Ping timeout: 245 seconds]
function90 has quit [Quit: Textual IRC Client: www.textualapp.com]
mary5030 has joined #ruby
ta_ has joined #ruby
godd2 has quit [Ping timeout: 245 seconds]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ddd has joined #ruby
fedexo has quit [Ping timeout: 264 seconds]
fedexo__ has quit [Ping timeout: 264 seconds]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has joined #ruby
mary5030 has quit [Ping timeout: 244 seconds]
apurcell has quit [Quit: Be back later ...]
ta_ has quit [Ping timeout: 265 seconds]
maestrojed has quit [Quit: Computer has gone to sleep.]
charliesome has joined #ruby
lemur has quit [Remote host closed the connection]
lemur has joined #ruby
dionysus69 has joined #ruby
panga has quit [Read error: Connection reset by peer]
ponga has joined #ruby
josephndenton has joined #ruby
charliesome has quit [Quit: zzz]
aganov has joined #ruby
lemur has quit [Ping timeout: 265 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
rbrs has joined #ruby
last_staff has joined #ruby
Xeago has joined #ruby
josephndenton has quit [Ping timeout: 255 seconds]
fred-fri has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ohaibbq has quit [Quit: Leaving...]
<fred-fri> when i run bundle install i get "Resolving dependencies... Could not find gem 'puma (>= 0) ruby' in the gems available on this machine." this is the gemfile https://github.com/jamesward/jekyll-heroku/blob/8054bb8df3bcddedbb120d621c880f7e4ccdfc4b/Gemfile
dumdedum has joined #ruby
timonv_ has joined #ruby
antgel has quit [Ping timeout: 240 seconds]
dseitz has joined #ruby
mattp_ has quit [Ping timeout: 272 seconds]
ddd has quit [Ping timeout: 245 seconds]
St_Marx has quit [Ping timeout: 250 seconds]
ddd has joined #ruby
sandelius has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wpp has joined #ruby
mattp_ has joined #ruby
ishikawa has quit [Ping timeout: 250 seconds]
lampd1 has joined #ruby
ayaz has joined #ruby
ayaz has quit [Remote host closed the connection]
ayaz has joined #ruby
andikr has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
krandi has joined #ruby
anarang has joined #ruby
krandi has quit [Remote host closed the connection]
econerd4ever has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
econerd4ever has joined #ruby
econerd4ever has quit [Ping timeout: 265 seconds]
valeriansaliou has joined #ruby
x77686d has quit [Quit: x77686d]
terlar has joined #ruby
nicolastarzia has joined #ruby
LouisRoR has joined #ruby
elektronaut has quit [Ping timeout: 272 seconds]
ta_ has joined #ruby
timonv_ has joined #ruby
Xeago has quit [Remote host closed the connection]
elektronaut has joined #ruby
teddyp1cker has joined #ruby
SOLDIERz has quit [Quit: Be back later ...]
kamilc__ has joined #ruby
SilkFox_ has joined #ruby
anitchrist has joined #ruby
nicolastarzia has quit [Ping timeout: 264 seconds]
codefo has joined #ruby
defrang has joined #ruby
<anitchrist> I always feel this ironic sense of insecurity when someone asks for my code, as if they're asking to see me dick
<anitchrist> ...
<anitchrist> anyways sup y'all
ta_ has quit [Ping timeout: 244 seconds]
<anitchrist> hope everyone is doing well
amclain has quit [Quit: Leaving]
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
<anitchrist> I'm going to continue training just thought I'd say high cause I got nothin better to do right now
pwnz0r has joined #ruby
<anitchrist> shevy, I see you're a regular sir
<shevy> yeah man
<shevy> I am the king of the idlers
<anitchrist> lol
<shevy> wanna join me? then you must become better at idling
<anitchrist> will do sir
* anitchrist sits and goes idle
SilkFox_ has quit [Ping timeout: 245 seconds]
codefo has quit [Ping timeout: 252 seconds]
timonv_ has quit [Remote host closed the connection]
luriv has joined #ruby
Pharaoh2 has joined #ruby
Porpado has quit [Read error: Connection reset by peer]
Porpado has joined #ruby
chipotle_ has joined #ruby
cvtsx1 has joined #ruby
bweston92 has quit [Read error: Connection reset by peer]
shredding has joined #ruby
Porpado has quit [Read error: Connection reset by peer]
aagdbl0 has joined #ruby
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby
russt has quit [Quit: russt]
Porpado has joined #ruby
qba73 has joined #ruby
voodoofish430 has joined #ruby
SOLDIERz has joined #ruby
voodoofish4301 has quit [Ping timeout: 245 seconds]
^wald0 has quit [Quit: ^wald0]
krzkrz has quit [Ping timeout: 264 seconds]
cvtsx has quit [Ping timeout: 255 seconds]
chipotle has quit [Ping timeout: 265 seconds]
SparkMasterTape has quit [Ping timeout: 265 seconds]
SparkMasterTape has joined #ruby
Morkel has joined #ruby
elaptics is now known as elaptics`away
yfeldblum has joined #ruby
Takle has joined #ruby
tesuji has joined #ruby
<avril14th> morning
CustosL1men has quit [Ping timeout: 264 seconds]
<superrorc> hi there!
Xeago has joined #ruby
<superrorc> trying install gem, get this "sh: 1: make: not found" . gcc version 4.8.2
livathinos has joined #ruby
emmesswhy has quit [Read error: Connection reset by peer]
emmesswhy has joined #ruby
<wasamasa> what kind of system are you on?
antgel has joined #ruby
<superrorc> Ubuntu 14.04.1 LTS
<superrorc> ruby 1.9.3p484
<wasamasa> have you installed the build tools?
<superrorc> what tools?
<wasamasa> well, the common tools necessary for building software
<wasamasa> like, `make`
Takle has quit [Ping timeout: 240 seconds]
<certainty> coffee and chocolate?
<gr33n7007h> >> b=Array.new(2){0}.pack('S2');$>.ioctl(21523,b);b.unpack('S2')
<eval-in> gr33n7007h => Inappropriate ioctl for device @ rb_ioctl - <STDOUT> (Errno::ENOTTY) ... (https://eval.in/240472)
<wasamasa> can't remember what the package for them is called for ubuntu
<certainty> build-essentials or somesuch
<superrorc> gcc - compiler
Fusl has quit [Ping timeout: 250 seconds]
<superrorc> thanks!
<wasamasa> install it, then see whether any more errors pop up
<superrorc> got it! =)
<superrorc> gem installed
^wald0 has joined #ruby
mquin has quit [Read error: Connection reset by peer]
mquin has joined #ruby
yfeldblu_ has joined #ruby
unshadow has joined #ruby
<unshadow> What is the 'right' way to restart\poweroff a Linux system from inside a ruby code ? I know I can do system("poweroff") or %x(poweroff), but is there a better way ?
yfeldblum has quit [Ping timeout: 256 seconds]
Takle has joined #ruby
<ddv> unshadow: shutdown -r now, shutdown -h now?
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ddv> unshadow: not sure if restarting a system via ruby is the best way to do it though
<unshadow> ddv: yeha, but those are shell commands, I mean a better way to do that programic speaking
<unshadow> instead of sending poweroff into shell
<ddv> maybe some gem exists that wraps some systemcalls
<unshadow> TBH, sending Process.kill('SIGHUP',1) will do it no ?
hephaestus_rg has quit [Ping timeout: 264 seconds]
baltazore has joined #ruby
arup_r_ has quit [Remote host closed the connection]
Mia has joined #ruby
elaptics`away is now known as elaptics
LouisRoR has quit [Ping timeout: 264 seconds]
Takle has quit [Remote host closed the connection]
conniemj has joined #ruby
pwnz0r has quit [Remote host closed the connection]
pwnz0r has joined #ruby
amundj has joined #ruby
<PierreRambaud> unshadow, Opscode code chef used shutdown to reboot instance : https://github.com/opscode/chef/blob/cb61daebfb0d255cae928ca1a92db29b055755cf/lib/chef/platform/rebooter.rb
conniemj has quit [Ping timeout: 252 seconds]
roolo has joined #ruby
<unshadow> I see, thanks :)
SolarSailor has joined #ruby
baltazore has quit [Remote host closed the connection]
CustosL1men has joined #ruby
crdpink has joined #ruby
oo__ has quit [Remote host closed the connection]
lessless has joined #ruby
pwnz0r has quit [Ping timeout: 252 seconds]
crdpink2 has quit [Ping timeout: 265 seconds]
elabs-developer has joined #ruby
pengin has joined #ruby
roolo has quit [Ping timeout: 264 seconds]
oo_ has joined #ruby
timonv_ has joined #ruby
Fusl has joined #ruby
_Andres has joined #ruby
valeriansaliou has quit [Quit: Be back later ...]
msgodf has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
sevenseacat has quit [Remote host closed the connection]
timonv_ has quit [Ping timeout: 245 seconds]
ishikawa has joined #ruby
LouisRoR has joined #ruby
recurrence has quit [Quit: recurrence]
alkoma has quit [Remote host closed the connection]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chthon has joined #ruby
chth0n has joined #ruby
SilkFox_ has joined #ruby
Flcn has joined #ruby
pengin has quit [Remote host closed the connection]
pengin has joined #ruby
alex88 has joined #ruby
bMalum has joined #ruby
timonv_ has joined #ruby
gaborn has joined #ruby
SilkFox_ has quit [Ping timeout: 245 seconds]
pengin has quit [Ping timeout: 244 seconds]
wm3|away has quit [Ping timeout: 252 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
pdoherty has joined #ruby
arup_r has joined #ruby
tokik has quit [Ping timeout: 264 seconds]
marr has joined #ruby
himsin has joined #ruby
Fusl has quit [Ping timeout: 250 seconds]
jds has joined #ruby
ishikawa has quit [Remote host closed the connection]
iamninja has joined #ruby
^wald0 has quit [Quit: ^wald0]
krzkrz has joined #ruby
pdoherty has quit [Ping timeout: 252 seconds]
troulouliou_dev has joined #ruby
jheg has joined #ruby
olivier_bK has joined #ruby
Rollabunna has joined #ruby
krzkrz has quit [Ping timeout: 264 seconds]
n008f4g_ has joined #ruby
lea_ has joined #ruby
sigurding has joined #ruby
bMalum has quit [Quit: bMalum]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tvw has joined #ruby
josephndenton has joined #ruby
lea_ has left #ruby [#ruby]
RealMarc has quit [Quit: ZNC - http://znc.in]
^wald0 has joined #ruby
evlute has joined #ruby
Pupeno has joined #ruby
<evlute> Hello, Ruby 2.2.0 broke my application. user/.gem/ruby/2.2.0/extensions/x86_64-linux/2.2.0/do_mysql-0.10.14/do_mysql/do_mysql.so: undefined symbol: rb_thread_select
arya_ching has joined #ruby
<evlute> Any Ideas?
Rollabunna has quit [Ping timeout: 255 seconds]
fantazo has joined #ruby
ponga has quit [Remote host closed the connection]
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
<astrobun_> here is a completely uneducated and irresponsible answer: maybe use the original version you were using before?
<evlute> I'm using Archlinux. Rolling Release. So i did not see that it was going to ruby 2.2.0.
poetazus_ has joined #ruby
poetazus_ has quit [Remote host closed the connection]
<evlute> But i have to downgrade what will need some time, because i have to get rvm.
josephndenton has quit [Ping timeout: 244 seconds]
Takle has joined #ruby
<evlute> So i was hoping that it will be easy to fix the problem with your help and stay at the new version of ruby which can't be wrong.
dangerousdave has joined #ruby
<canton7> evlute, are you using 'mysql' or 'mysql2'?
<unshadow> I'm using Arch too, if by "breaking" you mean all those gems shuting "pristine me" then use gem pristine --all, or, Like I did, install ruby via RVM
<evlute> I'm using Datamapper.
JeSuisCharlie is now known as fumk
<unshadow> and you can use rvm install ruby-head or install ruby2.2.0
<ddv> don't use pacman to manage ruby, ruby is one of the exceptions you don't want to use the package manager
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<evlute> ddv you are right - i will switch to rvm.
MrBeardy has joined #ruby
<ddv> or chruby
lkba has joined #ruby
ishikawa has joined #ruby
valeriansaliou has joined #ruby
ponga has quit [Ping timeout: 255 seconds]
ta_ has joined #ruby
LekeFly has joined #ruby
chthon has quit [Quit: Ex-Chat]
chth0n has quit [Quit: Ex-Chat]
<canton7> I'm lazy and use pacman to manage ruby, but take control of gems myself :P
AlexRussia has quit [Ping timeout: 256 seconds]
unshadow has quit [Quit: leaving]
jack_rabbit has joined #ruby
lkba_ has quit [Ping timeout: 265 seconds]
LekeFly has quit [Client Quit]
ta_ has quit [Ping timeout: 265 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
davedev24_ has quit [Remote host closed the connection]
ilias0029 has joined #ruby
roolo has joined #ruby
rodfersou has joined #ruby
arya_ching has quit [Read error: No route to host]
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jgrevich has quit [Quit: jgrevich]
cvtsx1 has quit [Quit: Leaving]
s00pcan_ has quit [Remote host closed the connection]
cvtsx has joined #ruby
craigp has joined #ruby
St_Marx has joined #ruby
sigurding has quit [Quit: sigurding]
s00pcan_ has joined #ruby
nicolastarzia has joined #ruby
Takle has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
ta has quit [Ping timeout: 264 seconds]
ta has joined #ruby
RTG` has quit [Ping timeout: 272 seconds]
krzkrz has joined #ruby
oo_ has joined #ruby
nicolastarzia has quit [Ping timeout: 244 seconds]
codefo has joined #ruby
bronson has joined #ruby
RTG` has joined #ruby
codefo has quit [Read error: Connection reset by peer]
cvtsx1 has joined #ruby
blackmesa has joined #ruby
s00pcan_ has quit [Remote host closed the connection]
codefo has joined #ruby
<shevy> hmmm
<shevy> canton7
hamakn has quit [Remote host closed the connection]
<shevy> I officially declare you
<shevy> as a weird person
<ddv> pot calling the kettle black ^
timonv_ has quit [Read error: Connection reset by peer]
valeriansaliou has quit [Read error: Connection reset by peer]
valeriansaliou has joined #ruby
cvtsx has quit [Ping timeout: 252 seconds]
polyzen has quit [Quit: polyzen]
meschi has joined #ruby
<canton7> not denying it :)
bronson has quit [Ping timeout: 252 seconds]
DaniG2k has joined #ruby
^wald0 has quit [Quit: ^wald0]
Takle has joined #ruby
wolf4ood has joined #ruby
s00pcan_ has joined #ruby
ponga has joined #ruby
ponga has joined #ruby
mengu__ has quit [Remote host closed the connection]
duncannz has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
valeriansaliou has quit [Ping timeout: 252 seconds]
oo_ has joined #ruby
SilkFox_ has joined #ruby
Tricon has quit [Ping timeout: 245 seconds]
avril14th has quit [Ping timeout: 255 seconds]
oo_ has quit [Remote host closed the connection]
reinaldob has joined #ruby
oo_ has joined #ruby
DonOtreply has quit [Quit: DonOtreply]
banister has quit [Read error: Connection reset by peer]
aagdbl0 has quit [Quit: Leaving]
DonOtreply has joined #ruby
devoldmx has quit [Remote host closed the connection]
emmesswhy has quit [Quit: Leaving]
Fusl has joined #ruby
SilkFox_ has quit [Ping timeout: 240 seconds]
reinaldob has quit [Ping timeout: 244 seconds]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
jouty has joined #ruby
JohnBat26 has joined #ruby
DonOtreply has quit [Client Quit]
tobago has quit [Changing host]
tobago has joined #ruby
dangerousdave has joined #ruby
avril14th has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
<shevy> ddv
<shevy> I officially declare you
gccostabr has joined #ruby
<shevy> a good girl
p0wn3d_mhs has joined #ruby
ceej_irccloud has quit [Quit: Connection closed for inactivity]
<ddv> ok
<ddv> sounds kind of sexist though
evlute has quit [Ping timeout: 244 seconds]
last_staff has quit [Quit: last_staff]
dseitz has joined #ruby
s00pcan_ has quit [Remote host closed the connection]
rdark has joined #ruby
timonv_ has joined #ruby
Takle has quit [Remote host closed the connection]
vinc has quit [Ping timeout: 245 seconds]
Takle has joined #ruby
blackmesa has quit [Ping timeout: 245 seconds]
Takle has quit [Read error: No route to host]
Takle has joined #ruby
phoenix1995 has joined #ruby
<superrorc> i am writing ipaddrs with this " out_file.write(ips.uniq.join("\n")) " . how can i get this output "http://ipaddr1" and etc ... ???
<phoenix1995> So Ruby is good or Python?
psy_ has quit [Quit: Leaving]
<ponga> oh my god
* ponga hides
az7ar_away is now known as az7ar
<superrorc> something like this out_file.write("http://" + ips.uniq.join("\n"))
<superrorc> )))
LekeFly has joined #ruby
<superrorc> ? help lps
Takle has quit [Remote host closed the connection]
s00pcan_ has joined #ruby
s00pcan_ has quit [Remote host closed the connection]
phoenix1995 has left #ruby ["Leaving"]
AFKGeek has joined #ruby
lethan has quit []
wm3|away has joined #ruby
<shevy> help lps
<shevy> ok
<shevy> lps!!!
davasaurous has joined #ruby
<shevy> superrorc what is the problem there man
arya_ching has joined #ruby
<superrorc> how can i add some string to all elements in array
<superrorc> [1 2 3] => [abc1 abc2 abc3]
<shevy> ah ok
<shevy> .map would be the simplest
<shevy> >> [1, 2, 3].map {|entry| 'abc'+entry.to_s }
<eval-in> shevy => ["abc1", "abc2", "abc3"] (https://eval.in/240516)
<superrorc> hm
<shevy> you forgot the , superrorc
conniemj has joined #ruby
<superrorc> will try now
elabs-developer has quit [Quit: elabs-developer]
davasaurous has quit [Ping timeout: 255 seconds]
gaborn has quit [Ping timeout: 246 seconds]
davidhq has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
wm3|away is now known as workmad3
kiyote23_ has joined #ruby
blackgoat_ has quit [Quit: WeeChat 0.3.8]
fella6s has joined #ruby
apeiros_ has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
blackgoat has joined #ruby
conniemj has quit [Ping timeout: 245 seconds]
devoldmx has joined #ruby
radic has quit [Disconnected by services]
Elico has joined #ruby
radic_ has joined #ruby
ItSANgo__ has joined #ruby
anitchrist has quit [Ping timeout: 245 seconds]
ItSANgo has quit [Ping timeout: 245 seconds]
lordvirtex has joined #ruby
s00pcan_ has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
s00pcan_ has quit [Remote host closed the connection]
s00pcan_ has joined #ruby
<superrorc> shevy: dont work... or i do something wrong
kiyote23 has quit [Ping timeout: 245 seconds]
<superrorc> http://pastebin.com/rAc2KuBs check this pls
Pharaoh2 has joined #ruby
braincra- has quit [Quit: bye bye]
blackmesa has joined #ruby
s00pcan_ has quit [Remote host closed the connection]
<shevy> I don't like your code
fella5s has quit [Ping timeout: 245 seconds]
s00pcan_ has joined #ruby
yeticry has quit [Ping timeout: 265 seconds]
<superrorc> i am not programmer =)
<superrorc> admin
<shevy> file = File.read(in_file)
baltazore has joined #ruby
s00pcan_ has quit [Remote host closed the connection]
braincrash has joined #ruby
<shevy> ok so
yeticry has joined #ruby
Takle has joined #ruby
<shevy> from "2.3.4.5" to "https://1.2.3.4" right?
<superrorc> yep
<shevy> where did the 1 come from though
<avril14th> What's the best way to group elements of an array from the result of a block?
<superrorc> from in file with regx
dseitz has joined #ruby
<shevy> >> string = "2.3.4.5"; string[0,0] = "https://1."; string
<avril14th> like [-1,1,-6,2].group_by{ |i| i >= 0 }
davidhq has quit [Max SendQ exceeded]
DonOtreply has joined #ruby
<workmad3> avril14th: s/group_by/partition
davidhq has joined #ruby
<avril14th> thx
arya_ching has quit [Ping timeout: 245 seconds]
RealMarc has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
davidhq has quit [Read error: Connection reset by peer]
s00pcan_ has joined #ruby
yfeldblum has joined #ruby
RealMarc has quit [Client Quit]
davidhq has joined #ruby
RealMarc has joined #ruby
RealMarc has quit [Client Quit]
mostlybadfly has joined #ruby
RealMarc has joined #ruby
codeFiend has quit [Quit: codeFiend]
mariappp has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
lkba_ has joined #ruby
mariappp has quit [Client Quit]
s00pcan_ has quit [Remote host closed the connection]
leafybasil has joined #ruby
DrCode has joined #ruby
davedev24_ has joined #ruby
s00pcan has quit [Read error: Connection reset by peer]
MrBeardy has quit [Ping timeout: 256 seconds]
lkba has quit [Ping timeout: 265 seconds]
koderok has joined #ruby
DaniG2k_ has joined #ruby
ta has quit [Quit: Leaving...]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
ta has joined #ruby
reinaldob has joined #ruby
DaniG2k_ has quit [Client Quit]
nfk has joined #ruby
s00pcan has joined #ruby
DaniG2k has quit [Ping timeout: 256 seconds]
jeanlinux has joined #ruby
s00pcan_ has joined #ruby
max96at|off is now known as max96at
hamakn has joined #ruby
CustosLimen has quit [Ping timeout: 240 seconds]
Morkel has quit [Ping timeout: 256 seconds]
blackmesa has quit [Ping timeout: 255 seconds]
Morkel has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dseitz has joined #ruby
SilkFox_ has joined #ruby
olivier_bK has quit [Ping timeout: 245 seconds]
ponga has quit [Read error: Connection reset by peer]
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
ldnunes has joined #ruby
nfk has quit [Quit: yawn]
josephndenton has joined #ruby
fabrice31 has quit [Remote host closed the connection]
SilkFox_ has quit [Ping timeout: 240 seconds]
pdoherty has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<ponga> www.pastie.org isn't working for me
<ponga> is it just me
<ponga> getting "We're sorry, but something went wrong."
vdamewood has joined #ruby
tkuchiki has quit [Remote host closed the connection]
josephndenton has quit [Ping timeout: 244 seconds]
tkuchiki has joined #ruby
jeanlinux has quit []
RTG` has quit [Ping timeout: 272 seconds]
<shevy> come on ponga
<shevy> you can do it
<ddv> use gist.github.com n00bs
<shevy> use my link! don't click on ddv!
<ddv> oops sorry
pdoherty has quit [Ping timeout: 244 seconds]
<ponga> shevy: thanks
<ponga> somehow its working now
<ponga> strange
xcesariox has joined #ruby
<shevy> \o/
<shevy> the power of a shevy ponga
<shevy> like a lucky charm or a little buddha, a shevy brings good luck and fortune
SOLDIERz has quit [Quit: Be back later ...]
krz has joined #ruby
zorak8 has joined #ruby
tkuchiki has quit [Ping timeout: 252 seconds]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
SOLDIERz has joined #ruby
RTG` has joined #ruby
thsig has joined #ruby
<leafybasil> Strangely, my client shows a ruby in the bottom right corner of this channel's log. Is this an actual IRC feature or just my client?
SOLDIERz has quit [Ping timeout: 244 seconds]
kp666 has joined #ruby
larissa has joined #ruby
larissa has left #ruby [#ruby]
<thatslifeson> probably just your client
poetazus has joined #ruby
koderok has quit [Quit: koderok]
wpp has quit []
thiagovsk__ has joined #ruby
sigurding has joined #ruby
ferr has joined #ruby
Timgauthier has joined #ruby
<ddv> leafybasil: your client
<leafybasil> That seems like a really odd choice...
ajaiswal has quit [Quit: Leaving]
<canton7> maybe it has some ruby plugin infrastructure?
<canton7> which client is it?
<leafybasil> It's not written in Ruby, and it doesn't seem to happen for other languages.
<leafybasil> Limechat
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
himsin has quit [Quit: himsin]
<ddv> leafybasil: try textual
hamakn has quit [Remote host closed the connection]
<leafybasil> why?
<canton7> looks like it might have a ruby plugin architecture?
<leafybasil> If anything ddv I'm going back to IRSSI
<ddv> if that is your cup of tea I would use WeeChat
<workmad3> but irssi has true-colour console support now!
<certainty> yeah, i don't like that
<workmad3> certainty: you don't like 24bit colour? :(
<certainty> no
<certainty> i like 2 bit color
<certainty> black and white
<canton7> so.. 1 bit colour?
<certainty> erm
<certainty> yeah
* certainty goes back to bed
<canton7> :P
<certainty> ok i deserve it
emirozer has joined #ruby
<certainty> you're allowed to bash
sandelius has joined #ruby
<canton7> heh, I'm hardly awake myself
<workmad3> canton7: yeah, just rub it in, make certainty feel even worse ;)
alex88 has quit []
<canton7> nooo I didn't mean it like that
<workmad3> canton7: :D
* canton7 proof that he's still asleep
gfawcettpq has joined #ruby
<workmad3> bleh, I should stop reading things about securing services... I then want to roll things into my chef deploy
hamakn has joined #ruby
<workmad3> and then I'm waiting for hours for /etc/ssh/moduli to regenerate...
<workmad3> similar happened when I realised the default dhparams file for nginx was only 1024 bit... waiting for entropy to generate these keys just takes an age :(
krzkrz has quit [Read error: Connection reset by peer]
kasperti_ has joined #ruby
n008f4g_ has quit [Ping timeout: 244 seconds]
krzkrz has joined #ruby
<leafybasil> ddv: again, any reason for the recommendation?
<ddv> leafybasil: well weechat has easy to use horizontal/vertical splits
<workmad3> leafybasil: weechat is a bit easier to configure and I think has a nicer plugin architecture... but I personally stuck with irssi :)
nicolastarzia has joined #ruby
<leafybasil> ddv: irssi has easy to use splits?
<ddv> I found them to be a hassle in irrsi
mikecmpbll has joined #ruby
krz has quit [Ping timeout: 265 seconds]
haroldwu has joined #ruby
haroldwu has quit [Changing host]
haroldwu has joined #ruby
psy_ has joined #ruby
krz has joined #ruby
avril14th has quit [Ping timeout: 264 seconds]
nicolastarzia has quit [Ping timeout: 264 seconds]
pico-pete has joined #ruby
bronson has joined #ruby
jdripper has joined #ruby
lordvirtex has quit [Ping timeout: 240 seconds]
<arup_r> Suppose let(:dbl) { double('user) } is a test double... What extra configuration will treat as partial test double? I'm not able to understand the thin difference between them.. Please some lights on it
shazaum has joined #ruby
valeriansaliou has joined #ruby
SOLDIERz has joined #ruby
bronson has quit [Ping timeout: 264 seconds]
oo_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
shazaum has joined #ruby
shazaum has quit [Changing host]
SolarSailor has quit [Ping timeout: 244 seconds]
elabs-developer has joined #ruby
Takle has quit [Remote host closed the connection]
SOLDIERz has quit [Ping timeout: 240 seconds]
pico-pete has quit []
fabrice31 has joined #ruby
dangerousdave has joined #ruby
<arup_r> It seems no body use here Rspec :)
sigurding has quit [Quit: sigurding]
tvw has quit [Ping timeout: 264 seconds]
<ddv> arup_r: minitest is all you need
<ddv> even DHH hates rspec
blizzy has joined #ruby
shredding has quit [Quit: shredding]
<workmad3> ddv: both of those are rather poor arguments, IMO :P
<ddv> I blindly follow DHH
avril14th has joined #ruby
<workmad3> :)
poetazus has quit [Remote host closed the connection]
<arup_r> ddv: Rspec is easy to install :)
<arup_r> and easy to write read/write...
<workmad3> arup_r: 'easy to install' is a rather poor response too ;) seeing as minitest is part of stdlib ;)
<arup_r> Install 3 packages.. and you are done..
<arup_r> workmad3: It seems so.. But while you start working.. it needs hell lots of other gems to work on
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
<arup_r> see how many extensions.. https://github.com/seattlerb/minitest :(
<arup_r> workmad3: ^^
sigurding has joined #ruby
<arup_r> ddv: DHH hates TDD... Do you also?
<arup_r> :)
<workmad3> arup_r: something having a lot of possible extensions is also not a good argument ;)
<arup_r> yes... may be ,, might be.. could be... But I am good in Rspec..
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<workmad3> arup_r: also https://rubygems.org/search?utf8=%E2%9C%93&query=rspec <-- 452 gems that include the term 'rspec'... ;)
<arup_r> I asked one question in Minitest channle.. After 5 days I didn't receive my answer..
Tricon has joined #ruby
avril14th has quit [Ping timeout: 265 seconds]
<arup_r> may be zenspider: asked them to ignore it
<waxjar> i'll stick to cutest :D
<arup_r> wasjar: what's that?
<workmad3> arup_r: see now that's a good response - community response time to questions and skill with tool :)
n1lo has joined #ruby
<arup_r> waxjar:
<workmad3> arup_r: it's part of his profile description... 'waxjar: cutest'
<arup_r> Aww!!!!
<arup_r> ;)
Spami has joined #ruby
<workmad3> arup_r: of course, I omitted what he is the cutest example of...
<arup_r> I see that ;)
devoldmx has quit [Remote host closed the connection]
<arup_r> waxjar: Thanks for letting me know. I never heard about it.
<waxjar> it's basically miniminitest, i doubt you'll like it much :p
<arup_r> Aww.. /me is stepping back then..
* arup_r is stepping back then..
SilkFox_ has joined #ruby
* arup_r has allergy with minitest
shredding has joined #ruby
Tricon has quit [Ping timeout: 244 seconds]
avril14th has joined #ruby
Spami has quit [Max SendQ exceeded]
<ddv> arup_r: because you are asking very basic questions all the time
<arup_r> ddv: basic is relative to one's skill.. Is not it?
<waxjar> but i think it's all you need really, ruby has built-in functionality for mocking and stubbing (just redefine the method). benchmarks don't belong in tests (i want them to run quick, please).
<ddv> arup_r: well not everyone is a genius like me
<arup_r> ddv: God knows and you ofcourse :)
<ddv> I don't believe in a God
Spami has joined #ruby
<arup_r> Then you know only..
<workmad3> I have no need for this 'god' hypothesis... :)
DadoCe has joined #ruby
<arup_r> ddv: Ego and sometimes patience is the only problem
hmsimha has joined #ruby
SilkFox_ has quit [Ping timeout: 244 seconds]
<ddv> arup_r: the genius remark was actually sarcasm
<workmad3> I always love people who say "You don't need the extra features of X, because you can do everything you need just with Y" and then they use ruby instead of assembler...
<arup_r> one who don't have these should not be the member any community.. as it is harmful
avril14th has quit [Ping timeout: 244 seconds]
aganov has quit [Ping timeout: 252 seconds]
<arup_r> ddv: I have no problem with why do you have ?
<arup_r> with you**
<chipotle_> good morning; i'm up way too early
<sandelius> Is it possible it intergare rails autoloading feature in a sinatra app?
<arup_r> Lets discuss something helpful in Ruby...
snath has quit [Ping timeout: 244 seconds]
<arup_r> sandelius: join #sinatra
<workmad3> sandelius: it would be rather painful, I suspect
<workmad3> sandelius: personally, I'd suggest just setting up guard for the project and configuring it to restart your sinatra app when you change files
<ponga> i always ask stupid questions
<sandelius> Trying to read the source for require_dependency but it's a mess
delianides has joined #ruby
<ponga> don't i shevy?
teddyp1c_ has joined #ruby
SOLDIERz has joined #ruby
<arup_r> ponga: Hi
<workmad3> sandelius: reloading code in a running process is a mess
<workmad3> sandelius: it's useful... but it's also messy :)
<sandelius> workmad3 it's not the reloading part I want, I can live without that, I just don't wan't to include all files manually
<workmad3> sandelius: and with rails having pretty slow start up times, it was a bit prohibitive to simply restart the server on file changes
emirozer has quit [Quit: Be back later ...]
Macaveli has joined #ruby
<waxjar> shotgun works pretty well, though it's a bit slow
<workmad3> sandelius: Dir["**/*.rb"].each{|f| require f}? ;)
<mikecmpbll> lol
<sandelius> workmad3 yeah but sometimes A depends on B and so on
<workmad3> sandelius: so make sure you specify dependencies
<sandelius> workmad3 that's what I wanted to avoid if possible :)
teddyp1cker has quit [Ping timeout: 245 seconds]
<workmad3> sandelius: don't avoid that... if file a.rb depends on file b.rb, it should be specified in the file, IMO :)
<workmad3> sandelius: being explicit about that avoids so many issues...
oo_ has quit [Ping timeout: 255 seconds]
<workmad3> it also makes it clearer when you have a file that depends on half your system and needs pulling apart... :)
<waxjar> just reloading the code won't remove obsolete stuff that you may still be using without being aware of it
<waxjar> then when you restart the application, it suddenly stops working :/
himsin has joined #ruby
AlSquire has joined #ruby
oo_ has joined #ruby
<Bish> hi
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Bish> how would i do array.select().each .. i need 2 blocks there, but don't know where to put it
<workmad3> waxjar: the rails reloading does work around a lot of those issues
<workmad3> waxjar: as it unloads classes too
avril14th has joined #ruby
<Bish> >> [1,2,3].select({ |x| x>1 }).each { |e| p e }
<eval-in> Bish => /tmp/execpad-108b25ba0640/source-108b25ba0640:2: syntax error, unexpected '|', expecting '}' ... (https://eval.in/240539)
thsig has quit [Remote host closed the connection]
<Bish> how do i do that ;/
<workmad3> >> [1,2,3].select{ |x| x>1 }.each { |e| p e }
<eval-in> workmad3 => 2 ... (https://eval.in/240540)
pengin has joined #ruby
<Bish> doesn't the each bind to the block?
<workmad3> Bish: no
<workmad3> Bish: which is why it worked :P
npg has joined #ruby
<Bish> yeah i know, but i don't get why..
conniemj has joined #ruby
<workmad3> Bish: because the block isn't something that can exist on its own... so when you chain a method onto the end of a block, it gets called on the result of the previous method
jack_rabbit has quit [Ping timeout: 264 seconds]
<workmad3> Bish: or, in other words, it works for the same reasons that 'foo(a, b, c).bar' works and .bar isn't called on the parameter list ;)
aganov has joined #ruby
phutchins has joined #ruby
<workmad3> Bish: also, by wrapping the block in parens, ruby identified the opening { as a hash literal... hence the syntax error ;)
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
Takle has joined #ruby
Pharaoh2 has joined #ruby
doodlehaus has joined #ruby
conniemj has quit [Ping timeout: 264 seconds]
npg has quit [Quit: npg]
<Bish> but the syntax looks really weird, doing something like that
<workmad3> Bish: looks pretty normal to me, tbh :P
<Bish> so if select also had a parameter
<Bish> it would look like x.select(param){...}.each {..}
<Bish> ?
renderful has joined #ruby
pengin has quit [Remote host closed the connection]
delianides has quit [Remote host closed the connection]
echooo has quit [Quit: echooo]
<Bish> >> 1..3.select(){|x| x > 0}.each { |x| p x }
<eval-in> Bish => private method `select' called for 3:Fixnum (NoMethodError) ... (https://eval.in/240542)
<Bish> >> (1..3).select(){|x| x > 0}.each { |x| p x }
<eval-in> Bish => 1 ... (https://eval.in/240543)
pengin has joined #ruby
<workmad3> Bish: why do .select(){} when you don't do .each(){}?
astrobun_ has quit [Remote host closed the connection]
<Bish> well because i don't want to do it on all elements.. ofcourse i could if them in the each block.. but i figured it's cleaner this way
hamakn has quit [Remote host closed the connection]
emirozer has joined #ruby
<workmad3> Bish: I mean why have explicit parens?
<workmad3> Bish: .select{...} is exactly the same as .select(){...}
<workmad3> Bish: and .each{...} is the same as .each(){...}
<Bish> i only was interested in the way the syntax works
<Bish> if select wanted a parameter
himsin has quit [Quit: himsin]
gr33n7007h has quit [Ping timeout: 244 seconds]
renderful has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
pengin has quit [Ping timeout: 255 seconds]
dseitz has quit [Quit: nap]
teddyp1c_ has quit [Read error: Connection timed out]
teddyp1cker has joined #ruby
ilias0029 has quit [Ping timeout: 255 seconds]
yalue has joined #ruby
DaniG2k has joined #ruby
teddyp1c_ has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
zorak8 has quit [Ping timeout: 264 seconds]
teddyp1cker has quit [Ping timeout: 244 seconds]
devyn has quit [Ping timeout: 245 seconds]
postmodern has quit [Quit: Leaving]
MrBeardy has joined #ruby
thsig has joined #ruby
vt102 has quit [Ping timeout: 256 seconds]
robustus is now known as robustus|Off
delianides has joined #ruby
spyderman4g63 has joined #ruby
doodlehaus has quit [Remote host closed the connection]
<ddv> arup_r: you should call yourself sirup_r
brb3 has joined #ruby
spyderma_ has joined #ruby
kasperti_ has quit []
antgel has quit [Ping timeout: 264 seconds]
delianides has quit [Remote host closed the connection]
sigurding has quit [Quit: sigurding]
SparkMasterTape has quit [Quit: Leaving]
SOLDIERz has quit [Quit: Be back later ...]
spyderman4g63 has quit [Ping timeout: 252 seconds]
sandelius has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
Timgauthier has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
emirozer has quit [Read error: Connection reset by peer]
jefus__ is now known as jefus
<arup_r> ddv: Why so? ;)
josephndenton has joined #ruby
teddyp1c_ has quit [Read error: Connection timed out]
aclearman037 has joined #ruby
teddyp1cker has joined #ruby
devyn has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sigurding has joined #ruby
thsig has quit [Remote host closed the connection]
VictorBjelkholm has joined #ruby
josephndenton has quit [Ping timeout: 240 seconds]
Timgauthier has joined #ruby
emirozer has joined #ruby
doodlehaus has joined #ruby
teddyp1cker has quit [Ping timeout: 240 seconds]
doodlehaus has quit [Remote host closed the connection]
ddd has quit [Quit: gotta run]
byprdct has joined #ruby
thsig has joined #ruby
kp666 has quit [Quit: Leaving]
doodlehaus has joined #ruby
kp666 has joined #ruby
SilkFox_ has joined #ruby
doodlehaus has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
bigkevmcd has quit [Ping timeout: 240 seconds]
sevenseacat has joined #ruby
pdoherty has joined #ruby
SilkFox_ has quit [Ping timeout: 265 seconds]
kp666 has quit [Quit: Leaving]
Flcn has quit [Quit: Be back later ...]
avril14th has quit [Ping timeout: 244 seconds]
Flcn has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
MrBeardy has quit []
pdoherty has quit [Ping timeout: 245 seconds]
timonv_ has joined #ruby
the_drow has joined #ruby
s00pcan has quit [Read error: Connection reset by peer]
<the_drow> Is there a way to run serverspec (rspec) tests in parallel without using rake? kitchen-ci invokes them using ssh
DonOtreply has quit [Quit: DonOtreply]
<the_drow> I'd rather require something and let magic appear instead of sshing into the machine every time
russt has joined #ruby
_Andres has quit [Ping timeout: 264 seconds]
robustus|Off is now known as robustus
govg has quit [Ping timeout: 245 seconds]
osvico has joined #ruby
sigurding has quit [Quit: sigurding]
_Andres has joined #ruby
SOLDIERz has joined #ruby
paulfm has joined #ruby
sigurding has joined #ruby
valeriansaliou has quit [Quit: Be back later ...]
emirozer_ has joined #ruby
claptor has quit [Quit: this channel is bakas]
SOLDIERz has quit [Ping timeout: 256 seconds]
s00pcan has joined #ruby
krzkrz has quit [Ping timeout: 265 seconds]
emirozer has quit [Ping timeout: 245 seconds]
teddyp1cker has joined #ruby
SOLDIERz has joined #ruby
SolarSailor has joined #ruby
apeiros has joined #ruby
tesuji has quit [Ping timeout: 244 seconds]
timonv_ has quit [Remote host closed the connection]
bronson has joined #ruby
dstarh has joined #ruby
apurcell has joined #ruby
kotk has joined #ruby
french has joined #ruby
sigurding has quit [Quit: sigurding]
coderhs has joined #ruby
kaplejon has left #ruby [#ruby]
coderhs has quit [Client Quit]
Spami has quit [Quit: This computer has gone to sleep]
hashpuppy has quit [Quit: Computer has gone to sleep.]
bronson has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
yfeldblum has joined #ruby
kotk_ has quit [Ping timeout: 240 seconds]
apurcell has quit [Ping timeout: 264 seconds]
teddyp1cker has quit [Ping timeout: 264 seconds]
delianides has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
SolarSailor has quit [Quit: My Turing machine has gone to sleep. ZZZzzz…]
teddyp1cker has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
antgel has joined #ruby
dstarh has quit [Quit: Textual IRC Client: www.textualapp.com]
jdripper has quit [Ping timeout: 244 seconds]
yfeldblum has quit [Ping timeout: 256 seconds]
thsig has quit [Remote host closed the connection]
anarang has quit [Quit: Leaving]
hashpuppy has joined #ruby
dionysus69 has quit [Ping timeout: 265 seconds]
xcesariox has quit [Quit: Textual IRC Client: www.textualapp.com]
hamakn has joined #ruby
dc_ has quit [Remote host closed the connection]
Timgauthier has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kapil__ has quit [Quit: Connection closed for inactivity]
frogsy has joined #ruby
jack_rabbit has joined #ruby
teddyp1cker has quit [Ping timeout: 265 seconds]
C1V0 has quit [Ping timeout: 240 seconds]
SirCmpwn has quit [Ping timeout: 240 seconds]
C1V0 has joined #ruby
Abhijit has joined #ruby
hamakn has quit [Ping timeout: 264 seconds]
mquin has quit [Killed (zelazny.freenode.net (Nickname regained by services))]
Abhijit has left #ruby [#ruby]
SirCmpwn has joined #ruby
mquin_ has joined #ruby
mquin_ is now known as mquin
krzkrz has joined #ruby
mquin has quit [Killed (zelazny.freenode.net (Nickname regained by services))]
mquin_ has joined #ruby
arup_r has quit []
redbaritone has joined #ruby
antgel has quit [Ping timeout: 240 seconds]
sandelius has joined #ruby
pu22l3r has quit [Ping timeout: 244 seconds]
kamilc__ has quit [Ping timeout: 250 seconds]
dcarmich has joined #ruby
davedev24_ has quit [Remote host closed the connection]
chipotle_ has quit [Quit: cheerio]
mquin_ is now known as mquin
redbaritone has quit [Client Quit]
krzkrz has quit [Quit: WeeChat 1.0.1]
timonv_ has joined #ruby
teddyp1cker has joined #ruby
tomengland has quit [Ping timeout: 264 seconds]
jack_rabbit has quit [Ping timeout: 255 seconds]
jdripper has joined #ruby
malcolmva has quit [Ping timeout: 245 seconds]
DadoCe has quit [Remote host closed the connection]
blackmesa has joined #ruby
thsig has joined #ruby
livathin_ has joined #ruby
govg has joined #ruby
Flcn has quit [Quit: Be back later ...]
CustosLimen has joined #ruby
kamilc__ has joined #ruby
metadave has joined #ruby
livathinos has quit [Ping timeout: 245 seconds]
bigkevmcd has joined #ruby
jdripper has quit [Read error: Connection reset by peer]
krzkrz has joined #ruby
jdripper has joined #ruby
emirozer__ has joined #ruby
DivineEntity has joined #ruby
krzkrz has quit [Client Quit]
dblessing has joined #ruby
adriancb has joined #ruby
krzkrz has joined #ruby
adriancb has quit [Remote host closed the connection]
adriancb has joined #ruby
charliesome has joined #ruby
ponga has quit [Remote host closed the connection]
ponga has joined #ruby
SilkFox_ has joined #ruby
emirozer_ has quit [Ping timeout: 252 seconds]
vt102 has joined #ruby
emirozer__ has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
CustosLimen has quit [Ping timeout: 245 seconds]
jdripper has quit [Ping timeout: 244 seconds]
C1V0 has quit [Ping timeout: 244 seconds]
malcolmva has joined #ruby
it0a has joined #ruby
C1V0 has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
Lewix has joined #ruby
conniemj has joined #ruby
mrmargolis has joined #ruby
ponga has quit [Ping timeout: 240 seconds]
tuelz1 has quit [Ping timeout: 264 seconds]
SilkFox_ has quit [Ping timeout: 256 seconds]
baltazore has quit [Read error: Connection reset by peer]
CustosLimen has joined #ruby
workmad3 has joined #ruby
CustosLimen has quit [Changing host]
CustosLimen has joined #ruby
baltazore has joined #ruby
cazrin has joined #ruby
sankaber has joined #ruby
az7ar is now known as az7ar_away
SolarSailor has joined #ruby
Spooner_ has joined #ruby
conniemj has quit [Ping timeout: 265 seconds]
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thsig has quit [Ping timeout: 244 seconds]
josephndenton has joined #ruby
dionysus69 has joined #ruby
sandelius has quit [Read error: Connection reset by peer]
emirozer__ has joined #ruby
fred-fri has quit [Remote host closed the connection]
chipotle has joined #ruby
Spooner_ has quit [Ping timeout: 245 seconds]
sandelius has joined #ruby
SolarSailor has quit [Ping timeout: 240 seconds]
jerius has joined #ruby
phantomtiger has joined #ruby
jack_rabbit has joined #ruby
_maes_ has joined #ruby
fryguy9 has joined #ruby
gregf has joined #ruby
davidhq has joined #ruby
athan has quit [Ping timeout: 265 seconds]
C1V0 has quit [Ping timeout: 244 seconds]
C1V0 has joined #ruby
dangerousdave has joined #ruby
oleo has joined #ruby
jdripper has joined #ruby
Soda has joined #ruby
Takle has quit [Remote host closed the connection]
duggiefresh has joined #ruby
qulo has joined #ruby
avril14th has joined #ruby
C1V0 has quit [Ping timeout: 264 seconds]
josephndenton has quit [Ping timeout: 264 seconds]
tuelz1 has joined #ruby
C1V0 has joined #ruby
silkfox has joined #ruby
andylolz has joined #ruby
andylolz has left #ruby [#ruby]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ponga has joined #ruby
jefus_ has joined #ruby
Soda has quit [Remote host closed the connection]
jack_rabbit has quit [Ping timeout: 240 seconds]
josephndenton has joined #ruby
sevenseacat has quit [Remote host closed the connection]
dumdedum has quit [Quit: foo]
devdazed has joined #ruby
thsig has joined #ruby
16WAAV5MC has joined #ruby
jefus has quit [Ping timeout: 252 seconds]
rtbt has quit [Ping timeout: 256 seconds]
doodlehaus has joined #ruby
olivier_bK has joined #ruby
spider-mario has joined #ruby
mary5030 has joined #ruby
phantomtiger has quit [Quit: phantomtiger]
doodlehaus has quit [Read error: Connection reset by peer]
himsin has joined #ruby
phantomtiger has joined #ruby
doodlehaus has joined #ruby
qulo has quit [Ping timeout: 244 seconds]
akemrir has joined #ruby
athan has joined #ruby
doodlehaus has quit [Read error: Connection reset by peer]
doodlehaus has joined #ruby
rtbt has joined #ruby
Flcn has joined #ruby
alex88 has joined #ruby
Elico has left #ruby [#ruby]
osvico has quit [Ping timeout: 245 seconds]
enebo has joined #ruby
einarj has joined #ruby
himsin has quit [Quit: himsin]
dumdedum has joined #ruby
emirozer__ has quit [Quit: Be back later ...]
himsin has joined #ruby
dionysus69 has quit [Ping timeout: 252 seconds]
LouisRoR has quit []
craigp has quit [Ping timeout: 244 seconds]
pwh has joined #ruby
sandelius has quit [Read error: Connection reset by peer]
emirozer__ has joined #ruby
allcentury has joined #ruby
DadoCe has joined #ruby
dfinninger has joined #ruby
sigurding has joined #ruby
blackoperat has quit [Ping timeout: 264 seconds]
LouisRoR has joined #ruby
Dreamer3 has joined #ruby
qulo has joined #ruby
noop has quit [Ping timeout: 256 seconds]
Takle has joined #ruby
DadoCe has quit [Ping timeout: 264 seconds]
luriv has quit [Remote host closed the connection]
spider-mario has quit [Ping timeout: 264 seconds]
sandelius has joined #ruby
evanjs has joined #ruby
Pharaoh2 has joined #ruby
<sandelius> is it preferable to reopen the main app class when creating routes in several files or just call App.get('/test') do (using sinatra)
Macaveli has quit [Ping timeout: 244 seconds]
kurtf has joined #ruby
delianides has quit [Remote host closed the connection]
delianides has joined #ruby
j2p2 has joined #ruby
tuelz1 has quit [Quit: WeeChat 1.0]
whoisjake has joined #ruby
spider-mario has joined #ruby
lea has quit [Ping timeout: 256 seconds]
charliesome has quit [Quit: zzz]
zB0hs has joined #ruby
byprdct has quit [Ping timeout: 245 seconds]
j2p2 has quit [Ping timeout: 245 seconds]
slick has quit [Ping timeout: 240 seconds]
j2p2 has joined #ruby
lea has joined #ruby
AFKGeek has quit [Quit: Fades into the shadows]
SilkFox_ has joined #ruby
slick has joined #ruby
blackoperat has joined #ruby
livathin_ has quit [Remote host closed the connection]
az7ar_away is now known as az7ar
livathinos has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tobago has quit [Remote host closed the connection]
slawrence00 has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
valeriansaliou has joined #ruby
cobakobodob has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
SilkFox_ has quit [Ping timeout: 256 seconds]
timonv_ has quit [Remote host closed the connection]
delianides has quit [Remote host closed the connection]
arup_r has joined #ruby
delianides has joined #ruby
lxsameer has quit [Quit: Leaving]
cobakobodob has joined #ruby
Timgauthier has joined #ruby
Crazy_Atheist has joined #ruby
Photism has joined #ruby
blackmesa has joined #ruby
az7ar is now known as az7ar_away
valeriansaliou has quit [Ping timeout: 244 seconds]
kurtf has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
n008f4g_ has joined #ruby
kurtf has joined #ruby
lmickh has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
jobewan has joined #ruby
bronson has joined #ruby
tagrudev has quit [Remote host closed the connection]
apurcell has joined #ruby
charliesome has joined #ruby
Ankhers has joined #ruby
tubuliferous has joined #ruby
scripore has joined #ruby
^wald0 has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
yfeldblum has joined #ruby
jenrzzz has joined #ruby
apurcell has quit [Ping timeout: 256 seconds]
timonv_ has joined #ruby
MrBeardy has joined #ruby
timonv_ has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 244 seconds]
uri_ has joined #ruby
omosoj has joined #ruby
sigurding has quit [Quit: sigurding]
ponga has quit [Read error: Connection reset by peer]
panga has joined #ruby
panga has quit [Client Quit]
ponga has joined #ruby
sshao has joined #ruby
duggiefresh has quit [Remote host closed the connection]
gfawcettpq has quit [Quit: Leaving.]
timonv_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
thatslifeson_ has joined #ruby
timonv_ has joined #ruby
thatslifeson has quit [Ping timeout: 244 seconds]
crueber has joined #ruby
dionysus69 has joined #ruby
blackoperat1 has joined #ruby
gfawcettpq has joined #ruby
agrinb has joined #ruby
gfawcettpq has quit [Client Quit]
blackoperat has quit [Ping timeout: 264 seconds]
pu22l3r has joined #ruby
qba73 has quit []
timonv_ has quit [Ping timeout: 245 seconds]
intyl has quit [Ping timeout: 240 seconds]
<ericwood> sandelius: depends on the app, but it's not an awful idea to separate out related routes
dfinninger has quit [Remote host closed the connection]
govg has quit [Ping timeout: 265 seconds]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
bitcycle has joined #ruby
ponga has quit [Read error: Connection reset by peer]
tkuchiki has quit [Remote host closed the connection]
duggiefresh has joined #ruby
hornairs has joined #ruby
ponga has joined #ruby
tkuchiki has joined #ruby
C1V0 has quit [Ping timeout: 252 seconds]
jefus_ is now known as jefus
ndrei has quit [Ping timeout: 252 seconds]
<sandelius> ericwood yeah but should a reopen the main class and defined them or call them e.g App.get '/foo/bar'
C1V0 has joined #ruby
apeiros has quit [Remote host closed the connection]
_maes_ has joined #ruby
apeiros has joined #ruby
charliesome has quit [Quit: zzz]
dionysus69 has quit [Ping timeout: 264 seconds]
bal has quit [Quit: bal]
tkuchiki has quit [Ping timeout: 255 seconds]
DadoCe has joined #ruby
uri_ has quit [Read error: Connection reset by peer]
blackoperat has joined #ruby
ponga has quit [Quit: Leaving...]
blackoperat has quit [Client Quit]
ponga has joined #ruby
blackoperat1 has quit [Quit: Leaving]
Tricon has joined #ruby
treehug88 has joined #ruby
blackoperat has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
fantazo has quit [Quit: Verlassend]
<surs> does ruby 1.9.3 not have File.join?
Macaveli has joined #ruby
pandaant has joined #ruby
oleo__ has joined #ruby
sambao21 has joined #ruby
blackoperat has quit [Client Quit]
Pharaoh2 has joined #ruby
DadoCe has quit [Ping timeout: 264 seconds]
pu22l3r_ has joined #ruby
pu22l3r has quit [Read error: Connection reset by peer]
jdripper has quit [Quit: Leaving.]
troulouliou_dev has joined #ruby
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
oleo is now known as Guest72807
gfawcettpq has joined #ruby
Guest72807 has quit [Ping timeout: 245 seconds]
DonOtreply has joined #ruby
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has joined #ruby
conniemj has joined #ruby
Macaveli has quit [Ping timeout: 264 seconds]
govg has joined #ruby
gtrak has joined #ruby
valeriansaliou has joined #ruby
blackoperat has joined #ruby
ponga has quit [Quit: Leaving...]
Xeago has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
conniemj has quit [Ping timeout: 264 seconds]
16WAAV5MC has quit [Read error: Connection reset by peer]
oleo__ has quit [Quit: Verlassend]
pdoherty has joined #ruby
Timgauthier has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oleo__ has joined #ruby
oleo__ is now known as oleo
mac__ has joined #ruby
mengu has quit [Remote host closed the connection]
scripore has quit [Ping timeout: 245 seconds]
SilkFox_ has joined #ruby
reinaldob has quit [Ping timeout: 255 seconds]
havenwood has joined #ruby
reinaldob has joined #ruby
harax has joined #ruby
maletor has joined #ruby
jimmyhoughjr has joined #ruby
Xeago has joined #ruby
ferr has quit [Ping timeout: 264 seconds]
Alina-malina has quit [Read error: Connection reset by peer]
LekeFly has quit [Ping timeout: 256 seconds]
Alina-malina has joined #ruby
SOLDIERz has quit [Quit: Be back later ...]
Fire-Dragon-DoL has joined #ruby
valeriansaliou has quit [Read error: Connection reset by peer]
bronson has joined #ruby
SilkFox_ has quit [Ping timeout: 264 seconds]
fryguy9 has quit [Quit: Leaving.]
Xeago has quit [Remote host closed the connection]
<gilmour> surs: It does.
aganov has quit [Remote host closed the connection]
<weeb1e_> ^
<weeb1e_> surs: Remember that it will join with / even on windows
maestrojed has joined #ruby
doodlehaus has quit [Ping timeout: 265 seconds]
fabrice31 has quit [Remote host closed the connection]
dfinninger has joined #ruby
p0wn3d_mhs has quit [Ping timeout: 250 seconds]
fabrice31 has joined #ruby
chipotle has quit [Quit: cheerio]
<cvtsx1> i keep getting an error that says the class isn't found
Flcn has quit [Quit: Be back later ...]
<cvtsx1> even though i have included the header
<havenwood> cvtsx1: require 'net/http'
mac__ has quit [Ping timeout: 244 seconds]
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<cvtsx1> havenwood i have done that '
<havenwood> cvtsx1: Gist the code you have?
<cvtsx1> kk
<surs> where is it documented? and open()?
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
<cvtsx1> here is the snippet, http://pastebin.com/p81JQtsJ
<havenwood> cvtsx1: Show from where you require?
<surs> I'm on 1.9.3
terlar has quit [Ping timeout: 264 seconds]
davedev24_ has joined #ruby
<havenwood> cvtsx1: I meant everything, from where you require to where the code is called. I imagine the answer is somewhere between what you've pasted.
<cvtsx1> kk lol
fabrice31 has quit [Ping timeout: 245 seconds]
uri_ has joined #ruby
<havenwood> cvtsx1: My guess would be that you're calling `Net::HTTP` inside a namespace so you need to use `::Net::HTTP`.
dblessing has joined #ruby
chrishough has joined #ruby
<havenwood> cvtsx1: Yeah, it's looking for Proxycheck::Net::HTTP when you mean Net::HTTP.
<cvtsx1> omfg i fail xD
<havenwood> cvtsx1: ::Net::HTTP
fryguy9 has joined #ruby
<cvtsx1> 3 hours of me flipping out xD havenwood thanks dude :)
<havenwood> cvtsx1: Hehe. You're welcome.
<waxjar> huh, shouldn't that just fall back to the global namespace?
<cvtsx1> havenwood i am still getting errors :(
<havenwood> cvtsx1: New error?
nfk has joined #ruby
<cvtsx1> yeah, i added the "Proxycheck::Net::HTTP"
ndrei has joined #ruby
XvXBladeXvX has joined #ruby
<waxjar> cvtsx1: can you paste your original error?
aswen has quit [Ping timeout: 245 seconds]
<cvtsx1> ya 1 min
_1_ARRON has joined #ruby
CustosL1men has quit [Ping timeout: 245 seconds]
_1_ARRON has quit [Client Quit]
go4it has quit []
shredding has quit [Quit: shredding]
livathin_ has joined #ruby
livathin_ has quit [Client Quit]
<cvtsx1> havenwood how do i copy the error?
emirozer__ has quit [Quit: Lingo: www.lingoirc.com]
<havenwood> copy past?
<havenwood> paste*
DaniG2k_ has joined #ruby
<havenwood> dunno
alex88 has quit []
jefus_ has joined #ruby
<havenwood> gist gem, showterm.io
maletor has quit [Quit: Computer has gone to sleep.]
<cvtsx1> will it let u do that in the console?
rbrs has quit [Quit: rbrs]
<surs> I run FileUtils.touch(errorLogFilePath) , errorLogFilePath is defined on the previous line. When this line is executed the variable errorlogFilePath gets destroyed. Why?
<havenwood> cvtsx1: depends, but typically sure
<havenwood> cvtsx1: are you running this on a toaster?
sambao21 has quit [Quit: Computer has gone to sleep.]
<cvtsx1> i know in cmd you can but not in the ruby console
<havenwood> toasters don't usually have screens, unless they're really nice
Takle has quit [Remote host closed the connection]
<havenwood> cvtsx1: irb you mean?
livathinos has quit [Ping timeout: 240 seconds]
<cvtsx1> yeah, i just started ruby
<havenwood> cvtsx1: Pry is a very nice alternative to irb by the way. Just `gem install pry pry-doc` and use `pry` instead of `irb`. http://pryrepl.org/
DaniG2k has quit [Ping timeout: 256 seconds]
<havenwood> cvtsx1: You can gist code directly from Pry. You might also need to `gem install gist`.
Morkel has quit [Quit: Morkel]
<havenwood> surs: It gets destroyed? Have a code example to gist so we can see what you mean?
<cvtsx1> kk but how do i specify whether i want to run irb or pry? I use notpad++
<waxjar> surs, are you sure you're not misspelling it?
doodlehaus has joined #ruby
<surs> after 5 times, I'm pretty sure
jefus has quit [Ping timeout: 245 seconds]
<havenwood> cvtsx1: I don't know how one would use a REPL from notepad++, I've never used it.
<surs> how can I list the local variables? I'm running ruby bla.rb -rdebug
<bradland> cvtsx1: you should be able to use your mouse to select text regardless of whether you're at a command prompt or at an irb prompt
Takle has joined #ruby
<bradland> cvtsx1: i can walk you through this, but i need some basic info
<bradland> what operating system are you using?
<cvtsx1> windows 8
DaniG2k_ has quit [Read error: Connection reset by peer]
<bradland> ok, and when you run your program, are you running it from a window you started with cmd.exe?
<waxjar> if you just want to run a file, use the ruby executable rather than the irb executable
<cvtsx1> save the ruby file to my desktop and click on the icon
<bradland> ok, so you're double-clicking the file to run it, correct?
<cvtsx1> yes
baroquebobcat has joined #ruby
<bradland> ok, i want you to do a couple of things differently
<bradland> this will make it easier to get help
<cvtsx1> k
<bradland> and to understand what's happening
<bradland> you're going to need to get comfortable with the command line
<cvtsx1> i am
<bradland> ok, do you know how to start a cmd.exe session?
<cvtsx1> ya
mleung has joined #ruby
<surs> how can I list the local variables? I'm running ruby -rdebug bla.rb
<bradland> ok, great. i want you to start a cmd.exe window
<cvtsx1> ya
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> surs: local_variables
<bradland> rather than double-clicking a file to run it, you should use "cd" to navigate to where the ruby file is, then type "ruby filename.rb" to run the file
<bradland> when you receive an error, the window will stay open, and you'll return to the prompt
jaequery has joined #ruby
<cvtsx1> k
<bradland> once you've enabled "quick edit", you'll be able to use your mouse to copy/paste errors
<bradland> which is extremely helpful for us :)
<surs> thanks havenwood
kurtf has quit [Ping timeout: 245 seconds]
VictorBjelkholm has quit [Quit: Leaving]
dfinninger has quit [Remote host closed the connection]
<cvtsx1> here are the errors i am receiving http://pastebin.com/xF1dz4SM
<cvtsx1> bradland ya lol, i know how to do it in cmd just didnt know how to in irb
<bradland> cvtsx1: well, you're not actually in irb
<bradland> irb is a separate program
<cvtsx1> what is it then?
<cvtsx1> just a shell?
<bradland> when you run the command "ruby filename.rb", you're just executing the ruby interpreter
<bradland> and after the error, you're back at a shell
<cvtsx1> kk
<bradland> type irb in to your shell
<bradland> you're going to love this
<bradland> you'll notice that your prompt changes
<bradland> this is called a REPL
<bradland> http://en.wikipedia.org/wiki/Read–eval–print_loop
<bradland> a REPL allows you to type code at a prompt and have it evaluated in real time
<cvtsx1> aww kk
<bradland> type any valid ruby code there and see what happens
<bradland> that's irb
<cvtsx1> i see
<bradland> pry is an alternative to irb
<cvtsx1> aw
<bradland> you can install it with "gem install pry"
<cvtsx1> k ima do it now
<bradland> then start it by typing pry instead of irb
sshao_ has joined #ruby
sshao has quit [Read error: Connection reset by peer]
amil has joined #ruby
<bradland> cvtsx1: let me know when you're done and we'll get back to your "toplevel constant" warning
fryguy9 has quit [Quit: Leaving.]
<cvtsx1> i am done :)
doodleha_ has joined #ruby
codeFiend has joined #ruby
doodlehaus has quit [Read error: Connection reset by peer]
<cvtsx1> these errors are bugging me lol i am so much used to an IDE (visual studio), i feel spoiled
<bradland> ok, so the error you're getting is related to what's called namespacing
<bradland> yeah, unfortunately, the stack traces provided by ruby on windows kind of suck
<bradland> there are no line breaks
<cvtsx1> ya
<bradland> on Unix-like systems, the stack trace is broken up on to multiple lines
jds has left #ruby [#ruby]
dblessing has quit [Ping timeout: 265 seconds]
<canton7> huh? the windows stack trace for ruby is line-broken...
<cvtsx1> hm maybe i should start dual booting ubuntu
<bradland> ok, so on line 19 of your script, see where you're calling Net::HTTP?
<bradland> we'll circle back to that
kamilc__ has quit [Ping timeout: 264 seconds]
<cvtsx1> ya
dfinninger has joined #ruby
<bradland> ok, so Net::HTTP is a reference to the HTTP library within the Net library
<cvtsx1> yeah
<canton7> bradland, http://imgur.com/uYleYPq
renderful has joined #ruby
<pipework> Well, yeah. But more specifically, it's referencing the value at the constant Net::HTTP
<bradland> right
<bradland> the key is to understand that it's a hierarchy
<cvtsx1> hmm so req should be a const?
<bradland> HTTP is "within" Net
<bradland> but where is Net?
<bradland> that's what the warning is talking about
<bradland> it's looking for Proxycheck::Net
GaryOak_ has joined #ruby
<cvtsx1> k
<pipework> In the global namespace.
apeiros has joined #ruby
<bradland> you know how paths in HTML can be relative or root based?
Hobogrammer has quit [Read error: Connection reset by peer]
<bradland> root relative: /folder/file.jpg
St1gma has joined #ruby
<bradland> versus relative: folder/file.jpg
<cvtsx1> ya
<bradland> it's the same with ruby namespaces
Takle has quit [Remote host closed the connection]
<bradland> relative: Net::HTTP
<bradland> root relative: ::Net::HTTP
<bradland> the characters :: are the namespace separator
<bradland> just like the character / is the file path separator
<cvtsx1> k
<workmad3> bradland: you mean 'absolute' not 'root relative'
<bradland> so if you say ::Net::HTTP, you're telling Ruby to look at the root of the namespace
cazrin has quit [Remote host closed the connection]
msgodf has quit [Remote host closed the connection]
<cvtsx1> k
<bradland> any time someone corrects my terminology, you should pay close attention, because i'm horrible about that :)
athan has quit [Remote host closed the connection]
<cvtsx1> lol
<bradland> ::Net::HTTP is an absolute path
<workmad3> also, un-rooted constant references in ruby will 'look up' the scope if it doesn't find a match (unlike HTTP paths or file system paths)
<bradland> err, not path
<bradland> lol
<bradland> again with the terminology
defrang has quit [Quit: defrang]
<pipework> It just references the top-level namespace.
<cvtsx1> k
DadoCe has joined #ruby
sambao21 has joined #ruby
<bradland> so to resolve that error, should he use ::Net::HTTP ?
<workmad3> (and by 'the scope', I mean the lexical scope that you can look at by using Module.nesting)
<cvtsx1> bradland just tried it and i am still getting errors
<bradland> different error or the same?
<cvtsx1> but it did solve that one error
<workmad3> bradland: the 'top level constant' bit is just a warning by the way
<bradland> ya
<workmad3> (also to cvtsx1)
defrang has joined #ruby
defrang has quit [Client Quit]
<workmad3> it's saying "You used Net::HTTP inside Proxycheck, but Proxycheck::Net didn't exist so we used ::Net::HTTP instead"
sambao21 has quit [Client Quit]
jmcharnes has joined #ruby
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Takle has joined #ruby
<cvtsx1> hmm it did solve that warning :)
<workmad3> right, because you're now explicitly stating that you want to use the Net from the global namespace, rather than relying on the lexical scoping rules to find the right one
<cvtsx1> these are my current errors http://pastebin.com/Zx0YmkUi
<workmad3> the 'getaddrinfo' error that is probably the one you're really concerned with... need to see code for that
<cvtsx1> k
Pharaoh2 has joined #ruby
flagg0204 has joined #ruby
DadoCe has quit [Ping timeout: 244 seconds]
delianides has quit [Remote host closed the connection]
flagg0204 has left #ruby ["Textual IRC Client: www.textualapp.com"]
<workmad3> cvtsx1: ok, so the problem is probably that you're trying to connect to an HTTPS site without having loaded 'net/https' (which pulls in SSL support) and possibly also an error if you're trying to connect to it via an http proxy
sambao21 has joined #ruby
<cvtsx1> workmad3 ok, i dont think any of the proxies support ssl so should i use another site w/o ssl?
<workmad3> cvtsx1: the 'could not find class' is going to be because it's trying to find Net::HTTPS, and you haven't loaded it (put require 'net/https' at the top)
<workmad3> cvtsx1: I'd suggest so, yes
lele has quit [Ping timeout: 265 seconds]
gsd has joined #ruby
<workmad3> cvtsx1: if you don't think you have an https proxy
<cvtsx1> ok
fryguy9 has joined #ruby
<cvtsx1> same errors :(
conniemj has joined #ruby
<cvtsx1> is there something wrong with my installation? like am i missing some libraries?
rbrs has joined #ruby
delianides has joined #ruby
C1V0 has quit [Ping timeout: 245 seconds]
<workmad3> cvtsx1: as for why you're getting malformed exception output... that's because you're catching the exception and then printing it out using a method that doesn't print newlines in arrays :)
<cvtsx1> changed the site to stackoverflow.com (non ssl) and same errors
C1V0 has joined #ruby
<cvtsx1> k
<cvtsx1> how should i go about doing it?
nicolastarzia has joined #ruby
harax has quit [Ping timeout: 252 seconds]
<cvtsx1> loop through it?
icebourg has joined #ruby
<workmad3> cvtsx1: personally, I'd say don't catch the exception
geggam has joined #ruby
<workmad3> cvtsx1: especially don't catch the exception with a 'rescue Exception' block...
<bradland> yeah, right now, pull out the rescue line and the two puts
<cvtsx1> why?
<bradland> because Exception is too broad
<cvtsx1> k
<bradland> you're literally catching everything
<workmad3> including syntax errors
thsig has quit [Remote host closed the connection]
<bradland> with exception handling, you only want to catch exceptions when you can do something productive with them
wallerdev has joined #ruby
lkba_ has quit [Quit: Bye]
<cvtsx1> k
lkba has joined #ruby
<bradland> if you're just going to put the message and let the script die, you can just not catch the exception at all
jefus_ is now known as jefus
thsig has joined #ruby
pu22l3r_ has quit [Ping timeout: 255 seconds]
<workmad3> cvtsx1: I can see why you wanted to put in the exception handling... it's so you can try a proxy and move on to the next if it fails, correct?
<cvtsx1> yeah kinda like a on error do next
<workmad3> cvtsx1: but right now, it would be more useful for your dev efforts to ignore the error handling :)
gr33n7007h has joined #ruby
<cvtsx1> kk
renderful has quit [Remote host closed the connection]
<workmad3> cvtsx1: and just let the script get killed when a proxy that should work isn't
<cvtsx1> k
n008f4g_ has quit [Ping timeout: 244 seconds]
max96at is now known as max96at|off
lele has joined #ruby
nicolastarzia has quit [Ping timeout: 252 seconds]
<cvtsx1> here is the current list of errors w/ better formatting http://pastebin.com/sbpcM7nQ
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
jaequery has joined #ruby
michaeldeol has joined #ruby
SilkFox_ has joined #ruby
pu22l3r has joined #ruby
krzkrz has quit [Quit: WeeChat 1.0.1]
apurcell has joined #ruby
<gr33n7007h> anyone here got a mac?
pengin has joined #ruby
<cvtsx1> i have a old ppc imac
gfawcettpq has left #ruby [#ruby]
az7ar_away is now known as az7ar
<gr33n7007h> do you know what the terminal font is called?
<workmad3> gr33n7007h: I think mine defaulted to monaco
gfawcettpq has joined #ruby
<workmad3> gr33n7007h: but I changed it on my machine :)
<gr33n7007h> workmad3, cheers, lemme check :)
andikr has quit [Remote host closed the connection]
<arrubin> gr33n7007h: The defaul tis Monico I believe.
<gr33n7007h> arrubin, thanks :)
Macaveli has joined #ruby
<arrubin> Actually, looks like Menio now.
bricker has joined #ruby
tumaru has joined #ruby
<arrubin> There are different profiles. The default is Menio. Some others use Monaco and Courier.
greenbagels has joined #ruby
yfeldblum has joined #ruby
SilkFox_ has quit [Ping timeout: 245 seconds]
<arrubin> And Andale Mono.
codeFiend has quit [Quit: codeFiend]
max96at|off is now known as max96at
<arrubin> I believe that the default in iTerm is Monaco though.
<gr33n7007h> It looks like the monaco one is it
apurcell has quit [Ping timeout: 264 seconds]
renderful has joined #ruby
az7ar is now known as az7ar_away
<gr33n7007h> super, monaco's the one ;)
<gr33n7007h> cheers guys
n3b has left #ruby [#ruby]
elabs-developer has quit [Quit: elabs-developer]
claw_ has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
recurrence has joined #ruby
claw has quit [Ping timeout: 256 seconds]
deric_skibotn has joined #ruby
thsig_ has joined #ruby
thsig has quit [Read error: Connection reset by peer]
chrishough has joined #ruby
pdoherty has quit [Remote host closed the connection]
thsig has joined #ruby
harax has joined #ruby
troulouliou_dev has quit [Remote host closed the connection]
allcentury has quit [Ping timeout: 264 seconds]
josephnd1nton has joined #ruby
russt has quit [Read error: Connection reset by peer]
Flcn has joined #ruby
thsig_ has quit [Ping timeout: 245 seconds]
russt has joined #ruby
livingstn has joined #ruby
tus has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
thumpba has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
mikecmpbll has quit [Ping timeout: 264 seconds]
Maxino has joined #ruby
thumpba_ has joined #ruby
josephnd1nton has quit [Ping timeout: 252 seconds]
codeFiend has joined #ruby
einarj has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
blackmesa has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thumpba has quit [Ping timeout: 244 seconds]
dc_ has joined #ruby
pwnz0r has joined #ruby
godd2 has joined #ruby
french has quit [Remote host closed the connection]
Asher has quit [Quit: Leaving.]
econerd4ever has joined #ruby
<dfinninger> anyone worked with Mixlib::Config before?
<dfinninger> trying mix config_contexts and from_file
xxneolithicxx has joined #ruby
wallerdev has quit [Quit: wallerdev]
Mdgd` has quit [Quit: Leaving]
<xxneolithicxx> hello all, does ruby have any built in numeric range constants for things a C/C++ unsigned long int max
wald0 has joined #ruby
pdoherty has joined #ruby
<pwnz0r> a range or a constant?
<xxneolithicxx> constant
Tricon has quit [Quit: leaving]
<xxneolithicxx> like Fixnum.uint_max == 4,294,967,295
Tricon has joined #ruby
<xxneolithicxx> i know ruby doesnt technically have the same limitations number wise just looking to see if some of the standard values are stored as constants somewhere
djbkd has joined #ruby
<nug> xxneolithicxx: doesn't look like it. http://stackoverflow.com/questions/535721/ruby-max-integer
<nug> and you probably want the second answer
mikecmpbll has quit [Quit: i've nodded off.]
jenrzzz has joined #ruby
fandi has quit [Ping timeout: 252 seconds]
mikecmpbll has joined #ruby
maletor has joined #ruby
jheg has quit [Quit: jheg]
qulo has quit [Remote host closed the connection]
uri_ has quit [Read error: Connection reset by peer]
mjuszczak has joined #ruby
harax has quit [Ping timeout: 245 seconds]
robustus is now known as robustus|Off
osvico has joined #ruby
djbkd has quit [Remote host closed the connection]
<omosoj> i want to use the select method to shorten an object jsut to see if i'm workign in the right part of the code. don't know if it's a hash or array or anything
djbkd has joined #ruby
tkuchiki has joined #ruby
<apeiros> omosoj: uh, just ask the object what it is?
<omosoj> how do i do that? it's tangled in a rails app
<apeiros> obj.class
<apeiros> obj.is_a?
<omosoj> where do i type that?
<omosoj> it appears as super in thsi method
<apeiros> super is like a method call
elaptics is now known as elaptics`away
Takle has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: ciao.]
<omosoj> is there a simple way to select every other object or something? just looking for something quick and dirty
agjacome has joined #ruby
<apeiros> so you either assign the return value of super, print the value of obj.class, then let it continue using the variable you assigned the value to
<apeiros> it's a rather bad idea to do *something* on stuff you have no clue what it is.
allcentury has joined #ruby
<apeiros> but sure… see things like each_slice
<omosoj> apeiros, why? i just want to know if i'm in the right part of the code to alter this. it wont be permanent
teddyp1cker has quit [Read error: Connection timed out]
arup_r has quit [Ping timeout: 264 seconds]
<apeiros> you seem to be using rather odd tools for your purposes.
harax has joined #ruby
cazrin has joined #ruby
tkuchiki has quit [Ping timeout: 244 seconds]
elaptics`away is now known as elaptics
arup_r has joined #ruby
teddyp1cker has joined #ruby
<omosoj> lol i'm a newbie, trying to learn :)
luksaur has quit [Ping timeout: 264 seconds]
LouisRoR has quit [Ping timeout: 252 seconds]
Pharaoh2 has joined #ruby
Lewix has quit [Remote host closed the connection]
evanjs has quit [Remote host closed the connection]
renderful has quit [Remote host closed the connection]
Techguy305 has joined #ruby
mjuszczak has quit []
Techguy305 has quit [Max SendQ exceeded]
allcentury has quit [Ping timeout: 255 seconds]
fandi has joined #ruby
davedev2_ has joined #ruby
luksaur has joined #ruby
luksaur has quit [Changing host]
luksaur has joined #ruby
cazrin has quit [Ping timeout: 264 seconds]
treehug88 has quit [Ping timeout: 256 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
davedev24_ has quit [Ping timeout: 255 seconds]
bitcycle has quit [Ping timeout: 245 seconds]
mjuszczak has joined #ruby
athan has joined #ruby
defrang has joined #ruby
apurcell has joined #ruby
tier has joined #ruby
sambao21 has joined #ruby
Zekka has quit [Read error: Connection reset by peer]
mjuszczak has quit [Client Quit]
Photism_ has joined #ruby
Photism has quit [Read error: Connection reset by peer]
pu22l3r has quit [Remote host closed the connection]
jottr has joined #ruby
wallerdev has joined #ruby
Maxino has quit [Quit: Leaving]
Spooner has joined #ruby
allcentury has joined #ruby
treehug88 has joined #ruby
Ankhers` has joined #ruby
sargas has joined #ruby
SparkMasterTape has joined #ruby
<sargas> when can you call send messages to `end`? Ex: `end.present?`
<apeiros> sargas: misunderstanding. you don't send messages to end. ever.
<apeiros> you send messages to the *object* returned by the expression terminated by end.
<sargas> I see
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sargas> apeiros: is it possible on method definitions?
<apeiros> sure
<apeiros> >> def foo; end.to_s
<eval-in> apeiros => "foo" (https://eval.in/240596)
<omosoj> but you might as well include it in the method, no?
<apeiros> with ruby pre 2.1, def returns nil, as of 2.1, it returns a symbol with the method name
<sargas> apeiros: now that just blew my mind
Ankhers has quit [Ping timeout: 250 seconds]
SOLDIERz has joined #ruby
<apeiros> >> (def foo; end)
<eval-in> apeiros => :foo (https://eval.in/240600)
<gr33n7007h> >> Thread.new do; puts "foo"; end.join
<apeiros> this is just an expression, which evaluates to an object.
<eval-in> gr33n7007h => (https://eval.in/240601)
<sargas> user tumaru sending unrelated links on PMs
treehug88 has quit [Ping timeout: 245 seconds]
fabrice31 has joined #ruby
<godd2> gr33n7007h evalin doesn't like Threads :(
<godd2> "Forbidden syscall clone" if you follow the link
<sargas> godd2: looks that way
dblessing has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
<sargas> apeiros: if the expression returns self, you can keep chaining them then
<gr33n7007h> bad bot, must destroy
graydot has joined #ruby
<sargas> right?
<apeiros> sargas: you can keep chaining no matter what it returns
harax has quit [Ping timeout: 255 seconds]
<sargas> apeiros: I see, let me try something
the_drow has quit [Ping timeout: 246 seconds]
<sargas> >> def foo; 'foo'; end.times 3
<eval-in> sargas => undefined method `times' for :foo:Symbol (NoMethodError) ... (https://eval.in/240604)
rbennacer has joined #ruby
rbennacer has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 244 seconds]
<sargas> >> def foo; 'foo'; end * 3
<eval-in> sargas => undefined method `*' for :foo:Symbol (NoMethodError) ... (https://eval.in/240605)
osvico has quit [Ping timeout: 244 seconds]
rbennacer has joined #ruby
rbennacer has quit [Remote host closed the connection]
Pharaoh2 has quit [Ping timeout: 245 seconds]
<apeiros> sargas: as with all objects - it doesn't make sense chaining methods which the receiving object does not respond to.
rbennacer has joined #ruby
<apeiros> you don't doo `:foo * 3` either. and the above is precisely that.
rbennacer has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 244 seconds]
sevvie has joined #ruby
michaeldeol has joined #ruby
rbennacer has joined #ruby
Pharaoh2 has joined #ruby
treehug88 has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
devdazed has quit [Quit: Computer has gone to sleep.]
lea has quit [Quit: Page Closed]
cazrin has joined #ruby
thumpba has joined #ruby
<gr33n7007h> tumaru, PM overload :(
lmickh has quit [Ping timeout: 256 seconds]
nanoyak has joined #ruby
LouisRoR has joined #ruby
amoeba has joined #ruby
devdazed has joined #ruby
jerius has quit []
thumpba_ has quit [Ping timeout: 252 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
nanoyak has quit [Remote host closed the connection]
<sargas> gr33n7007h: yeah seriously
<gr33n7007h> sargas, yep
codeFiend has quit [Quit: codeFiend]
<sargas> gr33n7007h: tumaru was PMing me with useless links too
<sargas> apeiros: a def foo, returns a symbol of the method name, right?
<apeiros> yes, as said before
<gr33n7007h> >> def foo; 69; end.class
<eval-in> gr33n7007h => Symbol (https://eval.in/240610)
baroquebobcat has joined #ruby
^wald0 has quit [Quit: ^wald0]
lmickh has joined #ruby
Lingo___ has joined #ruby
<sargas> apeiros: Thanks, it takes time to comprehend some concepts still...
jenrzzz has quit [Ping timeout: 244 seconds]
Faiqus has joined #ruby
hornairs_ has joined #ruby
Ankhers` is now known as Ankhers
sambao21 has quit [Quit: Computer has gone to sleep.]
rdark has quit [Quit: leaving]
amoeba has quit [Quit: Leaving]
jenrzzz has joined #ruby
sambao21 has joined #ruby
djbkd has quit [Remote host closed the connection]
Photism has joined #ruby
bitcycle has joined #ruby
Photism_ has quit [Read error: Connection reset by peer]
doodleha_ has quit [Remote host closed the connection]
hornairs has quit [Ping timeout: 256 seconds]
sambao21 has quit [Client Quit]
Tricon has quit [Quit: leaving]
Tricon has joined #ruby
<sargas> gr33n7007h: that's great, blocks are awesome
codeFiend has joined #ruby
djbkd has joined #ruby
<gr33n7007h> :)
<sargas> I'm going to play with these more, including on procs and lambdas
sambao21 has joined #ruby
<bradland> omosoj: if you have an object buried deep within a rails app, use Rails.logger to write information about it to the log, and keep `tail -f log/development.log` running in a separate tab
<bradland> be sure to choose the appropriate log level, and clean up when you're done
<bradland> here's a guide: rpvps11
rkalfane has joined #ruby
bitcycle has quit [Ping timeout: 244 seconds]
akemrir has quit [Quit: WeeChat 1.0.1]
<bradland> cvtsx1: how's the debugging going?
pengin has quit [Remote host closed the connection]
<bradland> omosoj: derp, here's the guide: http://guides.rubyonrails.org/debugging_rails_applications.html
baweaver has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
powersurge has joined #ruby
Fretta has joined #ruby
thsig has quit [Remote host closed the connection]
<gr33n7007h> >> (1..10).map(&Proc.new{|n| n**3})
<eval-in> gr33n7007h => [1, 8, 27, 64, 125, 216, 343, 512, 729, 1000] (https://eval.in/240615)
<powersurge> so in an activerecord model I've got an attr_accessor :current_user, but when to_yaml gets called on it, the yaml serialization no longer has the current_user
<powersurge> I'm guessing that activerecord overrides the to_yaml in some way but I'm a little bit confused in how to track that down and how to get it to deserialize as an ActiveRecord instance with current_user property intact
<pipework> Because #attributes
ptrrr has joined #ruby
mjuszczak has joined #ruby
studiotate has joined #ruby
<powersurge> I did see that all of the activerecord attribtues were serialized into an attributes list
<powersurge> is there a way to get my normal attr_accessor methods + their related ivars to serialize/deserialize?
dumdedum has quit [Quit: foo]
<pipework> Yeah, but it sucks.
<Senjai> powersurge: You might as well not use attr_accessor if you need to do things
<Senjai> powersurge: Just define the getter and setters yourself
jerius has joined #ruby
<Senjai> powersurge: Or is this a rails question
treehug88 has quit [Ping timeout: 244 seconds]
<pipework> Senjai: Still won't help with the #attributes stuff.
<Senjai> powersurge: serialize :attribute
<Senjai> in rails
<powersurge> it is a rails project
pdoherty has quit [Remote host closed the connection]
<powersurge> I'll look that up, thanks Senjai
<bradland> powersurge: check out the ActiveModel::Serializers gem
jmosco has joined #ruby
<Senjai> bradland: wat
<pipework> bradland: Not a bad idea, but .serialize is easier.
<Senjai> bradland: Isn't that just meant for serializing API responses?
jmcharnes has quit [Quit: Textual IRC Client: www.textualapp.com]
<powersurge> I'm not really in control of the serializer, it's just incidental that it gets serialized to yaml as a part of another library
<Senjai> If you wanted to persist abstract data types to the database, you'll want to use serialize on the model
<bradland> yes, the context matters
<bradland> just something to look at. use it only if it fits your need.
pdoherty_ has joined #ruby
mjuszczak has quit [Ping timeout: 252 seconds]
<pipework> powersurge: You can insert a serializer to call #to_yaml on eventually.
<pipework> But .serialize is the better choice here.
treehug88 has joined #ruby
az7ar_away is now known as az7ar
bitcycle has joined #ruby
djbkd has quit [Remote host closed the connection]
<powersurge> hmmm
sinkensabe has quit [Remote host closed the connection]
pengin has joined #ruby
<powersurge> I added serialize :current_user just below my attr_accessor called and in the rails console I tried doing .to_yaml on an appraisal that I set a current_user on and it doesn't seem to be in the yaml representation
<powersurge> did I miss a step?
treehug88 has quit [Max SendQ exceeded]
az7ar is now known as az7ar_away
cazrin has quit [Remote host closed the connection]
<Senjai> whoa whoa
<Senjai> Are you trying to serialize another active record model
<powersurge> yea, I am
<Senjai> why
treehug88 has joined #ruby
<Senjai> Just use the association
<powersurge> there's no association
<Senjai> make one
<Senjai> Serialization is for database attributes
<powersurge> so here's what's happening
sambao21 has quit [Quit: Computer has gone to sleep.]
<powersurge> I have an appraisal and the user who is currently doing work is attached as a property (because someone at some point thought that was a good idea) and then when an event is called (via the state_machine gem) it captures who is performing that event via current_user
<Senjai> code plz
<Senjai> Code speaks louder than words
pu22l3r has joined #ruby
<powersurge> and that all worked fine. but now that I need to send an appraisal into a delayed_job, which serializes it as yaml to the db and deserializes later, it's breaking down
treehug88 has quit [Read error: Connection reset by peer]
<pontiki> powersurge: !code
<helpa> powersurge: We cannot help you with your problem if you don't show us your code. Please put it on http://gist.github.com and give us the URL so we can see it.
sambao21 has joined #ruby
treehug88 has joined #ruby
<powersurge> I'll see if I can't get you guys a couple of snippets
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
jottr has joined #ruby
x77686d has joined #ruby
marr has quit [Read error: Connection reset by peer]
treehug88 has quit [Ping timeout: 256 seconds]
wald0 has quit [Quit: Lost terminal]
tumaru has quit [K-Lined]
timonv_ has joined #ruby
Timgauthier has joined #ruby
mjuszczak has joined #ruby
<powersurge> both of these are included into the Appraisal model
treehug88 has joined #ruby
pietr0 has joined #ruby
<powersurge> so it's not clear, but that 'current_user' call will actually use the current_user getter set via attr_accessor on the appraisal model
aclearma_ has joined #ruby
Spooner has quit [Remote host closed the connection]
pengin has quit [Remote host closed the connection]
nicolastarzia has joined #ruby
MrBeardy has quit [Ping timeout: 256 seconds]
pengin has joined #ruby
<powersurge> cc pontiki Senjai ^
mrmargolis has quit [Remote host closed the connection]
jenrzzz has joined #ruby
aclearman037 has quit [Ping timeout: 255 seconds]
leafybasil has quit [Remote host closed the connection]
<Senjai> powersurge: actor should be an association on HistoricEvent
<Senjai> But thats not the only issue with this code
<Senjai> Why are you using a concern to add state machines to objects
<Senjai> #notathing
<powersurge> I didn't write it :>
<powersurge> this is a maintenance project
<Senjai> Well, you should change it now :P
<Senjai> if you can
<Senjai> But HistoricEvent's actor
mattwildig has joined #ruby
<Senjai> should be an association
<powersurge> it is
timonv_ has quit [Client Quit]
doodlehaus has joined #ruby
<Senjai> So why do you need to serialize current_user
<Senjai> because its not available in the model?
renderful has joined #ruby
<powersurge> to store it in the historic event to begin with
<Senjai> Then it should be passed in via the controller
<powersurge> really, current_user never should've been a property
<Senjai> If it cant be done nicely
paulfm has quit [Remote host closed the connection]
<Senjai> make it so it canbe
kirun has joined #ruby
<powersurge> it should've been a second argument
<Senjai> Then change it man
<Senjai> #youhavethepower
devdazed has quit [Quit: Computer has gone to sleep.]
paulfm has joined #ruby
DonOtreply has quit [Quit: DonOtreply]
nicolastarzia has quit [Ping timeout: 265 seconds]
Pupeno_ has joined #ruby
maletor has quit [Read error: Connection reset by peer]
Takle has joined #ruby
<Senjai> Refactoring is part of maintenance
DonOtreply has joined #ruby
pengin has quit [Ping timeout: 265 seconds]
DonOtreply has quit [Client Quit]
jaequery has quit [Ping timeout: 264 seconds]
godd2 has quit [Remote host closed the connection]
<powersurge> yea, probably what I'm going to ahve to do
devdazed has joined #ruby
<powersurge> it's just a very complex system and this issue popped up on the way into qa and I feel like everything is going to break down again
tier has quit [Read error: Connection reset by peer]
kenneth has joined #ruby
<powersurge> this app is a card house
dfinninger has quit [Remote host closed the connection]
mjuszczak has quit []
tier has joined #ruby
snath has joined #ruby
<Senjai> Right
<Senjai> So stop adding to the mess
<Senjai> :P
Sid05 has joined #ruby
<Senjai> And instead, take a step back
<Senjai> and fix it
<Senjai> so it doesnt have to be a mess when you add it
deric_skibotn has quit [Ping timeout: 240 seconds]
Pupeno has quit [Ping timeout: 245 seconds]
<powersurge> I agree
Macaveli has quit [Ping timeout: 245 seconds]
mattwildig has left #ruby [#ruby]
timonv_ has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
rkalfane has joined #ruby
weeb1e_ is now known as weeb1e
kasperti_ has joined #ruby
jaequery has joined #ruby
^wald0 has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
<jeregrine> anyone know if there is a changelog for ruby-pg?
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<powersurge> hmmm, I'm not even sure how to capture the current_user in a transition callback
<powersurge> what a pain
mjuszczak has joined #ruby
jmosco has left #ruby ["WeeChat 0.4.2"]
DonOtreply has joined #ruby
DonOtreply has quit [Client Quit]
pengin has joined #ruby
<apeiros> powersurge: select current_user() ?
shaileshg has joined #ruby
emmesswhy has joined #ruby
gheegh has joined #ruby
<apeiros> oh, actually not a function. just `select current_user`
blackmesa has quit [Ping timeout: 244 seconds]
claymore has joined #ruby
hornairs_ has quit [Quit: hornairs_]
wolf4ood has quit [Quit: (null)]
thsig has joined #ruby
Photism has quit [Read error: Connection reset by peer]
Photism has joined #ruby
^wald0 has quit [Quit: ^wald0]
SilkFox_ has joined #ruby
claw__ has joined #ruby
bricker has quit [Ping timeout: 255 seconds]
davedev24_ has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Lingo___ has quit [Quit: (null)]
TheTopBloke has joined #ruby
<TheTopBloke> Hello, I take it this is the place to ask all ym stupid ruby questions?
davedev2_ has quit [Ping timeout: 255 seconds]
jgrevich has joined #ruby
<TheTopBloke> It has been a while since I've used it, so I'm sure I will have a couple good one
<shevy> yea
<shevy> there are no stupid questions
SilkFox_ has quit [Ping timeout: 244 seconds]
<TheTopBloke> thanks. Does anyone on here use textmate?
<shevy> if the asker is honestly seeking answers
<wasamasa> only questions that make people post stupid answers
<Senjai> TheTopBloke: Nope, only you
<wasamasa> TheTopBloke: no metaquestions please
claw_ has quit [Ping timeout: 245 seconds]
<shevy> I guess only osx users use mac; I am on linux. but ask guys such as apeiros or havenwood
<TheTopBloke> what is a metaquestion?
<shevy> erm *use textmate
<Senjai> shevy: Nuuu, dont encourage that type of question
<wasamasa> TheTopBloke: a question used to introduce your real question
<Senjai> TheTopBloke: Your the only person to ever use it ever
<shevy> it's a perfectly fine question to have
<Senjai> shevy: No it isnt
<shevy> yeah it is
<Senjai> shevy: Instead, he should ask the question he wants to ask if someone says yes
<TheTopBloke> Ok, I'll RTFM and get back to you in a bit.
<Senjai> shevy: and wait
<shevy> if you don't like it then don't answer Senjai
<wasamasa> TheTopBloke: in other words, just ask directly instead of screening for people who could answer it
<Senjai> shevy: I'm pretty sure I'm not alone in this. It's kind of a thing, like everywhere
Pharaoh2 has joined #ruby
<shevy> Senjai what difference does it make whether you are alone in this or not?
<havenwood> TheTopBloke: Yeah, I really like TextMate 2. They won me over by going with a GNU license for version 2.
thumpba has quit []
<Senjai> shevy: Because that means I'm more correct than you are, obviously
<shevy> Senjai the question is perfectly fine to have. I don't understand why you want TheTopBloke to not ask questions like that.
<havenwood> TheTopBloke: It's fast and works great with Ruby.
thumpba has joined #ruby
<Senjai> #argumentsontheinternet
devdazed has quit [Quit: Computer has gone to sleep.]
<shevy> Senjai I don't see it that way at all.
function90 has joined #ruby
<shevy> #SenjaiHatesNewcomers
<Senjai> shevy: Because, he obviously has a question about using TextMate, so he should just ask that, instead of a useless question and an inevitable "yes"
<Senjai> helpa: !ask
<helpa> helpa: How to ask good questions and get great answers: http://www.mikeash.com/getting_answers.html
<Senjai> shevy: ^
<shevy> Senjai he asked whether people are using Textmate.
<TheTopBloke> havenwood: Do you use it remotely? That's what I am consdiering at the moment. Apparently it requires an install of Ruby on the server.
<Senjai> shevy: ANd the obvious answer is, duh, yes
thumpba has quit [Client Quit]
devdazed has joined #ruby
<shevy> Senjai please don't spam me with bot propaganda, thank you. I interact with you, not with bot-answers yes? Or shall I also put up a bot that puts up some pre-generated answers to you?
<TheTopBloke> Senjai, if your sole intent is to limit the volume of transactions in the window, then you're doing it wrong :)
<havenwood> TheTopBloke: No, I haven't used the rmate feature. I just use vim. I'd be curious to hear how it works out.
thumpba has joined #ruby
reset has joined #ruby
^wald0 has joined #ruby
hornairs has joined #ruby
baweaver has quit [Remote host closed the connection]
arup_r has quit [Quit: Leaving.]
<shevy> TheTopBloke have you used irb already?
<Senjai> shevy: Sure, because these are things the internet should no. If there was no bot, I'd find and link the exact same article to you
codecop has quit [Remote host closed the connection]
<Senjai> s/no/know
<TheTopBloke> irb? no
<wasamasa> you should
<havenwood> TheTopBloke: It looks like there're Bash and Python ports of rmate, so Ruby, Python or Bash. :P
<wasamasa> or even better, pry
<havenwood> TheTopBloke: I'm sure you'll have one of the above!
mjuszczak has quit []
<shevy> Senjai Yeah that is fine, so please do it rather than be lazy and spam me with a bot ok?
frem has joined #ruby
<Senjai> shevy: To link the same thing?
<shevy> Senjai Yes.
codecop has joined #ruby
<Senjai> shevy: Why do the same thing over and over. I automate that.
<Senjai> Because I have to say the same thing, so many times
<shevy> Senjai Ok fine. Would you please stop spamming me with a bot?
timonv_ has quit [Remote host closed the connection]
<shevy> Yes and I disagree with it every single time you do.
bricker has joined #ruby
timonv_ has joined #ruby
<shevy> TheTopBloke irb is very useful for evaluating ruby code "live" (locally, on your computer)
<shevy> TheTopBloke such as the bot eval-in here could also be used, if you use a leading >>
<Senjai> shevy: I linked one article to you
<Senjai> shevy: You cant come to a programming channel, and complain about people automating common tasks xD
<TheTopBloke> LOL
<shevy> Senjai Ok so you want me to put up a bot with pre-ready made opinions that collect and refute all your erroneous links.
<pontiki> huh, seems like you can
<Senjai> shevy: Sure
<TheTopBloke> Wow, somebody needs to get some sunlight.
<shevy> Senjai ok gimme a little time, need to set it up first
mloveless has joined #ruby
<TheTopBloke> ok I'll check out irb.
<Senjai> shevy: If you constantly have to say it all the time, its being efficient
<Senjai> shevy: But you're still wrong. xD
^wald0 has quit [Client Quit]
<shevy> Senjai yeah no worries, gimme some time ;)
<shevy> Senjai not in the slightest.
<Senjai> K
thsig has quit [Remote host closed the connection]
<pontiki> talk about filling the channel with useless crap
recurrence has quit [Quit: recurrence]
_ixti_ has joined #ruby
spyderma_ has quit [Ping timeout: 245 seconds]
<havenwood> TheTopBloke: REPLs are great. A nice alternative to the `irb` that ships with Ruby is Pry. You can `gem install pry pry-doc` then use `pry` instead of `irb`.
Lingo___ has joined #ruby
anarang has joined #ruby
<Senjai> havenwood: It ships with ruby now?
DonOtreply has joined #ruby
timonv_ has quit [Ping timeout: 264 seconds]
<Senjai> err derp, yeah, you still have to install it
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has joined #ruby
<havenwood> Senjai: yeah, i just said that badly
<Senjai> all good, didnt read the whole thing
tjbiddle has joined #ruby
<Senjai> lol
rkalfane has joined #ruby
ixti has quit [Ping timeout: 244 seconds]
pandaant has quit [Remote host closed the connection]
mengu has quit []
towski_ has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
bdamos has quit [Quit: ERC (IRC client for Emacs 25.0.50.2)]
poetazus has joined #ruby
lolmaus_ has quit [Quit: Konversation terminated!]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sargas has quit [Quit: This computer has gone to sleep]
bdamos has joined #ruby
jheg has joined #ruby
dfinninger has joined #ruby
TheTopBloke has quit [Ping timeout: 244 seconds]
fryguy9 has quit [Quit: Leaving.]
sinkensabe has joined #ruby
TheTopBloke has joined #ruby
bears has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Zesty has joined #ruby
mattmcclure has joined #ruby
havenwood has quit [Remote host closed the connection]
rpag has joined #ruby
Parker0 has joined #ruby
sinkensabe has quit [Ping timeout: 255 seconds]
DonOtreply has quit [Quit: DonOtreply]
tkuchiki has joined #ruby
blackmesa has joined #ruby
fryguy9 has joined #ruby
AndyBotwin has joined #ruby
ilias0029 has joined #ruby
auxbuss has joined #ruby
amil has quit [Quit: Linkinus - http://linkinus.com]
VBlizzard has joined #ruby
baweaver has joined #ruby
windowlicker has joined #ruby
shazaum has quit [Quit: This computer has gone to sleep]
Hijiri has quit [Quit: WeeChat 1.0.1]
blizzy has quit [Disconnected by services]
VBlizzard is now known as blizzy
VBlizzard has joined #ruby
paulfm has quit [Quit: Zzzzz...]
tkuchiki has quit [Ping timeout: 245 seconds]
Lingo___ has quit [Read error: Connection reset by peer]
Takle has quit [Remote host closed the connection]
tier has quit [Remote host closed the connection]
mrmargolis has joined #ruby
paulfm has joined #ruby
chrishough has joined #ruby
rodfersou has quit [Quit: leaving]
fabrice31 has joined #ruby
Neomex_ has joined #ruby
srruby has joined #ruby
tmtwd has joined #ruby
Zesty has quit [Quit: Linkinus - http://linkinus.com]
<tmtwd> hello
sambao21 has quit [Quit: Computer has gone to sleep.]
timonv_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
benlieb has joined #ruby
Photism has quit [Read error: Connection reset by peer]
<srruby> Is this idiomatic Ruby? foo=Hash.new ; foo[0]=[3] ; foo[0]= foo[0] << 4 ;
fryguy9 has left #ruby [#ruby]
Photism has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<rpag> no
<srruby> rpag: Thanks. Can you enlighten me ?
<rpag> foo[0] = [3] is fine but the next reassignment doesn't make sense because << 4 mutates the receiver
<rpag> in other words, you could write it like, foo[0] << 4
fabrice31 has quit [Ping timeout: 244 seconds]
marr has joined #ruby
<rpag> Hash.new without providing an argument to .new() isn't that common either, may as well say foo = {}
sambao21 has joined #ruby
AndyBotwin has quit [Ping timeout: 255 seconds]
<srruby> rpag: I want to append items to existing values.
DonOtreply has joined #ruby
^wald0 has joined #ruby
<rpag> foo[0] << 4 does that
leafybasil has joined #ruby
<rpag> >> foo = {}; foo[0] = [3]; foo[0] << 4; foo
<eval-in> rpag => {0=>[3, 4]} (https://eval.in/240622)
pengin has quit [Remote host closed the connection]
recurrence has joined #ruby
pengin has joined #ruby
rbennacer has quit [Remote host closed the connection]
deric_skibotn has joined #ruby
sk87_ has joined #ruby
thsig has joined #ruby
timonv_ has joined #ruby
fandi has quit [Remote host closed the connection]
<apeiros> rpag.enlightens(srruby)
thsig_ has joined #ruby
<srruby> rpag: Thanks.
bronson has quit [Remote host closed the connection]
Photism has quit [Read error: Connection reset by peer]
Photism has joined #ruby
pengin has quit [Ping timeout: 264 seconds]
evanjs has joined #ruby
<srruby> One more question. Is this idiomatic: foo={} ; foo[2] ? foo[2] << 3 : foo[2] =[3] ; foo
timonv_ has quit [Remote host closed the connection]
Macaveli has joined #ruby
<TheTopBloke> Oh thanks to whoever mentioned the bash port for rmate. Very nice! Makes my life a whole lot easier.
ldnunes has quit [Quit: Leaving]
bronson has joined #ruby
Timgauthier is now known as timgauthier_away
thsig has quit [Ping timeout: 265 seconds]
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SilkFox_ has joined #ruby
rpag has quit [Quit: Leaving]
baweaver has quit [Remote host closed the connection]
paulfm has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 255 seconds]
spyderman4g63 has joined #ruby
paulfm has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rbrs has quit [Quit: rbrs]
SilkFox_ has quit [Ping timeout: 264 seconds]
^wald0 has quit [Quit: ^wald0]
sargas has joined #ruby
baweaver has joined #ruby
paulfm has quit [Read error: Connection reset by peer]
spyderman4g63 has quit [Remote host closed the connection]
bitcycle has quit [Ping timeout: 244 seconds]
paulfm has joined #ruby
spyderman4g63 has joined #ruby
TrOuBleStArTeR has joined #ruby
Parker0 has quit [Quit: Textual IRC Client: www.textualapp.com]
<TrOuBleStArTeR> hi all
BTRE has quit [Read error: Connection reset by peer]
auxbuss has quit [Quit: I'm gone.]
AndyBotwin has joined #ruby
AndyBotwin has joined #ruby
Lingo___ has joined #ruby
Lingo___ has quit [Client Quit]
wallerdev has quit [Quit: wallerdev]
graydot has quit [Quit: graydot]
ddd has joined #ruby
Parker0 has joined #ruby
poetazus has quit [Ping timeout: 265 seconds]
poetazus has joined #ruby
tier has joined #ruby
jmcharnes has joined #ruby
phutchins has quit [Ping timeout: 244 seconds]
blackmesa has quit [Ping timeout: 244 seconds]
thatslifeson_ is now known as thatslifeson
hmsimha has quit [Quit: Leaving]
hornairs has quit [Read error: Connection reset by peer]
sevvie has quit [Ping timeout: 245 seconds]
hornairs has joined #ruby
x1337807x has joined #ruby
nanoyak has joined #ruby
synaptik has joined #ruby
DrCode has quit [Ping timeout: 250 seconds]
iamninja has quit [Quit: ZZZzzz…]
shellfu has joined #ruby
einarj has joined #ruby
baweaver has quit [Remote host closed the connection]
n1lo has quit [Quit: Leaving]
michaeldeol has joined #ruby
davidhq has joined #ruby
DrCode has joined #ruby
einarj has quit [Ping timeout: 256 seconds]
baweaver has joined #ruby
djbkd has quit [Remote host closed the connection]
baltazore has quit []
recurrence has quit [Quit: recurrence]
timonv_ has joined #ruby
spyderman4g63 has quit [Ping timeout: 255 seconds]
metadave_ has joined #ruby
baweaver has quit [Remote host closed the connection]
livingstn has quit [Ping timeout: 265 seconds]
timonv_ has quit [Remote host closed the connection]
Timgauthier has joined #ruby
metadave has quit [Ping timeout: 240 seconds]
anarang has quit [Quit: Leaving]
Timgauthier is now known as timgauthier_away
timonv_ has joined #ruby
mjuszczak has joined #ruby
timonv_ has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 244 seconds]
baweaver has joined #ruby
SOLDIERz has quit [Quit: Be back later ...]
baroquebobcat_ has joined #ruby
BTRE has joined #ruby
hrs has joined #ruby
rbennacer has joined #ruby
Val_ is now known as rand0mbits
Photism_ has joined #ruby
baroquebobcat has quit [Ping timeout: 240 seconds]
baroquebobcat_ is now known as baroquebobcat
Photism has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
sinkensabe has joined #ruby
reinaldob has quit [Remote host closed the connection]
cvtsx1 has quit [Quit: Leaving]
cvtsx has joined #ruby
elaptics is now known as elaptics`away
<cvtsx> havenwood haven't worked on it since this morning lol, i had to go to the hospital since i thought i had a chest infection (turns out it is the flu). And i am going to take a nap now lol so i will work on it afterwards
benlieb has joined #ruby
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
econerd4ever has quit [Remote host closed the connection]
Dolphi has joined #ruby
baweaver has joined #ruby
hashpuppy has quit [Quit: Textual IRC Client: www.textualapp.com]
uri_ has joined #ruby
omosoj has quit [Ping timeout: 245 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yalue has quit [Quit: return 0;]
hrs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
recurrence has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
icarus has joined #ruby
blackmesa has joined #ruby
<bashusr> with a class method, you can assign the method to a variable with someMethod = instantiatedClass.method(:methodName); and then call it with someMethod.call(), how can i get module methods assigned to a variable?
paulfm has quit [Quit: Goodbye]
v0n has quit [Ping timeout: 240 seconds]
studiotate has quit [Read error: No route to host]
studiotate has joined #ruby
timonv_ has joined #ruby
bitcycle has joined #ruby
jfran has joined #ruby
rbennacer has quit [Remote host closed the connection]
B1n4r10 has joined #ruby
pdoherty_ has quit [Remote host closed the connection]
jottr_ has joined #ruby
michaeldeol has joined #ruby
mjuszczak has quit []
pierre1_ has joined #ruby
malcolmva has quit [Ping timeout: 245 seconds]
djbkd has joined #ruby
v0n has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
pdoherty has joined #ruby
SilkFox_ has joined #ruby
sambao21 has joined #ruby
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
ghr has joined #ruby
hjlsteffens has joined #ruby
sinkensabe has quit [Remote host closed the connection]
SilkFox_ has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 265 seconds]
hrs has joined #ruby
pengin has joined #ruby
codezomb has joined #ruby
<TrOuBleStArTeR> hi
<TrOuBleStArTeR> little question :)
Hijiri has joined #ruby
<TrOuBleStArTeR> i simulate an error
<TrOuBleStArTeR> on a ftp connection
<TrOuBleStArTeR> the error is :
<TrOuBleStArTeR> errno::econnrefused ................;
<TrOuBleStArTeR> i use the exception error
<TrOuBleStArTeR> and put
<TrOuBleStArTeR> in
timonv_ has joined #ruby
<TrOuBleStArTeR> raise errno::econnrefused
<TrOuBleStArTeR> but
<TrOuBleStArTeR> it don't really catch the eror
<TrOuBleStArTeR> someone has an idea ?
mjuszczak has joined #ruby
malcolmva has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
robbyoconnor has quit [Quit: Konversation terminated!]
DadoCe has joined #ruby
elaptics`away is now known as elaptics
alekst_ has quit [Quit: Connection closed for inactivity]
livingstn has joined #ruby
Darryl__ has quit [Quit: Connection closed for inactivity]
claymore has quit [Ping timeout: 265 seconds]
sambao21 has joined #ruby
evanjs has quit [Remote host closed the connection]
benlieb has quit [Read error: Connection reset by peer]
benlieb has joined #ruby
benlieb has quit [Client Quit]
claymore has joined #ruby
hjlsteffens has quit [Ping timeout: 255 seconds]
omosoj has joined #ruby
DadoCe has quit [Ping timeout: 245 seconds]
TheTopBloke has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
synaptik has quit []
TheTopBloke has joined #ruby
mattwildig has joined #ruby
hiyosi has joined #ruby
Timgauthier has joined #ruby
thumpba has quit [Ping timeout: 264 seconds]
athan has quit [Ping timeout: 244 seconds]
Macaveli has quit [Ping timeout: 255 seconds]
Leaf_Runner has joined #ruby
Leaf_Runner has quit [Client Quit]
<frogsy> Do many people use Ruby with wxWidgets, or is that kind of a super-niche area?
<frogsy> I've never really seen anyone talk about GUI work with Ruby.
<waxjar> i think you should talk to hanmac about that :)
timonv_ has quit [Remote host closed the connection]
<hanmac> frogsy: checkout https://github.com/Hanmac/rwx/ but its not complete yet ...
thumpba has joined #ruby
rbennacer has joined #ruby
max96at is now known as max96at|off
<mosez> hanmac: interesting!
rpag has joined #ruby
<shevy> guys
<shevy> have you ever had a need to want to require a file, and instantly attach it to a class or module?
<mosez> attach to a class?
<shevy> something like: module Foo; end ... in file foo.rb. and class Bat; end in file bar.rb
mbug has joined #ruby
srruby has quit [Ping timeout: 256 seconds]
<shevy> damn, class Bar
lkba_ has joined #ruby
<shevy> and then in bar.rb do something like: require 'foo.rb', :attach_to => :Bar
<rpag> class Batman
<shevy> yeah rpag I knew that was going to happen but it was a typo!!!
dpy has joined #ruby
<dpy> hi guys
v0n has quit [Ping timeout: 264 seconds]
<mosez> shevy: i don't get it what you mean
^wald0 has joined #ruby
<shevy> mosez ah yes, in the example above it would mean this:
<shevy> class Bar; include Foo; end
<dpy> anyone here using unimidi?
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> when I use include Foo though, I use 3 extra lines (two empty newlines, one before, one after the include statement)
<dpy> I get this erro: /var/lib/gems/1.9.1/gems/unimidi-0.4.6/lib/unimidi/device.rb:97:in `use_device': undefined method `enabled?' for nil:NilClass (NoMethodError)
<shevy> *two newlines
<mosez> shevy: and why do you want to do this wired stuff? =)
<shevy> not sure if a newline is empty haha
<shevy> mosez for efficiency and more control upon require time
postmodern has joined #ruby
<mosez> but imo you dont get more control...
<shevy> why not?
<shevy> I can require in the normal way fine too
thumpba has quit [Ping timeout: 245 seconds]
<zenspider> dpy: you'll have to look at the stack trace
<mosez> this sounds simply wired and useless to me :)
<shevy> I can attach at the same place in modules or classes
<zenspider> that means that use_device was passed nil
<zenspider> figure out how
lkba has quit [Ping timeout: 265 seconds]
<mosez> shevy: but that is just my opinion :)
<zenspider> prolly from use(<n>) where <n> is larger than the number of devices you have
luriv has joined #ruby
<dpy> hmm, maybe my ruby is too old (1.9.1; I read here that unimidi needs MRI 1.9.2)
<rpag> shevy, its easy to achieve what you want
<shevy> mosez yeah that is perfectly fine, people have different opinions, everyone may have one
^wald0 has quit [Client Quit]
<rpag> shevy, but, i struggle to see whats the point
elaptics is now known as elaptics`away
<shevy> mosez I am less curious about the different opinion, but the use case. Like whether my (perceived) use case would be different from others
<shevy> k so people don't need something like that
<zenspider> dpy: I doubt that matters. look at the stack trace and debug the problem
i5um41ru has joined #ruby
<rpag> shevy, i wouldn't let that stop you creating it as a github repo or w/e
<rpag> shevy, people want niche things like that sometimes
AndyBotwin has quit [Quit: Leaving]
<shevy> rpag ah no, I don't mean that. One can modify require fine, but then one has to carry modifications forward in the event that I wish to distribute code that makes use of it, but I found that it is too much hassle to keep up with, so I mostly stick to just default ruby and don't modify core behaviour like that
AndyBotwin has joined #ruby
AndyBotwin has joined #ruby
fabrice31 has joined #ruby
<rpag> i wouldn't modify require to do it
<shevy> I almost never modify core classes either when I push out gems. Not sure how refinements work either
<shevy> aha?
<shevy> rpag but how would you do it if you want to have it on require-time? like I guess the python important statement has something similar
<rpag> i would do something like Shevy.require
<shevy> why is this named Shevy
<rpag> cuz idk what else to call it and its your idea
shredding has joined #ruby
xxneolithicxx has left #ruby [#ruby]
i5um41ru has quit [Quit: leaving]
robbyoconnor has joined #ruby
robbyoconnor has joined #ruby
robbyoconnor has quit [Changing host]
<rpag> i like how node.js implements require()
<rpag> it returns something that you end up using
claymore has quit [Ping timeout: 244 seconds]
srruby has joined #ruby
davidhq has quit [Max SendQ exceeded]
fabrice31 has quit [Ping timeout: 252 seconds]
tkuchiki has joined #ruby
v0n has joined #ruby
davidhq has joined #ruby
claymore has joined #ruby
Kricir has quit [Remote host closed the connection]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ddd has quit [Quit: leaving]
sevvie has joined #ruby
aclearma_ has quit [Quit: I'm out!]
zorak8 has joined #ruby
jaequery has quit [Ping timeout: 240 seconds]
Spami has joined #ruby
baweaver has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 245 seconds]
decoponio has quit [Read error: Connection reset by peer]
<dpy> zenspider: I think unimidi assumes a hardware midi device
<dpy> there is none, hence the nil
jaequery has joined #ruby
decoponio has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
deric_skibotn has quit [Ping timeout: 245 seconds]
n008f4g_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
baweaver has joined #ruby
dstarh has joined #ruby
v0n has quit [Ping timeout: 252 seconds]
djbkd has joined #ruby
gsd has joined #ruby
qhartman has joined #ruby
<dpy> zenspider: yes, I get an empty list; I don't have hardware midi attached atm
sambao21 has joined #ruby
michaeldeol has joined #ruby
rbennacer has joined #ruby
<dpy> ah... I just modprobe'd snd_virmidi
<dpy> now I get something
tier has quit [Ping timeout: 245 seconds]
claymore has quit [Quit: Leaving]
<dpy> and it also immediately works!
<dpy> brilliant
baweaver has quit [Ping timeout: 245 seconds]
teddyp1cker has quit [Remote host closed the connection]
Channel6 has joined #ruby
phantomtiger has quit [Quit: phantomtiger]
blackoperat has quit [Ping timeout: 264 seconds]
C0deMaver1ck has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
brb3 has quit [Quit: ZZZzzz…]
duggiefresh has quit []
davasaurous has joined #ruby
SparkMasterTape has quit [Read error: Connection reset by peer]
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
delianides has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
allcentury has quit [Ping timeout: 245 seconds]
Ankhers has quit [Ping timeout: 250 seconds]
Flcn has quit [Quit: Be back later ...]
Sid05 has quit [Ping timeout: 244 seconds]
pu22l3r has quit [Ping timeout: 245 seconds]
baweaver has joined #ruby
agjacome has quit [Quit: leaving]
thiagovsk__ has quit [Quit: Connection closed for inactivity]
v0n has joined #ruby
josephndenton has quit [Ping timeout: 240 seconds]
^wald0 has joined #ruby
SilkFox_ has joined #ruby
baweaver has quit [Remote host closed the connection]
ptrrr has quit [Quit: ptrrr]
jonathanwallace has quit [Read error: Connection reset by peer]
Musashi007 has joined #ruby
ghr has joined #ruby
felipedvorak has quit [Ping timeout: 245 seconds]
robustus|Off is now known as robustus
v0n has quit [Ping timeout: 245 seconds]
pengin has quit [Remote host closed the connection]
sinkensabe has joined #ruby
cpt_yossarian has joined #ruby
cpt_yossarian has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
SilkFox_ has quit [Ping timeout: 264 seconds]
<thatslifeson> can anyone willing to help a total noob PM me, or should I just ask here
ghr has quit [Ping timeout: 245 seconds]
klmlfl has joined #ruby
sargas has joined #ruby
gccostabr has quit [Quit: ZZZzzz…]
sargas has quit [Remote host closed the connection]
iml has joined #ruby
<frogsy> thatslifeson: what about?
josephndenton has joined #ruby
<thatslifeson> just trying to learn ruby
<thatslifeson> no idea why this returns -9
^wald0 has quit [Quit: ^wald0]
<thatslifeson> but if I switch the sum and num, it returns 1 like it should
Musashi007 has quit [Quit: Musashi007]
jottr_ has quit [Ping timeout: 255 seconds]
<thatslifeson> but in the current order, i don't understand how its not -1
<thatslifeson> i assume its some misunderstanding of inject
<zenspider> thatslifeson: inject's block args are |accumulator, value|
<zenspider> you're doing the opposite
sinkensabe has quit [Ping timeout: 245 seconds]
<zenspider> so you're doing 4 - 0, not 0 - 4
baweaver has quit [Remote host closed the connection]
<zenspider> `ri Enumerable.inject`
it0a has quit [Quit: WeeChat 1.0.1]
jonathanwallace has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
omosoj has quit [Ping timeout: 264 seconds]
fantazo has joined #ruby
<thatslifeson> thanks for the tip, i'll see what i figure out :P
iamjarvo has joined #ruby
poguez has joined #ruby
mbug has quit [Ping timeout: 264 seconds]
<zenspider> thatslifeson: learn to use the ri tool. it's invaluable
kaawee has joined #ruby
<thatslifeson> ri Enumerable.inject?
<thatslifeson> i'll look it up
<thatslifeson> ty
mjuszczak has quit []
<zenspider> or `ri Enumerable` or `ri inject`... it's useful
pierre1_ has quit [Ping timeout: 252 seconds]
<thatslifeson> oh the (0) was throwing it off
jerius_ has joined #ruby
<kaawee> Hello! How do I write a Ruby C extension which modifies a string but still prevents COW-shared strings from not being modified?
adriancb has quit [Remote host closed the connection]
ValicekB has quit [Ping timeout: 245 seconds]
jerius has quit [Ping timeout: 255 seconds]
nicolastarzia has joined #ruby
luksaur has quit [Quit: Leaving]
djbkd has quit [Remote host closed the connection]
pengin has joined #ruby
TrOuBleStArTeR has quit [Quit: Going offline, see ya! (www.adiirc.com)]
iamninja has joined #ruby
djbkd has joined #ruby
jottr_ has joined #ruby
baweaver has joined #ruby
defrang has quit [Quit: defrang]
djbkd has quit [Remote host closed the connection]
phantomtiger has joined #ruby
nicolastarzia has quit [Ping timeout: 245 seconds]
AlexRussia has joined #ruby
AlexRussia has joined #ruby
bitcycle has quit [Ping timeout: 256 seconds]
mattwildig has quit []
sargas has joined #ruby
TheTopBloke has quit [Ping timeout: 244 seconds]
rpag has quit [Quit: Leaving]
TheTopBloke has joined #ruby
jmcharnes has quit [Quit: Textual IRC Client: www.textualapp.com]
reinaldob has joined #ruby
v0n has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
jaequery has quit [Ping timeout: 240 seconds]
pdoherty has quit [Read error: Connection reset by peer]
ValicekB has joined #ruby
pdoherty has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
bitcycle has joined #ruby
pwnz0r has quit [Remote host closed the connection]
v0n has quit [Ping timeout: 240 seconds]
jaequery has joined #ruby
drkyro has joined #ruby
drkyro has quit [Client Quit]
mrdevri has joined #ruby
mrdevri has left #ruby [#ruby]
SolarSailor has joined #ruby
chrishough has joined #ruby
osvico has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
mjuszczak has joined #ruby
robustus is now known as robustus|Off
Takle has joined #ruby
evanjs has joined #ruby
x1337807x has joined #ruby
phutchins has joined #ruby
jerius_ has quit [Ping timeout: 240 seconds]
davasaurous has quit [Remote host closed the connection]
tjbiddle has quit [Quit: tjbiddle]
Hijiri has quit [Ping timeout: 265 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Porpado has quit [Ping timeout: 244 seconds]
mjuszczak has quit [Ping timeout: 244 seconds]
zB0hs has quit [Read error: Connection reset by peer]
Hijiri has joined #ruby
baweaver has quit [Remote host closed the connection]
djbkd has joined #ruby
codecop has quit [Remote host closed the connection]
shazaum has joined #ruby
<bradland> damn, this is really cool https://rubybench.org
<bradland> anyone see that on HN?
<bradland> got no love :(
n008f4g_ has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
nateberkopec has quit [Quit: Leaving...]
bascht has quit [Ping timeout: 256 seconds]
bascht has joined #ruby
luriv has quit [Quit: Leaving]
athan has joined #ruby
srruby has quit [Remote host closed the connection]
baweaver has joined #ruby
davasaurous has joined #ruby
zarubin has joined #ruby
jgrevich has quit [Ping timeout: 244 seconds]
hrs has quit [Quit: Textual IRC Client: www.textualapp.com]
djbkd has quit [Remote host closed the connection]
pdoherty has quit [Remote host closed the connection]
B1n4r10 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackmesa has quit [Read error: Connection reset by peer]
pkrzywicki is now known as noname001
SolarSailor has quit [Quit: My Turing machine has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
jottr_ has quit [Ping timeout: 264 seconds]
n008f4g_ has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
mary5030_ has joined #ruby
thsig_ has quit [Remote host closed the connection]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
doodlehaus has quit [Remote host closed the connection]
silkfox has quit [Ping timeout: 252 seconds]
^wald0 has joined #ruby
devoldmx_ has joined #ruby
mary5030 has quit [Ping timeout: 255 seconds]
Pupeno_ has quit [Remote host closed the connection]
Pupeno has joined #ruby
crueber has quit [Quit: Leaving.]
mary5030_ has quit [Ping timeout: 244 seconds]
phutchins has quit [Ping timeout: 255 seconds]
devdazed has quit [Quit: Computer has gone to sleep.]
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dfinninger has quit [Remote host closed the connection]
jamgood96 has joined #ruby
tmi_ has joined #ruby
SilkFox_ has joined #ruby
rbennacer has quit [Remote host closed the connection]
ghr has joined #ruby
mjuszczak has joined #ruby
renderfu_ has joined #ruby
Spami has quit [Read error: Connection reset by peer]
Spami_ has joined #ruby
reinaldob has quit [Remote host closed the connection]
renderful has quit [Read error: Connection reset by peer]
_ixti_ has quit [Ping timeout: 264 seconds]
renderful has joined #ruby
baweaver has quit [Remote host closed the connection]
meschi has quit [Remote host closed the connection]
reinaldob has joined #ruby
SilkFox_ has quit [Ping timeout: 244 seconds]
sinkensabe has joined #ruby
mjuszczak has quit [Client Quit]
tubuliferous has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shellfu is now known as shellfu_afk
baweaver has joined #ruby
ghr has quit [Ping timeout: 244 seconds]
davidhq has joined #ruby
renderfu_ has quit [Ping timeout: 264 seconds]
jobewan has quit [Quit: Leaving]
kirun has quit [Quit: Client exiting]
deric_skibotn has joined #ruby
mjuszczak has joined #ruby
reinaldob has quit [Ping timeout: 264 seconds]
sinkensabe has quit [Ping timeout: 265 seconds]
uri_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Pupeno_ has joined #ruby
AndyBotwin has quit [Quit: Leaving]
Parker0 has quit [Quit: Textual IRC Client: www.textualapp.com]
treehug88 has quit []
lmickh has quit [Remote host closed the connection]
Pupeno has quit [Ping timeout: 245 seconds]
v0n has joined #ruby
Parker0 has joined #ruby
djbkd has joined #ruby
KC9YDN has quit [Ping timeout: 244 seconds]
djbkd has quit [Remote host closed the connection]
devoldmx_ has quit [Ping timeout: 240 seconds]
Faiqus has quit [Remote host closed the connection]
_ixti_ has joined #ruby
KC9YDN has joined #ruby
Hijiri has quit [Ping timeout: 255 seconds]
Faiqus has joined #ruby
djbkd has joined #ruby
Musashi007 has joined #ruby
Faiqus_ has joined #ruby
v0n has quit [Ping timeout: 244 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
Porpado has joined #ruby
unreal has quit [Quit: Very funny Scotty. Now beam down my clothes!]
Faiqus has quit [Ping timeout: 244 seconds]
zarubin has quit [Remote host closed the connection]
spacemud has quit [Ping timeout: 255 seconds]
mary5030 has joined #ruby
alicanyilmaz has joined #ruby
<alicanyilmaz> Guys anyone here using Macbook pro retina 15” ?
<alicanyilmaz> Guys anyone here using Macbook pro retina 15” ?
Faiqus has joined #ruby
ilias0029 has quit [Quit: Leaving]
<pontiki> not here
<pontiki> 13"
<arrubin> alicanyilmaz: Yes.
davasaurous has quit [Remote host closed the connection]
* wasamasa wonders what will follow that metaquestion
<arrubin> Probably a PM, unfortunately.
devoldmx_ has joined #ruby
davidhq has joined #ruby
<pontiki> mode +g ftw
baroquebobcat has joined #ruby
davasaurous has joined #ruby
chipotle has quit [Quit: cheerio]
metadave_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<alicanyilmaz> arrubin: My macbook pro retina is running slow when battery level is under or equals to five percent
<alicanyilmaz> arrubin: when magsafe is unplugged
Faiqus_ has quit [Ping timeout: 264 seconds]
<alicanyilmaz> arrubin: are you experiencing issue like this ?
Porpado has quit [Quit: Porpado]
beneggett has joined #ruby
<arrubin> No, but that is not surprising.
<alicanyilmaz> arrubin: why ?
<arrubin> It is probably doing something to save power.
<pipework> alicanyilmaz: Have you ever had a laptop before? Also, don't crosspost.
<alicanyilmaz> arrubin: but my macbook is brand new and my battery cycle is 26.
chipotle has joined #ruby
<arrubin> Like stepping down the CPU or using a lower power GPU.
<pipework> Also, #hardware
<alicanyilmaz> ok
Faiqus has quit [Ping timeout: 264 seconds]
<pipework> ##hardware
<pipework> alicanyilmaz: What does cycle have to do with it? The computer knows it's nearing the end of the charge, so it's optimizing for life.
<alicanyilmaz> ok pipework thanj
<alicanyilmaz> thank you
<alicanyilmaz> :)
spacemud has joined #ruby
powersurge has quit [Quit: WeeChat 0.4.3]
alicanyilmaz has left #ruby [#ruby]
<wasamasa> well, that was weird
<wasamasa> expected a sales offer
Tricon has quit [Ping timeout: 245 seconds]
phantomtiger has quit [Quit: phantomtiger]
icarus has quit [Quit: leaving]
Dolphi has quit [Quit: Leaving]
Timgauthier is now known as timgauthier_away
zarubin has joined #ruby
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Faiqus_ has joined #ruby
tkuchiki has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DonOtreply has quit [Quit: DonOtreply]
chipotle has quit [Quit: cheerio]
Tricon has joined #ruby
jack_rabbit has joined #ruby
XvXBladeXvX has left #ruby ["Leaving"]
jheg has quit [Quit: jheg]
jamgood96 has quit [Quit: Leaving...]