havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.7.0, 2.6.5, 2.5.7: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
cschneid_ has quit [Ping timeout: 246 seconds]
cschneid_ has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
ur5us has quit [Ping timeout: 246 seconds]
<apotheon> havenwood: good name
jcalla has joined #ruby
ur5us has joined #ruby
jcalla has quit [Ping timeout: 250 seconds]
ur5us has quit [Quit: Leaving]
ur5us has joined #ruby
zcserei has joined #ruby
pupsikov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wildtrees has quit [Quit: Leaving]
pupsikov has joined #ruby
henninb has joined #ruby
TCZ has joined #ruby
jetchisel has quit [Ping timeout: 250 seconds]
jetchisel has joined #ruby
pupsikov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cloaked1> havenwood: thanks for the answer. I've been playing around with it. I like it.
<cloaked1> any big differences other than static typing and some obvious syntax differences noticed by anyone?
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
<buzzkill> phaul: Thanks! The issue I think I may be having isn't with the concept of what a constant is, nor how it is _supposedly_ immutable, but rather why I cannot set the value via a function call. Add to that the 'constants.rb' and 'helper.rb' files, I am just a bit lost.
<buzzkill> the constants files, all include other constants files... the helper files include other helper files, but I cannot call a helper function from a constants file because I need a different function call to know what to pass to the helper function so I can assign the value to the constant.
<buzzkill> jeezuz, I just got myself confused.
zlogan2003 has quit [Read error: Connection reset by peer]
henninb has quit [Quit: leaving]
jmcgnh has quit [Ping timeout: 256 seconds]
jmcgnh has joined #ruby
drincruz has joined #ruby
drincruz has quit [Ping timeout: 256 seconds]
ta1 has quit [Ping timeout: 256 seconds]
ta1 has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
TCZ has quit [Quit: Leaving]
cschneid_ has joined #ruby
ivanskie has joined #ruby
gix has quit [Ping timeout: 264 seconds]
zcserei has quit [Remote host closed the connection]
dasher00 has quit [Ping timeout: 250 seconds]
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fluxAeon has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
drincruz has joined #ruby
drincruz has quit [Ping timeout: 256 seconds]
iNs has quit [Remote host closed the connection]
iNs has joined #ruby
kristian_on_linu has quit [Remote host closed the connection]
lineus has quit [Ping timeout: 240 seconds]
fluxAeon has quit [Ping timeout: 250 seconds]
fluxAeon has joined #ruby
lineus has joined #ruby
ellcs has quit [Ping timeout: 240 seconds]
jetchisel has quit [Ping timeout: 256 seconds]
davispuh has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
jetchisel has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pandakekok9 has joined #ruby
ellcs has joined #ruby
Vashy has quit [Quit: ZNC - http://znc.in]
Junaos has quit [Quit: ZNC - http://znc.in]
Junaos has joined #ruby
pandakekok9 has quit [Quit: leaving]
ritalinona has joined #ruby
Vashy has joined #ruby
braincrash has quit [Quit: bye bye]
braincrash has joined #ruby
cschneid has joined #ruby
cschneid_ has quit [Ping timeout: 264 seconds]
Technodrome has joined #ruby
cliluw has quit [Ping timeout: 256 seconds]
ur5us has quit [Ping timeout: 246 seconds]
drincruz has joined #ruby
drincruz has quit [Ping timeout: 264 seconds]
nofxx__ has joined #ruby
nofxx_ has quit [Ping timeout: 265 seconds]
buckworst has joined #ruby
xorl has quit [Quit: xorlllllllllll]
ChmEarl has quit [Quit: Leaving]
sauvin has joined #ruby
sauvin has quit [Max SendQ exceeded]
johnny56_ has quit [Ping timeout: 240 seconds]
sauvin has joined #ruby
sauvin has quit [Max SendQ exceeded]
cthulchu_ has quit [Ping timeout: 246 seconds]
buckworst has quit [Quit: WeeChat 2.7.1]
chalkmonster has joined #ruby
cliluw has joined #ruby
code_zombie_ has joined #ruby
xorl has joined #ruby
code_zombie has quit [Ping timeout: 246 seconds]
dinfuehr has quit [Ping timeout: 264 seconds]
dinfuehr has joined #ruby
cschneid has quit [Ping timeout: 264 seconds]
cschneid_ has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7.1]
cliluw has quit [Ping timeout: 246 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Technodrome has joined #ruby
donofrio has quit [Read error: Connection reset by peer]
donofrio has joined #ruby
postmodern has quit [Quit: Leaving]
jmcgnh has quit [Remote host closed the connection]
markopasha has joined #ruby
markopasha has quit [Max SendQ exceeded]
markopasha has joined #ruby
Furai has quit [Quit: WeeChat 2.7.1]
jmcgnh has joined #ruby
Furai has joined #ruby
drincruz has joined #ruby
drincruz has quit [Ping timeout: 250 seconds]
dinfuehr has quit [Ping timeout: 250 seconds]
dinfuehr has joined #ruby
sauvin has joined #ruby
cxl_ has quit [Quit: bye]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
dinfuehr has quit [Ping timeout: 246 seconds]
dinfuehr has joined #ruby
akem has quit [Remote host closed the connection]
akem has joined #ruby
ur5us has joined #ruby
d3bug has quit [Quit: Connection closed for inactivity]
dinfuehr has quit [Ping timeout: 246 seconds]
dinfuehr has joined #ruby
xco has joined #ruby
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
dinfuehr has quit [Ping timeout: 250 seconds]
dinfuehr has joined #ruby
ellcs has quit [Ping timeout: 246 seconds]
chalkmonster has joined #ruby
code_zombie_ has quit [Quit: Leaving]
schne1der has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7.1]
ellcs has joined #ruby
ur5us has quit [Ping timeout: 246 seconds]
dinfuehr has quit [Ping timeout: 264 seconds]
dinfuehr has joined #ruby
cschneid_ has quit [Ping timeout: 250 seconds]
cschneid has joined #ruby
chalkmonster has joined #ruby
drincruz has joined #ruby
conta has joined #ruby
drincruz has quit [Ping timeout: 246 seconds]
cschneid has quit [Quit: ZNC 1.7.5 - https://znc.in]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pandakekok9 has joined #ruby
conta has quit [Quit: conta]
cschneid has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7.1]
sergioro has quit [Quit: leaving]
markopasha has quit [Remote host closed the connection]
markopasha has joined #ruby
TzilTzal has joined #ruby
adam12_ has joined #ruby
FluffyFoxeh has joined #ruby
stooj_ has joined #ruby
nowhere_man has quit [Ping timeout: 272 seconds]
haylon has joined #ruby
haylon_ has quit [*.net *.split]
adam12 has quit [*.net *.split]
stooj has quit [*.net *.split]
Frogging101 has quit [*.net *.split]
vondruch has quit [*.net *.split]
hiroaki has quit [*.net *.split]
FluffyFoxeh is now known as Frogging101
hiroaki has joined #ruby
nowhere_man has joined #ruby
jetchisel has quit [Ping timeout: 250 seconds]
ellcs has quit [Ping timeout: 246 seconds]
jetchisel has joined #ruby
ta1 has quit [Quit: WeeChat 2.7]
ta has joined #ruby
ellcs has joined #ruby
dionysus69 has joined #ruby
daemonwrangler has quit [Quit: ZNC 1.6.5 - http://znc.in]
daemonwrangler has joined #ruby
vondruch has joined #ruby
drincruz has joined #ruby
drincruz has quit [Ping timeout: 250 seconds]
ellcs has quit [Ping timeout: 246 seconds]
ellcs has joined #ruby
nowhereman has joined #ruby
nowhere_man has quit [Ping timeout: 264 seconds]
cschneid has quit [Ping timeout: 246 seconds]
cschneid has joined #ruby
nowhereman has quit [Ping timeout: 246 seconds]
jingjinghack has joined #ruby
nowhereman has joined #ruby
leitz has joined #ruby
Bounga has joined #ruby
Technodrome has joined #ruby
ta has quit [Quit: WeeChat 2.7.1]
ta has joined #ruby
drincruz has joined #ruby
drincruz has quit [Ping timeout: 264 seconds]
howdoi has joined #ruby
drincruz has joined #ruby
znz_jp has quit [Remote host closed the connection]
znz_jp has joined #ruby
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
stooj_ has quit [Read error: Connection reset by peer]
stooj has joined #ruby
TzilTzal has quit [Quit: Leaving.]
_phaul has joined #ruby
phaul has quit [Ping timeout: 246 seconds]
al2o3-cr has quit [Read error: Connection reset by peer]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
_phaul has quit [Ping timeout: 246 seconds]
_phaul has joined #ruby
TCZ has joined #ruby
Fridtjof has quit [Ping timeout: 272 seconds]
conta has joined #ruby
robotmay has quit [Quit: No Ping reply in 180 seconds.]
robotmay has joined #ruby
conta has quit [Remote host closed the connection]
pandakekok9 has quit [Ping timeout: 250 seconds]
ellcs has quit [Ping timeout: 246 seconds]
_phaul has quit [Ping timeout: 256 seconds]
_phaul has joined #ruby
Bounga has quit [Ping timeout: 272 seconds]
TomyWork has joined #ruby
ellcs has joined #ruby
catbusters has joined #ruby
lucasb has joined #ruby
paraxial has quit [Ping timeout: 258 seconds]
paraxial has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
samort7 has joined #ruby
ellcs has quit [Ping timeout: 240 seconds]
jcalla has joined #ruby
cschneid has quit [Ping timeout: 246 seconds]
cschneid has joined #ruby
ellcs has joined #ruby
paraxial5 has joined #ruby
paraxial has quit [Ping timeout: 246 seconds]
paraxial5 is now known as paraxial
TomyWork has quit [Ping timeout: 256 seconds]
_phaul has quit [Ping timeout: 250 seconds]
_phaul has joined #ruby
samort7 has quit [Quit: Leaving]
adam12_ has quit [Ping timeout: 246 seconds]
spiette_ has joined #ruby
cloaked1 has quit [Ping timeout: 246 seconds]
spiette has quit [Ping timeout: 246 seconds]
haylon has quit [Ping timeout: 246 seconds]
stdedos has quit [Ping timeout: 246 seconds]
coniptor has quit [Ping timeout: 246 seconds]
haylon has joined #ruby
nowhere_man has joined #ruby
pupsikov has joined #ruby
adam12_ has joined #ruby
nowhereman has quit [Ping timeout: 264 seconds]
coniptor has joined #ruby
gitter1234 has joined #ruby
cow[moo] has joined #ruby
donofrio has quit [Remote host closed the connection]
cow[moo] has quit [Client Quit]
cow[moo] has joined #ruby
cow[moo] has quit [Client Quit]
cow[moo] has joined #ruby
donofrio has joined #ruby
nowhere_man has quit [Ping timeout: 246 seconds]
nowhere_man has joined #ruby
ellcs has quit [Ping timeout: 246 seconds]
fernando_ has joined #ruby
al2o3-cr has joined #ruby
ellcs has joined #ruby
fernando_ is now known as ElFerna
nowhere_man has quit [Ping timeout: 272 seconds]
<buzzkill> for those that tried, thank you. I had to hard code the values for now. I'll open a backlog ticket for the development team to figure out how to fix their code. =/
nowhere_man has joined #ruby
markopasha has quit [Remote host closed the connection]
Fridtjof has joined #ruby
jingjinghack has quit [Quit: WeeChat 2.1]
catbusters has quit [Quit: Connection closed for inactivity]
_whitelogger has joined #ruby
TCZ has quit [Quit: Leaving]
samort7 has joined #ruby
cschneid has quit [Ping timeout: 250 seconds]
cschneid has joined #ruby
ellcs has quit [Ping timeout: 246 seconds]
postmodern has joined #ruby
ellcs has joined #ruby
TCZ has joined #ruby
jmcgnh has quit [Read error: Connection reset by peer]
ElFerna has quit [Quit: ElFerna]
jmcgnh has joined #ruby
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
ChmEarl has joined #ruby
cthulchu_ has joined #ruby
Kemwer has joined #ruby
ElFerna has joined #ruby
ElFerna has quit [Client Quit]
alexherbo2 has joined #ruby
ellcs has quit [Ping timeout: 246 seconds]
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
<havenwood> buzzkill: I don't like the name #get_group_owner when it's setting the owner too.
<havenwood> buzzkill: Based on what you've shown, it'd be better to have `OWNER = {bigdept => 'steve', 'smallgrp' => 'david'}.freeze` then instead of a case statement, just do: OWNER.fetch(group)
<havenwood> buzzkill: I suspect the `OWNER` constant is then used elsewhere, since you're mutating it? Can you give an example of its use outside this method?
<havenwood> buzzkill: It's not a good pattern to mutate constants, but you can undefine them before redefining to avoid warnings. I'd definitely first look at restructuring this to not use mutating constants, since it's an anti-pattern.
troulouliou_div2 has joined #ruby
schne1der has quit [Ping timeout: 250 seconds]
ellcs has joined #ruby
markopasha has joined #ruby
gix has joined #ruby
<bougyman> hrm. is there a way to just read the first line of a file with std File (or Pathname) ?
<bougyman> I'm not seeing a method for it.
<bougyman> alternatively, is there a way to access the headers: in a csv when using the CSV.foreach block format to read it?
<bougyman> eh.. [11] pry(main)> one.each_line { |l| p l; break }
<bougyman> "bundle,tenant,status,tier\n"
<bougyman> works
<al2o3-cr> bougyman: using File something like File.foreach('foo').first
Rudd0 has quit [Ping timeout: 272 seconds]
<havenwood> bougyman: Or File.open('foo', &:readline)
e2- has quit [Write error: Connection reset by peer]
renich has joined #ruby
<al2o3-cr> havenwood: this is better because with mine you'd have to set $/="\r". i didn't consider this.
<havenwood> al2o3-cr: Another difference is foreach/first would return `nil` like this `&:gets` but `&:readline` will raise on an empty file.
<havenwood> I said that very badly.
<al2o3-cr> havenwood: this is true, i got what you meant ;)
<al2o3-cr> havenwood: actually yours would read the whole file too.
<havenwood> al2o3-cr: ooh, boo
<al2o3-cr> it splits on \n not \r :(
<al2o3-cr> rows are seperated by \r
<havenwood> right, right
gitter1234 has quit [Quit: Connection closed for inactivity]
Rudd0 has joined #ruby
<havenwood> al2o3-cr: This very early issue ticket is interesting: https://bugs.ruby-lang.org/issues/908
<al2o3-cr> taking a look now
TCZ has quit [Quit: Leaving]
<havenwood> This quote summarizes why we don't have seek until character: "Bad thing."
<havenwood> I keep wanting it for various reasons nonetheless.
<leitz> havenwood, how is everyone?
<al2o3-cr> havenwood: what reason did you have in mind?
<havenwood> leitz: \o/
<al2o3-cr> leitz: super duper
<leitz> havenwood, is this your first?
<leitz> havenwood, and CONGRATULATIONS!!!
<havenwood> leitz: Yes, and thanks! She still hasn't learned any Ruby.
<al2o3-cr> hmm, have i missed something?
<leitz> al2o3-cr, there's a junior-ette havenwood
<leitz> As of this weekend, IIUC.
<al2o3-cr> oh! havenwood congrats mate ;)
<havenwood> al2o3-cr: Thanks!
william1_ has joined #ruby
* leitz is writing shell code, deploying it via ansible, to test perl program output...
<havenwood> al2o3-cr: I recall wanting to do an overly simple magic file test, just reading up to a character sequence. And then parsing log files looking for occurrences. Being able to scan a file up to a character without reading further than required is just handy, I think. Handy and tricky.
<adam12_> havenwood: Good morning! Well rested I bet ;P
adam12_ is now known as adam12
<leitz> havenwood, another use case is the BOM (byte order mark), maybe?
<al2o3-cr> havenwood: yeah, that would be really handy but a bet very difficult to implement.
<al2o3-cr> leitz: nah
<havenwood> adam12: Please pardon my more-scattered-than-usual responses today. :) Struggling to speak English here.
<adam12> havenwood: You know you're sleep deprived when the milk is in the cupboard, the cereal is in the fridge, and you're staring at both knowing _something_ is wrong about it but just can't place your finger on it.
<havenwood> The beeping I kept hearing earlier was the fridge door wide open. >.>
<al2o3-cr> havenwood: i guess you'll be drinking more coffee than usual for a bit :)
<havenwood> Just need more robots.
<havenwood> Too few of these gadgets have APIs.
<havenwood> Then again, probably best for them to be local only APIs. :O
cschneid_ has joined #ruby
<havenwood> I'd love to be able to interact with the crib, stroller, etc from Ruby.
<havenwood> Baby didn't come with an API either.
cschneid has quit [Ping timeout: 256 seconds]
<adam12> LOL
cliluw has joined #ruby
ElFerna has joined #ruby
<havenwood> The we have this incredibly low tech baby monitor, that Steph seems to have selected with DHH and Snowden. We ¯\_(ツ)_/¯ https://twitter.com/dhh/status/1188559560908238848
e2 has joined #ruby
<william1_> hey people
<william1_> hope you're all okay re Covid 19
<william1_> such mad times
<adam12> havenwood: I ended up with 2; audio only over radio which .. was OK. But I have a backsplit and new kid took over my old office on lower level. Wife insisted on video monitor. We ended up with this one which has been surprisingly good. https://www.amazon.ca/gp/product/B07YC4SXX9
<adam12> william1_: All OK in Canada. For now.
<william1_> Glad to hear it adam12
<_phaul> transitioned to WFH mode as per government recommendation (UK)
CrazyEddy has quit [Ping timeout: 258 seconds]
<adam12> william1_: Where you from?
<william1_> uk adam12
<william1_> based in Kent
<adam12> Ah very good.
<william1_> have bascially self-isolated for a week
renich_ has joined #ruby
<william1_> i work from home as a contractor, though
<adam12> Same; but it's not much different than any other week :P
<william1_> main change is having to think about rationing and food
<william1_> and not being able to go to pub or cinema :(
<william1_> fair enough adm12
<william1_> adam12*
renich has quit [Ping timeout: 250 seconds]
renich has joined #ruby
renich_ has quit [Ping timeout: 250 seconds]
code_zombie has joined #ruby
d3bug has joined #ruby
budonyc has quit [Quit: Leaving]
sauvin has quit [Read error: Connection reset by peer]
<al2o3-cr> ah, gets/readline takes a separator File.open('foo') { _1.readline("\r") }
<al2o3-cr> i'm sure i'm loosing it.
<CommunistWolf> that _1 is... jesus
<CommunistWolf> bad ruby, bad
wildtrees has joined #ruby
<CommunistWolf> oh, it doesn't seem to work. block arity is 0
<al2o3-cr> CommunistWolf: i lean towards liking it more now
<CommunistWolf> is it a 2.7 thing?
<al2o3-cr> CommunistWolf: yup
<CommunistWolf> ok, that'll explain why it's not working for me. time to install and poke :D
<CommunistWolf> if you do (lambda { puts _1.inspect }).arity, what do you get, OOI?
<al2o3-cr> you'll get 1
tpanarch1st has joined #ruby
<al2o3-cr> &>> -> { puts _1.inspect }.arity
<rubydoc> # => 1 (https://carc.in/#/r/8qfj)
<CommunistWolf> *sob*
dasher00 has joined #ruby
<CommunistWolf> I know people don't like the | character, but come on
<al2o3-cr> CommunistWolf: you can still use block args
<ytti> i like kotling 'it'
<CommunistWolf> I know you can, but people are going to write this and I'm going to have to read it
<ytti> File.open('foo') { it.readline("\r") }
<CommunistWolf> that might actually be worse
<al2o3-cr> it was @1 @2 etc CommunistWolf is that even worse iyo?
<CommunistWolf> much worse
<CommunistWolf> were three different ways of doing this already not enough?
<al2o3-cr> CommunistWolf: it's early days yet, it might get chucked in the knackered yard.
<CommunistWolf> fingers crossed
<al2o3-cr> but i like it, and that's my opinion.
<CommunistWolf> maybe I'm just old and grumpy ^^
<al2o3-cr> it's true CommunistWolf ;)
<CommunistWolf> "this is going to be like 1.9again when they removed when foo : bar!"
FastJack has quit [Ping timeout: 256 seconds]
rubydoc has quit [Remote host closed the connection]
rubydoc has joined #ruby
FastJack has joined #ruby
<_phaul> &fact add rubydoc I am one of the channel bots. You can find my commands at http://github.com/phaul/yarr
<rubydoc> I will remember that rubydoc is I am one of the channel bots. You can find my commands at http://github.com/phaul/yarr
renich has quit [Ping timeout: 246 seconds]
<_phaul> If anybody feels like pen testing, you are welcome to play with the bot. fact add should be restricted to channel ops. It is the first such command. You can private msg the bot.. If you break in please let me know :) commits on github..
dasher00 has quit [Quit: GTFO]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
jmcgnh has quit [Read error: Connection reset by peer]
jmcgnh has joined #ruby
<al2o3-cr> i'll give it a shot
al2o3-cr is now known as phaul
phaul is now known as al2o3-cr
<_phaul> lol
<al2o3-cr> i had to try ;)
<al2o3-cr> _phaul: are you using some sort of parser instead of regex?
<al2o3-cr> ah, parslet
renich_ has joined #ruby
<al2o3-cr> _phaul: you forgot to add your yarr.yml file ;)
cd has joined #ruby
<_phaul> ah. that :)
<al2o3-cr> if you'd just push it real quick that'd be great! :) lol
<al2o3-cr> nicely written bot that _phaul
william1_ has quit [Ping timeout: 264 seconds]
cschneid_ has quit [Ping timeout: 256 seconds]
cschneid has joined #ruby
samort7 has quit [Quit: Leaving]
akem has quit [Quit: Leaving]
leitz has quit [Remote host closed the connection]
akem has joined #ruby
ur5us has joined #ruby
markopasha has quit [Remote host closed the connection]
ellcs has quit [Read error: Connection reset by peer]
ellcs has joined #ruby
sergioro has joined #ruby
TCZ has joined #ruby
ElFerna has quit [Quit: ElFerna]
ua has quit [Quit: Leaving]
ua has joined #ruby
renich has joined #ruby
renich_ has quit [Ping timeout: 256 seconds]
SCHAPiE has quit [Quit: ZNC - https://znc.in]
gitter1234 has joined #ruby
SCHAPiE has joined #ruby
arekushi has joined #ruby
impermanence has joined #ruby
meowzus has joined #ruby
sergioro has quit [Quit: leaving]
pupsikov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ellcs has quit [Ping timeout: 246 seconds]
cschneid_ has joined #ruby
cschneid has quit [Ping timeout: 265 seconds]
renich has quit [Ping timeout: 264 seconds]
cliluw has quit [Ping timeout: 256 seconds]
cliluw has joined #ruby
renich has joined #ruby
pupsikov has joined #ruby
lucasb has quit [Quit: Connection closed for inactivity]
pupsikov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
renich has quit [Ping timeout: 250 seconds]
davispuh has joined #ruby
dionysus69 has quit [Ping timeout: 250 seconds]
buckworst has joined #ruby
buckworst has quit [Client Quit]
wildtrees has quit [Remote host closed the connection]
wildtrees has joined #ruby
buckworst has joined #ruby
CrazyEddy has joined #ruby
taserface has joined #ruby
<taserface> hi, quick question, how do I read berkely DB files in ruby?
<taserface> there's this ruby-bdb gem but it doesn't support ruby 2.5
<meowzus> What version does it support?
<meowzus> Oh wow yeah it looks old
<meowzus> Looks like the stdlib support bdb
<taserface> you mean dbm? that's generally compiled for gdbm
<meowzus> Oh yeah you're right sorry
<meowzus> Doesn't look like there's anything new
<meowzus> Have you tried using rbenv to use an older version of ruby?
<taserface> trying to avoid that
<taserface> also trying to forward port that old version
<meowzus> What version of bdb do you have
<meowzus> Or is your db
<taserface> dunno
<taserface> the latest?
<taserface> does it matter? the bdb C library should support all of them
<taserface> at least the ones I have (they're not THAT old)
<meowzus> Did you try uisng dbm
<meowzus> I think it shoould read bdb
<taserface> no luck, this version I have is gdbm
<meowzus> Ah
<meowzus> This should work
<meowzus> Umm well it says it supports bdb through dbm, and you're saying it's not working
<meowzus> I dunno maybe give it a shot haha
<meowzus> Seems like it's maintaned, so maybe they get it to work somehow
<meowzus> Berkeley DB using DBM interface or NDBM (Depends on Ruby environment)
<meowzus> Maybe that ndbm (whatever it is) will sort it out
<meowzus> Oh it's another library
renich has joined #ruby
<taserface> yeah looking into that
<taserface> it's an interesting gem anyway
<taserface> I was kinda wondering if there was an analogue to DBI for key-value store type stuff
<havenwood> taserface: Ruby ships with several variants of DBM.
fernando has joined #ruby
<havenwood> taserface: DBM, GDBM, SDBM, and then a nice helper wrapper for serializing values, YAML::DBM.
<taserface> are you talking about how it can be compiled to used one of those?
<havenwood> taserface: Are you compiling Ruby yourself? Which distro?
<taserface> I
<taserface> am trying to avoid compiling ruby myself
<taserface> until I explore other options
<havenwood> taserface: libgdbm-dev, gdbm-devel, or gdbm packages would be what you'd install before compiling yourself, depending on disto, to link.
<taserface> yeah but that's gdbm
<havenwood> taserface: If you're installing through a package manager, you should be able to get a ruby-full type package. Which distro?
<taserface> I have berkeley dbm files to read
fernando has quit [Quit: fernando]
<havenwood> taserface: What's wrong with DBM from the Ruby stdlib? Maybe I
<havenwood> Maybe I'm not following the issue.
<havenwood> taserface: See https://stdgems.org/dbm/
<taserface> the already compiled version of ruby I'm using is compiled for gdbm
<havenwood> taserface: Ah, gotcha.
fernando has joined #ruby
<havenwood> taserface: Which package manager and distro?
fernando has quit [Remote host closed the connection]
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> Assuming GNU/Linux, but curious which distro.
<taserface> well I have access to many so yeah
<taserface> hoping to get it working in ubuntu focal
<taserface> ruby 2.5
<havenwood> taserface: A BSD would more likely link against Berkeley DB, FWIW.
<havenwood> taserface: (With a default packaged Ruby.)
fernando has joined #ruby
<havenwood> taserface: You're reading existing Berkeley DB files or using it to interop with another system?
<havenwood> taserface: On Ubuntu I'm afraid I'd install libdb-dev/libdb++-dev and compile myself. Maybe it's possible with the package manager Ruby, but I don't know how.
<havenwood> taserface: If you want a package manager Ruby, maybe FreeBSD or OpenBSD for an out-of-the-box solution?
<havenwood> taserface: Any particular version of Berkeley DB?
<taserface> well `file` says 1.85
<taserface> (reading existing files)
caterfxo has joined #ruby
<taserface> ("hash, version 2")
vondruch has quit [Ping timeout: 250 seconds]
jcalla has quit [Ping timeout: 250 seconds]
jcalla has joined #ruby
szqdsegrhrdgdrg has joined #ruby
<szqdsegrhrdgdrg> hi
<szqdsegrhrdgdrg> Which is better Rails or Laravel ?
<taserface> wow, subtle
<TCZ> Rails
<szqdsegrhrdgdrg> TCZ why ?
<taserface> Laravel
<szqdsegrhrdgdrg> taserface why ?
<taserface> because I'm an asshole
<szqdsegrhrdgdrg> taserface Ok.
vondruch has joined #ruby
<havenwood> szqdsegrhrdgdrg: Rails is, but why do you ask? Laravel is one of the nicer PHP frameworks.
<TCZ> Sinatra
<havenwood> Roda
<havenwood> Why does GitHub say Laravel is used by 587 sites? That can't be right. Rails is 1.3M.
<TCZ> strange, i didnt know about Roda but i have it in browser history : /
<taserface> most PHP people are too cool for frameworks
<havenwood> TCZ: <3 Roda.
<szqdsegrhrdgdrg> havenwood Is Rails better than Laravel ?
<taserface> Rack
<_phaul> +1 roda, roda, roo.. dah. <3 everything from J Evans.
<havenwood> taserface: Yeah, of course it is. I think Laravel is an improvements to most PHP sites and seems quite nicely done. I even once recommended a site use Laravel rather than Rails in an upgrade, but that was a massive existing PHP stack.
<havenwood> taserface: Whatcha making? It does matter.
TCZ has quit [Quit: Leaving]
<taserface> I would recommend laravel to any PHP developer
<taserface> right after listing off some langauges to use instead of PHP
<havenwood> taserface: Oh, you're not the one asking, haha. Same color in my IRC client as szqdsegrhrdgdrg.
<havenwood> szqdsegrhrdgdrg: What are you making??
<szqdsegrhrdgdrg> A guy, said Laravel is a verbatim copy of Rails
<havenwood> szqdsegrhrdgdrg: It's a copy, but not verbatim.
<havenwood> szqdsegrhrdgdrg: It seems nicely done. What are you making?
<szqdsegrhrdgdrg> havenwood What make Rails better than Laravel ?
<szqdsegrhrdgdrg> havenwood Nothing actually
<szqdsegrhrdgdrg> just want to know
<taserface> well if it's a commercial project
<taserface> PHP does have a massive developer base
<havenwood> Ah, 478K https://github.com/laravel/framework, that's the repo.