apeiros_ changed the topic of #ruby to: Ruby 2.2.0; 2.1.5; 2.0.0-p598; 1.9.3-p551: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
dspangenberg has joined #ruby
<Authenticator> I mistyped above though, ... if it's blockeD, reading (.pop), as the last one [producer] dies ...
iPhone6128 has quit [Client Quit]
skj3gg has quit [Quit: ZZZzzz…]
<Authenticator> I made it work originally by rescuing Exception on the q.pop, which seemed ugly, and only worked once per runtime?!?
tmk1108 has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Authenticator> Now I've got the producers set to push a semaphore value onto the queue as they die, which is much less hacky, but still doesn't seem clean.
ta_ has joined #ruby
Sakens has quit [Ping timeout: 265 seconds]
cobragoat has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
<splud> sounds more like you’re collecting toe tags from the threads.
fgo has joined #ruby
Number2 has joined #ruby
<zenspider> I can't make heads or tails out of BS code
ellisTAA has joined #ruby
<Authenticator> splud: I've heard it called that, in retrospect. I'm currently going out of my way to collect one when they're all dead, but if I collected one each and just counted them that might be easier.
mloveless has quit [Remote host closed the connection]
commmmodo has quit [Quit: commmmodo]
slyv has quit [Quit: Textual IRC Client: www.textualapp.com]
mloveless has joined #ruby
<kl> zenspider: my biggest fear is taking a job on a team of developers that write BS code.
<splud> post-release code reviews at a company I used to work for were called postmortems.
<kl> It would literally ruin my working life.
johnkary has quit [Ping timeout: 246 seconds]
<splud> My biggest fear is visual-anything.
<splud> or cobol.
ta_ has quit [Ping timeout: 276 seconds]
postmodern has joined #ruby
albert has quit [Remote host closed the connection]
dspangenberg has quit [Ping timeout: 265 seconds]
commmmodo has joined #ruby
<wallerdev> vb.net isnt too bad
fgo has quit [Ping timeout: 255 seconds]
<wallerdev> i did it for a couple years, basically the same as c# or java
Harlin has quit [Quit: Leaving]
<wallerdev> with dumb syntax haha
Codemule42 has quit [Read error: Connection reset by peer]
Codemule42 has joined #ruby
tpilionis has quit [Ping timeout: 244 seconds]
yfeldblum has joined #ruby
bruno- has quit [Quit: leaving]
AlSquire has quit [Quit: This computer has gone to sleep]
<postmodern> is there something like Hash#values_at, but returns a Hash?
<postmodern> seems like I'm stuck between values_at and using select
jonr22 has joined #ruby
senayar has quit [Remote host closed the connection]
lodgenbd has quit [Quit: Leaving]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
uptownhr has quit [Quit: uptownhr]
ki0 has quit [Remote host closed the connection]
shime has joined #ruby
giuseppesolinas has joined #ruby
Aova has quit [Read error: Connection reset by peer]
davedev24_ has quit [Ping timeout: 265 seconds]
davedev2_ has joined #ruby
jonr22 has quit [Ping timeout: 245 seconds]
SpikeMaster has joined #ruby
failshell has joined #ruby
ozialien_ has quit [Remote host closed the connection]
crocket has joined #ruby
juanpablo_ has quit [Quit: (null)]
adriancb has quit [Remote host closed the connection]
<crocket> bb-m.rubygems.org times out frequently, so I can't install gems.
plashchynski has quit [Quit: plashchynski]
<crocket> Can anyone bring it up?
Takle has quit [Remote host closed the connection]
<crocket> I'm so deperate.
ta_ has joined #ruby
<crocket> I'm so desperate.
<wallerdev> lol
reinaldob has joined #ruby
<zenspider> I don't even know what that is
<wallerdev> its probably one of the rubygems mirrors
<wallerdev> they give you a different mirror based on what country you try to download from
<crocket> bb-m.rubygems.org is the single reason that I can't install gems.
crueber has quit [Quit: Leaving.]
<crocket> I don't know how to choose a different mirror.
Aova has joined #ruby
<wallerdev> might be able to overwrite it in your hosts file
einarj has quit [Remote host closed the connection]
<zenspider> gems install for me. go to #rubygems and ask around
roshanavand has quit [Ping timeout: 256 seconds]
<crocket> wallerdev, Do you suggest I overwrite bb-m.rubygems.org?
<zenspider> and don't specify what to hit at all
<crocket> Oh my god...
<crocket> bb-m.rubygesm.org can't download mycarpet
<crocket> I mean redcarpet
<wallerdev> lol
failshell has quit [Ping timeout: 272 seconds]
adriancb has joined #ruby
<wallerdev> can download and install it manually or overwrite the server in your hosts file
Jetchisel has quit [Ping timeout: 264 seconds]
SpikeMaster has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
leonshalimov has joined #ruby
<crocket> How do I avoid bb-m.rubygems.org ?
davedev2_ has quit [Ping timeout: 256 seconds]
davedev24_ has joined #ruby
^james^ has quit [Quit: Leaving]
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
metadave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wldcordeiro has joined #ruby
ta_ has quit [Ping timeout: 264 seconds]
neoxquick has quit [Read error: Connection reset by peer]
ezioa has joined #ruby
metadave has joined #ruby
__chris has joined #ruby
ponga has joined #ruby
<wallerdev> should be able to get it from the same server zenspider linked
<wallerdev> if you know the version you want
<wallerdev> its the same format just paste it in your browser
leonshalimov has quit [Ping timeout: 265 seconds]
chrisja has quit [Quit: leaving]
aaas has quit [Quit: Going offline, see ya! (www.adiirc.com)]
aaas has joined #ruby
thumpba has joined #ruby
metadave has quit [Ping timeout: 244 seconds]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fcanela has quit [Quit: leaving]
wallerdev has quit [Ping timeout: 255 seconds]
centrx has joined #ruby
pika_pika has joined #ruby
momomomomo has quit [Quit: momomomomo]
fgo has joined #ruby
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
plashchynski has joined #ruby
ta_ has joined #ruby
Channel6 has quit [Quit: Leaving]
sevenseacat has joined #ruby
_1_alejandro has joined #ruby
Dude007 has joined #ruby
pengin has quit []
<_1_alejandro> :D
Dude007 has quit [Remote host closed the connection]
wldcordeiro has quit [Quit: Leaving]
nii236|irssi has joined #ruby
mloveless has quit [Remote host closed the connection]
axilla has quit [Quit: Lost terminal]
echevemaster has joined #ruby
DadoCe has quit [Remote host closed the connection]
jobewan has joined #ruby
cantonic has joined #ruby
Dude007 has joined #ruby
fmcgeough has joined #ruby
athan has quit [Read error: Connection reset by peer]
athan has joined #ruby
jerius has quit []
_1_alejandro has quit [Remote host closed the connection]
yuciyuar has quit [Quit: Leaving]
plashchynski has quit [Quit: plashchynski]
fryguy9 has quit [Quit: Leaving.]
mostlybadfly has quit [Quit: Connection closed for inactivity]
bronson has joined #ruby
jmdade has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
athan has quit [Ping timeout: 240 seconds]
ta_ has quit [Ping timeout: 276 seconds]
pietr0 has quit [Quit: pietr0]
__chris has quit [Ping timeout: 255 seconds]
blackmesa has quit [Ping timeout: 256 seconds]
fmcgeough has quit [Quit: fmcgeough]
OrbitalKitten has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
adriancb has quit [Remote host closed the connection]
plashchynski has joined #ruby
OrbitalKitten has quit [Client Quit]
Codemule42 has quit [Quit: Leaving.]
raphaelss has quit [Quit: leaving]
commmmodo has quit [Quit: commmmodo]
gr33n7007h has quit [Remote host closed the connection]
gr33n7007h has joined #ruby
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
<ellisTAA> i’m trying to see if a variable does not equal nil, would i write it like @Variable_name !== nil
tier has joined #ruby
nii236|irssi has quit [Quit: leaving]
Megtastique has quit []
gr33n7007h has quit [Remote host closed the connection]
gr33n7007h has joined #ruby
Guest6396 has quit [Quit: LayerBNC - https://LayerBNC.net/]
<ellisTAA> nvm
OrbitalKitten has joined #ruby
<crocket> I finally went through the rubygems timeout hell.
GaryOak_ has quit [Remote host closed the connection]
mwlang has quit [Quit: mwlang]
<centrx> ellisTAA, nil itself is falsy, and @variable.nil? will return a true/false if you like
mrmargolis has joined #ruby
plashchynski has quit [Quit: plashchynski]
tmk1108 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
yellowgh0st has joined #ruby
ta_ has joined #ruby
<yellowgh0st> heyall
phoo1234567 has quit [Quit: Leaving]
plashchynski has joined #ruby
plashchynski has quit [Client Quit]
nobitanobi has quit []
<weaksauce> ellisTAA there are only two things that evaluate to false in ruby. nil and false
<ellisTAA> centrx: ty
<ellisTAA> weaksauce: ty too
<weaksauce> ellisTAA have you tried the codeacademy.com ruby course yet?
marr has quit [Ping timeout: 255 seconds]
OrbitalKitten has quit [Ping timeout: 252 seconds]
mrmargolis has quit [Remote host closed the connection]
<ellisTAA> i dont need to do the course, i need practice, i already learned the concepts
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
avahey has joined #ruby
xenomorph has quit [Quit: ZNC - http://znc.in]
<weaksauce> ellisTAA that provides practice... it's not a book
<weaksauce> it's interactive
jerius has joined #ruby
<ellisTAA> ill check it out as soon as i get these problems done
ninjazach has joined #ruby
ivanskie has joined #ruby
ninjazach is now known as Guest57534
nuck has quit [Quit: Computer has gone to sleep.]
tylersmith has quit [Remote host closed the connection]
<weaksauce> i'd suggest you check it out now. you really don't have a great grasp on the concepts and it would help you immensely. if you do know the language as well as you think you do it shouldn't take much time at all to breeze through it.
fgo has quit [Ping timeout: 276 seconds]
nii236|irssi has joined #ruby
oo_ has joined #ruby
tmk1108 has joined #ruby
DadoCe has joined #ruby
dfinninger has quit [Remote host closed the connection]
FooMunki_ has joined #ruby
ki0 has joined #ruby
djbkd has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
Aova has quit [Read error: Connection reset by peer]
<zenspider> nil checks are almost always a code smell
<zenspider> btw... codeschool is apparently free for the next 3 days
<weaksauce> is that better than codeacademy?
nuck has joined #ruby
djbkd has joined #ruby
Parker0 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<weaksauce> codeacademy is free
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jerematic has quit [Remote host closed the connection]
<zenspider> dunno. I don't use either of them
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jerematic has joined #ruby
ivanskie has joined #ruby
Parker0 has joined #ruby
dspangenberg has joined #ruby
<sevenseacat> codeschool is good for the basics and for lots of hand-holding
ki0 has quit [Ping timeout: 256 seconds]
klmlfl has joined #ruby
<sevenseacat> and its ruby course was pretty meh
Deele has quit [Ping timeout: 245 seconds]
Codemule42 has joined #ruby
Parker0 has quit [Client Quit]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Aova has joined #ruby
<pipework> I like learning ruby by using TWGR, then picking up a pickaxe for reference, and then getting metaprogramming ruby and only reading the first half.
<pipework> After that, you're kinda set to go learn anything.
ta_ has quit [Ping timeout: 276 seconds]
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nuck has quit [Ping timeout: 264 seconds]
<nii236|irssi> sevenseacat: What do you suggest for a pathway from ruby to rails then?
nuck has joined #ruby
dspangenberg has quit [Ping timeout: 265 seconds]
Codemule42 has quit [Remote host closed the connection]
<ellisTAA> i’m currently using .assoc(obj) on a hash to return a key and value that match my argument, but it is formatting it like this [“key name”, “value name”]. Anyone know a method that will do the same thing and return it in this format [“key name” => “value name”]?
djbkd has quit [Remote host closed the connection]
reinaldob has quit [Remote host closed the connection]
djbkd has joined #ruby
dseitz has joined #ruby
<centrx> ellisTAA, interpolate a string that looks how you want it to look
<ellisTAA> ahh .. ok thanks
jgrevich_ has joined #ruby
jgrevich has quit [Ping timeout: 245 seconds]
jgrevich_ is now known as jgrevich
wallerdev has joined #ruby
<zenspider> ellisTAA: you mean, it is doing exactly what the doco says it'll do
haasn has quit [Quit: haasn]
<zenspider> ellisTAA: why are you worried whether the result is an array or a hash?
<ellisTAA> yep
parduse has joined #ruby
<ellisTAA> i dont care, it’s the test that i’m working on, i didnt write it
<zenspider> and [“key name” => “value name”] is nonsensical. that's an array with a hash syntax
<ellisTAA> well that’s how assoc outputs it...
meinside has joined #ruby
<zenspider> no it isn't
jerematic has quit [Remote host closed the connection]
<zenspider> ["key" => "val"] doesn't exist
nanoyak has joined #ruby
<centrx> assoc outputs an array, but he wants this specific format to satisfy a test problem he is doing
<centrx> apparently
Joufflu has joined #ruby
<zenspider> that's great. what he's asking for is nonsensical
michael_mbp has quit [Excess Flood]
<ellisTAA> centrx: could u help me out with creating a string for my output? right now i’m not really controlling the format so i’m not sure how to turn it into a string with interpolation. https://gist.github.com/ellisTAA/0a8c4da823b3851e7685 line 66 is the current output
michael_mbp has joined #ruby
<weaksauce> pipework eloquent ruby is really good.
<pipework> weaksauce: Yeah, it totally is! I don't know how I feel about handing that to a beginner though.
<pipework> I feel like they need to skin their knees a bit on ineloquent ruby for a while.
<weaksauce> oh definitely not!
maletor has joined #ruby
ta_ has joined #ruby
jimmyhoughjr has quit [Quit: Textual IRC Client: www.textualapp.com]
<weaksauce> that's more of an "ok, I know the syntax and how to do things... how do I make it better"
<crocket> Buh
pdoherty has joined #ruby
Channel6 has joined #ruby
Lexun has quit [Remote host closed the connection]
tkuchiki has joined #ruby
<pipework> I could see that as a good way to bring up people who do it the right way from the start, but I worry about them being unable to do much more than just parrot his opinions on why being eloquent is better. Sometimes having no previous experience to compare against could shake the foundation that eloquence brought them
nanoyak has quit [Ping timeout: 256 seconds]
<ellisTAA> r u guys talking about advi grimm’s book?
haasn has joined #ruby
<zenspider> gah that's a mess
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ellisTAA> what’s a mess?
<zenspider> I... I can't even finish reading that
<zenspider> your code
<ellisTAA> lol
<zenspider> your logic and your code
<ellisTAA> i welcome feedback
<zenspider> 1) use your text editor and reformat your code to be idiomatic and readable
TinkerTyper has quit [Ping timeout: 265 seconds]
<ellisTAA> zenspider: ok ill do that
mrmargolis has joined #ruby
ta_ has quit [Ping timeout: 264 seconds]
pdoherty has quit [Ping timeout: 245 seconds]
TinkerTyper has joined #ruby
pdoherty has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
ezioa has quit [Quit: Leaving]
brian_ has quit [Ping timeout: 256 seconds]
it0a has joined #ruby
fgo has joined #ruby
test33626 has joined #ruby
test33626 has left #ruby [#ruby]
test33626 has joined #ruby
test33626 has left #ruby [#ruby]
test33626 has joined #ruby
test33626 has left #ruby [#ruby]
crocket has left #ruby ["Leaving"]
amclain has joined #ruby
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
josephndenton has joined #ruby
shime has quit [Ping timeout: 245 seconds]
djbkd has quit [Quit: My people need me...]
ta_ has joined #ruby
valkyrka has quit [Ping timeout: 245 seconds]
longfeet has joined #ruby
djbkd has joined #ruby
bricker has quit [Ping timeout: 252 seconds]
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brandon_ has quit [Ping timeout: 272 seconds]
robustus has quit [Ping timeout: 264 seconds]
ta_ has quit [Ping timeout: 276 seconds]
athan has joined #ruby
sent1nel has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 255 seconds]
tier has quit [Remote host closed the connection]
deric_skibotn has quit [Ping timeout: 276 seconds]
robustus|Off has joined #ruby
tmk1108 has quit [Remote host closed the connection]
robustus|Off is now known as robustus
poikon has quit []
ta_ has joined #ruby
openscript has joined #ruby
jonr22 has joined #ruby
brandon_ has joined #ruby
nuck has quit [Quit: Computer has gone to sleep.]
centrx has quit [Quit: Science is organized knowledge, wisdom is organized life.]
arescorpio has joined #ruby
Megtastique has joined #ruby
tier has joined #ruby
Hobogrammer has joined #ruby
vaneda has joined #ruby
jonr22 has quit [Ping timeout: 255 seconds]
ta_ has quit [Ping timeout: 264 seconds]
FooMunki_ has quit [Quit: FooMunki_]
failshell has joined #ruby
klmlfl has quit [Remote host closed the connection]
eka has joined #ruby
hrs has joined #ruby
openscript has quit [Quit: Page closed]
slyv has joined #ruby
ellisTAA has quit [Quit: ellisTAA]
failshell has quit [Ping timeout: 272 seconds]
leonshalimov has joined #ruby
vaneda has quit []
zachrab has quit [Remote host closed the connection]
DadoCe has quit [Remote host closed the connection]
EvanFreeman has joined #ruby
<ponga> hey shevy
<ponga> are you there
hrs has left #ruby [#ruby]
nuck has joined #ruby
DadoCe has joined #ruby
Aova has quit [Read error: Connection reset by peer]
bthesorceror has quit [Quit: bthesorceror]
pdoherty has quit [Remote host closed the connection]
Hijiri has joined #ruby
paulfm has joined #ruby
leonshalimov has quit [Ping timeout: 245 seconds]
ta_ has joined #ruby
Dude007 has quit [Ping timeout: 264 seconds]
josephndenton has quit [Ping timeout: 244 seconds]
zachrab has joined #ruby
Number2 has quit [Remote host closed the connection]
Aova has joined #ruby
deol has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
beef-wellington has quit [Ping timeout: 265 seconds]
suy has quit [Ping timeout: 245 seconds]
hamakn has joined #ruby
DadoCe has quit [Remote host closed the connection]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
DadoCe has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fandi has quit [Remote host closed the connection]
psy_ has quit [Quit: Leaving]
nateberkopec has joined #ruby
vaneda has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
luriv has quit [Ping timeout: 255 seconds]
russt_ has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
ferr has quit [Quit: Lost terminal]
bthesorceror has joined #ruby
pdoherty has joined #ruby
suy has joined #ruby
triple_b has joined #ruby
DadoCe has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
josephndenton has joined #ruby
martin_work has quit [Ping timeout: 244 seconds]
pika_pika has quit [Ping timeout: 265 seconds]
zachrab has quit [Remote host closed the connection]
mloveless has joined #ruby
zachrab has joined #ruby
aspiers has quit [Ping timeout: 245 seconds]
ramfjord has quit [Ping timeout: 252 seconds]
hackeron has quit [Ping timeout: 252 seconds]
ta_ has quit [Ping timeout: 252 seconds]
bronson has joined #ruby
eka has joined #ruby
dspangenberg has joined #ruby
jshultz has quit [Quit: Connection closed for inactivity]
hackeron has joined #ruby
josephndenton has quit [Ping timeout: 252 seconds]
happyface has quit [Quit: Connection closed for inactivity]
jottr has quit [Ping timeout: 264 seconds]
krz has joined #ruby
zachrab has quit [Ping timeout: 256 seconds]
vaneda has quit [Ping timeout: 255 seconds]
Junaos has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
tyfighter has quit [Quit: tyfighter]
dspangenberg has quit [Ping timeout: 264 seconds]
JDiPierro has joined #ruby
aspiers has joined #ruby
hrs has joined #ruby
hrs has quit [Client Quit]
paulfm has quit [Quit: Goodbye]
senayar has joined #ruby
snath has joined #ruby
JDiPierro has quit [Ping timeout: 264 seconds]
timanema has quit [Ping timeout: 264 seconds]
failshell has joined #ruby
patric100e99 has joined #ruby
<Cat_1> Pretty empty in here
wallerdev has quit [Quit: wallerdev]
yeticry has quit [Read error: Connection reset by peer]
senayar has quit [Ping timeout: 240 seconds]
vaneda has joined #ruby
bronson has joined #ruby
crazymykl has joined #ruby
razieliyo has quit [Ping timeout: 252 seconds]
bronson has quit [Remote host closed the connection]
tier has quit [Remote host closed the connection]
bronson has joined #ruby
arup_r has joined #ruby
kapil__ has joined #ruby
bronson has quit [Remote host closed the connection]
tyfighter has joined #ruby
davidhq has quit [Ping timeout: 264 seconds]
mikemac has quit [Ping timeout: 256 seconds]
martin_work has joined #ruby
yeticry has joined #ruby
mikemac has joined #ruby
thumpba has quit [Remote host closed the connection]
thumpba has joined #ruby
CpuID2 has joined #ruby
CpuID2 has joined #ruby
sankaber has joined #ruby
jgrevich_ has joined #ruby
crazymykl has quit [Ping timeout: 244 seconds]
symbol_ has joined #ruby
jgrevich_ has quit [Client Quit]
shazaum has quit [Quit: This computer has gone to sleep]
failshell has quit [Remote host closed the connection]
jgrevich has quit [Ping timeout: 264 seconds]
Jetchisel has joined #ruby
jerius has quit []
klmlfl has joined #ruby
nateberkopec has quit [Quit: Leaving...]
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
tylersmith has joined #ruby
ta_ has joined #ruby
maximski has joined #ruby
postmodern has quit [Quit: Leaving]
CpuID2 has quit [Quit: This computer has gone to sleep]
mikemac has quit [Remote host closed the connection]
mikemac has joined #ruby
maximski has quit [Ping timeout: 255 seconds]
Takle has joined #ruby
n008f4g_ has quit [Ping timeout: 256 seconds]
vt102 has quit [Ping timeout: 265 seconds]
klmlfl has quit [Remote host closed the connection]
krz has quit [Read error: Connection reset by peer]
ellisTAA has joined #ruby
ta_ has quit [Ping timeout: 245 seconds]
Takle has quit [Ping timeout: 265 seconds]
tyfighter has quit [Quit: tyfighter]
reset has quit [Quit: Leaving...]
tyfighter has joined #ruby
Channel6 has quit [Ping timeout: 246 seconds]
Dude007 has joined #ruby
ki0 has joined #ruby
nuck has quit [Quit: Textual IRC Client: www.textualapp.com]
sent1nel has joined #ruby
Aova has quit [Read error: Connection reset by peer]
jonmorehouse has joined #ruby
wallerdev has joined #ruby
codeFiend has quit [Ping timeout: 252 seconds]
ki0 has quit [Ping timeout: 276 seconds]
Aova has joined #ruby
braincrash has quit [Ping timeout: 245 seconds]
djbkd has joined #ruby
centrx has joined #ruby
martin_work has quit [Quit: martin_work]
DadoCe has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
Authenticator has quit [Quit: leaving]
Channel6 has joined #ruby
Dude007 has quit [Ping timeout: 244 seconds]
djbkd has quit [Ping timeout: 264 seconds]
DadoCe has quit [Ping timeout: 245 seconds]
it0a has quit [Quit: WeeChat 1.1]
centrx has quit [Quit: Science is organized knowledge, wisdom is organized life.]
_yinzer_ has joined #ruby
slyv has quit [Remote host closed the connection]
oo_ has quit [Ping timeout: 244 seconds]
braincrash has joined #ruby
josephndenton has joined #ruby
swgillespie has joined #ruby
jottr has joined #ruby
kstuart_ has joined #ruby
roolo has joined #ruby
<ericwood> non-work hours
pdoherty has quit [Remote host closed the connection]
Endoze has joined #ruby
<sevenseacat> for some people
oo_ has joined #ruby
towski_ has quit [Remote host closed the connection]
kstuart has quit [Ping timeout: 245 seconds]
<xcesariox> where do i put this "results = Book.collection.map_reduce(map, reduce, out: "vr")" command syntax into? into rails console or mongodb console directly? https://gist.github.com/shaunstanislaus/0f8d87939c0ab01ce5d6
josephndenton has quit [Ping timeout: 276 seconds]
dc_ has quit [Remote host closed the connection]
<sevenseacat> xcesariox: don't cross-post.
jottr has quit [Ping timeout: 264 seconds]
<sevenseacat> especially if what you're cross-posting is offtopic in one of the channels.
Endoze has quit [Quit: WeeChat 1.1.1]
<ericwood> yeah hadoop is strictly forbidden here
Dude007 has joined #ruby
kenneth has joined #ruby
Endoze has joined #ruby
roolo has quit [Ping timeout: 265 seconds]
krz has joined #ruby
<chipotle> helllo ruby
crazymykl has joined #ruby
radic has quit [Ping timeout: 245 seconds]
Dude007 has quit [Ping timeout: 276 seconds]
radic has joined #ruby
mikemac has quit [Ping timeout: 240 seconds]
kenneth has quit [Quit: Bye.]
EvanFreeman has quit [Remote host closed the connection]
Endoze has quit [Quit: WeeChat 1.1.1]
Suit_Of_Sables has quit [Quit: WeeChat 0.4.0]
EvanFreeman has joined #ruby
<gr33n7007h> can someone tell my why when I add `unless @queue.pop.nil?` it only pops half of half but when I remove `unless @queue.pop.nil?` it pops all off #=> https://gist.github.com/anonymous/6b0c5c33bf2e32feafa7 (line 79)
<gr33n7007h> my brain ain't working thank you muchly
jonr22 has joined #ruby
<sevenseacat> you're welcome
dc_ has joined #ruby
<gr33n7007h> and it's late :(
nux443 has joined #ruby
EvanFreeman has quit [Ping timeout: 244 seconds]
bronson has joined #ruby
mrmargolis has quit [Remote host closed the connection]
kenneth has joined #ruby
adriancb has joined #ruby
jonr22 has quit [Ping timeout: 256 seconds]
TripTastic is now known as JBreit
ponga has quit [Ping timeout: 240 seconds]
kenneth has quit [Client Quit]
ponga has joined #ruby
timanema has joined #ruby
josephndenton has joined #ruby
bronson has quit [Ping timeout: 264 seconds]
hgl has quit [Ping timeout: 256 seconds]
tus has quit []
<epitron> gr33n7007h: dude
<epitron> queue.pop is destructive
failshell has joined #ruby
<epitron> that's like saying, "puts string if string.erase"
kenneth has joined #ruby
<epitron> it should be: "target = @queue.pop unless @queue.empty?"
<epitron> no wait
<epitron> lol
<epitron> that loop should be:
adriancb has quit [Ping timeout: 252 seconds]
<epitron> while target = @queue.pop
<epitron> ...
<epitron> end
<epitron> i think you need some sleep gr33n7007h
hgl has joined #ruby
<gr33n7007h> yes, fuck it going bed
* gr33n7007h YAWN
jenrzzz has joined #ruby
leonshalimov has joined #ruby
<gr33n7007h> anyways cheers epitron i'' change it in the morning
psy_ has joined #ruby
psy_ has quit [Max SendQ exceeded]
psy_ has joined #ruby
failshell has quit [Ping timeout: 265 seconds]
<epitron> \o/
<epitron> good ascii art btw
Koshian has quit [Quit: Tiarra 0.1+svn-39209: SIGTERM received; exit]
longfeet has quit [Ping timeout: 252 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timanema has quit [Ping timeout: 265 seconds]
greenbagels has quit [Quit: Leaving]
braincrash has quit [Quit: bye bye]
<gr33n7007h> epitron: just changed it to while target = @queue.pop ... end it finished right at the I get a fierce.rb:77:in `join': deadlock detected (fatal)
martin_work has joined #ruby
leonshalimov has quit [Ping timeout: 245 seconds]
josephndenton has quit [Ping timeout: 256 seconds]
porfa has joined #ruby
<gr33n7007h> goodnight god bless
d10n-work has quit [Quit: Connection closed for inactivity]
<epitron> awwyeah
<epitron> deadlock bedtime
Neomex has quit [Ping timeout: 265 seconds]
jhass is now known as jhass_
jhass_ is now known as jhass
braincrash has joined #ruby
AlexRussia has quit [Ping timeout: 245 seconds]
AlexRussia has joined #ruby
nanoyak has joined #ruby
Aova has quit [Read error: Connection reset by peer]
yellowgh0st has quit [Quit: yellowgh0st]
arup_r has quit [Quit: Leaving.]
troubadour has joined #ruby
Koshian has joined #ruby
<nii236|irssi> Argh crap I'm up to regex topic in koan nooo
cantonic has quit [Quit: cantonic]
Koshian is now known as Koshian
kyb3r_ has joined #ruby
Aova has joined #ruby
Nilium has quit [Quit: <kristin> Cower is like... I dunno. sometimes he seems senile and other times he seems like a middle schooler.]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ursooperduper has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skj3gg has joined #ruby
dspangenberg has joined #ruby
EasyCo has joined #ruby
cantonic has joined #ruby
<EasyCo> Hey guys, general tool question... what tools, if any, do you guys use for planning out an application. i.e. mapping features, user stories and so on...
<mozzarella> just a regular text editor
dspangenberg has quit [Ping timeout: 252 seconds]
cantonic has quit [Read error: Connection reset by peer]
Nilium has joined #ruby
cantonic has joined #ruby
<EasyCo> mozzarella: Thanks, we just use whiteboards and word as well. Just wondering if there was a nice tool out there that kind of brought them all together.
bluOxigen has joined #ruby
timanema has joined #ruby
oo_ has quit [Remote host closed the connection]
jerematic has joined #ruby
symbol_ has quit [Ping timeout: 244 seconds]
jerematic has quit [Read error: Connection reset by peer]
craigp has quit [Remote host closed the connection]
davedev24_ has quit [Ping timeout: 255 seconds]
jimmyhoughjr has joined #ruby
davedev24_ has joined #ruby
bricker has joined #ruby
timanema has quit [Ping timeout: 264 seconds]
thumpba_ has joined #ruby
krz has quit [Read error: Connection reset by peer]
frem has quit [Quit: Connection closed for inactivity]
towski_ has joined #ruby
Nilium has quit [Quit: <kristin> Cower is like... I dunno. sometimes he seems senile and other times he seems like a middle schooler.]
Parker0 has joined #ruby
snath has quit [Ping timeout: 246 seconds]
towski_ has quit [Remote host closed the connection]
vaneda has quit [Quit: Computer has gone to sleep.]
Nilium has joined #ruby
thumpba has quit [Ping timeout: 276 seconds]
skj3gg has quit [Quit: ZZZzzz…]
hgl has quit [Ping timeout: 245 seconds]
bricker has quit [Quit: leaving]
agjacome has quit [Quit: leaving]
Parker0 has quit [Client Quit]
krz has joined #ruby
hgl has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mloveless has quit [Remote host closed the connection]
arescorpio has quit [Excess Flood]
skj3gg has joined #ruby
senayar has joined #ruby
sivoais has quit [Ping timeout: 264 seconds]
Mon_Ouie has quit [Quit: WeeChat 1.1]
sivoais has joined #ruby
Sakens has joined #ruby
bthesorceror has quit [Quit: bthesorceror]
senayar has quit [Ping timeout: 245 seconds]
snath has joined #ruby
troubadour has quit [Quit: troubadour]
ponga has quit [Remote host closed the connection]
Pharaoh2 has joined #ruby
chrishough has joined #ruby
Takle has joined #ruby
zumbi has quit [Read error: Connection reset by peer]
kapil__ has quit [Quit: Connection closed for inactivity]
ferr has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<weaksauce> nii236|irssi why aw crap?
<weaksauce> regex is useful
ivanskie has joined #ruby
thumpba_ has quit [Remote host closed the connection]
thumpba has joined #ruby
bthesorceror has joined #ruby
jaequery has joined #ruby
Takle has quit [Ping timeout: 256 seconds]
DadoCe has joined #ruby
thumpba has quit [Remote host closed the connection]
<epitron> EasyCo: mindmapping software is nice
CamonZ has quit [Quit: Textual IRC Client: www.textualapp.com]
<epitron> as are wikis
<EasyCo> epitron: Any mind mapping software you like?
thumpba has joined #ruby
<epitron> i use XMind because it's free :)
<epitron> oh! workflowy is great
<epitron> it's like a linear mindmap :)
atomical has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thumpba has quit [Remote host closed the connection]
<epitron> it's been a lot more useful for me than xmind
<epitron> a) you can search it, b) two people can edit it simultaneously from different browsers, c) it loads fast
<epitron> d) tags
DadoCe has quit [Ping timeout: 252 seconds]
<epitron> i really like being able to "zoom into" a node
<EasyCo> Cool, I'll have a look, thanks for your input. Pivotal Tracker also looks pretty nice for agile dev with user stories.
<epitron> mindmaps don't have that
JBreit has quit [Quit: Leaving]
<epitron> haha
JBreit has joined #ruby
<epitron> i'm not a fan of heavy tools
<epitron> i always stop using them
<epitron> oh yeah, e) you can dump your whole workflowy database to an indented textfile, and reimport it later
<epitron> or wait.. i might be thinking of onetab :)
<EasyCo> Haha
<EasyCo> Obviously tried a few...
skj3gg has quit [Quit: ZZZzzz…]
<epitron> onetab is "git stash" for chrome tabs :)
<epitron> different, but also nice
<Nilium> "git stash" for tabs is called minimizing the window and opening a new one.
echevemaster has quit [Quit: Leaving]
<epitron> so yes, "outliners" is the class of tools that workflowy is a member of
<Nilium> Your mind has been blown.
<epitron> there are other outliners
<epitron> Nilium: sounds good. now i just need 128GB of ram :D
<Nilium> I've got 16gb and it hasn't been an issue yet
<Nilium> But then I don't use Chrome, so I guess my memory usage isn't through the roof yet.
<epitron> if you never close windows, you'll get there pretty fast
<epitron> when i stopped using chrome, my memory usage never broke 2gigs :)
<Nilium> Kind of funny that Chrome is the new Firefox: bloated, slow, and kind of annoying.
<Nilium> Meanwhile, Firefox just crashes if you hit 200 tabs or so.
TheNet has joined #ruby
<EasyCo> 200 tabs! I feel durtay if I have more than 10 open.
JBreit has left #ruby ["Leaving"]
<epitron> yeah, that's too many tabs
thumpba has joined #ruby
djbkd has joined #ruby
thumpba has quit [Remote host closed the connection]
<epitron> these are good :)
<Nilium> I just use a notebook with graph paper.
<Nilium> I'm lazy about this stuff.
<epitron> yep
<epitron> it has to be something you'll actually use
<epitron> that's the problem with those bit complex atlassian webapps
<epitron> *big
<Nilium> Trouble with software for it is I can't drag the software with me when I go to call someone an idiot
hgl has quit [Ping timeout: 245 seconds]
<TheNet> has anyone here tried opal and if so were you impressed?
<epitron> "hold on!! let me pull it up on my phone!!!"
<epitron> *looks down and pokes at phone for 5 minutes*
Aova has quit [Ping timeout: 245 seconds]
<epitron> opal isn't bad
<Nilium> 'Cause I'm very big on just getting up from my desk and walking over to the person who I want to talk to (or is currently on my shit-list)
<epitron> the js it produces is pretty hard to read though
<epitron> i was impressed with how much of ruby was suppored
<Nilium> I think Opal produces source maps, so there's maybe that.
<TheNet> I don't really care about readability, how did you find the performance though?
CpuID2 has joined #ruby
CpuID2 has joined #ruby
<Nilium> I'd honestly never use it though.
<epitron> i didn't use it much
hgl has joined #ruby
<epitron> i just played around with it for a few minutes
<Nilium> Unless a to-javascript language has static typing or reduces the amount of code I have to write drastically, I don't care. It's a pain to debug.
<epitron> it was very fast at 10 line ruby code!
yfeldblu_ has joined #ruby
<epitron> pain to debug is more of a browser problem than the language
<TheNet> Nilium: I just perfer the ruby syntax much more than javascript. I'm trying to decide between it and coffee script
<Nilium> It's bad enough that debugging anything in JS is already horrible, I don't like having to also keep a compiler in my head.
<epitron> sourcemaps should make that easy
<epitron> but no :)
<epitron> browsers \o/
djbkd has quit [Ping timeout: 244 seconds]
skj3gg has joined #ruby
Aova has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
<mozzarella> I have the same opinion as Nilium
<epitron> i actually liked using coffeescript
<epitron> do any browsers support ES6 yet?
kapil__ has joined #ruby
<mozzarella> coffeescript is easier to transform I think
posixpascal has joined #ruby
CpuID2 has quit [Quit: This computer has gone to sleep]
parduse has quit []
<epitron> yeah
<epitron> the JS it generates is readable
deuti has joined #ruby
crazymykl has quit [Read error: Connection reset by peer]
<epitron> programming is definitely generating a tower of babel kind of situation
<mozzarella> yeah, it's closer to javascript than ruby, it's really just a different syntax for the same thing, with a few addons
parduse has joined #ruby
<epitron> so many people trying to make programming better by adding yet another language
<Nilium> I use LiveScript for most things, much to the chagrin of every other human being on the planet
<mozzarella> I don't write enough javascript to bother using something else
<nii236|irssi> weaksauce: regex hurts my brain
<epitron> i think we need to unify our efforts so we can have a cross-language standard library (that's not written in C)
<epitron> then, "yet another language" will be useful from its birth
<mozzarella> eeeww
<Nilium> I'd probably use Dart if I thought I cared, but I don't
GGMethos has quit [Quit: WeeChat 1.0.1]
<Nilium> Or PureScript
<weaksauce> regex is best ex
<Nilium> PureScript, however, requires haskell to be installed, and so I haven't actually tried it.
<epitron> ES6 is going to win
<epitron> it just needs to be released
<mozzarella> epitron: I think different browsers support different parts of ES6
<weaksauce> nii236|irssi ^
astrobun_ has joined #ruby
<mozzarella> parts/features
<Nilium> ES6 will be unused because nobody will write anything for it due to legacy support issues.
hgl has quit [Ping timeout: 265 seconds]
<epitron> Nilium: there's polyfills
<mozzarella> I don't think any of them support it entirely
<Nilium> epitron: You can't polyfill syntax.
<epitron> you can already write ES6 that compiles to JS
<epitron> yes you can :)
<weaksauce> just don't use if for things that you shouldn't be using regex for. nii236|irssi
<Nilium> If you compile to JS then it's not ES6 -_-
<epitron> whatever SEMANTICO
<epitron> you can totally use ES6 and support old browsers
<mozzarella> Nilium: >legacy support issues
<mozzarella> it's seriously not as bad as it was
<mozzarella> the web is moving pretty fast now
<epitron> yeah, now that everyone's stopped trying to resist it
<Nilium> Not fast enough, considering JS is still a thing. ಠ_ಠ
hgl has joined #ruby
<epitron> "just go with the web bro"
<epitron> <genius engineer> "fiiiiiiiiine"
<Nilium> You ever noticed how replacing javascript has never been an option on the table? That's legacy support crap.
<epitron> *V8*
jaequery has quit [Quit: Textual IRC Client: www.textualapp.com]
LetErikTry has quit [Quit: sleep]
<epitron> NaCl was the answer to replacing JS
troubadour has joined #ruby
<Nilium> Getting any sort of change or improvement to browsers in is the slowest process on the planet and requires one browser to be self-updating and the only thing in use ever.
<epitron> it used to be the slowest thing ever
<epitron> it's pretty fast now though
<epitron> chrome is zipping along
marcdel has joined #ruby
<epitron> and everyone has to catch up to them to remain relevant
<Nilium> Not really.
<epitron> which part is not real?
<mozzarella> they're trying to improve JS instead of replacing it
<epitron> the real problem with replacing JS is that upgrading human brains is a lot harder
<Nilium> Chrome can't do anything to force any other browser maker's hand.
<epitron> ES6 is just javascripty enough that people will go with it
<epitron> Nilium: right, but there are really only 2 browser makers left: Chrome-based, and Firefox
<Nilium> If Chrome does something, then you have to say "this is only for Chrome" and the people who can't use it will probably just ignore it because it's too much of a pain to install Chrome and then run it.
<Nilium> You forgot Apple.
<epitron> and IE, if your company's IT guy sucks
klaas has quit [Quit: ZNC - http://znc.sourceforge.net]
<epitron> Safari is basically chrome :)
<Nilium> Lest we forget iOS is still relevant, and Safari as a result.
aagdbl has joined #ruby
siso has joined #ruby
<mozzarella> chrome is trying to push dart and it's not working
<epitron> true, mobile is a different issue
<epitron> most mobile browsers are webkit-based though
<mozzarella> they should make browsers read bytecode, and we could use any language and make it output bytecode instead
<epitron> mozzarella: if you read their original memo, they actually predicted that the web might beat Dart, because it was moving so fast
<Nilium> And who controls Webkit?
<mozzarella> instead of javascript
<Nilium> Right, Apple does! :D
<Nilium> So we're boned.
<epitron> well, chrome forked it
<epitron> chrome is the leader really
<Nilium> Which isn't really important. Webkit isn't what we're talking about.
<mozzarella> it's not like you can't obfuscate javascript, so I don't see why not
<Nilium> JavascriptCore, V8, etc. are the things we're concerned with
<epitron> mozzarella: heh.. yeah, people were messing with the bytecode idea for a while... ASM.js and NaCl came out of that
<Nilium> The bytecode issue has come up a few times before and the opinion is that having bytecode means you can't optimize JS as well because reasons.
<epitron> mozzarella: eventually they realized that it's good enough to just emit JS
<Nilium> Even though it should be easier to find patterns in bytecode than in JS source.
<epitron> i guess they figured it's not worth the effort standardizing
<mozzarella> if you can optimize java bytecode, why not some other kind of bytecode? lol
FScottFitzgerald has joined #ruby
<epitron> bytecode would be ideal
diegoviola has quit [Quit: WeeChat 1.1.1]
<epitron> but everyone just compiles to JS, so they were like, "meh, fuck it"
<mozzarella> meh, it's really just standards, you gotta follow the standards
<mozzarella> you can't do it your way or people will complain
<epitron> we're dancing around the real performance issue though -- THE DOM :)
FScottFitzgerald has quit [Client Quit]
<epitron> no matter what language you use, the DOM is still terrible
krz has quit [Ping timeout: 255 seconds]
<aagdbl> has anyone started rescue workers inside another process? i.e. without a rake task?
oo_ has joined #ruby
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jonmorehouse has quit [Ping timeout: 264 seconds]
<epitron> aagdbl: is that a rails thing?
<epitron> (resque?)
ARCADIVS has joined #ruby
<aagdbl> no
<epitron> well, i have no idea what you're talking about :)
<Nilium> I think browsers in general might be the things that have changed the least in terms of capabilities over the last 20 years.
<splud> we run a watchgog thread from an installer process,
<Nilium> Everyone will go "but they have CSS 3 and HTML5 now" but they're all such small things
<splud> the last _20_ years? Browsers have changed a lot.
<epitron> Nilium: their ability to use all your ram has definitely improved
<Nilium> Is that an improvement?
<epitron> yeah, you should try netscape 4 again :)
<splud> heh, true.
<epitron> no, it was a joke Nilium
<splud> NCSA Mosaic.
<Nilium> They still just display formatted text.
<Nilium> And images.
<Nilium> That's kind of it.
<epitron> i use chrome with js/plugins disabled
<splud> Or for a blast from the past, use the Gopher protocol.
<epitron> s/chrome/opera
<Nilium> Ha, Opera.
<epitron> opera 12 still works on a lot of the web
<epitron> google is really good with degradability
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<epitron> uses no ram, it's lightning fast
<epitron> opera 12's caching is great -- not influenced by advertisers :)
arup_r has joined #ruby
<splud> Opera used to be so cool. And firefox too. Then, WTF?
<Nilium> I use Safari because it doesn't crash as much as Chrome and Firefox.
<epitron> and if i want, i have a proxy that can rewrite cache-control headers
swgillespie has joined #ruby
<Nilium> I value the ability to survive my idiocy.
pdoherty has joined #ruby
<epitron> splud: in the case of opera, the technical/creative genius who made opera what it was left
<epitron> splud: i think that was around 2007
<Nilium> Was Opera ever open source?
<epitron> he's the guy who first introduced tabs and gestures
josephndenton has joined #ruby
<Nilium> I mean aside from when they switched to being a fork of Chrome.
<Nilium> Not sure if that's open-source either.
<epitron> no
michael_mbp has quit [Excess Flood]
<epitron> they were always closed
<epitron> they had an SDK you could license (see: Wii browser)
<epitron> a lot of people want opera 12 opensourced
<Nilium> Kind of a shame. Seeing the old Opera (pre-Chrome) source would be nice.
<splud> I wish to shoot the chap here who continues to have outdated platforms being built in our kernel build process, and they’re built before the platforms which ARE current.
<epitron> opera claims that it can't because the codebase is too messy or something :)
<splud> Must suffer through so much churn...
<Nilium> Opera was kind of the testing ground for new CSS crap, so it was neat.
<epitron> their HTML renderer is so awesome too
<epitron> it's like greased lightning
jonr22 has joined #ruby
TheNet has quit [Remote host closed the connection]
pontiki has joined #ruby
<epitron> the Javascript engine was garbage though
<epitron> if they opensourced it, i bet you could just drop V8 in there
psmolen has quit [Ping timeout: 272 seconds]
<epitron> opera's problem was that they never found a good business model
<splud> and then a bunch of developers would start cramming all sorts of useless crap in there...
<epitron> they couldn't charge people for the browser, so they started selling out to advertisers
TheNet has joined #ruby
<epitron> i think that's what drove away the original innovative dude
<Nilium> Opera's business model was (rightly) accusing Microsoft of having a monopoly and hoping that would work.
<Nilium> It didn't work.
<epitron> lol wat
<splud> I’d pay for a browser that didn’t consume all my memory, and wasn;t coming out with an urgent update several times a week.
michael_mbp has joined #ruby
<epitron> splud: at this point, definitely :)
<epitron> 7 years ago i wouldn't have though
<splud> I applies, what 35.0 from Firefox after waiting a couple of days, and I kid you not, no sooner had I restarted the effin thing, than there was a dialog telling me I need to upgrade to 35,1...
pdoherty has quit [Ping timeout: 245 seconds]
<epitron> hah
Kn|t3_ has joined #ruby
<epitron> it only checks for updates on startup ;)
<splud> epitron: finances different, or your perceived value of a good tool?
commmmodo has joined #ruby
<epitron> well, opera in 2008 was awesome
<epitron> and it was free
<epitron> so, i didn't care :)
russt_ has quit [Ping timeout: 265 seconds]
<epitron> and i guess my finances have improved as well
<epitron> i wonder if people would pay $2/month for a browser
<epitron> ugh, there's so much friction to getting people to pay
<epitron> create account, validate email, input credit card info, check that money went through...
<splud> I pay for a TiVo subscription - allows me and my kids to skip commercials, and watch what we want when we’re interested.
<epitron> there needs to be a magic button that just sends someone $1 when you click it
<splud> Time has value.
<splud> I see a button which will be exploited.
<epitron> hahah
<epitron> ok, a coin slot on your computer
<epitron> and you can just put coins in it, and they get sent over the internet
<splud> in fact it’s probably already been exploited in MSIE.
<epitron> and a dirty guy comes into your house once a week to empty the coin box
lolmaus has quit [Quit: Konversation terminated!]
jonr22 has quit [Ping timeout: 276 seconds]
psmolen has joined #ruby
<splud> smokin a stogie, hasn’t showered in weeks, coarse beard, coarse attitude, filthy clothes.
<epitron> haha
<epitron> covered in grease
<epitron> he shoves a crowbar into your computer
Musashi007 has joined #ruby
<epitron> pops open the coin drawer
ellisTAA has left #ruby [#ruby]
<epitron> coughs phlegmily
* Nilium looks at heroku to figure out why anyone in their right mind pays for this.
<epitron> (phlegmatically?)
<splud> and hacks a bit onto your desk and monitor...
<sevenseacat> Nilium: because its easy
<splud> oooh, he;s a trained phlegmatist.
<Nilium> Easy is scp'ing a binary to my server and restarting it
<Nilium> This looks complicated
<sevenseacat> people like me absolutely hate doing anything devopsy
<Nilium> I use Go precisely because I'm lazy as hell
<sevenseacat> deployment is just a git push
<sevenseacat> for heroku
porfa has quit [Quit: porfa]
<epitron> splud: Coinpal sounds like it might make an amusing youtube video :)
<Nilium> I don't want deployment tied to my SCM. That sounds bad.
<splud> I’m rather irritated with Go actually.
failshell has joined #ruby
<sevenseacat> Nilium: it does?
<epitron> splud: it's got a tim & eric feel
<splud> Had to do a LOT of work to work around it’s seeing inability to handle branches.
<Nilium> Go and branches?
ki0 has joined #ruby
<epitron> splud: are there syntactic sugar languages on top of go yet?
<Nilium> There was one.
<Nilium> It got shouted down into oblivion for being a stupid idea.
<epitron> GoingGoingGone
<splud> Go is a continuous build environment. Just because it builds something doesn’t mean it is deployed to the field.
<epitron> Nilium: weird
AlexRussia has quit [Ping timeout: 264 seconds]
<Nilium> I feel like splud is referring to a very different Go.
<epitron> Go is definitely fast at building :)
<splud> We use it to verify code commits and push code to devices for daily regression.
The_Phoenix has joined #ruby
<Nilium> splud: Ok, seriously, what go are you referring to?
<Nilium> The programming language?
<epitron> continuous build environment: "while true; do go build; sleep 1; done"
<Nilium> epitron: I use it with entr, but similar otherwise.
<sevenseacat> lol
<Nilium> http://entrproject.org ← This thing.
lxsameer has joined #ruby
leonshalimov has joined #ruby
<splud> Woot, at least it finally churned the new kernel and drivers.
<epitron> :D
<Nilium> Handy tool for rebuilding stuff only when the file has been changed rather than just doing it every second (though Go certainly makes that doable)
AlexRussia has joined #ruby
<splud> go fires off our make scripts when the monitored repositories have changed.
<epitron> Nilium: neat
<Nilium> splud: Go, the programming language?
<Nilium> Anyway, the only complaints I hear about Go are from people who want generics, usually. Admittedly not on my radar because I don't have much of a use for them.
<splud> go, the continuous integration tool.
<epitron> Nilium: sooo.. "ls *.blah | entr" means.. if you add a new .blah file, it won't see it?
<Nilium> splud: Not the go we're referring to.
failshell has quit [Ping timeout: 272 seconds]
<Nilium> epitron: It won't, so you do while sleep 1 ; do find . -iname '*.go' | entr -d go build root/... ; done
<epitron> lol
<Nilium> -d tells entr to die when the directory structure changes
bronson has joined #ruby
<epitron> oic
<Nilium> So then it loops back, finds all new files, and monitors those for changes
<epitron> this is pretty ghetto
<epitron> i like the concept
<epitron> maybe if it took "find" arguments i'd like it more
<epitron> entr -iname '*.blah' <command>
<Nilium> Makes more sense to just pipe the results of find to entr.
<Nilium> That way it keeps entr's use focused.
<epitron> but the while loop!
<epitron> -iname is just a single option
ponga has joined #ruby
CpuID2 has joined #ruby
CpuID2 has joined #ruby
<Nilium> It is, but it's also an additional thing in the code that needs to be maintained, tested, etc.
<epitron> wrapping things in while loops makes visually parsing your command annoying
<Nilium> Why add it if something already does it?
<epitron> and typing is annoying
krz has joined #ruby
leonshalimov has quit [Ping timeout: 264 seconds]
<Nilium> You're going to be running it once when you start, who cares?
<epitron> i can see that the maintainer experience is more important to you than the user experience :)
<Nilium> You sound like the sort of person who writes a 20,000 line function that does everything..
lampd1 has joined #ruby
<epitron> nope
<epitron> i like simple things too
<epitron> but usability is important
<Nilium> Usability does not mean cramming all tools into one tool
Darryl___ has joined #ruby
<epitron> it's one command
<epitron> also
amclain has quit [Quit: Leaving]
astrobun_ has quit [Remote host closed the connection]
<epitron> if you pipe in filenames, entr is already maintaining a list of files to watch
mkaesz has joined #ruby
<Nilium> Yes, a list of files you explicitly specified.
<epitron> being able to get them from STDIN or a GLOB function is hardly a big complexity increase
<Nilium> No, that's a pretty big complexity increase.
<epitron> what :)
<epitron> i guess you do have to add a "watch for all added files" and match the glob against them
<Nilium> You should appreciate exactly how much of a hellhole dealing with the filesystem is
<epitron> hahah
<epitron> inotify is more annoying than the FS
bronson has quit [Ping timeout: 264 seconds]
Channel6 has quit [Quit: Leaving]
<Nilium> I don't envy anyone who has to deal with directories in C.
ponga has quit [Ping timeout: 256 seconds]
troubadour has quit [Quit: troubadour]
<epitron> lol, entr is 500 lines of code
<epitron> * Determine if the user is specifying FIFO mode by supplying a pathname
porfa has joined #ruby
<epitron> * prefixed with '+' and set the global mode flag accordingly
<epitron> i wonder if that's how you're supposed to do live updates
<epitron> iterating lists of things in C is pretty ugly
<epitron> that's a big source of complexity
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Nilium> If you could get a list. Directory streams are unpleasant.
<Nilium> Not awful, but unpleasant.
<epitron> i'd probably write this in C++, so i can get lots of wrappers around this stuff
<epitron> you're right -- this is some ugly code
<Nilium> Well, the C++ stdlib has nothing for working with directories, so that's not much use.
<epitron> i'm sure there's some C++ lib for it
<Nilium> Boost. Probably other things.
<Nilium> Boost is basically my nightmare, so I just stay away for as long as possible.
<epitron> is there a leet version of boost? :)
<Nilium> Does leet mean something?
Musashi007 has quit [Quit: Musashi007]
<Nilium> Never heard anyone use it as leet, and I kind of assume that all died a long time ago.
<epitron> "Leet originated within bulletin board systems (BBS) in the 1980s"
<epitron> :)
<Nilium> Besides that, not sure how it applies to a library.
<epitron> if you like, replace "leet" with your favorite adjective
<epitron> "ninja" for example
<Nilium> Well now you're just asking for people to kick you square in the genitals
<sevenseacat> haha
<epitron> think of a good, efficient, clean, useful library written by someone with deep knowledge
<epitron> now imagine if that covered some of the usecases of boost
<epitron> does that exist?
<Nilium> Probably somewhere.
<Nilium> The word for that is "lightweight."
porfa has quit [Quit: porfa]
speaking2ode has quit [Ping timeout: 255 seconds]
<epitron> lightweight isn't the only attribute :)
<Nilium> "Ninja" is for HR people and "leet" is for people who are 13 and somehow stuck in the '90s.
Nameo0 has joined #ruby
<splud> NERD, I’m claiming that one
<splud> up for grabs are GEEK and DORK
<Nilium> I grant that you may be in the '90s and possess a window to the future
<Nilium> And somehow have a cat 5 going through said window.
klmlfl has joined #ruby
<splud> I cat ethernet back in the early 90’s at home.
<splud> effin 3Com cards cost a small fortune.
nii236|irssi is now known as nii236
<splud> I have 6 runs of 5e in an underground conduit between my house and barn, plus a couple RG6U coax.
CpuID2 has quit [Quit: This computer has gone to sleep]
<Nilium> My dad always had a bunch of ethernet controller cards around from Intel, oddly enough.
martin_work has quit [Quit: martin_work]
ivanskie has quit [Quit: Textual IRC Client: www.textualapp.com]
dspangenberg has joined #ruby
<splud> I had some intel ones too. And some other brands. Still have a binload of them out in the barn in fact, not that I’m in a big rush to use 100mbit (tossed the 10bT ones long ago).
<splud> I run gigabit everywhere now.
klmlfl has quit [Ping timeout: 265 seconds]
Megtastique has quit []
michael_mbp has quit [Excess Flood]
Aova has quit [Read error: Connection reset by peer]
thumpba has joined #ruby
michael_mbp has joined #ruby
cantonic has quit [Quit: cantonic]
dspangenberg has quit [Ping timeout: 264 seconds]
jobewan has quit [Ping timeout: 276 seconds]
apeiros_ has joined #ruby
ellisTAA has joined #ruby
<splud> g’nite folks. 13 hours at work yesterday and 20 hours today.
<splud> (not the norm, but I’ve got stuff that needs resolvin’)
TheNet has quit [Remote host closed the connection]
Aova has joined #ruby
astrobun_ has joined #ruby
TheNet has joined #ruby
siso has quit [Quit: siso]
ferr has quit [Ping timeout: 255 seconds]
tyfighter has quit [Quit: tyfighter]
ferr has joined #ruby
russt has joined #ruby
willgorman has quit [Remote host closed the connection]
btcxpert has joined #ruby
apeiros_ has quit [Remote host closed the connection]
tjohnson has quit [Quit: Connection closed for inactivity]
tyfighter has joined #ruby
apeiros_ has joined #ruby
yeticry has quit [Ping timeout: 246 seconds]
speaking1ode has joined #ruby
yeticry has joined #ruby
riotjones has quit [Quit: Leaving...]
apeiros_ has quit [Ping timeout: 276 seconds]
jobewan has joined #ruby
agrinb has quit [Remote host closed the connection]
spider-mario has quit [Remote host closed the connection]
yfeldblu_ has quit [Remote host closed the connection]
concertino has joined #ruby
<concertino> If I do .each on some array, inside a method, and one of them returns something
yfeldblum has joined #ruby
<concertino> will each continue to operate on the remaining elements?
bricker has joined #ruby
codeurge has joined #ruby
tagrudev has joined #ruby
josephndenton has quit [Ping timeout: 265 seconds]
MasterPiece has joined #ruby
surs has joined #ruby
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
timanema has joined #ruby
hvxgr has quit [Ping timeout: 245 seconds]
Takle has joined #ruby
russt has quit [Quit: russt]
lukeholder has joined #ruby
GGMethos has joined #ruby
codeurge has joined #ruby
lukeholder has quit [Max SendQ exceeded]
lukeholder has joined #ruby
timanema has quit [Ping timeout: 256 seconds]
krz has quit [Read error: Connection reset by peer]
Takle has quit [Ping timeout: 265 seconds]
thumpba has quit [Remote host closed the connection]
ki0 has quit [Remote host closed the connection]
riotjones has joined #ruby
posixpascal has joined #ruby
thumpba has joined #ruby
Dude007 has joined #ruby
ellisTAA has left #ruby [#ruby]
dualbus has quit [Quit: WeeChat 1.1]
ferr has quit [Ping timeout: 252 seconds]
ohaibbq has joined #ruby
athan has quit [Quit: No Ping reply in 180 seconds.]
Dude007_ has joined #ruby
bronson has joined #ruby
<concertino> sorry i'm just learning but, how can I use .select on an array and pass the block the index of each item as well as the item?
Dude007 has quit [Ping timeout: 240 seconds]
athan has joined #ruby
posixpascal has quit [Ping timeout: 252 seconds]
dualbus has joined #ruby
ponga has joined #ruby
commmmodo has quit [Quit: commmmodo]
oleo has quit [Quit: Verlassend]
bronson has quit [Ping timeout: 245 seconds]
noop has joined #ruby
patric100e99 has quit [Ping timeout: 246 seconds]
<mozzarella> concertino: use with_index
ponga has quit [Ping timeout: 252 seconds]
Sakens has quit [Ping timeout: 264 seconds]
maletor has joined #ruby
djbkd has joined #ruby
tyfighter has quit [Quit: tyfighter]
ta_ has joined #ruby
<concertino> mozzarella: looking into that now
<mozzarella> >> ['A', 'b', 'c'].select.with_index { |item, index| index % 2 == 0 && item == item.upcase }
<eval-in_> mozzarella => ["A"] (https://eval.in/265673)
bthesorceror has quit [Quit: bthesorceror]
ferr has joined #ruby
djbkd has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 272 seconds]
funburn has joined #ruby
aganov has joined #ruby
<concertino> hmm... how can I return an array that's missing the element at a specific index? Keep if, and select seem like a waste
<concertino> is there a without method? I'd like to do ['A', 'b', 'c'].without(1) => ['A', 'b']
<concertino> is there a without method? I'd like to do ['A', 'b', 'c'].without(1) => ['A', 'c']
<concertino> sorry, correction
lolmaus has joined #ruby
tyfighter has joined #ruby
sent1nel has quit [Remote host closed the connection]
<mozzarella> >> t = ['a', 'b', 'c']; t.delete_at(1); t
<eval-in_> mozzarella => ["a", "c"] (https://eval.in/265677)
krz has joined #ruby
<mozzarella> concertino: ^
<concertino> ah. simple enough
<concertino> thanks again
<mozzarella> np
Macaveli has joined #ruby
apeiros_ has joined #ruby
ivanskie has joined #ruby
red_horned_rihno has joined #ruby
sandelius has joined #ruby
btcxpert has quit [Ping timeout: 246 seconds]
hvxgr has joined #ruby
klaas has joined #ruby
TheNet has quit [Remote host closed the connection]
dc_ has quit []
vdamewood has joined #ruby
speaking1ode has quit [Ping timeout: 245 seconds]
TheNet has joined #ruby
Spami has joined #ruby
Aova has quit [Read error: Connection reset by peer]
bal has joined #ruby
btcxpert has joined #ruby
dc has joined #ruby
tobago has joined #ruby
<concertino> >> arr = [1, 2, 3, 4, 5]
<eval-in_> concertino => [1, 2, 3, 4, 5] (https://eval.in/265709)
<concertino> >> arr
<eval-in_> concertino => undefined local variable or method `arr' for main:Object (NameError) ... (https://eval.in/265710)
tyfighter has quit [Ping timeout: 272 seconds]
<concertino> interesting
jobewan has quit [Ping timeout: 244 seconds]
<astrobun_> >> [1,2,3,4,5][0]
<eval-in_> astrobun_ => 1 (https://eval.in/265711)
<astrobun_> >> [5][0]
<eval-in_> astrobun_ => 5 (https://eval.in/265712)
<astrobun_> >> [[5]][0][0]
<eval-in_> astrobun_ => 5 (https://eval.in/265714)
anarang has joined #ruby
<astrobun_> BELIEVE IN SYNTAX
Aova has joined #ruby
<concertino> is there an equivalent to delete_at, that returns a new array missing the specified element?
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby
apeiros__ has joined #ruby
<sevenseacat> check the docs for delete_at ?
Vile` has quit [Ping timeout: 265 seconds]
apeiros_ has quit [Ping timeout: 245 seconds]
Joufflu has quit [Read error: Connection reset by peer]
Kn|t3_ has quit [Quit: Kn|t3_]
Vile` has joined #ruby
agrinb has joined #ruby
jonr22 has joined #ruby
Sawbones has joined #ruby
<concertino> sevenseacat: unfortunately that returns the deleted object
ferr has quit [Ping timeout: 276 seconds]
<concertino> I'm hoping for something like: ['a', 'b', 'c', 'd', 'e', 'f'].without(2) => ['a', 'b', 'd', 'e', 'f']
<apeiros__> concertino: there's no single method. use tap + delete_at
TheNet has quit [Remote host closed the connection]
<apeiros__> or use more than one statement
<apeiros__> (I think I actually prefer the latter)
<concertino> eh... that makes this a bit difficult
<concertino> if I must i must
TheNet has joined #ruby
yellowgh0st has joined #ruby
<apeiros__> I don't see how that can possibly make anything more difficult
<concertino> I'm trying to find it
jonr22 has quit [Ping timeout: 244 seconds]
<concertino> given an array and number i'm trying to return a NEW array containing all numbers that sum with another number in the original array to make n
agrinb has quit [Ping timeout: 272 seconds]
<sevenseacat> i'd use more than one - not a huge fan of tap
<sevenseacat> people tend to use it for silly things
<apeiros__> indeed
<concertino> I was going to do this: nums.select.with_index {|item, index| nums.without(index).include?(n - item)}
<apeiros__> *MUST WRITE THIS IN ONE STATEMENT!!! OTHERWISE PROGRAMMING GODS WILL KILL KITTENS!!!***
<apeiros__> so sick of clever code.
<havenwood> apeiros__: rotate(2).drop(1).rotate(-2)
nanoyak has quit [Quit: Lates.]
<concertino> I'm not typically prone to that but it seems easy if the without method existed
<Cope> concertino: what are you actually trying to do? what would a test case look like?
<apeiros__> >> "havenwood".chars.rotate(2).drop(1).rotate(-2).join
<eval-in_> apeiros__ => "haenwood" (https://eval.in/265745)
<apeiros__> looks good.
<havenwood> checks out. ship it
<mozzarella> >> ['a', 'b', 'c'].tap { |a| a.delete_at(1) }
<eval-in_> mozzarella => ["a", "c"] (https://eval.in/265746)
shime has joined #ruby
<apeiros__> concertino: what precisely is more difficult there with more than one statement?
TheNet has quit [Remote host closed the connection]
ferr has joined #ruby
yellowgh0st has quit [Client Quit]
<concertino> Cope: if nums = [0, 2, 3, 4, 5, 6] and n = 6, then the returned array would look like [0, 2, 4, 6]
TheNet has joined #ruby
failshell has joined #ruby
<concertino> 0 is passed through since it can be summed with 6 to make n, 2 can be summed with 4, etc etc
<Cope> aha ok
<Cope> I've been doing this sort of thing in racket :)
<concertino> apeiros__: Sorry i misspoke, the program isn't more difficult just felt that the line using "without" is mroe difficult
ohaibbq has quit [Quit: Leaving...]
<concertino> more*
<apeiros__> yeah, I don't see that being more difficult either :)
roolo has joined #ruby
pdoherty has joined #ruby
wallerdev has quit [Quit: wallerdev]
<mozzarella> just use tap
leonshalimov has joined #ruby
<mozzarella> also, you know that you don't need an index to delete an item from an array? you can delete something by value, which might remove more than one item
<concertino> exactly why I chose not to use that, since I don't want to delete more than one item
SixiS has joined #ruby
failshell has quit [Ping timeout: 272 seconds]
nanoyak has joined #ruby
rbrs has joined #ruby
pdoherty has quit [Ping timeout: 245 seconds]
nanoyak has quit [Remote host closed the connection]
roolo has quit [Ping timeout: 264 seconds]
nanoyak has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
yellowgh0st has joined #ruby
leonshalimov has quit [Ping timeout: 264 seconds]
wallerdev has joined #ruby
Takle has joined #ruby
martin_work has joined #ruby
alkoma has joined #ruby
andikr has joined #ruby
siso has joined #ruby
<mozzarella> tough life
<concertino> ha
<concertino> is it possible to exclude an element using keep_if?
<apeiros__> concertino: gtg, but I'm somewhat certain this could be done in O(n) instead of O(n^2) as yours does
Takle has quit [Ping timeout: 246 seconds]
<concertino> apeiros__: I'll consider that, ty
<mozzarella> concertino: it would exclude all of them
ki0 has joined #ruby
<mozzarella> not only the first one
<concertino> keep_if where the condition is index != index_to_exclude
<concertino> is along the lines I was thinking
patric100e99 has joined #ruby
<mozzarella> why would you do that, though? that's just retarded
ki0 has quit [Read error: No route to host]
<mozzarella> just use tap and be done with it
ki0 has joined #ruby
martin_work has quit [Quit: martin_work]
<concertino> Not certain how to use tap. Let me read up then
<mozzarella> I gave you an example above
<mozzarella> scroll up
<mozzarella> >> ['a', 'b', 'c'].tap { |a| a.delete_at(1) }
<eval-in_> mozzarella => ["a", "c"] (https://eval.in/265778)
<concertino> oh that's perfect
elaptics`away is now known as elaptics
<concertino> let me see if i'm understanding what's going on here
TheNet has quit [Remote host closed the connection]
<sevenseacat> lol thats what you were told before
<concertino> Victim of tab switching I guess
TheNet has joined #ruby
<concertino> so tap is just a way to make sure at the end of a block's execution, the tapped value is re-yielded?
nanoyak has quit [Quit: Computer has gone to sleep.]
ivanskie has quit [Quit: Textual IRC Client: www.textualapp.com]
<concertino> ah not quite what i'm after since i need a new array. can I use dupe first?
bronson has joined #ruby
elaptics is now known as elaptics`away
<mozzarella> no, it just returns the item, and you can do whatever you want with it inside the block
jenrzzz has joined #ruby
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ponga has joined #ruby
dumdedum has joined #ruby
valkyrka has joined #ruby
bronson has quit [Ping timeout: 264 seconds]
luriv has joined #ruby
Sawbones has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
martin_work has joined #ruby
ponga has quit [Ping timeout: 255 seconds]
dspangenberg has joined #ruby
razieliyo has joined #ruby
valkyrka has quit [Ping timeout: 256 seconds]
Deele has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
codecop has joined #ruby
dspangenberg has quit [Ping timeout: 272 seconds]
Sawbones has joined #ruby
<apeiros__> sevenseacat: happens all the time. I love it when people ask questions and don't bother to pay attention to answers.
<apeiros__> </cynism>
avahey has quit [Quit: Connection closed for inactivity]
* sevenseacat gives apeiros__ a hug.
<mozzarella> but asking questions is all the fun
concertino has quit [Ping timeout: 246 seconds]
defrang has joined #ruby
<apeiros__> sevenseacat: thanks :)
marcdel has quit []
Morkel has joined #ruby
sent1nel has joined #ruby
posixpascal has joined #ruby
martin_work has quit [Quit: martin_work]
kamilc__ has joined #ruby
shredding has joined #ruby
martin_work has joined #ruby
josephcs has joined #ruby
craigp has joined #ruby
apeiros__ is now known as apeiros_
<apeiros_> damn, why does my tail grow?
marcdel has joined #ruby
Sawbones has quit []
commmmodo has joined #ruby
sent1nel has quit [Ping timeout: 272 seconds]
Aova has quit [Read error: Connection reset by peer]
Zai00 has joined #ruby
einarj has joined #ruby
posixpascal has quit [Ping timeout: 252 seconds]
<shellox> I need some help guys. I want to check if string "Product (123C) (+6,000 NT)" matches a regex and if so get the "6000" in a variable
eka has quit [Ping timeout: 252 seconds]
<shellox> how would i do that?
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
martin_work has quit [Quit: martin_work]
Dude007_ has quit [Read error: Connection reset by peer]
unshadow has joined #ruby
Dude007 has joined #ruby
yellowgh0st has quit [Ping timeout: 255 seconds]
<apeiros_> shellox: str = "6000". if you want it more dynamically, you should say something about the rules of your string format.
Aova has joined #ruby
eka has joined #ruby
<apeiros_> you can extract values from regex matches using capturing groups. e.g.:
alex88 has joined #ruby
agrinb has joined #ruby
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
towski_ has joined #ruby
lxsameer has quit [Ping timeout: 264 seconds]
<shellox> which syntax to use? =~ ?
<apeiros_> >> "hello".match(/h(a|e|i|o|u)/).captures
<eval-in_> apeiros_ => ["e"] (https://eval.in/265846)
<apeiros_> I'd use .match.
<shellox> okay thanks
martin_work has joined #ruby
<apeiros_> with =~ you have to resort to $1-$N (pseudo-)globals
rdark has joined #ruby
<shellox> ok, i'll have a look on the docs for it
enterprisedc has quit [Quit: enterprisedc]
btcxpert has quit [Quit: btcxpert]
marcdel has quit []
posixpascal has joined #ruby
psy_ has quit [Quit: Leaving]
craigp has quit []
enterprisedc has joined #ruby
tesuji has joined #ruby
antgel has joined #ruby
marcdel has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
msgodf has joined #ruby
arup_r has quit [Remote host closed the connection]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
livathinos has joined #ruby
craigp has joined #ruby
rocknrollmarc has joined #ruby
yellowgh0st has joined #ruby
kp666 has joined #ruby
chrishough has joined #ruby
blackmesa has joined #ruby
avril14th has joined #ruby
<avril14th> morning
TheNet has quit [Remote host closed the connection]
TheNet has joined #ruby
TheNet has quit [Client Quit]
senayar has joined #ruby
alkoma has quit [Ping timeout: 255 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
Kn|t3_ has joined #ruby
blizzy has quit [Ping timeout: 245 seconds]
ghormoon has quit [Remote host closed the connection]
marcdel has quit []
towski_ has quit [Remote host closed the connection]
hanmac1 has joined #ruby
towski_ has joined #ruby
rocknrollmarc has quit [Ping timeout: 264 seconds]
rocknrollmarc has joined #ruby
Takle has joined #ruby
tpilionis has joined #ruby
yellowgh0st_ has joined #ruby
yellowgh0st has quit [Ping timeout: 246 seconds]
trampi has quit [Remote host closed the connection]
towski_ has quit [Remote host closed the connection]
trampi has joined #ruby
unshadow has quit [Quit: leaving]
lxsameer has joined #ruby
lxsameer has joined #ruby
arup_r has joined #ruby
djbkd has joined #ruby
Takle has quit [Ping timeout: 264 seconds]
yellowgh0st_ has quit [Ping timeout: 244 seconds]
troulouliou_dev has joined #ruby
xenomorph has joined #ruby
terlar has joined #ruby
xenomorph is now known as {xenomorph}
CustosL1men has joined #ruby
tokik has quit [Ping timeout: 252 seconds]
meinside has quit [Quit: Connection closed for inactivity]
djbkd has quit [Ping timeout: 264 seconds]
terlar has quit [Client Quit]
bronson has joined #ruby
jimms has joined #ruby
kenneth has joined #ruby
shredding has quit [Quit: shredding]
ponga has joined #ruby
shime has quit [Ping timeout: 255 seconds]
Jackneill has joined #ruby
terlar has joined #ruby
josephcs has quit [Quit: (null)]
blackmesa has quit [Ping timeout: 264 seconds]
bronson has quit [Ping timeout: 244 seconds]
chipotle has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Max SendQ exceeded]
robbyoconnor has joined #ruby
ponga has quit [Ping timeout: 265 seconds]
dspangenberg has joined #ruby
chipotle has joined #ruby
giuseppesolinas has joined #ruby
bayed has joined #ruby
kl has quit [Ping timeout: 255 seconds]
dspangenberg has quit [Ping timeout: 265 seconds]
colli5ion has joined #ruby
matchaw has quit [Quit: No Ping reply in 180 seconds.]
senayar has quit []
maletor has quit [Quit: Computer has gone to sleep.]
nii236 has quit [Remote host closed the connection]
sandelius has joined #ruby
decoponio has joined #ruby
roolo has joined #ruby
Gonzih has quit [Quit: WeeChat 1.0.1]
Gonzih has joined #ruby
abuzze has quit [Remote host closed the connection]
sevenseacat has quit [Remote host closed the connection]
ki0 has quit [Remote host closed the connection]
_yinzer_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
martin_work has quit [Quit: martin_work]
olivier_bK has joined #ruby
rocknrollmarc has quit [Ping timeout: 265 seconds]
ARCADIVS has quit [Quit: ARCADIVS]
Aova has quit [Read error: Connection reset by peer]
agrinb has joined #ruby
jonr22 has joined #ruby
martin_work has joined #ruby
rocknrollmarc has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
thumpba has quit [Remote host closed the connection]
Aova has joined #ruby
jonr22 has quit [Ping timeout: 245 seconds]
AFKGeek has joined #ruby
abuzze has joined #ruby
splud has quit [Quit: splud]
aagdbl has quit [Quit: This computer has gone to sleep]
abuzze_ has joined #ruby
abuzze has quit [Read error: Connection reset by peer]
rocknrollmarc has quit [Ping timeout: 276 seconds]
failshell has joined #ruby
Takle has joined #ruby
Hobogrammer has quit [Ping timeout: 246 seconds]
leonshalimov has joined #ruby
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
failshell has quit [Ping timeout: 265 seconds]
emirozer has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
valkyrka has joined #ruby
nclbr has joined #ruby
martin_work has quit [Quit: martin_work]
leonshalimov has quit [Ping timeout: 252 seconds]
bricker has quit [Quit: leaving]
snakebridge has joined #ruby
duncannz has quit [Ping timeout: 255 seconds]
Darryl___ has quit [Quit: Connection closed for inactivity]
marr has joined #ruby
josephndenton has joined #ruby
larsam has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
Spami has quit [Quit: This computer has gone to sleep]
C1V0 has joined #ruby
pdoherty has joined #ruby
roolo has quit [Read error: Connection reset by peer]
kamilc__ has quit [Quit: Leaving...]
aswen has joined #ruby
roolo has joined #ruby
elaptics`away is now known as elaptics
josephndenton has quit [Ping timeout: 245 seconds]
leafybasil has quit [Remote host closed the connection]
emirozer has quit [Quit: Lingo: www.lingoirc.com]
emirozer has joined #ruby
keen__________45 has joined #ruby
pdoherty has quit [Ping timeout: 245 seconds]
hgl has quit [Max SendQ exceeded]
keen__________44 has quit [Ping timeout: 264 seconds]
hgl has joined #ruby
emirozer has quit [Client Quit]
emirozer has joined #ruby
franzip has joined #ruby
hgl has quit [Max SendQ exceeded]
hgl has joined #ruby
emirozer is now known as clmsy
ki0_ has joined #ruby
PierreRambaud has joined #ruby
j416 has quit [Quit: o/]
CustosL1men has quit [Read error: Connection reset by peer]
parduse is now known as Guest87738
withnale_ has joined #ruby
pardusf has joined #ruby
Guest87738 has quit [Ping timeout: 264 seconds]
j416 has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
yfeldblum has joined #ruby
chthon has joined #ruby
clmsy has left #ruby ["Be back later ..."]
Caius has quit [Quit: ""]
elimS has joined #ruby
Caius has joined #ruby
yeticry has quit [Ping timeout: 264 seconds]
j416 has quit [Client Quit]
yeticry has joined #ruby
knut has joined #ruby
franzip has quit [Quit: ...]
j416 has joined #ruby
quimrstorres has joined #ruby
quimrstorres has quit [Remote host closed the connection]
ponga has joined #ruby
<knut> hello, I'm having trouble with a serial connection. I send a command to a microcontroller, which answers within 30ms, and with an oscilloscope I can confirm that, but on the serial port i can read the data just about 0.5s later. when I send, wait a bit, and read my methods work fast, but when i send and directly read my methods block 0.5s until the data can be read. I'm using the serialport gem on an Odroid U3. Maybe I could have for
<knut> gotten to set a flag, or where can I start searching?
red_horned_rihno has quit [Quit: Leaving]
Spami has joined #ruby
roshanavand has joined #ruby
leafybasil has joined #ruby
btcxpert has joined #ruby
havenwood has quit [Remote host closed the connection]
ponga has quit [Ping timeout: 245 seconds]
Spami has quit [Client Quit]
Morkel has quit [Quit: Morkel]
ta_ has joined #ruby
MasterPiece has quit [Quit: Leaving]
kl has joined #ruby
troubadour has joined #ruby
leafybasil has quit [Ping timeout: 240 seconds]
Spami has joined #ruby
krz has quit [Read error: Connection reset by peer]
krz has joined #ruby
ta_ has quit [Ping timeout: 245 seconds]
psy_ has joined #ruby
jenrzzz has joined #ruby
kl has quit [Ping timeout: 272 seconds]
kl has joined #ruby
agrinb has joined #ruby
OrbitalKitten has joined #ruby
Mia has quit [Read error: Connection reset by peer]
Mia has joined #ruby
Mia has joined #ruby
thiagovsk has joined #ruby
banister has joined #ruby
leafybasil has joined #ruby
rodfersou has joined #ruby
last_staff has joined #ruby
agrinb has quit [Ping timeout: 272 seconds]
kl has quit [Quit: leaving]
quimrstorres has joined #ruby
Aova has quit [Read error: Connection reset by peer]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
nuck has joined #ruby
deuti has quit [Quit: zzZZZzzz..]
Mon_Ouie has quit [Client Quit]
Aova has joined #ruby
timanema has joined #ruby
astrobun_ has quit [Remote host closed the connection]
astrobun_ has joined #ruby
ta_ has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
bronson has joined #ruby
sogard has joined #ruby
drawingthesun has joined #ruby
shredding has joined #ruby
AlexRussia has quit [Ping timeout: 264 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drawingthesun has quit [Read error: Connection reset by peer]
timanema has quit [Ping timeout: 264 seconds]
AlexRussia has joined #ruby
drawingthesun has joined #ruby
astrobun_ has quit [Ping timeout: 252 seconds]
drawingthesun has quit [Read error: Connection reset by peer]
ta_ has quit [Ping timeout: 276 seconds]
jmdade has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pandaant has quit [Remote host closed the connection]
rocknrollmarc has joined #ruby
n008f4g_ has joined #ruby
timonv has joined #ruby
rocknrollmarc has quit [Remote host closed the connection]
rocknrollmarc has joined #ruby
troubadour has quit [Quit: troubadour]
reinaldob has joined #ruby
ta_ has joined #ruby
timonv has quit [Quit: WeeChat 1.1]
blackmesa has joined #ruby
Kn|t3_ has quit [Quit: Kn|t3_]
ldnunes has joined #ruby
tvw has joined #ruby
ta_ has quit [Ping timeout: 252 seconds]
btcxpert has quit [Ping timeout: 252 seconds]
iamninja has quit [Remote host closed the connection]
roshanavand has quit [Ping timeout: 240 seconds]
rocknrol_ has joined #ruby
ferr has quit [Ping timeout: 256 seconds]
timonv_ has joined #ruby
kalleth_ is now known as kalleth
rocknrollmarc has quit [Read error: Connection reset by peer]
ferr has joined #ruby
rocknrol_ has quit [Client Quit]
iamninja has joined #ruby
dspangenberg has joined #ruby
btcxpert has joined #ruby
Fusl has quit [Remote host closed the connection]
Fusl has joined #ruby
Pharaoh2_ has joined #ruby
dspangenberg has quit [Ping timeout: 252 seconds]
Pharaoh2 has quit [Ping timeout: 256 seconds]
ponga has joined #ruby
tokik has joined #ruby
ponga has quit [Ping timeout: 244 seconds]
colli5ion has quit []
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Kn|t3_ has joined #ruby
agrinb has joined #ruby
jonr22 has joined #ruby
commmmodo has quit [Quit: commmmodo]
agrinb_ has joined #ruby
Morkel has joined #ruby
agrinb has quit [Ping timeout: 272 seconds]
ta_ has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
krz has quit [Ping timeout: 245 seconds]
agrinb_ has quit [Ping timeout: 276 seconds]
jonr22 has quit [Ping timeout: 276 seconds]
sandelius has joined #ruby
nkparadox has joined #ruby
failshell has joined #ruby
krz has joined #ruby
Aova has quit [Read error: Connection reset by peer]
leonshalimov has joined #ruby
yeticry has quit [Remote host closed the connection]
ponga has joined #ruby
AFKGeek has quit [Quit: Fades into the shadows]
yeticry has joined #ruby
failshell has quit [Ping timeout: 265 seconds]
troubadour has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
sent1nel has joined #ruby
leonshalimov has quit [Ping timeout: 244 seconds]
Aova has joined #ruby
ponga has quit [Ping timeout: 240 seconds]
lxsameer has quit [Ping timeout: 264 seconds]
colli5ion has joined #ruby
AFKGeek has joined #ruby
sent1nel has quit [Ping timeout: 265 seconds]
btcxpert has quit [Quit: btcxpert]
jschoolcraft has quit [Quit: peace]
lxsameer has joined #ruby
yeticry has quit [Ping timeout: 256 seconds]
AlexRussia has quit [Ping timeout: 265 seconds]
MasterPiece has joined #ruby
YamakasY has joined #ruby
yeticry has joined #ruby
<sogard> Book looks interesting.
<sogard> I took a look over it and I'm thinking about getting one.
ponga has joined #ruby
roshanavand has joined #ruby
<sogard> It's a tad expensive, though, especially since it doesn't offer so much for the people who are actually used to writing Ruby.
sandelius has quit [Remote host closed the connection]
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sogard> A plus to it is the fact that it's up to date.
michael_mbp has quit [Excess Flood]
codeurge has joined #ruby
codeurge has quit [Client Quit]
FrankenDaemon has joined #ruby
seal has joined #ruby
valkyrka has quit [Ping timeout: 244 seconds]
michael_mbp has joined #ruby
blizzy has joined #ruby
ferr has quit [Ping timeout: 255 seconds]
<sogard> I can't believe the Ruby IRC is so bored today.
AlexRussia has joined #ruby
<certainty> believe it :)
hs366 has joined #ruby
pdoherty has joined #ruby
aagdbl has joined #ruby
yeticry has quit [Ping timeout: 255 seconds]
blizzy has quit [Ping timeout: 264 seconds]
yeticry has joined #ruby
codeurge has joined #ruby
ta_ has joined #ruby
shime has joined #ruby
pdoherty has quit [Ping timeout: 244 seconds]
<YamakasY> hi guys, is there a way in the following example when group1 is like group.1 and group2 like group.2 that I replace the dot with a underscore in the same sort_by line ? http://pastie.org/9847304#14
plashchynski has joined #ruby
<YamakasY> I try to avoid to do an extra gsub
timonv_ has quit [Quit: Leaving...]
Morkel has quit [Quit: Morkel]
ta_ has quit [Ping timeout: 240 seconds]
seal has quit [Quit: Ex-Chat]
Takle has quit [Remote host closed the connection]
ghormoon has joined #ruby
FooMunki_ has joined #ruby
troubadour has quit [Quit: troubadour]
ferr has joined #ruby
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<YamakasY> anyone ?
<sogard> Why not use gsub?
<sogard> Told you everyone is really bored today.
<YamakasY> sogard: in the same line ?
<YamakasY> sogard: oh I se now indeed
<sogard> Maybe you can map it?
<YamakasY> yes I looked into that, but I'm not sure
krz has quit [Quit: WeeChat 1.0.1]
<sogard> You know how the map method works?
<YamakasY> not 100%
<sogard> Are you using irb?
joonty has joined #ruby
<YamakasY> not that I know of
<sogard> What OS are you on?
agrinb has joined #ruby
<YamakasY> sogard: just linux, I use it in puppet
<YamakasY> puppet templates
btcxpert has joined #ruby
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sogard> Awesome.
<sogard> irb is an interactive Ruby interpreter.
<sogard> You can run it from your terminal.
<sogard> It can help you a lot with these small issues.
<sogard> Run irb in a terminal ans then input: ["group.1", "group.2"].map {|g| g.gsub /\./, "_"}
<YamakasY> ah nice
<sogard> and*
<YamakasY> yes ok, but what I wonder is how to do it in the same line
Anarch has joined #ruby
<YamakasY> now I would generate such map line under the sort_by, but I think it can be combined
<waxjar> you shouldn't, because your sort will be wacky
Nameo0_ has joined #ruby
<YamakasY> waxjar: ok, that is what I needed to know, so no performance issue either ?
agrinb has quit [Ping timeout: 272 seconds]
roshanavand has quit [Ping timeout: 272 seconds]
<waxjar> you're sorting < 10 elements arrays. don't worry about performance :P
roshanavand has joined #ruby
Takle has joined #ruby
Nameo0 has quit [Ping timeout: 245 seconds]
Nameo0_ has quit [Ping timeout: 240 seconds]
<sogard> You cannot combine the sorting with a map.
<sogard> mapping*
<YamakasY> okidoki :)
<YamakasY> nice
patric100e99 has quit [Ping timeout: 246 seconds]
sandelius has joined #ruby
timonv has joined #ruby
sandelius has quit [Max SendQ exceeded]
sandelius has joined #ruby
iLike has joined #ruby
<sogard> YamakasY: You can first do the map and then the sort: array.map {}.sort_by {}
learner has quit [Ping timeout: 252 seconds]
tkuchiki has quit [Remote host closed the connection]
roshanavand has quit [Ping timeout: 264 seconds]
learner has joined #ruby
bronson has joined #ruby
Aova has quit [Read error: Connection reset by peer]
MasterPiece has quit [Quit: Leaving]
Dude007 has quit [Read error: Connection reset by peer]
Dude007 has joined #ruby
<YamakasY> sogard: yap
albert_ has joined #ruby
roshanavand has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
Takle has quit [Remote host closed the connection]
sent1nel has joined #ruby
Aova has joined #ruby
dspangenberg has joined #ruby
ejnahc has quit [Remote host closed the connection]
ejnahc has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
ta_ has joined #ruby
sent1nel has quit [Ping timeout: 265 seconds]
AlexRussia has quit [Ping timeout: 252 seconds]
kamilc__ has joined #ruby
dspangenberg has quit [Ping timeout: 256 seconds]
djbkd has joined #ruby
livathin_ has joined #ruby
oo_ has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 265 seconds]
nfk has joined #ruby
livathinos has quit [Ping timeout: 244 seconds]
troulouliou_dev has quit [Quit: Leaving]
sogard has quit [Quit: Page closed]
siso has quit [Quit: siso]
djbkd has quit [Ping timeout: 256 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
shredding has quit [Quit: shredding]
yeticry has quit [Ping timeout: 244 seconds]
yeticry has joined #ruby
ta_ has joined #ruby
charliesome has joined #ruby
yeticry has quit [Ping timeout: 244 seconds]
georgesmith has quit [Quit: georgesmith]
yeticry has joined #ruby
metadave has joined #ruby
FooMunki_ has quit [Quit: FooMunki_]
AlexRussia has joined #ruby
FooMunki has joined #ruby
ta_ has quit [Ping timeout: 265 seconds]
vt102 has joined #ruby
FooMunki_ has joined #ruby
leonshalimov has joined #ruby
C1V0 has quit [Ping timeout: 240 seconds]
roshanavand has quit [Ping timeout: 272 seconds]
workmad3 has joined #ruby
cpt_yossarian has quit [Ping timeout: 252 seconds]
blackmesa has joined #ruby
georgesmith has joined #ruby
rafadc has joined #ruby
livathin_ has quit [Remote host closed the connection]
Morkel has joined #ruby
roshanavand has joined #ruby
livathinos has joined #ruby
posixpascal has joined #ruby
leonshalimov has quit [Ping timeout: 272 seconds]
elimS has quit [Quit: Lingo: www.lingoirc.com]
nuck has quit [Quit: Computer has gone to sleep.]
jonr22 has joined #ruby
agrinb has joined #ruby
giuseppesolinas has joined #ruby
hamakn has quit [Remote host closed the connection]
agrinb has quit [Ping timeout: 265 seconds]
Kn|t3_ has quit [Quit: Kn|t3_]
yfeldblum has quit [Remote host closed the connection]
pika_pika has joined #ruby
jonr22 has quit [Ping timeout: 264 seconds]
charliesome has quit [Quit: zzz]
jottr has joined #ruby
failshell has joined #ruby
valkyrka has joined #ruby
atomical has joined #ruby
ta_ has joined #ruby
snakebridge has quit [Quit: leaving]
failshell has quit [Ping timeout: 265 seconds]
rafadc has quit [Remote host closed the connection]
gr33n7007h has quit [Remote host closed the connection]
az7ar_away has quit [Ping timeout: 272 seconds]
gr33n7007h has joined #ruby
L8 has joined #ruby
aclearman037 has joined #ruby
L8 has quit [Changing host]
L8 has joined #ruby
valkyrka has quit [Ping timeout: 256 seconds]
plashchynski has quit [Quit: plashchynski]
Kn|t3_ has joined #ruby
aclearman037 has quit [Client Quit]
timanema has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
mbeasley has joined #ruby
EvanFreeman has joined #ruby
<avril14th> How can one do a string.gsub{ |match, index| } where index represents the offset in the string where the match occured?
sambao21 has joined #ruby
EvanFreeman has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
spyderma_ has joined #ruby
Aova has quit [Read error: Connection reset by peer]
dblessing has joined #ruby
AlSquire has joined #ruby
<avril14th> or actually, get the post_match
Kn|t3_ has quit [Quit: Kn|t3_]
bddh has joined #ruby
roshanavand has quit [Ping timeout: 272 seconds]
YamakasY has quit [Quit: Page closed]
<avril14th> got it, thx :)
plashchynski has joined #ruby
raphaelss has joined #ruby
spyderman4g63 has quit [Ping timeout: 255 seconds]
hmsimha has quit [Ping timeout: 252 seconds]
blackmesa has quit [Ping timeout: 276 seconds]
albert_ has quit [Read error: Connection reset by peer]
Takle has joined #ruby
beef-wellington has joined #ruby
timanema has quit [Ping timeout: 240 seconds]
troubadour has joined #ruby
bmn_ has quit [Ping timeout: 256 seconds]
joonty has quit [Quit: joonty]
Aova has joined #ruby
sent1nel has joined #ruby
oo_ has joined #ruby
dspangenberg has joined #ruby
roshanavand has joined #ruby
brb3 has joined #ruby
russt has joined #ruby
sent1nel has quit [Ping timeout: 252 seconds]
troubadour has quit [Quit: troubadour]
sankaber has joined #ruby
az7ar_away has joined #ruby
nkparadox has quit [Quit: WeeChat 1.1.1]
dspangenberg has quit [Ping timeout: 252 seconds]
Raven20 has joined #ruby
aclearman037 has joined #ruby
<Raven20> When working with an API, I'm getting data passed to me as JSON and I'd like to actually get the object instead. I don't think parsing the object id from the json and doing ```Object.find json[:object_id]``` makes sense, right? Am I missing something obvious?
<ddv> Raven20: to_json?
<apeiros_> errr, an API will never contain a ruby object_id
<workmad3> Raven20: if you're getting JSON, you need to parse it... if you want to load an object up from the db based on an ID in that json, that's what you want to do...
<apeiros_> as that makes absolutely no sense whatsoever
<workmad3> apeiros_: I assumed he meant something more like 'post_id' and badly generalized the term ;)
<Raven20> aperos: i have two rails app, one acting as the API and the other client side
<apeiros_> lets hope so
<apeiros_> I'm not aperos. use tab completion if you can't spell.
<workmad3> or even if you can, as it's still faster generally :)
<Raven20> sorry
<workmad3> Raven20: but yeah... I think the obvious bit you're missing is that you have a string of json and you need to parse that and load data based on its contents, and you for some reason don't think that makes sense
<workmad3> Raven20: so I'm personally curious about what would make sense... ;)
<waxjar> Raven20: what does "get the object" mean, what do you expect to happen?
kiddoboy has joined #ruby
banister has joined #ruby
<apeiros_> ok, I guess 3 ppl are enough, gladly leaving this one to you folks :)
pdoherty has joined #ruby
<Raven20> a previous version of the API wasn't passing json... instead, it was passing objects. I could do something like: @person = get "persons/index" and then just pass the persons around. Now I'm getting json, so I have to go through each one and do a Person.find #
<kiddoboy> In methods we can do: def foo(bar=nil); return unless bar; "bar is: #{bar}"; end
<workmad3> Raven20: how was it passing objects?
* apeiros_ suspects a confusion of internal & external API
<workmad3> ^^
claw_ has quit [Remote host closed the connection]
claw_ has joined #ruby
<kiddoboy> How can we do the same thing with map?
Raven20 has quit [Quit: leaving]
nateberkopec has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<kiddoboy> (1..3).map { |e| return e if e < 2; 'bigger then 1' }
<kiddoboy> What is the command I should replace return with?
<workmad3> kiddoboy: sounds like you want select, not map
<kiddoboy> I want map
<workmad3> kiddoboy: so you want it to be either 'e' or 'bigger than 1' for all items?
<kiddoboy> yes
<workmad3> kiddoboy: ok... then 'e < 2 ? e : 'bigger than 1'
<kiddoboy> It's just an example
<workmad3> kiddoboy: no return
<kiddoboy> But imagine that I have 7 lines of code there
Takle has quit [Remote host closed the connection]
<workmad3> kiddoboy: return in that block will not do what you want
<kiddoboy> How can I return from the second line for instance?
<waxjar> with next
<kiddoboy> How can I return the value to map
<apeiros_> still with next :)
<workmad3> waxjar: does 'next' have a return value for map?
<apeiros_> >> [1,2,3].map { |x| next 20 }
<eval-in_> apeiros_ => [20, 20, 20] (https://eval.in/266549)
<workmad3> aha
<workmad3> :)
alexherbo2 has quit [Quit: WeeChat 1.1.1]
<kiddoboy> Thanks that was it
<apeiros_> next, break & return all take a value. without one given, they default to nil.
* workmad3 didn't know about that use-case for next
jimms has quit [Remote host closed the connection]
<certainty> so go on with the next use-case
<apeiros_> kiddoboy: note that next is considered spaghetti
tkuchiki has joined #ruby
<certainty> hmm pasta
<workmad3> I have stew tonight, not pasta
<waxjar> probably better to get the code in the block to be smaller
Takle has joined #ruby
pushpak has joined #ruby
arup_r has quit [Remote host closed the connection]
fabrice31 has joined #ruby
jerematic has joined #ruby
<kiddoboy> In this situation it is ok to use next
borel has joined #ruby
OrbitalKitten has joined #ruby
kp666 has quit [Quit: Leaving]
kaspertidemann has joined #ruby
kobain has joined #ruby
Azure has quit [Read error: Connection reset by peer]
kobain has quit [Max SendQ exceeded]
rafadc has joined #ruby
joonty has joined #ruby
Azure has joined #ruby
rafadc has quit [Read error: Connection reset by peer]
rafadc_ has joined #ruby
knut has quit [Ping timeout: 264 seconds]
tokik has quit [Ping timeout: 245 seconds]
lkba has joined #ruby
<kiddoboy> It is the situation where you drop the ternary operator and just do: next a if condition; b instead of condition ? a : b when condition, a and b are bigger espressions
DarthGandalf has quit [Ping timeout: 264 seconds]
lxsameer has quit [Quit: Leaving]
kobain has joined #ruby
kobain has quit [Changing host]
kobain has joined #ruby
agrinb has joined #ruby
JohnBat26 has joined #ruby
<kiddoboy> A best practice to drop if statements
kobain has quit [Max SendQ exceeded]
psy_ has quit [Ping timeout: 272 seconds]
pdoherty has quit [Remote host closed the connection]
arya_ching has joined #ruby
<waxjar> returning early and if-else expressions are really the same thing though.
<waxjar> there's still two paths your code can take
lzx has joined #ruby
<certainty> still if-else is explicitly to do branching
<certainty> +there
jerius has joined #ruby
lessless has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
<certainty> i'm unsure about their equivalence, though they achieve the same effect
L8 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mkaesz has quit [Ping timeout: 265 seconds]
patric100e99 has joined #ruby
pushpak has quit [Quit: Linkinus - http://linkinus.com]
troubadour has joined #ruby
plashchynski has quit [Quit: plashchynski]
phoo1234567 has joined #ruby
ascarter has quit [Ping timeout: 246 seconds]
bal has quit [Quit: bal]
anarang_ has joined #ruby
<workmad3> kiddoboy: also, you've not removed the if statement there... you're just using a suffix version
troubadour has quit [Client Quit]
<certainty> which i only ever use if the expression before is short
phoo1234567 has quit [Max SendQ exceeded]
<certainty> but that's a different thing
mkaesz has joined #ruby
phoo1234567 has joined #ruby
quimrstorres has quit [Remote host closed the connection]
anarang has quit [Ping timeout: 244 seconds]
<apeiros_> refactor big expressions to methods. use ternary with those.
patric100e99 has quit [Ping timeout: 255 seconds]
L8 has joined #ruby
yfeldblum has joined #ruby
btcxpert has quit [Quit: btcxpert]
dstarh has joined #ruby
tier has joined #ruby
anarang_ has quit [Ping timeout: 244 seconds]
<certainty> the ternary appears to be problematic to me as well. even with short branches and condition. Very often the condition is a predicate ending an a ? which seems to clash with the ? from the ternary
paulfm has joined #ruby
<certainty> may only be a matter of taste though
lzx has quit []
leonshalimov has joined #ruby
arup_r has joined #ruby
Dude007_ has joined #ruby
Dude007 has quit [Read error: Connection reset by peer]
plashchynski has joined #ruby
fryguy9 has joined #ruby
bronson has joined #ruby
<workmad3> certainty: yeah, I'm not too fond of that either... but I prefer that to a multi-line conditional in a block to replace it, or an inline 'if <condition> then <method1> else <method2> end'
yfeldblum has quit [Ping timeout: 252 seconds]
Parker0 has joined #ruby
_5kg has quit [Ping timeout: 255 seconds]
Parker0 has quit [Client Quit]
<apeiros_> meh
<apeiros_> I have no issue with `condition? ? foo : bar`
_5kg has joined #ruby
ychaker has joined #ruby
<apeiros_> but as workmad3 said - if your company styleguide says that this is a no-no, just replace it with `if condition? then foo else bar end`
ychaker is now known as Guest43311
<workmad3> apeiros_: the double-? is a slight ugliness, IMO... but not enough to really warrent more than a minor bitch here when certainty brings it up :)
JDiPierro has joined #ruby
AlexRussia has quit [Ping timeout: 276 seconds]
quimrstorres has joined #ruby
bal has joined #ruby
go|dfish has quit [Quit: SIGQUIT]
leonshalimov has quit [Ping timeout: 245 seconds]
tjohnson has joined #ruby
mwlang has joined #ruby
knut has joined #ruby
* certainty nods
bronson has quit [Ping timeout: 264 seconds]
Guest482 has quit [Changing host]
Guest482 has joined #ruby
Guest482 is now known as daynaskully
<ddv> the ugliness is in your head, workmad3
<certainty> and in mine
juanpablo_ has joined #ruby
jimms has joined #ruby
Guest43311 is now known as help
Darryl___ has joined #ruby
<workmad3> ddv: that can be said of any ugliness or beauty
help is now known as Guest94296
<workmad3> ddv: but I'm not in the mood for that sort of philosophical discussion today :P
Vivex has joined #ruby
<ddv> everything is in your head
<ddv> <3
<workmad3> must... resist... being... drawn... into... discussion
<mwlang> I usually use Array(some_variable) to guarantee I have an array. For example => Array(“hello”) => [“hello”]; Array([“hello”, “world”]) => [“hello”, “world”]. However, to my surprise (and first time I’m doing this with hashes => Array({:hello => :world}) => [[:hello, :world]] instead of [{:hello => :world}]
<mwlang> So, what’s the easiest way to ensure an array of hashes?
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nfk has quit [Quit: yawn]
mitchellhenke has joined #ruby
jmcharnes has joined #ruby
<apeiros_> Array(var) IMO means you failed to normalize in the right place
<mwlang> I’m feeding into a #map block and the usage pattern I typically use is Array(some_variable).map{|m| do_something(m)}
_ixti_ is now known as ixti
<apeiros_> yes. why is it possible that some_variable is not an Enumerable?
lukeholder has joined #ruby
AlexRussia has joined #ruby
anarang_ has joined #ruby
AlexRussia has quit [Changing host]
AlexRussia has joined #ruby
<mwlang> apeiros: in this case, I’m parsing an XML document. Sometimes I get just one section, in which case its just a hash…other times, the section is repeated and I get an Array.
lukeholder has quit [Read error: Connection reset by peer]
dorei has joined #ruby
aswen has quit [Ping timeout: 245 seconds]
lukeholder has joined #ruby
<apeiros_> and why does your parser not translate those cases to the same structure? (that's what normalization means)
it0a has joined #ruby
<apeiros_> it makes even less sense. parser has to branch on whether to return array or not, all consumers of the parsers have to branch again depending on whether they got an array or not
hiyosi has joined #ruby
<apeiros_> just remove both branchings.
Aova has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
<mwlang> apeiros_ no idea why the author did it that way. Its actually the nori gem, FWIW, which parses XML docs into hashes.
tier has quit [Read error: Connection reset by peer]
<mwlang> (inherited this project, too)
lukeholder has quit [Max SendQ exceeded]
<apeiros_> ok. so you're working around the mess others created. well then.
tier has joined #ruby
<apeiros_> good luck :)
<mwlang> apeiros_: aren’t we all? :-o
<Nilium> It's always the mess others created (╯°□°)╯︵ ┻━┻
<Nilium> Especially the node.js users, who have done nothing but messes (ノಠ益ಠ)ノ彡┻━┻
lukeholder has joined #ruby
<apeiros_> Nilium: IME often "others" means "my old self" :-p
<mwlang> I’m basically attempting to normalize efficiently within my scope of work.
<Nilium> apeiros_: I have that too, but at work, I haven't been there long enough for it to be my old self
<apeiros_> and I've seen shitty unnecessary array normalization all over the place in all kinds of code.
failshell has joined #ruby
tier has quit [Read error: Connection reset by peer]
tier has joined #ruby
<apeiros_> most common case: `def foo(arg); Array(arg).whatever…`. proper solution: `def foo(*args); args.whatever`. let the caller normalize.
lukeholder has quit [Max SendQ exceeded]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
triple_b has joined #ruby
djbkd has quit [Ping timeout: 245 seconds]
lukeholder has joined #ruby
az7ar_away has quit [Ping timeout: 245 seconds]
psy_ has joined #ruby
Aova has joined #ruby
<mwlang> I prefer Array(items).map{|item| do_something(item)} to this: items.is_a?(Array) ? items.map{|item do_something(item)} : do_something(items)
tier has quit [Read error: Connection reset by peer]
az7ar_away has joined #ruby
jherbst has joined #ruby
tier has joined #ruby
<workmad3> mwlang: apeiros_'s point is that it should just be 'items.map{|item| do_something(item)}' and the caller is responsible for making sure it passes an array
<mwlang> workmad3: Ah, yes, I totally agree there.
jherbst has quit [Client Quit]
bal has quit [Quit: bal]
ursooperduper has joined #ruby
lukeholder has quit [Max SendQ exceeded]
<mwlang> mostly, I was just surprised by the behavior of Array() on a Hash object.
failshell has quit [Ping timeout: 272 seconds]
bal has joined #ruby
lukeholder has joined #ruby
<workmad3> mwlang: it's the result of Hash#to_a
Xeago has joined #ruby
zenith_ has joined #ruby
metrix has joined #ruby
<workmad3> mwlang: it seems weirdly reasonable for Array(arg) to call arg.to_a if it's present :)
Timgauthier has joined #ruby
Guest94296 has quit [Quit: Textual IRC Client: www.textualapp.com]
ych4k3r has joined #ruby
tier has quit [Read error: Connection reset by peer]
arup_r has quit [Remote host closed the connection]
tier has joined #ruby
<metrix> I would like to run a block for every element in two hashes. Hash.merge only runs a block on the hashes that are duplicates... Any suggestions?
whoisjake has joined #ruby
<metrix> err.. Hash.merge only runs a block on the KEYS that are duplicates
jottr has quit [Quit: WeeChat 1.1]
<apeiros_> we still don't have Enumerator#+, aight?
mitchellhenke has quit [Quit: Computer has gone to sleep.]
<apeiros_> metrix: "errr" again? because I think you mean: runs the block only *once* on duplicate keys
Channel6 has joined #ruby
<apeiros_> (it does run on all keys)
<apeiros_> ah, or did you pass the block directly to merge, not to a chained .each?
bal1 has joined #ruby
<metrix> Directly to merge
shime has quit [Read error: Connection reset by peer]
rdark has quit [Ping timeout: 265 seconds]
shime has joined #ruby
mbeasley has quit [Read error: Connection reset by peer]
<metrix> h1 = {:a=>'1',:c=>'1'}
<metrix> h2 = {:c=>'1'}
towncrierr has joined #ruby
<metrix> irb(main):004:0> h1.merge(h2) {|key,a,b| a.to_i * b.to_i}
<metrix> => {:a=>"1", :c=>1}
bal has quit [Ping timeout: 265 seconds]
towncrierr has quit [Remote host closed the connection]
d10n-work has joined #ruby
rdark has joined #ruby
<metrix> notice key :a is a string, even though I converted everything to integer
jlebrech has joined #ruby
<apeiros_> metrix: then you're using the wrong tool
<apeiros_> the merge block is *specifically* to resolve merge conflicts.
<metrix> Then what is the right tool
<apeiros_> a.merge(b).each { …your block… }
<jlebrech> is there a gem to get the structure of a valid ruby file?
<apeiros_> but that will run the block only once for duplicate keys
towncrierr has joined #ruby
<apeiros_> jlebrech: "structure"?
towncrierr has quit [Remote host closed the connection]
<jlebrech> apeiros_: say turn it into a hash
<jlebrech> to read the code programaticaly
<apeiros_> jlebrech: that still does not make sense on its own.
<apeiros_> you want a parser?
towncrierr has joined #ruby
<jlebrech> yeah, i meant that
fabrice31 has quit [Remote host closed the connection]
<d10n-work> Which is more idiomatic? https://dpaste.de/Agcc
<apeiros_> there's plenty. see Ripper, Parser, ruby_parser
<apeiros_> metrix: alterantively: (a.to_a+b.to_a).each
<jlebrech> cool
<apeiros_> metrix: that will run it for every key
towncrierr has quit [Remote host closed the connection]
fabrice31 has joined #ruby
mbeasley has joined #ruby
towncrierr has joined #ruby
tier has quit [Remote host closed the connection]
<jlebrech> apeiros_: i was just wondering why there weren't more visual code editors that let you select a method to edit rather than whole files. say for a touch screen
<jlebrech> apeiros_: that would need to parse
whoisjake has quit []
tier has joined #ruby
<jlebrech> apeiros_: something like this: https://github.com/oggy/cast (not a rubygem)
werelivinginthef has joined #ruby
oleo has joined #ruby
adriancb has joined #ruby
fabrice31_ has joined #ruby
towncrierr has quit [Remote host closed the connection]
adriancb has quit [Remote host closed the connection]
adriancb has joined #ruby
josephndenton has joined #ruby
towncrierr has joined #ruby
pwh has joined #ruby
agrinb has joined #ruby
zB0hs has joined #ruby
GreatSUN has joined #ruby
jonr22 has joined #ruby
<GreatSUN> Hi all
rocknrollmarc has joined #ruby
<apeiros_> jlebrech: for an editor, a parser won't work
rafadc_ has quit [Remote host closed the connection]
shredding has joined #ruby
<apeiros_> a parser expects valid syntax and will abort on invalid syntax
<apeiros_> but editing a file, you *by definition* will have invalid syntax
pdoherty has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
jottr has joined #ruby
mrmargolis has joined #ruby
timanema has joined #ruby
rocknrollmarc has quit [Read error: Connection reset by peer]
mpgarate has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
rocknrollmarc has joined #ruby
whoisjake has joined #ruby
agrinb has quit [Ping timeout: 272 seconds]
jonr22 has quit [Ping timeout: 252 seconds]
duper has joined #ruby
<GreatSUN> I have a problem with modules and classes integration
linojon has joined #ruby
<GreatSUN> can someone please assist?
<jlebrech> apeiros_: yeah it would be a different approach
rocknrollmarc has quit [Read error: Connection reset by peer]
<GreatSUN> somehow I need to find a way to access the class variable
Takle has quit [Remote host closed the connection]
<shevy> guys
<shevy> it's time again
<jlebrech> apeiros_: you wouldn't be able to save a method till it's valid
<shevy> who wants to be spanked
rocknrollmarc has joined #ruby
<apeiros_> jlebrech: that's very user friendly :)
Channel6 has quit [Quit: Leaving]
rocknrollmarc has quit [Read error: Connection reset by peer]
EvanFreeman has joined #ruby
cphrmky has joined #ruby
<apeiros_> jlebrech: it also means you can't open any incomplete/invalid file from another source.
<jlebrech> apeiros_: sarcasm? :D
<apeiros_> jlebrech: of course
<apeiros_> jlebrech: "god damit I have to take the train, save it already!!!"
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Client Quit]
<jlebrech> apeiros_: well if the file is invalid it would be in a simple mode
<GreatSUN> jlebrech: the problem would be at most that you can not save a file at the end of your day when you have not been able to fix the error
towncrierr has quit [Remote host closed the connection]
<GreatSUN> or the other way round, you might not be able to identify the error properly
<GreatSUN> which might be easier when you are able to save the current status
jespada has joined #ruby
<GreatSUN> also you would not be able to begin the work and transfer it to another developer
last_staff has quit [Quit: last_staff]
<GreatSUN> I think it would at least need some kind of question: "Do you really want to save a broken file?"
yalue has joined #ruby
<jlebrech> yeah, force save
<jlebrech> and you wouldn't be able to reopen in "smart" mode till you fix the syntax error
devdazed has joined #ruby
<jlebrech> or it could just parse in order to insert collapsible text
towncrierr has joined #ruby
<GreatSUN> jlebrech: right, not open would be horrible, too afterwards
towncrierr has quit [Remote host closed the connection]
<GreatSUN> anyhow, can someone please have a look at my gist?
anarang_ has quit [Ping timeout: 265 seconds]
athan has quit [Ping timeout: 264 seconds]
towncrierr has joined #ruby
symbol_ has joined #ruby
rdark has quit [Ping timeout: 246 seconds]
sent1nel has joined #ruby
leonshalimov has joined #ruby
OrbitalKitten has joined #ruby
russt has quit [Quit: russt]
<GreatSUN> noone of you guys experienced with metaprogramming in ruby?
oo_ has quit [Remote host closed the connection]
mpgarate has left #ruby [#ruby]
ferr has quit [Ping timeout: 264 seconds]
<jlebrech> never used const_get
<GreatSUN> jlebrech: just gets the object of the Module
ferr has joined #ruby
<GreatSUN> could be replaced for non dynamic use with -> include Module1 / include Module2
<jlebrech> do you still get your issue with non-dynamic?
<GreatSUN> as it is just the same in this case, yes
rdark has joined #ruby
aclearma_ has joined #ruby
<GreatSUN> the problem is that the class variable is set only on Module base
<GreatSUN> not on class base
<GreatSUN> therefore accessing it from outside of the module is not working
<GreatSUN> the question is how to get the class to have the class variable shared with the module
aclearman037 has quit [Ping timeout: 246 seconds]
failshell has joined #ruby
<JDiPierro> GreatSUN: I think you might want your "extend ClassMethods" to be "include ClassMethods"
<JDiPierro> nope, I'm wrong
<GreatSUN> already wanted to say something like that
skj3gg has joined #ruby
<GreatSUN> cause then classmethods would be instancemethods
<GreatSUN> ;-)
<JDiPierro> yup
oo_ has joined #ruby
<JDiPierro> hmmm.. this is a stumper
fabrice31_ has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
sent1nel has quit [Remote host closed the connection]
rbrs1 has joined #ruby
fabrice31 has joined #ruby
rafadc has joined #ruby
rafadc has quit [Remote host closed the connection]
skj3gg has quit [Client Quit]
<jlebrech> apeiros_: the upshot of relying on validity is that you can tie the undo/vcs system into it
<GreatSUN> JDiPierro: you are very welcome if you have an idea
<JDiPierro> GreatSUN: What about class_variable_get?
rbrs1 has quit [Client Quit]
<GreatSUN> JDiPierro: no. class_variable_get is not available in an instance method
anarang_ has joined #ruby
rbrs has quit [Remote host closed the connection]
cpt_yossarian has joined #ruby
x77686d has joined #ruby
fabrice31_ has joined #ruby
porfa has joined #ruby
Pisuke has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
happyface has joined #ruby
rafadc has joined #ruby
dspangenberg has joined #ruby
MyMind has quit [Ping timeout: 252 seconds]
<GreatSUN> JDiPierro: self.class.class_variable_get <--- solution
<JDiPierro> GreatSUN: Noice!
mkaesz has quit [Remote host closed the connection]
mkaesz has joined #ruby
athan has joined #ruby
fabrice31 has quit [Ping timeout: 276 seconds]
CustosL1men has joined #ruby
* hanmac1 does hide classes as constants in singleton classes of objects ;P
freerobby has joined #ruby
<workmad3> GreatSUN: hmm... your code there actually seems to work fine for me without jumping through hoops
Aova has quit [Read error: Connection reset by peer]
Megtastique has joined #ruby
<workmad3> GreatSUN: with one modification... 'include Module1' inside Module2
Ankhers has joined #ruby
dspangenberg has quit [Ping timeout: 246 seconds]
<GreatSUN> workmad3: also good solution
<GreatSUN> thanks a lot :-)
rafadc has quit []
shime has quit [Read error: Connection reset by peer]
shime has joined #ruby
<workmad3> GreatSUN: not that I know what use-case you're really dealing with there, tbh
<GreatSUN> workmad3: updated gist right away with the second solution
antgel has quit [Ping timeout: 256 seconds]
dspangenberg has joined #ruby
<GreatSUN> workmad3: just trying to figure out what would be the best solution to get this working hence we want to have smaller modules and though want to divide modules into multiple ones
<workmad3> GreatSUN: yeah... just trying to figure out why you're splitting up actions around a class variable across multiple modules
antgel has joined #ruby
aagdbl has quit [Quit: This computer has gone to sleep]
<workmad3> GreatSUN: and why Module1 doesn't provide class and instance level readers for the var... and why you're using a class variable rather than a module-ivar... etc :)
MaciejCzyzewski has joined #ruby
<MaciejCzyzewski> Hi folks!
<GreatSUN> workmad3: if you have modules counting more than 900 lines of code, you should start splitting
<workmad3> GreatSUN: agreed... but where you split is an important consideration ;)
Aova has joined #ruby
<workmad3> GreatSUN: and I'm not sure I'd agree that splitting the management of a class-variable is good
<GreatSUN> workmad3: the point is that they are all just connected to one topic, so we have basic things that nearly all methods share with each other
<GreatSUN> and other things that are not shared
<workmad3> GreatSUN: ok... so why not have a basic interface to access defined in that one module and then rely on the interface, rather than accessing the storage directly?
<workmad3> GreatSUN: i.e. create class and instance level readers for the class-var ;)
skj3gg has joined #ruby
<banister> workmad3 where do you put modules that you mix into your models/controllers?
Pupeno has joined #ruby
<workmad3> banister: frequently in lib/
<GreatSUN> workmad3: yeah, I was thinking about that already and just wanted to see the other ways how things might work out to be able to decide for the best way
<banister> workmad3 isn't lib/ just a junk drawer for putting things where you don't know where to put them...? :) I thought the new standard was models/concerns/ or controllers/concerns/ depending on if it's for models or controllers
<GreatSUN> but in general I think, you are right
<GreatSUN> the base module would be the best solution
<workmad3> banister: depends on if you bring structure to lib/ or not :P
<banister> workmad3 you don't like models/concerns/ ?
tus has joined #ruby
<workmad3> banister: not particularly
noop has quit [Ping timeout: 272 seconds]
tagrudev has quit [Remote host closed the connection]
towncrierr has quit [Remote host closed the connection]
<waxjar> anything "reusable" goes into /lib :p
shazaum has joined #ruby
craigp has quit [Ping timeout: 265 seconds]
mbeasley has quit [Quit: WeeChat 0.4.2]
Uranio has joined #ruby
LouisRoR has joined #ruby
bddh` has joined #ruby
bddh has quit [Read error: Connection reset by peer]
skj3gg has quit [Quit: ZZZzzz…]
sandelius has joined #ruby
<banister> waxjar aren't all objects reusable?
<workmad3> banister: some are more re-usable than others :P
knut has quit [Ping timeout: 252 seconds]
<workmad3> you should know that ;)
<banister> workmad3 seems like a pretty vague test for what should go in lib/ :)
<avril14th> I don't understand MatchData#begin, is that the offset in the original string?
agjacome has joined #ruby
dstarh has quit [Quit: Textual IRC Client: www.textualapp.com]
sent1nel has joined #ruby
fabrice31_ has quit [Remote host closed the connection]
<workmad3> banister: yeah... but it's about as vague as what should go under a concerns/ folder... and what about stuff like extensions to AR::Base that add in new class-macros... or something that spans controllers and models with utility methods... or a whole host of other things that are useful but don't fit under the term 'concern'? ;)
fabrice31 has joined #ruby
nateberkopec has quit [Quit: Leaving...]
towncrierr has joined #ruby
momomomomo has joined #ruby
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby
skj3gg has joined #ruby
nateberkopec has joined #ruby
sent1nel has quit [Remote host closed the connection]
Aova has quit [Ping timeout: 245 seconds]
<waxjar> "potentially" reusable in two or more apps? idk, really :p
Uranio has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
hanmac1 has quit [Quit: Leaving.]
Uranio has joined #ruby
Macaveli has quit [Ping timeout: 255 seconds]
zwer_h is now known as zwer
rdark has quit [Ping timeout: 264 seconds]
odigity has joined #ruby
fryguy9 has quit [Read error: Connection reset by peer]
dspangenberg has quit [Ping timeout: 252 seconds]
fryguy9 has joined #ruby
tesuji has quit [Ping timeout: 255 seconds]
fabrice31_ has joined #ruby
agrinb has joined #ruby
mikecmpbll has joined #ruby
apeiros_ has quit [Ping timeout: 252 seconds]
Aova has joined #ruby
snath has quit [Ping timeout: 245 seconds]
cpt_yossarian has quit [Ping timeout: 255 seconds]
ferr has quit [Ping timeout: 272 seconds]
fabrice31 has quit [Ping timeout: 246 seconds]
tpilionis has quit [Quit: Leaving]
iLike has quit [Quit: Leaving]
chinmay_dd has joined #ruby
Timgauthier has quit [Read error: Connection reset by peer]
Uranio has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Endoze has joined #ruby
Timgauthier has joined #ruby
fmcgeough has joined #ruby
agrinb has quit [Ping timeout: 272 seconds]
patric100e99 has joined #ruby
Endoze has left #ruby [#ruby]
Timgauthier has quit [Client Quit]
Uranio has joined #ruby
anarang_ has quit [Quit: Leaving]
sagittarian|2 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
rdark has joined #ruby
Xeago has quit [Remote host closed the connection]
<avril14th> is there a method to delete part of a string given two indexes (start and end indexes)
whoisjake has quit []
brb3 has quit [Quit: <.<]
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ejnahc has quit [Quit: leaving]
whoisjake has joined #ruby
<canton7> avril14th, #slice! iirc
ejnahc has joined #ruby
patric100e99 has quit [Ping timeout: 252 seconds]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ddv> avril14th, "blaat"[begin, end]
lessless has joined #ruby
<avril14th> thx canton7
kobain has joined #ruby
<avril14th> ddv: that won't remove it
lessless has quit [Client Quit]
yfeldblum has joined #ruby
Uranio has quit [Client Quit]
paradoja has joined #ruby
Uranio has joined #ruby
red_horned_rihno has joined #ruby
<workmad3> avril14th: str[begin..end] = "" will though
red_horned_rihno has quit [Max SendQ exceeded]
<avril14th> that is true :)
LouisRoR has quit [Ping timeout: 246 seconds]
<workmad3> ddv: str[x, y] is 'get y characters starting at x' btw ;)
<workmad3> ddv: rather than start, end
paradoja has left #ruby [#ruby]
<ddv> workmad3: true
timonv has quit [Ping timeout: 244 seconds]
juanpablo_ has quit [Ping timeout: 265 seconds]
Obfuscate has quit [Quit: Obfuscate]
bronson has joined #ruby
Obfuscate has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
craigp has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
rippa has joined #ruby
Megtastique has quit []
Uranio has quit [Client Quit]
mloveless has joined #ruby
MaciejCzyzewski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maximski has joined #ruby
alex88 has quit []
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cpt_yossarian has joined #ruby
kiddoboy has quit [Quit: Page closed]
Megtastique has joined #ruby
mloveless has quit [Client Quit]
ta_ has joined #ruby
brb3 has joined #ruby
hs366 has quit [Quit: Leaving]
Uranio has joined #ruby
bronson has quit [Ping timeout: 276 seconds]
snath has joined #ruby
freerobby has quit [Quit: Leaving.]
bal1 has quit [Quit: bal1]
shime has quit [Read error: Connection reset by peer]
arya_ching_ has joined #ruby
shime has joined #ruby
commmmodo has joined #ruby
commmmodo has quit [Client Quit]
nux443 has quit [Quit: leaving]
Uranio has quit [Client Quit]
klmlfl has joined #ruby
freerobby has joined #ruby
kaspertidemann has quit []
ta_ has quit [Ping timeout: 276 seconds]
arya_ching has quit [Ping timeout: 240 seconds]
plashchynski has quit [Quit: plashchynski]
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
momomomomo has quit [Ping timeout: 244 seconds]
<chinmay_dd> How do you capture CTRL + D in Ruby? Suppose my program is waiting for input and on CTRL + D I want it to exit smoothly without giving any traces. I am able to capture CTRL + C using 'rescue Interrupt' but can't seem to do the same for CTRL + D. Thanks!
kbp has joined #ruby
Matadoer has quit [Ping timeout: 245 seconds]
Matadoer has joined #ruby
cantonic has joined #ruby
djbkd has joined #ruby
Matadoer has quit [Max SendQ exceeded]
dfinninger has joined #ruby
Matadoer has joined #ruby
plashchynski has joined #ruby
fabrice31_ has quit [Remote host closed the connection]
momomomomo has joined #ruby
cantonic has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
lampd1 has quit [Remote host closed the connection]
Pharaoh2_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
MaciejCzyzewski has joined #ruby
<DefV_> chinmay_dd: ctrl-d is end-of-file
cantonic has joined #ruby
sent1nel has joined #ruby
Pharaoh2 has joined #ruby
kostitas has joined #ruby
<DefV_> or SIGQUIT
<DefV_> depends
<chinmay_dd> DefV_:
fabrice31_ has joined #ruby
<DefV_> you can capture that whit Signal.trap
fabrice31 has quit [Read error: Connection reset by peer]
<chinmay_dd> Oh okay. Thanks. WIll try it out
symbol_ has quit [Quit: WeeChat 1.1]
<DefV_> Signal.trap("SIGQUIT") { what_to_do }
Pharaoh2 has quit [Client Quit]
OrbitalKitten has joined #ruby
djbkd has quit [Ping timeout: 240 seconds]
juanpablo_ has joined #ruby
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
Spami has quit [Quit: Leaving]
werelivinginthef has quit [Remote host closed the connection]
Spami has joined #ruby
Pharaoh2 has joined #ruby
freerobby has quit [Quit: Leaving.]
borel has quit [Read error: Connection reset by peer]
<zipkid> Hello, is it possible to use GetoptLong on a string instead of the script's command line?
btcxpert has joined #ruby
fabrice31_ has quit [Ping timeout: 246 seconds]
Tamae has quit [Ping timeout: 246 seconds]
commmmodo has joined #ruby
werelivinginthef has joined #ruby
Guest42455 has joined #ruby
Tamae has joined #ruby
Guest42455 has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
dspangenberg has joined #ruby
Guest42455 has joined #ruby
Guest42455 has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
Darryl___ has quit [Quit: Connection closed for inactivity]
einarj has quit [Remote host closed the connection]
Aova has quit [Read error: Connection reset by peer]
dmst has joined #ruby
_maes_ has joined #ruby
ponga has quit [Quit: Leaving...]
skj3gg has quit [Quit: welp, see you later.]
commmmodo has quit [Ping timeout: 264 seconds]
mbeasley has joined #ruby
mkaesz has quit [Quit: Leaving...]
apeiros_ has joined #ruby
livathin_ has joined #ruby
nanoyak has joined #ruby
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
livathin_ has quit [Remote host closed the connection]
Aova has joined #ruby
mbeasley has quit [Client Quit]
agjacome has quit [Quit: leaving]
joonty has quit [Quit: joonty]
posixpascal has joined #ruby
sent1nel has quit [Remote host closed the connection]
mbeasley has joined #ruby
slester has joined #ruby
ta_ has joined #ruby
kamilc__ has quit [Ping timeout: 272 seconds]
livathinos has quit [Ping timeout: 272 seconds]
L8 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
joonty has joined #ruby
drewxiu has joined #ruby
btcxpert has quit [Quit: btcxpert]
Takle has joined #ruby
ta_ has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
spider-mario has joined #ruby
chrishough has joined #ruby
agrinb has joined #ruby
sent1nel has joined #ruby
BurningChrome_ has joined #ruby
jonr22 has joined #ruby
maximski_ has joined #ruby
maximski_ has quit [Max SendQ exceeded]
agrinb_ has joined #ruby
maximski has quit [Read error: Connection reset by peer]
EvanFree_ has joined #ruby
maximski has joined #ruby
havenwood has joined #ruby
EvanFreeman has quit [Ping timeout: 244 seconds]
skj3gg has joined #ruby
drewxiu has quit [Quit: Lost terminal]
kamilc__ has joined #ruby
n008f4g_ has quit [Ping timeout: 264 seconds]
fgo has quit [Ping timeout: 245 seconds]
ptrrr has joined #ruby
agrinb has quit [Ping timeout: 272 seconds]
jonr22 has quit [Ping timeout: 264 seconds]
kbp has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
rbrs has joined #ruby
_yinzer has joined #ruby
crazydiamond has joined #ruby
aganov has quit [Quit: Leaving]
georgesmith has quit [Quit: georgesmith]
pontiki has quit [Remote host closed the connection]
AFKGeek has quit [Quit: Fades into the shadows]
Kn|t3_ has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
werelivinginthef has quit [Remote host closed the connection]
lolmaus has quit [Quit: Konversation terminated!]
skj3gg has quit [Quit: ZZZzzz…]
lkba has quit [Ping timeout: 276 seconds]
leonshalimov has quit [Ping timeout: 256 seconds]
pontiki has joined #ruby
gattie has joined #ruby
momomomomo has quit [Quit: momomomomo]
georgesmith has joined #ruby
skj3gg has joined #ruby
spyderma_ has quit [Ping timeout: 255 seconds]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
knut has joined #ruby
_yinzer has quit [Read error: Connection reset by peer]
jobewan has joined #ruby
matrixise has joined #ruby
joonty has quit [Quit: joonty]
martin_work has joined #ruby
Megtastique has quit []
cpt_yossarian has quit [Ping timeout: 264 seconds]
Lexun has joined #ruby
defrang has quit [Quit: defrang]
CustosL1men has quit [Ping timeout: 264 seconds]
joonty has joined #ruby
patric100e99 has joined #ruby
raphaelss has quit [Quit: leaving]
lodgenbd has joined #ruby
giuseppesolinas has joined #ruby
Timgauthier has joined #ruby
agjacome has joined #ruby
martin_work has quit [Ping timeout: 252 seconds]
OrbitalKitten has joined #ruby
btcxpert has joined #ruby
danjordan has quit [Quit: danjordan]
russt has joined #ruby
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skj3gg has quit [Quit: ZZZzzz…]
nb_bez___ has joined #ruby
oddover has joined #ruby
jimms has quit [Remote host closed the connection]
patric100e99 has quit [Ping timeout: 256 seconds]
<oddover> Hi all. I need some help converting an array to a nested hash. Here's an example: http://pastebin.com/EA7ys7Lj
<oddover> the first line has the array, the second line has the hash I'd like to end up with
<oddover> so, each element of the array becomes a key point to a hash with the next element as a key, and so on
sent1nel has quit [Remote host closed the connection]
towncrierr has quit [Ping timeout: 246 seconds]
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
<oddover> actually, I would accept the other version in that new one as well
go|dfish has joined #ruby
paulfm has quit [Remote host closed the connection]
<odigity> Is the stdlib compiled directly into the ruby binary in the debian/ubuntu package? I just did dpkg -L ruby1.9.1, and the list of files is less than a page long. Just docs and binaries.
paulfm has joined #ruby
joonty has quit [Quit: joonty]
multi_io has joined #ruby
spookplumpen has joined #ruby
fryguy91 has joined #ruby
wallerdev has joined #ruby
fgo has joined #ruby
andikr has quit [Remote host closed the connection]
Ankhers` has joined #ruby
Hijiri has quit [Quit: aaa]
enebo has joined #ruby
Ankhers has quit [Ping timeout: 250 seconds]
fryguy9 has quit [Ping timeout: 276 seconds]
gheegh has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
nfk has joined #ruby
multi_io_ has quit [Ping timeout: 256 seconds]
Lexun has quit [Remote host closed the connection]
sent1nel has joined #ruby
Spami has quit [Quit: Leaving]
athan has quit [Ping timeout: 245 seconds]
deol has joined #ruby
<odigity> found it
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
asmodlol has joined #ruby
werelivinginthef has joined #ruby
The_Phoenix1 has joined #ruby
joonty has joined #ruby
Kn|t3_ has quit [Quit: Kn|t3_]
The_Phoenix has quit [Ping timeout: 252 seconds]
ta_ has joined #ruby
shime has quit [Read error: Connection reset by peer]
shime has joined #ruby
bronson has joined #ruby
fgo has quit [Ping timeout: 255 seconds]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
MaciejCzyzewski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
joonty has quit [Quit: joonty]
Spami has joined #ruby
gsd has joined #ruby
ta_ has quit [Ping timeout: 265 seconds]
btcxpert has quit [Quit: btcxpert]
ta_ has joined #ruby
shredding has quit [Quit: shredding]
leonshalimov has joined #ruby
Lexun has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
chrishough has joined #ruby
marcoamo1 has joined #ruby
bricker has joined #ruby
spyderman4g63 has joined #ruby
Aova has quit [Read error: Connection reset by peer]
marcoamorales has quit [Ping timeout: 245 seconds]
ta_ has quit [Ping timeout: 246 seconds]
arup_r has joined #ruby
tier has quit [Remote host closed the connection]
parametaortho has quit [Quit: zzzZZZzzzzZZZzzzzZZZZzzzZZZzz]
Lexun has quit [Remote host closed the connection]
randiman has joined #ruby
tyfighter has joined #ruby
Aova has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
Lexun has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
triple_b has joined #ruby
martinium has joined #ruby
martinium has joined #ruby
mikecmpbll has quit [Quit: ciao.]
tylersmith has quit [Remote host closed the connection]
Morkel has quit [Quit: Morkel]
brb3 has quit [Quit: ZZZzzz…]
Megtastique has joined #ruby
martinium has quit [Remote host closed the connection]
momomomomo has joined #ruby
JDiPierro has quit [Remote host closed the connection]
swgillespie has joined #ruby
tkuchiki has quit [Ping timeout: 264 seconds]
swgillespie has quit [Client Quit]
Lexun has quit [Remote host closed the connection]
<knut> hello, I'm having trouble with a serial connection. I send a command to a microcontroller, which answers within 30ms, and with an oscilloscope I can confirm that, but on the serial port i can read the data just about 0.5s later. when I send, wait a bit, and read my methods work fast, but when i send and directly read my methods block 0.5s until the data can be read. I'm using the serialport gem on an Odroid U3. Maybe I could have for
<knut> gotten to set a flag, or where can I start searching?
sent1nel has quit [Remote host closed the connection]
<knut> After SerialPort#write SerialPort#readpartial blocks for about 0.5s until data arrives.
centrx has joined #ruby
martin_work has joined #ruby
randiman has quit [Remote host closed the connection]
Lexun has joined #ruby
randiman has joined #ruby
jimms has joined #ruby
Takle has quit [Remote host closed the connection]
lodgenbd has quit [Quit: Leaving]
sent1nel has joined #ruby
aswen has joined #ruby
<mwlang> knut you may need to user a profiler to track that one down.
<havenwood> knut: How about IO::select to monitor until data's ready?: http://www.ruby-doc.org/core-2.2.0/IO.html#method-c-select
martin_work has quit [Ping timeout: 245 seconds]
sent1nel has quit [Remote host closed the connection]
skj3gg has joined #ruby
hasrb has joined #ruby
martin_work has joined #ruby
btcxpert has joined #ruby
athan has joined #ruby
sent1nel has joined #ruby
martinium has joined #ruby
martinium has joined #ruby
terlar has quit [Ping timeout: 240 seconds]
pietr0 has joined #ruby
martinium has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<havenwood> knut: What version of Ruby? Can you reproduce it on 2.2.0/
zachrab has joined #ruby
aswen has quit [Ping timeout: 245 seconds]
<havenwood> (meant trailing slash to be a question mark)
<centrx> !
<havenwood> >> ?!.next
<eval-in_> havenwood => "\"" (https://eval.in/266980)
zenith_ has quit [Ping timeout: 264 seconds]
JDiPierro has joined #ruby
Dude007_ has quit []
wallerdev has quit [Quit: wallerdev]
neoxquick has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
marcoamo1 is now known as marcoamorales
nclbr has quit [Ping timeout: 272 seconds]
Lingo_ has joined #ruby
jherbst has joined #ruby
jherbst has quit [Client Quit]
ferr has joined #ruby
tlarevo has joined #ruby
ghr has joined #ruby
garethrees has quit [Read error: Connection reset by peer]
Ankhers` has quit [Remote host closed the connection]
jottr has joined #ruby
zenith_ has joined #ruby
quimrsto_ has joined #ruby
Lingo_ has quit [Remote host closed the connection]
18VAB3FYB has joined #ruby
crueber has joined #ruby
posixpascal has joined #ruby
kostitas has quit [Ping timeout: 252 seconds]
quimrstorres has quit [Ping timeout: 256 seconds]
zenith_ has quit [Remote host closed the connection]
kaspergrubbe has quit [Ping timeout: 252 seconds]
jmcharnes has quit [Read error: Connection reset by peer]
whoisjake has quit []
Hobogrammer has joined #ruby
quimrsto_ has quit [Ping timeout: 264 seconds]
kaspergrubbe has joined #ruby
reinaldob has quit [Remote host closed the connection]
ki0_ has quit [Remote host closed the connection]
aagdbl has joined #ruby
djbkd has joined #ruby
nanoyak has joined #ruby
msgodf has quit [Remote host closed the connection]
godd2 has joined #ruby
adnauseaum has joined #ruby
roolo has quit [Quit: AAAAaaaaAAAAAAA]
skj3gg has quit [Quit: ZZZzzz…]
<godd2> Would you consider fixing a bug refactoring?
arya_ching has joined #ruby
fabrice31 has joined #ruby
<ddv> only if you also made improvements to existing code
<ddv> which a bugfix actually is
kostitas has joined #ruby
towski_ has joined #ruby
Zai00 has quit [Quit: Zai00]
<godd2> I guess that could boil down more into what an "improvement" is
colli5ion has quit []
dfinninger has quit [Remote host closed the connection]
jherbst has joined #ruby
chthon has quit [Ping timeout: 256 seconds]
arya_ching_ has quit [Ping timeout: 255 seconds]
djbkd has quit [Ping timeout: 264 seconds]
GaryOak_ has joined #ruby
martin_work has quit [Quit: martin_work]
<godd2> Is it possible to simultaneously refactor code and result in worse code?
<godd2> if I havent changed the "external behavior"
<adnauseaum> when people come in here to ask for a good ruby tutorial, what do you guys recommend
<ddv> adnauseaum, using Google
<ddv> usually*
<godd2> adnauseaum are you into reading or watching vids?
<adnauseaum> reading
Takle has joined #ruby
<godd2> what level of ruby are you at? just starting? know a little? intermediate?
<adnauseaum> zero knowledge
<godd2> THen I would recommend Programming Ruby
jherbst has quit [Client Quit]
wallerdev has joined #ruby
<godd2> also known as the Pickaxe book
thumpba has joined #ruby
leonshalimov has quit [Ping timeout: 264 seconds]
deric_skibotn has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
<ddv> godd2, sometimes you have to write 1000 lines of code to know how to throw 900 lines away
kenneth has joined #ruby
roolo has joined #ruby
<godd2> ddv that's fair, and I'd agree.
<godd2> sort of like learning an art. You have to go too far to know where the sweet spot is
jlebrech has quit [Remote host closed the connection]
roolo has quit [Remote host closed the connection]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
roolo has joined #ruby
<godd2> adnauseaum also, not a book, but great for learning Ruby: http://www.codecademy.com/tracks/ruby
momomomomo has quit [Quit: momomomomo]
pdoherty has quit [Remote host closed the connection]
<adnauseaum> i like codecademy
antgel has quit [Ping timeout: 245 seconds]
<adnauseaum> i forgot they had a ruby lesson
<adnauseaum> i did python on there
<godd2> Python and Ruby are similar
wald0 has joined #ruby
fgo has joined #ruby
lolmaus has joined #ruby
kostitas has quit [Quit: Leaving]
oo_ has joined #ruby
skj3gg has joined #ruby
olivier_bK has quit [Ping timeout: 240 seconds]
Takle has quit [Remote host closed the connection]
goodenough has joined #ruby
<havenwood> godd2: It's not just a refactor if you fix a bug. Sometimes code relies on bugs to work. You can refactor your bugs but fixing them is a bug-fix.
roolo has quit [Ping timeout: 264 seconds]
kaspertidemann has joined #ruby
<adnauseaum> is rails easier to use than django? because i couldn't figure out django to save my life
<godd2> havenwood so would you say that a bug is part of "external behavior" and that fixing a bug is disqualified from being a refactoring for that reason?
leafybasil has quit [Remote host closed the connection]
martin_work has joined #ruby
<ddv> adnauseaum, django is always trying to be like rails but fails horribly
<godd2> adnauseaum a framework is usually easy if you're familiar with the underlying language. That said, Rails is probably easier to learn
pontiki_ has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> godd2: Yeah, assuming the bug is behavior, changing it means it's not just a refactor since refactoring preserves behavior.
pontiki has quit [Read error: Connection reset by peer]
oo_ has quit [Ping timeout: 264 seconds]
<ddv> havenwood, refactoring preserves behaviour?
<havenwood> ddv: Yup.
<godd2> ddv in every definition I've seen, yes
<ddv> havenwood, No
fgo has quit [Ping timeout: 265 seconds]
martin_work has left #ruby [#ruby]
plashchynski has quit [Quit: plashchynski]
iamjarvo has joined #ruby
<havenwood> ddv: "behavior preserving transformations"
ta_ has joined #ruby
asmodlol has quit [Ping timeout: 240 seconds]
<godd2> ddv but "behavior" is defined in a way to mean external to the code you're modifying
<ddv> ah okay
Takle has joined #ruby
<godd2> so like if you have a square root function, then "behavior" would be the mapping of any input to some output, and if you change the internals without changing what the function spits out, you've refactored
<havenwood> behavior in the Behavior Driven Development sense
<ddv> yep
<adnauseaum> ruby would be recommended more for web applications that something like python right?
skj3gg has quit [Quit: ZZZzzz…]
<havenwood> adnauseaum: In #ruby, yes.
pontiki_ is now known as pontiki
<adnauseaum> haha
ptrrr has quit [Quit: ptrrr]
<adnauseaum> well in general
<godd2> adnauseaum Ruby is used for lots of things, not just web apps
asmodlol has joined #ruby
<adnauseaum> web apps are my goal
<godd2> as for choosing ruby over python, that's not a decision someone can make for you
<adnauseaum> and i can't figure out django to save my life
<havenwood> adnauseaum: What are you trying to make?
<godd2> Twitter 7.0
Takle has quit [Remote host closed the connection]
<ddv> adnauseaum, django has good docs..
<adnauseaum> i'm a web designer with html/css knowledge and i want to expand into web development
skj3gg has joined #ruby
franzip has joined #ruby
Aova has quit [Read error: Connection reset by peer]
<ddv> adnauseaum, first learn to program...
<havenwood> adnauseaum: Check out Roda (http://roda.jeremyevans.net) for a nice way to make APIs and Volt (http://voltframework.com) for a nifty reactive web framework.
<ddv> adnauseaum, learn a language
<ddv> adnauseaum, then a framework
<godd2> adnauseaum I have a feeling that your trouble learning Django will be similar to trouble you have learning Rails, and that your intuition is correct that you should step back and become reasonably familiar with a language before learning a framework in it
<havenwood> adnauseaum: But yeah, Ruby has a bunch of great stuff for the web. Learn Ruby, it's lovely.
<godd2> (even a year or two's worth of study)
<ddv> adnauseaum, you're doing it all backwards
franzip has quit [Max SendQ exceeded]
GreatSUN has quit [Ping timeout: 246 seconds]
Timgauthier is now known as timgauthier_away
<adnauseaum> ?
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Sakens has joined #ruby
<havenwood> adnauseaum: Learn Ruby then make beautiful apps with Volt. Go forth and code!
plashchynski has joined #ruby
<knut> havenwood: i've tried to use IO#read_nonblock with IO#select instead of IO#readpartial, but turns out to be the same
<godd2> adnauseaum make learning Ruby a priority, and Rails will come with it
djbkd has joined #ruby
<adnauseaum> i did that with python and django doesnt make any sense
<havenwood> godd2: Or you'll learn that what you're doing isn't similar enough to Basecamp for Rails to make sense. Spare yourself the rails!
<havenwood> Or it's perfect, either way.
<havenwood> Depends on what you're doing I think.
18VAB3FYB has quit [Quit: Be back later ...]
<workmad3> havenwood: sames true with any framework... if what you're doing hits its sweet-spot, it's awesome
<workmad3> if it doesn't, you'll feel like you're pulling teeth
<workmad3> if you're really good with a framework, you can make pretty much any problem seem to fit it though...
ta_ has quit [Ping timeout: 265 seconds]
franzip has joined #ruby
<godd2> adnauseaum learn ruby until you feel like rails isn't doing black magic. then you will be ready
<havenwood> workmad3: The moment of "Oh gosh, someone's already solved ALL THE PROBLEMS! \o/" is nice.
<workmad3> especially if you're only good with the framework and nothing outside of it...
dumdedum has quit [Quit: foo]
maximski has quit []
Takle has joined #ruby
* workmad3 still gets people looking askance at him when they say "I want to make a real-time chat app" in #rubyonrails and I say 'Use meteor'
Aova has joined #ruby
jonr22 has joined #ruby
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> Right too for the job.™
moted has joined #ruby
<havenwood> tool*
kirun has joined #ruby
ta_ has joined #ruby
<workmad3> havenwood: yes you are... ;)
<godd2> havenwood but I like using a gun to make a tuna sandwich. stop restricting me!
* havenwood looks askance.
jimms has quit []
<workmad3> godd2: pfft, guns are tame... you can join the big-kid table when you start using high explosives ;)
ursooperduper has quit [Quit: Textual IRC Client: www.textualapp.com]
maletor has joined #ruby
kenneth has joined #ruby
bthesorceror has joined #ruby
agjacome_ has joined #ruby
<havenwood> knut: hem, how odd..
dfinninger has joined #ruby
codeurge has joined #ruby
ta_ has quit [Ping timeout: 246 seconds]
<knut> the problem is not writing or reading from buffer, because when there is data it is super fast.. but for the data to reach the buffer it takes quiet some time
skj3gg has quit [Quit: ZZZzzz…]
<knut> even so on the oscilloscope all the communication is done within 50ms
skj3gg has joined #ruby
jonr22 has quit [Ping timeout: 272 seconds]
EvanFree_ has quit [Remote host closed the connection]
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
agjacome has quit [Ping timeout: 255 seconds]
bthesorceror has quit [Client Quit]
Takle has quit [Remote host closed the connection]
codeurge has quit [Client Quit]
kenneth has quit [Client Quit]
Takle has joined #ruby
pdoherty has joined #ruby
failshell has quit []
codeurge has joined #ruby
codeurge has quit [Client Quit]
codeurge has joined #ruby
tylersmith has joined #ruby
max96at|off is now known as max96at
kaspertidemann has quit []
brb3 has joined #ruby
_honning_ has joined #ruby
chrishough has joined #ruby
reset has joined #ruby
kenneth has joined #ruby
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Takle has quit [Remote host closed the connection]
franzip has quit [Quit: ...]
tier has joined #ruby
<arup_r> workmad3: I found you out :) http://stackoverflow.com/users/16035/workmad3
martin_work has joined #ruby
<workmad3> arup_r: it's not like I hide that :P
razieliyo_ has joined #ruby
splud has joined #ruby
oddover has left #ruby [#ruby]
ta_ has joined #ruby
leonshalimov has joined #ruby
<arup_r> humm :)
<workmad3> arup_r: heh :) I just answered that one from a link in #rubyonrails ;)
rdark has quit [Remote host closed the connection]
plashchynski has quit [Quit: plashchynski]
<arup_r> ohh
<arup_r> I am also on the same page
<arup_r> :)
plashchynski has joined #ruby
jonmorehouse has joined #ruby
<workmad3> hmm... not gotten as much rep as normal over the last week
OrbitalKitten has joined #ruby
plashchynski has quit [Client Quit]
Pharaoh2 has joined #ruby
razieliyo has quit [Ping timeout: 265 seconds]
dmst has quit [Quit: Connection closed for inactivity]
Pharaoh2 has quit [Max SendQ exceeded]
<arup_r> me too
codeurge has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
Pharaoh2 has joined #ruby
<workmad3> arup_r: where's your profile link then? :P
tobago has quit [Remote host closed the connection]
leafybasil has joined #ruby
<workmad3> heh :) you spend too much time on SO ;)
ramfjord has joined #ruby
<wallerdev> do you get anything for rep
Pharaoh2 has quit [Max SendQ exceeded]
towncrierr has joined #ruby
towncrierr has quit [Remote host closed the connection]
<wallerdev> like turn in rep for a t shirt or something
<workmad3> wallerdev: a feeling of pride?
<workmad3> wallerdev: also, moderator abilities
<arup_r> lol... nothing
Pharaoh2 has joined #ruby
beef-wellington has quit [Ping timeout: 245 seconds]
openscript has joined #ruby
towncrierr has joined #ruby
GreatSUN has joined #ruby
<workmad3> arup_r: am I allowed to feel smug that my best answer has over 200 upvotes? ;)
<GreatSUN> re
hasrb has quit [Remote host closed the connection]
rvchangue has quit [Ping timeout: 246 seconds]
beef-wellington has joined #ruby
<arup_r> I know you are best! :) Congo for that,.....
plashchynski has joined #ruby
<workmad3> arup_r: I'm just trying to make myself feel better after seeing your 50k+ rep :P
djbkd has quit [Remote host closed the connection]
whoisjake has joined #ruby
symbol_ has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
<arup_r> workmad3: Those are only Ruby.. no varieties ..
Pupeno_ has joined #ruby
<arup_r> :(
<workmad3> arup_r: most of mine are C or C++
ellisTAA has joined #ruby
<workmad3> arup_r: at least you're still using the stuff you've got answers about :P
<arup_r> cool..
<arup_r> means ?
<workmad3> arup_r: I don't do any C or C++ anymore
werelivinginthef has quit [Remote host closed the connection]
btcxpert has quit [Quit: btcxpert]
_yinzer has joined #ruby
shime has quit [Read error: Connection reset by peer]
shime has joined #ruby
maximski has joined #ruby
Pupeno has quit [Ping timeout: 272 seconds]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
toretore has quit [Quit: Leaving]
Takle has joined #ruby
ta_ has joined #ruby
<arup_r> ok ok
nanoyak has joined #ruby
djbkd has joined #ruby
btcxpert has joined #ruby
werelivinginthef has joined #ruby
giuseppesolinas has joined #ruby
Takle has quit [Remote host closed the connection]
<arup_r> workmad3: Too bad I'm in Rails
<arup_r> :(
<workmad3> arup_r: why's that bad?
<wallerdev> i have 171 rep
Sakens has quit [Ping timeout: 256 seconds]
The_Phoenix1 has quit [Read error: Connection reset by peer]
<wallerdev> i am amazing
djbkd has quit [Remote host closed the connection]
elaptics is now known as elaptics`away
blackmesa has joined #ruby
Pharaoh2 has quit [Ping timeout: 244 seconds]
skj3gg has quit [Quit: ZZZzzz…]
<arup_r> wallerdev: Didn't get a chance to work on it much Soooo :(
<arup_r> Really I am poor
bronson has joined #ruby
freerobby has quit [Quit: Leaving.]
<arup_r> I never got such log file :) http://stackoverflow.com/questions/28200143/my-application-is-in-ruby-on-rails-i-see-some-logs-traces-for-ali-hack-can-so workmad3: or wallerdev: may give it a try.. I'v less experience
centrx has quit [Quit: Science is organized knowledge, wisdom is organized life.]
freerobby has joined #ruby
gr33n7007h has quit [Remote host closed the connection]
Pharaoh2 has joined #ruby
gr33n7007h has joined #ruby
<avril14th> what would be the regex to match the last two words of a string?
fryguy91 has quit [Quit: Leaving.]
<wallerdev> looks like it's just one of those scripts that crawls the net and tries to submit common exploits
pu22l3r has joined #ruby
<wallerdev> doesnt look like an issue with your site at all
withnale_ has quit [Ping timeout: 244 seconds]
n008f4g_ has joined #ruby
chipotle has quit [Quit: cheerio]
ta_ has quit [Ping timeout: 276 seconds]
blackmes1 has joined #ruby
<wallerdev> /(\w+)\s+(\w+)$/
<wallerdev> depends on the kind of strings you have though
<wallerdev> like if you're using foreign letters or punctuation things get a bit more complicated
<avril14th> thx wallerdev
<arup_r> wallerdev: Can I pm you ?
<wallerdev> if you want
<wallerdev> haha
Soda has joined #ruby
quimrstorres has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 272 seconds]
gr33n7007h has quit [Remote host closed the connection]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
gr33n7007h has joined #ruby
djbkd has joined #ruby
giuseppesolinas has joined #ruby
ta_ has joined #ruby
giuseppesolinas has left #ruby [#ruby]
m8 has joined #ruby
cantonic has quit [Quit: cantonic]
whoisjake has quit [Remote host closed the connection]
fgo has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
quimrstorres has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 264 seconds]
jmcharnes has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
fgo has quit [Ping timeout: 264 seconds]
dfinninger has quit [Remote host closed the connection]
chipotle has joined #ruby
dfinninger has joined #ruby
momomomomo has joined #ruby
reinaldob has joined #ruby
Aova has quit [Read error: Connection reset by peer]
duncannz has joined #ruby
skj3gg has joined #ruby
einarj has joined #ruby
cjim has joined #ruby
ta_ has quit [Ping timeout: 272 seconds]
bthesorceror has joined #ruby
skj3gg has quit [Client Quit]
beef-wellington has quit [Ping timeout: 252 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
Megtastique has quit []
rvchangue has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
gr33n7007h has quit [Remote host closed the connection]
gr33n7007h has joined #ruby
zB0hs has joined #ruby
reinaldob has quit [Ping timeout: 246 seconds]
tier_ has joined #ruby
_honning_ has quit [Ping timeout: 244 seconds]
einarj has quit [Ping timeout: 246 seconds]
brb3 has quit [Quit: ZZZzzz…]
Shidash has quit [Remote host closed the connection]
tier has quit [Ping timeout: 265 seconds]
Aova has joined #ruby
rsavage has joined #ruby
<rsavage> quick question
<rsavage> can you have multiple elsif 's? in an if statement?
<wallerdev> yup
<rsavage> ok thanks
antgel has joined #ruby
mbeasley has quit [Ping timeout: 246 seconds]
x77686d has quit [Quit: x77686d]
tier has joined #ruby
Megtastique has joined #ruby
yfeldblum has joined #ruby
freerobby has quit [Quit: Leaving.]
kstuart_ has quit [Ping timeout: 265 seconds]
tier_ has quit [Ping timeout: 256 seconds]
kstuart_ has joined #ruby
skj3gg has joined #ruby
kobain has quit [Ping timeout: 255 seconds]
brb3 has joined #ruby
m8 has quit [Quit: Sto andando via]
m8 has joined #ruby
chrishough has quit [Ping timeout: 246 seconds]
plashchynski has quit [Quit: plashchynski]
chrishough has joined #ruby
nanoyak has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
plashchynski has joined #ruby
triple_b_ has joined #ruby
ferr has quit [Remote host closed the connection]
beef-wellington has joined #ruby
nb_bez___ has quit [Quit: Connection closed for inactivity]
triple_b has quit [Ping timeout: 264 seconds]
<ellisTAA> i have to search a hash for a non-identical given value( e.g. i’m given “fi” and if something like “fight” is in the hash i should return the key and value), so in order to do this i’m trying to convert hash to a string so that i can search it for a regex. this is the best way that i can think of. any thoughts on this? am i wrong, right?
<apeiros_> ellisTAA: use Enumerable#find
<ellisTAA> so hash.find?
<apeiros_> yes
craigp has quit [Remote host closed the connection]
<apeiros_> >> {key: "fight"}.find { |k,v| v =~ /\Afi/ }
<eval-in_> apeiros_ => [:key, "fight"] (https://eval.in/267227)
m8 has quit [Quit: Sto andando via]
<ellisTAA> sweet … let me try that
EvanFreeman has joined #ruby
momomomomo_ has joined #ruby
momomomomo has quit [Ping timeout: 276 seconds]
momomomomo_ is now known as momomomomo
go|dfish has quit [Quit: SIGQUIT]
craigp has joined #ruby
tier has quit [Read error: Connection reset by peer]
_honning_ has joined #ruby
slester has quit [Remote host closed the connection]
blizzy has joined #ruby
tier has joined #ruby
kobain has joined #ruby
senayar has joined #ruby
athan has quit [Read error: Connection reset by peer]
C1V0 has joined #ruby
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
fabrice31 has joined #ruby
jenrzzz has joined #ruby
rfi_ has quit [Read error: Connection reset by peer]
kobain has quit [Max SendQ exceeded]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
kobain has joined #ruby
wallerdev has quit [Quit: wallerdev]
craigp has quit [Ping timeout: 256 seconds]
wallerdev has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kobain has quit [Max SendQ exceeded]
<ellisTAA> apeiros_: thanks, that worked
kobain has joined #ruby
go|dfish has joined #ruby
wald0_ has joined #ruby
jespada has quit [Quit: Leaving]
<apeiros_> yw
Pharaoh2 has joined #ruby
davedev24_ has quit [Ping timeout: 264 seconds]
<ddv> apeiros_: what editor do you use?
<apeiros_> sublime
<ddv> ah ok
bronson has joined #ruby
gsd has joined #ruby
freerobby has joined #ruby
fabrice31 has quit [Ping timeout: 244 seconds]
tyfighter has quit [Quit: tyfighter]
<electrical> Hi all. the to_yaml function seems to have changed between ruby 2.0 and 2.1 causing a weird issue.. where it initially generated ":datadir: /var/lib/hiera\n" it does now ":datadir: \"/var/lib/hiera\"\n" for a part of the yaml string. Any idea's how i can solve / change it?
davedev24_ has joined #ruby
danjordan has joined #ruby
Pupeno has joined #ruby
Pupeno has joined #ruby
triple_b_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros_> electrical: way. too. vague.
bthesorceror has quit [Quit: bthesorceror]
<ellisTAA> i have a method find that takes an argument (something) and i have some code that searches a hash for the argument (something) using a regex … but for some reason the regex doesn’t regard the argument (something) an argument but a string …. why?
craigp has joined #ruby
triple_b has joined #ruby
<apeiros_> electrical: I mean I can give an equally unspecific answer, but I doubt that'll make you happy.
adamjleonard has joined #ruby
tyfighter has joined #ruby
<electrical> apeiros_: sorry. let me try to be more specific :-) creating a gist now
Pupeno_ has quit [Ping timeout: 265 seconds]
jottr has joined #ruby
wald0 has quit [Quit: Lost terminal]
<apeiros_> ellisTAA: gist, along with example in-/output + expected output (output probably == return value in this case)
shime has quit [Read error: Connection reset by peer]
tvw has quit []
randiman has quit [Quit: (null)]
zwer_b has joined #ruby
shime has joined #ruby
<ellisTAA> k. how do i highlight lines in a gist?
<electrical> apeiros_: https://gist.github.com/electrical/0d8b3b0edd797a197669 <-- function and different output depending on the ruby version
rbrs has quit [Quit: rbrs]
<electrical> the issue here is that the value of the datadir key gets quotes around it and escaped. this is something i didn't expect
shredding has joined #ruby
claw__ has joined #ruby
claw_ has quit [Ping timeout: 255 seconds]
<apeiros_> ellisTAA: if it's that much code, then you should reduce it before gisting
zwer has quit [Ping timeout: 250 seconds]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rodfersou has quit [Quit: leaving]
towncrierr has quit [Remote host closed the connection]
towncrierr has joined #ruby
jontmorehouse has joined #ruby
<apeiros_> electrical: looks equivalent to me
<apeiros_> there are multiple ways to represent strings in yaml
momomomomo has quit [Quit: momomomomo]
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros_> electrical: or do they deserialize to different values for you?
cjim has quit [Quit: (null)]
<electrical> apeiros_: yeah.. my issue is that it broke testing as i evaluate the generated yaml vs expected yaml string
matrixise has quit [Quit: Lost terminal]
<electrical> and i didn't expected the quoting and escaping
shazaum has quit [Quit: Leaving]
ta_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
werelivinginthef has quit [Remote host closed the connection]
aagdbl has quit [Quit: This computer has gone to sleep]
<apeiros_> electrical: ah well, I doubt there's a way to use the old way of quoting
momomomomo has joined #ruby
chrishough has joined #ruby
<apeiros_> and since it's technically correct, there's not much reason to either
cjim has joined #ruby
Pupeno_ has joined #ruby
<electrical> i understand. wonder how to solve it testing wise.
sambao21 has joined #ruby
pierre1_ has joined #ruby
<electrical> especially since we test against different ruby versions
jonmorehouse has quit [Ping timeout: 264 seconds]
<ellisTAA> apeiros_: https://gist.github.com/ellisTAA/0a8c4da823b3851e7685 how can i get the regex to look for the method argument (something)?
cphrmky has quit [Read error: Connection reset by peer]
<apeiros_> electrical: generate files for both versions and check whether it's equal to either
<apeiros_> or serialize/deserialize and test against deserialized
skj3gg has quit [Quit: ZZZzzz…]
<electrical> hmm good one. thanks!
Pupeno has quit [Ping timeout: 265 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thatslifeson has joined #ruby
<apeiros_> or the first one, but with the file being chosen based on RUBY_VERSION
senayar_ has joined #ruby
freerobby has quit [Quit: Leaving.]
<ellisTAA> do i have to use interpolation?
<ellisTAA> yes! it kinda works
skj3gg has joined #ruby
<apeiros_> yes, /something/ searches for litterally something. it does not know or care for a variable called `something`
graft has joined #ruby
asmodlol has quit [Ping timeout: 246 seconds]
senayar has quit [Ping timeout: 265 seconds]
<graft> hey, what the heck is __FILE__? like, how does it work?
aswen has joined #ruby
<apeiros_> it'd be rather unpleasant otherwise
livathinos has joined #ruby
<graft> it's not a constant
<apeiros_> graft: the same way keywords work, or string literals.
<ellisTAA> so i used interpolation. but now i need to turn the array into a hash. i thought i could use .named_captures but that doesn’t work on arrays i think …http://www.ruby-doc.org/core-1.9.3/Regexp.html#method-i-named_captures
nanoyak has quit [Quit: Computer has gone to sleep.]
fgo has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
<apeiros_> ellisTAA: eh, I think you completely misunderstand .named_captures
<graft> apeiros_: well where does it live? is it a keyword?
mbeasley has joined #ruby
<eam> graft: it's a variable
<apeiros_> graft: it lives in the interpreter
<apeiros_> it's not really a variable
<apeiros_> you can't assign to it
martin_work has quit [Quit: martin_work]
jonr22 has joined #ruby
<ellisTAA> apeiros_: it only applies to regex searches right?
<graft> and it has file-level scope, which is unlike any other variable i've heard of
<apeiros_> graft: consider it a magical string literal. like __LINE__ is a magical integer literal.
<eam> oh, is it special cased in the parser?
mbeasley has quit [Client Quit]
<apeiros_> I'd expect that to be the implementation, yes
<eam> apeiros_: arguably is a variable that one can't assign to :)
momomomomo has quit [Ping timeout: 264 seconds]
momomomomo_ has joined #ruby
<apeiros_> arguably is a string literal which looks a bit odd because it doesn't have quotes :-p
senayar_ has quit [Remote host closed the connection]
<eam> hah
asmodlol has joined #ruby
codeurge has joined #ruby
<eam> well, it's runtime-settable
<eam> just not via assignment
pierre1__ has joined #ruby
wallerdev has quit [Quit: wallerdev]
<graft> it's not run-time settable, since it differs for every file you require
<apeiros_> it's not a method either, as you can't shadow it
<apeiros_> >> defined? __FILE__
<eval-in_> apeiros_ => "expression" (https://eval.in/267259)
<apeiros_> >> defined? "hellau"
<eval-in_> apeiros_ => "expression" (https://eval.in/267260)
<apeiros_> >> defined? require
<eval-in_> apeiros_ => "method" (https://eval.in/267261)
<apeiros_> >> x = 1; defined? x
<eval-in_> apeiros_ => "local-variable" (https://eval.in/267262)
<apeiros_> and leading _ would be local variable
fgo has quit [Ping timeout: 252 seconds]
skj3gg has quit [Quit: ZZZzzz…]
mbeasley has joined #ruby
whoisjake has joined #ruby
pierre1_ has quit [Ping timeout: 265 seconds]
mbeasley has quit [Client Quit]
whoisjake has quit [Client Quit]
ozzloy has quit [Quit: leaving]
ldnunes has quit [Quit: Leaving]
skj3gg has joined #ruby
jonr22 has quit [Ping timeout: 246 seconds]
mbeasley has joined #ruby
mbeasley has quit [Client Quit]
yfeldblum has joined #ruby
mbeasley has joined #ruby
mbeasley has quit [Client Quit]
yfeldblum has quit [Remote host closed the connection]
Aova has quit [Read error: Connection reset by peer]
shredding has quit [Quit: shredding]
yfeldblum has joined #ruby
mbeasley has joined #ruby
btcxpert has quit [Quit: btcxpert]
ozzloy has joined #ruby
ozzloy has quit [Changing host]
ozzloy has joined #ruby
Lexun has quit []
bwayne3 has joined #ruby
asmodlol has quit [Ping timeout: 255 seconds]
_honning_ has quit [Read error: Connection reset by peer]
nuck has joined #ruby
asmodlol has joined #ruby
requo has joined #ruby
ta_ has quit [Ping timeout: 244 seconds]
Aova has joined #ruby
OrbitalKitten has joined #ruby
Pupeno_ has quit [Quit: Leaving...]
Pupeno has joined #ruby
Pupeno has joined #ruby
quimrstorres has joined #ruby
requo has left #ruby [#ruby]
athan has joined #ruby
tyfighter has quit [Quit: tyfighter]
asmodlol has quit [Ping timeout: 240 seconds]
asmodlol has joined #ruby
fryguy9 has joined #ruby
zenith_ has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
<d10n-work> Is there a nice way to do something like Net::HTTP[method.to_sym].new where if method is 'GET' it would evaluate to Net::HTTP::Get.new
athan has quit [Ping timeout: 245 seconds]
kenneth has joined #ruby
<crome> Object.const_get("Net::HTTP::#{method}")
<crome> is it what you are looking for?
quimrstorres has quit [Remote host closed the connection]
timanema_ has joined #ruby
<apeiros_> crome: const_get + public_send
<apeiros_> oh, well, actually ^ @ d10n-work
cphrmky has joined #ruby
<apeiros_> plerp, should have read all before responding
gccostabr has quit [Quit: ZZZzzz…]
timanema has quit [Ping timeout: 245 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
oleo is now known as Guest78719
oleo__ has joined #ruby
sambao21 has joined #ruby
kenneth has quit [Client Quit]
havenwood has quit []
Jackneill has quit [Read error: Connection reset by peer]
_honning_ has joined #ruby
Guest78719 has quit [Ping timeout: 245 seconds]
zenith_ has quit [Ping timeout: 244 seconds]
zachrab has quit [Remote host closed the connection]
blackmes1 has joined #ruby
metadave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gtrak has joined #ruby
whoisjake has joined #ruby
ellisTAA has left #ruby [#ruby]
whoisjake has quit [Remote host closed the connection]
notbrent has joined #ruby
JDiPierro has quit [Remote host closed the connection]
livathinos has quit []
ekem_`d is now known as ekem_`d`_meke
shime has quit [Read error: Connection reset by peer]
thiagovsk has quit [Quit: Connection closed for inactivity]
shime has joined #ruby
zenith_ has joined #ruby
bwayne3 has quit [Quit: WeeChat 1.1]
skj3gg has quit [Quit: ZZZzzz…]
OrbitalKitten has quit [Read error: Connection reset by peer]
OrbitalKitten has joined #ruby
GreatSUN has quit [Quit: Page closed]
OrbitalKitten has quit [Read error: Connection reset by peer]
OrbitalKitten has joined #ruby
GreatSUN has joined #ruby
arup_r has quit [Quit: Leaving.]
FooMunki_ has quit [Quit: FooMunki_]
quimrstorres has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
BurningChrome_ has quit [Ping timeout: 264 seconds]
yalue has quit [Quit: return 0;]
frem has joined #ruby
maletor has joined #ruby
wldcordeiro_ has quit [Remote host closed the connection]
quimrstorres has quit [Remote host closed the connection]
kenneth has joined #ruby
ekem_`d`_meke is now known as ekem_`d`_mekekem
Pharaoh2 has quit [Ping timeout: 245 seconds]
bootstrappm has joined #ruby
Pharaoh2 has joined #ruby
rsavage has quit [Quit: Konversation terminated!]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bronson has quit [Remote host closed the connection]
skj3gg has joined #ruby
Pharaoh2_ has joined #ruby
razieliyo__ has joined #ruby
skj3gg has quit [Client Quit]
martin_work has joined #ruby
skj3gg has joined #ruby
atomical has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
waynerade has joined #ruby
ta_ has joined #ruby
Hijiri has joined #ruby
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Pupeno_ has joined #ruby
Pharaoh2 has quit [Ping timeout: 240 seconds]
BurningChrome_ has joined #ruby
antgel has quit [Quit: Lost terminal]
razieliyo_ has quit [Read error: Connection reset by peer]
Pupeno has quit [Ping timeout: 256 seconds]
postmodern has joined #ruby
asmodlol has quit [Ping timeout: 256 seconds]
sent1nel has quit [Read error: Connection reset by peer]
tonyhb has joined #ruby
konsolebox has joined #ruby
sent1nel has joined #ruby
kamilc__ has quit [Quit: Linkinus - http://linkinus.com]
asmodlol has joined #ruby
waynerade has quit [Quit: WeeChat 1.1]
ta_ has quit [Ping timeout: 276 seconds]
waynerade has joined #ruby
ixti has quit [Read error: Connection reset by peer]
arya_ching has quit [Ping timeout: 244 seconds]
ixti has joined #ruby
waynerade has joined #ruby
quazimodo has quit [Ping timeout: 265 seconds]
naftilos76 has joined #ruby
senayar has joined #ruby
waynerade has quit [Client Quit]
workmad3 has joined #ruby
funburn has quit [Ping timeout: 256 seconds]
decoponio has quit [Quit: Leaving...]
Pupeno_ has quit [Ping timeout: 255 seconds]
waynerade has joined #ruby
haasn has quit [Excess Flood]
<d10n-work> thanks crome
Pupeno_ has joined #ruby
jmdade has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tyfighter has joined #ruby
AlHafoudh has quit [Ping timeout: 256 seconds]
pietr0_ has joined #ruby
pietr0 has quit [Ping timeout: 255 seconds]
pietr0_ is now known as pietr0
BuGo has quit [Ping timeout: 256 seconds]
mengu has quit [Remote host closed the connection]
lucasSantAnna has joined #ruby
wasamasa has quit [Ping timeout: 246 seconds]
St_Marx has quit [Ping timeout: 250 seconds]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pietr0 has quit [Remote host closed the connection]
<lucasSantAnna> has someone here that is using microservice concepts?
<lucasSantAnna> ow are you guys doing to orchestrate the services ?
Nahra``` has quit [Read error: Connection reset by peer]
WhereIsMySpoon_ has quit [Ping timeout: 272 seconds]
AlHafoudh has joined #ruby
leonshalimov has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 256 seconds]
parus_ has quit [Ping timeout: 252 seconds]
athan has joined #ruby
momomomomo_ has quit [Quit: momomomomo_]
{xenomorph} has quit [Ping timeout: 276 seconds]
wasamasa has joined #ruby
wald0_ has quit [Quit: Lost terminal]
DrCode has quit [Ping timeout: 250 seconds]
wasamasa has quit [Changing host]
wasamasa has joined #ruby
parus has joined #ruby
SHyx0rmZ has quit [Ping timeout: 272 seconds]
fgo has joined #ruby
x77686d has joined #ruby
soahccc has quit [Ping timeout: 256 seconds]
BuGo has joined #ruby
WhereIsMySpoon has joined #ruby
St_Marx has joined #ruby
{xenomorph} has joined #ruby
konsolebox has quit [Ping timeout: 265 seconds]
soahccc has joined #ruby
acangiano has joined #ruby
wallerdev has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
skj3gg has joined #ruby
djbkd_ has joined #ruby
jmdade has joined #ruby
notbrent has quit [Ping timeout: 240 seconds]
suy has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
athan has quit [Quit: No Ping reply in 180 seconds.]
fgo has quit [Ping timeout: 245 seconds]
tyfighter has quit [Ping timeout: 264 seconds]
Xiti has quit [Quit: Xiti]
Xiti has joined #ruby
ptrrr has joined #ruby
skj3gg has quit [Client Quit]
athan has joined #ruby
Aova has quit [Read error: Connection reset by peer]
spyderma_ has joined #ruby
tyfighter has joined #ruby
nanoyak has joined #ruby
djbkd has quit [Remote host closed the connection]
spyderman4g63 has quit [Ping timeout: 245 seconds]
spyderman4g63 has joined #ruby
djbkd_ has quit [Ping timeout: 252 seconds]
deol has joined #ruby
jamto11 has joined #ruby
Rollabunna has joined #ruby
skj3gg has joined #ruby
spyderma_ has quit [Ping timeout: 244 seconds]
spyderman4g63 has quit [Client Quit]
martin_work has left #ruby [#ruby]
Aova has joined #ruby
workmad3 has joined #ruby
rkornmeyer has quit [Remote host closed the connection]
rkornmeyer has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
DrCode has joined #ruby
ki0 has joined #ruby
leonshalimov has joined #ruby
triple_b has joined #ruby
bluOxigen has quit [Ping timeout: 264 seconds]
banister has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bklane has joined #ruby
<mwlang> ugh…subversion…does anyone remember how to restore a locally modified file to last commit’s version? I’ve been doing git for too long!
potyi has joined #ruby
PrimeCl0ver has joined #ruby
jontmorehouse has quit [Ping timeout: 255 seconds]
russt has quit [Quit: russt]
<tobiasvl> mwlang: svn revert ?
<crome> isn't it revert
<crome> (it's been ages, though)
Synthead has joined #ruby
<mwlang> that’s what I thought, but I got an error…looking it up in the docs now.
workmad3 has quit [Ping timeout: 256 seconds]
jontmorehouse has joined #ruby
pdoherty has quit [Remote host closed the connection]
adamjleonard has quit [Ping timeout: 265 seconds]
leonshalimov has quit [Ping timeout: 246 seconds]
Notte has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adnauseaum> wow, ruby is a really easy language
pdoherty has joined #ruby
sudog_ has quit [Ping timeout: 272 seconds]
<ddv> adnauseaum: easy to learn, hard to master
<mwlang> weird, svn revert worked 2nd time I tried it…must’ve typo’d.
blackmes1 has quit [Ping timeout: 245 seconds]
SixiS has quit [Quit: SixiS]
kenneth has joined #ruby
<mwlang> ddv: +1
<adnauseaum> as is anything in life
metrix has quit [Quit: ChatZilla 0.9.91.1 [Firefox 35.0/20150108202552]]
<ddv> well it especially holds true for ruby
thumpba_ has joined #ruby
chinmay_dd has quit [Quit: Connection closed for inactivity]
funburn has joined #ruby
ellisTAA has joined #ruby
Takle has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 1.1.1]
suy has joined #ruby
michael_mbp has quit [Excess Flood]
thumpba has quit [Ping timeout: 244 seconds]
elaptics`away is now known as elaptics
skj3gg has quit [Quit: welp, see you later.]
fabrice31 has joined #ruby
thumpba_ has quit [Read error: Connection reset by peer]
Mon_Ouie has joined #ruby
craigp has quit [Remote host closed the connection]
thumpba has joined #ruby
michael_mbp has joined #ruby
haasn has joined #ruby
pierre1__ has quit [Quit: Leaving]
Takle has quit [Remote host closed the connection]
thumpba_ has joined #ruby
pierre1_ has joined #ruby
Takle has joined #ruby
atomical has joined #ruby
zachrab has joined #ruby
timmmaaaayyy has joined #ruby
metadave has joined #ruby
ghostlines has joined #ruby
workmad3 has joined #ruby
Aova has quit [Ping timeout: 245 seconds]
senayar has quit [Remote host closed the connection]
ghostlines has quit [Max SendQ exceeded]
konsolebox has joined #ruby
craigp has joined #ruby
fabrice31 has quit [Ping timeout: 255 seconds]
ghostlines has joined #ruby
thumpba has quit [Ping timeout: 246 seconds]
agjacome_ has quit [Quit: leaving]
ghostlines has quit [Max SendQ exceeded]
senayar_ has joined #ruby
Aova has joined #ruby
potyi has quit [Quit: WeeChat 1.0]
ghostlines has joined #ruby
zachrab has quit [Ping timeout: 240 seconds]
cphrmky has left #ruby ["Textual IRC Client: www.textualapp.com"]
metadave_ has joined #ruby
ghostlines has quit [Client Quit]
metadave has quit [Read error: Connection reset by peer]
byprdct has joined #ruby
senayar_ has quit [Remote host closed the connection]
zachrab has joined #ruby
momomomomo has joined #ruby
eck has joined #ruby
eck has left #ruby [#ruby]
naftilos76 has quit [Remote host closed the connection]
lele has quit [Excess Flood]
suy has quit [Remote host closed the connection]
djbkd has joined #ruby
Hijiri has quit [Ping timeout: 265 seconds]
elaptics is now known as elaptics`away
agjacome has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
zenith_ has quit [Ping timeout: 246 seconds]
senayar has joined #ruby
athan has quit [Quit: No Ping reply in 180 seconds.]
djbkd has quit [Ping timeout: 256 seconds]
Notte has quit []
suy has joined #ruby
athan has joined #ruby
roshanavand has quit [Ping timeout: 265 seconds]
asmodlol has quit [Ping timeout: 255 seconds]
Hijiri has joined #ruby
funburn has quit [Quit: funburn]
lukeholder has joined #ruby
asmodlol has joined #ruby
timanema_ has quit [Ping timeout: 264 seconds]
centrx has joined #ruby
aclearma_ has quit [Quit: I'm out!]
senayar has quit [Ping timeout: 256 seconds]
tyfighter has quit [Ping timeout: 265 seconds]
ddv_ has joined #ruby
bddh` has quit [Remote host closed the connection]
agjacome has quit [Quit: leaving]
jonr22 has joined #ruby
Curs0r has joined #ruby
nuck has quit [Quit: Computer has gone to sleep.]
Megtastique has quit []
BurningChrome_ has quit [Ping timeout: 272 seconds]
<Curs0r> Hello all. I have pretty much no ruby experience, I'm just relaying a question for a friend. Is there a simple way to convert a Latin1 character to octal in a string? Such as: replacing é with \351?
gr33n7007h has quit [Remote host closed the connection]
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
paulfm has quit [Quit: Zzzzz...]
dspangenberg has quit [Ping timeout: 265 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
testcore has quit [Ping timeout: 250 seconds]
asmodlol has quit [Ping timeout: 244 seconds]
gr33n7007h has joined #ruby
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros_> Curs0r: .chr.to_s(8)
nanoyak has quit [Quit: Computer has gone to sleep.]
<Curs0r> thank you :)
<wallerdev> octal
nuck has joined #ruby
<wallerdev> why would someone want octal
codecop has quit [Remote host closed the connection]
<apeiros_> wallerdev: never understood that either
mikecmpbll has joined #ruby
jonr22 has quit [Ping timeout: 265 seconds]
<GaryOak_> unicode man, to the rescue
asmodlol has joined #ruby
<Curs0r> because postscript is being a pain about Latin1 special characters in a bash script apparently, and seems to work if they're octal escaped
nanoyak has joined #ruby
ych4k3r has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
testcore has joined #ruby
Rayford has joined #ruby
brb3 has quit [Quit: <.<]
da3m0n22 has joined #ruby
BurningChrome_ has joined #ruby
ta_ has joined #ruby
apeiros_ has quit [Remote host closed the connection]
uri_ has joined #ruby
<da3m0n22> hey guys, something strange, gem list rake shows "rake (10.4.2, 10.1.0, 0.9.2.2)", however bundle exec rake install show "Could not find rake-0.9.2.2 in any of the sources"
lele has joined #ruby
apeiros_ has joined #ruby
senayar has joined #ruby
DrCode has quit [Ping timeout: 250 seconds]
bronson has joined #ruby
athan has quit [Quit: No Ping reply in 180 seconds.]
<Rayford> different manager?
<Rayford> rvm vs something else?
<da3m0n22> not using rvm, rbenv or chruby
BurningChrome has joined #ruby
echevemaster has joined #ruby
<Rayford> have you tried to uninstall?
aboudreault has quit [Excess Flood]
fgo has joined #ruby
<da3m0n22> will try, second please
pwh has quit []
ta_ has quit [Ping timeout: 255 seconds]
bronson has quit [Ping timeout: 240 seconds]
aboudreault has joined #ruby
aboudreault has quit [Changing host]
aboudreault has joined #ruby
BurningChrome_ has quit [Ping timeout: 264 seconds]
<da3m0n22> not working, 'bundle install' complains about drapper, which is in repositories too
asmodlol has quit [Ping timeout: 246 seconds]
djbkd has joined #ruby
<da3m0n22> i've tried putting .gem file of drapper (correct version) into ruby gem cache, but it's not looking into the directory probably
athan has joined #ruby
Rayford has quit [Quit: Rayford]
havenwood has joined #ruby
fgo has quit [Ping timeout: 244 seconds]
Aova has quit [Read error: Connection reset by peer]
asmodlol has joined #ruby
C1V0 has quit []
tier has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 240 seconds]
Sakens has joined #ruby
sudog has joined #ruby
longfeet has joined #ruby
iceden has quit [Read error: Connection reset by peer]
Aova has joined #ruby
iceden has joined #ruby
leonshalimov has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
athan has quit [Quit: No Ping reply in 180 seconds.]
spider-mario has quit [Remote host closed the connection]
kirun has quit [Quit: Client exiting]
DrCode has joined #ruby
athan has joined #ruby
vaneda has joined #ruby
konsolebox has quit [Ping timeout: 244 seconds]
DadoCe has joined #ruby
iamjarvo has joined #ruby
neoxquick has quit [Ping timeout: 245 seconds]
kstuart_ has quit [Ping timeout: 265 seconds]
Sakens has quit [Ping timeout: 255 seconds]
beef-wellington has quit [Ping timeout: 255 seconds]
kstuart_ has joined #ruby
hmsimha has joined #ruby
dspangenberg has joined #ruby
djbkd has joined #ruby
wallerdev has quit [Quit: wallerdev]
BurningChrome_ has joined #ruby
Aova has quit [Read error: Connection reset by peer]
stunder has joined #ruby
BurningChrome has quit [Ping timeout: 246 seconds]
orionstein has quit [Quit: ZNC - http://znc.in]
jmcharnes has quit [Quit: Textual IRC Client: www.textualapp.com]
shime has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
orionstein has joined #ruby
max96at is now known as max96at|off
zachrab has quit [Remote host closed the connection]
gr33n7007h has quit [Remote host closed the connection]
orionstein has quit [Remote host closed the connection]
BurningChrome_ has quit [Ping timeout: 256 seconds]
nik_-_ has joined #ruby
orionstein has joined #ruby
gr33n7007h has joined #ruby
FooMunki has joined #ruby
sambao21 has joined #ruby
spookplumpen has quit [Quit: Leaving]
Aova has joined #ruby
russt has joined #ruby
aswen has quit [Ping timeout: 245 seconds]
konsolebox has joined #ruby
dspangenberg has quit [Ping timeout: 245 seconds]
vaneda has quit [Quit: Computer has gone to sleep.]
ptrrr has quit [Quit: ptrrr]
athan has quit [Ping timeout: 264 seconds]
Deele has quit [Ping timeout: 245 seconds]
aboudreault has quit [Excess Flood]
pierre1_ has quit [Quit: Leaving]
nanoyak has quit [Quit: Computer has gone to sleep.]
mloveless has joined #ruby
DadoCe has quit [Remote host closed the connection]
aboudreault has joined #ruby
triple_b_ has joined #ruby
DadoCe has joined #ruby
djbkd has quit [Remote host closed the connection]
jerius has quit []
reinaldob has joined #ruby
triple___ has joined #ruby
djbkd has joined #ruby
Musashi007 has joined #ruby
metadave_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
triple___ has quit [Read error: Connection reset by peer]
triple_b has quit [Ping timeout: 256 seconds]
maximski has quit []
jottr has quit [Read error: Connection reset by peer]
triple_b_ has quit [Ping timeout: 246 seconds]
zachrab has joined #ruby
DadoCe has quit [Ping timeout: 264 seconds]
lucasSantAnna has quit []
craigp has quit [Remote host closed the connection]
nanoyak has joined #ruby
aboudreault has quit [Excess Flood]
bthesorceror has joined #ruby
jackjackdrpr has joined #ruby
fantazo has joined #ruby
orionstein has quit [Quit: ZNC - http://znc.in]
lucas_s4 has joined #ruby
Musashi007 has quit [Quit: Musashi007]
orionstein has joined #ruby
aboudreault has joined #ruby
Hijiri has quit [Ping timeout: 252 seconds]
bthesorceror has quit [Quit: bthesorceror]
nfk has quit [Quit: yawn]
jamto11 has quit [Remote host closed the connection]
fantazo has quit [Quit: Verlassend]
tonyhb has quit [Quit: peace]
_honning_ has quit [Ping timeout: 272 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Olipro has quit [Ping timeout: 252 seconds]
cjim has quit [Quit: (null)]
crueber has quit [Quit: Leaving.]
zenith_ has joined #ruby
momomomomo has quit [Quit: momomomomo]
Soda has quit [Remote host closed the connection]
mloveless has quit []
devdazed has quit [Quit: Computer has gone to sleep.]
craigp has joined #ruby
mengu has quit []
uri_ has quit [Ping timeout: 255 seconds]
zenith_ has quit [Remote host closed the connection]
it0a has quit [Ping timeout: 252 seconds]
tvw has joined #ruby
yokel has quit [Ping timeout: 272 seconds]
ki0 has quit [Remote host closed the connection]
quimrstorres has joined #ruby
<ellisTAA> can someone help me pass this test. i’m trying to convert a hash into a string with a specific format. the method i’m working on is called printable & the problems i’m having can bee seen in the failed_tests.rb section https://gist.github.com/ellisTAA/0a8c4da823b3851e7685
olivier_bK has joined #ruby
bhaak has quit [Ping timeout: 245 seconds]
dfinninger has quit [Remote host closed the connection]
yokel has joined #ruby
josephndenton has quit [Ping timeout: 265 seconds]
ta_ has joined #ruby
aboudreault has quit [Excess Flood]
<centrx> >> ['a', 'b', 'c'].join(' ')
<eval-in_> centrx => "a b c" (https://eval.in/267526)
AlSquire has quit [Quit: This computer has gone to sleep]
bronson has joined #ruby
<centrx> >> { a: 1, b: 2, c: 3 }.map { |k,v| "aa#{k} - bb#{v}" }
<eval-in_> centrx => ["aaa - bb1", "aab - bb2", "aac - bb3"] (https://eval.in/267527)
snath has quit [Ping timeout: 276 seconds]
<centrx> ellisTAA, ^
<havenwood> >> [["apple", "fruit"], ["fish", "aquatic animal"]].map { |k, v| "[#{k}] \"#{v}\"" }.join("\n")
<eval-in_> havenwood => "[apple] \"fruit\"\n[fish] \"aquatic animal\"" (https://eval.in/267530)
<ellisTAA> centrx: what does the “aa bb mean?
<centrx> just an example
<ellisTAA> oh
<havenwood> ellisTAA: That's an odd format, where'd that test come from?
<centrx> randomtext
mrmargolis has quit [Remote host closed the connection]
fgo has joined #ruby
<ellisTAA> havenwood: what’s an odd format? my code or the test
<ellisTAA> havenwood: thanks for the help
<ellisTAA> centrx: ty
<havenwood> ellisTAA: Drop the `print_result = ` variable, it's unused. It implicitly returns.
<havenwood> ellisTAA: Yeah, the test.
ta_ has quit [Ping timeout: 276 seconds]
<havenwood> ellisTAA: Just curious.
<zenspider> again... unreadable overly complex code... a day later.
<ellisTAA> havenwood: i was told not to say where. sorry about that :\
<ellisTAA> ;[
<havenwood> ellisTAA: That's fine, no worries.
aboudreault has joined #ruby
<ellisTAA> i appreciate tht help thoug
<ellisTAA> zenspider: i’m a noooob!
bhaak has joined #ruby
DadoCe has joined #ruby
timanema has joined #ruby
<centrx> that's a paddlin'
bronson has quit [Ping timeout: 272 seconds]
<havenwood> ellisTAA: you can drop the whole if/else rigmarole here, it's already true or false: Rigmarole
<zenspider> told not to say where?? it's totally googleable
<havenwood> sekret, shhhhh
quazimodo has joined #ruby
<zenspider> ellisTAA: a noob that yesterday was arguing that you didn't need to read/learn anything, you just needed practice.
<zenspider> always my first Big Red Flag™
Aova has quit [Read error: Connection reset by peer]
<havenwood> ellisTAA: looks like you're needlessly assigning local variables to your return value in a few places. don't do that.
nik_-_ has quit [Quit: nik_-_]
<ellisTAA> havewood: ty, what is Rigmarole
fgo has quit [Ping timeout: 264 seconds]
<havenwood> ellisTAA: a word i had to google to spell correctly
<havenwood> then pasted instead of the gist link i meant to
kaspertidemann has joined #ruby
<havenwood> so... nvm >.>
riotjone_ has joined #ruby
<zenspider> haha
<zenspider> I thought it was "riga..."
Rollabunna has quit [Quit: Leaving...]
ta_ has joined #ruby
<havenwood> ditto
<ellisTAA> lol
_yinzer has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
snath has joined #ruby
riotjones has quit [Ping timeout: 244 seconds]
da3m0n22 has left #ruby [#ruby]
jamto11 has joined #ruby
Aova has joined #ruby
juanpablo__ has joined #ruby
juanpablo_ has quit [Ping timeout: 244 seconds]
ta_ has quit [Ping timeout: 276 seconds]
fabrice31 has joined #ruby
cpt_yossarian has joined #ruby
<electrical> Hi all. still having this issue. https://gist.github.com/electrical/0d8b3b0edd797a197669 a certain string gets quoted and escaped with ruby 2.1 and up. but not with ruby 2.0 and lower.. is there a way that i can achieve the same what ruby 2.1 does but then with lower ruby versions?
<electrical> I've tried to stringify the variable by "#{var}" but had no luck either.
pika_pika has quit [Ping timeout: 265 seconds]
<electrical> adding quotes doesn't seem to work either
pdoherty has quit [Remote host closed the connection]
<godd2> electrical one obvious solution is to only use one version of ruby in production
<electrical> godd2: hehe true :-)
ZoanthusR has joined #ruby
<godd2> but that doesn't help much
<electrical> we test against multiple versions and that's why i ran into this
<godd2> ah I see. where are you getting .to_yaml from?
<godd2> since it may be version sensitive
<electrical> stdlib from ruby
enebo has quit [Quit: enebo]
<electrical> just doing a require 'yaml'
Jarboe has joined #ruby
fabrice31 has quit [Ping timeout: 276 seconds]
<godd2> oh derr
<godd2> I don't know enough about the yaml spec to know if having quotes around directories is a no-no
<godd2> because that's the only difference between the strings, no?
<electrical> apeiros: said earlier that its fine.
<electrical> yeah. indeed.
djbkd has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 265 seconds]
<godd2> so what's the issue then?
thumpba has joined #ruby
adriancb has quit [Remote host closed the connection]
<godd2> you just don't like how it looks?
djbkd has joined #ruby
<godd2> I mean, that's a valid reason
cpt_yossarian has quit [Quit: And then he took off.]
dspangenberg has joined #ruby
cpt_yossarian has joined #ruby
<electrical> well i do validation if i get back what i expect. ( rspec tests ) and we test against different ruby versions
thumpba has quit [Remote host closed the connection]
<electrical> so depending on which ruby version i'm testing it may pass or fail
<electrical> slightly annoying
<godd2> electrical if the output is valid yaml, then my suggestion is to change your spec to account for the validity
Curs0r has left #ruby ["Leaving"]
<godd2> that is, make your test a little more general
thumpba_ has quit [Ping timeout: 265 seconds]
checkit has joined #ruby
thumpba has joined #ruby
symbol_ has quit [Quit: WeeChat 1.1]
leonshalimov has quit [Ping timeout: 240 seconds]
<godd2> electrical you can also try doing hiera_config.inspect.to_yaml
<godd2> it may force the quotes you're looking for
thumpba has quit [Remote host closed the connection]
lucas_s4 has quit []
<electrical> godd2: "--- ! '{:backends=>\"yaml\", :yaml=>{:datadir=>\"/some/path/to/hiera\"}}'\n"
<electrical> hehe
thumpba has joined #ruby
<godd2> did that work?
<electrical> nope. it dumped the ruby hash directly
<electrical> as a single string
<godd2> oh then yea, my only recommendation is to change the test to allow for quotes being there or not being there
ellisTAA has left #ruby [#ruby]
enterprisedc has quit [Quit: enterprisedc]
dspangenberg has quit [Ping timeout: 264 seconds]
zachrab has quit [Remote host closed the connection]
xaxisx has joined #ruby
metadave has joined #ruby
Tuxero has joined #ruby
vt102 has quit [Ping timeout: 252 seconds]
<electrical> Looks like it yeah
jobewan has quit [Quit: Leaving]
<godd2> or you can change the CI matrix to not test against older versions of ruby if you aren't using them, but that's a different branch of thought
xaxisx has quit [Client Quit]
troynt has joined #ruby
<troynt> is there a shorter way to write some_arr.map!({|x| x['string'] }) ??
<havenwood> Seems it doesn't matter what it serializes to as long as it deserializes as expected.
fmcgeough has quit [Read error: Connection reset by peer]
<havenwood> Like Marshal can serialize differently on different system.
<jhass> troynt: not in ruby ;)
<havenwood> systems*
<troynt> jhass, thx
Patteh__ has left #ruby [#ruby]
fmcgeough has joined #ruby
Pharaoh2_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<godd2> jhass well he can make it one character shorter by removing the parens
<havenwood> jhass: though i've yearned for it from time to time
<havenwood> godd2: ha
enterprisedc has joined #ruby
<jhass> havenwood: .map &.["string"] <3
<centrx> What is this, a Skype replacement made by Mozilla?
<havenwood> jhass: is that a Crystalism?
<jhass> yup
<havenwood> jhass: oh, wow!
konsolebox has quit [Remote host closed the connection]
<jhass> can even go on and chain stuff
<havenwood> sick
<jhass> .map &.["string"].upcase
<jhass> it's because &. is actually just a parse time rewrite
jonr22 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<troynt> jhass, what is &. called ? and what is it rewritten to?
<jhass> troynt: that's not ruby
<troynt> can't seem to get it working
<troynt> ok
<troynt> that's why
Pupeno_ has quit [Read error: Connection reset by peer]
olivier_bK has quit [Ping timeout: 276 seconds]
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
klmlfl has left #ruby [#ruby]
klmlfl has joined #ruby
<wallerdev> lol
<godd2> best reason
Pupeno has joined #ruby
<havenwood> troynt: http://crystal-lang.org/
sambao21 has joined #ruby
dc has quit [Remote host closed the connection]
klmlfl has left #ruby [#ruby]
klmlfl has joined #ruby
jonr22 has quit [Ping timeout: 256 seconds]
<troynt> havenwood: cool, I'll just run rails on that. thx
<troynt> (kidding)
bronson has joined #ruby
<havenwood> crystails
<jhass> the almost-sinatra poc is called frank ;D
jmdade has quit [Quit: Textual IRC Client: www.textualapp.com]
vaneda has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
gattie has quit [Quit: Leaving...]
djbkd_ has joined #ruby