apeiros_ changed the topic of #ruby to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
ponch_ has joined #ruby
saarinen has quit [Quit: saarinen]
freerobby has quit [Read error: Connection reset by peer]
klaut has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
vsoftoiletpaper has joined #ruby
klaut has joined #ruby
apeiros has joined #ruby
luckyruby has quit [Remote host closed the connection]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
luckyruby has joined #ruby
testcore has quit [Quit: [BX] I'm out like a light...]
klaut has quit [Ping timeout: 250 seconds]
jottr has quit [Ping timeout: 260 seconds]
phinfonet has joined #ruby
chipotle has quit [Quit: cya]
hephaestus_rg has quit [Ping timeout: 246 seconds]
sepp2k1 has joined #ruby
Grantlyk has quit [Remote host closed the connection]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Grantlyk has joined #ruby
hephaestus_rg has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
sepp2k has quit [Ping timeout: 264 seconds]
nurrb has joined #ruby
RichardLitt has quit [Quit: RichardLitt]
peret has joined #ruby
b00stfr3ak has quit [Ping timeout: 244 seconds]
Grantlyk has quit [Ping timeout: 264 seconds]
nurrb has left #ruby [#ruby]
thams has joined #ruby
jottr has joined #ruby
MatthewsFace has quit [Quit: Leaving]
chrisja has quit [Quit: leaving]
jmbrown412 has quit [Remote host closed the connection]
robustus has quit [Ping timeout: 255 seconds]
jmbrown412 has joined #ruby
robustus has joined #ruby
<nobitanobi> apeiros: whenever you wake up. Thanks for your guide. I think I 'understand' binding :)
bMalum__ has joined #ruby
nobitanobi has quit []
jcromartie has joined #ruby
jottr has quit [Ping timeout: 272 seconds]
toastynerd has joined #ruby
jmbrown412 has quit [Ping timeout: 250 seconds]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
doodlehaus has joined #ruby
bMalum__ has quit [Ping timeout: 246 seconds]
saarinen has joined #ruby
wjimenez_ has joined #ruby
saarinen has quit [Client Quit]
djbkd has quit [Remote host closed the connection]
flowerhack has quit [Remote host closed the connection]
shinobi_one has quit [Quit: shinobi_one]
nanoyak has quit [Quit: Computer has gone to sleep.]
sdwrage has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
cpruitt has quit [Quit: cpruitt]
wjimenez5271 has quit [Ping timeout: 246 seconds]
jonahR has quit []
zz_karupa is now known as karupa
oo_ has joined #ruby
wjimenez_ has quit [Ping timeout: 240 seconds]
klaut has joined #ruby
saarinen has joined #ruby
joast has quit [Quit: Leaving.]
amacou has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
djcp has quit [Quit: WeeChat 0.4.3]
OrkzRule has quit [Ping timeout: 272 seconds]
balazs has quit [Remote host closed the connection]
saarinen has quit [Client Quit]
dbasch has quit [Quit: dbasch]
Grantlyk_ has joined #ruby
oo_ has quit [Remote host closed the connection]
thams has quit [Quit: thams]
dbasch has joined #ruby
Hobogrammer has quit [Ping timeout: 264 seconds]
thams has joined #ruby
sdwrage has joined #ruby
maroloccio has quit [Ping timeout: 264 seconds]
siukit2014 has quit [Ping timeout: 250 seconds]
amacou has quit [Ping timeout: 240 seconds]
siukit2014 has joined #ruby
narcan has joined #ruby
szuletett has joined #ruby
thams has quit [Ping timeout: 246 seconds]
oo_ has joined #ruby
jxf has quit [Ping timeout: 260 seconds]
ghostmoth has quit [Quit: ghostmoth]
einarj has joined #ruby
maroloccio has joined #ruby
ghr has joined #ruby
Pumukel has quit [Quit: ChatZilla 0.9.90.1 [Firefox 31.0/20140715214327]]
phoo1234567 has quit [Quit: Leaving]
echooo has joined #ruby
taybin has joined #ruby
einarj has quit [Ping timeout: 240 seconds]
taybin has quit [Client Quit]
toastynerd has quit [Remote host closed the connection]
sdwrage has quit [Quit: This computer has gone to sleep]
Grantlyk_ has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 246 seconds]
kenndel has quit [Read error: Connection reset by peer]
amacou has joined #ruby
jottr has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
preller has quit [Ping timeout: 272 seconds]
hanikazmi has joined #ruby
hanikazmi_ has quit [Quit: No Ping reply in 180 seconds.]
xfz has quit [Ping timeout: 255 seconds]
aspires has joined #ruby
sdwrage has joined #ruby
geardev has joined #ruby
xfz has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
amacou has quit [Ping timeout: 255 seconds]
jaimef has quit [Excess Flood]
hanikazmi has quit [Ping timeout: 260 seconds]
emmesswhy has joined #ruby
aspires has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
fauzanqadri has joined #ruby
momomomomo has quit [Quit: momomomomo]
preller has joined #ruby
geardev has quit [Quit: leaving]
hanikazmi has joined #ruby
zarul has quit [Ping timeout: 245 seconds]
InfraRuby has left #ruby [#ruby]
philcrissman has joined #ruby
<postmodern> why isn't there something like $DATA_PATH?
oo_ has joined #ruby
ssvo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benzrf is now known as benzrf|offline
centrx has joined #ruby
<wallerdev> for what
anaeem1 has quit [Remote host closed the connection]
jaimef has joined #ruby
Bumptious has joined #ruby
philcrissman has quit [Ping timeout: 246 seconds]
m_3 has joined #ruby
<postmodern> wallerdev, looking up man pages shipped with gems
InfraRuby has joined #ruby
<wallerdev> oh i didnt realize gems ever included manpages
<postmodern> wallerdev, gems such as bundler do, but they just do File.expand_path('../../../man',__FILE__)
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
<postmodern> wallerdev, it gets trickier when you have a gem that provides a CLI that other gems can execute
kireevco has joined #ruby
PanPan has joined #ruby
<shevy> we need to overthrow python
nilobject has joined #ruby
nhmood has quit [Quit: Page closed]
<postmodern> shevy, we still haven't overthrown perl yet, not looking too good
<shevy> hmm are you sure?
<eam> pretty sure
<wallerdev> tbh js is the future
<shevy> damn
<postmodern> majority of system code depends on perl
<wallerdev> need to worry about that more than python
<shevy> tiobe confirms that you are right
<wallerdev> python is dead because of python 3, ruby is dead because DHH isnt cool anymore, js is the future
<hoelzro> why worry about "overthrowing" anyone?
<shevy> because more people use python
<hoelzro> so?
<shevy> that creates a huge problem
kireevco1 has joined #ruby
kireevco has quit [Read error: Connection reset by peer]
<hoelzro> how so?
<wallerdev> ruby is so big we have two channels for the same purpose
<shevy> more influx of programmers
<wallerdev> ;)
<shevy> more resources available to do GUI toolkits
<eam> is there a puzzle bobble game in ruby yet, like frozen bubble?
<shevy> frozen bubble is in perl
<wallerdev> gui toolkits need to die
<eam> that's my point
<postmodern> eam, actually there is
m_3 has quit [Remote host closed the connection]
<postmodern> eam, well it embeds ruby
<wallerdev> just do your UI on the actual platform you're creating it for, instead of these cross platform apps that look like crap on my mac
<shevy> wallerdev at work we use a fltk toolbinding written in python :(
<shevy> for electron microscopy datasets (2D and 3D reconstruction of small particles)
<shevy> it is actually c++ and python
<wallerdev> python has the stranglehold on science programming
<shevy> frozen bubble is cute
zarul has joined #ruby
<shevy> wallerdev and toolkits!!!
<wallerdev> no one likes toolkits for real applications
Photism has quit [Quit: Leaving]
<eam> if you want ruby to make inroads into systems stuff, produce good Expect bindings
<wallerdev> no one wants to use an application designed for every OS aka designed for no OS
<shevy> Officially supported: C++, C#, Java, Python, Javascript, Vala, Perl
<shevy> bastards do not support ruby :<
mattp_ has quit [Read error: Connection reset by peer]
<wallerdev> i get so frustrated by apps that arent native, because they reimplement existing things and try to make them look right but theyre always missing features or slow or just annoying in general
<shevy> wallerdev you are right, even javascript is supported
<shevy> you wanna leave commandline?
<shevy> or not
<shevy> :D
benzrf|offline is now known as benzrf
<shevy> eam I don't know why but games in ruby seem damn hard
davedev2_ has quit []
davedev24_ has joined #ruby
maroloccio has quit [Quit: WeeChat 0.4.3]
<eam> it's because it's incredibly slow and you can't manage memory properly
<shevy> hmmm
<eam> perl/python have reference counting so you can actually do what you need to
<shevy> perhaps it is time to switch to python
<eam> perl is better
<shevy> eh
<shevy> we have ruby
bricker`work has quit [Ping timeout: 260 seconds]
<peret> you know what i like the best about perl?
<peret> Nothing, perl sucks.
<shevy> that the code looks like snoopy swearing?
<shevy> it is just cryptic
wjimenez5271 has joined #ruby
toordog_ has joined #ruby
<eam> let's be honest, it's a lot less cryptic than ruby
<shevy> the $ alone
<shevy> why can't I do:
<eam> ruby has the same $
<shevy> foo = 'hey'
bMalum__ has joined #ruby
<shevy> my $foo = 'hey';
<eam> shevy: you can, but that's modifying a constant
<eam> ruby uses sigels as hungarian notation for class/scope, perl uses them to denote the three primary types scalar/hash/array
<eam> not really a high ground here
toordog has quit [Ping timeout: 245 seconds]
<eam> they both even use mostly the same symbols
<eam> as variable prefixes
<shevy> ruby indeed has a dark past
m_3 has joined #ruby
<eam> shevy: and future, look at ->
<eam> talk about cryptic
<shevy> I think the -> was just a decoy
<shevy> to insinuate innovation
dbasch has quit [Quit: dbasch]
<eam> >> ?: +% % % ->{}
<eval-in> eam => ":%" (https://eval.in/178742)
tokik has joined #ruby
<shevy> what is this shit
bMalum__ has quit [Ping timeout: 260 seconds]
<shevy> syntax rape
jshultz has quit [Quit: Connection closed for inactivity]
avalarion has joined #ruby
mattp_ has joined #ruby
vsoftoiletpaper has quit []
diegoviola has joined #ruby
Sonny|3oy has quit [Quit: Leaving]
<eam> I'm working on an art installation of ruby which both is and evaluates to emoji
icole has quit [Ping timeout: 272 seconds]
bradleyp_ has quit [Remote host closed the connection]
bradleyprice has joined #ruby
robustus has quit [Ping timeout: 250 seconds]
<shevy> man
<eam> it's going to be big, see you at MOMA
fauzanqadri has quit [Remote host closed the connection]
endash has quit [Quit: endash]
szuletett has quit [Ping timeout: 244 seconds]
ValicekB has quit [Ping timeout: 250 seconds]
robustus has joined #ruby
Photism has joined #ruby
deric_skibotn has quit [Ping timeout: 250 seconds]
bradleyprice has quit [Ping timeout: 244 seconds]
nfk has quit [Quit: yawn]
niklasb has quit [Ping timeout: 260 seconds]
superscott[8] has quit []
wallerdev has quit [Quit: wallerdev]
jsodini has quit [Quit: Leaving...]
tjr9898 has quit [Remote host closed the connection]
Jameser has joined #ruby
kireevco has joined #ruby
kireevco1 has quit [Read error: Connection reset by peer]
jmbrown412 has joined #ruby
easier has quit [Ping timeout: 246 seconds]
vt102 has quit [Remote host closed the connection]
<eam> >> %\ (O_o) /%\
<eval-in> eam => " (O_o) /%" (https://eval.in/178746)
heftig has quit [Ping timeout: 272 seconds]
sethen has quit [Read error: Connection reset by peer]
doodlehaus has quit [Remote host closed the connection]
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sethen has joined #ruby
dorei has quit []
crazysim has quit [Ping timeout: 250 seconds]
adambeynon has quit [Read error: Connection reset by peer]
ballPointPenguin has quit [Read error: Connection reset by peer]
bradleyprice has joined #ruby
ValicekB has joined #ruby
quarcu has quit [Ping timeout: 250 seconds]
ballPointPenguin has joined #ruby
adambeynon has joined #ruby
ahuman has quit [Quit: No Ping reply in 180 seconds.]
theharshest has quit [Quit: This computer has gone to sleep]
jmbrown412 has quit [Remote host closed the connection]
micah`_ has quit [Ping timeout: 250 seconds]
ahuman has joined #ruby
yetanotherdave has quit [Ping timeout: 260 seconds]
heftig has joined #ruby
alex-i has quit [Ping timeout: 250 seconds]
ghr has joined #ruby
quarcu has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
crazysim has joined #ruby
micah` has joined #ruby
alex-i has joined #ruby
danijoo has joined #ruby
Leehro has joined #ruby
rezzack has quit [Ping timeout: 260 seconds]
nat2610 has quit [Quit: Leaving.]
mccollek has joined #ruby
ghr has quit [Ping timeout: 250 seconds]
MartinCleaver has quit [Quit: MartinCleaver]
autonomousdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
autonomousdev has joined #ruby
tvw has quit [Ping timeout: 260 seconds]
kireevco1 has joined #ruby
kireevco1 has quit [Max SendQ exceeded]
kireevco has quit [Ping timeout: 245 seconds]
kireevco has joined #ruby
drusepth has quit [Ping timeout: 255 seconds]
kireevco1 has joined #ruby
kireevco1 has quit [Max SendQ exceeded]
kireevco1 has joined #ruby
sethen has quit [Read error: Connection reset by peer]
jaimef has quit [Excess Flood]
troyready has quit [Ping timeout: 240 seconds]
kireevco has quit [Ping timeout: 255 seconds]
kireevco1 has quit [Read error: Connection reset by peer]
jaimef has joined #ruby
i8igmac has quit [Remote host closed the connection]
<eam> ok so, LDFLAGS='-Wl,-rpath=\$$ORIGIN/../lib' ./configure && make -> readelf -d ruby|grep RPATH looks fine
Avahey_ has joined #ruby
fauzanqadri has joined #ruby
Shidash has joined #ruby
Takle has joined #ruby
<eam> however, every shared object under ext/ has a busted rpath entry due to makefile escaping problems
<eam> Library rpath: [$ORIGIN/../lib] vs Library rpath: [\/../lib]
jobewan has joined #ruby
skysploit has quit [Remote host closed the connection]
omosoj has joined #ruby
szuletett has joined #ruby
<eam> the mix of shell, make and ruby is insanity-proviking
zerosNones has joined #ruby
cobakobodob has quit [Ping timeout: 260 seconds]
davispuh has quit [Ping timeout: 245 seconds]
amacou has joined #ruby
drusepth has joined #ruby
wjimenez_ has joined #ruby
TheNet has quit [Quit: Leaving...]
Takle has quit [Ping timeout: 255 seconds]
wjimenez5271 has quit [Ping timeout: 255 seconds]
jgrevich has quit [Ping timeout: 272 seconds]
amacou has quit [Ping timeout: 240 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wjimenez5271 has joined #ruby
klaut has quit [Remote host closed the connection]
OffTheRails has quit [Ping timeout: 244 seconds]
klaut has joined #ruby
<benzrf> shevy
<benzrf> shevy
<benzrf> do you
<benzrf> have to make rape jokes
fauzanqadri has quit [Remote host closed the connection]
omosoj has quit [Ping timeout: 240 seconds]
fauzanqadri has joined #ruby
ponch_ has quit [Ping timeout: 246 seconds]
wjimenez_ has quit [Ping timeout: 260 seconds]
nat2610 has joined #ruby
flowerhack has joined #ruby
icebourg has joined #ruby
icebourg has quit [Max SendQ exceeded]
icebourg has joined #ruby
nat26101 has joined #ruby
aspires has joined #ruby
klaut has quit [Ping timeout: 245 seconds]
bMalum__ has joined #ruby
fauzanqadri has quit [Ping timeout: 240 seconds]
terrellt has quit [Ping timeout: 250 seconds]
starless has quit [Quit: Leaving]
GriffinHeart has joined #ruby
nat2610 has quit [Ping timeout: 260 seconds]
endash has joined #ruby
peck__ has quit [Ping timeout: 250 seconds]
newUser1234 has joined #ruby
amacou has joined #ruby
bMalum__ has quit [Ping timeout: 240 seconds]
autonomousdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
saarinen has joined #ruby
aspires has quit []
omosoj has joined #ruby
amacou has quit [Ping timeout: 255 seconds]
endash has quit [Quit: endash]
threesixes has quit [Remote host closed the connection]
iamjarvo has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
BlaDe^ has joined #ruby
<BlaDe^> hi all
lw has joined #ruby
nat2610 has joined #ruby
hamakn has joined #ruby
InfraRuby has left #ruby [#ruby]
hamakn has quit [Read error: Connection reset by peer]
hamakn_ has joined #ruby
PanPan has quit [Read error: Connection reset by peer]
nat26101 has quit [Ping timeout: 272 seconds]
Akagi201 has joined #ruby
PanPan has joined #ruby
PanPan has quit [Client Quit]
PanPan has joined #ruby
jaimef has quit [Excess Flood]
<BlaDe^> can someone check this out for me? http://pastie.org/pastes/9468697/text?key=klqngpnexne5xvplrq5obg
InfraRuby has joined #ruby
dopiee has joined #ruby
BraddPitt has joined #ruby
jaimef has joined #ruby
dopie has quit [Ping timeout: 255 seconds]
nat26101 has joined #ruby
einarj has joined #ruby
saarinen has quit [Ping timeout: 240 seconds]
lw has quit [Quit: s]
jmbrown412 has joined #ruby
nat2610 has quit [Ping timeout: 260 seconds]
ghr has joined #ruby
saarinen has joined #ruby
nat26101 has quit [Client Quit]
hfp_ has joined #ruby
chipotle has joined #ruby
hfp- has joined #ruby
Leehro has quit [Quit: zzz]
hfp has quit [Ping timeout: 240 seconds]
nilobject has quit [Quit: nilobject]
nat2610 has joined #ruby
hfp has joined #ruby
einarj has quit [Ping timeout: 245 seconds]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jmbrown412 has quit [Ping timeout: 260 seconds]
saarinen has quit [Ping timeout: 240 seconds]
ghr has quit [Ping timeout: 240 seconds]
hfp_ has quit [Ping timeout: 240 seconds]
GriffinHeart has quit [Remote host closed the connection]
hfp_ has joined #ruby
Lucky___ has quit [Ping timeout: 244 seconds]
hfp| has joined #ruby
hfp- has quit [Ping timeout: 250 seconds]
philcrissman has joined #ruby
tylerkern has joined #ruby
hfp- has joined #ruby
Nilium has quit [Ping timeout: 255 seconds]
hfp has quit [Ping timeout: 272 seconds]
thomasxie has joined #ruby
hfp^ has joined #ruby
hfp_ has quit [Ping timeout: 264 seconds]
mattmcclure has quit [Quit: Connection closed for inactivity]
alexju has joined #ruby
hfp| has quit [Ping timeout: 240 seconds]
aspires has joined #ruby
philcrissman has quit [Ping timeout: 260 seconds]
dyreshark has quit [Quit: I just dont know what went wrong!]
hfp- has quit [Ping timeout: 246 seconds]
iamjarvo has quit [Ping timeout: 240 seconds]
GriffinHeart has joined #ruby
iamjarvo has joined #ruby
sevenseacat has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
dyreshark has joined #ruby
felgenh3 has joined #ruby
lw has joined #ruby
baweaver has joined #ruby
felgenh3 has left #ruby [#ruby]
alvaro_o has quit [Quit: Ex-Chat]
lw has quit [Client Quit]
axsuul has quit [Ping timeout: 245 seconds]
braincrash has quit [Quit: bye bye]
centrx has quit [Quit: Mead error: Connection reset by beer]
niklasb has joined #ruby
jackjackdrpr has quit [Ping timeout: 264 seconds]
threesixes has joined #ruby
w09x has joined #ruby
bradleyprice has quit [Remote host closed the connection]
phinfonet has quit []
bradleyprice has joined #ruby
michaeldeol has joined #ruby
Sauvin has joined #ruby
drjfreez1 has quit [Ping timeout: 255 seconds]
braincrash has joined #ruby
drjfreeze has joined #ruby
_maes_ has joined #ruby
yetanotherdave has joined #ruby
bradleyprice has quit [Ping timeout: 255 seconds]
w09x_ has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chrishough has quit [Quit: chrishough]
w09x has quit [Ping timeout: 240 seconds]
w09x has joined #ruby
newUser1234 has quit [Read error: Connection reset by peer]
newUser1234 has joined #ruby
w09x_ has quit [Ping timeout: 272 seconds]
Matadoer has quit [Remote host closed the connection]
bMalum__ has joined #ruby
bMalum__ has quit [Ping timeout: 246 seconds]
ponch_ has joined #ruby
Bira has quit [Remote host closed the connection]
_0xf has joined #ruby
<_0xf> Anybody else having RES increase more the longer Ruby is running in 2.1.2?
w09x has quit []
ponch_ has quit [Ping timeout: 250 seconds]
GriffinHeart has quit [Remote host closed the connection]
jaimef has quit [Excess Flood]
jzigmund has quit [Ping timeout: 250 seconds]
GriffinHeart has joined #ruby
_0xf is now known as _0xf_
<iamjarvo> what would be the best way to grab the first and last element of an array and throw away the middle using destructuring name = "first middle last"; first_name, last_name = name.split throw away middle
InfraRuby has left #ruby [#ruby]
InfraRuby has joined #ruby
<benzrf> iamjarvo: how about
<benzrf> >> fst, *_, lst = [1, 2, 3, 4, 5]
<eval-in> benzrf => [1, 2, 3, 4, 5] (https://eval.in/178770)
<benzrf> >> fst, *_, lst = [1, 2, 3, 4, 5]; [fst, lst]
<eval-in> benzrf => [1, 5] (https://eval.in/178771)
<iamjarvo> hrm i didnt know you could slurp the middle
jaimef has joined #ruby
<benzrf> y not
<benzrf> its not like ruby cares about politeness
<iamjarvo> benzrf i thought i tried it
<iamjarvo> haha maybe i started and gave up
<iamjarvo> or did it wrong
<iamjarvo> thanks
ecksit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
godd2 has joined #ruby
graft_ has joined #ruby
graft_ has quit [Changing host]
graft_ has joined #ruby
<godd2> I know I can capture system output with output = `ls`, and ls returns a string, but some system calls don't return a string yet do produce output, like `aplay`. How do I capture that output if it doesn't return a string like ls does?
chipotle has quit [Quit: cya]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
michaeldeol has quit [Quit: Textual IRC Client: www.textualapp.com]
<pontiki> you can capture anything send to stderr and stdout
icebourg has quit []
oo_ has quit [Remote host closed the connection]
Matadoer has joined #ruby
<pontiki> what is aplay?
oo_ has joined #ruby
newUser1234 has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby
<godd2> it's a cli for ALSA
<godd2> so I can see what sound devices are present
<godd2> If there aren't any sound devices, I want to know ahead of time so that I can tell the user
<godd2> before I try to open a device that doesnt exist
newUser1234 has joined #ruby
<godd2> in irb if I do `aplay -l` it will print "aplay: device_list:252: no soundcards found..." but the return value is =>""
<pontiki> it's probably being sent to stderr then instead of stdout
<godd2> hmm. How do I have a system call return from stderr?
michaeldeol has quit [Client Quit]
<pontiki> you'll want to look at the open3 stdlib
<pontiki> or you could simply do `aplay -l 2>&1` to get stdout and stderr merged
oo_ has quit [Ping timeout: 246 seconds]
<godd2> perrrrfect
<godd2> That did it, thanks!
InfraRuby has left #ruby [#ruby]
icebourg has joined #ruby
ghr has joined #ruby
alexju has quit [Remote host closed the connection]
sdwrage has quit [Quit: This computer has gone to sleep]
alexju has joined #ruby
alexju has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby
sdwrage has joined #ruby
ari-_-e has quit [Ping timeout: 255 seconds]
ghr has quit [Ping timeout: 272 seconds]
szuletett has quit [Ping timeout: 245 seconds]
bradleyprice has joined #ruby
tylerkern has quit [Read error: Connection reset by peer]
tylerker_ has joined #ruby
Bira has joined #ruby
_justin has joined #ruby
Aranshada|W has joined #ruby
InfraRuby has joined #ruby
barhum2013 has joined #ruby
abuzze has joined #ruby
<barhum2013> Hello all, I am posting to an API with net/http but my parameters get all messed up and they are separated by a “ \ ”. How can I keep the integrity of my params once posted?
InfraRuby has left #ruby [#ruby]
szuletett has joined #ruby
abuzze_ has quit [Ping timeout: 260 seconds]
frankle has quit [Quit: Connection closed for inactivity]
Bira has quit [Ping timeout: 250 seconds]
ari-_-e has joined #ruby
whyy has joined #ruby
endash has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
toastynerd has joined #ruby
mccollek has quit [Quit: Leaving]
djr has joined #ruby
yacks has quit [Ping timeout: 250 seconds]
wjimenez5271 has quit [Remote host closed the connection]
yacks has joined #ruby
koderok has joined #ruby
wjimenez_ has joined #ruby
tylerker_ has quit [Read error: Connection reset by peer]
nat2610 has quit [Quit: Leaving.]
tylerkern has joined #ruby
ari-_-e has quit [Ping timeout: 245 seconds]
InfraRuby has joined #ruby
szuletett has quit [Ping timeout: 255 seconds]
baweaver has quit [Ping timeout: 246 seconds]
GriffinHeart has quit [Remote host closed the connection]
szuletett has joined #ruby
bMalum__ has joined #ruby
zerosNones has quit [Ping timeout: 260 seconds]
lxsameer has joined #ruby
toastynerd has quit [Remote host closed the connection]
narcan has joined #ruby
kuzushi has joined #ruby
newUser1234 has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
newUser1234 has joined #ruby
ItSANgo has quit [Quit: Leaving...]
djr has left #ruby [#ruby]
benzrf is now known as benzrf|offline
benzrf|offline is now known as benzrf
newUser1234 has quit [Remote host closed the connection]
bMalum__ has quit [Read error: Connection reset by peer]
ponch_ has joined #ruby
oo_ has joined #ruby
InfraRuby has left #ruby [#ruby]
bMalum__ has joined #ruby
ari-_-e has joined #ruby
phoo1234567 has joined #ruby
phoo1234567 has quit [Max SendQ exceeded]
phoo1234567 has joined #ruby
oo_ has quit [Ping timeout: 260 seconds]
_justin has quit [Quit: _justin]
linux_ has joined #ruby
Mattx has quit [Read error: Connection reset by peer]
Matip has joined #ruby
Matip has quit [Changing host]
Matip has joined #ruby
philcrissman has joined #ruby
DEA7TH has quit [Ping timeout: 240 seconds]
ta has quit [Remote host closed the connection]
flowerhack has quit [Remote host closed the connection]
AlexRussia has quit [Ping timeout: 244 seconds]
philcrissman has quit [Ping timeout: 260 seconds]
einarj has joined #ruby
ghr has joined #ruby
einarj has quit [Ping timeout: 260 seconds]
Hobogrammer has joined #ruby
ghr has quit [Ping timeout: 255 seconds]
poguez_ has joined #ruby
fauzanqadri has joined #ruby
JoshGlzBrk has joined #ruby
ValicekB has quit [Ping timeout: 250 seconds]
nat2610 has joined #ruby
baweaver has joined #ruby
mr_snowf1ake has quit [Quit: Leaving]
Spami has joined #ruby
jaimef has quit [Excess Flood]
Bira has joined #ruby
baweaver has quit [Client Quit]
kenneth has joined #ruby
oo_ has joined #ruby
jaimef has joined #ruby
InhalingPixels has quit [Remote host closed the connection]
EvanR_ has quit [Read error: Connection reset by peer]
EvanR_ has joined #ruby
j75 has joined #ruby
InhalingPixels has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Bira has quit [Ping timeout: 264 seconds]
ValicekB has joined #ruby
ari-_-e has quit [Ping timeout: 260 seconds]
michael_lee has joined #ruby
InhalingPixels has quit [Ping timeout: 260 seconds]
gondalier has joined #ruby
Photism has quit [Ping timeout: 255 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
icebourg has quit []
ssvo has joined #ruby
flowerhack has joined #ruby
tiriel has joined #ruby
AlexRussia has joined #ruby
andrewstewart_ is now known as andrewstewart
<tiriel> Hi!
<tiriel> Is this a good place for a question about rails + postgresql or is there a better channel?
<tiriel> better as in more appropriate for the question, of course :)
tobago has joined #ruby
endash has quit [Quit: endash]
sevenseacat has quit [Ping timeout: 250 seconds]
ponch_ has quit [Ping timeout: 255 seconds]
sevenseacat has joined #ruby
InfraRuby has joined #ruby
ValicekB has quit [Ping timeout: 240 seconds]
<pontiki> tiriel: #rubyonrails is the official channel
Cache_Money has joined #ruby
<tiriel> pontiki: thanks
timonv_ has joined #ruby
advorak has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
<dopiee> hey all
<dopiee> modules cannot be a subclass of a class correct?
aspires has quit []
<pontiki> err, what?
<dopiee> i cant do
<dopiee> module Hand < Deck
<pontiki> oh, no, i don't think so
<dopiee> just tried it and it didnt work
<pontiki> modules don't have inheritence
davedev2_ has joined #ruby
tobago has quit [Quit: Leaving]
davedev24_ has quit [Read error: Connection reset by peer]
GriffinHeart has quit [Ping timeout: 255 seconds]
mercwithamouth has joined #ruby
kyb3r_ has joined #ruby
dawkirst has joined #ruby
flowerhack has quit [Remote host closed the connection]
koderok has quit [Quit: koderok]
bMalum__ has quit [Quit: Computer has gone to sleep.]
relix has joined #ruby
bMalum__ has joined #ruby
Xeago has joined #ruby
flowerhack has joined #ruby
<diegoviola> some company just asked me to do this "work" as a "test": https://dl.dropboxusercontent.com/u/6005119/clearhaus/ApplicationAssignment.pdf
jdj_dk has quit [Remote host closed the connection]
<diegoviola> this feels like actual work and it's rather annoying...
<diegoviola> doesn't look very hard tho
Matadoer has quit [Ping timeout: 272 seconds]
ptrrr has joined #ruby
<pontiki> no, that wouldn't be real work, just a proof of understanding
bMalum__ has quit [Ping timeout: 245 seconds]
Matadoer has joined #ruby
<diegoviola> hrm ok
cobakobodob has joined #ruby
j75 has quit [Ping timeout: 246 seconds]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
Cache_Money has quit [Ping timeout: 255 seconds]
starkhalo has quit [Ping timeout: 255 seconds]
toastynerd has joined #ruby
Azure has quit [Ping timeout: 250 seconds]
Xeago has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
dawkirst has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
toastynerd has joined #ruby
szuletett has quit [Ping timeout: 245 seconds]
omosoj has quit [Ping timeout: 272 seconds]
crus has joined #ruby
oo_ has quit [Remote host closed the connection]
iliketurtles has joined #ruby
toastynerd has quit [Remote host closed the connection]
oo_ has joined #ruby
koderok has joined #ruby
einarj has joined #ruby
Cache_Money has joined #ruby
sigurding has joined #ruby
Dreamer3 has quit [Ping timeout: 255 seconds]
oo_ has quit [Read error: Connection reset by peer]
oo__ has joined #ruby
ghr has joined #ruby
Azure has joined #ruby
fauzanqadri has quit []
Matip has quit [Quit: Leaving]
vinleod has joined #ruby
threesixes has quit [Ping timeout: 272 seconds]
einarj has quit [Ping timeout: 244 seconds]
ghr has quit [Ping timeout: 245 seconds]
benzrf is now known as benzrf|offline
lkba has quit [Ping timeout: 272 seconds]
relix_ has joined #ruby
relix has quit [Ping timeout: 244 seconds]
Spami has quit [Quit: This computer has gone to sleep]
tagrudev has joined #ruby
Atabar has joined #ruby
Schmidt has quit [Ping timeout: 250 seconds]
<Atabar> I remember when people didn't just idle in irc
<sevenseacat> those were the days.
<Atabar> Indeed
timonv_ has quit [Remote host closed the connection]
Bira has joined #ruby
wallerdev has joined #ruby
Schmidt has joined #ruby
Xeago has joined #ruby
phoo1234567 has quit [Quit: Leaving]
Xeago has quit [Remote host closed the connection]
linux_ has quit [Quit: Leaving]
Xeago has joined #ruby
crus has quit [Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com )]
<gr33n7007h> my friend, I'd wish they never end.......
Atabar has quit [Ping timeout: 246 seconds]
iliketurtles has quit [Quit: zzzzz…..]
Bira has quit [Ping timeout: 255 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
endash has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
bal has joined #ruby
MOOTIE__ has quit [Quit: Leaving]
endash has quit [Client Quit]
ssvo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Aranshada|W has quit [Read error: Connection reset by peer]
whyy has quit [Remote host closed the connection]
Aranshada|W has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
AlexRussia has quit [Ping timeout: 272 seconds]
Matadoer has quit [Remote host closed the connection]
iteratorP has quit [Remote host closed the connection]
Macaveli has joined #ruby
diegoviola has quit [Read error: Connection reset by peer]
iteratorP has joined #ruby
whyy has joined #ruby
<Macaveli> Goodmorning
tectonic has joined #ruby
ari-_-e has joined #ruby
ponch_ has joined #ruby
sigurding has quit [Ping timeout: 245 seconds]
havenwood has joined #ruby
Avahey_ has quit [Quit: Connection closed for inactivity]
riotjones has joined #ruby
riotjones has quit [Remote host closed the connection]
amclain has quit [Quit: Leaving]
whyy has quit [Remote host closed the connection]
philcrissman has joined #ruby
dawkirst has joined #ruby
ponch_ has quit [Ping timeout: 240 seconds]
kiri has joined #ruby
wjimenez_ has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
InfraRuby has left #ruby [#ruby]
Aguynamedsteve has joined #ruby
riotjones has joined #ruby
yfeldblu_ has joined #ruby
doev has joined #ruby
InhalingPixels has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
GriffinHeart has quit [Remote host closed the connection]
philcrissman has quit [Ping timeout: 246 seconds]
bigkevmcd has joined #ruby
anaeem1 has joined #ruby
kiri has quit [Ping timeout: 244 seconds]
Aranshada|W has quit [Ping timeout: 240 seconds]
shredding has joined #ruby
Morkel has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
yfeldblu_ has quit [Ping timeout: 260 seconds]
InhalingPixels has quit [Ping timeout: 272 seconds]
diegoviola has joined #ruby
kaspertidemann has joined #ruby
amacou has joined #ruby
gaussblurinc1 has joined #ruby
thomasxie has left #ruby [#ruby]
ptrrr has quit [Quit: ptrrr]
Kricir has joined #ruby
craigbowen3 has quit [Ping timeout: 240 seconds]
whyy has joined #ruby
ptrrr has joined #ruby
einarj has joined #ruby
threesixes has joined #ruby
ghr has joined #ruby
MatthewsFace has joined #ruby
juz88 has quit [Ping timeout: 240 seconds]
relix_ has quit [Quit: Textual IRC Client: www.textualapp.com]
einarj has quit [Ping timeout: 245 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
rrva has quit [Quit: leaving]
niklasb has quit [Ping timeout: 244 seconds]
ghr has quit [Ping timeout: 240 seconds]
IceDragon has quit [Quit: Space~~~]
relix has joined #ruby
gauke has joined #ruby
_justin has joined #ruby
razum2um has joined #ruby
noop has joined #ruby
tobago has joined #ruby
yetanotherdave has quit [Ping timeout: 260 seconds]
tvw has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
bayed has joined #ruby
jprovazn has joined #ruby
agjacome has quit [Quit: leaving]
krz has joined #ruby
agjacome has joined #ruby
ta has joined #ruby
<dopiee> what ami doing wring
<dopiee> p Hand.cards_in_hand
<dopiee> shows 3 sets of cards
<dopiee> for dealer and he only drew twice
<dopiee> am including the module wrong?
<sevenseacat> the human also drew one
<dopiee> correct
agjacome has quit [Client Quit]
<sevenseacat> so thats three cards in the hand
<dopiee> but dont they each have their own hand?
<sevenseacat> no
tiriel has quit [Ping timeout: 246 seconds]
<dopiee> hmmmm
<dopiee> why not?
<dopiee> oh wait
<sevenseacat> you're including the same module with the same instance variable in two places
<dopiee> ok
<dopiee> i think i got the fix than
whyy has quit [Remote host closed the connection]
RealMarc is now known as Marc
razum2um has quit [Quit: Leaving.]
<sevenseacat> there are so many bizarre things in that code
<dopiee> hold on
<dopiee> :)
Marc is now known as Guest84585
maroloccio has joined #ruby
kuzushi has quit [Ping timeout: 250 seconds]
atmosx has joined #ruby
agjacome has joined #ruby
txdv has quit [Ping timeout: 245 seconds]
Jackneill has joined #ruby
GriffinHeart has joined #ruby
Kricir has quit [Remote host closed the connection]
nat2610 has quit [Quit: Leaving.]
nat2610 has joined #ruby
Photism has joined #ruby
Kricir has joined #ruby
alex88 has joined #ruby
<dopiee> ok
<dopiee> im still stuck
<dopiee> but i created 2 new instance variables
<wasamasa> bj.rb
<dopiee> your_hand and dealer_and
<dopiee> hand
<dopiee> def self.draw_card
<dopiee> Hand.your_hand << card
<dopiee> card = @deck.sample
<dopiee> end
iliketurtles has joined #ruby
<dopiee> i try to add a parameter there so i can have your_hand == dealer_hand
<dopiee> but it gives me an error
toastynerd has joined #ruby
agjacome has quit [Quit: Lost terminal]
agjacome has joined #ruby
<sevenseacat> please, for the love of god, what are you doing
<dopiee> what?
<dopiee> II have 3 modules
<dopiee> I have
<dopiee> hand cards deck
<dopiee> deck includes cards
<sevenseacat> and none of those should be modules
<dopiee> why not?
<sevenseacat> you're writing really contrived and ugly code for the sake of playing with modules
<DefV> and it makes no sense to have these in modules
<DefV> Deck should be a class
<DefV> Hand should be a class
yetanotherdave has joined #ruby
<dopiee> hand should be class but both dealer and player have a hand
<sevenseacat> Cards should just be part of Deck
carraroj has joined #ruby
amacou has quit [Remote host closed the connection]
whyy has joined #ruby
<sevenseacat> or a standalone Card class
razum2um has joined #ruby
<DefV> I'd go with standalone Card class
<DefV> so you can do
<DefV> @cards.inject(0) {|total, card| total + card.score }
shredding has quit [Quit: shredding]
<dopiee> A module is a collection of behaviors that is useable in other classes via mixins
<sevenseacat> and thats not what you have
<sevenseacat> you're using modules to represent concrete instances of things
<sevenseacat> which is what a class is for
tectonic has quit []
ari-_-e has quit [Ping timeout: 245 seconds]
<sevenseacat> *instances of a class
<dopiee> ok
nat2610 has quit [Quit: Leaving.]
<sevenseacat> you also have exactly zero behaviour defined, outside of draw_card, but anyway
craigp has joined #ruby
Atttwww has quit []
<dopiee> okie!!
<dopiee> :)
<dopiee> sevenseacat, DefV thanks for the help
<dopiee> got a little carried away with using modules for the wrong reasons
<dopiee> :)
yetanotherdave has quit [Ping timeout: 246 seconds]
<sevenseacat> yes, you did, but thats okay :) when you have a new hammer,everything looks like a nail
txdv has joined #ruby
yfeldblum has joined #ruby
echooo1 has joined #ruby
<atmosx> word
<atmosx> lol
dopieee has joined #ruby
echooo has quit [Ping timeout: 245 seconds]
meinside_ has joined #ruby
meinside has quit [Ping timeout: 246 seconds]
daxroc_ has quit [Ping timeout: 246 seconds]
meinside_ is now known as meinside
sk87 has joined #ruby
krisquigley has joined #ruby
mijicd has joined #ruby
daxroc_ has joined #ruby
oo__ has quit [Remote host closed the connection]
whyy has quit [Remote host closed the connection]
oo_ has joined #ruby
dopiee has quit [Ping timeout: 255 seconds]
MatthewsFace has quit [Remote host closed the connection]
OrkzRule has joined #ruby
<dopieee> welp
<dopieee> back to squre 1
<dopieee> square 1
<dopieee> sevenseacat, at least give me a little credit :)
<sevenseacat> i do, you're trying
lkba has joined #ruby
sigurding has joined #ruby
shredding has joined #ruby
theRoUS has quit [Quit: Coyote finally caught me]
banister has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
coderhut has joined #ruby
coderhut has quit [Client Quit]
coderhut has joined #ruby
radic has quit [Ping timeout: 240 seconds]
shredding has quit [Quit: shredding]
threesixes has quit [Quit: SATAN!!!!!!!!]
axsuul has joined #ruby
shredding has joined #ruby
toordog_ has quit [Ping timeout: 250 seconds]
radic has joined #ruby
Kricir has quit [Remote host closed the connection]
chth0n has joined #ruby
Xeago_ has joined #ruby
_justin has quit [Ping timeout: 260 seconds]
elaptics`away is now known as elaptics
_justin has joined #ruby
jhass|off is now known as jhass
Xeago has quit [Ping timeout: 244 seconds]
dawkirst has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
Xeago_ has quit [Remote host closed the connection]
Xeago has joined #ruby
Bira has joined #ruby
veleno has joined #ruby
axsuul has quit [Ping timeout: 245 seconds]
kaspertidemann has quit []
ephemerian has joined #ruby
LiohAu has joined #ruby
LiohAu has joined #ruby
Bira has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Remote host closed the connection]
MatthewsFace has joined #ruby
yfeldblum has joined #ruby
realDAB has joined #ruby
anarang has joined #ruby
InfraRuby has joined #ruby
razum2um has quit [Quit: Leaving.]
ghr has joined #ruby
postmodern has quit [Quit: Leaving]
szuletett has joined #ruby
timonv_ has joined #ruby
timonv^ has joined #ruby
ptrrr has quit [Quit: ptrrr]
ephemerian has quit [Quit: Leaving.]
coderhs has joined #ruby
klaut has joined #ruby
shredding has quit [Quit: shredding]
_justin has quit [Quit: _justin]
philcrissman has joined #ruby
armyriad has quit [Ping timeout: 245 seconds]
JBreit has joined #ruby
timonv_ has quit [Ping timeout: 272 seconds]
armyriad has joined #ruby
oo_ has quit [Remote host closed the connection]
philcrissman has quit [Ping timeout: 260 seconds]
oo_ has joined #ruby
shredding has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
sigurding has quit [Quit: sigurding]
ephemerian has joined #ruby
jhass is now known as jhass|off
michael_lee has quit [Quit: Ex-Chat]
jhass|off is now known as jhass
GriffinHeart has quit [Remote host closed the connection]
yetanotherdave has joined #ruby
ponch_ has joined #ruby
maroloccio has quit [Ping timeout: 240 seconds]
wald0 has joined #ruby
_justin has joined #ruby
toastynerd has quit [Remote host closed the connection]
dumdedum has joined #ruby
virtualize has quit []
RandomShop has joined #ruby
joonty has joined #ruby
decoponio has joined #ruby
bricker`LA has quit [Ping timeout: 240 seconds]
coderhut has quit [Ping timeout: 246 seconds]
ponch_ has quit [Ping timeout: 272 seconds]
yacks has quit [Ping timeout: 250 seconds]
yetanotherdave has quit [Ping timeout: 255 seconds]
seitensei has quit [Ping timeout: 246 seconds]
cesurasean has joined #ruby
<cesurasean> how do i fix this? - http://pastebin.com/91yT4jbc
yacks has joined #ruby
terlar has quit [Quit: WeeChat 0.4.2]
poulet_a has joined #ruby
whyy has joined #ruby
<zenspider> did you look at the url it told you to look at?
<DefV> man, debugging a spec that fails when run in a certain order sucks when your whole test suite takes 10 minutes to run
<sevenseacat> they never do
<zenspider> cesurasean: ^^ that was for you
<sevenseacat> if i had a dollar for every time someone wanted help fixing that error
<zenspider> DefV: minitest, by chance?
<DefV> you'd have a few dolars
<DefV> zenspider: rspec
terlar has joined #ruby
<sevenseacat> i reckon i'd have a thousand or so
<zenspider> DefV: too bad. I have a tool specifically for that problem that I'm working on
wallerdev has quit [Quit: wallerdev]
endash has joined #ruby
endash has quit [Client Quit]
<cesurasean> yes, i did.
<zenspider> hrm. I just did a merge between my ~/.gitconfig and the one on my server
<cesurasean> i installed what it told me to, no luck.
jheg has joined #ruby
<sevenseacat> what did you install?
<zenspider> now, when I try to update homebrew on my server, I get:
<zenspider> fatal: Not a git repository (or any of the parent directories): .git
<zenspider> even if I just do `git sta` I get that message now
<zenspider> not sure wtf I messed up
<zenspider> aaaand it has nothing to do with my gitconfig... wow. wtf
andrewlio has joined #ruby
timonv^ has quit [Remote host closed the connection]
OrkzRule has quit [Read error: Connection reset by peer]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
seitensei has joined #ruby
seitensei has quit [Changing host]
seitensei has joined #ruby
<zenspider> WTF did I do?
chipotle has joined #ruby
<zenspider> oh. I also upgraded git. right... maybe I need to migrate the .git dir?
Heartbroken has joined #ruby
Xeago_ has joined #ruby
Sonny|3oy has joined #ruby
why_away has joined #ruby
Beoran_ has joined #ruby
Aguynamedsteve has quit [Quit: This computer has gone to sleep]
W0rmDr1nk has joined #ruby
Xeago has quit [Ping timeout: 245 seconds]
whyy has quit [Ping timeout: 260 seconds]
ptrrr has joined #ruby
Aaaal has joined #ruby
Beoran has quit [Ping timeout: 240 seconds]
gondalier has quit []
ari-_-e has joined #ruby
gondalier has joined #ruby
Sonny|3oy has quit [Remote host closed the connection]
cesurasean has quit [Quit: Leaving.]
lkba has quit [Ping timeout: 272 seconds]
Sonny|3oy has joined #ruby
ItSANgo has joined #ruby
gondalier has quit [Client Quit]
Arkaniad has joined #ruby
hellangel7 has joined #ruby
GriffinHeart has joined #ruby
timonv_ has joined #ruby
Soliah has quit [Quit: Soliah]
bMalum has joined #ruby
Shidash has quit [Ping timeout: 260 seconds]
dawkirst has joined #ruby
workmad3 has joined #ruby
Hobogrammer has quit [Ping timeout: 272 seconds]
apeiros has quit [Remote host closed the connection]
sevenseacat has quit [Quit: Leaving.]
Bira has joined #ruby
GriffinHeart has quit [Ping timeout: 255 seconds]
timonv^ has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
wald0 has quit [Ping timeout: 240 seconds]
wald0 has joined #ruby
AlSquire has joined #ruby
Xeago_ has quit [Remote host closed the connection]
marr has joined #ruby
Xeago has joined #ruby
decoponio has quit [Quit: Rebooting...]
dawkirst has quit [Ping timeout: 260 seconds]
asmodlol has joined #ruby
Bira has quit [Ping timeout: 272 seconds]
timonv_ has quit [Ping timeout: 272 seconds]
Boohbah has quit [Remote host closed the connection]
Boohbah has joined #ruby
atmosx has quit [Quit: Textual IRC Client: www.textualapp.com]
bMalum has quit [Ping timeout: 260 seconds]
starless has joined #ruby
txdv has quit [Ping timeout: 240 seconds]
timonv^ has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
krisquigley has quit [Remote host closed the connection]
shredding has joined #ruby
krisquigley has joined #ruby
sigurding has joined #ruby
TieSoul has joined #ruby
poulet_a has left #ruby ["Quitte"]
poulet_a has joined #ruby
max06 has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
poulet_a has quit [Client Quit]
shredding has quit [Quit: shredding]
olivier_bK has joined #ruby
poulet_a has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davispuh has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
poulet_a has quit [Client Quit]
poulet_a has joined #ruby
shredding has joined #ruby
bearish has joined #ruby
akosednar has joined #ruby
yetanotherdave has joined #ruby
InfraRuby has left #ruby [#ruby]
vinleod has quit [Read error: Connection reset by peer]
Exlee has joined #ruby
vinleod has joined #ruby
poulet_a has quit [Quit: Quitte]
poulet_a has joined #ruby
timonv_ has joined #ruby
<wasamasa> zenspider: you need to fix the issue I've handed in :P
dawkirst has joined #ruby
apeiros has joined #ruby
akoz has quit [Ping timeout: 246 seconds]
yetanotherdave has quit [Ping timeout: 240 seconds]
narcan has joined #ruby
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
iteratorP has quit [Remote host closed the connection]
iteratorP has joined #ruby
spider-mario has joined #ruby
dseitz has joined #ruby
narcan has quit [Client Quit]
jottr has joined #ruby
GriffinHeart has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anaeem1 has quit [Read error: Connection reset by peer]
anaeem1_ has joined #ruby
max06 has quit [Read error: Connection reset by peer]
<godd2> Yay, I added germ version, travis-ci, coveralls, code climate, and gemnasium badges to my gem: https://github.com/RSMP/sound
<godd2> gem* version
max06 has joined #ruby
txdv has joined #ruby
txdv is now known as 7F1AAZJG1
sigurding has quit [Quit: sigurding]
jdj_dk_ has joined #ruby
tvw has quit [Read error: Connection reset by peer]
jdj_dk_ has quit [Remote host closed the connection]
jdj_dk_ has joined #ruby
karupa is now known as zz_karupa
bMalum has joined #ruby
iteratorP has quit [Remote host closed the connection]
<Hanmac> godd2: there is also openhub where i have one of my projects https://www.openhub.net/p/sfml-ruby/widgets ... but i dont know how to integrate them nicely into the github repo ... and about the other badges i also not know if they would work with my gem ...
iteratorP has joined #ruby
echooo1 has quit [Ping timeout: 260 seconds]
bearish has quit [Remote host closed the connection]
jdj_dk_ has quit [Ping timeout: 240 seconds]
jrhe has joined #ruby
Sonny|3oy has quit [Ping timeout: 264 seconds]
sigurding has joined #ruby
Neomex has joined #ruby
peret has quit [Remote host closed the connection]
_justin has quit [Quit: _justin]
workmad3 has quit [Ping timeout: 255 seconds]
Xeago_ has joined #ruby
Sonny|3oy has joined #ruby
carraroj has quit [Ping timeout: 245 seconds]
vieq has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
bearish has joined #ruby
o0oo0o has quit [Remote host closed the connection]
magic has quit [Ping timeout: 244 seconds]
o0oo0o has joined #ruby
Xeago_ has quit [Remote host closed the connection]
skysploit has joined #ruby
ari-_-e has quit [*.net *.split]
seitensei has quit [*.net *.split]
ghr has quit [*.net *.split]
veleno has quit [*.net *.split]
kenneth has quit [*.net *.split]
towbes has quit [*.net *.split]
lazyguru has quit [*.net *.split]
wchun has quit [*.net *.split]
malcolmva has quit [*.net *.split]
seph429 has quit [*.net *.split]
franks2 has quit [*.net *.split]
<jheg> o/
Xeago has quit [Ping timeout: 260 seconds]
havenwood has quit []
poulet_a has quit [Quit: Quitte]
Bira has joined #ruby
<jheg> variable scope question guys
<jheg> is this def enough?
poulet_a has joined #ruby
magic has joined #ruby
<Hanmac> jheg: make a gist what you want
<jheg> variables declared inside a do end block are not available outside of the block
sk87 has joined #ruby
magic is now known as Guest25238
<jheg> it's more of a question regarding the rules
<jheg> rather than specific code
<apeiros> jheg: then make examples
<apeiros> and best you test-run those examples
<apeiros> and maybe most of your questions are already answered by that
<jheg> ok
shredding has quit [Quit: shredding]
skysploit has quit [Ping timeout: 260 seconds]
kuzushi has joined #ruby
m8 has joined #ruby
Bira has quit [Ping timeout: 260 seconds]
philcrissman has joined #ruby
gogohome has joined #ruby
banister has joined #ruby
dawkirst has quit [Remote host closed the connection]
realDAB has quit [Quit: realDAB]
seitensei has joined #ruby
kenneth has joined #ruby
veleno has joined #ruby
ghr has joined #ruby
towbes has joined #ruby
malcolmva has joined #ruby
wchun has joined #ruby
lazyguru has joined #ruby
seph429 has joined #ruby
franks2 has joined #ruby
_justin has joined #ruby
philcrissman has quit [Ping timeout: 255 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
kuzushi has quit [Ping timeout: 245 seconds]
elaptics is now known as elaptics`away
InfraRuby has joined #ruby
wald0 has quit [Quit: Lost terminal]
ari-_-e has joined #ruby
Grantlyk has joined #ruby
Takle has joined #ruby
sepp2k has joined #ruby
<godd2> Hanmac: awesome! I just signed up and set up the project there: https://www.openhub.net/p/RSMP
krisquigley has quit [Remote host closed the connection]
krisquigley has joined #ruby
Dreamer3 has joined #ruby
craigp has quit [Remote host closed the connection]
<Hanmac> hihi yeah ... for me most of my ruby gems are 95% C++ ;P https://www.openhub.net/p/rubywx/analyses/latest/languages_summary
<godd2> In my defense, I'm using ffi extensively to wrap native sound library calls :)
krisquigley has quit [Remote host closed the connection]
decoponio has joined #ruby
sigurding has quit [Quit: sigurding]
<Hanmac> yeah ... i had used gems that used swig before ... until i noticed that is does a shit about protecting from Segfaults ... so i did write my gems from hand myself
sfate has joined #ruby
stef_204 has joined #ruby
carraroj has joined #ruby
jle` has quit [Ping timeout: 255 seconds]
sigurding has joined #ruby
seitensei has quit [*.net *.split]
ghr has quit [*.net *.split]
veleno has quit [*.net *.split]
kenneth has quit [*.net *.split]
towbes has quit [*.net *.split]
lazyguru has quit [*.net *.split]
wchun has quit [*.net *.split]
malcolmva has quit [*.net *.split]
seph429 has quit [*.net *.split]
franks2 has quit [*.net *.split]
barhum2013 has quit [Quit: barhum2013]
Sonny|3oy has quit [Remote host closed the connection]
ponch_ has joined #ruby
dawkirst has joined #ruby
sfate has quit [Ping timeout: 250 seconds]
jle` has joined #ruby
craigp has joined #ruby
froggy__ has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
Grantlyk has quit [Remote host closed the connection]
yetanotherdave has joined #ruby
Sonny|3oy has joined #ruby
motto has joined #ruby
kaspertidemann has joined #ruby
ponch_ has quit [Ping timeout: 245 seconds]
froggy_ has quit [Ping timeout: 255 seconds]
tokik has quit [Ping timeout: 240 seconds]
<godd2> Wow, openhub makes it pretty easy to add all the repos to a project, and then shows all kinds of stats. This is freakin sweet.
Grantlyk has joined #ruby
seph429 has joined #ruby
ghr has joined #ruby
lazyguru has joined #ruby
seitensei has joined #ruby
veleno has joined #ruby
kenneth has joined #ruby
towbes has joined #ruby
malcolmva has joined #ruby
wchun has joined #ruby
franks2 has joined #ruby
PanPan has quit [Quit: ChatZilla 0.9.90.1 [Firefox 31.0/20140716183446]]
yetanotherdave has quit [Ping timeout: 264 seconds]
<jheg> i just pushed to github and realised there is some large files in there i didn't mean to push anyone know if I can interrupt the push and undo back to the add stage?
<jhass> if still pushing just hit ctrl+c
<jheg> thanks jhass but will that undo the commit or just interrupt ?
<jhass> no, run git reset HEAD~1
<jhass> it just interrupts
duncannz has quit [Remote host closed the connection]
<jhass> the reset will give you the staging area before the commit
<jheg> perfect thanks!
motto has quit [Quit: Sto andando via]
elaptics`away is now known as elaptics
sfate has joined #ruby
Wolland has quit [Remote host closed the connection]
workmad3 has joined #ruby
starless has quit [Quit: Leaving]
godd2 has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sigurding has quit [Quit: sigurding]
banister has joined #ruby
zettam_ has joined #ruby
max06 has quit [Quit: Leaving.]
anaeem1_ has quit [Read error: Connection reset by peer]
7F1AAZJG1 is now known as txdv
krisquigley has joined #ruby
anaeem1_ has joined #ruby
jzigmund has joined #ruby
jheg has quit [Quit: jheg]
zettam has quit [Ping timeout: 272 seconds]
willbarrettdev has joined #ruby
kyb3r_ has quit [Quit: Leaving]
user2342 has joined #ruby
Dreamer3 has quit [Ping timeout: 240 seconds]
InfraRuby has left #ruby [#ruby]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<user2342> try to load a file with open-uri. On machine A the commands from the pastebin all work, on machine B I get the schown error: http://pastebin.com/q2aZijpV
Bira has joined #ruby
why_away has quit [Remote host closed the connection]
<user2342> Would somebody help please. I have no idea anymore,
n1lo has quit [Read error: Connection reset by peer]
autonomousdev has joined #ruby
Sonny|3oy has quit [Quit: Leaving]
Bira has quit [Ping timeout: 250 seconds]
<toretore> why --no-proxy?
chipotle has quit [Quit: cya]
Dreamer3 has joined #ruby
<user2342> toretore: env | grep -i proxy shows a proxy. but the wget command also works without --no-proxy
<user2342> increasing the timeout to @node_read = open(@node_url, 'r', :read_timeout=>30).read shows the same error, wheras the wget is fast
fold has quit [Ping timeout: 264 seconds]
<apeiros> I don't think open-uri respects proxy and no_proxy envs
Norrin has quit [Ping timeout: 250 seconds]
coderhs has quit [Quit: Leaving]
<user2342> apeiros: It has options for proxy's. they are not set, and the script worked for months.
<user2342> could it have something to do with a restart of the machine?
banister has joined #ruby
Dreamer3 has quit [Ping timeout: 260 seconds]
gccostabr has joined #ruby
basiclaser has quit [Excess Flood]
TorpedoSkyline has joined #ruby
basiclaser has joined #ruby
<ptrrr> is there some way to make this look better?
nfk has joined #ruby
sfate has quit [Ping timeout: 250 seconds]
koderok has quit [Quit: koderok]
TorpedoSkyline has quit [Client Quit]
<jhass> you can drop the self.'s
<apeiros> remove all the pointless 'self.' s
<ptrrr> thanks, I figured I could do that
<apeiros> also since you don't actually use the option arg, make it options=nil. so ruby doesn't needlessly create an empty hash
Xeago has joined #ruby
<ptrrr> can I do anything about the { and }?
<apeiros> ^5 jhass
<jhass> ^ 5
<user2342> got it: @node_read = open(@node_url, 'r', :proxy=>false).read works. but why was proxy=> false not necessary until now?
<jhass> ptrrr: no
<ptrrr> alright
jxf has joined #ruby
<ptrrr> thanks
Xeago has quit [Remote host closed the connection]
hellangel7 has quit [Remote host closed the connection]
Xeago has joined #ruby
HelperW has joined #ruby
mike32 has joined #ruby
<HelperW> Hey.
<HelperW> I have a question. I can do PHP programming but I heard a lot that website also been created by ruby.
<HelperW> I gues that is RoR wich is based on Ruby?
<HelperW> What role is ror doing in webdev? Everything?
<apeiros> RoR is one popular way to create websites, yes
<apeiros> it's a webframework
<HelperW> It's a webframework like Laravel/Symfony/CI/.. ? But not in PHP
<apeiros> afaik symfony was created after seeing rails
<jhass> you can make a website in any programming language. Some just have better tools for it, some don't have any at all and you need to start from scratch
<HelperW> Is there a thing I should learn RoR when you know PHP?
<HelperW> Are the big pro's?
<jhass> start learning Ruby (without rails) first
<jhass> then decide which language you like better
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<jhass> most people that know ruby and php prefer ruby
koderok has joined #ruby
<eam> what would we use all these programming languages for if it weren't for websites
yetanotherdave has joined #ruby
TorpedoSkyline has joined #ruby
chipotle has joined #ruby
ghr has quit [Ping timeout: 246 seconds]
<user2342> how can i show what open-uri has set for :proxy ?
Dreamer3 has joined #ruby
<toretore> don't use open-uri, use net/http
<user2342> toretore: ok.only to learn: how can i show the uses proxy. I want to know if it's nil on machine A and .. on machine B
yetanotherdave has quit [Ping timeout: 245 seconds]
<wasamasa> eam: getting shit done
lapinferoce has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tokik has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
TorpedoSkyline has joined #ruby
Norrin has joined #ruby
Wolland has joined #ruby
Takle has quit [Remote host closed the connection]
lapinferoce has quit [Quit: leaving]
whyy has joined #ruby
_justin has quit [Quit: _justin]
doodlehaus has joined #ruby
jheg has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
tjr9898_ has joined #ruby
_justin has joined #ruby
Wolland has quit [Ping timeout: 244 seconds]
Norrin has quit [Ping timeout: 260 seconds]
ldnunes has joined #ruby
mijicd has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
Takle has joined #ruby
Norrin has joined #ruby
gogohome has quit [Quit: gogohome]
autonomousdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
philcrissman has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
codecop has joined #ruby
TorpedoSkyline has joined #ruby
comma8 has quit [Ping timeout: 250 seconds]
cgj has joined #ruby
vt102 has joined #ruby
Sonny|3oy has joined #ruby
yfeldblum has joined #ruby
bMalum has quit [Ping timeout: 272 seconds]
autonomousdev has joined #ruby
philcrissman has quit [Ping timeout: 264 seconds]
dawkirst_ has joined #ruby
aclearman037 has joined #ruby
chipotle has quit [Quit: cya]
dawkirst has quit [Ping timeout: 264 seconds]
gogohome has joined #ruby
DEA7TH has joined #ruby
amacou has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
Bira has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
HelperW has quit [Ping timeout: 272 seconds]
cy has joined #ruby
Sgeo has quit [Read error: Connection reset by peer]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kaspertidemann has quit []
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
Bira has quit [Ping timeout: 260 seconds]
Norrin has quit [Ping timeout: 240 seconds]
InfraRuby has joined #ruby
phutchins has joined #ruby
sigurding has joined #ruby
InfraRuby has left #ruby [#ruby]
AntelopeSalad has joined #ruby
nowthatsamatt has joined #ruby
Wolland has joined #ruby
bartleby has joined #ruby
kaspertidemann has joined #ruby
MartinCleaver has joined #ruby
pangur has joined #ruby
Wolland_ has joined #ruby
jottr_ has joined #ruby
Wolland has quit [Read error: Connection reset by peer]
<pangur> In a line such as address.each{|r| puts r.values_at(:title, :fore, :surname, :num, :street).join(' ')}, how do I format :num so that it does not output stuff like 0.145E3 and 0.41E2 but 145 and 41? I have tried putting "%d" % in front of :num.
doodlehaus has quit [Remote host closed the connection]
bartleby has quit [Client Quit]
bartleby has joined #ruby
sambao21 has joined #ruby
whyy has quit [Ping timeout: 260 seconds]
jxf has quit [Ping timeout: 260 seconds]
mr-foobar has quit [Read error: Connection reset by peer]
larissa has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
mr-foobar has joined #ruby
Norrin has joined #ruby
<jhass> it does output 0.145E3 for you? weird
<jhass> >> [0.145E3, 0.41E2].join(' ')
<eval-in> jhass => "145.0 41.0" (https://eval.in/178987)
comma8 has joined #ruby
Wolland_ has quit [Ping timeout: 260 seconds]
alexju has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
mr-foobar has quit [Read error: Connection reset by peer]
mr-foobar has joined #ruby
alexju has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
alexju has joined #ruby
felgenh3 has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
maroloccio has joined #ruby
ponch_ has joined #ruby
felgenh3 has left #ruby [#ruby]
Aaaal has quit [Quit: Aaaal]
szuletett has quit [Ping timeout: 260 seconds]
comma8 has quit [Ping timeout: 250 seconds]
alexju has quit [Ping timeout: 260 seconds]
mercwithamouth has quit [Ping timeout: 272 seconds]
<Mon_Ouie> Is it actuay a float or an integer?
<Mon_Ouie> Looks like a bigdecimal to me
flowerhack has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
mike32 has quit [Ping timeout: 240 seconds]
phoo1234567 has joined #ruby
ponch_ has quit [Ping timeout: 244 seconds]
mr_flibble is now known as tarcwynne
phoo1234567 has quit [Max SendQ exceeded]
koderok has left #ruby [#ruby]
sk87 has joined #ruby
Aaaal has joined #ruby
yetanotherdave has joined #ruby
phoo1234567 has joined #ruby
_justin has quit [Quit: _justin]
obscured has joined #ruby
chipotle has joined #ruby
bartleby has quit [Quit: leaving]
bartleby has joined #ruby
foobar2 has joined #ruby
InfraRuby has joined #ruby
Norrin has quit [Ping timeout: 250 seconds]
Aaaal has quit [Quit: Aaaal]
yetanotherdave has quit [Ping timeout: 272 seconds]
Aaaal has joined #ruby
britneywright has joined #ruby
OffTheRails has joined #ruby
bartleby has quit [Quit: leaving]
maroloccio has quit [Quit: WeeChat 0.4.3]
bartleby has joined #ruby
<pangur> jhass, puts [0.145E3, 0.41E2].join(' ') gives me 145.0 41.0
shredding has joined #ruby
bartleby has quit [Client Quit]
<jhass> yeah
tylerkern has joined #ruby
<jhass> not 0.145E3 as you stated
<pangur> The number after the E seems to be the number of digits before the decimal point.
RandomShop has quit [Quit: Leaving]
siukit2014 has quit []
<DefV> that's scientific notation for
vsoftoiletpaper has joined #ruby
hellangel7 has joined #ruby
<pangur> I do not understand. 0.145E3 gives me 145.0 when using join.
foobar2 has quit [Quit: ""]
<DefV> <i>E<n> == i * 10**n
Norrin has joined #ruby
<jhass> pangur: exactly. but you said it wouldn't
DivineEntity has quit [Quit: Lost terminal]
<jhass> "does not output stuff like 0.145E3 and 0.41E2 but 145 and 41" implies it outputs "0.145E3" for you
Bira has joined #ruby
<pangur> However address.each{|r| puts r.values_at(:title, :fore, :surname, :num, :street).join(' ')} gives me stuff like Mrs Agnes Davis 0.17E2 Street
ghr has joined #ruby
<jhass> what does p r[:num].class say?
iteratorP has quit [Remote host closed the connection]
tkuchiki has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
* Hanmac smells rails
tkuchiki has quit [Remote host closed the connection]
<pangur> p r[:num].class gives me BigDecimal
<jhass> Hanmac: you do that everywhere
cesurasean has joined #ruby
_justin has joined #ruby
<Hanmac> jhass: because it is the problem in most of the cases
<pangur> I am using only Sequel - not rails.
<jhass> pangur: I'd go with puts "%s %s %s %d %s" % r.values_at(.... then
king313 has joined #ruby
<pangur> ah, thanks, jhass.
<Hanmac> pangur: imo check if yo can change the class of num, BigDecimal in the case of SteetNum is overkill imo
user2342 has quit [Quit: Page closed]
flowerhack has joined #ruby
<pangur> I was using NUMERIC as the type. Should I use integer instead?
cesurasean has quit [Client Quit]
<jhass> what db?
cy has quit [Ping timeout: 264 seconds]
<Hanmac> hm imo that might be better ... i not know what lower type you can use, maybe SHORTINT or similar? like for sample i didnt see a streetnumber with more than 3 didgits
<pangur> sqlit3
<pangur> sqlite3
<jhass> sqlite doesn't have more number types
flowerhack has quit [Remote host closed the connection]
<jhass> integer is just an alias to numeric, basically
sigurding has quit [Quit: sigurding]
<pangur> The most digits in my street number is 4.
Guest9206 has quit []
<jhass> oh, I didn't remember correctly, actually integer is its own type
<ddv> what about street numbers like 23A
<ddv> or 23-B
<jhass> anyway give that thing a read
lxsameer has quit [Quit: Leaving]
parduse has joined #ruby
mengu has quit [Remote host closed the connection]
d4ryus___ has joined #ruby
parduse is now known as Guest48307
cesurasean has joined #ruby
Guest48307 has quit [Client Quit]
Guest48307 has joined #ruby
Guest48307 is now known as parduse
<pangur> I have split numbers into separate fields like 2014B becomes 2014 and B by creating :num, and :aux for the letter part.
parduse is now known as Guest57339
qmfnp has joined #ruby
d4ryus has quit [Ping timeout: 255 seconds]
Guest57339 has left #ruby [#ruby]
newUser1234 has joined #ruby
sigurding has joined #ruby
parduse has joined #ruby
techsethi has joined #ruby
alexju has joined #ruby
<pangur> a.each{ |r| puts "%s %s %s %d %s" % r.values_at(:title, :fore, :surname, :num, :street).join(' ')} gives me army.rb:20:in `%': too few arguments (ArgumentError)
<jhass> without the .join(' ')
<jhass> try to understand what it does
hellangel7 has quit [Remote host closed the connection]
<jhass> check the docs for String#% and Kernel#sprintf
hellangel7 has joined #ruby
<pangur> Hey, that did it :)
<pangur> It also fixed the 0.145E3 stuff.
<pangur> Thanks, jhass!
bmurt has joined #ruby
blackoperat has joined #ruby
cnj has quit [Ping timeout: 244 seconds]
Zenigor has joined #ruby
Xeago has joined #ruby
qwyeth has joined #ruby
qwyeth has quit [Max SendQ exceeded]
qwyeth has joined #ruby
qwyeth has quit [Max SendQ exceeded]
blackoperat has quit [Client Quit]
britneywright has joined #ruby
qwyeth has joined #ruby
bartj3_ has joined #ruby
bartj3_ has quit [Client Quit]
jespada has joined #ruby
cy has joined #ruby
Ankhers has joined #ruby
banister has joined #ruby
britneywright has quit [Client Quit]
doodlehaus has joined #ruby
maasha has joined #ruby
Norrin has quit [Ping timeout: 272 seconds]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
alex88_ has joined #ruby
workmad3 has joined #ruby
<maasha> Hi, what is the non-destructive way of Hash.delete(key) so it returns a new hash without that key?
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
alex88 has quit [Ping timeout: 240 seconds]
cy has quit [Quit: :q!]
bartj3_ has joined #ruby
bartj3_ has quit [Client Quit]
gaussblurinc1 has quit [Quit: Leaving.]
<DefV> >> {a: 1, b: 2}.reject{|k,v| k == :a }
<eval-in> DefV => {:b=>2} (https://eval.in/179003)
bartj3_ has joined #ruby
bartj3_ has quit [Client Quit]
timonv_ has quit [Remote host closed the connection]
cy has joined #ruby
<DefV> maasha: ^^^
<maasha> DefV: thanks
Grantlyk has quit [Read error: Connection reset by peer]
andrewjanssen has joined #ruby
Grantlyk has joined #ruby
timonv_ has joined #ruby
Aranshada|W has joined #ruby
MartinCleaver has quit [Quit: MartinCleaver]
dblessing has joined #ruby
techsethi has quit [Ping timeout: 260 seconds]
Danibal has joined #ruby
TheNet has joined #ruby
<apeiros> that's a very slow way…
comma8 has joined #ruby
<apeiros> .dup.tap { |h| h.delete(key) }
Norrin has joined #ruby
ffranz has joined #ruby
<DefV> true
starkhalo has joined #ruby
blackmesa has joined #ruby
krisquigley has quit []
comma8 has quit [Ping timeout: 260 seconds]
ValicekB has joined #ruby
tjr9898_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
ixti has joined #ruby
heftig has quit [Ping timeout: 260 seconds]
jonahR has joined #ruby
pangur has quit [Quit: Ex-Chat]
tjr9898 has joined #ruby
yetanotherdave has joined #ruby
tjr9898 has quit [Remote host closed the connection]
realDAB has joined #ruby
shredding has quit [Quit: shredding]
tjr9898 has joined #ruby
tjr9898 has quit [Read error: Connection reset by peer]
<mikecmpbll> what happens if a thread tries to access a mutex.synchronize block while another thread is inside it?
heftig has joined #ruby
tjr9898 has joined #ruby
mark_locklear has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
<workmad3> mikecmpbll: it'll block
<mikecmpbll> so it'll just wait until it's free?
troulouliou_dev has joined #ruby
<workmad3> mikecmpbll: yup
<mikecmpbll> ok! ta.
<workmad3> mikecmpbll: hopefully you won't have deadlock ;)
<mikecmpbll> yeah, so there's no inbuilt timeout or anything.
<workmad3> mikecmpbll: don't think so
momomomomo has joined #ruby
Leehro has joined #ruby
<jhass> there isn't and I think timeout stdlib still isn't thread safe
sailias has joined #ruby
yetanotherdave has quit [Ping timeout: 246 seconds]
mijicd has joined #ruby
Norrin has quit [Ping timeout: 250 seconds]
andrewjanssen has quit [Quit: Leaving...]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tylerkern has quit [Read error: Connection reset by peer]
tylerkern has joined #ruby
<workmad3> mikecmpbll: looking at the docs for mutex, the only real failure case is if you try to lock or synchronize the same mutex twice in one thread (which will raise an exception)
alex88 has joined #ruby
alex88_ has quit [Ping timeout: 250 seconds]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<mikecmpbll> workmad3: gotcha.
sigurding has quit [Quit: sigurding]
_maes_ has joined #ruby
treehug88 has joined #ruby
philcrissman has joined #ruby
carraroj has quit [Ping timeout: 272 seconds]
frankle has joined #ruby
<mikecmpbll> seriously don't understand how this connection sharing thing doesn't work.
newUser1234 has quit [Remote host closed the connection]
paulfm has joined #ruby
duggiefresh has joined #ruby
Norrin has joined #ruby
alex88_ has joined #ruby
ta has quit [Remote host closed the connection]
hellangel7 has quit [Read error: Connection reset by peer]
alex88 has quit [Ping timeout: 272 seconds]
jprovazn has quit [Quit: Leaving]
philcrissman has quit [Ping timeout: 245 seconds]
InhalingPixels has joined #ruby
HelperW has joined #ruby
mars__ has joined #ruby
davispuh has quit [Read error: Connection reset by peer]
ra4king has quit [Ping timeout: 240 seconds]
vsoftoiletpaper has quit []
kaspertidemann has quit []
jottr_ has quit [Ping timeout: 245 seconds]
MartinCleaver has joined #ruby
kuzushi has joined #ruby
TieSoul_ has joined #ruby
acrussell has joined #ruby
vsoftoiletpaper has joined #ruby
davispuh has joined #ruby
cy has quit [Quit: :q!]
Morkel_ has joined #ruby
cnj has joined #ruby
beef-wellington has joined #ruby
diegoviola has quit [Ping timeout: 272 seconds]
paulfm has quit [Ping timeout: 260 seconds]
Morkel has quit [Ping timeout: 272 seconds]
Morkel_ is now known as Morkel
sk87 has joined #ruby
TieSoul has quit [Ping timeout: 255 seconds]
enebo has joined #ruby
einarj has joined #ruby
alex88_ has quit [Ping timeout: 272 seconds]
cpruitt has joined #ruby
ssvo has joined #ruby
maasha has quit [Quit: Page closed]
paulfm has joined #ruby
beef-wellington has quit [Ping timeout: 240 seconds]
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JohnFord has joined #ruby
paulfm has quit [Client Quit]
beef-wellington has joined #ruby
troulouliou_dev has quit [Ping timeout: 240 seconds]
alex88 has joined #ruby
olivier_bK has quit [Quit: Quitte]
einarj has quit [Ping timeout: 272 seconds]
_justin has quit [Quit: _justin]
fschuindt has joined #ruby
Norrin has quit [Ping timeout: 272 seconds]
newUser1234 has joined #ruby
momomomomo has quit [Quit: momomomomo]
cobakobodob has quit [Ping timeout: 240 seconds]
<fschuindt> Guys I have installed a new Ruby version using RVM (mac osx) but seems that my Ruby is using the old gem path. How can I fix it? Any tip?
St_Marx has quit [Quit: Ex-Chat]
aclearman037 has joined #ruby
treehug88 has quit [Ping timeout: 245 seconds]
alex88 has quit [Ping timeout: 260 seconds]
asteve has joined #ruby
alexju has quit [Read error: Connection reset by peer]
alexju has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
paulfm has joined #ruby
momomomomo has joined #ruby
johnmolina has joined #ruby
ValicekB has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
gogohome has quit [Quit: gogohome]
Norrin has joined #ruby
gogohome has joined #ruby
oo_ has joined #ruby
joast has joined #ruby
mhutter has joined #ruby
fschuindt has quit [Quit: Page closed]
sambao21 has quit [Quit: Computer has gone to sleep.]
shredding has joined #ruby
hfp^ is now known as hfp
hfp is now known as hfp_
hfp_ is now known as hfp
Guest25238 is now known as magic
magic has quit [Changing host]
magic has joined #ruby
Wolland has joined #ruby
jprovazn has joined #ruby
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Max SendQ exceeded]
oo_ has quit [Ping timeout: 246 seconds]
<pontiki> how are you choosing to the new ruby version?
gogohome has quit [Ping timeout: 250 seconds]
<wasamasa> by /quitting
<pontiki> s/to//
blackmesa has quit [Ping timeout: 264 seconds]
<txdv> I look at the news, see that 2.1.2 is out and then install it
TorpedoSkyline has joined #ruby
<apeiros> pontiki: hu?
root3d has joined #ruby
<apeiros> I just install the newest version. if all still runs, I use it.
eka has joined #ruby
jottr_ has joined #ruby
<pontiki> well, i was trying to figure out why fshuindt couldn't do that
sambao21 has joined #ruby
<pontiki> but they're gone, so let's all party instead!
mary5030 has joined #ruby
kuzushi has quit [Ping timeout: 255 seconds]
<mostlybadfly> Haaaaay party
Wolland has quit [Ping timeout: 272 seconds]
bricker`LA has joined #ruby
ValicekB has joined #ruby
<apeiros> pontiki: oh, lol, it wasn't a question from you to the channel… I see
lkba has joined #ruby
mary5030 has quit [Remote host closed the connection]
<pontiki> i have this annoying habit of not addressing the last person asking a question directly
mary5030 has joined #ruby
<apeiros> usually not a problem… but with ~40 lines in between…
nateberkopec has joined #ruby
<pontiki> i have all the join/part/quit stuff turned off
tobago has quit [Remote host closed the connection]
<apeiros> can't :(
<pontiki> :(
* apeiros still wants smart join/part/quit messages
cocotton has joined #ruby
<pontiki> some client i was poking at purported to only ignore such from idle folks
<pontiki> but it didn't actually work
jottr_ has quit [Ping timeout: 260 seconds]
jheg_ has joined #ruby
starkhalo has quit [Read error: Connection reset by peer]
starkhallo has joined #ruby
yfeldblum has joined #ruby
jheg has quit [Ping timeout: 246 seconds]
jheg_ is now known as jheg
amortimer has quit [Quit: amortimer]
gogohome has joined #ruby
<ddv> I want to know when apeiros parts, so we can have some fun in here while he's gone :P
ponch_ has joined #ruby
<jhass> pontiki: pidgin has a plugin for that, weechat seems to able to do that too
momomomomo has quit [Quit: momomomomo]
king313 has quit [Quit: .]
iamjarvo has joined #ruby
blackmesa has joined #ruby
<wasamasa> workmad3: oh wow, I figured out rails' collectionproxies and I guess I'll use those
yfeldblum has quit [Ping timeout: 246 seconds]
<workmad3> wasamasa: heh :)
<pontiki> i think it was weechat i was looking at
<apeiros> köllektschn?
mr_snowf1ake has joined #ruby
pmac_ has joined #ruby
ponch_ has quit [Ping timeout: 272 seconds]
cobakobodob has joined #ruby
mengu has quit []
mijicd has quit [Remote host closed the connection]
lw has joined #ruby
dorei has joined #ruby
InhalingPixels has quit [Remote host closed the connection]
snorkra has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
yetanotherdave has joined #ruby
nowthatsamatt has quit [Ping timeout: 260 seconds]
InhalingPixels has joined #ruby
sambao21 has joined #ruby
thomasxie has joined #ruby
msmith_ has joined #ruby
alex88 has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
endash has joined #ruby
Asher has quit [Quit: Leaving.]
blackmesa has quit [Quit: WeeChat 0.4.3]
mleone has joined #ruby
jshultz has joined #ruby
mike32 has joined #ruby
Takle has quit [Remote host closed the connection]
zz_jrhorn424 is now known as jrhorn424
beef-wellington has quit [Ping timeout: 260 seconds]
yetanotherdave has quit [Ping timeout: 260 seconds]
lmickh_ has quit [Remote host closed the connection]
<snorkra> im trying to run a program which is using ruby and get: Could not find i18n-0.6.9 in any of the sources, Run `bundle install` to install missing gems.
alex88_ has joined #ruby
<apeiros> snorkra: and did you run `bundle install`?
<snorkra> I then run bundle install in the /usr/share/myprogram folder which succseeds
szuletett has joined #ruby
skaflem has joined #ruby
<snorkra> but the program stil dont work
snath has quit [Ping timeout: 245 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
charliesome has joined #ruby
<apeiros> how do you run the program? you probably have to prefix it with `bundle exec`
andrewjanssen has joined #ruby
lmickh has joined #ruby
AlexRussia has joined #ruby
<snorkra> apeiros: i runt it normaly, and it used to work this way
beef-wellington has joined #ruby
alex88 has quit [Ping timeout: 246 seconds]
banister is now known as banisterfiend
sambao21 has joined #ruby
lw has quit [Quit: s]
<snorkra> apeiros: tried the prefix but it just gave a lot of error
Takle has joined #ruby
tylerker_ has joined #ruby
Matadoer has joined #ruby
<apeiros> snorkra: "a lot of error" and "dont work" is not a description I can work with.
poulet_a_ has joined #ruby
<apeiros> the bundle install did not give an error?
tylerkern has quit [Ping timeout: 245 seconds]
<snorkra> apeiros: true, but the program should not normaly be executed by bundle exec MyProgram, that is for sure:)
jottr_ has joined #ruby
poulet_a_ has quit [Client Quit]
<snorkra> apeiros: The bundle install worked after i installed som libs, but if I also need to run bundle install elsewhere is not clear to me:S
tylerker_ has quit [Client Quit]
krz has quit [Quit: WeeChat 0.4.3]
bearish has quit [Read error: Connection reset by peer]
<snorkra> apeiros: i dont know what "sources" it is looking into while executing but there probaly is a trivial solution to get i18n-0.6.9 there if you know the ruby enviorment?:S
Norrin has quit [Ping timeout: 250 seconds]
<snorkra> apeiros: Thanks for helping me out btw:)
<apeiros> one of the top lines of the Gemfile states the sources. and that's almost universally rubygems.org
sivoais has quit [Ping timeout: 245 seconds]
bearish has joined #ruby
<pmac_> Hello, I was wondering if someone could help me: I need to find out the best way to execute a program (ffmpeg) that lets me reliably: 1. run multiple instances simultaneously (as started by a loop). 2. Let me run it so I can suppress/redirect the output so it doesn’t flood the terminal window. 3. Terminate it so it doesn’t zombie. Any suggestions?
sivoais has joined #ruby
comma8 has joined #ruby
vinleod has quit [Ping timeout: 264 seconds]
tylerkern has joined #ruby
jprovazn is now known as jprovazn_afk
tagrudev has quit [Remote host closed the connection]
bearish has quit [Read error: Connection reset by peer]
<pontiki> pmac_: look at the open3 stdlib for part deux
freerobby has joined #ruby
Ankhers has quit [Ping timeout: 264 seconds]
<pmac_> thanks
craigp has quit [Remote host closed the connection]
<snorkra> apeiros: yes it is rubygems.org, so the "gem" needed does not exist in the repo?
wjimenez5271 has joined #ruby
<snorkra> apeiros: I think i have spotted the problem, bundle install installs Using i18n 0.6.5
<snorkra> apeiros: but the program is looking for i18n-0.6.9
icebourg has joined #ruby
yazgoo_ has quit [Ping timeout: 244 seconds]
jimms has joined #ruby
momomomomo has joined #ruby
cybercix has joined #ruby
ssvo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alex88 has joined #ruby
<jhass> snorkra: which program and how did you install it
w1xz has joined #ruby
<snorkra> jhass: it is msfconsole, preinstalled on kali linux
tagrudev has joined #ruby
yazgoo has joined #ruby
TorpedoSkyline has joined #ruby
bal has quit [Quit: bal]
<snorkra> jhass: in the lockfile this line is stated: i18n (~> 0.6, >= 0.6.4), can i update the lockfile naually and get a newer version on bundle install?
craigp has joined #ruby
<jhass> snorkra: reach out to the support channels for Kali and/or Metasploit
alex88_ has quit [Ping timeout: 260 seconds]
<snorkra> jhass: thanks
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cocotton has quit [Remote host closed the connection]
mikepack has joined #ruby
TorpedoSkyline has quit [Client Quit]
sigurding has joined #ruby
Macaveli has quit [Ping timeout: 250 seconds]
craigp has quit [Ping timeout: 240 seconds]
Grantlyk has quit [Remote host closed the connection]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
treehug88 has joined #ruby
cocotton_ has joined #ruby
Norrin has joined #ruby
centrx has joined #ruby
TorpedoSkyline has joined #ruby
tylerkern has joined #ruby
snath has joined #ruby
Grantlyk has joined #ruby
basiclaser has quit [Excess Flood]
krz has joined #ruby
jheg_ has joined #ruby
Bira has quit []
fold has joined #ruby
jheg has quit [Ping timeout: 240 seconds]
jheg_ is now known as jheg
Norrin has quit [Ping timeout: 240 seconds]
basiclaser has joined #ruby
Leehro_ has joined #ruby
tylerkern has quit [Read error: Connection reset by peer]
Leehro has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
relix has joined #ruby
Leehro_ has quit [Client Quit]
Zebroid has joined #ruby
Wolland has joined #ruby
w1xz has quit [Quit: .. lightyears a head but just a message away ..]
tylerkern has joined #ruby
sigurding has quit [Quit: sigurding]
_maes_ has joined #ruby
terrellt has joined #ruby
poulet_a has quit [Quit: Quitte]
jheg has quit [Quit: jheg]
coellobranco has joined #ruby
alexherbo2 has quit [Ping timeout: 250 seconds]
Sonny|3oy has quit [Quit: Leaving]
Grantlyk has quit [Remote host closed the connection]
_JamieD_ has joined #ruby
Wolland has quit [Ping timeout: 260 seconds]
newUser1234 has quit [Ping timeout: 260 seconds]
tagrudev has quit [Remote host closed the connection]
noop has quit [Quit: Leaving]
yfeldblum has joined #ruby
jmbrown412 has joined #ruby
Ankhers has joined #ruby
koderok has joined #ruby
koderok has quit [Remote host closed the connection]
newUser1234 has joined #ruby
<_JamieD_> Hi, I need to write a system that will spin up a cloud based VM, wait until the VM is ready, give it a bunch or work to do then shut down the VM. With the huge host of different server build/automation option available currently what would people recommend in order to achieve this? A primary concern is that the VM’s can be ready to use ASAP so using something like chef would not be ideal due to it’s slow build time. What
<_JamieD_> other options should I consider?
Norrin has joined #ruby
treehug88 has quit [Ping timeout: 264 seconds]
andrewjanssen has quit [Quit: Leaving...]
craigp has joined #ruby
<workmad3> _JamieD_: what's this about a 'slow build time' for chef?
cesurasean has quit [Quit: Leaving.]
mercwithamouth has joined #ruby
<_JamieD_> workmad3: I’m talking chef build vs booting up a pre-built image
yfeldblum has quit [Ping timeout: 272 seconds]
<workmad3> _JamieD_: nothing says you can't combine the two :P
<_JamieD_> chef could be used to build and maintain the image used
<workmad3> _JamieD_: e.g. pre-built base image followed by customising the booted VM with chef
Grantlyk has joined #ruby
<workmad3> _JamieD_: although it'll depend on how much variation you need
<workmad3> _JamieD_: you could also look at docker, but not sure what cloud VPSes support them yetn
<workmad3> *yet
momomomomo has quit [Quit: momomomomo]
abq has joined #ruby
Xeago has quit [Remote host closed the connection]
<workmad3> _JamieD_: I was more wondering why it was you thought chef was slow, but I think you mean that if you have a lot of stuff to do (e.g. installing or compiling dozens/hundreds of packages) then it can take a while... which is true of any automation :)
<_JamieD_> workmad3: I’ve looked at docker a few times but I can’t seem to get my head around why it’s useful. I’ve used chef for many years but can’t see how docker provides much of a benefit
szuletett has quit [Ping timeout: 245 seconds]
ParanoidSP has joined #ruby
craigp has quit [Ping timeout: 240 seconds]
aspires has joined #ruby
<_JamieD_> workmad3: indeed, that’s the slow part, but if the image has all the slow parts pre-built then that won’t be an issue
Xeago has joined #ruby
<workmad3> _JamieD_: my understanding is that docker can essentially provide composable images
andrewjanssen has joined #ruby
<workmad3> _JamieD_: so you could layer different docker containers over each other to customise, avoiding the need for a combinatorial explosion of images to maintain
rdavila has joined #ruby
<workmad3> _JamieD_: but I've not looked at it in-depth, so I could be way off base :)
paranoidsp_1 has joined #ruby
Grantlyk has quit [Remote host closed the connection]
alexherbo2 has joined #ruby
baroquebobcat has joined #ruby
HelperW_ has joined #ruby
oo_ has joined #ruby
<_JamieD_> the other reason I’m not keen on chef is that the number of nodes needing to be managed could get into the high 100’s at any one time, which would start getting rather expensive with the chef platform
chrishough has joined #ruby
philcrissman has joined #ruby
parduse has quit []
sambao21 has quit [Quit: Computer has gone to sleep.]
parduse has joined #ruby
<workmad3> _JamieD_: for your setup, I'd have suggested using chef-solo tbh
momomomomo has joined #ruby
momomomomo has quit [Client Quit]
sigurding has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
<workmad3> _JamieD_: but if you wanted a client-server version, there's always self-hosted chef (what I use)
danijoo has joined #ruby
<_JamieD_> I find chef-solo a PITA, there’s usually a feature I need to use that’s missing and only available in the client-server version
HelperW_ has quit [Client Quit]
HelperW has quit [Ping timeout: 245 seconds]
szuletett has joined #ruby
HelperW_ has joined #ruby
<_JamieD_> I’ve not looked at the self hosted chef server in a while, not sine it was running on Merb!
Cache_Money has joined #ruby
<workmad3> _JamieD_: it's really easy to set up since they released omnibus installers for it all :)
philcrissman has quit [Ping timeout: 255 seconds]
newUser1234 has quit [Remote host closed the connection]
ghostmoth has joined #ruby
yetanotherdave has joined #ruby
<rdavila> Hi guys, do you know some way to escape strings with regular expressions but adding some exceptions at the same time?
<rdavila> for instance, I want to escape this string:
<rdavila> 2.1.2 :048 > Regexp.escape('foo+bar|baz')
<rdavila> => "foo\\+bar\\|baz”
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<rdavila> but I would like a result like this:
<rdavila> => "foo\\+bar|baz”
charliesome has joined #ruby
<rdavila> as you can see, I’m not interested in escaping ‘|'
failshell has joined #ruby
_maes_ has joined #ruby
Takle has quit [Remote host closed the connection]
pydave6367 has joined #ruby
HelperW_ has quit [Ping timeout: 260 seconds]
Cache_Money has quit [Remote host closed the connection]
<apeiros> rdavila: you'll have to roll it yourself
roman has joined #ruby
yetanotherdave has quit [Ping timeout: 250 seconds]
sdwrage has joined #ruby
<rdavila> apeiros: ok, thanks
msmith_ has quit [Remote host closed the connection]
<Hanmac> rdavila: like that?
<Hanmac> >> Regexp.union('foo+bar','baz')
<eval-in> Hanmac => /foo\+bar|baz/ (https://eval.in/179045)
king313 has joined #ruby
maletor has joined #ruby
<rdavila> Hanmac: I have an Array of strings and I need to escape those strings and join them with the ‘|’ char
<workmad3> rdavila: that's what Regexp.union does...
<Hanmac> >> array = ['foo+bar','baz']; Regexp.union(*array)
<eval-in> Hanmac => /foo\+bar|baz/ (https://eval.in/179046)
<rdavila> I have used this finally: filters.map { |s| Regexp.escape(s) }.join('|')
<centrx> What is wrong with Regexp.union?
d4ryus___ is now known as d4ryus
gauke has quit [Quit: gauke]
amacou has quit [Read error: Connection reset by peer]
emmesswhy has joined #ruby
amacou has joined #ruby
TieSoul_ is now known as TieSoul
emmesswhy has quit [Client Quit]
wjimenez5271 has quit [Remote host closed the connection]
Takle has joined #ruby
<rdavila> mmm ok, looks like I can use Regexp.union :)
<workmad3> centrx: 3rd times the charm...
sambao21 has joined #ruby
<rdavila> now the issue is I need the result as an String because I need to pass it to the SQL query
wjimenez5271 has joined #ruby
rippa has joined #ruby
<centrx> ...
<apeiros> rdavila: and you assume SQL's regex engine to have the same escapes as ruby's regex engine?
gogohome has left #ruby [#ruby]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> bad approach.
<rdavila> apeiros: basically the characters that I need to escape are only ‘+’ and ‘*’
<rdavila> so I think it’s safe
abq has quit []
<apeiros> famous last words
<rdavila> hahaha
IceDragon has joined #ruby
<apeiros> you're programming. no need to guess. verify.
<apeiros> anyway, I'm off.
emmesswhy has joined #ruby
tylerkern has joined #ruby
<rdavila> mmm, maybe it’s betters to escape with a DB function
the_f0ster has joined #ruby
<rdavila> anyways, thanks apeiros
achoom__ has quit [Quit: Connection closed for inactivity]
achoom has quit [Quit: Connection closed for inactivity]
wjimenez5271 has quit [Ping timeout: 250 seconds]
<TieSoul> https://gist.githubusercontent.com/TieSoul/08f0642d90b29310ba4e/raw/d9fab88899f7f4566d248ee17bcc46bd6bc59bb6/obf I made an extremely obfuscated program. Just wanted to show it off :P
renderful has joined #ruby
Norrin has quit [Ping timeout: 250 seconds]
apeiros has quit [Remote host closed the connection]
mars__ has quit [Quit: Leaving]
rezzack has joined #ruby
cocotton_ has quit [Remote host closed the connection]
cocotton has joined #ruby
WormDr1nk has quit [Ping timeout: 250 seconds]
shredding has quit [Quit: shredding]
wjimenez5271 has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
axsuul has joined #ruby
britneywright has joined #ruby
shredding has joined #ruby
mikecmpbll has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
Arkaniad has quit [Ping timeout: 240 seconds]
root3d has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
cocotton has quit [Ping timeout: 260 seconds]
alex88 has quit [Quit: Leaving...]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Norrin has joined #ruby
mikepack_ has joined #ruby
aclearman037 has quit []
iliketurtles has joined #ruby
root3d has joined #ruby
cy has joined #ruby
troyready has joined #ruby
InfraRuby has left #ruby [#ruby]
michaeldeol has joined #ruby
icarus has joined #ruby
mikepack has quit [Ping timeout: 245 seconds]
msmith_ has joined #ruby
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
bricker`work has joined #ruby
mikepack_ has quit [Remote host closed the connection]
cocotton has joined #ruby
nowthatsamatt has joined #ruby
klaut has quit [Remote host closed the connection]
klaut has joined #ruby
root3d has quit [Ping timeout: 240 seconds]
timonv_ has quit [Remote host closed the connection]
\q has quit [Ping timeout: 245 seconds]
ghr has quit [Ping timeout: 240 seconds]
Snowstormer is now known as ^42
omosoj has joined #ruby
root3d has joined #ruby
WormDr1nk has joined #ruby
Wolland has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
RandyT has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
\q has joined #ruby
klaut has quit [Ping timeout: 245 seconds]
mercwithamouth has quit [Ping timeout: 255 seconds]
RandyT has joined #ruby
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kuzushi has joined #ruby
deric_skibotn has joined #ruby
paranoidsp_1 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
zartoosh__ has quit [Ping timeout: 240 seconds]
yacks has quit [Ping timeout: 244 seconds]
jespada has quit [Remote host closed the connection]
sambao21 has joined #ruby
toastynerd has joined #ruby
joonty has quit [Quit: Leaving]
Wolland has quit [Ping timeout: 272 seconds]
jespada has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
ParanoidSP has quit [Ping timeout: 240 seconds]
yacks has joined #ruby
ParanoidSP has joined #ruby
tokik has quit [Ping timeout: 272 seconds]
zartoosh__ has joined #ruby
arup_r has joined #ruby
RandyT has quit [Ping timeout: 240 seconds]
_justin has joined #ruby
adantj has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
_justin has quit [Client Quit]
craigp has joined #ruby
adantj has quit [Client Quit]
adantj has joined #ruby
zeeraw has joined #ruby
RandyT has joined #ruby
msmith_ has quit [Remote host closed the connection]
davedev2_ has quit []
sigurding has quit [Quit: sigurding]
iliketurtles has quit [Quit: Textual IRC Client: www.textualapp.com]
davedev24_ has joined #ruby
ponch_ has joined #ruby
nat2610 has joined #ruby
doev has quit [Ping timeout: 255 seconds]
wallerdev has joined #ruby
doev has joined #ruby
craigp has quit [Ping timeout: 244 seconds]
barhum2013 has joined #ruby
sigurding has joined #ruby
Norrin has quit [Ping timeout: 240 seconds]
InfraRuby has joined #ruby
flak has joined #ruby
benzrf is now known as benzrf|offline
ponch_ has quit [Ping timeout: 260 seconds]
chth0n has quit [Ping timeout: 244 seconds]
timonv_ has joined #ruby
shredding has quit [Quit: shredding]
theharshest has joined #ruby
beef-wellington has quit [Ping timeout: 245 seconds]
nat2610 has quit [Quit: Leaving.]
kenneth has quit [Ping timeout: 246 seconds]
wchun has quit [Ping timeout: 246 seconds]
b00stfr31k has joined #ruby
benzrf|offline is now known as benzrf
rippa has quit [Ping timeout: 246 seconds]
pydave6367 has quit [Ping timeout: 246 seconds]
pydave6367 has joined #ruby
ephemerian has quit [Quit: Leaving.]
kenneth has joined #ruby
mr_snowf1ake has quit [Ping timeout: 260 seconds]
ParanoidSP has quit [Ping timeout: 245 seconds]
hellangel7 has joined #ruby
pydave6367 has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
mikecmpbll has quit [Ping timeout: 260 seconds]
ParanoidSP has joined #ruby
benzrf is now known as benzrf|offline
pydave6367 has joined #ruby
oo_ has joined #ruby
b00stfr31k has quit [Client Quit]
b00stfr3ak has joined #ruby
szuletett has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 255 seconds]
yetanotherdave has joined #ruby
szuletett has joined #ruby
build-system has joined #ruby
mr_snowf1ake has joined #ruby
ponch_ has joined #ruby
Mozee has joined #ruby
TheNet has quit [Quit: Leaving...]
DrShoggoth has joined #ruby
matchaw has quit [Ping timeout: 240 seconds]
oo_ has quit [Ping timeout: 272 seconds]
mhutter has quit [Quit: Page closed]
apeiros has joined #ruby
yetanotherdave has quit [Ping timeout: 245 seconds]
ssvo has joined #ruby
wallerdev has quit [Quit: wallerdev]
beef-wellington has joined #ruby
iceden has quit [Read error: Connection reset by peer]
root3d has quit [Ping timeout: 240 seconds]
krisquigley has joined #ruby
Asher has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wjimenez5271 has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arup_r has quit [Read error: Connection reset by peer]
LiohAu has quit [Quit: LiohAu]
jamto11 has joined #ruby
Veidit has joined #ruby
Norrin has joined #ruby
coldkey21 has joined #ruby
thomasxie has quit [Ping timeout: 240 seconds]
Takle has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
AlSquire has joined #ruby
AlSquire has quit [Client Quit]
tylerkern has quit [Read error: Connection reset by peer]
AlSquire has joined #ruby
Norrin has quit [Ping timeout: 240 seconds]
tylerkern has joined #ruby
djcp has joined #ruby
djcp has left #ruby [#ruby]
mikecmpbll has joined #ruby
alpha123 has joined #ruby
root3d has joined #ruby
<mary5030> {"results"=>[],
<mary5030> [{"name"=> "some name", "ip" => "some ip"}, ..}]}
<mary5030> "aliases"=>
<mary5030> so this above i cannot call .map on does anyone know why?
einarj has joined #ruby
Zebroid has quit [Remote host closed the connection]
<jhass> what error does it give?
msmith_ has joined #ruby
<shevy> mary5030 looks like a hash
<shevy> >> {}.map
<eval-in> shevy => #<Enumerator: {}:map> (https://eval.in/179062)
<shevy> thus it should work
<centrx> QED shevy
fgo has joined #ruby
joelteon has joined #ruby
<joelteon> hi, does the therubyracer maintainer ever show up here
<shevy> lol
kaspergrubbe_ has joined #ruby
<joelteon> is that a yes
<shevy> who is the maintainer
<shevy> well you'd be asking 954 folks
<joelteon> someone called cowboyd
<shevy> 95% of them are idling
<joelteon> i wondered if he'd be really famous or something
<shevy> never heard that name before
treehug88 has joined #ruby
sigurding has quit [Quit: sigurding]
<joelteon> i mean if i asked if the guy who wrote rails was in here, you'd know who that was at least
<joelteon> oh well had to gamble
bayed has quit [Quit: Connection closed for inactivity]
<shevy> yeah
chipotle has quit [Quit: cya]
<shevy> but DHH does not come here
<joelteon> good
<shevy> we are too low for him
<joelteon> thank god
<joelteon> ok i will file an issue instead then :(
huddy has joined #ruby
<joelteon> no instant gratification for me
<shevy> \o/
beef-wellington has quit [Ping timeout: 255 seconds]
<huddy> does anyone have experience with connecting to cisco devices with ruby?
chipotle has joined #ruby
kenneth has joined #ruby
<mary5030> shevy: and eval-in i get this undefined method `map' for #<Connexion::Response:0x000000044a5908>
<shevy> I only know how to use vpnc - other than that I don't know a thing about cisco
<shevy> mary5030 ok so you have a specialized class there
cocotton has quit [Remote host closed the connection]
anarang has quit [Quit: Leaving]
<jhass> mary5030: now look up the docs for that class
cocotton has joined #ruby
<mary5030> thanks
<huddy> shevy: okay. I just need something to be able to get a connection and be able to throw commands at it and gets results back!
iceden has joined #ruby
<shevy> huddy if it works from the commandline then you can work with ruby too
einarj has quit [Ping timeout: 264 seconds]
Takle has joined #ruby
<shevy> result = `awesome_cisco_command_here some_params`
msmith_ has quit [Ping timeout: 272 seconds]
pydave6367 has quit [Quit: leaving]
<shevy> perhaps there are even gems for that
<shevy> :(
<shevy> last update 2009
<huddy> Yeah.. it doesn't work and it doesn't error :(
<huddy> I tried it
Fire-Dragon-DoL has joined #ruby
<shevy> hehe
<shevy> people in 2009 were very noob
ta has joined #ruby
<centrx> We have made so many accomplishments since then
wallerdev has joined #ruby
<centrx> no more war in Iraq or violence in the middle east
<centrx> no more economic problems
InfraRuby has left #ruby [#ruby]
cocotton_ has joined #ruby
cocotton_ has quit [Remote host closed the connection]
chipotle has quit [Ping timeout: 244 seconds]
<lagweezle> Erm..?
endash has quit [Quit: endash]
kenneth has quit [Ping timeout: 255 seconds]
Matadoer has quit [Remote host closed the connection]
cocotton_ has joined #ruby
cocotton has quit [Ping timeout: 260 seconds]
timonv_ has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
wallerdev has quit [Client Quit]
endash has joined #ruby
hamakn_ has quit [Ping timeout: 240 seconds]
mars__ has joined #ruby
superscott[8] has joined #ruby
nanoyak has joined #ruby
xargoon has quit [Ping timeout: 272 seconds]
mechanicalduck has joined #ruby
krisquigley has quit [Remote host closed the connection]
<mechanicalduck> hi
<mechanicalduck> So I want that the ruby open(...) method reads everything into a string variable, is that possible?
mark_locklear has quit [Ping timeout: 255 seconds]
<centrx> mechanicalduck, IO#read
Norrin has joined #ruby
<apeiros> IO::read even
beef-wellington has joined #ruby
renderful has quit [Remote host closed the connection]
mattmcclure has joined #ruby
* apeiros prefers File::read in case it is a file (same method really, since File inherits from IO)
saarinen has joined #ruby
wallerdev has joined #ruby
renderful has joined #ruby
kquig has joined #ruby
byteddown has quit []
p4sh4 has joined #ruby
<alpha123> ^ more detailed to the reader though
Danibal has quit [Remote host closed the connection]
momomomomo has joined #ruby
InfraRuby has joined #ruby
msmith_ has joined #ruby
Wolland has joined #ruby
renderful has quit [Remote host closed the connection]
renderful has joined #ruby
timonv_ has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dumdedum has quit [Quit: foo]
^42 is now known as Snowstormer
nanoyak has quit [Quit: Computer has gone to sleep.]
kenneth has joined #ruby
ParanoidSpiff has joined #ruby
ParanoidSpiff has quit [Read error: Connection reset by peer]
<mechanicalduck> right
root3d has quit [Ping timeout: 250 seconds]
<mechanicalduck> thanks
ParanoidSpiff has joined #ruby
iamjarvo has joined #ruby
michaeldeol has joined #ruby
Wolland has quit [Ping timeout: 255 seconds]
ParanoidSP has quit [Ping timeout: 260 seconds]
amacou has quit [Remote host closed the connection]
pietr0 has joined #ruby
wallerdev has quit [Ping timeout: 260 seconds]
philcrissman has joined #ruby
fschuindt has joined #ruby
mark_locklear has joined #ruby
jheg has joined #ruby
Norrin has quit [Ping timeout: 240 seconds]
nanoyak has joined #ruby
beneggett has joined #ruby
Asher has quit [Quit: Leaving.]
alekst has joined #ruby
noop has joined #ruby
barhum2013 has quit [Quit: barhum2013]
awc737 has joined #ruby
maestrojed has joined #ruby
craigp has joined #ruby
awc737 has joined #ruby
philcrissman has quit [Ping timeout: 264 seconds]
<jokke> hi
<jokke> can i pass build options to gem install?
wald0 has joined #ruby
wjimenez5271 has joined #ruby
root3d has joined #ruby
<jokke> i need to specify an option for native extensions of a gem to build
cybercix has quit [Read error: Connection reset by peer]
lw has joined #ruby
arup_r has joined #ruby
MartinCleaver has quit [Quit: MartinCleaver]
Norrin has joined #ruby
Ankhers has quit [Ping timeout: 264 seconds]
nat2610 has joined #ruby
<huddy> I think need to use expect over ssh for cisco devices. it basically get's stuck on prompts.
<shevy> eam knows
<huddy> any ideas?
<huddy> what I could use
<shevy> is expect ruby
kuzushi has quit [Ping timeout: 264 seconds]
<eam> jokke: it kinda depends on the gem, sometimes setting CFLAGS/LDFLAGS will do it
<huddy> not sure
<shevy> huddy you can also build up commands via ruby popen
obscured has quit [Quit: leaving]
GriffinHeart has quit [Remote host closed the connection]
<shevy> eam I thought it does not work?
craigp has quit [Remote host closed the connection]
<eam> it depends on what the gem does in extconf.rb
JohnFord has joined #ruby
craigp has joined #ruby
ParanoidSP has joined #ruby
ParanoidSP has quit [Changing host]
ParanoidSP has joined #ruby
<eam> jokke: what gem, what options?
<huddy> shevy: i'll have a look thanks
<eam> shevy: the real rub is when bundler is in the picture, or quoting issues with certain kinds of paths
ParanoidSpiff has quit [Ping timeout: 246 seconds]
<jokke> eam: ruby-password
<shevy> ah I'd never know, bundler always hated me so I responded in kind
claymore has joined #ruby
<jokke> options is --with-crack-dict
<jokke> *option
<shevy> --with-crack-head ?
<jokke> !rimshot
alexju has quit [Remote host closed the connection]
alexju has joined #ruby
<jokke> i know bundler can do this
<shevy> bundler is awesome
<jokke> but i'm installing the gem globally
<shevy> in the morning in brings you flowers, in the evening in cooks you dinner
amrtnz has joined #ruby
<jokke> eam?
jamto11 has quit [Remote host closed the connection]
awc737_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamto11 has joined #ruby
<amrtnz> hi, is this channel also for RoR discussion?
<jokke> amrtnz: no
<jokke> amrtnz: #RubyOnRails
<amrtnz> alright thanks
amrtnz has left #ruby [#ruby]
<alpha123> I wish people didn't automatically assume Ruby = RoR :|
awc737 has quit [Ping timeout: 264 seconds]
Kricir has joined #ruby
<eam> jokke: like gem install ruby-password -- --with-crack-dict=/whatever?
spastorino has joined #ruby
<jokke> alpha123: you mean ==
<jokke> :3
<jokke> aaah
<jokke> --
<jokke> ok thanks
alexju has quit [Ping timeout: 272 seconds]
<eam> gem options are ... not my favorite
Kricir has quit [Read error: Connection reset by peer]
<alpha123> jokke: It happens to the best of us :P
InfraRuby has left #ruby [#ruby]
rdavila has quit [Quit: rdavila]
carraroj has joined #ruby
djbkd has joined #ruby
szuletett has quit [Read error: Connection reset by peer]
jamto11 has quit [Ping timeout: 246 seconds]
szuletett has joined #ruby
yetanotherdave has joined #ruby
<jokke> alpha123: thats why you see stuff like this in c all the time: if (3 == myvar) { ... }
djbkd has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
<alpha123> jokke: Yoda conditionals?
<jokke> yeah :)
lolmaus has quit [Ping timeout: 250 seconds]
mars__ has quit [Quit: Leaving]
<eam> or you can just disable assignments in conditionals
Hobogrammer has joined #ruby
frankle has quit [Quit: Connection closed for inactivity]
barhum2013 has joined #ruby
postmodern has joined #ruby
seamon has joined #ruby
andrewjanssen has quit [Remote host closed the connection]
kquig has quit [Remote host closed the connection]
icole has joined #ruby
alexju has joined #ruby
chrishough has quit [Quit: chrishough]
Norrin has quit [Max SendQ exceeded]
carraroj has quit [Ping timeout: 272 seconds]
yetanotherdave has quit [Ping timeout: 255 seconds]
Norrin has joined #ruby
hellangel7 has quit [Read error: Connection reset by peer]
CorpusCallosum has joined #ruby
Zenigor has quit [Remote host closed the connection]
djbkd has joined #ruby
jheg has quit [Quit: jheg]
rageberry has quit [Ping timeout: 245 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
ponch_ has quit [Ping timeout: 260 seconds]
aaronrl has quit [Quit: Leaving]
rageberry has joined #ruby
shinobi_one has joined #ruby
mike32 has quit [Quit: Leaving]
bMalum has joined #ruby
Zenigor has joined #ruby
cyan has joined #ruby
mercwithamouth has joined #ruby
cy is now known as Guest93006
Aaaal has quit [Quit: Aaaal]
cyan is now known as cy
InfraRuby has joined #ruby
LBRapid has quit [Quit: ZNC - http://znc.sourceforge.net]
p4sh4 has quit [Remote host closed the connection]
Wolland has joined #ruby
amystephen has joined #ruby
jheg has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aaronrl has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
kirun has joined #ruby
szuletett has quit [Ping timeout: 245 seconds]
St_Marx has joined #ruby
nobitanobi has joined #ruby
<nobitanobi> What a joy. The well groundest Ruby 2nd edition
<nobitanobi> *rubyist
LBRapid has joined #ruby
tectonic has joined #ruby
tectonic has quit [Max SendQ exceeded]
mr_snowf1ake has quit [Quit: Leaving]
CJD14___ has quit [Read error: Connection reset by peer]
jottr_ is now known as jottr
tylerkern has joined #ruby
CJD14___ has joined #ruby
chrishough has joined #ruby
tectonic has joined #ruby
tectonic has quit [Client Quit]
tjr9898 has quit [Remote host closed the connection]
tectonic has joined #ruby
terrell_t has joined #ruby
tjr9898 has joined #ruby
saarinen has quit [Quit: saarinen]
anaeem1_ has quit [Read error: Connection reset by peer]
anaeem1_ has joined #ruby
omosoj has quit [Ping timeout: 245 seconds]
omosoj has joined #ruby
DrShoggoth has quit [Ping timeout: 250 seconds]
Zenigor has quit [Remote host closed the connection]
jprovazn_afk is now known as jprovazn
saarinen has joined #ruby
root3d has quit [Ping timeout: 272 seconds]
<tectonic> Is anyone aware of an open source engine for sending out-bound webhooks? Something we HTTP retries, logging of request / response, etc.
yfeldblum has joined #ruby
DrShoggoth has joined #ruby
Norrin has quit [Ping timeout: 240 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Zenigor has joined #ruby
Norrin has joined #ruby
bMalum has quit [Read error: Connection reset by peer]
bMalum has joined #ruby
terrellt has quit [Ping timeout: 264 seconds]
veleno has quit [Ping timeout: 246 seconds]
<mechanicalduck> hi
tjr9898 has quit [Ping timeout: 244 seconds]
michaeldeol has joined #ruby
bMalum_ has joined #ruby
<mechanicalduck> So that parse tree, is it a hash or an array or both of it?
<mechanicalduck> Or a collection of objects?
momomomomo has quit [Quit: momomomomo]
saarinen has quit [Client Quit]
<nobitanobi> mechanicalduck: that is an Array
bMalum_ has quit [Read error: Connection reset by peer]
bMalum_ has joined #ruby
jamto11 has joined #ruby
<nobitanobi> An Array of Hashes.
craigp has quit [Remote host closed the connection]
bMalum has quit [Read error: Connection reset by peer]
<mechanicalduck> nobitanobi: How can I access the hashes?
thams has joined #ruby
Takle has joined #ruby
<mechanicalduck> I tried it using tree[0], but I get nothing then
treehug88 has quit [Ping timeout: 272 seconds]
Asher has joined #ruby
<jhass> maybe it only pretends to be an array
<jhass> do you have pry?
yfeldblum has quit [Ping timeout: 255 seconds]
MartinCleaver has joined #ruby
havenwood has joined #ruby
mikepack has joined #ruby
<nobitanobi> mechanicalduck: works for me
yetanotherdave has joined #ruby
root3d has joined #ruby
mikepack_ has joined #ruby
mikepack has quit [Remote host closed the connection]
ParanoidSpiff has joined #ruby
<mechanicalduck> ah
<mechanicalduck> OK, other question, not sure if this work
bMalum_ has quit [Read error: Connection reset by peer]
<mechanicalduck> I want to recursively traverse a custom array/hash structure, but starting at its leaves, not at the root
treehug88 has joined #ruby
bMalum__ has joined #ruby
<eam> do you start with a pointer to the leaves?
momomomomo has joined #ruby
<eam> if not, how will you start there?
threesixes has joined #ruby
<mechanicalduck> right
bMalum___ has joined #ruby
<mechanicalduck> I got no pointer, so I have to start at the root
bMalum__ has quit [Read error: Connection reset by peer]
* mechanicalduck quacks
<eam> mechanicalduck: but you can do whatever your operation is after the traversal
ParanoidSP has quit [Ping timeout: 240 seconds]
renderful has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 255 seconds]
<TieSoul> how do I reference the current instance of a class within an instance method?
<TieSoul> self does not seem to work
<eam> def traverse(node) traverse(node.children); action_here(); end
saarinen has joined #ruby
renderful has joined #ruby
coldkey21 has quit [Quit: Leaving]
<centrx> TieSoul, self should do it
<jhass> TieSoul: self does work
sambao21 has joined #ruby
<TieSoul> huh
bMalum___ has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
bMalum___ has joined #ruby
<TieSoul> thanks I guess
tjr9898 has joined #ruby
ParanoidSpiff has quit [Ping timeout: 246 seconds]
<centrx> TieSoul, Maybe if you showed some code
<TieSoul> nevermind I figured it out
<TieSoul> was doing it wrong
anaeem1_ has quit [Remote host closed the connection]
<centrx> Good work team
niklasb has joined #ruby
ssvo has quit [Ping timeout: 264 seconds]
cy has quit [Quit: brb]
Guest93006 has quit [Quit: :q!]
anaeem1_ has joined #ruby
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
momomomomo_ has joined #ruby
obscured has joined #ruby
cy has joined #ruby
wald0 has quit [Ping timeout: 260 seconds]
anaeem___ has joined #ruby
anaeem1_ has quit [Read error: Connection reset by peer]
renderful has quit [Ping timeout: 244 seconds]
zorak has joined #ruby
hamakn has quit [Ping timeout: 245 seconds]
craigp has joined #ruby
Xeago has quit [Remote host closed the connection]
momomomomo has quit [Ping timeout: 260 seconds]
momomomomo_ is now known as momomomomo
ssvo has joined #ruby
<TieSoul> I'm making an interpreter for http://esolangs.org/wiki/SNUSP btw :P
krz has quit [Quit: WeeChat 0.4.3]
amacou has joined #ruby
terrell_t has quit [Read error: Connection reset by peer]
anaeem1_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
ParanoidSP has joined #ruby
terrellt has joined #ruby
sdwrage has joined #ruby
anaeem___ has quit [Ping timeout: 255 seconds]
anaeem1_ has quit [Read error: Connection reset by peer]
anaeem1 has joined #ruby
jobewan has quit [Ping timeout: 260 seconds]
terrellt has quit [Remote host closed the connection]
anaeem1 has quit [Read error: Connection reset by peer]
timonv_ has joined #ruby
sdwrage_ has joined #ruby
anaeem1_ has joined #ruby
krisquigley has joined #ruby
terrellt has joined #ruby
sambao21 has joined #ruby
bMalum___ has quit [Read error: Connection reset by peer]
bMalum____ has joined #ruby
Takle has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
amacou has quit [Ping timeout: 244 seconds]
sdwrage has quit [Ping timeout: 245 seconds]
Rahul_Roy has joined #ruby
awc737_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anaeem1_ has quit [Ping timeout: 240 seconds]
Sauvin has quit [Read error: Connection reset by peer]
JohnFord has joined #ruby
jackjackdrpr has joined #ruby
Danibal has joined #ruby
InfraRuby has left #ruby [#ruby]
pwned has quit [Quit: Lost terminal]
seamon has quit [Quit: Zzzzzzz]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
doodlehaus has quit [Remote host closed the connection]
lw has quit [Quit: s]
alphabet has joined #ruby
Takle has joined #ruby
yokel has quit [Ping timeout: 245 seconds]
bMalum_____ has joined #ruby
Pumukel has joined #ruby
wallerdev has joined #ruby
bMalum____ has quit [Read error: Connection reset by peer]
Danibal has quit [Client Quit]
ssvo has quit [Ping timeout: 240 seconds]
Danibal has joined #ruby
Vile` has quit [Ping timeout: 255 seconds]
dawkirst_ has quit [Remote host closed the connection]
AlexRussia has quit [Ping timeout: 250 seconds]
yokel has joined #ruby
kith_ has joined #ruby
doodlehaus has joined #ruby
ItSANg___ has joined #ruby
dawkirst has joined #ruby
_cpt_yossarian_ has joined #ruby
ssvo has joined #ruby
AlSquirrel has joined #ruby
anaeem1_ has joined #ruby
ItSANg___ has quit [Read error: Connection reset by peer]
nynex2 has joined #ruby
asteve_ has joined #ruby
ParanoidSpiff has joined #ruby
ParanoidSpiff has quit [Read error: Connection reset by peer]
ParanoidSP has quit [Read error: Connection reset by peer]
ItSANgo__ has joined #ruby
craigp_ has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
starkhalo has joined #ruby
coldkey21 has joined #ruby
shinobi_one_ has joined #ruby
antonishen_ has joined #ruby
freerobby1 has joined #ruby
kith has quit [Disconnected by services]
sepp2k_ has joined #ruby
AlexRussia has joined #ruby
kith_ is now known as kith
Rennex_ has joined #ruby
localredhead has joined #ruby
r0bby_ has joined #ruby
Vile` has joined #ruby
Kricir has joined #ruby
harshjha_ has joined #ruby
it_tard has joined #ruby
johnmlocklear_ has joined #ruby
Coolhand has joined #ruby
spyderman4g63 has joined #ruby
anaeem1_ has quit [Ping timeout: 244 seconds]
mrrcp_ has joined #ruby
davispuhh has joined #ruby
graft__ has joined #ruby
Dreamer3__ has joined #ruby
chihhsin_ has joined #ruby
micah`_ has joined #ruby
dacamp_ has joined #ruby
M-Techni1 has joined #ruby
mikepack_ has quit [Remote host closed the connection]
localredhead has quit [Client Quit]
spider-mario_ has joined #ruby
bradleyprice has quit [Remote host closed the connection]
root3d has quit [Remote host closed the connection]
banister has joined #ruby
sn0wb1rdz has joined #ruby
razum2um has joined #ruby
bradleyprice has joined #ruby
chrishough_ has joined #ruby
spider-mario has quit [Disconnected by services]
spider-mario_ is now known as spider-mario
Coolhand has quit [Client Quit]
Coolhand has joined #ruby
x1337807x has joined #ruby
jobewan has joined #ruby
craigp has quit [*.net *.split]
shinobi_one has quit [*.net *.split]
mark_locklear has quit [*.net *.split]
freerobby has quit [*.net *.split]
dorei has quit [*.net *.split]
ValicekB has quit [*.net *.split]
asteve has quit [*.net *.split]
davispuh has quit [*.net *.split]
banisterfiend has quit [*.net *.split]
AntelopeSalad has quit [*.net *.split]
Dreamer3 has quit [*.net *.split]
nfk has quit [*.net *.split]
gr33n7007h has quit [*.net *.split]
zastern has quit [*.net *.split]
chihhsin has quit [*.net *.split]
urtokk has quit [*.net *.split]
robbyoconnor has quit [*.net *.split]
qhartman has quit [*.net *.split]
Snowstormer has quit [*.net *.split]
sn0wb1rd has quit [*.net *.split]
kaichanvong has quit [*.net *.split]
dacamp has quit [*.net *.split]
chrishough has quit [*.net *.split]
AlSquire has quit [*.net *.split]
theharshest has quit [*.net *.split]
starkhallo has quit [*.net *.split]
sepp2k has quit [*.net *.split]
Mon_Ouie has quit [*.net *.split]
ItSANgo has quit [*.net *.split]
graft_ has quit [*.net *.split]
_0xf_ has quit [*.net *.split]
micah` has quit [*.net *.split]
cpt_yossarian has quit [*.net *.split]
Sou|cutter has quit [*.net *.split]
Rennex has quit [*.net *.split]
antonishen has quit [*.net *.split]
niharvey has quit [*.net *.split]
Liothen has quit [*.net *.split]
mrrcp has quit [*.net *.split]
M-Technic has quit [*.net *.split]
GGMethos has quit [*.net *.split]
Trynemjoel has quit [*.net *.split]
snapcase has quit [*.net *.split]
digifiv5e has quit [*.net *.split]
Mikalv has quit [*.net *.split]
sn0wb1rdz is now known as sn0wb1rd
shinobi_one_ is now known as shinobi_one
chrishough_ is now known as chrishough
banister has quit [Client Quit]
Coolhand has quit [Remote host closed the connection]
digifiv5e_ has joined #ruby
dacamp_ is now known as dacamp
tylerkern has quit [Read error: Connection reset by peer]
bradleyprice has quit [Ping timeout: 245 seconds]
tylerkern has joined #ruby
dorei has joined #ruby
sepp2k_ has quit [Quit: Konversation terminated!]
antonishen_ is now known as antonishen
ItSANgo__ has quit [Read error: Connection reset by peer]
momomomomo has quit [Ping timeout: 262 seconds]
justas has joined #ruby
ItSANgo has joined #ruby
niharvey has joined #ruby
britneywright has joined #ruby
kaichanvong has joined #ruby
<ght> Question: I have a string, appointment_start, that is returned by an API with a default-formatted time value. I also have the user's timezone stored in type ActiveSupport::TimeZone.
<ght> usertimezone.now.formatted_offset returns the exact UTC offset that I need to apply to the hour field in the appointment time, as seen here: https://gist.github.com/anonymous/f38977c43574dff774c4
zastern has joined #ruby
antonishen has quit []
<ght> I've been working on this off and on for a few days, researching a variety of Time, DateTime, and TimeZone methods, as well as string splitting. Can any of you recommend the best method for performing this task?
antonishen has joined #ruby
zoo-zed has joined #ruby
urtokk has joined #ruby
gr33n7007h has joined #ruby
georgelappies has joined #ruby
AntelopeSalad has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
georgelappies has quit [Remote host closed the connection]
georgelappies has joined #ruby
ValicekB_ has joined #ruby
GGMethos has joined #ruby
niharvey has quit [Ping timeout: 260 seconds]
qhartman has joined #ruby
<ght> Anyone?
Sou|cutter has joined #ruby
MartinCleaver has quit [Quit: MartinCleaver]
Trynemjoel has joined #ruby
ValicekB_ is now known as ValicekB
dawkirst has quit [Remote host closed the connection]
Liothen has joined #ruby
Liothen has quit [Changing host]
Liothen has joined #ruby
dawkirst has joined #ruby
<centrx> ght, I would assume the best practice is to convert the time zone
<centrx> ght, Otherwise, you can do things in Rails/ActiveSupport like: Time.now + 5.hours
rezzack has quit [Quit: Leaving.]
MatthewsFace has joined #ruby
momomomomo has joined #ruby
Kricir has quit [Ping timeout: 260 seconds]
aclearman037 has joined #ruby
timonv_ has joined #ruby
niharvey has joined #ruby
niharvey has quit [Read error: Connection reset by peer]
benzrf|offline is now known as benzrf
<centrx> ght, Also #rubyonrails for Rails
bMalum______ has joined #ruby
cocotton_ has quit [Remote host closed the connection]
bMalum_____ has quit [Read error: Connection reset by peer]
siukit2014 has joined #ruby
<nobitanobi> people, any of you guys have experience with template systems? I am trying to find one that would let me dynamically modify the template (a user could be able to do so). I have found Liquid.
cocotton has joined #ruby
einarj has joined #ruby
St_Marx has quit [Quit: Ex-Chat]
alphabet has quit [Quit: Lingo - http://www.lingoirc.com]
<ght> centrx: This is straight Ruby code, I"m just leveraging ActiveSupport methods to try to get this done.
bMalum______ has quit [Read error: Connection reset by peer]
cocotton_ has joined #ruby
cocotton_ has quit [Remote host closed the connection]
<ght> Not a rails project.
bMalum______ has joined #ruby
cocotton has quit [Read error: Connection reset by peer]
cocotton has joined #ruby
<ght> centrx: Convert the time zone? Example?
<waxjar> nobitanobi: Mustache is a generic templating engine, doesn't use any Ruby code to display lists and stuff
<ght> Part of the issue is, I can't seem to determine how to assign that apointment_start string to a Time object.
<ght> Otherwise yes, I would use the Time methods.
<nobitanobi> waxjar: alright, let's take a look at that one :)
<nobitanobi> waxjar: thanks
AlexRussia has quit [Ping timeout: 246 seconds]
ssvo has quit [Ping timeout: 250 seconds]
AlexRussia has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
St_Marx has joined #ruby
joelteon has left #ruby ["bye"]
einarj has quit [Ping timeout: 250 seconds]
Snowstormer has joined #ruby
chrishough has quit [Quit: chrishough]
phutchin1 has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anaeem1_ has joined #ruby
toastynerd has quit [Remote host closed the connection]
anaeem1_ has quit [Read error: Connection reset by peer]
starless has joined #ruby
coellobranco has quit [Quit: http://www.juanantoniomosquera.com]
anaeem1 has joined #ruby
ssvo has joined #ruby
phutchins has quit [Ping timeout: 245 seconds]
Mattx has joined #ruby
krisquigley has quit [Remote host closed the connection]
ghostmoth has quit [Quit: ghostmoth]
michaeldeol has joined #ruby
krisquigley has joined #ruby
doev has quit [Quit: Verlassend]
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
acrussell has left #ruby [#ruby]
jsodini has joined #ruby
michaeldeol has quit [Client Quit]
philcrissman has joined #ruby
bMalum______ has quit [Quit: Computer has gone to sleep.]
zorak has quit [Read error: Connection reset by peer]
bMalum______ has joined #ruby
anaeem1 has quit [Ping timeout: 272 seconds]
sambao21 has joined #ruby
ssvo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rennex_ is now known as Rennex
tectonic has quit []
philcrissman has quit [Ping timeout: 272 seconds]
tjr9898 has quit [Remote host closed the connection]
bMalum______ has quit [Ping timeout: 244 seconds]
momomomomo has quit [Quit: momomomomo]
pandaant has joined #ruby
tjr9898_ has joined #ruby
chrishough has joined #ruby
main has joined #ruby
pandaant has quit [Remote host closed the connection]
justas has quit [Read error: Connection reset by peer]
beef-wellington has quit [Ping timeout: 246 seconds]
niharvey has joined #ruby
niharvey has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
<main> Hi. How to import "Containers::RubyDeque" ? It my seem a silly question but I really can't find the answer.
freerobby1 has quit [Quit: Leaving.]
pandaant has joined #ruby
michaeldeol has joined #ruby
aspires has quit []
barhum2013 has quit [Quit: barhum2013]
sepp2k has joined #ruby
diegoviola has joined #ruby
diegoviola has joined #ruby
<centrx> main, What do you mean by import?
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rdavila has joined #ruby
<main> centrx: make me able to create a _Containters::Deque_ object
krisquigley has quit [Remote host closed the connection]
<main> centrx: by using _Containers::Deque.new_
emmesswhy has quit [Quit: Leaving]
georgelappies has quit [Read error: Connection reset by peer]
barhum2013 has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
snapcase has joined #ruby
<main> centrx: thanks
closer has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mbwe has quit [Quit: WeeChat 0.4.2]
beneggett has joined #ruby
renderful has joined #ruby
babykosh has joined #ruby
Photism has quit [Quit: Leaving]
tylerkern has joined #ruby
closer has joined #ruby
krisquigley has joined #ruby
krisquigley has quit [Remote host closed the connection]
krisquigley has joined #ruby
dEPy has joined #ruby
justas has joined #ruby
<justas> what does it mean(code): value = 1 << 64
<centrx> justas, "bitshift operator"
ramin has joined #ruby
barhum2013 has quit [Quit: barhum2013]
<justas> thank you
ramin has left #ruby [#ruby]
justas_ has joined #ruby
beef-wellington has joined #ruby
bMalum______ has joined #ruby
bMalum______ has quit [Client Quit]
<ght> Anyone have any idea regarding this issue? https://gist.github.com/anonymous/f38977c43574dff774c4
<jhass> justas: also operators are methods in ruby, you can look them up in the docs for the classes they're called on, in this instance: http://ruby-doc.org/core-2.1.1/Fixnum.html#method-i-3C-3C
momomomomo has joined #ruby
djbkd has quit [Remote host closed the connection]
craigp_ has quit []
<ght> Simply need to somehow add the UTC offset to the hour field in a string. Happy to convert the string to another type, then back to string, as needed.
flak has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
codecop has quit [Remote host closed the connection]
<centrx> ght, Use Time.strptime(str, str_format) to convert the string into a Time
benzrf is now known as benzrf|offline
<ght> centrx: interesting, will give that a shot, thank you.
mikepack has joined #ruby
Takle has quit [Remote host closed the connection]
MartinCleaver has joined #ruby
<centrx> ght, The documentation for which string formatting characters to use is under the docs for strftime, http://www.ruby-doc.org/core-2.1.2/Time.html#method-i-strftime
babykosh has quit [Quit: babykosh]
craigbowen3 has joined #ruby
<centrx> ght, There might be a pre-set combination you can use if "2014-08-08T17:00:00Z" is a standard format, but sometimes those are hard to find
<ght> ok, reviewing.
ponch_ has joined #ruby
TieSoul has quit [Read error: Connection reset by peer]
thams has quit [Quit: thams]
JoshGlzBrk has joined #ruby
coca_rails has joined #ruby
mikepack_ has joined #ruby
JoshGlzBrk has quit [Client Quit]
TieSoul has joined #ruby
mikepack has quit [Ping timeout: 260 seconds]
<ght> centrx: But here's the thing. According to that documentation, Time.strftime is going to simply return a string based on inserted parameters, not return a Time object that I can then use to add the timezone UTC offset to the hour field.
diegoviola has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
davedev24_ has quit []
anarang has joined #ruby
seamon has joined #ruby
anarang has quit [Client Quit]
momomomomo has quit [Quit: momomomomo]
amacou has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<centrx> ght, strptime vs strftime
<ght> ahh
<centrx> ght, P for Parse, F for Format
<ght> I see, thank you.
ti-wali has joined #ruby
Takle has joined #ruby
decoponio has quit [Quit: Leaving...]
amacou has quit [Ping timeout: 264 seconds]
Kricir has joined #ruby
dserodio has joined #ruby
sambao21 has joined #ruby
soulcake has quit [Quit: Quack.]
<dserodio> I'm trying to troubleshoot a build problem, and I'm a Ruby newbie. When I run "bundle install", it creates vendor/bundle/ruby/2.1.0 but I'm running Ruby 2.1.1. Could this be a problem?
Mattx has quit [Quit: Leaving]
alvaro_o has joined #ruby
soulcake has joined #ruby
<mechanicalduck> hi
willbarrettdev has quit [Quit: Leaving]
<mechanicalduck> How can I escape a given string in ruby to be used as file name?
Kricir has quit [Ping timeout: 240 seconds]
nat2610 has quit [Quit: Leaving.]
Vivekananda_y510 has joined #ruby
renderfu_ has joined #ruby
jimms has quit []
<havenwood> dserodio: That's expected.
<dserodio> ok, thanks havenwood
<havenwood> dserodio: all the 2.1s can share the same gems
Vivekananda_y510 has quit [Max SendQ exceeded]
alekst has quit [Quit: Computer has gone to sleep.]
nat2610 has joined #ruby
skaflem has quit [Quit: Leaving]
charliesome has joined #ruby
sigurding has joined #ruby
renderful has quit [Ping timeout: 255 seconds]
emmesswhy has joined #ruby
cocotton has quit [Remote host closed the connection]
cocotton has joined #ruby
dawkirst has quit [Remote host closed the connection]
cocotton_ has joined #ruby
cocotton_ has quit [Remote host closed the connection]
paulfm has quit []
cocotton has quit [Read error: Connection reset by peer]
toastynerd has joined #ruby
cocotton has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aspires has joined #ruby
cmoneylulz has joined #ruby
qwyeth has quit [Ping timeout: 240 seconds]
r0bby_ has quit [Excess Flood]
r0bby_ has joined #ruby
paulfm has joined #ruby
<mechanicalduck> centrx: hm, this would escape it for shell use. I want to use it as a file name, so it must be escaped/sanitized for IO/file system.
sigurding has quit [Ping timeout: 240 seconds]
niharvey has joined #ruby
Sleepee has joined #ruby
beneggett has joined #ruby
x1337807x has joined #ruby
timonv_ has quit [Remote host closed the connection]
ssvo has joined #ruby
spyderman4g63 has quit []
sigurding has joined #ruby
CorpusCallosum has quit [Ping timeout: 240 seconds]
barhum2013 has joined #ruby
craigbowen3 has quit [Ping timeout: 250 seconds]
szuletett has joined #ruby
justas has quit [Read error: Connection reset by peer]
justas has joined #ruby
infinitone has joined #ruby
havenwood has quit [Remote host closed the connection]
krisquigley has quit [Remote host closed the connection]
main has quit [Quit: WeeChat 0.4.3]
<jhass> mechanicalduck: that depends on your file system, most file systems today can handle UTF-8 file names though
banister has joined #ruby
<jhass> so what chars do you think you need to escape?
<jhass> or replace rather
dEPy has quit [Quit: Lingo - http://www.lingoirc.com]
<mechanicalduck> For example ':'
_cpt_yossarian_ has quit [Quit: Leaving]
Striki has left #ruby [#ruby]
cpt_yossarian has joined #ruby
qwyeth has joined #ruby
<eam> in general, unix filesystems can use any characters other than / or \0
alexju has quit [Remote host closed the connection]
noop has quit [Ping timeout: 245 seconds]
<eam> they largely deal in bytes, not encodings
arup_r has quit [Quit: Leaving.]
<eam> i should say any bytes other than
alexju has joined #ruby
<eam> there are a few exceptions, like I think jfs may have been encoding aware
ItSANgo has quit [Quit: Leaving...]
seamon has quit [Quit: Zzzzzzz]
freerobby has joined #ruby
<coca_rails> Hey all im considering using Constellio or Blacklight as a full-text search tool. Any other/better suggestions?
<jhass> anyway, : is not a problem
r0bby_ has quit [Read error: Connection reset by peer]
CorpusCallosum has joined #ruby
rezzack has joined #ruby
r0bby_ has joined #ruby
ptrrr has quit [Quit: ptrrr]
icole has quit [Remote host closed the connection]
alexju has quit [Ping timeout: 264 seconds]
shredding has joined #ruby
<mechanicalduck> hi again
jerius has joined #ruby
<mechanicalduck> I want to use ruby erb templates (stand alone) and I can pass bindings to it.
<mechanicalduck> So a binding is a ruby hash?
<mechanicalduck> Because it doesn't like the hash I pass to it.
Xeago has joined #ruby
awc737 has joined #ruby
cmoneylulz has quit [Quit: WeeChat 0.4.2]
jerius has quit [Client Quit]
cmoneylulz has joined #ruby
bradleyprice has joined #ruby
msmith_ has quit [Remote host closed the connection]
ItSANgo has joined #ruby
<jhass> No, Binding is an object that represents and provides access to a scope in ruby. You can get a Binding instance for the current scope with the binding method
r0bby_ has quit [Excess Flood]
r0bby_ has joined #ruby
cmoneylulz has quit [Client Quit]
peterhu has quit [Quit: kernel update]
cmoneylulz has joined #ruby
<apeiros> mechanicalduck: see Binding and Kernel#binding
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GinoMan has quit [Remote host closed the connection]
cmoneylulz has quit [Client Quit]
djbkd has joined #ruby
cmoneylulz has joined #ruby
alexju has joined #ruby
jtharris has joined #ruby
cmoneylulz has quit [Client Quit]
johnmlocklear_ has quit [Quit: Leaving]
cmoneylulz has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
ghostmoth has joined #ruby
yfeldblum has quit [Remote host closed the connection]
Zenigor has quit [Remote host closed the connection]
nanoyak has joined #ruby
yfeldblum has joined #ruby
Zenigor has joined #ruby
peterhu has joined #ruby
claymore has quit [Quit: Leaving]
djbkd has quit [Ping timeout: 246 seconds]
phutchin1 has quit [Ping timeout: 255 seconds]
cocotton has quit [Remote host closed the connection]
relix has joined #ruby
cocotton has joined #ruby
cocotton has quit [Read error: Connection reset by peer]
cocotton has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
Zenigor has quit [Ping timeout: 240 seconds]
Hobogrammer has quit [Ping timeout: 260 seconds]
dangerousdave has joined #ruby
markit has joined #ruby
cmoneylulz has quit [Quit: WeeChat 0.4.2]
TorpedoSkyline has joined #ruby
<markit> hi, not strictly ruby related but I know here there are some regular expression wizards :) I've a string like "Release 8.0.7.GA.6021.UBUNTU12.64 UBUNTU12_64 FOSS edition." and I want to extract the "8.0" (only) part, how can I do?
mijicd has joined #ruby
justas has quit [Quit: Lost terminal]
justas_ has quit [Quit: Lost terminal]
<waxjar> is the string always in that format?
<centrx> /^Release (\d\.\d)\.\d\.GA.UBUNTU/
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<markit> waxjar: yes
<markit> centrx: let me test
<centrx> there must be some definition of the different possible formats
<apeiros> I'd probably go for \d+
<waxjar> that string[8..10] might just work as well :)
<waxjar> *then
lolmaus has joined #ruby
<mechanicalduck> OK, how can I pass a simple hash to a erb template?
zorak has joined #ruby
ptrrr has joined #ruby
<markit> waxjar: lol, but version number could be 10.05 in the future
<waxjar> aye, good one :p
<mechanicalduck> The binding way requires some classes and other complicated stuff (as I could understand from the tutorials about it).
<centrx> It could also change to "Release FoxyRabbit 11.8"
<mechanicalduck> anyone?
mbwe has joined #ruby
<centrx> mechanicalduck, How are you rendering the template?
nurrb has joined #ruby
godd2 has joined #ruby
<mechanicalduck> centrx: ERB.new(template)
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<godd2> If they add Rails to the standard library, will we have to answer rails questions in here?
lolmaus has quit [Remote host closed the connection]
<jhass> won't happen godd2
Rahul_Roy has quit [Quit: Connection closed for inactivity]
<godd2> Ill put down "doesn't like vacuous premises" for jhass
seamon has joined #ruby
<shevy> invalid byte sequence in US-ASCII (ArgumentError)
<shevy> my most hated error in ruby
<markit> mm forive my ignorance, but if I have myvar='Release 8.0.7.GA.6021.UBUNTU12.64 UBUNTU12_64 FOSS edition", how can I assign to variable "secondvariable" the regexp result ?
<markit> I'm googling but can't find at the 5° try
nurrb has quit [Quit: Leaving.]
<centrx> mechanicalduck, Turns out the answer is embedded in http://ruby-doc.org/stdlib-2.1.2/libdoc/erb/rdoc/ERB.html
nurrb has joined #ruby
<centrx> mechanicalduck, You call #result and pass a "binding"
<shevy> markit do you notice something with your string
<shevy> myvar ='x"
<waxjar> markit: secondvar = myvar[/.../] ?
<markit> I've found examples like "1234567890".sub /(\d{3})(\d{3})(\d{4})/ but I get an error
<markit> shevy: just a typo here
<markit> waxjar: let's try
ARCADIVS has joined #ruby
<shevy> markit .sub replaces something, it wants a second argument
abuzze has quit [Remote host closed the connection]
<shevy> >> "123".sub(/1/,'')
<eval-in> shevy => "23" (https://eval.in/179088)
<markit> waxjar: b= a[/^Release (\d\.\d)\.\d\.GA.UBUNTU/] I get "nil"
lw has joined #ruby
abuzze has joined #ruby
<markit> shevy: oh, I see
* markit is not using ruby since too long time, I've forgot a lot
<shevy> your regex does not match markit
<shevy> >> 'Release 8.0.7.GA.6021.UBUNTU12.64 UBUNTU12_64 FOSS edition'[/^Release (\d\.\d)\.\d\.GA.UBUNTU/]
<eval-in> shevy => nil (https://eval.in/179089)
<shevy> there is rubular.com to build up a working regex btw
<shevy> I use it to go step by step until the full regex works
<markit> shevy: I need to extract the "8.0" part only
<shevy> online :)
<shevy> do you have to use a regex?
<godd2> markit you forgot to match 6021
<eam> >> 'Release 8.0.7.GA.6021.UBUNTU12.64 UBUNTU12_64 FOSS edition'[/^Release (\d\.\d)\.\d\.GA\.\d+\.UBUNTU/]
<eval-in> eam => "Release 8.0.7.GA.6021.UBUNTU" (https://eval.in/179090)
<waxjar> >> 'Release 8.0.7.GA.6021.UBUNTU12.64 UBUNTU12_64 FOSS edition'[/\d+.\d+/]
<eval-in> waxjar => "8.0" (https://eval.in/179091)
<markit> shevy: should be the most elegant thing.. the first number after "Release" and with only 2 digits
icole has joined #ruby
<shevy> hehe
<shevy> waxjar is damn fast
<godd2> Rule 1 of Regex: Know your data
Kricir has joined #ruby
<shevy> I only managed to open rubular.com and input the test string
<shevy> and waxjar is already finished :P
<shevy> *has
jprovazn has quit [Quit: Odcházím]
<markit> waxjar: perfect
<waxjar> i got a ripl session open
<markit> I really would love to be so proficient in regex...
shredding has quit [Quit: shredding]
<markit> every time I need them I urge for a solution and I've no time to learn
<godd2> markit I suggest reading Mastering Regular Expressions
<markit> sigh
<pontiki> you probably want to escape the . between the digits
<markit> godd2: I bought it, and start reading, really good book
<markit> but I've forgot what I learned :(
<godd2> Then read it again :)
<markit> I rarely need regexp
<pontiki> and practice
<markit> godd2: lol :)
<markit> I've a long long list of things I should be fluent with
<markit> in any case, thanks you all again :)
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> if you guys have a file foo.rb and need to add options like: --help or --set_base_directory /tmp
<shevy> what would you use?
Squarepy has joined #ruby
<waxjar> clap or slop
qmfnp has quit [Quit: Textual IRC Client: www.textualapp.com]
nurrb has quit [Quit: Leaving.]
<davidcelis> slap
Kricir has quit [Ping timeout: 250 seconds]
jamto11 has quit [Remote host closed the connection]
philcrissman has joined #ruby
barhum2013 has quit [Quit: barhum2013]
michaeldeol has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> lol
<shevy> don't slap my ass man
sigurding has quit [Quit: sigurding]
<shevy> I hate optparse so much
<shevy> perhaps I should try getoptlong
amclain has joined #ruby
TieSoul has quit [Read error: Connection reset by peer]
<shevy> for i in (1..repetitions)
<shevy> is this the ruby way
paulfm has quit []
r0bby_ has quit [Ping timeout: 245 seconds]
<jhass> no
<pontiki> i use methadone or thor
sailias has quit [Quit: Leaving.]
tylerkern has joined #ruby
TieSoul has joined #ruby
fschuindt has quit [Quit: Textual IRC Client: www.textualapp.com]
Kilo`byte has quit [Ping timeout: 245 seconds]
barhum2013 has joined #ruby
anaeem1 has joined #ruby
djbkd has joined #ruby
<pipework> pontiki: I use methadone too. What do you use it for?
Sleepee has quit [Remote host closed the connection]
<pontiki> writing cli apps
philcrissman has quit [Ping timeout: 260 seconds]
<pontiki> get over my perl habit
emmesswhy has quit [Quit: Leaving]
InfraRuby has joined #ruby
<pipework> pontiki: oh... that kind of methadone...
infinitone has quit [Ping timeout: 245 seconds]
<mary5030> help needed i want to do data.each do { |a| a.ip} where data is
<mary5030> {"results"=>[],
<mary5030> [{"name"=>"BleepBloop", "ip"=>"173.203.40.36", "type"=>"named_ip"}],
<mary5030> "aliases"=>
<shevy> methadone? isn't that some painkilling drug?
<pontiki> that perl crack is the pits, man
<mary5030> why can't i do do this?
<pipework> mary5030: look at map
sambao21 has quit [Quit: Computer has gone to sleep.]
<pipework> also your syntax is wrong
<waxjar> it's heroin that they sell at the pharmacy on doctor's orders i think
infinitone has joined #ruby
<pontiki> not any more
<pipework> waxjar: Actually, it's not something you can get a pharmacy.
<pontiki> morphine, maybe, but not heroin
infinitone has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<pipework> There are methodone clinics.
<shevy> ohhh pontiki is also a perl guru
<pipework> It's what they use to help get people off heroine.
<pipework> heroin too.
<godd2> I'm trying to decide how to share some code between a couple modules. I don't know which solution is considered better practice. ANyone care to take a look? https://gist.github.com/nicklink483/1ec591b5b73208f4a174
<pipework> fucking female heroes, too addicting and awesome.
<shevy> lol
<waxjar> lol
razum2um has quit [Quit: Leaving.]
<pontiki> use a mixin module
<mary5030> aliases["aliases"].map { |a| puts a.ip}
<mary5030> NoMethodError: undefined method `ip' for {"name"=>"BleepBloop", "ip"=>"173.203.40.36", "type"=>"named_ip"}:Hash
<shevy> well the word for heroine came from hero as it inspired people in a rush
<mary5030> pipework: ^
<shevy> mary5030 you have a hash there
<pipework> mary5030: that's not really related to your previous question. I suggest you spend a few minutes trying harder.
andrewjanssen has joined #ruby
<centrx> Looks like some hash to me
<shevy> and your hash contains keys which are arrays that may or may not contain another hash
anaeem1 has quit [Ping timeout: 240 seconds]
<shevy> the first thing I do when I have this is to simplify the data structure
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TorpedoSkyline has quit [Read error: Connection reset by peer]
dblessing has quit [Quit: dblessing]
<shevy> in your case you could write a small class that will have a method like .ip and will guarantee to you that your code would then work
TorpedoSkyline has joined #ruby
<jhass> godd2: is func_a actually used in another class?
<shevy> I would get rid of those arrays though
<pontiki> kinda like OpenStruct...
<shevy> "aliases"=> {"name"=>"BleepBloop", "ip"=>"173.203.40.36", "type"=>"named_ip"}
<waxjar> mary5030: you access values with hash[key], not hash.key
<shevy> yeah, OpenStruct is also good mary5030 - you can set those variables as methods
<mary5030> ah
InfraRuby has left #ruby [#ruby]
<mary5030> thanks everyone this was helpful
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bmurt has quit [Ping timeout: 240 seconds]
<shevy> mary5030 actually did before :) aliases["aliases"]
<shevy> but inside the .map mary5030 then used .ip rather than ["ip"]
omosoj has quit [Ping timeout: 244 seconds]
ti-wali has quit [Remote host closed the connection]
<mary5030> yes my bad thanks
yfeldblum has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
omosoj has joined #ruby
benlieb has joined #ruby
barhum2013 has quit [Quit: barhum2013]
MonsieurApple has joined #ruby
toertore has joined #ruby
<godd2> jhass: It depends on the function. Sometimes func_a wouldn't actually be used by CoolClass, other times it would and expects Win32 or Linux to override it. That way if someone wants to come in and make a CoolClassInterface::MacOS, they would know which methods need to do stuff.
reset has joined #ruby
<jhass> godd2: in the later case don't define it, see duck typing. Instead write docs that explain the needed interface
Xeago has quit [Remote host closed the connection]
<jhass> godd2: if it's just for one class define it in that class
<jhass> and include the os specific models in the class
<jhass> if it's used by more than one class, I'd prefer your first version
johnmoli_ has joined #ruby
<godd2> Okay but no matter what, it would be bad/awkward to include a module when you're nested inside it?
<pipework> Only if that's what you actually need.
proflonghair_ has joined #ruby
Nahra` has joined #ruby
<jhass> not too much
ramblinpeck_ has joined #ruby
axilla_ has joined #ruby
robbyoconnor has joined #ruby
fgo_ has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mechanicalduck_ has joined #ruby
daxroc__ has joined #ruby
hanikazmi_ has joined #ruby
antonishen_ has joined #ruby
huddy_ has joined #ruby
dwts has quit [Ping timeout: 250 seconds]
ballPointPenguin has quit [Ping timeout: 260 seconds]
rfv has quit [Ping timeout: 260 seconds]
elektronaut has quit [Ping timeout: 260 seconds]
mattmcclure has quit [Ping timeout: 260 seconds]
{xenomorph} has quit [Ping timeout: 260 seconds]
redondos has quit [Ping timeout: 260 seconds]
goshdarnyou has quit [Ping timeout: 260 seconds]
GGMethos has quit [Ping timeout: 260 seconds]
huddy has quit [Ping timeout: 260 seconds]
Veidit has quit [Ping timeout: 260 seconds]
daxroc_ has quit [Ping timeout: 260 seconds]
toretore has quit [Ping timeout: 260 seconds]
kaleido has quit [Ping timeout: 260 seconds]
Sammael has quit [Ping timeout: 260 seconds]
antonishen has quit [Ping timeout: 260 seconds]
fgo has quit [Ping timeout: 260 seconds]
mechanicalduck has quit [Ping timeout: 260 seconds]
johnmolina has quit [Ping timeout: 260 seconds]
jrhe has quit [Ping timeout: 260 seconds]
hanikazmi has quit [Ping timeout: 260 seconds]
lele has quit [Ping timeout: 260 seconds]
proflonghair has quit [Ping timeout: 260 seconds]
axilla has quit [Ping timeout: 260 seconds]
ramblinpeck has quit [Ping timeout: 260 seconds]
tadejm has quit [Ping timeout: 260 seconds]
jrunning has quit [Ping timeout: 260 seconds]
ggherdov has quit [Ping timeout: 260 seconds]
jinie has quit [Ping timeout: 260 seconds]
zz_LoRdToLsToI has quit [Ping timeout: 260 seconds]
leslie has quit [Ping timeout: 260 seconds]
canton7 has quit [Ping timeout: 260 seconds]
heyimwill has quit [Excess Flood]
tadejm_ has joined #ruby
jrhe_ has joined #ruby
beneggett has joined #ruby
leslie has joined #ruby
jrunning_ has joined #ruby
ballPointPenguin has joined #ruby
{xenomorph} has joined #ruby
Nahra has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 260 seconds]
Wolland has quit [Ping timeout: 260 seconds]
realDAB has quit [Ping timeout: 260 seconds]
proflonghair_ is now known as proflonghair
Tranquility_ is now known as Tranquility
dwts has joined #ruby
Veidit has joined #ruby
jinie has joined #ruby
Wolland has joined #ruby
huddy_ is now known as huddy
canton7 has joined #ruby
realDAB has joined #ruby
heyimwill has joined #ruby
antonishen_ is now known as antonishen
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
rfv has joined #ruby
GGMethos has joined #ruby
leslie has quit [Changing host]
leslie has joined #ruby
{xenomorph} has quit [Changing host]
{xenomorph} has joined #ruby
leslie is now known as Guest66249
{xenomorph} is now known as Guest66648
ramblinpeck_ is now known as ramblinpeck
Guest28629 has joined #ruby
qhartman has quit [Quit: Ex-Chat]
elektronaut has joined #ruby
mattmcclure has joined #ruby
barhum2013 has joined #ruby
ldnunes has quit [Quit: Leaving]
beef-wellington has quit [Ping timeout: 260 seconds]
Kilo`byte has joined #ruby
zz_LoRdToLsToI has joined #ruby
thams has joined #ruby
lele has joined #ruby
freerobby has quit [Quit: Leaving.]
jobewan has quit [Quit: Leaving]
andrewjanssen has quit [Quit: Leaving...]
ggherdov has joined #ruby
obscured has quit [Quit: leaving]
johnmoli_ has quit [Read error: No route to host]
Morkel has quit [Quit: Morkel]
johnmolina has joined #ruby
mikepack_ has quit [Remote host closed the connection]
superscott[8] has quit [Remote host closed the connection]
beef-wellington has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
thams has quit [Ping timeout: 250 seconds]
klaut has joined #ruby
icole has quit [Remote host closed the connection]
failshel_ has joined #ruby
Danibal has quit [Remote host closed the connection]
InfraRuby has joined #ruby
Wolland has quit [Remote host closed the connection]
mijicd has quit [Quit: leaving]
Wolland has joined #ruby
Wolland has quit [Read error: Connection reset by peer]
failshell has quit [Ping timeout: 250 seconds]
Wolland has joined #ruby
supersco_ has joined #ruby
InhalingPixels has quit [Remote host closed the connection]
supersco_ has quit [Read error: Connection reset by peer]
jackjackdrpr has quit [Ping timeout: 240 seconds]
failshel_ has quit [Ping timeout: 250 seconds]
thams has joined #ruby
superscott[8] has joined #ruby
superscott[8] has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
Pumukel has quit [Ping timeout: 245 seconds]
InhalingPixels has joined #ruby
superscott[8] has joined #ruby
momomomomo has joined #ruby
beef-wellington has quit [Ping timeout: 240 seconds]
jay__ has joined #ruby
duggiefresh has quit []
ari-_-e has quit [Read error: Connection reset by peer]
supersco_ has joined #ruby
supersco_ has quit [Read error: Connection reset by peer]
jamto11 has joined #ruby
thams_ has joined #ruby
ari-_-e has joined #ruby
superscott[8] has quit [Ping timeout: 240 seconds]
M-Techni1 is now known as M-Technic
superscott[8] has joined #ruby
thams has quit [Ping timeout: 246 seconds]
thams_ is now known as thams
superscott[8] has quit [Read error: Connection reset by peer]
spider-mario has joined #ruby
superscott[8] has joined #ruby
superscott[8] has quit [Read error: Connection reset by peer]
threesixes has quit [Ping timeout: 272 seconds]
cocotton has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jackjackdrpr has joined #ruby
cocotton has joined #ruby
superscott[8] has joined #ruby
threesixes has joined #ruby
cocotton_ has joined #ruby
chihhsin_cloud has quit [Quit: Connection closed for inactivity]
momomomomo has quit [Quit: momomomomo]
Jetchisel has joined #ruby
thams has quit [Ping timeout: 246 seconds]
pmac_ has quit [Quit: pmac_]
Neomex has quit [Quit: Leaving]
superscott[8] has quit [Ping timeout: 250 seconds]
cocotton has quit [Ping timeout: 255 seconds]
kirun has quit [Quit: Client exiting]
rdavila has quit [Quit: rdavila]
seamon has quit [Ping timeout: 260 seconds]
cocotton_ has quit [Ping timeout: 255 seconds]
momomomomo has joined #ruby
amacou has joined #ruby
icole has joined #ruby
Kilo`byte has quit [Quit: kilobyte22.de]
renderfu_ has quit [Remote host closed the connection]
Guest28629 is now known as goshdarnyou
renderful has joined #ruby
ffranz has quit [Ping timeout: 245 seconds]
abuzze_ has joined #ruby
<shevy> godd2 I like to try and be explicit in my own modules when I include them
<shevy> module Foo; module Bar; end; class Ble; end
<shevy> I might then even do a include Foo::Bar inside a second class
Kilo`byte has joined #ruby
djbkd has quit [Remote host closed the connection]
<shevy> that resides in Foo, simply because I don't like to have to think which module Bar is meant if I would do include Bar
<godd2> I ended up doing it that way. I figured it was a bit of a design choice at this level.
<lupine> I tend to root absolutely everything
<lupine> so ::Foo::Bar
<godd2> Thanks for all your input :)
thams has joined #ruby
amacou has quit [Ping timeout: 260 seconds]
<pipework> I'd have to see the code in question to get a better idea.
<godd2> My Sound::DeviceInterface expects something like Sound::DeviceInterface::Win32 to implement #open_device
britneywright has joined #ruby
renderful has quit [Ping timeout: 260 seconds]
abuzze has quit [Ping timeout: 264 seconds]
<godd2> Lemme push the code and get you a link pipework
<pipework> orsum
x1337807x has joined #ruby
msmith_ has joined #ruby
Kricir has joined #ruby
<godd2> and then in lib/sound/device_interface/win32.rb you can see an example
saarinen has quit [Quit: saarinen]
<shevy> lupine hmm isn't the leading :: ugly?
ptrrr has quit [Quit: ptrrr]
<godd2> I was playing with different ways of informing the developer
<kephra> moin - I wonder, if I could find somebody here, who takes my already compiling and working Ruby to C binding to implement Wylie transliteration for Tibetan - and moves things around in this code that its also a valid GEM, or produce a valid GEM
antonishen has quit []
nat2610 has quit [Quit: Leaving.]
andrewjanssen has joined #ruby
antonishen has joined #ruby
szuletett has quit [Ping timeout: 244 seconds]
momomomomo has quit [Quit: momomomomo]
MartinCleaver has quit [Ping timeout: 240 seconds]
rdavila has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thams has quit [Ping timeout: 240 seconds]
<kephra> http://kephra.de/src/WylieUTF8/ <- the problem: I want to keep all bindings together in one source package. Qt, GTK, Ruby, PHP, Python and Lua
MartinCleaver has joined #ruby
Sammael has joined #ruby
_5kg has quit [Ping timeout: 250 seconds]
TorpedoSkyline has joined #ruby
<kephra> so the upstream package will never become a GEM itself, I think - but it should be able to produce a GEM
saarinen has joined #ruby
<kephra> unfortunate - I have no clue about Ruby ;-)
alexju has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 255 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
<shevy> I don't quite get what you want
<shevy> you wanna end up with some .gem file?
alexju has joined #ruby
<shevy> and a user then would have to compile the bindings natively?
<shevy> (during the gem install step)
<kephra> yes
<shevy> ok
<shevy> eam here has been playing with this kind of things the last some days
momomomomo has joined #ruby
<lupine> shevy, I don't really mind it
<kephra> the current status is, that you can download the .zip and type `make ruby` and then have a binding that could be tested on command line
<shevy> usually the logic for compiling/addons is put into extconf.rb
<lupine> and it beats trying to understand ruby's module scoping rules
chrishough has quit [Quit: chrishough]
<shevy> inside it you have queries like whether header files are available: have_header('linux/inotify.h')
<shevy> aha
<kephra> shevy, I already have an extconf.rb
ffranz has joined #ruby
<shevy> so that 'make ruby' step already works?
<shevy> as in it would create some .so file?
momomomomo has quit [Client Quit]
msmith_ has quit [Remote host closed the connection]
<banister> lupine rails sometimes requires explicit leading :: due to the broken const autoloading logic
<kephra> yes, code compiles, loads and works - it just not packaged as a gem
doodlehaus has quit [Remote host closed the connection]
<shevy> \o/
<kephra> and it has no ruby regression test yet - only Qt regression test
_5kg has joined #ruby
atests has joined #ruby
<kephra> I think/hope GEMs must contain regression test and documentation in a ruby standard way
<shevy> btw you can always check out how http://ruby-gnome2.sourceforge.jp/ does it
<kephra> as told I'm not a ruby coder
<shevy> it's the whole ruby bindings to gnome
superscott[8] has joined #ruby
bMalum______ has joined #ruby
flowerhack has joined #ruby
<shevy> a .gem is basically just an archive
<shevy> normally it is created from a .gemspec file
alexju has quit [Ping timeout: 240 seconds]
<shevy> so you may probably need a .gemspec file - an alternative could be to use bundler, but I don't know how bundler creates a .gem file
thams has joined #ruby
andrewlio has quit [Read error: Connection reset by peer]
<kephra> so I hope I can just delegate this step here to someone who did build many gems before - and for whom it would be just adding a few lines to the makefile to provide a `make gem` step that repackages parts of my source to look and work like a GEM
renderful has joined #ruby
Nothere has joined #ruby
atests has quit [Client Quit]
wjimenez_ has joined #ruby
<shevy> I would not know how to create a .gem without a .gemspec file
MartinCleaver has quit [Ping timeout: 272 seconds]
<kephra> I've looked at ruby in the early days. Nice Smalltalk like language with simpler syntax - but the implementation repeated to many errors of 'a little smalltalk' out of the book, e.g. garbage collector
<kephra> I later started to hate Rails, as it plays badly against Debian security updates, and even breaks application on own rake/gem security update
chris___ has joined #ruby
yfeldblum has joined #ruby
<chris___> hi
basiclaser has left #ruby [#ruby]
WormDr1nk has quit [Ping timeout: 260 seconds]
nat2610 has joined #ruby
<kephra> and what to do with this? where does this go?
msmith_ has joined #ruby
<shevy> this is how you can tell the commandline "gem" to build a gem
chris___ has quit [Quit: leaving]
benlieb has quit [Quit: benlieb]
<shevy> gem build *.gemspec
wjimenez5271 has quit [Ping timeout: 272 seconds]
InfraRuby has quit [Ping timeout: 250 seconds]
<postmodern> i r dumb, is there some way to compare a String to a Symbol, without coercing them
<shevy> then you end up with a .gem file in the directory
<kephra> *ok* I fear I have to do it myself - hoped to delegate the complete step
<kephra> I mainly want to focus on the C side - and Ruby will only be one of a dozen languages ( and not one that I use myself also )
<shevy> I am not sure of a simpler way, but I think bundler might do some more stuff, I don't know, you could try to ask in #bundler perhaps
djbkd has joined #ruby
<godd2> gosh I'm an idiot. Why didn't I ever think to use Time.now.strftime for spec.date
Wolland has quit []
<shevy> there are not that many folks here with C + ruby knowledge, you could wait for eam :)
jrhorn424 is now known as zz_jrhorn424
<shevy> eam wake up man
<pontiki> usually the answer comes after the question, godd2 :>
<pontiki> unless we're playing Jeopardy!
<jhass> shevy: while bundler does provide some helpers for building gems, its primary focus is installing gems and ensuring only a specified set of gems can be loaded. It doesn't built gems, it provides helpers for doing so with rubygems
nat2610 has quit [Client Quit]
<apeiros> kephra, godd2: as per drbrain (maintainer of rubygems) himself: do NOT put spec.date in your gemspec.
yfeldblum has quit [Ping timeout: 255 seconds]
Panicky has joined #ruby
aspires has quit []
<shevy> godd2 don't know what is spec.date but I saw the Time.now stuff in some other gem out there and found it nicer than having to manually type the current date
<jhass> postmodern: just do symbol.to_s == string
qwyeth has quit [Remote host closed the connection]
yfeldblum has joined #ruby
pandaant has quit [Read error: Connection reset by peer]
Nothere has quit [Ping timeout: 246 seconds]
JohnFord has quit [Quit: Textual IRC Client: www.textualapp.com]
momomomomo has joined #ruby
<kephra> *ok* next related question, how are gems published - is there something like CPAN with a PAUSE/TESTER team that constrains minimal code quality?
mikepack has quit [Remote host closed the connection]
<godd2> apeiros: then he does a pretty terrible job of proselytizing not to use spec.date since it's in the hola gem example: http://guides.rubygems.org/make-your-own-gem/
chipotle has joined #ruby
mikepack has joined #ruby
<apeiros> godd2: that's interesting. got to talk with him about that :)
<jhass> kephra: no, anybody can sign up to rubygems.org and push their gems to it
nat2610 has joined #ruby
djbkd has quit [Remote host closed the connection]
<godd2> apeiros: haha, I'll just presume he's okay with using date. after all, you didn't source your claim :P
<shevy> kephra there is one main central repository
<kephra> jhass, I guess/hope that is some ruby code to automate this gem upload?
<shevy> kephra other ways are also via github, e. g. if one uses bundler
<apeiros> godd2: it was on #ruby-lang, you can search the archives ;-p
<shevy> kephra this is all part of "gem"
<shevy> minus github, by default
<apeiros> might predate whitequarks irc logger, though
<jhass> kephra: after you've built a .gem from a .gemspec you gem push that .gem
djbkd has joined #ruby
treehug88 has quit []
<kephra> *ok* so that function is part of the gem command its
<shevy> yeah
<shevy> the .gemspec helps to register as well
<shevy> kephra, for instance look at this one here https://rubygems.org/gems/backup
qhartman has joined #ruby
<shevy> on the bottom right side you see the dependences, that can also be found in the .gemspec file
nanoyak has joined #ruby
<shevy> and the description or summary field becomes the main description (on top) at that site automatically
msmith_ has quit [Remote host closed the connection]
<shevy> kephra what is the base name of your project?
<shevy> "iron monkey" perhaps? :)
thams has quit [Ping timeout: 250 seconds]
<shevy> "angry duck"
<shevy> "gaudy gorilla"
<shevy> ubuntu names
<kephra> shevy, WylieUTF8 *oups* I know Ruby does not like camel case
djbkd has quit [Remote host closed the connection]
<kephra> but the complete project is not Ruby specific
jay__ has quit [Read error: Connection reset by peer]
<shevy> I'd register that name anyway as a dummy
kuzushi has joined #ruby
nat2610 has quit [Client Quit]
<shevy> then whenever you make changes to your code, that WylieUTF8 can become updated too
<kephra> *ok*
djbkd has joined #ruby
nat2610 has joined #ruby
<shevy> though I guess people won't do a direct "gem install WylieUTF8", they will probably only go through your way of how you will provide WylieUTF8 to them
davedev24_ has joined #ruby
<shevy> but it's not so important, I think you will need only one file, the .gemspec
<godd2> anyone have an opinion on wercker vs travis?
starless has quit [Quit: Leaving]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
riotjones has quit [Ping timeout: 260 seconds]
Matadoer has joined #ruby
jay__ has joined #ruby
<shevy> never heard of wercker before
jespada has quit [Quit: Leaving]
<onewheelskyward> godd2 pulse
<godd2> pulse?
riotjones has joined #ruby
thams has joined #ruby
<onewheelskyward> It's another CI I'd recommend long before Jenkins.
<onewheelskyward> Stupid easy to set up.
cy has quit [Quit: kernel downgrade]
TorpedoSkyline has joined #ruby
WormDrink has joined #ruby
aspires has joined #ruby
cy has joined #ruby
<wasamasa> lol, choosing that name
<wasamasa> looks like their developers aren't linux users
aclearman037 has quit []
froggy_ has joined #ruby
thams has quit [Ping timeout: 244 seconds]
Panicky has quit [Ping timeout: 272 seconds]
tylerkern has joined #ruby
harshjha_ is now known as hj2008
Grantlyk has joined #ruby
<hj2008> what should I do to avoid this error in pry - "Gem::LoadError: Unable to activate opengraph-0.0.4, because nokogiri-1.6.3.1 conflicts with nokogiri (~> 1.4.0)"
froggy__ has quit [Ping timeout: 255 seconds]
zarul has quit [Ping timeout: 250 seconds]
<shevy> lol
<shevy> I guess there is a specific depeendency requirement
Matadoer has quit [Remote host closed the connection]
Aranshada|W has quit [Ping timeout: 260 seconds]
<shevy> that's why my .gemspec never use ~>
<shevy> I think there is a way to force gem to ignore this
<shevy> perhaps gem install -f
DrShoggoth has quit [Quit: Leaving]
thams has joined #ruby
kireevco has joined #ruby
Takle has quit [Remote host closed the connection]
<shevy> I think there is also a way at runtime loading
polyidus has joined #ruby
<shevy> hmm
markit has quit []
<shevy> this is related to bundler hj2008? as in do you use bundler?
<hj2008> shevy, you mean to have it in Gemfile and then do bundle install and then proceed?
<shevy> oh I don't use a Gemfile
<shevy> but in my .gemspec I setup the dependencies without ~>
kuzushi has quit [Ping timeout: 246 seconds]
realDAB has quit [Quit: realDAB]
<jhass> hj2008: iirc my pry doesn't require nokogiri by itself, so try just requiring opengraph without requiring nokogiri first
Pumukel has joined #ruby
chrishough has joined #ruby
<waxjar> node's package system works around that issue neatly
SilkFox has quit [Ping timeout: 260 seconds]
<jhass> if that doesn't work writing a Gemfile and using bundle exec would work but seems cumbersome
<shevy> javascript is better
<waxjar> i wouldn't go that far shevy :p
<hj2008> jhass: yes but when I require 'mida' first, then I get this error
<jhass> hj2008: then don't require it first, require opengraph first
jottr has quit [Ping timeout: 260 seconds]
threesixes has quit [Ping timeout: 272 seconds]
<hj2008> jhass: if I require mida afterwards, then I get "Gem::LoadError: Unable to activate mida-0.3.8, because nokogiri-1.4.7 conflicts with nokogiri (>= 1.5)" while requiring mida
MartinCleaver has joined #ruby
cy has quit [Quit: reboot]
johnmolina has quit []
<waxjar> what other gem are you using that needs nokogiri 1.4.7?
jonahR has quit []
<jhass> then try writing a Gemfile and bundle exec pry to see if the conflicts are resolvable at all
<jhass> sometimes you just can't use two gems together
zoo-zed has quit [Quit: Textual IRC Client: www.textualapp.com]
<hj2008> waxjar: only these two, nokogiri and mida
sdwrage_ has quit [Quit: This computer has gone to sleep]
<waxjar> can't you just use nokogiri 1.5 or higher then?
nat2610 has quit [Quit: Leaving.]
iamjarvo has joined #ruby
cy has joined #ruby
kireevco has quit [Quit: Leaving.]
superscott[8] has quit []
<mechanicalduck_> erb template: How to generate a binding to result?
<waxjar> >> binding
<eval-in> waxjar => #<Binding:0x41a71de0> (https://eval.in/179131)
<mechanicalduck_> I just want to pass a hash - so can I somehow wrap the hash in an empty scope?
philcrissman has joined #ruby
<jhass> hj2008: the opengraph_parser gem might be an alternative to opengraph that doesn't have an as strict requirement on nokogiri
bMalum______ has quit [Quit: Computer has gone to sleep.]
bMalum______ has joined #ruby
nat2610 has joined #ruby
apeiros has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
apeiros has joined #ruby
m8 has quit [Quit: Sto andando via]
Sgeo has joined #ruby
<hj2008> jhass, wax jar: I'm trying putting both gems in Gemfile and doing bundle exec pry, require 'mida' is giving NameError: uninitialized constant Mida::Vocabulary::PropertyDesc, do investigating that
msmith has joined #ruby
wjimenez_ has quit []
it_tard has quit [Read error: Connection reset by peer]
nat2610 has quit [Client Quit]
wjimenez5271 has joined #ruby
<waxjar> i don't see the problem, instead of trying to use mida and nokogiri 1.4.7, why not use mida and nokogiri 1.5.x ?
spider-mario has quit [Remote host closed the connection]
philcrissman has quit [Ping timeout: 240 seconds]
MartinCleaver has quit [Quit: MartinCleaver]
<hj2008> waxjar: I have nokogiri (1.6.3.1, 1.6.2.1, 1.6.1, 1.4.7)
bMalum______ has quit [Ping timeout: 260 seconds]
<hj2008> waxjar: should I remove 1.4.7 to make it work fine?
robbyoconnor has quit [Ping timeout: 255 seconds]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<waxjar> you're either specifying that you want to use 1.4.7 somewhere or using a third gem that relies on it i think
<jhass> waxjar: read the initial messages, opengraph specifies ~> 1.4.0 or so and he was requiring that
threesixes has joined #ruby
the_f0ster has quit [Remote host closed the connection]
nfk has joined #ruby
<waxjar> ah, ok. i didn't see that
moted has joined #ruby
Hanmac has quit [Ping timeout: 272 seconds]
roman has quit [Remote host closed the connection]
<waxjar> seems like that's fixed on github at least: https://github.com/intridea/opengraph/blob/master/opengraph.gemspec
Kricir has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
momomomomo_ has joined #ruby
Grantlyk has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
ffranz has quit [Quit: Leaving]
cesurasean has joined #ruby
thams_ has joined #ruby
Jackneill has quit [Ping timeout: 255 seconds]
thams has quit [Ping timeout: 240 seconds]
thams_ is now known as thams
tylerkern has quit [Read error: Connection reset by peer]
momomomomo has quit [Ping timeout: 245 seconds]
momomomomo_ is now known as momomomomo
jheg has quit [Quit: jheg]
Kricir has quit [Ping timeout: 244 seconds]
tylerkern has joined #ruby
nateberkopec has quit [Quit: Leaving...]
kickr has joined #ruby
kickr has quit [Client Quit]
emmesswhy has joined #ruby
nat2610 has joined #ruby
anaeem1 has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
baroquebobcat has quit [Ping timeout: 245 seconds]
emmesswhy has quit [Read error: Connection reset by peer]
nanoyak has joined #ruby
kickr has joined #ruby
emmesswhy has joined #ruby
codebrah has joined #ruby
djbkd has quit [Remote host closed the connection]
icarus has quit [Remote host closed the connection]
djbkd has joined #ruby
AlSquirrel has quit [Quit: This computer has gone to sleep]
Hanmac has joined #ruby
thams has quit [Ping timeout: 244 seconds]
anaeem1 has quit [Ping timeout: 264 seconds]
Dreamer3__ has quit [Quit: Computer has gone to sleep.]
harshjha_ has joined #ruby
MartinCleaver has joined #ruby
toastynerd has quit [Remote host closed the connection]
reset has quit [Ping timeout: 255 seconds]
redondos has joined #ruby
uzumaki has joined #ruby
amystephen has quit [Ping timeout: 240 seconds]
jeramyRR has joined #ruby
hj2008 has quit [Ping timeout: 264 seconds]
renderful has quit [Remote host closed the connection]
Photism has joined #ruby
matchaw has joined #ruby
elaptics is now known as elaptics`away
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Dreamer3 has joined #ruby
uzumaki has left #ruby [#ruby]
msmith has quit [Remote host closed the connection]
codebrah has quit [Quit: Computer has gone to sleep.]
bMalum______ has joined #ruby
e4xit has quit [Ping timeout: 260 seconds]
nateberkopec has joined #ruby
Aranshada|W has joined #ruby
robbyoconnor has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
<jeramyRR> anyone here in North Carolina?
zarul has joined #ruby
einarj has joined #ruby
<wallerdev> ive been to north carolina
<wallerdev> raleigh
<wallerdev> they have good bbq there
enebo has quit [Quit: enebo]
mikecmpbll has quit [Quit: i've nodded off.]
asteve_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bMalum______ has quit [Ping timeout: 245 seconds]
matchaw has quit [Ping timeout: 272 seconds]
matchaw_ has joined #ruby
polyidus has quit [Ping timeout: 272 seconds]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ari-_-e has quit [Ping timeout: 245 seconds]
e4xit has joined #ruby
tylerkern has joined #ruby
ixti has quit [Quit: WeeChat 0.4.3]
<nobitanobi> haha
mary5030 has joined #ruby
mechanicalduck_ has quit [Quit: Reconnecting…]
mechanicalduck has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
einarj has quit [Remote host closed the connection]
amacou has joined #ruby
einarj has joined #ruby
jobewan has joined #ruby
cpt_yossarian has quit [Quit: Leaving]
aspires has quit []
Takle has joined #ruby
cpt_yossarian has joined #ruby
fgo_ has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 260 seconds]
MartinCleaver has quit [Quit: MartinCleaver]
icebourg has quit []
kaspergrubbe_ has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 246 seconds]
Takle has quit [Ping timeout: 255 seconds]
toordog has joined #ruby
momomomomo has quit [Quit: momomomomo]
pietr0 has quit [Quit: pietr0]
ari-_-e has joined #ruby
ari-_-e has quit [Read error: Connection reset by peer]
ari-_-e has joined #ruby
emmesswhy has quit [Quit: Leaving]
sambao21 has quit [Quit: Computer has gone to sleep.]
W0rmDr1nk has quit [Ping timeout: 264 seconds]
sambao21 has joined #ruby
Kricir has joined #ruby
chrishough has quit [Quit: chrishough]
juz88 has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
juz88 has quit [Client Quit]
doodlehaus has joined #ruby
nanoyak has joined #ruby
<nobitanobi> Anyone has used Liquid as a template engine? I can't find a way to pass a file to the parse method. @template = Liquid::Template.parse("hi {{name}}")
juz88 has joined #ruby
doodlehaus has quit [Client Quit]
Soliah has joined #ruby
parduse has quit [Ping timeout: 245 seconds]
parduse has joined #ruby
parduse has quit [Changing host]
parduse has joined #ruby
mccollek has joined #ruby
einarj has quit [Remote host closed the connection]
havenwood has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
Nahra` has quit [Ping timeout: 264 seconds]
nanoyak has joined #ruby
nobitanobi has quit [Remote host closed the connection]
Nahra` has joined #ruby
matchaw_ has quit [Ping timeout: 272 seconds]
Kricir has quit [Ping timeout: 272 seconds]
matchaw has joined #ruby
axilla_ has quit [Ping timeout: 264 seconds]
jhass is now known as jhass|off
jmbrown412 has quit [Remote host closed the connection]
mccollek has quit [Client Quit]
mccollek has joined #ruby
jmbrown412 has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
MartinCleaver has joined #ruby