havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.0.0, 2.7.2, 2.6.6: 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
ramfjord has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
roadie has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
gearnode has joined #ruby
roadie has quit [Ping timeout: 272 seconds]
akem has quit [Quit: leaving]
cuerbot has joined #ruby
elcuervo has quit [Ping timeout: 246 seconds]
akem has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
tpanarch1st has quit [Read error: Connection reset by peer]
jonhg has joined #ruby
jonhg has quit [Ping timeout: 245 seconds]
s3nd1v0g1us has quit [Quit: Textual IRC Client: www.textualapp.com]
cadeskywalker has quit [Ping timeout: 256 seconds]
kslt1 has quit [Remote host closed the connection]
robotmay has quit [Quit: Be excellent to each other]
tpanarch1st has joined #ruby
envex has quit [Remote host closed the connection]
envex has joined #ruby
robotmay has joined #ruby
cadeskywalker has joined #ruby
ChmEarl has quit [Quit: Leaving]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jonhg has joined #ruby
DaRock has joined #ruby
jonhg has quit [Ping timeout: 265 seconds]
s3nd1v0g1us has joined #ruby
jenrzzz has joined #ruby
neshpion has quit [Ping timeout: 268 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
ur5us_ has quit [Ping timeout: 264 seconds]
gearnode has quit [Quit: WeeChat 3.0.1]
konsolebox has quit [Read error: Connection reset by peer]
konsolebox has joined #ruby
ur5us_ has joined #ruby
Swyper has joined #ruby
al2o3-cr has joined #ruby
neshpion has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
s3nd1v0g1us has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
s3nd1v0g1us has joined #ruby
konsolebox has quit [Read error: Connection reset by peer]
jonhg has joined #ruby
konsolebox has joined #ruby
jonhg has quit [Ping timeout: 264 seconds]
_whitelogger has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
konsolebox has quit [Read error: Connection reset by peer]
cow[moo] has joined #ruby
konsolebox has joined #ruby
gix- has quit [Ping timeout: 264 seconds]
cliluw has quit [Ping timeout: 246 seconds]
cliluw has joined #ruby
jenrzzz has joined #ruby
cliluw has quit [Ping timeout: 246 seconds]
cliluw has joined #ruby
dinfuehr has quit [Ping timeout: 276 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
dinfuehr has joined #ruby
s3nd1v0g1us has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
s3nd1v0g1us has joined #ruby
Vingador has joined #ruby
Vingador_ has joined #ruby
Vingador__ has joined #ruby
Vingador has quit [Ping timeout: 245 seconds]
cliluw has quit [Ping timeout: 246 seconds]
cliluw has joined #ruby
tpanarch1st has quit [Ping timeout: 256 seconds]
Swyper has quit [Remote host closed the connection]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us_ has quit [Ping timeout: 264 seconds]
Swyper has joined #ruby
jonhg has joined #ruby
Swyper has quit [Remote host closed the connection]
jonhg has quit [Ping timeout: 245 seconds]
m27frogy has quit [Ping timeout: 264 seconds]
yunta has joined #ruby
jetchisel has joined #ruby
lemur is now known as baweaver
baweaver has quit [Changing host]
baweaver has joined #ruby
Vingador_ has quit [Quit: http://quassel-irc.org - Bate-papo confortável em qualquer lugar.]
Vingador__ has quit [Quit: http://quassel-irc.org - Bate-papo confortável em qualquer lugar.]
GodFather has quit [Ping timeout: 245 seconds]
maryo has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
konsolebox has quit [Read error: Connection reset by peer]
neshpion has quit [Quit: neshpion]
jenrzzz has quit [Ping timeout: 256 seconds]
konsolebox has joined #ruby
s3nd1v0g1us has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Quit: Textual IRC Client: www.textualapp.com]
jonhg has joined #ruby
jonhg has quit [Ping timeout: 245 seconds]
Technodrome has joined #ruby
konsolebox has quit [Read error: Connection reset by peer]
ur5us_ has joined #ruby
konsolebox has joined #ruby
nofxx__ has joined #ruby
banisterfiend has joined #ruby
banisterfiend has quit [Changing host]
nofxx_ has quit [Ping timeout: 246 seconds]
User4587_ has quit [Quit: Textual IRC Client: www.textualapp.com]
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
Rudd0 has quit [Ping timeout: 264 seconds]
konsolebox has quit [Read error: Connection reset by peer]
centrx has joined #ruby
konsolebox has joined #ruby
jonhg has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jonhg has quit [Ping timeout: 265 seconds]
ur5us_ has quit [Ping timeout: 264 seconds]
konsolebox has quit [Read error: Connection reset by peer]
konsolebox has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
jenrzzz has joined #ruby
hiroaki has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
bucareli has joined #ruby
hiroaki has joined #ruby
bucareli has quit [Client Quit]
jonhg has joined #ruby
split-brain has joined #ruby
konsolebox has quit [Read error: Connection reset by peer]
konsolebox has joined #ruby
konsolebox has quit [Read error: Connection reset by peer]
centrx has quit [Remote host closed the connection]
centrx_ has joined #ruby
centrx_ has quit [Ping timeout: 264 seconds]
konsolebox has joined #ruby
centrx has joined #ruby
centrx has quit [Ping timeout: 264 seconds]
centrx has joined #ruby
centrx has quit [Ping timeout: 264 seconds]
ur5us_ has joined #ruby
konsolebox has quit [Read error: Connection reset by peer]
centrx has joined #ruby
blackmesa has joined #ruby
cloud69 has joined #ruby
konsolebox has joined #ruby
centrx has quit [Ping timeout: 264 seconds]
<cloud69> If an article has multiple paragraps, I can use Nokogiri to map them all into an array, do some cleaning, and then eventually join back together again. But how to map into a similar array if the article has everything packed into a single paragraph? https://gist.github.com/cloud69420/7d33b3d5898ffbcaae32429665a788c5
ur5us_ has quit [Ping timeout: 264 seconds]
centrx has joined #ruby
vondruch has quit [Quit: vondruch]
moldorcoder7 has quit [Ping timeout: 264 seconds]
vondruch has joined #ruby
centrx has quit [Ping timeout: 264 seconds]
junaidnaseer2 has joined #ruby
centrx has joined #ruby
naftilos76 has joined #ruby
centrx has quit [Ping timeout: 264 seconds]
moldorcoder7 has joined #ruby
lockweel has joined #ruby
centrx has joined #ruby
konsolebox has quit [Read error: Connection reset by peer]
centrx has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
konsolebox has joined #ruby
centrx has joined #ruby
jetchisel has quit [Ping timeout: 260 seconds]
Rudd0 has joined #ruby
centrx has quit [Ping timeout: 264 seconds]
jetchisel has joined #ruby
kslt1 has joined #ruby
feriman has joined #ruby
akem has quit [Quit: leaving]
Fusl has quit [Max SendQ exceeded]
Fusl has joined #ruby
centrx has joined #ruby
centrx has quit [Ping timeout: 264 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
junaidnaseer2 has quit [Ping timeout: 256 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
centrx has joined #ruby
kslt1 has quit [Remote host closed the connection]
kslt1 has joined #ruby
centrx has quit [Ping timeout: 264 seconds]
konsolebox has quit [Read error: Connection reset by peer]
siery has quit [Ping timeout: 260 seconds]
siery has joined #ruby
User458764 has joined #ruby
User4587_ has joined #ruby
User4587_ is now known as User4588
konsolebox has joined #ruby
User4588 has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has joined #ruby
User4588 has joined #ruby
User4588 has quit [Client Quit]
User4588 has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
Technodrome has joined #ruby
centrx has joined #ruby
centrx has quit [Ping timeout: 264 seconds]
centrx has joined #ruby
junaidnaseer2 has joined #ruby
m27frogy has joined #ruby
centrx has quit [Ping timeout: 264 seconds]
konsolebox has quit [Read error: Connection reset by peer]
centrx has joined #ruby
Vingador has joined #ruby
centrx has quit [Ping timeout: 264 seconds]
konsolebox has joined #ruby
Swyper has joined #ruby
centrx has joined #ruby
gray-_-wolf has joined #ruby
centrx has quit [Ping timeout: 264 seconds]
cd has quit [Quit: cd]
jenrzzz has joined #ruby
<nakilon> cloud69 regex
jenrzzz has quit [Ping timeout: 276 seconds]
kinduff8 has joined #ruby
kinduff8 has quit [Read error: Connection reset by peer]
kinduff8 has joined #ruby
kinduff has quit [Ping timeout: 246 seconds]
kinduff8 is now known as kinduff
centrx has joined #ruby
prepend has joined #ruby
prepend has quit [Client Quit]
prepend has joined #ruby
centrx has quit [Ping timeout: 264 seconds]
naftilos76 has quit [Ping timeout: 245 seconds]
centrx has joined #ruby
gearnode has joined #ruby
infernix has quit [Ping timeout: 260 seconds]
elcuervo has joined #ruby
cuerbot has quit [Ping timeout: 245 seconds]
centrx has quit [Ping timeout: 264 seconds]
ua has quit [Ping timeout: 246 seconds]
konsolebox has quit [Read error: Connection reset by peer]
cow[moo] has joined #ruby
yann-kaelig has joined #ruby
infernix has joined #ruby
konsolebox has joined #ruby
ua has joined #ruby
tv- has quit [Quit: WeeChat 2.9]
tv- has joined #ruby
infernix has quit [Quit: ZNC - http://znc.sourceforge.net]
suinfreedom has joined #ruby
suinfreedom has left #ruby [#ruby]
blackmesa has quit [Ping timeout: 272 seconds]
thecoffemaker_ has quit [Quit: So long and thanks for all the fish!]
thecoffemaker has joined #ruby
<User4588> Hi, I would like to generate all combinations like in this example, can someone help me and tells me how is it called in algebraic? https://paste.debian.net/1189045/
maryo87 has joined #ruby
thecoffemaker has quit [Remote host closed the connection]
maryo has quit [Ping timeout: 246 seconds]
jonhg has quit [Remote host closed the connection]
feriman has quit [Ping timeout: 245 seconds]
thecoffemaker has joined #ruby
hiroaki has quit [Ping timeout: 272 seconds]
infernix has joined #ruby
jonhg has joined #ruby
TCZ has joined #ruby
hiroaki has joined #ruby
jonhg has quit [Ping timeout: 245 seconds]
naftilos76 has joined #ruby
<gearnode> Maybe you use Array#combination for this kind of purpose.
feriman has joined #ruby
centrx has joined #ruby
<nakilon> &>> [1,2,3,nil,nil,nil].combination(4).map(&:compact).uniq
<rubydoc> # => playpen: No data available (https://carc.in/#/r/ajbc)
<nakilon> wat
akem has joined #ruby
jonhg has joined #ruby
<phaul> &>> [1,2,3,nil,nil,nil].combination(4).map(&:compact).uniq
<rubydoc> # => [[1, 2, 3], [1, 2], [1, 3], [1], [2, 3], [2], [3]] (https://carc.in/#/r/ajbe)
<phaul> sometimes carc.in is failing
GodFather has joined #ruby
jonhg has quit [Ping timeout: 245 seconds]
infernix has quit [Quit: ZNC - http://znc.sourceforge.net]
al2o3-cr has quit [Read error: Connection reset by peer]
tpanarch1st has joined #ruby
al2o3-cr has joined #ruby
GodFather has quit [Ping timeout: 264 seconds]
ChmEarl has joined #ruby
ua has quit [Ping timeout: 246 seconds]
kslt1 has quit [Ping timeout: 256 seconds]
hassox has joined #ruby
jonhg has joined #ruby
shtirlic has quit [Ping timeout: 264 seconds]
cloud69 has quit [Quit: Connection closed for inactivity]
ua has joined #ruby
jonhg has quit [Ping timeout: 276 seconds]
junaidnaseer2 has quit [Remote host closed the connection]
al2o3-cr has quit [Quit: WeeChat 3.0.1]
infernix has joined #ruby
al2o3-cr has joined #ruby
konsolebox has quit [Read error: Connection reset by peer]
konsolebox has joined #ruby
jetchisel has quit [Ping timeout: 264 seconds]
jetchisel has joined #ruby
<NL3limin4t0r> a = [*1..5]; a.size.downto(1).flat_map { |n| a.combination(n).to_a }
<NL3limin4t0r> &>> a = [*1..5]; a.size.downto(1).flat_map { |n| a.combination(n).to_a }
<rubydoc> # => [[1, 2, 3, 4, 5], [1, 2, 3, 4], [1, 2, 3, 5], [1, 2, 4, 5], [1, 3, 4, 5], [2, 3, 4, 5], [1, 2, 3], [1, 2, 4], [1, 2, 5], [1, 3, 4], [1, 3, 5], [1, 4, 5], [2, 3, 4], [2, 3, 5], [2, 4, 5], [3, 4, 5], [1, 2], [1, 3], [1, 4], [1, 5], [2, 3], [2, 4], [2, 5], [3, 4], [3,... check link for more (https://carc.in/#/r/ajbg)
<NL3limin4t0r> User4588: ^
konsolebox has quit [Read error: Connection reset by peer]
konsolebox has joined #ruby
TCZ has quit [Quit: Apophis - status nieznany]
jonhg has joined #ruby
<User4588> phaul, NL3limin4t0r Sorry I was away. Thanks for these examples they works as expected. Now I need to understand them. It seems a little strange to add 3 nil values to the array.
mnathani has joined #ruby
<havenwood> &>> [1,2,3,nil,nil,nil].combination(4).to_a
<rubydoc> # => [[1, 2, 3, nil], [1, 2, 3, nil], [1, 2, 3, nil], [1, 2, nil, nil], [1, 2, nil, nil], [1, 2, nil, nil], [1, 3, nil, nil], [1, 3, nil, nil], [1, 3, nil, nil], [1, nil, nil, nil], [2, 3, nil, nil], [2, 3, nil, nil], [2, 3, nil, nil], [2, nil, nil, nil], [3, nil, nil, nil]] (https://carc.in/#/r/ajbn)
<havenwood> @User4588: Consider that ^
konsolebox has quit [Ping timeout: 276 seconds]
<havenwood> It's odd but works. Should be 3 not 4, I think.
konsolebox has joined #ruby
Swyper has quit [Remote host closed the connection]
shokohsc6 has quit [Quit: The Lounge - https://thelounge.chat]
<havenwood> Oh, I see why phaul did 4 not 3. :)
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> def combos(numbers) = numbers.size.then { |size| numbers.fill(nil, size, size).combination(size.succ).map(&:compact).uniq.sort_by(&:size) }
<havenwood> I'd rather not use nils, for sure.
<havenwood> User4588: I'd do like NL3limin4t0r's solution.def combos(numbers) = numbers.size.downto(1).flat_map { numbers.combination(_1).to_a }
<havenwood> Oh, nakilon wrote that not phaul. :)
* havenwood wakes up
Swyper has joined #ruby
<User4588> havenwood oh yes I do the miss too, thanks nakilon too :)
shokohsc has joined #ruby
shokohsc has quit [Client Quit]
<User4588> havenwood I did not know this way to define a method. irb does not like it.
<leftylink> it is the endless definition introduced in Ruby 3.0
<User4588> leftylink ruby is always poetic
shokohsc has joined #ruby
<User4588> leftylink Thanks for the point I think I will update my ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin19]
dinfuehr has quit [Ping timeout: 260 seconds]
dinfuehr has joined #ruby
naftilos76 has quit [Quit: Leaving]
junaidnaseer2 has joined #ruby
junaidnaseer2_ has joined #ruby
blackmesa has joined #ruby
maryo87 has quit [Ping timeout: 245 seconds]
cthulchu_ has joined #ruby
vondruch has quit [Read error: Connection reset by peer]
vondruch has joined #ruby
Technodrome has joined #ruby
bijan_ has quit [Quit: Textual IRC Client: www.textualapp.com]
cliluw has quit [Ping timeout: 256 seconds]
cliluw has joined #ruby
cliluw has quit [Ping timeout: 256 seconds]
<NL3limin4t0r> User4588: Although the solution with "nil" values might be shorter code-wise, it's quite inefficient because it creates duplicate collections (`[1, 2, nil, nil]` is present 3 times). Not only are duplicates created, you also need to map through the entire result and compact all elements, then remove the duplicates.
<NL3limin4t0r> ^ "compact" = "remove nil values"
Swyper has quit [Remote host closed the connection]
dinfuehr has quit [Ping timeout: 246 seconds]
gray-_-wolf has quit [Quit: WeeChat 3.0]
dinfuehr has joined #ruby
Swyper has joined #ruby
dinfuehr has quit [Ping timeout: 246 seconds]
DaRock has quit [Ping timeout: 245 seconds]
<nakilon> but it's only one loop instead of nested
dinfuehr has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 260 seconds]
Swyper has quit [Ping timeout: 272 seconds]
Emmanuel_Chanel has joined #ruby
<NL3limin4t0r> That might be the case, but that doesn't mean it's more efficient. Take a look at how many combinations are generated:
<NL3limin4t0r> &>> [1,2,3,nil,nil,nil].combination(4).size
<rubydoc> # => 15 (https://carc.in/#/r/ajc1)
<nakilon> premature optimization?
<NL3limin4t0r> I'd say a logical optimization, not premature.
<nakilon> every optimization is logical
<nakilon> but do you really need them all?
<NL3limin4t0r> I don't mean "logical" as in computer logical, just something that is logical to do.
<nakilon> nested loop, bigger code -- more space for a bug
<NL3limin4t0r> More cryptic code is also a source of bugs.
<nakilon> every code is cryptic
<nakilon> I used just a Ruby stdlib, nothing secret
<NL3limin4t0r> &>> a = [*1..3]; a.size.downto(1).sum_by { |n| a.combination(n) }
<rubydoc> # => -e:4:in `<main>': undefined method `sum_by' for #<Enumerator: 3:downto(1)> (NoMethodError)... check link for more (https://carc.in/#/r/ajc2)
<NL3limin4t0r> &>> a = [*1..3]; a.size.downto(1).sum { |n| a.combination(n) }
<rubydoc> # => -e:4:in `+': Enumerator can't be coerced into Integer (TypeError)... check link for more (https://carc.in/#/r/ajc3)
<NL3limin4t0r> &>> a = [*1..3]; a.size.downto(1).sum { |n| a.combination(n).size }
<rubydoc> # => 7 (https://carc.in/#/r/ajc4)
<NL3limin4t0r> oops
<NL3limin4t0r> can't type
DaRock has joined #ruby
dinfuehr has quit [Ping timeout: 246 seconds]
dinfuehr has joined #ruby
* nakilon just sighs
DTZUZU has quit [Quit: WeeChat 3.1]
jenrzzz has joined #ruby
dinfuehr has quit [Ping timeout: 245 seconds]
dinfuehr has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 256 seconds]
duderonomy has joined #ruby
dinfuehr has quit [Ping timeout: 264 seconds]
dinfuehr has joined #ruby
DTZUZU has joined #ruby
DaRock has quit [Ping timeout: 264 seconds]
NL3limin4t0r is now known as NL3limin4t0r_afk
DaRock has joined #ruby
gix has joined #ruby
centrx has quit [Remote host closed the connection]
ur5us_ has joined #ruby
centrx_ has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
centrx_ has quit [Ping timeout: 264 seconds]
DaRock has quit [Ping timeout: 246 seconds]
Xeago has quit [Read error: Connection reset by peer]
centrx has joined #ruby
Xeago has joined #ruby
centrx has quit [Ping timeout: 264 seconds]
junaidnaseer2_ has quit [Ping timeout: 264 seconds]
junaidnaseer2 has quit [Ping timeout: 264 seconds]
lockweel has quit [Quit: Leaving]
Emmanuel_Chanel has joined #ruby
kslt1 has joined #ruby
croberts has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
s3nd1v0g1us has joined #ruby
centrx has joined #ruby
centrx has quit [Ping timeout: 264 seconds]
centrx has joined #ruby
centrx has quit [Ping timeout: 264 seconds]
skryking has quit [Quit: Konversation terminated!]
skryking has joined #ruby
powerhouse_ has joined #ruby
ur5us_ has quit [Quit: Leaving]
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #ruby
infernix has quit [Quit: ZNC - http://znc.sourceforge.net]
ua has quit [Ping timeout: 256 seconds]
oneeggeach has joined #ruby
shtirlic has joined #ruby
centrx has joined #ruby
infernix has joined #ruby
mnathani has quit [Remote host closed the connection]
mnathani has joined #ruby
centrx has quit [Ping timeout: 264 seconds]
ua has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
Fire-Dragon-DoL- has joined #ruby
Fire-Dragon-DoL has quit [Ping timeout: 264 seconds]
Fire-Dragon-DoL- is now known as Fire-Dragon-DoL
Nahra has joined #ruby
blackmesa has joined #ruby
howdoi has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
centrx has joined #ruby
feriman has quit [Ping timeout: 276 seconds]
konsolebox has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
ur5us has joined #ruby
konsolebox has joined #ruby
Nahra has quit [Quit: leaving]
jenrzzz has quit [Ping timeout: 256 seconds]
gearnode has quit [Ping timeout: 264 seconds]
gearnode has joined #ruby
clemens3 has quit [Ping timeout: 260 seconds]
clemens3 has joined #ruby
work_ has joined #ruby
jonhg has quit [Read error: Connection reset by peer]
jonhg has joined #ruby
moldorcoder7 has quit [Ping timeout: 245 seconds]
moldorcoder7 has joined #ruby
cloud69 has joined #ruby
<cloud69> nakilon: Sorry fell asleep. Regex sounds good!
<cloud69> Thought I had to play with stuff like simple_format or even kramdown!
shtirlic has quit [Ping timeout: 264 seconds]
ur5us has quit [Ping timeout: 264 seconds]
shtirlic has joined #ruby
shtirlic has quit [Ping timeout: 264 seconds]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
ur5us has joined #ruby
ur5us has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
<cloud69> (which is a very stupid idea in hindsight)
jenrzzz has quit [Ping timeout: 245 seconds]
split-brain has quit [Remote host closed the connection]
gearnode has quit [Ping timeout: 272 seconds]
centrx has quit [Ping timeout: 260 seconds]
blackmesa has quit [Ping timeout: 260 seconds]
swaggboi has quit [Quit: C-x C-c]
Technodrome has joined #ruby
<scriptonaut> I have a really weird thing happening. I was having an encoding error caused by certain characters in the MS SQL db, using TinyTds. I added a rescue for the error, and it's skipping it and still failing. So I added a StandardError catch, and now I'm catching all of these weird activerecord errors. Here's the code and the error info: https://gist.github.com/robins35/6732b56f9f8f9bb1b482c0a8938dfd13
<scriptonaut> The TinyTds gem readme says this: TinyTds::Error - A wrapper for all FreeTDS exceptions, so it should be catching the error
<scriptonaut> but most of all, why does adding a rescue for StandardError start to trigger all of these errors that don't happen when I don't have the rescue at all?
<scriptonaut> it's like adding the second rescue statement causes errors to happen that otherwise weren't happening. The error itself makes no sense, it's saying my activerecord method is returning false, when it always returns an empty array.
jetchisel has quit [Ping timeout: 276 seconds]