havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.2, 2.5.5, 2.4.6: 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!
<havenwood> &>> 'helloooooooo'.squeeze ?o
<rubydoc> # => "hello" (https://carc.in/#/r/6qbe)
GodFather has quit [Remote host closed the connection]
pupsikov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
cthulchu_ has quit [Ping timeout: 264 seconds]
nnielsen has joined #ruby
gix has quit [Ping timeout: 250 seconds]
zleap has quit [Quit: WeeChat 2.4]
Fernando-Basso has quit [Remote host closed the connection]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
duderonomy has joined #ruby
mangold has joined #ruby
levifig has quit [Ping timeout: 255 seconds]
code_zombie has joined #ruby
dsmythe has quit [Remote host closed the connection]
dsmythe has joined #ruby
levifig has joined #ruby
nnielsen has quit [Quit: leaving]
dsmythe_ has joined #ruby
dsmythe has quit [Ping timeout: 250 seconds]
Freshnuts has quit [Quit: Leaving]
kevinburke has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oncall-pokemon has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
brool has quit [Ping timeout: 252 seconds]
h3ll0w0rld has joined #ruby
DTZUZO has quit [Ping timeout: 252 seconds]
ramfjord has quit [Ping timeout: 246 seconds]
h3ll0w0rld has quit [Quit: Konversation terminated!]
h3ll0w0rld has joined #ruby
h3ll0w0rld has quit [Client Quit]
ramfjord has joined #ruby
Mia has joined #ruby
Axy has quit [Ping timeout: 268 seconds]
duderonomy has joined #ruby
ramfjord has quit [Ping timeout: 268 seconds]
ElF3rn4 has joined #ruby
hightower2 has quit [Ping timeout: 268 seconds]
ElF3rn4 has quit [Quit: WeeChat 2.4]
dsmythe_ has quit [Remote host closed the connection]
dsmythe has joined #ruby
maryo has joined #ruby
G has quit [Quit: leaving]
h3ll0w0rld has joined #ruby
h3ll0w0rld has quit [Client Quit]
h3ll0w0rld has joined #ruby
maryo has quit [Quit: Leaving]
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
braincrash has quit [Quit: bye bye]
braincrash has joined #ruby
_whitelogger has joined #ruby
havenwood has quit [Excess Flood]
havenwood has joined #ruby
havenwood has joined #ruby
donofrio has quit [Remote host closed the connection]
houhoulis has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
levifig has quit [Quit: Farewell]
levifig has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
Cthulu201 has quit [Ping timeout: 240 seconds]
aqd has quit [Remote host closed the connection]
nnielsen has joined #ruby
nnielsen has quit [Client Quit]
eckhardt has joined #ruby
DmitryBochkarev_ has joined #ruby
_swi7ch has quit [Quit: WeeChat 1.9.1]
_swi7ch has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
mrtnpwn has joined #ruby
Inline has quit [Quit: Leaving]
Wolland has joined #ruby
h3ll0w0rld has quit [Remote host closed the connection]
h3ll0w0rld has joined #ruby
ur5us has quit [Remote host closed the connection]
jenrzzz has joined #ruby
ur5us has joined #ruby
ur5us has quit [Ping timeout: 250 seconds]
Wolland has quit [Quit: Mutter: www.mutterirc.com]
jenrzzz has quit [Ping timeout: 252 seconds]
code_zombie has quit [Quit: Leaving]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eckhardt has joined #ruby
oncall-pokemon has quit [Quit: Connection closed for inactivity]
DTZUZO has joined #ruby
vondruch has joined #ruby
tdy has quit [Ping timeout: 264 seconds]
matsaman has joined #ruby
mrtnpwn has quit [Quit: mrtnpwn]
kapil____ has joined #ruby
kevinburke has quit [Quit: Connection closed for inactivity]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<matsaman> Trying to match from a starting pattern up to but not including an ending pattern, but I'm only getting every other item I think should be matching from .scan.
AntoFox has joined #ruby
patientj has joined #ruby
vrih has joined #ruby
rufusThistle has joined #ruby
Ai9zO5AP has joined #ruby
patientj has quit [Quit: I’m out!]
<havenwood> matsaman: share the code?
patientj has joined #ruby
<havenwood> matsaman: using a positive lookahead?
dellavg_ has joined #ruby
lxsameer has quit [Ping timeout: 245 seconds]
Dbugger has joined #ruby
coffeejunk has quit [Ping timeout: 252 seconds]
clemens3 has joined #ruby
raggi has quit [Read error: Connection reset by peer]
patientj has quit [Quit: I’m out!]
Lewix has quit [Ping timeout: 268 seconds]
khalella_ has quit [Ping timeout: 252 seconds]
<matsaman> negative lookahead
<matsaman> eh, sorry I have to go anyway =/
matsaman has quit [Quit: leaving]
clemens3 has quit [Ping timeout: 250 seconds]
Lewix has joined #ruby
chromis has quit [Ping timeout: 268 seconds]
Lewix has quit [Max SendQ exceeded]
manveru has quit [Read error: Connection reset by peer]
BuildTheRobots has quit [Ping timeout: 264 seconds]
laaron- has joined #ruby
laaron has quit [Remote host closed the connection]
JJonah has quit [Ping timeout: 258 seconds]
WA9ACE has quit [Ping timeout: 252 seconds]
khalella_ has joined #ruby
khalella_ has quit [Max SendQ exceeded]
aqd has joined #ruby
fanta7531 has joined #ruby
sauvin has joined #ruby
manveru has joined #ruby
aqd has quit [Ping timeout: 252 seconds]
BuildTheRobots has joined #ruby
kevinsjoberg has quit [Ping timeout: 259 seconds]
manveru has quit [Max SendQ exceeded]
BuildTheRobots has quit [Max SendQ exceeded]
vrih has quit [Remote host closed the connection]
BuildTheRobots has joined #ruby
lipoqil has quit [Ping timeout: 264 seconds]
BuildTheRobots has quit [Max SendQ exceeded]
kevinsjoberg has joined #ruby
BuildTheRobots has joined #ruby
lipoqil has joined #ruby
manveru has joined #ruby
chromis has joined #ruby
raggi has joined #ruby
khalella_ has joined #ruby
WA9ACE has joined #ruby
Lewix has joined #ruby
JJonah has joined #ruby
sagax has quit [Ping timeout: 268 seconds]
coffeejunk has joined #ruby
andikr has joined #ruby
schleppel has joined #ruby
marmotini_ has joined #ruby
clemens3 has joined #ruby
prestorium has joined #ruby
lxsameer has joined #ruby
sagax has joined #ruby
jenrzzz has joined #ruby
claudiuinberlin has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
houhoulis has quit [Remote host closed the connection]
aupadhye has joined #ruby
patientj has joined #ruby
cedum has joined #ruby
patientj has quit [Remote host closed the connection]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cthulu201 has joined #ruby
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
cedum has quit [Ping timeout: 258 seconds]
claudiuinberlin has joined #ruby
jsrn has joined #ruby
tdy has joined #ruby
rafadc has quit [Ping timeout: 264 seconds]
raggi has quit [Ping timeout: 252 seconds]
BuildTheRobots has quit [Ping timeout: 250 seconds]
ramfjord has joined #ruby
chromis_ has joined #ruby
raggi has joined #ruby
chromis has quit [Ping timeout: 250 seconds]
chromis_ is now known as chromis
rafadc has joined #ruby
BuildTheRobots has joined #ruby
ramfjord has quit [Ping timeout: 250 seconds]
jsrn_ has joined #ruby
dsmythe has quit [Ping timeout: 252 seconds]
teclator_home has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
teclator_ has quit [Remote host closed the connection]
jsrn has quit [Ping timeout: 264 seconds]
BH23 has joined #ruby
hightower2 has joined #ruby
_joes_ has joined #ruby
dsmythe has joined #ruby
c-c has left #ruby ["ta"]
fanta7531 has quit [Quit: fanta7531]
jenrzzz has joined #ruby
go|dfish has quit [Quit: SIGQUIT]
kyrylo has joined #ruby
jottr has joined #ruby
xco has joined #ruby
Jon_ has joined #ruby
Jon_ is now known as Guest5986
<Guest5986> ?
<havenwood> Guest5986: have a Ruby question?
Guest5986 is now known as Jonopoly
<Jonopoly> Hi, sorry yeah
<havenwood> Jonopoly: hey, welcome
<Jonopoly> Hello, thanks!
jcarl43 has quit [Quit: WeeChat 2.4]
<Jonopoly> I've been put in charge with automating a test for our website
<Jonopoly> and i was looking at using Ruby with (Gherkin, Cucumber and Selenium)
<Jonopoly> Since ruby seems very readable (to pass on)
<havenwood> Jonopoly: nice
<Jonopoly> the website is Java, JS (react) with tomcat (shudder)
<havenwood> Jonopoly: i've never been a huge cucumber fan, just because it seems like a layer of abstraction that's not useful to me personally and i have no stakeholders reading it typically
<Jonopoly> Hmm, its mostly for reporting
<havenwood> Jonopoly: my partner's side project uses capybara/selenium, but no cucumber: https://github.com/stephaniewilkinson/yonderbook/blob/master/spec/web/spec_helper.rb
eb0t has quit [Read error: Connection reset by peer]
<Jonopoly> Thanks, i'll give it a look
eb0t has joined #ruby
lomex has joined #ruby
TheBrayn has quit [Quit: poof]
dhollinger has quit [Read error: Connection reset by peer]
TheBrayn has joined #ruby
aqd has joined #ruby
Rudd0 has quit [Remote host closed the connection]
tdy has quit [Ping timeout: 268 seconds]
aqd has quit [Ping timeout: 252 seconds]
phaul has quit [Quit: :wq]
dhollinger has joined #ruby
Jonopoly has quit [Quit: Page closed]
phaul has joined #ruby
postmodern has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 268 seconds]
mangold has quit [Quit: This computer has gone to sleep]
rufusThistle has quit [Quit: Ex-Chat]
rufusThistle has joined #ruby
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_joes_ has quit [Remote host closed the connection]
_joes_ has joined #ruby
claudiuinberlin has quit [Ping timeout: 250 seconds]
sphenxes has joined #ruby
jenrzzz has joined #ruby
kyrylo_ has joined #ruby
jottr_ has joined #ruby
rufusThistle has quit [Read error: Connection reset by peer]
waronline has joined #ruby
kyrylo has quit [Ping timeout: 246 seconds]
sezuan has joined #ruby
rufusThistle has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
fanta1 has joined #ruby
Jonopoly has joined #ruby
<Jonopoly> :)
<Jonopoly> OH iwas just in here, remember that name Havenwood - Thanks for before
TheBloke has joined #ruby
TheBloke has quit [Remote host closed the connection]
TheBloke has joined #ruby
waronline has quit [Remote host closed the connection]
jottr has joined #ruby
Rudd0 has joined #ruby
jottr_ has quit [Ping timeout: 255 seconds]
fanta1 has quit [Quit: fanta1]
jenrzzz has joined #ruby
lomex has joined #ruby
fanta1 has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
_whitelogger has joined #ruby
Jonopoly has quit [Remote host closed the connection]
j has joined #ruby
j is now known as Guest53997
Guest53997 is now known as Jonopoly
Jonopoly has quit [Changing host]
Jonopoly has joined #ruby
<xco> hi, i’m sort of benchmarking or trying to at least how much memory allocations a method uses. what tool can i use for that if this is possible at all
aqd has joined #ruby
aqd has quit [Remote host closed the connection]
Jonopoly has quit [Quit: WeeChat 1.6]
_joes_ has quit [Ping timeout: 252 seconds]
BH23 has quit [Ping timeout: 250 seconds]
xco has quit [Quit: xco]
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xco has joined #ruby
_joes_ has joined #ruby
_joes_ has quit [Remote host closed the connection]
zleap has joined #ruby
xco has quit [Quit: xco]
_joes_ has joined #ruby
marmotini has joined #ruby
rufusThistle has quit [Ping timeout: 252 seconds]
marmotini_ has quit [Ping timeout: 252 seconds]
jottr has quit [Ping timeout: 246 seconds]
AJA4350 has joined #ruby
jottr has joined #ruby
_joes_ has quit [Ping timeout: 255 seconds]
jottr has quit [Ping timeout: 250 seconds]
Jonopoly has joined #ruby
donofrio has joined #ruby
mangold has joined #ruby
Jonopoly has quit [Quit: WeeChat 2.4]
Jonopoly has joined #ruby
aqd has joined #ruby
tdy has joined #ruby
ldnunes has joined #ruby
_joes_ has joined #ruby
aqd has quit [Remote host closed the connection]
Jonopoly has quit [Quit: WeeChat 2.4]
Jonopoly has joined #ruby
_joes_ has quit [Remote host closed the connection]
bastilian has joined #ruby
<Jonopoly> Does anyone use Ruby&Selenium for 'stress' testing a web site?
<Jonopoly> „
aupadhye is now known as aupadhye|afk
jottr has joined #ruby
aqd has joined #ruby
depesz has joined #ruby
DmitryBochkarev has joined #ruby
<depesz> hi. where can I find explanation of what is &. syntax ? i have something like: x&.downcase&.start_with?('aa')
<depesz> how is that different from x.downcase.start_with?('aa')
<phaul> safe navigation operator
ramfjord has joined #ruby
<depesz> safe?
DmitryBochkarev_ has quit [Ping timeout: 250 seconds]
<phaul> safe. googling this term should give you results
<ytti> depesz, if it returns nil, the method is not ran but nil is returned
<depesz> ah, got it. thanks.
<ytti> x can be nillable in above example
<ytti> you don't have to know
<ytti> without &. it must be string, otherwise there is runtime error
_joes_ has joined #ruby
<depesz> phaul:thanks, duckduckgoed it, and got https://en.wikipedia.org/wiki/Safe_navigation_operator#Ruby :)
<phaul> I agree that's not much :) but there must be blogposts about it, otherwise ytti explained it all there is to know already ;)
DmitryBochkarev has quit [Ping timeout: 246 seconds]
ramfjord has quit [Ping timeout: 258 seconds]
al2o3-cr has quit [Quit: If the universe is a machine where the future is uniquely determined by its present state, it would not be possible to calculate what the future will be.]
ferr has joined #ruby
marmotini_ has joined #ruby
Swyper has joined #ruby
marmotini has quit [Ping timeout: 246 seconds]
<phaul> oh'forheavens'sake! I spent ~5hrs now trying to figure out why Im getting wrong css colours on the "production-box".
waronline has joined #ruby
<phaul> it turns out now I can reproduce https://gist.github.com/phaul/64292bfe8911bbf6ccfe99e45283e346 with the native ext built on that machine for sassc-2.0.1
al2o3-cr has joined #ruby
waronline has quit [Remote host closed the connection]
<phaul> it's built with clang, because g++ build failed. other than that, I am clueless
<phaul> I don't know. byte order bug in libsassc?
<ytti> i think downcase&.start_with? is useless use of &.
<ytti> i don't thnk downcase can return nil
<Jonopoly> Ruby and Selenium seem to go so well together
aqd has quit [Remote host closed the connection]
Calinou has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Calinou has joined #ruby
aqd has joined #ruby
jonjitsu1 has joined #ruby
sepp2k has joined #ruby
turt2live has joined #ruby
Turnikov[m] has joined #ruby
supergeek[m] has joined #ruby
neovalis[m] has joined #ruby
fmcgeough has joined #ruby
DmitryBochkarev has joined #ruby
aqd has quit [Remote host closed the connection]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
aqd has joined #ruby
dsmythe has quit [Remote host closed the connection]
dsmythe has joined #ruby
TheSpectre has quit [Ping timeout: 255 seconds]
TheSpectre has joined #ruby
aqd has quit [Remote host closed the connection]
zleap has quit [Quit: WeeChat 2.4]
jenrzzz has joined #ruby
ElF3rn4 has joined #ruby
BH23 has joined #ruby
ElF3rn4 has quit [Client Quit]
jenrzzz has quit [Ping timeout: 246 seconds]
aqd has joined #ruby
luminousnine has quit [Quit: Goodbye ~ Powered by LunarBNC]
xfbs has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
fluxAeon_ has joined #ruby
aqd has quit [Remote host closed the connection]
cd has quit [Quit: cd]
endorama has joined #ruby
fanta1 has quit [Quit: fanta1]
ElF3rn4 has joined #ruby
hiroaki has joined #ruby
aqd has joined #ruby
pupsikov has joined #ruby
ElF3rn4 has quit [Remote host closed the connection]
luminousnine has joined #ruby
luminousnine has joined #ruby
luminousnine has quit [Changing host]
priodev has quit [Ping timeout: 240 seconds]
ghormoon has quit [Ping timeout: 268 seconds]
Swyper has quit [Remote host closed the connection]
aqd has quit [Remote host closed the connection]
duderonomy has joined #ruby
lucasb has joined #ruby
Jonopoly has quit [Quit: WeeChat 2.4]
priodev has joined #ruby
ghormoon has joined #ruby
Jonopoly has joined #ruby
xfbs has joined #ruby
mniip has quit [Ping timeout: 633 seconds]
RedNifre has joined #ruby
aqd has joined #ruby
mniip has joined #ruby
marmotini has joined #ruby
Jonopoly has quit [Quit: WeeChat 2.4]
aqd has quit [Remote host closed the connection]
Rapture has joined #ruby
marmotini_ has quit [Ping timeout: 268 seconds]
jonjitsu1 has quit [Read error: Connection reset by peer]
bastilian has quit [Read error: Connection reset by peer]
neovalis[m] has quit [Read error: Connection reset by peer]
supergeek[m] has quit [Read error: Connection reset by peer]
Turnikov[m] has quit [Remote host closed the connection]
turt2live has quit [Write error: Connection reset by peer]
sepp2k has quit [Read error: Connection reset by peer]
irdr has quit [Remote host closed the connection]
irdr has joined #ruby
vircung has quit [Ping timeout: 255 seconds]
h3ll0w0rld has quit [Read error: Connection reset by peer]
h3ll0w0rld has joined #ruby
Jonopoly has joined #ruby
vircung has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
liuyiwen has joined #ruby
<towo> Is there any useful way to store a Hash.dig symbol list somehow? Actual use case is "translate a lookup of this name into this nested hash element", so I'm also open for better suggestions.
aqd has joined #ruby
Inline has joined #ruby
mangold has joined #ruby
marmotini has quit [Remote host closed the connection]
liuyiwen has quit [Quit: liuyiwen]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vondruch_ has joined #ruby
vondruch has quit [Ping timeout: 240 seconds]
vondruch_ is now known as vondruch
skryking has joined #ruby
spacesuitdiver has joined #ruby
skryking has quit [Remote host closed the connection]
skryking has joined #ruby
lomex has joined #ruby
vondruch_ has joined #ruby
hiroaki has quit [Ping timeout: 246 seconds]
vondruch has quit [Ping timeout: 252 seconds]
vondruch_ is now known as vondruch
doodlebug has joined #ruby
bastilian has joined #ruby
h3ll0w0rld has quit [Ping timeout: 245 seconds]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
brool has joined #ruby
h3ll0w0rld has joined #ruby
laaron- has quit [Quit: ZNC 1.7.1 - https://znc.in]
kyrylo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
liuyiwen has joined #ruby
houhoulis has joined #ruby
laaron has joined #ruby
RedNifre has quit [Ping timeout: 252 seconds]
spacesui_ has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
spacesuitdiver has quit [Ping timeout: 268 seconds]
Nicmavr has joined #ruby
_joes_ has quit [Ping timeout: 244 seconds]
BH23 has quit [Ping timeout: 268 seconds]
_joes_ has joined #ruby
BH23 has joined #ruby
Guest74895 has quit [Quit: Lost terminal]
Swyper has joined #ruby
coffeejunk has quit []
coffeejunk has joined #ruby
_joes_ has quit [Ping timeout: 246 seconds]
BH23 has quit [Ping timeout: 255 seconds]
lipoqil has quit []
lipoqil has joined #ruby
sepp2k has joined #ruby
neovalis[m] has joined #ruby
turt2live has joined #ruby
supergeek[m] has joined #ruby
jonjitsu1 has joined #ruby
Turnikov[m] has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
<jhass> well you can just splat an array into Hash.dig, so create (and store) that array however you like
<jhass> depending on your keyspace a simple .split('.')/.join('.') might do
liuyiwen has left #ruby [#ruby]
liuyiwen has joined #ruby
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
BuildTheRobots has quit []
BuildTheRobots has joined #ruby
liuyiwen has quit [Remote host closed the connection]
RedNifre has joined #ruby
jenrzzz has joined #ruby
<towo> Ah, it takes an array… good to know. :) I can probably cook up something with that, thanks.
kyrylo has joined #ruby
aupadhye|afk has quit [Ping timeout: 268 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
skryking has quit [Quit: Leaving]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 250 seconds]
AJA4351 is now known as AJA4350
WA9ACE has quit []
WA9ACE has joined #ruby
rippa has joined #ruby
RedNifre has quit [Ping timeout: 258 seconds]
RedNifre has joined #ruby
polishdub has joined #ruby
DmitryBochkarev_ has joined #ruby
jsrn has joined #ruby
jsrn_ has quit [Ping timeout: 240 seconds]
Jonopoly has quit [Quit: WeeChat 2.4]
DmitryBochkarev has quit [Ping timeout: 246 seconds]
nowhere_man has joined #ruby
DmitryBochkarev has joined #ruby
DmitryBochkarev_ has quit [Ping timeout: 268 seconds]
xco has joined #ruby
DTZUZU has joined #ruby
clemens3 has quit [Ping timeout: 252 seconds]
jsrn has quit [Quit: Leaving]
RedNifre has quit [Ping timeout: 258 seconds]
RedNifre has joined #ruby
spacesui_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
spacesuitdiver has joined #ruby
doodleb87 has joined #ruby
doodlebug has quit [Read error: Connection reset by peer]
doodlebug has joined #ruby
DmitryBochkarev has quit [Remote host closed the connection]
DmitryBochkarev has joined #ruby
doodleb87 has quit [Ping timeout: 255 seconds]
duderonomy has joined #ruby
RedNifre has quit [Ping timeout: 268 seconds]
cthulchu_ has joined #ruby
RedNifre has joined #ruby
nnielsen has joined #ruby
imadper has quit [Ping timeout: 250 seconds]
iMadper|SlackOff has quit [Ping timeout: 250 seconds]
AndreYuhai has joined #ruby
jcarl43 has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 246 seconds]
AJA4351 is now known as AJA4350
<AndreYuhai> I have an each loop and then I am rescuing an exception inside the loop within a begin-end block. I want to redo the current iteration in rescue block, so putting redo will execute the each block again and not the begin block, right?
DmitryBochkarev has quit [Ping timeout: 246 seconds]
bokwoon has joined #ruby
xco has quit [Quit: xco]
sphenxes has quit [Quit: Leaving]
<fluxAeon_> any chance anyone here uses webpack and rails?
DmitryBochkarev has joined #ruby
<phaul> &>> begin; redo; end # AndreYuhai
<rubydoc> stderr: -e:3: void value expression (https://carc.in/#/r/6qfk)
<phaul> ok, that's not what I wanted
<phaul> redo outside of the loop is syntax error
bokwoon has quit [Quit: WeeChat 2.5-dev]
<phaul> https://carc.in/#/r/6qfl < AndreYuhai
andikr has quit [Remote host closed the connection]
ramfjord has joined #ruby
<phaul> fluxAeon_: I have used it before, not currently
lxsameer has quit [Quit: out]
<AndreYuhai> phaul: Thank you.
<fluxAeon_> when i run rake webpack:compile it's supposed to build my js files and put them into my webpack folder. it's stopped doing that for some reason and i can't figure out why. the webpack folder is now empy.
prestorium has quit [Ping timeout: 245 seconds]
cthu| has joined #ruby
ferr has quit [Quit: WeeChat 2.4]
pupsikov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
agent_white has joined #ruby
cthulchu_ has quit [Ping timeout: 246 seconds]
RedNifre has quit [Ping timeout: 240 seconds]
gix has joined #ruby
cedum has joined #ruby
mondz has joined #ruby
cthulchu_ has joined #ruby
xco has joined #ruby
DmitryBochkarev has quit [Ping timeout: 255 seconds]
cthu| has quit [Ping timeout: 246 seconds]
jottr has quit [Ping timeout: 245 seconds]
h3ll0w0rld has quit [Remote host closed the connection]
rubydoc has quit [Remote host closed the connection]
rubydoc has joined #ruby
ziyadb has joined #ruby
pupsikov has joined #ruby
gregf_ has quit [Ping timeout: 256 seconds]
cedum has quit [Ping timeout: 250 seconds]
dar123 has joined #ruby
waheedi has joined #ruby
nnielsen has quit [Read error: Connection reset by peer]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 246 seconds]
AJA4351 is now known as AJA4350
rubylover has joined #ruby
<rubylover> Hi
<waheedi> hi rubylover :)
<waheedi> who's not
<rubylover> I came here with a problem :)
<waheedi> please
<rubylover> It is related to the purpose of "Extracting Images from xlsx"
<rubylover> I will share code in a few seconds
<waheedi> ops, that's a big problem my friend
<rubylover> I have done it already
<waheedi> :) ok
<rubylover> you will understand the problem once I share it :)
houhoulis has quit [Remote host closed the connection]
cedum has joined #ruby
zachk has joined #ruby
agent_white has quit [Quit: brb]
nowhere_man has quit [Ping timeout: 257 seconds]
agent_white has joined #ruby
LtHummus has quit [Quit: ZNC 1.7.3 - https://znc.in]
zachk has quit [Read error: Connection reset by peer]
mondz has quit [Ping timeout: 245 seconds]
zachk has joined #ruby
LtHummus has joined #ruby
zachk has quit [Changing host]
zachk has joined #ruby
mondz has joined #ruby
ramfjord has quit [Ping timeout: 245 seconds]
<rubylover> ok
<rubylover> finally
<rubylover> I have got it
<rubylover> Here is the code in a Fiddle
<rubylover> Try to run and see the image files that are generated in the folder
<rubylover> The problem is that the images are named in excel but when I fetch them, their name information is lost
sauvin has quit [Read error: Connection reset by peer]
<waheedi> rubylover: i see their names not lost, roo_media_image1.png
<waheedi> whats lost?
oncall-pokemon has joined #ruby
<adam12> waheedi: I suspect that they might have been called something else and not `roo_*`
<waheedi> well i really don't know their original names and have no access to that neither
lxsameer has joined #ruby
<waheedi> :) adam12 good point though
<adam12> rubylover: This is likely a shortcoming with Roo. I'm not sure you'll be able to do any better unless you are able to update the roo gem to get the filenames from the xlsx file through the XLS spec (if one even exists?)
<rubylover> I can understand
<rubylover> In VBA, it is possible to write code that finds images by their name which one can assign to an image in a spreadsheet
<rubylover> Using that name, the image can be extracted
<waheedi> rubylover: can you please share that books.xlsx file somewhere we can see its content?
<rubylover> It is in that folder which I shared :)
jenrzzz has joined #ruby
<waheedi> its not downloadable
<rubylover> oh
<waheedi> its does not make sense you can't read a cell value
<rubylover> ok
<waheedi> adam12: ^
<rubylover> Images are not stored in a Cell. It appears like that but the images are actually drawn on a "drawing layer" on top of the spreadsheet
Swyper has quit [Remote host closed the connection]
<waheedi> so they have no names in the first place?
<rubylover> They are named by me
<rubylover> The link to the workbook
<rubylover> roo is indexing the images by the order of their creation
<rubylover> So if I delete all 3 images and remake them in a different order, the files generated by Roo will folllow that specific order
<waheedi> rubylover: what did you name them?
<waheedi> i seem them all with no names on my machine, and when I try to save these images it will save it as untitled (the default untitled file name for my os)
jenrzzz has quit [Ping timeout: 246 seconds]
<waheedi> rubylover: oh, i see a name
<waheedi> Picture_XYZ123
<rubylover> exactly that name
<rubylover> instead of that name, I get to see roo_media_image#.png
<rubylover> replace # with a number :)
kapil____ has quit [Quit: Connection closed for inactivity]
cedum has quit [Ping timeout: 258 seconds]
<rubylover> I just extracted the XLSX
<rubylover> and saw what I wish I hadnt
<rubylover> Check this out
<rubylover> <Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="../media/image2.png"/>
<rubylover> This is an XML structure. IT is saying that the something rID3 has a target image at ../media/image2.png"
<rubylover> And in the folder ../media/ I see my images which I put in my Excel workbook
<rubylover> Go ahead and try to extract the XLSX. This does not look good :D
dviola has joined #ruby
<waheedi> lol :) thats what it is
<waheedi> it does not always look good my friend
<rubylover> You are right
ascarter has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
jenrzzz has joined #ruby
<rubylover> can you use this to help me?
<waheedi> yes i saw that
<waheedi> it actually can't do better
gell5 has joined #ruby
<waheedi> like even my machine with a proper microsoft excel sheet, didn't save the image file with its proper name
rubylover has quit [Ping timeout: 256 seconds]
doodlebug has quit [Read error: Connection reset by peer]
doodlebug has joined #ruby
AJA4350 has quit [Ping timeout: 250 seconds]
lomex has joined #ruby
<waheedi> you can unzip that excel file and you will find the names inside Book1/xl/drawings/drawing1.xml
mondz` has joined #ruby
mondz has quit [Ping timeout: 246 seconds]
postmodern has joined #ruby
dviola has quit [Ping timeout: 245 seconds]
dviola has joined #ruby
dviola has quit [Changing host]
dviola has joined #ruby
<sagax> we have Struct - wow
<sagax> i don't know about this before
<ytti> wait till you see OpenStruct
hightower2 has quit [Ping timeout: 250 seconds]
<Zarthus> And beyond that is LibreStruct (/s)
<sagax> ytti: already
schleppel has quit [Quit: Konversation terminated!]
<sagax> Zarthus: where is?
jenrzzz has quit [Ping timeout: 250 seconds]
<Zarthus> it was a bad joke
ascarter_ has joined #ruby
<sagax> yes, bad
ascarter has quit [Ping timeout: 250 seconds]
d10n-work has joined #ruby
ellcs1 has joined #ruby
dsmythe has quit [Remote host closed the connection]
Jusstin has joined #ruby
dsmythe has joined #ruby
uplime has quit [Ping timeout: 245 seconds]
<sagax> Zarthus: you know about rusnet?
<Zarthus> yes why
<sagax> Zart ты ли это? ^_^
<Zarthus> i dont speak russian
<sagax> oh, sorry
<Zarthus> np
fmcgeough has quit [Quit: fmcgeough]
jenrzzz has joined #ruby
clemens3 has joined #ruby
khalella_ has quit []
jenrzzz has quit [Ping timeout: 245 seconds]
brool has quit [Quit: WeeChat 2.4]
jenrzzz has joined #ruby
ramfjord has joined #ruby
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maryo has joined #ruby
ascarter_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ascarter has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
dviola has quit [Quit: WeeChat 2.4]
pupsikov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ascarter has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 255 seconds]
pupsikov has joined #ruby
RedNifre has joined #ruby
ascarter has joined #ruby
minimal_life has joined #ruby
jenrzzz has joined #ruby
orbyt_ has joined #ruby
Ai9zO5AP has quit [Quit: WeeChat 2.4]
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
SeepingN has joined #ruby
waheedi has quit [Quit: waheedi]
dellavg_ has quit [Ping timeout: 264 seconds]
<leftylink> hmm, if someone were to tell me "hey Ray, Ruby is your Blub", I wonder how to know whether that's true. As I understand it, Blub implies I am not able to comprehend this or that feature. Then again, it's hard to know the difference between "I don't understand it" and "I understand it and judge that it does not benefit this project"
<leftylink> (substitute "Lefty" for "Ray" if it reads better to use my internet name)
<leftylink> I guess it's hard to know if you're in that situation. Just as the ant is not able to understand the human
<leftylink> so really the best thing to do is just to expand your understanding, no matter what
<leftylink> on the other hand, "Ruby is your most-used language" is a much more well-defined statement, and one that is true if said to me
<baweaver> What the right thing is tends to change as time goes by
<baweaver> In early Ruby everyone was enamored with monkey patching. That one certainly didn't age well.
rufusThistle has joined #ruby
s2013 has joined #ruby
yokel has joined #ruby
jenrzzz has joined #ruby
cd has joined #ruby
ur5us has joined #ruby
Jusstin has quit []
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s2013 has joined #ruby
Fernando-Basso has joined #ruby
hightower2 has joined #ruby
fmcgeough has joined #ruby
fmcgeough has quit [Client Quit]
fmcgeough has joined #ruby
fmcgeough has quit [Read error: Connection reset by peer]
fmcgeough_ has joined #ruby
ldnunes has quit [Ping timeout: 268 seconds]
AntoFox has quit [Remote host closed the connection]
AJA4350 has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
aqd has quit [Remote host closed the connection]
ascarter has quit [Read error: Connection reset by peer]
ascarter has joined #ruby
fluxAeon_ has quit [Quit: Textual IRC Client: www.textualapp.com]
hightower2 has quit [Ping timeout: 246 seconds]
ascarter_ has joined #ruby
pupsikov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ascarter has quit [Ping timeout: 250 seconds]
Dbugger has quit [Quit: Leaving]
ascarter_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tdy has quit [Ping timeout: 246 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
teej has joined #ruby
RedNifre has quit [Ping timeout: 258 seconds]
minimal_life has quit [Quit: I am functioning within established parameters.]
ascarter has joined #ruby
<sagax> i can use `if` when declare some variable - example foo = "bar" if true
<sagax> but how to use `else` when declare some var?
reber has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sagax> hm, i can use ||
reber has quit [Remote host closed the connection]
<havenwood> sagax: you can just declare variables inside the else block
Xeago_ has joined #ruby
<havenwood> sagax: `if` and `elsif` variable declarations aren't special really, but you can't do them with `else` since there's no statement with just `else`
Xeago has quit [Ping timeout: 246 seconds]
Xeago_ is now known as Xeago
SeepingN has joined #ruby
<phaul> &>> a = 1 if false; local_variables
<rubydoc> # => [:a] (https://carc.in/#/r/6qhr)
<havenwood> &>> a = 1 if b = 1; local_variables
<rubydoc> stderr: -e:2: warning: found `= literal' in conditional, should be == (https://carc.in/#/r/6qht)
<havenwood> Ruby caught me!
<havenwood> #=> [:a, :b]
<phaul> &>> a=a
<rubydoc> # => nil (https://carc.in/#/r/6qhu)
<phaul> &>> a=b
<rubydoc> stderr: -e:2:in `<main>': undefined local variable or method `b' for main:Object (NameError) (https://carc.in/#/r/6qhv)
<phaul> good old WAT video :)
<havenwood> >> a = a && b = b && a = b
<ruby[bot]> havenwood: # => nil (https://eval.in/1096462)
<phaul> note to self. if there is both stdout and stderr, the bot should probablt report back both
orbyt_ has joined #ruby
xco has quit [Quit: xco]
AJA4350 has quit [Ping timeout: 244 seconds]
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zapata has joined #ruby
clemens3 has quit [Ping timeout: 246 seconds]
xco has joined #ruby
clemens3_ has joined #ruby
rubydoc has quit [Remote host closed the connection]
rubydoc has joined #ruby
<phaul> &>> a = 1 if b = 1; local_variables # havenwood
<phaul> &>> a = 1 if b = 1; local_variables # havenwood
<rubydoc> # => [:a, :b] (https://carc.in/#/r/6qi0)
gb_away has quit [Quit: One disk to rule them all, One disk to bind them, One disk to hold the files And in the darkness grind 'em.]
<phaul> ok that's not the output I expected
<phaul> here's the check in, who spots the bug first ? https://github.com/phaul/yarr/commit/ca0a366deadd371cd9ca271e1366adf134db94d8
lunarkitty7 has quit [Ping timeout: 252 seconds]
mondz` has quit [Ping timeout: 244 seconds]
mondz has joined #ruby
oncall-pokemon has quit [Quit: Connection closed for inactivity]
bhaak has joined #ruby
spacesuitdiver has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
polishdub has quit [Quit: leaving]
lunarkitty7 has joined #ruby
ellcs1 has quit [Ping timeout: 264 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zachk has quit [Quit: Leaving]
orbyt_ has joined #ruby
orbyt_ has quit [Client Quit]
masquino has joined #ruby
txdv has quit [Ping timeout: 245 seconds]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lucasb has quit [Quit: Connection closed for inactivity]
jenrzzz has joined #ruby
ascarter has joined #ruby
gb_away has joined #ruby
xco has quit [Quit: xco]
tdy has joined #ruby
rufusThistle has quit [Ping timeout: 252 seconds]