<brool>
not really, i'm just lamenting that i wasn't able to find a good cohesive rundown of the API and have to read through sections of the manual like the README or the config settings page and hope it has what i'm looking for
<havenwood>
brool: You might give Roda or Hanami a try. Those are both great options along the same lines that are coded well and well documented.
ogres has joined #ruby
<havenwood>
brool: Roda is more directly inspired by Sinatra.
AJA4350 has quit [Remote host closed the connection]
<havenwood>
There're fewer books and such about Roda, since it's newer - but the code is easier to review.
mayurvpatil has quit [Quit: This computer has gone to sleep]
mayurvpatil has joined #ruby
jefffrails35 has joined #ruby
jefffrails35 has quit [Client Quit]
DriesS has quit [Quit: DriesS]
sandstrom has quit [Quit: My computer has gone to sleep.]
conta has quit [Ping timeout: 252 seconds]
deepreds1 has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mayurvpatil has quit [Ping timeout: 268 seconds]
mayurvpatil has joined #ruby
sandstrom has joined #ruby
mn3m has joined #ruby
amrx has quit []
mayurvpatil has quit [Quit: This computer has gone to sleep]
deepreds1 has joined #ruby
queip has quit [Ping timeout: 252 seconds]
mayurvpatil has joined #ruby
queip has joined #ruby
powerbit has joined #ruby
mn3m has quit [Ping timeout: 258 seconds]
ur5us has joined #ruby
nonamme has joined #ruby
ur5us has quit [Ping timeout: 276 seconds]
aecepoglu[m] has joined #ruby
code_zombie has quit [Quit: Leaving]
Alison`8 has quit [Quit: Leaving]
themsay has quit [Ping timeout: 246 seconds]
conta has joined #ruby
conta has quit [Remote host closed the connection]
conta has joined #ruby
Alison`8 has joined #ruby
_whitelogger has joined #ruby
doodlebug has joined #ruby
themsay has joined #ruby
amrx has joined #ruby
Technodrome has joined #ruby
mayurvpatil has quit [Quit: This computer has gone to sleep]
mayurvpatil has joined #ruby
tranch has left #ruby [#ruby]
yokel has quit [Read error: Connection reset by peer]
yokel has joined #ruby
conta has quit [Ping timeout: 268 seconds]
queip has quit [Ping timeout: 248 seconds]
mn3m has joined #ruby
conta has joined #ruby
themsay has quit [Read error: Connection reset by peer]
themsay has joined #ruby
mn3m has quit [Ping timeout: 248 seconds]
dionysus69 has quit [Ping timeout: 248 seconds]
queip has joined #ruby
NL3limin4t0r_afk is now known as NL3limin4t0r
doodlebug has quit [Ping timeout: 272 seconds]
agent_white has joined #ruby
leitz has joined #ruby
Swyper has joined #ruby
mayurvpatil has quit [Quit: This computer has gone to sleep]
Swyper has quit [Remote host closed the connection]
fritzroy15 has joined #ruby
doodlebug has joined #ruby
queip has quit [Ping timeout: 246 seconds]
<fritzroy15>
hello, I'm trying to integrate the datadog apm into a ruby app ( coded by someone else ); if I run "ruby app.rb" it runs just fine on port 4567 and the traces get sent; however, if I do rackup app.rb, it works just fine on port 9292, but the traces no longer get sent; whats the difference?
mayurvpatil has joined #ruby
queip has joined #ruby
reber has joined #ruby
esrse has quit [Ping timeout: 272 seconds]
agent_white has quit [Quit: brb]
<fritzroy15>
anybody alive in here? :)
aupadhye has quit [Ping timeout: 276 seconds]
<leitz>
Alive, yes. Smart, not so much...
<leitz>
Speaking for myself, anyway.
<leitz>
Sounds like there's two different configs, based on the different ports. Is the trace another piece of the config that's different?
yokel has quit [Read error: Connection reset by peer]
yokel has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AJA4350 has joined #ruby
<fritzroy15>
leitz hah, nobody is particularily smart on a friday
<fritzroy15>
where would these configs be?
nonamme has quit [Quit: WeeChat 1.9.1]
<fritzroy15>
( mind you I'm a devops, not a dev, so go easy on me )
mayurvpatil has quit [Quit: This computer has gone to sleep]
aupadhye has joined #ruby
<fritzroy15>
i tried grepping for 9292 to try and find something
<fritzroy15>
but nothing came up, just a bunch of declarations, nothing like 'port=9292' in any config
nonamme has joined #ruby
Makku has joined #ruby
<Makku>
Hi could anyone tell any 5 most important and notable changes in latest ruby
<Makku>
What is the type of GC used
<Makku>
What is the compiler used
haxx0r has quit [Ping timeout: 252 seconds]
<ytti>
when is this work due?
noobineer has quit [Ping timeout: 276 seconds]
conta has quit [Ping timeout: 258 seconds]
ur5us has joined #ruby
ur5us has quit [Ping timeout: 250 seconds]
noobineer has joined #ruby
ebbflowgo has joined #ruby
Inline has joined #ruby
<al2o3-cr>
&>> 192.step(0, -8).each_with_object('') { |b, s| s << (529835950419149496931706216147869793156292345183471361352057 >> b & 0xff) }
<balo>
not advertisement, i promise :) but friday feeling is going strong already
<tweaks>
al2o3-cr: heh
queip has joined #ruby
rippa has quit [Ping timeout: 258 seconds]
rolandasb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rapture has joined #ruby
rippa has joined #ruby
haxx0r has joined #ruby
orbyt_ has joined #ruby
krawchyk has joined #ruby
dviola has joined #ruby
theta8 has joined #ruby
<theta8>
Anyone here use Watir? I'm working on a script and was trying to pass the browser window object to a method for re-use but it does not work. I'm curious what the scope issue is.
GodFather has joined #ruby
theta8 has quit [Quit: leaving]
joast has quit [Quit: Leaving.]
GodFather has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
doodlebug has quit [Ping timeout: 245 seconds]
ur5us has quit [Ping timeout: 276 seconds]
<NL3limin4t0r>
Makku: The most notable changes are most often the new introduced features. Like Kernel#then, endless ranges, Enumerable#chain (or Enumerable#+) and the composition operator (<< and >> for Proc and Method).
<NL3limin4t0r>
^ Introduced in 2.6.0
tdy has quit [Remote host closed the connection]
sandstrom has quit [Remote host closed the connection]
dellavg_ has joined #ruby
chalkmonster has joined #ruby
<havenwood>
Makku: Are you wondering about the differences between 2.5 and 2.6 of something broader?
TomyWork has quit [Remote host closed the connection]
Technodrome has joined #ruby
joast has joined #ruby
nonamme has quit [Remote host closed the connection]
<leitz>
Important changes depends on your perspective. A lot of the stuff that's coming in is beyond me to understand or use, thus not important. Except that my #ruby friends think it is, so it is.
<leitz>
As long as we're avoiding a JVM and keep moving away from $< type stuff, I'm pretty pleased.
<leitz>
Though I do get tempted by Go now and again...
fphilipe has quit [Ping timeout: 268 seconds]
<NL3limin4t0r>
"in latest ruby" so I assumed the latest version
dhollinger has joined #ruby
NL3limin4t0r is now known as NL3limin4t0r_afk
rprimus has joined #ruby
reber has quit [Remote host closed the connection]
chalkmonster has quit [Quit: WeeChat 2.5]
_whitelogger has joined #ruby
Inline has joined #ruby
dviola has quit [Quit: WeeChat 2.5]
fritzroy15 has quit [Remote host closed the connection]
dviola has joined #ruby
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
aupadhye has quit [Quit: Leaving]
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
dhollinger has quit [Quit: dhollinger]
manakanapa has joined #ruby
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dviola has quit [Quit: WeeChat 2.5]
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
dviola has joined #ruby
orbyt_ has joined #ruby
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
cthulchu_ has joined #ruby
chalkmonster has joined #ruby
yokel has quit [Remote host closed the connection]
yokel has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
<haxx0r>
i need to build a ledger for accounting (deposits, trades, withdrawals etc). obviously i need to avoid all the rounding issues that `float` has. can i use `t.decimal(precision: 16, scale: 6)` and i'm save with rounding errors?
<haxx0r>
ah, rails question :eyeroll:
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
pavelz has joined #ruby
<pavelz>
hi i want to do: c,b = a.match(/(\d+),(\d+)/) but i get result only in the first var
<pavelz>
and i doing something wrong
<leftylink>
&ri String#match # as I recall, it only returns MatchData. If you want to extract items from the match data, try sending the MatchData the appropriate message that allows it to do so
<rubydoc>
https://ruby-doc.org/core-2.6/String.html#method-i-match, # as I recall, it only returns MatchData. If you want to extract items from the match data, try sending the MatchData the appropriate message that allows it...
<leftylink>
I am going purely off of memory, but perhaps it's something like
<leftylink>
&ri MatchData#groups
<rubydoc>
Found no entry that matches class MatchData instance method groups
<pavelz>
neat.
<haxx0r>
pavelz, isn't c an array?
<pavelz>
captures seems to provied the result
<leftylink>
oh, I see I was wrong and it was not groups.
<pavelz>
hi i want to do: c,b = a.match(/(\d+),(\d+)/).caputres
<haxx0r>
isn't it .flatten?
<leftylink>
that is good that someone had a better memory than I did
<chalkmonster>
haxx0r: there's gems with built in money classes for this sort of thing
<haxx0r>
yeah, i know the money gem. but i feel it's not the best for a crypto exchange platform
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
<chalkmonster>
well, ultimately you'll either have to use that or roll your own Money class
<chalkmonster>
that said, I have seen people use float for money in production and get away with it
<chalkmonster>
mainly because the investors didn't know they'd hired incompetents
<chalkmonster>
these are nodejs rockstars so, what'll you do
<chalkmonster>
*shrug*
mikecmpbll has quit [Quit: inabit. zz.]
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
comet23 has joined #ruby
<comet23>
i don't understand how this type of recursion works
<phaul>
show an example of a recursion that's clear and we can try explaining how this is the same/different. Or tell us a bit more about what's confusing about this example.
<phaul>
general rule : it doesn't really matter what it does, what matters is that it gets down to base case, so it terminates..
<haxx0r>
it's counting down all the way and at the end it's counting together
<phaul>
recursive expressions can go down to the base case and then bubble results using the return value of one level deeper in the summation of the one level up. That's basically how this works but Im not sure if my explanation helps..
<phaul>
so it will reach lucas(1), and lucas(2) but then they will be added at lucas(3) and so on
<phaul>
another way to look at this algorithm is: first you go all the way down in two binary trees where each node splits in two and then as subtrees with only two leafs are termintaing they become new leafs.
cthu| has joined #ruby
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
<phaul>
if these explanations don't help then apologies, it's kind of hard to explain stuff over irc, and much easier too draw on a whiteboard
cthu| has quit [Max SendQ exceeded]
cthu| has joined #ruby
<leftylink>
counterexample to the statement "because lucas_number(n - 1) == 1 and lucas_number(n - 2) == 1 the answer should be 1 + 1 = 2". no, see lucas(2). by line 4, lucas(2) is lucas(1) + lucas(0). by line 3, lucas(1) is 1. by line 2, lucas(0) is 2. therefore, lucas(2) is 2 + 1, which is 3. which is not 2
cthulchu_ has quit [Ping timeout: 268 seconds]
ebbflowgo has joined #ruby
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
sauvin has quit [Ping timeout: 252 seconds]
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<haxx0r>
i want to generate generate unique identifiers like `AGBBL3W-ZKPXXL-JZFYWR` or `TAN5OL-RTLX2-4ELIEV` or `OPDTA6-VNN3X-E62FSR`. is there any possibility to do it based on a seed like the current processortime, so i don't need to recheck my database that thisn thing is unique, instead i can just trust that the seed will give me unique things?
codefriar has joined #ruby
yokel has quit [Read error: Connection reset by peer]
<havenwood>
haxx0r: That ^, for example, is Base58 characters - 20 of them, separated every 5 by a dash.
<adam12>
That choose method is neat. I wonder if it would be better off exposed.
<havenwood>
These chars tend to be easy for people to correctly identify.
<havenwood>
adam12: I do think it should be. :)
kyrylo has joined #ruby
segy has quit [Ping timeout: 272 seconds]
plujon has joined #ruby
kyrylo has quit [Client Quit]
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
<adam12>
havenwood: Spend any time with Steep? I think you had been checking out Ruby types recently.
<havenwood>
adam12: Yes, I've tried Steep on a few projects now. It's not ready for primetime but it seems really promising for useful analysis. I wonder about shipping the stdlib with Steep support out of the box.
<havenwood>
I'd love to support Soutaro's work. Maybe more to say on that later.
<adam12>
havenwood: Yeah. Sorbet is DOA for me since I develop on FreeBSD but Steep seems to be chugging along nicely without too much ceremony.
<adam12>
It's language server support might be a bigger win. Trying to onboard newer devs who are used to auto-complete, etc. has been a huge challenge as of late.
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
chalkmonster has quit [Quit: WeeChat 2.5]
AJA4350 has quit [Ping timeout: 244 seconds]
AJA4350 has joined #ruby
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
orbyt_ has joined #ruby
r3m has quit [Remote host closed the connection]
r3m has joined #ruby
orbyt_ has quit [Ping timeout: 248 seconds]
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
chalkmonster has joined #ruby
bjpenn has joined #ruby
<bjpenn>
is it frowned upon to wrap an entire methods implemention within an foo = ...; bar = ...; if bar && foo ...<method implementation>... end
cd has quit [Remote host closed the connection]
<bjpenn>
let me rephrase
<bjpenn>
the entire method is like `def foobar; <what i typed above>; end`
<bjpenn>
seem to be getting rubocop errors to use a guard clause
<haxx0r>
i'm not sure about collision. but the universe is big i think
<havenwood>
haxx0r: the universe is bigger than 26
<haxx0r>
isn't it
<haxx0r>
3**5**26 ?
<haxx0r>
i mean, just 3**5**10
<haxx0r>
i personally would say it's safe to use and practically it won't ever create collusions, but i also didn't study science nor am i good at math
<al2o3-cr>
so each connection it remembers it's state
<al2o3-cr>
per a process bases
<al2o3-cr>
i get it
<havenwood>
al2o3-cr: yes, a Fiber holds the state and can be suspended and resumed
xco has quit [Quit: xco]
<havenwood>
al2o3-cr: so it's a tiny stack and you can have a plethora
DTZUZO has joined #ruby
<al2o3-cr>
i never really delve into much but the language itself. i should really because there are really good projects about :)
<havenwood>
al2o3-cr: ioquatix has also done a bunch of work on native assembly implementation of fibers that's already been merged and this PR for a lightweight fiber selector that I'd love to see merged: https://github.com/ruby/ruby/pull/1870
<havenwood>
al2o3-cr: It's neat that the async projects can be used now and support HTTP/2.