jhass changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
glenn_ has quit [Read error: Connection reset by peer]
jgt has quit [Ping timeout: 244 seconds]
<Mon_Ouie> Position as [line, column] maybe?
glenn_ has joined #ruby
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
<havenwood> >> require 'ripper'; Ripper.sexp "\n case 'a'; when 'a','b'; 'c' end"
<ruboto> havenwood # => [:program, [[:case, [:string_literal, [:string_content, [:@tstring_content, "a", [2, 7]]]], [:when, ...check link for more (https://eval.in/429023)
rbennacer has joined #ruby
<havenwood> Mon_Ouie: +1
tonios57_ has quit [Quit: Textual IRC Client: www.textualapp.com]
Swappticon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tubuliferous_ has joined #ruby
<havenwood> shevy: https://www.weirichfund.org
emba has quit [Remote host closed the connection]
<havenwood> shevy: stop making me cry
claw has joined #ruby
zenguy_pc has quit [Read error: Connection reset by peer]
pipecloud has joined #ruby
majjoha has joined #ruby
zenguy_pc has joined #ruby
<shevy> did you have coffee yet
zenguy_pc has quit [Read error: Connection reset by peer]
<havenwood> shevy: Yeah, Jim Weirich was just the greatest of Rubyists and my personal hero. If you haven't seen his talks... do!!
pipework has quit [Quit: pipeworkin' it]
pipecloud is now known as pipework
nux443 has joined #ruby
zenguy_pc has joined #ruby
fostertheweb has joined #ruby
Swappticon has joined #ruby
Tamae has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
platzhirsch has left #ruby [#ruby]
KC9YDN has quit [Remote host closed the connection]
majjoha has quit [Ping timeout: 264 seconds]
theery has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
michael_mbp has quit [Excess Flood]
theery has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
pipecloud has joined #ruby
valeness has quit [Disconnected by services]
Valeness_ has joined #ruby
jammes has joined #ruby
ledestin has joined #ruby
Oka has quit [Quit: o/]
michael_mbp has joined #ruby
Rickmasta has joined #ruby
lannonbr_ has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
garethrees has quit [Ping timeout: 240 seconds]
fgo_ has joined #ruby
jammes has quit []
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
khgfd has joined #ruby
pipecloud has left #ruby ["Textual IRC Client: www.textualapp.com"]
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
khgfd has quit [Client Quit]
marr has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
fgo_ has quit [Ping timeout: 272 seconds]
mesamoo has joined #ruby
mary5030 has quit [Ping timeout: 252 seconds]
al2o3-cr has quit [Ping timeout: 252 seconds]
swgillespie has joined #ruby
al2o3-cr has joined #ruby
Mendenhall is now known as Robot531
nux443 has quit [Quit: leaving]
Robot531 is now known as Mendenhall
bluOxigen has joined #ruby
_blizzy_ has joined #ruby
Guest4117 has joined #ruby
Guest4117 has left #ruby [#ruby]
djbkd has joined #ruby
Antiarc has quit [Remote host closed the connection]
<jher>
Jardayn has quit [Read error: Connection reset by peer]
jdawgaz has joined #ruby
bier has quit [Ping timeout: 252 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Newtonianb has joined #ruby
jher has quit [Quit: leaving]
Swappticon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
jdawgaz has quit [Ping timeout: 244 seconds]
Queeniebee has quit [Ping timeout: 250 seconds]
saddad has joined #ruby
workmad3 has joined #ruby
djbkd has quit [Remote host closed the connection]
charliesome has joined #ruby
ghr has joined #ruby
dorei has quit []
keen__________15 has joined #ruby
bier has joined #ruby
jamesaxl|2 has quit [Remote host closed the connection]
pontiki has joined #ruby
keen__________14 has quit [Ping timeout: 264 seconds]
oo_ has quit [Ping timeout: 256 seconds]
charliesome has quit [Client Quit]
oo_ has joined #ruby
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 246 seconds]
<Ox0dea> That poor platzhirsch fellow went away thinking case expressions don't evaluate to a value. :/
fgo_ has joined #ruby
devoldmx has joined #ruby
fgo_ has quit [Client Quit]
ghr has quit [Ping timeout: 246 seconds]
JDiPierro has joined #ruby
<al2o3-cr> you arrays are gone
<al2o3-cr> *you*re
<craysiii> your*
<al2o3-cr> hi Ox0dea
<al2o3-cr> hi craysiii
<craysiii> hey
chipotle has joined #ruby
_clarkenciel has quit [Quit: Leaving]
mprelude has quit [Ping timeout: 246 seconds]
<al2o3-cr> How can i send an object a method, trough a time tunnel and back again?
<pontiki> yore
<pipework> al2o3-cr: You need something that's bigger on the inside
<pontiki> you need to requre "tardis"
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<al2o3-cr> hmmm.....
lannonbr_ has quit [Quit: Page closed]
devbug_ has joined #ruby
<al2o3-cr> hollywood
<shevy> lol
<shevy> is this random-words-day again?
bootstrappm has joined #ruby
roshanavand has quit [Ping timeout: 244 seconds]
<al2o3-cr> Its big apple day
<pontiki> it can be
<al2o3-cr> Trainers is not all it seems
jher has joined #ruby
<al2o3-cr> I finally got it
devbug has quit [Ping timeout: 260 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<al2o3-cr> Cheese, cheeseis the answer
charliesome has joined #ruby
<al2o3-cr> e*_*is
emba has joined #ruby
Musashi007 has joined #ruby
<al2o3-cr> Oh, and milk
Klumben has quit [Ping timeout: 244 seconds]
alem0lars has quit [Ping timeout: 244 seconds]
NightMonkey has quit [Quit: ZNC - http://znc.in]
oo_ has quit [Remote host closed the connection]
johnhamelink has quit [Ping timeout: 246 seconds]
<pontiki> you and Chesterson
tjohnson has quit [Quit: Connection closed for inactivity]
emba has quit [Ping timeout: 255 seconds]
<Ox0dea> crayfishx: How about Jaguarundi?
_blizzy_ has quit [Ping timeout: 265 seconds]
Musashi007 has quit [Quit: Musashi007]
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome has quit [Ping timeout: 250 seconds]
araujo_ has joined #ruby
ghr has joined #ruby
spider-mario has quit [Remote host closed the connection]
Azure has joined #ruby
rakm has joined #ruby
araujo has quit [Ping timeout: 264 seconds]
oo_ has joined #ruby
ivanf has quit [Quit: ZNC - http://znc.in]
Swappticon has joined #ruby
ghr has quit [Ping timeout: 246 seconds]
jesseherrick has joined #ruby
chipotle has quit [Quit: cheerio]
failshell has joined #ruby
rbennacer has quit [Remote host closed the connection]
hololeap has quit [Ping timeout: 255 seconds]
nahtnam has quit [Quit: Connection closed for inactivity]
devoldmx has quit []
failshell has quit [Ping timeout: 268 seconds]
jesseherrick has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
mary5030 has joined #ruby
amclain has quit [Quit: Leaving]
jesseherrick has joined #ruby
jesseherrick has left #ruby [#ruby]
JDiPierro has quit [Remote host closed the connection]
johnhamelink has joined #ruby
JDiPierro has joined #ruby
ybian has joined #ruby
mary5030 has quit [Ping timeout: 250 seconds]
Mendenhall has quit [Ping timeout: 244 seconds]
charliesome has joined #ruby
devoldmx has joined #ruby
JDiPierro has quit [Ping timeout: 256 seconds]
[k- has quit [Ping timeout: 265 seconds]
araujo_ has quit [Quit: Leaving]
Swappticon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rakunh0 has joined #ruby
tkuchiki has joined #ruby
lampshades has joined #ruby
lampshades has quit [Remote host closed the connection]
haraoka has joined #ruby
weemsledeux has joined #ruby
lampshades has joined #ruby
bruno- has joined #ruby
Rickmasta has quit [Ping timeout: 252 seconds]
bruno- has quit [Ping timeout: 252 seconds]
Rickmasta has joined #ruby
mesamoo has quit [Ping timeout: 244 seconds]
Klumben has joined #ruby
segfalt has joined #ruby
Kallis has quit [Read error: Connection reset by peer]
fostertheweb has joined #ruby
lampshades has quit [Remote host closed the connection]
phreakocious has quit [Ping timeout: 255 seconds]
dfockler has joined #ruby
<dfockler> woo
JDiPierro has joined #ruby
<Ox0dea> Congratulations!
A124 has quit [Remote host closed the connection]
<al2o3-cr> Tell the world
<al2o3-cr> the good news
michael_mbp has quit [Excess Flood]
phreakocious has joined #ruby
yeticry has quit [Ping timeout: 244 seconds]
JDiPierro has quit [Remote host closed the connection]
yeticry has joined #ruby
Exuma has joined #ruby
JDiPierro has joined #ruby
<[ace]> question time! i'm working on a small library i want to interact with from irb.
chipotle has joined #ruby
michael_mbp has joined #ruby
<al2o3-cr> you presses \r to early
<[ace]> in the module should "def self.blah"+include or "def blah"+extend
alem0lars has joined #ruby
<shevy> wat
<al2o3-cr> extend
<pipework> [ace]: what
<shevy> both!
<pipework> why not prepend?
<[ace]> i see include "gives access"
<[ace]> and extend copies
<shevy> wat
* [ace] looks up prepend
David27 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<al2o3-cr> all about scope
<pipework> [ace]: Surely you understand that no one here could possibly understand what you're talking about based on what you've said so far, right?
A124 has joined #ruby
<shevy> al2o3-cr I need a code monkey
sross07 has joined #ruby
<[ace]> pipework: oh sorry. I'm trying
<al2o3-cr> shevy: i'm right here :)
<[ace]> the include/extend is what I do from the irb prompt
majjoha has joined #ruby
<pipework> [ace]: Show some code.
devoldmx has quit [Remote host closed the connection]
krz has joined #ruby
<shevy> yes you can include into irb and extend as well
qiukun_ has joined #ruby
Asher2 has joined #ruby
<al2o3-cr> shevy: the amount of time you've been doing ruby, you could be teaching matz
hololeap has joined #ruby
Asher has quit [Disconnected by services]
colstrom_ has joined #ruby
Asher2 is now known as Asher
eregon_ has joined #ruby
<shevy> if you do 1 minute per day then it'll be only 365 minutes per year
crdpink2 has joined #ruby
romero has quit [Ping timeout: 252 seconds]
<al2o3-cr> shevy: How is C treating you?
harryk_ has joined #ruby
chihhsin_ has joined #ruby
zack6849_ has joined #ruby
jamo__ has joined #ruby
cornerma1 has joined #ruby
bubuntu_ has joined #ruby
Derasi has joined #ruby
eam_ has joined #ruby
stnly has joined #ruby
lotherk_ has joined #ruby
QKO_ has joined #ruby
hostess_ has joined #ruby
hydrozen has joined #ruby
PaulePan1er has joined #ruby
verdoc_ has joined #ruby
devn_ has joined #ruby
<[ace]> al2o3-cr: what do you mean about "all about scope" ?
<shevy> I find C very boring so far :(
<[ace]> pipework: i'm working a tiny gist now
julieeharshaw has joined #ruby
majjoha has quit [Ping timeout: 268 seconds]
Ox0dea has quit [Disconnected by services]
<al2o3-cr> >> "afoo".instance_eval { reverse }
<ruboto> al2o3-cr # => "oofa" (https://eval.in/429038)
Ox0dea has joined #ruby
ghr has joined #ruby
needhelpwithfunk has joined #ruby
<pipework> >> "afoo".instance_eval(&:reverse)
<ruboto> pipework # => "oofa" (https://eval.in/429039)
<al2o3-cr> That indicated it's going back into the scope of the class
<needhelpwithfunk> hey folks. I got a funky problem that I need coding help on
<Ox0dea> needhelpwithfunk: Go for it.
dgutierrez1287 has joined #ruby
[k- has joined #ruby
<needhelpwithfunk> imagine a tic tac toe board. if I asked you what the space inside the board was, you could reasonably point out the 9 different blocks of empty space
Billias_ has joined #ruby
tris- has joined #ruby
linc01n_ has joined #ruby
sfr^^ has joined #ruby
scottyme- has joined #ruby
Musashi007 has joined #ruby
<needhelpwithfunk> okay, now you know the 9 blocks in the tic tac toe board have white space, check. okay, how do you differentiate the blocks now?
Papierko- has joined #ruby
waxjar_ has joined #ruby
braincrash has joined #ruby
bf4 has joined #ruby
<Ox0dea> Wat.
Olipro- has joined #ruby
bf4 is now known as Guest65722
nomadic has joined #ruby
No_One has joined #ruby
skakri` has joined #ruby
cschneid- has joined #ruby
wookiehangover_ has joined #ruby
<needhelpwithfunk> exactly
<shevy> a webchat user :)
Olipro- is now known as Guest987
northfurr has joined #ruby
Plas has joined #ruby
<Ox0dea> needhelpwithfunk: You're not explaining yourself very well.
dymk_ has joined #ruby
<Ox0dea> Each square can have exactly one of three states.
<pontiki> you can do it in a single dimensional array, a two-dimensional array, or L-space with Ook
bigredbo_ has joined #ruby
<needhelpwithfunk> okay, hold up.
universaL has joined #ruby
<needhelpwithfunk> let me draw a schematic
<Ox0dea> needhelpwithfunk: You could make them ' ', 'X', and 'O', or even use the ternary number system to pack everything in nice and tight.
iooner- has joined #ruby
<pontiki> mmmmmmm ternary
TheMoonMaster_ has joined #ruby
znz_jp0 has joined #ruby
jimeh_ has joined #ruby
JDiPierro has quit [*.net *.split]
Klumben has quit [*.net *.split]
johnhamelink has quit [*.net *.split]
tobiasvl has quit [*.net *.split]
cornerman has quit [*.net *.split]
lolmaus has quit [*.net *.split]
Fire1o6 has quit [*.net *.split]
code1o6 has quit [*.net *.split]
kriskropd has quit [*.net *.split]
sparr has quit [*.net *.split]
qiukun has quit [*.net *.split]
braincra- has quit [*.net *.split]
mistergibson has quit [*.net *.split]
wookiehangover has quit [*.net *.split]
bubbys has quit [*.net *.split]
ZeeNoodleyGamer has quit [*.net *.split]
segmond has quit [*.net *.split]
sfr^ has quit [*.net *.split]
linc01n has quit [*.net *.split]
universa1 has quit [*.net *.split]
PaulePanter has quit [*.net *.split]
stnly_ has quit [*.net *.split]
PlasmaStar has quit [*.net *.split]
TheMoonMaster has quit [*.net *.split]
znz_jp has quit [*.net *.split]
waxjar has quit [*.net *.split]
Guest20718 has quit [*.net *.split]
dymk has quit [*.net *.split]
jimeh has quit [*.net *.split]
crdpink has quit [*.net *.split]
zack6849 has quit [*.net *.split]
cball has quit [*.net *.split]
blackjid has quit [*.net *.split]
go|dfish has quit [*.net *.split]
bubuntu has quit [*.net *.split]
Billias has quit [*.net *.split]
scottymeuk has quit [*.net *.split]
jordanm has quit [*.net *.split]
tris has quit [*.net *.split]
nomadic_ has quit [*.net *.split]
sross_work|2 has quit [*.net *.split]
asi_ has quit [*.net *.split]
hostess has quit [*.net *.split]
chihhsin has quit [*.net *.split]
eam has quit [*.net *.split]
nullwarp has quit [*.net *.split]
mjmac has quit [*.net *.split]
cschneid has quit [*.net *.split]
Guest74353 has quit [*.net *.split]
trampi has quit [*.net *.split]
Seich has quit [*.net *.split]
QKO has quit [*.net *.split]
lupine has quit [*.net *.split]
terrellt has quit [*.net *.split]
j416 has quit [*.net *.split]
harryk has quit [*.net *.split]
iooner has quit [*.net *.split]
skarn has quit [*.net *.split]
Dwarf has quit [*.net *.split]
DarkBushido has quit [*.net *.split]
epochwolf has quit [*.net *.split]
colstrom has quit [*.net *.split]
verdoc has quit [*.net *.split]
jamo_ has quit [*.net *.split]
Papierkorb has quit [*.net *.split]
lotherk has quit [*.net *.split]
skakri has quit [*.net *.split]
devn has quit [*.net *.split]
eregon has quit [*.net *.split]
julie_harshaw has quit [*.net *.split]
jokke- is now known as jokke
scottyme- is now known as scottymeuk
cornerma1 is now known as cornerman
qiukun_ is now known as qiukun
wookiehangover_ is now known as wookiehangover
universaL is now known as universa1
Billias_ is now known as Billias
<al2o3-cr> ternary is goooooddd...
bigredboots has quit [Ping timeout: 240 seconds]
<Ox0dea> needhelpwithfunk: Each square can have state 0, 1, or 2, and you've got nine squares.
<al2o3-cr> but your belts on
tris- is now known as tris
<pontiki> pal of mine is designing a tri-state computer :)
<needhelpwithfunk> give me a second. I'll draw thisu p.
lupine has joined #ruby
<Ox0dea> needhelpwithfunk: We're all familiar with Tic-Tac-Toe?
Plas is now known as PlasmaStar
Xiti has quit [Read error: Connection reset by peer]
<pontiki> maybe it's not tic-tac-toe, but something *like* a tic-tac-toe board
mesamoo has joined #ruby
Xiti has joined #ruby
ghr has quit [Ping timeout: 268 seconds]
dgutierrez1287 has quit [Ping timeout: 258 seconds]
tvl has joined #ruby
tvl is now known as tobiasvl
Seich has joined #ruby
epochwolf has joined #ruby
<pontiki> yeah, that's what she showed me :)
fostertheweb has quit [Quit: Textual IRC Client: www.textualapp.com]
Exuma has quit []
<pontiki> she's designing her own
devoldmx has joined #ruby
Papabear has quit [Ping timeout: 252 seconds]
<[k-> im making a simple grid library \o/
colstrom_ is now known as colstrom
<al2o3-cr> Use a Set.
<Ox0dea> Use a Vector.
mjmac has joined #ruby
<al2o3-cr> Use an Array or whatever
solocshaw has quit [Ping timeout: 265 seconds]
Musashi007 has quit [Quit: Musashi007]
<[k-> i used an Array
<Ox0dea> Did you make Grid#[] super-convenient?
mistergibson has joined #ruby
<[k-> no, i made the implementation opaque
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> Monster.
go|dfish has joined #ruby
mesamoo has quit [Ping timeout: 255 seconds]
<[k-> you cant have everything in haskell :p
<needhelpwithfunk> okay
aaeron has joined #ruby
<needhelpwithfunk> here i go again
sparr has joined #ruby
<needhelpwithfunk> black tiles are walls (collision)
<needhelpwithfunk> tiles with pink dots are accepted as white space.
<needhelpwithfunk> scanning through a basic array can basically give me pink dots as white space. I got that part down
<needhelpwithfunk> the part I need help with is, what do I have to say/program to get the computer to understand that the purply color surrounding the white space needs to be categorized as a block
<needhelpwithfunk> the first nine blocks that have pink dots should be block 1
DarkBushido has joined #ruby
DarkBushido has joined #ruby
<needhelpwithfunk> one collider over, there's another nine blocks that should be block 2
nullwarp has joined #ruby
<Ox0dea> needhelpwithfunk: How many white squares in your image?
devoldmx has quit [Ping timeout: 265 seconds]
cball has joined #ruby
s00pcan has joined #ruby
kriskropd has joined #ruby
segmond has joined #ruby
<al2o3-cr> needhelpwithfunk: start simple with something like #=> Array.new(3) { Array.new(3, 32.chr) }
<needhelpwithfunk> 64 black squares (seperator/collidor) , 36 white squares ( pink dot), and 4 blocks
<Ox0dea> >> 36.times.map { |i| i / 9 + 1 } # needhelpwithfunk
<al2o3-cr> then multiple thereafter
<ruboto> Ox0dea # => [1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, ...check link for more (https://eval.in/429049)
ChoiKyuSang has joined #ruby
bubbys has joined #ruby
qwebirc1010559 has joined #ruby
<qwebirc1010559> okay. battery died.
<qwebirc1010559> I'm back
<qwebirc1010559> what was the solution?
Papabear has joined #ruby
perryh has joined #ruby
<qwebirc1010559> how do I get the computer to understand to caterogize those pink dots as blocks?
hfp_ has joined #ruby
<al2o3-cr> variables man, variables
Keltia_ has joined #ruby
devoldmx has joined #ruby
<qwebirc1010559> enlighten me
nlsun_ has joined #ruby
needhelpwithfunk has quit [Ping timeout: 246 seconds]
My_Hearing has joined #ruby
<al2o3-cr> go the long route round
<al2o3-cr> lol
Rakunh0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
webhat_ has joined #ruby
kgirthofer_ has joined #ruby
<qwebirc1010559> long route?
dima_ has joined #ruby
<Ox0dea> qwebirc1010559: https://eval.in/429054
<Ox0dea> The arithmetic here is pretty simple.
cfloare_ has joined #ruby
tokik_ has joined #ruby
<Ox0dea> Feel free to make that 36 any multiple of 9.
rvchangu- has joined #ruby
tenseiten has joined #ruby
duracrisis has joined #ruby
Rakunh0 has joined #ruby
rikai_ has joined #ruby
duracrisis is now known as Guest64649
KnownSyntax_ has joined #ruby
<qwebirc1010559> okay. that works for this instance.
<qwebirc1010559> But what if the borders aren't so clean as in the example? what if they're jagged?
jxie_ has joined #ruby
<al2o3-cr> qwebirc1010559: is this ascii or gui?
ekleog_ has joined #ruby
<qwebirc1010559> gui.
danshultz_ has joined #ruby
Lildirt|SomeoneT has joined #ruby
unsymbol_ has joined #ruby
<al2o3-cr> Well, that piece of code is nion useless for jaggedness
<Ox0dea> > nion
<qwebirc1010559> nion?
<Ox0dea> He wanted "nigh on".
integralequation has joined #ruby
<al2o3-cr> slang dudes
<qwebirc1010559> i'm not familiar with the phrase, sorry.
<qwebirc1010559> so he's saying it is usless?
cgfbee has quit [Excess Flood]
Tempesta has quit [Read error: Connection reset by peer]
perry has quit [Ping timeout: 272 seconds]
hfp has quit [Ping timeout: 272 seconds]
rvchangue has quit [Ping timeout: 272 seconds]
Lildirt has quit [Ping timeout: 272 seconds]
Mon_Ouie has quit [Ping timeout: 272 seconds]
tokik has quit [Ping timeout: 272 seconds]
nlsun has quit [Ping timeout: 272 seconds]
seitensei has quit [Quit: No Ping reply in 180 seconds.]
ekleog has quit [Ping timeout: 272 seconds]
DmitryBochkarev has quit [Ping timeout: 272 seconds]
rikai has quit [Ping timeout: 272 seconds]
cfloare has quit [Ping timeout: 272 seconds]
russt has quit [Ping timeout: 272 seconds]
jxie has quit [Ping timeout: 272 seconds]
Blaguvest has quit [Ping timeout: 272 seconds]
webhat has quit [Ping timeout: 272 seconds]
Platini has quit [Ping timeout: 272 seconds]
RazorX has quit [Ping timeout: 272 seconds]
segy has quit [Ping timeout: 272 seconds]
Keltia has quit [Ping timeout: 272 seconds]
KnownSyntax has quit [Ping timeout: 272 seconds]
Guest158 has quit [Ping timeout: 272 seconds]
warreng has quit [Ping timeout: 272 seconds]
unsymbol has quit [Ping timeout: 272 seconds]
M-mistake has quit [Ping timeout: 272 seconds]
jeaye has quit [Ping timeout: 272 seconds]
fold has quit [Ping timeout: 272 seconds]
Lucky__ has quit [Ping timeout: 272 seconds]
kgirthofer has quit [Ping timeout: 272 seconds]
cgrieger^away has quit [Ping timeout: 272 seconds]
Gadgetoid has quit [Ping timeout: 272 seconds]
danshultz has quit [Ping timeout: 272 seconds]
inteq has quit [Ping timeout: 272 seconds]
jeadre has quit [Ping timeout: 272 seconds]
nisstyre has quit [Ping timeout: 272 seconds]
oddalot has quit [Ping timeout: 272 seconds]
entropie has quit [Ping timeout: 272 seconds]
mozzarella has quit [Ping timeout: 272 seconds]
Gadgetoid has joined #ruby
hfp_ is now known as hfp
perryh is now known as perry
rvchangu- is now known as rvchangue
ehth77 has quit [Ping timeout: 250 seconds]
danshultz_ is now known as danshultz
ChoiKyuSang is now known as Tempesta
veloutin has quit [Ping timeout: 272 seconds]
<Ox0dea> Using simple modular arithmetic for irregular geometry isn't of much utility, but you're stringing us along here.
RazorX has joined #ruby
segy has joined #ruby
warreng has joined #ruby
cgrieger^away has joined #ruby
<Ox0dea> What was the point of using a Tic-Tac-Toe board as an example if it doesn't actually relate to the problem you want to solve?
ehth77 has joined #ruby
jeaye has joined #ruby
hydrozen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<qwebirc1010559> i'm sorry. i'm not that great of an explainer.
<qwebirc1010559> here's a better example:
fold1 has joined #ruby
weemsledeux has joined #ruby
cgfbee has joined #ruby
<qwebirc1010559> imagine the floor plans of a house. there's grooves, indentations in some rooms. some rooms are nice squares. how would you get a program to differentiate the different rooms in the house?
Platini has joined #ruby
veloutin has joined #ruby
hydrozen has joined #ruby
<Ox0dea> You're asking such a high-level question as to make it almost impossible to provide you with anything resembling a meaningful answer.
<qwebirc1010559> the program should be able to understand that the bedroom is block X, great room is block Y
Soda has quit [Remote host closed the connection]
psy_ has quit [Ping timeout: 256 seconds]
Musashi007 has joined #ruby
<Ox0dea> You could split your thing into a grid and do something akin to a flood fill.
M-mistake has joined #ruby
russt has joined #ruby
<qwebirc1010559> that's brilliant. I think this is exactly what I'm looking for.
<qwebirc1010559> flood fill.
<Ox0dea> Yay!
<Ox0dea> The algorithm is pretty straightforward, and a good use case for recursion to boot.
<qwebirc1010559> wow, that's amazing.
<qwebirc1010559> you rock.
<Ox0dea> <3
* al2o3-cr slow claps
<qwebirc1010559> so in essence, the floodfill would fill each room, then lob that whole room as block 1, and continue throughout the rest of the house
<Ox0dea> That's about the size of it, yep.
<qwebirc1010559> wow wow wow
<qwebirc1010559> thanks a whole bunch everyone
<qwebirc1010559> :)
<Ox0dea> Happy to have been of some help.
<qwebirc1010559> wow, i'm in shock. there's a word to my madness. i'm not crazy after all
<qwebirc1010559> :)
<qwebirc1010559> thanks
hydrozen has quit [Client Quit]
<qwebirc1010559> ah, forgot to ask.
Queeniebee has joined #ruby
<qwebirc1010559> how intensive is this algorithm to run?
<qwebirc1010559> it's not too crazy on resources, is it?
<al2o3-cr> nah, can't be
blackjid has joined #ruby
<qwebirc1010559> alright, thanks once again. i'm off. catch you all later.
qwebirc1010559 has quit [Quit: Page closed]
<al2o3-cr> Good job that weren't reality
<Ox0dea> That went far better than I anticipated.
Swappticon has joined #ruby
* al2o3-cr nearly spits out his drink
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tmtwd has quit [Ping timeout: 250 seconds]
<al2o3-cr> Yeah, I agree
<Ox0dea> I initially assumed they were trying to do some sort of massively multiplayer Tic-Tac-Toe thing using a single collection.
jenrzzz has joined #ruby
johnhamelink has joined #ruby
<[k-> i thought he just wanted a grid
ChasedSpade has quit [Quit: No reason specified.]
<al2o3-cr> Assumptions are dangerous with the (freenode web)
ChasedSpade has joined #ruby
Rakunh0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Klumben has joined #ruby
cajone1 has joined #ruby
<shevy> hmm
<shevy> multiplayer tic-tac-toe
Musashi007_ has joined #ruby
<shevy> in one old king's quest game part there was a sub-game embedded
Musashi007 has quit [*.net *.split]
Gadgetoid has quit [*.net *.split]
cajone has quit [*.net *.split]
monsieurp has quit [*.net *.split]
_axx has quit [*.net *.split]
Thr3d has quit [*.net *.split]
ccooke has quit [*.net *.split]
matti has quit [*.net *.split]
ajaiswal has quit [*.net *.split]
Musashi007_ is now known as Musashi007
<shevy> hmm or was it space quest
mozzarella has joined #ruby
Thr3d_ has joined #ruby
Dwarf has joined #ruby
northfurr has quit [Quit: northfurr]
<Ox0dea> shevy: Tic-Tac-Toe *is* multiplayer?
sevenseacat has joined #ruby
<al2o3-cr> Ox0dea: But you might have a voice?
Rickmasta has joined #ruby
Gadgetoid has joined #ruby
monsieurp has joined #ruby
_axx has joined #ruby
ccooke has joined #ruby
ajaiswal has joined #ruby
matti has joined #ruby
northfurr has joined #ruby
nisstyre has joined #ruby
<shevy> Ox0dea yeah the same way how chess is. thousand of people play it simultaneously
hmsimha_ has quit [Ping timeout: 265 seconds]
<Ox0dea> Ah, Tic-Tac-Toe with move consensus, then.
<Ox0dea> Twitch Plays Tic-Tac-Toe.
<shevy> I've been watching twitch solo gamers!
gener1c has quit [Ping timeout: 250 seconds]
<pontiki> why?
terrellt has joined #ruby
<shevy> mostly for the commentary
tubulife- has joined #ruby
<shevy> so I was more listening than watching actually
bweston has joined #ruby
Stany has joined #ruby
matled- has joined #ruby
braincrash has quit [Quit: bye bye]
tenderlo_ has joined #ruby
Rollabun_ has joined #ruby
majjoha has joined #ruby
csaunders_ has quit [Ping timeout: 265 seconds]
scottstamp has quit [Ping timeout: 265 seconds]
shinnya has quit [Ping timeout: 265 seconds]
lokulin has quit [Ping timeout: 265 seconds]
dreinull75 has quit [Ping timeout: 265 seconds]
brainslug has quit [Ping timeout: 265 seconds]
okdas has quit [Ping timeout: 265 seconds]
justinmcp_ has joined #ruby
mblagden_ has joined #ruby
bubbys has quit [Ping timeout: 265 seconds]
_liquid_ has quit [Ping timeout: 265 seconds]
mblagden has quit [Ping timeout: 265 seconds]
gener1c has joined #ruby
danshultz has quit [Ping timeout: 265 seconds]
jamo__ has quit [Ping timeout: 265 seconds]
Tamae has quit [Ping timeout: 265 seconds]
tenderlove has quit [Ping timeout: 265 seconds]
pandaant has quit [Ping timeout: 265 seconds]
Vile` has quit [Ping timeout: 265 seconds]
existensil has quit [Ping timeout: 265 seconds]
tubuliferous has quit [Ping timeout: 265 seconds]
bnagy has quit [Ping timeout: 265 seconds]
Skelz0r has quit [Ping timeout: 265 seconds]
peterhu has quit [Ping timeout: 265 seconds]
ec\_ has quit [Ping timeout: 265 seconds]
mblagden1 has quit [Ping timeout: 265 seconds]
matled has quit [Ping timeout: 265 seconds]
Kharma has quit [Ping timeout: 265 seconds]
petridish has quit [Ping timeout: 265 seconds]
Lycanii_ has joined #ruby
matled- is now known as matled
nisstyre has quit [Ping timeout: 265 seconds]
integralequation has quit [Ping timeout: 265 seconds]
Lycanii has quit [Ping timeout: 265 seconds]
slavox has quit [Ping timeout: 265 seconds]
Rollabunna has quit [Ping timeout: 265 seconds]
Encapsulation has quit [Ping timeout: 265 seconds]
bweston92 has quit [Ping timeout: 265 seconds]
jidar has quit [Ping timeout: 265 seconds]
DanKnox has quit [Ping timeout: 265 seconds]
gnarf has quit [Ping timeout: 265 seconds]
justinmcp has quit [Ping timeout: 265 seconds]
BraddPitt has quit [Ping timeout: 265 seconds]
bradland has quit [Ping timeout: 265 seconds]
mrsolow has quit [Ping timeout: 265 seconds]
Vile` has joined #ruby
Skelz0r has joined #ruby
peterhu has joined #ruby
ec\ has joined #ruby
bnagy has joined #ruby
braincrash has joined #ruby
mblagden has joined #ruby
jamo_ has joined #ruby
pandaant has joined #ruby
phutchins has quit [Ping timeout: 255 seconds]
bradland has joined #ruby
majjoha has quit [Ping timeout: 255 seconds]
roxtrongo has joined #ruby
Kuukunen has joined #ruby
csaunders has joined #ruby
okdas has joined #ruby
okdas has joined #ruby
DanKnox has joined #ruby
brainslug has joined #ruby
danshultz has joined #ruby
gnarf has joined #ruby
Omni_ has joined #ruby
<Ox0dea> I wish this hadn't happened. :/
<Ox0dea> It would be nice if Proc invocation could be indistinguishable from method calls.
baroquebobcat has joined #ruby
<[k-> :((((
EllisTAA has joined #ruby
<Ox0dea> inorite
EllisTAA has joined #ruby
<sevenseacat> *sees parse.y and runs screaming*
<[k-> this was 9 years ago
scripore has quit [Quit: This computer has gone to sleep]
<EllisTAA> the liskov substitution principle states “objects in a program should be replaceable with instances of their subtypes without altering the correctness of that program.” — does this mean that the method i write should not depend on a specific instance of an object but any instance of that class?
evillution has joined #ruby
<Ox0dea> [k-: 1.9.3 is kill for a reason.
shred45 has joined #ruby
<Ox0dea> EllisTAA: LSP is why #each is so damned useful.
integralequation has joined #ruby
<EllisTAA> i don’t understand the ‘…instances of their subtypes ...'
<EllisTAA> is lsp releated to each because we can use each on hashes and arrays or bc each can be used on any array?
<Ox0dea> The former.
jidar has joined #ruby
existensil has joined #ruby
Encapsulation has joined #ruby
baroquebobcat has quit [Client Quit]
hydrozen has joined #ruby
bmurt has joined #ruby
<al2o3-cr> Encapsulation: where've you been hiding?
<EllisTAA> so is the LSP saying that a method should work with an object and everything that inherits from it?
bubbys has joined #ruby
nisstyre has joined #ruby
<Ox0dea> EllisTAA: Yes, but it doesn't preclude the subclasses from providing their own definitions where appropriate.
<EllisTAA> in the case that a subclass provided their own definition of a method would that be an example of Open Closed Principle
failshell has joined #ruby
scripore has joined #ruby
<Ox0dea> Did #ruby just become a study group? :P
<Aeyrix> >2006
<Aeyrix> h e l p
<EllisTAA> Ox0dea: :P
lokulin has joined #ruby
failshell has quit [Ping timeout: 240 seconds]
opensource_ninja has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sepp2k has quit [Read error: Connection reset by peer]
Kellin has joined #ruby
<Newtonianb> I have a hash I'm trying to write to file but it keeps wrapping it in [{...}] how can I just dumpt out the hash without the enclosed square brackets
<Newtonianb> File.open(outputFile, 'w') { |file| file.write(hash.to_json) }
skarn has joined #ruby
<sevenseacat> then your hash isnt a hash
<Newtonianb> when I puts it it shows it without the square brackets though
<sevenseacat> puts will print out a string representation of it
<sevenseacat> try actually inspecting it, ie. hash.class
kgirthofer_ has quit [Ping timeout: 246 seconds]
<Newtonianb> ah ya it says Array
scripore has quit [Quit: This computer has gone to sleep]
<sevenseacat> :)
<Newtonianb> :/ so I guess I can just do .to_s ?
<sevenseacat> err, no
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
<sevenseacat> are you supposed to have a hash instead of a narray? fix your code so you do?
<Newtonianb> hash = Dir["#{src}/*.json"].map { |f| JSON.parse(File.read(f)) }.flatten
<Newtonianb> I'm merging all JSON files in a directory then I want to write hash back out
Antiarc has joined #ruby
<sevenseacat> flatten in this case doesnt do what you think it does
<shevy> Newtonianb you have a hash in an array there
VeryBewitching has quit [Quit: Konversation terminated!]
<Newtonianb> It seems like it yup, I don't want the array though, how do I dump the hash I just index first element of the array? Its starting to feel I'm not doing this json merge properly?
<[k-> &ri Array#flatten Hash#merge
<shevy> you would do it properly if you'd have a hash right?
opensource_ninja has quit [Ping timeout: 250 seconds]
<sevenseacat> Newtonianb: you're not merging anything
<shevy> so if your hash is the first element of your array, reference to it, then you have your hash
sdothum has quit [Ping timeout: 240 seconds]
<Newtonianb> All my json files being combined are just a flat key:value, I'm trying to combine them all into one json
<sevenseacat> nothing is being combined anywhere
<shevy> hehe
<Newtonianb> wait really? I though it was, let me double check
hydrozen has quit [Quit: Textual IRC Client: www.textualapp.com]
<Newtonianb> ah ya right now it's just appending each json into an array of hash
codecop has joined #ruby
<sevenseacat> aye.
segfalt has quit [Quit: segfalt]
bruno- has joined #ruby
<Newtonianb> Should I tweak my map loop or run something like this at the end a.reduce Hash.new, :merge
<shevy> what is that
<Newtonianb> I just found out it seems to do what I want on my array of hashes combines it to one hash
shred45 has quit [Quit: WeeChat 1.3]
<Ox0dea> Newtonianb: You can just say `a.reduce(:merge)`.
phutchins has joined #ruby
gix has quit [Ping timeout: 246 seconds]
<Newtonianb> awesome thanks! now I got a line liner for this all Dir["#{src}/*.json"].map { |f| JSON.parse(File.read(f)) }.flatten.reduce(:merge)
<Ox0dea> Yay, one-liners!
<Ox0dea> /s
<Newtonianb> thank you @sevenseacat @Ox0dea @shevy
<Ox0dea> Newtonianb: #flat_map > #map + #flatten.
<Newtonianb> cool!!
<Ox0dea> Yay, Ruby!
krz has quit [Ping timeout: 246 seconds]
bruno- has quit [Ping timeout: 256 seconds]
<Newtonianb> yup!!
tubuliferous_ has quit [Ping timeout: 255 seconds]
iamninja has quit [Read error: Connection reset by peer]
gix has joined #ruby
iamninja has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
hololeap has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
houhouli_ has joined #ruby
mrityunjay has joined #ruby
auzty has joined #ruby
auzty has quit [Max SendQ exceeded]
auzty has joined #ruby
auzty has quit [Max SendQ exceeded]
oo_ has quit [Remote host closed the connection]
bmurt has quit []
auzty has joined #ruby
auzty has quit [Max SendQ exceeded]
houhoulis has quit [Ping timeout: 250 seconds]
oo_ has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
auzty has joined #ruby
MasterPiece has joined #ruby
<Newtonianb> Is there a way to hook on to rube execution so I can display in my console some automatic logger saying 'running method xxx' without polluting my code with puts everywhere
<Newtonianb> something along the lines of __call in php
I has joined #ruby
I is now known as Guest2831
<Radar> why do you want to do that?
northfurr has quit [Quit: northfurr]
<[k-> set_trace_func
catcher has joined #ruby
<Ox0dea> &ri TracePoint
<catcher> hey guys, need to turn this string "key1: val1, key2: val2" into hash { key1: "val1", key2: "val2" }
<catcher> recommendations?
gambl0re has joined #ruby
<Newtonianb> thx
majjoha has joined #ruby
<Ox0dea> Newtonianb: https://eval.in/429091
<Ox0dea> catcher: How did you end up in this situation?
MasterPiece has quit [Remote host closed the connection]
<Newtonianb> perfect just what I needed thank you @Ox0dea
<catcher> Ox0dea: mapping third-party data
<Ox0dea> catcher: Do you trust this third party?
<catcher> Ox0dea: yes, it'll be consistent
<Ox0dea> catcher: Is `val1` a string without quotes, then?
<catcher> Ox0dea: correct, single string
<catcher> w/ no quotes
segfalt has joined #ruby
majjoha has quit [Ping timeout: 240 seconds]
phutchins has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
<Ox0dea> catcher: Well, I would've suggested wrapping it in curly braces and using #eval, but that there are no quotes gums up the works a bit.
Lycanii_ has quit [Quit: Konversation terminated!]
<catcher> ah yeah
howdoi has joined #ruby
<Ox0dea> >> 'key1: val1, key2: val2'.split(', ').map { |kv| kv.split(': ') }.to_h # catcher
<ruboto> Ox0dea # => {"key1"=>"val1", "key2"=>"val2"} (https://eval.in/429099)
<Ox0dea> I don't see why that shouldn't suffice if the data is consistently formatted.
Swappticon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
hololeap has joined #ruby
fedexo has joined #ruby
<catcher> Ox0dea: yep, looks like that will indeed cover it, thanks!
<Ox0dea> Sure thing.
Oog_ has joined #ruby
tkuchiki_ has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
bootstrappm has quit [Quit: Leaving.]
tkuchiki_ has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
bootstrappm has joined #ruby
Rurik has quit [Ping timeout: 246 seconds]
moeabdol has joined #ruby
sevenseacat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 268 seconds]
Rurik has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ropeney has joined #ruby
lolmaus has joined #ruby
devbug has joined #ruby
j416 has joined #ruby
romero has joined #ruby
romero is now known as Guest81036
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
oddalot has joined #ruby
devbug_ has quit [Ping timeout: 260 seconds]
Musashi007 has quit [Ping timeout: 246 seconds]
weemsledeux has joined #ruby
ht__ has joined #ruby
weemsledeux has quit [Client Quit]
mary5030 has quit [Ping timeout: 250 seconds]
Oog_ has quit []
banjara has joined #ruby
dgutierrez1287 has joined #ruby
segfalt has quit [Quit: segfalt]
majjoha has joined #ruby
theery has joined #ruby
dgutierrez1287 has quit [Ping timeout: 255 seconds]
sevenseacat has joined #ruby
Swappticon has joined #ruby
darkf has joined #ruby
CHVNX has quit [Ping timeout: 240 seconds]
theery has quit [Remote host closed the connection]
dima_ has quit [Ping timeout: 255 seconds]
eggoez has quit [Ping timeout: 250 seconds]
freerobby has quit [Quit: Leaving.]
Oog_ has joined #ruby
eggoez has joined #ruby
flughafen has quit [Ping timeout: 246 seconds]
iamninja has quit [Read error: Connection reset by peer]
arescorpio has joined #ruby
iamninja has joined #ruby
vdamewood has joined #ruby
dymk_ is now known as dymk
weemsledeux has joined #ruby
_liquid_ has joined #ruby
bootstrappm has quit [Quit: Leaving.]
toretore has quit [Quit: This computer has gone to sleep]
UtkarshRay has joined #ruby
bootstrappm has joined #ruby
weemsledeux has quit [Client Quit]
tmtwd has joined #ruby
roxtrongo has quit [Remote host closed the connection]
fedexo has quit [Ping timeout: 246 seconds]
chipotle has quit [Quit: cheerio]
KnownSyntax_ has quit [Quit: Leaving]
KnownSyntax has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has quit [Remote host closed the connection]
stardiviner has quit [Ping timeout: 244 seconds]
oo_ has joined #ruby
flughafen has joined #ruby
chipotle has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Spami has joined #ruby
arescorpio has quit [Quit: Leaving.]
sevenseacat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
banjara has quit [Quit: Leaving.]
northfurr has joined #ruby
catcher has quit [Quit: catcher]
pyon has quit [Quit: fix config]
tkuchiki has joined #ruby
sevenseacat has joined #ruby
BraddPitt has joined #ruby
oo_ has quit [Ping timeout: 272 seconds]
bootstrappm has quit [Quit: Leaving.]
amoeba has joined #ruby
scottstamp has joined #ruby
bootstrappm has joined #ruby
pyon has joined #ruby
pipework has quit [K-Lined]
voxxit has quit [K-Lined]
pipework has joined #ruby
voxxit has joined #ruby
jordanm has joined #ruby
emba has joined #ruby
Oog_ has quit []
Oog_ has joined #ruby
Oog_ has quit [Client Quit]
riotjones has joined #ruby
zenguy_pc has quit [Read error: Connection reset by peer]
kgirthofer has joined #ruby
Guest2831 has quit [Quit: This computer has gone to sleep]
aaeron has quit [Quit: Leaving.]
CHVNX has joined #ruby
zenguy_pc has joined #ruby
yardenbar has joined #ruby
opensource_ninja has joined #ruby
Kharma has joined #ruby
mrsolow has joined #ruby
emba has quit [Ping timeout: 265 seconds]
riotjones has quit [Ping timeout: 264 seconds]
TheWhip_ has joined #ruby
psy_ has joined #ruby
psy_ has quit [Max SendQ exceeded]
khebbie has joined #ruby
psy_ has joined #ruby
f4cl3y has joined #ruby
n008f4g_ has joined #ruby
<Newtonianb> newStr = str.sub! '...', '.' How can I NOT override str here and just get the returned value?
<TheWhip_> hey
<flughafen> hey shevy sevenseacat certainty
roxtrongo has joined #ruby
<baweaver> </3
duncannz has joined #ruby
Aearnus has joined #ruby
dhjondoh has joined #ruby
bigredbo_ has quit [Remote host closed the connection]
<Aearnus> I want to find a substring by specific text that surrounds it, how would I do that?
<Aearnus> Could I use regex?
<flughafen> regex?
<Aearnus> Alright, I guess that answers that haha
bigredboots has joined #ruby
khebbie has quit [Ping timeout: 268 seconds]
Oog_ has joined #ruby
Mendenhall has joined #ruby
<baweaver> expected input and output?
failshell has joined #ruby
<Ox0dea> Newtonianb: For really serious, though?
<Aearnus> I think string.scan is exactly what I need
<baweaver> >> /nope(<?wins>.+)nope/.match('nope ohaithar nope')
<ruboto> baweaver # => nil (https://eval.in/429111)
tejasmanohar has joined #ruby
<Ox0dea> Aearnus: You want to find multiple matches, then?
<baweaver> scan then
<Aearnus> no, I only need one
<Ox0dea> Then you don't want #scan.
<Aearnus> okay
<Ox0dea> >> 'footargetbar'[/foo(.+)bar/, 1] # Aearnus
<ruboto> Ox0dea # => "target" (https://eval.in/429112)
<Aearnus> Ox0dea: whaaaaat, you can do that?
<Ox0dea> Nah, I lied.
<Aearnus> That's awesome!
EllisTAA has quit [Quit: EllisTAA]
<baweaver> regex capture groups would be an interesting read for later as well.
<Aearnus> Definitely, I need to read into regex more
Swappticon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
failshell has quit [Ping timeout: 244 seconds]
evillution has quit [Quit: evillution]
zlogan has joined #ruby
<Aearnus> Ox0dea: That works perfectly, thanks
zlogan has quit [Remote host closed the connection]
OrbitalKitten has joined #ruby
<Ox0dea> Aearnus: Happy to help.
tejasmanohar has quit [Quit: tejasmanohar]
aganov has joined #ruby
<[k-> Newtonianb: String#sub
<Ox0dea> >> String.instance_methods.include?(:yellow_sub)
<ruboto> Ox0dea # => false (https://eval.in/429121)
n008f4g_ has quit [Ping timeout: 268 seconds]
<Ox0dea> Ruby is anti-Beatles?
khebbie has joined #ruby
s00pcan has quit [Ping timeout: 268 seconds]
yeticry has quit [Ping timeout: 246 seconds]
yeticry has joined #ruby
michael_mbp has quit [Excess Flood]
ndrei has quit [Ping timeout: 246 seconds]
devbug_ has joined #ruby
saddad has quit [Ping timeout: 240 seconds]
tagrudev has joined #ruby
michael_mbp has joined #ruby
codenapper has joined #ruby
devbug has quit [Ping timeout: 264 seconds]
mary5030 has joined #ruby
opensource_ninja has quit [Ping timeout: 244 seconds]
stardiviner has joined #ruby
<baweaver> >>class String;def yellow_sub(*args, &block);"we all live in a yellow #{sub(*args, &block)}marine" end;end; 'foo'.yellow_sub(/oo/, 'bar')
<ruboto> baweaver # => "we all live in a yellow fbarmarine" (https://eval.in/429122)
bruno- has joined #ruby
<baweaver> Ox0dea:
<sevenseacat> wat
mary5030 has quit [Ping timeout: 264 seconds]
craysiii has quit [Remote host closed the connection]
<baweaver> wat indeed
oo_ has joined #ruby
bruno- has quit [Ping timeout: 260 seconds]
baweaver has left #ruby [#ruby]
baweaver has joined #ruby
KensoDev has quit []
morenoh153 has joined #ruby
<morenoh153> hello all
<Ox0dea> baweaver: Needs more "\e[33;1m", methinks.
<baweaver> indeed
<baweaver> morenoh153: alo
<Ox0dea> morenoh153: Ahoy!
Alina-malina has joined #ruby
nux443 has joined #ruby
<baweaver> Are we doing pirates now?
<Ox0dea> baweaver: "Hello" is actually pretty recent.
<Ox0dea> The inventor of the telephone wanted us to answer with "Ahoy".
weemsledeux has joined #ruby
djbkd has joined #ruby
<baweaver> Hm, that rings a Bell
roxtrongo has quit [Remote host closed the connection]
tkuchiki has quit [Quit: Leaving...]
tkuchiki has joined #ruby
<Ox0dea> Fun fact: Instagram's name is an homage to AGB.
dfockler has quit [Ping timeout: 244 seconds]
<Ox0dea> Learned that in a /r/shittyaskhistory post.
northfurr has quit [Quit: northfurr]
AlexAltea has joined #ruby
<baweaver> ironic, no?
NeverDie has quit [Read error: Connection reset by peer]
stardiviner has quit [Quit: Weird in coding now, or make love, only two things push me away from IRC.]
khebbie has quit [Remote host closed the connection]
evillution has joined #ruby
dionysus69 has joined #ruby
tmtwd has quit [Ping timeout: 264 seconds]
NeverDie has joined #ruby
khebbie has joined #ruby
workmad3 has joined #ruby
djbkd has quit [Remote host closed the connection]
acke has joined #ruby
evillution has quit [Quit: evillution]
workmad3 has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has quit [Quit: cheerio]
nux443 has quit [Quit: leaving]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
ChasedSpade has quit [Remote host closed the connection]
Klumben has quit [Ping timeout: 246 seconds]
hololeap has quit [Ping timeout: 256 seconds]
ledestin has quit [Ping timeout: 255 seconds]
bmn has quit [Ping timeout: 250 seconds]
alem0lars has quit [Ping timeout: 246 seconds]
ChasedSpade has joined #ruby
mblagden has quit [Ping timeout: 264 seconds]
Klumben has joined #ruby
mblagden has joined #ruby
Sou|cutter has quit [Ping timeout: 240 seconds]
michael_mbp has quit [Quit: ZNC - http://znc.sourceforge.net]
michael_mbp has joined #ruby
vdamewood has quit [Quit: Life beckons.]
alem0lars has joined #ruby
bmn has joined #ruby
riotjones has joined #ruby
swgillespie has joined #ruby
oo_ has quit [Remote host closed the connection]
bitfukr has joined #ruby
krz has joined #ruby
oo_ has joined #ruby
devoldmx has quit [Remote host closed the connection]
bitfukr has quit [Quit: leaving]
michael_mbp has quit [Excess Flood]
mrityunjay has quit [Ping timeout: 260 seconds]
michael_mbp has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
firstdayonthejob has joined #ruby
tkuchiki has quit [Quit: Leaving...]
tkuchiki has joined #ruby
bigkevmcd has joined #ruby
Queeniebee has quit [Ping timeout: 256 seconds]
Newtonianb has quit [Ping timeout: 264 seconds]
arup_r has joined #ruby
majjoha has quit [Ping timeout: 255 seconds]
nitrix has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
eGGsha has joined #ruby
Rurik has quit [Ping timeout: 244 seconds]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
astrobun_ has joined #ruby
Salehi has joined #ruby
mrityunjay has joined #ruby
skullcrasher has joined #ruby
astrobun_ has quit [Ping timeout: 264 seconds]
astrobun_ has joined #ruby
I has joined #ruby
xwct has quit [Ping timeout: 250 seconds]
I is now known as Guest46998
dionysus69 has quit [Ping timeout: 272 seconds]
Spami has quit [Quit: This computer has gone to sleep]
ferhaty has joined #ruby
Guest69233 has joined #ruby
Guest69233 is now known as nitrix
tmtwd has joined #ruby
verdoc_ is now known as verdoc
codecop has quit [Remote host closed the connection]
roxtrongo has joined #ruby
ferhaty has quit [Max SendQ exceeded]
ledestin has joined #ruby
OrbitalKitten has joined #ruby
eightfold has joined #ruby
Strygwyr has joined #ruby
ndrei has joined #ruby
majjoha has joined #ruby
tmtwd has quit [Ping timeout: 260 seconds]
mary5030 has joined #ruby
gambl0re has quit [Ping timeout: 272 seconds]
tvw has joined #ruby
greenarrow has joined #ruby
stardiviner has joined #ruby
roxtrongo has quit [Ping timeout: 244 seconds]
hololeap has joined #ruby
skakri` is now known as skakri
dgutierrez1287 has joined #ruby
andikr has joined #ruby
vmatiyko has joined #ruby
Strygwyr has left #ruby [#ruby]
vondruch has quit [Ping timeout: 240 seconds]
dgutierrez1287 has quit [Ping timeout: 246 seconds]
Rollabun_ has quit [Remote host closed the connection]
psy_ has quit [Ping timeout: 272 seconds]
hmsimha_ has joined #ruby
ivanf has joined #ruby
nitrix has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 246 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
terlar has joined #ruby
ruurd has joined #ruby
Motoservo has quit [Remote host closed the connection]
firstdayonthejob has quit [Ping timeout: 272 seconds]
bazbing80 has joined #ruby
terlar has quit [Quit: WeeChat 1.3]
sundhell has joined #ruby
sundhell has quit [Client Quit]
devoldmx has joined #ruby
towski_ has joined #ruby
joonty has joined #ruby
devoldmx has quit [Ping timeout: 250 seconds]
towski_ has quit [Remote host closed the connection]
skullcrasher has quit [Remote host closed the connection]
Hounddog has joined #ruby
skullcrasher has joined #ruby
Spami has joined #ruby
joonty has quit [Quit: joonty]
skullcrasher has quit [Client Quit]
gamov has joined #ruby
skullcrasher_ has joined #ruby
bruno- has joined #ruby
vondruch has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
wpp has joined #ruby
Hounddog has quit [Ping timeout: 244 seconds]
Hounddog has joined #ruby
CloCkWeRX has quit [Ping timeout: 260 seconds]
sevenseacat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno- has quit [Ping timeout: 246 seconds]
joonty has joined #ruby
exadeci has joined #ruby
nitrix has joined #ruby
Guest46998 has quit [Quit: This computer has gone to sleep]
patrick_star has quit [Ping timeout: 244 seconds]
vmatiyko has quit [Ping timeout: 250 seconds]
eGGsha is now known as eGGshke
<shevy> hmm
DeweyD has joined #ruby
leat has quit [Remote host closed the connection]
DeweyD has quit [Client Quit]
lsmola has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
robbyoconnor has joined #ruby
Ketchy has quit [Quit: Leaving]
arup_r has quit [Remote host closed the connection]
Pupeno has joined #ruby
eightfold has quit [Quit: eightfold]
eGGshke is now known as eGGsha
timonv has joined #ruby
khebbie_ has joined #ruby
khebbie has quit [Ping timeout: 246 seconds]
leat has joined #ruby
robbyoconnor has quit [Remote host closed the connection]
dhjondoh has joined #ruby
robbyoconnor has joined #ruby
eightfold has joined #ruby
arup_r has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruurd has joined #ruby
<shevy> say if you include 10 different gems
<shevy> and you suspect that one of them slows down things... what would be a convenient way to test that?
Oog_ has quit []
webhat_ is now known as webhat
webhat has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
bootstrappm has quit [Quit: Leaving.]
webhat has joined #ruby
nofxx has quit [Ping timeout: 252 seconds]
ghr has joined #ruby
yeticry has quit [Ping timeout: 260 seconds]
tonios57 has joined #ruby
sagittarian has joined #ruby
face has joined #ruby
faces has quit [Ping timeout: 246 seconds]
<Ox0dea> shevy: gems.each { |gem| s = Time.now; require gem; puts "#{gem} took #{Time.now - s}s to load." }
yeticry has joined #ruby
<Ox0dea> The culprit ought to stand out.
leat has quit [Remote host closed the connection]
Sou|cutter has joined #ruby
zacts has quit [Read error: Connection reset by peer]
<shevy> hmm
zacts has joined #ruby
* apeiros had a gem once which essentially did Dir.glob("/**/*.rb")
<shevy> huh
<shevy> 1.3635e-05s
spence6245_ has joined #ruby
Alina-malina has quit [Ping timeout: 244 seconds]
bMalum has joined #ruby
<[k-> 0.00001365s
marr has joined #ruby
<[k-> i missed a three there
<shevy> yeah
<shevy> half the display has those 0.000 and the other half those e-
<[k-> the more zeros the better
<[k-> the higher e- the better
<shevy> %.12f
<shevy> yeah
krisquigley has joined #ruby
<shevy> I have almost found the snail
<spence6245_> any one up for some code katas or paired programming?
<shevy> 0.047573305000000s hmm the gist gem
<shevy> oh... and one of my old gems
sdfgsdfg has joined #ruby
fxn has joined #ruby
spence6245_ has quit [Quit: Page closed]
jgt has joined #ruby
yfeldblum has joined #ruby
<shevy> the larger the gem, the more files it has
jgt has quit [Read error: Connection reset by peer]
<shevy> the longer it takes to load it :)
<Ox0dea> That is not an invariant.
chthon has joined #ruby
<[k-> your face is an invariant
<shevy> strangely enough the gist gem loads quite slowly too
<shevy> hmm perhaps because it loads other stuff
<shevy> cool... I even load the same gem twice...
<shevy> well that was fun; I optimized about +0.003 seconds... I think I spent more time than gaining from this!
jgt has joined #ruby
<Ox0dea> shevy: How did you load the same gem twice?
<Ox0dea> >> require 'json'; require 'json'
<ruboto> Ox0dea # => false (https://eval.in/429179)
mike___1234 has joined #ruby
oo_ has quit [Remote host closed the connection]
khebbie_ has quit [Remote host closed the connection]
yeticry has quit [Ping timeout: 250 seconds]
Aearnus has quit [Quit: Leaving]
Rurik has joined #ruby
oo_ has joined #ruby
khebbie has joined #ruby
wildlander has joined #ruby
veg has quit [Ping timeout: 268 seconds]
yeticry has joined #ruby
Motoservo has joined #ruby
anisha has joined #ruby
yeticry has quit [Ping timeout: 264 seconds]
yeticry has joined #ruby
last_staff has joined #ruby
meph has joined #ruby
mclee_ has quit [Ping timeout: 240 seconds]
Hrorek has joined #ruby
Rurik has quit [Read error: Connection reset by peer]
<shevy> Ox0dea I had a big array of gems to load which had one duplicate
<apeiros> yard doesn't happen to process inline dot graphs somehow?
<Ox0dea> Sure, but that shouldn't've mattered.
<Ox0dea> shevy: Kernel#require does deduplication.
Igorshp has joined #ruby
TheHodge has joined #ruby
evillution has joined #ruby
astrobun_ has quit [Remote host closed the connection]
evillution has quit [Client Quit]
<apeiros> shevy: that only means you required it twice. it will only load once, though.
<apeiros> you can require as often as you want. if it is already required, it becomes a no-op.
dumdedum has joined #ruby
dhtns has left #ruby ["Part"]
Siyfion has joined #ruby
araujo has joined #ruby
araujo has quit [Max SendQ exceeded]
Hrorek is now known as Rurik
Rurik is now known as Guest30083
Guest30083 has quit [Changing host]
Guest30083 has joined #ruby
roxtrongo has joined #ruby
Guest30083 is now known as Rurik
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #ruby
qwertme has joined #ruby
jakzn has joined #ruby
qwertme has quit [Client Quit]
mprelude has joined #ruby
qwertme has joined #ruby
platzhirsch has joined #ruby
skullcrasher_ has quit [Remote host closed the connection]
<yorickpeterse> morning
<ljarvis> hi
roxtrongo has quit [Ping timeout: 272 seconds]
emba has joined #ruby
leafybasil has quit [Ping timeout: 240 seconds]
emba has quit [Remote host closed the connection]
eightfold has quit [Quit: eightfold]
ereslibre has quit [Ping timeout: 246 seconds]
araujo has joined #ruby
araujo has joined #ruby
startupality has joined #ruby
gamov has quit [Quit: gamov]
jakzn has quit [Quit: Page closed]
DoubleMalt has joined #ruby
TheWhip_ has quit [Remote host closed the connection]
solars has joined #ruby
eGGsha is now known as eGGshke
khebbie_ has joined #ruby
leat has joined #ruby
arup_r has quit [Remote host closed the connection]
qwertme has quit [Quit: Textual IRC Client: www.textualapp.com]
Rollabunna has joined #ruby
tubulife- has quit [Max SendQ exceeded]
Mendenhall has quit [Ping timeout: 252 seconds]
astrobun_ has joined #ruby
fella5s has joined #ruby
khebbie has quit [Ping timeout: 264 seconds]
tubuliferous has joined #ruby
Rollabunna has quit [Ping timeout: 265 seconds]
leat has quit [Remote host closed the connection]
AlexAltea has quit [Read error: Connection reset by peer]
leafybasil has joined #ruby
leat has joined #ruby
hololeap has quit [Ping timeout: 265 seconds]
AlexAltea has joined #ruby
khebbie has joined #ruby
khebbie_ has quit [Ping timeout: 240 seconds]
krz has quit [Quit: WeeChat 1.2]
Rurik has quit [Read error: Connection reset by peer]
Rurik has joined #ruby
ereslibre has joined #ruby
ereslibre has quit [Remote host closed the connection]
leat has quit [Remote host closed the connection]
leat has joined #ruby
khebbie has quit [Remote host closed the connection]
iamninja has quit [Ping timeout: 272 seconds]
faces has joined #ruby
arup_r has joined #ruby
face has quit [Ping timeout: 244 seconds]
arup_r has quit [Client Quit]
eGGshke is now known as eGGsha
devoldmx has joined #ruby
jokester has joined #ruby
<[k-> hi
hololeap has joined #ruby
<Ox0dea> Tell me why the technological singularity won't bother to fix its own buffer overflows.
arup_r has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
emba has joined #ruby
iamninja has joined #ruby
Blaguvest has joined #ruby
emba has quit [Remote host closed the connection]
emba has joined #ruby
<[k-> tell me why you have gotten into this tell me why phase
solocshaw has joined #ruby
solocshaw has quit [Remote host closed the connection]
Pumukel has joined #ruby
haraoka has quit [Ping timeout: 256 seconds]
houhouli_ has quit [Remote host closed the connection]
otherj has joined #ruby
Nowaker has quit [Ping timeout: 246 seconds]
Nowaker has joined #ruby
Mendenhall has joined #ruby
otherj has quit [Client Quit]
devbug_ has quit [Read error: Connection reset by peer]
timonv has quit [Ping timeout: 240 seconds]
Rurik has quit [Read error: Connection reset by peer]
kramsee has joined #ruby
kramsee has quit [Client Quit]
kramsee has joined #ruby
kramsee has quit [Client Quit]
kramsee has joined #ruby
Rurik has joined #ruby
shredding has joined #ruby
eGGsha is now known as eGGshke
iamninja has quit [Ping timeout: 268 seconds]
startupality_ has joined #ruby
startupality has quit [Ping timeout: 252 seconds]
startupality_ is now known as startupality
meph has quit [Remote host closed the connection]
patrick_star has joined #ruby
bruno- has joined #ruby
greenarrow has quit [Quit: 500]
khebbie has joined #ruby
timonv has joined #ruby
astrobun_ has quit [Remote host closed the connection]
eGGshke is now known as eGGsha
bruno- has quit [Ping timeout: 240 seconds]
greenarrow has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
hololeap has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
bruno- has joined #ruby
astrobu__ has joined #ruby
Igorshp has quit [Read error: Connection reset by peer]
bruno- has quit [Ping timeout: 260 seconds]
Igorshp has joined #ruby
claw has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
emba has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 260 seconds]
Porfa has joined #ruby
My_Hearing is now known as Mon_Ouie
dhjondoh has quit [Quit: dhjondoh]
<yorickpeterse> yay race conditions
Stalkr_ has joined #ruby
claw has joined #ruby
Stalkr^ has joined #ruby
ekleog_ is now known as ekleog
glenn_ has quit [Quit: Konversation terminated!]
<Porfa> hello's :)
FernandoBasso has joined #ruby
jgt has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Ping timeout: 246 seconds]
dhjondoh has joined #ruby
Stalkr_ has quit [Ping timeout: 240 seconds]
dhjondoh has quit [Client Quit]
emba has joined #ruby
<shevy> hi Forpa
drbrain has quit [Ping timeout: 246 seconds]
<[k-> hi vhesy
segfalt has joined #ruby
<[k-> hm, cheesy
skade has joined #ruby
skade has quit [Read error: Connection reset by peer]
dhjondoh has joined #ruby
<shevy> so vhesy
<shevy> this is a mickey mouse picture right?
<shevy> or it is a skater
* [k- leaves shevy to think about it alone
drbrain has joined #ruby
bruno-_ has joined #ruby
UtkarshRay has quit [Ping timeout: 244 seconds]
bruno- has quit [Read error: Connection reset by peer]
sevenseacat has joined #ruby
doddok has joined #ruby
bruno-_ has quit [Ping timeout: 272 seconds]
skade has joined #ruby
bruno- has joined #ruby
skade has quit [Client Quit]
platzhirsch has quit [Ping timeout: 250 seconds]
astrobu__ has quit [Remote host closed the connection]
devoldmx has joined #ruby
qiukun has quit [Ping timeout: 256 seconds]
bruno- has quit [Ping timeout: 256 seconds]
bruno- has joined #ruby
workmad3 has joined #ruby
ndrei has quit [Read error: Connection reset by peer]
<shevy> hmmmmm
<shevy> .end_with? == '&'
devoldmx has quit [Ping timeout: 256 seconds]
sevenseacat has quit [Quit: .]
AxonetBE has joined #ruby
<[k-> .end_with? ?&
<[k-> returns a bool
bruno- has quit [Ping timeout: 264 seconds]
<AxonetBE> I have a router who can receive sms, now I want to thread them via a ruby application but I was wondering how to get sms list as fast as possible when there is a new sms arriving.
bruno- has joined #ruby
jeadre has joined #ruby
<AxonetBE> Do I have to cronjob? The bad thing about cronjobs is that the smallest interval is only 1 second
workmad3 has quit [Ping timeout: 264 seconds]
bigkevmcd has quit [Remote host closed the connection]
<AxonetBE> 1 minute *
workmad3 has joined #ruby
Porfa has quit [Quit: Porfa]
Trynemjoel has quit [Ping timeout: 264 seconds]
platzhirsch has joined #ruby
otherj has joined #ruby
bruno- has quit [Ping timeout: 260 seconds]
bruno- has joined #ruby
stamina has joined #ruby
bruno- has quit [Ping timeout: 252 seconds]
G has quit [Quit: leaving]
bruno- has joined #ruby
yu1in has joined #ruby
mclee_ has joined #ruby
bonhoeffer_ has joined #ruby
morenoh153 has quit [Ping timeout: 246 seconds]
konsolebox has joined #ruby
Trynemjoel has joined #ruby
astrobun_ has joined #ruby
bruno- has quit [Ping timeout: 252 seconds]
platzhirsch has quit [Ping timeout: 250 seconds]
timonv has quit [Ping timeout: 268 seconds]
bruno- has joined #ruby
eGGsha has quit [Ping timeout: 240 seconds]
bradland has quit [Ping timeout: 240 seconds]
bonhoeffer_ has quit [Client Quit]
bradland has joined #ruby
ndrei has joined #ruby
Brando753 has quit [Ping timeout: 250 seconds]
roxtrongo has joined #ruby
arup_r has quit [Remote host closed the connection]
rocknrollmarc has joined #ruby
arup_r has joined #ruby
bruno- has quit [Ping timeout: 252 seconds]
bweston92 has joined #ruby
Brando753 has joined #ruby
bruno- has joined #ruby
bweston has quit [Ping timeout: 240 seconds]
Stalkr^ has quit [Quit: Leaving...]
roxtrongo has quit [Ping timeout: 250 seconds]
Porfa has joined #ruby
astrobun_ has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 256 seconds]
tkuchiki has quit [Remote host closed the connection]
pandaant has quit [Remote host closed the connection]
eregon_ is now known as eregon
Rollabunna has joined #ruby
bruno- has joined #ruby
platzhirsch has joined #ruby
codecop has joined #ruby
PaulePan1er is now known as PaulePanter
Salehi has quit [Quit: Leaving]
<darix> AxonetBE: it depends on the tool receiving the sms
<darix> if it can call your ruby script directly
<darix> or write the sms to a pipe/socket where the ruby script is listening
bruno- has quit [Ping timeout: 252 seconds]
k3asd` has joined #ruby
Rollabunna has quit [Ping timeout: 252 seconds]
chthon has quit [Ping timeout: 244 seconds]
bruno- has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
faces has quit [Ping timeout: 240 seconds]
face has joined #ruby
eightfold has joined #ruby
<AxonetBE> darix: I is just a cgi bin script that I can call an get a list of the sms messages, I have to parse them after
<darix> so cronjob it is
claw has quit [Ping timeout: 240 seconds]
dhjondoh has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
emba has quit [Remote host closed the connection]
<yorickpeterse> well
<yorickpeterse> Today I got fucked over by eval + proc + Binding
<yorickpeterse> or so it seems
<yorickpeterse> yay for Ruby not having the ability to fully isolate procs from their enclosing scopes
<yorickpeterse> other than defining a dummy class and using its binding
jgt has joined #ruby
bruno- has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
eGGsha has joined #ruby
<[k-> example?
Mendenhall has quit [Ping timeout: 244 seconds]
astrobun_ has joined #ruby
<yorickpeterse> I'll have a commit in a few minutes
emba has joined #ruby
yu1in has left #ruby [#ruby]
ZenYung has joined #ruby
<ZenYung> Hey :)
jgt has quit [Ping timeout: 264 seconds]
<ZenYung> Is it possible to invoke a method on an object dynamically based on a string?
claw has joined #ruby
chthon has joined #ruby
<yorickpeterse> ZenYung: yes
<yorickpeterse> ZenYung: look into the "send" / "__send__" method
<yorickpeterse> & Object#send
<yorickpeterse> err
<yorickpeterse> &ri Object#send
<[k-> no, look at the public_send method
<[k-> public_send!!!
<ZenYung> ah, perfect.. thanks a lot!
<[k-> public_send!!!
<yorickpeterse> public_send would be better, but sometimes one does actually want to call a private method
<ZenYung> ah ok
<yorickpeterse> even considering all the risks that might bring
<ZenYung> What's the risk of calling a private method?
[k-_ has joined #ruby
<yorickpeterse> It could be removed at some point
<yorickpeterse> since it's a private method it's usually not considered part of the public/stable API
<ZenYung> I am not writing an API
<yorickpeterse> Thus an author might decide to rename it, remove it, etc, without telling users
<[k-> and, violating encapsulation is bad
<yorickpeterse> API is just a term, it's not limited to web APIs
lopin has quit [Read error: Connection reset by peer]
<yorickpeterse> Now to see how the hell I'm going to test this race condition
<[k-> spin up a million instances to test it
<ZenYung> ah I see
<yorickpeterse> [k-: Yeah euh that's not how race conditions work
<shevy> is .send or .public_send faster?
<yorickpeterse> It will reproduce it, since I can reproduce it using 4 threads, but it's not a reliable manner
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
sdothum has joined #ruby
joonty has quit [Quit: joonty]
<ZenYung> yorickpeterse: maybe you can do something with injecting sleep at the right point
Rurik has quit [Read error: Connection reset by peer]
<yorickpeterse> That doesn't make it more reliable, it only introduces more factors
Asher has quit [Read error: No route to host]
dorei has joined #ruby
<yorickpeterse> e.g. it might as well only occur when the stars are aligned
<yorickpeterse> If that were actually the case the only way to test it would be to actually align the stars
<ZenYung> I would say find a number of threads which increases the chance of the race condition to show up to about 99%, but I don't think it's a good unit test if it's based on probability
<yorickpeterse> Sure, it's a way of testing if it's there
<yorickpeterse> But you can't use it to prove/disprove anything
<yorickpeterse> Since it's based on probability, not fact
Asher has joined #ruby
<yorickpeterse> I know why it happens, but translating that to a test is really hard
Rurik has joined #ruby
<[k-_> * the expert shares his wisdom *
<yorickpeterse> A test that doesn't just bombard the code with threads that is
devoldmx has joined #ruby
<ZenYung> You could do some theoritically stuff and prove it with something like Hoare calculus
khebbie has quit [Remote host closed the connection]
shredding has quit [Ping timeout: 264 seconds]
<yorickpeterse> Hm, I _can_ grab a Binding from a Proc
<ZenYung> Thread interleavings can be manupulated, no?
<yorickpeterse> so I can at least assert it's not re-using the binding from the method that generated it
<ZenYung> mhm
ponga has joined #ruby
<yorickpeterse> Hm interesting, a Proc always seems to have its own Binding
<yorickpeterse> it probably inherits it, instead of taking it over directly
<yorickpeterse> bah
tkuchiki has joined #ruby
<ZenYung> yorickpeterse: Can't you use your hideous XML parser to unit test the race condition?
havenwood has joined #ruby
<yorickpeterse> "hideous"?
Gnomethrower has joined #ruby
<yorickpeterse> It's not that bad
<yorickpeterse> also, this _is_ a race condition in said library :P
stnly has quit [Ping timeout: 255 seconds]
devoldmx has quit [Ping timeout: 255 seconds]
chthon has quit [Ping timeout: 244 seconds]
last_staff has quit [Quit: vrooom]
<ZenYung> Well okay then
<yorickpeterse> I'll explain all this in my commit in a few minutes :P
<yorickpeterse> oh great
<ZenYung> :)
<yorickpeterse> Ruby 2.2 defines Binding#receiver
<yorickpeterse> but Rubinius only defines Binding#self
<yorickpeterse> meh
timonv has joined #ruby
iamninja has joined #ruby
<ZenYung> Rubinious?
<ZenYung> You got a to be kidding me
<yorickpeterse> and jruby 1.7 defines neither
<yorickpeterse> It's Rubinius
<yorickpeterse> I don't get why people use "Rubinious"
<ZenYung> Aren't that the MRI is dead people?
eGGsha is now known as eGGshke
eGGshke is now known as eGGsha
<yorickpeterse> Not that I know of
eGGsha is now known as eGGshke
eGGshke is now known as eGGsha
eGGsha is now known as eGGshke
khebbie has joined #ruby
ranchodev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<yorickpeterse> Hm, JRuby 9k at least has Binding#receiver
Voker57 has joined #ruby
astrobun_ has quit [Remote host closed the connection]
dumdedum is now known as blaxter
<yorickpeterse> Nothing in there says "MRI is dead"
<yorickpeterse> or "MRI is dead people"
<shevy> "Ruby is a dying language."
<ZenYung> These guys are just dangerous
<yorickpeterse> shevy: which is a very different claim
<ZenYung> I find it very questionable that you support them, but okay then
<yorickpeterse> and considering all the people moving away, I can't help but agree
<ZenYung> Moving where
<yorickpeterse> Node.js, Go, soon Rust, etc
<apeiros> yorickpeterse: what's up with people attacking you out of nowhere? o0
<ZenYung> Node.js? hah
<yorickpeterse> apeiros: people don't like the truth I suppose
<shevy> javascript is gaining popularity everywhere
<yorickpeterse> apeiros: also I'm used to it, so w/e
<ZenYung> Not everyone can drink the KoolAid
Oka has joined #ruby
otherj has quit [Quit: .]
iamninja has quit [Ping timeout: 244 seconds]
blueOxigen has joined #ruby
bluOxigen has quit [Ping timeout: 244 seconds]
phutchins has joined #ruby
<ZenYung> I do believe JS is gaining popularity, but still mainly on the front-end
<yorickpeterse> if it's anything we drank it certainly isn't koolaid
<ZenYung> with everyone being hipstery on React.JS, Angular, etc
<ZenYung> don't worry, just teasing
<yorickpeterse> "teasing"
<[k-_> Haskell is where the party's at
<ZenYung> What, you're a delicate flower. Can't be rough on you
<ZenYung> Oh dear god
wildlander has quit [Quit: Saliendo]
Azure|dc has joined #ruby
dionysus69 has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
<shevy> we have one top ten repository there
<shevy> rails \o/ http://githubranking.com/
Azure has quit [Disconnected by services]
Azure|dc is now known as Azure
<shevy> javascript has... hmm... node angular... jquery... impress ... unsure about bootstrap, perhaps it can be counted among that as well
<shevy> I don't understand why facebook is so big
<[k-_> i have not used impress.js at all
<[k-_> is it nice
khebbie has quit [Remote host closed the connection]
claw has quit [Ping timeout: 250 seconds]
duncannz has quit [Ping timeout: 260 seconds]
ZenYung has quit [Ping timeout: 246 seconds]
<shevy> I only used jquery so far. I like it... I can do super useless stuff such as dragging around images
Porfa has quit [Quit: Porfa]
joonty has joined #ruby
khebbie has joined #ruby
sfr^^ has quit [Changing host]
sfr^^ has joined #ruby
Igorshp has quit [Remote host closed the connection]
sfr^^ is now known as sfr^
f4cl3y has quit [Ping timeout: 250 seconds]
ranchodev has joined #ruby
auzty has quit [Quit: Leaving]
Kallis has joined #ruby
iateadonut has joined #ruby
joonty has quit [Quit: joonty]
arup_r has quit [Remote host closed the connection]
khebbie has quit [Remote host closed the connection]
Hrorek has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Rurik has quit [Read error: Connection reset by peer]
<Ox0dea> J(10) + S(19) = 1019 * 2 == 2038
<Ox0dea> >> Time.at(2 ** 31).year
<ruboto> Ox0dea # => 2038 (https://eval.in/429374)
<Ox0dea> Coincidence? I think not.
<Ox0dea> JavaScript is the forever language.
<shevy> yeah. made easy as the monopoly
<Ox0dea> C'est la vie.
<Ox0dea> History is written by the people who got there first.
Cust0sLim3n has quit [Ping timeout: 240 seconds]
jgt has joined #ruby
<shevy> true
arup_r has joined #ruby
<[k-> what is 10, what is 19, why is there 2
<[k-> you didn't even form 31!
<[k-> i miscounted
<Ox0dea> [k-: J is the 10th letter of the English alphabet, S the 19th.
<[k-> you did form 31
mike___1234 has quit [Ping timeout: 252 seconds]
<Ox0dea> Here's why I chose 2 ** 31: https://en.wikipedia.org/wiki/Year_2038_problem
<shevy> will the world end in 2038?
<Ox0dea> Could do.
<shevy> will apeiros finish halsbe before 2038?
centrx has joined #ruby
zenguy_pc has quit [Ping timeout: 244 seconds]
IrishGringo has joined #ruby
moss has quit [Quit: brb]
Igorshp has joined #ruby
aiRness has joined #ruby
centrx has quit [Remote host closed the connection]
centrx has joined #ruby
claw has joined #ruby
failshell has joined #ruby
<aiRness> Hello. Is it possible tp move the "Rendered" logs to new relic for processing with the ruby agent? I'm planning to use lograge for the actual log files but I would like to have the "Rendeded" information to New Relic
mike___1234 has joined #ruby
zenguy_pc has joined #ruby
khebbie has joined #ruby
<yorickpeterse> Rendered logs?
Cust0sLim3n has joined #ruby
terlar has joined #ruby
mrityunjay has quit [Ping timeout: 256 seconds]
failshell has quit [Ping timeout: 264 seconds]
benlovell has joined #ruby
<shevy> if one loads several gems, some of which are somewhat big aka more than 100.000kb size as a .gem file, should one use require 'name_of_gem', or autoload() instead?
<jhass> don't autoload, the hassles are not worth it in 90% of the cases
CloCkWeRX has joined #ruby
maloik has joined #ruby
rushed has joined #ruby
<aiRness> yorickpeterse: "Rendered layouts/_assets.html.erb (2.0ms)" that kind of entries
<yorickpeterse> The Rails channel is probably better for Rails questions
<yorickpeterse> ?rails
<ruboto> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
Zggb has joined #ruby
pandaant has joined #ruby
blueOxigen has quit []
jgt has quit [Ping timeout: 265 seconds]
krisquigley has quit [Remote host closed the connection]
rushed has quit [Ping timeout: 264 seconds]
Rokko_11 has joined #ruby
<Rokko_11> hi! I've got a question about Ruby Syntax.
<jhass> that's great
<Rokko_11> Why does:
<Rokko_11> config.vm.network :forwarded_port, guest: 3022, host: 8080
<Rokko_11> work, but my IDE shows me syntax-errors?
rocknrollmarc has quit [Read error: Connection reset by peer]
<centrx> bad IDE?
<jhass> because your IDE is stupid and/or ancient
devoldmx has joined #ruby
<jhass> that syntax got introduced in Ruby 1.9, which is by now not even in security maintenance anymore, that old is it
<Rokko_11> it's IntelliJ
<centrx> Rokko_11, Does it tell you what it thinks the syntax errors are?
tkuchiki has joined #ruby
<jhass> newer versions of RubyMine definitely recognize it, I'd have heard the complains before otherwise
<benlovell> Rokko_11: that's a vagrant file right? you need to turn on ruby syntax for that file
<Rokko_11> ok, thank you.
akemrir has joined #ruby
workmad3 has joined #ruby
joonty has joined #ruby
claw has quit [Ping timeout: 272 seconds]
devoldmx has quit [Ping timeout: 265 seconds]
joonty has quit [Client Quit]
morenoh153 has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Rokko_11 has quit [Quit: Page closed]
claw has joined #ruby
ruurd has quit [Read error: Connection reset by peer]
ruurd has joined #ruby
morenoh153 has quit [Ping timeout: 255 seconds]
moss has joined #ruby
f4cl3y has joined #ruby
benlovell has quit [Ping timeout: 265 seconds]
krisquigley has joined #ruby
scripore has joined #ruby
<aiRness> yorickpeterse: ok
aiRness has left #ruby [#ruby]
joonty has joined #ruby
GreyHands has joined #ruby
sonOfRa has quit [Quit: Bye!]
sonOfRa has joined #ruby
oo_ has quit [Remote host closed the connection]
victortyau has joined #ruby
bonhoeffer_ has joined #ruby
Siyfion has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby
Eiam has quit [Read error: Connection reset by peer]
bonhoeffer_ has quit [Read error: Connection reset by peer]
bonhoeffer has joined #ruby
Igorshp has quit [Remote host closed the connection]
vmatiyko has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
Porfa has joined #ruby
Rollabunna has joined #ruby
znz_jp0 has quit [Quit: kill -QUIT $$]
znz_jp has joined #ruby
<sonOfRa> Does anyone know of a kerberos interface that is actually updated? https://github.com/domcleal/rkerberos seems abandoned for the last 2 years
<sonOfRa> I don't really want to resort to having to call kpasswd via exec (especially since kpasswd is interactive and doesn't have a non-interactive mode)
<sonOfRa> sorry if that showed up twice, my VPN was acting up.
prettiestPony11 has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Konstruktionist has joined #ruby
tkuchiki has joined #ruby
khebbie has quit [Remote host closed the connection]
dionysus69 has quit [Remote host closed the connection]
khebbie has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dionysus69 has joined #ruby
Rollabunna has quit [Ping timeout: 260 seconds]
<sonOfRa> And, in case I do have to fall back to calling kpasswd manually, what is a good way to work with interactive commands via ruby? Open3?
Konstruktionist has quit [Quit: Textual IRC Client: www.textualapp.com]
Igorshp has joined #ruby
lxsameer has joined #ruby
maceto has joined #ruby
ndrei has quit [Read error: No route to host]
jher has quit [Ping timeout: 264 seconds]
yardenbar has quit [Quit: Leaving]
jgt has joined #ruby
khebbie has quit [Remote host closed the connection]
maceto has quit [Remote host closed the connection]
Gnomethrower has quit [Changing host]
Gnomethrower has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
abyss has joined #ruby
otherj has joined #ruby
David27 has joined #ruby
otherj has quit [Max SendQ exceeded]
maceto has joined #ruby
ndrei has joined #ruby
otherj has joined #ruby
otherj has quit [Max SendQ exceeded]
esauOp has joined #ruby
otherj has joined #ruby
otherj has quit [Client Quit]
maceto has quit [Remote host closed the connection]
maceto has joined #ruby
esauOp has quit [Client Quit]
otherj has joined #ruby
Cust0sLim3n has quit [Ping timeout: 260 seconds]
maceto has quit [Remote host closed the connection]
otherj has quit [Client Quit]
krz has joined #ruby
alexUaN has joined #ruby
wnd has quit [Ping timeout: 264 seconds]
stardiviner has quit [Ping timeout: 265 seconds]
khebbie has joined #ruby
maceto has joined #ruby
<alexUaN> Hi. How can I convert hash like this: {:a => "a", :b => ["b1", "b2"]} to query with index: "a=a&b[0]=b1&b[1]=b2" ?
Hrorek is now known as Rurik
<alexUaN> Thanks )
Rurik is now known as Guest66031
Guest66031 has quit [Changing host]
Guest66031 has joined #ruby
Guest66031 is now known as Rurik
charliesome has joined #ruby
sdfgsdfg has quit [Remote host closed the connection]
grenierm has joined #ruby
claw has quit [Ping timeout: 246 seconds]
bonhoeffer has quit [Quit: bonhoeffer]
Igorshp has quit [Remote host closed the connection]
claw has joined #ruby
decoponio has joined #ruby
emba has quit [Remote host closed the connection]
Igorshp has joined #ruby
Igorshp has quit [Remote host closed the connection]
devoldmx has joined #ruby
Igorshp has joined #ruby
NeverDie has joined #ruby
ledestin has quit [Quit: Textual IRC Client: www.textualapp.com]
<abyss> I'd like to write some tool with receive some parameteres and do something with this params... Anyone knows any nice gem/library to ruby to handle it?
bonhoeffer has joined #ruby
bonhoeffer has quit [Client Quit]
devoldmx has quit [Ping timeout: 240 seconds]
roxtrongo has joined #ruby
khebbie has quit [Remote host closed the connection]
<livcd> abyss: command line parameters?
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamninja has joined #ruby
juanpablo____ has joined #ruby
<shevy> abyss optgetlong, and optionparser in stdlib; addons as in slop ... I think thor... and some others. And of course there is good old ARGV parsing yourself :)
<abyss> livcd: I think yes, but I am open to any ideas (how to make prof or so;)), can be even rest api, but yes, basicly command line parameters.
tmtwd has joined #ruby
<abyss> shevy: thank you:)
Rurik has quit [Ping timeout: 272 seconds]
charliesome has joined #ruby
juanpablo____ has quit [Ping timeout: 244 seconds]
Mekkis has quit [Ping timeout: 252 seconds]
iamninja has quit [Ping timeout: 255 seconds]
bronson has joined #ruby
moeabdol has quit [Ping timeout: 252 seconds]
ledestin has joined #ruby
infernix has quit [Ping timeout: 252 seconds]
Mekkis has joined #ruby
bigkevmcd has joined #ruby
catcher has joined #ruby
charliesome has quit [Client Quit]
shapeshifter has quit [Ping timeout: 246 seconds]
tagrudev has quit [Remote host closed the connection]
ebbflowgo has joined #ruby
catcher has quit [Client Quit]
codecop has quit [Remote host closed the connection]
yosafbridge has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 240 seconds]
CpuID has joined #ruby
moeabdol has joined #ruby
shapeshifter has joined #ruby
David27 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
moeabdol has quit [Client Quit]
stardiviner has joined #ruby
Ropeney has joined #ruby
kent\n has quit [Ping timeout: 264 seconds]
Ropeney has quit [Client Quit]
<ljarvis> i heard slop is pretty okay
<ljarvis> also please dont use getoptlong
chihhsin_ has quit [Quit: leaving]
juanpablo____ has joined #ruby
chihhsin has joined #ruby
shadeslayer has quit [Ping timeout: 246 seconds]
ebbflowgo has quit [Quit: ebbflowgo]
shadeslayer has joined #ruby
moeabdol has joined #ruby
jher has joined #ruby
<pontiki> abyss: look at gems methadone and GLI, also do look at thor
<pontiki> they handle the option parsing stuff letting you get to the meat of your tool
yosafbridge has joined #ruby
ebbflowgo has joined #ruby
infernix has joined #ruby
<jhass> ?cookie ljarvis
<ruboto> ljarvis, here's your cookie:
Swappticon has joined #ruby
<ljarvis> ?cake jhass
<ruboto> jhass, here's your cake:
Soda has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
<jhass> how generous, thank you!
<pontiki>
<ljarvis> <3
<pontiki> huh, it worked
<platzhirsch> Emojis in IRC
<platzhirsch> the end is nigh
<shevy> platzhirsch only when you have unicode
<platzhirsch> Why shouldn't I? I was born 1988
kent\n has joined #ruby
g3funk has joined #ruby
prettiestPony11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<platzhirsch> so one year after Unicode was born
<pontiki> it was in the human DNA code by then
<platzhirsch> clearly
ebbflowgo has quit [Quit: ebbflowgo]
<pontiki> those of us born earlier have had to get along with implants
eGGshke has quit [Quit: Textual IRC Client: www.textualapp.com]
<platzhirsch> Gettica
Keltia_ is now known as Keltia
northfurr has joined #ruby
<pontiki> i am still missing the one for these new emoji
northfurr has quit [Client Quit]
bazbing80 has quit [Ping timeout: 255 seconds]
tmtwd has quit [Ping timeout: 240 seconds]
<shevy> 4chan implants ready!
phutchins has quit [Ping timeout: 244 seconds]
ruurd has quit [Quit: ZZZzzz…]
moeabdol has quit [Read error: Connection reset by peer]
mistnim has joined #ruby
<platzhirsch> Noooo
charliesome has joined #ruby
<arup_r> shevy: Do your cat make friendship with rats ?
rbennacer has joined #ruby
bazbing80 has joined #ruby
roxtrongo has quit [Remote host closed the connection]
chills42_ has joined #ruby
aganov has quit [Remote host closed the connection]
<mistnim> hello, let's say that at some spot in my program I need to check multiples if the objects in an array are all the same. Should I make a method (all_same? array) or extend Enumerable with that method? What is reccomended?
IrishGringo has quit [Ping timeout: 246 seconds]
moeabdol has joined #ruby
failshell has joined #ruby
<pontiki> could use all?
saddad has joined #ruby
s00pcan has joined #ruby
<shevy> arup_r nope, it's fight to death. nearby there are no rats though, mostly just small mice (save for the sewers but the cat can not go there)
<mistnim> pontiki all? needs a block
<pontiki> array.all?{|i| i == array[0]} or some monstrousity
blackjid has quit [Max SendQ exceeded]
<pontiki> and? that's the wonderfulness of it
scripore has quit [Quit: This computer has gone to sleep]
<shevy> mistnim if you have to re-use this then you should put it into a method
<mistnim> pontiki yes that I would use in the method
scripore has joined #ruby
blackjid has joined #ruby
<mistnim> ok, but should the method be in Enumerable or by itself?
<shevy> by itself
<pontiki> how many different object types do you need to use it on?
<mistnim> just Array
<pontiki> all Arrays?
<mistnim> yes
<pontiki> then extend Array
<mistnim> ok
tkuchiki has quit [Remote host closed the connection]
daum has joined #ruby
failshell has quit [Ping timeout: 250 seconds]
acke has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has quit [Ping timeout: 240 seconds]
skullcrasher has joined #ruby
noethics has joined #ruby
tkuchiki has joined #ruby
rodfersou has joined #ruby
Musashi007 has joined #ruby
decoponio has quit [Quit: Leaving...]
<mistnim> I have some problems to figure out how to organize a program. Where should I put the code to extend Array? It's just required by a class
noethics has quit [Client Quit]
<shevy> simplest way is to load the file where it is required
<shevy> now you can either put that code into the same file, or you put it into a separate .rb and load that .rb file then
startupality has quit [Quit: startupality]
<mistnim> shevy, but still that extension is going to be avialable to all the program after it's loaded right?
akemrir has quit [Quit: WeeChat 1.3]
phutchins has joined #ruby
<pontiki> yes, mistnim
Musashi007 has quit [Quit: Musashi007]
morenoh153 has joined #ruby
<pontiki> the question is will it be needed someplace before that specific class; if so, you should probably put it in it's own file, and make sure it gets loaded early
<mistnim> well it's not needed, but I guess it won't hurt, I suppose there is no way to isolate it only for the class in any case
I has joined #ruby
<pontiki> when i asked "all Arrays" what did you think I meant?
I is now known as Guest97466
<ljarvis> fuck off Rails' collection #take
hydra___ has joined #ruby
Guest97466 has quit [Client Quit]
acke has joined #ruby
<hydra___> hi
rushed has joined #ruby
dopie has joined #ruby
arup_r has quit []
<hydra___> How should I pin a package to specific version using gem?
<shevy> mistnim if you extend a core class then yes, if you load the code into other .rb files
<hydra___> (before installing it)
morenoh153 has quit [Ping timeout: 250 seconds]
rushed has quit [Client Quit]
krz has quit [Ping timeout: 246 seconds]
yozier has joined #ruby
<yozier> how an I match "foo_hi" but not"foo_hi$" ?
<centrx> /foo_hi[^$]/ ?
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
hydra___ has quit [Quit: leaving]
khebbie has joined #ruby
charliesome has joined #ruby
David27 has joined #ruby
oo_ has joined #ruby
<mistnim> in any case if a class needs a simple generic method, that is clearly not part of the class itself, I can put it on the class.rb file, or require it from there. But I still don't like it that these methods leaks through other parts of the program.
vmatiyko has quit [Ping timeout: 268 seconds]
acke has quit [Remote host closed the connection]
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
jhack has joined #ruby
<centrx> mistnim, use refinements
<centrx> ?
daum has left #ruby ["Leaving"]
JDiPierro has joined #ruby
charliesome has quit [Client Quit]
<mistnim> centrx, ok, I didn't know, I'll check that out
ndrei has quit [Ping timeout: 255 seconds]
khebbie has quit [Ping timeout: 250 seconds]
Swappticon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<izzol> hmm, how to add one zero to the integer? So lets say I have 1 and I wan't to iterate over: 1, 10, 100, 1000, 10000 and so on.
jher has quit [Quit: Lost terminal]
<mistnim> centrx, it says you can use them only at the top-level, not in classes
krz has joined #ruby
anisha has quit [Quit: Leaving]
<mistnim> izzol i *= 10?
northfurr has joined #ruby
<izzol> mistnim: right ;-) thank!
<centrx> mistnim, refinements are used per file with 'using', no?
c0m0 has joined #ruby
decoponio has joined #ruby
jhack has quit [Quit: jhack]
Alina-malina has joined #ruby
jhack has joined #ruby
<livcd> ot: is there some general chan for discussion about everything ?
<centrx> livcd, What kind of everything?
majjoha has quit [Ping timeout: 246 seconds]
<livcd> centrx: general discussion about anything :D...i have a moral dilema
<ljarvis> livcd: #ruby-offtopic
Musashi007 has joined #ruby
<centrx> livcd, There's also ##defocus
alexUaN has quit [Quit: alexUaN]
<livcd> thanks defocus it is
riotjones has quit [Remote host closed the connection]
northfurr has quit [Quit: northfurr]
Zggb has quit [Quit: Connection closed for inactivity]
leitz has joined #ruby
<leitz> Ruby 1.8, using JSON. How do you handle a JSON.parse if the file might be empty?
Igorshp has quit [Remote host closed the connection]
<centrx> leitz, What's the result supposed to be? Make it an empty hash?
maceto has quit [Remote host closed the connection]
Pupeno has quit [Quit: Leaving...]
<leitz> centrx, yes. If the file contains JSON load it into a hash. Otherwise create and empty hash.
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
northfurr has joined #ruby
<centrx> leitz, Yeah I would just do that, if str.empty? then return {}
workmad3 has joined #ruby
<leitz> Also, for the record, this is a fun programming thing. I'm happier with guidance than fully devloped answers.
Azure has joined #ruby
Rollabunna has joined #ruby
<leitz> The simple way would be to test for file length. However, I'm using JSON a bit and need to figure out a good test for "is this file in JSON format" and what to do if it is not.
phutchins has quit [Ping timeout: 264 seconds]
yqt has joined #ruby
khebbie has joined #ruby
<centrx> leitz, Isn't "file" a string representing the filename?
<ljarvis> leitz: the second question is the important one imo. Also, if it doesn't exist you just create an empty one, which seems not ideal. Why not dump an empty JSON hash in so you know it's ready to be valid for input?
<ljarvis> also good eye centrx
<centrx> thanks lj
ranchodev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dagda1 has joined #ruby
charliesome has joined #ruby
UtkarshRay has joined #ruby
maceto has joined #ruby
Rollabunna has quit [Ping timeout: 265 seconds]
s00pcan has quit [Remote host closed the connection]
Igorshp has joined #ruby
JDiPierro has quit [Remote host closed the connection]
JDiPierro has joined #ruby
last_staff has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
maceto has quit [Remote host closed the connection]
charliesome has quit [Client Quit]
Stany is now known as Tamae
charliesome has joined #ruby
Renich has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tmtwd has joined #ruby
JDiPierro has quit [Ping timeout: 255 seconds]
chills42_ has quit [Remote host closed the connection]
Porfa has quit [Quit: Porfa]
tejasmanohar has joined #ruby
havenwood has joined #ruby
s00pcan has joined #ruby
maceto has joined #ruby
grenierm has quit [Quit: grenierm]
maceto has quit [Remote host closed the connection]
failshell has joined #ruby
Musashi007 has quit [Quit: Musashi007]
tkuchiki has joined #ruby
pushpak has joined #ruby
pushpak has quit [Client Quit]
jtirila has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 246 seconds]
s00pcan has quit [Remote host closed the connection]
Pisuke has joined #ruby
Papierko- is now known as Papierkorb
The_Phoenix has joined #ruby
tvon has joined #ruby
<leitz> Ah, I'm coyping lines from something else I wrote and missed that line.
MyMind has quit [Ping timeout: 252 seconds]
failshell has quit [Ping timeout: 264 seconds]
sepp2k has joined #ruby
ndrei has joined #ruby
charliesome has joined #ruby
andikr has quit [Remote host closed the connection]
Papabear has quit [Remote host closed the connection]
<shevy> copy/pasting is harder than it looks like!
<leitz> Hehe...actually, I'm typing by hand. Helps me learn.
ndrei has quit [Ping timeout: 250 seconds]
Porfa has joined #ruby
grenierm has joined #ruby
s00pcan has joined #ruby
eosinx has joined #ruby
maceto has joined #ruby
<leitz> The bottom answer on this looks good, but it means the file is getting parsed twice. Not a critical issue with this program, but still an annoyance. http://stackoverflow.com/questions/26232909/checking-if-a-string-is-valid-json-before-trying-to-parse-it
cornerma1 has joined #ruby
rippa has joined #ruby
phreakocious has quit [Ping timeout: 240 seconds]
otherj has joined #ruby
otherj has quit [Max SendQ exceeded]
chills42 has joined #ruby
<Papierkorb> leitz: do you only care if it could be JSON (like the file utility), or do you want to be sure?
otherj has joined #ruby
devoldmx has joined #ruby
s00pcan has quit [Remote host closed the connection]
phreakocious has joined #ruby
khebbie has quit [Remote host closed the connection]
<leitz> Papierkorb, pure JSON. Down the road I'll move to MongoDB for datastorage.
otherj has quit [Max SendQ exceeded]
stardiviner has quit [Quit: Weird in coding now, or make love, only two things push me away from IRC.]
otherj has joined #ruby
maceto has quit [Ping timeout: 246 seconds]
cornerman has quit [Ping timeout: 268 seconds]
cornerma1 is now known as cornerman
otherj has quit [Max SendQ exceeded]
otherj has joined #ruby
rippa has quit [Ping timeout: 252 seconds]
moeabdol has quit [Ping timeout: 246 seconds]
rippa has joined #ruby
faces has joined #ruby
GreyHands has quit [Quit: Textual IRC Client: www.textualapp.com]
maceto has joined #ruby
<darix> that rescue parse error is the best
face has quit [Ping timeout: 250 seconds]
<darix> it saves you from parsing twice
rbennacer has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 246 seconds]
poguez_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JDiPierro has joined #ruby
iamninja has joined #ruby
oo_ has quit [Remote host closed the connection]
Jardayn has joined #ruby
Pisuke has quit [Read error: Connection reset by peer]
dmr8 has joined #ruby
s00pcan has joined #ruby
juanpablo____ has quit [Ping timeout: 244 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
JDiPierro has quit [Ping timeout: 250 seconds]
n008f4g_ has joined #ruby
morenoh153 has joined #ruby
iamninja has quit [Ping timeout: 256 seconds]
houhoulis has joined #ruby
sdothum has joined #ruby
s00pcan has quit [Remote host closed the connection]
stamina has quit [Quit: WeeChat 1.3]
centrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
jgt has quit [Ping timeout: 264 seconds]
<eosinx> Does it makes sense to run an open source ERP to run your personal household?
David27 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<eosinx> Oops, wrong channel
greenarrow has quit [Quit: 500]
krz has quit [Ping timeout: 255 seconds]
mkosaki has joined #ruby
Hounddog has quit [Read error: Connection reset by peer]
ascarter has joined #ruby
prettiestPony11 has joined #ruby
<darix> eosinx: if you have to ask, of course it makes sense. because there is no such thing as overkill.
chills42 has quit [Remote host closed the connection]
joonty has quit [Quit: joonty]
wpp has quit [Quit: ZZZzzz…]
ekleog has quit [Remote host closed the connection]
ekleog has joined #ruby
riotjones has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<Papierkorb> eosinx: I agree with darix. Using a complete ERP suite will make sure that while you scale your household, your solution will scale with you effortless. This way, you can keep focusing on what matters, and not on learning new tools all the time
dmr8 has quit [Read error: Connection reset by peer]
Rakunh0 has joined #ruby
prettiestPony11 has quit [Client Quit]
<shevy> we need more kickass stuff written in ruby
<darix> shevy: like a replacement for roundcube mail
<darix> or tt-rss
prasselpikachu has quit [Ping timeout: 260 seconds]
<eosinx> darix, Papierkorb: thx guys, do you use one?
s00pcan has joined #ruby
<Papierkorb> eosinx: While my second name is Overkill, no, I'm not insane :)
<Papierkorb> in fact, I had to google ERP
otherj has quit [Quit: .]
<darix> eosinx: when you visit your doctor the next time. please let them check your sarcasm detector
SCHAAP137 has joined #ruby
SCHAAP137 has joined #ruby
<darix> :p
<shevy> darix I don't even... oh... is that a mail thing in the browser?
rbennacer has joined #ruby
davedev24 has joined #ruby
<darix> eosinx: you want just some simple calendar/contact sharing between devices?
<Papierkorb> shevy: yeah, roundcube is actually a quite good webmail client
riotjones has quit [Ping timeout: 240 seconds]
<shevy> oh damn
<darix> look at things like balaika
<darix> shevy: it is one of the better opensource web mail tools
<darix> sorry baikal: http://baikal-server.com/
<darix> carddav/caldav server in ruby would be nice to have as part of it
<darix> so
krz has joined #ruby
prasselpikachu has joined #ruby
aaeron has joined #ruby
<eosinx> darix: no, I want a running purchase/inventory system
jgt has joined #ruby
<darix> aha
<Papierkorb> I use StickyNotes 2.0
skullcrasher has quit [Remote host closed the connection]
s00pcan has quit [Remote host closed the connection]
terlar has quit [Ping timeout: 268 seconds]
Rakunh0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rakunh0 has joined #ruby
sepp2k has quit [Quit: Leaving.]
maceto has left #ruby [#ruby]
autrilla has joined #ruby
AxonetBE has quit [Quit: AxonetBE]
xcesariox has joined #ruby
khebbie has joined #ruby
Rakunh0 has quit [Client Quit]
sepp2k has joined #ruby
Stany has joined #ruby
Tamae has quit [Ping timeout: 250 seconds]
mleung has joined #ruby
s00pcan has joined #ruby
[H]unt3r has joined #ruby
yardenbar has joined #ruby
chills42 has joined #ruby
Musashi007 has joined #ruby
Porfa has quit [Quit: Porfa]
chills42 has quit [Remote host closed the connection]
youngbaks has joined #ruby
ruurd has joined #ruby
khebbie has quit [Remote host closed the connection]
mleung has quit [Quit: mleung]
aaeron has quit [Quit: Leaving.]
TomyLobo has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
yardenbar has quit [Ping timeout: 250 seconds]
mleung has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DLSteve has joined #ruby
Swappticon has joined #ruby
Renich has quit [Ping timeout: 272 seconds]
Rurik has joined #ruby
youngbaks has quit [Quit: WeeChat 1.3]
ruurd has quit [Max SendQ exceeded]
ruurd has joined #ruby
TheMoonMaster_ is now known as TheMoonMaster
allcentury has joined #ruby
arup_r has joined #ruby
krisquigley has quit [Remote host closed the connection]
Rurik has quit [Read error: Connection reset by peer]
Alina-malina has quit [Ping timeout: 246 seconds]
roshanavand has joined #ruby
rbennacer has joined #ruby
Rurik has joined #ruby
jas02 has joined #ruby
symm- has joined #ruby
banister has joined #ruby
c0m0 has quit [Ping timeout: 268 seconds]
mleung has quit [Quit: mleung]
nlsun_ has quit [Quit: ZNC - http://znc.in]
nlsun has joined #ruby
eGGsha has joined #ruby
yfeldblum has joined #ruby
s00pcan has quit [Remote host closed the connection]
codenapper has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
darkf has quit [Quit: Leaving]
psy_ has joined #ruby
eosinx has quit [Quit: ~ Trillian - www.trillian.im ~]
J4D has joined #ruby
eosinx has joined #ruby
esauOp has joined #ruby
chouhoulis has joined #ruby
prettiestPony11 has joined #ruby
rakm has joined #ruby
rbennacer has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
J4D has quit [Client Quit]
AlphaAtom has joined #ruby
kirun has joined #ruby
ruurd has quit [Max SendQ exceeded]
Rurik has quit [Read error: Connection reset by peer]
Hrorek has joined #ruby
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
ruurd has joined #ruby
petricore has joined #ruby
maletor has joined #ruby
go|dfish has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
maletor has quit [Changing host]
maletor has joined #ruby
ruurd_ has joined #ruby
sagittarian has quit [Ping timeout: 246 seconds]
aaeron has joined #ruby
phutchins has joined #ruby
arooni-mobile has joined #ruby
northfurr_ has joined #ruby
allcentury has quit [Ping timeout: 252 seconds]
ruurd has quit [Ping timeout: 268 seconds]
Musashi007 has quit [Quit: Musashi007]
Torrieri has joined #ruby
Ketchy has joined #ruby
eosinx has left #ruby [#ruby]
allcentury has joined #ruby
drewvanstone has joined #ruby
drewvanstone has quit [Client Quit]
wpp has joined #ruby
khebbie has joined #ruby
mary5030 has joined #ruby
Igorshp has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
JDiPierro has joined #ruby
mary5030 has quit [Remote host closed the connection]
lkba has joined #ruby
mary5030 has joined #ruby
baweaver has joined #ruby
Rollabunna has joined #ruby
failshell has joined #ruby
chills42 has joined #ruby
prettiestPony11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davedev24 has quit [Ping timeout: 246 seconds]
davedev2_ has joined #ruby
lsmola has quit [Ping timeout: 272 seconds]
northfurr has quit [Quit: northfurr]
northfurr_ is now known as northfurr
Queeniebee has joined #ruby
swgillespie has joined #ruby
jgt has quit [Ping timeout: 246 seconds]
northfurr has quit [Quit: northfurr]
<shevy> sticky nose
JDiPierro has quit [Ping timeout: 250 seconds]
vmatiyko has joined #ruby
mary5030 has quit [Ping timeout: 244 seconds]
failshell has quit [Ping timeout: 246 seconds]
Rollabunna has quit [Ping timeout: 265 seconds]
vmatiyko has quit [Client Quit]
Hrorek is now known as Rurik
sundhell has joined #ruby
Torrieri has quit [Quit: Be back later ...]
Rurik has quit [Changing host]
Rurik has joined #ruby
k3asd` has quit [Ping timeout: 246 seconds]
Torrieri has joined #ruby
Torrieri has joined #ruby
<miah> never need to buy t-shirts as convensions, companies, and work generally have me overflowing with them
<miah> we started making rugs out of them
rbennacer has joined #ruby
s00pcan has joined #ruby
chills42 has quit [Remote host closed the connection]
northfurr has joined #ruby
<shevy> baweaver lol
Torrieri has quit [Ping timeout: 246 seconds]
<shevy> and how much they smile
yfeldblum has quit [Remote host closed the connection]
JDiPierro has joined #ruby
gambl0re has joined #ruby
yfeldblum has joined #ruby
<certainty> evening
<certainty> shevy: oI
s00pcan has quit [Remote host closed the connection]
<certainty> erm o/
Meow-J has joined #ruby
emba has joined #ruby
hololeap has joined #ruby
rodfersou has quit [Ping timeout: 264 seconds]
emba has quit [Client Quit]
yfeldblu_ has joined #ruby
dgutierrez1287 has joined #ruby
joonty has joined #ruby
acke has joined #ruby
Zamerick has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
khebbie_ has joined #ruby
yfeldbl__ has joined #ruby
Swappticon has quit [Ping timeout: 268 seconds]
hawkface has quit [Quit: Leaving]
yfeldblum has quit [Ping timeout: 256 seconds]
Swappticon has joined #ruby
s00pcan has joined #ruby
HAL2328 has joined #ruby
juanpablo____ has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
khebbie has quit [Ping timeout: 268 seconds]
lkba has quit [Ping timeout: 272 seconds]
khebbie has joined #ruby
Soda has quit [Ping timeout: 260 seconds]
naftilos76 has joined #ruby
yfeldblu_ has quit [Ping timeout: 246 seconds]
khebbie_ has quit [Ping timeout: 250 seconds]
claw has quit [Ping timeout: 240 seconds]
<shevy> yo certainty
ruurd_ has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
kinduff has quit [Client Quit]
joonty has quit [Quit: joonty]
Soda has joined #ruby
rbennacer has quit [Remote host closed the connection]
ruurd has joined #ruby
<[k-_> it is certain that certainty certainly greeted shevy in that certain manner
devoldmx has joined #ruby
fatzombi has joined #ruby
<platzhirsch> Who's on OS X?
jgt has joined #ruby
fedexo has joined #ruby
<adaedra> is that a survey or do you have a question?
Stalkr_ has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
dionysus69 has joined #ruby
yqt has quit [Ping timeout: 268 seconds]
devoldmx has quit [Ping timeout: 255 seconds]
claw has joined #ruby
JDiPierro has quit [Remote host closed the connection]
JDiPierro has joined #ruby
<platzhirsch> surveyt
fatzombi has left #ruby ["Leaving"]
krisquigley has joined #ruby
<platzhirsch> sorry :|
<havenwood> platzhirsch: I'm on OS X at the moment.
AlexAltea has quit [Read error: Connection reset by peer]
<platzhirsch> I always thought OS X is a great alterantive OS-wise if you want to stay *ix'ish
<havenwood> platzhirsch: FreeBSD-like.
go|dfish has joined #ruby
leafybasil has quit [Remote host closed the connection]
<platzhirsch> right
<havenwood> With a dash of NetBSD.
leafybasil has joined #ruby
esauOp has quit [Remote host closed the connection]
Soda has quit [Ping timeout: 240 seconds]
houhoulis has quit [Remote host closed the connection]
JDiPierro has quit [Ping timeout: 250 seconds]
AlexAltea has joined #ruby
<havenwood> ✅ Ships with Ruby.
<ponga> hey ho
<ponga> platzhirsch: OSX too
krisquigley has quit [Ping timeout: 250 seconds]
<Rurik> OSX ships with Ruby?
<Rurik> why?
DLSteve has quit [Ping timeout: 255 seconds]
Soda has joined #ruby
iszak has quit [Ping timeout: 264 seconds]
<ponga> Rurik: IIRC its some environment used ruby
<ponga> it also ships with python too
<Rurik> ah
swgillespie has joined #ruby
leafybasil has quit [Ping timeout: 240 seconds]
<Rurik> Linux distros mostly ship with python
iszak has joined #ruby
iszak has quit [Changing host]
iszak has joined #ruby
<ponga> my only linux distro is EOS at the moment, haven't checked that yet
<havenwood> Rurik: It also ships with macruby, which Apple developed.
<ponga> I only use my Linux Distro to play kerbal space program
allcentury has quit [Ping timeout: 250 seconds]
<ponga> what's the consensus of ruby 3.0 will be static? is it plausible?
<havenwood> And macruby's successor, RubyMotion, just got a free starter edition.
<ponga> haven, really? i didn't know that
<ponga> thanks
spider-mario has joined #ruby
bluOxigen has joined #ruby
firstdayonthejob has joined #ruby
<ponga> already downloading
<adaedra> havenwood: mmh, I thought macruby was discontinued, it's still shipped?
maletor has quit [Quit: Computer has gone to sleep.]
workmad3 has quit [Ping timeout: 246 seconds]
ht__ has quit [Quit: Konversation terminated!]
apt-get has joined #ruby
stuartb has joined #ruby
Soda has quit [Ping timeout: 265 seconds]
platzhirsch has left #ruby [#ruby]
saddad has quit [Ping timeout: 244 seconds]
<havenwood> adaedra: Yeah, just checked on another machine and it doesn't seem to be default installed any longer. That makes sense with RubyMotion replacing it and Laurent not working at Apple.
ht__ has joined #ruby
<havenwood> adaedra: I thought it still was but you're right.
rehat has joined #ruby
jgt has quit [Ping timeout: 272 seconds]
eosinx has joined #ruby
hmsimha_ has quit [Ping timeout: 265 seconds]
krz has quit [Ping timeout: 250 seconds]
vmatiyko has joined #ruby
arooni-mobile has quit [Quit: Leaving]
fantazo has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
blue_deref has joined #ruby
petricore has quit [Quit: Textual IRC Client: www.textualapp.com]
Spami has quit [Quit: This computer has gone to sleep]
pandaant has quit [Remote host closed the connection]
roxtrongo has joined #ruby
Lycanii has joined #ruby
phutchins has quit [Ping timeout: 252 seconds]
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
axisys_ has joined #ruby
axisys_ has quit [Client Quit]
dfockler has joined #ruby
jas02 has quit [Quit: jas02]
hanmac1 has joined #ruby
UtkarshRay has quit [Quit: Leaving]
hanmac has quit [Ping timeout: 264 seconds]
pyon has quit [Quit: fix config]
Swappticon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pyon has joined #ruby
Swappticon has joined #ruby
Umeaboy has joined #ruby
f4cl3y has quit [Ping timeout: 260 seconds]
nofxx has joined #ruby
mclee_ has quit [Ping timeout: 240 seconds]
mclee_ has joined #ruby
ohaibbq has joined #ruby
DmitryBochkarev has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Jackneill has joined #ruby
saransh__ has joined #ruby
<saransh__> I am developing a theme in jekyll
yardenbar has joined #ruby
<atmosx> hello
<atmosx> Rurik: yes it does, but I wouldn't use it
<saransh__> In the default layout file, I have placed footer outside the body but it gets rendered in the body
<ruboto> saransh__, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/bfd93e9058dddcdea765
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
fantazo has quit [Ping timeout: 250 seconds]
<saransh__> any idea how to render footer outside of body?
bootstrappm has joined #ruby
Umeaboy has quit [Quit: Leaving]
Umeaboy has joined #ruby
<jhass> there's a #jekyll
pontiki has joined #ruby
pranny has joined #ruby
<jhass> btw afaik the only valid descendants from <html> are <head> and <body>
<jhass> so that doesn't make a whole lot of sense either way
<pipework> saransh__: Why do you think you want the footer outside of the body?
<saransh__> <pipework>: I have a lot of pages, some does not use 100% height
<saransh__> so, i need footer outside of body
<pipework> saransh__: That's the concern of stylesheets, not the structure of your document.
<jhass> so #css ;P
felixr has joined #ruby
<saransh__> <pipework>: I also want to know, how can we do it?
felixrsmith has joined #ruby
<pipework> saransh__: Usually by googling, "css footer bottom"
<saransh__> <pipework>: in jekyll theme, how to get footer outside of body?
<pontiki> in particular, "sticky footer"
chouhoul_ has joined #ruby
<pipework> saransh__: Google "css footer bottom"
platzhirsch has joined #ruby
pglombardo has joined #ruby
<pipework> There is no "outside of the body" you only have the body.
<saransh__> thanks :)
<pipework> saransh__: You may need to end up changing your stylesheet if styles are applied to the body element or overriding the attributes the footer inherits from the body if you can't change the stylesheet entirely.
chouhoulis has quit [Ping timeout: 250 seconds]
<jhass> <html><head></head><body><header></header><section></section><footer></footer></body></html>
<pontiki> <article> feels left out :(
<pipework> psh, no hgroup?
codecop has joined #ruby
<saransh__> i have used sticky footer
iamninja has quit [Ping timeout: 240 seconds]
<saransh__> I was not able to figure out, how can we make these modifications with in jekyll
segfalt has quit [Quit: segfalt]
<pontiki> it has absolutely nothing to do with jekyll, or with ruby. go learn html and css, they are separate knowledge domains
<saransh__> yes, guys. I get that, thanks :)
yardenbar has quit [Ping timeout: 250 seconds]
leitz has quit [Ping timeout: 240 seconds]
n0xff has quit [Ping timeout: 264 seconds]
gregf has quit [Quit: WeeChat 1.3]
krz has joined #ruby
iszak has quit [Ping timeout: 252 seconds]
saransh__ has quit [Quit: Page closed]
jgt has joined #ruby
blaxter has quit [Quit: foo]
iszak has joined #ruby
iszak has quit [Changing host]
iszak has joined #ruby
Swappticon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
segfalt has joined #ruby
symm- has quit [Ping timeout: 252 seconds]
iszak has quit [Ping timeout: 246 seconds]
Rurik has quit [Ping timeout: 250 seconds]
Rurik has joined #ruby
yasha0x80 has joined #ruby
gregf has joined #ruby
Swappticon has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
yardenbar has joined #ruby
fedexo has quit [Ping timeout: 246 seconds]
radgeRayden_ has quit [Read error: Connection reset by peer]
iszak has joined #ruby
craysiii has joined #ruby
radgeRayden has joined #ruby
dagda1 has quit [Ping timeout: 250 seconds]
saddad has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
dagda1 has joined #ruby
banjara has joined #ruby
banjara has quit [Client Quit]
toretore has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iszak has quit [Ping timeout: 264 seconds]
Musashi007 has joined #ruby
khebbie has quit [Remote host closed the connection]
felixrsmith has quit [Quit: Konversation terminated!]
platzhirsch has left #ruby [#ruby]
dopie has joined #ruby
Swappticon has quit [Ping timeout: 250 seconds]
DmitryBochkarev has quit [Quit: Leaving]
houhoulis has joined #ruby
duoi has quit [Ping timeout: 246 seconds]
c355E3B has joined #ruby
paracr4ck has joined #ruby
esauOp has joined #ruby
Swappticon has joined #ruby
duoi has joined #ruby
eosinx has quit [Quit: ~ Trillian - www.trillian.im ~]
djbkd has joined #ruby
flaf has joined #ruby
northfurr has quit [Quit: northfurr]
CloCkWeRX has quit [Quit: Leaving.]
sepp2k has quit [Quit: Leaving.]
sepp2k1 has joined #ruby
yardenbar has quit [Ping timeout: 240 seconds]
iszak has joined #ruby
<flaf> Hi, I have a hash variable h1 where keys are strings and values are array of strings or hashes of strings (for keys and values). With h2 = h1.clone, can I be sure that h1 and h2 are completely “independant”?
leafybasil has joined #ruby
Pupeno has joined #ruby
esauOp_ has joined #ruby
<toretore> the clone will only apply to the hash itself, not its keys and values
<toretore> so if you go h1.keys[0].upcase!, that will affect both h1 and h2
<toretore> or h1['array'] << value
<toretore> the array is the same
<flaf> Ah. So I'm not sure to understand the sense of h1.clone.
<toretore> it makes a copy of h1
<toretore> simple as that
<pipework> flaf: deep_clone/deep_dup/deep_copy are things.
Torrieri has joined #ruby
Rollabunna has joined #ruby
<pipework> Might wanna look them up in the googlenets.
failshell has joined #ruby
Vile` has quit [Ping timeout: 252 seconds]
<flaf> Is it possible in my case to have h2 a copy completely independent of h1?
<toretore> >> h1 = {foo: 'bar'}; h2 = h1.clone; h2[:foo] = 'baz'; h1[:foo]
<ruboto> toretore # => "bar" (https://eval.in/429567)
<toretore> flaf: "completely independent" can mean a lot of things
esauOp has quit [Ping timeout: 265 seconds]
<toretore> as pipework said, there are deep clone implementations that will probably do what you want
<flaf> toretore: any change in h1 doesn't change h2.
<toretore> again, "change" can mean many things
<flaf> ok deep clone is not standard, correct?
<toretore> no
workmad3 has joined #ruby
<toretore> "deep clone" can also mean many things
<toretore> it's not a simple problem with a simple solution
rodfersou has joined #ruby
iszak has quit [Remote host closed the connection]
<toretore> it's many different problems with many different solutions
jhack has quit [Quit: jhack]
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #ruby
iszak has joined #ruby
iszak has quit [Changing host]
iszak has joined #ruby
<flaf> toretore: yes I admit. In my case h1 is just a hash of strings/arrays of string/hash of strings/
<toretore> you'd be better off describing exactly what you're trying to do with real code
failshell has quit [Ping timeout: 246 seconds]
<toretore> then you'd get real suggestions that work for your exact case
Rollabunna has quit [Ping timeout: 265 seconds]
kjones_ has joined #ruby
Cust0sLim3n has joined #ruby
Vile` has joined #ruby
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
wpp has quit [Ping timeout: 246 seconds]
[k-_ has quit [Quit: Lingo: www.lingoirc.com]
workmad3 has quit [Ping timeout: 272 seconds]
futilegames has joined #ruby
Vile` has quit [Read error: Connection reset by peer]
segfalt has quit [Quit: segfalt]
minotep has joined #ruby
Vile` has joined #ruby
<flaf> toretore: here is an example of hash http://paste.alacon.org/38111
konsolebox has quit [Remote host closed the connection]
devbug has joined #ruby
<toretore> flaf: and what's the reason you want to "deep clone" it?
Rickmasta has quit [Ping timeout: 246 seconds]
<flaf> I have to have a “clone” of this hash (h2) and be able to change a value in h2 (not the structure, just a “final” value like the macaddress or an option etc. without change the state of h1.
roxtrongo has quit [Remote host closed the connection]
radgeRayden has quit [Ping timeout: 244 seconds]
chipotle has joined #ruby
<flaf> Oh, I will try to be more precise with this example...
iszak has quit [Remote host closed the connection]
iszak has joined #ruby
iszak has quit [Changing host]
iszak has joined #ruby
arup_r has quit [Quit: Leaving]
Rickmasta has joined #ruby
segfalt has joined #ruby
roxtrongo has joined #ruby
<flaf> I just want to “clone” this hash (h2) and just change/update the '__default__' strings in h2 but I want to keep interfaces (h1) unchanged.
<flaf> Is it clear?
segfalt has quit [Client Quit]
djbkd has quit [Remote host closed the connection]
<toretore> ok, that's good enough
swgillespie has joined #ruby
<toretore> a deep clone implementation would do that
morenoh153 has quit [Ping timeout: 244 seconds]
swgillespie has quit [Max SendQ exceeded]
Ketchy has quit [Quit: Leaving]
swgillespie has joined #ruby
<flaf> Ok, so I need to install a ruby-gem, correct?
bootstrappm has quit [Quit: Leaving.]
Newtonianb has joined #ruby
chills42 has joined #ruby
s00pcan has quit [Ping timeout: 240 seconds]
drikerf has joined #ruby
s00pcan has joined #ruby
s00pcan has quit [Remote host closed the connection]
chills42 has quit [Remote host closed the connection]
nahtnam has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
s00pcan has joined #ruby
veloutin has quit [Ping timeout: 240 seconds]
prettiestPony11 has joined #ruby
DLSteve has joined #ruby
veloutin has joined #ruby
drikerf has quit [Client Quit]
<flaf> toretore: thx, it works well. Now I will study this code. I think it will be useful for me for another things.
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
drikerf has joined #ruby
iateadonut has quit [Quit: Leaving.]
shadeslayer has quit [Ping timeout: 250 seconds]
firstdayonthejob has quit [Read error: Connection reset by peer]
Newtonianb has quit [Ping timeout: 250 seconds]
shadeslayer has joined #ruby
iloverubynoob has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
yfeldbl__ has quit [Ping timeout: 246 seconds]
northfurr has joined #ruby
[H]unt3r has quit [Quit: Leaving]
prettiestPony11 has quit [Ping timeout: 246 seconds]
devoldmx has joined #ruby
<chris2> in StringScanner, can i somehow see the char just before the position?
dionysus69 has quit [Ping timeout: 244 seconds]
drikerf has quit [Quit: Textual IRC Client: www.textualapp.com]
arooni-mobile has joined #ruby
yqt has joined #ruby
leat has quit [Ping timeout: 250 seconds]
<toretore> you can do str[strscan.pos-1]
pglombardo has quit []
veloutin has quit [Ping timeout: 244 seconds]
veloutin has joined #ruby
Alina-malina has joined #ruby
devoldmx has quit [Ping timeout: 268 seconds]
<chris2> thx
Alina-malina has quit [Read error: Connection reset by peer]
Musashi007 has quit [Quit: Musashi007]
bootstrappm has joined #ruby
bootstrappm has quit [Client Quit]
krisquigley has joined #ruby
VeryBewitching has joined #ruby
firstdayonthejob has joined #ruby
<Ox0dea> toretore: No need to deep_dup the keys, for what it's worth.
hololeap has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
sundhell has quit [Quit: WeeChat 1.3]
<Ox0dea> >> s = 'abc'; foo = {s => s}; s << 'xyz'; foo
<ruboto> Ox0dea # => {"abc"=>"abcxyz"} (https://eval.in/429597)
krisquigley has quit [Ping timeout: 260 seconds]
schaary has joined #ruby
devbug_ has joined #ruby
<Ox0dea> Well, never mind; keys can be arbitrarily complex.
<schaary> how can I detect the encoding of a file with ruby?
neohunter has quit [Ping timeout: 264 seconds]
<schaary> Ox0dea: thx
<Ox0dea> Sure thing.
devbug has quit [Ping timeout: 252 seconds]
tejasmanohar has quit [Quit: tejasmanohar]
<toretore> Ox0dea: in the sense that you'd have to rehash anyway, yeah
khebbie has joined #ruby
<Ox0dea> toretore: Mm-hmm. I tried to do something clever with #replace in order to generalize the thing, but yours is about as good as it'll get.
Torrieri has quit [Quit: Be back later ...]
tejasmanohar has joined #ruby
Torrieri has joined #ruby
<Ox0dea> I realize BasicObject is supposed to be just that, but it seems a little odd that instances can't be hashed.
zachk has joined #ruby
tejasmanohar has quit [Client Quit]
khebbie has quit [Ping timeout: 246 seconds]
mike___1234 has quit [Ping timeout: 246 seconds]
Alina-malina has joined #ruby
Torrieri has quit [Ping timeout: 244 seconds]
kamal2222ahmed has joined #ruby
Mendenhall has joined #ruby
n0xff has joined #ruby
yasha0x80 has quit [Quit: My Brain has gone to sleep. ZZZzzz…]
<flaf> toretore: thx again. I think I have well understood your function and it's perfect for my usage. As Ox0dea said, I think I can replace “h[deep_dup(k)] = deep_dup(v)” by just “h[k.dup] = deep_dup(v)” because, in my case, keys in hashes are always strings.
timonv has quit [Ping timeout: 252 seconds]
workmad3 has joined #ruby
<toretore> you can probably skip the dup altogether
<toretore> deep_dup(str) will just do str.dup anyway
stevednd has joined #ruby
<flaf> Yes indeed.
<Ox0dea> >> h = {'foo'=>1, 'bar'=>2}; foo.keys.all?(&:frozen?) # flaf
<ruboto> Ox0dea # => undefined local variable or method `foo' for main:Object (NameError) ...check link for more (https://eval.in/429604)
<Ox0dea> >> h = {'foo'=>1, 'bar'=>2}; h.keys.all?(&:frozen?) # flaf
<ruboto> Ox0dea # => true (https://eval.in/429605)
<flaf> It's curious, here http://apidock.com/rails/Enumerable/each_with_object I can read “This method is deprecated or moved on the latest stable version.”. Is it a mistake?
<Ox0dea> flaf: Ruby freezes Hash keys as of 2.1 or so, so they can't be modified without some trickery; thus, no need to dup.
<Ox0dea> Might even be 2.0, actually.
<flaf> Ah ok.
<Ox0dea> Since 1.8?!
<flaf> Ox0dea: oh sorry, your code it too tricky for me. I'm not a ruby expert. ;)
<Ox0dea> 18>> {'foo'=>1}.keys[0].frozen?
<ruboto> Ox0dea # => true (https://eval.in/429606)
workmad3 has quit [Ping timeout: 246 seconds]
<Ox0dea> flaf: Not sure why #each_with_object is marked as deprecated there; it's unlikely to go away any time soon.
davedev24 has joined #ruby
<jhass> flaf: apidock is horrible, don't use it. Try devdocs.io
Fr0Zn has joined #ruby
<flaf> Ah ok, thx.
bootstrappm has joined #ruby
davedev2_ has quit [Ping timeout: 244 seconds]
<jhass> Ox0dea: it's the rails docs, well, some version of it
Fr0Zn has quit [Client Quit]
krz has quit [Quit: WeeChat 1.2]
metalic has joined #ruby
<Ox0dea> flaf: Hmm, which code was too tricky?
dotix has joined #ruby
rbennacer has joined #ruby
metalic has quit [Client Quit]
<flaf> Ox0dea: this => https://eval.in/429605 Too tricky for me ;)
<Ox0dea> flaf: Well, I trust you know what Hash#keys returns?
<flaf> Ah, yes, it's just to show me that keys in hashes are frozen, correct?
<Ox0dea> Nailed it.
acke has quit [Remote host closed the connection]
segfalt has joined #ruby
<flaf> ;)
startupality has joined #ruby
acke has joined #ruby
futilegames_ has joined #ruby
Torrieri has joined #ruby
Torrieri has joined #ruby
futilegames_ has quit [Client Quit]
AlphaAtom has quit [Read error: Connection reset by peer]
Alina-malina has quit [Read error: Connection reset by peer]
yasha0x80 has joined #ruby
saddad has quit [Ping timeout: 268 seconds]
Mon_Ouie has quit [Remote host closed the connection]
hololeap has joined #ruby
rbennacer has quit [Remote host closed the connection]
northfurr_ has joined #ruby
futilegames has quit [Ping timeout: 264 seconds]
eightfold has quit [Quit: eightfold]
northfurr has quit [Quit: northfurr]
northfurr_ is now known as northfurr
yfeldblum has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Torrieri has quit [Quit: Be back later ...]
Torrieri has joined #ruby
Lycanii has quit [Quit: Konversation terminated!]
dotix has quit [Quit: Leaving]
Alina-malina has joined #ruby
ruurd has joined #ruby
tmtwd has quit [Ping timeout: 256 seconds]
decoponio has quit [Quit: Leaving...]
mike___1234 has joined #ruby
solars has quit [Ping timeout: 256 seconds]
Porfa has joined #ruby
iloverubynoob is now known as pecpec
naftilos76 has quit [Ping timeout: 240 seconds]
garethrees has joined #ruby
Torrieri has quit [Ping timeout: 268 seconds]
iamninja has joined #ruby
ghr has quit [Ping timeout: 250 seconds]
Porfa has quit [Client Quit]
segfalt has quit [Quit: segfalt]
Porfa has joined #ruby
Rickmasta has joined #ruby
bonhoeffer has joined #ruby
leitz has joined #ruby
northfurr_ has joined #ruby
chipotle has quit [Quit: cheerio]
leitz has quit [Client Quit]
ndrei has joined #ruby
chipotle has joined #ruby
jhack has joined #ruby
iamninja has quit [Ping timeout: 246 seconds]
krisquigley has joined #ruby
northfurr_ has quit [Quit: northfurr_]
leat has joined #ruby
aaeron has quit [Quit: Leaving.]
gambl0re has quit [Ping timeout: 260 seconds]
aaeron has joined #ruby
northfurr_ has joined #ruby
krisquigley has quit [Ping timeout: 240 seconds]
Rickmasta has quit [Read error: No route to host]
morenoh153 has joined #ruby
northfurr_ has left #ruby [#ruby]
<Ox0dea> [1,2,3].pack('?*') => 'ABC'
cball has quit [Ping timeout: 246 seconds]
<Ox0dea> Should the ? be K or Y?
<Ox0dea> I need both cases, and those are the only options as of 2.3.
Rickmasta has joined #ruby
Limix has joined #ruby
last_staff has quit [Quit: nite y'all]
acke has quit [Remote host closed the connection]
otherj has joined #ruby
otherj has quit [Max SendQ exceeded]
otherj has joined #ruby
otherj has quit [Max SendQ exceeded]
ht__ has quit [Quit: Konversation terminated!]
otherj has joined #ruby
otherj has quit [Max SendQ exceeded]
codecop has quit [Quit: Išeinu]
otherj has joined #ruby
otherj has quit [Max SendQ exceeded]
otherj has joined #ruby
saddad has joined #ruby
tejasmanohar has joined #ruby
felixr has quit [Quit: Konversation terminated!]
DLSteve has quit [Ping timeout: 255 seconds]
bonhoeffer has quit [Quit: bonhoeffer]
Torrieri has joined #ruby
Xiti has quit [Quit: Xiti]
pranny has quit [Remote host closed the connection]
warreng has quit [Ping timeout: 246 seconds]
Voker57 has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
warreng has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
Guest24 is now known as lele
Blaguvest has quit []
sphex has quit [Ping timeout: 268 seconds]
TomyLobo has quit [Ping timeout: 244 seconds]
dgutierrez1287 has quit [Ping timeout: 255 seconds]
c355E3B has quit [Quit: Connection closed for inactivity]
s00pcan has quit [Ping timeout: 256 seconds]
Rollabunna has joined #ruby
ordepdev has joined #ruby
Xiti has joined #ruby
kjones_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s00pcan has joined #ruby
yasha0x80 has quit [Quit: My Brain has gone to sleep. ZZZzzz…]
Pumukel has quit [Quit: ChatZilla 0.9.92 [Firefox 40.0.3/20150826023504]]
Torrieri has quit [Quit: Be back later ...]
sepp2k has quit [Quit: Leaving.]
AxonetBE has joined #ruby
lele has quit [Quit: Coyote finally caught me]
Rollabunna has quit [Ping timeout: 256 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ordepdev has quit [Remote host closed the connection]
blackmesa has joined #ruby
Porfa has quit [Quit: Porfa]
Rakunh0 has joined #ruby
Rickmasta has joined #ruby
<dorei> what are the implications of defining a class inside another class ?
<dorei> i have a class X::A (class X under module A) and i want to create a class X::A::Conf and it seems the only way to do it is to define a class Conf inside class X::A
ferz_ has joined #ruby
bruno- has quit [Quit: Lost terminal]
sphex has joined #ruby
bruno- has joined #ruby
Newtonianb has joined #ruby
<morenoh153> is there a ruby way of getting all elements in an array from an index to the end?
<Ox0dea> dorei: If X and A exist, you can just open class X::A::Conf.
<Ox0dea> dorei: Mind, you probably meant A::X::Conf?
mistnim has quit [Remote host closed the connection]
<craysiii> hm
<Ox0dea> >> foo = [1, 2, 3, 4]; foo[1..-1] # morenoh153
<ruboto> Ox0dea # => [2, 3, 4] (https://eval.in/429608)
Torrieri has joined #ruby
Torrieri has joined #ruby
lele has joined #ruby
lele is now known as Guest24
vmatiyko has quit [Ping timeout: 264 seconds]
AxonetBE has quit [Quit: AxonetBE]
tmtwd has joined #ruby
ordepdev has joined #ruby
vF3hNGxc47h8 has joined #ruby
Porfa has joined #ruby
Jackneill has quit [Remote host closed the connection]
dfockler has quit [Ping timeout: 244 seconds]
lkba has joined #ruby
craysiii has quit [Remote host closed the connection]
cashnguns has joined #ruby
ebbflowgo has joined #ruby
shellie_ has joined #ruby
Newtonianb has quit [Ping timeout: 260 seconds]
tmtwd has quit [Read error: Connection reset by peer]
Newtonianb has joined #ruby
tmtwd has joined #ruby
apt-get has quit [Quit: Quit]
sepp2k has joined #ruby
s00pcan has quit [Ping timeout: 268 seconds]
HAL2328 has quit [Quit: Leaving]
yasha0x80 has joined #ruby
roxtrongo has quit [Remote host closed the connection]
devoldmx has joined #ruby
shinnya has joined #ruby
roxtrongo has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devoldmx has quit [Ping timeout: 244 seconds]
rodfersou has quit [Ping timeout: 268 seconds]
rodfersou has joined #ruby
Umeaboy has quit [Quit: Leaving]
nahtnam has quit [Quit: Connection closed for inactivity]
Limix has quit [Quit: Limix]
Porfa has quit [Quit: Porfa]
firstdayonthejob has quit [Read error: Connection reset by peer]
<morenoh153> Ox0dea: thanks
<morenoh153> any way to have a nested loop that starts from a given index? I want to build combinations
<Ox0dea> morenoh153: Sure thing. #[] and #[]= are quite powerful. Do make a note to look into other ways they can be used.
<Ox0dea> morenoh153: There is almost certainly a built-in method that does what you're trying to roll from scratch.
<Ox0dea> >> Array.instance_methods.grep(/ation/) # morenoh153
<ruboto> Ox0dea # => [:permutation, :combination, :repeated_permutation, :repeated_combination] (https://eval.in/429611)
yasha0x80 has quit [Quit: My Brain has gone to sleep. ZZZzzz…]
<morenoh153> Ox0dea: very nice
yasha0x80 has joined #ruby
workmad3 has joined #ruby
jgt has quit [Ping timeout: 265 seconds]
ordepdev has quit [Remote host closed the connection]
omgtora has joined #ruby
<omgtora> ?guys
<ruboto> Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
<omgtora> that comic is your
<omgtora> you**
<omgtora> by you i mean #ruby
claw has quit [Ping timeout: 264 seconds]
<omgtora> ?topic
<ruboto> I don't know anything about topic
<omgtora> ?genderequality
<ruboto> I don't know anything about genderequality
yasha0x80 has quit [Client Quit]
<omgtora> equality doesnt mean you can claim a word is offensive because it's not "gender neutral" simply because of it's spelling
<omgtora> ?guys
<ruboto> Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
<baweaver> !mute omgtora
<baweaver> shoo
<Jardayn> dem pesky trolls
<Jardayn> fucking with our channel
Rakunh0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baweaver> keep the meta in offtopic.
workmad3 has quit [Ping timeout: 260 seconds]
roxtrongo has quit [Remote host closed the connection]
Rickmasta has joined #ruby
sphex has quit [Ping timeout: 244 seconds]
tonios57 has quit [Quit: Textual IRC Client: www.textualapp.com]
workmad3 has joined #ruby
omgtora has quit [Client Quit]
DeweyD has joined #ruby
iamninja has joined #ruby
firstdayonthejob has joined #ruby
rocknrollmarc has joined #ruby
guilhon has joined #ruby
victortyau has quit [Quit: Leaving]
Rakunh0 has joined #ruby
Coldblackice has quit [Ping timeout: 250 seconds]
veloutin has quit [Ping timeout: 244 seconds]
guilhon has left #ruby [#ruby]
blackmesa has quit [Quit: WeeChat 1.3]
veloutin has joined #ruby
<chrisseaton> is there a way to run eval without creating a new lexical environment? so that variables bound in the eval are created in caller's environment?
roxtrongo has joined #ruby
<baweaver> class_eval and module_eval I believe
<chrisseaton> eg I want to do binding.eval("x = 14"); x and to have that work
A124 has quit [Remote host closed the connection]
<Ox0dea> chrisseaton: Even binding_of_caller can't introduce new locals, so no.
<baweaver> So why do you want to?
<baweaver> just use a hash
<chrisseaton> baweaver: it's not for a real program, it's an experiment
<baweaver> class and module evals are as close as you'll probably get.
<Ox0dea> chrisseaton: Are you aware that you can pass a Binding into #eval?
<Ox0dea> >> b = binding; eval 'x = 14', b; eval 'x', b
<ruboto> Ox0dea # => 14 (https://eval.in/429615)
Musashi007 has joined #ruby
nottora has joined #ruby
<chrisseaton> ah that seems to do what I want
<nottora> I made it more applicable: http://imgur.com/064Y3TO
<baweaver> !mute nottora
<chrisseaton> of course I can't reference the local statically - I have to use eval to read it - but actually that's fine for what I want to do - thanks very much!
minotep has quit [Ping timeout: 255 seconds]
nottora has quit [Client Quit]
bonhoeffer has joined #ruby
<morenoh153> any idea why this breaks down on input https://gist.github.com/morenoh149/6c450ddbafb96d617bee
sphex has joined #ruby
<morenoh153> added sample input
<Ox0dea> chrisseaton: For potential future reference: https://gist.github.com/0x0dea/24eb06e6b9b8cc8a9483
Coldblackice has joined #ruby
rocknrollmarc has quit [Ping timeout: 272 seconds]
spider-mario has quit [Remote host closed the connection]
baweaver changed the topic of #ruby to: Register to talk || Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
<chrisseaton> Ox0dea: thanks very much - I'm seeing what happens to performance if I replace every statement in a benchmark with the same thing but in #eval
allcentury has joined #ruby
<Ox0dea> chrisseaton: Expect dramatic impact.
otherj has quit [Quit: .]
rodfersou has quit [Quit: leaving]
Musashi007 has quit [Client Quit]
<chrisseaton> Ox0dea: right, but I'm hoping to have a technique to remove that impact :)
startupality has quit [Quit: startupality]
aaeron has quit [Quit: Leaving.]
pecpec has quit [Quit: Leaving...]
<Ox0dea> morenoh153: Is this C?
tejasmanohar has quit [Quit: tejasmanohar]
<mblagden_> morenoh153: I believe you have some other code affecting this.. as written, I believe it would work fine
hmsimha_ has joined #ruby
<mblagden_> i.e. sorted [1, 5, 3, 3, 7] would produce false
<Ox0dea> morenoh153: https://eval.in/429625
<Ox0dea> Your code is indeed fine, but it really needs to eat a sandwich or something.
Porfa has joined #ruby
Rakunh0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<Ox0dea> Could also use some standard library love.
bonhoeffer has quit [Quit: bonhoeffer]
blue_deref has quit [Quit: Taking myself out of hear.]
Rakunh0 has joined #ruby
jonr22 has joined #ruby
sdothum has joined #ruby
tno has quit [Ping timeout: 246 seconds]
hydrozen has joined #ruby
morenoh153 has left #ruby [#ruby]
morenoh149 has joined #ruby
havenwood has joined #ruby
<morenoh149> Ox0dea: right. I'm not understanding ruby breaking out of if blocks. I want to, if temp is nil to set it and break out of the if to the next iteration of array.each
grenierm has quit [Quit: grenierm]
Spami has joined #ruby
k3asd` has joined #ruby
<Ox0dea> morenoh149: Is Ruby your first language?
segfalt has joined #ruby
<morenoh149> no I mostly do javascript
VeryBewitching has quit [Quit: Konversation terminated!]
roshanavand has quit [Quit: Leaving]
vF3hNGxc47h8 has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
mike___1234 has quit [Ping timeout: 264 seconds]
<Ox0dea> morenoh149: In any case, your method does do what it's supposed to, so you must be mutating the array somewhere.
arooni-mobile has quit [Ping timeout: 244 seconds]
<Ox0dea> For what it's worth, a much more idiomatic definition of #sorted might look something like this: `def sorted a; a.each_cons(2).all? { |x, y| x < y }; end`.
kirun has quit [Quit: Client exiting]
<Ox0dea> Make that <=, of course.
ch0ke has joined #ruby
tno has joined #ruby
firstdayonthejob has quit [Quit: WeeChat 1.4-dev]
allcentury has quit [Ping timeout: 244 seconds]
Pupeno has quit [Remote host closed the connection]
ham has joined #ruby
firstdayonthejob has joined #ruby
Jardayn has quit [Quit: Leaving]
ham is now known as Guest50461
firstdayonthejob has quit [Client Quit]
Guest50461 has quit [Client Quit]
<baweaver> Ox0dea: might make it take an optional block for arbitrary sort types
firstdayonthejob has joined #ruby
aaeron has joined #ruby
shmilan has joined #ruby
chipotle has quit [Quit: cheerio]
firstdayonthejob has quit [Client Quit]
<Ox0dea> It'd be nice if comparisons could be chained.
<al2o3-cr> deop this minute
<Ox0dea> Then #sorted? could just be an alias for #reduce.
stardiviner has joined #ruby
duoi has quit [Max SendQ exceeded]
duoi has joined #ruby
firstdayonthejob has joined #ruby
zachk has quit [Quit: WeeChat 0.4.2]
firstdayonthejob has quit [Client Quit]
kjones_ has joined #ruby
firstdayonthejob has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
<Ox0dea> Is this a refinements bug? https://eval.in/429627
DeweyD has quit [Quit: Textual IRC Client: www.textualapp.com]
<pipework> Refinements isn't a bug? :D
<al2o3-cr> pry is good for checking aliases with `stat`
<Ox0dea> Motion sustained.
startupality has joined #ruby
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
n008f4g_ has quit [Ping timeout: 268 seconds]
<al2o3-cr> Wait, What Weechat 1.4-dev...
<pipework> Ox0dea: Is this all just an excuse to use :< in your code more?
zeroDivisible has joined #ruby
Azure has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
k3asd` has quit [Ping timeout: 264 seconds]
Swappticon has quit [Quit: Textual IRC Client: www.textualapp.com]
<al2o3-cr> It's all about `this` nowadays haha
platzhirsch has joined #ruby
amystephen has joined #ruby
<platzhirsch> Ruby Rogues was a great podcast recommendation!
bonhoeffer has joined #ruby
Pupeno has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
Mendenhall has left #ruby ["WeeChat 1.0.1"]
<al2o3-cr> platzhirsch: What is Ruby Rogues?
<platzhirsch> al2o3-cr: https://devchat.tv/ruby-rogues/
mike___1234 has joined #ruby
<al2o3-cr> I seeded that before
<al2o3-cr> :)
firstdayonthejob has quit [Ping timeout: 252 seconds]
<al2o3-cr> Someone teach me some shit
petricore has joined #ruby
<al2o3-cr> ?ot
<ruboto> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
<al2o3-cr> of i go
Kallis has quit [Read error: Connection reset by peer]
bonhoeffer has left #ruby [#ruby]
sevenseacat has joined #ruby
FernandoBasso has quit [Quit: WeeChat 1.3]
kriskropd has quit [Ping timeout: 250 seconds]
unreal has quit [Ping timeout: 252 seconds]
<platzhirsch> is that a bot?
theery has joined #ruby
<al2o3-cr> ?bot
<ruboto> I don't know anything about bot
<al2o3-cr> ?whoami
<ruboto> I don't know anything about whoami
<platzhirsch> No, are you al2o3-cr
<platzhirsch> ?java
<ruboto> I don't know anything about java
<platzhirsch> ?shevy
<ruboto> shevy is the hound of baskerville
<platzhirsch> ?platzhirsch
<ruboto> I don't know anything about platzhirsch
<al2o3-cr> haha
<al2o3-cr> shevy got his own linker hee
<platzhirsch> shevy is the best
startupality has quit [Quit: startupality]
<al2o3-cr> you got that right :D
baweaver changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
theery has quit [Remote host closed the connection]
cball has joined #ruby
hydrozen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<al2o3-cr> Ox0dea: o/
petricore has quit [Quit: Textual IRC Client: www.textualapp.com]
jhack has quit [Quit: jhack]
shmilan has quit [Ping timeout: 244 seconds]
<Ox0dea> al2o3-cr: That's at least the second time I've seen you accused of being a bot. :P
Rollabunna has joined #ruby
<Ox0dea> pipework: :< is a pretty great method, but this particular usage was just a search for elegance.
al2o3-cr has quit [Ping timeout: 252 seconds]
<Ox0dea> #sorted? == #reduce is pretty sexy.
Exponential has joined #ruby
allcentury has joined #ruby
Rollabunna has quit [Ping timeout: 244 seconds]
kriskropd has joined #ruby
<ebbflowgo> i'm having difficulties requiring the 'pg' gem using jruby
<ebbflowgo> getting #NameError: uninitialized constant PG
al2o3-cr has joined #ruby
ndrei has joined #ruby
<Radar> ebbflowgo: Potentially due to using an older version of JRuby? *shrug* I don't know much about JRuby tbh
davedev24 has quit []
<Radar> Does say that it's compatible with that older version
<ebbflowgo> Radar: checking
juanpablo____ has quit [Quit: (null)]
blue_deref has joined #ruby
jhack has joined #ruby
paracr4ck has quit [Quit: Leaving]
Musashi007 has joined #ruby
juanpablo____ has joined #ruby
shmilan has joined #ruby
<ebbflowgo> Radar: might be a config issue, will look into it
David27 has joined #ruby
juanpablo____ has quit [Ping timeout: 252 seconds]
Queeniebee has quit [Ping timeout: 246 seconds]
segfalt has quit [Quit: segfalt]
dfinninger has joined #ruby
CloCkWeRX has joined #ruby
CloCkWeRX has left #ruby [#ruby]
OrbitalKitten has joined #ruby
veloutin has quit [Ping timeout: 272 seconds]
veloutin has joined #ruby
LiquidInsect has quit [Read error: Connection reset by peer]
LiquidInsect has joined #ruby
symm- has joined #ruby
meph has joined #ruby
aaeron has quit [Quit: Leaving.]
platzhirsch has quit [Ping timeout: 255 seconds]
weaksauce has quit [Read error: Connection reset by peer]
platzhirsch has joined #ruby
mprelude has quit [Ping timeout: 260 seconds]
hololeap has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
VeryBewitching has joined #ruby
northfurr has quit [Quit: northfurr]
Swappticon has joined #ruby
symm- has quit [Ping timeout: 255 seconds]
Rickmasta has joined #ruby
dfinninger has quit [Remote host closed the connection]
solocshaw has joined #ruby
ascarter has joined #ruby
Gnomethrower has quit [Quit: Textual IRC Client: www.textualapp.com]
ascarter has quit [Max SendQ exceeded]
zenguy_pc has quit [Read error: Connection reset by peer]
doddok has quit [Quit: Leaving]
devoldmx has joined #ruby
ascarter has joined #ruby
al2o3-cr has quit [Ping timeout: 256 seconds]
tsou has joined #ruby
iamninja has quit [Ping timeout: 250 seconds]
devoldmx has quit [Ping timeout: 255 seconds]
<ebbflowgo> headius: if you have a moment => https://gist.github.com/ebbflowgo/ec5c5c31c61aea295f57
chipotle has joined #ruby
Musashi007 has quit [Quit: Musashi007]
marr has quit []
Torrieri has quit [Ping timeout: 260 seconds]
unreal has joined #ruby