baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.10: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || Rails questions? Ask on #RubyOnRails || logs @ https://irclog.whitequark.org/ruby/
aries_liuxueyang has quit [Ping timeout: 244 seconds]
aries_liuxueyang has joined #ruby
cevett has quit [Read error: Connection reset by peer]
Rodya_ has joined #ruby
pwnd_nsfw` has joined #ruby
cevett has joined #ruby
jtzero1 has joined #ruby
Robtop__ has quit [Ping timeout: 250 seconds]
skweek has joined #ruby
cdg has joined #ruby
bougyman has quit [Ping timeout: 250 seconds]
prawnzy has joined #ruby
JoshS has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
prawnzy has quit [Ping timeout: 244 seconds]
petercooper has quit [Ping timeout: 248 seconds]
nitric has quit [Ping timeout: 240 seconds]
jhack has joined #ruby
crdpink has quit [Quit: q term]
AnarchyAo has joined #ruby
brent__ has joined #ruby
Rufus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xemehc has quit [Quit: ZZZzzz…]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
webus has quit [Quit: goodbye]
singalaut is now known as Guest9666
finisherr has quit [Quit: finisherr]
singalaut has joined #ruby
finisherr has joined #ruby
finisherr has quit [Client Quit]
Guest9666 has quit [Ping timeout: 244 seconds]
ur5us has quit [Remote host closed the connection]
bihi has joined #ruby
CloCkWeRX has joined #ruby
miqlas-H has quit [Ping timeout: 264 seconds]
nankyokusei has joined #ruby
miqlas-H has joined #ruby
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shazaum_ has joined #ruby
duderonomy has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
tdy has quit [Ping timeout: 240 seconds]
Blackpajamas has joined #ruby
nankyokusei has quit [Ping timeout: 250 seconds]
UserOO7 has quit [Remote host closed the connection]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
ur5us has joined #ruby
bougyman has joined #ruby
bougyman is now known as Guest70147
UserOO7 has joined #ruby
Guest70147 has quit [Changing host]
Guest70147 has joined #ruby
CSWookie has joined #ruby
_djbkd has quit [Quit: My people need me...]
ur5us has quit [Read error: No route to host]
<CSWookie> Is there a way I can set a breakpoint in some ruby code? Like Python's pdb.set_trace()?
LuckyABA has joined #ruby
ur5us has joined #ruby
replay has quit [Quit: Textual IRC Client: www.textualapp.com]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
whatasunnyday has joined #ruby
UserOO7 has quit [Ping timeout: 244 seconds]
<baweaver> CSWookie Look up Pry
<whatasunnyday> hello pals, long time since i've visted here. having problems googling this. say i'm in a rails app. i want to require my model in my lib. what do i write? my structure is $RAILS_ROOT/lib/foo/bar.rb. i've tried require_relative '../../app/models/model.rb and a few other combos. i'm running it as bundle exec ruby lib/foo/bar.rb
<CSWookie> baweaver: Does it come with Ruby, or is it some gem I'll have to install? I'm using a ruby that's been embedded in a program, so I don't think I can use any gems that aren't there to begin with.
<baweaver> whatasunnyday: ?rails
<baweaver> ?rails
<ruby[bot]> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<baweaver> CSWookie It's a gem
<whatasunnyday> baweaver, okay, cool. i'll head on over there instead. thought it was more of a #ruby thing since it is a poro :(.
<baweaver> though it sounds like a bad idea
<CSWookie> baweaver: Nothing that comes with ruby out of the box?
<baweaver> don't require anything, use dependency injection
ta_ has quit [Remote host closed the connection]
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<baweaver> Honestly I just straight install pry for any Ruby install so I never looked into the built in
t3ra has joined #ruby
<t3ra> hi everyone
<t3ra> hows everyone doin tonight
redpants has quit [Ping timeout: 260 seconds]
blackmesa has joined #ruby
<t3ra> any1 around?
<baweaver> ?ask
<ruby[bot]> Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
ghostlight has joined #ruby
<t3ra> im new to this whole programming thing... curious where i should start
<pontiki> i'm waiting around hoping to meet up with some folks in santa cruz. how bout you?
tdy has joined #ruby
<t3ra> did codeacademy
cdg has quit [Ping timeout: 248 seconds]
<t3ra> what do you reccomend next?
zipace has joined #ruby
<pontiki> specifically http://exercism.io/languages/ruby
<t3ra> thank you pontiki
RobertBirnie has joined #ruby
miqlas-H has quit [Ping timeout: 265 seconds]
miqlas-H has joined #ruby
ziprar has quit [Ping timeout: 260 seconds]
blackmesa has quit [Ping timeout: 264 seconds]
RedNifre_ has joined #ruby
jphase has quit [Remote host closed the connection]
hakunin_ has joined #ruby
hakunin has quit [Read error: Connection reset by peer]
sdwrage has quit [Quit: Leaving]
RedNifre has quit [Ping timeout: 265 seconds]
radic has joined #ruby
Blackpajamas has quit [Quit: Ciao!]
<whatasunnyday> t3ra, i think books are really helpful. everybody learns different so the best thing you can do is stick with it. if something a particular tutorial or book isn't working for you, try something different. everybody learns differently.
<whatasunnyday> check your local library for something free. amazon has a lot of options but see if can read a chapter of the book first. a lot of authors have samples on their site or the publishers.
<whatasunnyday> i'm out tho
<whatasunnyday> see ya later
<whatasunnyday> good luck t3ra , thanks again for the help baweaver
getxsick has joined #ruby
whatasunnyday has quit [Quit: Leaving]
jblack has quit [Ping timeout: 255 seconds]
moos3 has quit [Ping timeout: 244 seconds]
Canucktux has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RobertBirnie has joined #ruby
UserOO7 has joined #ruby
snguyen has joined #ruby
Canucktux has joined #ruby
<t3ra> thank you whatasunnday - sorry didnt see your message before you left
jphase has joined #ruby
<getxsick> hi, can someone explain me (or point to an article) what changes happened to the Test::Unit? I am new to Ruby, so I guess it's quite obvious for everyone but me. After some investigation I know that Test::Unit was in stdlib until Ruby1.8 then it's become a gem. But the old version (1.2.3) is still available in stdlib in newer versions of Ruby. I believe it's called MiniTest now but still availble via requir
<getxsick> e 'test/unit', right? So, when I want to use the newest version of the Test::Unit i have to install the gem and then activate the gem via `gem 'test-unit'` before importing it.
miqlas-H has quit [Ping timeout: 255 seconds]
NGCS has quit [Ping timeout: 240 seconds]
dn5 has quit [Ping timeout: 240 seconds]
cyphase has quit [Ping timeout: 240 seconds]
shazaum_ has quit [Quit: Leaving]
dh64 has joined #ruby
<baweaver> those should get you covered for basics
<baweaver> 1.8 has been deprecated for years though
xemehc has joined #ruby
<baweaver> even 2.0 is deprecated with 2.1 almost there as well
<getxsick> baweaver: thx, starting to read
dn5 has joined #ruby
AnFin has joined #ruby
RobertBirnie has quit [Ping timeout: 272 seconds]
dh64 has quit [Remote host closed the connection]
<baweaver> Just use the command `bundle gem name` to create a directory with everything structured in it
mesamoo has joined #ruby
<baweaver> changing name to whatever your app is called.
UserOO7 has quit [Ping timeout: 244 seconds]
mesamoo has quit [Client Quit]
mesamoo has joined #ruby
cyphase has joined #ruby
Vivekananda has quit [Quit: Leaving]
Azure|dc is now known as Azure
<getxsick> btw. how to check version of imported module?
<baweaver> imported module?
<baweaver> you mean the gem?
AnFin has quit [Quit: AnFin]
<baweaver> in your Gemfile you can specify which version it pulls down.
AnFin has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<getxsick> i mean, i want to check what version of Minitest is used
<baweaver> yep, gemfile
_sfiguser has quit [Ping timeout: 244 seconds]
<baweaver> then when you to a `bundle install` it'll generate a Gemfile.lock which will say what versions of everything got installed
<baweaver> read through that link above
UserOO7 has joined #ruby
JeanCarloMachado has quit [Ping timeout: 272 seconds]
t3ra has quit [Ping timeout: 240 seconds]
fullofcaffeine has quit [Remote host closed the connection]
<baweaver> anyways, I'm calling it a night, cheers
fullofcaffeine has joined #ruby
cyphase has quit [Ping timeout: 272 seconds]
t3ra has joined #ruby
FINbit has quit [Ping timeout: 244 seconds]
sp4rrow has quit [Quit: Textual]
Mrgoose has joined #ruby
<Mrgoose> Hi im new to ruby and im trying to run a rspect test and i get this error . `<module:Crypto>': uninitialized constant Common::Crypto::Util (NameError)
<Mrgoose> . Any pointers?
fullofcaffeine has quit [Ping timeout: 244 seconds]
cyphase has joined #ruby
_sfiguser has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
snguyen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AnFin has left #ruby [#ruby]
crdpink has joined #ruby
eljimmy has joined #ruby
getxsick has quit [Quit: leaving]
cyphase has quit [Ping timeout: 250 seconds]
jackjackdripper has quit [Quit: Leaving.]
eljimbo has joined #ruby
eljimmy has quit [Ping timeout: 248 seconds]
RegulationD has quit [Remote host closed the connection]
cyphase has joined #ruby
fclausen has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
ropeney has joined #ruby
ta_ has joined #ruby
elifoster has quit [Read error: Connection reset by peer]
Guest70147 is now known as bougyman
xemehc has quit [Quit: ZZZzzz…]
cyphase has quit [Ping timeout: 250 seconds]
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
Channel6 has joined #ruby
blackmesa has joined #ruby
ta_ has quit [Ping timeout: 248 seconds]
Rodya_ has quit [Ping timeout: 250 seconds]
jshjsh has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
harfangk has joined #ruby
JoshS has quit [Ping timeout: 244 seconds]
<croberts> what would this mean in ruby with the ?
<croberts> fail _("Action not allowed for the default capsule.") if capsule_content.default_capsule?
jshjsh is now known as JoshS
skweek has quit [Ping timeout: 272 seconds]
t3ra has quit [Ping timeout: 264 seconds]
optiz0r has quit [Ping timeout: 240 seconds]
optiz0r has joined #ruby
LuckyABA has joined #ruby
csk has quit [Quit: ZZZzzz…]
Ebok has quit [Quit: Leaving]
LuckyABA has quit [Client Quit]
cyphase_eviltwin has joined #ruby
skweek has joined #ruby
hakunin_ is now known as hakunin
Contigi has quit [Read error: Connection reset by peer]
A_Drone has joined #ruby
prawnzy has joined #ruby
A_Drone has quit [Remote host closed the connection]
SuperLag has quit [Ping timeout: 265 seconds]
A_Drone has joined #ruby
s2013 has joined #ruby
prawnzy has quit [Ping timeout: 250 seconds]
cyphase_eviltwin has quit [Ping timeout: 265 seconds]
crdpink has quit [Quit: q term]
ramfjord has quit [Ping timeout: 240 seconds]
NetSage has joined #ruby
crdpink has joined #ruby
wethu has quit [Read error: Connection reset by peer]
wethu has joined #ruby
cyphase_eviltwin has joined #ruby
LuckyABA has joined #ruby
chouhoulis has quit [Ping timeout: 265 seconds]
prawnzy has joined #ruby
cyphase_eviltwin has quit [Ping timeout: 265 seconds]
nankyokusei has joined #ruby
jblack has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
braincras has quit [Ping timeout: 272 seconds]
cyphase_eviltwin has joined #ruby
tjbiddle has joined #ruby
cyphase_eviltwin has quit [Max SendQ exceeded]
jblack has quit [Ping timeout: 248 seconds]
cyphase_eviltwin has joined #ruby
RegulationD has joined #ruby
A_Drone has quit [Remote host closed the connection]
braincrash has joined #ruby
solocshaw has quit [Ping timeout: 255 seconds]
RegulationD has quit [Ping timeout: 244 seconds]
A_Drone has joined #ruby
A_Drone has quit [Remote host closed the connection]
A_Drone has joined #ruby
cyphase_eviltwin has quit [Ping timeout: 244 seconds]
FINbit has joined #ruby
blackmesa has joined #ruby
ta_ has joined #ruby
sai_ has joined #ruby
crdpink has quit [Quit: q term]
FINbit has quit [Ping timeout: 240 seconds]
craigp_ has quit [Ping timeout: 244 seconds]
cyphase has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
dviola has quit [Quit: WeeChat 1.5]
sai_ has quit [Remote host closed the connection]
braincrash has quit [Ping timeout: 265 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
crdpink has joined #ruby
hutch34_ has joined #ruby
braincrash has joined #ruby
ur5us has quit [Read error: No route to host]
NetSage has quit [Remote host closed the connection]
ur5us has joined #ruby
cyphase has quit [Ping timeout: 248 seconds]
Rickmasta has joined #ruby
astrobunny has joined #ruby
nando293921 has joined #ruby
cyphase has joined #ruby
braincrash has quit [Quit: bye bye]
A_Drone has quit [Ping timeout: 264 seconds]
wisn has joined #ruby
A_Drone has joined #ruby
wisn has quit [Client Quit]
radic has quit [Quit: ZNC - http://znc.in]
hutch34_ has quit [Ping timeout: 265 seconds]
agent_white has joined #ruby
agent_white has left #ruby [#ruby]
cyphase has quit [Ping timeout: 244 seconds]
nando294021 has joined #ruby
nando293921 has quit [Read error: Connection reset by peer]
A_Drone has quit [Ping timeout: 265 seconds]
braincrash has joined #ruby
braincrash is now known as braincras
prawnzy has quit [Remote host closed the connection]
AndrewIsHere has quit [Remote host closed the connection]
cyphase has joined #ruby
arescorpio has joined #ruby
A_Drone has joined #ruby
tmtwd has quit [Ping timeout: 260 seconds]
jshjsh has joined #ruby
JoshS has quit [Ping timeout: 244 seconds]
sneakerhax has joined #ruby
sneakerhax has quit [Client Quit]
jenrzzz has joined #ruby
sneakerhax has joined #ruby
jshjsh is now known as JoshS
tmtwd has joined #ruby
cyphase has quit [Ping timeout: 265 seconds]
duderonomy has joined #ruby
Beast has joined #ruby
<baweaver> croberts: did you get an answer?
A_Drone has quit [Remote host closed the connection]
AnarchyAo has quit [Ping timeout: 240 seconds]
Devalo has joined #ruby
<baweaver> In Ruby a method can end in ? or !. Common standard is that ? signifies a boolean method on an object, and ! signifies some form of mutation or dangerous operation.
<baweaver> >> 1.even? # Think of ? ask asking a question of an object
<ruby[bot]> baweaver: # => false (https://eval.in/647451)
cyphase has joined #ruby
<baweaver> Now they don't _have_ to return a boolean, but you'll probably confuse / anger people by doing so.
A_Drone has joined #ruby
_djbkd has joined #ruby
linux1413 has joined #ruby
A_Drone has quit [Remote host closed the connection]
Devalo has quit [Ping timeout: 240 seconds]
tmtwd has quit [Ping timeout: 244 seconds]
codelogix has joined #ruby
jackjackdripper has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gix has quit [Ping timeout: 265 seconds]
<codelogix> can anyone tell me how to override created_at timestamp in Rails, on create?
<codelogix> trying to increment the created_at timestamp by one day, if it's a leap year.
A_Drone has joined #ruby
A_Drone has quit [Client Quit]
<linux1413> codelogix: And you need to specifically change some certain instances?
gix has joined #ruby
<linux1413> Because you can specify the `created_at` date in rails on create, but the datetime libraries know how to perform the right adjustments for leap year.
<codelogix> I have a model that is for subscriptions, and I'm using the created_at timestamp to know when to charge them for the next recurring payment...and if it's a leap year, I want to increment the created_at timestmap by one day, so if it is a leap year, and the month is feburary, then I want to increment it by one day.
<codelogix> is it possible to override it in the model? Or do I just have to set it in the call to create?
blackmesa has joined #ruby
hutch34_ has joined #ruby
<linux1413> You can make a callback or something. But I still think there might be an answer.
zel has joined #ruby
<linux1413> Does your model contain the future date in which the subscription renews?
ResidentBiscuit has quit [Ping timeout: 255 seconds]
zel is now known as Guest37090
<codelogix> it contains the length in years or months, and the period which is (monthly, or annual)
nullniverse has joined #ruby
hutch34_ has quit [Client Quit]
<codelogix> and is charged based on the created_at(when the subscription started, and the period (monthly, or annual) and the length is used to set the end_date
AndrewIsHere has joined #ruby
AndrewIsHere has quit [Client Quit]
<linux1413> Date.new(2016, 2, 29) + 1.year
cyphase has quit [Ping timeout: 248 seconds]
gnufied has quit [Ping timeout: 255 seconds]
<linux1413> Gives 28th of February 2017.
<codelogix> huh...so ruby already takes that into account and accounts for it
gnufied has joined #ruby
<dmtd> strongcode and baweaver: thank you! I had stepped away for a bit but that was great advice and helped a lot. Thank you!
blackmesa has quit [Ping timeout: 265 seconds]
eljimmy has joined #ruby
be_______ has joined #ruby
jblack has joined #ruby
<linux1413> Also, if you're into these kinds of things, MySQL (making assumptions here) should have great support for dates, too.
<strongcode> np, glad it helped
<baweaver> Also be sure to look into #RubyOnRails for Rails questions
petercooper has joined #ruby
<codelogix> I tried #RubyOnRails...and nobody responded...so I figured I would try here.
alfiemax has quit [Ping timeout: 250 seconds]
<codelogix> thanks for the help
<codelogix> thanks linux1413!
ben______ has quit [Ping timeout: 250 seconds]
eljimbo has quit [Ping timeout: 250 seconds]
cyphase has joined #ruby
ICantCook has joined #ruby
<codelogix> \q
elenatanasoiu has joined #ruby
jblack has quit [Ping timeout: 260 seconds]
skweek has quit [Ping timeout: 272 seconds]
bqscott has quit [Quit: Connection reset by peer]
matp has quit [Ping timeout: 265 seconds]
elenatanasoiu has quit [Ping timeout: 276 seconds]
cyphase has quit [Ping timeout: 255 seconds]
Vile` has quit [Ping timeout: 248 seconds]
hahuang61 has quit [Ping timeout: 260 seconds]
<baweaver> other direction
jshjsh has joined #ruby
cyphase has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
sdothum has quit [Quit: ZNC 1.6.3 - http://znc.in]
JoshS has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
gnufied has quit [Ping timeout: 248 seconds]
Cohedrin has joined #ruby
Channel6 has quit [Quit: Leaving]
cyphase has quit [Ping timeout: 265 seconds]
ItSANgo has quit [Read error: Connection reset by peer]
arescorpio has quit [Excess Flood]
ItSANgo has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
vdamewood has joined #ruby
ta_ has quit [Ping timeout: 244 seconds]
AlexxNica has quit [Quit: AlexxNica]
cyphase has joined #ruby
nankyokusei has joined #ruby
nertzy has joined #ruby
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
znz_jp has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 244 seconds]
fullofcaffeine has joined #ruby
blackjid has quit [Ping timeout: 255 seconds]
aguynamedben has quit [Ping timeout: 248 seconds]
tpendragon has quit [Ping timeout: 255 seconds]
nankyokusei has quit [Ping timeout: 250 seconds]
ARCADIVS has joined #ruby
tjbiddle has joined #ruby
sai_ has joined #ruby
astrobunny has quit [Ping timeout: 255 seconds]
nertzy has quit [Ping timeout: 276 seconds]
RegulationD has joined #ruby
fullofcaffeine has quit [Ping timeout: 255 seconds]
fullofcaffeine has joined #ruby
CuriousMind has joined #ruby
znz_jp has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
sai__ has joined #ruby
sai_ has quit [Read error: Connection reset by peer]
sai__ has quit [Read error: Connection reset by peer]
AndyBotwin has quit [Ping timeout: 255 seconds]
sai_ has joined #ruby
AndyBotwin has joined #ruby
low-profile has quit [Quit: low-profile]
tjbiddle has quit [Quit: tjbiddle]
chelly has quit [Quit: Connection closed for inactivity]
shortCircuit__ has joined #ruby
lxsameer has quit [Quit: WeeChat 1.5]
Vile` has joined #ruby
matp has joined #ruby
cyphase has quit [Ping timeout: 244 seconds]
ichkv has joined #ruby
blackmesa has joined #ruby
DuoSRX has quit [Quit: Connection closed for inactivity]
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
crdpink has quit [Read error: Connection reset by peer]
cyphase has joined #ruby
crdpink has joined #ruby
craigp_ has joined #ruby
Madplatypus is now known as SupremeExtremeMo
SupremeExtremeMo is now known as TremeTremeTremeT
TremeTremeTremeT is now known as TremeTremeTreme
greylevel has quit [Quit: Textual IRC Client: www.textualapp.com]
tmtwd has joined #ruby
vdamewood has quit [Ping timeout: 250 seconds]
dionysus69 has joined #ruby
tjbiddle has joined #ruby
fullofcaffeine has quit [Ping timeout: 265 seconds]
blackmesa has quit [Ping timeout: 265 seconds]
TremeTremeTreme is now known as TriremeMonotreme
rikai has quit [Ping timeout: 250 seconds]
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
sai_ has quit [Ping timeout: 240 seconds]
jtzero1 has quit [Ping timeout: 240 seconds]
tubuliferous_ has joined #ruby
vdamewood has joined #ruby
ta_ has joined #ruby
rikai has joined #ruby
nullniverse has quit [Quit: Leaving]
grill has quit [Remote host closed the connection]
linux1338 has joined #ruby
programmerq has quit [Read error: Connection reset by peer]
SuperLag has joined #ruby
cyphase has quit [Ping timeout: 272 seconds]
prawnzy has joined #ruby
ta_ has quit [Remote host closed the connection]
tjbiddle_ has joined #ruby
tjbiddle_ has quit [Client Quit]
tjbiddle has quit [Read error: Connection reset by peer]
cyphase has joined #ruby
prawnzy has quit [Ping timeout: 244 seconds]
jackjackdripper has quit [Quit: Leaving.]
Alina-malina has quit [Quit: ZNC 1.6.3 - http://znc.in]
Alina-malina has joined #ruby
shinnya has joined #ruby
jphase has quit [Remote host closed the connection]
jphase has joined #ruby
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
zapata has quit [Ping timeout: 255 seconds]
Devalo has joined #ruby
jphase_ has joined #ruby
ichkv has quit [Remote host closed the connection]
zekriad has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jphase has quit [Read error: Connection reset by peer]
Dudee has joined #ruby
<Dudee> hy
cyphase has quit [Ping timeout: 272 seconds]
alfiemax has joined #ruby
astrobunny has joined #ruby
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
zapata has joined #ruby
cyphase has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jphase_ is now known as jphase
linux1338 has left #ruby [#ruby]
jblack has joined #ruby
<baweaver> dudee: got a question?
Cohedrin_ has joined #ruby
codelogix has quit [Ping timeout: 250 seconds]
cyphase has quit [Ping timeout: 255 seconds]
dminuoso has joined #ruby
linux1413 has quit [Quit: leaving]
Cohedrin_ has quit [Max SendQ exceeded]
last_staff has joined #ruby
Victor777_ has joined #ruby
Cohedrin_ has joined #ruby
Cohedrin has quit [Ping timeout: 244 seconds]
amclain has quit [Quit: Leaving]
Victor777_ has quit [Remote host closed the connection]
jblack has quit [Ping timeout: 272 seconds]
blackmesa has joined #ruby
Hyuk has joined #ruby
pawnbox has joined #ruby
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 244 seconds]
the_drow has joined #ruby
tmtwd has quit [Ping timeout: 264 seconds]
the_drow has quit [Read error: Connection reset by peer]
Devalo has quit [Ping timeout: 265 seconds]
the_drow has joined #ruby
kerframil has quit [Quit: Leaving]
workerbeetwo has joined #ruby
singalaut has quit [Remote host closed the connection]
CloCkWeRX has quit [Ping timeout: 250 seconds]
singalaut has joined #ruby
hahuang61 has joined #ruby
cyphase has joined #ruby
dmtd has quit [Quit: Connection closed for inactivity]
dionysus69 has quit [Ping timeout: 276 seconds]
ichkv has joined #ruby
hahuang61 has quit [Ping timeout: 244 seconds]
marktwo has joined #ruby
marktwo is now known as Guest40491
Guest40491 is now known as mkl
the_drow has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
bocaneri has joined #ruby
firstdayonthejob has joined #ruby
[dmp] has quit [Quit: WeeChat 1.3]
claudiuinberlin has joined #ruby
the_drow has joined #ruby
Dudee has left #ruby [#ruby]
[dmp] has joined #ruby
andikr has joined #ruby
Guest87677 has quit [Changing host]
JStoker has joined #ruby
dminuoso has quit [Ping timeout: 240 seconds]
CloCkWeRX has joined #ruby
cyphase has quit [Ping timeout: 248 seconds]
saneax-_-|AFK is now known as saneax
_djbkd has quit [Quit: My people need me...]
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
dminuoso has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
Sammichmaker has quit [Read error: Connection reset by peer]
the_drow has joined #ruby
cyphase has joined #ruby
anisha has joined #ruby
nankyokusei has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
the_drow has joined #ruby
tubuliferous_ has quit [Ping timeout: 244 seconds]
KnownSyntax has joined #ruby
nankyokusei has quit [Ping timeout: 264 seconds]
aryaching has quit [Read error: Connection reset by peer]
the_drow has quit [Read error: Connection reset by peer]
cyphase has quit [Ping timeout: 265 seconds]
the_drow has joined #ruby
the_drow has quit [Client Quit]
RegulationD has joined #ruby
aufi has joined #ruby
tmtwd has joined #ruby
cyphase has joined #ruby
blackmesa has joined #ruby
sandelius has joined #ruby
alxgsv has joined #ruby
firstdayonthejob has quit [Ping timeout: 264 seconds]
vdamewood has quit [Quit: Life beckons.]
RegulationD has quit [Ping timeout: 260 seconds]
codelogix has joined #ruby
bsrd has joined #ruby
ur5us has quit [Remote host closed the connection]
conta has joined #ruby
ur5us has joined #ruby
dminuoso has quit [Remote host closed the connection]
codelogix has quit [Ping timeout: 240 seconds]
djbkd_ has joined #ruby
ur5us has quit [Ping timeout: 264 seconds]
djbkd_ has quit [Client Quit]
ta_ has quit [Remote host closed the connection]
blaxter has joined #ruby
submitnine has joined #ruby
AlexRussia has quit [Ping timeout: 244 seconds]
last_staff has quit [Quit: last_staff]
jphase has quit [Remote host closed the connection]
griffindy has quit [Read error: Connection reset by peer]
dminuoso has joined #ruby
jphase has joined #ruby
alfiemax has joined #ruby
ur5us has joined #ruby
<workerbeetwo> Hi. is there a way to list up the models inside of the rails console?
<dminuoso> workerbeetwo: Not really.
<dminuoso> workerbeetwo: Models are no different to controllers in Rails.
ur5us has quit [Remote host closed the connection]
<dminuoso> (At least for the purpose of this discussion)
brent__ has quit [Quit: Connection closed for inactivity]
jphase has quit [Ping timeout: 272 seconds]
ur5us has joined #ruby
<dminuoso> workerbeetwo: The closest thing would be BaseClass.descendants - but that will not necessarily give you all *models*
<apeiros> ?rails workerbeetwo
<ruby[bot]> workerbeetwo: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
CloCkWeRX has quit [Ping timeout: 265 seconds]
vuoto has joined #ruby
sai_ has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
<workerbeetwo> alright thanks.
hahuang61 has joined #ruby
pawnbox has quit [Remote host closed the connection]
bsrd has quit [Quit: WeeChat 1.5]
sai_ has quit [Ping timeout: 240 seconds]
TomyWork has joined #ruby
tomphp has joined #ruby
tomphp has quit [Client Quit]
tmtwd has quit [Ping timeout: 260 seconds]
despai has joined #ruby
hahuang61 has quit [Ping timeout: 248 seconds]
tomphp has joined #ruby
pawnbox has joined #ruby
prawnzy has joined #ruby
biberu has joined #ruby
CloCkWeRX has joined #ruby
pawnbox has quit [Remote host closed the connection]
Cohedrin_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ctp has joined #ruby
Burgestrand has joined #ruby
prawnzy has quit [Ping timeout: 276 seconds]
Xeago has quit [Ping timeout: 276 seconds]
despai has quit [Quit: Leaving]
troys has joined #ruby
toretore has joined #ruby
Xeago has joined #ruby
greg808 has joined #ruby
greg808 has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
alfiemax has quit [Ping timeout: 276 seconds]
greg808 has joined #ruby
troys has quit [Client Quit]
mark_66 has joined #ruby
ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
Technodrome has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tristanp has quit [Ping timeout: 265 seconds]
canton7 has quit [Quit: ZNC - http://znc.in]
canton7 has joined #ruby
rkoller has joined #ruby
Beast has quit [Quit: Leaving]
leea has joined #ruby
rkoller has quit [Client Quit]
jblack has joined #ruby
kimegede has joined #ruby
nando294021 has quit [Ping timeout: 244 seconds]
pawnbox has joined #ruby
jblack has quit [Ping timeout: 260 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mkl has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
pawnbox has quit [Remote host closed the connection]
Ishido has joined #ruby
ta_ has joined #ruby
fclausen has quit [Quit: Lost terminal]
bsrd has joined #ruby
ratatine has quit [Ping timeout: 265 seconds]
pawnbox has joined #ruby
CuriousMind has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
Guest98158 has quit [Excess Flood]
sonikspin has joined #ruby
flying has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mtkd has quit [Read error: Connection reset by peer]
^mtkd has joined #ruby
TriremeMonotreme is now known as Madplatypus
elenatanasoiu has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
greg96722 has joined #ruby
hahuang61 has joined #ruby
Macaveli has joined #ruby
hahuang61 has quit [Ping timeout: 264 seconds]
codelogix has joined #ruby
<TomyWork> My $: contains "/usr/lib64/ruby/1.8", among others, but "require 'rubygems'; gem 'puppet'" doesn't find the gem under "/usr/lib64/ruby/gems/1.8/gems/puppet-3.8.7"
pawnbox has quit [Remote host closed the connection]
<TomyWork> yet it finds the other gems in that directory
Beast has joined #ruby
codelogix has quit [Ping timeout: 240 seconds]
Couch has joined #ruby
<TomyWork> the .gemspec was missing
Rajamaa has joined #ruby
hirvi has quit [Ping timeout: 240 seconds]
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
yumez has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
nankyokusei has joined #ruby
claudiuinberlin has quit []
aguynamedben has joined #ruby
nalik has joined #ruby
tpendragon has joined #ruby
<TomyWork> btw, sles is great. ruby1.8-rubygem-puppet-3.8.7-8.1 installs the puppet gem into the wrong directory and they updated ruby1.8-rubygem-json_pure from 1.8.3-37.4 to 2.0.2-42.1
<TomyWork> with predictable results
nankyokusei has quit [Ping timeout: 240 seconds]
mark_66 has quit [Remote host closed the connection]
pawnbox has joined #ruby
blackmesa has joined #ruby
<Zarthus> ruby 1.8? That's not EOL yet?
mark_66 has joined #ruby
<apeiros> that's EOL for ages
<apeiros> 1.9 is also EOL
<apeiros> not sure whether 2.0 is also already EOL
yumez has quit []
blackjid has joined #ruby
<apeiros> yupp, 2.0 is also EOL
leea has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
last_staff has joined #ruby
<apeiros> 2.1 is in "security patches only" phase
RegulationD has joined #ruby
Guest54448 has joined #ruby
Dimik has quit [Ping timeout: 264 seconds]
<TomyWork> like i said, sles is great
<Zarthus> I'd have to understand what it is before I can comment on that :P
<Zarthus> A Google mentions things about Lupus, that doesn't sound very ruby-like.
solocshaw has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ichkv has quit [Remote host closed the connection]
<TomyWork> suse linux enterprise server. 11, to be precise
RegulationD has quit [Ping timeout: 255 seconds]
<Zarthus> that sounds like something that maintains old versions of software with security patches
<TomyWork> precisely
<Zarthus> My idea of "great" doesn't align with yours. Ruby 2.3 is where it's at :P
* TomyWork hands Zarthus a sarcasm detector
<Zarthus> Sarcasm doesn't work well over a text-transmit protocol :P
senayar has joined #ruby
<TomyWork> well if you had ever used sles11, it would be obvious, regardless of the medium
<TomyWork> yes, including smoke signals and silbo
<Zarthus> my oldest maintained (software/)server is on debian 8.5 or ubuntu 1404
workerbeetwo has quit [Remote host closed the connection]
<Zarthus> i'm rather satisfied with tha
jsrn_ has joined #ruby
salut has joined #ruby
hirvi has joined #ruby
DaniG2k has joined #ruby
solocshaw has quit [Remote host closed the connection]
<TomyWork> fine systems
<TomyWork> i'm on the later right now and i'm going to start setting up one of the former in a minute
<xpt> TomyWork: sorry, to hear that you have to use SLES :( The best idea to have something good on it is to get it from outside official repo (I compiles couple of things_
TomyWork has left #ruby ["Leaving"]
TomyWork has joined #ruby
face has quit [Ping timeout: 240 seconds]
<TomyWork> whoops wrong button
tomphp has joined #ruby
<TomyWork> xpt well puppet 3 works on ruby 1.8 and i have no security requirements for that box, so i'm fine
<apeiros> BUTTONS UNTO THE BUTTON GODS!
<aurelien> is the ruby version of redhat (2.0.0p598) enough for developpement at the time it can use rubygems.org?
<apeiros> 2.0 is EOL
<apeiros> it's enough to develop
<apeiros> but if you can, use 2.3
<TomyWork> i was able to downgrade that json_pure package so puppet works again, yay
blackmesa has quit [Ping timeout: 244 seconds]
<aurelien> apeiros: how can i do to use 2.3 on rhel7 without breaking everythings?
<TomyWork> do you have to?
<aurelien> idk ... a dev request for it saying he cannot dev with 2.0
<apeiros> aurelien: I don't use rhel, so I wouldn't know. I guess you should ask that in the redhat channel?
<TomyWork> aurelien rhel7 is already more than 2 years old
<apeiros> common ways to install ruby outside of package managers: chruby+ruby-install, rvm
<aurelien> TomyWork: I know ... but I do with what I have, not what I wish
<TomyWork> if you can, use a more recent distro
<aurelien> TomyWork: I would use Archlinux if I was the one who decide ;-)
solocshaw has joined #ruby
<TomyWork> ubuntu 16.04 is also a stable distro and it's much more recent
<aurelien> TomyWork: Archlinux is the most recent one ... and rolling release
<TomyWork> yes, that is not a good thing
<aurelien> TomyWork: and best should to use Parabola ... to keep all things faif
<TomyWork> it guarantees that no two of your boxes will be the same
spectrum has quit [Ping timeout: 265 seconds]
<aurelien> hmm ... if you maintain them correctly ... a simple pacman -Syu garantee that
solocshaw has quit [Remote host closed the connection]
<aurelien> and the faif solution garantee that its free today and tomorrow which is not the point with ubuntu
dionysus69 has joined #ruby
<aurelien> well ... the point was just about the ruby version
<TomyWork> you keep saying "faif", is your keyboard broken or does that mean something?
<aurelien> thanks for your lights
<aurelien> Free As In Freedom
<aurelien> just like ruby is
<TomyWork> i dont think that should be your primary concern in production :)
<aurelien> But it should be
<TomyWork> but what if an update breaks your production?
<aurelien> and it will be the day that lawyer of business will understand computer science :-)
solocshaw has joined #ruby
<TomyWork> rolling releases basically guarantees that you will have updates that break your production
<aurelien> hmm archlinux parabola and much more use it as production server without break
hirvi has quit [Quit: leaving]
<TomyWork> you mean the people who make the distro use the distro without it breaking?
Immune has quit [Ping timeout: 260 seconds]
<aurelien> and at least you can break a production server with a very stable rhel or debian, depending of the stuff you update ...
<TomyWork> you mean the people who make the distro use the distro without it breaking? do you consider that an argument in favor of using rolling releases in prod?
<TomyWork> and of course, if you switch releases, you can have breakage. but you dont switch releases without thorough testing.
<aurelien> I use rolling release and version distro for production and meet the same trouble all the time: There is no warranty that a dep will not break the stuff
<aurelien> and that just with an update.
erlingur has joined #ruby
<TomyWork> with rolling releases, breakage is part of the design
claudiuinberlin has joined #ruby
<aurelien> and coming back from the death is also a part of the design
<canton7> TomyWork, what makes you say that? I'ver never had a breakage, by design or otherwise, on a rolling release
<aurelien> TomyWork: we should discuss about that arround a beer
<canton7> ... not that I'd use a rolling release in production, but that's a different question
hirvi has joined #ruby
Immune has joined #ruby
<TomyWork> canton7 take a simple example: openssl recently kicked out a ton of old ciphers (breaking some clients) and messed with the API (breaking some software, even with the possibility of introducing security bugs).
<TomyWork> once that change hits arch, if it didnt already, you will notice it :)
<canton7> ... and the updates were only allowed into the arch repos once they'd be thoroughly tested against all of the other stuff has been verified not to break
sai_ has joined #ruby
<canton7> *and had been verified not to break
<TomyWork> but they arent verified against your non-arch stuff
pwnd_nsfw has joined #ruby
sai_ has quit [Remote host closed the connection]
<canton7> right, so you're not talking about the distro itself breaking, you're talking about rare, major backwards-incompatible changes in packages not being supported outside of the distro
<TomyWork> not quite
<canton7> so the difference is that a rolling release will expose the issue sooner: a dist upgrade of any other distro will have the same issue, sooner or later
<TomyWork> openssl is part of the distro
<TomyWork> they introduce a breaking change
<TomyWork> every other package in the distro updates accordingly
<TomyWork> but your custom stuff isnt updated
<canton7> I don't see how that's any more "broken by design" than a dist upgrade of any other distro :P
bauruine has quit [Quit: ZNC - http://znc.in]
<TomyWork> i said breakage by design
hahuang61 has joined #ruby
aries_liuxueyang has quit [Ping timeout: 255 seconds]
<TomyWork> apt-get update && apt-get dist-upgrade doesnt give me that new openssl version. pacman -Syu would
bauruine has joined #ruby
<TomyWork> so i'd at some point have the choice between a secure system and a working system
<shortCircuit__> yep
<canton7> why wouldn't a dist-upgrade give you a new openssl version? maybe I'm missing something here...
cyphase has quit [Ping timeout: 255 seconds]
pwnd_nsfw` has quit [Ping timeout: 255 seconds]
<TomyWork> canton7 because dist-upgrade doesnt jump to a new distro version
<TomyWork> it doesnt jump, for instance, from 14.04 to 16.04
<shortCircuit__> y not try updating the openssl version .. maybe the mirror for upgrade fucked it in some way ..
<canton7> right, I'm getting my terminology mixed then - I tend to use RH stuff rather than debian stuff
claudiuinberlin has quit [Remote host closed the connection]
sai_ has joined #ruby
<shortCircuit__> what do I do with this
<shortCircuit__> :P
<TomyWork> these were the changes i gave as an example
JeanCarloMachado has joined #ruby
hahuang61 has quit [Ping timeout: 260 seconds]
<TomyWork> canton7 be careful with that :)
<shortCircuit__> I am saying why not maually update the openssl version .. rather than dist-upgrade
cyphase has joined #ruby
<TomyWork> canton7 especially dont mix up apt-get update and zypper update :)
prawnzy has joined #ruby
<canton7> if I ever end up administrating a debian system, I'll make sure my terminology's up to scratch ;)
vondruch has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
<shortCircuit__> I have a debian on laptop and arch on linux .. I want some stability in my life . its like having a wife and a gf :D
LuckyABA has quit [Ping timeout: 255 seconds]
solocshaw has quit [Ping timeout: 265 seconds]
_sfiguser has quit [Ping timeout: 240 seconds]
DaniG2k has quit [Quit: leaving]
JeanCarloMachado has quit [Client Quit]
JeanCarloMachado has joined #ruby
face has joined #ruby
prawnzy has quit [Ping timeout: 265 seconds]
jblack has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
subby has joined #ruby
<devil_tux> shortCircuit__: I don't get it. Arch on Linux?
jblack has quit [Ping timeout: 260 seconds]
submitnine has quit [Ping timeout: 265 seconds]
subby has quit [Ping timeout: 255 seconds]
shinnya has quit [Quit: ZNC - http://znc.in]
alfiemax has joined #ruby
shinnya has joined #ruby
_sfiguser has joined #ruby
<shortCircuit__> fuck .. :D Arch on a VM
<shortCircuit__> VB actually
tvw has joined #ruby
<alfiemax> hi
<alfiemax> what is this : Metrics/AbcSize ?? ref rubocop
symm- has joined #ruby
Circuit8 has joined #ruby
craigp_ has quit [Ping timeout: 265 seconds]
workmad3 has joined #ruby
* apeiros keeps forgetting that chrisseaton works on jruby :)
<Circuit8> Hi guys, got a question about file operations. When I do this: `f = File.new("test.txt", "w")` it works. But when i do this: `fd = IO.sysopen("badger.txt") ; stream = IO.new(fd,"w")` I get the following error: `Errno::EINVAL: Invalid argument` . It works if I open the file for reading rather than writing. Can anyone help me with this?
<devil_tux> Circuit8: ask shortCircuit__ :p
<devil_tux> kidding
<devil_tux> give us the code
<shortCircuit__> :D
JeanCarl1Machado has joined #ruby
<Circuit8> devil_tux: That is the code
<shortCircuit__> thats more than 3 lines
<shortCircuit__> gist it
<devil_tux> whoops, there you go :-)
<apeiros> Circuit8: why do you even do it this way?
<devil_tux> shortCircuit__: 80 lines limit :P
<Circuit8> ok ok, one sec
<apeiros> Circuit8: and I'd say you should not use the 2nd arg in IO.new(fd)
<apeiros> as the file is already open
<shortCircuit__> oh .. try File.open(filename) that will yield an io object that empowers with io stream
<apeiros> as said - it happens because you twice open with a mode.
<apeiros> IO.new(fd)
<apeiros> and again - why on earth do you use this unnecessarily complex way to open an IO/File?
weckl has joined #ruby
JeanCarloMachado has quit [Ping timeout: 265 seconds]
<Circuit8> apeiros: Hey sorry, I've updated the gist, I'm actually doing it seperately
<Circuit8> apeiros: I'm trying to understand the IO class methods
<apeiros> ok.
<Circuit8> apeiros: to broaden my Ruby horizons :)
<Circuit8> apeiros: I get that you would usually just use File, but the example in the docs arent working for me http://ruby-doc.org/core-2.0.0/IO.html#method-c-new-label-Example+1
<apeiros> oh, wow. bad docs.
<shortCircuit__> ruby docs need a reboot
<Circuit8> apeiros: Actually, the example is working, but not when i use a normal file
<Circuit8> so when I open `/dev/tty` for writing its OK
<shortCircuit__> I wonder why no one makes a good version of ruby docs
<Circuit8> but when i open `text.txt` its not
blackmesa has joined #ruby
<shortCircuit__> ./text.txt
<shortCircuit__> the path is correct!!
<Circuit8> shortCircuit__: I can open it for reading
<apeiros> Circuit8: I guess the mode is discarded for that case
<apeiros> because it makes no sense to open it twice
GreatSUN has joined #ruby
<GreatSUN> hi all
<Circuit8> apeiros: I'm not opening it twice though
<GreatSUN> I am using ruby 2.2.4
<apeiros> both, /dev/tty and a real file will work with just IO.new(fd)
<apeiros> Circuit8: yes, you do. 1. sysopen, 2. IO.new
craigp_ has joined #ruby
<GreatSUN> suddenly when trying to run gem install openssl I get the error that no valid gem could be found in any repo
<Circuit8> apeiros: Ah ok, i dont quite understand the difference between the two
<GreatSUN> can someone help me with this, please?
<GreatSUN> using redhat 7.2
<Circuit8> apeiros: Why do we use sysopen + IO.new?
<apeiros> Circuit8: one returns the underlying file descriptor (an integer), one returns an actual IO instance
<apeiros> I don't know when you'd actually use sysopen.
<apeiros> I guess when you have no need for the IO object and only need the fd.
<Circuit8> apeiros: Ah OK, so sysopen opens the file but doesnt give you a ruby object to actually do anything to the file with. New opens the file and gives you an IO object which you can do stuff with?
<apeiros> yes
<apeiros> and IO.new(fd) will wrap the opened fd in a ruby IO object
<Circuit8> apeiros: Ah I see
<apeiros> at least that's my understanding. it's not like I'd use that daily :D
<Circuit8> apeiros: Thanks :)
<apeiros> and you can get the fd from an IO object just fine. so I'm really not sure when it'd make sense to use sysopen.
<Circuit8> apeiros: I dont think you can use IO.new without a fd though, it requires one to instantiate
stamina has joined #ruby
<apeiros> Circuit8: right, you'd use IO.open
blackmesa has quit [Ping timeout: 248 seconds]
<apeiros> errr, wait…
* apeiros so used to use File.open, already forgotten IO's API :-S
<Circuit8> apeiros: So does IO.open basically call IO.new( IO.sysopen("filename", "mode"))?
LambdaSix has quit [Ping timeout: 244 seconds]
<apeiros> na, IO.open is basically: def self.open(*args); io = new(*args); yield(io) if block_given?; io; end
[k- has joined #ruby
<apeiros> i.e. it'll yield a block with the IO instance if a block is passed, other than that, it's equivalent to IO.new
LambdaSix has joined #ruby
<apeiros> I was mistaken when I said you'd use IO.open. I thought File.open was unchanged IO.open and thus would work the same. but that's wrong.
tvw has quit []
<apeiros> hu? wth
<apeiros> ah
<Circuit8> apeiros: Ah OK, it all makes a lot more sense now
<apeiros> meh - I should pay more attention when I do some quick tests :D never mind my "hu? wth"
<Circuit8> apeiros: One things I dont quite get with this example in the docs though, why does the `a = IO.new(fd,"w")` need the "w"? It works fine without it as its already opened for writing from the sysopen: http://ruby-doc.org/core-2.0.0/IO.html#method-c-new-label-Example+1
<apeiros> but that's interesting. File.open is indeed IO.open unchanged. File.new is what makes it different :)
<apeiros> Circuit8: no idea. I think it shouldn't be there. but I might lack some low-level knowledge there.
<Circuit8> apeiros: OK thanks a lot for your help I really appreciate it :)
claudiuinberlin has joined #ruby
sai_ has quit [Remote host closed the connection]
Circuit8 has quit [Quit: Page closed]
dtusk has quit [Ping timeout: 244 seconds]
JeanCarl1Machado has quit [Ping timeout: 265 seconds]
Macaveli has joined #ruby
JeanCarloMachado has joined #ruby
hahuang61 has joined #ruby
dn5 has quit [Ping timeout: 248 seconds]
hahuang61 has quit [Ping timeout: 244 seconds]
dn5 has joined #ruby
JeanCarl1Machado has joined #ruby
Rickmasta has joined #ruby
Rickmasta has quit [Client Quit]
codelogix has joined #ruby
marr has joined #ruby
<GreatSUN> noone an idea?
postmodern has left #ruby ["Leaving"]
JeanCarloMachado has quit [Ping timeout: 260 seconds]
codelogix has quit [Ping timeout: 240 seconds]
radic has joined #ruby
sai_ has joined #ruby
Immune has quit [Ping timeout: 260 seconds]
astrobunny has quit [Remote host closed the connection]
gizless has quit [Ping timeout: 244 seconds]
dtusk has joined #ruby
gizless has joined #ruby
nankyokusei has joined #ruby
Alina-malina has quit [Ping timeout: 255 seconds]
singalaut has quit [Ping timeout: 260 seconds]
aguynamedben has quit [Ping timeout: 255 seconds]
tpendragon has quit [Ping timeout: 255 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
blackjid has quit [Ping timeout: 248 seconds]
Immune has joined #ruby
Mon_Ouie has joined #ruby
pwnd_nsfw` has joined #ruby
minimalism has quit [Quit: minimalism]
dn5 has quit [Ping timeout: 265 seconds]
pwnd_nsfw has quit [Ping timeout: 248 seconds]
dn5 has joined #ruby
dtusk has quit [Ping timeout: 265 seconds]
vuoto has quit [Remote host closed the connection]
blackmesa has joined #ruby
gnufied has joined #ruby
sai_ has quit [Read error: Connection reset by peer]
sai__ has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
craigp_ has quit [Ping timeout: 272 seconds]
jphase has joined #ruby
Devalo has joined #ruby
RedNifre_ is now known as RedNifre
sai__ has quit [Read error: Connection reset by peer]
sai_ has joined #ruby
jphase has quit [Ping timeout: 250 seconds]
koooge has quit [Quit: Leaving...]
Devalo has quit [Ping timeout: 250 seconds]
hanmac has quit [Ping timeout: 255 seconds]
coolboy has quit [Ping timeout: 248 seconds]
pwnd_nsfw has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 272 seconds]
sai_ has quit [Read error: Connection reset by peer]
sai_ has joined #ruby
marktwo has joined #ruby
Hyuk has quit [Quit: Textual IRC Client: www.textualapp.com]
sai_ has quit [Read error: Connection reset by peer]
Wizznt has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Immune has quit [Ping timeout: 260 seconds]
jblack has joined #ruby
sai_ has joined #ruby
hahuang61 has joined #ruby
marktwo has quit [Remote host closed the connection]
sai_ has quit [Read error: Connection reset by peer]
sai_ has joined #ruby
jblack has quit [Ping timeout: 265 seconds]
Immune has joined #ruby
prawnzy has joined #ruby
hanmac has joined #ruby
hahuang61 has quit [Ping timeout: 276 seconds]
sai_ has quit [Read error: Connection reset by peer]
sai_ has joined #ruby
sai_ has quit [Read error: Connection reset by peer]
sai_ has joined #ruby
sai_ has quit [Read error: Connection reset by peer]
sai_ has joined #ruby
rodfersou has joined #ruby
zipace has quit [Ping timeout: 265 seconds]
dionysus69 has quit [Ping timeout: 244 seconds]
prawnzy has quit [Ping timeout: 272 seconds]
gingray has joined #ruby
zekriad has joined #ruby
elenatanasoiu has quit [Ping timeout: 265 seconds]
ldnunes has joined #ruby
elenatanasoiu has joined #ruby
nadir has joined #ruby
johnmilton has quit [Remote host closed the connection]
codelogix has joined #ruby
Guest28265 has quit [Ping timeout: 255 seconds]
shortCircuit__ has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
nuck has joined #ruby
nuck is now known as Guest96837
DoubleMalt has joined #ruby
JoshS has joined #ruby
JeanCarl1Machado has quit [Ping timeout: 265 seconds]
JeanCarloMachado has joined #ruby
jshjsh has quit [Ping timeout: 265 seconds]
Immune has quit [Ping timeout: 260 seconds]
blackmesa has joined #ruby
sepp2k has joined #ruby
hahuang61 has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
johnmilton has joined #ruby
Immune has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
ARCADIVS has quit [Quit: ARCADIVS]
dminuoso has quit [Ping timeout: 265 seconds]
johnmilton has quit [Ping timeout: 265 seconds]
johnmilton has joined #ruby
sai_ has quit [Read error: Connection reset by peer]
dn5 has quit [Quit: Lost terminal]
stamina has quit [Ping timeout: 244 seconds]
sai_ has joined #ruby
the_drow has joined #ruby
vqrs has quit [Ping timeout: 276 seconds]
vqrs has joined #ruby
Silthias has joined #ruby
alfiemax has quit [Ping timeout: 244 seconds]
the_drow has quit [Read error: Connection reset by peer]
Silthias1 has quit [Ping timeout: 264 seconds]
johnmilton has quit [Remote host closed the connection]
johnmilton has joined #ruby
the_drow has joined #ruby
dminuoso has joined #ruby
sergio_101 has joined #ruby
Spinne120 has joined #ruby
johnmilton has quit [Ping timeout: 264 seconds]
johnmilton has joined #ruby
anthony_ has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Technodrome has joined #ruby
elenatanasoiu has quit [Quit: WeeChat 1.5]
codelogix has quit [Ping timeout: 240 seconds]
claudiuinberlin has quit [Remote host closed the connection]
c0mrad3 has joined #ruby
csk has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
NetSage has joined #ruby
nankyokusei has joined #ruby
Immune has quit [Ping timeout: 260 seconds]
the_drow has joined #ruby
gfvcastro has joined #ruby
last_staff has quit [Quit: last_staff]
nankyokusei has quit [Ping timeout: 250 seconds]
weckl has quit [Ping timeout: 248 seconds]
dminuoso has quit [Remote host closed the connection]
Immune has joined #ruby
GreatSUN_ has joined #ruby
<GreatSUN_> Rehi
gnufied has quit [Quit: Leaving]
<apeiros> wb GreatSUN_
codelogix has joined #ruby
ocbtec has joined #ruby
<GreatSUN_> apeiros: any idea on the mentioned gem problem meanwhile?
<apeiros> nope. otherwise I'd have said so already ;-)
chouhoulis has joined #ruby
<GreatSUN_> Does it work for you?
sdothum has joined #ruby
synthroid has joined #ruby
<apeiros> define "it". I don't have your gemfile, network and ruby/gem version.
<GreatSUN_> Gem install openssl
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> I don't think openssl itself is a gem.
pragmaticus has joined #ruby
<GreatSUN_> Any ruby version would be OK for me > 2.0.0
<apeiros> it's part of ruby stdlib
Alina-malina has joined #ruby
craigp_ has joined #ruby
<GreatSUN_> There has been a wrapper around and it is mentioned on rubygems also
<apeiros> link?
redpants has joined #ruby
<GreatSUN_> And for me it has been working a long time
GodFather has quit [Quit: Ex-Chat]
GodFather has joined #ruby
cyphase has quit [Ping timeout: 264 seconds]
troulouliou_div2 has joined #ruby
<apeiros> https://rubygems.org/gems/openssl/versions - 3 have been yanked, the other two are prereleases.
the_drow has quit [Read error: Connection reset by peer]
<apeiros> you have to specifically allow for prereleases (gem install --pre openssl)
sai_ has quit [Read error: Connection reset by peer]
troulouliou_div2 has quit [Max SendQ exceeded]
<GreatSUN_> ah.
<GreatSUN_> Thanks
<GreatSUN_> Didn't know that
<GreatSUN_> That will solve my problem for sure
gnufied has joined #ruby
sai_ has joined #ruby
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
tyang has joined #ruby
troulouliou_div2 has joined #ruby
GreatSUN__ has joined #ruby
Vile` has quit [Ping timeout: 276 seconds]
cybertron has left #ruby [#ruby]
GreatSUN_ has quit [Read error: Connection reset by peer]
bsrd has quit [Quit: WeeChat 1.5]
cyphase has joined #ruby
GreatSUN__ has quit [Remote host closed the connection]
Macaveli has joined #ruby
gfvcastro has quit [Quit: Textual IRC Client: www.textualapp.com]
UserOO7 has quit [Ping timeout: 265 seconds]
gfvcastro has joined #ruby
<_sfiguser> hello everyone i'm reading the book "Beginning Ruby" i'm at almost half and at this point, i don't understand very well the concept of module in order to avoid name conflict... i mean, couldn't i at thi point have two modules with the same name and some method with the same name ?
<_sfiguser> i mean before the problem was related to methods and the risk was that of importing two modules and these modules could have different methods with the same name
<_sfiguser> but now i can have name conflict since i can have two modules with the same name sharing some methods name
<_sfiguser> how can i solve ?
<elomatreb> _sfiguser: The risk of a module name colliding is much lower than that of method names
<darix> or class names
<darix> also it gives a nice way to group classes/methods by topic
<_sfiguser> ahh ok ok elomatreb what if it happens to have two modules with the same name ? i mean i have one module called Graphic and another one with the same name how can i use both ?
<darix> _sfiguser: when you "create" the 2nd one
<darix> it will extend the first one
<elomatreb> You probably want to use nested modules (modules in modules)
blackmesa has joined #ruby
<darix> because ruby will reopen it and add the the new methods to the first module
<darix> and overwrite existing methods with the same name
<_sfiguser> elomatreb, i'm talking about.. for example i download a module from internet and it is called "Graphics" and then from another site i download another module and accidentally it has the same name
<darix> _sfiguser: as most ruby libraries use rubygems now
borodin has quit [Quit: Textual IRC Client: www.textualapp.com]
<darix> that shouldnt really happen
<elomatreb> _sfiguser: That can of course still happen, but it is probably very uncommon, as Ruby modules and libraries are ususally distributed on rubygems.org, which enforces unique names
nikivi has joined #ruby
nikivi has quit [Max SendQ exceeded]
jblack has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
Xentil has joined #ruby
<_sfiguser> ok thanks for explanation
redpants has quit [Ping timeout: 265 seconds]
kimegede has quit [Quit: Linkinus - http://linkinus.com]
cyphase has quit [Ping timeout: 265 seconds]
blackmesa has quit [Ping timeout: 260 seconds]
jblack has quit [Ping timeout: 265 seconds]
cyphase has joined #ruby
Snowy has joined #ruby
sai_ has quit [Read error: Connection reset by peer]
cdg has joined #ruby
Rodya_ has joined #ruby
rndUser__ has joined #ruby
swills has quit [Quit: Leaving]
gregf_ has quit [Ping timeout: 240 seconds]
xemehc has joined #ruby
Rodya_ has quit [Ping timeout: 272 seconds]
ramortegui has joined #ruby
elenatanasoiu has joined #ruby
Immune has quit [Ping timeout: 260 seconds]
cyphase has quit [Ping timeout: 255 seconds]
UserOO7 has joined #ruby
swills has joined #ruby
swills has quit [Remote host closed the connection]
codelogix has quit [Ping timeout: 240 seconds]
<_sfiguser> for my class it is sufficient to reimplement the each method, and then all other methods of Enumerable come for free ?
<_sfiguser> why ?
Mon_Ouie has quit [Read error: No route to host]
millerti has joined #ruby
<elomatreb> _sfiguser: Because all other operations in Enumerable can be built using each
hahuang65 has joined #ruby
<_sfiguser> ok vyt even if i don't include the enumerable module ?
UserOO7_ has joined #ruby
Mon_Ouie has joined #ruby
<elomatreb> You can replicate the methods in Enumerable, yes. No reason to do it though
cyphase has joined #ruby
<apeiros> _sfiguser: no. if you don't include the enumerable module, you don't get them.
nikivi has joined #ruby
<_sfiguser> ok thanks
sai_ has joined #ruby
fmcgeough has joined #ruby
<apeiros> but if you write the #each properly, namely if you let it return an Enumerator without a block, then you can chain Enumerable methods on .each
swills has joined #ruby
Immune has joined #ruby
shortCircuit__ has joined #ruby
UserOO7 has quit [Ping timeout: 276 seconds]
prawnzy has joined #ruby
claudiuinberlin has joined #ruby
rippa has joined #ruby
Rodya_ has joined #ruby
millerti has quit [Ping timeout: 276 seconds]
hahuang65 has quit [Ping timeout: 244 seconds]
sergio_101 has quit [Remote host closed the connection]
<_sfiguser> apeiros, why you say "#each" and not "each" ?
<apeiros> # denotes instance methods
<_sfiguser> ahh okok
<_sfiguser> didn't know
blackwind_123 has quit [Ping timeout: 240 seconds]
prawnzy has quit [Ping timeout: 260 seconds]
blackwind_123 has joined #ruby
cyphase has quit [Ping timeout: 265 seconds]
eizua has joined #ruby
codelogix has joined #ruby
aegis3121 has joined #ruby
contradictioned_ has quit [Remote host closed the connection]
Silthias has quit [Ping timeout: 265 seconds]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
contradictioned has joined #ruby
chelly has joined #ruby
cyphase has joined #ruby
arooni has quit [Quit: ZNC - http://znc.in]
AlexRussia has joined #ruby
sai__ has joined #ruby
sai_ has quit [Ping timeout: 240 seconds]
nikivi has quit [Read error: Connection reset by peer]
anisha has quit [Ping timeout: 260 seconds]
tubuliferous_ has joined #ruby
anisha has joined #ruby
Silthias has joined #ruby
borodin has joined #ruby
JakFrist has joined #ruby
jphase has joined #ruby
cyphase has quit [Ping timeout: 248 seconds]
rndUser__ has quit [Quit: Page closed]
arooni has joined #ruby
coolboy has joined #ruby
RegulationD has joined #ruby
nando293921 has joined #ruby
weckl has joined #ruby
cyphase has joined #ruby
sergio_101 has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
machinewar has joined #ruby
blackgoat has quit [Quit: WeeChat 1.5]
patarr has joined #ruby
cyphase has quit [Ping timeout: 240 seconds]
JakFrist has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tyang has quit [Ping timeout: 255 seconds]
JakFrist has joined #ruby
AlexxNica has joined #ruby
Immune has quit [Ping timeout: 260 seconds]
serard has joined #ruby
<serard> Hello
<serard> trying to use http://www.rubydoc.info/github/mitchellh/vagrant/Vagrant/Bundler#install-instance_method to install gems via vagrant's own ruby install, but dunno how to create the required plugins Hash
SteenJobs has joined #ruby
michael_mbp has quit [Quit: ZNC - http://znc.sourceforge.net]
JeanCarloMachado has quit [Remote host closed the connection]
alexherbo2 has quit [Quit: WeeChat 1.5]
gingray has quit [Ping timeout: 255 seconds]
JeanCarloMachado has joined #ruby
cyphase has joined #ruby
machinewar has quit []
blackmesa has joined #ruby
gingray has joined #ruby
Immune has joined #ruby
lifted has joined #ruby
fullofcaffeine has joined #ruby
ChiefAlexander has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
anisha has quit [Quit: This computer has gone to sleep]
JakFrist has quit [Quit: Textual IRC Client: www.textualapp.com]
michael_mbp has joined #ruby
iamvery has joined #ruby
zekriad has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nando293921 has quit [Ping timeout: 244 seconds]
wethu has quit [Quit: This computer has gone to sleep]
fullofca_ has joined #ruby
AlexRussia has quit [Ping timeout: 260 seconds]
fullofcaffeine has quit [Ping timeout: 255 seconds]
anthony_ has quit [Quit: anthony_]
borodin has quit [Quit: Textual IRC Client: www.textualapp.com]
maddmaxx has joined #ruby
beauby has joined #ruby
iamvery has quit [Quit: Leaving...]
<beauby> Hi there - h = Hash.new({}); a = h[:a]; a[:b] = :b; !h.keys.include?(:a) && h[:a].keys.include?(:b) # -> true, using ruby 2.3.0. What gives?
a1fa has joined #ruby
beauby has quit [Remote host closed the connection]
dminuoso has joined #ruby
beauby has joined #ruby
Spinne120 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
GodFather has quit [Ping timeout: 244 seconds]
<shortCircuit__> what gives?
<beauby> Sorry, client crashed. So I was asking: h = Hash.new({}); a = h[:a]; a[:b] = :b; !h.keys.include?(:a) && h[:a].keys.include?(:b) # -> true using ruby 2.3.0. How come?
<beauby> I mean, I kinda see what's happening under the hood, but I was wondering whether it was expected.
<a1fa> hello. is there a better way to write Digest::SHA2.hexdigest(rand(DateTime.now.to_i).to_s) - this is not used for any authentication or security for that matter.. its just a random string filler for a temprorary record
<shortCircuit__> reminds me of this https://youtu.be/GuDKElFcm1E?t=30s
sai__ has quit [Remote host closed the connection]
<a1fa> or should I do Random.new.bytes(rnd(20)) or some sort
sai_ has joined #ruby
AlexRussia has joined #ruby
<a1fa> meh ;) looks like this will be fine
codelogix has quit [Ping timeout: 240 seconds]
<lianj> a1fa: SecureRandom.hex(32)
_sfiguser has quit [Remote host closed the connection]
michael_mbp has quit [Quit: Checkout my channel at http://www.youtube.com/bsodmike]
craigp_ has quit [Ping timeout: 255 seconds]
<a1fa> thanks lianj - i am going to benchmark it to see how fas or how much faster is it from what i am doing today
<apeiros> beauby: got an answer yet?
<a1fa> this is just a temp string for a compounding key when processing .csv file
<beauby> apeiros: Well, what is happening is that this statement is in fact modifying the default object, but one (aka me) would expect the default object to be instantiated/duped upon first access
shortCircuit__ has quit [Remote host closed the connection]
<apeiros> beauby: thankfully that's not the case
beatdown has quit [Quit: ZNC 1.6.1 - http://znc.in]
<apeiros> because some people (aka me) wouldn't want that.
<beauby> apeiros: Would you care to explain why? (Genuinely interested)
<apeiros> beauby: if you want that, use the block form
<apeiros> beauby: because accessing the default object should not modify the hash
<beauby> apeiros: thanks, I hadn't thought of that.
GodFather has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
<apeiros> otherwise any access would cause new keys to appear in the hash
sai_ has quit [Read error: Connection reset by peer]
djbkd has quit [Quit: Leaving...]
<beauby> apeiros: makes sense. There could be some kind of "dup upon access, add key upon modification of duped object" but I guess the semantics would be even more confusing
michael_mbp has joined #ruby
hobodave has joined #ruby
nando293921 has joined #ruby
sai_ has joined #ruby
sai_ has quit [Read error: Connection reset by peer]
sai_ has joined #ruby
<apeiros> indeed, it would be.
nankyokusei has joined #ruby
djbkd has joined #ruby
<apeiros> and you can always add that.
<apeiros> Hash#fetch is somewhat close to that.
Immune has quit [Ping timeout: 260 seconds]
sczizzo has joined #ruby
<beauby> apeiros: yeah, but fetch does not create the key
<beauby> it's basically a specialized default value
<apeiros> it too takes a block
<apeiros> where you can put the code to set the value
Johne has joined #ruby
sandelius has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Johne> is there an irb plugin for cinch? like you guys have in here to test
eclaire has joined #ruby
nankyokusei has quit [Ping timeout: 265 seconds]
<apeiros> Johne: search for cinch-* named gems and look out for irb/pry/repl
<apeiros> oh, and eval
gfvcastro has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pwnd_nsfw` has joined #ruby
<Johne> awesome :)
beatdown has joined #ruby
JakFrist has joined #ruby
ichkv has joined #ruby
<apeiros> not saying there is one. that's just how I'd search for it.
Immune has joined #ruby
xemehc has quit [Quit: ZZZzzz…]
pwnd_nsfw has quit [Ping timeout: 248 seconds]
ResidentBiscuit has joined #ruby
AlexJakeGreen has joined #ruby
codelogix has joined #ruby
ixti has quit [Ping timeout: 265 seconds]
gfvcastro has joined #ruby
aegis3121 has quit [Ping timeout: 276 seconds]
xaxisx has quit [Read error: Connection reset by peer]
daffy_duck_2 has quit [Ping timeout: 240 seconds]
beauby has quit [Ping timeout: 264 seconds]
daffy_duck_2 has joined #ruby
xemehc has joined #ruby
Johne has left #ruby [#ruby]
Technodrome has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sai__ has joined #ruby
sai_ has quit [Read error: Connection reset by peer]
mesamoo has quit [Ping timeout: 244 seconds]
beatdown has quit [Changing host]
beatdown has joined #ruby
jshjsh has joined #ruby
programmerq has joined #ruby
moos3 has joined #ruby
coolboy has quit [Remote host closed the connection]
gfvcastro has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JoshS has quit [Ping timeout: 264 seconds]
beauby has joined #ruby
coolboy has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
ctp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ctp has joined #ruby
workmad3_ has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
sczizzo_ has joined #ruby
beauby has quit [Ping timeout: 248 seconds]
aegis3121 has joined #ruby
sczizzo_ has quit [Client Quit]
rodfersou is now known as rodfersou|lunch
skweek has joined #ruby
sczizzo has quit [Ping timeout: 276 seconds]
ctp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hobodave has quit [Quit: Computer has gone to sleep.]
Devalo has joined #ruby
Immune has quit [Ping timeout: 260 seconds]
wugy has quit []
aryaching has joined #ruby
tdy has quit [Ping timeout: 240 seconds]
AlexxNica has quit [Quit: AlexxNica]
saneax is now known as saneax-_-|AFK
DoubleMalt has quit [Ping timeout: 276 seconds]
jblack has joined #ruby
s2013 has joined #ruby
cpruitt has joined #ruby
mrtg9970 has joined #ruby
hahuang65 has joined #ruby
mrtg9970 has quit [Client Quit]
synthroid has quit [Remote host closed the connection]
tdy has joined #ruby
AlexJakeGreen has quit [Remote host closed the connection]
agent_white has joined #ruby
redpants has joined #ruby
Immune has joined #ruby
prawnzy has joined #ruby
hahuang65 has quit [Ping timeout: 248 seconds]
troulouliou_div2 has quit [Quit: Leaving]
aufi has quit [Quit: Leaving]
erlingur has quit [Ping timeout: 244 seconds]
prawnzy has quit [Ping timeout: 250 seconds]
AlexxNica has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
duderonomy has quit [Ping timeout: 272 seconds]
senayar has quit []
sai__ has quit [Read error: Connection reset by peer]
hobodave has joined #ruby
sai_ has joined #ruby
sai_ has quit [Read error: Connection reset by peer]
nando293921 has quit [Ping timeout: 265 seconds]
Xentil has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
dviola has joined #ruby
sai_ has joined #ruby
cpruitt has quit [Quit: cpruitt]
cpruitt has joined #ruby
JoshS has joined #ruby
hobodave_ has joined #ruby
nando293921 has joined #ruby
<zacts> hi rubyists
cpruitt has quit [Client Quit]
jshjsh has quit [Ping timeout: 264 seconds]
hobodave has quit [Ping timeout: 255 seconds]
cpruitt has joined #ruby
SteenJobs has joined #ruby
sai_ has quit [Client Quit]
jshjsh has joined #ruby
zekriad has joined #ruby
AnoHito has quit [Read error: Connection reset by peer]
AnoHito has joined #ruby
Uranio has joined #ruby
craigp_ has joined #ruby
workmad3 has joined #ruby
workmad3_ has quit [Ping timeout: 255 seconds]
JoshS has quit [Ping timeout: 255 seconds]
veloutin has joined #ruby
JoshS has joined #ruby
jtdowney has quit [Quit: ZNC]
jtdowney has joined #ruby
jtdowney has quit [Changing host]
jtdowney has joined #ruby
Devalo has quit [Remote host closed the connection]
harfangk has joined #ruby
sepp2k has quit [Quit: Leaving.]
RegulationD has joined #ruby
jshjsh has quit [Ping timeout: 255 seconds]
[Butch] has joined #ruby
GodFather has quit [Read error: No route to host]
Uranio has quit [Ping timeout: 265 seconds]
airstream66 has joined #ruby
dionysus69 has joined #ruby
gizless has quit [Ping timeout: 240 seconds]
blaxter has quit [Quit: foo]
mg^ has joined #ruby
synthroid has joined #ruby
GodFather has joined #ruby
<maddmaxx> hi
tyang has joined #ruby
<havenwood> hi
malconis has joined #ruby
conta has quit [Ping timeout: 265 seconds]
redpants has quit [Ping timeout: 265 seconds]
malconis has quit [Client Quit]
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
Immune has quit [Ping timeout: 260 seconds]
synthroid has quit [Ping timeout: 244 seconds]
shinnya has quit [Ping timeout: 265 seconds]
t3ra has joined #ruby
jsrn_ has quit [Quit: Leaving]
Hyuk has joined #ruby
ocbtec has quit [Quit: leaving]
<apeiros> hi
amclain has joined #ruby
RegulationD has quit [Remote host closed the connection]
synthroid has joined #ruby
Rodya_ has quit [Ping timeout: 272 seconds]
Immune has joined #ruby
nikivi has joined #ruby
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
codelogix has quit [Ping timeout: 255 seconds]
mikecmpbll has quit [Ping timeout: 265 seconds]
sepp2k has joined #ruby
jackjackdripper has joined #ruby
sandelius has joined #ruby
<yorickpeterse> hi
elifoster has joined #ruby
symm- has quit [Ping timeout: 244 seconds]
RobertBirnie has joined #ruby
tomphp has quit [Ping timeout: 248 seconds]
JakFrist has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Couch has quit [Ping timeout: 255 seconds]
JakFrist has joined #ruby
ruby-lang408 has joined #ruby
AlexxNica has quit [Quit: AlexxNica]
hopsoft has joined #ruby
<ruby-lang408> join
aegis3121 has quit [Ping timeout: 250 seconds]
airstream66 has quit [Remote host closed the connection]
SteenJobs has quit [Quit: SteenJobs]
flying has quit []
ruby-lang408 has quit [Client Quit]
AlexxNica has joined #ruby
chwbacca has joined #ruby
SteenJobs has joined #ruby
ruby-lang340 has joined #ruby
hahuang65 has joined #ruby
xemehc has quit [Quit: ZZZzzz…]
alfiemax has joined #ruby
Silthias has quit [Ping timeout: 250 seconds]
AlexxNica has quit [Client Quit]
polishdub has joined #ruby
nando293921 has quit [Ping timeout: 264 seconds]
flying has joined #ruby
hahuang65 has quit [Ping timeout: 272 seconds]
elenatanasoiu has quit [Ping timeout: 276 seconds]
t3ra has quit [Ping timeout: 265 seconds]
ruby-lang340 has quit [Ping timeout: 240 seconds]
jphase is now known as jphase-shutsup
hobodave_ has quit [Quit: Computer has gone to sleep.]
conta has joined #ruby
hobodave has joined #ruby
Snowy has quit [Quit: ragequit]
t3ra has joined #ruby
whathappens has joined #ruby
elenatanasoiu has joined #ruby
SeepingN has joined #ruby
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SteenJobs has quit [Quit: SteenJobs]
alexherbo2 has joined #ruby
nankyokusei has joined #ruby
RobertBirnie has quit [Quit: Textual IRC Client: www.textualapp.com]
Immune has quit [Ping timeout: 260 seconds]
Devalo has joined #ruby
jphase-shutsup is now known as jphase-TGIF
claudiuinberlin has quit []
SteenJobs has joined #ruby
stamina has joined #ruby
nankyokusei has quit [Ping timeout: 244 seconds]
workmad3_ has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
Immune has joined #ruby
ramfjord has joined #ruby
crank1988_ has quit [Ping timeout: 265 seconds]
Azure|dc has joined #ruby
nitric has joined #ruby
NTrash has joined #ruby
omphe has joined #ruby
salut has quit [Quit: salut]
mikecmpbll has joined #ruby
Azure has quit [Ping timeout: 276 seconds]
mistermocha has joined #ruby
rodfersou|lunch is now known as rodfersou
_djbkd has joined #ruby
blackmesa has joined #ruby
nikivi has quit [Quit: irc]
Asher has quit [Quit: Leaving.]
synthroid has quit [Remote host closed the connection]
flying has quit []
beauby has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
blackmesa has quit [Ping timeout: 260 seconds]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
borodin has joined #ruby
elenatanasoiu has quit [Ping timeout: 265 seconds]
AlexxNica has joined #ruby
synthroid has joined #ruby
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
Devalo has quit [Remote host closed the connection]
codelogix has joined #ruby
beauby has quit [Ping timeout: 240 seconds]
pause_ has quit [Quit: Lost terminal]
beauby has joined #ruby
codelogix has quit [Ping timeout: 255 seconds]
AnarchyAo has joined #ruby
Cohedrin has joined #ruby
aegis3121 has joined #ruby
TomyWork has quit [Ping timeout: 240 seconds]
firstdayonthejob has joined #ruby
dminuoso has quit [Ping timeout: 276 seconds]
skweek has quit [Ping timeout: 248 seconds]
hobodave has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
pwnd_nsfw has joined #ruby
mistermocha has quit [Remote host closed the connection]
Immune has quit [Ping timeout: 260 seconds]
eizua has quit [Quit: Leaving]
Cohedrin_ has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 255 seconds]
Cohedrin has quit [Ping timeout: 272 seconds]
rprimus has quit [Quit: leaving]
failshell has joined #ruby
peterhu has quit [Quit: leaving]
jackjackdripper has joined #ruby
Immune has joined #ruby
prawnzy has joined #ruby
stamina has quit [Ping timeout: 265 seconds]
beauby has quit [Remote host closed the connection]
beauby has joined #ruby
JakFrist has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JakFrist has joined #ruby
nadir has joined #ruby
hk238 has joined #ruby
machinewar has joined #ruby
workmad3_ has quit [Read error: Connection reset by peer]
^mtkd has quit [Ping timeout: 276 seconds]
prawnzy has quit [Ping timeout: 240 seconds]
Hyuk has quit [Read error: Connection reset by peer]
the_drow has joined #ruby
mtkd has joined #ruby
RegulationD has joined #ruby
workmad3 has joined #ruby
t3ra has quit [Ping timeout: 244 seconds]
vondruch has quit [Quit: Ex-Chat]
eljimmy has quit [Quit: This computer has gone to sleep]
RegulationD has quit [Remote host closed the connection]
rcvalle has joined #ruby
RegulationD has joined #ruby
JakFrist has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JakFrist has joined #ruby
Technodrome has joined #ruby
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.2 Aria]
jottr has joined #ruby
serard has quit [Quit: Leaving]
postmodern has joined #ruby
snguyen has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
blackmesa has joined #ruby
stamina has joined #ruby
havenwood has quit [Remote host closed the connection]
JeanCarloMachado has quit [Quit: leaving]
sczizzo has joined #ruby
crdpink has quit [Quit: q term]
wrkrcoop has joined #ruby
JeanCarloMachado has joined #ruby
<wrkrcoop> what is the meaning of klass?
nando293921 has joined #ruby
<elomatreb> wrkrcoop: It's used as a variable name if you want to store a class, since you can't use `class` as a variable name (as it is a keyword)
<wrkrcoop> makes sense
<wrkrcoop> thanks elomatreb
Ishido has quit [Remote host closed the connection]
crdpink has joined #ruby
Ishido has joined #ruby
Ishido has quit [Remote host closed the connection]
havenwood has joined #ruby
jeffreylevesque has joined #ruby
JakFrist has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jeffreylevesque> can someone help me with my three cases
JakFrist has joined #ruby
Dimik has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
havenwood has quit [Client Quit]
Ishido has joined #ruby
havenwood has joined #ruby
chwbacca has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
r4z has joined #ruby
Ishido has quit [Remote host closed the connection]
Ishido has joined #ruby
wrkrcoop has quit [Quit: wrkrcoop]
mark_66 has quit [Remote host closed the connection]
omphe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wrkrcoop has joined #ruby
kitikonti has joined #ruby
xemehc has joined #ruby
Immune has quit [Ping timeout: 260 seconds]
nando293921 has quit [Ping timeout: 265 seconds]
Guest38 has joined #ruby
machinewar has quit [Ping timeout: 265 seconds]
JakFrist has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JakFrist has joined #ruby
fullofcaffeine has joined #ruby
ichkv has quit [Remote host closed the connection]
fullofcaffeine has quit [Remote host closed the connection]
fullofca_ has quit [Ping timeout: 265 seconds]
fullofcaffeine has joined #ruby
workmad3 has joined #ruby
Immune has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
t3ra has joined #ruby
<SeepingN> `net ad` || return false
Guest54448 has quit [Remote host closed the connection]
replay has joined #ruby
failshell has quit []
tubuliferous_ has quit [Ping timeout: 240 seconds]
erlend has quit [Ping timeout: 265 seconds]
<havenwood> jeffreylevesque: When you say "check if command can run" what do you mean? The exit status after the command is run or just checking to see if there is such a command?
Devalo has joined #ruby
erlend has joined #ruby
<havenwood> jeffreylevesque: How about just?: system 'net', 'ads', 'testjoin'
miqlas-H has joined #ruby
the_drow has quit [Ping timeout: 272 seconds]
<jeffreylevesque> yeah if `net ads testjoin` returns 0, if command could join
tubuliferous_ has joined #ruby
<jeffreylevesque> but i'm checking if the command has exit code returned
<havenwood> jeffreylevesque: "system returns true if the command gives zero exit status, false for non zero exit status. Returns nil if command execution fails."
<baweaver> backticks return STDOUT
<jeffreylevesque> just installed samba on vagrant and tested
<jeffreylevesque> it returned 255
SteenJobs has joined #ruby
<jeffreylevesque> since i didn't do any configuration
the_drow has joined #ruby
CamonZ has joined #ruby
_joes_ has quit [Quit: Connection closed for inactivity]
<jeffreylevesque> what's the ruby syntax to check these shell commands?
<SeepingN> output = `some unix command`
<SeepingN> puts output
beauby has quit [Remote host closed the connection]
beauby has joined #ruby
ur5us has joined #ruby
nando293921 has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
t3ra has quit [Ping timeout: 244 seconds]
nikivi has joined #ruby
dionysus69 has quit [Ping timeout: 265 seconds]
<Mon_Ouie> system("some_comand"); $?.exitstatus
Ishido has quit [Read error: Connection reset by peer]
Ishido has joined #ruby
hahuang65 has joined #ruby
<Papierkorb> Or system(..); $?.success? # in this case
Devalo has quit [Remote host closed the connection]
bocaneri has quit [Read error: Connection reset by peer]
Devalo has joined #ruby
<jeffreylevesque> this is my outline https://bpaste.net/show/1fcc9658f58f
nikivi has quit [Read error: Connection reset by peer]
<Mon_Ouie> If you just care about success, system also returns true/false/nil
<havenwood> jeffreylevesque: Try just?: system 'net', 'ads', 'testjoin'
<havenwood> jeffreylevesque: without any if statement ^
workmad3 has quit [Ping timeout: 265 seconds]
beauby has quit [Read error: Connection reset by peer]
marxarelli has joined #ruby
hahuang65 has quit [Ping timeout: 255 seconds]
duderonomy has joined #ruby
dminuoso has joined #ruby
JakFrist has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jeffreylevesque> havenwood: so `return system 'net', 'ads', 'testjoin'`?
nikivi has joined #ruby
JakFrist has joined #ruby
gingray has quit [Ping timeout: 240 seconds]
Devalo has quit [Ping timeout: 276 seconds]
whathapp_ has joined #ruby
<havenwood> jeffreylevesque: in Ruby the last line is implicitly returned so if there's just one return value you skip an explicit `return`
nalik has quit [Read error: Connection reset by peer]
gfvcastro has joined #ruby
whathappens has quit [Ping timeout: 260 seconds]
nikivi has quit [Quit: irc]
nalik has joined #ruby
Immune has quit [Ping timeout: 260 seconds]
Contigi has joined #ruby
nankyokusei has joined #ruby
cdg has quit [Remote host closed the connection]
ixti has joined #ruby
skweek has joined #ruby
<jeffreylevesque> do i just `system 'net', 'ads', 'testjoin'`?
<dminuoso> jeffreylevesque: ?tias
Devalo has joined #ruby
<dminuoso> ?tias jeffreylevesque
<ruby[bot]> jeffreylevesque: Why don't you try it and see for yourself?
<havenwood> jeffreylevesque: yup (no backticks of course, assuming you're using those properly to denote code)
monod has joined #ruby
last_staff has joined #ruby
hopsoft has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pwnd_nsfw has quit [Ping timeout: 248 seconds]
nankyokusei has quit [Ping timeout: 272 seconds]
Immune has joined #ruby
crdpink has quit [Remote host closed the connection]
GarethAdams has joined #ruby
crdpink has joined #ruby
claudiuinberlin has joined #ruby
pwnd_nsfw has joined #ruby
workmad3 has joined #ruby
NetSage has quit [Ping timeout: 276 seconds]
peterhu has joined #ruby
t3ra has joined #ruby
GarethAdams has quit [Quit: Linkinus - http://linkinus.com]
workmad3 has quit [Ping timeout: 240 seconds]
<ule> Hi guys.. I have a breakpoint on a class and I'm wondering if it's possible know from this class which URL in the browser started this call
<ule> Wondering if there is way to inspect the REQUEST object from any class comming after it
<jeffreylevesque> how can i add a 'Windows' case for https://bpaste.net/show/254b9fb368e6
nando293921 has quit [Ping timeout: 250 seconds]
<jeffreylevesque> is this ok - https://bpaste.net/show/318cb980788e?
<Papierkorb> ule: not really. you can walk up the stack though. at some point you're bound to end up in the router or something which will know the URL
omphe_ has joined #ruby
<havenwood> jeffreylevesque: looks like you have an errant backtick in there
<jeffreylevesque> whoops forgot to get rid of that
<jeffreylevesque> but, the windows case is ok sytnax?
<ule> Papierkorb: how can I walk up the stack?
<Papierkorb> ule: What are you using?
<ule> Papierkorb: you mean debugging?
<Papierkorb> yes
<ule> but the point is get this info dinamically
<Papierkorb> ... why?
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
<Papierkorb> For logging?
kerframil has joined #ruby
<ule> I have a common class that gets called in multiple urls from the application.. and I need to take a different action if this class gets called from one specific url
dagda1 has joined #ruby
<Papierkorb> Please revisit your design decision
<ule> Papierkorb: There are too many calls to it, that passing some extra parameter over all the methods will take forever
<ule> Papierkorb: yeah.. that's what I was thinking
<Papierkorb> You can do such magic with the binding-of-caller gem, but I wouldn't want to use it to dynamically find the stack frame of the router to get the URL...
<jeffreylevesque> is this correct - https://bpaste.net/show/917e3d7bc4b3?
<ule> Papierkorb: yeah.. I came with PHP + Symfony experience.. there I can call the request object easily.. I thought that I could do something similar with rails
<Papierkorb> ?rails
<ruby[bot]> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<Papierkorb> ule: ^
<ule> ohh
<ule> thanks! I didn't know about this channel
<Papierkorb> Ruby is a language not bound to any HTTP stuff
codelogix has joined #ruby
<ule> yeah.. sorry about that
jottr has quit [Ping timeout: 240 seconds]
<Papierkorb> np
r4z has left #ruby ["Leaving"]
marxarelli is now known as marxarelli|afk
marxarelli|afk is now known as marxarelli
maddmaxx has quit [Quit: Going offline, see ya! (www.adiirc.com)]
codelogix has quit [Ping timeout: 255 seconds]
marxarelli has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Papierkorb> ule: Ruby/Rails apps are really applications servers, each handling multiple requests. So such "globals" are disliked in the community.
omphe_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Devalo has quit [Remote host closed the connection]
tubuliferous_ has quit [Ping timeout: 255 seconds]
jackjackdripper has quit [Quit: Leaving.]
Devalo_ has joined #ruby
omphe has joined #ruby
jottr has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
harai has joined #ruby
the_drow has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
hahuang65 has joined #ruby
Devalo_ has quit [Ping timeout: 248 seconds]
s2013 has joined #ruby
Immune has quit [Ping timeout: 260 seconds]
hahuang65 has quit [Client Quit]
nullfxn has quit [Quit: leaving]
fullofcaffeine has quit [Ping timeout: 250 seconds]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banisterfiend has joined #ruby
nando293921 has joined #ruby
coolboy has quit [Remote host closed the connection]
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
prawnzy has joined #ruby
the_drow has quit [Ping timeout: 264 seconds]
eljimmy has joined #ruby
kitikonti has quit [Quit: Textual IRC Client: www.textualapp.com]
the_drow has joined #ruby
toretore has quit [Ping timeout: 255 seconds]
<ule> Papierkorb: that makes sense
<ule> thanks for chat Papierkorb
<Papierkorb> cheers
johnmilton has quit [Remote host closed the connection]
prawnzy has quit [Ping timeout: 276 seconds]
weckl has quit [Quit: Leaving]
nalik is now known as nullniverse
PocketKiller has left #ruby ["Leaving dis channel"]
skweek has quit [Ping timeout: 255 seconds]
beauby has joined #ruby
skweek has joined #ruby
maddmaxx has joined #ruby
dagda1 has joined #ruby
whathapp_ has quit [Quit: Leaving...]
<jeffreylevesque> should i quote the pipe - https://bpaste.net/show/434557735b49?
UserOO7__ has joined #ruby
pwnd_nsfw` has joined #ruby
Technodrome has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
UserOO7_ has quit [Ping timeout: 272 seconds]
pwnd_nsfw has quit [Ping timeout: 250 seconds]
Immune has joined #ruby
minimalism has joined #ruby
isan32 has joined #ruby
jottr has quit [Quit: WeeChat 1.5]
<SeepingN> why quote them all individually?
<jeffreylevesque> SeepingN: so you're saying https://bpaste.net/show/e813f7c7c1ab?
<SeepingN> I dunno, I don't know what's goin gon there, with an exec calling system
<SeepingN> somethings wacky
mrwn has joined #ruby
<SeepingN> or is "system" an actual command line program/script ?
zipace has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
SteenJobs has quit [Quit: SteenJobs]
leea has joined #ruby
SteenJobs has joined #ruby
mikecmpbll has joined #ruby
beauby has quit [Read error: Connection reset by peer]
SteenJobs has quit [Client Quit]
maddmaxx has quit [Ping timeout: 260 seconds]
kith_ has quit [Quit: kith_]
kith has quit [Quit: kith]
erlingur has joined #ruby
webus has joined #ruby
andikr has quit [Remote host closed the connection]
Dobler has joined #ruby
Dobler has quit [Max SendQ exceeded]
johnmilton has joined #ruby
NTrash has quit [Ping timeout: 240 seconds]
cyphase has quit [Ping timeout: 265 seconds]
nando293921 has quit [Read error: Connection reset by peer]
isan32 has quit [Ping timeout: 265 seconds]
the_drow has quit [Ping timeout: 250 seconds]
the_drow has joined #ruby
flying has joined #ruby
cyphase has joined #ruby
elenatanasoiu has joined #ruby
nando293921 has joined #ruby
jphase-TGIF has quit [Ping timeout: 260 seconds]
wrkrcoop has quit [Quit: wrkrcoop]
_djbkd has quit [Remote host closed the connection]
nando293921 has quit [Read error: Connection reset by peer]
_djbkd has joined #ruby
_djbkd has quit [Read error: Connection reset by peer]
codelogix has joined #ruby
_djbkd has joined #ruby
hobodave_ has joined #ruby
hobodave has quit [Ping timeout: 264 seconds]
ratatine has joined #ruby
the_drow has quit [Ping timeout: 240 seconds]
the_drow has joined #ruby
jackjackdripper has joined #ruby
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
redpants has joined #ruby
_sfiguser has joined #ruby
conta has quit [Ping timeout: 250 seconds]
leea has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JakFrist has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JakFrist has joined #ruby
pokalyis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
the_drow has quit [Read error: Connection reset by peer]
fullofcaffeine has joined #ruby
the_drow has joined #ruby
isan32 has joined #ruby
fullofca_ has joined #ruby
_djbkd has quit [Remote host closed the connection]
blackmesa has joined #ruby
jphase-TGIF has joined #ruby
erlingur has quit [Ping timeout: 272 seconds]
the_drow has quit [Read error: Connection reset by peer]
f0rpaxe has joined #ruby
minimalism has quit [Ping timeout: 244 seconds]
fullofcaffeine has quit [Ping timeout: 265 seconds]
<f0rpaxe> Hi!! http://rubyforge.org/ <--- is it me or.... this ain't working ?
_djbkd has joined #ruby
ur5us has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: inabit. zz.]
ur5us has joined #ruby
synthroid has quit []
the_drow has joined #ruby
<baweaver> been down for a while
cdg has joined #ruby
<havenwood> f0rpaxe: it is no more
mikecmpbll has joined #ruby
<f0rpaxe> awwww
minimalism has joined #ruby
SteenJobs has joined #ruby
Wizznt has joined #ruby
ur5us has quit [Ping timeout: 276 seconds]
chouhoul_ has joined #ruby
beauby has joined #ruby
machinewar has joined #ruby
tyang has quit [Ping timeout: 255 seconds]
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
blackgoat has joined #ruby
chouhoulis has quit [Ping timeout: 264 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
hopsoft has joined #ruby
the_drow has joined #ruby
tomphp has joined #ruby
Immune has quit [Ping timeout: 260 seconds]
_djbkd has quit [Ping timeout: 244 seconds]
rodfersou has quit [Quit: leaving]
nankyokusei has joined #ruby
_djbkd has joined #ruby
moneylotion_ has quit [Quit: ZNC 1.6.3 - http://znc.in]
chelly has quit [Quit: Connection closed for inactivity]
the_drow has quit [Read error: Connection reset by peer]
Tomthetom00 has joined #ruby
the_drow has joined #ruby
blackwind_123 has quit [Ping timeout: 264 seconds]
nankyokusei has quit [Ping timeout: 264 seconds]
pokalyis has joined #ruby
mrwn has quit [Read error: Connection reset by peer]
Technodrome has joined #ruby
Immune has joined #ruby
ercx2x has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
<ercx2x> hey guys, simple question: is it possible to build out a website in simply ruby?
<ercx2x> or does it simply make sense to include rails?
threh has joined #ruby
<ercx2x> I'm wonder because I'm unsure if the overhead of rails would be ideal for sites that I want to make
bonhoeffer has joined #ruby
elenatanasoiu has quit [Ping timeout: 276 seconds]
claudiuinberlin has quit []
the_drow has joined #ruby
<_sfiguser> hello everyone
<_sfiguser> can somebody explain to me when i should uses Struct.new ?
<ercx2x> If I need some type of data structure that is easy to access I could simply store it in a ruby file that has an array, no?
<_sfiguser> i can't understand the scenario
jeffreylevesque has quit [Ping timeout: 260 seconds]
<bonhoeffer> _sfiguser: structs are nice when doing modeling or math problems
<bonhoeffer> and you want to have a custom object in a discrete event sim
<_sfiguser> bonhoeffer, ok but which modeling or which math problem ?
fmcgeough has quit [Quit: fmcgeough]
tpendragon has joined #ruby
FastJack has quit [Read error: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number]
Technodrome has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest60806 has joined #ruby
<bonhoeffer> like a discrete event simulation
<_sfiguser> bonhoeffer, like classes but with no methods ? so ?
omphe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Technodrome has joined #ruby
_djbkd has quit [Read error: Connection reset by peer]
<bonhoeffer> yeah -- like say you are modeling a sensor
shinnya has joined #ruby
_djbkd has joined #ruby
<bonhoeffer> that has a number of detections -- but doesn't have methods
FastJack has joined #ruby
<bonhoeffer> just a set of properties -- could be a matrix, scalar, etc
<_sfiguser> ahh ok ok thanks bonhoeffer !
blackjid has joined #ruby
<_sfiguser> no ok but for matrix it is more conveniet doing a multidimensional array no ?
[k- has quit [Ping timeout: 265 seconds]
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
cdg has quit [Read error: Connection reset by peer]
nullniverse has quit [Read error: Connection reset by peer]
elenatanasoiu has joined #ruby
cdg has joined #ruby
nullniverse has joined #ruby
the_drow has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
isan32 has quit [Ping timeout: 276 seconds]
<baweaver> ercx2x: Rails takes care of most everything for you.
<baweaver> Sinatra is a far more lightweight alternative but is more of a some assembly required type of framework
mrwn has joined #ruby
<baweaver> _sfiguser: A Struct is just a basic container for a few attributes
flying has quit []
sergio_101 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JoshS has quit [Quit: Leaving]
<baweaver> ercx2x: You might just use sqlite3 as a database
<ercx2x> baweaver: I'm a bit used to PHP and learning rails. One thing I do in PHP say, if I want to have a gallery of lightbox items in many different posts... I would have a PHP file that was an array of different galleries and request whichever one was needed for the post
<ercx2x> If I want to replicate that in ruby should I store things in a database? I feel that's unnecessary
UserOO7__ has quit [Remote host closed the connection]
<ercx2x> and I could simply make some .rb file to store the gallery items similar to how I would do it in PHP?
<baweaver> That's more of just bad design
<baweaver> it's called hardcoding values
<ercx2x> I'm not hardcoding
<baweaver> you can do it in Ruby, sure, but you probably shouldn't
<ercx2x> I loop thru the values
<baweaver> not making much sense there
<ercx2x> I mean, wouldn't it be overly complex to store those gallery items in a database?
<ercx2x> I'm not too familiar with databases though
wrkrcoop has joined #ruby
cdg has quit [Read error: Connection reset by peer]
cdg has joined #ruby
<baweaver> Read through a few Rails tutorials like Mike Hartl's one and Rails 4 in Action
<baweaver> it'll get you through the basics
<ercx2x> I've read Hartl
<ercx2x> I know the basics-ish
<baweaver> because chances are you want someone to be able to modify things without redeploying the code.
t3ra has quit [Ping timeout: 248 seconds]
<ercx2x> I guess my question is: Do you always store everything that relates to data items (ie images to reference for a lightbox) in a database?
<ercx2x> and never something like a JSON file?
aesthetikx has quit [Quit: WeeChat 1.4]
<baweaver> If I ever want to change it, yes.
<ercx2x> You can change a JSON file as well though
<ercx2x> and I'd argue it's easier and less complex
<baweaver> Then do it that way
<baweaver> but it's still a bad idea
<ercx2x> Why do you say that?
wethu has joined #ruby
ben______ has joined #ruby
<baweaver> I'm not going to spend the next half hour convincing you of why you should do something
<baweaver> you're not particularly interested in it.
<ercx2x> No, i"m only trying to understand the reasoning
<ercx2x> I don't think it'd take an hour. Just one sentence would suffice
<baweaver> I've given you several already.
<ercx2x> All you said was that you can modify things which is why you would use a database to store those types of items but then I said you can modify things in JSON as well...
be_______ has quit [Ping timeout: 248 seconds]
nikivi has joined #ruby
JakFrist has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maddmaxx has joined #ruby
<_sfiguser> thanks baweaver
sczizzo_ has joined #ruby
<zenspider> rawr
ldnunes has quit [Quit: Leaving]
sczizzo_ has quit [Remote host closed the connection]
machinewar has quit [Remote host closed the connection]
sczizzo_ has joined #ruby
sczizzo_ has quit [Remote host closed the connection]
Beast has quit [Quit: Leaving]
<baweaver> ercx2x: It won't scale at all, it creates state on the machine which is bad, it won't persist across deployments if you change it live, there are several
<baweaver> a database keeps the state of an application in a separate place allowing it to properly persist without those concerns.
sczizzo_ has joined #ruby
<baweaver> easy now often leads to incredible pain later.
<ercx2x> Alright, that makes more sense to me
SteenJobs has quit [Quit: SteenJobs]
sczizzo has quit [Ping timeout: 240 seconds]
SteenJobs has joined #ruby
JeanCarloMachado has quit [Ping timeout: 265 seconds]
SteenJobs has quit [Client Quit]
dagda1 has quit [Quit: Textual IRC Client: www.textualapp.com]
sczizzo_ has quit [Ping timeout: 240 seconds]
Ishido has quit [Remote host closed the connection]
mrwn has quit [Ping timeout: 240 seconds]
Ishido has joined #ruby
Ishido has quit [Remote host closed the connection]
Hobogrammer has quit [Ping timeout: 244 seconds]
airstream66 has joined #ruby
Ishido has joined #ruby
Ishido has quit [Remote host closed the connection]
patarr has quit [Quit: patarr]
wrkrcoop has quit [Quit: wrkrcoop]
Ishido has joined #ruby
Ishido has quit [Remote host closed the connection]
Ishido has joined #ruby
erlingur has joined #ruby
ramortegui has quit [Quit: Ex-Chat]
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
airstream66 has quit [Remote host closed the connection]
nullniverse is now known as nullwork
chouhoul_ has quit [Remote host closed the connection]
wrkrcoop has joined #ruby
chouhoulis has joined #ruby
elenatanasoiu has quit [Ping timeout: 260 seconds]
machinewar has joined #ruby
<machinewar> what does loop block return, when I iterate an enumerator in a loop it returns the original array?
JoshS has joined #ruby
t3ra has joined #ruby
<baweaver> machinewar: can you clarify that?
<machinewar> baweaver: totally sorry
<machinewar> why is the array returned? just curious would think nil would be returned. from docs "loop returns the "result" value stored in the exception"
omphe has joined #ruby
<baweaver> &ri Kernel#loop
the_drow has quit [Ping timeout: 260 seconds]
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
<machinewar> i.e. in that example call just the last value is returned not the whole enumerator as an array
monod has quit [Quit: Sto andando via]
codelogix has quit [Ping timeout: 255 seconds]
<baweaver> >> def m;e=[1,2,3].each;loop do e.next end;end; m
<ruby[bot]> baweaver: # => [1, 2, 3] (https://eval.in/649028)
<baweaver> 21>> def m;e=[1,2,3].each;loop do e.next end;end; m
<ruby[bot]> baweaver: # => nil (https://eval.in/649029)
<baweaver> 23>> def m;e=[1,2,3].each;loop do e.next end;end; m
<ruby[bot]> baweaver: # => [1, 2, 3] (https://eval.in/649030)
omphe has quit [Client Quit]
<baweaver> huh
<baweaver> 22>> def m;e=[1,2,3].each;loop do e.next end;end; m
<ruby[bot]> baweaver: # => nil (https://eval.in/649031)
<baweaver> apparently 2.3.x changed something
omphe has joined #ruby
JeanCarloMachado has joined #ruby
<machinewar> will look into it thanks a ton. also how can I see the bot commands
<baweaver> Not sure they're documented.
lightener has joined #ruby
<machinewar> ah kk, also strange neither is the loop change
<havenwood> >> enum = Enumerator.new { |y| [1, 2, 3].each { |n| y << n; n }; [4, 5, 6] }; [enum.to_a, loop { enum.next }]
<ruby[bot]> havenwood: # => [[1, 2, 3], [4, 5, 6]] (https://eval.in/649033)
Immune has quit [Ping timeout: 260 seconds]
<baweaver> havenwood repl has come to save the day
<havenwood> extra `; n` in there, oops
stamina has quit [Ping timeout: 240 seconds]
the_drow has joined #ruby
<havenwood> `loop { enum.next }` having a different result than `enum.to_a` is kinda fun
<havenwood> from*
CamonZ has quit [Quit: Textual IRC Client: www.textualapp.com]
FastJack has quit [Remote host closed the connection]
<baweaver> to be fair though, seeing loop enum.next in the wild is sparse
<havenwood> i can't think of a use
<machinewar> baweaver: agreed, I have an array of objects and need to set an attribute on each object the the same attr on the next object. would be trivial recursively with a linked list
<baweaver> so why not just do objects.each { |o| o.attr = x } ?
<machinewar> because it would need to be more like objects.each_with_index { |o| o.attr = o[index + 1].attr}
<machinewar> because it would need to be more like objects.each_with_index { |o| o.attr = objects[index + 1].attr}
<machinewar> but objects[index + 1] will be nil if end of the array
<baweaver> what exactly are you trying to do that for?
<machinewar> work....
<machinewar> its a database response and some business logic
<baweaver> ok. but to solve what problem?
<machinewar> set the end dates of each object to the start_date of the next object - 1
<machinewar> and nil if there's no next object
Ishido has quit [Remote host closed the connection]
elenatanasoiu has joined #ruby
Ishido has joined #ruby
<machinewar> there's clearly many ways to do it, but enumerator + loop is pretty simple
<baweaver> first, *rest = objects; rest.reduce(first) { |a, b| a.start_date = b.end_date; b }
Jardayn has joined #ruby
<baweaver> ack
<baweaver> first, *rest = objects; rest.reduce(first) { |a, b| a.end_date = b.start_date; b }
the_drow has quit [Read error: Connection reset by peer]
moos3 has quit [Quit: WeeChat 1.5]
jshjsh has joined #ruby
<baweaver> reduce is essentially foldLeft, and what you describe is essentially folding the objects onto eachother so you can use that to do so
<machinewar> baweaver: reduce would be cool I need to look this over and see if its doing same thing I'm attempting to do
codelogix has joined #ruby
<baweaver> &ri Enumerable#reduce
elenatanasoiu has quit [Ping timeout: 260 seconds]
Ishido has quit [Client Quit]
[Butch] has quit [Quit: I'm out . . .]
Xeago has quit [Ping timeout: 265 seconds]
Xeago has joined #ruby
JoshS has quit [Ping timeout: 265 seconds]
omphe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
the_drow has joined #ruby
<machinewar> beatdown: dude that is awesome
codelogix has quit [Ping timeout: 255 seconds]
erlingur has quit [Ping timeout: 240 seconds]
the_drow has quit [Read error: Connection reset by peer]
sczizzo has joined #ruby
sczizzo has quit [Remote host closed the connection]
FastJack has joined #ruby
moos3 has joined #ruby
whathappens has joined #ruby
the_drow has joined #ruby
testplay has joined #ruby
hobodave_ has quit [Quit: Computer has gone to sleep.]
testplay has left #ruby [#ruby]
webus has quit [Ping timeout: 272 seconds]
the_drow_ has joined #ruby
elenatanasoiu has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
codelogix has joined #ruby
snguyen has quit [Quit: Textual IRC Client: www.textualapp.com]
beauby has quit [Ping timeout: 240 seconds]
Madplatypus has joined #ruby
machinewar has quit []
JeanCarloMachado has quit [Ping timeout: 248 seconds]
firstdayonthejob has quit [Quit: WeeChat 1.5]
JeanCarloMachado has joined #ruby
greg96722 has quit [Ping timeout: 240 seconds]
aegis3121 has quit [Quit: Textual IRC Client: www.textualapp.com]
the_drow_ has quit [Read error: Connection reset by peer]
xemehc has quit [Quit: ZZZzzz…]
greg808 has quit [Ping timeout: 276 seconds]
xemehc has joined #ruby
the_drow has joined #ruby
codelogix has quit [Ping timeout: 255 seconds]
danostrowski has joined #ruby
elenatanasoiu has quit [Ping timeout: 240 seconds]
xemehc has quit [Client Quit]
the_drow has quit [Read error: Connection reset by peer]
dminuoso has quit [Ping timeout: 244 seconds]
Technodrome has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
the_drow has joined #ruby
mrwn has joined #ruby
redpants has quit [Ping timeout: 244 seconds]
t3ra has quit [Ping timeout: 276 seconds]
codelogix has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
statelesscode has quit [Quit: statelesscode]
the_drow has joined #ruby
the_drow has quit [Client Quit]
codelogix has quit [Ping timeout: 240 seconds]
skweek has quit [Ping timeout: 250 seconds]
threh has quit [Ping timeout: 250 seconds]
weaksauce has joined #ruby
agent_white has quit [Quit: bbl]
aspiers has quit [Ping timeout: 265 seconds]
jackjackdripper has quit [Quit: Leaving.]
daffy_duck_2 has quit [Ping timeout: 276 seconds]
symm- has joined #ruby
cdg has quit [Ping timeout: 248 seconds]
kith has joined #ruby
jshjsh has quit [Ping timeout: 244 seconds]
marr has quit [Ping timeout: 240 seconds]
[k- has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
daffy_duck_2 has joined #ruby
nankyokusei has joined #ruby
d5sx43 has joined #ruby
ramfjord has quit [Ping timeout: 272 seconds]
bonhoeffer has quit [Ping timeout: 240 seconds]
aryaching has quit [Ping timeout: 265 seconds]
sepp2k has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 276 seconds]
d5sx43 has quit [Client Quit]
nankyokusei has quit [Ping timeout: 244 seconds]
ramfjord has joined #ruby
threh has joined #ruby
Jardayn_two has joined #ruby
AnarchyAo has quit [Ping timeout: 248 seconds]
ta_ has quit [Remote host closed the connection]
mrwn has quit [Ping timeout: 248 seconds]
Jardayn has quit [Ping timeout: 265 seconds]
JeanCarloMachado has joined #ruby
tomchapin has joined #ruby
Wizznt has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
aspiers has joined #ruby
sonikspin has quit [Ping timeout: 265 seconds]
jackjackdripper has joined #ruby
Immune has joined #ruby
gfvcastro has quit [Read error: Connection reset by peer]
herbmillerjr has joined #ruby
c0mrad3 has quit [Quit: Connection closed for inactivity]
ponga has quit [Quit: Connection closed for inactivity]
nikivi has quit [Quit: irc]
sonikspin has joined #ruby
icarus has joined #ruby
elastix has joined #ruby
TomyWork has joined #ruby
rcvalle has quit [Quit: rcvalle]
sumobob has joined #ruby
mrwn has joined #ruby
prawnzy has joined #ruby
leea has joined #ruby
wrkrcoop has left #ruby [#ruby]
nofxx has joined #ruby
ResidentBiscuit has quit [Remote host closed the connection]
dminuoso has joined #ruby
prawnzy has quit [Read error: Connection reset by peer]
threh has quit [Ping timeout: 264 seconds]
prawnzy has joined #ruby
t3ra has joined #ruby
dminuoso has quit [Ping timeout: 264 seconds]
ResidentBiscuit has joined #ruby
symm- has quit [Ping timeout: 272 seconds]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
prawnzy has quit [Read error: Connection reset by peer]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
prawnzy has joined #ruby
aidalgol has joined #ruby
aidalgol is now known as Guest9540
duncannz has joined #ruby
Guest9540 is now known as aidalgl
aidalgl is now known as aidalgol
saneax-_-|AFK is now known as saneax
Rajamaa has quit [Quit: Konversation terminated!]
lightener has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
t3ra has quit [Ping timeout: 265 seconds]
hopsoft has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
last_staff has quit [Quit: last_staff]
icarus has quit [Ping timeout: 250 seconds]
prawnzy has quit [Read error: Connection reset by peer]
symm- has joined #ruby
prawnzy has joined #ruby
icarus has joined #ruby
skweek has joined #ruby
kegster has quit [Quit: Shiner, TX makes good beer.]
kegster has joined #ruby
prawnzy has quit [Ping timeout: 260 seconds]
jackjackdripper has quit [Quit: Leaving.]
Technodrome has joined #ruby
polishdub has quit [Quit: Leaving]
vqrs has quit [Ping timeout: 248 seconds]
sonikspin has quit [Ping timeout: 255 seconds]
icarus has quit [Ping timeout: 272 seconds]
vqrs has joined #ruby
airstream66 has joined #ruby
_djbkd has quit [Remote host closed the connection]
blackmesa has joined #ruby
elastix has quit [Quit: elastix]
arescorpio has joined #ruby
prawnzy has joined #ruby
kerframil has quit [Ping timeout: 265 seconds]
hammond is now known as deer_hunter
tdy has quit [Ping timeout: 260 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
test0 has joined #ruby
test0 has left #ruby [#ruby]
airstream66 has quit [Remote host closed the connection]
solocshaw has joined #ruby
elenatanasoiu has joined #ruby
s2013 has joined #ruby
whathappens has quit [Quit: Leaving...]
erlingur has joined #ruby
Rodya_ has joined #ruby
elenatanasoiu has quit [Ping timeout: 264 seconds]
csk_ has joined #ruby
tristanp has joined #ruby
csk has quit [Ping timeout: 244 seconds]
Tomthetom00 has quit [Quit: Leaving]
nando293921 has joined #ruby
elenatanasoiu has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
kerframil has joined #ruby