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
jeremywr_ has joined #ruby
enebo has joined #ruby
testcore has quit [Quit: BitchX: it's not your ordinary stick of gum]
Takle has joined #ruby
amacou has joined #ruby
jeremywrowe has quit [Ping timeout: 272 seconds]
jonahR has joined #ruby
tylerkern has joined #ruby
codebrah has quit [Quit: Computer has gone to sleep.]
afhammad has joined #ruby
jonahR has quit [Client Quit]
tylerkern has quit [Client Quit]
Takle has quit [Ping timeout: 255 seconds]
saarinen has joined #ruby
saarinen has quit [Client Quit]
djbkd has quit [Remote host closed the connection]
InhalingPixels has quit [Remote host closed the connection]
Bira has joined #ruby
fgo has joined #ruby
djbkd has joined #ruby
aantix has quit [Quit: aantix]
InhalingPixels has joined #ruby
bmurt has quit []
yetanotherdave has joined #ruby
ssvo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amacou has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
Spami_ has joined #ruby
Bira has quit [Ping timeout: 250 seconds]
fgo has quit [Ping timeout: 246 seconds]
iteratorP has joined #ruby
havenwood has joined #ruby
jeremywr_ has quit [Quit: Textual IRC Client: www.textualapp.com]
Spami_ has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Spami_ has joined #ruby
automaticali has joined #ruby
Royalb15 has quit [Quit: Leaving]
jftf has joined #ruby
Spami_ has quit [Client Quit]
JoshGlzB_ has joined #ruby
Spami has quit [Ping timeout: 245 seconds]
lyuzashi has joined #ruby
axilla has joined #ruby
jaimef has quit [Excess Flood]
Spami has joined #ruby
automaticali has quit [Client Quit]
cpruitt has joined #ruby
cpruitt has quit [Client Quit]
Kricir has quit [Remote host closed the connection]
jtz has quit [Ping timeout: 240 seconds]
elshaka has joined #ruby
jaimef has joined #ruby
yetanotherdave has quit [Ping timeout: 260 seconds]
JoshGlzBrk has quit [Ping timeout: 260 seconds]
iteratorP has quit [Remote host closed the connection]
einarj has joined #ruby
icole_ has joined #ruby
icole has quit [Ping timeout: 255 seconds]
axilla has quit [Ping timeout: 250 seconds]
xMopxShell has quit [Ping timeout: 255 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
icole_ has quit [Ping timeout: 244 seconds]
jtz has joined #ruby
einarj has quit [Ping timeout: 245 seconds]
duncannz has quit [Read error: Connection reset by peer]
pietr0 has quit [Quit: pietr0]
afhammad has quit []
xMopxShell has joined #ruby
lw has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
bMalum has joined #ruby
axilla has joined #ruby
psmolen has quit [Ping timeout: 245 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nobitanobi has quit [Ping timeout: 246 seconds]
ffranz has quit [Quit: Leaving]
x1337807x has joined #ruby
bMalum has quit [Ping timeout: 240 seconds]
marr has quit []
gccostabr has joined #ruby
axilla has quit [Ping timeout: 246 seconds]
psmolen has joined #ruby
toastynerd has quit [Remote host closed the connection]
axilla has joined #ruby
codebrah has joined #ruby
tkuchiki has joined #ruby
freerobby has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
oo_ has joined #ruby
britneywright has joined #ruby
saarinen has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
phoo1234567 has quit [Quit: Leaving]
axilla has quit [Ping timeout: 240 seconds]
echooo has joined #ruby
saarinen has quit [Client Quit]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_808chris has joined #ruby
Hobogrammer has quit [Ping timeout: 244 seconds]
<_808chris> howdy, If I'm writing a class that requires part of the std lib, should I require the lib at the top of the file or inside the class?
anaeem1 has joined #ruby
skysploit has joined #ruby
jxf has quit [Ping timeout: 240 seconds]
jftf has quit [Ping timeout: 245 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
matchaw has quit [Remote host closed the connection]
amacou has joined #ruby
matchaw has joined #ruby
craigp has joined #ruby
<_808chris> anyone?
thams has quit [Quit: thams]
Kricir has joined #ruby
<wallerdev> top of file
anaeem1 has quit [Ping timeout: 255 seconds]
finisherr has joined #ruby
<finisherr> how do i convert the int 0755 to string?
wjimenez_ has joined #ruby
<gr33n7007h> can someone help me with getting the full text out of this i'm only get part of it #=> https://gist.github.com/anonymous/f4a7e34882dfb1be55bc
amacou has quit [Ping timeout: 260 seconds]
<finisherr> Trying to print the value of a var with permission set as an int
<wallerdev> as in the octal 0755 ?
<wallerdev> or just "755" in which case to_s
ghr has joined #ruby
<finisherr> i want to set perms to 0755
<wallerdev> well whats inside your int?
<finisherr> then use that perms var to notify the user what i’m setting the permissions fora f ile to
<wallerdev> the number 755? or 493
mary5030 has joined #ruby
<finisherr> I was getting 493
<finisherr> yeah
<finisherr> I want to just print 0755
tylerkern has joined #ruby
<wallerdev> >> 493.to_s(8)
<eval-in> wallerdev => "755" (https://eval.in/178299)
<finisherr> I had this http://pastebin.com/VGBer9ti
wjimenez5271 has quit [Ping timeout: 240 seconds]
Audace has joined #ruby
<finisherr> Ahh fixed
<finisherr> thanks
<wallerdev> np
eyeamaye has left #ruby [#ruby]
wjimenez_ has quit [Ping timeout: 272 seconds]
ghr has quit [Ping timeout: 245 seconds]
cpruitt has joined #ruby
axilla has joined #ruby
Grantlyk has quit [Ping timeout: 240 seconds]
MartinCleaver has quit [Quit: MartinCleaver]
yetanotherdave has joined #ruby
Kricir has quit [Ping timeout: 244 seconds]
Rollabunna has joined #ruby
chrishough has quit [Quit: chrishough]
lw has quit [Quit: s]
jftf has joined #ruby
yubrew has joined #ruby
PanPan has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
gccostabr has quit [Quit: ZZZzzz…]
finisherr has left #ruby [#ruby]
Rollabunna has quit [Ping timeout: 246 seconds]
Grantlyk has joined #ruby
guinsly has joined #ruby
guinsly has left #ruby [#ruby]
dru has quit [Ping timeout: 244 seconds]
yubrew has quit [Ping timeout: 240 seconds]
Bira has joined #ruby
jftf has quit [Ping timeout: 260 seconds]
x1337807x has joined #ruby
benzrf is now known as benzrf|offline
ARCADIVS has quit [Quit: WeeChat 0.4.3]
pigram86 has joined #ruby
benzrf|offline is now known as benzrf
sevenseacat has joined #ruby
toastynerd has joined #ruby
Bira has quit [Ping timeout: 272 seconds]
Danibal has quit [Remote host closed the connection]
tewlz has joined #ruby
jftf has joined #ruby
brianherman has joined #ruby
chrishough has joined #ruby
Spami has joined #ruby
patrick99e99 has quit [Ping timeout: 272 seconds]
InhalingPixels has quit [Remote host closed the connection]
taybin has joined #ruby
lbaan has quit [Remote host closed the connection]
endash has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dru has joined #ruby
aspires has quit []
dbasch has quit [Quit: dbasch]
einarj has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nat2610 has quit [Quit: Leaving.]
wwalker has quit [Ping timeout: 260 seconds]
tokik has joined #ruby
<_808chris> whats the best way to open a loop on a thread?
InfraRuby has left #ruby [#ruby]
TheNet has quit [Quit: Leaving...]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
bMalum has joined #ruby
robustus has quit [Ping timeout: 250 seconds]
einarj has quit [Ping timeout: 260 seconds]
superscott[8] has quit []
dbasch has joined #ruby
MatthewsFace has quit [Ping timeout: 260 seconds]
alexju has quit [Remote host closed the connection]
<VBlizzard> anyone know any good ways and/or resources for learning Rails?
<sevenseacat> #rubyonrails
alexju has joined #ruby
<VBlizzard> is that even a channel?
<havenwood> VBlizzard: It is.
robustus has joined #ruby
<havenwood> _808chris: Whatcha mean?
<VBlizzard> the room only has like 1 person in it. :L
<_808chris> yeah
<VBlizzard> ##rubyonrails or #rubyonrails.
<_808chris> havenwood, how you doing?
amystephen has quit [Quit: amystephen]
<_808chris> havenwood, i figured it out, im doing something like this: Thread.new do { while @is_running { } }
<havenwood> _808chris: I'm hungry!
bMalum has quit [Ping timeout: 272 seconds]
<havenwood> VBlizzard: about 420 folk in there, #RubyOnRails
flowerhack has quit [Remote host closed the connection]
<VBlizzard> for some reason, I can't join the room.
<havenwood> VBlizzard: nick reg req
<havenwood> VBlizzard: /msg NickServ REGISTER password youremail@example.com
VBlizzard is now known as Blizzy
alexju has quit [Ping timeout: 260 seconds]
<Blizzy> ok, thank you, havenwood.
philcrissman has joined #ruby
freerobby has quit [Quit: Leaving.]
hephaestus_rg has joined #ruby
fgo has joined #ruby
kireevco has joined #ruby
x1337807x has joined #ruby
tjr9898_ has quit [Remote host closed the connection]
tylerkern has joined #ruby
frankle has quit [Quit: Connection closed for inactivity]
philcrissman has quit [Ping timeout: 245 seconds]
emmesswhy has joined #ruby
tylerkern has quit [Client Quit]
pigram86 has quit [Remote host closed the connection]
fgo_ has joined #ruby
flowerhack has joined #ruby
flowerhack has quit [Remote host closed the connection]
codebrah has quit [Quit: Computer has gone to sleep.]
MatthewsFace has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
toastynerd has quit [Remote host closed the connection]
Danibal has joined #ruby
<n1lo> Why should I learn Ruby??
<sevenseacat> why not?
ppinto has quit [Quit: ppinto]
<mozzarella> because you need to learn at least one interpreted, dynamic language and ruby is the best one
codebrah has joined #ruby
<n1lo> hm
InhalingPixels has joined #ruby
bricker`work has quit [Ping timeout: 255 seconds]
mr-foobar has quit [Read error: Connection reset by peer]
mr-foobar has joined #ruby
<mozzarella> it's like a swiss army knife, you need one and ruby is the best one
<n1lo> Well, I know a little of Python..
<mozzarella> don't learn python or perl, that would be a mistake
<sevenseacat> well no, it wouldnt
tricon_ has quit [Quit: Linkinus - http://linkinus.com]
<sevenseacat> learning is never a mistake
tylerkern has joined #ruby
zerosNones has joined #ruby
<n1lo> I'm studying Ruby but I don't know where I'll use it beyond Rails.
TorpedoSkyline has joined #ruby
<hoelzro> Ruby, Python, and Perl all share a similar niche
<hoelzro> learn Ruby to see if you like it
<hoelzro> you may like it more than Python, you may not
<sevenseacat> ruby is a very general-purpose programming language
<hoelzro> either way, you'll find a new language you love, or something to take back to other programming languages
Danibal has quit [Ping timeout: 245 seconds]
<n1lo> hm. ;)
iamjarvo has quit [Quit: Textual IRC Client: www.textualapp.com]
ghr has joined #ruby
codebrah has quit [Quit: Computer has gone to sleep.]
InhalingPixels has quit [Ping timeout: 255 seconds]
<_808chris> learn ruby? because its fun
AlexRussia has quit [Ping timeout: 240 seconds]
Atrumx has quit [Quit: exit]
omosoj has quit [Ping timeout: 246 seconds]
snath has joined #ruby
omosoj has joined #ruby
enebo has quit [Quit: enebo]
ari-_-e has quit [Ping timeout: 246 seconds]
charliesome has joined #ruby
yubrew has joined #ruby
Bira has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Remote host closed the connection]
InfraRuby has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ericwood> the only limit with ruby is your imagination
<ericwood> ...and the GIL
Grantlyk has quit [Remote host closed the connection]
nfk has quit [Quit: yawn]
wallerdev has quit [Quit: wallerdev]
yubrew has quit [Ping timeout: 272 seconds]
Bira has quit [Ping timeout: 255 seconds]
ari-_-e has joined #ruby
skysploit has quit [Remote host closed the connection]
yano has quit [Read error: Connection reset by peer]
djbkd has quit [Remote host closed the connection]
hamakn has joined #ruby
InfraRuby has left #ruby [#ruby]
hamakn has quit [Read error: Connection reset by peer]
kireevco has quit [Quit: Leaving.]
gondalie_ has joined #ruby
gondalie_ has quit [Max SendQ exceeded]
hamakn has joined #ruby
freerobby has joined #ruby
xcm has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
toastynerd has joined #ruby
AlexRussia has joined #ruby
moted has quit []
taybin has quit [Quit: This computer has gone to sleep]
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kireevco has joined #ruby
kireevco has left #ruby [#ruby]
amacou has joined #ruby
cpruitt has quit [Read error: Connection reset by peer]
cpruitt has joined #ruby
yano has joined #ruby
gondalier has joined #ruby
gondalier has quit [Max SendQ exceeded]
Liothen has joined #ruby
gondalier has joined #ruby
yfeldblum has joined #ruby
arya_ has joined #ruby
coldkey21 has quit [Remote host closed the connection]
robbyoconnor has quit [Excess Flood]
asteve has joined #ruby
robbyoconnor has joined #ruby
InfraRuby has joined #ruby
axilla has quit [Ping timeout: 264 seconds]
vinky has quit [Ping timeout: 264 seconds]
wallerdev has joined #ruby
Bira has joined #ruby
xcm_ has joined #ruby
fgo has joined #ruby
dbasch has quit [Quit: dbasch]
toastynerd has quit [Remote host closed the connection]
xcm has quit [Ping timeout: 260 seconds]
xcm_ is now known as xcm
fgo_ has quit [Ping timeout: 264 seconds]
toastynerd has joined #ruby
Soliah has joined #ruby
yetanotherdave has quit [Ping timeout: 240 seconds]
fgo_ has joined #ruby
deric_skibotn has quit [Ping timeout: 272 seconds]
nowthatsamatt has joined #ruby
krz has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bMalum has joined #ruby
fgo has quit [Ping timeout: 255 seconds]
dbasch has joined #ruby
nateberkopec has quit [Quit: Leaving...]
dbasch has quit [Client Quit]
mary5030 has quit [Remote host closed the connection]
reset has quit [Ping timeout: 240 seconds]
britneywright has joined #ruby
bMalum has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
endash has quit [Quit: endash]
pietr0 has joined #ruby
omosoj has quit [Quit: Leaving]
pietr0 has quit [Client Quit]
gondalier has quit []
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tectonic has joined #ruby
tewlz has quit [Ping timeout: 245 seconds]
JoshGlzB_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
beef-wellington has quit [Ping timeout: 240 seconds]
<n1lo> _808chris, I know but.. I'm trying to find a project to colaborate in pure Ruby (not rails).. Do you know anyone ?
arya_ has quit [Ping timeout: 260 seconds]
<_808chris> n1lo, there are a ton of things out there
<_808chris> check out the arduino libs or gtk3 etc
<n1lo> _808chris, to big these ones.. I need something small to start.. :)
<_808chris> sinatra?
krz has quit [Read error: Connection reset by peer]
krz has joined #ruby
fgo has joined #ruby
<n1lo> _808chris, could be.. I'll see it.
_808chris has quit [Quit: Leaving]
pigram86 has joined #ruby
Akagi201_ has joined #ruby
Akagi201 has quit [Read error: Connection reset by peer]
fgo_ has quit [Ping timeout: 272 seconds]
bricker`LA has quit [Ping timeout: 255 seconds]
dingus_khan has joined #ruby
arya_ has joined #ruby
Akagi201_ has quit [Remote host closed the connection]
davispuh has quit [Ping timeout: 250 seconds]
flowerhack has joined #ruby
InfraRuby has left #ruby [#ruby]
djbkd has quit [Remote host closed the connection]
mary5030 has joined #ruby
diegoviola has joined #ruby
john___ has joined #ruby
<john___> Hello everyone ...does any know of a ruby gem to add columns, formulas and extra sheets to a Ms Excel workbook programmatically?
pygospa has quit [Ping timeout: 250 seconds]
yubrew has joined #ruby
<john___> thanks havenwood ..checking it now
pigram86 has quit [Remote host closed the connection]
dingus_khan has quit [Remote host closed the connection]
pygospa has joined #ruby
axsuul has joined #ruby
<havenwood> n1lo: Sinatra is great but not a lot of work to do there. You might look at one of the new Rack frameworks like Hobbit, Lotus or Roda. Or a nascent non-Rack one like Lattice.
ghr has joined #ruby
godd2 has joined #ruby
dingus_khan has joined #ruby
toastynerd has quit [Remote host closed the connection]
<havenwood> n1lo: Find some Rubyists whose stuff you like and look at their recently created or contributed-to repos.
yubrew has quit [Ping timeout: 240 seconds]
arya_ has quit [Ping timeout: 245 seconds]
<havenwood> n1lo: Any area in particular you're interested in? We might be able to give better recommendations.
Audace has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cpruitt has quit [Quit: cpruitt]
arya_ has joined #ruby
Kricir has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
dseitz has joined #ruby
<havenwood> n1lo: You could always troll the githubs trending: https://github.com/trending?l=ruby
bricker`LA has joined #ruby
benlieb has joined #ruby
Rollabunna has joined #ruby
<godd2> Do I have to tell Travis to use rspec explicitly?
Kricir has quit [Ping timeout: 272 seconds]
yetanotherdave has joined #ruby
braincrash has quit [Quit: bye bye]
<godd2> Or is there some other reason this build fails? https://travis-ci.org/RSMP/sound/jobs/32294777
<havenwood> godd2: is rspec in your Gemfile?
Rollabunna has quit [Ping timeout: 260 seconds]
Spami has quit [Quit: This computer has gone to sleep]
<havenwood> godd2: ah, it's a gem
alvaro_o has quit [Quit: Ex-Chat]
<havenwood> godd2: I do a Gemfile that just has: source 'https://rubygems.org'; gemspec
icebourg has joined #ruby
amacou has quit [Remote host closed the connection]
icebourg has quit [Max SendQ exceeded]
toastyne_ has joined #ruby
<havenwood> godd2: it's bundler's convention to do ^
nateberkopec has joined #ruby
icebourg has joined #ruby
<godd2> To do what? I don't understand.
<godd2> Is a gem not supposed to have a Gemfile?
icebourg has quit [Max SendQ exceeded]
braincrash has joined #ruby
<godd2> I put one in to see if travis still complained. I have no idea what I'm doing.
<havenwood> There is no Gemfile at the moment. It's optional for a gem to have a Gemfile. It is bundler's suggestion that you do, but just point it at your gemspec.
icebourg has joined #ruby
<godd2> Ah ok.
icebourg has quit [Max SendQ exceeded]
<havenwood> godd2: Try `bundle gem example_gem` and look at the `example_gem/Gemfile` for what I mean.
<godd2> And of course in my gemspec, I list development/runtime dependencies which travis will pick up on?
toastyne_ has quit [Remote host closed the connection]
icebourg has joined #ruby
icebourg has quit [Max SendQ exceeded]
icebourg has joined #ruby
<havenwood> godd2: Article explaining Gemfile in an app versus a gem: http://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/
patrick99e99 has joined #ruby
<havenwood> hem, i didn't know travis offered automatic gem deployment after successful build
<havenwood> that's kinda nifty
mr_snowf1ake has joined #ruby
<havenwood> godd2: yup, that's the idea
nateberkopec has quit [Read error: Connection reset by peer]
nateberkope has joined #ruby
bricker`LA has quit [Ping timeout: 240 seconds]
TorpedoSkyline has joined #ruby
toastynerd has joined #ruby
<godd2> So what should I add to my gemspec for travis then? I currently don't have any dependencies listed in it. Do I just need to watch what Travis complains about in a failed build and add that?
patrick99e99 has quit [Ping timeout: 245 seconds]
nateberkope has quit [Ping timeout: 240 seconds]
toastynerd has quit [Ping timeout: 260 seconds]
philcrissman has joined #ruby
tylerkern has quit [Ping timeout: 255 seconds]
xcesariox has joined #ruby
jftf has quit [Ping timeout: 255 seconds]
einarj has joined #ruby
arya_ has quit [Quit: sayonara^_^]
tylerkern has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
Danibal has joined #ruby
philcrissman has quit [Ping timeout: 272 seconds]
bMalum has joined #ruby
orangerobot has joined #ruby
wjimenez5271 has joined #ruby
ascarter has joined #ruby
cpruitt has joined #ruby
einarj has quit [Ping timeout: 255 seconds]
ascarter has quit [Client Quit]
Danibal has quit [Ping timeout: 250 seconds]
bMalum has quit [Ping timeout: 240 seconds]
cpruitt has quit [Read error: Connection reset by peer]
cpruitt has joined #ruby
toastynerd has joined #ruby
ascarter has joined #ruby
gondalier has joined #ruby
<havenwood> godd2: do #add_development_dependency
<havenwood> godd2: for the gems you'd need on a fresh Ruby install
<godd2> awesome, got it up and succeeding in a build: https://travis-ci.org/RSMP/sound/builds
<godd2> thanks for all your help!
<havenwood> godd2: nice! no prob
L3top_ has joined #ruby
jftf has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aantix has joined #ruby
<godd2> I'm just devloping on my home computer, so there's a lot I take for granted in terms of what's already installed
L3mce has quit [Ping timeout: 255 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
basiclaser has joined #ruby
oo_ has quit [Remote host closed the connection]
xcm has quit [Ping timeout: 240 seconds]
ascarter has joined #ruby
m_3 has quit [Remote host closed the connection]
thams has joined #ruby
yubrew has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> godd2: guess travis is smart with gems
benlieb has quit [Quit: benlieb]
<havenwood> i need to read up
ascarter has quit [Client Quit]
michaeldeol has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
vinky has joined #ruby
thams has quit [Ping timeout: 245 seconds]
InhalingPixels has joined #ruby
bricker`LA has joined #ruby
dingus_khan has quit [Remote host closed the connection]
InhalingPixels has quit [Ping timeout: 272 seconds]
toastynerd has quit [Remote host closed the connection]
DEA7TH has quit [Ping timeout: 264 seconds]
techsethi has joined #ruby
aantix has quit [Quit: aantix]
dingus_khan has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
abuzze_ has joined #ruby
ascarter has joined #ruby
dingus_khan has quit [Client Quit]
Kricir has joined #ruby
nat2610 has joined #ruby
thams has joined #ruby
GriffinHeart has joined #ruby
abuzze has quit [Ping timeout: 264 seconds]
techsethi has quit [Ping timeout: 260 seconds]
ascarter has quit [Client Quit]
techsethi has joined #ruby
hephaestus_rg has quit [Ping timeout: 260 seconds]
Kricir has quit [Ping timeout: 245 seconds]
x1337807x has joined #ruby
Cache_Money has joined #ruby
kenndel has joined #ruby
_cpt_yossarian_ has joined #ruby
jftf has quit [Ping timeout: 255 seconds]
ghostmoth has joined #ruby
CorySimmons has joined #ruby
narcan has joined #ruby
cpt_yossarian has quit [Ping timeout: 240 seconds]
dseitz has quit [Read error: Connection reset by peer]
pasties has quit [Ping timeout: 250 seconds]
dseitz_ has joined #ruby
dseitz_ has quit [Max SendQ exceeded]
dseitz has joined #ruby
larissa has quit [Quit: Leaving]
Bira has quit [Remote host closed the connection]
diegoviola has joined #ruby
mr_snowf1ake has quit [Quit: Leaving]
toastynerd has joined #ruby
centrx has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has quit [Remote host closed the connection]
oo_ has joined #ruby
nateberkopec has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pasties has joined #ruby
techsethi has quit [Quit: techsethi]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nateberkopec has quit [Ping timeout: 240 seconds]
bricker`LA has quit [Ping timeout: 260 seconds]
oo_ has quit [Ping timeout: 244 seconds]
charliesome has joined #ruby
shevy has quit [Ping timeout: 244 seconds]
elshaka has quit [Quit: Saliendo]
orangerobot has quit [Quit: Page closed]
tylerkern has quit [Read error: Connection reset by peer]
amacou has joined #ruby
tectonic has quit []
einarj has joined #ruby
tylerkern has joined #ruby
duncannz has joined #ruby
craigp has quit [Remote host closed the connection]
icebourg has quit []
IceDragon has quit [Quit: Space~~~]
Danibal has joined #ruby
bMalum has joined #ruby
razum2um has joined #ruby
tectonic has joined #ruby
kenneth has joined #ruby
craigp has joined #ruby
havenwood has quit [Remote host closed the connection]
einarj has quit [Ping timeout: 264 seconds]
zerosNones has quit [Ping timeout: 260 seconds]
bMalum has quit [Ping timeout: 255 seconds]
Danibal has quit [Ping timeout: 272 seconds]
mityaz has quit [Quit: See ya!]
lxsameer has joined #ruby
toastynerd has quit [Remote host closed the connection]
keen_____ has quit [Read error: Connection reset by peer]
keen_____ has joined #ruby
shevy has joined #ruby
centrx has quit [Quit: Mead error: Connection reset by beer]
amclain has quit [Quit: Leaving]
yubrew has joined #ruby
ari-_-e has quit [Ping timeout: 272 seconds]
niklasb has quit [Ping timeout: 260 seconds]
ghostmoth has quit [Quit: ghostmoth]
gondalier has quit []
freerobby has quit [Quit: Leaving.]
axsuul has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 260 seconds]
yfeldblu_ has joined #ruby
sudomatic has joined #ruby
Audace has joined #ruby
gondalier has joined #ruby
ericp4 has left #ruby ["Leaving"]
darkxploit has quit [Ping timeout: 250 seconds]
ta has quit [Remote host closed the connection]
gondalier has quit [Client Quit]
yfeldblum has quit [Ping timeout: 240 seconds]
maestrojed has joined #ruby
tectonic has quit []
gondalie_ has joined #ruby
yfeldblu_ has quit [Ping timeout: 255 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
razum2um has quit [Quit: Leaving.]
tectonic has joined #ruby
wjimenez5271 has quit [Remote host closed the connection]
InhalingPixels has joined #ruby
whyy has joined #ruby
craigp has quit [Remote host closed the connection]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
ghr has joined #ruby
InhalingPixels has quit [Ping timeout: 245 seconds]
axsuul has joined #ruby
ghr has quit [Ping timeout: 244 seconds]
Kricir has joined #ruby
davedev2_ has quit []
oo_ has joined #ruby
byteddown has joined #ruby
Rollabunna has joined #ruby
Kricir has quit [Ping timeout: 260 seconds]
niharvey has quit [Quit: No Ping reply in 180 seconds.]
niharvey has joined #ruby
ari-_-e has joined #ruby
Rollabunna has quit [Ping timeout: 255 seconds]
razum2um has joined #ruby
Morkel has joined #ruby
tectonic has quit []
mercwithamouth has joined #ruby
razum2um has quit [Client Quit]
philcrissman has joined #ruby
EasyCo has joined #ruby
weems|nix has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
tectonic has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
nateberkopec has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
philcrissman has quit [Ping timeout: 272 seconds]
patrick99e99 has quit [Ping timeout: 272 seconds]
AlexRussia has quit [Ping timeout: 272 seconds]
amacou has quit [Remote host closed the connection]
nateberkopec has quit [Ping timeout: 240 seconds]
thams has quit [Quit: thams]
yfeldblum has joined #ruby
<godd2> Any thoughts on how to limit changes to an instance variable that's mutable but attr_reader'd? https://gist.github.com/nicklink483/966ccf3a52d1ff47747e
thams has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<dopie> Why is @player_pick in compare_picks printing nil?
<dopie> I set @player_pick = choice
<dopie> in pick_option
<sevenseacat> and pick_option is on an entirely different model
<dopie> correct
john___ has quit [Remote host closed the connection]
<dopie> but isnt an instance variable?
<sevenseacat> so just because you defined @player_pick on one model, doesnt mean its available on a different one
<dopie> humm
<dopie> ok
<dopie> how would i get the human class player pick to show up in the other class?
einarj has joined #ruby
<dopie> sevenseacat, as you can tell still learning the basics :)
<dopie> or trying too
<sevenseacat> well you've got a reference to the player
<sevenseacat> and the player has a player_pick
bMalum has joined #ruby
tylerkern has quit [Read error: Connection reset by peer]
Danibal has joined #ruby
d4ryus has left #ruby [#ruby]
jimmyhoughjr has quit [Ping timeout: 260 seconds]
<godd2> dopie you need to change line 56. It's asking for Game's player_pick
thams has quit [Quit: thams]
<godd2> but you want player's player pick.
tylerkern has joined #ruby
<godd2> You have an @player, so how do you ask for his player_pick?
tylerkern has quit [Client Quit]
<dopie> @player.player_pick
<godd2> eyp!
<godd2> yep*
<dopie> aha!
<dopie> got a little lost
<godd2> The first few times you deal with several classes interacting with one another it can be a little confusing, but just keep doing it and itll be second nature
Audace has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenskarlsen has joined #ruby
kyb3r_ has joined #ruby
jenskarlsen has left #ruby [#ruby]
einarj has quit [Ping timeout: 255 seconds]
duper has quit [Read error: Connection reset by peer]
<godd2> Also, you may want to consider renaming player_pick to just pick, so that line 56 would look like this: @player.pick
bMalum has quit [Ping timeout: 260 seconds]
<godd2> But that's a design choice, as one may interpret pick as a verb instead of a noun
duper has joined #ruby
toastynerd has joined #ruby
echooo1 has joined #ruby
Danibal has quit [Ping timeout: 240 seconds]
yubrew has joined #ruby
<Hanmac> godd2 about your mutable problem ... as far as i know does not add your own children method like "def children; @children.dup.freeze; end" that does return a frozen copy ... hm i need to test how that works because i dont know if the strings in the original array does get frozen too ... if they does, just return a copy for now until i find better ways
d4ryus has joined #ruby
echooo has quit [Ping timeout: 240 seconds]
cpruitt has quit [Quit: cpruitt]
<godd2> Yea I think manually sending a dup is fine. Thanks for the tip.
yeticry has quit [Ping timeout: 245 seconds]
yeticry has joined #ruby
<dopie> ok just let me bounce this off my head here
<dopie> Since I have attr_accessor :pick in Player
<dopie> the @pick = choice in Human < Player becomes available
yubrew has quit [Ping timeout: 245 seconds]
<sevenseacat> no
<sevenseacat> the setting of @pick is always available
ff_ has joined #ruby
<dopie> oop_rock_paper_scissor.rb:56:in `compare_picks': undefined method `pick' for #<Human:0x8e23f30 @name="Gus", @pick="2"> (NoMethodError)
ff_ has quit [Read error: Connection reset by peer]
starkhalo has quit [Ping timeout: 240 seconds]
<dopie> that happened when i removed the attr_accessor :pick
mostlybadfly has quit [Quit: Connection closed for inactivity]
<sevenseacat> @pick != pick
<dopie> correct
<dopie> @pick is not equal to pick
<sevenseacat> attr_accessor defines the pick method
<sevenseacat> it does not change the fact that you can set @pick
niharvey has quit [Quit: No Ping reply in 210 seconds.]
InfraRuby has joined #ruby
arup_r has joined #ruby
niharvey has joined #ruby
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
Sauvin has joined #ruby
<dopie> attr_accessor allows instance variables to be avaiable to other classes
<dopie> ?
duper has quit [Ping timeout: 260 seconds]
<sevenseacat> it defines getters and setters for instance variables
<sevenseacat> thats all
duper has joined #ruby
tagrudev has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
speaking1ode has joined #ruby
<dopie> sevenseacat, that doesn't really explain much :)
speakingcode has quit [Ping timeout: 260 seconds]
lkba has quit [Ping timeout: 260 seconds]
iteratorP has joined #ruby
duper has quit [Ping timeout: 260 seconds]
ghr has joined #ruby
duper has joined #ruby
kireevco has quit [Quit: Leaving.]
dawkirst has joined #ruby
iteratorP has quit [Remote host closed the connection]
iteratorP has joined #ruby
CorySimmons has quit [Ping timeout: 245 seconds]
ghr has quit [Ping timeout: 245 seconds]
dawkirst has quit [Client Quit]
razum2um has joined #ruby
niharvey has quit [Ping timeout: 240 seconds]
CorySimmons has joined #ruby
<godd2> dopie remember that when you have an person object (like person = Person.new) that person has instance variables, and it has methods, which are two different things. If you say person.legs, then you might have a #legs method which returns the value inside the @legs instance variable, but the method and the instance variable are two separate things.
<godd2> attr_accessor is a little bit of magic which writes a method for you so you can access an instance variable of the same name
niharvey has joined #ruby
benzrf is now known as benzrf|offline
balazs has quit [Ping timeout: 255 seconds]
InfraRuby has left #ruby [#ruby]
sudomatic has quit [Ping timeout: 272 seconds]
Audace has joined #ruby
amacou has joined #ruby
urtokk has quit [Quit: WeeChat 0.4.3]
anaeem1_ has joined #ruby
Photism has quit [Quit: Leaving]
jprovazn has joined #ruby
nateberkopec has joined #ruby
Rollabunna has joined #ruby
amacou has quit [Remote host closed the connection]
bal has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
teddyp1cker has joined #ruby
Matadoer has quit [Remote host closed the connection]
techsethi has joined #ruby
amacou has joined #ruby
fgo has quit [Remote host closed the connection]
flowerhack has quit [Remote host closed the connection]
yubrew has joined #ruby
bMalum has joined #ruby
einarj has joined #ruby
tobago has joined #ruby
Danibal has joined #ruby
sethen has joined #ruby
urtokk has joined #ruby
flowerhack has joined #ruby
yubrew has quit [Ping timeout: 250 seconds]
bMalum has quit [Ping timeout: 245 seconds]
Blizzy has quit [Ping timeout: 255 seconds]
einarj has quit [Ping timeout: 250 seconds]
<eam> ok, I've tracked down some of the build problems with gem
<eam> there are quoting issues with $ in LDFLAGS so for example an rpath in the base ruby's build won't be shared with gems
Danibal has quit [Ping timeout: 240 seconds]
mocchi has quit [Quit: ZNC - http://znc.in]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
Xeago has joined #ruby
mountaingoat has quit [Ping timeout: 260 seconds]
Jackneill has joined #ruby
bMalum has joined #ruby
bal has quit [Quit: bal]
amacou has quit [Remote host closed the connection]
Panicky has quit [Ping timeout: 260 seconds]
bMalum has quit [Ping timeout: 245 seconds]
Bira has joined #ruby
RyanV has joined #ruby
noop has joined #ruby
Bira has quit [Ping timeout: 260 seconds]
jottr_ has joined #ruby
threesixes has quit [Ping timeout: 272 seconds]
bal has joined #ruby
Xeago_ has joined #ruby
relix has joined #ruby
gauke has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
bricker`LA has joined #ruby
ghr has joined #ruby
vaq has quit [Ping timeout: 246 seconds]
fgo has joined #ruby
shredding has joined #ruby
kbuttonwood has quit [Quit: Lost terminal]
philcrissman has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
fgo has quit [Ping timeout: 244 seconds]
nat2610 has quit [Quit: Leaving.]
nat2610 has joined #ruby
Takle has joined #ruby
niklasb has joined #ruby
niklasb has quit [Client Quit]
philcrissman has quit [Ping timeout: 255 seconds]
fgo has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
arup_r has quit []
arup_r has joined #ruby
dumdedum has joined #ruby
<arup_r> Not able to understand how the output class are the instances of Module ?
<arup_r> >> ObjectSpace.each_object(Module) {|m| p m if m.instance_methods.include? :to_proc}
<eval-in> arup_r => Symbol ... (https://eval.in/178426)
Macaveli has joined #ruby
<arup_r> 2.1.2 :001 > ObjectSpace.each_object(Module) {|m| p m if m.instance_methods.include? :to_proc}
<arup_r> Symbol
<arup_r> Method
<arup_r> Proc
<arup_r> => 445
fgo has quit [Ping timeout: 255 seconds]
<arup_r> eval-in is made me fool damn! Anyway
toastynerd has quit [Remote host closed the connection]
<arup_r> Can you give the reasoning ?
olivier_bK has joined #ruby
toastynerd has joined #ruby
nateberkopec has joined #ruby
<shevy> you are micro learning
<shevy> if you need a Proc object you can get it
<shevy> if you don't need a Proc object then you won't need the method
<shevy> "people would like to write that in a more concise way. In order to do that, a symbol, the method Symbol#to_proc, implicit class casting, and & operator are used in combination"
nighter_ is now known as nighter
<arup_r> shevy: That is not my question.
<arup_r> Why ObjectSpace.each_object(Module) is giving class names inside the blocks..
<Mon_Ouie> Because you asked it to iterate over every Module
ta has joined #ruby
<Mon_Ouie> And a Class is a kind of Module
<arup_r> What I don't understand is why Symbol, Proc they are class.. How they become instances of Module
<arup_r> I am a bit lost on thatr
<Mon_Ouie> >> Class < Module
<eval-in> Mon_Ouie => true (https://eval.in/178427)
<Mon_Ouie> >> Class.superclass
<eval-in> Mon_Ouie => Module (https://eval.in/178428)
alex88 has joined #ruby
yubrew has joined #ruby
<arup_r> >> Proc < Module
<eval-in> arup_r => nil (https://eval.in/178429)
<arup_r> Oops!!
<Mon_Ouie> >> Proc.is_a? Module
<eval-in> Mon_Ouie => true (https://eval.in/178430)
nateberkopec has quit [Ping timeout: 240 seconds]
<Mon_Ouie> Proc is not a subclass of module, it is an instance of one of its subclasses
maasha has joined #ruby
andrewlio has joined #ruby
<maasha> morn
juz88 has joined #ruby
<arup_r> >> Module === Symbol
<eval-in> arup_r => true (https://eval.in/178432)
<arup_r> Ok.. This is how.. Humm Tasty
Xeago_ has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
gondalie_ has quit []
<maasha> I am exploring options to keep track of status from forked processes? IPC via pipes, temporary status files, ... etc?
<godd2> inherits from != instance of
Xeago_ has joined #ruby
<godd2> obj.class is "what are you an instace of" and obj.superclass is "what do you inherit from"
<maasha> btw, not only end of process status, but running status.
yubrew has quit [Ping timeout: 272 seconds]
<arup_r> Mon_Ouie shevy thanks.. Got my sense bac
<apeiros> maasha: take a look at the Fork gem
<arup_r> back
kaspergrubbe_ has joined #ruby
Xeago_ has quit [Remote host closed the connection]
yetanotherdave has quit [Ping timeout: 264 seconds]
<maasha> apeiros: yup, I am aware of that for IPC via pipes. I was just wondering about the alternatives like temp files, sockets, message queues ..
<arup_r> shevy micro learning means ? :-)
Xeago has quit [Ping timeout: 250 seconds]
jhass|off is now known as jhass
klaut has joined #ruby
Danibal has joined #ruby
<shevy> arup_r to know every detail even when you don't need it!
<maasha> apeiros: should your fork gem have an option to use messagepack instead of marshal?
<arup_r> shevy I stuck there http://blog.rubybestpractices.com/posts/rklemme/020-Code_Massage.html, so need to unstuck me
<shevy> yeah simple
<shevy> stop reading blogs and instead write more stuff
<maasha> shevy: robert klemme is a very clever and very helpful guy.
<maasha> is he on IRC?
anarang has joined #ruby
tectonic has quit []
<apeiros> maasha: it doesn't have one. feel free to fork and add choosable serialization.
<maasha> apeiros: right
amacou has joined #ruby
KnownSyntax has joined #ruby
RyanV has quit [Quit: Lingo - http://www.lingoirc.com]
<arup_r> shevy: One awesome trick he explained.. so I was giving it time. :-) But you are true
Danibal has quit [Ping timeout: 250 seconds]
toastynerd has quit [Remote host closed the connection]
thumpba has quit [Read error: Connection timed out]
thumpba has joined #ruby
qq[IrcCity] has quit [Ping timeout: 250 seconds]
toastynerd has joined #ruby
banister has joined #ruby
wackobobby has quit [Ping timeout: 272 seconds]
LiohAu_ has joined #ruby
Xeago has joined #ruby
mijicd has joined #ruby
CorpusCallosum has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
Bira has joined #ruby
emmesswhy has joined #ruby
juz88 has quit [Ping timeout: 260 seconds]
elaptics is now known as elaptics`away
doev has joined #ruby
mijicd has quit [Remote host closed the connection]
Xeago has joined #ruby
chth0n has joined #ruby
Bira has quit [Ping timeout: 260 seconds]
radic has quit [Ping timeout: 245 seconds]
Xeago has quit [Remote host closed the connection]
radic has joined #ruby
mocchi has joined #ruby
qba73 has joined #ruby
mijicd has joined #ruby
thomasxie has joined #ruby
thomasxie has quit [Remote host closed the connection]
thomasxie has joined #ruby
mr-foobar has quit [Read error: Connection reset by peer]
yetanotherdave has joined #ruby
kaspergrubbe_ has quit [Remote host closed the connection]
InhalingPixels has joined #ruby
mr-foobar has joined #ruby
kotk_ has joined #ruby
<arup_r> recursive question.. made me confused totally.. See if you guys can help him :-) http://stackoverflow.com/questions/25258677/accessing-class-methods-of-module
fgo has joined #ruby
kotk has quit [Ping timeout: 264 seconds]
<jhass> there's nothing recursive in there
ghr has joined #ruby
kaspergrubbe_ has joined #ruby
<sevenseacat> don't apply that kind of common sense, now.
InhalingPixels has quit [Ping timeout: 260 seconds]
yetanotherdave has quit [Ping timeout: 272 seconds]
<arup_r> jhass include.. extend then again include and extend.. hooks and I am lost
<arup_r> sevenseacat means ?
mikecmpbll has joined #ruby
<jhass> extend is just a shortcut for singleton_class.include
<arup_r> jhass Ok
amacou has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 260 seconds]
amacou has joined #ruby
fgo_ has joined #ruby
Darryl has joined #ruby
sk87 has joined #ruby
MatthewsFace has quit [Ping timeout: 255 seconds]
bayed has joined #ruby
toastynerd has quit [Remote host closed the connection]
chth0n has quit [Quit: Ex-Chat]
Xeago has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
dseitz has quit [Ping timeout: 260 seconds]
glenfe has joined #ruby
Xeago has quit [Remote host closed the connection]
axsuul has quit [Ping timeout: 240 seconds]
chth0n has joined #ruby
axsuul has joined #ruby
abuzze_ has quit [Remote host closed the connection]
shredding has quit [Read error: Connection reset by peer]
abuzze has joined #ruby
elaptics`away is now known as elaptics
joonty has joined #ruby
St_Marx has quit [Ping timeout: 264 seconds]
easier has quit [Read error: Connection reset by peer]
<dopie> ok heres another one
OrkzRule has joined #ruby
mercwithamouth has joined #ruby
yubrew has joined #ruby
W0rmDr1nk has quit [Ping timeout: 244 seconds]
<dopie> how do i make it that winning_text(player_selection) the case player_selection has @human.name
<dopie> how do i make it that it also would have the @computer.name depending on what parameter is sent to player_selection
<dopie> if @p than use @human.name
<dopie> if @c than use @computer.name
Insanity_ has joined #ruby
<dopie> kinda like 2 cases
<Insanity_> Could someone help with a problem?
<Insanity_> *help me
<jhass> dopie: 1 stands for paper, 2 for rock and so on?
<dopie> yeah
krisquigley has joined #ruby
<jhass> dopie: don't do that, use symbols, like :paper, :rock
<ddv> Insanity_: don't ask to ask
nateberkopec has joined #ruby
<dopie> jhass, umm how would i use symbols?
<jhass> dopie: if you have to convert that from something like a text input do a hash PICKS = {"1" => :paper, "2" => :rock}; ... pick = PICKS[gets.chomp]
<Insanity_> Everytime I use the gem package task in my rakefile I get this error: rake aborted! Don't know how to build task 'README.rdoc'
<Insanity_> The thing is I don't want to generate rdoc docs in the first place
ephemerian has joined #ruby
yubrew has quit [Ping timeout: 245 seconds]
shredding has joined #ruby
<jhass> dopie: and for the name I'd simply make that a parameter to winning_text: winning_text human_pick, @human.name
diegoviola has quit [Quit: WeeChat 0.4.3]
<jhass> dopie: you should rename @c and @p btw and I see no reason for them to be instance variables
<ddv> Insanity_: put this in ~/.gemrc: gem: --no-ri --no-rdoc
qba73_ has joined #ruby
glenfe has left #ruby ["Leaving"]
Atttwww has quit [Ping timeout: 272 seconds]
<Insanity_> @ddv The funny thing is I have a pretty much identival gemspec and rakefile yet I dont receive the error
qba73_ has quit [Client Quit]
Audace has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nateberkopec has quit [Ping timeout: 240 seconds]
<dopie> ddv
qba73 has quit [Ping timeout: 245 seconds]
<ddv> dopie
axsuul has quit [Ping timeout: 246 seconds]
amacou has quit [Remote host closed the connection]
<dopie> yeah youre right about the instance variables in compare_picks
<dopie> :)
Takle has quit [Remote host closed the connection]
<ddv> jhass != ddv
<dopie> errr
<dopie> wtf
<dopie> hahaha
<dopie> 3:30am
<dopie> jhass, thank you
amacou has joined #ruby
St_Marx has joined #ruby
Insanity_ has left #ruby [#ruby]
ptrrr has joined #ruby
<sevenseacat> i like this game, the human never loses
<dopie> i know
<dopie> :)
<dopie> winning_text
<sevenseacat> even after his soul gets crushed, he still wins
<dopie> hahaha
mist has quit [Quit: leaving]
arup_r has quit [Remote host closed the connection]
einarj has joined #ruby
Takle has joined #ruby
Danibal has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
zarul has quit [Ping timeout: 260 seconds]
einarj has quit [Ping timeout: 260 seconds]
Danibal has quit [Ping timeout: 246 seconds]
rmulligan has joined #ruby
ddv has quit [Changing host]
ddv has joined #ruby
wallerdev has quit [Quit: wallerdev]
rmulligan has quit [Remote host closed the connection]
chihhsin has quit [Ping timeout: 264 seconds]
Zespre has quit [Ping timeout: 272 seconds]
chihhsin has joined #ruby
Zespre has joined #ruby
nat2610 has quit [Quit: Leaving.]
craigp has joined #ruby
craigp has quit [Remote host closed the connection]
Bira has joined #ruby
mbuf has joined #ruby
Xeago has joined #ruby
kalz has quit [Ping timeout: 250 seconds]
W0rmDr1nk has joined #ruby
Xeago_ has joined #ruby
toastynerd has joined #ruby
Xeago_ has quit [Remote host closed the connection]
philcrissman has joined #ruby
toastynerd has quit [Read error: Connection reset by peer]
Bira has quit [Ping timeout: 244 seconds]
toastynerd has joined #ruby
Xeago has quit [Ping timeout: 260 seconds]
lyuzashi has quit [Ping timeout: 272 seconds]
carraroj has joined #ruby
xenomorph is now known as {xenomorph}
oo_ has quit [Remote host closed the connection]
lkba has joined #ruby
oo_ has joined #ruby
philcrissman has quit [Ping timeout: 264 seconds]
oo_ has quit [Remote host closed the connection]
Shidash has quit [Ping timeout: 240 seconds]
marr has joined #ruby
toastynerd has quit [Ping timeout: 264 seconds]
armyriad has quit [Ping timeout: 264 seconds]
oo_ has joined #ruby
yetanotherdave has joined #ruby
armyriad has joined #ruby
InhalingPixels has joined #ruby
hellangel7 has joined #ruby
gaussblurinc1 has joined #ruby
Photism has joined #ruby
Xeago has joined #ruby
InhalingPixels has quit [Ping timeout: 272 seconds]
yetanotherdave has quit [Ping timeout: 264 seconds]
arup_r has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
stef_204 has joined #ruby
Olipro has quit [Ping timeout: 256 seconds]
sevenseacat has quit [Quit: Leaving.]
carraroj has quit [Quit: Konversation terminated!]
carraroj has joined #ruby
ari-_-e has quit [Ping timeout: 260 seconds]
kaspertidemann has joined #ruby
gogohome has joined #ruby
decoponio has joined #ruby
lkba has quit [Ping timeout: 255 seconds]
Olipro has joined #ruby
Olipro has quit [Changing host]
Olipro has joined #ruby
abuzze_ has joined #ruby
mbuf has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
craigp has joined #ruby
dawkirst has joined #ruby
mbuf has joined #ruby
ari-_-e has joined #ruby
mr-foobar has quit [Read error: Connection reset by peer]
mr-foobar has joined #ruby
amacou has quit [Remote host closed the connection]
abuzze has quit [Ping timeout: 240 seconds]
nfk has joined #ruby
yubrew has joined #ruby
codecop has joined #ruby
Xeago_ has quit [Remote host closed the connection]
Wolland has quit []
benlieb has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
patric100e99 has joined #ruby
Xeago has joined #ruby
cHarNe2_ is now known as cHarNe2
ArchBeOS-work has quit [Quit: Leaving]
nateberkopec has joined #ruby
patric100e99 has quit [Ping timeout: 264 seconds]
kalz has joined #ruby
spider-mario has joined #ruby
Wolland has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
carraroj has quit [Ping timeout: 260 seconds]
Xeago has quit [Remote host closed the connection]
AlSquire has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
einarj has joined #ruby
timonv_ has joined #ruby
zarul has joined #ruby
Danibal has joined #ruby
realDAB has joined #ruby
jottr_ has quit [Ping timeout: 240 seconds]
einarj has quit [Ping timeout: 245 seconds]
wmp has left #ruby ["Konversation terminated!"]
Danibal has quit [Ping timeout: 240 seconds]
Wolland has quit []
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
InfraRuby has joined #ruby
emmesswhy has quit [Quit: Leaving]
postmodern has quit [Quit: Leaving]
nszceta has joined #ruby
bcavileer has quit [Ping timeout: 250 seconds]
ggherdov has quit [Ping timeout: 240 seconds]
mattmcclure has quit [Quit: Connection closed for inactivity]
Bira has joined #ruby
dioms_ has quit [Ping timeout: 240 seconds]
pusewicz has quit [Ping timeout: 240 seconds]
bcavileer has joined #ruby
echooo1 has quit [Quit: echooo1]
Striki has quit [Ping timeout: 260 seconds]
halfdan has quit [Ping timeout: 240 seconds]
dziga has quit [Ping timeout: 272 seconds]
jeregrine has quit [Ping timeout: 260 seconds]
Tranquility has quit [Ping timeout: 272 seconds]
metadave has quit [Ping timeout: 272 seconds]
ballPointPenguin has quit [Ping timeout: 240 seconds]
neersighted has quit [Ping timeout: 240 seconds]
CJD14___ has quit [Ping timeout: 240 seconds]
pygospa has quit [Quit: leaving]
nfk has quit [Quit: yawn]
natewalck has quit [Ping timeout: 272 seconds]
Darryl has quit [Ping timeout: 240 seconds]
im0b has quit [Ping timeout: 240 seconds]
ikanobori has quit [Ping timeout: 240 seconds]
paulog has quit [Ping timeout: 240 seconds]
dmoe______ has quit [Ping timeout: 240 seconds]
dioms_ has joined #ruby
pygospa has joined #ruby
Scorchin has quit [Ping timeout: 250 seconds]
jpinnix has quit [Ping timeout: 240 seconds]
bedouin has quit [Ping timeout: 240 seconds]
charles81 has quit [Ping timeout: 272 seconds]
thesheff17 has quit [Ping timeout: 272 seconds]
culturelabs__ has quit [Ping timeout: 272 seconds]
toastynerd has joined #ruby
meinside has quit [Ping timeout: 260 seconds]
pusewicz has joined #ruby
lectrick has quit [Ping timeout: 240 seconds]
Striki has joined #ruby
maZtah has quit [Ping timeout: 240 seconds]
jds has quit [Ping timeout: 260 seconds]
daxroc_ has quit [Ping timeout: 260 seconds]
bjeanes has quit [Ping timeout: 250 seconds]
Bira has quit [Ping timeout: 246 seconds]
goshdarnyou has quit [Ping timeout: 240 seconds]
tarcwynne has quit [Ping timeout: 240 seconds]
skmp has quit [Ping timeout: 240 seconds]
halfdan has joined #ruby
benlieb has quit [Quit: benlieb]
Scorchin has joined #ruby
schaary has quit [Ping timeout: 260 seconds]
ELLIOTTCABLE has quit [Ping timeout: 240 seconds]
rickruby has quit [Ping timeout: 240 seconds]
chihhsin_cloud has quit [Ping timeout: 272 seconds]
mroth has quit [Ping timeout: 240 seconds]
vcoinminer____ has quit [Ping timeout: 250 seconds]
cbetta has quit [Ping timeout: 250 seconds]
olleromo__ has quit [Ping timeout: 272 seconds]
charles81 has joined #ruby
achoom has quit [Ping timeout: 240 seconds]
adambeynon has quit [Ping timeout: 240 seconds]
mjc_ has quit [Ping timeout: 250 seconds]
jeregrine has joined #ruby
ikanobori has joined #ruby
paulog_ has joined #ruby
olivier_bK has quit [Remote host closed the connection]
antonishen has quit [Ping timeout: 272 seconds]
im0b has joined #ruby
ceej has quit [Ping timeout: 260 seconds]
dmoe______ has joined #ruby
alol has quit [Ping timeout: 240 seconds]
glowcoil has quit [Ping timeout: 240 seconds]
frode15243 has quit [Ping timeout: 250 seconds]
ramblinpeck has quit [Ping timeout: 272 seconds]
pigram86 has joined #ruby
tiagonobre has quit [Ping timeout: 260 seconds]
yo61 has quit [Ping timeout: 260 seconds]
kapowaz has quit [Ping timeout: 260 seconds]
troter has quit [Ping timeout: 240 seconds]
amitchellbullard has quit [Ping timeout: 240 seconds]
machty has quit [Ping timeout: 272 seconds]
akitada has quit [Ping timeout: 272 seconds]
mattyohe has quit [Ping timeout: 272 seconds]
jrunning has quit [Ping timeout: 272 seconds]
ballPointPenguin has joined #ruby
pigram86 has quit [Read error: Connection reset by peer]
CJD14___ has joined #ruby
vcoinminer____ has joined #ruby
dziga has joined #ruby
culturelabs__ has joined #ruby
toastynerd has quit [Ping timeout: 260 seconds]
bcavileer has quit [Ping timeout: 260 seconds]
pigram86 has joined #ruby
maZtah_ has joined #ruby
ggherdov has joined #ruby
wackobobby has joined #ruby
EasyCo has quit [Ping timeout: 250 seconds]
andrewcarter has quit [Ping timeout: 250 seconds]
bayed has quit [Ping timeout: 240 seconds]
benlakey has quit [Ping timeout: 240 seconds]
Darryl has joined #ruby
mjc_ has joined #ruby
dziga is now known as Guest16224
ssut has quit [Ping timeout: 250 seconds]
metadave has joined #ruby
achoom__ has quit [Ping timeout: 250 seconds]
adambeynon has joined #ruby
tarcwynne has joined #ruby
InhalingPixels has joined #ruby
cmaxw_____ has quit [Ping timeout: 260 seconds]
tadejm has quit [Ping timeout: 240 seconds]
jeregrine has quit [Ping timeout: 244 seconds]
yetanotherdave has joined #ruby
ikanobori has quit [Ping timeout: 240 seconds]
paulog_ has quit [Ping timeout: 272 seconds]
Guest85414______ has quit [Ping timeout: 272 seconds]
cbetta has joined #ruby
dioms_ has quit [Ping timeout: 260 seconds]
juz88 has joined #ruby
mattyohe has joined #ruby
andrewstewart has quit [Ping timeout: 240 seconds]
rfv has quit [Ping timeout: 260 seconds]
kapowaz has joined #ruby
bjeanes has joined #ruby
yo61 has joined #ruby
alol_ has joined #ruby
EasyCo has joined #ruby
machty has joined #ruby
amitchellbullard has joined #ruby
frode15243_ has joined #ruby
troter has joined #ruby
olleromo__ has joined #ruby
Grantlyk has joined #ruby
jrunning has joined #ruby
tiagonobre has joined #ruby
jpinnix has joined #ruby
achoom has joined #ruby
skmp has joined #ruby
daxroc_ has joined #ruby
tadejm has joined #ruby
chihhsin_cloud has joined #ruby
ramblinpeck has joined #ruby
ssut has joined #ruby
schaary|afk has joined #ruby
akitada has joined #ruby
benlakey has joined #ruby
thesheff17 has joined #ruby
Tranquility_ has joined #ruby
lectrick has joined #ruby
jds has joined #ruby
rickruby has joined #ruby
glowcoil has joined #ruby
natewalck has joined #ruby
achoom__ has joined #ruby
mroth has joined #ruby
andrewcarter has joined #ruby
tokengingerkimjo has joined #ruby
antonishen has joined #ruby
bayed has joined #ruby
cmaxw_____ has joined #ruby
Guest85414______ has joined #ruby
ikanobori has joined #ruby
dioms_ has joined #ruby
paulog_ has joined #ruby
ELLIOTTCABLE has joined #ruby
meinside has joined #ruby
bcavileer has joined #ruby
rfv has joined #ruby
ceej has joined #ruby
InhalingPixels has quit [Ping timeout: 240 seconds]
andrewstewart_ has joined #ruby
jeregrine has joined #ruby
bedouin_ has joined #ruby
yetanotherdave has quit [Ping timeout: 246 seconds]
kaspertidemann has quit []
sandelius has joined #ruby
yubrew has joined #ruby
hellangel7 has quit [Read error: Connection reset by peer]
nszceta has quit []
yubrew has quit [Ping timeout: 240 seconds]
mackintosh has quit [Quit: Lost terminal]
LangeOortjes has joined #ruby
karupa is now known as zz_karupa
lolmaus has quit [Ping timeout: 245 seconds]
abuzze has joined #ruby
olivier_bK has joined #ruby
felixjet_ has joined #ruby
iteratorP has quit [Remote host closed the connection]
abuzze_ has quit [Ping timeout: 260 seconds]
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sandelius has joined #ruby
nateberkopec has joined #ruby
InfraRuby has left #ruby [#ruby]
felixjet has quit [Ping timeout: 260 seconds]
amacou has joined #ruby
mercwithamouth has quit [Ping timeout: 255 seconds]
CorySimmons has quit [Quit: Zzz...]
frode15243_ is now known as frode15243
frode15243 has quit [Changing host]
frode15243 has joined #ruby
annelies has joined #ruby
annelies has left #ruby ["Leaving"]
nateberkopec has quit [Ping timeout: 240 seconds]
froggy__ has joined #ruby
juz88 has quit [Ping timeout: 250 seconds]
amacou has quit [Remote host closed the connection]
<gogohome> Hello
mrmist has joined #ruby
taybin has joined #ruby
amacou has joined #ruby
Bira has joined #ruby
froggy_ has quit [Ping timeout: 255 seconds]
amacou has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
mrmist is now known as mist
PanPan has quit [Quit: ChatZilla 0.9.90.1 [Firefox 31.0/20140716183446]]
kephra has joined #ruby
<kephra> moin
<tagrudev> yolo
juz88 has joined #ruby
<kephra> is there a way to tell create_makefile to give the Makefile a different name?
Lucky_ has joined #ruby
Zespre has quit [Quit: leaving]
Danibal has joined #ruby
Zespre has joined #ruby
Zespre has quit [Client Quit]
CorySimmons has joined #ruby
Zespre has joined #ruby
tokik has quit [Ping timeout: 260 seconds]
luckyruby has quit [Quit: Leaving...]
CorySimmons has quit [Client Quit]
amacou has joined #ruby
\u has quit [Ping timeout: 250 seconds]
amacou has quit [Remote host closed the connection]
mbuf has quit [Ping timeout: 250 seconds]
shredding has quit [Ping timeout: 255 seconds]
philcrissman has joined #ruby
Danibal has quit [Ping timeout: 272 seconds]
realDAB has quit [Quit: realDAB]
duper has quit [Ping timeout: 260 seconds]
Bira has quit [Remote host closed the connection]
philcrissman has quit [Ping timeout: 272 seconds]
duper has joined #ruby
shredding has joined #ruby
\q has joined #ruby
keen______ has joined #ruby
keen_____ has quit [Ping timeout: 250 seconds]
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pigram86_ has joined #ruby
Takle has quit [Remote host closed the connection]
pigram86 has quit [Ping timeout: 255 seconds]
InfraRuby has joined #ruby
toastynerd has joined #ruby
lolmaus has joined #ruby
amacou has joined #ruby
whyy has quit [Remote host closed the connection]
realDAB has joined #ruby
<Hanmac> kephra: you can change the name of the output lib with a parameter but i think the name of the makefile is fix ... its also a bit important to have that name, otherwise make might not find it
whyy has joined #ruby
kaspertidemann has joined #ruby
<kephra> Hanmac, the ruby extension is only one of many usages of my lib - so its nasty that create_makefile overwrites the main makefile
juz88 has quit [Ping timeout: 255 seconds]
Shakyj has left #ruby [#ruby]
<kephra> so far all those make helpers are half baked shit, regardless if Qt, Ruby or others ;-(
<Hanmac> put the ruby ext into a secondary dir
max06 has joined #ruby
tjr9898 has joined #ruby
toastynerd has quit [Ping timeout: 240 seconds]
tkuchiki_ has joined #ruby
alexju has joined #ruby
whyy has quit [Ping timeout: 260 seconds]
taybin has quit [Quit: This computer has gone to sleep]
InhalingPixels has joined #ruby
basiclaser has quit [Excess Flood]
godd2 has quit [Ping timeout: 244 seconds]
InfraRuby has left #ruby [#ruby]
yetanotherdave has joined #ruby
tkuchiki has quit [Ping timeout: 260 seconds]
basiclaser has joined #ruby
jdj_dk has joined #ruby
siukit2014 has quit [Ping timeout: 240 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
tkuchiki_ has quit [Ping timeout: 246 seconds]
yubrew has joined #ruby
taybin has joined #ruby
phinfonet has joined #ruby
netzfisch has joined #ruby
InhalingPixels has quit [Ping timeout: 245 seconds]
taybin has quit [Client Quit]
thomasxie has left #ruby [#ruby]
phoo1234567 has joined #ruby
nszceta has joined #ruby
phoo1234567 has quit [Max SendQ exceeded]
yubrew has quit [Ping timeout: 245 seconds]
phoo1234567 has joined #ruby
yetanotherdave has quit [Ping timeout: 246 seconds]
juz88 has joined #ruby
gogohome has quit [Quit: gogohome]
Takle has joined #ruby
mbuf has joined #ruby
maroloccio has joined #ruby
arup_r has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
mostlybadfly has joined #ruby
oo_ has joined #ruby
chrishough has quit [Quit: chrishough]
InfraRuby has joined #ruby
<kephra> i'm doing this right now - fearing that incompatibilities of directory naming of non free operating system might cause later problems
shredding has quit [Quit: shredding]
InfraRuby has left #ruby [#ruby]
oo_ has quit [Ping timeout: 264 seconds]
<workmad3> kephra: well, windows will use / as a path separator normally
<workmad3> kephra: so that's less of a concern than having a sane POSIX build environment on said OS ;)
oo_ has joined #ruby
<kephra> I wonder, if someone here uses WIndows, and can test my Ruby extension in a few hours
siukit2014 has joined #ruby
gtrak has joined #ruby
<workmad3> kephra: not to mention that ruby will also handle translating / in file paths appropriately
<kephra> the extension implements Wylie tibetan transliteration - so it wont be useful for most people
<workmad3> kephra: which is why File::SEPARATOR is always "/" in ruby ;)
gogohome has joined #ruby
netzfisch is now known as netzfisch_
jdj_dk has quit [Remote host closed the connection]
<kephra> so next question - how to tell create_makefile that the extension requires a library in a different directory?
cobakobodob has quit [Ping timeout: 260 seconds]
patrick99e99 has joined #ruby
dorei has joined #ruby
Grantlyk has quit [Ping timeout: 250 seconds]
yfeldblum has quit [Remote host closed the connection]
lanox has joined #ruby
iteratorP has joined #ruby
juz88 has quit [Ping timeout: 260 seconds]
Danibal has joined #ruby
Danibal has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
patrick99e99 has quit [Ping timeout: 260 seconds]
professor_soap has joined #ruby
Grantlyk has joined #ruby
<professor_soap> hello
Bira has joined #ruby
nateberkopec has quit [Read error: Connection reset by peer]
Danibal has joined #ruby
nateberkope has joined #ruby
gccostabr has joined #ruby
<professor_soap> If I have a file with json objects, NOT speperated with commas, just like this: {"foo":"bar"}{"foo":"bar"}, is there a way to parse this and extract the objects to make a valid json array out of it?
iteratorP has quit [Ping timeout: 260 seconds]
amundj has quit [Quit: Textual IRC Client: www.textualapp.com]
oo_ has quit [Remote host closed the connection]
m8 has joined #ruby
oo_ has joined #ruby
sergiomiranda has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
Grantlyk has quit [Read error: Connection reset by peer]
davispuh has joined #ruby
Grantlyk has joined #ruby
nateberkope has quit [Ping timeout: 240 seconds]
<_lazarevsky> hello all
<_lazarevsky> I've got the following hash
mijicd has quit [Remote host closed the connection]
<_lazarevsky> I want to iterate over the keys for each of the roles
<_lazarevsky> namely get the key and value of update, key and value of create, etc..
thumpba_ has joined #ruby
Danibal has quit [Remote host closed the connection]
gtrak has quit [Ping timeout: 264 seconds]
max06 has quit [Quit: Leaving.]
thumpba has quit [Ping timeout: 264 seconds]
\q has quit [Ping timeout: 264 seconds]
ltd has quit [Ping timeout: 264 seconds]
tewlz has joined #ruby
\q has joined #ruby
lkba has joined #ruby
ltd has joined #ruby
_justin has joined #ruby
ldnunes has joined #ruby
larsam has quit [Ping timeout: 250 seconds]
doev has quit [Quit: Verlassend]
netzfisch_ has quit [Read error: Connection reset by peer]
abuzze has quit [Remote host closed the connection]
<Hanmac> professor_soap: i managed to use that JSON.load("["+s.gsub("}{","},{")+"]") ... so adding the commas does solve the problem
chillibite has joined #ruby
<kephra> I'm trying `find_library("../../../src/WylieUTF8.o", "UTFfromWylie")` but this results in `checking for UTFfromWylie() in -l../../../src/WylieUTF8.o... no` even if nm tells me that the function is there
ValicekB has quit [Ping timeout: 255 seconds]
teddyp1cker has quit [Remote host closed the connection]
krisquigley has quit [Remote host closed the connection]
amundj has joined #ruby
krisquigley has joined #ruby
DaniG2k has joined #ruby
chillibite has left #ruby [#ruby]
tewlz has quit [Ping timeout: 255 seconds]
cobakobodob has joined #ruby
shredding has joined #ruby
arup_r has joined #ruby
krisquigley has quit [Ping timeout: 246 seconds]
craigp has quit [Remote host closed the connection]
craigp has joined #ruby
toastynerd has joined #ruby
_justin has quit [Quit: _justin]
oo_ has quit [Remote host closed the connection]
chridal has quit [Ping timeout: 272 seconds]
oo_ has joined #ruby
easier has joined #ruby
oo_ has quit [Remote host closed the connection]
TorpedoSkyline has joined #ruby
oo_ has joined #ruby
<kephra> can someone explain how find_library is supposed to work?
ValicekB has joined #ruby
<professor_soap> Hanmac: True, that would work but I found a better solution for this specific case. Yours would solve it if it wasn't for the fact that I have nested object in there as well. I realized all the object was actually seperated with "\n"s, so I ended up gsubbing them into commas and them chomp out the last one for a valid json result. Thx anyway!
yubrew has joined #ruby
chridal has joined #ruby
professor_soap has quit []
toastynerd has quit [Ping timeout: 255 seconds]
mijicd has joined #ruby
<jhass> _lazarevsky: did you even try? it's pretty easy: permissions.each do |role_name, actions| actions.each do |action, to|
InhalingPixels has joined #ruby
ChrisHein has joined #ruby
whyy has joined #ruby
yubrew has quit [Ping timeout: 272 seconds]
spastorino has joined #ruby
nateberkopec has joined #ruby
yetanotherdave has joined #ruby
Sgeo has quit [Read error: Connection reset by peer]
timonv has joined #ruby
InhalingPixels has quit [Ping timeout: 250 seconds]
timonv has quit [Client Quit]
sk87 has joined #ruby
sk87 has quit [Client Quit]
krz has quit [Quit: WeeChat 0.4.3]
yetanotherdave has quit [Ping timeout: 245 seconds]
axilla has joined #ruby
parduse has joined #ruby
* kephra still curses find_library
shredding has quit [Quit: shredding]
Grantlyk has quit [Ping timeout: 260 seconds]
chihhsin_cloud has quit [Quit: Connection closed for inactivity]
workmad3 is now known as wm3|away
Grantlyk has joined #ruby
_justin has joined #ruby
jottr has joined #ruby
carraroj has joined #ruby
qmfnp has joined #ruby
ari-_-e has quit [Ping timeout: 272 seconds]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iteratorP has joined #ruby
timfoo has quit [Ping timeout: 244 seconds]
timfoo has joined #ruby
<n1lo> hello.. good morning fellas.
iteratorP has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
* kephra curses
<kephra> looking at the mkmf.log: conftest.c:5:53: error: 'UTFfromWylie' undeclared (first use in this function)
<kephra> so this will never work, because find_library produces a C file that does not even compile, and therefore never links
sambao21 has joined #ruby
larsam has joined #ruby
phutchins has joined #ruby
failshell has joined #ruby
whyy has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 246 seconds]
philcrissman has joined #ruby
tonyhb has joined #ruby
ppinto has joined #ruby
carraroj has quit [Ping timeout: 250 seconds]
ChrisHein has quit []
tarcwynne is now known as mr_flibble
ppinto has quit [Remote host closed the connection]
anaeem1_ has quit [Remote host closed the connection]
failshel_ has joined #ruby
britneywright has joined #ruby
anaeem1 has joined #ruby
abuzze has joined #ruby
yfeldblum has joined #ruby
TieSoul has joined #ruby
philcrissman has quit [Ping timeout: 245 seconds]
failshell has quit [Ping timeout: 240 seconds]
EasyCo has quit [Quit: Connection closed for inactivity]
xcesariox has quit [Quit: Textual IRC Client: www.textualapp.com]
yasu has quit [Quit: Tiarra 0.1+svn-39209: SIGTERM received; exit]
timfoo has quit [Ping timeout: 244 seconds]
yfeldblum has quit [Ping timeout: 246 seconds]
mbuf has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
yasu has joined #ruby
teddyp1cker has joined #ruby
timfoo has joined #ruby
yfeldblum has joined #ruby
whyy has joined #ruby
Morkel_ has joined #ruby
davedev24_ has joined #ruby
Morkel has quit [Ping timeout: 250 seconds]
Morkel_ is now known as Morkel
wm3|away has quit [Ping timeout: 260 seconds]
GriffinHeart has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 272 seconds]
jxf has joined #ruby
krisquigley has joined #ruby
ari-_-e has joined #ruby
chihhsin_cloud has joined #ruby
DaniG2k has quit [Quit: leaving]
InfraRuby has joined #ruby
dblessing has joined #ruby
hellangel7 has joined #ruby
anaeem1 has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
sk87 has joined #ruby
max06 has joined #ruby
InhalingPixels has joined #ruby
yubrew has joined #ruby
jprovazn has quit [Quit: Leaving]
whyy has quit [Remote host closed the connection]
icebourg has joined #ruby
toastynerd has joined #ruby
kaspergrubbe_ has quit [Remote host closed the connection]
jftf has joined #ruby
jprovazn has joined #ruby
whyy has joined #ruby
TheMoonMaster_ is now known as TheMoonMaster
gogohome has quit [Quit: gogohome]
<arup_r> How many people watch this.. https://www.youtube.com/watch?v=URSWYvyc42M#t=16 It is worth to watch
yubrew has quit [Ping timeout: 250 seconds]
GriffinHeart has joined #ruby
toastynerd has quit [Ping timeout: 245 seconds]
namxam has joined #ruby
lxsameer has quit [Quit: Leaving]
lanox has quit []
namxam has quit [Client Quit]
jdj_dk has joined #ruby
tewlz has joined #ruby
wombo has joined #ruby
d4ryus__ has joined #ruby
gogohome has joined #ruby
flowerhack has quit [Remote host closed the connection]
whyy has quit [Ping timeout: 272 seconds]
d4ryus has quit [Ping timeout: 250 seconds]
wm3|away has joined #ruby
ValicekB has quit [Ping timeout: 240 seconds]
teddyp1c_ has joined #ruby
yetanotherdave has joined #ruby
teddyp1cker has quit [Read error: Connection reset by peer]
itspots_ has quit [Remote host closed the connection]
mengu has joined #ruby
craigp has quit [Remote host closed the connection]
kaspergrubbe_ has joined #ruby
DivineEntity has quit [Quit: Lost terminal]
qwyeth has joined #ruby
krz has joined #ruby
bmurt has joined #ruby
max06 has quit [Quit: Leaving.]
yetanotherdave has quit [Ping timeout: 250 seconds]
jdj_dk has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
jdj_dk has joined #ruby
Zenigor has joined #ruby
agjacome_ has joined #ruby
charliesome has joined #ruby
agjacome has quit [Ping timeout: 246 seconds]
techsethi has quit [Quit: techsethi]
kaspertidemann has quit []
abuzze has quit [Remote host closed the connection]
ValicekB has joined #ruby
abuzze has joined #ruby
fukuyamaken has joined #ruby
Xeago has joined #ruby
fukuyamaken has left #ruby [#ruby]
wm3|away has quit [Ping timeout: 245 seconds]
Neomex has joined #ruby
tylerkern has joined #ruby
Xeago has quit [Remote host closed the connection]
jprovazn has quit [Quit: Leaving]
ringarin has joined #ruby
ValicekB has quit [Ping timeout: 245 seconds]
momomomomo has joined #ruby
MartinCleaver has joined #ruby
larissa has joined #ruby
pigram86 has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
jprovazn has joined #ruby
starkhalo has joined #ruby
_justin has quit [Quit: _justin]
oo_ has quit [Remote host closed the connection]
Xeago has joined #ruby
oo_ has joined #ruby
pigram86_ has quit [Ping timeout: 250 seconds]
alexju has quit [Remote host closed the connection]
wombo has quit [Ping timeout: 240 seconds]
alexju has joined #ruby
_justin has joined #ruby
carraroj has joined #ruby
jftf has quit [Ping timeout: 260 seconds]
jprovazn has quit [Client Quit]
jerius has joined #ruby
doodlehaus has joined #ruby
frankle has joined #ruby
ValicekB has joined #ruby
oo_ has quit [Ping timeout: 244 seconds]
msmith_ has joined #ruby
alexju has quit [Ping timeout: 240 seconds]
taybin has joined #ruby
Ankhers has joined #ruby
yfeldblum has joined #ruby
RTG`` has quit [Quit: Leaving]
RTG` has joined #ruby
dumdedum has quit [Quit: foo]
fgo_ has quit []
M00kaw has joined #ruby
gtrak has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
gtrak has quit [Remote host closed the connection]
eka has joined #ruby
jmbrown412 has quit [Remote host closed the connection]
<M00kaw> hi there... is it allowed to ask for help regarding some code, or is this channel for general ruby-talk ?
craigp has joined #ruby
jmbrown412 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gtrak has joined #ruby
M00kaw has left #ruby [#ruby]
mark_locklear has joined #ruby
_maes_ has joined #ruby
astav has joined #ruby
centrx has joined #ruby
<arup_r> M00kaw: You are allowed.. People here are very good
<canton7> asking's fine :P
<arup_r> :-)
sailias has joined #ruby
jmbrown412 has quit [Ping timeout: 250 seconds]
<Mon_Ouie> When you leave the channel, that's probably harder to do though :p
<canton7> damnit :P
icebourg has quit []
yubrew has joined #ruby
InfraRuby has left #ruby [#ruby]
Fire-Dragon-DoL has joined #ruby
davidleung has joined #ruby
<davidleung> i have checked out the repo of tryruby
<davidleung> is the building process "rake first"?
<davidleung> i tried to rake
<davidleung> and it complains The git source http://github.com/defunkt/fakefs.git is not yet checked out.
<davidleung> don't know how to go further
<davidleung> have rail installed half with the docs installation broken
<davidleung> on windows platform
<davidleung> using ruby 1.9.3 and installed dev kit
yubrew has quit [Ping timeout: 244 seconds]
wombo has joined #ruby
DaniG2k has joined #ruby
o0oo0o has quit [Quit: WeeChat 0.4.3]
kotk has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<davidleung> rails server gives me the same error
<davidleung> and i reset the devkitvars by using the devkitvars.bat from devkit
<mikecmpbll> and breathe.
wombo has quit [Client Quit]
<davidleung> why it's not installing fakefs automatically?
InfraRuby has joined #ruby
<davidleung> this is the part i don't understand. And I think it should be wrong, if I go the gem install path
toastynerd has joined #ruby
o0oo0o has joined #ruby
<davidleung> mikecmpbll: any ideas?
kotk_ has quit [Ping timeout: 244 seconds]
cocotton has joined #ruby
<mikecmpbll> i've no idea what you're trying to do tbh
<davidleung> mikecmpbll: trying to run a RoR app which is the tryruby git repo
Photism has quit [Quit: Leaving]
<davidleung> mikecmpbll: having devkit installed.
bearish has joined #ruby
<Mon_Ouie> Maybe you need to clone the repository recursively (i.e. pull submodules too)?
cpruitt has joined #ruby
<mikecmpbll> link to repo?
jprovazn has joined #ruby
<davidleung> Mon_Ouie: oh
<davidleung> Mon_Ouie: didn't think of that, i will try
charliesome has joined #ruby
TorpedoSkyline has joined #ruby
Kricir has joined #ruby
o0oo0o has quit [Remote host closed the connection]
jftf has joined #ruby
ta has quit [Remote host closed the connection]
wm3|away has joined #ruby
gogohome has left #ruby [#ruby]
krz has quit [Ping timeout: 260 seconds]
charliesome has quit [Client Quit]
carraroj has quit [Ping timeout: 240 seconds]
toastynerd has quit [Ping timeout: 240 seconds]
krz has joined #ruby
o0oo0o has joined #ruby
shackleford has joined #ruby
anarang has quit [Quit: Leaving]
Takle has quit [Remote host closed the connection]
shackleford has quit [Read error: Connection reset by peer]
<mikecmpbll> davidleung: have you `bundle install`'d?
shackleford has joined #ruby
<mikecmpbll> the project gemfile has a github reference to fakefs https://github.com/Sophrinix/TryRuby/blob/master/Gemfile#L6
<davidleung> mikecmpbll: huh? bundle install? no, I'm new to ruby. It's my first try
TorpedoSkyline has quit [Ping timeout: 260 seconds]
<mikecmpbll> seems like you haven't installed the bundle
jftf has quit [Ping timeout: 246 seconds]
<davidleung> mikecmpbll: seems like it starts to grep something
<mikecmpbll> bear in mind though, that repo hasn't been updated for 3 years or so, it's likely not to work with the latest ruby.
<davidleung> Mon_Ouie: btw, what's the command pulling the submodules of it
<davidleung> mikecmpbll: where's the newest repo for tryruby?
tonyhb has quit [Read error: Connection reset by peer]
wm3|away is now known as workmad3
<davidleung> mikecmpbll: tryruby.org works like a charm
<mikecmpbll> well we don't know what ruby tryruby.org runs on, do we?
tonyhb has joined #ruby
<davidleung> mikecmpbll: anything similar should be fine
<mikecmpbll> what do you mean?
Guest16224 has quit []
dziga has joined #ruby
cocotton has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
cocotton has joined #ruby
bearish has quit [Remote host closed the connection]
<davidleung> mikecmpbll: any tryruby rail app would be fine for me to test and run
Grantlyk has quit [Remote host closed the connection]
Xeago_ has joined #ruby
Grantlyk has joined #ruby
bearish has joined #ruby
<mikecmpbll> if you type RUBY_VERSION into tryruby.org
<mikecmpbll> you'll see it runs on 1.9.3
arup_r has quit []
<davidleung> mikecmpbll: oh
<mikecmpbll> so if you're running 2.1.0 for instance, you may (repeat may) have problems.
<davidleung> mikecmpbll: the bundle install process is so long o_O
freerobby has quit [Quit: Leaving.]
Blizzy has joined #ruby
yetanotherdave has joined #ruby
<davidleung> mikecmpbll: what's your best bet that would work ?
mary5030 has joined #ruby
Xeago__ has joined #ruby
<mikecmpbll> exactly what you're doing
<davidleung> mikecmpbll: github has several try ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
cocotton has quit [Ping timeout: 250 seconds]
mary5030 has quit [Remote host closed the connection]
<davidleung> mikecmpbll: there are newer ones too
ValicekB has quit [Ping timeout: 272 seconds]
<mikecmpbll> davidleung: what are you actually trying to achieve by running the tryruby web application?
mary5030 has joined #ruby
Xeago has quit [Ping timeout: 250 seconds]
<davidleung> mikecmpbll: understand the interpreter interaction part
tokengingerkimjo is now known as goshdarnyou
<davidleung> mikecmpbll: has been choosing the web server part for a while
goshdarnyou is now known as Guest76606
<mikecmpbll> not sure i understand what you mean
<davidleung> mikecmpbll: need a interpreter to work as a debugger
<mikecmpbll> heard of IRB?
<davidleung> mikecmpbll: and the page shall be extensible by ruby scripts
<davidleung> mikecmpbll: yeah
<mikecmpbll> don't you just want irb?
<davidleung> mikecmpbll: no
djcp has joined #ruby
<davidleung> mikecmpbll: need a web UI ruby debugger
<mikecmpbll> ok
_justin has quit [Quit: _justin]
Xeago_ has quit [Ping timeout: 240 seconds]
yetanotherdave has quit [Ping timeout: 245 seconds]
sambao21 has joined #ruby
o0oo0o has quit [Quit: WeeChat 0.4.3]
abuzze_ has joined #ruby
Xeago__ has quit [Remote host closed the connection]
<davidleung> mikecmpbll: and i want to be able to submit script to the webserver to make extensions to the app
johnmolina has joined #ruby
o0oo0o has joined #ruby
<mikecmpbll> sounds fun.. anything involving remote code execution is
dumdedum has joined #ruby
bearish has quit []
wombo has joined #ruby
<davidleung> mikecmpbll: and the script extend the database too
<davidleung> mikecmpbll: that works as the admin(developer) part
wombo has quit [Client Quit]
abuzze has quit [Ping timeout: 245 seconds]
<davidleung> mikecmpbll: but i don't know if it's possible to debug the ruby code like irb
<davidleung> mikecmpbll: i mean like it's running inside irb
kotk_ has joined #ruby
<Mon_Ouie> davidleung: It would be git submodule init I believe
teddyp1c_ has quit []
<davidleung> Mon_Ouie: thx
philcrissman has joined #ruby
timfoo has quit [Ping timeout: 244 seconds]
Kricir has quit [Remote host closed the connection]
iteratorP has joined #ruby
amacou has quit [Read error: Connection reset by peer]
<davidleung> mikecmpbll: it's like endless pulling process
amacou has joined #ruby
kotk has quit [Ping timeout: 272 seconds]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
hellangel7 has quit [Remote host closed the connection]
DEA7TH has joined #ruby
iteratorP has quit [Remote host closed the connection]
timfoo has joined #ruby
iteratorP has joined #ruby
cocotton has joined #ruby
iteratorP has quit [Remote host closed the connection]
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
ValicekB has joined #ruby
yubrew has joined #ruby
InfraRuby has left #ruby [#ruby]
philcrissman has quit [Ping timeout: 250 seconds]
olivier_bK has quit [Quit: Quitte]
zz_jrhorn424 is now known as jrhorn424
Aaaal has joined #ruby
olivier_bK has joined #ruby
alexju has joined #ruby
JohnFord has joined #ruby
livingstn has joined #ruby
sk87 has joined #ruby
jdj_dk has quit [Remote host closed the connection]
jftf_ has joined #ruby
Xeago has joined #ruby
wpp has joined #ruby
mengu has quit []
itspots has joined #ruby
yfeldblum has joined #ruby
Xeago has quit [Remote host closed the connection]
jftf_ has quit [Ping timeout: 240 seconds]
tagrudev has quit [Remote host closed the connection]
freerobby has joined #ruby
pigram86 has quit []
jonahR has joined #ruby
amargherio has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
yfeldblum has quit [Ping timeout: 250 seconds]
pigram86 has joined #ruby
taybin has quit [Quit: This computer has gone to sleep]
pigram86 has left #ruby [#ruby]
asteve has joined #ruby
niik00 has joined #ruby
snath has quit [Ping timeout: 250 seconds]
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
<niik00> Hi guys. I have with about 50 rake tasks. I'd like to know if they is an existing mechanism to trigger a handler when a rake task fail ? i.e. sending a mail with the stack trace
<niik00> I don't really want to update my 50 tasks manually and one by one add some begin rescue blocks so it'd be awesome if something to handle errors exists
thams has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
crazydiamond has joined #ruby
ffranz has joined #ruby
jprovazn has quit [Quit: Odcházím]
<crazydiamond> Hi. I have a script, that uses backticks in it, like `ls -la /` When I run it in general way like "ruby myscript.rb" it work well. But when I run it via supervisord and via sinatra, it says "No such file or directory - ls -la /". How can I fix it?
maasha has quit [Ping timeout: 246 seconds]
treehug88 has joined #ruby
kotk has joined #ruby
astav_ has joined #ruby
astav_ has quit [Client Quit]
sambao21 has joined #ruby
astav has quit [Ping timeout: 260 seconds]
kotk_ has quit [Ping timeout: 240 seconds]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
_cpt_yossarian_ has quit [Quit: Leaving]
<niik00> crazydiamond: you can try with system('ls -la /')
cpt_yossarian has joined #ruby
<crazydiamond> niik00, does that differ from short form?
LBRapid has quit [Ping timeout: 272 seconds]
<niik00> Well I'm not sure but backticks are maybe badly interpreted. Or maybe paste some code here
<crazydiamond> niik00, system('ls -la /') via sinatra and supervisord returns nil, and works well via just "ruby myscript.rb"
jimmyhoughjr has joined #ruby
agjacome_ has quit [Quit: Lost terminal]
tjr9898 has quit [Remote host closed the connection]
tjr9898 has joined #ruby
LBRapid has joined #ruby
<niik00> crazydiamond: if it returns nil, it means that your command failed.
tobago has quit [Remote host closed the connection]
icebourg has joined #ruby
icebourg has quit [Max SendQ exceeded]
enebo has joined #ruby
<crazydiamond> niik00, ok, thanks
icebourg has joined #ruby
<crazydiamond> btw, I guess now that this is rather rvm/supervisord configuration issue. Is there way to fix that instead? I.e. some manual how to deploy sinatra app with proper version of ruby (installed via rvm)?
<niik00> crazydiamond: Are you trying to read the root content of your server with Sinatra ?
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
iteratorP has joined #ruby
speaking1ode is now known as speakingcode
treehug88 has quit [Ping timeout: 272 seconds]
toastynerd has joined #ruby
<crazydiamond> niik00, my local pc
<crazydiamond> it's no problem for eiter my user or root to do that
anaeem1_ has quit [Remote host closed the connection]
<crazydiamond> I wanna my app to work on address like 127.0.0.1:8001
<crazydiamond> when I boot the pc
<crazydiamond> and when I visit it - to read stuff from disk and display info for me
szuletett has joined #ruby
<jhass> niik00: I guess I'd just write a wrapper script that executes rake and does the mailing
<niik00> crazydiamond: info like ? just file name & file size for example ?
iteratorP has quit [Ping timeout: 240 seconds]
toastynerd has quit [Ping timeout: 246 seconds]
<crazydiamond> niik00, it reads contents of files, processes them and shows to me
<crazydiamond> to count how many time I spend on things
<crazydiamond> like silly time-management tool
kevind has joined #ruby
Mongey has quit [Ping timeout: 240 seconds]
Kricir has joined #ruby
charliesome has joined #ruby
afhammad has joined #ruby
bal has quit [Quit: bal]
taybin has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
newUser1234 has joined #ruby
treehug88 has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
neersighted has joined #ruby
Mongey has joined #ruby
<niik00> jhass: seems a good idea. Can you tell how you'll do that with a little more details ? All my rake tasks are called from cron btw that why I'd like to be notify when a fail happens.
<jhass> why don't you just configure cron to mail you then?
yeticry has quit [Ping timeout: 250 seconds]
<jhass> MAILTO=my@address as first line in your crontab
<niik00> because I guess that I need root access to do that ? I don't think that the server has a smtp server installed
sergiomiranda has quit [Quit: sergiomiranda]
tylerkern has joined #ruby
<jhass> sendmail might suffice
<jhass> try if it does something
<jhass> you certainly don't need root
<niik00> well I'm gonna try :)
yetanotherdave has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
yeticry has joined #ruby
ringarin has quit [Ping timeout: 260 seconds]
krisquigley has quit [Remote host closed the connection]
krisquigley has joined #ruby
<jhass> crazydiamond: that sounds like $PATH isn't setup in that environment, try /bin/ls as command
<jhass> crazydiamond: I also hope that's not your real command, to list directory content use Dir.entries or Dir.glob or Dir[]
banister has joined #ruby
<crazydiamond> jhass, my real command is:
<crazydiamond> find /home/andrey/do/ -type f | grep -v Makefile | grep -v "\\.swp" | grep -v "\\.rb" | grep -v "\\.color"
codeurge has joined #ruby
<crazydiamond> (easier to do for me in bash than ruby)
ringarin has joined #ruby
yetanotherdave has quit [Ping timeout: 240 seconds]
<jhass> that's Dir.glob("/home/andrey/do/**/*").reject {|path| path.include?("Makefile") || path.include?(".swp") || path.include?(".rb") || path.include?(".color") }.select {|path| File.file? path } in ruby
TheNet has joined #ruby
<jhass> and I'd suggest you to use something like that instead
<crazydiamond> cool :D thanks
krisquigley has quit [Remote host closed the connection]
krisquigley has joined #ruby
gauke has quit [Quit: gauke]
<crazydiamond> and you're right `ls` wasn't avaliable as a command for me
<jhass> /bin/ls probably is
<crazydiamond> yes
<jhass> pretty sure just $PATH isn't setup
sambao21 has quit [Quit: Computer has gone to sleep.]
duggiefresh has joined #ruby
bMalum has joined #ruby
<crazydiamond> my supervisor config is like this http://dpaste.com/1BNRC7C
Bumptious has quit [Remote host closed the connection]
comma8 has quit [Ping timeout: 250 seconds]
wpp has quit []
xaxisx_ has joined #ruby
jftf_ has joined #ruby
<crazydiamond> however. to check that I must output path in my actual environment and standard one, and compare them
LBRapid has quit [Ping timeout: 260 seconds]
Macaveli has quit [Ping timeout: 260 seconds]
wjimenez5271 has joined #ruby
LangeOortjes has quit [Remote host closed the connection]
patric100e99 has joined #ruby
razum2um has quit [Quit: Leaving.]
larsam has left #ruby [#ruby]
Macaveli has joined #ruby
LBRapid has joined #ruby
beryllium has quit [Ping timeout: 240 seconds]
jftf_ has quit [Ping timeout: 240 seconds]
<niik00> jhass: seems it work like that. I just have to improve the system but it nice. Thanks !
snath has joined #ruby
xaxisx_ has quit [Quit: xaxisx_]
patric100e99 has quit [Ping timeout: 245 seconds]
xaxisx_ has joined #ruby
redondos has quit [Disconnected by services]
DaniG2k has quit [Quit: leaving]
beryllium has joined #ruby
Rollabunna has quit [Quit: Leaving...]
Macaveli has quit [Ping timeout: 240 seconds]
redondos- has joined #ruby
Bumptious has joined #ruby
Grantlyk has quit [Remote host closed the connection]
nszceta has quit [Ping timeout: 260 seconds]
Grantlyk has joined #ruby
szuletett has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
Bumptious has quit [Remote host closed the connection]
Bumptious has joined #ruby
oo_ has joined #ruby
wjimenez_ has joined #ruby
jmbrown412 has joined #ruby
davidleung has quit [Quit: ChatZilla 0.9.90.1 [Firefox 31.0/20140716183446]]
emmesswhy has joined #ruby
chrishough has joined #ruby
wjimenez5271 has quit [Ping timeout: 260 seconds]
professor_soap has joined #ruby
Bumptious has quit [Ping timeout: 255 seconds]
benzrf|offline is now known as benzrf
Macaveli has joined #ruby
zastern has quit [Quit: WeeChat 0.4.3]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<professor_soap> Ok I have a tricky string problem. I have a bunch of strings with some random data in them, but they all contain a certain piece of text like "special_info=something_of_value". Now this piece of information might be alone with a space carachter on both sides, or it might be joined with text on it's left side, All I know is every string has this pattern somewhere in it. How could I extraxt the value of these patt
<professor_soap> ern on the right side of the "=" sign?
sambao21 has quit [Quit: Computer has gone to sleep.]
<professor_soap> sorry for bad english
<apeiros> if it's joined with text, how do you know where the boundary is?
Xeago has joined #ruby
<apeiros> but generally, sounds like String#scan is what you need
sambao21 has joined #ruby
joonty has quit [Quit: Leaving]
Lucky___ has joined #ruby
<jhass> if I got that right there's always a space to the right of the value
<jhass> and known key
treehug88 has quit [Remote host closed the connection]
TorpedoSkyline has joined #ruby
kireevco has joined #ruby
<jhass> so I'd do .split("key=", 2).last.split(" ", 2).first
Macaveli has quit [Ping timeout: 255 seconds]
oo_ has quit [Remote host closed the connection]
treehug88 has joined #ruby
Spami has joined #ruby
Grantlyk has quit [Remote host closed the connection]
<apeiros> .scan(/knownkey=([^ ]*)/)
oo_ has joined #ruby
<apeiros> .flatten if necessary
ponch_ has joined #ruby
workmad3 has joined #ruby
zastern has joined #ruby
<apeiros> jhass: split won't get rid of the random data around the key-value pair
<apeiros> professor_soap: additional question: does the pattern occur once only in the string or multiple times?
Grantlyk_ has joined #ruby
arup_r has joined #ruby
thams has quit [Quit: thams]
<waxjar> string.match(/key ?= ?(\S+)/) { |value| "..." } ?
olivier_bK has quit [Ping timeout: 250 seconds]
<apeiros> um, String#match does not take a block, waxjar
GriffinHeart has joined #ruby
<professor_soap> hmm
<apeiros> huh
<jhass> >> "foookey=bar fooo".split("key=", 2).last.split(" ", 2).first # apeiros
<waxjar> it does :)
<apeiros> since when does it take a block? o0
<eval-in> jhass => "bar" (https://eval.in/178584)
oo__ has joined #ruby
<apeiros> yeah, just checked
<arup_r> It does
<professor_soap> looks like all good solutions
<waxjar> i love it for that :p
oo_ has quit [Read error: Connection reset by peer]
<professor_soap> apeiros: only once
rippa has joined #ruby
nszceta has joined #ruby
yacks has quit [Ping timeout: 240 seconds]
coca_rails has joined #ruby
<apeiros> seems to have happened in 1.9 already
coca_rails has left #ruby [#ruby]
koderok has joined #ruby
<apeiros> 1.8 didn't take a block. nice.
craigp has quit [Remote host closed the connection]
mikepack has joined #ruby
renderful has joined #ruby
haasn has quit [Ping timeout: 250 seconds]
nfk has joined #ruby
msmith_ has quit [Remote host closed the connection]
joshua__ has joined #ruby
<joshua__> Hey guys, question. I am using the figaro Gem to set ENV variables for my rails application. https://github.com/laserlemon/figaro
coca_rails has joined #ruby
nszceta has quit [Read error: Connection reset by peer]
<joshua__> If I want to change env variables, I re deploy, and as part of the dpeloyment process, touch tmp/restart.txt to restart the app
<joshua__> but it looks like the app isn't picking up the new ENV vars..
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<joshua__> but when I check ENV, they are the correct new env vars, but in Rails console if I run ENV, it still using the old env vars..
<joshua__> ideas?
nszceta has joined #ruby
TorpedoSkyline has joined #ruby
tewlz has quit [Ping timeout: 255 seconds]
nszceta has quit [Read error: Connection reset by peer]
_maes_ has joined #ruby
hamakn has quit [Remote host closed the connection]
nszceta has joined #ruby
ghostmoth has joined #ruby
nszceta has quit [Max SendQ exceeded]
jxf has quit [Ping timeout: 260 seconds]
TorpedoSkyline has quit [Client Quit]
noop has quit [Ping timeout: 260 seconds]
jftf_ has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
nszceta has joined #ruby
michaeldeol has joined #ruby
tonyhb has quit [Read error: Connection reset by peer]
craigp has joined #ruby
msmith_ has joined #ruby
arya_ has joined #ruby
craigp has quit [Remote host closed the connection]
<professor_soap> Hmmm shit. So what if this key=value will occur on multiple places in the string? :)
Grantlyk_ has quit [Remote host closed the connection]
starkhalo has quit [Ping timeout: 244 seconds]
livingstn has quit []
<jhass> then one of the scans
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
livingstn has joined #ruby
tonyhb has joined #ruby
haasn has joined #ruby
baroquebobcat has joined #ruby
omosoj has joined #ruby
<professor_soap> so scanning for each occurrence and extracting the value
<professor_soap> that sounds easy :)
maestrojed has joined #ruby
comma8 has joined #ruby
<jhass> >> "fookey=a foookey=b fooo".scan(/key=([^ ]+)/).map(&:first)
<eval-in> jhass => ["a", "b"] (https://eval.in/178585)
nszceta has quit [Max SendQ exceeded]
ComingHome has joined #ruby
<DefV> jhass: why not \S instead of [^ ]
paulfm has joined #ruby
nszceta has joined #ruby
<jhass> tab might be a valid value?
n1lo has quit [Read error: Connection reset by peer]
<jhass> we only know that space is the delimiter, so that's the safest bet
jftf_ has quit [Ping timeout: 250 seconds]
<niik00> exit
niik00 has quit [Quit: leaving]
<DefV> ok
tonyhb_ has joined #ruby
nszceta has quit [Read error: Connection reset by peer]
tonyhb has quit [Read error: Connection reset by peer]
Zenigor has quit [Remote host closed the connection]
<professor_soap> jhass: it seems to only return one of the matches if the other matches is identical.
<jhass> >> "fookey=a foookey=a fooo".scan(/key=([^ ]+)/).map(&:first)
<eval-in> jhass => ["a", "a"] (https://eval.in/178587)
<professor_soap> Which means I cant for example count of many matches there are with the same value
amargherio has quit [Remote host closed the connection]
nszceta has joined #ruby
Grantlyk has joined #ruby
Leehro has joined #ruby
<professor_soap> hmm
Zenigor has joined #ruby
cocotton has quit [Remote host closed the connection]
amacou has quit [Remote host closed the connection]
cocotton has joined #ruby
momomomomo has quit [Quit: momomomomo]
<eam> anyone here familiar with mkmf.rb? I'm tracking down a bug with file paths containing a $
confounds has joined #ruby
confounds has quit [Remote host closed the connection]
cocotton_ has joined #ruby
mikepack_ has joined #ruby
cocotton_ has quit [Remote host closed the connection]
confounds has joined #ruby
ibot has joined #ruby
paulfm has quit []
cocotton_ has joined #ruby
autochthon has joined #ruby
nszceta has quit [Read error: Connection reset by peer]
<ibot> hi all, i got a question about ruby regex:
cocotton has quit [Read error: Connection reset by peer]
tjr9898 has quit [Remote host closed the connection]
philcris_ has joined #ruby
aspires has joined #ruby
comma8 has quit [Ping timeout: 250 seconds]
confounds has left #ruby [#ruby]
<ibot> http://rubular.com/r/CEM4EM6JTp why is it not catuiering each on its own?
tjr9898 has joined #ruby
krisquigley has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 246 seconds]
bricker`work has joined #ruby
krisquigley has joined #ruby
<apeiros> ibot: why the trailing ? there?
iteratorP has joined #ruby
<apeiros> /(…)?/ will always be able to match the empty string
<apeiros> because your whole match is optional
arya_ has quit [Read error: Connection reset by peer]
xaxisx_ has quit [Quit: xaxisx_]
arya_ has joined #ruby
basiclaser has quit [Excess Flood]
<ibot> ("[^"]*")? isnt better i guess
<apeiros> I don't see how that answers my question
<ibot> it has to bee optional because my regex is much bigger
<ibot> this is just a part of it
mijicd has quit [Remote host closed the connection]
<toretore> show it all
<apeiros> ibot: then make an example which actually fits your case?
momomomomo has joined #ruby
<apeiros> ibot: also, your regex matches each on its own
realDAB has quit [Quit: realDAB]
<apeiros> so I don't see what you're asking anyway…
amargherio has joined #ruby
Grantlyk has quit [Remote host closed the connection]
RandyT has quit [Read error: Connection reset by peer]
<joshua__> apeiros: How can I get rails to pull in new ENV vars? touch tmp/restart.txt doesn't seem to do it..
<apeiros> I get t1, t2, t3 and t4 as separate matches with your very link
<ibot> i just want to match text between two "
balazs has joined #ruby
<apeiros> joshua__: #rubyonrails, and you probably have to restart your webserver
proflonghair has joined #ruby
basiclaser has joined #ruby
yetanotherdave has joined #ruby
<ibot> and i want to match it just once
Grantlyk has joined #ruby
philcris_ has quit [Ping timeout: 272 seconds]
<apeiros> ibot: the regex you linked does that
<apeiros> so again, what's your problem with that?
RandyT has joined #ruby
Kricir has quit [Remote host closed the connection]
<ibot> so "test"it matches me "t2""t3" as one match
Grantlyk has quit [Remote host closed the connection]
<apeiros> ah, that's different from what you said before
<ibot> sry: it matches me "t2""t3" as one match
<ibot> i just want t2
krisquigley has quit [Ping timeout: 240 seconds]
mijicd has joined #ruby
<apeiros> and by what logic is "t2""t3" just one match?
<ibot> rubys logic?
toastynerd has joined #ruby
<apeiros> …
<ibot> i want it nongreedy
jokke is now known as Bluewisp
<apeiros> no, by rubys logic, you get *two* matches
<ibot> so that it stops before the next "
<toretore> ibot: show us the entire problem
iteratorP has quit [Ping timeout: 272 seconds]
<apeiros> maybe check again what you see?
workmad3 has quit [Ping timeout: 250 seconds]
<centrx> .*? means non greedy, but ()? means 0 or 1
<apeiros> ibot: look again in the "Match groups:" part of your link
Bluewisp is now known as jokke
Guest76606 is now known as goshdarnyou
renderfu_ has joined #ruby
<apeiros> you will see that t1, t2, t3 and t4 are *all* matched separately. t2 and t3 are not matched as a single match.
axisys has quit [Read error: Connection reset by peer]
bMalum_ has joined #ruby
goshdarnyou is now known as Guest28629
axisys has joined #ruby
<apeiros> (referring to the first link: http://rubular.com/r/CEM4EM6JTp )
Bumptious has joined #ruby
<ibot> ok iths working now, thanks
<ibot> i made a mistake in my programm
pigram86_ has joined #ruby
Bumptious has quit [Remote host closed the connection]
oo__ has quit [Remote host closed the connection]
<apeiros> …
mijicd has quit [Remote host closed the connection]
* apeiros wonders why he doesn't insist on proper problem descriptions…
jdj_dk has joined #ruby
Bumptious has joined #ruby
Bumptious has quit [Remote host closed the connection]
Kricir has joined #ruby
oo_ has joined #ruby
yfeldblum has joined #ruby
autochthon has quit [Remote host closed the connection]
Bumptious has joined #ruby
Xeago has joined #ruby
momomomomo has quit [Quit: momomomomo]
bMalum has quit [Ping timeout: 245 seconds]
starkhalo has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
renderful has quit [Ping timeout: 255 seconds]
tylerkern has joined #ruby
axsuul has joined #ruby
beef-wellington has joined #ruby
pigram86_ has left #ruby [#ruby]
freerobby has quit [Quit: Leaving.]
slowcon has joined #ruby
Atttwww has joined #ruby
Guest28629 is now known as goshdarnyou
arya_ has quit [Read error: Connection reset by peer]
BBBThunda has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
oo_ has quit [Ping timeout: 264 seconds]
banister has quit [Ping timeout: 264 seconds]
banister has joined #ruby
jdj_dk has quit [Ping timeout: 272 seconds]
patrick99e99 has joined #ruby
<oz> :)
sambao21 has quit [Quit: Computer has gone to sleep.]
mercwithamouth has quit [Ping timeout: 264 seconds]
DrShoggoth has joined #ruby
GriffinHeart has joined #ruby
BBBThunda has quit [Client Quit]
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
momomomomo has joined #ruby
<crazydiamond> When I'm reading UTF-8 endcoded-file with, must I apply some decoding operations to lines before process them?
troulouliou_dev has joined #ruby
troulouliou_dev has quit [Changing host]
troulouliou_dev has joined #ruby
mijicd has joined #ruby
<crazydiamond> s/ with//
msmith_ has quit [Remote host closed the connection]
<eam> crazydiamond: no
<jhass> crazydiamond: unless your system (Encoding.default_external) encoding is not UTF-8
Hobogrammer has joined #ruby
MatthewsFace has joined #ruby
duggiefresh has quit [Remote host closed the connection]
klaut has quit [Remote host closed the connection]
InhalingPixels has quit [Remote host closed the connection]
klaut has joined #ruby
chrishough has quit [Quit: chrishough]
msmith_ has joined #ruby
wjimenez_ has quit [Ping timeout: 272 seconds]
<crazydiamond> eam, jhass uhm, US-ASCII
Squarepy has joined #ruby
TorpedoSkyline has joined #ruby
<jhass> then you should specify the encoding on your File.open call
<crazydiamond> ok. Encoding.default_external = Encoding::UTF_8
<crazydiamond> Encoding.default_internal = Encoding::UTF_8
<crazydiamond> and it works
klaut has quit [Ping timeout: 272 seconds]
ssvo has joined #ruby
<crazydiamond> btw, is that good idea to run web framework such as sinatra via supervisor?
alex88 has quit [Quit: Leaving...]
lun_ has joined #ruby
thomasxie has joined #ruby
InhalingPixels has joined #ruby
amacou has joined #ruby
wjimenez5271 has joined #ruby
chth0n has quit [Ping timeout: 250 seconds]
sambao21 has joined #ruby
thomasxie has quit [Remote host closed the connection]
lw has joined #ruby
thomasxie has joined #ruby
Fire-Dragon-DoL1 has joined #ruby
dawkirst has quit [Remote host closed the connection]
Fire-Dragon-DoL1 has quit [Client Quit]
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<eam> >> % %p %->(){}
<eval-in> eam => "#<Proc:0x41ccdc38@/tmp/execpad-322449c1387a/source-322449c1387a:2 (lambda)>" (https://eval.in/178599)
phinfonet has quit []
newUser1234 has quit [Remote host closed the connection]
sk87 has joined #ruby
thomasxie has quit [Client Quit]
wallerdev has joined #ruby
newUser1234 has joined #ruby
OffTheRails has joined #ruby
Audace has joined #ruby
Audace has quit [Client Quit]
Fire-Dragon-DoL has quit [Ping timeout: 260 seconds]
<lun_> >> puts "hello world"
<eval-in> lun_ => hello world ... (https://eval.in/178600)
<lun_> hm..nice
amacou has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Ping timeout: 244 seconds]
sambao21 has quit [Client Quit]
jespada has joined #ruby
<crazydiamond> >> while true do end
<eval-in> crazydiamond => (https://eval.in/178601)
<eam> loop{}
<crazydiamond> uhm, yeps :D
tylerkern has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
shackleford has quit [Remote host closed the connection]
* apeiros is tempted to kickban (15min) people who try to break the bot
OffTheRails has quit [Read error: Connection reset by peer]
tylerkern has joined #ruby
<centrx> >> Irc.kick(apeiros)
<eval-in> centrx => uninitialized constant Irc (NameError) ... (https://eval.in/178602)
balazs has quit [Ping timeout: 255 seconds]
newUser1234 has quit [Ping timeout: 245 seconds]
sailias1 has joined #ruby
OffTheRails has joined #ruby
sailias has quit [Quit: Leaving.]
ephemerian has quit [Quit: Leaving.]
chrishough has joined #ruby
<lun_> eval-in: help
<lun_> eval-in: /help
<lun_> >> /help
<eval-in> lun_ => /tmp/execpad-c9ddaa2b6e4d/source-c9ddaa2b6e4d:2: unterminated regexp meets end of file ... (https://eval.in/178603)
<lun_> >> -h
<eval-in> lun_ => undefined local variable or method `h' for main:Object (NameError) ... (https://eval.in/178604)
<lun_> :)
echevemaster has joined #ruby
comma8 has joined #ruby
tylerkern has quit [Read error: Connection reset by peer]
OffTheRails has quit [Read error: Connection reset by peer]
tylerkern has joined #ruby
<apeiros> lun_: it's a normal pry (like irb) repl. use your local pry to test how that works.
_justin has joined #ruby
bricker`work has quit [Read error: Connection reset by peer]
bricker`work has joined #ruby
x1337807x has joined #ruby
AntelopeSalad has quit [Quit: Leaving]
wallerdev has quit [Quit: wallerdev]
deric_skibotn has joined #ruby
jftf_ has joined #ruby
saarinen has joined #ruby
pigram86 has joined #ruby
Takle has joined #ruby
sigurding has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
lw has quit [Quit: s]
nobitanobi has joined #ruby
mccollek has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
mikeymicrophone has joined #ruby
beef-wellington has quit [Ping timeout: 260 seconds]
Spami has quit [Quit: This computer has gone to sleep]
mikeymicrophone has quit [Client Quit]
omosoj has quit [Ping timeout: 240 seconds]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
icarus has joined #ruby
pigram8__ has joined #ruby
niklasb has joined #ruby
thomasxie has joined #ruby
Spami has joined #ruby
jftf_ has quit [Ping timeout: 246 seconds]
balazs has joined #ruby
wjimenez5271 has quit [Remote host closed the connection]
pigram86 has quit [Ping timeout: 245 seconds]
Takle has quit [Ping timeout: 240 seconds]
wjimenez5271 has joined #ruby
realDAB has joined #ruby
GriffinHeart has joined #ruby
W0rmDr1nk has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Ulrike_Rayne has quit [Ping timeout: 260 seconds]
xaxisx_ has joined #ruby
Photism has joined #ruby
jftf_ has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
jxf has joined #ruby
duggiefresh has joined #ruby
ssvo has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ssvo has joined #ruby
cocotton_ has quit [Remote host closed the connection]
yacks has joined #ruby
pigram8__ has quit []
blackmesa has joined #ruby
b00stfr3ak has joined #ruby
cocotton has joined #ruby
cocotton has quit [Read error: Connection reset by peer]
_lazarevsky has quit [Quit: Page closed]
cocotton has joined #ruby
wjimenez5271 has quit [Ping timeout: 260 seconds]
Leehro has quit [Ping timeout: 260 seconds]
mccollek has quit [Quit: Leaving]
Bira__ has joined #ruby
Leehro has joined #ruby
Bira has quit [Ping timeout: 250 seconds]
Bira has joined #ruby
jftf_ has quit [Ping timeout: 240 seconds]
saarinen has quit [Quit: saarinen]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
craigp has joined #ruby
baroquebobcat has quit [Ping timeout: 244 seconds]
JesseG17 has joined #ruby
JesseG17 has quit [Client Quit]
dru has quit [Ping timeout: 260 seconds]
wjimenez5271 has joined #ruby
Bira__ has quit [Ping timeout: 260 seconds]
djbkd has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
Audace has joined #ruby
wallerdev has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
beef-wellington has joined #ruby
yetanotherdave has quit [Ping timeout: 240 seconds]
Zenigor has quit [Remote host closed the connection]
sambao21 has joined #ruby
Zenigor has joined #ruby
gizmore has joined #ruby
shackleford has joined #ruby
yfeldblum has joined #ruby
thomasxie has quit [Quit: Leaving.]
cocotton has quit [Remote host closed the connection]
arup_r has joined #ruby
cocotton has joined #ruby
d4ryus__ is now known as d4ryus
soulcake has quit [Quit: Quack.]
sambao21 has quit [Ping timeout: 240 seconds]
soulcake has joined #ruby
cocotton_ has joined #ruby
cocotton_ has quit [Remote host closed the connection]
gregf has quit [Quit: WeeChat 0.4.3]
beef-wellington has quit [Ping timeout: 260 seconds]
cocotton has quit [Read error: Connection reset by peer]
saarinen has joined #ruby
saarinen has quit [Client Quit]
cocotton has joined #ruby
freerobby has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
ti-wali has joined #ruby
shackleford has quit [Ping timeout: 260 seconds]
ValicekB has quit [Ping timeout: 244 seconds]
<banister> arup_r you wrote that
Audace has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
terrell_t has joined #ruby
momomomomo has quit [Quit: momomomomo]
<arup_r> banister: What I wrote ?
<arup_r> I don't get you..
dru has joined #ruby
saarinen has joined #ruby
kirun has joined #ruby
Grantlyk has joined #ruby
Aaaal has quit [Quit: Aaaal]
kaiserpathos has joined #ruby
terrellt has quit [Ping timeout: 245 seconds]
cocotton has quit [Remote host closed the connection]
mijicd has quit [Remote host closed the connection]
cocotton has joined #ruby
nanoyak has joined #ruby
_justin has quit [Quit: _justin]
tjr9898 has quit [Remote host closed the connection]
maestrojed has quit [Quit: Computer has gone to sleep.]
terrell_t has quit [Ping timeout: 264 seconds]
Shidash has joined #ruby
amclain has joined #ruby
renderfu_ has quit [Remote host closed the connection]
cocotton_ has joined #ruby
cocotton_ has quit [Remote host closed the connection]
wallerdev_ has joined #ruby
wallerdev has quit [Ping timeout: 255 seconds]
wallerdev_ is now known as wallerdev
cocotton has quit [Read error: Connection reset by peer]
renderful has joined #ruby
cocotton has joined #ruby
Grantlyk has quit [Remote host closed the connection]
JohnFord has joined #ruby
Grantlyk has joined #ruby
tjr9898 has joined #ruby
Symbiosisz has quit [Quit: Leaving]
_justin has joined #ruby
amacou has joined #ruby
renderful has quit [Ping timeout: 250 seconds]
Audace has joined #ruby
Audace has quit [Max SendQ exceeded]
ValicekB has joined #ruby
anaeem1 has joined #ruby
drawingthesun has quit [Quit: Leaving]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cocotton has quit [Remote host closed the connection]
Grantlyk has quit [Ping timeout: 245 seconds]
cocotton has joined #ruby
tjr9898 has quit [Remote host closed the connection]
maestrojed has joined #ruby
ta has joined #ruby
echevemaster has quit [Ping timeout: 250 seconds]
mikeymicrophone has joined #ruby
amacou has quit [Ping timeout: 264 seconds]
redondos- is now known as redondos
superscott[8] has joined #ruby
krisquigley has joined #ruby
sungai_keruh has joined #ruby
parduse has quit [Killed (verne.freenode.net (Nickname regained by services))]
ti-wali has quit [Remote host closed the connection]
parduse has joined #ruby
n1lo_ has joined #ruby
parduse is now known as Guest9206
gaussblurinc1 has quit [Quit: Leaving.]
tjr9898_ has joined #ruby
Kricir has quit [Remote host closed the connection]
shackleford has joined #ruby
kaspertidemann has joined #ruby
cocotton_ has joined #ruby
nat2610 has joined #ruby
cocotton_ has quit [Remote host closed the connection]
cocotton has quit [Ping timeout: 245 seconds]
cocotton has joined #ruby
xaxisx_ has quit [Quit: xaxisx_]
momomomomo has joined #ruby
Zebroid has joined #ruby
sambao21 has joined #ruby
doodlehaus has quit [Ping timeout: 264 seconds]
dawkirst has joined #ruby
_justin has quit [Quit: _justin]
ponch_ has quit [Ping timeout: 250 seconds]
xaxisx_ has joined #ruby
kenneth has joined #ruby
agent_white has joined #ruby
<agent_white> Hey folks
<agent_white> I'm using `Digest::SHA1.hexdigest` to create a hash from a string. How can I change the length from 40 to 50 chars?
mikeymicrophone has quit [Quit: mikeymicrophone]
Zebroid has quit [Remote host closed the connection]
joshua__ has quit [Ping timeout: 240 seconds]
Grantlyk has joined #ruby
<apeiros> agent_white: sha1 is 40 chars
terrellt has joined #ruby
mikepack_ has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
<agent_white> apeiros: Ah. Is there one out there that's adjustable in length?
freerobby has quit [Read error: Connection reset by peer]
Snowstormer is now known as qdbp
<Xeago> agent_white: why would you want to do so?
sambao21 has quit [Quit: Computer has gone to sleep.]
<apeiros> I don't know, but ^ is a list which you can search
Grantlyk has quit [Remote host closed the connection]
dawkirst has quit [Ping timeout: 260 seconds]
<Xeago> SHA512 is longer, as is SHA3, you can truncate these sufficiently without compromising too much
<agent_white> Ah alrighty!
bayed has quit [Quit: Connection closed for inactivity]
tjr9898_ has quit [Remote host closed the connection]
<Xeago> why do you need a specific length?
nanoyak has quit [Quit: Computer has gone to sleep.]
tjr9898 has joined #ruby
<Xeago> 128b is sufficient to generate a 16*8 pattern
havenwood has joined #ruby
djcp has left #ruby ["WeeChat 0.4.3"]
<Xeago> alternatively you can generate many hashes
nateberkopec has quit [Quit: Leaving...]
jftf_ has joined #ruby
<agent_white> Ah basically I'm thinking, I want to have a 50x50 png image. And I want to cut it into 5x5 blocks, and I'll decide if that block is colored or not by splitting that string into groups of 2, and if it's a letter and a number it'll be on, otherwise off :)
<agent_white> So I figured a string with length of 50 chars would be easier to chop up than a string with 40 chars.
cocotton has quit [Remote host closed the connection]
krisquigley has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Xeago> since this is not a security related aspect of the site, you can just generate hash(@user + i) for i in 0 .. 100
<Xeago> you can just stretch the hash that way
jcromartie has joined #ruby
Takle has joined #ruby
<Xeago> assuming 1 color, you'd need a 256b sequence
mr_flibble is now known as tarcwynne
<Xeago> nah
<agent_white> Ah I'll generate the colors separately.
freerobby has joined #ruby
sambao21 has joined #ruby
terrellt has quit [Remote host closed the connection]
<agent_white> This is just to get the block placement right :D
<Xeago> honestly, make your image generation stuff easier :)
<Xeago> just map every 8bits into something
<Xeago> and stretch the hash
<agent_white> Hm alrighty. Otherwise I was thinking if I reverse the username, hash it, and add it to the current hash string?
terrellt has joined #ruby
<Xeago> doesn't matter
<agent_white> Okey doke!
tjr9898 has quit [Ping timeout: 255 seconds]
<agent_white> Thanks for your input! :DD
<apeiros> bmp header and feed the binary data right after it
<Xeago> interesting things will pop up if you do things like that tho
<Xeago> in my example
<Xeago> user and user1 would share a block
tjr9898 has joined #ruby
shackleford has quit [Read error: Connection reset by peer]
beef-wellington has joined #ruby
CorySimmons has joined #ruby
jftf_ has quit [Ping timeout: 250 seconds]
icole has joined #ruby
shackleford has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Xeago> I'd suggest PBM
<Xeago> it's easier
i_s has joined #ruby
TieSoul has quit [Ping timeout: 255 seconds]
craigp has quit []
AndChat| has joined #ruby
jonahR has quit [Ping timeout: 260 seconds]
<coca_rails> Hello people of all nations, I am here with a question: Watir or Capybara?
<coca_rails> I am setting up a test harness for the QA team.
<apeiros> I don't think those are on the same level
<apeiros> at least iirc capybara can use watir
dbasch has joined #ruby
coderhs has quit [Ping timeout: 240 seconds]
sk87 has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
beef-wellington has quit [Ping timeout: 250 seconds]
acrussell has quit [Quit: Leaving.]
<havenwood> Digest::SHA3.new(200).hexdigest('').size #=> 50
krisquigley has joined #ruby
<coca_rails> apeiros: ^
sk87 has quit [Client Quit]
AndChat| has quit [Ping timeout: 272 seconds]
nanoyak has joined #ruby
luckyruby has joined #ruby
TorpedoSkyline has joined #ruby
Takle has quit [Remote host closed the connection]
treehug88 has quit [Ping timeout: 260 seconds]
<Xeago> >> Digest::SHA3.new(200).hexdigest('')
advorak has joined #ruby
<eval-in> Xeago => uninitialized constant Digest (NameError) ... (https://eval.in/178612)
razorgfx has joined #ruby
philcrissman has joined #ruby
Grantlyk has joined #ruby
<Hanmac> Xeago: you need to require first
eka has quit [Ping timeout: 260 seconds]
<Xeago> >> require 'openssl'; Digest::SHA3.new(200).hexdigest('')
<eval-in> Xeago => library not found for class Digest::SHA3 -- digest/sha3 (LoadError) ... (https://eval.in/178613)
<Xeago> bah, bad openssl
<Xeago> (locally too)
<havenwood> Xeago: but some SHA3 implementations require 0, 224, 256, 384 or 512 hash length
jespada has quit [Ping timeout: 240 seconds]
<apeiros> crypto, so easy!
<apeiros> not. :(
jftf_ has joined #ruby
<Xeago> it's easy: Step 1. don't do it, Step 2. DO NOT DO IT
jespada has joined #ruby
xMopxShell has quit [Quit: ZNC - http://znc.in]
eka has joined #ruby
<apeiros> step 3. get all your users data stolen? :)
<jhass> step 3. you're doing it wrong
andikr has joined #ruby
postmodern has joined #ruby
kaiserpathos has quit []
omosoj has joined #ruby
xMopxShell has joined #ruby
noop has joined #ruby
<shevy> step 4. go to toilet
claymore has joined #ruby
<shevy> something is wrong with those steps
philcrissman has quit [Ping timeout: 272 seconds]
Kricir has joined #ruby
Xeago has quit [Remote host closed the connection]
nowthatsamatt has joined #ruby
GriffinHeart has joined #ruby
TieSoul has joined #ruby
tonyhb_ has quit [Quit: peace]
jftf_ has quit [Ping timeout: 255 seconds]
ValicekB has quit [Ping timeout: 272 seconds]
_maes_ has joined #ruby
<agent_white> havenwood: Does that require the 'sha3' gem?
coderhs has joined #ruby
craigbowen3 has joined #ruby
lw has joined #ruby
mercwithamouth has joined #ruby
<agent_white> OH
<agent_white> NVM
<agent_white> Saw the above. :P
cocotton has joined #ruby
CorySimmons has quit [Quit: Bye!]
cocotton has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
ghr has quit [Ping timeout: 246 seconds]
<agent_white> Actually nvm.
cocotton has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marr has quit [Ping timeout: 245 seconds]
<havenwood> agent_white: it looks like digest-sha3 and sha3 gems require one of five specific lengths, while sha3-pure-ruby allows arbitrary lengths
<agent_white> Ooo cool beans.
tylerkern has joined #ruby
<havenwood> agent_white: i maintain sha3-pure-ruby so i could match the behavior :O, but is it really preferred??
<agent_white> havenwood: Thank you for the heads :D
sambao21 has quit [Quit: Computer has gone to sleep.]
<agent_white> Ah god knows. I'm just tinkering around so I have no preference at all.
<agent_white> I just wanted to hash a string and make it 50 chars long. That's about it :P
TorpedoS_ has joined #ruby
<havenwood> i like arbitrary hash length :P
cocotton has quit [Remote host closed the connection]
cocotton has joined #ruby
adamfortuna has joined #ruby
<havenwood> sure you usually wanna use a standard one, but.. maybe you don't >.>
aspires has quit []
adamfortuna has left #ruby [#ruby]
i_s has quit []
baordog_ has joined #ruby
sambao21 has joined #ruby
<havenwood> i guess it could warn, oh well, dunno
<baordog_> I'm on ubuntu
testcore has joined #ruby
<baordog_> I have a gem I need, and I don't think it can handle 1.9.3
<baordog_> What is the best way for me to revert to 1.9.1?
TorpedoSkyline has quit [Ping timeout: 255 seconds]
<havenwood> baordog_: 1.9.1 is the ABI version of 1.9.3
<baordog_> (it's wwmd, if anyone wants to help me with that)
<baordog_> ABI?
<havenwood> baordog_: the apt package for 1.9.3 is an alias to 1.9.1
<baordog_> Ah
<havenwood> baordog_: the real 1.9.1 was not a stable release and using it would be nuts
Cyrax_ has quit [Ping timeout: 245 seconds]
xaxisx_ has quit [Quit: xaxisx_]
cpruitt has quit [Quit: cpruitt]
<havenwood> baordog_: there're apt packages for 1.8.7, 1.9.3, 2.0.0
<baordog_> Well I'm getting an error from wwmd that says "Can't handle 1.9.x yet" Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers.
<havenwood> baordog_: 1.8 is dead
razorgfx has quit [Quit: Textual IRC Client: www.textualapp.com]
tylerkern has quit [Ping timeout: 250 seconds]
<baordog_> ERROR: failed to build gem native extension.
<havenwood> baordog_: then the gem may rely on 1.8. so either some necromancy rituals with 1.8 or switch to a maintained gem
<baordog_> Hmm
<baordog_> He claims on his github support for 1.9
aspires has joined #ruby
lw has quit [Quit: s]
relix has joined #ruby
<havenwood> baordog_: What gem is raising the error?
<baordog_> wwmd
szuletett has joined #ruby
<TTilus> baordog_: i assume you already opened a bug ticket?
qmfnp has quit [Quit: Textual IRC Client: www.textualapp.com]
bascht has joined #ruby
<baordog_> I sure as santa did
<baordog_> But I also want to rule out simple environmental things
<baordog_> got curb. Got nokigiri
ValicekB has joined #ruby
<havenwood> BombStrike: what version of wwmd do you have installed?
<TTilus> havenwood: i assume none, because install fails
<havenwood> BombStrike: oops, mt, sorry
sigurding has quit [Read error: Connection reset by peer]
<havenwood> TTilus: oh, good point
<havenwood> baordog_: what version are you trying to install?
<havenwood> 0.3.1?
<havenwood> 0.3.2*
<baordog_> I'm just doing sudo gem install wwmd.
<baordog_> Or alternatively sudo gem install miketracy/wwmd
dumdedum has quit [Quit: foo]
beef-wellington has joined #ruby
<havenwood> baordog_: looks like they've fixed the issue you're mentioning, it's not in head
mercwithamouth has quit [Ping timeout: 250 seconds]
<havenwood> baordog_: but the published gem version is old
<baordog_> oh... how should I install then?
<centrx> Rubygems version: 0.2.20.3 March 16, 2010 (47.5 KB)
<havenwood> baordog_: you're likely trying to install 0.2.20.3 from RubyGems then, but you need 0.3.2
<baordog_> ahh
<baordog_> What should I do?
<TTilus> would miketracy-wwmd work?
xaxisx_ has joined #ruby
<TTilus> do'h
<baordog_> tried that one.
<havenwood> baordog_: git clone git@github.com:miketracy/wwmd.git
<baordog_> Same results.
<TTilus> that even older than plain wwmd
<baordog_> So I try to install the version from head?
<baordog_> brb
<havenwood> baordog_: go in the dir, build and install the gem
Kricir has quit [Remote host closed the connection]
riceandbeans has joined #ruby
<riceandbeans> if I want to do a REALLY small web ui in ruby with NO DB, what should I use?
<riceandbeans> I COULD do it in Perl, but I wanted to try my luck with it in Ruby
<jhass> sinatra or rack directly
<riceandbeans> sinatra doesn't need a DB?
<riceandbeans> I thought it did
<jhass> no, not even rails does need one
<riceandbeans> ....really?
MartinCleaver has quit [Quit: MartinCleaver]
<havenwood> riceandbeans: Hobbit is a nice option more minimalist than Sinatra but nicer than straight up Rack: https://github.com/patriciomacadden/hobbit
<jhass> it has support, doesn't mean you can't build apps that don't connect to one
<riceandbeans> I thought rails pretty much revolved around the DB
troulouliou_dev has quit [Ping timeout: 250 seconds]
<riceandbeans> I just have absolutely no need for a DB for this
<riceandbeans> here's the game plan
<riceandbeans> a web page with three text fields, you enter the info you need to, it does some mechanize on the backend, generates a file, and emails it to you
<riceandbeans> that's it
yetanotherdave has joined #ruby
Sou|cutter has quit [Quit: WeeChat 0.4.3]
<centrx> riceandbeans, Rails provides a lot of extra functionality and perhaps bloat that you do not want for this project
<havenwood> riceandbeans: another really nice new option, that is pure routing: https://github.com/lotus/router#readme
<havenwood> riceandbeans: or https://github.com/jeremyevans/roda#readme
<riceandbeans> I don't need routing, there will be 1 page
<havenwood> riceandbeans: oh!
<riceandbeans> literally 1
benzrf is now known as benzrf|offline
queequeg2 has quit [Remote host closed the connection]
<jhass> so maybe indeed rack directly
<havenwood> then Rack
<riceandbeans> enter 3 fields, hit submit button, do the rest in ruby on the backend to interface to this appliance, email the response
queequeg1 has joined #ruby
<jhass> an index.html + a rack app that takes the post request
<riceandbeans> is rack hard to use directly? I've never tried
bascht has quit [Quit: Konversation terminated!]
<havenwood> riceandbeans: just create a config.ru with a few lines and you're ready to rackup
heftig has joined #ruby
<jhass> basically you just need an object that responds to call and returns an array
<riceandbeans> (I'm more experienced in Perl at this point but I like Ruby too)
<jhass> could even be a lambda
<havenwood> well, one line really
doodlehaus has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
<havenwood> run ->(_) { [200, {'Content-Type' => 'text/html'}, ['just one line']] }
georgelappies has joined #ruby
<jhass> I'd recommend a class that implements call though
<havenwood> jhass: aye
IceDragon has joined #ruby
<riceandbeans> jhass: explain?
<jhass> since you want to do some more complex stuff with the request
Grantlyk has quit [Remote host closed the connection]
<riceandbeans> jhass: no no no
<riceandbeans> jhass: the request itself is simple
<riceandbeans> take the data from 3 text fields
<riceandbeans> the rest I was going to have mechanize do
<riceandbeans> pending success I might have page 2 that says success or failure
<jhass> the tricky part may be doing the mechanize stuff outside the request cycle
<jhass> if that's even wanted
<riceandbeans> it is
<riceandbeans> it's an entirely separate sequence
<riceandbeans> I just need those 3 things from them
<ramblinpeck> hi all, is there a method like Enumberable#find that returns the value of a function called on the element and not the element? eg [group1, group2, group3, group4].find {|group| group.invitation_template} and have that return the template instead of having to call invitation_template again?
<ramblinpeck> little thing, but feels like there should be a way that I'm just not thinking of
<riceandbeans> long story short, I'm working with a crappy vendor who won't hand over APIs, so I'm having to use mechanize to do the interaction with their web ui to make it less manual
tylerkern has joined #ruby
Aristata has joined #ruby
<jhass> ramblinpeck: my hack for that is .lazy.map(&:invitation_template).find
<Aristata> how do I checkout a gem into a local directory?
<ramblinpeck> jhass: ah, I like that, a little terse but makes sense
hephaestus_rg has joined #ruby
TorpedoS_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AlexRussia has joined #ruby
ringarin has quit [Ping timeout: 272 seconds]
<ramblinpeck> jhass: find seems to return an enumerable with that
<ramblinpeck> which is odd, I though find always returned the element
professor_soap has quit []
<jhass> ah, yeah, it needs a block
<jhass> ActiveSupport available?
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
timonv_ has quit [Remote host closed the connection]
chunky_bacon has joined #ruby
ghr has joined #ruby
krisquigley has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
<ramblinpeck> yeah, ActiveSupport is
<jhass> .find(&:present?)
<ramblinpeck> ah, I see, I can jsut tack on find{|x| x} and it works
<jhass> or that, yeah
chrisja has joined #ruby
<ramblinpeck> interesting, I'd almost think that would be the default behavior, but I guess being able to pass around the enumerabble is useful sometimes
Grantlyk has joined #ruby
xaxisx_ has quit [Quit: xaxisx_]
eeezkil has quit [Read error: Connection reset by peer]
Rennex has quit [Ping timeout: 244 seconds]
<jhass> yeah, I'd like that as default block for find too
poulet_a has joined #ruby
treehug88 has joined #ruby
bMalum_ has quit [Quit: Computer has gone to sleep.]
Sauvin has quit [Read error: Connection reset by peer]
qdbp is now known as MaryHarper
bMalum_ has joined #ruby
xaxisx_ has joined #ruby
deol has joined #ruby
xaxisx_ has quit [Client Quit]
poulet_a has quit [Client Quit]
<ramblinpeck> oh well, its going to get a nice wrapper around it for my closure_tree object anyway, for find self or first ancestor with property
jsodini has joined #ruby
deol has quit [Client Quit]
beef-wellington has quit [Ping timeout: 240 seconds]
ghr has quit [Ping timeout: 260 seconds]
krisquigley has joined #ruby
<ramblinpeck> and thinking about it, I'm basically building an OO inheritance model for instances...
timonv_ has joined #ruby
<ramblinpeck> I wonder if thats a screw up im not seeing yet
GriffinHeart has quit [Remote host closed the connection]
jftf_ has joined #ruby
<waxjar> it sounds bad :p
threesixes has joined #ruby
Rennex has joined #ruby
bMalum_ has quit [Ping timeout: 264 seconds]
<ramblinpeck> not sure how else it could be done though, basically groups are in a heirarchy. and if a leaf node doesn't have their own document template it asks its parent, and so on
<ramblinpeck> but yeah, the more I talk through it the more it seems something is a little off
graft_ has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
Grantlyk has quit [Read error: Connection reset by peer]
Grantlyk has joined #ruby
hellangel7 has joined #ruby
<waxjar> couldn't you simply set a default template for every group, only change it if necessary?
Spami has quit [Quit: This computer has gone to sleep]
alpha123 has quit [Remote host closed the connection]
jftf_ has quit [Ping timeout: 246 seconds]
<ramblinpeck> waxjar: in this case no, and groups can have subgroups and its a requirement that they use their nearest ancestor
<ramblinpeck> if not set
razorgfx has joined #ruby
hellangel7 has quit [Max SendQ exceeded]
<waxjar> i see
eeezkil has joined #ruby
chrishough has quit [Ping timeout: 245 seconds]
<shevy> you don't see
<ramblinpeck> so either I take care of it with update logic all over the place to propogate changes down to leaves when a parent changes
<shevy> you are blind!
hellangel7 has joined #ruby
aspires has quit []
<ramblinpeck> or have the logic look up
yfeldblum has joined #ruby
<waxjar> i got contacts!
jdj_dk has joined #ruby
MaryHarper is now known as Snowstormer
<ramblinpeck> yeah, heck with it, moving forward on this :)
aspires has joined #ruby
dawkirst has joined #ruby
carraroj has joined #ruby
aspires has quit [Client Quit]
chrishough has joined #ruby
andikr has quit [Remote host closed the connection]
rurban has quit [Read error: Connection reset by peer]
cpruitt has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
lkba has joined #ruby
shredding has joined #ruby
sambao21 has joined #ruby
diegoviola has joined #ruby
codeurge has quit [Quit: Sleep.]
mikepack has joined #ruby
mccollek has joined #ruby
beef-wellington has joined #ruby
Zebroid has joined #ruby
charliesome has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
razum2um has joined #ruby
aspires has joined #ruby
Pumukel has joined #ruby
chunky_bacon has quit [Quit: leaving]
dru is now known as drusepth
Kricir has joined #ruby
jftf_ has joined #ruby
omosoj has quit [Quit: Leaving]
omosoj has joined #ruby
Macaveli has joined #ruby
yubrew has quit []
ponch_ has joined #ruby
coca_rails has quit [Quit: coca_rails]
coca_rails has joined #ruby
bradleyprice has quit [Remote host closed the connection]
jftf_ has quit [Ping timeout: 240 seconds]
bradleyprice has joined #ruby
vt102 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
superscott[8] has quit [Remote host closed the connection]
tylerkern has joined #ruby
hellangel7 has quit [Max SendQ exceeded]
coca_rails has quit [Client Quit]
chunky_bacon has joined #ruby
superscott[8] has joined #ruby
coca_rails has joined #ruby
cocotton has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nanoyak has quit [Quit: Computer has gone to sleep.]
cocotton has joined #ruby
ponch_ has quit [Ping timeout: 245 seconds]
Macaveli has quit [Ping timeout: 260 seconds]
coca_rails has quit [Client Quit]
toastynerd has quit [Remote host closed the connection]
coca_rails has joined #ruby
Takle has joined #ruby
belozi has joined #ruby
bradleyprice has quit [Ping timeout: 250 seconds]
sambao21 has joined #ruby
<riceandbeans> ok, issue #1
danijoo has quit [Read error: Connection reset by peer]
p0sixpscl has joined #ruby
<riceandbeans> in those 3 fields, let's say they contain sensitive data
<riceandbeans> would the easiest solution be a nginx ssl passback to my app?
<jhass> yep
danijoo has joined #ruby
crazydiamond has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
<riceandbeans> ok
belozi has quit [Remote host closed the connection]
coca_rails has quit [Client Quit]
<p0sixpscl> oh my god. guys.
<riceandbeans> jhass: working directly with rack is weird man
cocotton has quit [Ping timeout: 250 seconds]
coca_rails has joined #ruby
<shevy> like when you are a butcher right
<p0sixpscl> did you know there is a SIRI-like bot for the console?
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
<riceandbeans> ...what?
<riceandbeans> first off, nice pun
cocotton has joined #ruby
<riceandbeans> pickhardt
<ari-_-e> riceandbeans: is there a reason this has to be a webapp?
<havenwood> there needs to be an nlp version of betty. regexp can only take you so far.
belozi has joined #ruby
<riceandbeans> ari-_-e: because I need a generic interface for people
<riceandbeans> and people I work with are too stupid to be able to use a command line application
<p0sixpscl> I love the uncompress feature.
<ari-_-e> hah ok
Takle has quit [Ping timeout: 245 seconds]
sigurding has joined #ruby
toastynerd has joined #ruby
InfraRuby has joined #ruby
_djbkd has joined #ruby
Matadoer has joined #ruby
phutchins has quit [Read error: Connection reset by peer]
belozi has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
Matadoer has quit [Remote host closed the connection]
Aristata has quit [Ping timeout: 272 seconds]
Matadoer has joined #ruby
djbkd has quit [Ping timeout: 244 seconds]
DrShoggoth has quit [Quit: Leaving]
krisquigley has quit [Remote host closed the connection]
phutchins has joined #ruby
krisquigley has joined #ruby
eka has quit [Remote host closed the connection]
davedev2_ has joined #ruby
Aristata has joined #ruby
n1lo has joined #ruby
timonv_ has quit [Remote host closed the connection]
davedev24_ has quit [Ping timeout: 246 seconds]
Hobogrammer has quit [Ping timeout: 260 seconds]
e4xit_ has joined #ruby
iamjarvo has joined #ruby
_djbkd has quit [Remote host closed the connection]
eka has joined #ruby
saarinen has quit [Quit: saarinen]
bMalum_ has joined #ruby
InhalingPixels has quit [Remote host closed the connection]
hololeap has quit [Ping timeout: 264 seconds]
dbasch has quit [Quit: dbasch]
Bira has quit [Remote host closed the connection]
e4xit has quit [Ping timeout: 272 seconds]
e4xit_ is now known as e4xit
dbasch has joined #ruby
Grantlyk has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
mikepack_ has joined #ruby
veleno has joined #ruby
relix has joined #ruby
dbasch has quit [Client Quit]
<veleno> hello. using rdebug, i’m looking at this: https://gist.github.com/vschiavoni/fad07e48a9176f50256c any way to inspect that column_map instance_variable ?
kireevco has quit [Quit: Leaving.]
InfraRuby has left #ruby [#ruby]
Grantlyk_ has joined #ruby
<veleno> (i’m just starting to use rdebug, sorry if this is a known fact)
belozi has joined #ruby
<belozi> hey all
superscott[8] has quit [Ping timeout: 255 seconds]
InhalingPixels has joined #ruby
p0sixpscl has quit [Quit: Textual IRC Client: www.textualapp.com]
workmad3 has joined #ruby
JoshGlzBrk has joined #ruby
<waxjar> how would you go about writing tests for a method that should be thread-safe?
Grantlyk_ has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 250 seconds]
marr has joined #ruby
<belozi> Does anyone know if it's possible to use a web browser to interact with a ruby proram without using a server?
<belozi> *program
<eam> belozi: by "server" do you mean "separate device?" or do you mean "program which listens for tcp connections?"
<riceandbeans> ok this is irking me
<riceandbeans> ^C[2014-08-12 05:01:36] ERROR Interrupt: /usr/local/lib/ruby/1.9/webrick/server.rb:98:in `select'
<riceandbeans> how do I tell the rack server if I C-c it, to die
chrishough has quit [Quit: chrishough]
ssvo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<riceandbeans> I'm tired of C-b ps aux | grep ruby kill -9 PID
<shevy> shout at it
<riceandbeans> I guess I could just pkill -9 ruby
<riceandbeans> it's the ONLY ruby app on the system at the moment
<eam> riceandbeans: fix the signal handler for INT
<belozi> I wrote a program the reads a text file, processes the information, and outputs a result.
agent_white has quit [Quit: bbl]
<riceandbeans> eam: where might I do that?
<workmad3> riceandbeans: yeah... that sometimes happens with webrick, it seems to be a weird bug with certain xterms
<belozi> I just want to use the web browser to let them type in the file name and get a result without running a server.
<eam> riceandbeans: no clue but that's the problem
<eam> riceandbeans: also, if you're on linux: fuser -n tcp 3000 -k
axsuul has quit [Ping timeout: 255 seconds]
<eam> assuming your run it on port 3000
<workmad3> riceandbeans: assuming you haven't added a signal handler to capture sigint
<riceandbeans> workmad3: tcsh in tmux in xfce4-terminal
<belozi> ...like using a browser to open up an html file, only using it to interact with the program.
<riceandbeans> eam: I'm on DragonFlyBSD
tylerkern has quit [Read error: Connection reset by peer]
<eam> riceandbeans: don't recall offhand what fuser does on that platform, it might support -n
tylerkern has joined #ruby
<eam> lsof / kill can do it too in a pinch
<eam> safer to write a "kill app on this port" vs grepping the process list
<workmad3> eam: I personally like doing 'kill -9 ruby<tab>' in zsh :)
<riceandbeans> there is no fuser in DragonFly
<eam> riceandbeans: well then
<riceandbeans> eam, pkill ruby is fine for now
<riceandbeans> it's literally the ONLY ruby app on the system
<workmad3> but yeah, lsof -i :3000 is also good for getting the pid
tewlz has joined #ruby
<riceandbeans> and it's in testing
rurban has joined #ruby
<workmad3> riceandbeans: you could try with a different app server too
<riceandbeans> but in the FUTURE I'd like it to be cleaner
<workmad3> riceandbeans: iirc, webrick is the only app server I've seen that happen with
<riceandbeans> workmad3: not sure how to do that when doing directly with rack
rurban has left #ruby [#ruby]
nat2610 has quit [Quit: Leaving.]
<workmad3> riceandbeans: make sure another app server is installed (e.g. gem install unicorn, or add it to the Gemfile if you're in bundler and bundle install)
havenwood has quit [Remote host closed the connection]
<workmad3> riceandbeans: and then 'rackup -s unicorn'
<workmad3> riceandbeans: or just 'unicorn config.ru'
jftf_ has joined #ruby
Aristata has quit [Quit: Leaving.]
<workmad3> (second one in case I've forgotten my rackup-fu and -s doesn't find unicorn :) )
jackjackdrpr has joined #ruby
<baordog_> Thanks for helping me with wwmd
<baordog_> I got it working
<baordog_> YAY
larsam has joined #ruby
havenwood has joined #ruby
tjr9898 has quit [Remote host closed the connection]
nat2610 has joined #ruby
<workmad3> riceandbeans: could also try with thin, puma or passenger too, as alternate rack-based ruby app servers... all are pretty similar in starting up with either 'rackup -s <server>' or '<server> -c config.ru' (I think passenger will only support the second one due to its binary being somewhat more complicated and involving an embedded nginx server...)
godd2 has joined #ruby
jftf_ has quit [Ping timeout: 255 seconds]
gregf has joined #ruby
szuletett has quit [Ping timeout: 255 seconds]
tjr9898 has joined #ruby
Ankhers has quit [Remote host closed the connection]
beef-wellington has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby
Xeago has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
renderful has joined #ruby
Xeago has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
Xeago has joined #ruby
<belozi> Does anyone know if it's possible to use a web browser like chrome to interface with a ruby program with out using a server like Web Brick?
jheg has joined #ruby
razorgfx has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
decoponio has quit [Quit: Leaving...]
renderful has quit [Remote host closed the connection]
philcrissman has joined #ruby
<hoelzro> belozi: to what end?
mrrcp is now known as sammytheshark
renderful has joined #ruby
sammytheshark is now known as mrrcp
<eam> belozi: well you could generate a file
ghr has joined #ruby
georgelappies has quit [Quit: Leaving]
<belozi> I wrote a program that allows the user to enter a text file, which it reads and returns an out put. I wanted to use the browser to allow them to enter the name of the file and present the output.
renderful has quit [Remote host closed the connection]
renderful has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chrisja has quit [Quit: leaving]
philcrissman has quit [Ping timeout: 250 seconds]
razum2um has quit [Quit: Leaving.]
ghr has quit [Ping timeout: 240 seconds]
phutchins has quit [Ping timeout: 260 seconds]
fauzanqadri has joined #ruby
<belozi> eam: generate a file?
iamjarvo has joined #ruby
Wolland has joined #ruby
cpruitt has quit [Quit: cpruitt]
razum2um has joined #ruby
rezzack has joined #ruby
superscott[8] has joined #ruby
<eam> belozi: put the thing you want to display in a file, then use a url of file:///whatever.file
<belozi> let me try it
RandyT has quit [Quit: ZNC - http://znc.in]
tvw has quit [Remote host closed the connection]
sambao21 has joined #ruby
TheNet has quit [Quit: Leaving...]
<veleno> can anyone help with with this very simple script that issue a dbi call ? I don’t undersatand why it crashes https://gist.github.com/anonymous/425297b130aea9b4867d
toastynerd has quit [Remote host closed the connection]
e4xit_ has joined #ruby
klaut has joined #ruby
MartinCleaver has joined #ruby
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<riceandbeans> workmad3: I like unicorn and puma
maximski has joined #ruby
mattmcclure has joined #ruby
<jhass> veleno: well it hides the exception or you don't show it to us but probably the field doesn't contain a valid decimal number
sambao21 has quit [Client Quit]
maximski has quit [Max SendQ exceeded]
RandyT has joined #ruby
<workmad3> riceandbeans: do they behave? :)
enebo has quit [Quit: enebo]
yalue has quit [Quit: Leaving]
e4xit has quit [Ping timeout: 272 seconds]
AlexRussia has quit [Ping timeout: 246 seconds]
jftf_ has joined #ruby
<veleno> jhass: oh sorry, the exception is: “Exception `TypeError' at /Users/veleno/.rvm/gems/ruby-1.8.7-p374/gems/dbi-0.4.5/lib/dbi/types.rb:98 - can't convert nil into String
maximski has joined #ruby
enebo has joined #ruby
maximski has quit [Max SendQ exceeded]
enebo has quit [Client Quit]
<jhass> veleno: never worked with DBI but looks like the field contains NULL and DBI fails to parse that
<riceandbeans> workmad3: need to install them on this system first :P
razum2um has quit [Quit: Leaving.]
sambao21 has joined #ruby
<workmad3> heh :)
maximski has joined #ruby
<fauzanqadri> hello guys, can anyone help me with with testing active record, i don't get it why it fail on test but work perfectly on console ? here's the script https://gist.github.com/fauzanqadri/1da0deaf0109690eb6a9
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maximski has quit [Max SendQ exceeded]
johnmolina has quit [Remote host closed the connection]
enebo has joined #ruby
codeurge has joined #ruby
bradleyprice has joined #ruby
<jhass> veleno: but that exception should be rescued
emmesswhy has joined #ruby
failshel_ has quit []
codeurge has quit [Client Quit]
e4xit_ has quit [Ping timeout: 244 seconds]
emmesswhy has quit [Client Quit]
ponch_ has joined #ruby
jftf_ has quit [Ping timeout: 240 seconds]
tylerkern has joined #ruby
mccollek has quit [Quit: Leaving]
Kricir has joined #ruby
superscott[8] has quit [Ping timeout: 240 seconds]
TorpedoSkyline has joined #ruby
<veleno> jhass: what would you use to interface with a mysql database ?
krz has quit [Ping timeout: 264 seconds]
tewlz has quit [Ping timeout: 246 seconds]
Sonny|3oy has joined #ruby
AlexRussia has joined #ruby
sigurding has quit [Ping timeout: 246 seconds]
<jhass> Sequel
maximski has joined #ruby
MartinCleaver has quit [Quit: MartinCleaver]
<apeiros> Shotgun
maximski has quit [Max SendQ exceeded]
ARCADIVS has joined #ruby
enebo has quit [Ping timeout: 250 seconds]
Bira has joined #ruby
sepp2k has joined #ruby
<apeiros> reliably destroys your mysql database, to replace it with something better. preferably a product not from oracle.
razorgfx has joined #ruby
maximski has joined #ruby
havenwood has quit [Remote host closed the connection]
Sou|cutter has joined #ruby
maximski has quit [Max SendQ exceeded]
rismoney1 has quit [Ping timeout: 244 seconds]
St_Marx has quit [Ping timeout: 264 seconds]
nurrb has joined #ruby
maximski has joined #ruby
yfeldblu_ has joined #ruby
sigurding has joined #ruby
polyidus has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby
Kricir has quit [Ping timeout: 264 seconds]
jheg has quit [Quit: jheg]
alvaro_o has joined #ruby
yfeldbl__ has joined #ruby
St_Marx has joined #ruby
<belozi> eam: Thanks! That helped. I haven't gotten it to work, but I think that I can figure the rest out.
<belozi> hey jhass.
<belozi> ...and apeiros
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> glad to help :)
yfeldblum has quit [Ping timeout: 246 seconds]
<apeiros> (but seriously, at least use MariaDB, which is a fork of mysql - oracle is the devil)
jsodini has quit [Ping timeout: 240 seconds]
emmesswhy has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lun_ has quit [Ping timeout: 250 seconds]
<eam> *cough* percona *cough*
yfeldblu_ has quit [Ping timeout: 240 seconds]
iamjarvo has joined #ruby
sambao21 has joined #ruby
<arup_r> When I write [1,2].each { |va| va } What is called these 2 pipes || ?
chunky_bacon has quit [Quit: leaving]
<arup_r> what is the name of it ?
jshultz has joined #ruby
toastynerd has joined #ruby
<arup_r> I knw it is used to decalre *block parameters*
<arup_r> But what is called ?
<apeiros> argument list of the block
wallerdev has joined #ruby
<jshultz> i've got a really dumb question, i don't know why it doesn't work. All I can say is I'm from a php background and to me it "should work. I've got a value stored in a table cell that I know is true. if I echo student.scores.first.score_overidden i get true in the erb file. however, if I then try puts '*' if student.scores.first.score_overidden of puts '*' if
<jshultz> student.scores.first.score_overidden == true I get nothing.
<jshultz> I don't see why neither of those work?
emmesswhy has quit [Client Quit]
cocotton has quit [Remote host closed the connection]
banister has quit [Ping timeout: 240 seconds]
cocotton has joined #ruby
testcore has quit [Ping timeout: 264 seconds]
gtc has quit [Remote host closed the connection]
<waxjar> what does student.scores look like?
chrishough has joined #ruby
Squarepy has quit [Quit: Leaving]
koderok has quit [Ping timeout: 240 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
jheg has joined #ruby
<jshultz> it's a tinyint that will return 1 if true or 0/nil depending on if it's been updated or not
<jshultz> defaults to nil, though.
<apeiros> jshultz: how do you "echo" the value?
havenwood has joined #ruby
<jshultz> right now, in the record i'm testing it's set to 1
banister has joined #ruby
<apeiros> >> 1 == true
<eval-in> apeiros => false (https://eval.in/178650)
beef-wellington has joined #ruby
<jshultz> if i just do: <%= student.scores.first.inspect %>
<jshultz> it returns true on the page
Sonny|3oy has quit [Quit: Leaving]
<apeiros> jshultz: you get a plain true, or a quoted "true"?
<jshultz> plain true
johnmolina has joined #ruby
Sonny|3oy has joined #ruby
<apeiros> "in the record set to 1" - sounds like active record?
britneywright has joined #ruby
emmesswhy has joined #ruby
<apeiros> puts '*' if student.scores.first.score_overidden # should work, but not in the erb template
johnmolina has quit [Remote host closed the connection]
<apeiros> you didn't try to use puts in erb, did you?
<jshultz> i did
<waxjar> it'll end up in the terminal
<jshultz> hmm.
<apeiros> well, puts is for printing to the stdout
<waxjar> STDOUT, anyway
<jshultz> so what can i do?
<apeiros> <%= value %>
<jshultz> ahh.
<centrx> jshultz, the = in <%= puts it on the page (not #puts)
e4xit has joined #ruby
Takle has joined #ruby
shredding has quit [Quit: shredding]
Bumptious has quit [Remote host closed the connection]
<davidcelis> renders is probably a better word
Bumptious has joined #ruby
LiohAu_ has quit [Quit: LiohAu_]
<workmad3> davidcelis: inserts into the output? :)
<apeiros> jshultz: iirc, php has <?php=, which is similar to <%=
<centrx> davidcelis, It was supposed to be a fun
kaiju_sloth has joined #ruby
<wallerdev> i thought in php you just wrote it write in your html lol
<workmad3> wallerdev: you do
<centrx> PHP is like ERB on the metal
belozi has left #ruby [#ruby]
<apeiros> is it just me or is this ridiculous?
JohnFord has joined #ruby
<apeiros> puts(eval(Bundler.setup.inspect))
<jshultz> ok, let me try that.
nurrb has quit [Ping timeout: 255 seconds]
<jshultz> that was it, this worked fine: <%= '*' if student.scores.first.score_overidden %>
havenwood has quit [Ping timeout: 264 seconds]
<workmad3> centrx: PHP is like ERB in a stagnant pond down at a landfill...
<wallerdev> eval is scary in general
<apeiros> note that puts(Bundler.setup) doesn't print the same :)
<jshultz> how funny. this was really annoying me. lol
<workmad3> apeiros: how about p(Bundler.setup)?
newUser1234 has joined #ruby
<jshultz> so, puts was working, just not what i was expecting it. i was trying to use it like "print this thing"
<wallerdev> what about Bundler.setup.to_s
<apeiros> workmad3: not the same either
<apeiros> none of the two :)
<apeiros> it's somewhat hilarious
<wallerdev> what is it doing lol
noop has quit [Ping timeout: 260 seconds]
mary5030 has quit [Remote host closed the connection]
<apeiros> Bundler.setup # => "GEM\n remote: https://rubygems.org
<centrx> jshultz, ERB is a template system for generating pages so it is a very different realm than regular code
<apeiros> puts Bundler.setup # -> #<Bundler::Runtime:0x000001020ed5a0>
<centrx> maybe not very
mary5030 has joined #ruby
<apeiros> since puts calls to_s, puts Bundler.setup.to_s is the same
newUser1234 has quit [Remote host closed the connection]
<jshultz> yeah, i'm still very much in a php state of mind. it's not been easy trying to get 12+ years of php out of my head to use ruby/rails.
<apeiros> and p instead of puts - well just prints the return value
<workmad3> apeiros: I just got *really* weird output in guard...
<jshultz> yeah, in an erb file
Bumptious has quit [Ping timeout: 255 seconds]
<workmad3> apeiros: p calls inspect
<waxjar> p uses #inspect, no?
<wallerdev> itd have the quotes etc in it
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yfeldbl__ has quit [Remote host closed the connection]
<workmad3> apeiros: my weirdness was doing 'p Bundler.setup.inspect' in a guard console...
<apeiros> waxjar: correct
<workmad3> apeiros: it pauses and unpauses guard's file-monitoring
dangerousdave has joined #ruby
yfeldblum has joined #ruby
lazyguru has quit [Ping timeout: 250 seconds]
newUser1234 has joined #ruby
lw has joined #ruby
shredding has joined #ruby
<apeiros> anyway, luckily I was just curious what the inspect was, so no need to go at lengths to get it properly printed
<apeiros> hilarious nonetheless :D
<waxjar> anyone know of a (lightweight) threadsafe implementation of Hash by any chance?
<workmad3> apeiros: I'm just weirded out by 'p Bundler.setup.inspect' in guard now
agjacome has joined #ruby
<apeiros> waxjar: define threadsafe in this context
<apeiros> you mean all methods atomic?
mary5030 has quit [Ping timeout: 240 seconds]
<waxjar> as long as the writes are synchronized
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dangerousdave has quit [Client Quit]
<waxjar> and #map! & friends won't blow up
beryllium has quit [Ping timeout: 240 seconds]
kireevco has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> heh, that's where it starts
<apeiros> should map! lock the hash or only the element, or even only the read and write separately?
lazyguru has joined #ruby
<apeiros> I'm not aware of a threadsafe hash implementation. but I'd be surprised if there wasn't a gem already. ruby-toolbox / google to the rescue
<apeiros> in the worst case - roll your own, best using delegation
<workmad3> apeiros: heh :) how about different levels of transactional isolation? so you could specify if you're allowing dirty-reads or not when starting it :)
yfeldblum has quit [Remote host closed the connection]
Leehro has quit [Quit: zzz]
Shidash has quit [Ping timeout: 272 seconds]
<waxjar> yeah, i'll probably do that for now. i found hamster but that tries to be immutable, i'd like a drop-in replacement.
<waxjar> oh well, thx anyway
troyready has joined #ruby
yfeldblum has joined #ruby
paulfm has joined #ruby
<apeiros> sorry for not being more helpful :-/ please let me know if you find something
britneywright has joined #ruby
hephaestus_rg has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
yetanotherdave has quit [Read error: Connection reset by peer]
jftf_ has joined #ruby
ssvo has joined #ruby
hephaestus_rg has joined #ruby
<waxjar> oh, wait a minute, https://github.com/ruby-concurrency/thread_safe looks like what i want
cpruitt has joined #ruby
cocotton has quit [Remote host closed the connection]
Grantlyk has joined #ruby
beryllium has joined #ruby
tjr9898 has quit [Remote host closed the connection]
tvw has joined #ruby
jftf_ has quit [Ping timeout: 240 seconds]
<waxjar> lol
testcore has joined #ruby
codeurge has joined #ruby
ptrrr has quit [Quit: ptrrr]
Grantlyk has quit [Remote host closed the connection]
iamjarvo has joined #ruby
Morkel has quit [Quit: Morkel]
mark_locklear has quit [Ping timeout: 244 seconds]
<riceandbeans> what do you guys use for smtp with ruby?
<riceandbeans> is mailfactory too out of date+?
baroquebobcat has joined #ruby
<apeiros> riceandbeans: mail gem
cocotton has joined #ruby
<apeiros> if you want it even simpler, pony (I think that's the name - or mailpony? somesuch)
banister has joined #ruby
<apeiros> yeah, pony: https://github.com/benprew/pony - wraps the mail gem
saarinen has joined #ruby
TheNet has joined #ruby
sigurding has quit [Ping timeout: 245 seconds]
sungai_keruh has quit [Quit: Leaving]
johnmolina has joined #ruby
DrShoggoth has joined #ruby
lw has quit [Ping timeout: 245 seconds]
diegoviola has quit [Read error: Connection reset by peer]
ponch_ has quit [Ping timeout: 272 seconds]
lw has joined #ruby
tjr9898 has joined #ruby
<riceandbeans> apeiros: thanks
Zenigor has quit [Remote host closed the connection]
ltd has quit [Ping timeout: 250 seconds]
maximski has quit []
ghr has joined #ruby
aspires has quit []
aspires has joined #ruby
ltd has joined #ruby
<omosoj> hey guys, i'm using DateTime and i want to add 10 minutes to a time i've parsed
Tricon has joined #ruby
<wallerdev> cool
InfraRuby has joined #ruby
<apeiros> omosoj: DateTime#+
<omosoj> ok, figured it out. d = DateTime.now; d + Rational(x, 86400)
bmurt has quit []
<omosoj> thanks aperiros
<riceandbeans> apeiros: mail looks easier than pony to me, but what do you recommend between the two?
<apeiros> riceandbeans: I use plain mail
sepp2k has quit [Read error: Connection reset by peer]
ghr has quit [Ping timeout: 260 seconds]
<riceandbeans> apeiros: then so too shall I
jaimef has quit [Excess Flood]
sigurding has joined #ruby
boccobrock has joined #ruby
sepp2k has joined #ruby
cpruitt has quit [Read error: Connection reset by peer]
newUser1_ has joined #ruby
cpruitt has joined #ruby
slowcon has quit []
ghostmoth has quit [Quit: ghostmoth]
newUser1234 has quit [Ping timeout: 260 seconds]
ptrrr has joined #ruby
dangerousdave has joined #ruby
shredding has quit [Quit: shredding]
<apeiros> riceandbeans: but I haven't used pony, so can't really comment on how nice/not-nice it is :)
fauzanqadri has quit [Remote host closed the connection]
coderhs has quit [Ping timeout: 244 seconds]
x1337807x has joined #ruby
testcore has quit [Ping timeout: 264 seconds]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
testcore has joined #ruby
jftf_ has joined #ruby
jaimef has joined #ruby
tvw has quit []
carraroj has quit [Quit: Konversation terminated!]
crawfish has joined #ruby
x1337807x has quit [Client Quit]
mary5030 has quit [Remote host closed the connection]
tylerkern has joined #ruby
paulfm has quit []
tarcwynne is now known as mr_flibble
TieSoul has quit [Ping timeout: 246 seconds]
bMalum_ has quit [Ping timeout: 240 seconds]
mikepack_ has quit [Remote host closed the connection]
mikepack has joined #ruby
jftf_ has quit [Ping timeout: 246 seconds]
sailias1 has quit [Quit: Leaving.]
Jackneill has quit [Remote host closed the connection]
Hobogrammer has joined #ruby
polyidus has quit [Quit: EOF]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dbasch has joined #ruby
codeurge has quit [Quit: Quit.]
dangerousdave has joined #ruby
beef-wellington has quit [Ping timeout: 240 seconds]
yetanotherdave has joined #ruby
bMalum_ has joined #ruby
InfraRuby has left #ruby [#ruby]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baroquebobcat has quit [Ping timeout: 250 seconds]
haasn has quit [Ping timeout: 260 seconds]
mikepack_ has joined #ruby
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghostmoth has joined #ruby
duggiefresh has quit []
taybin has quit [Quit: This computer has gone to sleep]
mikepack has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
jpierre03 has joined #ruby
nanoyak has joined #ruby
ponch_ has joined #ruby
Tricon has quit [Quit: Leaving...]
<riceandbeans> how would I take the value from a text field submitted?
banister has quit [Read error: Connection reset by peer]
sigurding_ has joined #ruby
arup_r has quit [Quit: Leaving.]
banister has joined #ruby
<centrx> riceandbeans, Depends on what you are using to handle HTTP requests?
banister has quit [Max SendQ exceeded]
nat2610 has quit [Quit: Leaving.]
sigurding has quit [Ping timeout: 272 seconds]
sigurding_ is now known as sigurding
nanoyak has quit [Client Quit]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
lw has quit [Quit: s]
greggawatt1 has joined #ruby
ponch_ has quit [Ping timeout: 250 seconds]
<riceandbeans> centrx: rack
<greggawatt1> Hey fellow rubyists. If i have the following string "Pacific Time (US & Canada)" is there a way i can convert that to a timezone number? I can't find an answer to this with google
emmesswhy has quit [Quit: This computer has gone to sleep]
timonv_ has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
emmesswhy has joined #ruby
jsodini has joined #ruby
<onewheelskyward> That's a strange string. It's usually PST/PDT, America/Los_Angeles or the like.
autonomousdev has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
sdwrage has joined #ruby
danijoo has joined #ruby
saarinen has quit [Quit: saarinen]
ldnunes has quit [Quit: Leaving]
cobakobodob has quit [Ping timeout: 260 seconds]
nanoyak has joined #ruby
<greggawatt1> Im using the gem tzip to give me timezone based on zip which is where that string comes from
saarinen has joined #ruby
<waxjar> can't you get it to return GMT offsets?
Sonny|3oy has quit [Ping timeout: 264 seconds]
<crawfish> That would be ideal
magic has quit [Changing host]
magic has joined #ruby
MartinCleaver has joined #ruby
cocotton_ has joined #ruby
<greggawatt1> I want the GMT offset
Matadoer has quit [Remote host closed the connection]
razorgfx has quit [Quit: Textual IRC Client: www.textualapp.com]
Matadoer has joined #ruby
cocotton_ has quit [Read error: Connection reset by peer]
cocotton has quit [Read error: Connection reset by peer]
cocotton_ has joined #ruby
haasn has joined #ruby
johnmolina has quit []
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby
jftf_ has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
avalarion has quit [Remote host closed the connection]
ltd has quit [Ping timeout: 250 seconds]
mijicd has joined #ruby
JoshGlzBrk has joined #ruby
<Sou|cutter> ActiveSupport::TimeZone has some stuff for that
MarcWebe2 has joined #ruby
<Sou|cutter> if you roll that way
<MarcWebe2> Which library to use to print some text on existing PDF files?
<apeiros> MarcWebe2: we use jruby + drb + pdfbox for that
ltd has joined #ruby
nowthatsamatt has quit [Read error: Connection reset by peer]
nowthatsamatt_ has joined #ruby
bMalum_ has quit [Quit: Computer has gone to sleep.]
jftf_ has quit [Ping timeout: 240 seconds]
msmith_ has quit []
philcrissman has joined #ruby
sigurding has quit [Quit: sigurding]
bMalum_ has joined #ruby
bMalum_ has quit [Read error: Connection reset by peer]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bMalum_ has joined #ruby
dangerousdave has joined #ruby
kaiju_sloth has left #ruby [#ruby]
<Sou|cutter> once you have an ActiveSupport::TimeZone object you can just call #formatted_offset
jhass is now known as jhass|off
omosoj has quit [Ping timeout: 240 seconds]
starless has joined #ruby
<riceandbeans> so what's the best way to reference the 3 fields individually?
beef-wellington has joined #ruby
philcrissman has quit [Ping timeout: 250 seconds]
renderful has quit [Remote host closed the connection]
<apeiros> MarcWebe2: yes, pdfbox is java. I can ask the author whether he opensourced it (or would opensource it). given that it's not a core-business of ours we'd probably love some more eyes on the code.
Sonny|3oy has joined #ruby
<apeiros> (it = our drb+jruby wrapper)
renderful has joined #ruby
bMalum_ has quit [Ping timeout: 260 seconds]
<riceandbeans> apeiros: hints?
<MarcWebe2> Reviewing PDF code is out of scope, I had a look at PDF specification once.. There are quite a lot of features.
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> riceandbeans: ew, pastebin :)
nat2610 has joined #ruby
<apeiros> MarcWebe2: I think the pdf part is taken care of just fine by pdfbox (the java library)
<apeiros> the part written by us is only the wrapper around it
<apeiros> I'd have to ask tomorrow, though. midnight here.
<MarcWebe2> I'll ping you again (in this public channel) if I haven't found a solution till tomorrow.
<apeiros> ok
<MarcWebe2> Maybe prawn-templates is good enough.
renderfu_ has joined #ruby
<riceandbeans> apeiros: you got a better suggestion?
renderful has quit [Remote host closed the connection]
<apeiros> riceandbeans: gist.github.com is my favorite. no ads. clonable git repository. history.
thoolihan has quit [Ping timeout: 272 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gccostabr has quit [Quit: ZZZzzz…]
jpierre03 has quit [Ping timeout: 272 seconds]
jheg has quit [Quit: jheg]
<riceandbeans> apeiros: yeah but I don't want that
<riceandbeans> apeiros: this is embarrisingly bad experimental code
<riceandbeans> apeiros: I don't want that saved for eons
<apeiros> *shrug* don't put it on the internet then. not anywhere. not even pastebin.
<apeiros> gists can afair be deleted
<riceandbeans> no they can't
ghr has joined #ruby
afhammad has quit []
cocotton has joined #ruby
<apeiros> then what does that fat red "Delete" button do?
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gtrak has quit [Ping timeout: 264 seconds]
krisquigley has quit [Remote host closed the connection]
tvw has joined #ruby
<riceandbeans> apeiros: only works if NO ONE else has ever seen it
thoolihan has joined #ruby
<apeiros> lol, yeah, sure :)
doodlehaus has quit [Remote host closed the connection]
cobakobodob has joined #ruby
<riceandbeans> I want to make variables that contain the values entered into the text fields
<riceandbeans> I'm not sure what to look up for that though
cocotton_ has quit [Ping timeout: 240 seconds]
<apeiros> plain rack app?
ghr has quit [Ping timeout: 244 seconds]
<apeiros> @req.POST seems correct to me
ari-_-e has quit [Ping timeout: 240 seconds]
cocotton has quit [Ping timeout: 260 seconds]
crawfish has quit [Quit: crawfish]
tylerkern has joined #ruby
drjfreez1 has joined #ruby
<riceandbeans> doesn't work
<apeiros> *eyeroll*
<apeiros> define "doesn't work"
<riceandbeans> but I'd like to be able to use the individual values as well
nowthatsamatt has joined #ruby
nowthatsamatt_ has quit [Read error: Connection reset by peer]
<riceandbeans> I get sent to the 404
claymore has quit [Quit: Leaving]
Zebroid has quit [Remote host closed the connection]
aspires has quit []
<apeiros> you may want to inspect @req.path then in your 404 branch
timonv_ has quit [Remote host closed the connection]
johnmolina has joined #ruby
ari-_-e has joined #ruby
<riceandbeans> apeiros: if I use the JSON part it acts correctly
drjfreeze has quit [Ping timeout: 260 seconds]
<apeiros> "the JSON part" - I have no idea what you're talking about
sdwrage_ has joined #ruby
<riceandbeans> ...
<riceandbeans> return [200, {'Content-Type' => 'text/plain'},
jerius has quit []
<riceandbeans> ["Your data has been processed and you should receive an email with your certificate shortly.:n",JSON.pretty_generate(@req.POST)]]
<apeiros> oh dear…
<apeiros> you do mid-method returns
jftf_ has joined #ruby
shinobi_one has joined #ruby
<apeiros> don't do that. leads to the spaghetti and confusion you have now
<riceandbeans> I do copy-paste of examples to see if examples work to start learning by example
jespada has quit [Quit: Leaving]
<apeiros> case … when … <return value>; when … <return value>; else <return value>; end; end
<shinobi_one> Open-ended question: How do you feel about mutating objects in Ruby as opposed to non-destructive methods that leave the old one in tact?
<apeiros> or assign it to a variable and have it at the end of the method. even better.
<riceandbeans> apeiros: what?
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> riceandbeans: make sure your method has a single exit point. your return value matters and right now you're making a mess of it.
sdwrage has quit [Ping timeout: 245 seconds]
baroquebobcat has joined #ruby
<apeiros> your json part "works" because it has an explicit return in it (and hence exits the method mid-code, and hence does not execute line 23 and in consequence does not return the 404)
jrhorn424 is now known as zz_jrhorn424
greggawatt has joined #ruby
jftf_ has quit [Ping timeout: 260 seconds]
greggawatt1 has quit [Ping timeout: 260 seconds]
crdpink has joined #ruby
<riceandbeans> maybe I chose a bad example to learn from :(
<MarcWebe2> apeiros: http://dpaste.com/33N136T Code like this seems to work fine for my use case. Unlikely that I start packaging jruby for this simple use case (Main app is PHP anyway..)
<apeiros> MarcWebe2: sure, the simpler the better
<apeiros> I'm not sure at what point we abandoned prawn, and it might well be best suited for your task :)
krisquigley has joined #ruby
greggawatt1 has joined #ruby
johnmolina has quit [Remote host closed the connection]
greggawatt has quit [Ping timeout: 272 seconds]
Takle has quit [Remote host closed the connection]
ffranz has quit [Quit: Leaving]
pangur has joined #ruby
codecop has quit [Remote host closed the connection]
sambao21 has joined #ruby
aspires has joined #ruby
axsuul has joined #ruby
pangur has left #ruby ["/join"]
jpierre03 has joined #ruby
jonahR has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
machine_ has joined #ruby
machine_ is now known as machinewar
danijoo has joined #ruby
freerobby has quit [Quit: Leaving.]
Wolland has quit [Remote host closed the connection]
veleno has quit [Quit: veleno]
<Sou|cutter> shinobi_one: it's easier to reason about immutable objects IMO
<riceandbeans> apeiros: can you guide me in the right direction, maybe some documentation or something, I'm really lost on this
<riceandbeans> would that be a better example to learn from?
nowthatsamatt_ has joined #ruby
<apeiros> riceandbeans: your call method must return an array of the form [status_code, headers, body]
Grantlyk has joined #ruby
<shinobi_one> Sou|cutter: That's probably true. I just hearsome of people claim you shouldn't do it as it can mux things up, but in some cases it's just plain 'ol faster.
<apeiros> riceandbeans: tell me where your call method returns: https://gist.github.com/anonymous/2b10c35d914e335bf943
<shinobi_one> hear some* people*
nowthatsamatt has quit [Ping timeout: 240 seconds]
greggawatt1 has quit [Ping timeout: 255 seconds]
<centrx> shinobi_one, It is a relatively small performance improvement
<shinobi_one> centrx: when you look at << vs += with string concatenation is it still relatively small? i mean generally you're not doing this 10000 times, but still.
<centrx> shinobi_one, Micro-optimizations like that should be done when specific code is identified as a hot spot.
qwyeth has quit [Remote host closed the connection]
<shinobi_one> centrx: agreed
<centrx> shinobi_one, Other places, clarity and avoiding bugs is most important
ssvo has quit [Ping timeout: 245 seconds]
<shinobi_one> centrx: So your oppinion on it is that you shouldn't mutate unless you have a good reason to.
nowthatsamatt_ has quit [Ping timeout: 250 seconds]
<apeiros> riceandbeans: working on answering the question?
kaspertidemann has quit []
amargherio has quit [Read error: Connection reset by peer]
kireevco has quit [Quit: Leaving.]
<centrx> shinobi_one, Mutating causes subtle bugs for say a 15% performance improvement in one micro-area
<centrx> shinobi_one, Also, always using immutable methods makes Ruby more like functional programming
<shinobi_one> centrx: Way to not answer my question, but I'm gathering you have the same opinion as I do on it :P
bMalum_ has joined #ruby
<shinobi_one> centrx: Are you saying functional programming is the best programming? xD
InfraRuby has joined #ruby
ssvo has joined #ruby
ValicekB has quit [Ping timeout: 260 seconds]
bMalum_ has quit [Read error: Connection reset by peer]
baordog_ has quit [Ping timeout: 240 seconds]
<shinobi_one> I'm sorry I was just trolling with that last one.. ;p
bMalum_ has joined #ruby
<riceandbeans> [404, {}, ["not found oO"]]
aspires has quit []
<riceandbeans> apeiros: ^^
<apeiros> riceandbeans: that's one place. where else does it return?
kirun has quit [Quit: Client exiting]
jftf_ has joined #ruby
superscott[8] has joined #ruby
spider-mario has quit [Remote host closed the connection]
MartinCleaver has quit [Quit: MartinCleaver]
djbkd has quit [Remote host closed the connection]
<riceandbeans> HTML
<riceandbeans> return [200, {'Content-Type' => 'text/html'}, [body]]
<apeiros> correct. so it *only* returns a 200 status for one case - when '/' === @req.path
nobitanobi has quit [Ping timeout: 264 seconds]
benzrf|offline is now known as benzrf
<riceandbeans> apeiros: but if I do HTML in a variable like body, won't I need a heredoc?
<apeiros> your code probably goes through when "/generate_certificate" just fine, but since it doesn't return from there, it'll go on to execute line 23 and return [404, {}, ["not found oO"]]
<shevy> hmm
<riceandbeans> and if I use a heredoc, I can't interpolate or take variables
<shevy> is there a simple one liner to count n words in a file, through ruby?
<apeiros> riceandbeans: huh?
<apeiros> riceandbeans: take a step back
beef-wellington has quit [Ping timeout: 245 seconds]
<ari-_-e> shevy: depends on how you define words :)
<shevy> I guess with a regex? \w+ perhaps?
<apeiros> riceandbeans: what should your server return when you send the form? i.e. when you open "/generate_certificate"?
bMalum_ has quit [Ping timeout: 255 seconds]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> File.read('name_of_file').scan(/\w+/).count ?
centrx has quit [Quit: Mead error: Connection reset by beer]
<riceandbeans> apeiros: at the moment, I don't know, I want to be able to take the content of the 3 fields and work with it
<riceandbeans> apeiros: that's my primary concern
djbkd has joined #ruby
<apeiros> riceandbeans: then you're messing up your questions and confusing things
<apeiros> riceandbeans: because your last question was "I always get 404! why!"
<riceandbeans> what should I be asking?
jftf_ has quit [Ping timeout: 260 seconds]
krisquigley has quit [Remote host closed the connection]
<shevy> "what is the meaning of life?"
<apeiros> well… decide what you want to ask and stick to it.
<shevy> or ask a new question every time
ponch_ has joined #ruby
<apeiros> as for "I want to work with the 3 fields", I already told you that @req.POST seems to be the proper way to access the fields
froggy_ has joined #ruby
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
ValicekB has joined #ruby
Pumukel has quit [Quit: ChatZilla 0.9.90.1 [Firefox 31.0/20140715214327]]
mikecmpbll has quit [Quit: i've nodded off.]
elaptics is now known as elaptics`away
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
flowerhack has joined #ruby
_justin has joined #ruby
froggy__ has quit [Ping timeout: 246 seconds]
alexju has quit [Remote host closed the connection]
ponch_ has quit [Ping timeout: 272 seconds]
alexju has joined #ruby
ptrrr has quit [Quit: ptrrr]
chrisja has joined #ruby
shackleford has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
endash has joined #ruby
machinewar has quit [Remote host closed the connection]
dbasch has quit [Quit: dbasch]
alexju has quit [Ping timeout: 255 seconds]
kotk_ has joined #ruby
djbkd has joined #ruby
newUser1_ has quit [Remote host closed the connection]
livingstn has quit []
coca_rails has quit [Quit: coca_rails]
coca_rails has joined #ruby
kotk has quit [Ping timeout: 245 seconds]
aspires has joined #ruby
Neomex has quit [Read error: Connection reset by peer]
_justin has quit [Quit: _justin]
vsoftoiletpaper has joined #ruby
w09x has joined #ruby
<riceandbeans> apeiros: but it's not :(
aspires has quit [Client Quit]
ari-_-e has quit [Ping timeout: 245 seconds]
near77 has joined #ruby
RichardLitt has joined #ruby
<apeiros> riceandbeans: and you come to this conclusion how?
<near77> hi
dbasch has joined #ruby
<near77> anyone knows a way in ruby to check if a string is a sql query?
<riceandbeans> apeiros: because my rack app crashes when I reference @req on my own
dbasch has quit [Client Quit]
<near77> im parsing strings and looking for queries
ari-_-e has joined #ruby
<near77> but have a lot of false positives
<apeiros> riceandbeans: and by "crash" you mean what exception exactly? (and seriously, pulling this out of your nose sucks - if you want help, provide that information)
andrewlio has quit [Quit: Leaving.]
andrewjanssen has joined #ruby
dbasch has joined #ruby
<apeiros> riceandbeans: and of course, don't forget to gist the code you use which raises…
nobitanobi has joined #ruby
<nobitanobi> Hi guys. Is there any way to see which variables are in a particular binding?
crdpink has quit [Ping timeout: 255 seconds]
kaspergrubbe_ has quit [Remote host closed the connection]
michaeldeol has joined #ruby
ghr has joined #ruby
aspires has joined #ruby
dbasch has quit [Client Quit]
OffTheRails has joined #ruby
<near77> any gem?
<apeiros> nobitanobi: local_variables
emmesswhy has quit [Quit: This computer has gone to sleep]
<nobitanobi> apeiros: thanks!
dblessing has quit [Quit: dblessing]
mikepack_ has quit [Remote host closed the connection]
<nobitanobi> apeiros: that's a private method though. I was trying to do p binding.local_variables
MartinCleaver has joined #ruby
<apeiros> nobitanobi: use send
<nobitanobi> +1 thanks
<nobitanobi> crap. empty
<nobitanobi> :D
<riceandbeans> apeiros: I think I'm figuring it out...slowly
sambao21 has quit [Quit: Computer has gone to sleep.]
<riceandbeans> just...not sure how to isolate data...
<nobitanobi> I am trying to see which local variables are in my Rails controller
ghr has quit [Ping timeout: 240 seconds]
<apeiros> riceandbeans: p data
<apeiros> riceandbeans: or require 'pry' and binding.pry
iamjarvo has joined #ruby
<apeiros> nobitanobi: um, just look at the code?
<riceandbeans> apeiros: what's that do?
nanoyak has quit [Quit: Computer has gone to sleep.]
Sgeo has joined #ruby
sambao21 has joined #ruby
ValicekB has quit [Ping timeout: 244 seconds]
<apeiros> riceandbeans: it opens a console in the current context. you must have the pry gem installed.
<nobitanobi> apeiros: yep, I am just trying a simple scenario such as: https://gist.github.com/anonymous/17e4e3025586b7ea1e06 - I would expect @name to be in the current binding
<apeiros> nobitanobi: @name is not a local variable
Dreamer3 has joined #ruby
DrShoggoth has quit [Quit: Leaving]
<nobitanobi> apeiros: good point. It's an instance variable
<apeiros> binding.eval("self").instance_variables # or just instance_variables, since you're not passing around the binding…
<apeiros> same for local_variables btw.
TorpedoSkyline has joined #ruby
Hanmac has quit [Ping timeout: 260 seconds]
nanoyak has joined #ruby
jftf_ has joined #ruby
icole has quit [Remote host closed the connection]
<apeiros> nobitanobi: note that local variables can't be magically created. so all lvars you see in a code are all that exist in the binding.
vsoftoiletpaper has quit []
gr33n7007h has quit [Ping timeout: 245 seconds]
luckyruby has quit [Remote host closed the connection]
gr33n7007h has joined #ruby
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
<nobitanobi> apeiros: sorry I am trying to understand how the binding works
<apeiros> `ri Binding`
<nobitanobi> I see that I can send instance_variables directly. Without having to define the receiver as binding.
<apeiros> lvars, self and block
icole has joined #ruby
<apeiros> binding would be the wrong receiver too
bradleyp_ has joined #ruby
<apeiros> as binding != self
<apeiros> hence my binding.eval("self")
<nobitanobi> right
jftf_ has quit [Ping timeout: 272 seconds]
<apeiros> but since self == binding.eval("self")… and self.instance_variables == instance_variables
Wolland has joined #ruby
juz88 has joined #ruby
<apeiros> in other words: ivars belong to an object, not to a binding
diegoviola has joined #ruby
greggawatt has joined #ruby
<nobitanobi> oh boy
<nobitanobi> I see
<nobitanobi> wow, I guess I need to read more on this
<nobitanobi> first time I encounter binding
greggawatt has left #ruby [#ruby]
<apeiros> nobitanobi: as said, all it encapsulates is self, lvars and the current block
InhalingPixels has quit [Remote host closed the connection]
<apeiros> bedtime for me
<apeiros> ah, a different point of view perhaps: binding is about the lexical context you're in
bradleyprice has quit [Ping timeout: 245 seconds]
britneywright has joined #ruby
dbasch has joined #ruby
ComingHome has quit [Quit: Lost terminal]
xaxisx has quit [Quit: Leaving]
mikepack has joined #ruby
<nobitanobi> apeiros: thanks. I will do more research
toastynerd has quit [Remote host closed the connection]
<nobitanobi> good night
ValicekB has joined #ruby
ecksit has joined #ruby
luckyruby has joined #ruby
<shevy> can I do a regex but exclude stuff?
towbes has quit [Ping timeout: 240 seconds]
<shevy> I want to capture .bz2 files but not if leading .tar.bz2
<shevy> when /\.bz2/
<shevy> hmm
Hanmac has joined #ruby
InhalingPixels has joined #ruby
<shevy> nevermind, a simple if else clause solves it as well
<riceandbeans> apeiros: I figured it out...but I think I'm doing it REALLY ineffeciently...
siukit2014 has quit [Ping timeout: 272 seconds]
<riceandbeans> apeiros: I'm converting it it JSON, then parsing the JSON, then selecting individual parts
haasn has quit [Ping timeout: 260 seconds]
[42] has quit [Ping timeout: 260 seconds]
geardev has joined #ruby
IceDragon has quit [Ping timeout: 250 seconds]
siukit2014 has joined #ruby
{xenomorph} has quit [Ping timeout: 260 seconds]
[42] has joined #ruby
IceDragon has joined #ruby
saarinen has quit [Quit: saarinen]
{xenomorph} has joined #ruby
near77 has quit [Ping timeout: 246 seconds]
realDAB has quit [Quit: realDAB]
anaeem1 has quit [Quit: Leaving...]
dawkirst has quit [Remote host closed the connection]
haasn has joined #ruby
anaeem1 has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
boccobrock has quit [Quit: WeeChat 0.4.3]
ValicekB has quit [Ping timeout: 260 seconds]
<geardev> what's the recommended way of installing ruby with docker?
<geardev> i am already using the `FROM phusion/baseimage:0.9.12` image
maestrojed has quit [Quit: Textual IRC Client: www.textualapp.com]
philcrissman has joined #ruby
IceDragon has quit [Ping timeout: 240 seconds]
saarinen has joined #ruby
chipotle has joined #ruby
IceDragon has joined #ruby
realDAB has joined #ruby
mikepack has quit [Remote host closed the connection]
coca_rails has quit [Ping timeout: 240 seconds]
itspots has quit [Quit: Lingo - http://www.lingoirc.com]
treehug88 has quit []
lele has quit [Ping timeout: 260 seconds]
realDAB has quit [Client Quit]
{xenomorph} has quit [Ping timeout: 260 seconds]
towbes has joined #ruby
towbes has joined #ruby
{xenomorph} has joined #ruby
philcrissman has quit [Ping timeout: 255 seconds]
bMalum_ has joined #ruby
lele has joined #ruby
bMalum_ has quit [Read error: Connection reset by peer]
bMalum__ has joined #ruby
t0rc has joined #ruby
larissa has quit [Quit: Leaving]
jgrevich has joined #ruby
theharshest has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
kevind has quit [Remote host closed the connection]
<theharshest> I have a hash "h". I want an array of hashes with 5 copies of this hash. What is a quick way to do this?
chipotle has joined #ruby
<eam> theharshest: Array.new(5) {h.dup}
<theharshest> eam: thanks :D
Pumukel has joined #ruby
<theharshest> eam: would it create deep copies? coz I would be modifying them afterwards separately
baroquebobcat has quit [Quit: baroquebobcat]
<eam> no
<eam> it will dup the hash itself only
bMalum__ has quit [Ping timeout: 260 seconds]
diegoviola has quit [Quit: WeeChat 0.4.3]
Mattx has joined #ruby
<Mattx> hey guys
<Mattx> any way to do an atomic gsub on a string using multiple pairs keys-replacement?
ValicekB has joined #ruby
<Mattx> for example given the string "foo bar", I want to change "foo" by "123 bar" and "bar" by "456". the result must be "123 bar 456"
<theharshest> eam: is this correct to create deep copies? Array.new(5) {Marshal.load(Marshal.dump(h))}
m8 has quit [Read error: Connection reset by peer]
<eam> theharshest: possibly? Everything depends on the kinds of objects you're storing
<eam> #clone I believe is intended to help here as well
IceDragon has quit [Ping timeout: 260 seconds]
sdwrage_ has quit [Quit: This computer has gone to sleep]
IceDragon has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 245 seconds]
<theharshest> eam: hashes would store strings as values and symbols as keys
<waxjar> that's a quick and dirty way theharshest. keep in mind that not every object (such as Procs) can be marshalled, though.
<waxjar> strings and symbols should be fine
<eam> Mattx: gsub just does that
<eam> >> "foo bar".gsub(/foo|bar/) {"zzfoozzz"}
<eval-in> eam => "zzfoozzz zzfoozzz" (https://eval.in/178719)
<theharshest> waxjar: I see, thanks!
<Mattx> eam, no it doesn't
andrewjanssen has quit [Quit: Leaving...]
<wallerdev> kinda does lol
<eam> sure it does, as evidenced by the code I just ran
<wallerdev> just pass in a block
<wallerdev> something like
<Mattx> eam, try to run the same example I mentioned
snath has quit [Ping timeout: 246 seconds]
<Mattx> "foo bar", replacements are: foo -> "123 bar", bar -> "456"
<Mattx> it must return "123 bar 456"
_cpt_yossarian_ has joined #ruby
<wallerdev> >> lookup = {"foo" => "123 bar", "bar" => "456"}; "foo bar".gsub(/#{lookup.keys.map { |k| Regexp.escape(k) }.join('|')}/) { |m| lookup[m] }
<eval-in> wallerdev => "123 bar 456" (https://eval.in/178722)
mijicd has quit [Remote host closed the connection]
oso96_2000 is now known as oso|away
<Mattx> alright, it looks better :P
<Mattx> hmn, weird
<Mattx> ok, I suppose I was wrong. thanks both!
<eam> wallerdev: hey, apeiros iirc showed me this cool thing:
<eam> >> lookup = {"foo" => "123 bar", "bar" => "456"}; "foo bar".gsub(Regexp.union lookup.keys) { |m| lookup[m] }
<eval-in> eam => "123 bar 456" (https://eval.in/178729)
djcp has joined #ruby
<Mattx> oh, that's nice!
<wallerdev> nice :)
IceDragon has quit [Ping timeout: 244 seconds]
<wallerdev> dat union
godd2 has quit [Remote host closed the connection]
riceandbeans has quit [Quit: leaving]
mr_snowf1ake has joined #ruby
<wallerdev> yeah i remember some discussion about searching a string for multiple things at once
<apeiros> >> lookup = {"foo" => "123 bar", "bar" => "456"}; "foo bar".gsub(Regexp.union(lookup.keys), lookup)
<eval-in> apeiros => "123 bar 456" (https://eval.in/178730)
<apeiros> as of 1.9 iirc
cpt_yossarian has quit [Ping timeout: 240 seconds]
<wallerdev> wow
<Mattx> even nicer!
<apeiros> I still use the latter form for more complex stuff, though
ponch_ has joined #ruby
<apeiros> s/latter form/block form/
<wallerdev> when will ruby implement Hash#to_proc
<apeiros> also I didn't write this. I'm currently sleeping.
bigmac has joined #ruby
bigmac is now known as i8igmac
<Mattx> sleeping super skills uhm? :P
blackmesa has quit [Quit: WeeChat 0.4.3]
IceDragon has joined #ruby
snath has joined #ruby
ponch_ has quit [Ping timeout: 255 seconds]
_cpt_yossarian_ has quit [Quit: Leaving]
cpt_yossarian has joined #ruby
icebourg has quit []
jeekl has quit [Ping timeout: 240 seconds]
ghr has joined #ruby
iteratorP has joined #ruby
Emmanuel_Chanel has joined #ruby
renderfu_ has quit [Remote host closed the connection]
siukit2014 has quit [Ping timeout: 272 seconds]
t0rc has quit [Quit: WeeChat 0.4.3]
siukit2014 has joined #ruby
toastynerd has joined #ruby
toastynerd has quit [Remote host closed the connection]
jeekl has joined #ruby
ValicekB has quit [Ping timeout: 264 seconds]
maloik has quit [Ping timeout: 260 seconds]
ghr has quit [Ping timeout: 260 seconds]
w09x has quit [Remote host closed the connection]
maloik has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
geardev has quit [Ping timeout: 250 seconds]
w09x has joined #ruby
skysploit has joined #ruby
icarus has quit [Remote host closed the connection]
o0oo0o has quit [Ping timeout: 264 seconds]
marr has quit [Ping timeout: 272 seconds]
elcuervo has joined #ruby
o0oo0o has joined #ruby
superscott[8] has quit [Read error: Connection reset by peer]
jimmyhoughjr has quit [Quit: Textual IRC Client: www.textualapp.com]
jimmyhoughjr has joined #ruby
jimmyhoughjr has quit [Client Quit]
jimmyhoughjr has joined #ruby
superscott[8] has joined #ruby
Eiam is now known as babykiller
babykiller is now known as Eiam
w09x has quit [Ping timeout: 255 seconds]
sdwrage has joined #ruby
Miccet has joined #ruby
DivineEntity has joined #ruby
Miccet has quit [Client Quit]
ValicekB has joined #ruby
ARCADIVS has quit [Quit: WeeChat 0.4.3]
aspires has quit []