apeiros changed the topic of #ruby to: Please register to talk, see /msg NickServ help || Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
Agoldfish has quit [Quit: G'Bye]
<havenwood> _rukh: Ruby appeals to a variety of programmers.
<_rukh> so I've seen
Nawn has quit [Quit: Page closed]
<_rukh> I'll find this offtopic room now
ledestin has joined #ruby
<havenwood> _rukh: yeah, for non-Ruby stuff or general discussions about other languages (or hangman) the #ruby-offtopic channel is a good place.
Contigi has joined #ruby
<_rukh> okay, I'll be there from now on
_rukh has left #ruby [#ruby]
jesseherrick has joined #ruby
_rukh has joined #ruby
jesseherrick has quit [Client Quit]
Nawn has joined #ruby
paulcsmith has quit [Ping timeout: 244 seconds]
jher has quit [Ping timeout: 240 seconds]
Nawn has quit [Client Quit]
Nawn has joined #ruby
tuxero has quit [Quit: tuxero]
Ox0dea has quit [Read error: Connection reset by peer]
jgpawletko has joined #ruby
Ox0dea has joined #ruby
radgeRayden has joined #ruby
kies has joined #ruby
<Ox0dea> shevy: Your wonky results are probably to do with the sleep being too fine; changing the coefficient to something greater than 0.01 would probably help.
bootstrappm has left #ruby [#ruby]
DoubleAC has quit [Ping timeout: 255 seconds]
<Ox0dea> BraddPitt: The original implementation is so clean: http://i.imgur.com/akGoWS5.png
<Nawn> Hey guys, I'm trying to keep my code 'DRY'. It works, but I don't know if I can make it even smaller. anyone willing to take a look?
<al2o3-cr> or using a mutex
<Ox0dea> ?guys
<ruboto> Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
<Ox0dea> ?anyone
<ruboto> Just ask your question, if anyone has or can, they will respond.
<havenwood> Nawn: Yeah, do you have a link to a Gist of your code?
eightfold has quit [Quit: eightfold]
<havenwood> Nawn: gist.github.com
* al2o3-cr smells a rat
<Nawn> Just a learning project :)
rehat has joined #ruby
<BraddPitt> doesn the bash sleep use secons as a default unit?
<havenwood> Nawn: The Ruby convention is to use snake_case rather than headlessCamelCase for local variables and methods.
<Ox0dea> BraddPitt: Yes, but Sleepsort isn't intended to be used in earnest.
<havenwood> Nawn: Actually there're no headlessSnakes in Ruby at all.
<Ox0dea> Nawn: Erm, haven't we already helped you with this one?
SCHAAP137 has quit [Quit: Leaving]
<Nawn> Yeah :) It was shevy.
<Nawn> but it wasn't this code :) it was another project.
<Nawn> The previous project was to continually ask for numbers and then do an operation on it.
<Ox0dea> Nawn: Ah, that's right.
<Ox0dea> Did you manage to wrap your head around my proposed solution, then? :P
<Nawn> Yeah :) and I made sure to not repeat myself on this project, but I am just hoping you guys can catch any mistakes? :)
<havenwood> Nawn: Use two-space soft tabs instead of hard tabs. You can usually set that in your text editor.
<Nawn> I don't know, what I don't know, right?
<EllisTAA> when i run this program the ouput ocasionally puts out a number greater than 10…. like 45. any ideas on why it does that? https://gist.github.com/ellismarte/cc7c0a8896387c385fbe#file-threads-rb-L5
<Ox0dea> EllisTAA: You're seeing a 4 and a 5 squished together.
<EllisTAA> Ox0dea: lol
<EllisTAA> Ox0dea: thanks
<Ox0dea> Sure thing.
optimusno has quit [Remote host closed the connection]
<havenwood> EllisTAA: Try: "#{rand(10)}\n"
<EllisTAA> havenwood: will do
<Ox0dea> Alternatively, explicitly flush after printing.
sepp2k has quit [Read error: Connection reset by peer]
<havenwood> EllisTAA: The implicit newline can get separated from the rest of the String but an explicit one wont.
<Ox0dea> Is that a certainty?
<EllisTAA> yeah that worked
<Nawn> havenwood: is there anyway to not repeat myself with byeCount = 0?
<havenwood> Nawn: bye_count
<nofxx> havenwood, that's nice to know
<havenwood> Ox0dea: Aye, one call.
<Nawn> :P Sorry. but is there?
<nofxx> EllisTAA, you got the 'why' right? a tip: array.times do
<nofxx> don't use while, loop, until ...avoid
<EllisTAA> nofxx: why not
phutchins has quit [Ping timeout: 240 seconds]
<havenwood> Nawn: An idiomatic way to do something twice is: 2.times do
<nofxx> EllisTAA, you don't need the counter, just to start
<havenwood> Guess I should actually look at what it's doing.
<nofxx> and of course it's beautiful, instead of that ugly thing
<EllisTAA> nofxx: oh yeah i was just messing around, thanks though haha
vF3hNGxc47h8 has joined #ruby
<Nawn> I'm improving the Deaf Grandma project all the way at the bottom
<havenwood> Nawn: nice
<Nawn> The code works, but I notice that i used byeCount(yes, I know it's bye_count, lol) = 0, on 2 different lines
<_rukh> hey Nawn have you looked at Chris Pine's newer version of that tutorial
NeverDie has joined #ruby
<Nawn> _rukh: no :O i'm just following http://theodinproject.com/
CloCkWeRX has joined #ruby
CloCkWeRX has left #ruby [#ruby]
<havenwood> Newer version is a really good idea!
<_rukh> oh I was also planning on starting that, I actually finished Chris Pine's book a few weeks ago
<_rukh> as much as I could of it at least
<nofxx> EllisTAA, your code in one line: thrs = Array.new(20).map { Thread.new {1234567.times {puts rand(10)}} }
<EllisTAA> nofxx: thanks i appreciate it
<Nawn> :P Yeah, So I'm making sure to do all of the "Extra Resources" and projects. Make sure i have all my bases covered :)
freerobby has quit [Read error: Connection reset by peer]
<Ox0dea> nofxx: 20.times > Array.new(20)
ecnalyr has joined #ruby
freerobby has joined #ruby
icarus has quit [Ping timeout: 255 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nofxx> Ox0dea, hum?
ebbflowgo_ has joined #ruby
ecnalyr has quit [Remote host closed the connection]
ecnalyr has joined #ruby
mprelude has quit [Ping timeout: 265 seconds]
ebbflowgo has quit [Ping timeout: 250 seconds]
ebbflowgo_ is now known as ebbflowgo
maletor has quit []
<EllisTAA> im going to try to write to a file using threads, do you think this could cause problems, or is ruby set up for this?
* baweaver grabs popcorn
<nofxx> > 20.times.map { nil }.size
<baweaver> I wouldn't if I were you
<nofxx> what's the run again?
northfurr has joined #ruby
<baweaver> >> 'this'
<ruboto> baweaver # => "this" (https://eval.in/425604)
<nofxx> >> 20.times.map { nil }.size
<ruboto> nofxx # => 20 (https://eval.in/425605)
<nofxx> anyways, same for Array.new(20).size
<nofxx> baweaver, ty
stardiviner has joined #ruby
<baweaver> well, if you want a good lesson on why Mutex is a thing and threads can be more fun than they appear go for it.
<EllisTAA> lol
<Ox0dea> >> require 'objspace'; [ObjectSpace.memsize_of(20.times), ObjectSpace.memsize_of(Array.new 20)] # nofxx
<ruboto> Ox0dea # => [60, 100] (https://eval.in/425606)
<baweaver> Got us a REPL throwdown
<Nawn> havenwood: Any suggestions? Or is that as 'DRY' as I can make it? :)
<nofxx> EllisTAA, depict the problem, not how you're solving it
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nofxx> Ox0dea, hey that's nice
dstarh has joined #ruby
<Ox0dea> nofxx: It avoids the explicit creation of a throwaway Array, if nothing else.
benlovell has joined #ruby
tvw has quit [Remote host closed the connection]
ecnalyr has quit [Ping timeout: 260 seconds]
<Ox0dea> Nawn: This is a pretty imperative task, so there's not a lot of room for cleanup. You could use weird tricks to make it shorter, but they wouldn't be improvements.
solocshaw has quit [Ping timeout: 246 seconds]
<Nawn> :P Okay, but overall it's okay, right? :) I had it repeating the :(puts "HUH!? SPEAK UP, SONNY!") code like on 3 different lines, but i cleaned that up. :) Just making sure I didn't miss anything
devoldmx has joined #ruby
<Nawn> Practice does not make perfect! D: Perfect practice, makes perfect ;)
bruno- has joined #ruby
northfurr has quit [Quit: northfurr]
<havenwood> Nawn: As you proceed you might also enjoy feedback from Exercism exercises: http://exercism.io
<havenwood> Nawn: And do ask here! :D
tubuliferous has quit [Read error: Connection reset by peer]
pocketprotector has quit [Remote host closed the connection]
<Nawn> havenwood & Ox0ea thanks :)
benlovell has quit [Ping timeout: 244 seconds]
kies has quit [Ping timeout: 255 seconds]
northfurr has joined #ruby
<Ox0dea> Nawn: Happy to help.
<Ox0dea> You would do well to ignore pretty much every change I made: https://gist.github.com/0x0dea/362a64f9c22c701759a2
devoldmx has quit [Ping timeout: 246 seconds]
<Ox0dea> Well, no, rand with a Range is good.
keen___________9 has joined #ruby
]Men is now known as Mendenhall
northfurr has quit [Client Quit]
oo_ has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
keen___________8 has quit [Ping timeout: 250 seconds]
northfurr has joined #ruby
Swappticon has joined #ruby
<Nawn> What other convention errors did I make? I'm used to C#. >_<
bronson_ has quit [Remote host closed the connection]
oo_ has quit [Ping timeout: 255 seconds]
Ray` is now known as Ray_Bradberry
_rukh has quit []
<Nawn> Laptop dying. Thanks, you guys are great. Cya around!
Nawn has quit []
oo_ has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ray_Bradberry is now known as Ray`
DoubleAC has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
marr has quit [Ping timeout: 250 seconds]
arescorpio has joined #ruby
snockerton has quit [Quit: Leaving.]
iateadonut has joined #ruby
michael_mbp has quit [Excess Flood]
podman has quit [Quit: Connection closed for inactivity]
Ox0dea has quit [Read error: Connection reset by peer]
Ox0dea has joined #ruby
ereslibre has quit [Ping timeout: 250 seconds]
michael_mbp has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
Rickmasta has joined #ruby
messysaurus has joined #ruby
barhum2013 has quit [Quit: barhum2013]
roxtrong_ has joined #ruby
barhum2013 has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
christiandsg has joined #ruby
Ox0dea has quit [Read error: Connection reset by peer]
Ox0dea has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roxtrong_ has quit [Ping timeout: 240 seconds]
swgillespie has joined #ruby
bmurt has joined #ruby
dstarh has joined #ruby
sevenseacat has joined #ruby
swgillespie has quit [Client Quit]
meatherly has joined #ruby
bronson has joined #ruby
freerobby has quit [Quit: Leaving.]
d10n-work has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
barhum2013 has quit [Quit: barhum2013]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
craysiii has quit [Remote host closed the connection]
rmoriz has quit [Ping timeout: 252 seconds]
rubie has quit [Remote host closed the connection]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
rmoriz has joined #ruby
vF3hNGxc47h8 has quit [Ping timeout: 264 seconds]
scripore has joined #ruby
baweaver has quit [Ping timeout: 264 seconds]
SenpaiSilver has joined #ruby
minimuffins has joined #ruby
podman has joined #ruby
decoponio has quit [Quit: Leaving...]
NullVoxPopuli has joined #ruby
NullVoxPopuli has left #ruby ["Leaving"]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
siaw has quit [Quit: siaw]
crazydiamond has quit [Ping timeout: 272 seconds]
AlexAltea has quit [Ping timeout: 260 seconds]
minimuffins has quit [Ping timeout: 255 seconds]
_ht has quit [Ping timeout: 246 seconds]
pyon has quit [Quit: brb, stupid emacs]
avahey has quit [Quit: Connection closed for inactivity]
bricker has quit [Ping timeout: 252 seconds]
unreal_ has joined #ruby
pyon has joined #ruby
unreal has quit [Ping timeout: 246 seconds]
northfurr has quit [Quit: northfurr]
pocketprotector has joined #ruby
rehat has quit [Remote host closed the connection]
_ht has joined #ruby
ruby-lang115 has joined #ruby
bronson has quit [Remote host closed the connection]
ruby-lang115 has quit [Client Quit]
devoldmx has joined #ruby
majjoha has joined #ruby
paulcsmith has joined #ruby
freerobby has joined #ruby
devoldmx has quit [Ping timeout: 264 seconds]
sargas has joined #ruby
majjoha has quit [Ping timeout: 265 seconds]
bronson has joined #ruby
paulcsmith has quit [Ping timeout: 246 seconds]
Lucky__ has joined #ruby
dorei has quit []
meatherly has quit []
bronson has quit [Remote host closed the connection]
neanderslob has quit [Ping timeout: 246 seconds]
neanderslob has joined #ruby
bronson has joined #ruby
choke has joined #ruby
wldcordeiro__ has joined #ruby
charliesome has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
towski_ has quit [Remote host closed the connection]
ebbflowgo has quit [Quit: ebbflowgo]
Yzguy has joined #ruby
choke has quit [Client Quit]
sdfgsdfg has joined #ruby
iateadonut has quit [Quit: Leaving.]
bronson has quit [Remote host closed the connection]
tkuchiki has joined #ruby
charliesome has quit [Ping timeout: 240 seconds]
Swappticon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tubuliferous has joined #ruby
christiandsg has quit [Remote host closed the connection]
s00pcan has quit [Ping timeout: 246 seconds]
Queeniebee has quit [Ping timeout: 244 seconds]
Yzguy has quit [Remote host closed the connection]
meatherly has joined #ruby
Yzguy has joined #ruby
ekinmur has joined #ruby
choke has joined #ruby
s00pcan has joined #ruby
ebbflowgo has joined #ruby
freerobby has quit [Quit: Leaving.]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ekinmur has quit [Max SendQ exceeded]
nettoweb has joined #ruby
dstarh has joined #ruby
juanpablo_ has joined #ruby
houhoulis has joined #ruby
ekinmur has joined #ruby
theery has joined #ruby
ekinmur has quit [Max SendQ exceeded]
chipotle_ has joined #ruby
ekinmur has joined #ruby
luksaur has quit [Ping timeout: 265 seconds]
shortdudey123 has quit [Max SendQ exceeded]
neanderslob has quit [Ping timeout: 240 seconds]
shortdudey123 has joined #ruby
chipotle has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
juanpablo_ has quit [Ping timeout: 244 seconds]
neanderslob has joined #ruby
luksaur has joined #ruby
ekinmur has quit [Max SendQ exceeded]
meph has quit [Quit: Leaving.]
meph has joined #ruby
sargas has quit [Quit: Leaving]
meph has quit [Client Quit]
theery has quit [Remote host closed the connection]
ekinmur has joined #ruby
<miah> -\win 12
ekinmur has quit [Max SendQ exceeded]
bigredboots has joined #ruby
bigredboots has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 272 seconds]
rbennacer has joined #ruby
ekinmur has joined #ruby
GnuYawk has quit [Read error: No route to host]
jenrzzz has joined #ruby
bigredboots has joined #ruby
ekinmur has quit [Max SendQ exceeded]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ekinmur has joined #ruby
wldcordeiro__ has quit [Remote host closed the connection]
theery has joined #ruby
ekinmur has quit [Max SendQ exceeded]
roshanavand has joined #ruby
wldcordeiro__ has joined #ruby
ekinmur has joined #ruby
theery has quit [Remote host closed the connection]
ekinmur has quit [Max SendQ exceeded]
Gaelan has joined #ruby
charliesome has joined #ruby
ekinmur has joined #ruby
wldcordeiro__ has quit [Remote host closed the connection]
wldcordeiro__ has joined #ruby
ekinmur has quit [Max SendQ exceeded]
Coldblackice_ has joined #ruby
ekinmur has joined #ruby
Coldblackice has quit [Ping timeout: 255 seconds]
DoubleAC has left #ruby [#ruby]
benlovell has joined #ruby
dfinninger has joined #ruby
ekinmur has quit [Max SendQ exceeded]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Tempesta has joined #ruby
ekinmur has joined #ruby
tmtwd has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ekinmur has quit [Max SendQ exceeded]
christiandsg has joined #ruby
ekinmur has joined #ruby
benlovell has quit [Ping timeout: 250 seconds]
christiandsg has quit [Remote host closed the connection]
bazbing80 has joined #ruby
charliesome has joined #ruby
ekinmur has quit [Max SendQ exceeded]
ekinmur has joined #ruby
charliesome has quit [Client Quit]
dfinninger has quit [Remote host closed the connection]
<zenspider> deaf grandma... the meme that'll never die
ekinmur has quit [Max SendQ exceeded]
allcentury has quit [Ping timeout: 250 seconds]
roshanavand has quit [Ping timeout: 244 seconds]
bigredboots has quit [Remote host closed the connection]
ekinmur has joined #ruby
rubie has joined #ruby
_djbkd has quit [Remote host closed the connection]
ekinmur has quit [Max SendQ exceeded]
gambl0re has joined #ruby
ekinmur has joined #ruby
roxtrong_ has joined #ruby
ekinmur has quit [Max SendQ exceeded]
davedev24 has quit []
shortythepimp has joined #ruby
bruno- has joined #ruby
christiandsg has joined #ruby
roxtrong_ has quit [Ping timeout: 264 seconds]
siaw has joined #ruby
Evanescence has joined #ruby
stardiviner has quit [Ping timeout: 250 seconds]
rbennacer has quit [Remote host closed the connection]
Queeniebee has joined #ruby
atomical has joined #ruby
bruno- has quit [Ping timeout: 252 seconds]
_djbkd has joined #ruby
Evanescence is now known as stardiviner
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shortythepimp has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
ngscheur1 has quit [Ping timeout: 240 seconds]
NeverDie has joined #ruby
christiandsg has quit [Remote host closed the connection]
minimuffins has joined #ruby
quazimodo has joined #ruby
majjoha has joined #ruby
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<quazimodo> guys, why does BigDecimal(0.76, 7).to_f => 0.076 but BigDecimal(0.76, 8).to_f => 0.075999999
<quazimodo> i thought BigDecial preserves
christiandsg has joined #ruby
NeverDie has quit [Max SendQ exceeded]
NeverDie has joined #ruby
<quazimodo> i expected 0.7600000 ...
choke has quit [Remote host closed the connection]
messysaurus has quit [Remote host closed the connection]
majjoha has quit [Ping timeout: 246 seconds]
NeverDie has quit [Read error: Connection reset by peer]
choke has joined #ruby
cfloare has quit [Ping timeout: 264 seconds]
cgfbee has quit [Ping timeout: 268 seconds]
christiandsg has quit [Remote host closed the connection]
charliesome has joined #ruby
davedev24 has joined #ruby
bronson has joined #ruby
Averna has joined #ruby
wldcordeiro__ has quit [Remote host closed the connection]
wldcordeiro__ has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
juanpablo_ has joined #ruby
vdamewood has quit [Quit: Life beckons.]
dgutierrez1287 has joined #ruby
wldcordeiro__ has quit [Remote host closed the connection]
dfinninger has joined #ruby
kljds has joined #ruby
siaw has quit [Quit: siaw]
wldcordeiro__ has joined #ruby
rbennacer has joined #ruby
theery has joined #ruby
jackjackdripper1 has quit [Quit: Leaving.]
juanpablo_ has quit [Ping timeout: 246 seconds]
<Ox0dea> quazimodo: Try passing in "0.76" as a String.
<havenwood> >> require 'bigdecimal'; BigDecimal('0.76', 7).to_f
<ruboto> havenwood # => 0.76 (https://eval.in/425637)
baweaver has joined #ruby
<havenwood> Ox0dea: Success!
ruby-lang593 has joined #ruby
<Ox0dea> Huzzah!
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
bmurt has quit []
bmurt has joined #ruby
wldcordeiro__ has quit [Remote host closed the connection]
<Ox0dea> >> require 'bigdecimal'; [(BigDecimal(1.0, 200) rescue $!), BigDecimal.new('1.0', 200)]
<ruboto> Ox0dea # => [#<ArgumentError: precision too large.>, #<BigDecimal:418ca2d0,'0.1E1',9(207)>] (https://eval.in/425645)
dgutierrez1287 has quit [Ping timeout: 272 seconds]
<Ox0dea> Also that.
wldcordeiro__ has joined #ruby
rubie has quit [Remote host closed the connection]
gener1c has joined #ruby
Nawn has joined #ruby
nettoweb has joined #ruby
<havenwood> quazimodo: Floats are funky.
chipotle has joined #ruby
nettoweb has quit [Client Quit]
<Nawn> :D
sdothum has joined #ruby
chipotle_ has quit [Ping timeout: 244 seconds]
_djbkd has quit [Quit: My people need me...]
<havenwood> quazimodo: Or compare with a Rational: BigDecimal(0.76r, 7)
rubie has joined #ruby
nettoweb has joined #ruby
gener1c_ has quit [Ping timeout: 244 seconds]
nettoweb has quit [Client Quit]
Moonlightning has joined #ruby
braincrash has quit [Quit: bye bye]
<Moonlightning> How does `gem` ensure the authenticity of downloaded gems?
<cscheib> by default it doesn't
kidmillions has joined #ruby
<havenwood> Moonlightning: Gems can be signed but in practice they aren't.
cnngimenez has joined #ruby
<Moonlightning> Mmmm.
<Ox0dea> Moonlightning: For clarity, did you mean authenticity or consistency?
<havenwood> Moonlightning: There has been some work on implementing TUF for RubyGems but last I checked it's incomplete and hasn't been merged.
Coldblackice_ is now known as Coldblackice
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bmurt has quit []
SilentEcho has quit [Ping timeout: 250 seconds]
<havenwood> That would be a good thing to pay someone to complete. ;)
<Moonlightning> Ox0dea: authenticity—i.e. /these data are the ones published by the author; they have not been modified or tampered with/
SilentEcho has joined #ruby
jesterfraud has joined #ruby
<Ox0dea> Moonlightning: In that case, you did mean consistency, in which case a simple checksum should suffice.
chipotle has quit [Ping timeout: 246 seconds]
tmtwd has quit [Ping timeout: 256 seconds]
dopamean_ has joined #ruby
rbennacer has quit [Remote host closed the connection]
braincrash has joined #ruby
<Moonlightning> Ox0dea: probably not. It would have to be a cryptographic hash, not a simple checksum, and the hash would have to have been signed by the author (or at least served by the gem servers, over TLS).
kies has joined #ruby
xcesariox has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
cgfbee has joined #ruby
xcesariox has quit [Client Quit]
cfloare has joined #ruby
xcesariox has joined #ruby
houhoulis has quit [Remote host closed the connection]
craysiii has joined #ruby
<havenwood> Moonlightning: To verify the latest Rails gem for example: ruby -rrubygems/package -e "p Gem::Package.new('rails-4.2.4.gem').verify"
prestorium has joined #ruby
<havenwood> Moonlightning: ^ if you wanted to manually check the checksum
allcentury has joined #ruby
lampshades has joined #ruby
<Moonlightning> Thanks, havenwood
mistermocha has joined #ruby
dfinninger has quit [Remote host closed the connection]
Blaguvest has quit []
ecnalyr has joined #ruby
Volsus has joined #ruby
dfinninger has joined #ruby
mistermocha has quit [Remote host closed the connection]
lampshades has quit []
allcentury has quit [Ping timeout: 244 seconds]
podman has quit [Quit: Connection closed for inactivity]
dseitz has quit [Read error: Connection reset by peer]
bigredboots has joined #ruby
hawkface has joined #ruby
dseitz has joined #ruby
towski__ has joined #ruby
evserykh has joined #ruby
bodgix has quit [Ping timeout: 256 seconds]
Rickmasta has quit [Ping timeout: 268 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Rickmasta has joined #ruby
ecnalyr has quit [Ping timeout: 246 seconds]
devoldmx has joined #ruby
bodgix has joined #ruby
towski__ has quit [Remote host closed the connection]
allcentury has joined #ruby
scottymeuk has quit [Ping timeout: 246 seconds]
<quazimodo> havenwood: hrm i don't get it still
evserykh has left #ruby [#ruby]
Ox0dea has quit [Ping timeout: 246 seconds]
evserykh has joined #ruby
<quazimodo> >> require 'bigdecimal'; BigDecimal('0.76', 8).to_f
<ruboto> quazimodo # => 0.76 (https://eval.in/425651)
<quazimodo> >> require 'bigdecimal'; BigDecimal(0.76, 8).to_f
<ruboto> quazimodo # => 0.76 (https://eval.in/425653)
<quazimodo> Wat
oo_ has quit [Remote host closed the connection]
<quazimodo> >> require 'bigdecimal'; BigDecimal(0.076, 8).to_f
<ruboto> quazimodo # => 0.075999999 (https://eval.in/425654)
<quazimodo> there you go
<quazimodo> >> require 'bigdecimal'; BigDecimal('0.076', 8).to_f
<ruboto> quazimodo # => 0.076 (https://eval.in/425656)
<evserykh> Hi!
scottymeuk has joined #ruby
jaequery has joined #ruby
<quazimodo> BigDecimal(0.076)
evserykh has quit [Quit: evserykh]
devoldmx has quit [Ping timeout: 272 seconds]
jaequery has quit [Client Quit]
allcentury has quit [Ping timeout: 244 seconds]
gix has quit [Ping timeout: 250 seconds]
<quazimodo> surely this is buggy?
<sevenseacat> how so?
<sevenseacat> you're creating a BigDecimal from an imprecise float
<sevenseacat> it cant just magically fix its precision
t0rrieri has quit [Quit: Be back later ...]
Averna has quit [Ping timeout: 256 seconds]
RobertBirnie has joined #ruby
<baweaver> read
gix has joined #ruby
shadoi has quit [Quit: Leaving.]
tubuliferous has quit [Ping timeout: 265 seconds]
wldcordeiro__ has quit [Ping timeout: 246 seconds]
arielpp has joined #ruby
chinmay_dd has joined #ruby
RobertBirnie has quit [Client Quit]
arielpp has left #ruby [#ruby]
yfeldblum has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 255 seconds]
baweaver has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
kies has quit [Ping timeout: 240 seconds]
crdpink2 has joined #ruby
Ox0dea has joined #ruby
crdpink has quit [Read error: Connection reset by peer]
GnuYawk has joined #ruby
xcesariox has quit [Read error: Connection reset by peer]
kies has joined #ruby
meatherly has quit []
lampshades has joined #ruby
roadt has joined #ruby
pietr0 has quit [Quit: pietr0]
auzty has joined #ruby
pietr0 has joined #ruby
NeverDie has joined #ruby
meatherly has joined #ruby
Yzguy has quit [Quit: Zzz...]
t0rrieri has joined #ruby
jeadre has quit [Ping timeout: 244 seconds]
coffeejunk has quit [Ping timeout: 244 seconds]
Flipez has quit [Ping timeout: 244 seconds]
<quazimodo> if you 0.076.to_d it's fine, so then i've made a mistake somewhere along the way
<quazimodo> I need to see how to_d works it out
messysaurus has joined #ruby
coffeejunk has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
Flipez has joined #ruby
<Moonlightning> …to be clear. `gem` doesn't insist on using HTTPS, does it?
saddad has quit [Ping timeout: 240 seconds]
NeverDie has quit [Ping timeout: 252 seconds]
ekleog_ has left #ruby [#ruby]
ekleog has joined #ruby
t0rrieri has quit [Quit: Be back later ...]
prestorium has quit [Ping timeout: 265 seconds]
prestorium has joined #ruby
craysiii has quit [Remote host closed the connection]
kidmillions has quit [Read error: Connection reset by peer]
majjoha has joined #ruby
<Ox0dea> Moonlightning: You can change the default source from "https://rubygems.org", yes.
<Moonlightning> Ox0dea: by default, does it fall back to insecure HTTP, though?
<Ox0dea> No, you'll get a certificate error.
bigredboots has quit [Remote host closed the connection]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Moonlightning> mmmmm
<Moonlightning> okay, I'll take it. thanks.
kies has quit [Ping timeout: 265 seconds]
majjoha has quit [Ping timeout: 255 seconds]
ruby-lang593 has quit [Ping timeout: 246 seconds]
jaequery has joined #ruby
lampshades has quit [Remote host closed the connection]
pietr0_ has joined #ruby
kies has joined #ruby
NeverDie has joined #ruby
pietr0 has quit [Ping timeout: 265 seconds]
djbkd has quit [Remote host closed the connection]
meatherly has quit []
djbkd has joined #ruby
darkf has joined #ruby
NeverDie has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 250 seconds]
khebbie has joined #ruby
messysaurus has quit [Remote host closed the connection]
chipotle has joined #ruby
ap4y has quit [Remote host closed the connection]
Gaelan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
Nawn has quit []
khebbie has quit [Remote host closed the connection]
roxtrong_ has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marjory has joined #ruby
chinmay_dd has quit [Quit: See ya!]
arescorpio has quit [Quit: Leaving.]
davedev24 has quit [Remote host closed the connection]
bruno- has joined #ruby
<Moonlightning> hmmm
<Moonlightning> So it seems that Past Moonlightning from several years ago installed a bunch of gems using `sudo gem` >.>
Swappticon has joined #ruby
<Moonlightning> How do I just toss out…/everything/, basically, and start from scratch?
skade has joined #ruby
chinmay_dd has joined #ruby
jackjackdripper has joined #ruby
roxtrong_ has quit [Ping timeout: 268 seconds]
oo_ has joined #ruby
<Moonlightning> also, /should/ I be using something like rvm?
<Radar> Moonlightning: Depends on how Ruby was installed in the first place.
<Radar> Moonlightning: What OS?
<Moonlightning> I'm not developing or anything
<Moonlightning> Radar: OS X.
<Moonlightning> Yosemite.
Volsus has quit [Quit: Leaving]
<Radar> Moonlightning: Ok, that's fine then. You can follow this guide and it'll install a new Ruby for you: http://ryanbigg.com/2015/06/mac-os-x-ruby-ruby-install-chruby-and-you/
bruno- has quit [Ping timeout: 268 seconds]
<Radar> Moonlightning: I suggest using Ruby 2.2.3 instead of the 2.2.2 which is mentioned in the guide. That's because 2.2.3 is the latest now.
<Moonlightning> Radar: even though I'm not doing development?
<sevenseacat> what are you installing ruby and gems for then?
<Radar> Moonlightning: You're... using Ruby but not doing development?
<Moonlightning> sevenseacat, Radar: because… http://supmua.org is a gem? :?
ekleog has quit [Ping timeout: 244 seconds]
jackjackdripper has quit [Quit: Leaving.]
Skelz0r has quit [Ping timeout: 272 seconds]
devoldmx has joined #ruby
chinmay_dd has quit [Quit: See ya!]
devoldmx has quit [Remote host closed the connection]
<sevenseacat> ah hah
devoldmx has joined #ruby
aibo has quit [Ping timeout: 250 seconds]
<sevenseacat> looks nice
Skelz0r has joined #ruby
ekleog has joined #ruby
tmtwd has joined #ruby
<Moonlightning> Honestly, the only reason I'm even here is because Homebrew doesn't do gems et al like most package managers do >.>
juanpablo_ has joined #ruby
Zarthus has quit [Ping timeout: 256 seconds]
<sevenseacat> which is a good thing
quazimodo has quit [Ping timeout: 250 seconds]
<sevenseacat> if you're not actually interested in using ruby, then I would just use the ruby that comes pre-installed on your OSX
<Moonlightning> Yeah. I get to deal with half a dozen different package managers. 9.9
oo_ has quit [Ping timeout: 265 seconds]
mhenrixon has quit [Ping timeout: 264 seconds]
<sevenseacat> and then gem install sup
Zarthus has joined #ruby
rubie has quit [Remote host closed the connection]
oo_ has joined #ruby
majjoha has joined #ruby
<cscheib> using a package manager that didn't understand and resolve ruby dependencies would be a nightmare
<cscheib> gem + bundler ftw
mhenrixon has joined #ruby
<cscheib> (and in my case, puppet)
<Moonlightning> > You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
<Moonlightning> Hence my asking about redoing the gem system here.
<sevenseacat> then you'll need sudo
theery has quit [Remote host closed the connection]
NeverDie has joined #ruby
dfinninger has quit [Remote host closed the connection]
<cscheib> for i in `gem list | cut -f1 -d' '`; do sudo gem uninstall $i; done; <--- rough answer to your first(ish) question... test it first, that's off the top of my head
juanpablo_ has quit [Ping timeout: 250 seconds]
minimuffins has quit [Ping timeout: 255 seconds]
bronson has joined #ruby
<Moonlightning> I thought `sudo gem` was a bad idea?
<cscheib> you're uninstalling the gems you installed with sudo
<cscheib> it's allowerd
renodice has joined #ruby
<sevenseacat> it is, for development
pawnbox has joined #ruby
<baweaver> chances are high if you aren't a sysadmin you should not touch sudo on a server
<baweaver> and even then only with great care
<Ox0dea> baweaver: How about `machinectl shell`?
<havenwood> sudo htop
swgillespie has joined #ruby
<baweaver> Unix is not built for safety, it's built to deliver Mr Bullet to Mr Foot in the most efficient way possible
bricker has joined #ruby
<baweaver> there are exceptions, but that's why I said chances are high
pawnbox has quit [Remote host closed the connection]
<Moonlightning> sevenseacat: why for development but not otherwise?
NeverDie has quit [Ping timeout: 264 seconds]
bronson has quit [Ping timeout: 260 seconds]
jdawgaz has joined #ruby
<Radar> Moonlightning: Follow this post and you'll be alright: http://ryanbigg.com/2015/06/mac-os-x-ruby-ruby-install-chruby-and-you/
<sevenseacat> because you're not worrying about setting up a configurable and manageable development environment... are you?
<Radar> No need to install Rails, MySQL or PostgreSQL
jpfuentes2 has joined #ruby
<Radar> It'll fix your permissions issue
astrobun_ has joined #ruby
* sevenseacat shrugs and goes back to partying over here -->
NeverDie has joined #ruby
UtkarshRay has joined #ruby
jenrzzz has joined #ruby
jdawgaz has quit [Quit: Textual IRC Client: www.textualapp.com]
jdawgaz has joined #ruby
towski_ has joined #ruby
grenierm has joined #ruby
NeverDie has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
cnngimenez has quit [Ping timeout: 265 seconds]
jackjackdripper has joined #ruby
jackjackdripper has quit [Client Quit]
scripore has quit [Quit: This computer has gone to sleep]
cnngimenez has joined #ruby
scripore has joined #ruby
scripore has quit [Client Quit]
NeverDie has joined #ruby
ramadoka has joined #ruby
ramadoka has quit [Client Quit]
ytti has joined #ruby
ramadoka has joined #ruby
<Moonlightning> Bleh. So it turns out that Sup doesn't support Ruby 2.
<Moonlightning> So I have to install 1.9 or something and use that
<Radar> ruby-install ruby 1.9
<Radar> gg
<Ox0dea> wp
<Radar> tks
Tempesta has quit [Quit: Going offline, see ya! (( www.adiirc.com )]
<Moonlightning> Radar: I don't have a ruby-install
<Radar> [14:53:15] <Radar>Moonlightning: Follow this post and you'll be alright: http://ryanbigg.com/2015/06/mac-os-x-ruby-ruby-install-chruby-and-you/
<Radar> 3rd time lucky?
riotjones has joined #ruby
<sevenseacat> well ruby 1.9 is past end of life so.... tbh I wouldnt trust ut
<sevenseacat> it
bricker has quit [Ping timeout: 272 seconds]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ecnalyr has joined #ruby
allcentury has joined #ruby
pawnbox has quit [Remote host closed the connection]
Lucky__ has joined #ruby
<cscheib> ruby-install is in homebrew, couldn't be easier to add it to your system
towski_ has quit [Remote host closed the connection]
<havenwood> brew install ruby-install --HEAD
lycanmaster has joined #ruby
<cscheib> chruby is also in homebrew
<Moonlightning> …actually, I better go ask #sup about this.
Lycanii has quit [Ping timeout: 264 seconds]
* Moonlightning actually looked at the date on the post saying Sup didn't support 2.0. It's more than two years old.
<Ox0dea> Moonlightning: What's wrong with mutt?
riotjones has quit [Ping timeout: 268 seconds]
<Moonlightning> Ox0dea: the way it handles multiple accounts.
<Moonlightning> Or doesn't, rather.
lycanmaster has left #ruby [#ruby]
ruurd has joined #ruby
jaequery has quit [Quit: Textual IRC Client: www.textualapp.com]
quazimodo has joined #ruby
allcentury has quit [Ping timeout: 246 seconds]
Gnomethrower has joined #ruby
Gnomethrower has joined #ruby
AlexAltea has joined #ruby
<Ox0dea> Moonlightning: You don't like having to explicitly unset impertinent variables, or?
tmtwd has quit [Ping timeout: 264 seconds]
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
ecnalyr has quit [Ping timeout: 255 seconds]
<Moonlightning> Ox0dea: I never could figure out how to get it to keep different folder hierarchies for different accounts
dhjondoh has joined #ruby
khebbie has joined #ruby
<cscheib> send a note in to Linux Journal, Kyle Rankin there is a mutt enthusiast. I'm sure he's got a neat multi-account setup
khebbie has quit [Remote host closed the connection]
<Moonlightning> No thanks. x.x
thomas has joined #ruby
grenierm has quit [Quit: grenierm]
dgutierrez1287 has joined #ruby
thomas has quit [Client Quit]
kidmillions has joined #ruby
grenierm_ has joined #ruby
kies has quit [Ping timeout: 264 seconds]
grenierm_ has left #ruby [#ruby]
kies has joined #ruby
pawnbox has joined #ruby
Tempesta has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
moeabdol has quit [Quit: WeeChat 1.3]
dgutierrez1287 has quit [Ping timeout: 256 seconds]
skade has quit [Quit: Computer has gone to sleep.]
bluOxigen has joined #ruby
skade has joined #ruby
<Radar> How do I prevent guard from stopping when it encounters an exception? I keep getting "15:27:19 - INFO - Guard::Nanoc has just been fired" and I have to restart guard before it will continue compiling.
lampshades has joined #ruby
skade has quit [Client Quit]
bigredboots has joined #ruby
chinmay_dd has joined #ruby
xet7_ has quit [Ping timeout: 255 seconds]
lampshades has quit [Remote host closed the connection]
lampshades has joined #ruby
bigredboots has quit [Remote host closed the connection]
lampshades has quit [Remote host closed the connection]
luksaur has quit [Ping timeout: 265 seconds]
tkuchiki has quit [Remote host closed the connection]
xet7_ has joined #ruby
aganov has joined #ruby
luksaur has joined #ruby
lampshades has joined #ruby
techsethi has joined #ruby
lampshades has quit [Remote host closed the connection]
casadei has quit [Remote host closed the connection]
lampshades has joined #ruby
renodice has quit [Ping timeout: 246 seconds]
benlieb has joined #ruby
rushed has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Swappticon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jordanloky has joined #ruby
tagrudev has joined #ruby
pawnbox has quit [Remote host closed the connection]
acosonic has joined #ruby
chenillen has joined #ruby
bruno- has joined #ruby
pawnbox has joined #ruby
<baweaver> old question is old
<baweaver> TL;DR - lol, no
<acosonic> shouldn't there be something like node.js but for ruby like node.rb ? :)
<Radar> lol
<Radar> Why do you think so?
last_staff has joined #ruby
<acosonic> I've been reading that quora thread and I'm afraid of delphi destiny, I was a big fan od delphi...
<shevy> it's not just an old question, it's where you have n different answers that don't really provide a lot of insight into any real answer. "Today's cool kids are pushing on into Functional Programming languages like Haskell, Erlang and Clojure."
ksteck has quit [Ping timeout: 264 seconds]
<baweaver> languages don't ever really die
<baweaver> see: COBOL, RPG
<baweaver> Where there's a line of production code, there's a way.
<Radar> acosonic: If anything, now is the time for new people to be getting into Ruby.
<Radar> There is a huge uptick in the amount of people using it and we're crying out for new developers.
<shevy> yeah they don't really die, but they can stagnate or lose out on new people adopting the language
bruno- has quit [Ping timeout: 240 seconds]
<Radar> At the meetup in Melbourne, we have 120 people attend. 15 of those people got up to say that their companies were hiring.
<Radar> I _constantly_ get asked if I am looking for more work.
<baweaver> People keep stealing the good ruby people before we can get them :/
<shevy> Radar are you looking for more work? :)
<baweaver> and that's in SF, the tech capital
<baweaver> already tried shevy ;)
<Radar> shevy: hells to the no
ereslibre has joined #ruby
RobertBirnie has joined #ruby
<acosonic> Radar: what kind of projects do you need developers for?
<baweaver> developing
<Radar> acosonic: Marketplace for bikes and bike accessories.
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
* Radar realises only now how much that sounds like "propane and propane accessories"
amclain has quit [Quit: Leaving]
<acosonic> Radar: well that's just one project, I tought you were reffering to something related to success of Ruby as a platform
tkuchiki has joined #ruby
<sevenseacat> ruby is already successful as a platform
dseitz has quit [Ping timeout: 264 seconds]
<Radar> acosonic: realestate.com.au is hiring a boatload of developers, as is redbubble and envato.
<baweaver> and Apple and Sony and Amazon and....
<Radar> Ruby is not dying.
<cscheib> even if you don't want to exclusively dev, everyone is either looking for ruby or python (or both) for sysadmin/devops/whatever-you-wanna-call it positions
<acosonic> Nah I run my own company, just want to see what are long-term plans to conquer digital world and take a peace of marketplace from PHP or Node.js
<sevenseacat> lol
devoldmx has quit [Remote host closed the connection]
<Radar> troll detected
<sevenseacat> that doesnt even make sense
<shevy> acosonic is github no success to you
* baweaver readies lazerz
<shevy> that dam lazerz
<shevy> well defended beaver home
<baweaver> dam right
pepperbreath1 has left #ruby [#ruby]
<Radar> wood you guys please stop it with the puns
<Radar> oh no I'm about to get ?guys
<Radar> I am sorry :(
<baweaver> ?guys
<ruboto> Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
* Radar dies
<sevenseacat> GAWD RADAR
<baweaver> first legit in a while
<sevenseacat> you should know better
* sevenseacat is mortally offended
* Radar should, but doesn't.
ruby[bot] has quit [Quit: leaving]
<baweaver> though me and shevy are male, so....
<shevy> baweaver time for aussie jokes!
<shevy> Arrrr
riotjones has joined #ruby
<shevy> ok, I can't come up with anything creative myself :(
<baweaver> They're aussies, that's already enough of a joke :P
ferhaty has joined #ruby
<shevy> haha
<jesterfraud> on a tenuously related note — I've seen a few writers always assuming females in writing... is there some kind of movement I missed there?
<Radar> acosonic: What do you mean to take a piece of marketplace from PHP or Node.js? Do you intend to create your own language?
Lycanii has joined #ruby
<Ox0dea> jesterfraud: They're likely just trying to redress the imbalance of the last few centuries.
<baweaver> mainly towards gender neutral terms than anything, though much into that and we should probably take it to #ruby-offtopic
<baweaver> Oh come now trolls, we gave you a perfectly good shot there.
<shevy> acosonic went silent
<jesterfraud> baweaver, could it be that... the internet is growing up?
<baweaver> jesterfraud: wouldn't that be something?
<shevy> jesterfraud I am educating 4chan!
<jesterfraud> I've clearly got my optimistic hat on
<acosonic> Radar: I loved the coffescript concept, I loved node.js so I clicked on that damn quora thread about ruby dying
<jesterfraud> although every time I go to change it, someone else has beaten me to it.
hs366 has joined #ruby
<baweaver> quora is a thinly veiled yahoo answers with extra layers of pretension on top
<shevy> hehe
<Radar> acosonic: ... that... that did not answer my question
opensource_ninja has quit [Remote host closed the connection]
<Radar> Are you channeling Kanye from last night? Are you about to announce a run for President also?
codenapper has joined #ruby
<sevenseacat> imma let you finish, but nodejs is the best language of all time?
<baweaver> haskell
<sevenseacat> baweaver: you misspelt ruby.
anisha has joined #ruby
<acosonic> Radar: seems like you are asking about my guidelines on how should ruby proceed, but I can't give you answer to that one. All I'm sure of is that people constantly need something "new and hot" regardless of it's logic, or logic behind it...
pawnbox_ has joined #ruby
<sevenseacat> thats not what hes asking at all
<Radar> lol
<Radar> acosonic: I don't even know what this conversation is about any more.
<Radar> high / drunk?
<shevy> acosonic is doing that on purpose :(
pawnbox has quit [Ping timeout: 265 seconds]
<baweaver> Radar: give me about a half hour
dionysus69 has joined #ruby
blarghlarghl has quit [Quit: Lost terminal]
chipotle has quit [Quit: cheerio]
konsolebox has joined #ruby
ndrei has quit [Ping timeout: 256 seconds]
Soda has quit [Remote host closed the connection]
<baweaver> acosonic: so are we going to get to the part where you out yourself as a troll?
<acosonic> shevy: I'm not I just wondered about your ideas for something like node.rb to spark some new & hot project
wldcordeiro__ has joined #ruby
<[spoiler]> Hello lovelies!
ndrei has joined #ruby
<sevenseacat> most of us are in the business of building software that works and is dependable, not 'new and hot'
konsolebox has quit [Max SendQ exceeded]
<certainty> moin moin
<baweaver> alo
<[spoiler]> sevenseacat: what's wrong with new and hot? :P
<sevenseacat> nothing, as long as it also works and is dependable first
<[spoiler]> Everything that's used in production was "new and hot" at some point
<baweaver> become a sysadmin and install all the new hotness
<baweaver> if you still have hair and aren't in the hospital from heart failure, I'll be impressed.
<[spoiler]> Lmao
<[spoiler]> I do work as a sys admin, I just said there's nothing wrong with new-n-hot
<baweaver> and you wonder how grey beards are made, they're forged in the fires of beta software hotness
<shevy> hmmmm losing hair...
<acosonic> I am a sysadmin department head, my company first had "work and reliable" honeywell systems, then they replaced it with PC, now they replaced PC with cloud... All I asked is shoudn't there be something like node.rb and I got trolling answers :)
techsethi has quit [Quit: techsethi]
<shevy> no that is not right
<shevy> your first action was a link
* cscheib gets his popcorn
<acosonic> shevy: well ok I admit that was trolling :|
<shevy> a real troll never admits to be trolling
bigredboots has joined #ruby
<Radar> acosonic: What would node.rb do?
<Radar> acosonic: what would node.rb do that node.js or Ruby in its current form doesn't do?
ereslibre has quit [Remote host closed the connection]
<shevy> acosonic well it's a difference over whether you have your own opinion or would just quote on opinions from others; for instance, a programming language I myself is really dying is Tcl
<[spoiler]> Radar: it would sound hipper then either node.js or ruby, you peasant
ereslibre has joined #ruby
<sevenseacat> Radar: something new and hot, duh.
<[spoiler]> ^
<acosonic> Radar: that's up to ruby community, since node.js is throwing new servers I guess it needs to do something else or different
<Radar> acosonic: ok, so you clearly have no idea further than a name. It's been fun talking. I've got work (in Ruby) to do.
<[spoiler]> Radar: not node.rb?
<baweaver> >> %w(sevenseacat Radar baweaver).sample + "! It's hammer time!"
<ruboto> baweaver # => "Radar! It's hammer time!" (https://eval.in/425836)
<Radar> hahaha
<sevenseacat> nice.
<baweaver> your up to bat mate
<baweaver> (which is technically correct as your or you're)
<baweaver> (english is fun!)
ohaibbq has joined #ruby
pawnbox has joined #ruby
<[spoiler]> baweaver, makes me think of this each time: https://www.youtube.com/watch?v=gzpBdJaaJTA
<Ox0dea> "Up" can correctly be used in pretty much every English tense.
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> s/tense/part of speech/
ruurd has joined #ruby
benlieb has quit [Quit: benlieb]
<baweaver> [spoiler]: what am I watching?
<[spoiler]> baweaver: excerpt from a film called "The Proposal"
<baweaver> well, yeah, still odded out
<[spoiler]> Oh
<[spoiler]> She starts singing "to the window, to the wall" song
arup_r has joined #ruby
rehat has joined #ruby
pawnbox_ has quit [Ping timeout: 264 seconds]
<[spoiler]> isn't that by McHammer?
<[spoiler]> Or M.C. Hammer, however you style it
<cscheib> no
<[spoiler]> Oh
<[spoiler]> I thought it was...
* [spoiler] silently joins #fail
<cscheib> I mean, maybe in one of his songs
lampshad_ has joined #ruby
lampshad_ has quit [Remote host closed the connection]
<cscheib> but it's more commonly known from the Lil John song
<[spoiler]> cscheib: Ah, then I screwed up
lampshad_ has joined #ruby
<cscheib> Lil Jon even
juanpablo_ has joined #ruby
khebbie has joined #ruby
<Ox0dea> Whose middle name is Mortimer.
<Ox0dea> Not quite as good as Gamaliel, but it's up there.
<cscheib> not all that great with Ruby, but I can contribute by discussing pop culture.
<Ox0dea> ¿Por que no los dos?
leat has quit [Remote host closed the connection]
lampshades has quit [Ping timeout: 264 seconds]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pawnbox has quit [Remote host closed the connection]
leat has joined #ruby
khebbie has quit [Ping timeout: 240 seconds]
<[spoiler]> cscheib: You'll get better at it! Everyone was crap at Ruby at some point
juanpablo_ has quit [Ping timeout: 246 seconds]
<Nilium> There's a cross spider outside my kitchen window. It's kind of neat, since I've never seen one before.
cabreraM516 has joined #ruby
jesterfraud has joined #ruby
<Ox0dea> Nilium: With what did you cross it?
<cscheib> Peter Parker
<Nilium> Nothing, but I'm expecting someone to walk into the thing later.
stan has joined #ruby
<Ox0dea> Huh, some of them even look like they've got something lashing the pieces of the crucifix together.
<Nilium> https://dl.dropboxusercontent.com/u/31892/IMG_0718.JPG ← Probably the biggest spider around my house aside from the wolf spider that was hiding behind my fridge.
<Ox0dea> Lashing: check.
hmnhf_ has joined #ruby
<shevy> Nilium that's a monster
hmnhf has quit [Ping timeout: 265 seconds]
<Nilium> It's outside the house and keeping the garden a bit cleaner, so it gets to stay.
<[spoiler]> Nilium: burn the continent
rbowlby has quit []
<[spoiler]> It looks so mean
<[spoiler]> All spiders look mean
<cscheib> I had to kill a spider that was in my doorway recently. Was a big bastard. I got really tired of running into the web every morning
<cscheib> gave him 2 months to pack it up, but he persisted.
<Nilium> The moment spiders are in my person space, it comes down to size and where the web is
<Nilium> Also how close to my bed they are
cabreraM516 has quit [Quit: Textual IRC Client: www.textualapp.com]
<cscheib> I generally try not to kill them, especially outdoors
<Nilium> *personal
<shevy> cscheib lol did you run into it with your mouth open?
<Nilium> At the office, I will basically leave all spiders alone and just shuffle them out onto my balcony
<sevenseacat> if a spider is in my vicinity, it gets dead, very fast.
<shevy> who would have known there are spider friends on #ruby
<Nilium> A lot of baby spiders keep lowering themselves onto my desk (and who knows how many directly into my hair), and I just move them to other peoples' cubicles
<cscheib> shevy: no, just had spider web all up in my dome every time I left the house
<Nilium> I figure sharing the love is important.
<Nilium> Obviously, I don't tell them they've got a new spider-baby-buddy but they'll appreciate it later.
<cscheib> I've never had a spider problem at an office
relix has joined #ruby
relix has quit [Remote host closed the connection]
<Nilium> Spiders have been something of a problem lately here. They're just now showing up all over the place.
<cscheib> close to water?
<Nilium> There's a lake within walking distance.
<Nilium> Within a couple days of the janitors cleaning off the balcony, at least eight reasonably large spiders will have set up webs.
<Nilium> I'm not even in Australia, so it's just weird.
<cscheib> I've observed that they seem to be worse close to large-ish bodies of water
<zenspider> ?ot
<ruboto> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
<zenspider> says the spider...
<baweaver> irony
<Nilium> I don't see any on-topic discussions, so motion declined.
<cscheib> ^^
<baweaver> >> "#\{}"
<ruboto> baweaver # => "\#{}" (https://eval.in/425858)
<baweaver> why does ruby do that?
<zenspider> why what?
<zenspider> or... which why?
<zenspider> :)
<baweaver> see the slash?
ta has quit [Remote host closed the connection]
<zenspider> yeah
<Nilium> He's asking why the escape moves to the #
<baweaver> magic
<zenspider> oh. it's arbitrary which one you're escaping
<zenspider> you have to lex "#{" to start an interpolation, so it doesn't matter which one you interrupt
<Nilium> >> "#{\}"
<ruboto> Nilium # => /tmp/execpad-9566926ecacd/source-9566926ecacd:2: syntax error, unexpected $undefined ...check link for more (https://eval.in/425861)
ruurd has quit [Quit: ZZZzzz…]
<Nilium> Unless it's the closing brace.
<zenspider> unclosed interpolation
<Nilium> i.e., it's not arbitrary which you escape
<zenspider> yes, it is.
baweaver has left #ruby [#ruby]
baweaver has joined #ruby
<Ox0dea> Nilium: It's arbitrary between the '#' and the '{'.
<Nilium> Listen, he wanted a stupid Ruby discussion, he's getting one.
<Ox0dea> ...?
<Nilium> We're going full on semantics here.
<shevy> the ruby parser is a thing of wickedness
<Nilium> More or less.
<zenspider> yes. yes it is.
<zenspider> go look at my code for proof. the bullshit I have to do...
<shevy> hehe
<cscheib> you just went full semantics, man. you never go full semantics.
<Nilium> It and Perl have a unique hatred of parsing.
<baweaver> >> ?a
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ruboto> baweaver # => "a" (https://eval.in/425862)
lulzmachine has joined #ruby
<baweaver> yep, that they do.
maletor has joined #ruby
<zenspider> Nilium: luckily ruby isn't as bad as perl (yet?)
<Nilium> I'm not sure.
<zenspider> I am
<Nilium> It doesn't have barewords, at least.
<zenspider> see ruby_parser for proof
<zenspider> you can't statically parse perl. you can statically parse ruby
<Nilium> It more depends on which Perl
<baweaver> Ox0dea: any other amazing ones off the top of your head?
<zenspider> mmm... I think that's true back to perl 4
<Ox0dea> As amazing as the teleporting backslash? Certainly not.
<zenspider> not sure. def perl 5
<Nilium> Problem is I can't say anything about Perl 6 'cause I don't even know if it works
<zenspider> ruby certainly has some seriously stupid shit in it tho
<Ox0dea> zenspider: What's the stupidest thing?
<Nilium> Your code ಠ_ಠ
<Ox0dea> Nilium: Are you salty about the '#{' lexeme or something?
<Nilium> No, I'm just remembering your code golfing.
bayed has joined #ruby
lampshades has joined #ruby
<Ox0dea> It wasn't golf.
<Nilium> I'm calling it code golfing because any other explanation terrifies me.
<shevy> eam collected things of ruby parser madness
<zenspider> def m(a=<<-EOD); a; end
<zenspider> wtf
<zenspider> EOD
<zenspider> that kills me
<acosonic> Ox0dea: VW golf 2 - best car ever
<Nilium> It bothers me that that one makes perfect sense to me due to shell scripting
pawnbox has joined #ruby
<zenspider> the argument is OUTSIDE the method definition. I die a little everytime I see that
<Nilium> It's awful if anyone does it, it's just that syntactically I understand it
lampshades has quit [Remote host closed the connection]
<Ox0dea> It's pretty gnarly, but that semantics for heredocs is occasionally pretty useful.
ruurd has joined #ruby
<Ox0dea> Ruby's test suite uses it liberally, at any rate.
lampshades has joined #ruby
<Nilium> e.g., (for i in {1..8} ; do cat <<EOF ; done) | tr -s 'w' 'b'¬woop¬EOF¬
bigredboots has quit [Remote host closed the connection]
ICantCook has quit [Quit: Leaving]
<zenspider> def m(a=<<-EOD, b=a*2); b; end
<zenspider> wtf
<zenspider> EOD
<zenspider> that's just fucking wrong
lampshad_ has quit [Ping timeout: 268 seconds]
<zenspider> here, I think this is a "better" example
<zenspider> def m(a=42, b=<<"EOD"); b; end
<zenspider> wtf #{a}
<zenspider> EOD
TvL2386 has joined #ruby
<zenspider> ok. gloving up and processing 4 trays of dehydrated hatch chiles
<Nilium> At least it doesn't have Python's wonky argument behavior
<zenspider> which?
ecnalyr has joined #ruby
pietr0_ has quit [Quit: pietr0_]
<[spoiler]> "the teleporting backslash" I am too scaed to google this
<[spoiler]> scared*
kidmillions has quit [Quit: kidmillions]
michael_mbp has quit [Excess Flood]
bronson has joined #ruby
crdpink2 has quit [Ping timeout: 244 seconds]
crdpink has joined #ruby
michael_mbp has joined #ruby
leat has quit [Remote host closed the connection]
Lucky__ has joined #ruby
ecnalyr has quit [Ping timeout: 244 seconds]
bronson has quit [Ping timeout: 256 seconds]
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 244 seconds]
MIGGER has joined #ruby
leat has joined #ruby
jas02 has joined #ruby
wldcordeiro__ has quit [Remote host closed the connection]
Voker57 has joined #ruby
<shevy> Hmm... In the old days, I used to have a website with on-hover-mouse highlighting upon wanting to select menu entries, through 2 different images in use - the default one, and then a highlighted variant of that image. Only recently did I find out that this can be done via javascript/jquery/css, through opacity... without having to use two different images. This I found to be rather mind boggling
ndrei has quit [Ping timeout: 240 seconds]
<zenspider> gah. so much chile dust in my nose
ndrei has joined #ruby
leat has quit [Remote host closed the connection]
chenillen has quit [Quit: chenillen]
nso95 has joined #ruby
rakm has joined #ruby
leat has joined #ruby
<Radar> chilli?
baweaver has quit [Remote host closed the connection]
nofxx has quit [Ping timeout: 240 seconds]
Voker57 has quit [Ping timeout: 255 seconds]
iateadonut has joined #ruby
iateadonut has quit [Client Quit]
nso95 has quit [Remote host closed the connection]
<quazimodo> chingy
<quazimodo> input
jgt3 has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
leat has quit [Remote host closed the connection]
<jhass> shevy: google "do a barrel roll", all CSS
rushed has quit [Quit: rushed]
ohaibbq has quit [Quit: Leaving...]
gagrio has joined #ruby
Iskarlar has joined #ruby
pawnbox has quit [Remote host closed the connection]
jellyjellyrobot has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DoubleMalt has joined #ruby
Voker57 has joined #ruby
jellyjellyrobot has quit [Max SendQ exceeded]
leat has joined #ruby
toretore has quit [Quit: This computer has gone to sleep]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
astrobunny has quit [Read error: Connection reset by peer]
jordanloky has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
astrobunny has joined #ruby
<zenspider> all I know is my nose is pissed off
matp_ has quit [Quit: Bye!]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rushed has joined #ruby
<zenspider> 60% done... hopefully I live through this
Iskarlar has joined #ruby
matp has joined #ruby
leat has quit [Remote host closed the connection]
leat has joined #ruby
techsethi has joined #ruby
ta has joined #ruby
Mon_Ouie has joined #ruby
jellyjellyrobot has joined #ruby
jellyjellyrobot has quit [Max SendQ exceeded]
jellyjellyrobot has joined #ruby
al2o3-cr has quit [Ping timeout: 272 seconds]
jellyjellyrobot has quit [Max SendQ exceeded]
jellyjellyrobot has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
jellyjellyrobot has quit [Max SendQ exceeded]
al2o3-cr has joined #ruby
jellyjellyrobot has joined #ruby
atomical has joined #ruby
ssd7 has joined #ruby
jellyjellyrobot has quit [Max SendQ exceeded]
siaw has joined #ruby
jellyjellyrobot has joined #ruby
jellyjellyrobot has quit [Max SendQ exceeded]
dgutierrez1287 has joined #ruby
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jellyjellyrobot has joined #ruby
jordanloky has joined #ruby
ta has quit [Remote host closed the connection]
JoshGlzBrk has joined #ruby
ta has joined #ruby
einarj has joined #ruby
farn has quit [Remote host closed the connection]
dgutierrez1287 has quit [Ping timeout: 240 seconds]
jellyjellyrobot has quit [Client Quit]
lampshad_ has joined #ruby
Silox| has joined #ruby
devoldmx has joined #ruby
lampshades has quit [Ping timeout: 265 seconds]
chussenot has joined #ruby
jgt3 has quit [Ping timeout: 265 seconds]
<zenspider> gah
<adaedra> buh
pawnbox has joined #ruby
<apeiros> moin
PaulVern has joined #ruby
ferhaty has quit []
<PaulVern> What am I missing here: http://paste.ofcode.org/dAhfECBXAmDrggxMuvpqZg
devoldmx has quit [Ping timeout: 246 seconds]
<PaulVern> expected output is 0 1
<PaulVern> I'm getting 2 lines of 0
<zenspider> not understanding scoping of local vars
<zenspider> class, module, and def are all boundaries that local vars can't cross
<PaulVern> ah
<PaulVern> there's no way to manipulate variables outside the def ?
<zenspider> you want to use a global, instance variable, a class instance var, or a class var
<zenspider> I vote instance variable, but your code is too abstract to actually suggest anything
<adaedra> ewww global
<jhass> you don't actually want to use a global. ever.
<sp_> I do wish people used gist, I hate having to navigate to my browser to read their code.
<zenspider> mmmm dogma
<jhass> I'm not saying never use global state
<sevenseacat> I just don't click any links that come through that aren't gists, or other trusted sites.
lampshad_ has quit [Remote host closed the connection]
<jhass> PaulVern: also consider def update_current(current); current + 1; end; current = 0; current = update_current(current)
jalnt has joined #ruby
einarj has quit [Read error: Connection reset by peer]
MIGGER has quit [Quit: Page closed]
tesuji has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
jellyjellyrobot has joined #ruby
farn has joined #ruby
<PaulVern> jhass: Thanks
<PaulVern> what's wrong with globals? lol
jellyjellyrobot has quit [Max SendQ exceeded]
<PaulVern> I'll try gist next time
<zenspider> nothing... just dogma
leat has quit [Remote host closed the connection]
jellyjellyrobot has joined #ruby
araujo_ has joined #ruby
<PaulVern> I like privacy aspects of pasteofcode.org
leat has joined #ruby
jellyjellyrobot has quit [Max SendQ exceeded]
cnngimenez has quit [Ping timeout: 260 seconds]
tvw has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> PaulVern: as always, c2 is a good resource for discussions of such topics: http://c2.com/cgi/wiki?GlobalVariablesAreBad
<zenspider> afraid we'll steal your ideas?
k3asd` has joined #ruby
<jhass> 90% of the global usage I've seen was actually a constant, the rest could've been hidden/scoped into your library module as a module level instance var with accessors
<apeiros> it's not ruby centric, so not everything may apply to ruby
jellyjellyrobot has joined #ruby
<jhass> there's no need to contend on the globals namespace
<apeiros> PaulVern: in general, you want to restrict visibility of data as much as possible
jellyjellyrobot has quit [Max SendQ exceeded]
oo_ has quit [Remote host closed the connection]
<PaulVern> Thanks, I'll give that link a read
araujo has quit [Ping timeout: 255 seconds]
jellyjellyrobot has joined #ruby
jellyjellyrobot has quit [Max SendQ exceeded]
jellyjellyrobot has joined #ruby
oo_ has joined #ruby
jellyjellyrobot has quit [Max SendQ exceeded]
jellyjellyrobot has joined #ruby
michael_mbp has quit [Excess Flood]
Cust0sLim3n has quit [Ping timeout: 265 seconds]
michael_mbp has joined #ruby
jellyjellyrobot has quit [Client Quit]
jgt3 has joined #ruby
bstrarm has joined #ruby
howdoi has joined #ruby
PaulVern has quit [Ping timeout: 244 seconds]
bustrarm has quit [Ping timeout: 250 seconds]
juanpablo_ has joined #ruby
jas02 has quit [Ping timeout: 255 seconds]
DiscoM_ has left #ruby [#ruby]
banister has joined #ruby
Cust0sLim3n has joined #ruby
astrobun_ has quit [Remote host closed the connection]
zacts has quit [Read error: Connection reset by peer]
eightfold has joined #ruby
TheHodge has joined #ruby
araujo_ has quit [Quit: Leaving]
zacts has joined #ruby
juanpablo_ has quit [Ping timeout: 244 seconds]
fretted has joined #ruby
bluOxigen has quit []
jas02 has joined #ruby
marr has joined #ruby
Hounddog has joined #ruby
roxtrong_ has joined #ruby
wildlander has joined #ruby
ta has quit [Remote host closed the connection]
ta has joined #ruby
sysanthrope has quit [Quit: No Ping reply in 180 seconds.]
araujo has joined #ruby
deepthought42 has joined #ruby
<zenspider> ah. the quiet hour where the distractions stop and I can finish things :P
leafybasil has quit [Remote host closed the connection]
<apeiros> zenspider: shush! back to work!
<apeiros> ;-)
_vision has quit [Ping timeout: 260 seconds]
sysanthrope has joined #ruby
roxtrong_ has quit [Ping timeout: 244 seconds]
ElderFain has quit [Max SendQ exceeded]
hawkface has quit [Ping timeout: 265 seconds]
redmaverick has joined #ruby
choke has joined #ruby
_vision has joined #ruby
banister has left #ruby [#ruby]
_vision is now known as Guest43268
banisterfiend has joined #ruby
ElderFain has joined #ruby
ElderFain has quit [Changing host]
ElderFain has joined #ruby
choke has quit [Client Quit]
banisterfiend is now known as sdfsdf
<sdfsdf> .
sdfsdf is now known as banisterfiend
<adaedra> trying new nicks?
jds has joined #ruby
einarj has joined #ruby
einarj has quit [Remote host closed the connection]
einarj has joined #ruby
chthon has joined #ruby
astrobun_ has joined #ruby
dumdedum has joined #ruby
sevenseacat has quit [Quit: .]
ferhaty has joined #ruby
psy_ has quit [Ping timeout: 264 seconds]
skade has joined #ruby
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<yorickpeterse> morning
ecnalyr has joined #ruby
<[spoiler]> yorickpeterse: morning <3></3>
davedev24 has joined #ruby
Voker57 has quit [Read error: Connection reset by peer]
aspiers has joined #ruby
HoloIRCUser1 has joined #ruby
HoloIRCUser1 has quit [Remote host closed the connection]
crazydiamond has joined #ruby
akemrir has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
ecnalyr has quit [Ping timeout: 246 seconds]
[k- has joined #ruby
postmodern has quit [Quit: Leaving]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<yorickpeterse> You're going to keep doing that forever now aren't you?
<ljarvis> moin
<ljarvis> 'grats, yorickpeterse
Iskarlar has joined #ruby
<yorickpeterse> ty
<yorickpeterse> I'll be joining the work-from-home nerds club soon
RobertBirnie has quit [Quit: Textual IRC Client: www.textualapp.com]
ruurd has quit [Quit: ZZZzzz…]
quazimodo has quit [Ping timeout: 246 seconds]
PaulVern has joined #ruby
michael_mbp has quit [Excess Flood]
platzhirsch has joined #ruby
bluOxigen has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
platzhirsch has left #ruby [#ruby]
tvw has quit [Remote host closed the connection]
Pumukel has joined #ruby
michael_mbp has joined #ruby
lokulin has quit [Ping timeout: 250 seconds]
<maloik> congrats!
lokulin has joined #ruby
txdv has left #ruby [#ruby]
deepthought42 has quit []
pawnbox has quit [Remote host closed the connection]
solars has joined #ruby
pawnbox has joined #ruby
fretted has quit [Ping timeout: 246 seconds]
fretted has joined #ruby
<[spoiler]> yorickpeterse: hahaha :D
<[spoiler]> Ooh nice! Do you want to be a work-from-home nerd? I could work from home but I prefer coming to the office
<[spoiler]> It's like the only people I see
maverick9 has joined #ruby
pandaant has joined #ruby
lampshades has joined #ruby
arup_r has quit [Remote host closed the connection]
TvL2386 has quit [Ping timeout: 252 seconds]
lampshades has quit [Remote host closed the connection]
arup_r has joined #ruby
rdark has joined #ruby
arup_r has quit [Remote host closed the connection]
leafybasil has joined #ruby
<apeiros> it'd be nice if Hash#fetch would yield the same as Hash#default_proc (hash + key) instead of just the key :(
PaulVern has quit [Ping timeout: 268 seconds]
eGGsha has joined #ruby
pawnbox has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
<yorickpeterse> [spoiler]: I hate offices
<apeiros> oh, wow, TIL
<apeiros> >> (1+2i).class
<ruboto> apeiros # => Complex (https://eval.in/425930)
<apeiros> didn't know we had a literal for this too now
platzhirsch has joined #ruby
<yorickpeterse> Yeah, there's i, r and another one IIRC
<yorickpeterse> oh hm, I think it's only i and r
<apeiros> I knew about r
<apeiros> but I either didn't know about i, or I forgot :D
<yorickpeterse> I see what you did there
mikenovikov has quit [Ping timeout: 244 seconds]
<yorickpeterse> I mean
<yorickpeterse> i see what you did there
banister has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
TvL2386 has joined #ruby
atzorvas has quit [Read error: Connection reset by peer]
suchness has joined #ruby
jordanloky has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<[spoiler]> Lol
pawnbox has joined #ruby
troulouliou_div2 has joined #ruby
bnizzle has left #ruby [#ruby]
<Ox0dea> >> 2ri
lulzmachine has quit [Quit: Connection closed for inactivity]
workmad3 has joined #ruby
<ruboto> Ox0dea # => (0+(2/1)*i) (https://eval.in/425935)
<Ox0dea> yorickpeterse: That might've been the other you had in mind?
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> errr, what? Thread#pop == Thread#shift? the fuck?
oo_ has joined #ruby
nhhagen has joined #ruby
<apeiros> anyway, lunch time. rant time is later.
<[spoiler]> it is?
<apeiros> docs say so
<[spoiler]> wat
<adaedra> &ri LunchTime RantTime
<`derpy> No results
<adaedra> Doc says nothing about that!
<Ox0dea> ri Thread#shift
marjory has quit [Ping timeout: 244 seconds]
<Ox0dea> What the heck did apeiros mean?!
<[spoiler]> Lol!
<Ox0dea> Even if he meant ThreadGroup, that class doesn't have #shift and #pop either.
<Ox0dea> I suppose he must've meant Queue.
khebbie has joined #ruby
oo_ has quit [Remote host closed the connection]
<flughafen> shevy: any flughafen jokes today?
BTRE has joined #ruby
<[spoiler]> Ox0dea: I think he meant another class and had a mental typo
mikenovikov has joined #ruby
Azure has quit [Ping timeout: 256 seconds]
<Ox0dea> >> Queue # [spoiler]
<ruboto> Ox0dea # => Thread::Queue (https://eval.in/425939)
<Ox0dea> I'm sure that explains it.
<[spoiler]> Ooh good catch
arup_r has joined #ruby
<Ox0dea> It's unclear why you'd want to use a Queue as a stack, so it makes sense that removing from the back isn't a provided operation.
<Ox0dea> Probably best to use the more conventional #enq and #deq, in any case.
<[spoiler]> Yeah. The order in which you read from an async queue shouldn't matter
eGGsha is now known as eGGshke
eGGshke is now known as eGGsha
<Ox0dea> "Just gimme one."
* [spoiler] gives Ox0dea a cookie.
<adaedra> ?cookie
<ruboto> here's your cookie:
eGGsha is now known as eGGshke
f4cl3y__ has quit [Quit: Leaving]
<Ox0dea> Das ist nicht eine async event!
<Ox0dea> Definitely tastier, though. Danke!
<adaedra> Bitte
northfurr has joined #ruby
jonnie has joined #ruby
devoldmx has joined #ruby
<yorickpeterse> Ox0dea: *i is a literal?
<yorickpeterse> >> 10*i
<ruboto> yorickpeterse # => undefined local variable or method `i' for main:Object (NameError) ...check link for more (https://eval.in/425947)
<yorickpeterse> oh, ri?
<yorickpeterse> wtf
<yorickpeterse> >> 10ri.class
<ruboto> yorickpeterse # => Complex (https://eval.in/425949)
<yorickpeterse> wut
<Ox0dea> Why not?
<yorickpeterse> >> 10ir
<ruboto> yorickpeterse # => /tmp/execpad-9fe5e5bf5032/source-9fe5e5bf5032:2: syntax error, unexpected tIDENTIFIER, expecting key ...check link for more (https://eval.in/425950)
<yorickpeterse> right
ruurd has joined #ruby
<Ox0dea> I think Clojure put the 'r' affix to better use.
TerryOQuinnProfX has joined #ruby
marjory has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
autrilla has joined #ruby
<[spoiler]> Ox0dea: too lazy to google, please indulge me
<Ox0dea> [spoiler]: (= 2r100 3r11 4r10)
<Ox0dea> 'r' here indicating "radix", to clarify.
<[spoiler]> is that like 2/100 4/11 4/10?
<[spoiler]> ah
pawnbox has quit [Remote host closed the connection]
bronson has joined #ruby
<Ox0dea> Nah, just nicer alternate base literals.
jenrzzz has joined #ruby
ferhaty has quit []
TerryOQuinnProfX has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
yashinbasement has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
allcentury has joined #ruby
oo_ has joined #ruby
* Ox0dea wonders if those can be matched cleanly with a single regular expression.
<Ox0dea> The Clojure syntax highlighting that ships with Vim just loops to generate rules for all 35 possible bases. :(
bronson has quit [Ping timeout: 264 seconds]
towski_ has joined #ruby
juanpablo_ has joined #ruby
stan has quit [Quit: Leaving]
allcentury has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
towski_ has quit [Remote host closed the connection]
<apeiros> Ox0dea: whoops, Thread::*Queue*
<apeiros> I accidentally a word :<
jokke has quit [Quit: WeeChat 1.2]
<adaedra> tssk.
<apeiros> ah, I see you figured :D
juanpablo_ has quit [Ping timeout: 252 seconds]
<apeiros> [spoiler]: yes, order matters. I want FIFO.
eGGshke is now known as eGGsha
<apeiros> otherwise work can get "burried"
<[spoiler]> hmm
<[spoiler]> good point
majjoha has quit [Ping timeout: 256 seconds]
rodfersou has joined #ruby
ByronJohnson has quit [Ping timeout: 240 seconds]
<Ox0dea> apeiros: But that's exactly what Thread::Queue gives you?
<apeiros> Ox0dea: yes
<Ox0dea> apeiros: Would you ever want the inverse?
senayar has joined #ruby
<apeiros> Ox0dea: "thread does not give me what I need" is not the wtf there :)
<apeiros> the wtf is that two methods which traditionally read from the opposite ends read from the same end
Iskarlar has joined #ruby
<apeiros> IMO Queue#pop should just not exist
<Ox0dea> Why not #shift? :P
<apeiros> or do what its name suggests (LIFO)
<apeiros> because there's no #unshift
meph has joined #ruby
<apeiros> but there's #push and #<<
<Ox0dea> Fair enough, actually.
jeadre has joined #ruby
<apeiros> the current naming is IMO misleading
<Ox0dea> Why do you hate #enq and #deq?
<apeiros> from what do you infer I hate them? :)
<Ox0dea> Your implied disinterest in using them?
<apeiros> I dislike them in that they don't imply order. push/shift do.
<[spoiler]> He didn't tbf
jokke- has joined #ruby
<apeiros> but I don't hate them.
<yorickpeterse> Per dhh it should be called #take_a_message_in_semi_random_Order
<Ox0dea> apeiros: But Thread::Queue has a sort of "implicit order" in this case.
<yorickpeterse> minus the capitals
<Ox0dea> I can't get Thread::Queue to give me messages out of order...
<apeiros> Ox0dea: yes. but why have new terminology if there exists perfectly fitting terminology already?
Rickmasta has joined #ruby
<[spoiler]> generally a *queue* should just be FIFO anyway. I can't fathom why you'd need the reverse
ferhaty has joined #ruby
<Ox0dea> apeiros: "Enqueue" and "dequeue" see pretty widespread usage.
davedev24 has quit [Remote host closed the connection]
<[spoiler]> That would defeat the purpose of the name queue ihmo
<[spoiler]> imho*
stamina has joined #ruby
maverick9 has quit []
choke has joined #ruby
<apeiros> Ox0dea: all usages with the implied order?
<apeiros> because I don't think that's the case
<Ox0dea> Queue == FIFO.
jgt3 has quit [Ping timeout: 256 seconds]
<apeiros> enq/deq makes more sense than push/shift to me with e.g. a priorityqueue
<apeiros> which only are FIFO with regards to the same priority
<Ox0dea> Sure, but Thread::Queue *is* a FIFO, pending yorickpeterse's linking to where DHH proved otherwise.
choke has quit [Client Quit]
<apeiros> and then deq means "give me the first of the highest priority"
eightfold_ has joined #ruby
neanderslob has quit [Quit: No Ping reply in 180 seconds.]
<yorickpeterse> :P
<yorickpeterse> we need clearer method names!
<yorickpeterse> String#to_s becomes String#copy_current_string
<yorickpeterse> and .new shall be renamed to .create_new_instance_of_class
<yorickpeterse> ᕕ(ᐛ)ᕗ
neanderslob has joined #ruby
<apeiros> yorickpeterse is the happy walker
eightfold has quit [Ping timeout: 246 seconds]
eightfold_ is now known as eightfold
<[spoiler]> initialize should be `prepare_new_instance_of_class_for_usage`
<apeiros> are you related to adrien brody? :D
UtkarshRay has quit [Remote host closed the connection]
<apeiros> a day in yorickpeterse's life: https://www.youtube.com/watch?v=ygI-2F8ApUM ^^
benlovell has joined #ruby
<yorickpeterse> what kind of terrible bedroom is that
<[spoiler]> LMFAO
<yorickpeterse> fake gold plated walls...really?
<yorickpeterse> the suit might as well be fake while we're at it
<[spoiler]> Oh man I am dying this video is perfect
jgt3 has joined #ruby
deepthought42 has joined #ruby
deepthought42 has quit [Client Quit]
michele has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
<michele> hi there, I have an Array with three sets inside (L = [set1, set2, set3])
<michele> I want to: set1 & set2 & set3
<michele> So I did: L.map(&)
<michele> however, it does not work
<michele> how should I do that?
jenrzzz has joined #ruby
ByronJohnson has joined #ruby
<suchness> michele: You might use inject
<suchness> L.inject(L.first) {|result, item| result & item}
<michele> works :)
ecnalyr has joined #ruby
<michele> how come map is not suitable for that? because it applies '&' to every single element whilst inject applies to all the collection ?
<adaedra> .inject(&:&) no?
<suchness> adaedra: Not sure if that would work without a starting element to build on.
<[spoiler]> michele: inject runs "between" (unjects between them) elements, and map runs *on* single elements
<michele> L.inject(:&) works
<suchness> Neat
<michele> thanks :)
radgeRayden_ has joined #ruby
<suchness> I wonder how it determines what to start with, I'll have to look at the docs.
benlovell has quit [Read error: Connection reset by peer]
<adaedra> suchness: If you do not explicitly specify an initial value for memo, then the first element of collection is used as the initial value of memo.
<suchness> michele: Sure thing
<adaedra> (from the doc)
<suchness> adaedra: Ah, thats good to know, I had no idea. I have been writing my injects long hand it seems.
wildlander has quit [Quit: Saliendo]
<wasamasa> apeiros: what's up with that video
<wasamasa> apeiros: I don't get it at all
<wasamasa> apeiros: why is it even that specific actor
<apeiros> wasamasa: don't worry. that's ok.
ByronJohnson has quit [Ping timeout: 264 seconds]
<adaedra> >trying to understand the internet
<[spoiler]> wasamasa: you don't need to know. You just need to accept
ruurd has quit [Quit: ZZZzzz…]
mprelude has joined #ruby
majjoha has joined #ruby
radgeRayden has quit [Ping timeout: 268 seconds]
ecnalyr has quit [Ping timeout: 250 seconds]
scripore has joined #ruby
jalnt has quit [Ping timeout: 244 seconds]
benlovell has joined #ruby
techsethi has quit [Quit: techsethi]
jokke- is now known as jokke
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ByronJohnson has joined #ruby
phutchins has joined #ruby
Iskarlar has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
s2013 has joined #ruby
jokke has quit [Disconnected by services]
chussenot has quit [Quit: chussenot]
ByronJohnson has quit [Ping timeout: 256 seconds]
jokke- has joined #ruby
oo_ has quit [Remote host closed the connection]
neanderslob has quit [Quit: No Ping reply in 180 seconds.]
user1138 has joined #ruby
gizmore has joined #ruby
arian0n has quit [Ping timeout: 246 seconds]
arian0n has joined #ruby
neanderslob has joined #ruby
oo_ has joined #ruby
radgeRayden_ has quit [Ping timeout: 255 seconds]
lampshades has joined #ruby
lampshades has quit [Remote host closed the connection]
jgt3 has quit [Ping timeout: 240 seconds]
lampshades has joined #ruby
hackeron_ has joined #ruby
TvL2386 has quit [Ping timeout: 252 seconds]
majjoha has quit [Ping timeout: 244 seconds]
neanderslob has quit [Client Quit]
hackeron has quit [Ping timeout: 264 seconds]
khebbie has quit [Remote host closed the connection]
neanderslob has joined #ruby
sepp2k has joined #ruby
Squarepy has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
neanderslob has quit [Client Quit]
davedev24 has joined #ruby
Gnomethrower has quit [Read error: Connection reset by peer]
eGGsha is now known as eGGshke
livathinos has joined #ruby
neanderslob has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
p8952 has quit [Quit: ZNC - http://znc.in]
TvL2386 has joined #ruby
neanderslob has quit [Quit: No Ping reply in 180 seconds.]
codecop has joined #ruby
charliesome has joined #ruby
roadt has quit [Ping timeout: 252 seconds]
sdothum has joined #ruby
neanderslob has joined #ruby
eGGshke is now known as eGGsha
ByronJohnson has joined #ruby
stan has joined #ruby
Kallis has joined #ruby
Kallis has quit [Max SendQ exceeded]
<shevy> flughafen no flughafen jokes today, it's too hot to take off
khebbie has joined #ruby
messysaurus has joined #ruby
<flughafen> i haven't been outside since this morning shevy , i dind't see it's 31
<flughafen> yay klima!
khebbie has quit [Remote host closed the connection]
techsethi has joined #ruby
ruurd has joined #ruby
Akagi201 has joined #ruby
Mendenhall has quit [Ping timeout: 250 seconds]
benlovell has quit [Ping timeout: 268 seconds]
dgutierrez1287 has joined #ruby
Kallis has joined #ruby
ferhaty has quit []
My_Hearing has joined #ruby
fretted has quit [Quit: Leaving]
neanderslob has quit [Ping timeout: 272 seconds]
jgt3 has joined #ruby
banister has joined #ruby
rodferso1 has joined #ruby
rodfersou has quit [Ping timeout: 250 seconds]
chussenot has joined #ruby
ruby-lang991 has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Spami has joined #ruby
Gnomethrower has joined #ruby
Gnomethrower has quit [Changing host]
Gnomethrower has joined #ruby
Gnomethrower has quit [Max SendQ exceeded]
Gnomethrower has joined #ruby
Gnomethrower has quit [Changing host]
Gnomethrower has joined #ruby
aspiers has quit [Ping timeout: 240 seconds]
meph has quit [Quit: Leaving.]
benlovell has joined #ruby
ruby-lang477 has joined #ruby
<ruby-lang477> is there a way to get index of key in hash ?
northfurr has quit [Quit: northfurr]
<jhass> you're probably using the wrong datatstructure or algorithm if you have that desire
<jhass> ?xy
<ruboto> it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
ruby-lang991 has quit [Ping timeout: 246 seconds]
Iskarlar has joined #ruby
<apeiros> hash.keys.index(key) # but seriously, what jhass said. this is a strong code smell.
szarubin has joined #ruby
messysaurus has quit [Remote host closed the connection]
pythonix has joined #ruby
syath has joined #ruby
jellyjellyrobot has joined #ruby
PaulVern has joined #ruby
leat has quit [Remote host closed the connection]
leat has joined #ruby
Galaxy83 has joined #ruby
atomical has joined #ruby
allcentury has joined #ruby
aspiers has joined #ruby
tesuji has quit [Ping timeout: 240 seconds]
m1lt0n has joined #ruby
szarubin has quit [Quit: Leaving]
majjoha has joined #ruby
michele has left #ruby ["WeeChat 1.3"]
messysaurus has joined #ruby
juanpablo_ has joined #ruby
devoldmx has joined #ruby
m1lt0n has quit [Client Quit]
Ropeney has joined #ruby
lele|w has quit [Ping timeout: 250 seconds]
p8952 has joined #ruby
pythonix has quit [Ping timeout: 260 seconds]
ramadoka has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 240 seconds]
<Galaxy83> Hi guys.. I need to decide a very simple (and maybe stupid) decision - but for some reason it won't let me go: https://gist.github.com/anonymous/bc66831b12a71ce877eb
dionysus69 has quit [Ping timeout: 265 seconds]
juanpablo_ has quit [Ping timeout: 268 seconds]
PaulVern has quit [Quit: Leaving]
yfeldblum has quit [Ping timeout: 246 seconds]
anisha has quit [Quit: Leaving]
benlovell has quit [Ping timeout: 252 seconds]
<[spoiler]> Galaxy83: is this a singleton?
jellyjellyrobot has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> the latter
<canton7> seems bad to have a singleton owning a db resource
<canton7> why can't they instantiate MyGem?
<[spoiler]> that too ^
astrobun_ has quit [Remote host closed the connection]
majjoha has quit [Ping timeout: 260 seconds]
<jhass> actually
<jhass> ?fake
<ruboto> Please show your real code to illustrate your problem. Using fake code often hides it or won't bring up the best possible solution.
<Galaxy83> No. Not a singleton. This will run only as the app is starting
<canton7> as in.. why are you forcing them to call 'MyGem.do_action' rather than 'mygem = MyGem.new; mygem.do_actoin'?
ferhaty has joined #ruby
techsethi has quit [Quit: techsethi]
benlovell has joined #ruby
<[spoiler]> Galaxy83: read what Mr. Ruboto said
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dorei has joined #ruby
jonnie has quit [Ping timeout: 240 seconds]
lele|w has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
skade has joined #ruby
patrick_star has quit [Ping timeout: 264 seconds]
Kallis has quit [Read error: Connection reset by peer]
<Galaxy83> The real code is almost identical. The db_resource is actually a Redis gem and do action will get/set a row. The app will start, call MyGem.do_action 50-100 times (but never inside a loop) and never run again until app restart
ndrei has quit [Ping timeout: 252 seconds]
casadei has joined #ruby
<jhass> you really should allow the app to provide the redis instance
<jhass> def self.do_x(redis=Redis.new)
Pumukel has quit [Remote host closed the connection]
<Galaxy83> but i want to make the Gem's implementation as simple as posible
ndrei has joined #ruby
dhjondoh has joined #ruby
Silox| has quit [Quit: Connection closed for inactivity]
<[spoiler]> Galaxy83: what you did is not a step in that direction
Quandl has joined #ruby
techsethi has joined #ruby
<[spoiler]> Galaxy83: people will need to go to hackish lengths to change the redis instance if they wish to do so
Cust0sLim3n has quit [Ping timeout: 240 seconds]
uri_ has joined #ruby
<Galaxy83> the redis config will be configured in the Gem's config file
<shevy> Galaxy83 there is absolutely zero need to have to require an user to use two method calls when a single one could suffice
<Galaxy83> or the Gem's config hash
meatherly has joined #ruby
<Galaxy83> shevy - if option 1 - then the method will be called only once in the beginning of the program.
Queeniebee has quit [Ping timeout: 256 seconds]
<Galaxy83> the real question i guess: how costly is ||= ?
ecnalyr has joined #ruby
jdawgaz has joined #ruby
skade has quit [Ping timeout: 265 seconds]
<[spoiler]> Galaxy83: not very :/
* apeiros blinks
<[spoiler]> Lol
<apeiros> Galaxy83: are you *sure* the cost of ||= is a concern?
avril14th has joined #ruby
<apeiros> (besides that `a ||= b`'s cost is probably more dictated by the specific expressions which make up a & b than ||= itself…)
<Galaxy83> apeiros: thats why i'm here. I prefer second option since then the user will deal only with one method
<darix> that if nil should be rather cheap no?
khebbie has joined #ruby
<apeiros> Galaxy83: that's rather unrelated to what I said
k3asd` has quit [Ping timeout: 265 seconds]
<apeiros> Galaxy83: how about you benchmark it
<apeiros> once with ||=, once with dedicated init
khebbie has quit [Remote host closed the connection]
Cust0sLim3n has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
<apeiros> but the full method
ndrei has quit [Ping timeout: 240 seconds]
patrick_star has joined #ruby
eGGsha is now known as eGGshke
lkba has joined #ruby
roxtrong_ has joined #ruby
uri__ has joined #ruby
Akagi201 has quit [Ping timeout: 246 seconds]
ndrei has joined #ruby
ecnalyr has quit [Ping timeout: 244 seconds]
hawkface has joined #ruby
jgt3 has quit [Ping timeout: 264 seconds]
<Galaxy83> I will benchmark it later.. But if you had to choose (intuitively/ruby way/user friendliness/whatever) - what would you choose (question to everyone who read the original question)
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<[spoiler]> Galaxy83: probably the second way, but ideally it should be instance + do action
<Galaxy83> thank you [spoiler]
eGGshke is now known as eGGsha
roxtrong_ has quit [Ping timeout: 246 seconds]
allcentury has quit [Ping timeout: 265 seconds]
<Galaxy83> that's 3 for second and 0 for first. I think we have a winner. Thanks guys.
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> ?guys Galaxy83
<ruboto> Galaxy83, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
linduxed has joined #ruby
<apeiros> I better don't make it 3:1 then? :)
jonnie has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
<apeiros> *iff* it's a method without any params and there's no point in state, then I prefer MyModule.do_stuff!
ferhaty has quit []
<apeiros> maybe s/iff/if/, not sure.
<avril14th> good morning, has anyone had success using mongoid 5 gem?
sevenseacat has joined #ruby
havenwood has joined #ruby
jonnie has quit [Ping timeout: 246 seconds]
<Galaxy83> Let's not make an issue out of it... I'm not a native eng speaker but I've watched enough shows/movies to hear a lot of times that someone was relating to a group of people as "guys" even when there were females/other in that group.
s2013 has joined #ruby
<apeiros> Galaxy83: we don't make in issue of it. we gently tell you.
<apeiros> Galaxy83: what you make of it is where it's at
<havenwood> good mornin'
<apeiros> moin havenwood
<shevy> havenwood did you have a coffee yet
<havenwood> shevy: nope! beware...
jonnie has joined #ruby
auzty has quit [Quit: Leaving]
<havenwood> shevy: thanks for reminding me, I'll fix that! :D
<shevy> yeah keep that error rate down with more coffee!
khebbie has joined #ruby
dawkirst has joined #ruby
sarkyniin has joined #ruby
khebbie_ has joined #ruby
charliesome has joined #ruby
majjoha has joined #ruby
kljds has quit [Quit: WeeChat 1.3]
cornerma1 has joined #ruby
meatherly has quit []
juanpablo_ has joined #ruby
khebbie has quit [Ping timeout: 264 seconds]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cornerman has quit [Ping timeout: 246 seconds]
allcentury has joined #ruby
cornerma1 is now known as cornerman
charliesome has quit [Ping timeout: 265 seconds]
Galaxy83 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
juanpablo_ has quit [Ping timeout: 250 seconds]
Iskarlar has joined #ruby
enebo has joined #ruby
Galaxy83 has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JoshL has joined #ruby
bmurt has joined #ruby
khebbie has joined #ruby
mikenovikov has quit [Quit: Textual IRC Client: www.textualapp.com]
rails528 has joined #ruby
Soda has joined #ruby
Rickmasta has joined #ruby
Soda has quit [Read error: Connection reset by peer]
khebbie_ has quit [Ping timeout: 256 seconds]
khebbie has quit [Remote host closed the connection]
khebbie has joined #ruby
<shevy> hmm
<shevy> is open-uri slow?
jxpx777 has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
lkba has quit [Read error: Connection reset by peer]
allcentury has quit [Ping timeout: 240 seconds]
s00pcan has quit [Ping timeout: 244 seconds]
Guest50 has joined #ruby
<oddmunds> shevy: open-uri seemed almost broken to me last night
<adaedra> define "slow"
<oddmunds> but i assumed the error was elsewhere
enebo has quit [Quit: enebo]
codenapp_ has joined #ruby
<shevy> oddmunds hmm
<oddmunds> seems to be ok now
<oddmunds> i think my app is just very brittle
s00pcan has joined #ruby
<shevy> I guess I may download a big page... since I need only information from the ~middle I should perhaps stop the moment I have the required information rathern than continue to slurp
robh71 has joined #ruby
izzol has joined #ruby
<izzol> jefus:
<izzol> ahh sorry.
Voker57 has joined #ruby
<izzol> I'm looking some good solution for the queue system. I simply want to send some command to the queue and then I want to execute it by some sort of scheduler.
codenapper has quit [Ping timeout: 272 seconds]
<oddmunds> shevy: should you happen upon a technique that will let you read "files" over internet from the end to start, i would be interested :)
dstarh has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
troulouliou_div2 has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
michael_mbp has quit [Excess Flood]
pyo_ has joined #ruby
Dreamer3 has quit [Remote host closed the connection]
pyo_ has quit [Max SendQ exceeded]
michael_mbp has joined #ruby
psycho_one has joined #ruby
techsethi has quit [Quit: techsethi]
khebbie has quit [Remote host closed the connection]
nhhagen has quit [Remote host closed the connection]
majjoha has quit [Ping timeout: 240 seconds]
nhhagen has joined #ruby
charliesome has joined #ruby
allcentury has joined #ruby
Cust0sLim3n has quit [Ping timeout: 268 seconds]
<shevy> oddmunds hmm guess the packets are sent first from top to bottom
apt-get_ has joined #ruby
<shevy> I have two small scripts that feed info on the commandline; the first one tells me the local weather in celsius; the other one returns a number about some gem-statistics... the latter perhaps somewhere has hidden some json data for that... if I could only be bothered to find it, but it's way too hot to code really...
lkba has joined #ruby
skade has joined #ruby
marcoecc has joined #ruby
sarkyniin has quit [Ping timeout: 250 seconds]
nhhagen has quit [Read error: Connection reset by peer]
nhhagen has joined #ruby
<shevy> I am still happy that I discovered jquery though. I can use ruby to auto-generate the ugly javascript mess, and it works. I am playing "lights on" and "lights off" with images now :)
redmaverick has quit [Remote host closed the connection]
nym has quit [Quit: Connection closed for inactivity]
jxpx777 has quit [Quit: Linkinus - http://linkinus.com]
chussenot has quit [Quit: chussenot]
dblessing has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
devoldmx has joined #ruby
ferhaty has joined #ruby
leat has quit [Remote host closed the connection]
Cust0sLim3n has joined #ruby
<oddmunds> shevy: yeah, i think i should think about the problem differently
<oddmunds> the thing is that i parse huge CSV i pull off a site
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
futilegames has joined #ruby
leat has joined #ruby
<oddmunds> instead of having my whole app do everything on each request, i'd rather make something concurrent that keeps busy at sensible internvals and just delivers what data it has upon requests
Iskarlar has joined #ruby
rushed has quit [Quit: rushed]
<shevy> that's the age of big data
<shevy> fat CSVs!
futilegames has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 255 seconds]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ThaiWood has joined #ruby
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eGGsha is now known as eGGshke
timanema has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
truenito has joined #ruby
nirjhor has joined #ruby
<oddmunds> yeah
speaking1ode has joined #ruby
TvL2386 has quit [Ping timeout: 252 seconds]
tvw has joined #ruby
speakingcode has quit [Ping timeout: 264 seconds]
rails528 has quit [Ping timeout: 246 seconds]
benlovell has quit [Ping timeout: 252 seconds]
iamninja has joined #ruby
dawkirst has quit [Ping timeout: 260 seconds]
ndrei has joined #ruby
<jhass> izzol: sidekiq, resque & delayed_job are the big three
eGGshke is now known as eGGsha
chussenot has joined #ruby
<oddmunds> shevy: it's a prime candidate to get my elixir fu going
jonnie has left #ruby [#ruby]
rbennacer has joined #ruby
_blizzy_ has quit [Ping timeout: 255 seconds]
decoponio has joined #ruby
<mna> hi. how to check what's the ruby version installed in my shell account?
kies has quit [Ping timeout: 246 seconds]
<havenwood> mna: ruby -v
<mna> sigh.
<mna> okay thanks.
hmnhf_ has quit [Ping timeout: 246 seconds]
allcentury has quit [Quit: WeeChat 1.2]
<adaedra> ._o
<shevy> someone poked your eye out adaedra
uri_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<adaedra> shevy: put that stick down before you hurt me for good
s2013 has joined #ruby
freerobby has joined #ruby
oo_ has quit [Remote host closed the connection]
tacit7 has joined #ruby
khebbie has joined #ruby
axl_ has joined #ruby
prosodyVeContext is now known as prosody
derHerzerzog has joined #ruby
bmurt has quit [Ping timeout: 250 seconds]
derHerzerzog has quit [Client Quit]
Aztec_ has joined #ruby
<Aztec_> is there a way for bundler to fetch from a private git server?
<Aztec_> aka gem "something", git: "myprivategit/user/repo.git"
eightfold_ has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
meatherly has joined #ruby
juanpablo_ has joined #ruby
nirjhor has quit [Remote host closed the connection]
<izzol> jhass: thanks
<adaedra> Aztec_: did you try that?
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Aztec_> adaedra i tried, but my problem seems to be auth.
<adaedra> so solve this problem?
<Aztec_> https seems to work, but i want this to be quiet (shellscript), so i need ssh
eightfold has quit [Ping timeout: 246 seconds]
eightfold_ is now known as eightfold
<adaedra> is your ssh key well configured?
<ThaiWood> Aztec_: If you need ssh, just use the ssh url of your repo
ecnalyr has joined #ruby
<Aztec_> i added it as a deploy key to the repo
<Aztec_> since it's only the server and there is no separate user for it
<Aztec_> (and i don't want to mix up server keys and user keys)
mary5030 has joined #ruby
umgrosscol has joined #ruby
<adaedra> Can you clone it manually?
dawkirst has joined #ruby
Veejay has joined #ruby
<Aztec_> nope, just checked
<adaedra> so this is your problem
<Veejay> Hello everyone
<adaedra> Hi Veejay
tagrudev has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
daynaskully has quit [Quit: quit]
juanpablo_ has quit [Ping timeout: 252 seconds]
daynaskully has joined #ruby
khebbie has quit [Remote host closed the connection]
Iskarlar has joined #ruby
platzhirsch has quit [Ping timeout: 246 seconds]
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
platzhirsch has joined #ruby
failshell has joined #ruby
robh71 has joined #ruby
robh71 has quit [Max SendQ exceeded]
<Aztec_> ok adaedra, it works now...was really ssh-related, not bundler-related
<adaedra> :)
messysaurus has quit [Remote host closed the connection]
Queeniebee has joined #ruby
khebbie has joined #ruby
whippythellama has joined #ruby
Zggb has joined #ruby
eGGsha has joined #ruby
jacaballero has joined #ruby
hmnhf_ has joined #ruby
<shevy> adaedra is the ssh king
riotjones has quit [Remote host closed the connection]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
majjoha has joined #ruby
rbennacer has quit [Read error: Connection reset by peer]
quazimodo has joined #ruby
rbennacer has joined #ruby
patrick_star has quit [Ping timeout: 256 seconds]
jacaballero has quit [Client Quit]
chthon has quit [Quit: Ex-Chat]
ruby-lang477 has quit [Ping timeout: 246 seconds]
Marsupermammal has joined #ruby
Marsupermammal has quit [Max SendQ exceeded]
davejlong has joined #ruby
patrick_star has joined #ruby
yashinbasement has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 250 seconds]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
juanpablo_ has joined #ruby
jenrzzz has joined #ruby
arup_r has quit [Remote host closed the connection]
Pumukel has joined #ruby
juanpablo__ has joined #ruby
juanpablo_ has quit [Ping timeout: 268 seconds]
ksteck has joined #ruby
roxtrong_ has joined #ruby
silkfox has joined #ruby
saddad has joined #ruby
tonios57 has joined #ruby
<waxjar> how do I reset a rack-test env?
dawkirst_ has joined #ruby
dawkirst has quit [Ping timeout: 244 seconds]
gamename has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
griffindy has joined #ruby
moeabdol has joined #ruby
moeabdol has quit [Client Quit]
leat has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
davejlong has quit []
moeabdol has joined #ruby
leat has joined #ruby
uri__ has quit [Ping timeout: 244 seconds]
moeabdol has quit [Client Quit]
moeabdol has joined #ruby
freerobby has joined #ruby
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
banister has joined #ruby
khebbie has quit [Remote host closed the connection]
moeabdol has quit [Client Quit]
moeabdol has joined #ruby
lxsameer has joined #ruby
jas02 has quit [Quit: jas02]
saddad has quit [Ping timeout: 246 seconds]
benlovell has joined #ruby
ferhaty has quit []
jas02 has joined #ruby
kies has joined #ruby
deepthou_ has joined #ruby
Guest50 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
user1138 has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
nofxx has joined #ruby
rushed has joined #ruby
AlphaAtom has quit [Client Quit]
Pumukel has quit [Remote host closed the connection]
AlphaAtom has joined #ruby
Pumukel has joined #ruby
Pumukel has quit [Remote host closed the connection]
nhhagen has quit [Remote host closed the connection]
NeverDie has joined #ruby
davejlong has joined #ruby
aganov has quit [Remote host closed the connection]
hinbody has joined #ruby
tvw has quit []
jas02 has quit [Quit: jas02]
pawnbox has quit [Remote host closed the connection]
Aztec_ has quit [Ping timeout: 246 seconds]
sdfgsdfg has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 240 seconds]
paulcsmith has joined #ruby
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest50 has joined #ruby
mna has left #ruby [#ruby]
solars has quit [Ping timeout: 246 seconds]
slawrence00 has joined #ruby
dfinninger has joined #ruby
jenrzzz has joined #ruby
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
skade has quit [Quit: Computer has gone to sleep.]
chussenot has quit [Quit: chussenot]
bronson has joined #ruby
jas02 has joined #ruby
rushed has quit [Quit: rushed]
freerobby has quit [Quit: Leaving.]
relix has joined #ruby
akemrir has quit [Quit: WeeChat 1.3]
<nofxx> How can I tell a guy, politely, that he should use some dead space cleaner?
<jhass> ?ot
<ruboto> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
roxtron__ has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
rushed has joined #ruby
roxtrong_ has quit [Ping timeout: 255 seconds]
theery has joined #ruby
jas02 has quit [Quit: jas02]
rubie has joined #ruby
sevenseacat has quit [Quit: .]
Respek has joined #ruby
Iskarlar has joined #ruby
cschneid_ has joined #ruby
pawnbox has joined #ruby
jacaballero has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
theery has quit [Remote host closed the connection]
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
syath has quit [Quit: WeeChat 1.2]
Guest50 has joined #ruby
syath has joined #ruby
chthon has joined #ruby
poguez_ has joined #ruby
SolarSailor has joined #ruby
jeff_laplante has joined #ruby
platzhirsch has quit [Remote host closed the connection]
bigredboots has joined #ruby
greenarrow has joined #ruby
borkdude has quit [Quit: ZNC - http://znc.sourceforge.net]
jiada-chrome has joined #ruby
borkdude has joined #ruby
khebbie has joined #ruby
The_Phoenix has joined #ruby
Gribo has joined #ruby
rubie has quit [Remote host closed the connection]
minimuffins has joined #ruby
borkdude has quit [Excess Flood]
snockerton has joined #ruby
dfinninger has quit [Remote host closed the connection]
riotjones has joined #ruby
speaking1ode has quit [Remote host closed the connection]
peteykun has joined #ruby
borkdude has joined #ruby
zohouser has joined #ruby
ndrei has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Pumukel has joined #ruby
deepthou_ has quit []
<tubbo> is that actually off-topic or is he just talking about using rubocop?
<tubbo> lol
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
livathinos has quit []
rushed has quit [Quit: rushed]
riotjones has quit [Ping timeout: 240 seconds]
khebbie has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
Guest50 has joined #ruby
allcentury has joined #ruby
mary5030_ has joined #ruby
speakingcode has joined #ruby
allcentury has quit [Client Quit]
Swappticon has joined #ruby
allcentury has joined #ruby
iwaffles has joined #ruby
dgutierrez1287 has quit [Ping timeout: 268 seconds]
jacaballero has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hmnhf_ has quit [Remote host closed the connection]
mary5030_ has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 246 seconds]
mary5030 has joined #ruby
hmnhf_ has joined #ruby
psy has joined #ruby
kies has quit [Ping timeout: 260 seconds]
marcoecc has quit [Read error: Connection reset by peer]
marcoecc has joined #ruby
googya has joined #ruby
marcoecc is now known as Guest81845
jerematic has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zohouser has left #ruby [#ruby]
jerematic has quit [Client Quit]
devoldmx has joined #ruby
ThaiWood has quit [Ping timeout: 246 seconds]
ndrei has quit [Ping timeout: 272 seconds]
stamina has quit [Ping timeout: 264 seconds]
ndrei has joined #ruby
MVPhelp has quit [Remote host closed the connection]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Alina-malina has quit [Quit: Leaving]
syath has quit [Quit: WeeChat 1.2]
syath has joined #ruby
devoldmx has quit [Ping timeout: 250 seconds]
MVPhelp has joined #ruby
Alina-malina has joined #ruby
khebbie has joined #ruby
optimusno has joined #ruby
freerobby has joined #ruby
freerobby has quit [Remote host closed the connection]
freerobby has joined #ruby
dfinninger has joined #ruby
xet7_ has quit [Remote host closed the connection]
xet7_ has joined #ruby
ngscheurich has joined #ruby
zenguy_pc has quit [Read error: Connection reset by peer]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zenguy_pc has joined #ruby
Lucky__ has joined #ruby
qhartman has quit [Quit: Ex-Chat]
crazydiamond has quit [Remote host closed the connection]
JoshGlzBrk has joined #ruby
ecnalyr has quit []
truenito has quit [Ping timeout: 264 seconds]
blackmesa has joined #ruby
bruno- has joined #ruby
bruno- has quit [Client Quit]
hahuang65 has quit [Ping timeout: 246 seconds]
kies has joined #ruby
bootstrappm has joined #ruby
hanmac has quit [Ping timeout: 244 seconds]
jacaballero has joined #ruby
Iskarlar has joined #ruby
Spami has joined #ruby
podman has joined #ruby
Gnomethrower has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
khebbie has quit [Remote host closed the connection]
dopamean_ has quit [Ping timeout: 240 seconds]
solars has joined #ruby
rcvalle has joined #ruby
rubie has joined #ruby
Adam1 has joined #ruby
dfockler has joined #ruby
hessparker has joined #ruby
Jardayn has joined #ruby
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
nirjhor has joined #ruby
towski_ has joined #ruby
avril14th has quit [Read error: Connection reset by peer]
roxtron__ has quit [Remote host closed the connection]
<nirjhor> I'm trying to filter out sentences from a passage and i'm using this : text.gsub(/\w+/, ' ').split(/\.|\?|!/)
greenarrow has quit [Quit: 500]
<nirjhor> but it's showing the commas, not the sentences
<nirjhor> what am i doing wrong ?
roxtrong_ has joined #ruby
freerobby has quit [Quit: Leaving.]
<nirjhor> can anyone tell ?
<jhass> ?example
<ruboto> Please provide us with an example of valid input for your problem, the output that you're getting, and the output that you were expecting.
<apeiros> you replace all \w characters with whitespace
<apeiros> so after that gsub, there's not really any text left…
freerobby has joined #ruby
theery has joined #ruby
<apeiros> >> "hello".gsub(/\w+/, ' ')
<ruboto> apeiros # => " " (https://eval.in/426266)
freerobby has quit [Read error: Connection reset by peer]
choke has joined #ruby
freerobby has joined #ruby
psy has quit [Disconnected by services]
shinnya has joined #ruby
psy_ has joined #ruby
jdawgaz has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
hmnhf__ has joined #ruby
choke has quit [Client Quit]
codenapp_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
choke has joined #ruby
hmnhf_ has quit [Ping timeout: 272 seconds]
SCHAAP137 has joined #ruby
Hounddog has quit [Remote host closed the connection]
<nirjhor> jhass: sentences = text.gsub(/\w+/, ' ').split(/\.|\?|!/)
<nirjhor> apeiros: sentences = text.gsub(/\w+/, ' ').split(/\.|\?|!/)
<nirjhor> then puts sentences
<jhass> nirjhor: that's 2, how about 1 and 3?
<jhass> ?gist
<ruboto> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
anandubajith has joined #ruby
<jhass> actually it's not even 2, you just only described 2 so far
solars has quit [Quit: WeeChat 0.4.2]
<nirjhor> its just 1 line , but it was supposed to filter out the sentence, it's filtering out the commas for some reason
<jhass> ?example
<ruboto> Please provide us with an example of valid input for your problem, the output that you're getting, and the output that you were expecting.
<jhass> ^ please read it
<jhass> I'm not asking for your code
solars has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pawnbox has quit [Remote host closed the connection]
leafybasil has quit [Remote host closed the connection]
Pumukel has quit [Remote host closed the connection]
failshell has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
pietr0 has joined #ruby
stan has quit [Ping timeout: 246 seconds]
rushed has joined #ruby
Adam1 has quit [Remote host closed the connection]
Alayde has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
stardiviner has quit [Ping timeout: 240 seconds]
chussenot has joined #ruby
<nirjhor> figured out I had to put gsub(/(?=\W)/, '') instead of gsub(/\w+/, ' ')
DoubleMalt has quit [Remote host closed the connection]
alejandrok5 has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
wald0 has joined #ruby
Flipez has quit [Read error: Connection reset by peer]
Flipez- has joined #ruby
swgillespie has joined #ruby
benlovell has quit [Ping timeout: 272 seconds]
mjuszczak has joined #ruby
mleung has joined #ruby
dopamean_ has joined #ruby
daynaskully has quit [Quit: quit]
relix has quit [Read error: Connection reset by peer]
daynaskully has joined #ruby
spider-mario has joined #ruby
senayar has quit []
pandaant has quit [Remote host closed the connection]
davejlong has quit [Remote host closed the connection]
swgillespie has quit [Client Quit]
<nofxx> nirjhor, with regex 'X' is the complete opposite of 'x' up/down case
relix has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
ndrei has quit [Ping timeout: 272 seconds]
jenrzzz has joined #ruby
symm- has joined #ruby
ponga has joined #ruby
<ponga> hallo
ndrei has joined #ruby
leafybasil has joined #ruby
bricker has joined #ruby
iateadonut has joined #ruby
tacit7 has quit [Remote host closed the connection]
jpfuentes2 has joined #ruby
Squarepy has quit [Quit: Leaving]
rushed has quit [Quit: rushed]
jeadre has quit [Remote host closed the connection]
bb010g has joined #ruby
tubuliferous has joined #ruby
jeadre has joined #ruby
nirjhor has quit [Quit: Konversation terminated!]
_aeris_ has left #ruby ["Konversation terminated!"]
Coldblackice has quit [Ping timeout: 255 seconds]
FastJack has quit [Quit: leaving]
barhum2013 has joined #ruby
chthon has quit [Ping timeout: 244 seconds]
Swappticon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nertzy has joined #ruby
Pumukel has joined #ruby
arup_r has joined #ruby
rushed has joined #ruby
allcentury has quit [Ping timeout: 255 seconds]
hahuang65 has joined #ruby
AlphaAtom has joined #ruby
benlovell has joined #ruby
dawkirst_ has quit [Remote host closed the connection]
Agoldfish has joined #ruby
[gmi] has joined #ruby
rodferso1 has quit [Ping timeout: 250 seconds]
eightfold_ has joined #ruby
rbennacer has joined #ruby
eightfold has quit [Ping timeout: 246 seconds]
eightfold_ is now known as eightfold
ta has joined #ruby
dfinninger has quit [Remote host closed the connection]
<apeiros> hm, nobody wanted to tell nirjhor that gsub(/(?=\W)/, '') does nothing at all?
Adam1 has joined #ruby
<apeiros> but well, I guess they didn't exactly read replies anyway
khebbie has joined #ruby
rushed has quit [Quit: rushed]
Adam1 has quit [Remote host closed the connection]
<jhass> yeah
wldcordeiro__ has joined #ruby
Agoldfish has quit [Read error: Connection reset by peer]
maletor has joined #ruby
nahtnam has quit [Quit: Connection closed for inactivity]
khebbie has quit [Ping timeout: 244 seconds]
Jackneill has joined #ruby
skade has joined #ruby
rockyiii has joined #ruby
rbennacer has quit [Remote host closed the connection]
howdoi has quit [Quit: Connection closed for inactivity]
rodfersou has joined #ruby
shadoi has joined #ruby
pawnbox has joined #ruby
freerobby has quit [Quit: Leaving.]
rippa has joined #ruby
rushed has joined #ruby
bweston92 has quit [Ping timeout: 246 seconds]
<dfockler> I really need to look up this gsub function, everyone asks questions about it
hessparker has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
rakm has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Respek has quit [Quit: gone to sleep. ZZZzzz…]
shinnya has quit [Ping timeout: 260 seconds]
<dfockler> ahh it's just group substitution, but everyone really asks questions about regex
rehat_ has joined #ruby
<rockyiii> hola
<rockyiii> para instalar ruby sass compass en debian 8 que me combiene
<rockyiii> aptitude install ruby-full
<rockyiii> o
riotjones has joined #ruby
<apeiros> rockyiii: this channel is english
<rockyiii> curl -L get.rvm.io | bash -s stable
<rockyiii> source ~/.rvm/scripts/rvm
<rockyiii> ruby on español is dead
<apeiros> there are channels for other languages. I guess you're looking for #ruby-es
rbennacer has joined #ruby
<apeiros> well, then ask in english or ask people to join #ruby-es to answer your question in spanish
<rockyiii> #ruby-es non responding
jiada-chrome has quit [Quit: Connection closed for inactivity]
ejimz has joined #ruby
messysaurus has joined #ruby
failshell has joined #ruby
<rockyiii> wats install ruby, sass compass in debian 8????
juanpablo__ has quit [Quit: (null)]
juanpablo__ has joined #ruby
<rockyiii> apt-get install ruby-full ruby-sass
<rockyiii> or
<apeiros> you usually use either apt or rvm
Agoldfish has joined #ruby
<apeiros> ah
<rockyiii> curl -L get.rvm.io | bash -s stable
<apeiros> I prefer rvm over apt packages. apt has a history of lagging behind greatly
<rockyiii> rvm message non bash
hessparker has joined #ruby
juanpablo___ has joined #ruby
juanpablo__ has quit [Read error: Connection reset by peer]
riotjones has quit [Ping timeout: 250 seconds]
<rockyiii> is for drupal7 theme omega4
<rockyiii> tutorial
<apeiros> o0
<apeiros> drupal is php, not ruby
<rockyiii> yes
<dfockler> the sass compiler runs using ruby
<rockyiii> theme omega4 using sass
<apeiros> interesting
blueOxigen has joined #ruby
<apeiros> if you don't develop in ruby, then apt might overall be better. even if you get old stuff from it.
failshell has quit [Ping timeout: 255 seconds]
messysaurus has quit [Ping timeout: 246 seconds]
amclain has joined #ruby
rushed has quit [Quit: rushed]
juanpablo____ has joined #ruby
Swappticon has joined #ruby
leat has quit [Remote host closed the connection]
juanpablo___ has quit [Ping timeout: 268 seconds]
bluOxigen has quit [Ping timeout: 255 seconds]
leat has joined #ruby
benlovell has quit [Ping timeout: 250 seconds]
kies has quit [Ping timeout: 240 seconds]
davejlong has joined #ruby
failshell has joined #ruby
nettoweb has joined #ruby
postmodern has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
nfk has joined #ruby
davejlong has quit [Remote host closed the connection]
davejlong has joined #ruby
harvey has joined #ruby
ivanskie has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
devoldmx has joined #ruby
AlexAltea has quit [Read error: Connection reset by peer]
juanpablo____ has quit [Quit: (null)]
juanpablo____ has joined #ruby
harvey has quit [Client Quit]
mhib has joined #ruby
AlexAltea has joined #ruby
wldcordeiro__ has quit [Quit: Leaving because reasons...]
wldcordeiro__ has joined #ruby
Salve has joined #ruby
lkba has quit [Ping timeout: 265 seconds]
truenito has joined #ruby
phutchins2 has joined #ruby
messysaurus has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_joes__ has quit [Read error: Connection reset by peer]
devoldmx has quit [Ping timeout: 256 seconds]
messysaurus has quit [Read error: Connection reset by peer]
juanpablo____ has quit [Ping timeout: 246 seconds]
phutchins has quit [Ping timeout: 255 seconds]
The_Phoenix has quit [Read error: Connection reset by peer]
peteykun has quit [Quit: Leaving]
failshell has quit []
messysaurus has joined #ruby
allcentury has joined #ruby
wldcordeiro__ has quit [Client Quit]
wldcordeiro__ has joined #ruby
hessparker has quit [Ping timeout: 246 seconds]
messysaurus has quit [Read error: Connection reset by peer]
jdawgaz has quit [Ping timeout: 250 seconds]
paulcsmith has quit [Quit: Lingo: www.lingoirc.com]
messysaurus has joined #ruby
timanema has quit [Quit: leaving]
illbyte has joined #ruby
baweaver has joined #ruby
SolarSailor has quit [Quit: My Turing machine has gone to sleep. ZZZzzz…]
choke has joined #ruby
SolarSailor has joined #ruby
shadoi has quit [Quit: Leaving.]
Salve has quit []
[gmi] has quit [Quit: Leaving]
darkf has quit [Ping timeout: 256 seconds]
hessparker has joined #ruby
messysaurus has quit [Read error: Connection reset by peer]
messysaurus has joined #ruby
bronson has joined #ruby
_djbkd has joined #ruby
havenwood has joined #ruby
benlovell has joined #ruby
ruurd has joined #ruby
nanoz has joined #ruby
blue_deref has joined #ruby
marjory has quit [Ping timeout: 246 seconds]
cnngimenez has joined #ruby
nertzy has joined #ruby
jgpawletko has quit [Quit: jgpawletko]
ponga has quit [Quit: Leaving...]
solars has quit [Ping timeout: 252 seconds]
dopamean1 has joined #ruby
dumdedum has quit [Ping timeout: 272 seconds]
JamesPPP has joined #ruby
<snockerton> is there a way to nest an if expression in a hash definition?
JamesPPP has left #ruby [#ruby]
JamesPPP has joined #ruby
JamesPPP has left #ruby [#ruby]
shadoi has joined #ruby
<jhass> just use []= afterwards
ndrei has quit [Ping timeout: 244 seconds]
<snockerton> to only include a key,value hash object (if condition)
Galaxy83 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
dopamean_ has quit [Ping timeout: 244 seconds]
aldodelgado has joined #ruby
dawkirst has joined #ruby
ndrei has joined #ruby
ckinniburgh has joined #ruby
<snockerton> i can use #{} within a string, which lets me include an expression
<snockerton> maybe i'm thinking about this wrong
havenwood has quit [Ping timeout: 255 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bricker> snockerton: you can't do it inline with the hash initialization, there's no syntax to support that.
chussenot has quit [Quit: chussenot]
baweaver has quit [Remote host closed the connection]
hanmac has joined #ruby
freerobby has quit [Quit: Leaving.]
JamesPPP has joined #ruby
jackjackdripper has joined #ruby
jacaballero has quit [Read error: Connection reset by peer]
christiandsg has joined #ruby
jacaballero has joined #ruby
kinduff has joined #ruby
freerobby has joined #ruby
dfinninger has joined #ruby
cantaberry has quit [Ping timeout: 244 seconds]
kinduff has quit [Max SendQ exceeded]
cantaberry has joined #ruby
havenwood has joined #ruby
rakm has joined #ruby
bronson has quit [Remote host closed the connection]
demonlove has joined #ruby
<scpike> What's the best way to call a ruby script with a specific gemset / rvm managed ruby version? I've got `BUNDLE_GEMFILE=/path/to/Gemfile bundle exec ruby /path/to/script.rb` in a bunch of places right now.
<scpike> script.rb is in a subfolder of the folder with Gemfile in it, if that helps
<bougyman> i just rvm use 2.x.x@gemset-name in the shell
wldcordeiro__ has quit [Quit: Leaving because reasons...]
lea has quit [Ping timeout: 252 seconds]
<scpike> bougyman: but won't it look for a Gemfile relative to where I'm calling the script from, not the script itself?
jenrzzz has quit [Ping timeout: 246 seconds]
<bougyman> depends. I also cd into the tree and make it my CWD, usually.
<bougyman> otherwise I make a bin/run.sh which does all of this for me and just call that
<bougyman> /path/to/tree/bin/run.sh path/to/script.rb
<bougyman> is what it becomes, then.
<bougyman> bundler and rvm will make such wrappers for you, too, but I make my own for more flexibility and CI fiddling, most times.
<apeiros> scpike: I think that's what rvm's wrappers are there for
rehat_ has quit [Read error: Connection reset by peer]
<scpike> Hmm, I'm trying to come up with a solution where I can have ruby scripts I can invoke from anywhere (put the folder in PATH) that use a Gemfile
<bougyman> yes, what apeiros said.
<bougyman> scpike: and that's what mine do.
dseitz has joined #ruby
<bougyman> using the run.sh wrapper I include in the projects.
<scpike> bougyman: could I #! the run.sh wrapper somehow?
<bougyman> so my ci can mindlessly always run projectname/bin/run.sh rake and expect it to do everything necessary to run tests.
kidmillions has joined #ruby
suchness has quit [Remote host closed the connection]
user1138 has joined #ruby
anandubajith has quit [Quit: Connection closed for inactivity]
<scpike> The cwd trick messes some things up though, like if the script tries to output to a relative path
<bougyman> not necessarily
freerobby has quit [Quit: Leaving.]
kidmillions has quit [Client Quit]
<bougyman> my deployments symlnk things like PROJECTROOT/config and PROJECTROOT/log to avoid some of those issues.
wldcordeiro__ has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
apt-get_ has quit [Read error: No route to host]
<bougyman> there's tradeoffs with allowing it to run outside the projectroot.
RobertBirnie has joined #ruby
rideh has quit [Remote host closed the connection]
rideh has joined #ruby
sarkyniin has joined #ruby
kidmillions has joined #ruby
<scpike> bougyman: I think my use case is a little different. It's not one ruby project being deployed somewhere; I have a tree full of standalone CLI tools, but they use libraries in a single Gemfile
<bougyman> you could export that BUNDLE_GEMFILE and put an rvm use in your scripts and be just fine in any cwd
hessparker has quit [Read error: Connection reset by peer]
stamina has joined #ruby
<scpike> oh that's a great idea, let me play with that
uri_ has joined #ruby
hessparker has joined #ruby
baweaver has joined #ruby
<baweaver> snockerton: hash.reject
workmad3 has quit [Ping timeout: 246 seconds]
hessparker has left #ruby [#ruby]
nertzy has quit [Quit: This computer has gone to sleep]
hahuang65 has quit [Ping timeout: 244 seconds]
victortyau has joined #ruby
pandaant has joined #ruby
chipotle has joined #ruby
dgutierrez1287 has joined #ruby
hmnhf__ has quit [Ping timeout: 250 seconds]
<scpike> bougyman: it works! thanks so much
messysaurus has quit [Read error: Connection reset by peer]
<bougyman> no worries.
banister has quit [Quit: Textual IRC Client: www.textualapp.com]
messysaurus has joined #ruby
jacaballero has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruurd has quit [Quit: ZZZzzz…]
rbennacer has quit [Remote host closed the connection]
dgutierrez1287 has quit [Ping timeout: 268 seconds]
rbennacer has joined #ruby
diegoaguilar has joined #ruby
dgutierrez1287 has joined #ruby
<snockerton> how do i merge two arrays of hashes with the same key names?
kies has joined #ruby
<hanmac> snockerton: use inject or each_with_object
codecop has quit [Remote host closed the connection]
meatherly has quit []
lea has joined #ruby
<snockerton> all i can get is the 2nd array nested as a new object in the first array
vF3hNGxc47h8 has joined #ruby
rushed has joined #ruby
<apeiros> ?example snockerton
<ruboto> snockerton, Please provide us with an example of valid input for your problem, the output that you're getting, and the output that you were expecting.
<hanmac> snockerton: show us sample data and what your output do you want from it
hahuang65 has joined #ruby
autrilla has quit [Quit: Connection closed for inactivity]
JamesPPP has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
lkba has joined #ruby
JamesPPP has joined #ruby
jordanloky has joined #ruby
Swappticon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Silox| has joined #ruby
<snockerton> this is probably stupid easy but unless i loop through array b and push each element to a, can't do it
juanpablo____ has joined #ruby
<al2o3-cr> flatten snockerton
framling has quit [Read error: Connection reset by peer]
<al2o3-cr> unless i'm missing something
<al2o3-cr> no i'm missing something
messysaurus has quit [Read error: Connection reset by peer]
<baweaver> has to merge like values
<apeiros> snockerton: c = a + b
<casadei> snockerton: did you try arr.flatten ?
<apeiros> no need for flatten or anything really
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Queeniebee has quit [Ping timeout: 256 seconds]
aldodelgado has quit [Quit: aldodelgado]
messysaurus has joined #ruby
<apeiros> .concat if you don't want a new array
<snockerton> apeiros: omg
<casadei> a.push(b).flatten
<apeiros> ew
<snockerton> c = a + b
<apeiros> a.concat(b) # if you don't want a c
<snockerton> i tried like 20 different enumerable methods
JamesPPP has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<snockerton> and it was as simple as addition
<baweaver> though I'm guessing they want this behavior: [{a: 1}, {b: 2}].merge([{a: 2}]) to render [{a: 2}, {b: 2}]
JamesPPP has joined #ruby
<baweaver> (psuedocode)
<baweaver> if not, then yeah, +
<apeiros> baweaver: hm? I think the example is actually quite clear. rare enough :)
<baweaver> how do i merge two arrays of hashes _with the same key names?_
juanpablo____ has quit [Ping timeout: 256 seconds]
<baweaver> that part got me
<baweaver> why would that be relevant
messysaurus has quit [Read error: Connection reset by peer]
<snockerton> baweaver: good catch, that was my next task
<baweaver> then + won't work
<snockerton> two diff use cases
messysaurus has joined #ruby
<baweaver> you'd get [{a:1}, {a: 2}, {b: 2}]
rushed has quit [Quit: rushed]
havenwood has quit [Ping timeout: 244 seconds]
JamesPPP has quit [Client Quit]
benlovell has quit [Ping timeout: 272 seconds]
havenwood has joined #ruby
JoshL has quit []
pawnbox has quit [Remote host closed the connection]
aibo has joined #ruby
messysaurus has quit [Ping timeout: 244 seconds]
fantazo has joined #ruby
jobewan has joined #ruby
Coldblackice has joined #ruby
ruby-lang281 has joined #ruby
pawnbox has joined #ruby
d10n-work has joined #ruby
ItSAN____ has joined #ruby
ruby-lang281 has quit [Client Quit]
scripore has joined #ruby
ItSANgo has quit [Ping timeout: 264 seconds]
vdamewood has joined #ruby
ndrei has quit [Ping timeout: 256 seconds]
Fontly has joined #ruby
kidmillions has quit [Quit: kidmillions]
bronson has joined #ruby
stevednd has quit [Read error: Connection reset by peer]
<Fontly> +x
Fontly has left #ruby ["Leaving"]
northfurr has joined #ruby
jordanloky has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kirun has joined #ruby
vF3hNGxc47h8 has quit [Ping timeout: 244 seconds]
juanpablo____ has joined #ruby
bootstrappm has left #ruby [#ruby]
messysaurus has joined #ruby
benlovell has joined #ruby
DCameronMauch has joined #ruby
DCameronMauch has left #ruby [#ruby]
baweaver has quit [Remote host closed the connection]
christiandsg has joined #ruby
davejlon_ has joined #ruby
Swappticon has joined #ruby
barhum2013 has quit [Quit: barhum2013]
barhum2013 has joined #ruby
messysaurus has quit [Read error: Connection reset by peer]
benlovell has quit [Ping timeout: 255 seconds]
Blaguvest has joined #ruby
relix has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davejlong has quit [Ping timeout: 264 seconds]
ItSANgo_ has joined #ruby
shadoi has quit [Quit: Leaving.]
michaeldeol has joined #ruby
Respek has joined #ruby
davejlon_ has quit [Ping timeout: 255 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rushed has joined #ruby
ItSAN____ has quit [Ping timeout: 244 seconds]
havenwood has quit [Ping timeout: 264 seconds]
messysaurus has joined #ruby
christiandsg has quit [Quit: Leaving...]
<shevy> what is happening
ruurd has joined #ruby
<al2o3-cr> why? what is happening?
<shevy> yeah
michael_mbp has quit [Excess Flood]
stamina has quit [Ping timeout: 240 seconds]
<al2o3-cr> hey?
stevejobsinhell has joined #ruby
robbyoconnor has quit [Ping timeout: 265 seconds]
luckyruby has joined #ruby
barhum2013 has quit [Quit: barhum2013]
stevejobsinhell has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
rakm has joined #ruby
<luckyruby> Is there a method that does [1,2,3] #=> "'1','2','3'"?
<apeiros> luckyruby: map + join, or interpolation + join
dman777_alter has joined #ruby
stevejobsinhell has joined #ruby
<apeiros> but no, no single method which does that exists
<luckyruby> thanks
<nofxx> &: is almost a method hehe... a method caller helper?
<nofxx> >> [1,2,3].map(&:to_s)
phutchins2 has quit [Ping timeout: 264 seconds]
<apeiros> &: is two separate things and not a single thing
michael_mbp has joined #ruby
<ruboto> nofxx # => ["1", "2", "3"] (https://eval.in/426370)
<nofxx> luckyruby, ^
<apeiros> nofxx: reread their example output
<luckyruby> >> [1,2,3].map {|i| "'#{i}'"}.join(',')
<ruboto> luckyruby # => "'1','2','3'" (https://eval.in/426371)
<nofxx> apeiros, ouch! yeah... I see now
<shevy> \o/
<dman777_alter> javsascript has a way I can use a object to get a property of a object... such as session[request.method](do something). does ruby have a way that is similar?
<shevy> dman777_alter is it a method call in javascript?
hahuang65 has quit [Ping timeout: 244 seconds]
moeabdol has quit [Ping timeout: 265 seconds]
<dman777_alter> shevy: no
<jhass> dman777_alter: do you look for public_send?
<dman777_alter> it's just a plug it in
Cust0sLim3n has quit [Read error: Connection reset by peer]
<jhass> (do not pass unvalidated userinput into it)
<luckyruby> Would love to see a second argument to Array#join that let's you specify a wrapper.
crdpink has joined #ruby
crdpink2 has quit [Ping timeout: 246 seconds]
JoshGlzBrk has joined #ruby
riotjones has joined #ruby
<apeiros> dman777_alter: since ruby does not have properties, there's no direct equivalent. you can call methods using Object#public_send
davejlong has joined #ruby
mhib has quit [Quit: Leaving]
<dman777_alter> hmm... so if request.method is "get".... how could I use it to do session.get()?
<apeiros> session.public_send(request.method)
messysaurus has quit [Read error: Connection reset by peer]
<apeiros> &ri Object#public_send
<apeiros> ^ dman777_alter
<jhass> after if OK_METHODS.include? request.method only
<dman777_alter> apeiros: oh...nice...thanks!
<shevy> jhass does not trust the users!
<apeiros> dman777_alter: like jhass, I strongly suggest whitelisting user-input
<jhass> why would I
benlovell has joined #ruby
Papabear has quit [Remote host closed the connection]
swgillespie has joined #ruby
mary5030 has quit [Remote host closed the connection]
Swappticon has quit [Quit: Textual IRC Client: www.textualapp.com]
tuxero has joined #ruby
riotjones has quit [Ping timeout: 240 seconds]
northfurr has quit [Quit: northfurr]
stevejobsinhell has left #ruby [#ruby]
baweaver has joined #ruby
jerware has joined #ruby
<jerware> hi
<jerware> Is ruby easier than python?
jerware is now known as stevejobsinhell
petricore has joined #ruby
<apeiros> stevejobsinhell: yes
<stevejobsinhell> sweet.
<miah> difficultly is subjective
<apeiros> now ask the reverse in #python
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 244 seconds]
<nofxx> let us know
<slash_nick> ?nohtyp naht reisea ybur sI
<ruboto> naht, I don't know anything about nohtyp
benlovell has quit [Ping timeout: 264 seconds]
<apeiros> lol slash_nick
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
dfinninger has quit [Remote host closed the connection]
northfurr has joined #ruby
<arup_r> give me ruby offtopic channel link.. I have some offtopic question
mjuszczak has quit []
<baweaver> #ruby-offtopic
<baweaver> !mute stevejobsinhell
dfinninger has joined #ruby
scripore has quit [Ping timeout: 252 seconds]
poli has joined #ruby
northfurr has quit [Client Quit]
northfurr has joined #ruby
DoubleMalt has joined #ruby
stevednd has joined #ruby
jacaballero has joined #ruby
ndrei has joined #ruby
hahuang65 has joined #ruby
JoshGlzBrk has quit [Excess Flood]
northfurr has quit [Client Quit]
mic_e has joined #ruby
rushed has quit [Quit: rushed]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Spami has joined #ruby
devoldmx has joined #ruby
jpfuentes2 has quit [Quit: Textual IRC Client: www.textualapp.com]
moeabdol has joined #ruby
banister has joined #ruby
tomaw_ has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
bronson has quit [Remote host closed the connection]
tomaw has quit [*.net *.split]
dgutierrez1287 has quit [*.net *.split]
choke has quit [*.net *.split]
towski_ has quit [*.net *.split]
minimuffins has quit [*.net *.split]
umgrosscol has quit [*.net *.split]
iamninja has quit [*.net *.split]
s00pcan has quit [*.net *.split]
hawkface has quit [*.net *.split]
atomical has quit [*.net *.split]
ByronJohnson has quit [*.net *.split]
rdark has quit [*.net *.split]
marr has quit [*.net *.split]
al2o3-cr has quit [*.net *.split]
rehat has quit [*.net *.split]
martinbjeldbak has quit [*.net *.split]
kgirthofer has quit [*.net *.split]
psycho_one has quit [*.net *.split]
rikai has quit [*.net *.split]
jtdowney has quit [*.net *.split]
wedgwood has quit [*.net *.split]
mburns has quit [*.net *.split]
xxneolithicxx has quit [*.net *.split]
retornam has quit [*.net *.split]
miliarch has quit [*.net *.split]
nickjj has quit [*.net *.split]
rmrrn has quit [*.net *.split]
thang has quit [*.net *.split]
sn0wb1rd has quit [*.net *.split]
monsieurp has quit [*.net *.split]
rhg135 has quit [*.net *.split]
AnoHito has quit [*.net *.split]
adamholt has quit [*.net *.split]
tchebb has quit [*.net *.split]
camilasan has quit [*.net *.split]
jbw has quit [*.net *.split]
kriskropd has quit [*.net *.split]
Aria has quit [*.net *.split]
kappy has quit [*.net *.split]
jinie has quit [*.net *.split]
ghormoon has quit [*.net *.split]
phreakocious has quit [*.net *.split]
pleiosaur has quit [*.net *.split]
Adran has quit [*.net *.split]
irk has quit [*.net *.split]
dogeuira has quit [*.net *.split]
sarid has quit [*.net *.split]
Coraline has quit [*.net *.split]
olblak has quit [*.net *.split]
bodie_ has quit [*.net *.split]
KC9YDN has quit [*.net *.split]
csmb has quit [*.net *.split]
Urocyon has quit [*.net *.split]
zz_barkerd427 has quit [*.net *.split]
closer has quit [*.net *.split]
fulgore_ has quit [*.net *.split]
cibs has quit [*.net *.split]
ashleyis has quit [*.net *.split]
nfsnobody has quit [*.net *.split]
failshell has joined #ruby
bodie_ has joined #ruby
KC9YDN has joined #ruby
csmb has joined #ruby
Urocyon has joined #ruby
zz_barkerd427 has joined #ruby
dgutierrez1287 has joined #ruby
choke has joined #ruby
towski_ has joined #ruby
minimuffins has joined #ruby
umgrosscol has joined #ruby
iamninja has joined #ruby
psycho_one has joined #ruby
s00pcan has joined #ruby
hawkface has joined #ruby
atomical has joined #ruby
ByronJohnson has joined #ruby
rdark has joined #ruby
marr has joined #ruby
al2o3-cr has joined #ruby
rehat has joined #ruby
miliarch has joined #ruby
martinbjeldbak has joined #ruby
kgirthofer has joined #ruby
rikai has joined #ruby
jtdowney has joined #ruby
wedgwood has joined #ruby
mburns has joined #ruby
xxneolithicxx has joined #ruby
retornam has joined #ruby
nickjj has joined #ruby
rmrrn has joined #ruby
thang has joined #ruby
sn0wb1rd has joined #ruby
monsieurp has joined #ruby
rhg135 has joined #ruby
AnoHito has joined #ruby
adamholt has joined #ruby
camilasan has joined #ruby
tchebb has joined #ruby
jbw has joined #ruby
Aria has joined #ruby
kappy has joined #ruby
jinie has joined #ruby
ghormoon has joined #ruby
phreakocious has joined #ruby
pleiosaur has joined #ruby
Adran has joined #ruby
irk has joined #ruby
Coraline has joined #ruby
dogeuira has joined #ruby
sarid has joined #ruby
olblak has joined #ruby
marr has quit [Max SendQ exceeded]
ghormoon has quit [Max SendQ exceeded]
closer has joined #ruby
fulgore_ has joined #ruby
cibs has joined #ruby
nfsnobody has joined #ruby
ashleyis has joined #ruby
ghormoon has joined #ruby
ndrei has joined #ruby
messysaurus has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
devoldmx has quit [Ping timeout: 265 seconds]
tomaw_ is now known as tomaw
davedev24 has quit []
marr has joined #ruby
kriskropd has joined #ruby
michael_mbp has quit [Excess Flood]
shadoi has joined #ruby
kgirthofer has quit [Ping timeout: 255 seconds]
scampbell has joined #ruby
crankharder has quit [Remote host closed the connection]
kgirthofer has joined #ruby
toretore has joined #ruby
jenrzzz has joined #ruby
dawkirst has quit [Remote host closed the connection]
michael_mbp has joined #ruby
JamesPPP has joined #ruby
messy has joined #ruby
messysaurus has quit [Read error: Connection reset by peer]
<failshell> im trying to embed sinatra in my app, it works until i try to use thin, than i get that error: https://gist.github.com/failshell/ef7e34cc3d56457974b4
<failshell> google says that's been fixed long ago. not sure what im doing wrong
Papabear has joined #ruby
moeabdol has quit [Ping timeout: 250 seconds]
iateadonut has quit [Quit: Leaving.]
jpfuentes2 has joined #ruby
workmad3 has joined #ruby
messy has quit [Read error: Connection reset by peer]
messysaurus has joined #ruby
dgutierrez1287 has quit [*.net *.split]
choke has quit [*.net *.split]
towski_ has quit [*.net *.split]
minimuffins has quit [*.net *.split]
umgrosscol has quit [*.net *.split]
iamninja has quit [*.net *.split]
s00pcan has quit [*.net *.split]
hawkface has quit [*.net *.split]
atomical has quit [*.net *.split]
ByronJohnson has quit [*.net *.split]
rdark has quit [*.net *.split]
al2o3-cr has quit [*.net *.split]
rehat has quit [*.net *.split]
martinbjeldbak has quit [*.net *.split]
psycho_one has quit [*.net *.split]
rikai has quit [*.net *.split]
jtdowney has quit [*.net *.split]
wedgwood has quit [*.net *.split]
mburns has quit [*.net *.split]
xxneolithicxx has quit [*.net *.split]
retornam has quit [*.net *.split]
miliarch has quit [*.net *.split]
nickjj has quit [*.net *.split]
rmrrn has quit [*.net *.split]
thang has quit [*.net *.split]
sn0wb1rd has quit [*.net *.split]
monsieurp has quit [*.net *.split]
rhg135 has quit [*.net *.split]
AnoHito has quit [*.net *.split]
adamholt has quit [*.net *.split]
camilasan has quit [*.net *.split]
tchebb has quit [*.net *.split]
jbw has quit [*.net *.split]
Aria has quit [*.net *.split]
kappy has quit [*.net *.split]
jinie has quit [*.net *.split]
phreakocious has quit [*.net *.split]
pleiosaur has quit [*.net *.split]
Adran has quit [*.net *.split]
irk has quit [*.net *.split]
dogeuira has quit [*.net *.split]
sarid has quit [*.net *.split]
Coraline has quit [*.net *.split]
olblak has quit [*.net *.split]
rubie has quit [Remote host closed the connection]
acosonic has quit [Remote host closed the connection]
majjoha has quit [Ping timeout: 240 seconds]
Zggb has quit [Quit: Connection closed for inactivity]
messysaurus has quit [Read error: Connection reset by peer]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
messy has joined #ruby
jpfuentes2 has quit [Client Quit]
zendrix has joined #ruby
stevejobsinhell has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
davejlong has quit [Remote host closed the connection]
allcentury has quit [Ping timeout: 264 seconds]
neanias has quit [Excess Flood]
neanias has joined #ruby
davejlong has joined #ruby
sshuff|gone has left #ruby [#ruby]
umgrosscol has joined #ruby
messy has quit [Read error: Connection reset by peer]
messysaurus has joined #ruby
robbyoconnor has joined #ruby
michael_mbp has quit [Excess Flood]
dgutierrez1287 has joined #ruby
iamninja has joined #ruby
towski_ has joined #ruby
minimuffins has joined #ruby
psycho_one has joined #ruby
choke has joined #ruby
thang has joined #ruby
s00pcan has joined #ruby
al2o3-cr has joined #ruby
retornam has joined #ruby
miliarch has joined #ruby
rmrrn has joined #ruby
rehat has joined #ruby
rikai has joined #ruby
xxneolithicxx has joined #ruby
mburns has joined #ruby
wedgwood has joined #ruby
atomical has joined #ruby
hawkface has joined #ruby
AnoHito has joined #ruby
kappy has joined #ruby
jbw has joined #ruby
monsieurp has joined #ruby
phreakocious has joined #ruby
pleiosaur has joined #ruby
jtdowney has joined #ruby
martinbjeldbak has joined #ruby
Adran has joined #ruby
adamholt has joined #ruby
ByronJohnson has joined #ruby
tchebb has joined #ruby
Aria has joined #ruby
nickjj has joined #ruby
irk has joined #ruby
jinie has joined #ruby
rdark has joined #ruby
dogeuira has joined #ruby
Coraline has joined #ruby
sarid has joined #ruby
rhg135 has joined #ruby
camilasan has joined #ruby
sn0wb1rd has joined #ruby
olblak has joined #ruby
robbyoconnor has quit [Client Quit]
sarid has quit [Max SendQ exceeded]
ivanskie has joined #ruby
sarid has joined #ruby
sarid has quit [Changing host]
sarid has joined #ruby
sshuff has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
mary5030 has joined #ruby
truenito has quit [Quit: truenito]
illbyte has quit [Quit: Connection closed for inactivity]
Quandl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arup_r has quit [Ping timeout: 246 seconds]
solocshaw has joined #ruby
michael_mbp has joined #ruby
David27 has joined #ruby
luckyruby has quit [Quit: Leaving...]
kinduff has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
centrx has joined #ruby
meatherly has joined #ruby
nerium has joined #ruby
googya has quit [Quit: Leaving.]
<nerium> Any one knows a good way to parse/extract text from a document in plain text (without using regexp)? I need a less error prone way to parse the data
googya has joined #ruby
kidmillions has joined #ruby
SolarSailor has quit [Quit: My Turing machine has gone to sleep. ZZZzzz…]
jacaballero has quit [Read error: Connection reset by peer]
demonlove has quit [Remote host closed the connection]
jacaballero has joined #ruby
rikai has quit [Ping timeout: 255 seconds]
<jhass> well, that's highly contextual on the data
<baweaver> and your regex-fu
JamesPPP has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
toretore has quit [Quit: This computer has gone to sleep]
<baweaver> Short of writing your own lexer/parser
<eam> most of which use regexes anyway
<jhass> There's also things like StringScanner
<atmosx> nerium: just give a simple to the guys at #regex they'll work the rest out. You could also use 'rubular', but generally speaking if the data is complex, you need regex.
<shevy> oh is it create-your-language time again
<shevy> nerium one poor man's variant may be to use .each and extract on a per-line basis if you don't use a regex
<nerium> I’m currently using regexp, but its impossible to debug
<nerium> I’ll give an example
<shevy> you can combine the regex with non-regex code to make it more robust
<shevy> I hate the votality of $1 for instance
<eam> nerium: have you ever looked at how a parser works?
<shevy> erm *volatility
<nerium> eam: Yeah. I took a programming language course during my last semester so I know the basics
<eam> so, you can break up your patterns into small units
<nerium> Here’s is the current impl. https://gist.github.com/oleander/7f9c8bf4c210f67e78a9
nhhagen has joined #ruby
<baweaver> ?xy
<ruboto> it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
michael_mbp has quit [Excess Flood]
<My_Hearing> Show us the input and how you want to break it up
My_Hearing is now known as Mon_Ouie
arup_r has joined #ruby
<nerium> In short: I’m trying to parse an SAT like test. There are al kind of different questions and set ups
JamesPPP has joined #ruby
<nerium> Regexp works but is impossible to debug and maintain. I’m looking for a better wat
<nerium> *way
benlovell has joined #ruby
allcentury has joined #ruby
<jhass> it seems like you try to write a single regex for all cases
Queeniebee has joined #ruby
<nerium> I’m not looking for a solution to my problem, just the correct tools
<Mon_Ouie> Well, using StringScanner in combinations with regexps is a way that way mentioned already
<baweaver> Example input / example output?
<nerium> Mon_Ouie: aha, missed that
<jhass> use ^ to split up into smaller chunks (like each question answer block), detect type, parse accordingly
<nerium> baweaver: Hold on
rockyiii has left #ruby [#ruby]
michael_mbp has joined #ruby
jacaballero has quit [Quit: Textual IRC Client: www.textualapp.com]
rikai has joined #ruby
shadoi has quit [Quit: Leaving.]
JamesPPP has quit [Client Quit]
<nerium> There’s a lot of problems here. One is that the questions are stored in a pdf. In plain text everyting *might be* on one line
<baweaver> Split the text on /^\d+\./ to get your number blocks
<nerium> baweaver: ^
Pilate has joined #ruby
<nerium> ^ wont work
<Pilate> ?guys
<ruboto> Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
<baweaver> !mute Pilate
Pilate has left #ruby [#ruby]
<baweaver> anyways
<nerium> baweaver: So the number 11. in this case might not be on it’s own row
<baweaver> !ban Pilate
fantazo has quit [Quit: Verlassend]
<baweaver> !ban Pilate !T 1d troll be gone
<ruboto> baweaver, could not find a matching user for "Pilate"
<baweaver> aw, fine.
<baweaver> danke
workmad3 has quit [Ping timeout: 256 seconds]
<baweaver> Do you have an example of the plaintext rip?
benlovell has quit [Ping timeout: 250 seconds]
<nerium> baweaver: I can create one, hold on
<baweaver> probably the best bet is to try and get some consistency there.
<nerium> baweaver: ”123. This is a question A Option One B Option two C Danke D Nope"
<baweaver> Fun part is what happens when there's more than one A, B, C, or D?
nettoweb has joined #ruby
<nerium> baweaver: There’s is allways A-D and there might be a E
<baweaver> If you can guarantee punctuation on the end of the question you have some leverage
<baweaver> No, I mean what if the question starts as "A person..."
<nerium> baweaver: I can’t :)
<nerium> The question always starts with a \d+\.
jeadre has quit [Remote host closed the connection]
<atmosx> so 'everyone' is okay?
<jhass> sure
<nerium> atmosx: I’m not following
<nerium> Or are you talking with someone else?
benlovell has joined #ruby
<atmosx> nerium: I was talking to jhass actually, I don't think any other operator is alive. There was an ongoing discussion about the use of the word 'guys' on github.. so...
<atmosx> anyway
<atmosx> I'm off to bed, night
<nerium> atmosx: Hehe, okay
jeadre has joined #ruby
arup_r has quit [Remote host closed the connection]
<baweaver> Yeah, that'll be interesting.
<miah> 'everyone' is all encompassing, so of course its ok.
Usaur has quit [Quit: Leaving]
rubie has joined #ruby
freerobby has joined #ruby
rakm has joined #ruby
benlovell has quit [Ping timeout: 250 seconds]
DLSteve has joined #ruby
blue_deref has quit [Quit: Taking myself out of hear.]
jds has quit [Quit: Connection closed for inactivity]
davejlong has quit [Remote host closed the connection]
<nerium> baweaver: I’ve a plan.
messysaurus has quit [Remote host closed the connection]
kidmillions has quit [Ping timeout: 265 seconds]
bronson has joined #ruby
Mendenhall has joined #ruby
<nerium> baweaver: How about spliting the questions into blocks of questions/options
michael_mbp has quit [Excess Flood]
<nerium> and then run a smaller regexp on this block?
<baweaver> If possible, but if the text option has nothing to hook off of it's risky.
<nerium> baweaver: Why not just match between 1. and 2.
<nerium> and then 2. and 3.
modern has quit []
michael_mbp has joined #ruby
<baweaver> 1. A person does this A Option
<baweaver> splitting options was what I was more worried on
kidmillions has joined #ruby
radgeRayden_ has joined #ruby
<nerium> baweaver: Given that you have the questions/options as one block?
c1v0 has joined #ruby
nertzy has joined #ruby
<baweaver> Yep.
<baweaver> see that example above
<nerium> How about starting from the back. Match Everything from ”E” to the end
<baweaver> how do you know which A to tag as an option?
bootstrappm has joined #ruby
<nerium> Remove it, then ”D"
<baweaver> What if an option has a cap?
axl_ has quit [Quit: axl_]
<nerium> baweaver: You don't
bootstrappm has left #ruby [#ruby]
ghr has joined #ruby
<baweaver> then reverse would be safe.
roxtrong_ has quit [Ping timeout: 250 seconds]
scripore has joined #ruby
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<nerium> baweaver: Exactly
<nerium> baweaver: This is good
scripore has quit [Remote host closed the connection]
dopie has joined #ruby
jeadre has quit [Remote host closed the connection]
roxtrongo has joined #ruby
scripore has joined #ruby
<baweaver> >> 'A option B option C option D option'.reverse.split(/[ABCD]/).map { |s| s.strip.reverse }
<ruboto> baweaver # => ["option", "option", "option", "option"] (https://eval.in/426403)
jeadre has joined #ruby
stef1a has joined #ruby
garethrees has quit [Ping timeout: 272 seconds]
bstrrm has joined #ruby
Cust0sLim3n has joined #ruby
<stef1a> what's the difference between these two snippets of code? s.bids.each { |b| include = true and break if b.quarter == quarter } and s.bids.each { |b| include = true && break if b.quarter == quarter }
<stef1a> How would the distinction between `and` and `??` be relevant here?
scripore has quit [Client Quit]
<stef1a> I've read that `and` has higher precedence, but I don't know how that would affect this code.
last_staff has quit [Ping timeout: 265 seconds]
scripore has joined #ruby
<baweaver> best to avoid the english version in most cases.
mrtomme has quit [Ping timeout: 264 seconds]
<stef1a> baweaver: why? in this case, the English version does what i want, and the symbolic version does not
bstrarm has quit [Ping timeout: 264 seconds]
kadoppe has quit [Ping timeout: 240 seconds]
skade has quit [Quit: Computer has gone to sleep.]
<nerium> baweaver: Thanks. Illl try it out!
<miah> "The and and or keywords are banned. It's just not worth it. Always use && and || instead."
mrtomme has joined #ruby
modern has joined #ruby
modern has joined #ruby
<baweaver> don't try and put things on one line.
<baweaver> that's your issue.
<Mon_Ouie> stef1a: `include = true and break if x' is like `((include = true) and break) if x'
<Mon_Ouie> vs (include = (true && break)) if x
<baweaver> ^
banister has left #ruby [#ruby]
banister has joined #ruby
kidmillions_ has joined #ruby
banister has left #ruby [#ruby]
kidmillions has quit [Ping timeout: 265 seconds]
kadoppe has joined #ruby
banisterfiend has joined #ruby
yfeldblum has joined #ruby
kidmillions_ has quit [Read error: Connection reset by peer]
<stef1a> Gotcha. That's subtle :-) Thanks!
<banisterfiend> Mon_Ouie are you in a room without light?
<Mon_Ouie> I'm in a room with neon lights
failshell has quit []
centrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
kidmillions has joined #ruby
<banisterfiend> Mon_Ouie is there a woman of the world there with you?
<banisterfiend> she has to leave!
<Mon_Ouie> There's a kitten, does that count?
stef1a has quit [Quit: leaving]
tno has quit [Remote host closed the connection]
EllisTAA has joined #ruby
<EllisTAA> anyone know why i’m not getting my expected outcome: https://gist.github.com/ellismarte/db16caf989261b347137
swgillespie has joined #ruby
michael_mbp has quit [Excess Flood]
yqt has joined #ruby
<Mon_Ouie> Because [] evaluates to an array object. All the elements in that array are the same array object.
<EllisTAA> Mon_Ouie: thanks
<baweaver> if you use a block, it evaluates that block for each default
<Mon_Ouie> >> x = []; array = Array.new(2, x); array[0].equal? x
<ruboto> Mon_Ouie # => true (https://eval.in/426404)
<banisterfiend> Mon_Ouie so long as it's not a petit chien, then you would have to throw her into a basket of cushions and sail cloth
kaps has joined #ruby
rbennacer has quit [Ping timeout: 250 seconds]
kaps has left #ruby [#ruby]
<baweaver> >> a= Array.new(2) { [] }; a[1] << %w(some stuff); a
<ruboto> baweaver # => [[], [["some", "stuff"]]] (https://eval.in/426405)
naftilos76 has joined #ruby
<nerium> Any problems?
Silox| has quit [Quit: Connection closed for inactivity]
kirun has quit [Remote host closed the connection]
<naftilos76> Hi, i am using ruby 2.2 . Is there a way to detect whether a file is being read? I basically want to delete a file after the read access from another source ceases.
dawkirst has joined #ruby
michael_mbp has joined #ruby
chichou has joined #ruby
<slash_nick> naftilos76: can you send a signal when the read ceases? then delete when the signal is received?
<baweaver> The other way will be faster
opensource_ninja has joined #ruby
<naftilos76> slash_nick, i want to delete a zip file after it is downloaded in rails
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diegoaguilar has quit [Ping timeout: 244 seconds]
<naftilos76> after it i downloaded through the send_file method
<baweaver> either way have to get back to some work.
diegoaguilar has joined #ruby
zendrix has quit []
<slash_nick> naftilos76: so (pseudocode) send_file(file); send_the_send_file_finished_signal... you can do it pub-subbishly using ActiveSupport::Notifications
<nerium> baweaver: Performence is not really a problem as it’s used in an admin panel. The code you posted had some smaller buggs
DoubleMalt has quit [Remote host closed the connection]
roxtrongo has quit [Ping timeout: 252 seconds]
<naftilos76> slash_nick, let me see send_file in rails api
majjoha has joined #ruby
dawkirst has quit [Ping timeout: 246 seconds]
<slash_nick> naftilos76: looking now... but we should move this conversation to #rubyonrails
<naftilos76> slash_nick, sure
nhhagen has quit [Ping timeout: 255 seconds]
rdark has quit [Ping timeout: 255 seconds]
mary5030 has quit [Ping timeout: 256 seconds]
nhhagen has joined #ruby
skade has joined #ruby
roxtrongo has joined #ruby
_djbkd has quit [Remote host closed the connection]
jeadre has quit [Remote host closed the connection]
pandaant has quit [Remote host closed the connection]
dfinninger has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
scripore has joined #ruby
jordanloky has joined #ruby
majjoha has quit [Ping timeout: 260 seconds]
jeadre has joined #ruby
_djbkd has joined #ruby
chichou_ has joined #ruby
chipotle has quit [Remote host closed the connection]
jordanloky has quit [Read error: Connection reset by peer]
vdamewood has quit [Quit: Life beckons.]
baweaver has quit [Remote host closed the connection]
[Butch] has joined #ruby
ap4y has joined #ruby
freerobby has quit [Quit: Leaving.]
chichou has quit [Ping timeout: 250 seconds]
mary5030 has joined #ruby
<Mon_Ouie> nerium: I'd use #scan_until, somewhat like this: https://eval.in/426416
wldcordeiro__ has quit [Quit: Leaving because reasons...]
freerobby has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nerium> Mon_Ouie: Nice, i’ll give it a try
mary5030 has quit [Remote host closed the connection]
TeresaP has joined #ruby
<nerium> Mon_Ouie: Any idea how to split the questions into parts?
<TeresaP> OT: Did web chat.freenode.net get an upgrade?
<nerium> Mon_Ouie: Like this one data = "This is stuff 1. Number one 2. Number two 5. End of line"
nettoweb has joined #ruby
<nerium> Mon_Ouie: Output: [”Number one”, Number two”, ”End of line”]
wldcordeiro__ has joined #ruby
<nerium> Mon_Ouie: I tried using data.scan(/\d+\.\s+(.+?)(?=\d+\.\s+)/m).to_a, but the output isn’t correct
<jhass> ?ot TeresaP ;)
<ruboto> TeresaP, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
iamninja has quit [Read error: Connection reset by peer]
<TeresaP> I said "OT" but didn't realize there was an off-topic changel
<Mon_Ouie> Same idea as for splitting questions and answers, but with / (\d+)\. / as a regexp?
<TeresaP> thanks
iamninja has joined #ruby
shadoi has joined #ruby
syath has quit [Quit: WeeChat 1.2]
<nerium> Mon_Ouie: The problem is that the numbers arn’t in order
yfeldblum has quit [Ping timeout: 246 seconds]
baweaver has joined #ruby
havenwood has joined #ruby
beefcakeba has joined #ruby
<Mon_Ouie> You can grab the number with the capture group (scanner[1]), put them in a hash of idx => option and then collect them in order in an array
<nerium> Mon_Ouie: Can I use then for anything? I mean, I might just have extracted #1, that doesn’t mean that #2 is next
bstrrm has quit [Ping timeout: 244 seconds]
<Mon_Ouie> / (\d+)\. / is going to match no matter what number is next
kristian_on_linu has joined #ruby
<kristian_on_linu> hi
<kristian_on_linu> Could not find 'listen' (~> 2.7) - did find: [listen-3.0.3] (Gem::LoadError)
<kristian_on_linu> this means that I have the gem, but too new a version ... eh?
scripore has quit [Quit: This computer has gone to sleep]
David27 has quit [Read error: Connection reset by peer]
<adaedra> indeed
<shevy> yeah
<adaedra> did you `bundle install` ?
<kristian_on_linu> yes
<shevy> you can select one from there https://rubygems.org/gems/listen/versions
<adaedra> under current user?
David27 has joined #ruby
<kristian_on_linu> shevy, I would want the newest one, eh?
scripore has joined #ruby
<shevy> kristian_on_linu I myself would but you have a hardlock there, probably in Gemfile
<adaedra> not if the thing you're trying to setup don't want it
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
<adaedra> and here, it requires something 2.7 and newer, but before 2.8
havenwood has quit [Ping timeout: 272 seconds]
rubie has quit [Remote host closed the connection]
nertzy has quit [Quit: This computer has gone to sleep]
<nerium> Mon_Ouie: Hmm, I dont get any matches. What I’m i missing? https://gist.github.com/oleander/17f6be2c2db939a859f1
luksaur has quit [Ping timeout: 240 seconds]
<adaedra> but bundle should install the right version
dzejms has joined #ruby
mjuszczak has joined #ruby
<kristian_on_linu> hurm
<adaedra> you don't run bundle under sudo, right?
<kristian_on_linu> no
<kristian_on_linu> I usually just gem install stuff
badfish129 has joined #ruby
<kristian_on_linu> but I think I have rvm
<adaedra> gem install will pickup the last version if you don't give specifications on the version
<Mon_Ouie> You have to skip the "This is a stuff" part before you can use the scan loop
<badfish129> anyone can help with mocha, how would I mock a method that returns nothing but changes one of its arguments
<Mon_Ouie> e.g. with scan_until
<Mon_Ouie> (scan matches at the beginning of the remaining string)
Majost__ has joined #ruby
<nerium> Mon_Ouie: Got an example? :/
<Mon_Ouie> x = "before 1. after"; before = scanner.scan_until(/(?= \d\. )/); while …
<Majost__> Can someone explain this to me: /(.\d\.\d.\d|.\d\.\d)/.match('1.0') => nil
wldcordeiro__ has quit [Quit: Leaving because reasons...]
<Majost__> It matches 10.0 and 10.0.0 correctly though... is anything < 10 not concidered a digit or something?
<shevy> the | there I think
<shevy> it should be or
<Mon_Ouie> Well it doesn't match because the first pattern (before the '|' is any character, followed by a digit, followed by a dot, followed by a digit, followed by any character, followed by a digit
<nofxx> Majost__, 10 is not 1 digit
yfeldblum has joined #ruby
<nofxx> 2 digits, \d+
<nofxx> or \d{2,}
<Mon_Ouie> Second one is any character followed by a digit followed by a dot, followed by a digit.
<nofxx> ops, \d{1,}
<jhass> {1,} is +
<nofxx> jhass, yup
<Majost__> ah
<Majost__> \d+ fixed it
<Majost__> thanks
wldcordeiro__ has joined #ruby
<nofxx> jhass, was going to say about {1,x} later
riotjones has joined #ruby
<nofxx> Majost__, if you know how many digits
shadoi has quit [Quit: Leaving.]
chipotle has joined #ruby
sts has joined #ruby
modern has quit [Ping timeout: 272 seconds]
<sts> hello folks. I found a gem once which made it easy to align text properly, forgot about its name tho. Any ideas?
pawnbox has quit [Remote host closed the connection]
nhhagen has quit [Remote host closed the connection]
<shevy> .ljust and .rjust !
<shevy> yay Österreich
ldnunes has quit [Quit: Leaving]
dfinninger has joined #ruby
<sts> oh yeah maybe it was just stdlib :)
minimuff1ns has joined #ruby
<shevy> but really, .ljust and .rjust should suffice
<shevy> >> ["Ticket Type".ljust(14),"Maintenance".rjust(12)].join(':')
<ruboto> shevy # => "Ticket Type : Maintenance" (https://eval.in/426417)
<sts> true
<shevy> there was some boxed ascii formatter
<sts> No i don't want any boxes :)
riotjones has quit [Ping timeout: 246 seconds]
Azure has joined #ruby
<shevy> I mean because of the ':' character, I remember that it also used that character to separate key-value pairs
<shevy> since the ':' on your link all appear to be aligned, top to bottom
minimuffins has quit [Ping timeout: 255 seconds]
modern has joined #ruby
gener1c has quit [Ping timeout: 240 seconds]
gamename has quit [Remote host closed the connection]
Porfa has joined #ruby
<Porfa> lol hello
gamename has joined #ruby
<shevy> hmm
badfish129 has quit [Quit: badfish129]
minimuff1ns has quit [Read error: Connection reset by peer]
<shevy> sts I don't remember, perhaps it was that project, in the event that stdlib won't suffice: https://github.com/tj/terminal-table
gener1c has joined #ruby
gamename has quit [Read error: Connection reset by peer]
minimuffins has joined #ruby
luksaur has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
<Porfa> will anyone kind enough show me the syntax on a ruby selenium, on how to use regex?
badfish129 has joined #ruby
sshuff is now known as sshuff|gone
diegoaguilar has quit [Ping timeout: 272 seconds]
EllisTAA has quit [Quit: EllisTAA]
kidmillions has quit [Quit: kidmillions]
<Porfa> I'm cross helping (is that how you say it?) someone is chatting with me already, I'm only used to look ilke a fool in here
kidmillions has joined #ruby
rodfersou has quit [Quit: leaving]
PenguinMan98 has joined #ruby
<PenguinMan98> I updated PATH to include the D:\Ruby\DevKit\bin but it doesn't seem to work
diegoaguilar has joined #ruby
EllisTAA has joined #ruby
v4n has joined #ruby
<PenguinMan98> Error installing _my gem_ The 'hittimes' native gem requires installed build tools.
akurilin has joined #ruby
EllisTAA has quit [Client Quit]
devoldmx has joined #ruby
<PenguinMan98> I downloaded them and unzipped them to D:\Ruby\DevKit
A_ron has joined #ruby
<PenguinMan98> I updated PATH with both D:\Ruby\DevKit and D:\Ruby\DevKit\bin but no luck
<PenguinMan98> ideas?
uri_ has quit [Ping timeout: 272 seconds]
ivanskie has quit [Read error: Connection reset by peer]
jordanloky has joined #ruby
naftilos76 has quit [Quit: Αποχώρησε]
akurilin has quit [Ping timeout: 240 seconds]
michael_mbp has quit [Excess Flood]
devoldmx has quit [Ping timeout: 244 seconds]
michael_mbp has joined #ruby
rubie has joined #ruby
crdpink2 has quit [Quit: q term]
dman777_alter has quit [Quit: Lost terminal]
modern has quit []
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AlphaAtom has quit [Quit: Textual IRC Client: www.textualapp.com]
AlphaAtom has joined #ruby
crdpink has joined #ruby
ivanskie has joined #ruby
gamename has joined #ruby
bronson has quit [Remote host closed the connection]
mary5030 has joined #ruby
absolutejam has quit [Ping timeout: 256 seconds]
mary5030 has quit [Remote host closed the connection]
majjoha has joined #ruby
mary5030 has joined #ruby
crdpink has quit [Client Quit]
petricore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Lycanii has quit [Quit: Konversation terminated!]
havenwood has joined #ruby
<umgrosscol> PenguinMan98, you can call the executables in DevKit\bin from your command line?
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
googya has quit [Ping timeout: 264 seconds]
majjoha has quit [Ping timeout: 255 seconds]
cnngimenez has quit [Ping timeout: 264 seconds]
<kristian_on_linu> should I update ruby?
<kristian_on_linu> I'm on ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-linux]
<shevy> kristian_on_linu the difference is marginal
<kristian_on_linu> (trying now, with RVM)
<kristian_on_linu> hurm
<shevy> but if you are bored you can
<PenguinMan98> Yes
michael_mbp has quit [Excess Flood]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<shevy> I am on ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-linux]
mleung has quit [Quit: mleung]
<kristian_on_linu> I am sort of bored ... but I was thinking it could explain my woes
<havenwood> kristian_on_linu: grab the latest RVM first: rvm get master
<shevy> PenguinMan98 I think not many people use windows these days
<PenguinMan98> I know because ls works
<PenguinMan98> until I installed the tools, I was using dir still
<kristian_on_linu> ls is awesome ... I use it all the time
<PenguinMan98> shevy: regardless, I am
<kristian_on_linu> cat is also nice
bronson has joined #ruby
absolutejam has joined #ruby
crdpink has joined #ruby
michael_mbp has joined #ruby
petricore has joined #ruby
<baweaver> As someone who used to do Ruby on Windows, you _can_ do it but I wouldn't if I were you.
<kristian_on_linu> I'll pastebin the entire error. It's jekyll but it seems like a ruby problem to me.
<baweaver> kristian_on_linu: use gist
<ruboto> kristian_on_linu, we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<baweaver> ruboto tends to
<baweaver> that
Mendenhall has quit [Quit: WeeChat 1.0.1]
mjuszczak has quit []
workmad3 has joined #ruby
<baweaver> kristian_on_linu: seems straightforward, version is missing
meph has joined #ruby
<BraddPitt> you have a very Nordic name, kristian_on_linu
optimusno has quit [Remote host closed the connection]
<PenguinMan98> So, recommendations to delete my life and start over on an other OS aside, any ideas what is wrong?
tmtwd has joined #ruby
<kristian_on_linu> I'm in Denmark, BraddPitt
<BraddPitt> Makes sense
<kristian_on_linu> baweaver: elaborate, please?
<baweaver> cannot load such file -- jekyll/version (LoadError)
victortyau has quit [Quit: Leaving]
Queeniebee has quit [Ping timeout: 246 seconds]
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
jpfuentes2 has joined #ruby
modern has joined #ruby
modern has joined #ruby
<kristian_on_linu> GODS DAMNED
<baweaver> odd
shadoi has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
decoponyo has joined #ruby
AlphaAtom has quit [Read error: Connection reset by peer]
<baweaver> I'd open an issue on it, or see if there's a patched version
shinnya has joined #ruby
AlphaAtom has joined #ruby
bubbys has joined #ruby
kidmillions has quit [Ping timeout: 265 seconds]
AlphaAtom has quit [Max SendQ exceeded]
AlphaAtom has joined #ruby
decoponio has quit [Ping timeout: 246 seconds]
<kristian_on_linu> I only needed to rename the gemfile!
cschneid_ has quit [Ping timeout: 244 seconds]
ngscheurich has quit [Ping timeout: 250 seconds]
dgutierrez1287 has joined #ruby
<dfockler> should I modify $LOAD_PATH or use require_relative to load local files?
nanoz has quit [Ping timeout: 246 seconds]
michael_mbp has quit [Excess Flood]
skade has quit [Quit: Computer has gone to sleep.]
nertzy has joined #ruby
David27 has quit [Read error: Connection reset by peer]
ckinniburgh has quit [Read error: Connection reset by peer]
jpfuentes2 has quit [Quit: Textual IRC Client: www.textualapp.com]
dzejms has quit [Remote host closed the connection]
<shevy> neither
AlphaAtom has quit [Client Quit]
<shevy> install a gem :)
<shevy> I use require to load some local .rb file
<shevy> require_relative is so long to type
<dfockler> I don't want it to be a gem
meatherly has quit []
messysaurus has joined #ruby
centrx has joined #ruby
dgutierrez1287 has quit [Ping timeout: 264 seconds]
<baweaver> everything is a gem
<baweaver> _everything_
<dfockler> haha
<dfockler> I thought everything was an Object
<baweaver> Object is a gem
<baweaver> \o/
<dfockler> haha
kinduff has quit []
<baweaver> (not really, just being cheeky by now)
<baweaver> well, rubinius
michael_mbp has joined #ruby
Jackneill has quit [Ping timeout: 268 seconds]
<banisterfiend> baweaver sup weave-dogg
<baweaver> alo
yashinbasement has joined #ruby
<banisterfiend> sup
erts has joined #ruby
<baweaver> waiting for pull requests to get done.
<shevy> pull that dam already!
eightfold has quit [Quit: eightfold]
jgpawletko has joined #ruby
ghr has quit [Read error: No route to host]
tmtwd has quit [Ping timeout: 250 seconds]
freerobby has quit [Quit: Leaving.]
ghr has joined #ruby
luksaur has quit [Ping timeout: 250 seconds]
renodice has joined #ruby
freerobby has joined #ruby
freerobby has quit [Client Quit]
michael_mbp has quit [Excess Flood]
quazimodo has quit [Ping timeout: 246 seconds]
mleung has joined #ruby
ghr has quit [Ping timeout: 268 seconds]
rubie has quit [Remote host closed the connection]
Respek has quit [Quit: gone to sleep. ZZZzzz…]
rubie has joined #ruby
Oka has joined #ruby
dfockler has quit [Remote host closed the connection]
michael_mbp has joined #ruby
Jardayn has quit [Quit: Leaving]
ruby-lang494 has joined #ruby
A_ron has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Sou|cutter> I'm finding myself writing interfaces that lean heavily on #call lately. I can't tell if this is a good or bad thing yet :/
PenguinMan98 has quit [Ping timeout: 246 seconds]
ledestin has joined #ruby
quazimodo has joined #ruby
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
davedev24 has joined #ruby
robbyoconnor has joined #ruby
renodice has left #ruby ["Silentium est aureum"]
dfockler has joined #ruby
lxsameer has quit [Remote host closed the connection]
<shevy> do you know what is going on?
barhum2013 has joined #ruby
renodice has joined #ruby
ruby-lang494 has quit [Ping timeout: 246 seconds]
<centrx> shevy, WHAT IS GOING ON!?!?
tuxero has quit [Ping timeout: 265 seconds]
umgrosscol has quit [Remote host closed the connection]
robbyoconnor has quit [Client Quit]
Voker57 has quit [Remote host closed the connection]
PenguinMan98 has joined #ruby
<shevy> I mean the #call-able interfaces
iamninja has quit [Ping timeout: 264 seconds]
<banisterfiend> Sou|cutter soon you'll be writing pure functions :)
<banisterfiend> i mean if your objects are small enough to have one method as their public interface you'll probably go whole-hog and just have single functions altogether, then you'll be blogging about haskell and monads soon enough..
tmtwd has joined #ruby
renodice has left #ruby [#ruby]
alejandrok5 has quit [Read error: No route to host]
alejandrok5 has joined #ruby
* baweaver hides monad tutorial slowly
* Sou|cutter nods sadly
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
nertzy has quit [Quit: This computer has gone to sleep]
messysaurus has quit [Ping timeout: 240 seconds]
mjuszczak has joined #ruby
mleung has quit [Quit: mleung]
chipotle has quit [Quit: cheerio]
<aep> hm, rand() is too random for me. i wonder if there is a form of 'random' that is biased towards even distribution
<Sou|cutter> I'm really curious why anyone would ever use .() on a #call-able
mleung has joined #ruby
michael_mbp has quit [Excess Flood]
<banisterfiend> Sou|cutter in the case of lambdas it's just cos it looks more like () i guess
<banisterfiend> which ruby doesnt allow for various reasons
Yzguy has joined #ruby
mleung has quit [Client Quit]
<Sou|cutter> it looks so janky
<centrx> aep, I thought rand already used a uniform distribution?
<Sou|cutter> banisterfiend: probably true
<banisterfiend> Sou|cutter if you're writing something full of lambdas like the y-combinator, it can look a little neater
<banisterfiend> though still pretty janky yeah
<banisterfiend> but a lil nicer than #call everywhere imo
ghr has joined #ruby
<aep> centrx: probably, but i need more. i'm using it for a binary choice and it just returned 10 times true in a row. humans will think its broken
<zenspider> I'd honestly rather use call than .()
<zenspider> but I'll stick to []
<zenspider> mmm... no, apparently I use .call a fair amount too
<Sou|cutter> zenspider: [] doesn't #call does it?
<zenspider> hard to look for where I use []
<centrx> aep, Anything can happen, it's random
<zenspider> they're aliases
<baweaver> >> -> { 1 + 2 }[]
<ruboto> baweaver # => 3 (https://eval.in/426428)
<Sou|cutter> nice, I didn't realize that one
<aep> centrx: exactly, i want less random :D
<maletor> How does Float#round work, in relation to IEEE 754? I mean, how does it add bits to increase the precision of the number?
<baweaver> >> -> a { 1 + 2 } === 1
<ruboto> baweaver # => 3 (https://eval.in/426429)
<centrx> aep, You could do (1..10).to_a.shuffle
<baweaver> :D
<zenspider> maletor: afaik, it _is_ 754
<shevy> Sou|cutter once you use [] your code will become even more magical to the un-initiated
<Sou|cutter> shevy: That is a concern, heh
<aep> centrx: doesnt that just use rand() ?
<maletor> zenspider: then how does it remove the .000000000003 at the end by virtue of rounding it? Wouldn't they still exist?
<banisterfiend> Sou|cutter jim weirich used .() a lot in this vid on the y combinator https://www.youtube.com/watch?v=FITJMJjASUs
<aep> maybe i should just count and bias it myself
<zenspider> "too random" heh
mleung has joined #ruby
<zenspider> banisterfiend: and it was icky...
<zenspider> made it look slighly more lispy tho, I guess
<zenspider> if you squint
<banisterfiend> if you squint hard enough you can just ignore the '.' https://www.dropbox.com/s/nkdrhpbsjhyzkwh/Screenshot%202015-09-02%2000.41.17.png?dl=0
<banisterfiend> yeah
<banisterfiend> hehe
michael_mbp has joined #ruby
<zenspider> maletor: I don't think I understand your question
<centrx> aep, that gives you a randomly sorted array of the numbers 1 through 10
mprelude has quit [Ping timeout: 246 seconds]
<zenspider> maletor: round returns a new value, and an integer... so...
<Sou|cutter> banisterfiend: I like(d) Jim a lot, but I think we have different aesthetic tastes
<aep> centrx: i dont understand how thats less random
<centrx> aep, each number appears only once. So figure out what the actual parameters of your randomness are. The same number appearing ten times in a row is unlikely, it's not going to happen to a lot of people, maybe no one else
<aep> aah!
<aep> unfortunatly i have true/false. but the idea was good
<Sou|cutter> or he's just challenging me, and my subconscious doesn't like that ;)
<zenspider> aep: (1..10).to_a is about as less random as you'll get
chouhoulis has quit [Remote host closed the connection]
<zenspider> Sou|cutter: I don't think that talk was representative of his normal style. IIRC, he says something to that effect at the start
<maletor> zenspider: i think it's because round has a ceiling of ~16
gamename has quit [Remote host closed the connection]
<maletor> if it were any more than the float couldn't be trusted to be accurate
<zenspider> not to say that I don't disagree with many of his design choices
maletor_ has joined #ruby
<maletor> zenspider: which is a practical limit of floats in the first place
<aep> actually this is exactly what i need (([true]*5)+([false]*5)).to_a.shuffle thanks centrx
wldcordeiro__ has quit [Ping timeout: 250 seconds]
<Sou|cutter> yea
<zenspider> maletor: again, I'm not sure what you're asking. afaik, ruby implements ieee754 directly. Refer to that document
nahtnam has joined #ruby
<banisterfiend> zenspider "not" to say that i "dont" "dis"agree, for someone who doesnt even liek to use "unless" in ruby that hurt my tiny pigeon brain :)
* centrx hopes aep is not writing the next version of OpenSSL
<zenspider> banisterfiend: jim didn't use unless?
<banisterfiend> zenspider i was just referring to your use of negatives in that sentence :)
<banisterfiend> not, dont, disagree
<banisterfiend> could also be because it's nearly 1am and i'm drunk though..
<aep> centrx: hehe. nah, its a coin toss. and humans get frustrated when it 'feels' not random
<zenspider> ah. :P
<Sou|cutter> banisterfiend: I laughed
<banisterfiend> :)
dseitz has quit [Ping timeout: 240 seconds]
alejandrok5 has quit [Quit: Leaving.]
luksaur has joined #ruby
Mendenhall has joined #ruby
tonios57 has quit [Quit: Textual IRC Client: www.textualapp.com]
sarkyniin has quit [Remote host closed the connection]
shadoi has quit [Quit: Leaving.]
Yzguy has quit [Quit: Zzz...]
michael_mbp has quit [Excess Flood]
renodice has joined #ruby
truenito has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
michael_mbp has joined #ruby
hahuang65 has quit [Ping timeout: 250 seconds]
jesterfraud has joined #ruby
shinnya has quit [Ping timeout: 264 seconds]
dfinninger has quit [Remote host closed the connection]
alejandrok5 has joined #ruby
sdwrage has joined #ruby
alejandrok5 has quit [Client Quit]
havenwood has quit [Ping timeout: 272 seconds]
Spami has quit [Quit: This computer has gone to sleep]
[Butch] has quit [Quit: Linkinus - http://linkinus.com]
kidmillions has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
mjuszczak has quit []
shadoi has joined #ruby
quazimodo has quit [Ping timeout: 272 seconds]
mjuszczak has joined #ruby
Rickmasta has joined #ruby
pragmatism has joined #ruby
bigmac has joined #ruby
poli has quit [Read error: Connection reset by peer]
theery has quit [Remote host closed the connection]
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
poli has joined #ruby
blue_deref has joined #ruby
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tskogberg has quit [Ping timeout: 256 seconds]
theery has joined #ruby
tskogberg has joined #ruby
mjuszczak has quit [Ping timeout: 260 seconds]
michael_mbp has quit [Excess Flood]
davejlong has joined #ruby
c1v0 has quit []
dopamean1 has quit [Ping timeout: 250 seconds]
dopie has joined #ruby
jesterfraud has joined #ruby
<jesterfraud> what happened to MINASWAN in the topic?
<shevy> who was the evil one who changed the topic last
michael_mbp has joined #ruby
bronson has quit [Remote host closed the connection]
<shevy> aha! it was apeiros!
spider-mario has quit [Remote host closed the connection]
siaw has left #ruby [#ruby]
<shevy> jesterfraud I don't think I would have noticed any change at all, I don't even read topics, they scroll away so quickly :)
robbyoconnor has joined #ruby
mleung has quit [Quit: mleung]
tubuliferous_ has joined #ruby
riotjones has joined #ruby
<BraddPitt> Outside of Rails, is there a way to feed a schema to Postgres?
tubuliferous has quit [Disconnected by services]
tubuliferous has joined #ruby
<baweaver> Sequel
<baweaver> or postgresql console
<BraddPitt> hmmm ideally reading from a file
shadoi has quit [Quit: Leaving.]
<BraddPitt> I guess I could read in from a text file with table creation statements?
<dfockler> BraddPitt: psql db_name < file.sql
<BraddPitt> can I do that in code?
<Radar> `psql db_name < file.sql`
<dfockler> ^
<Radar> next question plz
<dfockler> I'm sure pg or Sequel has some function for it
<BraddPitt> heh
tubuliferous_ has quit [Remote host closed the connection]
<baweaver> does
<BraddPitt> was trying to find it in pg
<BraddPitt> i hate their docs
tubuliferous_ has joined #ruby
<BraddPitt> I think i'll do what Radar suggested, thanks
<dfockler> pg docs are annoying
jobewan has quit [Quit: Leaving]
riotjones has quit [Ping timeout: 246 seconds]
bigredboots has quit [Remote host closed the connection]
* baweaver shrugs
SCHAAP137 has quit [Quit: Leaving]
tubuliferous has quit [Remote host closed the connection]
<Radar> Are they?
DLSteve has quit [Ping timeout: 255 seconds]
whiteline has quit [Ping timeout: 256 seconds]
bronson has joined #ruby
ghr has joined #ruby
tubuliferous_ has quit [Remote host closed the connection]
<BraddPitt> to read, yes
<Radar> explain plz
tubuliferous has joined #ruby
<BraddPitt> its just a list of classes, methods and files
<BraddPitt> but no description of what each does
[k- has quit [Quit: -a- IRC for Android 2.1.23]
<BraddPitt> so if you don't know what you're looking for, its hard to search
michael_mbp has quit [Excess Flood]
davejlong has quit [Remote host closed the connection]
messysaurus has joined #ruby
Salve has joined #ruby
michael_mbp has joined #ruby
whippythellama has quit [Quit: WeeChat 1.3]
<shevy> people often get lazy when it comes to docu
davejlong has joined #ruby
messysaurus has quit [Remote host closed the connection]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ghr has quit [Ping timeout: 265 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Radar> Oh the pg gem
<Radar> I thought you meant the PostgreSQL.org docs
<cscheib> is there a sane reason why people upload numerous iterations of their gem to rubygems within a very short span?
<Radar> cscheib: eg?
<cscheib> just curious, I've been following the rubygems twitter feed
<cscheib> example, frecon
<Radar> Bugs in it
<Radar> I dunno
<cscheib> I can understand like 2 in 30 minutes
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Coraline> Sometimes, as Radar says, I release and realize that I published a bug
<Radar> Why are you following it? It's a firehose.
<Radar> GitHub link is broken for frecon.
<cscheib> Coraline: oh, totally understood... but there's like a dozen uploads
<BraddPitt> cscheib usually committing without testing
Agoldfish has quit [Quit: G'Bye]
<cscheib> yea, that's what I figured, laziness
<BraddPitt> (I'm very guilty of that with my git commits but it gets me green squares so #yolo)
<cscheib> just wasn't sure if there was something I'm missing
petricore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
glenab has joined #ruby
kristian_on_linu has quit [Quit: Leaving]
messysaurus has joined #ruby
<cscheib> Radar: it is a firehose, sure, but I've found out about a few reasonably useful gems by following the feed
<shevy> cscheib sometimes you may find some bug or typo as you release a gem
barhum2013 has quit [Quit: barhum2013]
glenab has quit [Client Quit]
<shevy> so then you either publish a new update quickly, or wait until the next iteration which may happen in +x days
<cscheib> shevy: yes yes, but a dozen times? :P
<shevy> dunno
davejlong has quit [Remote host closed the connection]
<shevy> I think the highest count of gem release I had about 6 gems for one project in a single day
<cscheib> sounds like laziness, and not using versioning/branching/tagging properly
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
barhum2013 has joined #ruby
<Ox0dea> cscheib: Perhaps they accidentally set up a hook that pushes on save. :P
<cscheib> I suspect that's part of it
<shevy> isn't that precisely how you would publish in any other version control system too?
<zenspider> cscheib: laziness / sloppy discipline. I try to never ever release the same thing more than once a day.
<zenspider> I've also had jr devs under me that thought they could put out shit and then just put out fixes as they came up
<zenspider> rude awakening when I made them live with their initial release for a week
devoldmx has joined #ruby
<zenspider> they cleaned up real quick
mleung has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
<shevy> not sure how that dude added +x KB so quickly
BraddPitt is now known as MEME_COP_BADGE_N
MEME_COP_BADGE_N is now known as BraddPitt
<cscheib> zenspider: yea, I'm with you, I wouldn't be tagging a release until I'm sure it's ready
<cscheib> and not multiple times in a day
<zenspider> ew. and they use tabs
<zenspider> fuckers
kies has quit [Ping timeout: 246 seconds]
<shevy> hmm... saying there are 6 authors for frecon
<cscheib> heck, I'd leave it off rubygems until the release cycle was mildly stable
Yzguy has joined #ruby
petricore has joined #ruby
<Ox0dea> At least he's not pushing the gem for each additional piece of documentation. :P
benlovell has joined #ruby
<BraddPitt> oh my god
newmanships has joined #ruby
einarj has quit [Remote host closed the connection]
<zenspider> my favorite is when they have horrible process and each release contains pkg/*.gem
<Aeyrix> LOL
<zenspider> there was one gem that had been doing that for months
silkfox has quit [Ping timeout: 240 seconds]
tmtwd has quit [Ping timeout: 268 seconds]
<zenspider> they had no clue that their 100kb gem was megs in size
michael_mbp has quit [Excess Flood]
r0bby_ has joined #ruby
michael_mbp has joined #ruby
devoldmx has quit [Ping timeout: 244 seconds]
bronson has quit [Remote host closed the connection]
ghr has joined #ruby
<cscheib> (I'll stop making fun now, it's not like I'm contributing anything useful publicly)
Rickmasta has joined #ruby
juanpablo____ has quit [Quit: (null)]
davejlong has joined #ruby
benlovell has quit [Ping timeout: 260 seconds]
robbyoconnor has quit [Read error: Connection reset by peer]
<Aeyrix> I want to post this on Twitter but Dashlane still haven't fixed their issue with sites using CSP
<Aeyrix> so I can't be bothered to login normally.
theery has quit [Remote host closed the connection]
rcvalle has quit [Quit: rcvalle]
barhum2013 has quit [Quit: barhum2013]
hahuang65 has joined #ruby
hinbody has quit [Quit: leaving]
Motoservo has quit [Quit: Over & out.]
blackmesa has joined #ruby
rodfersou has joined #ruby
Salve has quit [Remote host closed the connection]
r0bby_ has quit [Ping timeout: 244 seconds]
Ropeney has joined #ruby
Motoservo has joined #ruby
einarj has joined #ruby
Authenticator has joined #ruby
Motoservo has quit [Client Quit]
ghr has quit [Ping timeout: 252 seconds]
Motoservo has joined #ruby
workmad3 has joined #ruby
rushed has joined #ruby
mary5030 has quit [Remote host closed the connection]
majjoha has joined #ruby
snockerton has quit [Quit: Leaving.]
theery has joined #ruby
rubie has quit [Remote host closed the connection]
amystephen has joined #ruby
dseitz has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
chouhoulis has joined #ruby
mleung has quit [Quit: mleung]
chouhoulis has quit [Remote host closed the connection]
dseitz has quit [Client Quit]
theery has quit [Ping timeout: 246 seconds]
chouhoulis has joined #ruby
majjoha has quit [Ping timeout: 264 seconds]
d10n-work has quit [Quit: Connection closed for inactivity]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
wald0 has quit [Quit: Lost terminal]
solocshaw has quit [Ping timeout: 244 seconds]
Yzguy has quit [Quit: Zzz...]
mleung has joined #ruby
tfranco has joined #ruby
dseitz has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rushed has quit [Quit: rushed]
mleung has quit [Client Quit]