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
dinfuehr has quit [Ping timeout: 265 seconds]
Azure has quit [Read error: Connection reset by peer]
fercell has quit [Read error: Connection reset by peer]
dinfuehr has joined #ruby
Azure has joined #ruby
fercell has joined #ruby
centrx has joined #ruby
fercell has quit [Read error: Connection reset by peer]
centrx has quit [Ping timeout: 264 seconds]
fercell has joined #ruby
astronavt has left #ruby [#ruby]
astronavt has joined #ruby
centrx has joined #ruby
neshpion has quit [Ping timeout: 268 seconds]
neshpion has joined #ruby
centrx has quit [Ping timeout: 264 seconds]
vqrs has quit [Ping timeout: 272 seconds]
coniptor has quit [Ping timeout: 260 seconds]
vqrs has joined #ruby
coniptor has joined #ruby
tannakartikey has joined #ruby
centrx has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
fercell has quit [Ping timeout: 240 seconds]
fercell has joined #ruby
Technodrome has joined #ruby
DOMreporter[01] has joined #ruby
DOMreporter[01] has left #ruby [#ruby]
tannakartikey has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
TomyLobo has quit [Read error: Connection reset by peer]
GodFather has quit [Remote host closed the connection]
tannakartikey has joined #ruby
GodFather has joined #ruby
tannakartikey has quit [Remote host closed the connection]
tpanarch1st has quit [Ping timeout: 264 seconds]
eax has left #ruby [#ruby]
tannakartikey has joined #ruby
tpanarch1st has joined #ruby
tannakartikey has quit [Ping timeout: 272 seconds]
coniptor has quit [Ping timeout: 264 seconds]
cnsvc has quit [Remote host closed the connection]
cnsvc has joined #ruby
coniptor has joined #ruby
gix has quit [Ping timeout: 260 seconds]
cuerbot has joined #ruby
elcuervo has quit [Ping timeout: 246 seconds]
DaRock has joined #ruby
centrx has quit [Remote host closed the connection]
centrx has joined #ruby
centrx has quit [Ping timeout: 264 seconds]
fercell has quit [Ping timeout: 240 seconds]
tpanarch1st has quit [Ping timeout: 246 seconds]
centrx has joined #ruby
centrx has quit [Ping timeout: 264 seconds]
GodFather has quit [Ping timeout: 265 seconds]
centrx has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
shokohsc has quit [Ping timeout: 272 seconds]
shokohsc has joined #ruby
ChmEarl has quit [Quit: Leaving]
centrx has quit [Remote host closed the connection]
goepsilongo has quit [Quit: WeeChat 3.0]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
centrx has joined #ruby
coniptor has quit [Ping timeout: 256 seconds]
centrx has quit [Ping timeout: 264 seconds]
coniptor has joined #ruby
nofxx__ has joined #ruby
jenrzzz has joined #ruby
nofxx_ has quit [Ping timeout: 264 seconds]
hiroaki has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
iNs has quit [Ping timeout: 268 seconds]
iNs_ has joined #ruby
crawler has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
crawler has joined #ruby
m27frogy has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
iNs_ has quit [Remote host closed the connection]
sylario has quit [Quit: Connection closed for inactivity]
<nakilon> recently found this standard: https://en.wikipedia.org/wiki/Recfiles
iNs has joined #ruby
<nakilon> I wonder if there are gems and if anyone had a nice experience in using them
coniptor has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
coniptor has joined #ruby
neshpion has quit [Quit: neshpion]
<havenwood> nakilon: That reminds me of DBM.
<havenwood> I guess DBM isn't stored in a human-readable format.
<havenwood> nakilon: I use YAML::DBM from the sdlib from time to time.
<havenwood> nakilon: Or YAML::Store.
cd has quit [Quit: cd]
<nakilon> yeah I use yaml::store too -- it feels safe to stop the program at any moment and it won't get corrupted, even if there are several processes open the same file
<nakilon> but it becomes slow with files of size 30 mb
TzilTzal has joined #ruby
<nakilon> is yaml::dbm faster than yaml::store?
<havenwood> nakilon: yup
jenrzzz has joined #ruby
<havenwood> nakilon: GDBM and SDBM from stdlib have varied performance.
<havenwood> I doubt the YAML keys from YDBM cost much.
<nakilon> havenwood I see he didn't use the transaction arg read_only in pstore
<havenwood> String keys from DBM/SDBM/GDBM/etc are I'm sure slightly faster.
<havenwood> nakilon: mmm
jenrzzz has quit [Ping timeout: 240 seconds]
<havenwood> nakilon: daybreak has a different, interesting benchmark http://propublica.github.io/daybreak/
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
jenrzzz has quit [Ping timeout: 260 seconds]
mangold has joined #ruby
<TzilTzal> Hi
<TzilTzal> Is there a way to use a specific collation algorithm to compare strings in ruby?
jenrzzz has joined #ruby
<nakilon> TzilTzal I doubt, what exactly do you want?
<nakilon> and do you need this comparison for a sorting?
iNs has quit [Ping timeout: 268 seconds]
iNs has joined #ruby
<TzilTzal> nakilon: yes. I'd like to compare the same way as postgresql and indeed it's for sorting
centrx has joined #ruby
<nakilon> TzilTzal I don't remember what are the "psql collation" options but in Ruby you are sopposed to use the Array#sort_by method passing the block that will transform each string before comparison
centrx has quit [Ping timeout: 264 seconds]
JayDoubleu has quit [Ping timeout: 240 seconds]
<TzilTzal> There's an array of strings so the thing I believe should be done is use the appropriate comparison block... which is why I'm interested in using a specific collation algorithm to compare.
bougyman has quit [Ping timeout: 258 seconds]
JayDoubleu has joined #ruby
bougyman has joined #ruby
<havenwood> TzilTzal: Sounds like #sort_by, like nakilon mentioned. Does #sort_by work? If not, have a minimal reproduction case with the desired result?
znz_jp has quit [Ping timeout: 240 seconds]
<nakilon> what is the "specific collation algorithm" you need?
mangold has quit [Ping timeout: 265 seconds]
znz_jp has joined #ruby
mangold has joined #ruby
centrx has joined #ruby
centrx has quit [Ping timeout: 264 seconds]
bougyman has quit [Ping timeout: 240 seconds]
JayDoubleu has quit [Ping timeout: 240 seconds]
JayDoubleu has joined #ruby
dfucci has joined #ruby
bougyman has joined #ruby
dfucci has quit [Ping timeout: 260 seconds]
<TzilTzal> nakilon: anything that would make the same comparison as postgres. I think ICU's standard unicode collation is fairly standard.
bucareli has joined #ruby
dfucci has joined #ruby
mangold has quit [Ping timeout: 264 seconds]
mangold has joined #ruby
dfucci has quit [Ping timeout: 272 seconds]
centrx has joined #ruby
ua_ has quit [Ping timeout: 256 seconds]
coniptor has quit [Ping timeout: 265 seconds]
dfucci has joined #ruby
centrx has quit [Ping timeout: 264 seconds]
tannakartikey has joined #ruby
coniptor has joined #ruby
<havenwood> TzilTzal: Do you want to just have Postgres collate like Ruby or do you need to have Ruby use the Postgres sorting?
<havenwood> TzilTzal: Would the ffi-icu gem do the trick?
<havenwood> collator.collate
<havenwood> that reminds me of a line I wrote this morning
<havenwood> yielded = yield yielded
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mangold has quit [Ping timeout: 240 seconds]
ua_ has joined #ruby
<havenwood> TzilTzal: Seems nicer to me to "fix" Postgres sorting, if that's an option.
snickers has joined #ruby
centrx has joined #ruby
mangold has joined #ruby
Rounin has joined #ruby
centrx has quit [Ping timeout: 240 seconds]
vondruch has joined #ruby
jla has joined #ruby
jla has quit [Ping timeout: 256 seconds]
jla has joined #ruby
fercell has joined #ruby
mangold_ has joined #ruby
mangold has quit [Ping timeout: 260 seconds]
<TzilTzal> havenwood: I don't think it is .. but supplying a block that compares the same way should have the right effect.
teclator has joined #ruby
mangold has joined #ruby
mangold_ has quit [Ping timeout: 260 seconds]
tannakartikey has quit [Remote host closed the connection]
teej has quit [Ping timeout: 272 seconds]
totoro2023 has quit [Read error: Connection reset by peer]
shokohsc has quit [Quit: Ping timeout (120 seconds)]
totoro2023 has joined #ruby
teej has joined #ruby
shokohsc has joined #ruby
Jonopoly has joined #ruby
centrx has joined #ruby
centrx_ has joined #ruby
centrx has quit [Ping timeout: 264 seconds]
mangold has quit [Ping timeout: 265 seconds]
centrx_ has quit [Ping timeout: 264 seconds]
elphe has quit [Read error: Connection reset by peer]
<nakilon> I member my Pithon coworkers had the same issue with collating
elphe has joined #ruby
<nakilon> I've asked a coworker now what was the solution
snickers has quit [Read error: Connection reset by peer]
<nakilon> he said they didn't fix it ..D
<nakilon> *I remember
mangold has joined #ruby
jla has quit [Ping timeout: 256 seconds]
bucareli has quit [Quit: leaving]
tannakartikey has joined #ruby
Mrgoose has quit [Ping timeout: 240 seconds]
Mrgoose has joined #ruby
tannakartikey has quit [Ping timeout: 264 seconds]
centrx has joined #ruby
fercell has quit [Ping timeout: 240 seconds]
mangold has quit [Ping timeout: 260 seconds]
fercell has joined #ruby
centrx has quit [Ping timeout: 240 seconds]
mangold has joined #ruby
jla has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
mangold has quit [Quit: This computer has gone to sleep]
jenrzzz has joined #ruby
coniptor has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
coniptor has joined #ruby
tannakartikey has joined #ruby
tannakartikey has quit [Ping timeout: 260 seconds]
deviantfero has quit [Ping timeout: 264 seconds]
snickers has joined #ruby
cnsvc has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
TomyWork has joined #ruby
mangold has joined #ruby
Technodrome has joined #ruby
alexherbo2 has joined #ruby
snickers has quit [Ping timeout: 240 seconds]
coniptor has quit [Ping timeout: 265 seconds]
TzilTzal has quit [Quit: Leaving.]
coniptor has joined #ruby
jla has quit [Remote host closed the connection]
jla has joined #ruby
mangold has quit [Ping timeout: 264 seconds]
mangold has joined #ruby
tannakartikey has joined #ruby
vondruch has quit [Ping timeout: 264 seconds]
mangold has quit [Ping timeout: 272 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]
tannakartikey has quit [Remote host closed the connection]
fercell has quit [Ping timeout: 272 seconds]
mangold has joined #ruby
fercell has joined #ruby
yann-kaelig has joined #ruby
tannakartikey has joined #ruby
<yann-kaelig> Hi
<nakilon> hi
jenrzzz has joined #ruby
jla has quit [Ping timeout: 272 seconds]
<yann-kaelig> I wonder if there is a difference between: bundle config --local [....] and bundle config set --local [...] I have seen the both. But also bundle config --local without development:test:aws:kerberos and bundle config --local without development test aws kerberos . I have seen the both too
cd has joined #ruby
<adam12> yann-kaelig: They are they same.
<adam12> yann-kaelig: If you pass --local or --global without `set`, bundler just makes it call `set` for you.
mangold has quit [Quit: This computer has gone to sleep]
<adam12> yann-kaelig: They plan on deprecating that feature (rightly so, to prevent this confusion). https://github.com/rubygems/rubygems/blob/eb753b9eb65dc5084d368243ee6aea09ddd7ed3d/bundler/lib/bundler/cli/config.rb#L28-L29
<yann-kaelig> adam12: Hi and big thx, Everything is clear now
jla has joined #ruby
<adam12> yann-kaelig: yw!
<yann-kaelig> As a feedback I have a preference for the style " without development:test" than "without development test" The first style being visually less stressful to read
mangold has joined #ruby
scriptonaut has quit [Ping timeout: 272 seconds]
linoge has joined #ruby
m27frogy has joined #ruby
scriptonaut has joined #ruby
fercell has quit [Ping timeout: 240 seconds]
fercell has joined #ruby
coniptor has quit [Ping timeout: 240 seconds]
coniptor has joined #ruby
mangold has quit [Ping timeout: 260 seconds]
alexherbo2 has joined #ruby
Jonopoly has quit [Quit: WeeChat 3.0.1]
burgestrand has joined #ruby
mangold has joined #ruby
vondruch has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
ByronJohnson has quit [Ping timeout: 258 seconds]
ByronJohnson has joined #ruby
mangold has joined #ruby
Rudd0 has quit [Ping timeout: 256 seconds]
nebh^ has quit []
jla has quit [Ping timeout: 240 seconds]
vondruch has quit [Ping timeout: 260 seconds]
ChmEarl has joined #ruby
mangold has quit [Ping timeout: 240 seconds]
alexherbo2 has quit [Ping timeout: 265 seconds]
coniptor has quit [Ping timeout: 272 seconds]
mangold has joined #ruby
coniptor has joined #ruby
tannakartikey has quit [Remote host closed the connection]
maroloccio has joined #ruby
CommunistWolf has quit [Remote host closed the connection]
CommunistWolf has joined #ruby
MBip[m] has joined #ruby
mangold has quit [Ping timeout: 260 seconds]
vondruch has joined #ruby
jonhg has joined #ruby
maroloccio has quit [Quit: WeeChat 2.3]
mangold has joined #ruby
<MBip[m]> What is the difference between this room and #ruby:matrix.org?
TCZ has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
<MBip[m]> Oh - wait: I see. By adding the quotes I moved the `-` to between characters, and it became a range expression. Subtle..
jenrzzz has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TCZ has quit [Quit: Science is the root of all evil]
TCZ has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
jonhg has quit []
yasumi2136 has joined #ruby
jenrzzz has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
yasumi2136 has quit [Client Quit]
yasumi2136 has joined #ruby
yasumi2136 has quit [Client Quit]
yasumi2136 has joined #ruby
mangold has joined #ruby
tpanarch1st has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jla has joined #ruby
Swyper has joined #ruby
elcuervo has joined #ruby
cuerbot has quit [Ping timeout: 240 seconds]
astronavt has quit [Quit: ...]
jenrzzz has quit [Ping timeout: 265 seconds]
jla has quit [Ping timeout: 260 seconds]
mangold has quit [Ping timeout: 260 seconds]
mangold has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
deviantfero has joined #ruby
mangold has quit [Ping timeout: 272 seconds]
jenrzzz has joined #ruby
elphe has quit [Read error: Connection reset by peer]
DaRock has quit [Ping timeout: 240 seconds]
coniptor has quit [Ping timeout: 246 seconds]
stdedos has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
GodFather has joined #ruby
coniptor has joined #ruby
jenrzzz has joined #ruby
goepsilongo has joined #ruby
centrx has joined #ruby
tannakartikey has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
TCZ has quit [Quit: Science is the root of all evil]
jenrzzz has joined #ruby
burgestrand has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GodFather has quit [Ping timeout: 272 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
Rounin has quit [Ping timeout: 260 seconds]
<adam12> MBip[m]: This channel is more historical and goes back quite a number of years. I'd never heard of the Matrix channel until now.
jenrzzz has joined #ruby
goepsilongo has quit [Quit: Konversation terminated!]
goepsilongo has joined #ruby
orbyt_ has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
Hanma[m] has quit [Quit: Idle for 30+ days]
centrx has quit [Remote host closed the connection]
centrx has joined #ruby
jla has joined #ruby
jenrzzz has joined #ruby
mangold has joined #ruby
Rudd0 has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
burgestrand has joined #ruby
mangold has quit [Quit: Leaving]
duckpuppy has quit [Remote host closed the connection]
GodFather has joined #ruby
jenrzzz has joined #ruby
duckpuppy has joined #ruby
centrx has quit [Remote host closed the connection]
burgestrand has quit [Quit: Textual IRC Client: www.textualapp.com]
burgestrand has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
GodFather has quit [Ping timeout: 272 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dfucci has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
deviantfero has quit [Ping timeout: 260 seconds]
Xiti has quit [Ping timeout: 260 seconds]
deviantfero has joined #ruby
duckpuppy has quit [Remote host closed the connection]
moldorcoder7 has quit [Ping timeout: 246 seconds]
duckpuppy has joined #ruby
centrx has joined #ruby
dfucci has joined #ruby
duckpuppy has quit [Quit: ZNC 1.8.2 - https://znc.in]
centrx has quit [Ping timeout: 240 seconds]
alexherbo2 has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
dfucci has quit [Ping timeout: 272 seconds]
Xiti has joined #ruby
jenrzzz has joined #ruby
dfucci has joined #ruby
sylario has joined #ruby
houhoulis has joined #ruby
duckpuppy has joined #ruby
vondruch has quit [Quit: vondruch]
jenrzzz has quit [Ping timeout: 256 seconds]
vondruch has joined #ruby
coniptor has quit [Ping timeout: 246 seconds]
dfucci_ has joined #ruby
tannakartikey has quit [Remote host closed the connection]
jenrzzz has joined #ruby
serard has quit [Quit: Leaving]
tannakartikey has joined #ruby
dfucci has quit [Ping timeout: 265 seconds]
coniptor has joined #ruby
dfucci has joined #ruby
ruurd has joined #ruby
dfucci_ has quit [Ping timeout: 260 seconds]
orbyt_ has joined #ruby
tannakartikey has quit [Ping timeout: 265 seconds]
dfucci_ has joined #ruby
dfucci has quit [Ping timeout: 240 seconds]
stdedos has quit [Ping timeout: 260 seconds]
<MBip[m]> Ah, I see. I got a good reaction in the other room, by the way.
<MBip[m]> There is also #ruby_ruby:gitter.im, but that seems almost empty - is it, or is that an artefact of the incomplete gitter-matrix integration?
moldorcoder7 has joined #ruby
burgestrand has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ruurd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dfucci has joined #ruby
pgib has joined #ruby
ruurd has joined #ruby
<havenwood> MBip[m]: The Gitter channel doesn't have many convos.
dfucci_ has quit [Ping timeout: 240 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dfucci_ has joined #ruby
dfucci has quit [Ping timeout: 240 seconds]
TomyWork has quit [Remote host closed the connection]
dfucci_ has quit [Ping timeout: 246 seconds]
vondruch has quit [Read error: Connection reset by peer]
TCZ has joined #ruby
deviantfero has quit [Read error: Connection reset by peer]
jla has quit [Ping timeout: 260 seconds]
centrx has joined #ruby
deviantfero has joined #ruby
dfucci has joined #ruby
<MBip[m]> Maybe one only sees one's own bit? I don't see you there, for instance.
pgib has quit [Ping timeout: 240 seconds]
dfucci has quit [Ping timeout: 260 seconds]
tannakartikey has joined #ruby
SeepingN has joined #ruby
centrx has quit [Remote host closed the connection]
tannakartikey has quit [Ping timeout: 240 seconds]
ruurd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
greengriminal has joined #ruby
coniptor has quit [Ping timeout: 240 seconds]
pgib has joined #ruby
coniptor has joined #ruby
dfucci has joined #ruby
centrx has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
centrx has quit [Remote host closed the connection]
jenrzzz has joined #ruby
dfucci_ has joined #ruby
dfucci has quit [Read error: Connection reset by peer]
burgestrand has joined #ruby
burgestrand has quit [Client Quit]
jenrzzz has quit [Ping timeout: 264 seconds]
ruurd has joined #ruby
ruurd has quit [Client Quit]
GodFather has joined #ruby
jenrzzz has joined #ruby
alexherbo2 has quit [Ping timeout: 260 seconds]
ruurd has joined #ruby
TCZ has quit [Remote host closed the connection]
ruurd has quit [Client Quit]
jenrzzz has quit [Ping timeout: 240 seconds]
houhoulis has quit [Remote host closed the connection]
jenrzzz has joined #ruby
ruurd has joined #ruby
ruurd has quit [Ping timeout: 272 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
yann-kaelig has quit []
dfucci_ has quit [Ping timeout: 240 seconds]
alexherbo2 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
s3nd1v0g1us has quit [Ping timeout: 256 seconds]
goepsilongo has quit [Quit: WeeChat 3.0]
dfucci has joined #ruby
coniptor has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
coniptor has joined #ruby
Technodrome has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
ruurd has joined #ruby
jenrzzz has joined #ruby
evil has quit [Quit: Connection closed for inactivity]
ruurd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
s3nd1v0g1us has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
gix has joined #ruby
yasumi2136_ has joined #ruby
cnsvc has joined #ruby
eax has joined #ruby
eax has left #ruby [#ruby]
yasumi2136 has quit [Ping timeout: 272 seconds]
BH23 has joined #ruby
shokoshiki has joined #ruby
dfucci has quit [Ping timeout: 260 seconds]
dfucci has joined #ruby
queip has quit [Ping timeout: 246 seconds]
dfucci has quit [Ping timeout: 256 seconds]
queip has joined #ruby
orbyt_ has joined #ruby
ruurd has joined #ruby
greengriminal has quit [Quit: This computer has gone to sleep]
greengriminal has joined #ruby
dfucci has joined #ruby
shokoshiki has quit [Quit: leaving]
evil has joined #ruby
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
istrasci has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
linoge has quit [Remote host closed the connection]
coniptor has quit [Ping timeout: 264 seconds]
linoge has joined #ruby
linoge has quit [Ping timeout: 260 seconds]
coniptor has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jla has joined #ruby
code_zombie has joined #ruby
yasumi2136_ has quit [Quit: Leaving]
yasumi2136 has joined #ruby
deviantfero has quit [Remote host closed the connection]
yasumi2136 has quit [Client Quit]
deviantfero has joined #ruby
dhollinger has quit [Ping timeout: 264 seconds]
<isene> I can run this on the command line; unzip -qc my_file.pptx | perl -e 'while(<>) {if (@list = ($_ =~ m/\<a:t\>(.+?)\<\/a:t\>/g)) {print "$_\n" for @list}}' BUT when I do this in Ruby; system(%Q[unzip -qc F1_awesome_pres_v5.pptx | perl -e 'while(<>) {if (@list = ($_ =~ m/\<a:t\>(.+?)\<\/a:t\>/g)) {print "$_\n" for @list}}']) I get the error; syntax error at -e line 1, near "m/<a:t>(.+?)</a:" Search
<isene> pattern not terminated at -e line 1. How do I fix this - or even better how do I achieve the same with ruby as the parser rather than perl?
<isene> Sorry for the mixup of the filenames, just think of F1_awesome_pres_v5.pptx as my_file.pptx
TCZ has joined #ruby
<isene> BTW; The point of this is to extract the text from a pptx presentation file
greengriminal has quit [Quit: This computer has gone to sleep]
alexherbo2 has quit [Ping timeout: 240 seconds]
alexherbo2 has joined #ruby
Rounin has joined #ruby
jenrzzz has joined #ruby
AndreYuhai has joined #ruby
<AndreYuhai> I am trying to set proxy for a class that inherits from Mechanize but it doesn't really set the proxy, what am I doing wrong? https://bpa.st/COHA
DaRock has joined #ruby
<isene> Basically; How do I convert this from perl to ruby: perl -e 'while(<>) {if (@list = ($_ =~ m/\<a:t\>(.+?)\<\/a:t\>/g)) {print "$_\n" for @list}}'
klaas has quit [Read error: Connection reset by peer]
klaas_ has joined #ruby
ruurd has quit [Ping timeout: 272 seconds]
<MBip[m]> <isene "Sorry for the mixup of the filen"> You can edit messages. Often that is easier than trying to describe how others can correct errors in their minds.
dhollinger has joined #ruby
TCZ has quit [Quit: Lepsze jest sto rzeczy zrobionych byle jak ni? jedna rzecz zrobiona dobrze]
deviantfero has quit [Ping timeout: 240 seconds]
Technodrome has joined #ruby
Swyper has quit [Remote host closed the connection]
powerhouse_ has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
AndreYuhai has quit [Remote host closed the connection]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
Swyper has joined #ruby
dhollin3 has joined #ruby
Tempesta has quit [Quit: AdiIRC is updating to v4.0 Beta Build (2021/02/17 UTC) 64 Bit]
dhollinger has quit [Ping timeout: 246 seconds]
Tempesta has joined #ruby
<wnd> isene, for example, ruby -e '$stdin.each_line { |i| i.scan(/<a:t>(.+?)<\/a:t>/).each { |j| puts(j) } }'
<wnd> I may have overlooked something
cloud69 has joined #ruby
whysthatso has quit [Quit: Ping timeout (120 seconds)]
whysthatso has joined #ruby
jla has quit [Ping timeout: 264 seconds]
fercell has quit [Ping timeout: 256 seconds]
jla has joined #ruby
fercell has joined #ruby
Swyper has quit [Remote host closed the connection]
Xiti has quit [Quit: Leaving]
coniptor has quit [Ping timeout: 240 seconds]
<isene> wnd: When trying, I get some meta text converted, but it fails when it comes to the slides with; -e:1:in `scan': invalid byte sequence in UTF-8 (ArgumentError)
<isene> I suspect it is because of the Norwegian ÆØÅ characters. The perl version does not fail.
DTZUZU has quit [Read error: Connection reset by peer]
DTZUZU has joined #ruby
hiroaki has quit [Ping timeout: 246 seconds]
Xiti has joined #ruby
coniptor has joined #ruby
<isene> wnd: It fails even when I do this; ruby -e '$stdin.each_line { |i| i.scan(/<a:t>(\p{Word}+?)<\/a:t>/).each { |j| puts(j) } }'
<wnd> I'm guessing your data has invalid UTF-8 sequence(s). Maybe it's just BOM.
jla has quit [Ping timeout: 260 seconds]
<wnd> if you're desperate and don't care, you could try i.force_encoding('ISO-8859-1').scan(...), i.force_encoding('ISO-8859-1').encode('UTF-8').scan(...), or something similar
<wnd> depending on what sort of encoding you expect