adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 2.7.2, 2.6.6, 3.0.0-preview2: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.org | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | BLM <3
<leah2> use it for 10000 hours :)
<havenwood> prion: Join the #ruby-pro channel and *never* have a question. Just sit in quiet contemplation.
<havenwood> prion: We're happy to help here with any questions or code review!!
<prion> i just wanna learn all the string and array methods and little tricks to use it for code golf
<prion> is there a good resource for that
<leah2> look at the reference documentations
<leah2> it's not thaaat long for that part
<prion> so many m*thods
bambanx has joined #ruby
bvdw has quit [Quit: The Lounge - https://thelounge.chat]
bvdw has joined #ruby
ur5us has quit [Ping timeout: 258 seconds]
baojg has quit [Remote host closed the connection]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<leftylink> eh what
<leftylink> there's a ruby-pro channel
<leftylink> or am I being trolled
baojg has joined #ruby
<leftylink> no it exists
<leftylink> what the
AndyC has quit [Ping timeout: 265 seconds]
stryek has quit [Quit: Connection closed for inactivity]
ur5us has joined #ruby
drincruz_ has quit [Ping timeout: 256 seconds]
<adam12> lol
queip has quit [Ping timeout: 256 seconds]
Technodrome has joined #ruby
roshanavand has quit [Ping timeout: 258 seconds]
crankharder has joined #ruby
Swyper has quit [Remote host closed the connection]
greengriminal has quit [Quit: Leaving]
lucasb has quit [Quit: Connection closed for inactivity]
crankharder has quit [Ping timeout: 260 seconds]
Swyper has joined #ruby
dfucci has joined #ruby
Swyper has quit [Ping timeout: 240 seconds]
<havenwood> prion: When you look at Array methods you might want to carry on and look at Enumerable too, since it's what Array and other important collections mix in.
<havenwood> prion: Great idea to study String, Array, and Enumerable methods. That'll get you a long way.
dfucci has quit [Ping timeout: 258 seconds]
crankharder has joined #ruby
Rudd0 has quit [Ping timeout: 258 seconds]
crankharder has quit [Ping timeout: 256 seconds]
kurko_ has joined #ruby
bambanx has quit [Remote host closed the connection]
bambanx has joined #ruby
crankharder has joined #ruby
bambanx has quit [Remote host closed the connection]
bambanx has joined #ruby
crankharder has quit [Ping timeout: 265 seconds]
crankharder has joined #ruby
roshanavand has joined #ruby
crankharder has quit [Ping timeout: 246 seconds]
aremaref has quit [Ping timeout: 258 seconds]
aremaref has joined #ruby
queip has joined #ruby
aremaref has quit [Ping timeout: 258 seconds]
meinside has joined #ruby
bambanx has quit [Remote host closed the connection]
AndyC has joined #ruby
bambanx has joined #ruby
kurko_ has quit [Quit: kurko_]
bambanx has quit [Remote host closed the connection]
roshanavand has quit [Ping timeout: 258 seconds]
gix has quit [Ping timeout: 246 seconds]
drincruz_ has joined #ruby
crankharder has joined #ruby
kurko_ has joined #ruby
aremaref has joined #ruby
aremaref has quit [Ping timeout: 256 seconds]
weaksauce has joined #ruby
cthu| has quit [Ping timeout: 260 seconds]
icarus has quit [Ping timeout: 260 seconds]
yokel has joined #ruby
kurko_ has quit [Quit: kurko_]
crankharder has quit [Ping timeout: 240 seconds]
crankharder has joined #ruby
kurko_ has joined #ruby
kurko_ has quit [Client Quit]
crankharder has quit [Ping timeout: 265 seconds]
dfucci has joined #ruby
AndyC has quit [Ping timeout: 260 seconds]
dfucci has quit [Ping timeout: 256 seconds]
crankharder has joined #ruby
aremaref has joined #ruby
crankharder has quit [Ping timeout: 258 seconds]
aremaref has quit [Ping timeout: 258 seconds]
crankharder has joined #ruby
crankharder has quit [Ping timeout: 256 seconds]
aremaref has joined #ruby
crankharder has joined #ruby
aremaref has quit [Ping timeout: 264 seconds]
nicolas_ is now known as vk
crankharder has quit [Ping timeout: 256 seconds]
aremaref has joined #ruby
crankharder has joined #ruby
aremaref has quit [Ping timeout: 258 seconds]
crankharder has quit [Ping timeout: 272 seconds]
ChmEarl has quit [Quit: Leaving]
crankharder has joined #ruby
Rudd0 has joined #ruby
crankharder has quit [Ping timeout: 240 seconds]
Eiam_ has quit [Ping timeout: 260 seconds]
crankharder has joined #ruby
elcuervo has joined #ruby
ur5us has quit [Ping timeout: 258 seconds]
crankharder has quit [Ping timeout: 260 seconds]
cuerbot has quit [Ping timeout: 256 seconds]
crankharder has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
crankharder has quit [Ping timeout: 256 seconds]
drincruz_ has quit [Ping timeout: 246 seconds]
drincruz_ has joined #ruby
crankharder has joined #ruby
crankharder has quit [Ping timeout: 240 seconds]
rubydoc_ has quit [Ping timeout: 258 seconds]
rubydoc__ has joined #ruby
drincruz_ has quit [Ping timeout: 256 seconds]
phaul has quit [Ping timeout: 265 seconds]
phaul has joined #ruby
bhaak has quit [Ping timeout: 240 seconds]
phaul has quit [Ping timeout: 240 seconds]
rubydoc__ has quit [Ping timeout: 260 seconds]
rubydoc__ has joined #ruby
phaul has joined #ruby
pwnd_sfw8 has joined #ruby
bhaak has joined #ruby
pwnd_sfw has quit [Ping timeout: 256 seconds]
pwnd_sfw8 is now known as pwnd_sfw
dfucci has joined #ruby
crankharder has joined #ruby
davispuh has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
dfucci has quit [Ping timeout: 272 seconds]
crankharder has quit [Ping timeout: 256 seconds]
crankharder has joined #ruby
akem_ has joined #ruby
akem has quit [Ping timeout: 240 seconds]
crankharder has quit [Ping timeout: 246 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dfucci has joined #ruby
crankharder has joined #ruby
crankharder has quit [Ping timeout: 258 seconds]
cliluw has quit [Ping timeout: 264 seconds]
cliluw has joined #ruby
crankharder has joined #ruby
crankharder has quit [Ping timeout: 258 seconds]
dfucci has quit [Ping timeout: 256 seconds]
blackmesa1 has joined #ruby
Furai has quit [Quit: WeeChat 3.0]
crankharder has joined #ruby
rubydoc__ has quit [Ping timeout: 258 seconds]
englishm has quit [Ping timeout: 268 seconds]
jrhorn424 has quit [Read error: Connection reset by peer]
clinth has quit [Read error: Connection reset by peer]
jrhorn424 has joined #ruby
Pillus has quit [Read error: Connection reset by peer]
afisher has quit [Read error: Connection reset by peer]
Pillus has joined #ruby
clinth has joined #ruby
englishm has joined #ruby
phaul has quit [Ping timeout: 256 seconds]
afisher has joined #ruby
Furai has joined #ruby
crankharder has quit [Ping timeout: 256 seconds]
Azure|dc has joined #ruby
clemens3_ has joined #ruby
blackmesa has joined #ruby
Azure has quit [Ping timeout: 240 seconds]
clemens3 has quit [Ping timeout: 240 seconds]
crankharder has joined #ruby
blackmesa1 has quit [Ping timeout: 258 seconds]
crankharder has quit [Ping timeout: 265 seconds]
crankharder has joined #ruby
<hahuang65> ?
crankharder has quit [Ping timeout: 256 seconds]
Azure|dc has quit [Read error: Connection reset by peer]
Azure has joined #ruby
dfucci has joined #ruby
dfucci has quit [Ping timeout: 258 seconds]
crankharder has joined #ruby
crankharder has quit [Ping timeout: 256 seconds]
teclator has quit [Ping timeout: 240 seconds]
rubydoc__ has joined #ruby
phaul has joined #ruby
<hahuang65> that was a mis-message
rubydoc__ has quit [Excess Flood]
rubydoc__ has joined #ruby
teclator has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
ur5us has joined #ruby
crankharder has joined #ruby
rubydoc__ has quit [Ping timeout: 260 seconds]
phaul has quit [Ping timeout: 260 seconds]
Swyper has joined #ruby
crankharder has quit [Ping timeout: 240 seconds]
akem_ has quit [Ping timeout: 256 seconds]
Swyper has quit [Remote host closed the connection]
crankharder has joined #ruby
Swyper has joined #ruby
crankharder has quit [Ping timeout: 256 seconds]
rubydoc__ has joined #ruby
Swyper has quit [Ping timeout: 260 seconds]
cloud69 has joined #ruby
rubydoc__ has quit [Ping timeout: 256 seconds]
blackmesa has joined #ruby
rubydoc__ has joined #ruby
phaul has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TomyWork has joined #ruby
gigetoo has quit [Ping timeout: 264 seconds]
gigetoo has joined #ruby
ua_ has quit [Read error: Connection reset by peer]
kensei has joined #ruby
dfucci has joined #ruby
postmodern has quit [Quit: Leaving]
spk has quit [Ping timeout: 272 seconds]
Furai has quit [Ping timeout: 272 seconds]
dfucci has quit [Quit: leaving]
dfucci has joined #ruby
ua_ has joined #ruby
braincrash has joined #ruby
spk has joined #ruby
akem has joined #ruby
Furai has joined #ruby
kensei has left #ruby [#ruby]
jinie has quit [Quit: ZNC 1.8.2 - https://znc.in]
howdoi has quit [Quit: Connection closed for inactivity]
jinie has joined #ruby
rikkipitt has joined #ruby
ur5us has quit [Ping timeout: 258 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
BenDover has joined #ruby
crankharder has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
crankharder has quit [Ping timeout: 260 seconds]
teclator has quit [Ping timeout: 256 seconds]
teclator has joined #ruby
crankharder has joined #ruby
crankharder has quit [Ping timeout: 256 seconds]
rikkipitt has quit [Quit: Leaving...]
Swyper has joined #ruby
crankharder has joined #ruby
crankharder has quit [Ping timeout: 260 seconds]
crankharder has joined #ruby
mtsd has joined #ruby
mtsd has left #ruby ["Leaving"]
BenDover has quit [Quit: BenDover]
crankharder has quit [Ping timeout: 240 seconds]
Garb0 has joined #ruby
crankharder has joined #ruby
crankharder has quit [Ping timeout: 240 seconds]
crankharder has joined #ruby
crankharder has quit [Ping timeout: 258 seconds]
silviu1 has joined #ruby
silviu has quit [Read error: Connection reset by peer]
donofrio_ has joined #ruby
donofrio has quit [Ping timeout: 240 seconds]
jkprg has joined #ruby
crankharder has joined #ruby
BenDover has joined #ruby
Technodrome has joined #ruby
ap4y has joined #ruby
crankharder has quit [Ping timeout: 265 seconds]
crankharder has joined #ruby
ap4y has quit [Client Quit]
al2o3-cr has quit [Quit: WeeChat 2.9]
cloud69 has quit [Quit: Connection closed for inactivity]
al2o3-cr has joined #ruby
meinside has quit [Quit: Connection closed for inactivity]
ua_ has quit [Ping timeout: 264 seconds]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
ua_ has joined #ruby
<prion> is there something like each_cons but map instead of each
arooni_team_b has joined #ruby
<jhass> prion: you can each_cons().map
arooni has quit [Ping timeout: 260 seconds]
* yxhuvud would bet prion is doing AoC :)
<prion> kinda
<prion> i've been solving them in my own toy language but after using it so much im rusty in languages that are actually relevant
<prion> i feel like ruby is closest in spirit to my own language and it's good for writing cute/golfed solutions so might be a good choice
<prion> it's so big and intimidating though
<prion> including inherited methods Array has like over 1,000 wtf
GodFather_ has quit [Remote host closed the connection]
GodFather has quit [Remote host closed the connection]
<leah2> >> [].methods.size
<ruby[bot]> leah2: # => 190 (https://carc.in/#/r/a3d2)
<leah2> does it
<prion> lol
baojg has quit [Remote host closed the connection]
<prion> 200, 1000, whats the difference :)
<leah2> a factor of 5 :p
<leah2> also Object already has 63 methods
baojg has joined #ruby
<prion> i find the syntax weird, like how juxtaposition is sometimes passing an argument to a method and sometimes not
BTRE has quit [Remote host closed the connection]
<prion> or is it only for blocks
<jhass> not sure I follow, got an example?
<prion> like this
<prion> >> "a b".split " "
<ruby[bot]> prion: # => ["a", "b"] (https://carc.in/#/r/a3d3)
<prion> no parens
<jhass> vs?
<prion> >> "abc".chars.each_cons(3) { |a, b, c| p [c, a, b] }
<ruby[bot]> prion: # => ["c", "a", "b"] ...check link for more (https://carc.in/#/r/a3d4)
<prion> hereyou need the parens
<prion> around 3
<al2o3-cr> prion: use do end instead of { }
<jhass> ah yes, because it would indeed become ambigous otherwise, in this case for the block. Imagine 3 is not a literal but a method call/local variable. then you could have .each_cons(foo) {} vs .each_cons foo {}. Both are valid but the latter would parse to .each_cons(foo {}), because {} binds to the closest call. OTOH .each_cons foo do/end would be .each_cons(foo) {}
BTRE has joined #ruby
<prion> al2o3-cr: just here or always?
<al2o3-cr> prion: jhass explained why.
<prion> i don't quite get why using do/end makes it unambiguous to the parser
royo25 has joined #ruby
Swyper has joined #ruby
<al2o3-cr> prion: are you on Adapter Array p1 ?
<prion> like why is .each_cons 3 { ... } a parse error and not just some kind of runtime error that happens when you try to pass a block to an Integer or whatever
<leah2> i think it's due to the { for hash and block confusion
<leah2> while do...end is unique
<leah2> also note that foo bar { } works
<al2o3-cr> i thought it was precedence
<jhass> Ruby's grammar is quite complex, sometimes that just leads to these little inconsistencies
<leah2> and passes the block to bar
<prion> al2o3-cr: well that's why i'm looking at each_cons but i'm done the problems for today
<leah2> while foo bar do ... end passes the block to foo?
<al2o3-cr> prion: i've not done any this year yet.
<leah2> i never use do...end, easy :D
<prion> are you waiting until it's over
<leah2> i like part 2 today, actually made me think :p
<al2o3-cr> prion: nah, i'll have a crack at some today probably :p
Swyper has quit [Ping timeout: 264 seconds]
crankharder has quit [Ping timeout: 256 seconds]
<prion> i enjoyed them so far this year
<prion> i didn't like the intcode vm stuff last time
<prion> where you keep building on it
drincruz_ has joined #ruby
royo25 has quit [Remote host closed the connection]
Garb0 has quit [Read error: Connection reset by peer]
royo25 has joined #ruby
cloud69 has joined #ruby
crankharder has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
stryek has joined #ruby
drincruz_ has quit [Ping timeout: 240 seconds]
crankharder has quit [Ping timeout: 246 seconds]
Emmanuel_Chanel has joined #ruby
crankharder has joined #ruby
jkprg has quit [Remote host closed the connection]
jkprg has joined #ruby
jkprg has left #ruby [#ruby]
<leah2> yes
<leah2> i hope there will not be many tasks of that kind
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
crankharder has quit [Ping timeout: 256 seconds]
jkprg has joined #ruby
drincruz_ has joined #ruby
Technodrome has joined #ruby
<yxhuvud> so far only 1. Which was a fine task.
al2o3-cr has quit [Read error: Connection reset by peer]
crankharder has joined #ruby
jkprg has quit [Quit: Textual IRC Client: www.textualapp.com]
braincrash has quit [Ping timeout: 246 seconds]
crankharder has quit [Ping timeout: 258 seconds]
AndyC has joined #ruby
al2o3-cr has joined #ruby
crankharder has joined #ruby
Garb0 has joined #ruby
braincrash has joined #ruby
hiroaki has quit [Ping timeout: 240 seconds]
crankharder has quit [Ping timeout: 265 seconds]
crankharder has joined #ruby
crankharder has quit [Ping timeout: 264 seconds]
mistergibson has joined #ruby
hiroaki has joined #ruby
kurko_ has joined #ruby
crankharder has joined #ruby
Swyper has joined #ruby
blackmesa has quit [Quit: WeeChat 3.0]
drincruz_ has quit [Ping timeout: 240 seconds]
crankhar1er has joined #ruby
drincruz_ has joined #ruby
crankharder has quit [Disconnected by services]
crankhar1er has quit [Client Quit]
crankharder has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
BenDover1 has joined #ruby
BenDover has quit [Ping timeout: 265 seconds]
BenDover1 is now known as BenDover
royo25 has quit [Quit: Bye]
ChmEarl has joined #ruby
hiroaki has quit [Remote host closed the connection]
rubydoc__ has quit [Ping timeout: 264 seconds]
phaul has quit [Ping timeout: 256 seconds]
AndyC has quit [Ping timeout: 256 seconds]
BenDover has quit [Quit: BenDover]
Technodrome has joined #ruby
icarus has joined #ruby
phaul has joined #ruby
rubydoc__ has joined #ruby
ua_ has quit [Quit: Leaving]
ua has joined #ruby
rubydoc__ has quit [Ping timeout: 264 seconds]
orbyt_ has joined #ruby
phaul has quit [Ping timeout: 260 seconds]
cgfbee has quit [Ping timeout: 260 seconds]
cuerbot has joined #ruby
duderonomy has joined #ruby
elcuervo has quit [Ping timeout: 272 seconds]
Garb0 has quit [Ping timeout: 265 seconds]
phaul has joined #ruby
rubydoc__ has joined #ruby
duderonomy has quit [Ping timeout: 256 seconds]
TCZ has joined #ruby
cloud69 has quit [Quit: Connection closed for inactivity]
SeepingN has joined #ruby
kurko_ has quit [Quit: kurko_]
akem has quit [Quit: Leaving]
kurko_ has joined #ruby
kurko_ has quit [Client Quit]
akem has joined #ruby
braincrash has quit [Ping timeout: 246 seconds]
TCZ has quit [Quit: Diabe? tkwi w szczegó?ach]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rubydoc__ has quit [Ping timeout: 240 seconds]
rubydoc__ has joined #ruby
phaul has quit [Ping timeout: 258 seconds]
phaul has joined #ruby
crankharder has quit [Ping timeout: 264 seconds]
aesthe has joined #ruby
kurko_ has joined #ruby
Swyper has quit [Remote host closed the connection]
AndyC has joined #ruby
prion has quit [Ping timeout: 265 seconds]
prion has joined #ruby
crankharder has joined #ruby
dfucci has quit [Ping timeout: 258 seconds]
aremaref has joined #ruby
kurko_ has quit [Ping timeout: 260 seconds]
cd has joined #ruby
AndyC has quit [Ping timeout: 272 seconds]
prion has quit [Ping timeout: 258 seconds]
kurko_ has joined #ruby
dfucci has joined #ruby
rubydoc__ has quit [Ping timeout: 258 seconds]
phaul has quit [Ping timeout: 240 seconds]
TomyWork has quit [Quit: Leaving]
phaul has joined #ruby
rubydoc__ has joined #ruby
dionysus69 has quit [Quit: dionysus69]
Swyper has joined #ruby
dfucci has quit [Ping timeout: 256 seconds]
Swyper has quit [Ping timeout: 264 seconds]
crankharder has quit [Quit: leaving]
dfucci has joined #ruby
aremaref has quit [Ping timeout: 246 seconds]
howdoi has joined #ruby
bradland has joined #ruby
akem_ has joined #ruby
akem has quit [Ping timeout: 246 seconds]
aremaref has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
crawler has joined #ruby
Rudd0 has quit [Ping timeout: 240 seconds]
jkprg_ has joined #ruby
jkprg_ has quit [Client Quit]
jkprg_ has joined #ruby
jkprg_ has left #ruby [#ruby]
cincy_kal has joined #ruby
TCZ has joined #ruby
<cincy_kal> I am working on a project that uses Padrino 0.12.5. However, the framework uses this method `safe_load` to try and autoload files and resolve circular dependencies. This take a very long time when starting up the application. So my question is, does anyone have experience writing their own autoloader (or using a gem) to load constants from files,
<cincy_kal> handle circular dependencies, and do so in an efficient manner?
jkprg has joined #ruby
AndyC has joined #ruby
cybcypha_ has joined #ruby
aremaref has quit [Ping timeout: 240 seconds]
sagax has joined #ruby
<cincy_kal> havenwood thank you. Looking at that, it seems that it may be a tall order to retroactively apply that to a project that isn't following its class naming convention and file structure.
<havenwood> cincy_kal: I'd have thought someone would have wired up Zeitwerk with Sinatra by now, but maybe not. Looking at the process of adding it to Roda it doesn't seem too bad: https://github.com/fxn/zeitwerk/issues/23
<havenwood> cincy_kal: I don't know. Maybe someone here has done Zeitwerk with Sinatra and can weigh in?
jkprg has quit [Quit: jkprg]
jkprg has joined #ruby
aremaref has joined #ruby
Swyper has joined #ruby
fippy has quit [Ping timeout: 246 seconds]
kurko_ has quit [Quit: kurko_]
kurko_ has joined #ruby
jkprg has quit [Quit: jkprg]
jkprg has joined #ruby
jkprg has quit [Client Quit]
cincy_kal has quit [Remote host closed the connection]
<adam12> I really liked Padrino.
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
fort_ has joined #ruby
fippy has joined #ruby
fort_ has quit [Remote host closed the connection]
prion has joined #ruby
aesthe has quit [Quit: Leaving]
dfucci has quit [Ping timeout: 272 seconds]
kristian_on_linu has joined #ruby
AndyC has quit [Ping timeout: 260 seconds]
jinie has quit [Quit: ZNC 1.8.2 - https://znc.in]
jinie has joined #ruby
jinie has quit [Client Quit]
jcalla has quit [Ping timeout: 240 seconds]
bradland has quit [Quit: bradland]
drincruz has joined #ruby
impermanence has joined #ruby
hiroaki has joined #ruby
jinie has joined #ruby
drincruz_ has quit [Ping timeout: 264 seconds]
dfucci has joined #ruby
jcalla has joined #ruby
gix has joined #ruby
drincruz_ has joined #ruby
drincruz has quit [Ping timeout: 256 seconds]
plujon has joined #ruby
dfucci has quit [Ping timeout: 260 seconds]
impermanence has quit [Quit: Connection closed]
dfucci has joined #ruby
impermanence has joined #ruby
mistergibson has quit [Quit: Leaving]
dfucci has quit [Ping timeout: 256 seconds]
dfucci has joined #ruby
dfucci has quit [Ping timeout: 265 seconds]
prion has quit [Ping timeout: 272 seconds]
duderonomy has joined #ruby
dfucci has joined #ruby
factormystic has quit [Quit: The Lounge - https://thelounge.chat]
factormystic has joined #ruby
jinie has quit [Quit: ZNC 1.8.2 - https://znc.in]
Rudd0 has joined #ruby
jinie has joined #ruby
braincrash has joined #ruby
roshanavand has joined #ruby
jinie has quit [Quit: ZNC 1.8.2 - https://znc.in]
jinie has joined #ruby
jhass has quit [Quit: Bye]
orbyt_ has joined #ruby
jhass has joined #ruby
jhass has quit [Client Quit]
braincrash has quit [Ping timeout: 240 seconds]
TCZ has quit [Quit: Diabe? tkwi w szczegó?ach]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
lucasb has joined #ruby
jhass has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
TCZ has joined #ruby
blackmesa has joined #ruby
blackmesa has quit [Client Quit]
desnudopenguino has joined #ruby
<desnudopenguino> anyone know why BCrypt::Engine.hash_secret(salt,text) would give me an unbelievably long string with a hash at the front, then a bunch of '\x00' characters?
AndyC has joined #ruby
Swyper has quit [Remote host closed the connection]
<desnudopenguino> it actually looks to have some comments or something thrown in there as well...
<desnudopenguino> \x00\x00\x00ts +h+ into version, cost, salt, and hash and returns them in that order.\n def split_hash(h)\n _, v, c, mash = h.split('$')\n return v.to_str, c.to_i, h[0, 29].to_str, mash[-31, 31].to_str\n end\n end\n\nend\n\x00\x00\x00\x00
roshanavand has quit [Ping timeout: 240 seconds]
jcalla has quit [Ping timeout: 240 seconds]
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
Swyper has joined #ruby
<desnudopenguino> updated the bcrypt gem, and the long string went away, but the login still isn't happening. guess i can force pw resets
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
prion has joined #ruby
Swyper has quit [Ping timeout: 260 seconds]
bamdad has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
sphex has quit [Remote host closed the connection]
<desnudopenguino> doof, restart the service
<desnudopenguino> ignore this line of discussion, i should have just talked to myself in a separate window
Technodrome has joined #ruby
Technodrome has quit [Remote host closed the connection]
x0n- has joined #ruby
x0n has quit [Ping timeout: 240 seconds]
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cybcypha_ has quit [Ping timeout: 240 seconds]
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
jcalla has joined #ruby