havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.9: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || logs @ http://irclog.whitequark.org/ruby/
jhack has joined #ruby
lalalaaa has quit [Ping timeout: 246 seconds]
mleung has quit [Quit: mleung]
d10n-work has quit [Quit: Connection closed for inactivity]
GinoMan2440 has joined #ruby
aberen has quit [Ping timeout: 276 seconds]
kgrz has quit [Ping timeout: 246 seconds]
RushPL has quit [Read error: Connection reset by peer]
RushPL has joined #ruby
zeroDi has joined #ruby
t1mxg0d has joined #ruby
millerti has joined #ruby
jhack has quit [Quit: jhack]
<millerti> In C, I could do something like int myarr[] = { \n #include "somefile.c" \n }; Is something equivalent in Ruby that would let me drop a file's contents into the middle of arbitrary code?
frem_ has quit [Quit: Connection closed for inactivity]
diegoviola has quit [Quit: WeeChat 1.5]
certainty has joined #ruby
tax has joined #ruby
<smathy> millerti, load
<millerti> smathy: I just got a syntax error when I tried that.
<millerti> smathy: Because it was between brackets.
madgen has quit [Ping timeout: 250 seconds]
triangles has joined #ruby
Vingador has quit [Ping timeout: 252 seconds]
<millerti> This did it: eval "$xa=[#{File.read("arr.rb")}]"
nankyokusei has joined #ruby
benlieb has joined #ruby
certainty has quit [Ping timeout: 260 seconds]
nisstyre has quit [Changing host]
nisstyre has joined #ruby
triangles3 has quit [Ping timeout: 252 seconds]
nadir has joined #ruby
zeroDi has quit [Ping timeout: 240 seconds]
Vingador has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
rcvalle has quit [Quit: rcvalle]
djbkd has quit [Quit: My people need me...]
rkazak has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karmatr0n has joined #ruby
MrBusiness3 has joined #ruby
symm- has quit [Ping timeout: 252 seconds]
mistermocha has joined #ruby
dorje_ has quit [Ping timeout: 260 seconds]
davedev2_ has quit []
David_H_Smith has quit [Remote host closed the connection]
mistermocha has quit [Read error: Connection reset by peer]
amincd has joined #ruby
cdg has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
cdg has joined #ruby
mistermocha has joined #ruby
<amincd> hi, if I do a: hash.each do |var| .... end; is var an array?
mistermocha has quit [Read error: Connection reset by peer]
vdamewood has quit [Quit: Life beckons.]
mistermocha has joined #ruby
<al2o3-cr> amincd: yes
MrBusiness3 has quit [Ping timeout: 260 seconds]
harfangk has joined #ruby
<amincd> al2o3-cr: thanks
zeroDi has joined #ruby
<al2o3-cr> yw
<amincd> because the reference only gives examples of a key, value pair cited as variables: http://ruby-doc.org/core-1.8.7/Hash.html#method-i-each
lightt has joined #ruby
skweek has joined #ruby
cdg has quit [Ping timeout: 272 seconds]
mistermocha has quit [Ping timeout: 260 seconds]
tjohnson has joined #ruby
mistermo_ has joined #ruby
allcentu1 has joined #ruby
<al2o3-cr> amincd: btw, the documentation is prehistoric (nearly) :p
mistermocha has joined #ruby
<amincd> al2o3-cr: ah right.. I just noticed
jackjackdripper has quit [Quit: Leaving.]
Vingador has quit [Remote host closed the connection]
mistermocha has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
karmatr0n has quit [Ping timeout: 240 seconds]
mistermo_ has quit [Ping timeout: 250 seconds]
Elvin has joined #ruby
David_H_Smith has joined #ruby
ekinmur has joined #ruby
<shevy> amincd if it helps you and you already have a hash in the first place, perhaps consider using .each_pair {|key, value| I found that the latter often helps me simply from the name of the method alone ("each_pair")
<amincd> shevy: noted
<amincd> shevy: noted
mistermo_ has joined #ruby
David_H_Smith has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 250 seconds]
CloCkWeRX has joined #ruby
David_H_Smith has joined #ruby
<baweaver> Fun thing I've remembered of the day, each case when branch supports multiple conditions
<baweaver> >> case 1; when Float,Integer then 1 else 0 end
<ruby[bot]> baweaver: # => 1 (https://eval.in/584846)
<baweaver> >> case 1.0; when Float,Integer then 1 else 0 end
<ruby[bot]> baweaver: # => 1 (https://eval.in/584847)
mistermocha has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
giz|work has quit [Ping timeout: 250 seconds]
harfangk has quit [Quit: harfangk]
myntcake has quit [Quit: Leaving]
benlieb has joined #ruby
mistermo_ has quit [Ping timeout: 276 seconds]
sumobob has joined #ruby
jaguarmagenta has joined #ruby
MrBusiness3 has joined #ruby
aberen has joined #ruby
lightt has quit [Remote host closed the connection]
kgrz has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
jaguarmagenta has quit [Ping timeout: 276 seconds]
flashpoint9 has quit [Remote host closed the connection]
MrBusiness2 has joined #ruby
aberen has quit [Ping timeout: 250 seconds]
andrew9183 has joined #ruby
<andrew9183> stupid question, can you truncate a hash like you slice an array ?
MrBusiness3 has quit [Ping timeout: 250 seconds]
kgrz has quit [Ping timeout: 240 seconds]
banister has joined #ruby
eljimbo has joined #ruby
eljimbo has quit [Remote host closed the connection]
mistermocha has joined #ruby
jancel has quit [Remote host closed the connection]
misterm__ has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
moei has joined #ruby
misterm__ has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
SilverKey has joined #ruby
mistermocha has joined #ruby
skweek has quit [Remote host closed the connection]
mistermocha has quit [Read error: Connection reset by peer]
sarlalian has quit [Ping timeout: 244 seconds]
mistermocha has joined #ruby
certainty has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
nando293921 has quit [Ping timeout: 244 seconds]
shakes has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sarlalian has joined #ruby
skade has quit [Ping timeout: 272 seconds]
allcentu1 has quit [Ping timeout: 240 seconds]
smathy is now known as smathy_afk
certainty has quit [Ping timeout: 276 seconds]
Ropeney_ has joined #ruby
ElFerna has joined #ruby
mistermocha has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
scorphus has quit [Quit: Coyote finally caught me]
scorphus has joined #ruby
lightt has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
zeroDi has quit [Quit: WeeChat 1.5]
yfeldblum has joined #ruby
mistermo_ has joined #ruby
misterm__ has joined #ruby
mistermocha has quit [Ping timeout: 252 seconds]
scorphus has quit [Client Quit]
mistermocha has joined #ruby
scorphus has joined #ruby
rkazak has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
mistermo_ has quit [Ping timeout: 250 seconds]
misterm__ has quit [Ping timeout: 250 seconds]
Fredrich_ has joined #ruby
AndroidLoverInSF has quit [Quit: This computer has gone to sleep]
scorphus has quit [Quit: Coyote finally caught me]
Fredrich010 has quit [Ping timeout: 264 seconds]
dkam has joined #ruby
dkam has quit [Client Quit]
tildes_ has quit [Ping timeout: 244 seconds]
ekinmur has joined #ruby
skweek has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
ensyde__ has joined #ruby
mistermocha has joined #ruby
yqt has quit [Ping timeout: 276 seconds]
mistermocha has quit [Read error: Connection reset by peer]
ensyde has joined #ruby
scorphus has joined #ruby
mistermocha has joined #ruby
karmatr0n has joined #ruby
flashpoint9 has joined #ruby
mistermo_ has joined #ruby
ensyde__ has quit [Ping timeout: 250 seconds]
mistermocha has quit [Ping timeout: 252 seconds]
karmatr0n has quit [Ping timeout: 260 seconds]
SilverKey has quit [Quit: Halted.]
mistermo_ has quit [Ping timeout: 250 seconds]
patrick_star_3 has joined #ruby
nando293921 has joined #ruby
mistermocha has joined #ruby
gamov has quit [Ping timeout: 246 seconds]
Coldblackice has quit [Ping timeout: 250 seconds]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
domgetter has quit [Ping timeout: 250 seconds]
aufi has joined #ruby
patrick_star has quit [Ping timeout: 264 seconds]
weemsledeux has joined #ruby
postmodern has quit [Ping timeout: 250 seconds]
mistermocha has quit [Ping timeout: 244 seconds]
pepee has quit [Ping timeout: 246 seconds]
Rodya_ has quit [Remote host closed the connection]
pepee has joined #ruby
aberen has joined #ruby
amincd has quit [Quit: Page closed]
jancel has joined #ruby
andrew9183 has quit [Quit: andrew9183]
harfangk has joined #ruby
Rodya_ has joined #ruby
sumobob has quit [Ping timeout: 264 seconds]
aberen has quit [Ping timeout: 272 seconds]
Coldblackice has joined #ruby
nando293921 has quit [Quit: Lost terminal]
postmodern has joined #ruby
nando293921 has joined #ruby
charliesome has joined #ruby
c355e3b has quit [Quit: Connection closed for inactivity]
Arsin has joined #ruby
LoneHermit has joined #ruby
LinuxPenT has joined #ruby
<Arsin> Can someone help me with asciidoctor? I'm trying to compile -> https://github.com/bitcoinbook/bitcoinbook
<havenwood> Arsin: what trouble are you running into?
<havenwood> Arsin: Getting an error?
<Arsin> I found many tutorials for single page documents, but I don't know how to complie with anymore than one
mistermocha has joined #ruby
ElFerna has quit [Ping timeout: 244 seconds]
<Arsin> I'm just trying to compile the bugger
<Arsin> to pdf
<havenwood> Arsin: What's the command you're running? Do you want it to run for every file in a directory or recursively in subdirectories as well?
certainty has joined #ruby
jrafanie has joined #ruby
<Arsin> There are subdirectories, I do want it to run just one command. I don't want to make multiple PDFs then combine, I feel like there's a way to automate collecting resources and making one PDF
lightt has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 250 seconds]
<Arsin> The standard command to take it to HTML is just "asciidoctor FILENAME", right now I'm trying to dig up tutorials to get a PDF output
ElFerna has joined #ruby
<Arsin> "asciidoctor-pdf FILENAME.EXTENSION"
Spami has joined #ruby
Spami has quit [Remote host closed the connection]
nankyokusei has joined #ruby
certainty has quit [Ping timeout: 260 seconds]
ur5us has quit [Remote host closed the connection]
whathapp_ has quit [Remote host closed the connection]
flashpoint9 has quit [Remote host closed the connection]
gamov has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
flashpoint9 has joined #ruby
lightt has joined #ruby
LaT0rtue has quit [Ping timeout: 244 seconds]
jancel has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
karmatr0n has joined #ruby
flashpoint9 has quit [Ping timeout: 250 seconds]
meinside has joined #ruby
pilne has quit [Quit: Quitting!]
mistermo_ has joined #ruby
cdg has joined #ruby
misterm__ has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
mistermo_ has quit [Ping timeout: 244 seconds]
aufi has quit [Ping timeout: 244 seconds]
misterm__ has quit [Ping timeout: 250 seconds]
mistermocha has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
sp4rrow has joined #ruby
aupadhye has joined #ruby
mistermo_ has joined #ruby
mistermo_ has quit [Read error: Connection reset by peer]
Coldblackice has quit [Ping timeout: 244 seconds]
xlegoman has quit [Quit: Textual IRC Client: www.textualapp.com]
pelegreno_ has quit [Remote host closed the connection]
rodfersou has quit [Quit: leaving]
pelegreno has joined #ruby
misterm__ has joined #ruby
mister___ has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
cdg has quit [Remote host closed the connection]
misterm__ has quit [Ping timeout: 250 seconds]
mistermo_ has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
mister___ has quit [Ping timeout: 244 seconds]
mistermocha has joined #ruby
assgrass has joined #ruby
misterm__ has joined #ruby
assgrass has quit [Read error: Connection reset by peer]
assgrass has joined #ruby
assgrass has quit [Read error: Connection reset by peer]
benlieb has quit [Quit: benlieb]
grassass has quit [Ping timeout: 250 seconds]
mistermo_ has quit [Ping timeout: 250 seconds]
mistermo_ has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
misterm__ has quit [K-Lined]
mistermo_ has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
Spami has joined #ruby
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
t1mxg0d has quit [Quit: WeeChat 1.5]
mistermocha has quit [Read error: Connection reset by peer]
jaguarmagenta has joined #ruby
woodruffw has quit [Quit: And then he took off.]
elifoster has quit [Ping timeout: 240 seconds]
woodruffw has joined #ruby
ur5us has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
aberen has joined #ruby
sandstrom has joined #ruby
jancel has joined #ruby
jaguarmagenta has quit [Ping timeout: 252 seconds]
postmodern has quit [Ping timeout: 250 seconds]
ellistaa has joined #ruby
<ellistaa> how would you define a 10x programmer?
chopin has joined #ruby
<elomatreb> As someone who uses meaningless buzzwords :P
aberen has quit [Ping timeout: 246 seconds]
<ellistaa> elomatreb: what is the non buzzword for 10x programmer
kspencer has quit [Remote host closed the connection]
braincras has quit [Quit: bye bye]
<elomatreb> ellistaa: It probably just means someone who is good at their job
LoneHermit has quit [Remote host closed the connection]
<ellistaa> what would make a progrmmer top knotch
harfangk has quit [Quit: harfangk]
Spami has quit [Quit: This computer has gone to sleep]
Soraroxasxion has joined #ruby
ellistaa has quit [Quit: ellistaa]
sp4rrow has joined #ruby
<Soraroxasxion> Hello, How would I in ruby make an if statement that is If A is true unless B is true
postmodern has joined #ruby
Elvin has quit [Quit: Textual IRC Client: www.textualapp.com]
ellistaa has joined #ruby
certainty has joined #ruby
elifoster has joined #ruby
braincrash has joined #ruby
agentmee1kat has quit [Ping timeout: 276 seconds]
agentmeerkat has joined #ruby
Nawn has joined #ruby
pwnd_nsfw has quit [Ping timeout: 258 seconds]
Nawn has quit [Remote host closed the connection]
k3rn31 has joined #ruby
certainty has quit [Ping timeout: 240 seconds]
<Soraroxasxion> in ruby is || and?
<elomatreb> || is boolean or
<elomatreb> && is boolean and
harfangk has joined #ruby
jancel has quit [Remote host closed the connection]
<Soraroxasxion> So in an if statement to say both a and b need to be true it would be if (statement a) && (statement b)?
odigity has joined #ruby
<odigity> I'm in a python project (not my choice), and need to encode a list of string literals. Does anyone know if Python has an equivalent to ruby's %w operator?
aeterne has quit [Read error: Connection reset by peer]
<elomatreb> Soraroxasxion: correct
shakes has quit [Quit: Leaving]
ElFerna has quit [Ping timeout: 246 seconds]
<Soraroxasxion> Hey it worked! thanks, (was getting an error missing method so adding && !SceneManager.scene_is?(Scene_Gameover) fixed my problem
<Soraroxasxion> not that that makes any sense out of context.
MadeInChina has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<elomatreb> Few errors do :)
nando293921 has quit [Ping timeout: 240 seconds]
sp4rrow has quit [Remote host closed the connection]
ElFerna has joined #ruby
<Soraroxasxion> it was basically trying to load a map that didn't exist before the default death scene was interupted fully.
<Soraroxasxion> that tells it not to load the map if the current map is the game over screen
<elomatreb> Gamedev in Ruby? Sounds nice!
<Soraroxasxion> well it's rpg maker, just had to make a small edit to fix an error in a script conflict
<Soraroxasxion> Good news is i'm learning.
<elomatreb> odigity: I don't know if Python has a direct equivalent, but it does have multiline strings. Maybe create one of those and split on the newline?
<odigity> elomatreb, that's creative, but doesn't feel better to me than simply using the straightforward method of writing a list of string literals
<odigity> it's ok, I was prepared to be disappointed; there's a reason I prefer ruby to python, afterall :)
<elomatreb> ^ this
<Soraroxasxion> don't know to much but this seems to be somebody asking the same question (and it lookes answered) https://bytes.com/topic/python/answers/540221-ruby-w-equivalent
<elomatreb> lol @ how they moan about ruby syntax in that thread
<Soraroxasxion> does it at least help though?
<Soraroxasxion> :P
jancel has joined #ruby
jancel has quit [Remote host closed the connection]
<elomatreb> As soon as two competing programming languages are the subject of a thread you get flamewars
<Soraroxasxion> yeah it just looked like the first answer was serious, sorry if it wasn't any help
<Soraroxasxion> How would I explain to my friend who knows almost nothing how bad nil values being passed usually are?
gix has quit [Ping timeout: 250 seconds]
Yiota has joined #ruby
tmtwd has quit [Ping timeout: 246 seconds]
<elomatreb> The best way to learn about being careful with nil values is having to debug errors caused by them
ellistaa has quit [Quit: ellistaa]
<Soraroxasxion> Yeah but how do I explain to my non coder friend about that.
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<elomatreb> Maybe like this: nil means "no value". Can you do anything with "no value"?
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gix has joined #ruby
<dsea> elomatreb, The flaming is probably because ruby could be good if they didn't make it into perl for grownups
<elomatreb> I really don't want to argue about Ruby vs. Python vs. Perl
<elomatreb> Almost as useless as Tabs vs. Spaces
chopin has quit [Remote host closed the connection]
MadeInChina has quit [Read error: Connection reset by peer]
<Arcaire> Have you considered arguing about vim vs emacs?
<elomatreb> Windows vs. Unix?
<Arcaire> That one's easy though
<Arcaire> "I play video games"
<Arcaire> end of argument
<elomatreb> Throw some PHP into the mix and you're ready to waste hours arguing with strangers on the internet
<Arcaire> lol php
<dsea> Isn't that what the internet is for?
hahuang61 has quit [Ping timeout: 264 seconds]
* Arcaire waits for someone to link that utterly atrocious blog post by eevee about PHP being a "fractal of bad design".
<elomatreb> Anyone been to 32C3? There was a Perl talk which was basically this debate, plus funny camel pictures
<Arcaire> But that puts me in the same room as ioerror
<Arcaire> why would i want that
<Soraroxasxion> is this good enough for you https://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/
ellistaa has joined #ruby
<Soraroxasxion> :P
<Arcaire> Soraroxasxion: That's the one! :D
<Arcaire> Bad post, parroted by people who probably don't even know what the word 'fractal' means.
<elomatreb> Arcaire: But also in the same room as hundreds of actually awesome people. I like the C3
<Arcaire> elomatreb: tbh i just can't take the time off to go to Berlin
<Arcaire> I do, however, watch any interesting talks online later.
<elomatreb> It's in Hamburg, but I get your point. I'm fortunate enough to live in driving distance
kareeoleez has joined #ruby
<Soraroxasxion> Hey, you said you where waiting for it.
hk238 has joined #ruby
zapata has quit [Quit: WeeChat 1.5]
<elomatreb> That article is actually a good read, no language is immune from criticicsm
<Soraroxasxion> true enough.
<dsea> The 32c3 speeches on perl are great as well, thank you
kknight has joined #ruby
<elomatreb> Ruby also has it's weak points. Excessive metaprogramming makes code as unreadable as some PHP method names
kspencer has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
pwnd_nsfw has joined #ruby
nando293921 has joined #ruby
Vingador has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
aberen has joined #ruby
<Soraroxasxion> So what are the strong and weak points of ruby? I know every coding language has there own.
rkazak has joined #ruby
tmtwd has joined #ruby
<elomatreb> You're not going to get many actual answers for that. Everything aside from a few low-level concerns is pure opinion
<Arcaire> elomatreb: it's not a good read
nando293921 has quit [Client Quit]
<Arcaire> it's mostly incorrect or "this doesn't do what i want it to do so it's wrong"
<Arcaire> eevee is mostly a pretty cool person but that post is just garbage through and through
LoneHerm_ has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ellistaa has quit [Quit: ellistaa]
jancel has joined #ruby
<Arcaire> i wish everything in ruby wasn't a dsl
<Arcaire> just write ruby dammit
<elomatreb> Arcaire: I wouldn't take it at face value, but it can be useful to have posts like that to notice inconsistent or unintuitive behaviour in a language
aberen has quit [Ping timeout: 250 seconds]
nirix has left #ruby ["Textual IRC Client: www.textualapp.com"]
<elomatreb> I agree on the DSL thing. It's really difficult to write actually good DSLs
tjbiddle has joined #ruby
<Soraroxasxion> Who want's to hear a programing joke I found?
charliesome has joined #ruby
<Arcaire> C++
<Soraroxasxion> close
<Soraroxasxion> C
<Soraroxasxion> You shoot yourself in the foot.
<Soraroxasxion> C++
<Soraroxasxion> You accidently create a dozen instances of yourself and shoot them all in the foot. Providing emergency medical assistance is impossible since you can't tell which are bitwise copies and which are just pointing at others and saying "That's me, over there."
<Arcaire> lmao
LoneHerm_ has quit [Ping timeout: 240 seconds]
<elomatreb> Isn't there an entire list of jokes about languages like that? IIRC there even is a ruby one
<Arcaire> probably
<Soraroxasxion> most likely
craigp has quit [Ping timeout: 246 seconds]
nando293921 has joined #ruby
<Soraroxasxion> it's just the first one If ound
<Soraroxasxion> found*
tubbo has quit [Ping timeout: 244 seconds]
<LinuxPenT> anyone even mildly interested in metasploit development? just curious
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Soraroxasxion> ah.
hahuang61 has joined #ruby
<Arcaire> LinuxPenT: yes
tjbiddle has quit [Quit: tjbiddle]
weemsledeux has joined #ruby
smathy_afk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
<LinuxPenT> Arcaire: how familiar are you with the framework? i was doing some testing last night and noticed a ton of areas of potential improvement. literally too many to work on alone, though. most of the issues i came across had to do with post-exploitation on android
certainty has joined #ruby
chouhoulis has joined #ruby
Vingador has quit [Remote host closed the connection]
<Arcaire> are you sure they were areas of potential improvement or just areas you happened to be misusing the framework
<Arcaire> I ask because there's over 300 contributors to metasploit.
hahuang61 has quit [Ping timeout: 244 seconds]
hahuang61 has joined #ruby
nankyokusei has joined #ruby
harfangk has quit [Quit: harfangk]
certainty has quit [Ping timeout: 252 seconds]
<Soraroxasxion> Anyways peace.
Soraroxasxion has quit []
yfeldblum has quit [Read error: Connection reset by peer]
<LinuxPenT> lol given that android isn't "officially" supported i'd classify them as idiosyncrasies of the current stage of development. for example, when dropping a meterpreter shell on windows or linux boxes we have modules for persistent access, but no such option on the phones. there were no modules for imaging and downloading the contents of an sd card in its entirety for forensic analysis with other linux utilities. to download pics i ha
<LinuxPenT> d to traverse to the directory and download individually, which was time-consuming. also seemingly lacking were modules for privilege escalation on the android platform. what would you classify that as?
craigp has joined #ruby
armyriad has joined #ruby
yfeldblum has joined #ruby
yatish27 has joined #ruby
nankyokusei has quit [Ping timeout: 264 seconds]
alfiemax has quit [Ping timeout: 272 seconds]
chouhoulis has quit [Remote host closed the connection]
<LinuxPenT> i'd personally much prefer to be able to image the card and conduct forensic analysis to retrieve deleted information. that'd be pretty cool, right?
chouhoulis has joined #ruby
craigp has quit [Ping timeout: 276 seconds]
solocshaw has quit [Ping timeout: 244 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<odigity> I keep writing 'puts' in this python script.
DTZUBDUB has quit [Ping timeout: 272 seconds]
ElFerna has quit [Ping timeout: 260 seconds]
chouhoulis has quit [Ping timeout: 244 seconds]
duncannz has joined #ruby
arooni has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kknight has quit [Quit: Leaving]
Respek has quit [Quit: gone to sleep. ZZZzzz…]
Cohedrin has joined #ruby
harfangk has joined #ruby
<dsea> LinuxPenT, then just write a script that iterates over what ever exploit your using for each item, not really that time consuming
<dsea> odigity, then use a for loop to do it whatever put your doing for you x amount of times until you get the desired result
dcunit3d has joined #ruby
jancel has quit [Remote host closed the connection]
dcunit3d has quit [Client Quit]
dcunit3d has joined #ruby
St1gma has quit [Quit: laters]
kgrz has joined #ruby
David_H_Smith has quit [Remote host closed the connection]
nofxx has joined #ruby
DTZUBDUB has joined #ruby
SilverKey has joined #ruby
tildes_ has joined #ruby
MrBusiness3 has joined #ruby
harfangk has quit [Quit: harfangk]
MrBusiness2 has quit [Ping timeout: 260 seconds]
nando294221 has joined #ruby
jaguarmagenta has joined #ruby
braincra- has joined #ruby
nando293921 has quit [Ping timeout: 260 seconds]
aberen has joined #ruby
jaguarmagenta has quit [Ping timeout: 264 seconds]
braincrash has quit [Ping timeout: 276 seconds]
rkazak has quit [Quit: Sleep.....ing....]
nando294221 has quit [Ping timeout: 276 seconds]
aberen has quit [Ping timeout: 250 seconds]
araujo_ has quit [Quit: Leaving]
pawnbox has joined #ruby
lightt has quit [Remote host closed the connection]
odigity has quit [Quit: Leaving]
Rodya_ has quit [Quit: Leaving...]
nando294021 has joined #ruby
karmatr0n has quit [Ping timeout: 240 seconds]
arescorpio has quit [Quit: Leaving.]
yatish27 has quit [Remote host closed the connection]
GinoManWorks_ has joined #ruby
certainty has joined #ruby
alfiemax has joined #ruby
GinoManWorks has quit [Ping timeout: 244 seconds]
GinoMan2440 has quit [Ping timeout: 264 seconds]
raeoks has joined #ruby
David_H_Smith has joined #ruby
sauvin has joined #ruby
SilverKey has quit [Quit: Halted.]
pawnbox has quit [Remote host closed the connection]
certainty has quit [Ping timeout: 276 seconds]
pawnbox has joined #ruby
jas02 has joined #ruby
roamingdog has joined #ruby
dionysus69 has quit [Ping timeout: 250 seconds]
LoneHerm_ has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
tubbo has joined #ruby
ur5us has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
kareeoleez has quit [Remote host closed the connection]
platzhirsch has joined #ruby
lightt has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
anisha has joined #ruby
nando294021 has quit [Quit: Lost terminal]
agit0 has quit [Quit: zzzZZZ….]
platzhirsch has quit [Ping timeout: 260 seconds]
amclain has quit [Quit: Leaving]
thamster_ has joined #ruby
thamster_ has quit [Ping timeout: 250 seconds]
dionysus69 has joined #ruby
last_staff has joined #ruby
psmolen has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Ping timeout: 264 seconds]
ruby-lang892 has joined #ruby
<ruby-lang892> hello
<ruby-lang892> anyone here uses shoes?
diasp has joined #ruby
dcunit3d has quit [Ping timeout: 264 seconds]
diasp has quit [Client Quit]
alfiemax has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
emilkarl has joined #ruby
ensyde has quit [Ping timeout: 264 seconds]
emilkarl is now known as emilkarl[away]
saneax_AFK is now known as saneax
emilkarl[away] is now known as emilkarl
psmolen has joined #ruby
djbkd has quit [Quit: My people need me...]
aberen has joined #ruby
agit0 has joined #ruby
bobbycvi has quit [Quit: ...]
aberen has quit [Ping timeout: 250 seconds]
pawnbox_ has joined #ruby
alfiemax has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
ruby-lang892 has quit [Quit: Page closed]
Wolland has joined #ruby
gagrio_ has joined #ruby
yardenbar has joined #ruby
LaT0rtue has joined #ruby
kareeoleez has joined #ruby
emilkarl has quit [Quit: Textual IRC Client: www.textualapp.com]
certainty has joined #ruby
craigp has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
platzhirsch has joined #ruby
blaxter has joined #ruby
axxyhtrx has joined #ruby
emilkarl has joined #ruby
jphase has quit [Read error: Connection reset by peer]
tildes_ has quit [Ping timeout: 252 seconds]
ponga has joined #ruby
GinoManWorks_ has quit [Read error: Connection reset by peer]
solars has joined #ruby
GinoManWorks has joined #ruby
aberen has joined #ruby
nankyokusei has joined #ruby
aberen has quit [Ping timeout: 250 seconds]
nankyokusei has quit [Ping timeout: 250 seconds]
aganov has joined #ruby
darkxploit has quit [Read error: Connection reset by peer]
blur3d has quit [Quit: blur3d]
TomyLobo has quit [Ping timeout: 252 seconds]
agit0 has quit [Ping timeout: 260 seconds]
eserror_ has quit [Ping timeout: 276 seconds]
dionysus69 has quit [Remote host closed the connection]
astrobunny has joined #ruby
c0mrad3 has joined #ruby
lxsameer has joined #ruby
codecop has joined #ruby
firstdayonthejob has joined #ruby
Spami has joined #ruby
tmtwd has quit [Ping timeout: 250 seconds]
moei has quit [Quit: Leaving...]
tjbiddle has joined #ruby
karmatr0n has joined #ruby
pawnbox has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
firstdayonthejob has quit [Ping timeout: 258 seconds]
djbkd has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox_ has quit [Ping timeout: 260 seconds]
fenre has joined #ruby
darkxploit has joined #ruby
karmatr0n has quit [Ping timeout: 250 seconds]
fenre has quit [Remote host closed the connection]
fenre has joined #ruby
TomyWork has joined #ruby
sandstrom has joined #ruby
arlek has joined #ruby
gagrio_ has quit [Quit: Leaving...]
guest2 has joined #ruby
Fredrich_ is now known as AcidCrash
guest2 has quit [Read error: Connection reset by peer]
k3rn31 has joined #ruby
jaguarmagenta has joined #ruby
der-landgraf has quit [Quit: WeeChat 1.5]
lalalaaa has joined #ruby
blockchan has joined #ruby
jaguarmagenta has quit [Ping timeout: 264 seconds]
flughafen_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
elifoster has quit [Ping timeout: 260 seconds]
platzhirsch has quit [Ping timeout: 240 seconds]
dcunit3d has joined #ruby
andikr has joined #ruby
moei has joined #ruby
pawnbox has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
Couch has joined #ruby
bweston92 has quit [Quit: Leaving]
ur5us has joined #ruby
roamingdog has quit [Remote host closed the connection]
jaruga___ has joined #ruby
hightower3 has joined #ruby
jaruga___ has quit [Client Quit]
aberen has joined #ruby
jaruga___ has joined #ruby
antgel has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
LaT0rtue has quit [Ping timeout: 244 seconds]
pawnbox has joined #ruby
hightower2 has quit [Ping timeout: 246 seconds]
fenre has quit [Remote host closed the connection]
fenre has joined #ruby
MrBusiness2 has joined #ruby
aberen has quit [Ping timeout: 250 seconds]
<shevy> ruby-lang892 I used to use it when _why was in charge
Macaveli has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
MrBusiness3 has quit [Ping timeout: 260 seconds]
djbkd has quit []
certainty has quit [Ping timeout: 260 seconds]
ur5us has quit [Remote host closed the connection]
MrBusiness2 has quit [Ping timeout: 272 seconds]
devbug has quit [Ping timeout: 272 seconds]
tmtwd has joined #ruby
Gasher has joined #ruby
n1x-nz has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Pip has joined #ruby
<Pip> Is Ruby is healthy growing?
karmatr0n has joined #ruby
n1x-nz has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
n1x-nz has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
pawnbox has quit [Remote host closed the connection]
qasaur has joined #ruby
tax has quit [Quit: Leaving]
matp has quit [Remote host closed the connection]
karmatr0n has quit [Ping timeout: 258 seconds]
sandstrom has joined #ruby
Silthias has joined #ruby
snath has quit [Ping timeout: 252 seconds]
psmolen has quit [Ping timeout: 250 seconds]
Silthias2 has joined #ruby
Silthias1 has quit [Ping timeout: 252 seconds]
CloCkWeRX has quit [Ping timeout: 244 seconds]
psmolen has joined #ruby
blaxter has quit [Quit: foo]
bweston92 has joined #ruby
Silthias has quit [Ping timeout: 240 seconds]
einarj has joined #ruby
skade has joined #ruby
charliesome has joined #ruby
<Pip> Assembly language is climbing up, jesus
einarj has quit [Read error: Connection reset by peer]
einarj has joined #ruby
pandaant has joined #ruby
lightt has quit [Quit: exit()]
<flughafen_> mronign
tmtwd has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
einarj has quit [Client Quit]
ishe_ua has joined #ruby
moei has quit [Quit: Leaving...]
qasaur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
snath has joined #ruby
Ropeney_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
platzhirsch has joined #ruby
fenre has quit [Read error: Connection reset by peer]
fenre has joined #ruby
blur3d has joined #ruby
LoneHermit has joined #ruby
Pip has left #ruby ["Leaving"]
yfeldblum has joined #ruby
DaniG2k has joined #ruby
alfiemax has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
marr has joined #ruby
LoneHermit has quit [Ping timeout: 260 seconds]
elaptics`away is now known as elaptics
harfangk has joined #ruby
Insti has quit [Remote host closed the connection]
tmi has joined #ruby
matp has joined #ruby
alfiemax has joined #ruby
blackmesa has joined #ruby
nerium has joined #ruby
CloCkWeRX has joined #ruby
mark_66 has joined #ruby
pandaant has quit [Remote host closed the connection]
nankyokusei has joined #ruby
terlar has joined #ruby
aberen has joined #ruby
kraken has joined #ruby
kraken is now known as kraken_
<kraken_> is it looked down upon to use for loops in ruby? It just makes more sense to me when working with arrays instead of each loops
<Veejay> Not looked down upon
<Veejay> But surely uncommon
<kraken_> I see
j416 has joined #ruby
<Veejay> Array are Enumerable objects
<Veejay> So you would usually the methods available on Enumerable such as each, map, reduce, select, reject, etc.
<Veejay> Why do you think for loops make "more sense"?
<Veejay> Matter of habit?
alfiemax has quit [Ping timeout: 246 seconds]
<kraken_> I think it's a matter of habit, and I'm replacing specific elements in an array at specfic points and I'm scared of using the each method for that
certainty has joined #ruby
<Veejay> Do you need a for loop for that?
<kraken_> I'm going to write a few lines of code
<kraken_> givve me a couple minutes
nankyokusei has quit [Ping timeout: 272 seconds]
<kraken_> Then can you let me know if it could be done better?
<Zarthus> Generally the #each method or an infinite loop is everything I've needed
pawnbox has quit [Remote host closed the connection]
<Zarthus> for other normal for loops there's Ranges.
<Zarthus> 10.times do ...
<kraken_> I'm using for loops with ranges such as for i in 0...nums.size
nerium has quit [Quit: nerium]
<Veejay> nums.size - 1?
joonty has joined #ruby
<Veejay> Or there will be some wonkiness
<kraken_> I think the ... discludes nums.size
<kraken_> .. would leave wonkiness, right?
<Veejay> Right
<Veejay> I read ..
<kraken_> I guess my code isn't very rubyist :(
<Veejay> It's best to be idiomatic, but it's not like it you're going to prison
<kraken_> true that
skade has quit [Quit: Textual IRC Client: www.textualapp.com]
<Veejay> You gotta try to understand why those idioms became idioms in the first place and play to the strengths of the language you're using
haxrbyte has quit [Remote host closed the connection]
<kraken_> true that
<Veejay> Enumerable#each is nice because you do not have to think in terms of bounds
haxrbyte has joined #ruby
<Veejay> It's simpler, more individual construct in my mind
moei has joined #ruby
certainty has quit [Ping timeout: 276 seconds]
<Veejay> You think of what you need to do to each element and that's it
yardenbar has quit [Quit: Leaving]
certainty has joined #ruby
<nofxx> kraken_, also, there's each.with_index, if you're worried about using the index
<kraken_> that's true
<nofxx> but, dont loop! its ugly =D
<jhass> kraken_: for is actually quit looked down upon. These days it's a bit slower than each, its scoping rules are not what you expect from other languages, polluting the outer scope (contrary to .each and companions) and in fact it just calls .each under the hood
<kraken_> hmm I see
kedare has joined #ruby
<jhass> kraken_: for index iteration you can for example do Array#each_index or 0.upto(array.size/2) do |i| and stuff like that
<kraken_> I'm going to post a code block in a sec
<kraken_> Oh I like 0.upto
CloCkWeRX has quit [Ping timeout: 240 seconds]
<Veejay> There's downto as well IIRC
<jhass> yes
Platini has quit [Ping timeout: 260 seconds]
<jhass> still do post your code though, usually there's even a higher level way of doing it than index iteration ;)
<kraken_> Alright, so I'm guessing this is not a very ruby way of doing things:
Platini has joined #ruby
ur5us has quit [Remote host closed the connection]
<jhass> ah no
<kraken_> hahahah
pawnbox has joined #ruby
<jhass> how do you initialize @answer_array?
<kraken_> it was initialized a while back
p0p0pr37 has joined #ruby
<jhass> is it... a password check?
<kraken_> @answer_array = []; @secret_word_letters.size.times { @answer_array << "_" }
<jhass> okay I see
<kraken_> It's hangman!
<kraken_> lol
<jhass> is user_input_letters guaranteed the same size as @secret_word_letters?
<Veejay> Unless the player is not very good at hangman I guess so
<Veejay> heh
karmatr0n has joined #ruby
<jhass> that's not guaranteed then ;)
<Veejay> true
<kraken_> oh I just realized I did this wrong
<kraken_> user input letters is litterally 1 letter
<kraken_> oops
<Veejay> Ah yes, *I* am actually not very good at hangman
<Veejay> You do give answers letter by ltter
<Veejay> letter
<kraken_> it works but this is superfluous as hell
houhoulis has joined #ruby
<jhass> kraken_: assuming the answer would have been yes, here's a better @answer_array = Array.new(@secret_word_letters.size) {|i| letter = @secret_word_letters[i]; user_input_letters[i] == letter ? letter : "_" }
Gasher has quit [Ping timeout: 276 seconds]
<kraken_> wow
<kraken_> I like that
<kraken_> damn
<kraken_> fail
<kraken_> thanks jhass
<jhass> but let's find a good one for the actual issue
<jhass> why is user_input_letters an array if it's only ever a single char?
<kraken_> Because it's 4 am and I need to go to bed :(
<kraken_> hahaha
<Veejay> IS THIS HOMEWORK?
<kraken_> no lol
<Veejay> It is though, right?
<kraken_> It's definitely not
<kraken_> That will be python
<jhass> mh, looking at the above, a even butter one might be @answer_letters = @secret_word_letters.map.with_index {|letter, i| user_input_letters[i] == letter ? letter : "_" }
<kraken_> I wish I got ruby homework
<jhass> *better
<kraken_> Are any colleges teaching ruby these days? UT likes hitting me with python
karmatr0n has quit [Ping timeout: 260 seconds]
<jhass> and that already gets you towards a good solution for your actual problem too ;)
<jhass> basically remove stuff from it
siovene has joined #ruby
<Veejay> That's map_with_index
blackgoat has quit [Quit: WeeChat 1.5]
<kraken_> I like it alot jhass , very succinct
<Veejay> And make sure you have a recent version of Ruby if you want to use it
<kraken_> I'm going to bed now
<jhass> Veejay: there's no map_with_index ;)
<kraken_> night all
<jhass> sleep well
kraken_ has quit [Quit: Leaving]
<Veejay> jhass: There's a .with_index?
<jhass> yes
<jhass> Enumerator#with_index
<Veejay> I thought map_with_index looked strange in the first place, but I thought it was a typo
<Veejay> So basically it will return the enumerator
<jhass> yup
<Veejay> With an index baked in
<Veejay> Nice
<Veejay> Didn't even know that existed
<jhass> if you want your brain spinning have a look at Enumerator#lazy :P
<jhass> I'll go do something else in the meantime
<Veejay> That's old too, damn
<Veejay> It's not like it's a recent addition
tvw has joined #ruby
<Veejay> I usually have no use for indices but it's nice to know
<Veejay> Thanks
<Bish> hi, how do i redefine an instance method?
<jhass> just do it
<Bish> jhass: wait!
<Bish> sure i can do def x.y ... end
<Bish> bot what if i want to want to call "y" inside my new method
<jhass> super
<jhass> it shadows it actually
<jhass> defines an instance method on the objects singleton class
<Bish> well, but that is only if i use inheritance, no?
<Bish> oh.. i get it.
<Bish> so it's like a mini inheritance
<jhass> quite full blown, every object in ruby has its own implicit anonymous class, called the singleton class
ByronJohnson has quit [Ping timeout: 244 seconds]
<Bish> >> class T; def y; puts "1"; end; end; T.new.y; def T.y; puts "2"; super; end;
<ruby[bot]> Bish: # => 1 ...check link for more (https://eval.in/584955)
Guest35736 has quit [Ping timeout: 252 seconds]
<Bish> >> class T; def y; puts "1"; end; end; T.new.y; def T.y; puts "2"; super; end;T.new.y
<ruby[bot]> Bish: # => 1 ...check link for more (https://eval.in/584956)
<Bish> jhass: yeah i knew about that
<Bish> but i can't seem to "use" it
<jhass> there you define y on the singleton class of T, not an instance of T
<jhass> same as class T; def self.y; ....
<Bish> ah yeah, im stupid
<jhass> Bish: only do this for long-lived objects, it's slow otherwise
ByronJohnson has joined #ruby
bruce_lee has joined #ruby
ByronJohnson has quit [Changing host]
ByronJohnson has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
<Bish> jhass: yah i figured
<jhass> for everything else you're better of with SimpleDelegator or the like
<Bish> well, i won't use it anyways, i was just curious
<Bish> >> class T; def y; puts "1"; end; end; T.new.y; class T; def y;puts "2"; super; end;T.new.y
<ruby[bot]> Bish: # => /tmp/execpad-8b197c48c89c/source-8b197c48c89c:7: syntax error, unexpected end-of-input, expecting ke ...check link for more (https://eval.in/584958)
<jhass> ?experiment Bish
<ruby[bot]> Bish: Please use your local irb or pry (see ?pry) to experiment, ruby[bot]'s eval functionality is for demonstration purposes only.
* Bish stops to spam
certainty has quit [Ping timeout: 244 seconds]
nuck has joined #ruby
nuck is now known as Guest23972
CloCkWeRX has joined #ruby
blockchan has quit [Ping timeout: 240 seconds]
<Bish> jhass: it doesn't seem to work the way you told me
<Bish> super: no superclass method `y'
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
ur5us has joined #ruby
jaguarmagenta has joined #ruby
der-landgraf has joined #ruby
Gasher has joined #ruby
giz|work has joined #ruby
jaguarmagenta has quit [Ping timeout: 276 seconds]
lalalaaa has quit [Quit: leaving]
norc has joined #ruby
troulouliou_div2 has joined #ruby
DTZUBDUB has quit [Ping timeout: 244 seconds]
ur5us has quit [Remote host closed the connection]
AlexJakeGreen has joined #ruby
blockchan has joined #ruby
binaryplease1 has joined #ruby
houhoulis has quit [Remote host closed the connection]
ocbtec has joined #ruby
<jhass> >> class T; def y; 1; end; end; t = T.new; def t.y; super + 2; end; [T.new.y, t.y]
<ruby[bot]> jhass: # => [1, 3] (https://eval.in/584997)
<jhass> Bish: ^
elaptics is now known as elaptics`away
<Bish> that is of a single object, yah
<Bish> but i want to change the instance method at runtime for ALL future instances
<Bish> but keep the behaviour of the old one, super-ish
<jhass> then you have to make a backup of the previous definition
<Bish> yeah exactly that is my problem
<jhass> or move it into a module and Module#prepend
<Bish> because #instance_method(:y) has no .to_proc
<Bish> since it's unbound i guess
<jhass> but a .bind and then a .call
<norc> Bish: The Ruby dispatch mechanism does not allow for what you are asking. :(
<Bish> :(
ur5us has joined #ruby
<norc> Bish: Unless you change Klass#new
<jhass> Rails introduced alias_method_chain for this kind of problem
<Bish> first thing i encountered ruby seems not be able to do
<jhass> it is
<Bish> but having to use this sounds like bad software architecture at all
<jhass> I offered you at least two solutions already
<Bish> anyways*
<Bish> both are very hacky, and i don't get that .bind one
<norc> Bish: What you could do is reimplement what Module#prepend does under the hood.
<Bish> by the way, if i include 2 modules with definition of :x, which ones wins?
isxek has joined #ruby
<jhass> the last one
skade has joined #ruby
<jhass> Bish: do it and compare .ancestors at each step
<Bish> okay cool, but i will stick with proper modelling :D
nirix has joined #ruby
<jhass> doesn't hurt to understand this part of Ruby anyway
<Bish> yep, thats why i am asking
<Bish> i nearly did it that way
<norc> Bish: Meaning if you have some kind of "proxy" class that facilitates construction of an object of type A, you could have it switch to construction of an derived type B. I think that would be the ruby way to have new methods for all future objects.
<norc> Well, Factory class I suppose.
ur5us has quit [Ping timeout: 276 seconds]
elaptics`away is now known as elaptics
mtkd has quit [Ping timeout: 272 seconds]
<Bish> well sounds like a performance issue, though
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AlexRussia has quit [Ping timeout: 252 seconds]
hightower3 has quit [Ping timeout: 276 seconds]
<Bish> pry makes writing ruby so nice
<norc> What I really want is a ruby debugger that can be attached to a running Ruby application.
<Bish> yah that'd be cool
mtkd has joined #ruby
<Bish> but actually i rarely needed that
<Bish> like 2 times in a project, where a adding a binding.pry didn't hurt
<Bish> didn't rubinius had such a thingie?
MrBusiness2 has joined #ruby
cwenner has quit [Remote host closed the connection]
<norc> Bish: Well I noticed this problem heavily with Rails.
marr has quit [Ping timeout: 258 seconds]
Macaveli has joined #ruby
mdw has joined #ruby
pepee has quit [Quit: bye $IRC]
* Bish is not a rails fan
<norc> Bish: Without you inserting a rack middleware that gives you byebug to then set breakpoints the way you need them to, there are some things you just cannot debug.
<Bish> it tells me to much what to do /opinion
hightower3 has joined #ruby
chussenot has joined #ruby
MrBusiness3 has joined #ruby
Xentil has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
skade has quit [Quit: Computer has gone to sleep.]
MrBusiness2 has quit [Ping timeout: 250 seconds]
ljames has quit []
harai has quit [Ping timeout: 264 seconds]
nofxx has quit [Ping timeout: 244 seconds]
<shevy> Bish you are funny :D
yfeldblum has quit [Ping timeout: 250 seconds]
aupadhye has quit [Ping timeout: 252 seconds]
<Bish> shevy: how?
<Bish> but thanks i think that's good
<shevy> hehe the /opinion part
<Bish> yeah well, i know flamewars, they tend to lead nowhere :D
<Bish> and basicially in #ruby there is not much other choice than rails, sure there is sinatra and such,but most people will be here because of rails
joonty has joined #ruby
isxek has quit [Ping timeout: 260 seconds]
<norc> Bish: Most people are here because they have no friends.
<gregf_> thats not entirely true ;)
DTZUBDUB has joined #ruby
<Bish> norc: are u serious?
MrBusiness3 has quit [Ping timeout: 260 seconds]
<Bish> weird nerd stereotype do you have there
<shevy> wat!
<Bish> offofftopic: can i use ensure to FORCE a method to return smth no matter what error might come?
<norc> Bish: use "ensure"
dn` has joined #ruby
<norc> Bish: just be sure the ensure block is exception safe if you really rely on it.
<Bish> norc: that's what i asked :D
<norc> What is?
<Bish> > can i use ensure to...
postmodern has quit [Quit: Leaving]
mdw_ has joined #ruby
<Bish> so i can use "ensure" without "rescue" to do that?
<norc> Bish: yes.
workmad3 has joined #ruby
<norc> Bish: Ruby guarantees that the ensure block is executed no matter what.
<norc> Short of ruby segfaulting.
<norc> Or using catch/throw to avoid it.
<Bish> so, any error will be caught in some sort of explicit rescue block?
<norc> Bish: no
<norc> Bish: begin; a; ensure; b; end
<norc> No rescue block there.
mdw__ has joined #ruby
<Bish> s/explicit/implicit
allcentu1 has joined #ruby
<lupine> ensure doesn't alter the return value of a block does it?
<norc> asm>> begin; a; ensure; b; end
<ruby[bot]> norc: I have disassembled your code, the result is at https://eval.in/585087
<norc> lupine: it does
<norc> I think..
<Bish> >> def x; throw "whoo~";"hi"; ensure "ho"; end; puts x;
<ruby[bot]> Bish: # => uncaught throw "whoo~" (UncaughtThrowError) ...check link for more (https://eval.in/585088)
<Bish> hm
<lupine> irb(main):006:0> begin ; 1 ; ensure ; 2 ; end => 1
certainty has joined #ruby
<norc> Bish: Don't confuse throw with fail/raise by the way.
<Bish> oh i didn't i just wrote that brainded
<norc> throw is basically a stripped down jump
<norc> or goto
mdw has quit [Ping timeout: 240 seconds]
<norc> Bish: look at my assembly code above
<lupine> begin ; a = 1 ; a ; ensure ; a = 2 ; end => 1
<norc> Bish: It shows that no rescue symbol is made available.
<lupine> you can't even do golang defer style return alteration
<norc> asm>> begin; a; rescue; ensure; b; end
<ruby[bot]> norc: I have disassembled your code, the result is at https://eval.in/585089
<norc> Bish: there your catch table has a rescue symbol.
<norc> (And yes exceptions essentially use catch/throw under the hood)
mdw_ has quit [Ping timeout: 258 seconds]
alfiemax has joined #ruby
emilkarl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Bish> ensure doesn't seem to change the return value :/
<Bish> wait, will ensure not be executed if there is no error?
giz|work has quit [Ping timeout: 252 seconds]
<Bish> what is actually the noun for something raised
certainty has quit [Ping timeout: 260 seconds]
<lupine> ensure is always executed
arlek has quit [Ping timeout: 250 seconds]
<norc> lupine: woah! The interaction between return and ensure is quite interesting.
<norc> lupine: yes it is.
<lupine> if you want to catch a raise error, you use rescue
<lupine> raised*
<Bish> well so if i do ensure; "hi"; end; "hi" will always be the return value?
<Bish> since that doesn't seem to work for me
<lupine> unlike ensure, rescue *can* alter the return value
<lupine> Bish: ensure doesn't alter the return value
gregf has quit [Quit: WeeChat 1.5]
<lupine> that's what the code snippets above were showing
isxek has joined #ruby
<norc> Bish: the return value is the last expression from the regular block.
<norc> Bish: Unless your ensure block invokes an explicit return.
<Bish> that sucks :/
giz|work has joined #ruby
<norc> Bish: it is actually awesome.
<lupine> begin ; 1 ; ensure ; return 2 ; end => LocalJumpError: unexpected return
<lupine> not universally applicable ^^
<lupine> just... don't try to rely on this
<Bish> well a block doesn't have return
<norc> lupine: you are probably trying to do this in a block.
<norc> >> Class.new { def f; 23; ensure; return 42; end; }.new.f
<ruby[bot]> norc: # => 42 (https://eval.in/585093)
<lupine> sure, my point was that it's not universally applicable
<norc> lupine: the point is you are trying to use return in a block. It is universally applicable. :p
<lupine> except for where it isn't, it is
<lupine> got it
<norc> mmm
<Bish> well i am overloading a sequel method "add_recipient"
ruid has joined #ruby
flashpoint9 has joined #ruby
<Bish> so i did "ret = super; doStuffThatMaybeRaisesError; ensure ret; end;"
<Bish> i wanted ensure to make SURE ret is returned
<norc> lupine: Im not sure what your point is.
<Bish> sure i can do ensure return ret; but thats ugly isn#t it
<norc> lupine: if you want to return from this, use lambda.
<norc> >> lambda{ return 1 }.call
<ruby[bot]> norc: # => 1 (https://eval.in/585095)
<Bish> norc: why is the last expression of rescue chaning the return value
<norc> Bish: because rescue is part of normal execution flow.
<Bish> and ensure isn't why?
<lupine> Bish: you want rescue, not ensure, for that
<lupine> errtime
<norc> Bish: because its special.
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
<Bish> i can't see the use case for ensure
<norc> Bish: release resources
<norc> Bish: say you open a file descriptor, in your ensure block you could release it no matter whether an exception is thrown.
<lupine> its use case is stuff like: def foo ; x = File.new( ... ) ; ensure ; x.close ; end
<Bish> but i end up writing my return value multiple times
<Bish> otherwise
<norc> Bish: no. the ensure is not for return values.
kyrose has joined #ruby
<norc> Bish: it is for clean up code.
mdw has joined #ruby
<lupine> what you're looking for is x = begin ; doAThing ; rescue ; defaultValue ; end
<Bish> yeah i understand but otherwise i am writing it multiple times
<Bish> that's not DRY isn't it
<norc> Bish: what?
<Bish> def something; ret = super; doStuff; ret; end;
<Bish> if doStuff raises an error, how do i still make sure "ret" is the return value of the method
<Bish> def something; ret = super; doStuff; ensure; ret; end; <= would be beautiful, wouldn't it?
<norc> Bish: you can use an explicit return in ensure.
<norc> >> lambda{begin; ensure; return 1; end}.call
<ruby[bot]> norc: # => 1 (https://eval.in/585097)
<Bish> yeah and that does look stupid :p
mdw__ has quit [Ping timeout: 276 seconds]
<soLucien> is there RVM for Windows
<norc> Bish: it is quite explicit about what you want to do.
<soLucien> without cygwin?
gregf has joined #ruby
<norc> Bish: You want to "ensure that you return a value"
<soLucien> or some alternatice?
<soLucien> alternative
<ddv> soLucien: use a nix for rails development
<kyrose> Hi guys, how can I call a system command directly without system method or using ``. Is there an alternative?
<Bish> norc: is it considered clean?
<Bish> soLucien: to windows? yeah :p
duoi has quit [Ping timeout: 250 seconds]
<shevy> kyrose popen probably
<norc> Bish: how is that not?
<soLucien> ddv it is not possible, as i am writing a windows-specific tool
<ddv> soLucien: oh
<Bish> norc: but occuring errors will be caught, and invisible, right?
<kyrose> shevy: thanks. Googling only giving the `` quote and system method.
<soLucien> so is there any rvm-like software that i can use to manage runtimes on Windows ?
lightt has joined #ruby
<norc> Bish: You cant have both buddy.
<soLucien> if there isn't i will simply use the system version. I have no other ruby applications
<Bish> norc: well, im asking out of curiousity
joonty has quit [Quit: This computer has gone to sleep]
<Bish> soLucien: for developement or production?
<soLucien> development
duoi has joined #ruby
<Bish> have you considered docker? might be overkill, but it would integrate seemingly i think
<norc> Bish: That is quite clean too.
<norc> soLucien: if you are serious about developing under windows, use docker indeed.
<norc> :p
<Bish> soLucien: i don't think something like that exists
<kyrose> I honestly think Ruby is good enough to do development on Windows, unless you *heavily* using gems.
harfangk has quit [Quit: harfangk]
<norc> kyrose: or use threads
<norc> ;-)
<kyrose> yup
<Bish> threads suck either way on ruby :p i thought we were d'accor on that by now
<norc> Bish: they are fine for I/O stuff...
<norc> Which is a huge portion of what threads are commonly used for.
<soLucien> i am developing a Vagrant plugin, and i need to do this https://github.com/mitchellh/vagrant/wiki/Installing-Vagrant-from-Source
<Bish> not if the I/O stuff is so heavy that it needs 100% cpu :)
koooge has quit [Quit: Leaving...]
<norc> Bish: that statement made absolutely no sense.
<kyrose> I will use Jruby on windows, since I can access the huge Java library
<norc> kyrose: Sounds like a good plan. :)
<Bish> well not absolutely but not much :D
<kyrose> aye
<norc> Bish: plus most of the time people really just need concurrency, not parallelism.
<norc> Which is why the issue about the GVL is not that huge.
blackmesa has quit [Ping timeout: 250 seconds]
<norc> If whatever you are doing is so CPU intensive that you need thread parallelism, Ruby is probably the wrong language to begin with.
DaniG2k has quit [Quit: leaving]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Bish> for me it is
mdw has quit [Quit: Sleeping Zzzzz]
<kyrose> I would try Dlang, C, C++ or even the 'not so new' Golang for concurrency. It's goroutines is awesome.
<soLucien> c# is also quite good
<soLucien> supports async-await
<Bish> i tried c#, i never felt so betrayed, because monodevelop actually looked good
<kyrose> true, if you're on windows. I'm currently on linux, using mono on linux that using .net is weird.
mdw has joined #ruby
<soLucien> i believe Microsoft made the CLR open source , and compatible with linux
<Bish> c# sucks is either way
<Bish> :D
<Bish> that's what i meant by betrayed
<kyrose> haha
<soLucien> i am very biased.
minimalism has quit [Quit: minimalism]
<Bish> i usually start by writing a socket program, like a chatserver
<Bish> 1. look at me, im c#, i call methods like java, but with capital letter to begin with
<Bish> .WhatTheFuck
<soLucien> irrelevent
<soLucien> you can call methods whatever you want
<soLucien> irrelevant *
<Bish> 2. i have to create 5 objects to make a socket connection <= broken
<kyrose> Hey please, don't start a flamewar.
* Bish goes eating either way, but he hopes he can see sharp!
<soLucien> Bish it depends on the level of abstraction you want to use
<soLucien> i am sure there's someone somewhere on github
chussenot has quit [Quit: chussenot]
<kyrose> hey soLucien, are you on Windows?
<norc> ?offtopic
<ruby[bot]> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<soLucien> who has created a SocketConnection.cs that you can use
<Bish> it depends if you are a f** masochist
<soLucien> kyrose yes
<Bish> im out :D sorry
nando293921 has joined #ruby
<kyrose> soLucien, how you experience with Ruby? I didn't touch Windows like almost 2-3 years already.
<soLucien> enjoy your meal
AlexRussia has joined #ruby
<soLucien> horrible, kyrose ..
<soLucien> i haven't tried Docker yet
nankyokusei has joined #ruby
<soLucien> but the win support is very bad
<norc> soLucien: The main problem with Windows is native extensions really.
duncannz has quit [Remote host closed the connection]
<kyrose> soLucien, the container? and yes, I always see complaints on ruby from windows users.
<norc> Aside from threads Ruby core runs just fine on Windows.
<soLucien> yes, at some point you have to interact with the OS, and i think it uses mingw
aries_liuxueyang has quit [Ping timeout: 258 seconds]
<norc> soLucien: Hah it is quite awesome that you can call the Win32 API from Ruby.. natively.
<norc> Without any gems or extensions!
<norc> That is one of the upsides.
Wolland has quit [Remote host closed the connection]
<soLucien> i like strongly typed things ..
<kyrose> norc, is ruby-inline, rice, or ffi supported on Windows? It could be easy for the users on that platform to access some Windows API.
<shevy> I thought ffi would be?
<norc> fiddle.
<kyrose> Oh yeah, ty
<shevy> lots of details of those APIs :(
<shevy> attach_function :keybd_event, [ :uchar, :uchar, :int, :pointer ], :void
nando293921 has quit [Ping timeout: 246 seconds]
nerium has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
<kyrose> it's detailed indeed
marr has joined #ruby
<soLucien> this is too low level i think
<soLucien> it's cool that you can use this API
<norc> kyrose: Though the original https://github.com/cosmo0920/win32-api is far more useful.
<kyrose> [ :uchar, :uchar, :int, :pointer ], :void <- I don't really understand that. Is this equal to void someFunction(uchar arg1, uchar arg2, int arg3, ?)
<shevy> yeah... reminds me of ruby-gnome. I like it, I use it a lot, but it also is very much a 1:1 mapping... which is not always bad, I can google for C gtk and get results :D but it's not "ideal ruby" ... things such as gtk_window_new(); in C because Gtk::Window.new ... that's about it
lightt has quit [Read error: Connection reset by peer]
<kyrose> ruby gnome is fun, and that ruby gtk2,gtk3 is actively developing in Github
nadir has quit [Remote host closed the connection]
lightt has joined #ruby
ruid has quit [Ping timeout: 260 seconds]
<soLucien> .NET has a lot nicer classes built on top of these
<kyrose> but .NET on Linux for GUI is not that great however. I really wanted to use it on Linux.
pLaToOn has joined #ruby
<pLaToOn> moin
<soLucien> i don't think it actually works on linux .. or it's a very old version
<soLucien> mono-thing
wimplash has joined #ruby
<kyrose> .NET works, for most classes I believe.
<kyrose> Hey, talking about Windows, you tried IronRuby yet?
<soLucien> no, heard it's dead
<soLucien> i wanted to
charliesome has joined #ruby
charliesome has quit [Client Quit]
<soLucien> March 13, 2011
<soLucien> IronRuby 1.1.3 is released.
<soLucien> that stopped me
karmatr0n has joined #ruby
<soLucien> from trying it out
<troulouliou_div2> his what is the recommended virtual environment for ruby : rvm or rbenv ?
wimplash has quit [Client Quit]
<kyrose> I prefer rvm
ruid has joined #ruby
ruid has quit [Changing host]
ruid has joined #ruby
blockchan has quit [Ping timeout: 260 seconds]
<troulouliou_div2> kyrose, yes using that one since ages too but i m facing a boring issue here ruby 2.2.2 won't compil due to openssl api changes and i only find how to patch wirh rbenv :)
sandstrom has quit [Quit: My computer has gone to sleep.]
<kyrose> soLucien, I don't know about .NET on Windows as much as you do, but I believe IronRuby use current .NET (installed) as the library.
<kyrose> Maybe, it's same as Jruby (using installed JRE)
<kyrose> but I could be wrong.
emilkarl has joined #ruby
karmatr0n has quit [Ping timeout: 240 seconds]
blockchan has joined #ruby
harfangk has joined #ruby
nadir has joined #ruby
<kyrose> Omg, Python and Ruby implementations are funny somehow. While JRuby is actively in development, Jython release now slower, and got a lot of bugs, while IronPython is active, IronRuby now is 'quiet' for a while.
AlexRussia has quit [Ping timeout: 272 seconds]
jtkovf has joined #ruby
fergal has joined #ruby
nerium has quit [Quit: nerium]
<fergal> hi guys, if i have “x=2”, how can i write a regex to match that x is either 0 or 2?
nerium has joined #ruby
<fergal> do i need to convert x to a string before matching?
n1x-nz has quit [Quit: Computer says no]
nerium has quit [Client Quit]
joonty has joined #ruby
arlek has joined #ruby
tlaxkit has joined #ruby
<jhass> fergal: why do you want to use a regex for this?
<kyrose> fergal: will this do ? /2/ =~ x.to_s
<fergal> jhass: it’s a simplified version of a bigger problem
<jhass> fergal: then elaborate on the bigger problem
<jhass> ?xy
<ruby[bot]> it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
<jhass> fergal: don't use apply kyrose's suggestion
<jhass> *just
<kyrose> then how to properly regex it. If it's heavy looping and conditionals, I might understand.
<fergal> kyrose: to_s was what i went with in the end, is it absolutely necessary to use to_s before trying to match against integers?
Madplatypus has quit [Quit: Connection closed for inactivity]
tesuji has joined #ruby
<jhass> fergal: the desire to match integers with regex indicates a heavy design failure tbh
tesuji has quit [Read error: Connection reset by peer]
tjbiddle has quit [Quit: tjbiddle]
<kyrose> jhass is right. For simple thing, use if else, case, when is more favorable.
aries_liuxueyang has joined #ruby
CloCkWeRX has quit [Ping timeout: 250 seconds]
certainty has joined #ruby
LoneHerm_ has joined #ruby
<kyrose> hey jhass, is there any tutorial on Ruby regex? I wanted to learn it thoroughly. The ruby-doc site did show you the way to use regex, however, is there any other source, that I can learn from? I'm using heavy system callbacks and a lot of text-to-file formatting. Really don't want to use awk just for this.
mdw has quit [Quit: Sleeping Zzzzz]
<jhass> Regexp's documentation is pretty throughout, I think it mentions about every feature
<jhass> mmh, except for possessive quantifiers and atomic groups probably
<jhass> ah atomic groups are there
<soLucien> kyrose what do you mean ruby regexp ?
<soLucien> isn't it the same as any other regexp ?
<kyrose> soLucien, almost similar to Perl 5 regex
<apeiros> soLucien: haha
<apeiros> soLucien: that's the innocent beginnings :D
<jhass> and possessive quantifiers are mentioned under repetition
<apeiros> soLucien: no, regex engines differ wildly
<soLucien> syntactically
<soLucien> right ?
<kyrose> jhass: I see
<jhass> kyrose: http://www.regular-expressions.info/ is a good general resource that's more verbose in the examples and usecases
<jhass> and has the Ruby specifics incorporated
<apeiros> soLucien: syntactically and also semantically
jmignault has joined #ruby
<kyrose> thanks jhass
LoneHerm_ has quit [Ping timeout: 250 seconds]
certainty has quit [Ping timeout: 276 seconds]
<jhass> kyrose: and for some general brain teasing https://regexcrossword.com/ is fun ;)
<soLucien> hmm what can it semantically do different than regular expressions ?
<soLucien> can it parse context-free grammars ?
<apeiros> "different than"? makes no sense
<apeiros> semantically different means same regex does something different
<apeiros> example: \w
johnDoe111 has joined #ruby
johnDoe111 has quit [Remote host closed the connection]
johnmilton has quit [Quit: Namaste]
<kyrose> hey jhass: ty so much
<jhass> soLucien: simple example, Ruby's ^ $ and . and /m behave differently than most other engines
<apeiros> and yes, I think perl's regex engine can. but that'd be because it has additional syntax, not different semantics.
<kyrose> bookmarked it
chussenot has joined #ruby
<soLucien> that's synthax .. you write \w but you can find a 1 to 1 mapping to other regexes
<apeiros> soLucien: no
<soLucien> semantics means you are able to do more things with it
<kyrose> whot
<apeiros> you should probably consult a dictionary.
TheHodge has joined #ruby
<kyrose> I believe semantic means "what it will do".
madgen has joined #ruby
johnDoe111 has joined #ruby
<kyrose> or "what it means".
<apeiros> semantics: the meaning of something. so what \w *means* is *semantical*
johnDoe111 has quit [Remote host closed the connection]
<apeiros> not syntactical. syntactical is that you use \<char> as escape sequence
<soLucien> ok, you are probably right
Hyuk has joined #ruby
<kyrose> say on linux, this is semantically same:
mdw has joined #ruby
fergal has quit [Quit: fergal]
rodfersou has joined #ruby
Hyuk has quit [Client Quit]
ruid has quit [Ping timeout: 264 seconds]
<kyrose> sed: 's/word_target/after_changed/g' file and perl5 's/word_target/after_chaned/g' file . However, not every languages do the same semantic with same syntaxes.
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
flashpoint9 has quit [Remote host closed the connection]
Hyuk has joined #ruby
<soLucien> yes you are right
Pumukel has joined #ruby
CloCkWeRX has joined #ruby
<kyrose> soLucien, do you use Ruby for fun or you really using it for sysadmin/development/website?
<soLucien> i use it for Vagrant and Puppet
Fuzai has quit [Ping timeout: 264 seconds]
<soLucien> can't say i like it too much, but i have no other options
<kyrose> I see.
<kyrose> can I ask a quick question if you don't mind, what is puppet used for? Till today, I still don't really understand about DevOps.
<lupine> configuration management
<lupine> you have N servers, you want them to be set up in a certain way, so you write puppet recipes to declare how they should be set up
<soLucien> you use puppet to bring a machine to a desired configuration in an unattended way
<lupine> puppet then tries to run them, fails, blows up and destroys everything
johnDoe111 has joined #ruby
blackmesa has joined #ruby
bobix has joined #ruby
<soLucien> lupine you test the things first in your VM lab
<lupine> and then they release a new version that doesn't run any of your old recipes
sandstrom has joined #ruby
<bobix> hi
<lupine> if you persist in trying to use it even after that, they send a specialist hitman round to stop you
<soLucien> yes that is true
<kyrose> lupine, what makes it better than writing script for the server in non dsl.
toretore has joined #ruby
Hyuk has quit [Quit: Textual IRC Client: www.textualapp.com]
<lupine> kyrose: the general principle of configuration management is excellent and easy to justify
<lupine> puppet's implementation of it is not
<soLucien> lupine which one is ?
<soLucien> chef ?
<lupine> ansible is probably the one I have least beef with
<lupine> haven't used chef in any capacity
ishe_ua has quit [Ping timeout: 264 seconds]
FastJack has quit [Remote host closed the connection]
johnDoe111 has quit [Remote host closed the connection]
<lupine> it all boils down to running scripts on servers, of course
<lupine> for large fleets you want golden images rather than this kind of thing, IMO
<soLucien> i have not used either Chef or Ansible, so i cannot tell anything about it
<soLucien> what i can say is that Ansible has very little support with Vagrant
<lupine> (by large, I guess I mean n > 50 or so)
madgen_ has joined #ruby
Vingador has joined #ruby
<lupine> eh, I've successfully used ansible with vagrant to provision 10-machine setups before for testing stuff
davedev24 has joined #ruby
<lupine> it seemed featureful and good, but I haven't touched much vagrant generally
<soLucien> ok, they are working on it, but it's experimental
<soLucien> i am sure ansible is better
<lupine> it's just "write this inventory file, run this binary"
<soLucien> after all, it's Python
<soLucien> :P
blackmesa has quit [Ping timeout: 240 seconds]
madgen has quit [Ping timeout: 260 seconds]
<Bish> re!
<soLucien> lupine i actually agree with you, it takes a huge effort to learn puppet
<soLucien> and some of the things are like WTF
<soLucien> why ?
k3rn31 has joined #ruby
<soLucien> they create like 13123 different kinds of abstractions
astrobunny has quit [Remote host closed the connection]
<lupine> the idea of it being a declarative language is a really good one, it's exactly what you need for configuration management
<lupine> they just didn't do a very good job
<soLucien> it's like they started off with something
<soLucien> then they realized they have issues
<soLucien> so they introduced new stuff to it
<soLucien> seems like they were simply putting off fires
<lupine> asterisk has similar trouble
<lupine> it has maybe 3? 4? complete configuration languages
Ropeney_ has joined #ruby
<soLucien> and ended up with 6 different programs
ByronJohnson has quit [Ping timeout: 258 seconds]
<soLucien> puppet, facter, hiera, filebucket
<soLucien> puppet-master
<lupine> sometimes a bit of upfront design goes a long way
<soLucien> and 3242343 things i have not read about
<soLucien> oh. we have a problem. let's add caching to it
<soLucien> oh. we added caching. now we need to fix cache invalidation issues
<soLucien> oh. let's fix cache invalidation. let's make nodes talk to each other .
<soLucien> oh. nodes need to talk to each other. let's write a protocol for that
<soLucien> and it goes on forever
<soLucien> they keep adding stuff to the stack .. as you said
<soLucien> the hitman is coming for you
johnDoe111 has joined #ruby
kknight has joined #ruby
<kyrose> I'm don't really know about these DevOps since at the moment I don't need to use it, but maybe, in the future I'll try it.
flashpoint9 has joined #ruby
chussenot has quit [Quit: chussenot]
johnDoe111 has quit [Remote host closed the connection]
<soLucien> i'm not into it either, but someone has to do it in my organization, and it ended up being me
millerti has joined #ruby
<kyrose> OH! I got 'apt-get install puppet'. Gonna try it now haha.
<soLucien> the alternative is spending half the time configuring VMs and servers manually
sepp2k has joined #ruby
LaT0rtue has joined #ruby
<kyrose> soLucien, hmm, what the project/org about?
<soLucien> the other half writing code
emilkarl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
certainty has joined #ruby
<kyrose> is it for Open source, or for commercial?
<soLucien> my current project is oss , but it's for a commercial task
<kyrose> you remind me to that fun cloud9.io with docker.
<kyrose> soLucien, I see.
<soLucien> once i finish it, i will release it as a Vagrant/puppet plugin
<soLucien> but the task i have to solve relies on it
itguru has joined #ruby
lightt has quit [Ping timeout: 264 seconds]
<kyrose> good luck on your task friend.
<kyrose> May Ruby force be with you.
chussenot has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
flashpoint9 has quit [Remote host closed the connection]
mtkd has quit [Ping timeout: 240 seconds]
<soLucien> thanks
madgen_ has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
johnDoe111 has joined #ruby
johnDoe111 has quit [Remote host closed the connection]
johnDoe111 has joined #ruby
ByronJohnson has joined #ruby
k3rn31 has joined #ruby
emilkarl has joined #ruby
arlek has quit [Ping timeout: 250 seconds]
madgen has joined #ruby
Fuzai has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
ldnunes has joined #ruby
last_staff1 has joined #ruby
senayar has quit [Remote host closed the connection]
jmignault has quit [Remote host closed the connection]
senayar has joined #ruby
Snowy has joined #ruby
last_staff has quit [Ping timeout: 240 seconds]
last_staff1 is now known as last_staff
Ropeney_ has quit [Quit: Textual IRC Client: www.textualapp.com]
hanmac has quit [Ping timeout: 260 seconds]
achamian has joined #ruby
mdw_ has joined #ruby
duoi has quit [Ping timeout: 250 seconds]
johnDoe111^ has joined #ruby
johnDoe111^ has quit [Remote host closed the connection]
duoi has joined #ruby
phredus has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
dionysus69 has joined #ruby
johnDoe111^ has joined #ruby
johnDoe111^ has quit [Remote host closed the connection]
certainty has quit [Ping timeout: 276 seconds]
mdw has quit [Ping timeout: 260 seconds]
bobix has quit [Remote host closed the connection]
kgrz has quit [Ping timeout: 260 seconds]
Xentil has quit [Ping timeout: 252 seconds]
CloCkWeRX has quit [Ping timeout: 252 seconds]
kyrose has quit [Quit: Leaving]
johnmilton has joined #ruby
sdothum has joined #ruby
Snowy has quit [Quit: ragequit]
kgrz has joined #ruby
johnDoe111 has quit [Ping timeout: 244 seconds]
kyrose has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hanmac has joined #ruby
jrafanie has joined #ruby
Macaveli has joined #ruby
Yiota has joined #ruby
emilkarl has quit [Read error: Connection reset by peer]
Yiota has quit [Client Quit]
Wolland has joined #ruby
itguru1 has joined #ruby
madgen_ has joined #ruby
emilkarl has joined #ruby
itguru1 has quit [Client Quit]
jrafanie has quit [Client Quit]
LaT0rtue has quit [Ping timeout: 250 seconds]
kgrz has quit [Ping timeout: 264 seconds]
itguru1 has joined #ruby
itguru1 has quit [Client Quit]
soLucien has quit [Quit: Leaving]
madgen has quit [Ping timeout: 246 seconds]
joonty has joined #ruby
itguru has quit [Ping timeout: 240 seconds]
Macaveli has quit [Ping timeout: 258 seconds]
gregf has quit [Quit: WeeChat 1.5]
Gasher has quit [Quit: Leaving]
gregf has joined #ruby
pLaToOn has quit [Read error: Connection reset by peer]
Wolland has quit [Ping timeout: 250 seconds]
chouhoulis has joined #ruby
pierrehoudyer has joined #ruby
gregf has quit [Client Quit]
gregf has joined #ruby
ruid has joined #ruby
ruid has quit [Client Quit]
roamingdog has joined #ruby
kedare_ has joined #ruby
dcunit3d has quit [Quit: WeeChat 1.4]
bobix has joined #ruby
bweston92 has quit [Read error: Connection reset by peer]
roamingdog has quit [Client Quit]
johnDoe111 has joined #ruby
kedare has quit [Ping timeout: 264 seconds]
achamian has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
zeroDi has joined #ruby
kyrose has quit [Quit: Leaving]
rubyhatesme has joined #ruby
johnDoe111^ has joined #ruby
kyrose has joined #ruby
synthroid has joined #ruby
bobix has quit []
davedev24 has quit [Remote host closed the connection]
bobix has joined #ruby
<bobix> hi
araujo_ has joined #ruby
binaryplease1 has quit [Ping timeout: 244 seconds]
Ropeney has quit [Quit: Leaving]
ElFerna has joined #ruby
araujo_ has quit [Max SendQ exceeded]
araujo_ has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
araujo_ has quit [Max SendQ exceeded]
araujo has quit [Ping timeout: 264 seconds]
nando293921 has joined #ruby
<jhass> hi
bkxd has joined #ruby
harfangk has quit [Quit: harfangk]
emilkarl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nankyokusei has joined #ruby
AlexRussia has joined #ruby
Yiota has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gheegh has joined #ruby
flashpoint9 has joined #ruby
nankyokusei has quit [Ping timeout: 258 seconds]
harfangk has joined #ruby
<Bish> hi
edwinvdgraaf has quit [Remote host closed the connection]
madgen_ has quit [Ping timeout: 264 seconds]
edwinvdgraaf has joined #ruby
k3dare has joined #ruby
madgen has joined #ruby
<toretore> hi
<norc> hi
<surrounder> hi
chussenot has quit [Quit: chussenot]
kedare_ has quit [Ping timeout: 250 seconds]
chussenot has joined #ruby
ElFerna has quit [Ping timeout: 276 seconds]
pLaToOn has joined #ruby
Ishido has joined #ruby
malconis has joined #ruby
<adaedra> ih
tk__ has joined #ruby
<jhass> traitor!
skade has joined #ruby
madgen_ has joined #ruby
* adaedra runs
LoneHermit has joined #ruby
<bhaak> I'm confused about the behavior of Array.new with a block and Array.new(size, default). from the description it sounds as if it would behave similar to Hash.new
certainty has joined #ruby
<jhass> oh, not at all
<bhaak> but it seems only to take the default for initialisation
<jhass> yes
emilkarl has joined #ruby
<adaedra> >> a = Array.new(2, ""); b = Array.new(2) { "" }; a[0] << "a"; b[0] << "a"; [a, b]
<ruby[bot]> adaedra: # => [["a", "a"], ["a", ""]] (https://eval.in/585419)
<adaedra> here is the difference
<adaedra> with a parameter, it just copies the reference
<jhass> I don't think we arrived at the difference between block and non-block yet ...
<jhass> the question was comparing to Hash.new
<bhaak> that's the same gotcha as with Hash.new but I meant something else
<adaedra> "I'm confused about the behavior of Array.new with a block and Array.new(size, default)"
<jhass> oh
madgen has quit [Ping timeout: 240 seconds]
<jhass> okay, nvm
<bhaak> a = Array.new(2, 1) => [1, 1]; a[2] => nil
* jhass grabs more food
<adaedra> :)
<norc> jhass: bring me some too.
<jhass> ?cookie norc
<ruby[bot]> norc: here's your cookie:
<adaedra> bhaak: it's just used for initialization in both cases afaik.
<bhaak> yeah, that seems to be the case but that's unfortunate
<norc> Array::new with a block is one of these things I know about but rarely see out there.
swills has joined #ruby
<adaedra> People seems to prefer n.times.map
haxrbyte has quit [Ping timeout: 260 seconds]
pierrehoudyer has quit [Ping timeout: 260 seconds]
* jhass doesn't
<elomatreb> I think it's a chicken/egg thing. People don't know what it does because they don't see it often and they don't use it often because they don't know that it does
c355e3b has joined #ruby
LoneHermit has quit [Ping timeout: 276 seconds]
certainty has quit [Ping timeout: 246 seconds]
<norc> elomatreb: For most of my problems I never needed pre-initialized arrays.
<adaedra> Array.new(n) > n.times.map
<adaedra> But people may not know about Array.new :x
<norc> elomatreb: at least not with a dynamic initialization.
certainty has joined #ruby
<elomatreb> That's probably also true :)
kknight has quit [Quit: Leaving]
alfiemax has quit [Ping timeout: 250 seconds]
<bhaak> I wanted it for tracking some counts without knowing what the maximal index would be
nhhc has joined #ruby
<adaedra> arrays are different to hashes because they fill the void on assignation
<bhaak> that's not 100% true though. i'm looking at unicode codepoints so the index is actually limited
<norc> elomatreb: Another thing is that I stopped using these compact forms of code that Ruby offers because it can easily lead to the Python effect.
<adaedra> >> a = [1]; a[10] = 2; a
<ruby[bot]> adaedra: # => [1, nil, nil, nil, nil, nil, nil, nil, nil, nil, 2] (https://eval.in/585424)
<norc> "assignation"
codecop has quit [Remote host closed the connection]
<norc> That is an amusing word adaedra. :o)
madgen has joined #ruby
karmatr0n has joined #ruby
<adaedra> norc: désolé
Skelz0r has quit [Ping timeout: 240 seconds]
<adaedra> language, all of that
<elomatreb> norc: "The Python Effect" sounds like a bad horror movie
<bhaak> I haven't benchmarked it but I would have guessed that array access is faster in arrays than in hashes
Skelz0r has joined #ruby
<norc> elomatreb: Despite similarities the language was not based on the movie!
<norc> bhaak: Unless you have: a) written code that works, b) written tests, c) profiled your code, and d) determined that this code requires optimization, you should not talk about performance.
<rubyhatesme> anyone had any success using rubymine 2016 with ruby 1.8.7
<rubyhatesme> on a vagrant box
<adaedra> dat nick.
madgen_ has quit [Ping timeout: 240 seconds]
lxsameer has quit [Quit: WeeChat 1.5]
<adaedra> 1.8.7 is long time dead now, you're aware of that?
<norc> Not a single day goes by without someone asking about 1.8.x :)
<adaedra> Necromancy, so hot right now.
<jhass> perhaps we should direct all of them to their own club
<elomatreb> Is it still the version you get when you apt-get install ruby?
<jhass> #ruby-necromancers would indeed be a good channel name I guess
<jhass> elomatreb: rarely
<jhass> in oldoldstable
<adaedra> elomatreb: depend on your system.
<rubyhatesme> i know adaedra, but it's what this site uses
<rubyhatesme> and i need to debug it
karmatr0n has quit [Ping timeout: 258 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
<elomatreb> You should really switch away from that. It doesn't even get security support anymore
<rubyhatesme> rubymine keeps saying that there are gems that havent been downloaded/installed
<rubyhatesme> but i dont know why it keeps trying to install these gems when i dont have them in my gemfile
<jhass> because they're in your Gemfile.lock ?
madgen_ has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
madgen has quit [Ping timeout: 272 seconds]
<jhass> Gemfile is your wishlist, Gemfile.lock is computed from it and what's taken action from
<norc> Or perhaps as dependencies?
<bhaak> norc: yeah, that's why I explicitly said I haven't done any benchmarks. but arrays and hashes have different big O values so there should be a difference.
duoi has quit [Ping timeout: 250 seconds]
<rubyhatesme> yeah but they're not ;/
pcboy has joined #ruby
<norc> bhaak: Hash table access is O(1)
<norc> bhaak: How is that different from an Array?
<bhaak> only on average
<jhass> no, on worst case
Wolland has joined #ruby
certainty has quit [Ping timeout: 260 seconds]
<rubyhatesme> yeah, they're not in my gemlock
<jhass> the useful comparison here is only on actual times and memory complexity
<rubyhatesme> i dont get it, is it rubymine trying to add them
<bhaak> no, on worst case, hash is O(n)
<jhass> bhaak: say you actually need like 1% of the values of the available range, the question is whether the needed time to allocate the array is less than the overhead you spent computing the hash and iterating through the bucket
<bhaak> think of a hashing algorithm that puts every item on the same slot
<elomatreb> does the version of rubymine you're using maybe require default libraries that aren't there yet in 1.8.7?
<norc> jhass: bhaak is right.
mdw_ has quit [Quit: Sleeping Zzzzz]
<elomatreb> rubyhatesme: Can you give us some of the gems it's complaining about?
<norc> jhass: In worst case all your elements are in one bucket, so you are then forced to do a linear search, which is O(n).
<rubyhatesme> yeah, one called guard
<rubyhatesme> it's downloading gems again, damn it does this every time
<jhass> mh, right
<bhaak> jhass: yes. also in the case of ruby, the dynamic re-allocation of the array needs to be considered
hutch34 has joined #ruby
duoi has joined #ruby
madgen_ has quit [Ping timeout: 240 seconds]
<elomatreb> rubyhatesme: guard is usually a development tool, production doesn't need that normally.
<norc> bhaak: but on the upside hash tables offer O(1) insertion, update, deletion.., while these operations are O(n) with an array.... on average.
<norc> bhaak: So if anything hash tables generally perform better than arrays at these tasks.
banister has joined #ruby
<rubyhatesme> elomatreb: this is to get rubymine debugger working on it
<pcboy> Hello guys. I have a small question. What's the ruby equivalent of pack("<Q", 0x7ffff7b9c0bf) in python? (gives back "\xbf\xc0\xb9\xf7\xff\x7f\x00\x00" in python)
<norc> bhaak: Though! If you had a cuckoo hash, then even worst case gives you O(1)
<elomatreb> rubyhatesme: OK, that explains that. Which version of guard is it trying to install?
<jhass> >> [0x7ffff7b9c0bf].pack("<Q") # pcboy
<ruby[bot]> jhass: # => "\xBF\xC0\xB9\xF7\xFF\x7F\x00\x00" (https://eval.in/585430)
Wolland has quit [Ping timeout: 250 seconds]
last_staff has quit [Quit: last_staff]
dionysus69 has quit [Quit: dionysus69]
<bhaak> norc: update should be O(1) as well. but I don't need the other tasks. if all you use is numbers, it's not obvious that a hash should be faster.
gamov has quit [Quit: gamov]
nando293921 has quit [Read error: Connection reset by peer]
<pcboy> jhass: Of course, I was stupidly trying to do 0x7ffff7b9c0bf.pack("<Q") before!. Thank you! =D
<norc> bhaak: faster and complexity are not necessarily the same thing.
dionysus69 has joined #ruby
nando293921 has joined #ruby
ChiefAlexander has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
<norc> bhaak: Interestingly, I even had a use case for cuckoo hashing when implementing a CORBA on a hard real time operating system.
ta_ has joined #ruby
ramortegui has joined #ruby
madgen has joined #ruby
<bhaak> norc: implementing a CORBA? that sounds nasty
benlieb has joined #ruby
<norc> *A CORBA ORB
<norc> Sorry!
<norc> :P
<bhaak> still nasty :)
<norc> It's actually quite nice.
<shevy> did not someone drop corba lately
<shevy> I can't remember anything from reddit for more than 2 days :(
symm- has joined #ruby
<norc> bhaak: The nasty part was doing some patches on the TCP stack..
<bhaak> I remember a long time ago when doing some internship, that I found out the hard way that the c++ corba implementation of a company wasn't able to talk to the java corba implementation of the same company ... m(
<norc> bhaak: then the implementation was corba conform.
<norc> *not
<norc> The whole idea of CORBA is to provide interoperability.
<rubyhatesme> elomatreb: it's trying to install erm
<rubyhatesme> one second
<bhaak> sure, I know that, you know that, the company probably knew it as well
chouhoulis has quit [Remote host closed the connection]
<rubyhatesme> it's still going with downloading gems
<bhaak> but when you have a product, you have to ship it!!!!111eleven
<rubyhatesme> damn, it does this every time.
sandstrom has joined #ruby
aegis3121 has joined #ruby
chouhoulis has joined #ruby
<elomatreb> rubyhatesme: Can you maybe gist the output of your command?
<rubyhatesme> its' not a command, it's using rubymine debugger
<norc> bhaak: Hehe. Well the use case was pretty interesting since it was for a complex network of avionics systems running on different hardware, different firmware/operating systems - CORBA facilitated integrating a simple x86 computer to collect data. :)
soc42 has joined #ruby
<rubyhatesme> i need to wait for it to finish doing it's download gems
<rubyhatesme> it does this everytime i open it up
anisha has quit [Quit: Leaving]
<norc> bhaak: And since the OS was hard realtime, constant time operations were a must.
<elomatreb> People in this channel are always talking about their avionics system/other cool/complex stuff and I'm just sitting here writing CSS
<norc> bhaak: (Hard OS will just reset and reboot if you don't stay in your timeslots)
<norc> *Hard RT OS
<rubyhatesme> how do you debug ruby / rails apps elomatreb , are you on windows?
<shevy> elomatreb lol I shall add this to my epic quote collection
millerti has joined #ruby
davedev24 has joined #ruby
<elomatreb> rubyhatesme: On Linux, sorry.
<norc> rubyhatesme: same way we would debug any application. with byebug and pry.
<norc> And error logs.
<elomatreb> Does byebug even work on 1.8.7?
<elomatreb> Also it's probably some dependency related error
<norc> elomatreb: No.
<norc> elomatreb: 2.0.0 is required.
millerti has quit [Max SendQ exceeded]
<rubyhatesme> bah, also, what does named_scope in regards to named_scope :featured, :conditions => { :featured => true } mean
<shevy> rubyhatesme lol what kind of nick did you pick there
<bhaak> norc: was it obvious from the start that corba would not have too much overhead?
Yiota has joined #ruby
kies has quit [Ping timeout: 252 seconds]
<bhaak> I mean, corba is also not the most lightweight protocol there is
<rubyhatesme> :}
<jhass> rubyhatesme: it calls the method called named_scopes
<norc> bhaak: CORBA is quite slim if you dont implement and use all the features.
<jhass> sans the s
k3rn31 has joined #ruby
<norc> bhaak: Plus another factor was that we had the CORBA experience because it was used for important reasons in 2 other related projects.
<elomatreb> I just realized 1.8.7 doesn't even have the "new" hash syntax D:
<norc> So it was just a matter of learning VxWorks 653.
<jhass> elomatreb: wait till you realize what String#[] on 1.8 returns
davedev2_ has joined #ruby
davedev24 has quit [Ping timeout: 250 seconds]
<rubyhatesme> is it basically saying that where featured => true right?
<jhass> perhaps? this isn't #RubyOnRails, not that you mentioned your rails version anyway
<lupine> rubyhatesme: there's a #rubyonrails too, which might be helpful
<norc> jhass: Didn't it return the character code of the character on that position?
<jhass> yup
<jhass> norc: and that in turn probably was the justification for the ?a literal
<norc> jhass: Why is that?
<elomatreb> I just tried to install 1.8.7 using rvm and it won't even compile
duckpuppy has joined #ruby
<jhass> given it changed from codepoint to string literal too
<jhass> 18>> "foo"[0] == ?f
<ruby[bot]> jhass: # => true (https://eval.in/585475)
<jhass> 19>> "foo"[0] == ?f
<ruby[bot]> jhass: # => true (https://eval.in/585476)
<lupine> anyway, a named scope is an SQL query generator in activerecord. that one will generate a scope with the name featured with an SQL WHERE fragment like "... AND featured = 't'"
ta__ has joined #ruby
freerobby has joined #ruby
<ponga> is 'on' reserved keyword in ruby, i see this in a few code example, but can not find what it actually is
<jhass> ponga: nope
<norc> ponga: no.
<ponga> then i guessed it right, its Cinch gem specific word then
<jhass> method even
<norc> ponga: If you want a list of keywords, refer to the source code, parse.y
mdw has joined #ruby
mdw has quit [Max SendQ exceeded]
<ponga> jhass: you are always a winner friend
mdw has joined #ruby
<norc> ponga: Those are the keywords on Ruby (trunk)
fenre has quit [Remote host closed the connection]
<ponga> thx
ta_ has quit [Ping timeout: 250 seconds]
<ponga> that's quite a small number of keywords
andikr has quit [Remote host closed the connection]
nando293921 has quit [Ping timeout: 260 seconds]
fenre has joined #ruby
cdg has joined #ruby
<norc> ponga: Actually, while I think the content is the same, this is the better place: https://github.com/ruby/ruby/blob/trunk/parse.y#L2022-L2033
<norc> (This is what the parser checks against)
mdw has quit [Client Quit]
diegoviola has joined #ruby
chussenot has quit [Quit: chussenot]
<elomatreb> My laptop really does not enjoy these large files on github :(
malconis has quit [Remote host closed the connection]
acher has joined #ruby
axxyhtrx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
glcx has joined #ruby
glcx has quit [Changing host]
glcx has joined #ruby
<jhass> right redo
malconis has joined #ruby
<jhass> always forget about that one
<jhass> anyone ever saw it used?
lxsameer has joined #ruby
<shevy> hmmm not that I can remember
<bhaak> only in tutorials
<shevy> I saw ensure... retry...
axxyhtrx has joined #ruby
<elomatreb> redo does the iteration again without checking the loop condition, right?
karmatr0n has joined #ruby
<jhass> I don't even remember
<shevy> haha
<shevy> something to add to crystal!
kgrz has joined #ruby
<norc> jhass: I can assure you that probably less than 10 people in this channel even know about the flip flop operator in ruby.
<lupine> no no no no no no no
<norc> jhass: and out of these probably only half know what it does exactly.
<jhass> :P
<jhass> flip flop probably has more usecases than redo though
triangles has quit [Ping timeout: 252 seconds]
<norc> jhass: A while ago someone pulled all gems on rubygems, and found a total of like 10 lines using flip flop.
chussenot has joined #ruby
mdw has joined #ruby
<norc> Some of which were actually not working properly.
<elomatreb> That looks really hard to read. I was constantly thinking it does something with ranges
<jhass> it's great how my last link only mentions using redo in a (while) loop and the keywords doc I linked before that only mentions redo in blocks
Guest95505 has quit [K-Lined]
Axy has joined #ruby
axxyhtrx has quit [Ping timeout: 250 seconds]
isxek has quit [Ping timeout: 250 seconds]
harai has joined #ruby
pawnbox has quit [Remote host closed the connection]
rodfersou has quit [Quit: leaving]
kgrz has quit [Ping timeout: 250 seconds]
madgen has quit [Ping timeout: 246 seconds]
pmyjavec has joined #ruby
harfangk has quit [Quit: harfangk]
<shevy> the ruby documentation is a thing of beauty
<jhass> chrisseaton: ^ if you around do that analysis for redo please :P
pawnbox has joined #ruby
rubyhatesme has quit [Ping timeout: 250 seconds]
Mia has quit [Ping timeout: 240 seconds]
madgen has joined #ruby
<chrisseaton> jhass: I can easily grep for patterns in a couple of hours
<chrisseaton> Filtering false positives is the problem - comments, string literals, etc
<adaedra> norc: I do! In theory only, but I do! :D
<chrisseaton> jhass: redo is fairly common isn't it? I could manually look at all uses of flip-flops, but I couldn't make any sense of hundreds of thousands of redos
mtkd has quit [Ping timeout: 246 seconds]
harai has quit [Ping timeout: 260 seconds]
fenre_ has joined #ruby
fenre_ has quit [Remote host closed the connection]
dcluna has joined #ruby
pawnbox has quit [Remote host closed the connection]
fenre has quit [Ping timeout: 260 seconds]
fenre_ has joined #ruby
<jhass> chrisseaton: is it? I've only seen retry used in the code I've read so far, not a single redo
<jhass> that's basically what I'm wondering, if it's used at all
mtkd has joined #ruby
<pmyjavec> Hello all, if I have a collection of Sructs, how would I go about implementing functionality similar to a hash lookup? For instance Collection['alison'] would the Stuct with name = 'alison' ?
madgen has quit [Ping timeout: 252 seconds]
<norc> jhass: But there many lots of strings and comments containing the word "redo". I think he meant it would be a lot of work to filter those out.
<pmyjavec> my collection is just including enumerable now, maybe I should inherit struct though ?
<norc> *may be
<jhass> chrisseaton: ^\s*redo(?:\s|$) should be good enough
<jhass> might catch a few heredocs or multiline comments
<adaedra> pmyjavec: def [](name); find { |o| o.name == name }; end
madgen has joined #ruby
<pmyjavec> adaedra, ok, thank you
<norc> pmyjavec: Inheritance is for when you can say: "A car is a vehicle"
<norc> Just getting access to another classes methods is a bad reason to inherit.
chouhoulis has quit [Remote host closed the connection]
<pmyjavec> Yup, you're totally right
<pmyjavec> just having built a collection for some time so little rusty
<pmyjavec> I would like my collection to act like a hash
<adaedra> defining [] is the way to go then
<pmyjavec> not necessarily be a type of hash
<adaedra> and []=, if you want to be writable
<lupine> inheritance is almost always a bad idea
<adaedra> it costs you a lot in taxes.
<pmyjavec> thanks a lot of the suggestions
ekinmur has joined #ruby
alfiemax has joined #ruby
bobix has quit []
achamian has joined #ruby
terlar has quit [Ping timeout: 272 seconds]
aufi has joined #ruby
MrBusiness3 has joined #ruby
am55 has quit [Read error: Connection reset by peer]
fenre_ has quit [Ping timeout: 244 seconds]
omphe has joined #ruby
g3funk is now known as braidn
palms has joined #ruby
SMackMyBitchUp has joined #ruby
<chrisseaton> jhass: I'll run that
<jhass> chrisseaton: I'm more interested in the real world uses anyhow, so if you catch me the first 10 that'd be nice already :)
flughafen_ has quit [Ping timeout: 240 seconds]
<SMackMyBitchUp> Hello World, I'm working on a small TCP Socket Server-client thingy, but cant figureout how I can read a "timeout". I send a command to the server but sometimes it cant send a respond, how can I check if no respond arrive in x mSecs?
certainty has joined #ruby
sergey_makagon has joined #ruby
Tristan-Speccy has joined #ruby
anisha has joined #ruby
Tristan-Speccy is now known as Guest96691
<toretore> SmackMyBitchUp: gist your code
zeroDi has quit [Quit: WeeChat 1.5]
<jhass> mmh, wth does @socket's read_timeout= come from? https://github.com/ruby/ruby/blob/trunk/lib/net/http.rb#L911
<jhass> no, not the value, the method
certainty has quit [Ping timeout: 240 seconds]
<chrisseaton> jhass: it's used a lot - first minute or so of output https://gist.github.com/chrisseaton/48629e162b42e48e7a233e4e989c139e
<toretore> SmackMyBitchUp: so you're writing a client, not a server?
<norc> Oh!
<jhass> SmackMyBitchUp: so do http://devdocs.io/ruby~2.3/io#method-i-wait_readable before you read
<norc> I am too slow. Again.
Wolland has joined #ruby
<jhass> chrisseaton: mkay, thanks!
<chrisseaton> jhass: do you want the full list?
<jhass> nah, that's good, thanks
sandstrom has quit [Quit: My computer has gone to sleep.]
banister has quit [Remote host closed the connection]
Macaveli has joined #ruby
banister has joined #ruby
dionysus70 has joined #ruby
jerematic has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
dionysus70 is now known as dionysus69
JesseH has quit [Quit: Leaving]
maya-migo has joined #ruby
Wolland has quit [Ping timeout: 250 seconds]
rodfersou has joined #ruby
JJM has joined #ruby
JJM is now known as Guest96270
emilkarl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kgrz has joined #ruby
benlieb has quit [Quit: benlieb]
jhack has joined #ruby
jhack_ has joined #ruby
symm- has quit [Ping timeout: 276 seconds]
bkxd has quit [Ping timeout: 260 seconds]
kgrz has quit [Ping timeout: 250 seconds]
raeoks has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kgrz has joined #ruby
chussenot has quit [Quit: chussenot]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jhack has quit [Ping timeout: 272 seconds]
jhack_ is now known as jhack
symm- has joined #ruby
infra-red has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
mostlybadfly has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
pLaToOn has quit [Read error: Connection reset by peer]
kgrz has quit [Ping timeout: 244 seconds]
araujo has quit [Max SendQ exceeded]
skade has quit [Quit: Computer has gone to sleep.]
soc42 has quit [Remote host closed the connection]
pawnbox has joined #ruby
hutch34 has joined #ruby
mistermocha has joined #ruby
lxsameer has quit [Ping timeout: 276 seconds]
kies has joined #ruby
Vingador has quit [Quit: http://quassel-irc.org - Bate-papo confortável em qualquer lugar.]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
Vingador has joined #ruby
frem_ has joined #ruby
JesseH has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
nankyokusei has joined #ruby
certainty has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
SilverKey has joined #ruby
harai has joined #ruby
last_staff has joined #ruby
Guest96691 is now known as Temp_spe
hutch34 has quit [Ping timeout: 250 seconds]
vondruch has quit [Remote host closed the connection]
CJKinni has joined #ruby
vondruch has joined #ruby
ChiefAlexander has joined #ruby
jas02 has quit [Quit: jas02]
nankyokusei has quit [Ping timeout: 250 seconds]
aufi has quit [Ping timeout: 250 seconds]
Temp_spe has quit [Quit: -= A click to real life biatches!!! =-]
swills has quit [Remote host closed the connection]
_Tristan-Speccy_ has joined #ruby
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
tmtwd has joined #ruby
snath has quit [Ping timeout: 260 seconds]
tk__ has quit [Quit: ばいばい]
Yiota has joined #ruby
infra-red has quit []
johnDoe111 has quit [Ping timeout: 244 seconds]
SilverKey has quit [Quit: Halted.]
cschneid has joined #ruby
ponga has quit []
lxsameer has joined #ruby
cschneid has quit [Read error: Connection reset by peer]
hutch34 has joined #ruby
chussenot has joined #ruby
swills has joined #ruby
terlar has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kaleido has left #ruby [#ruby]
cschneid has joined #ruby
banister_ has joined #ruby
norc has quit [Ping timeout: 250 seconds]
eserror_ has joined #ruby
agent_white has quit [Quit: brb]
maya-migo has quit [Ping timeout: 264 seconds]
agent_white has joined #ruby
DTZUBDUB has quit [Ping timeout: 260 seconds]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aufi has joined #ruby
aufi has quit [Remote host closed the connection]
malconis has joined #ruby
chussenot has quit [Client Quit]
fmcgeough has joined #ruby
<shevy> we keep on getting funny nicks here today
tmtwd has quit [Ping timeout: 260 seconds]
aufi has joined #ruby
diegoviola has quit [Quit: WeeChat 1.5]
babblebre has joined #ruby
polishdub has joined #ruby
sergey_makagon has quit []
harfangk has joined #ruby
rippa has joined #ruby
snath has joined #ruby
duoi has quit [Ping timeout: 250 seconds]
urbanmonk has joined #ruby
swills has quit [Ping timeout: 260 seconds]
maya-migo has joined #ruby
duoi has joined #ruby
DacHoliday has joined #ruby
_Tristan-Speccy_ is now known as Tristan-Speccy
<DacHoliday> Anyone here able to get Foundation's switches to work with a boolean on a Rails form?
swills has joined #ruby
dopamean_ has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
ash_workz has joined #ruby
<ash_workz> I need some guidance regarding installation
<toretore> ?rails DacHoliday
<ruby[bot]> DacHoliday: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<DacHoliday> thanks!
craigp has quit [Ping timeout: 240 seconds]
<ash_workz> I am trying to correct my mentality of how to approach software installation on ubuntu
DacHoliday has left #ruby [#ruby]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ash_workz> so, I want to install jekyll, and it tells me it can't install because of some load error `/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)`
<shevy> ubuntu
<shevy> you must solve the ubuntu problems in ubuntu
<ash_workz> so I looked it up, and most people say they solved it by installing ruby-dev
<shevy> yes the ubuntu guys add more work to you by removing mkmf by default
sandstrom has joined #ruby
<ash_workz> so I installed it and then it said, "you need ruby >= 2.0.0
<ash_workz> so I was like, hmm.... I upgraded the package already...
<agent_white> Mornin'
kyrose has quit [Quit: Leaving]
<shevy> you have to match the version ash_workz
<shevy> mkmf is part of ruby stdlib normally ruby-doc.org/stdlib/libdoc/mkmf/rdoc/MakeMakefile.html
<ash_workz> so I went to #ubuntu and someone found it in a snap by searching the software center (I think, they referred to it as the package manager, but then they also described a search box) for ruby and got a ruby2.0 hit
SilverKey has joined #ruby
<shevy> in my old days, I used something like "aptitude install ruby1.9.1-dev; apt-get install ruby-all-dev" but that has not been updated in years so it probably does not work
ChiefAlexander has quit [Remote host closed the connection]
<shevy> (my alias that is)
<shevy> yeah then that is probably the name
<ash_workz> firstly, that doesn't show up for me... I don't know why... when I look the *closest* thing I could see as a tip off was ruby2.0-tcltk
<ash_workz> secondly, I was thinking, "so, *should* I be searching the software center first?"
<ash_workz> anyway, that was not really helpful.
SMackMyBitchUp has quit [Ping timeout: 250 seconds]
hxegon_afk is now known as hxegon
<ash_workz> so googling `ubuntu install ruby` yields a bunch of rails hits; inevitably they suggest rbenv...
Wolland has joined #ruby
<hxegon> ash_workz: you could try googling with '-rails' in the search to get rid of the rails results
<ash_workz> hxegon: I did, that was even worse
<shevy> I remember I did that too
Guest96270 has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> I got those two commands from some random blog
SilverKey has quit [Read error: Connection reset by peer]
<shevy> or possibly two different blogs, actually
JJM has joined #ruby
<ash_workz> my point is
ChiefAlexander has joined #ruby
SilverKey has joined #ruby
JJM is now known as Guest53397
<ash_workz> I am so tired of f-ing up my system because I followed some random ass advice on the internet because I haven't adopted some clearly necessary mentality for installing software
blur3d has quit [Quit: blur3d]
d08z has joined #ruby
<shevy> yes the #ubuntu philsophy
<ash_workz> when you go to the ruby-lang.org, the first thing for installing for ubuntu says: "If you cannot compile your own Ruby, and you do not want to use a third-party tool, you can use your system’s package manager to install Ruby." ...
whiteline has quit [Ping timeout: 258 seconds]
jhack has quit [Quit: jhack]
<shevy> quite a daring comment from them
<ash_workz> which would subtly imply that you should use the package manager as a last resort
<shevy> yeah
<hxegon> ash_workz: because you should
<d08z> hi, what would be the best way to "return object method value if the method exists else return a default value", something like puts x.blah() || "default" (if x has no "blah" method)
<shevy> ash_workz a big impetus for things such as rvm rbenv chruby and all these other thingies was because of people who run on problems with debian, centos and so forth
terlar has quit [Ping timeout: 244 seconds]
Wolland has quit [Ping timeout: 250 seconds]
<hxegon> d08z: you could try rescueing NoMethodError
<hxegon> but there is probably a better way to do it
<d08z> hxegon: i should add "using only one line"
jhack has joined #ruby
glcx has quit [Quit: Quitte]
<ash_workz> shevy: yes; when I was dealing with node I was getting frustrated as well; then I went to #Node.js and someone made it clear to just install nvm and let nvm handle it
<hxegon> >> begin; 1.blah; rescue NoMethodError; "default"; end # d08z
<ruby[bot]> hxegon: # => "default" (https://eval.in/585552)
<ash_workz> shevy: and so I did; and then I made the #bash guys crap their pants with the terrible code that I got from nvm
ellistaa has joined #ruby
<d08z> hxegon: is there a more elegant way ala hash.fetch("x", "default_x")
urbanmonk has quit [Quit: urbanmonk]
<ash_workz> shevy: but that got me thinking... should I be first looking to install the defacto package manager?
vondruch has quit [Quit: Ex-Chat]
kgrz has joined #ruby
TomyWork has quit [Ping timeout: 244 seconds]
<hxegon> huh.
<shevy> ash_workz dunno, if you know how to get things to work smoothly
<hxegon> >> defined? 1.blah ? 1.blah ? "default"
<ruby[bot]> hxegon: # => /tmp/execpad-97e036b1b086/source-97e036b1b086:3: syntax error, unexpected keyword_rescue, expecting ...check link for more (https://eval.in/585554)
<shevy> on the particular distribution
aufi has quit [Ping timeout: 276 seconds]
<shevy> if you would use arch then jhass could give you a happy link with a lot of information on how to get ruby to work on arch!
Pumukel has quit [Ping timeout: 258 seconds]
<hxegon> >> defined?(1.blah) ? 1.blah : "default" # d08z
<ruby[bot]> hxegon: # => "default" (https://eval.in/585555)
<jhass> shevy: s/ruby/multiple rubies/, a single one works fine out of the box
<d08z> hxegon: ok thanks
<shevy> yes that is even better
<ash_workz> shevy: I'm on 14.04... not sure exactly what archlinux is
<SilverKey> >> 1&.blah || "default"
<hxegon> np d08z
<shevy> ash_workz multiple rubies!
<ruby[bot]> SilverKey: # => undefined method `blah' for 1:Fixnum (NoMethodError) ...check link for more (https://eval.in/585556)
d08z has quit [Quit: leaving]
<shevy> ash_workz hanmac here actually use ubuntu too and the latest ruby... but perhaps from this brightbox packages orw hatever the name was
<ash_workz> yeah, idk
<ash_workz> I don't want to think that the best practice for installing particular software is at odds with the best practices for generally installing software
synthroid has quit [Remote host closed the connection]
chouhoulis has joined #ruby
spiette has joined #ruby
<ash_workz> in any case hxegon mentioned that it's ideal (as implied by the installation page) to compile ruby
<shevy> well you should be able to get the particular ruby version to work that comes with 14.04
<shevy> is that old.... yeah
<shevy> I begin to see the cycle that leads to chruby and rbenv and rvm!
whiteline has joined #ruby
kgrz has quit [Ping timeout: 246 seconds]
SilverKey has quit [Quit: Halted.]
<ash_workz> shevy: but not just that... I mean... granted, my first choice was not to look at the software center and just use apt
toretore has quit [Ping timeout: 260 seconds]
<hxegon> ash_workz: well, I meant it's ideal to use a ruby manager like rbenv, rvm, chruby, but it's still better IMO to compile ruby than use the package manager
raeoks has joined #ruby
<hxegon> use a different ruby version, but I think those commands will work otherwise
<havenwood> Nice that Brightbox maintains Ruby packages for Ubuntu: https://www.brightbox.com/docs/ruby/ubuntu/
chopin has joined #ruby
griffindy has joined #ruby
pandaant has joined #ruby
aries_liuxueyang has quit [Quit: No Ping reply in 180 seconds.]
<ash_workz> hxegon: I hope you can appreciate my hesitation to take advice from stackoverflow
ellistaa has quit [Quit: ellistaa]
<ash_workz> hxegon: at least when it comes to getting software working
aries_liuxueyang has joined #ruby
Couch has quit [Ping timeout: 258 seconds]
vondruch has joined #ruby
<ash_workz> hxegon: the problem is that someone who gets it working by shoving things in places that weren't meant to have things shoved into them says gives their experience of how they did it and then the asker is all, "good enough for me"
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
<ash_workz> -says
jhack has quit [Quit: jhack]
SilverKey has joined #ruby
jhack has joined #ruby
<hxegon> I totally understand, just putting up a last resort type option. I would try havenwood's suggestion first ash_workz
skweek has quit [Ping timeout: 260 seconds]
<ash_workz> hxegon: yeah, it's better to have people endorse a github repo, but it's kind of only *after* that do I feel like that's an option
<hxegon> if there is a maintained version, and you seem to be hesitant to go with a manager, then that would probably be a better option. Didn't know there was a separately maintained source for ubuntu
<ash_workz> hxegon: oh, I'm not adverse to a manager
<ash_workz> hxegon: in fact
tildes_ has joined #ruby
<ash_workz> hxegon: I am thinking about possibly adopting the mentality of looking for a manager *first*
<ash_workz> :: room gasps ::
borodin has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
<ash_workz> at least for languages
certainty has quit [Ping timeout: 250 seconds]
kareeoleez has quit [Remote host closed the connection]
skweek has joined #ruby
<ash_workz> that said; hxegon , shevy : what OSes are you on?
<hxegon> OS X, but I use rbenv so kind of a moot point
TheHodge has quit [Quit: Connection closed for inactivity]
<ash_workz> hxegon: not at all
<ash_workz> s/(all)/\1 a moot point
aegis3121 has quit [Ping timeout: 276 seconds]
<hxegon> also work on deb/ubuntu/arch vms and vpss
harai has quit [Ping timeout: 264 seconds]
maya-migo has quit [Remote host closed the connection]
tatsuo has joined #ruby
<ash_workz> vms = VMs = virtual machine(s) ?
<hxegon> yeah, vpss = virtual personal servers
<ash_workz> vpss = VPSes = Virtual Private Server(s)?
<hxegon> wasn't quite sure how to pluralize that one
<shevy> ash_workz slackware right now
<ash_workz> yeah, I would do "es" since I would pronounce it "vee pee es iz"
<ash_workz> shevy: how long have you been on slackware? Also, what is slackware?
<al2o3-cr> slackware really
aegis3121 has joined #ruby
nhhc has quit [Quit: Leaving]
<shevy> ash_workz perhaps 2 years or so. it is so old that it does not change everything all the time
edwinvdgraaf has quit [Remote host closed the connection]
<hxegon> shevy: is that a 'compile everything' distro?
Tricon has joined #ruby
aganov has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 258 seconds]
craigp has joined #ruby
<shevy> hxegon hah sorta
<shevy> there are those slack packages http://www.slackpkg.org/
<shevy> it's like the archlinux of the old days!
<hxegon> I kind of miss reading aur comments
<hxegon> "200 days ago: FKSTAR says: "something broke, i'll fix it tonight.""
<shevy> ash_workz so many people are OSXers here
harfangk has quit [Quit: harfangk]
johnbat26 has joined #ruby
RobertBirnie has joined #ruby
TomyLobo has joined #ruby
Tricon_ has joined #ruby
Tricon_ has quit [Client Quit]
Tricon_ has joined #ruby
RobertBirnie has quit [Client Quit]
<ash_workz> any package manager recommends for ubuntu?
chouhoulis has quit [Remote host closed the connection]
toretore has joined #ruby
AlexJakeGreen has quit [Remote host closed the connection]
chouhoulis has joined #ruby
hobodave has joined #ruby
LoneHermit has joined #ruby
jancel has joined #ruby
yfeldblum has joined #ruby
<hxegon> like recommended packages? sl, tree, ag
kgrz has joined #ruby
Tricon has quit [Quit: Linkinus - http://linkinus.com]
LoneHermit has quit [Ping timeout: 264 seconds]
synthroid has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
diegoaguilar has joined #ruby
diegoaguilar has quit [Max SendQ exceeded]
tlaxkit has quit [Quit: ¡Adiós!]
triangles has joined #ruby
Yiota has joined #ruby
Yiota has quit [Max SendQ exceeded]
amclain has joined #ruby
vondruch has quit [Quit: Ex-Chat]
Yiota has joined #ruby
nocco has joined #ruby
saneax is now known as saneax_AFK
nocco has quit [Remote host closed the connection]
vondruch has joined #ruby
kareeoleez has joined #ruby
kareeoleez has quit [Remote host closed the connection]
noobsu has joined #ruby
kareeoleez has joined #ruby
kgrz has quit [Quit: Lost terminal]
cschneid has quit [Remote host closed the connection]
aufi has joined #ruby
giz|work has quit [Ping timeout: 252 seconds]
kith has joined #ruby
definiv has joined #ruby
Wolland has joined #ruby
tatsuo has quit [Remote host closed the connection]
definiv has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
SilverKey has quit [Quit: Halted.]
phrozen77 has joined #ruby
<ash_workz> hxegon: I mean rbenv vs rvm vs chruby etc?
k3dare has quit [Quit: Leaving]
<havenwood> ash_workz: chruby is the simplest if you just want to switch between Rubies
<havenwood> ash_workz: If you don't need to switch between Rubies you don't need a Ruby switcher.
<ash_workz> havenwood: kinda want one that'll install various
<havenwood> ash_workz: ryan bigg ubuntu chruby
Wolland has quit [Ping timeout: 250 seconds]
omphe has quit [Read error: Connection reset by peer]
<ash_workz> havenwood: does that install rubies? or just change them?
aegis3121 has quit [Ping timeout: 240 seconds]
<ash_workz> (like would I have to compile or use apt?
<ash_workz> )
<havenwood> ash_workz: ruby-install installs Rubies
<havenwood> ash_workz: like: ruby-install --latest ruby
weemsledeux has joined #ruby
<havenwood> ash_workz: or: ruby-install --latest jruby
Gasher has joined #ruby
Cohedrin has joined #ruby
<ash_workz> does rvm cover that?
RobertBirnie has joined #ruby
<havenwood> ash_workz: RVM does that and much more. It's tens of thousands of lines of more shell.
<ash_workz> hmm....
<ash_workz> I suppose maybe it was a bad idea to go ahead an install rbenv already :\
<hxegon> ash_workz: rbenv can use ruby-build too
<havenwood> ash_workz: rm -rf `rbenv root`
<ash_workz> I don't know what the implication of that feature is
Emmanuel_Chanel has quit [Ping timeout: 244 seconds]
platzhirsch has quit [Ping timeout: 250 seconds]
<hxegon> ash_workz: I mean you can use a plugin to install rub(ys,ies?,yies?)
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
aufi has quit [Ping timeout: 244 seconds]
<havenwood> ash_workz: If you just want to install a single arbitrary Ruby, check if your package manager has it and if not use ruby-install.
<hxegon> ash_workz: but I've heard lots of praise for chruby, so you are in good hands eithere way IMO.
tjbiddle has joined #ruby
<hxegon> either*
<havenwood> ash_workz: If you want to switch between Rubies with flexibility to choose package manager Rubies or those you've built yourself or installed with ruby-install, use chruby.
jhack has quit [Quit: jhack]
rodfersou is now known as rodfersou|lunch
<hxegon> havenwood: do you dislike rbenv?
<havenwood> hxegon: I do. I don't like maintaining a garden of shims. But ruby-build bothers me more. Not installing package dependencies and shipping a standalone openssl irks me.
rbr has quit [Ping timeout: 252 seconds]
<havenwood> hxegon: I've seen folk multiple times not realize ruby-build needs to be updated to get a fresh openssl, assuming it's using an updated openssl package - but it's not!
ChiefAlexander has quit [Remote host closed the connection]
<hxegon> ooh, that is kind of gross. chruby installs package deps?
terminal_ has joined #ruby
<havenwood> hxegon: Yeah, ruby-install will install openssl with your package manager if it's missing or if it's already installed use the package manager version.
<havenwood> hxegon: But ruby-build ignores the package manager openssl, and ships its own. :O
<havenwood> hxegon: And doesn't install the other deps, so folk often have to rebuild after doing so manually.
tjbiddle_ has joined #ruby
djbkd has joined #ruby
<havenwood> hxegon: It's easy to use ruby-install instead of ruby-build with rbenv, but yeah I prefer chruby.
p337rB has joined #ruby
tjbiddle has quit [Ping timeout: 244 seconds]
tjbiddle_ is now known as tjbiddle
<havenwood> hxegon: Unless you have a very strange shell, that's a time for shims.
terminal_ has quit [Client Quit]
<havenwood> There's a fish port of chruby but the csh/mksh branch has a few blockers to be merged. Most chruby users are on bash or zsh.
kgrz has joined #ruby
<havenwood> hxegon: Simplest thing that can possible work. :) This is the whole script: https://github.com/postmodern/chruby/blob/master/share/chruby/chruby.sh
<havenwood> hxegon: And for example, rbenv ships a C-ext replacement for a shell builtin, to deal with speed issues from the way they've done it.
<havenwood> Not nearly so simple. Simple made easy.
<havenwood> Also, I refuse to "groom" my environment. NO!
<havenwood> :P
fenre has joined #ruby
<hxegon> you sound like a clojure dev ;) I'll check chruby out a bit more, see if I want to switch over
<havenwood> hxegon: ;D
blockchan has quit [Ping timeout: 244 seconds]
jhack has joined #ruby
jackjackdripper has joined #ruby
danostrowski has joined #ruby
terminal_ has joined #ruby
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
certainty has joined #ruby
nobitanobi has joined #ruby
mistermocha has joined #ruby
BTRE has quit [Quit: Leaving]
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jancel has quit [Remote host closed the connection]
nankyokusei has joined #ruby
adgtl has joined #ruby
certainty has quit [Ping timeout: 258 seconds]
flashpoint9 has quit [Remote host closed the connection]
BTRE has joined #ruby
dionysus69 has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
l3ck has joined #ruby
raeoks has quit [Quit: Textual IRC Client: www.textualapp.com]
jhack has quit [Quit: jhack]
nankyokusei has quit [Ping timeout: 250 seconds]
mistermocha has quit [Read error: Connection reset by peer]
johnbat26 has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
mistermocha has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
alfiemax has quit [Ping timeout: 272 seconds]
tjbiddle has quit [Quit: tjbiddle]
antgel has quit [Ping timeout: 272 seconds]
fenre has quit [Remote host closed the connection]
pandaant has quit [Remote host closed the connection]
Silthias2 has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
fenre has joined #ruby
senayar has quit []
mikecmpbll has quit [Ping timeout: 260 seconds]
[Butch] has joined #ruby
mistermocha has joined #ruby
ekinmur has joined #ruby
fenre has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 250 seconds]
phredus has quit [Remote host closed the connection]
mleung has joined #ruby
[Butch]_ has joined #ruby
phredus has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
SilverKey has joined #ruby
[Butch] has quit [Ping timeout: 252 seconds]
[Butch]_ is now known as [Butch]
jaruga___ has quit [Quit: jaruga___]
mark_66 has quit [Remote host closed the connection]
dcluna has quit [Ping timeout: 264 seconds]
pmyjavec has quit [Ping timeout: 260 seconds]
pilne has joined #ruby
flashpoint9 has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
sumobob has joined #ruby
phredus has quit [Remote host closed the connection]
whathappens has joined #ruby
kies has quit [Ping timeout: 276 seconds]
mistermocha has quit [Remote host closed the connection]
diegoviola has joined #ruby
l3ck has quit [Quit: Bye!]
dorje_ has joined #ruby
nobitano_ has joined #ruby
nobitanobi has quit [Read error: Connection reset by peer]
dorje_ has quit [Ping timeout: 272 seconds]
<ash_workz> I am selfishly glad havenwood and hxegon had that exchange
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ekinmur has joined #ruby
govg has joined #ruby
Wolland has joined #ruby
shinnya has joined #ruby
jrafanie has joined #ruby
jaguarmagenta has joined #ruby
<ash_workz> does it matter from what directory you execute ruby-install ruby ?
blockchan has joined #ruby
wldcordeiro has joined #ruby
duoi has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
deadnull_ has joined #ruby
<kgrz> I guess not. Any specific case you're looking at?
Wolland has quit [Ping timeout: 250 seconds]
duoi has joined #ruby
plll has joined #ruby
jaguarmagenta has quit [Ping timeout: 272 seconds]
mdw has quit [Quit: Sleeping Zzzzz]
chrismytton has quit []
djbkd has quit [Remote host closed the connection]
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
sankarshanmudkav has joined #ruby
Gasher has quit [Quit: Leaving]
Azure has quit [Remote host closed the connection]
pepee has joined #ruby
achamian has quit [Remote host closed the connection]
jrafanie has joined #ruby
blackmesa has joined #ruby
plll has quit [Quit: Ex-Chat]
danostrowski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rcvalle has joined #ruby
nobitano_ has quit [Ping timeout: 244 seconds]
danostrowski has joined #ruby
SCHAAP137 has joined #ruby
nobitanobi has joined #ruby
mikecmpbll has joined #ruby
nobitanobi has quit [Remote host closed the connection]
nobitanobi has joined #ruby
skweek has quit [Ping timeout: 250 seconds]
firstdayonthejob has joined #ruby
<ash_workz> kgrz: me? um.... so I did ruby-install --latest ruby and then when I did ruby -v it said: The program 'ruby' can be found in the following packages: * ruby * ruby1.8
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SilverKey has quit [Quit: Halted.]
<ash_workz> kgrz: then I did `ruby-install ruby` and it appeared to do much more work than I anticipated... I just wanted to make sure I wasn't installing it locally everywhere
hahuang61 has joined #ruby
<ash_workz> oh
<ash_workz> from ruby-install ">>> Successfully installed ruby 2.3.1 into /home/dprocaccini/.rubies/ruby-2.3.1"
<ash_workz> can one install ruby globally?
<ash_workz> ~ le sigh ~
<hxegon> ash_workz: that should work from anywhere
<ash_workz> hxegon: well, I'm getting a message asking me to use apt
<hxegon> ash_workz: did you set chruby up?
<ash_workz> hxegon: is that necessary?
<scorphus> hey, I'm curious about the way `rvm-auto` turns on auto activation. For what I can tell, it doesn't change any file in my working dir. How does it work?
ekinmur has joined #ruby
<ash_workz> hxegon: I thought that was only if you wanted to be switching rubies a lot
certainty has joined #ruby
<ash_workz> scorphus: s/For/From
gheegh has quit [Ping timeout: 250 seconds]
<scorphus> sure! sorry
edwinvdgraaf has joined #ruby
<scorphus> you know... second language
<scorphus> :)
<ash_workz> no apology needed. I don't care really, I just thought *I'd* want to know if it were me
<scorphus> and thanks, ash_workz
<hxegon> ash_workz: well you need to switch from the system ruby to the newly installed ruby.
jancel has joined #ruby
<scorphus> ash_workz: absolutely
firstdayonthejob has quit [Quit: WeeChat 1.5]
cwenner has joined #ruby
<hxegon> ash_workz: but my understanding of chruby/ruby-install is 0, so I'm probably not the best person to help with that
aegis3121 has joined #ruby
<havenwood> ash_workz: A you did it it just installed Ruby locally in the ~/.rubies dir. You can install to /usr/local if that's in your PATH and you prefer a global install: ruby-install --latest --system ruby
aufi has joined #ruby
lxsameer has quit [Ping timeout: 264 seconds]
firstdayonthejob has joined #ruby
smathy has joined #ruby
<ash_workz> havenwood: wait wait.... so, cd to /usr/local and ruby-install --latest --system ruby?
<havenwood> ash_workz: you can run that command from any dir, just prefix: sudo
<ash_workz> havenwood: so you're just saying that's where it will install to?
certainty has quit [Ping timeout: 244 seconds]
<havenwood> ash_workz: Or chruby will autodetect the ~/.rubies install.
eserror_ has quit [Ping timeout: 252 seconds]
<havenwood> ash_workz: Yeah, as you initially ran it it installed to ~/.rubies (which isn't in your PATH).
<ash_workz> is that more ideal in your opinion?
<havenwood> ash_workz: If you want one and only one Ruby, say for a server, then I think a /usr/local install is ideal.
jancel has quit [Ping timeout: 240 seconds]
diegoviola has quit [Quit: WeeChat 1.5]
<havenwood> ash_workz: Alternatively install chruby, source chruby.sh and auto.sh and put a .ruby-version file in your $HOME dir that specifies a fuzzy match Ruby engine and version, like: ruby-2.3
eserror has joined #ruby
<havenwood> ash_workz: ^ If you want multiple Rubies to switch between.
SilverKey has joined #ruby
<havenwood> ash_workz: Then you could run `chruby jruby-9` or the like to switch to another Ruby engine/version.
<ash_workz> havenwood: sounds maybe like a better option
aufi has quit [Ping timeout: 250 seconds]
<ash_workz> in this case anyway
<havenwood> ash_workz: Yeah, chruby does all the env var niceties like properly setting GEM_HOME and GEM_PATH, etc.
<ash_workz> thanks a lot for clarifying
<havenwood> You're welcome.
<ash_workz> I particularly appreciated you drawing a contrast for /usr/local on a server.
yfeldblum has joined #ruby
plll has joined #ruby
plll has quit [Client Quit]
Pumukel has joined #ruby
plll has joined #ruby
<ash_workz> havenwood: "source chruby.sh and auto.sh and put a .ruby-version file in your $HOME dir" << is that in docs? I'd like to know that if you weren't around, I could get that info from docs
cstl has joined #ruby
mistermo_ has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
kgrz has quit [Ping timeout: 250 seconds]
plll has quit [Quit: leaving]
tvw has quit [Remote host closed the connection]
troulouliou_div2 has quit [Quit: Leaving]
mistermocha has quit [Ping timeout: 276 seconds]
Coldblackice has joined #ruby
danostrowski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
danostrowski has joined #ruby
SilverKey has quit [Quit: Halted.]
CJKinni` has joined #ruby
harai has joined #ruby
nobitanobi has quit [Remote host closed the connection]
d5sx43 has joined #ruby
mustmodify_ has joined #ruby
d5sx43 has quit [Client Quit]
<mustmodify_> can I set up the stdev logger to rotate files every day? Or do I need to do that on the OS level?
<mustmodify_> Or is there a logger gem that has the same interface and will rotate for me?
<mustmodify_> Or should I have lunch?
mustmodify_ is now known as mustmodify
<mustmodify> changed nicks
aberen has quit [Ping timeout: 272 seconds]
harai has quit [Quit: WeeChat 1.5]
polll has joined #ruby
<mustmodify> Ah, I see it accepts a "shift age". But the name is a string so I guess it chooses the new filename, rather than letting me set it to something like udp.20160607.log
ElFerna has joined #ruby
polll has left #ruby [#ruby]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
A124 has quit [Ping timeout: 250 seconds]
deadnull_ is now known as _deadnull
GinoManWorks has quit [Read error: Connection reset by peer]
codecop has joined #ruby
A124 has joined #ruby
harai has joined #ruby
johnDoe111 has joined #ruby
aryaching has joined #ruby
benzrf_ has joined #ruby
<benzrf_> yo
aberen has joined #ruby
<mustmodify> ping
rodfersou|lunch is now known as rodfersou
<havenwood> yo
<benzrf_> if i say 'module Foo::Bar::Baz; ...; end;', that saves nesting, but requires 'Foo::Bar' to already exist. if i say 'module Foo; module Bar; module Baz; ...; end; end; end;', that saves dependency stuff, but it causes tons of nesting
_deadnull is now known as deadnull_
<benzrf_> is there a good convention to avoid both complex file dependencies and too much nesting?
<mustmodify> interesting. I saw a message saying that I "cannot join channel (+i) ... but just now, after I've been here for like 10 minutes.
yfeldblum has quit [Remote host closed the connection]
SilverKey has joined #ruby
<mustmodify> benzrf_: auto-loading from ... what is it.... ActiveSupport ?
<mustmodify> ActionSupport
<mustmodify> however Rails does class-implies-filename loading.
mistermo_ has quit [Remote host closed the connection]
nando293921 has joined #ruby
blaxter has joined #ruby
aufi has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dionysus69 has joined #ruby
GreyKite has joined #ruby
Wolland has joined #ruby
<benzrf_> ech
prestorium has joined #ruby
mistermocha has joined #ruby
benzrf_ has quit [Quit: leaving]
dmr8 has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Wolland has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
aberen has quit [Ping timeout: 264 seconds]
hahuang65 has joined #ruby
mistermocha has quit [Remote host closed the connection]
palms has quit [Ping timeout: 252 seconds]
lxsameer has joined #ruby
mistermocha has joined #ruby
sergio_101 has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
ChiefAlexander has joined #ruby
mistermocha has quit [Remote host closed the connection]
prestorium has quit [Ping timeout: 276 seconds]
johnDoe111 has quit [Ping timeout: 244 seconds]
hahuang61 has joined #ruby
<GreyKite> Question: Best way to pass a variable needed to be modified by multiple instances of a method?
prestorium has joined #ruby
mistermocha has joined #ruby
hahuang65 has quit [Ping timeout: 260 seconds]
mistermocha has quit [Remote host closed the connection]
<toretore> GreyKite: code?
achamian has joined #ruby
polll has joined #ruby
minimalism has joined #ruby
blockchan has quit [Ping timeout: 258 seconds]
Dimik has joined #ruby
<GreyKite> trying to increment a variable instead of puts
CBX has joined #ruby
<GreyKite> It's not really recursion so I can't pass it back up the chain and from what I googled, I don't think I can pass a pointer like in C
smathy is now known as smathy_afk
palms has joined #ruby
achamian has quit [Ping timeout: 260 seconds]
chipotle has quit [Quit: cheerio]
polll has quit [Quit: leaving]
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
arooni has joined #ruby
ramfjord has joined #ruby
solocshaw has joined #ruby
Kneecaps has joined #ruby
allcentu1 has quit [Ping timeout: 244 seconds]
<toretore> GreyKite: if it's not recursion why are you using it?
blackmesa has joined #ruby
smathy_afk is now known as smathy
certainty has joined #ruby
<toretore> GreyKite: you basically have two options: 1) make it recursive so that each call to runner returns something meaningful, or 2) convert to using iteration
nando293921 has quit [Ping timeout: 272 seconds]
<GreyKite> because I need to know how many paths are found. It currently outputs the correct number of possible paths through a grid
sauvin has quit [Remote host closed the connection]
arlek has joined #ruby
<GreyKite> I could use iteration on a fixed size grid but calling the method this way allows me to step over a variable size grid
nankyokusei has joined #ruby
lxsameer has quit [Ping timeout: 246 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
palms has quit [Ping timeout: 252 seconds]
workmad3 has quit [Ping timeout: 250 seconds]
polll has joined #ruby
symm- has joined #ruby
<toretore> GreyKite: so the return value you're looking for is the one at `puts "Path found"`?
<GreyKite> right, I want that to instead of putting "Path found", increment a global variable that I can puts later
hutch34 has quit [Quit: WeeChat 1.5]
chipotle has joined #ruby
certainty has quit [Ping timeout: 276 seconds]
kies has joined #ruby
<toretore> GreyKite: i don't see how it could ever have more than a single result
aufi has quit [Ping timeout: 276 seconds]
<toretore> you're incrementing x and y intil they both == size
edwinvdgraaf has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 250 seconds]
SilverKey has quit [Quit: Halted.]
<GreyKite> It has a single number of possible paths per given size, but that number is different for each size. If size = 3 then it puts "Path Found" 6 times
<GreyKite> so iteration is the way to go then
<GreyKite> ?
arlek has quit [Ping timeout: 250 seconds]
jtkovf has quit [Read error: Connection reset by peer]
deadnull_ has quit [Quit: Bye]
<toretore> i don't really know because i don't understand exactly what it's supposed to do
multi_io has quit [Ping timeout: 244 seconds]
SilverKey has joined #ruby
<GreyKite> Starts at the top-left point of a grid and then steps only down or right and finds all possible paths to the bottom right point
ElFerna has quit [Ping timeout: 252 seconds]
<GreyKite> The final version is planned to not know the size of the grid
deadnull_ has joined #ruby
thoraxe has joined #ruby
polll has quit [Quit: leaving]
polll has joined #ruby
polll has quit [Client Quit]
nobitanobi has joined #ruby
edwinvdgraaf has joined #ruby
aberen has joined #ruby
n_blownapart has joined #ruby
sankarshanmudkav has quit [Quit: sankarshanmudkav]
polll has joined #ruby
sp4rrow has joined #ruby
jhack has joined #ruby
chouhoul_ has joined #ruby
multi_io has joined #ruby
GinoManWorks has joined #ruby
fenre has joined #ruby
CBX has quit [Quit: Leaving]
deadnull_ has quit [Quit: Bye]
harai54 has joined #ruby
danostrowski has quit [Ping timeout: 260 seconds]
aberen has quit [Ping timeout: 252 seconds]
[Butch]_ has joined #ruby
mistermocha has joined #ruby
chouhoulis has quit [Ping timeout: 250 seconds]
harai has quit [Ping timeout: 272 seconds]
[Butch] has quit [Ping timeout: 264 seconds]
[Butch]_ is now known as [Butch]
jancel has joined #ruby
sartan has joined #ruby
<sartan> Hi there! Can I ask RVM questions in here? sure i can. I'm trying to get a ruby-rvm script to run under cron, so i'm creating a batch wrapper. I found a document at rvm.io/integration/cron that 'implies' i can just run /home/user/.rvm/environments/PROJECTALIAS/ruby /path/to/script -- this works, but it doesn't use the default rvm gemset i have activated for that project.
<sartan> s/default/custom
fenre has quit [Remote host closed the connection]
<toretore> sartan: rvm + cron = bad time
<apeiros> toretore: saywhat? that works fine
<sartan> i doni't realy have other options. i need ruby 2.1+ (using 2.3.1) for a project but centos only ships 1.8
kith has quit [Quit: kith]
mistermocha has quit [Remote host closed the connection]
<apeiros> sartan: #rvm has been helpful in the past. iirc rvm generates a standard wrapper, plus has a command to generate gemset+ruby specific wrappers.
palms has joined #ruby
<sartan> Thanks, i'll wander on there
wrkrcoop has joined #ruby
<wrkrcoop> c10
<toretore> GreyKite: so it's definitely a recursive problem, i don't know the details of the algorithm you are going to use to say how to gather the data, but it usually takes the form of `result_so_far + recursive_call()`
<wrkrcoop> how do i get and set class variables?
<toretore> @@var = value
djbkd has quit [Remote host closed the connection]
jancel has quit [Ping timeout: 250 seconds]
<toretore> apeiros: i'm being a little dramatic; i'm sure it works fine if you know exactly how to set up the environment that rvm expects
djbkd has joined #ruby
<wrkrcoop> toretore: but how do i set it?
<toretore> but i prefer not having to deal with it
<toretore> wrkrcoop: need more context
<toretore> what are you trying to do?
sandstrom has quit [Quit: My computer has gone to sleep.]
blackmesa has quit [Ping timeout: 252 seconds]
<wrkrcoop> i have to allow an instance to set the class variable
<toretore> setting a variable is always `<varname> = <value>`
<apeiros> toretore: rvm provides a command to get you that
<wrkrcoop> or … maybe not
<GreyKite> toretore: I don't know why, but when you wrote something I had just been looking at like 5 min ago it all came together. Thanks
<wrkrcoop> nvm
LaT0rtue has joined #ruby
mistermocha has joined #ruby
dionysus69 has quit [Remote host closed the connection]
<apeiros> toretore: and the same can be said about all version switchers - unless you have one which works with pixie-dust
dionysus69 has joined #ruby
elaptics is now known as elaptics`away
CJKinni`` has joined #ruby
<toretore> apeiros: i'm sure they do, i just don't think that it's the appropriate solution to deploy a ruby application
kareeoleez has quit [Remote host closed the connection]
<apeiros> toretore: but that's a different "venue" (since you're not really making an argument) than "you have to have the setup correctly"
jrafanie has quit [Ping timeout: 260 seconds]
djbkd has quit [Ping timeout: 250 seconds]
<toretore> apeiros: this is true
<toretore> i'm just coming up with things to say so that i don't have to deal with my own deployment issues
<apeiros> :-p
<apeiros> my deployment issue is that we use capistrano and it seems to be unnecessarily convoluted. not necessarily capistranos fault.
CJKinni has quit [Ping timeout: 240 seconds]
CJKinni` has quit [Ping timeout: 250 seconds]
<apeiros> I mean we have like hundreds of lines of ruby code, not counting the libs we also use - for almost the same of what I do privately with ~20 lines of bash :-/
<apeiros> (and I hate bash for scripting)
<toretore> i gave up on that stuff years ago
palms has quit [Ping timeout: 252 seconds]
<toretore> (and now i'm struggling with ad-hoc deployment scripting that i've had to do)
blockchan has joined #ruby
<toretore> i wish i could use kubernetes already :(
dn5 is now known as Guest35287
<apeiros> I wish I had the time to dig a bit into docker. if it's what I think it is, it might be salvation
Ishido has quit [Remote host closed the connection]
<toretore> it is to a large degree
aberen has joined #ruby
giz|work has joined #ruby
choke has joined #ruby
<toretore> i'm not planning on making anything that doesn't run in a container any more
alfiemax has joined #ruby
<toretore> now if i could actually take the server part out of the picture too i'd be set
<apeiros> I dream of vm's which basically just run a single micro-service (or service, doesn't even need to be micro). no overhead. no process scheduling (or only little).
mistermocha has quit [Remote host closed the connection]
<toretore> that's what docker does
<toretore> - the vm part, because vms have overhead while docker has very little
jaguarmagenta has joined #ruby
kareeoleez has joined #ruby
Wolland has joined #ruby
mistermocha has joined #ruby
<apeiros> though afaik vm overhead can be reduced to very little with modern CPU architectures which have guest systems in mind
sankarshanmudkav has joined #ruby
<toretore> that's true, but i think docker gets us 99% of what vms do anyway
<eam> s/docker/lxc/
<eam> docker doesn't actually do anything
<toretore> docker is much more than that though
<toretore> docker does a lot of things
<eam> on its own? no
<eam> docker is a little bit of business logic and a set of interfaces and standards
<toretore> that's like saying rails doesn't do anything, ruby is the one doing all the work
<eam> file formats and so on
polll has quit [Quit: leaving]
aberen has quit [Ping timeout: 264 seconds]
<eam> no, rails has a good deal of code that's important
urbanmonk has joined #ruby
<eam> none of the functional code in docker is part of the docker project
<eam> it's all just scripts to glue together other layers -- 100% business logic
<toretore> like what? the cgroups and namespaces?
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
<eam> yeah
<eam> and it's not just "little" overhead it's actually zero
<toretore> i'm not going to use those directly to deploy my hundreds of containers
Wolland has quit [Ping timeout: 250 seconds]
jaguarmagenta has quit [Ping timeout: 250 seconds]
<eam> why not? I do
<toretore> well, kudos to you then :P
aberen has joined #ruby
mistermocha has quit [Remote host closed the connection]
<eam> hey I'm not saying it's useless to have a common format
kareeoleez has quit [Ping timeout: 264 seconds]
duoi has quit [Ping timeout: 250 seconds]
<toretore> it's imperative in most cases
<toretore> common interfaces = gold
<toretore> implementation is not very important
<eam> sure -- that's what docker does
rueben_ has joined #ruby
<eam> no, the implementation is exclusively important when the subject is performance -- which it is here
<eam> docker is irrelevant to performance
<eam> because it's not implementation
<toretore> i don't actually think performance is that imporant in most cases where docker is used
<toretore> what's imporant is isolation and ease of deployment
<eam> that's a bit of a separate question isn't it
palms has joined #ruby
<eam> you get a lot less isolation with docker vs a vm
mistermocha has joined #ruby
<eam> usually that's desirable
duoi has joined #ruby
<toretore> yes, but also much easier deployment
urbanmonk has quit [Quit: urbanmonk]
weemsledeux has joined #ruby
<toretore> actually yes, you're right about the isolation; some things you want to share in containers
aberen has quit [Ping timeout: 240 seconds]
<toretore> and the fact that you can choose allows for flexbility
chopin has quit [Read error: Connection reset by peer]
urbanmonk has joined #ruby
yqt has joined #ruby
chopin has joined #ruby
<eam> when we use lxc directly, one of the use cases is to cgroup an app but still allow it full access to share a filesystem with another app
<eam> so we can do things like partition the linux VM behavior and memory/cpu allocations, but otherwise treat it as a normal multi-tenancy machine
<toretore> which you can do with docker afaik?
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<eam> oh probably. part of why we're not using docker is because we've been doing this long before docker existed
<toretore> i do think docker is trying to do a lot of things that it shouldn't necessarily concern itself with
<toretore> like trying to be systemd
<eam> both seem to be suffering from lack of architectural guidance
<eam> and feature/scope creep
<toretore> docker maybe, but i think systemd is doing well
<eam> oh man
mistermocha has quit [Ping timeout: 264 seconds]
<shevy> hehe
<toretore> i know lots of people disagree, but i think creating some order in the linux world is a good thing
tildes_ has quit [Ping timeout: 252 seconds]
djbkd has joined #ruby
<shevy> yep a lot of people disagree there
<eam> it's not that the idea of work in that area doesn't have merit -- but that's a separate question from whether the work is constructive
<toretore> their taking away are freedoms
<eam> well, it suffers from a functionally poor design, lack of oversight, various fundamental misunderstandings, security flubs
<toretore> examples?
<eam> but sure, there's a problem somewhere in that domain that needs solving
<eam> toretore: well, it could've just not been init, for one
<eam> the RC system is a different thing from the init system
<toretore> how are they different?
<eam> init is pid 1, it's the parent of everything, it reaps zombies, it starts RC, and it needs to be super simple and stable
duoi has quit [Ping timeout: 250 seconds]
<eam> the RC system is /etc/rc and takes several forms across various unixes. It starts daemons and is messy and complex
danostrowski has joined #ruby
<eam> most people mean rc when they say init, because they don't really understand how it all works together
<eam> rc replacements have existed for decades
<eam> the old way of doing this was modular -- systemd kills that
<eam> and without any good reason
<eam> in terms of fundamental misunderstandings, here's a nice example: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=825394
<toretore> so what you're saying is systemd shouldn't be pid 1?
<eam> toretore: yes - few would object if they'd make it an also-have
<toretore> isn't process/service supervision intrinsic to init too?
<eam> nope
<shevy> systemd tries to be all the things, more than just an init replacement
<eam> toretore: look at runit/daemontools as a counter example
duoi has joined #ruby
<toretore> yes i heard about the bug you mentioned, and i don't see it as a bug
<eam> lol
aufi has joined #ruby
<toretore> just because "this is the way it's always been" doesn't mean it is therefore the right way and has to stay that way forever
<GreyKite> I like *BSD's way of doing it
whathapp_ has joined #ruby
<eam> toretore: so you think you should require root access to run a program after logging out? I think you're maybe not thinking this through
<shevy> just because "we need something new" doesn't mean it has to be the right way and has to change the old way
<jhass> can somebody please ask a ruby question so I can ?offtopic y'all?
whathapp_ has quit [Read error: Connection reset by peer]
<eam> jhass: are there any init replacements written in ruby?
<eam> in rails, perchance?
<GreyKite> I could ask my question again
<GreyKite> I thought I had but i guess not
<toretore> eam: i think it's functionality that's missing from systemd
whathapp_ has joined #ruby
whathapp_ has quit [Read error: Connection reset by peer]
certainty has joined #ruby
<shevy> :D
sandstrom has joined #ruby
whathapp_ has joined #ruby
moos3 has joined #ruby
<shevy> perhaps they will embed mruby!
<toretore> eam: fwiw, and this kind of goes back to our "interface vs implementation" from above, i think that room will be made to replace components
aberen has joined #ruby
whathappens has quit [Ping timeout: 252 seconds]
<eam> something's going to change, that's for sure
<GreyKite> Ok yeah I got a ruby question: How does ruby handle two different methods coming back out of recursion to the same place?
<toretore> eam: and also, i admit to seeing this more from a common user's perspective and not a bofh that's been administering unix systems since i was 5
<eam> toretore: the changes make a lot of sense for a personal single-user desktop computer
<jhass> there we go!
certainty has quit [Ping timeout: 252 seconds]
<shevy> a ruby question
<jhass> ?offtopic eam toretore shevy
<ruby[bot]> eam: this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
johnmilton has quit [Remote host closed the connection]
<shevy> jhass but ... mruby!
<eam> m'ruby *tips hat*
duckpuppy has quit [Ping timeout: 276 seconds]
<shevy> we have a ruby question lingering in the room now
<jhass> GreyKite: not sure I follow your question though, got an example?
duckpuppy has joined #ruby
aberen has quit [Ping timeout: 244 seconds]
<toretore> GreyKite: in general, there is no difference between how recursion works in ruby and other languages
k3rn31 has joined #ruby
<GreyKite> So I have two method that come back to the same place but I'm not sure how the timing works out on resolution
<jhass> I only see one method
<toretore> there is no timing issue as long as these methods are being run synchronously, which they are in this example
<jhass> do you mean the two recursive calls in line 17?
<GreyKite> yeah that's what I meant
johnmilton has joined #ruby
<GreyKite> two instances of the same method
<toretore> GreyKite: all your recursive calls form a tree with a single common ancestor
<jhass> GreyKite: let me shuffle it around a bit real quick
rueben_ has quit [Quit: Ex-Chat]
<GreyKite> so it would hang around at each split for both calls to resolve?
rueben_ has joined #ruby
<jhass> https://p.jhass.eu/2m.rb so this is still equivalent, clear?
dmr8 has quit [Read error: Connection reset by peer]
<jhass> first the call in now line 4 has to return, including all recursive calls it makes itself, then the same for the one in line 5
zeroDi has joined #ruby
<jhass> GreyKite: another way is to see + as a method call (it actually is in fact), so num.+(runner(...).+(runner(...))
<jhass> as with every other method call, the expressions passed to it as argument are resolved first
lightt has joined #ruby
<jhass> eh
<GreyKite> so then puts sum at the end will add up all the found paths?
<jhass> num.+(runner(...)).+(runner(...)) of course, forgot a paren
polishdub has quit [Read error: Connection reset by peer]
<jhass> not sure what you mean
<GreyKite> Right. it currently has puts num but the sum is stored in sum
dhollinger has joined #ruby
<jhass> well right you have no sensical return value atm
<jhass> puts returns nil so except for the else case your method will always return nil
cdg has quit [Remote host closed the connection]
<jhass> perhaps you meant something like https://p.jhass.eu/2n.rb
duckpuppy has quit [Ping timeout: 264 seconds]
<jhass> (I didn't try to understand what problem the code is supposed to solve yet)
<GreyKite> I don't blame you, I'm bad at explaining and coding
<GreyKite> Do I even need the num in the method call?
johnmilton has quit [Remote host closed the connection]
aryaching has quit [Quit: Bye]
allcentu1 has joined #ruby
<jhass> that would go into the problem domain to solve
rueben_ has quit [Quit: Ex-Chat]
aberen has joined #ruby
<jhass> but to make something clear, modifying num won't change it for the parent call (the iteration that invoked the current one)
polishdub has joined #ruby
<jhass> and num + isn't modifying it anyway
rueben_ has joined #ruby
haxrbyte has joined #ruby
harai54 has quit [Ping timeout: 244 seconds]
<jhass> did you look at and understood the classic recursive fibonacci and/or factorial implementations yet?
<GreyKite> Yeah
<GreyKite> If I've got a single line going down, then following that single line back up, it makes more sense to me
Keltia has quit [Changing host]
Keltia has joined #ruby
<GreyKite> my problem comes in when it comes to how the multiple instances interact
<jhass> there are no multiple instances
haxrbyte has quit [Remote host closed the connection]
SilverKey has quit [Quit: Halted.]
<GreyKite> Then therein lies my fundemental misunderstanding
aberen has quit [Ping timeout: 240 seconds]
<GreyKite> or misuse of a word
haxrbyte has joined #ruby
<jhass> think back to fibonacci
MrBusiness2 has joined #ruby
rueben_ has quit [Read error: Connection reset by peer]
<jhass> it too called itself multiple times
<jhass> but neither there nor here it happens at the same time
aberen has joined #ruby
<jhass> first the first call happens, only when that one returns the second one starts executing
saneax_AFK is now known as saneax
rueben_ has joined #ruby
<GreyKite> so in the line sum = runner + runner, it would resolve the last runner, then start the + method, then the first runner, then the = operation
mtkd has quit [Ping timeout: 260 seconds]
joenuts_ has quit [Quit: Page closed]
blackmesa has joined #ruby
<jhass> right path, just details wrong
synthroid has quit []
<jhass> recall what I said about .+ being a method
<jhass> say I would write sum.foo(runner).foo(runner)
MrBusiness3 has quit [Ping timeout: 250 seconds]
flashpoint9 has quit [Ping timeout: 250 seconds]
mtkd has joined #ruby
<jhass> how would it run?
<GreyKite> last runner, last foo, first runner, first foo, sum?
cschneid has joined #ruby
<jhass> well that's what you said and then I started all this :P
chopin has quit [Read error: Connection reset by peer]
<jhass> no, execution order is still left to right
<GreyKite> Right
SilverKey has joined #ruby
<jhass> but to pass an argument to a method you need to know its value
<GreyKite> OK
p337rB has quit [Ping timeout: 240 seconds]
chopin has joined #ruby
aberen has quit [Ping timeout: 264 seconds]
[Butch] has quit [Read error: No route to host]
blackmesa has quit [Ping timeout: 240 seconds]
<jhass> so the first runner is run, the result of that is passed to foo (or +) that then returns a new object/value. On that the second foo (+) is run, which too needs an argument, That argument is the second runner, which is thus fully run and its return value is passed to the second foo (+).
flashpoint9 has joined #ruby
chopin has quit [Read error: Connection reset by peer]
<GreyKite> Ok got it
[Butch] has joined #ruby
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
<GreyKite> so sum looks at first foo, first foo says I need runner, runner does his thing, then sum asks if we are ready yet, and second foo says I need runner2, so runner 2 does his thing, then sum asks how things are going and first_foo says I have runner, second_foo says I have runner2, and sum does it's thing
wrkrcoop has quit [Quit: wrkrcoop]
rueben_ has quit [Quit: Ex-Chat]
<shevy> have you folks still not answered the ruby question
rueben_ has joined #ruby
Pumukel has quit [Quit: ChatZilla 0.9.92 [Firefox 46.0.1/20160502172042]]
<GreyKite> I'm gonna call it done if you want to start talking about systemd again
wrkrcoop has joined #ruby
DTZUBDUB has joined #ruby
<shevy> I did not mention the s word!
danostrowski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SilverKey has quit [Quit: Halted.]
chopin has joined #ruby
Vingador has quit [Ping timeout: 260 seconds]
Wolland has joined #ruby
<ash_workz> havenwood: do you have to put a .ruby-version file in your $HOME dir that specifies a fuzzy match for each version of ruby you want to switch between?
kareeoleez has joined #ruby
aberen has joined #ruby
<havenwood> ash_workz: No, that's just to set a default other than your system Ruby.
jhack has quit [Quit: jhack]
karmatr0n has quit [Ping timeout: 244 seconds]
<mustmodify> I have an app that gets some images from another app. The second app requires authentication. I don't want to have to login to the other app to get those images. But neither do I want to leave it open to the interwebz. Are there any best practices for inter-app authentication? I'm guessing just create a long string and keep it in an env variable on production servers for both machines?
<mustmodify> sorry, both apps?
<havenwood> ash_workz: To switch yourself you can do `chruby ruby-2.3` or `chruby ruby-2.2` or `chruby jruby` or whatever.
dionysus69 has quit [Remote host closed the connection]
<mustmodify> updating that seems like a pain but I don't know that it would need updating except in rare circumstances.
<havenwood> mustmodify: What kind of app? Rack, Sinatra, Rails or other?
dionysus69 has joined #ruby
<mustmodify> Both Rails, though I have a sinatra app and a rack app that may also need cross-app auth at some point.
<havenwood> mustmodify: JWT is nice these days.
<ash_workz> sorry, it took so long for me to respond, I got distracted by this concept in bash: y='x=3,y=2,5'; ((x=y-y+x)); # x=6, y=3
<havenwood> mustmodify: I've been enjoying reading through Rodauth code: http://rodauth.jeremyevans.net
cdg has joined #ruby
mdw has joined #ruby
danostrowski has joined #ruby
MrBusiness3 has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Wolland has quit [Ping timeout: 250 seconds]
cdg has quit [Read error: Connection reset by peer]
kareeoleez has quit [Ping timeout: 276 seconds]
<havenwood> mustmodify: I dunno if you're familiar with JWTs but here's an insecure plain text JWT in a few lines of Ruby just for fun: https://gist.github.com/havenwood/3b98192d6122a4c9b1a4
<ash_workz> havenwood: so supposing I want just run the latest version of ruby, whatever that is, I would just do chruby ruby ?
sp4rrow has joined #ruby
<mustmodify> Oh blah. Just building this idea in my head and realized an important requirement. Or ... aspect. Currently the URL for the image points to the other app. So any authentication would either have to be "in public and we don't care" or some kind of public-private situation.
<havenwood> ash_workz: yup: chruby ruby
aberen has quit [Ping timeout: 272 seconds]
cdg has joined #ruby
<ash_workz> command not found
<havenwood> ash_workz: Or add `ruby` to a .ruby-version file in your $HOME or root dir.
<havenwood> ash_workz: Restart your terminal or source your dotfile.
<mustmodify> ash_workz: `which chruby`
<ash_workz> havenwood: oh that worked
<havenwood> ash_workz: source ~/.bashrc # or whatever dotfile you put chruby.sh and auto.sh in
<jhass> GreyKite: https://p.jhass.eu/2o.rb
weemsledeux has joined #ruby
<ash_workz> I didn't know that's how you reset that
[Butch] has quit [Read error: No route to host]
babblebre has joined #ruby
bumao has joined #ruby
MrBusiness2 has quit [Ping timeout: 258 seconds]
<ash_workz> havenwood: does ruby need to be enclosed in back-ticks?
duckpuppy has joined #ruby
<havenwood> ash_workz: that's just meaning "here's the code part"
<ash_workz> right, okay
<havenwood> ash_workz: echo ruby > ~/.ruby-version
<ash_workz> so chruby doesn't output an error
<ash_workz> but gem install -- gem: command not found
<GreyKite> jhass: Thanks, that makes more sense to me
<havenwood> ash_workz: If you type just `chruby` what's the return value?
kareeoleez has joined #ruby
<ash_workz> havenwood: * ruby-2.3.1
<havenwood> ash_workz: Perfect.
<havenwood> ash_workz: and what output for?: command -v ruby
<ash_workz> ~/.rubies/ruby-2.3.1/bin/ruby
wrkrcoop has quit [Quit: wrkrcoop]
<havenwood> ash_workz: great. how about?: command -v gem
<ash_workz> ~/.rubies/ruby-2.3.1/bin/gem
dionysus69 has quit [Ping timeout: 240 seconds]
dorje has joined #ruby
achamian has joined #ruby
<havenwood> nice
kareeole_ has joined #ruby
<ash_workz> oh
<ash_workz> doesn't play nice with sudo?
<havenwood> ash_workz: Nope, sudo drops env.
<ash_workz> I see
ur5us has joined #ruby
<havenwood> ash_workz: Check your $PATH, $GEM_HOME, $GEM_PATH etc with and without sudo.
<havenwood> ash_workz: With a local Ruby install like that though you should be good without sudo. :)
polll has joined #ruby
[Butch] has joined #ruby
polll has quit [Client Quit]
<ash_workz> :)
<ash_workz> thanks havenwood
<havenwood> ash_workz: you're welcome
mute has joined #ruby
duckpupp1 has joined #ruby
LinuxPenT has quit [Ping timeout: 250 seconds]
duckpuppy has quit [Ping timeout: 276 seconds]
<jhass> GreyKite: cool anyway, since I wrote it up https://p.jhass.eu/2p.rb
Madplatypus has joined #ruby
kareeoleez has quit [Ping timeout: 260 seconds]
duoi has quit [Ping timeout: 258 seconds]
<mute> how would one remove a trailing substring without side effect? a="foobar" i want b="foo", removing trailing bar
<adaedra> >> "foobar".sub(/bar\z/, '')
<havenwood> mute: b = a.chomp 'bar'
<ruby[bot]> adaedra: # => "foo" (https://eval.in/585687)
achamian has quit [Ping timeout: 260 seconds]
<adaedra> Ah yes, there's chomp too :>
<havenwood> chomp chomp nom
kareeole_ has quit [Ping timeout: 258 seconds]
<jhass> >> b = "foobar".chop.chop.chop; b # ignore me
<ruby[bot]> jhass: # => "foo" (https://eval.in/585688)
duoi has joined #ruby
<sartan> hi guys - looking for a bit of advise here. i'm using yaml to import a config file - working great. i'd like to search if certain information exists properly in the file without having to write up a long, ugly, complicated k,v test. https://gist.github.com/anonymous/0782eff1fb232480adbff584230b0a17
<sartan> this could be really ugly
<mustmodify> havenwood: So currently the images are at /clouds/heart_rate.svg -- so I would encode the parameters OAuth style and pass that along as a token?
<mustmodify> sartan: `grep username: xyz` ?
<sartan> specifically i need to check all of the attributes at hte same time
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
<jhass> well then the answer is no
<jhass> I find that fairly concise btw
<sartan> I'm probably not asking this very well but is there a better way to test this rather than kludging out a long accounts.include? {"value"=>test, "value2"->test2} construct?
<toretore> sartan: how do you suppose you would check for 3 attributes without actually writing out those 3 attributes?
Yiota has quit [Read error: Connection reset by peer]
duncannz has joined #ruby
<jhass> sartan: if you could make up the syntax, what would you dream look like?
duncannz has quit [Max SendQ exceeded]
<jhass> *dream solution
<toretore> sartan: in other words: what you're doing is fine
Yiota has joined #ruby
<sartan> okay. this is fine. thank you
<sartan> not familiar with ruby so just catching up here
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
certainty has joined #ruby
<toretore> sartan, i would do: accounts.any?{|a| a['domain'] == 'CONTOSO' && a['username'] == 'Administrator' && a['description'] == 'Some user' }
jackjackdripper has joined #ruby
yatish27 has joined #ruby
<toretore> this makes it explicit, and is resilient to additional attributes being added to the account structure
<sartan> right. :) would the .include work if values maybe did not account for extra attributes?
<sartan> -^ right.. that was really the root of what i was asking but i didn't know how to say it
<sartan> .any seems more reslient than .include in this case. Thank you very much toretore
johnmilton has joined #ruby
karmatr0n has joined #ruby
tercenya has quit []
<mustmodify> havenwood: did you see my Q?
nankyokusei has joined #ruby
nobitanobi has quit [Ping timeout: 246 seconds]
sergio_101 has quit [Ping timeout: 258 seconds]
dorje has quit [Quit: dorje]
duderonomy has joined #ruby
swills has quit [Ping timeout: 264 seconds]
juanfra has quit [Quit: juanfra]
allcentury has joined #ruby
allcentu1 has quit [Read error: No route to host]
LinuxPenT has joined #ruby
<havenwood> mustmodify: yeah, just distracted with pesky work - maybe signed url for the image and authenticate requesting token? warning my brain is mush at the moment and i haven't had time to actually read your question carefully!
certainty has quit [Ping timeout: 250 seconds]
cdg has quit [Remote host closed the connection]
<mustmodify> np
flashpoint9 has quit [Remote host closed the connection]
wrkrcoop has joined #ruby
<havenwood> mustmodify: not sure if my ramblings are on the right track at all! i'll reread and ponder in a few. :)
tercenya has joined #ruby
johnmilton has quit [Ping timeout: 252 seconds]
dorje has joined #ruby
<mustmodify> no, I'll read your gist in more detail. Go back to work. :P
nankyokusei has quit [Ping timeout: 244 seconds]
Spami has quit [Quit: Leaving]
kareeoleez has joined #ruby
dorje has quit [Client Quit]
bumao has quit [Quit: Textual IRC Client: www.textualapp.com]
bumao has joined #ruby
swills has joined #ruby
diegoviola has joined #ruby
saneax is now known as saneax_AFK
cajone has quit [Remote host closed the connection]
blackmesa has joined #ruby
roamingdog has joined #ruby
cstl has quit [Quit: Lost terminal]
dorje has joined #ruby
nando293921 has joined #ruby
Coldblackice has quit [Ping timeout: 250 seconds]
kareeoleez has quit [Ping timeout: 276 seconds]
ocbtec has quit [Quit: leaving]
lightt has quit [Ping timeout: 264 seconds]
jhack has joined #ruby
<shevy> back to work with him
cajone has joined #ruby
johnmilton has joined #ruby
danostrowski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jhack has quit [Ping timeout: 252 seconds]
allcentury has quit [Ping timeout: 246 seconds]
duckpupp1 has quit [Ping timeout: 244 seconds]
chipotle has quit [Ping timeout: 260 seconds]
chipotle has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Ishido has joined #ruby
kareeoleez has joined #ruby
solars has quit [Ping timeout: 264 seconds]
<mute> havenwood: thanks!
bumao has quit [Quit: -+\-0><]
nofxx has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
kareeole_ has joined #ruby
sdothum has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
kareeoleez has quit [Ping timeout: 244 seconds]
art-solopov has joined #ruby
diegoviola has quit [Quit: WeeChat 1.5]
blackgoat has joined #ruby
agit0 has joined #ruby
wrkrcoop has quit [Quit: wrkrcoop]
kareeole_ has quit [Ping timeout: 272 seconds]
zapata has joined #ruby
pawnbox has quit [Remote host closed the connection]
aberen has joined #ruby
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
noobsu has quit [Remote host closed the connection]
jenrzzz_ has joined #ruby
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
sp4rrow has joined #ruby
Gasher has joined #ruby
dorje has quit [Ping timeout: 264 seconds]
noobsu has joined #ruby
jaguarmagenta has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
kareeoleez has joined #ruby
danostrowski has joined #ruby
aberen has quit [Ping timeout: 252 seconds]
Wolland has joined #ruby
bobbycvi has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
solars has joined #ruby
diegoaguilar has joined #ruby
Ishido has quit [Remote host closed the connection]
dorje has joined #ruby
karmatr0n has quit [Ping timeout: 250 seconds]
mahlon has quit [Quit: nine foot long outhouse ladle]
kareeoleez has quit [Ping timeout: 250 seconds]
GinoManWorks has quit [Read error: Connection reset by peer]
ged_ has quit [Quit: WeeChat 1.4]
karmatr0n has joined #ruby
jaguarmagenta has quit [Ping timeout: 272 seconds]
SilverKey has joined #ruby
Wolland has quit [Ping timeout: 250 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
danostrowski has quit [Ping timeout: 258 seconds]
neanderslob has joined #ruby
codecop has quit [Remote host closed the connection]
SilverKey has quit [Client Quit]
hobodave has quit [Ping timeout: 246 seconds]
CJKinni`` has quit [Remote host closed the connection]
SilverKey has joined #ruby
kareeoleez has joined #ruby
ash_workz has quit [Ping timeout: 252 seconds]
moos3 has quit [Ping timeout: 258 seconds]
ldnunes has quit [Quit: Leaving]
fmcgeough has quit [Quit: fmcgeough]
CJKinni has joined #ruby
kareeoleez has quit [Ping timeout: 244 seconds]
jenrzzz_ has quit [Ping timeout: 240 seconds]
lopin has joined #ruby
aibot has quit [Ping timeout: 250 seconds]
<lopin> s -m irc.shadow-network.net
mute has left #ruby ["WeeChat 1.4"]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
CalimeroTeknik has quit [Ping timeout: 258 seconds]
harai54 has joined #ruby
wrkrcoop has joined #ruby
alexandernst has joined #ruby
<alexandernst> What is the difference between backtrace.select { |s| ! (s =~ /bundle/ || s =~ /gems/)} and backtrace.select { |s| s =~ /bundle/ || s =~ /gems/} ?
<aegis3121> Well, I would imagine the !
<alexandernst> yes, but what do both things do?
<alexandernst> I mean, in the first case the select will return only strings that don't have bundle or gems
<alexandernst> right?
bruce_lee has quit [Read error: Connection reset by peer]
bruce_lee has joined #ruby
bumao has joined #ruby
certainty has joined #ruby
mdw has joined #ruby
<shevy> cool... seems as if rubygems.org now shows "Required Ruby Version:" and "Required Rubygems Version:" ... or I did not notice this before
<shevy> hmm
<shevy> or perhaps not... but I could swear that something changed in the display
mdw_ has joined #ruby
jerematic has quit [Remote host closed the connection]
bumao has quit [Client Quit]
ramortegui has quit [Quit: Ex-Chat]
Fuzai has left #ruby [#ruby]
flashpoint9 has joined #ruby
certainty has quit [Ping timeout: 260 seconds]
spiette has quit [Quit: :qa!]
mdw has quit [Ping timeout: 264 seconds]
mahlon has joined #ruby
kareeoleez has joined #ruby
wrkrcoop has quit [Quit: wrkrcoop]
dorje has quit [Quit: dorje]
ips|malc has joined #ruby
Cohedrin has joined #ruby
Cohedrin has quit [Client Quit]
TinkerTyper has quit [Ping timeout: 246 seconds]
qasaur has joined #ruby
dorje has joined #ruby
kareeoleez has quit [Ping timeout: 272 seconds]
jackjackdripper has quit [Quit: Leaving.]
duncannz has quit [Remote host closed the connection]
kareeoleez has joined #ruby
mdw_ has quit [Read error: Connection reset by peer]
spider-mario has joined #ruby
qasaur has quit [Client Quit]
kies has quit [Ping timeout: 250 seconds]
mdw has joined #ruby
blackgoat has quit [Quit: WeeChat 1.5]
last_staff has quit [Quit: last_staff]
juanfra has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
ips|malc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hahuang65 has joined #ruby
Wolland has joined #ruby
TinkerTyper has joined #ruby
hahuang65 has quit [Client Quit]
aberen has joined #ruby
kalopsian has joined #ruby
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
sumobob has quit [Quit: WeeChat 1.5]
Xentil has joined #ruby
n_blownapart has quit []
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SilverKey has quit [Quit: Halted.]
hahuang65 has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
sandstrom has joined #ruby
wldcordeiro has quit [Ping timeout: 258 seconds]
aibot has joined #ruby
<thoraxe> hmm... not sure if this is a better question for rubygems specifically, but i'm trying to install charlock_holmes on centos7 and i feel like I've got all the right deps but to no avail
aberen has quit [Ping timeout: 252 seconds]
<thoraxe> i have libicu-devel installed
<thoraxe> i'm using bundler: bundle install --without test --without development --deployment
lightt has joined #ruby
<jhass> thoraxe: install the which command
Didac has quit [Ping timeout: 260 seconds]
<thoraxe> installing
vdamewood has joined #ruby
<thoraxe> jhass: is something bundler doing trying to use that?
<thoraxe> this is also inside a docker container (Extra fun) so yeah which wasn't installed.
<thoraxe> there we go!
<thoraxe> jhass++
mtkd has quit [Ping timeout: 240 seconds]
<thoraxe> Installing charlock_holmes 0.7.3 with native extensions
palms has quit [Ping timeout: 252 seconds]
<jhass> not bundler, the mkmf/extconf rather
rueben_ has quit [Ping timeout: 240 seconds]
<alexandernst> How is it possible that some random code is returning *foo*, but when I debug it line-by-line with proy debugger, I get *bar*?
<jhass> it's impossible and can have 100 reasons at the same tiem
<jhass> *time
dhollinger has quit [Quit: WeeChat 1.4]
mustmodify has left #ruby [#ruby]
<jhass> sorry but there's just not enough context
Azure has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
<thoraxe> jhass: ahh. gotcha. thanks!
nocco has joined #ruby
mtkd has joined #ruby
bumao has joined #ruby
<jenrzzz> alexandernst: i'm gonna go with solar flares
<Synthead> is there a way to get the network mask address from an IPAddr object? It looks like fog extends IPAddr with .mask_string, but I want to remove fog from my Gemfile
diegoaguilar has quit [Remote host closed the connection]
Rasi has quit [Quit: WeeChat 1.5]
<alexandernst> jenrzzz: checked, not the source of the problem :)
<alexandernst> jenrzzz: next idea!
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jenrzzz> alexandernst: your computer may be haunted. you should pour holy water on it
<alexandernst> hmmm... I suspect that might not fix the problem but actually make it worse
Rasi has joined #ruby
<jenrzzz> gotta go down to go up
hahuang65 has quit [Quit: WeeChat 1.5]
<Synthead> patch the kernel to make all random numbers be 5
<Synthead> that'll fix it for sure
<alexandernst> anyways, I just restart RoR and it seems now it's returning *bar*
hahuang65 has joined #ruby
sp4rrow has joined #ruby
<alexandernst> weird, I have all those no-cache and reload-classes-always options in my development env
ElFerna has joined #ruby
highbass has joined #ruby
<Synthead> alexandernst: are you using spring?
<alexandernst> Synthead: no idea what that is, sorry
nocco has quit [Ping timeout: 250 seconds]
<Synthead> alexandernst: its a lib that caches RoR environments
<highbass> im a ruby newby ... had a qustion regarding "Asset Pipeline" ... for some reason when i do a precompile for assets it creates the assets in public/assets folder but it also removes some of the status assets in my project (assets it pulls from other folders) during precompilation... is this normal behaviour?
<alexandernst> Synthead: would that appear somewhere in the Gemfile ?
symm- has quit [Ping timeout: 264 seconds]
<Synthead> alexandernst: you might check if your project is using it. if so, disable it and see if the oddities go away.
<Synthead> alexandernst: I think so
<Synthead> highbass: do you mean static assets?
<highbass> Synthead: yes
<alexandernst> Synthead: yup, spring here
<alexandernst> let me research how to disable that
<jhass> ?rails highbass
<ruby[bot]> highbass: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<highbass> ok thanks
bumao has quit [Quit: ZNC 1.6.3 - http://znc.in]
<Synthead> alexandernst: I think if you just pull the gem out and run "bundle", it'll work. there'll also be a spring daemon running on your box (I think), so you might kill it
ChiefAlexander has quit [Quit: Leaving...]
<alexandernst> Synthead: can't touch the Gemfile nor modify gems. Work project, limited write perms, etc...
<Synthead> alexandernst: ultimately, development is quicker with spring, so you'll probably want to figure out why it's causing issues and fix that instead of permanently disabling spring (which is ultimately a workaround)
Gasher has quit [Quit: Leaving]
<Synthead> alexandernst: spring runs as a daemon on your machine, so I imagine you could probably run "rails s" without it
<alexandernst> maybe spring has some "scan and reload files on chages" option?
<Synthead> alexandernst: I think it's "DISABLE_SPRING=1 rails s"
edwinvdgraaf has quit [Remote host closed the connection]
<Synthead> alexandernst: yeah maybe. tbh, I've disabled spring (what I suggested against) :D
<alexandernst> :D
<alexandernst> oh!
SCHAAP137 has quit [Quit: Leaving]
<alexandernst> Actually the file I'm woring on is in config/initializers/application.rb
<alexandernst> could be that spring just can't reload that file?
<Synthead> I'm not sure :)
* Synthead doesn't use spring
blaxter has quit [Read error: Connection reset by peer]
* Synthead should probably use spring, though
bumao has joined #ruby
* Synthead brb
<alexandernst> Synthead: as I thought https://github.com/rails/spring/issues/378
<alexandernst> so... there's just nothing I can do about that, I should restart the app a few times until I patch the code
symm- has joined #ruby
CJKinni has quit [Read error: Connection reset by peer]
<shevy> ].map { |x| /\A#{Rails.root.join(x)}\//.freeze }.freeze
<shevy> is that common practice in rails, the double freez?
cdg has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kalopsian has quit [Ping timeout: 276 seconds]
Trynemjoel has quit [Ping timeout: 264 seconds]
dorje has quit [Ping timeout: 260 seconds]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
skweek has joined #ruby
hahuang65 has quit [Quit: WeeChat 1.5]
lopin has quit [Ping timeout: 260 seconds]
malconis has quit [Ping timeout: 260 seconds]
dopamean_ has quit [Ping timeout: 244 seconds]
wrkrcoop has joined #ruby
firstdayonthejob has quit [Ping timeout: 240 seconds]
dorje has joined #ruby
achamian has joined #ruby
<Synthead> alexandernst: huzzah!
snath has quit [Ping timeout: 252 seconds]
aegis3121 has quit [Ping timeout: 260 seconds]
kareeoleez has quit [Remote host closed the connection]
Gasher has joined #ruby
prestorium has quit [Quit: Leaving]
<Synthead> how can I get the netmask address from an IPAddr object?
achamian has quit [Ping timeout: 276 seconds]
aufi has quit [Ping timeout: 276 seconds]
Guest38 has joined #ruby
<lupine> Synthead: IPAddr is generally rubbish, the ipaddress gem does better
<havenwood> shevy: freezing the array doesn't freeze each string inside, hence they deep freeze to freeze it through and through
<shevy> ah
madgen has quit [Ping timeout: 250 seconds]
benlieb has joined #ruby
kalopsian has joined #ruby
<Synthead> lupine: beautiful, there's a .netmask method that does exactly what I want
<Synthead> thanks!
Kneecaps has quit [Ping timeout: 244 seconds]
TomyLobo has quit [Ping timeout: 258 seconds]
MrBusiness3 has quit [Ping timeout: 258 seconds]
binaryplease1 has joined #ruby
hahuang65 has joined #ruby
<lupine> Synthead: here's the closest I got to getting 'ipaddr' to do the thing: IPAddr.new(IPAddr.new("10.0.0.0/24").instance_variable_get("@mask_addr"), Socket::AF_INET).to_s
<lupine> (don't ever do this)
<Synthead> yeah that's smelly
<lupine> :D
<Synthead> whew!
<Synthead> do NOT! ... go in there!
wldcordeiro has joined #ruby
<Synthead> woooOOOOOOOOooooooo
certainty has joined #ruby
binaryplease has quit [Ping timeout: 240 seconds]
nankyokusei has joined #ruby
choke has joined #ruby
hxegon is now known as hxegon_ak
bumao has quit [Quit: ZNC 1.6.3 - http://znc.in]
certainty has quit [Ping timeout: 250 seconds]
n_blownapart has joined #ruby
bumao has joined #ruby
sepp2k has quit [Quit: Leaving.]
nankyokusei has quit [Ping timeout: 250 seconds]
polishdub has quit [Quit: Leaving]
binaryplease1 is now known as binaryplease
sankarshanmudkav has quit [Quit: sankarshanmudkav]
benlieb has quit [Quit: benlieb]
snath has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
sp4rrow has joined #ruby
mistermocha has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 252 seconds]
kalopsian has quit [Ping timeout: 244 seconds]
DylanJ has quit [Quit: ggwp]
mwlang has joined #ruby
malconis has joined #ruby
al2o3-cr has quit [Ping timeout: 276 seconds]
andybernard has joined #ruby
benlieb has joined #ruby
andybernard has quit [Client Quit]
aberen has joined #ruby
malconis has quit [Ping timeout: 246 seconds]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
aberen has quit [Ping timeout: 260 seconds]
ta__ has quit [Ping timeout: 264 seconds]
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
sandstrom has quit [Quit: My computer has gone to sleep.]
kwatz has joined #ruby
kwatz is now known as destructure
destructure has quit [Changing host]
destructure has joined #ruby
al2o3-cr has joined #ruby
Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mdw has quit [Quit: Sleeping Zzzzz]
LoneHermit has joined #ruby
skade has joined #ruby
symm- has quit [Ping timeout: 244 seconds]
blockchan has quit [Ping timeout: 264 seconds]
dorje has quit [Ping timeout: 240 seconds]
art-solopov has quit [Quit: Konversation terminated!]
benlieb has quit [Quit: benlieb]
tildes_ has joined #ruby
LoneHermit has quit [Ping timeout: 244 seconds]
dorje has joined #ruby
whathapp_ has quit [Quit: Leaving...]
n_blownapart has quit [Remote host closed the connection]
Gasher has quit [Quit: Leaving]
jaguarmagenta has joined #ruby
n_blownapart has joined #ruby
smathy is now known as smathy_afk
kies has joined #ruby
edwinvdgraaf has joined #ruby
saneax_AFK is now known as saneax
jaguarmagenta has quit [Ping timeout: 240 seconds]
nocco has joined #ruby
lxsameer has joined #ruby
seitensei has joined #ruby
n_blownapart has quit [Ping timeout: 252 seconds]
Didac has joined #ruby
choke has joined #ruby
snath has quit [Ping timeout: 276 seconds]
yfeldblum has joined #ruby
JesseH has quit [Remote host closed the connection]
n_blownapart has joined #ruby
choke has quit [Client Quit]
swills has quit [Quit: Leaving]
weemsledeux has joined #ruby
whathappens has joined #ruby
Xentil has quit [Ping timeout: 246 seconds]
spider-mario has quit [Remote host closed the connection]
nocco has quit [Ping timeout: 250 seconds]
Asher has joined #ruby
noobsu has quit [Remote host closed the connection]
Wolland has quit [Remote host closed the connection]
n_blownapart has quit [Ping timeout: 252 seconds]
lxsameer has quit [Ping timeout: 258 seconds]
skade has quit [Quit: Computer has gone to sleep.]
rodfersou has quit [Quit: leaving]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
<pilne> i think i've found my perfect combination for now... ruby with go being used for bottlenecks instead of c (or rust if i need to get even tighter). SO HAPPY!
<jhass> looked at Crystal yet? :P
n_blownapart has joined #ruby
jackjackdripper has joined #ruby
<pilne> i have, a lot, i keep as up to date as I can :)
kalopsian has joined #ruby
ElFerna has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
certainty has joined #ruby
<pilne> i'd just not rather have "c" be something I have to work with for external libraries tbh, i'm a bit of a chickenshit when it comes to c and c++ honestly.
n_blownapart has quit [Ping timeout: 252 seconds]
SilverKey has joined #ruby
binaryplease1 has joined #ruby
n_blownapart has joined #ruby
aries_liuxueyang has quit [Ping timeout: 276 seconds]
SilverKey has quit [Client Quit]
certainty has quit [Ping timeout: 250 seconds]
agent_white is now known as farkd
farkd is now known as agent_white
agent_white has quit [Quit: leaving]
paul__ has joined #ruby
koooge has joined #ruby
vdamewood has quit [Quit: Life beckons.]
eserror has quit [Quit: leaving]
rkazak has joined #ruby
n_blownapart has quit [Ping timeout: 252 seconds]
darkman738 has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
<darkman738> hi guys, quick question that I think the answer is no to. I've got some string 's = "#{first_name}, welcome..." being returned from a class where 'first_name' doesn't exist in that class, but does where I'm going to use it. I'm assuming there's no way to do interpolation this way?
<jhass> darkman738: right, you have to pass first_name as a parameter
aberen has joined #ruby
<jhass> in some way or another
diegoviola has joined #ruby
<darkman738> that's what I expected, trying to figure out how best to handle this issue
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
<jhass> showing your real code, both the class and the call side, could yield some suggestions
<jhass> ?gist
<ruby[bot]> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<darkman738> I've got strings like this but I won't necessarily know whether it needs to be say first_name or last_name, etc
<darkman738> I suppose I could just use a regex replace, but was looking to see if there was an easier way
nocco has joined #ruby
benlieb has joined #ruby
flashpoint9 has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
<jhass> looking for String#%?
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
patrick_star_3 has quit [Quit: Leaving]
terminal_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
n_blownapart has joined #ruby
bmorrison has joined #ruby
<darkman738> yeah so I'll have a list of pre-fabed strings like "{first_name} says hello", "{first_name} {last_name} lives at {address}", etc
<darkman738> I get to pick the format and such
aberen has quit [Ping timeout: 276 seconds]
<darkman738> and there will be a finite elements (first_name, last_name, etc) so those aren't going to be out of control, I just need to figure out some way of putting the correct info into the string, which could be in any order and multiple elements
<darkman738> but I guess I'll just go with some {} regex pattern
<darkman738> does it in a few lines, just iterate over a hash of elements I guess
vikaton has joined #ruby
nocco has quit [Ping timeout: 260 seconds]
<jhass> >> "%{first_name}, welcome" % {first_name: "darkman738"}
<ruby[bot]> jhass: # => "darkman738, welcome" (https://eval.in/585774)
terminal_ has joined #ruby
terminal_ has quit [Client Quit]
<darkman738> oh cool
rueben has joined #ruby
karmatr0n has quit [Ping timeout: 264 seconds]
n_blownapart has quit [Ping timeout: 252 seconds]
<shevy> wow
<shevy> I never saw "%{first_name}, welcome" % {first_name: "darkman738"} before I think
<jhass> I explained it here at least a dozen times already...
<darkman738> that's kinda neat
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<darkman738> sorry to make you repeat yourself
<wrkrcoop> if an error occurs do i want to use begin rescue end?
<jhass> no worries, was more responding to shevy
<jhass> wrkrcoop: if you can recover from it
<darkman738> I'm a bit of a ruby n00b (as may be evident)
<wrkrcoop> jhass: hmmm well things depend on it so … i guess i couldn’t continue …