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
<Aguiar> I came back, thanking everyone who tried to help me, especially for the code JanHebler[m] occurred as requested by the activity.
<Aguiar> very very very thank you
dfucci has quit [Ping timeout: 246 seconds]
<deimos_> i started down the path of converting everything to seconds and epoch, and then hoped there was a simpler way
<deimos_> like .last_month
<deimos_> ;)
<deimos_> havenwood: thanks, i take this as confirmation i'm not crazy
<deimos_> actually, i am
<deimos_> Date.new(Time.now.utc.year, Time.now.utc.month).prev_month handles the "last month" case
<deimos_> (Date.new(Time.now.utc.year, Time.now.utc.month).prev_month - 1).to_date handle 2 months ago
<deimos_> and correctly handles year boundaries
Axy has quit [Read error: Connection reset by peer]
Axy has joined #ruby
<havenwood> deimos_: I totally forgot about #prev_month
ur5us_ has joined #ruby
compufreak has quit [Ping timeout: 246 seconds]
nick_ has joined #ruby
nick_ is now known as Guest11235
<deimos_> me too, i read the docs
<deimos_> now i want crystal's .days_in_month ;)
al2o3-cr-tmp is now known as al2o3-cr
<apotheon> You could write it.
<apotheon> (I suppose)
al2o3-cr-tmp has joined #ruby
al2o3-cr has quit [Ping timeout: 256 seconds]
al2o3-cr-null has joined #ruby
al2o3-cr-tmp has quit [Ping timeout: 256 seconds]
<deimos_> yeah, it's pretty simple
Rudd0 has quit [Read error: Connection reset by peer]
Guest11235 has quit [Remote host closed the connection]
<deimos_> Date.new(Time.now.utc.year, Time.now.utc.month, -1).day
<deimos_> I don't remember if that accounts for leap years
ur5us has joined #ruby
ur5us_ has quit [Ping timeout: 258 seconds]
nick_ has joined #ruby
nick_ is now known as Guest32436
<al2o3-cr-null> deimos_: this is pretty much what they do in crystal: https://carc.in/#/r/acgc
al2o3-cr-null is now known as al2o3-cr
<deimos_> indeed, i looked at the crystal source
Guest32436 has quit [Ping timeout: 240 seconds]
nick__ has joined #ruby
<al2o3-cr> :)
<deimos_> i mean, it's linked from the api docs, so it wasn't too difficult
<deimos_> all that clicking
nick__ has quit [Ping timeout: 265 seconds]
Aguiar has quit [Quit: Ping timeout (120 seconds)]
chouhoulis has joined #ruby
venmx_ has quit [Ping timeout: 246 seconds]
<havenwood> I remember not understanding why web would ever be popular "when we already have Telnet." Is "clicking links that compelling?
ur5us has quit [Ping timeout: 240 seconds]
<havenwood> Apparently, "yes" we love to click!
rzjian has joined #ruby
venmx has joined #ruby
gueorgui has quit [Ping timeout: 246 seconds]
rzjian has quit [Client Quit]
compufreak has joined #ruby
gueorgui has joined #ruby
rzjian has joined #ruby
ur5us has joined #ruby
postmodern has joined #ruby
orbyt_ has joined #ruby
carbone5 has joined #ruby
Rounin has quit [Ping timeout: 246 seconds]
rzjian has quit [Client Quit]
compufreak has quit [Ping timeout: 256 seconds]
compufreak has joined #ruby
rzjian has joined #ruby
carbone5 has quit [Quit: carbone5]
crawler has quit [Ping timeout: 246 seconds]
venmx has quit [Ping timeout: 264 seconds]
venmx has joined #ruby
chouhoulis has quit [Remote host closed the connection]
edwardly has quit [Quit: ??????????]
CommunistWolf has quit [Remote host closed the connection]
CommunistWolf has joined #ruby
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
crawler has joined #ruby
dfucci has joined #ruby
iNs_ has quit [Ping timeout: 268 seconds]
iNs has joined #ruby
_aeris has joined #ruby
_aeris_ has quit [Ping timeout: 268 seconds]
_aeris is now known as _aeris_
carbone5 has joined #ruby
dfucci has quit [Ping timeout: 240 seconds]
baojg has joined #ruby
envex has joined #ruby
cnsvc has quit [Quit: WeeChat 3.0]
ur5us has quit [Ping timeout: 258 seconds]
ur5us has joined #ruby
edwardly has quit [Quit: ??????????]
ChmEarl has quit [Quit: Leaving]
carbone5 has quit [Quit: carbone5]
edwardly has joined #ruby
edwardly has joined #ruby
dorian_ is now known as dorian
htmnc has quit [Read error: Connection reset by peer]
Aguiar has joined #ruby
carbone5 has joined #ruby
r3m has quit [Quit: WeeChat 3.1-dev]
Emmanuel_Chanel has quit [Quit: Leaving]
znz_jp0 has quit [Ping timeout: 264 seconds]
Aguiar has quit [Ping timeout: 248 seconds]
ur5us has quit [Ping timeout: 260 seconds]
baojg has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
ur5us_ has joined #ruby
baojg has joined #ruby
ur5us has quit [Ping timeout: 264 seconds]
rzjian has quit [Quit: WeeChat 3.0]
ur5us_ has quit [Ping timeout: 264 seconds]
Rudd0 has joined #ruby
gix has quit [Ping timeout: 264 seconds]
compufreak has quit [Ping timeout: 258 seconds]
carbone5 has quit [Quit: carbone5]
dfucci has joined #ruby
dfucci has quit [Ping timeout: 265 seconds]
lunarkitty has joined #ruby
znz_jp has joined #ruby
pilne has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
m27frogy has quit [Ping timeout: 264 seconds]
mic_e_ has joined #ruby
mic_e_ has quit [Ping timeout: 265 seconds]
tpanarch1st has joined #ruby
lunarkitty has quit [Quit: Konversation terminated!]
lunarkitty has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lunarkitty has quit [Client Quit]
lunarkitty7 has joined #ruby
pwnd_sfw1 has joined #ruby
pwnd_sfw has quit [Ping timeout: 265 seconds]
pwnd_sfw1 is now known as pwnd_sfw
Tuor has quit [Remote host closed the connection]
zacts has joined #ruby
Tuor has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dfucci has joined #ruby
pwnd_sfw2 has joined #ruby
pwnd_sfw has quit [Read error: Connection reset by peer]
pwnd_sfw2 is now known as pwnd_sfw
venmx has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
t3hyoshi has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
zacts has quit [Ping timeout: 258 seconds]
jla has joined #ruby
nofxx_ has joined #ruby
venmx has joined #ruby
nofxx__ has quit [Ping timeout: 246 seconds]
zacts has joined #ruby
venmx has quit [Ping timeout: 272 seconds]
orbyt_ has joined #ruby
al2o3-cr has quit [Quit: WeeChat 3.0]
dinfuehr has quit [Ping timeout: 240 seconds]
Rounin has joined #ruby
dinfuehr has joined #ruby
schaerli has joined #ruby
baojg has quit [Remote host closed the connection]
pwnd_sfw6 has joined #ruby
dinfuehr has quit [Ping timeout: 246 seconds]
pwnd_sfw has quit [Ping timeout: 256 seconds]
pwnd_sfw6 is now known as pwnd_sfw
dinfuehr has joined #ruby
schaerli has quit [Remote host closed the connection]
schaerli has joined #ruby
baojg has joined #ruby
jla has quit [Ping timeout: 240 seconds]
schaerli has quit [Ping timeout: 256 seconds]
zacts has quit [Quit: leaving]
fercell has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schaerli has joined #ruby
vondruch_ has joined #ruby
jla has joined #ruby
lunarkitty7 has quit [Quit: Konversation terminated!]
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
vondruch_ has quit [Quit: vondruch_]
dinfuehr has quit [Ping timeout: 256 seconds]
vondruch_ has joined #ruby
dinfuehr has joined #ruby
<nakilon> meh, I run tests in Github Actions on different versions of docker containers
<nakilon> such as: ruby:2.3-alpine, ruby:alpine3.7, ruby:alpine, alpine:3.7, alpine
al2o3-cr has joined #ruby
<nakilon> docker is conceptually supposed to save me from such moments but in Github Action ruby segfaults while locally -- no, because the ruby:alpine is older
<nakilon> docker images ruby:alpine => 7b110757101b 13 months ago
vondruch_ has quit [Quit: vondruch_]
vondruch_ has joined #ruby
<nakilon> I mean, I understand that Github Action will use another version each time -- that's the point of the test; but it's weird that I missed it locally because there is no practice to pull local images every time and it would make investigation harder
<nakilon> because currently I can backup the old image with `docker tag` but when I pull it it'll be overwritten
<nakilon> the worst thing is that after I pull the new image it still does not segfault for me...
jenrzzz has joined #ruby
schne1der has joined #ruby
<nakilon> and what's wrong with Ruby 3 kwargs?! the |*args, **kwargs| merges kwargs into args
jenrzzz has quit [Ping timeout: 246 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
dfucci has quit [Ping timeout: 258 seconds]
electrostat has quit [Quit: uwotm8]
jenrzzz has joined #ruby
postmodern has quit [Quit: Leaving]
tpanarch1st has quit [Ping timeout: 258 seconds]
jenrzzz has quit [Ping timeout: 272 seconds]
jla has quit [Ping timeout: 240 seconds]
electrostat has joined #ruby
al2o3-cr has quit [Quit: WeeChat 3.0]
<nakilon> oh, maybe it's minitest's fault and somehow ruby <3.0 can pass both * and ** via *, but not 3.0
joast has quit [Ping timeout: 265 seconds]
Tempesta_ has left #ruby ["Closing Channel, bye."]
jla has joined #ruby
Tempesta has joined #ruby
Mukesh has joined #ruby
<Mukesh> Hello Ruby Dev
klaas_ is now known as klaas
<havenwood> Mukesh: I don't understand the question. Can you show what you've tried?
fanta1 has joined #ruby
<nakilon> another weird thing: bundle install, when there is a git fork specified in Gemfile, instead of saying 'install git' it just skips it and that results in wrong tests results too
venmx has joined #ruby
<nakilon> (forget the last one, it's my env var fault)
<nakilon> can bundler download a gem from github without having 'git' installed in OS?
TCZ has joined #ruby
akem has quit [Ping timeout: 258 seconds]
akem has joined #ruby
sinan has joined #ruby
Mukesh has quit [Quit: Ping timeout (120 seconds)]
Glumetu has joined #ruby
vondruch_ has quit [Quit: vondruch_]
<Glumetu> Hello .. may i ask for help on a beginer problem ... https://pastebin.pl/view/e49938a2
Fusl has quit [Ping timeout: 260 seconds]
<havenwood> Glumetu: Use p for debugging.
<havenwood> Glumetu: Like: p $per_100
teclator has quit [Read error: Connection reset by peer]
<havenwood> Glumetu: You can do: rou_hash = data_hash.dig('ROU', 'data')
<havenwood> Glumetu: In Ruby, we usually do: (0..100).map
<havenwood> Glumetu: Or: Array.new(101) do
teclator has joined #ruby
<havenwood> Glumetu: In this case, consider #slice
<nakilon> you mean either "Array.new(101).map do" or "100.times do"
rapha has quit [Remote host closed the connection]
schaerli_ has joined #ruby
<havenwood> nakilon: No, I mean `Array.new(101) do` or `101.times do`.
<havenwood> nakilon: They have it as <= not < 100.
<havenwood> nakilon: So starting at 0, ending at 100 is 101, right?
<nakilon> I mean there is no point in instantiating array if you don't iterate over it
<havenwood> nakilon: But 101.times spins up a Fiber, so 0..100
<nakilon> didn't mean 100 or 101
<havenwood> nakilon: The idiomatic thing is Array.new with a block.
<havenwood> nakilon: Array.new(101) do |n|
<havenwood> nakilon: Though in this case, looks like a slice.
<Glumetu> so i should not create the array before assigining items to it?
<nakilon> oh I guess I forgot Array.new was passing it to a block
xpitr is now known as pitr
schaerli has quit [Ping timeout: 256 seconds]
<nakilon> Glumetu yeah you should use methods that return the array for you
<havenwood> Glumetu: data_hash.dig('ROU', 'data').slice(*0..100).map { _1.fetch 'total_vaccinations_per_hundred' }
jenrzzz has joined #ruby
Raboo has quit [Quit: No Ping reply in 180 seconds.]
<havenwood> Glumetu: Is there always a `'total_vaccinations_per_hundred'` key?
queip has quit [Ping timeout: 264 seconds]
<Glumetu> ye sit is .. but sometime is a nill
<havenwood> Glumetu: From what you've shown, I'd #slice.
Raboo has joined #ruby
<havenwood> Glumetu: I was just suggesting #fetch rather than #[] if the key should always be there, but works either way.
<havenwood> Glumetu: data_hash.dig('ROU', 'data').slice(*0..100).map { |hash| hash['total_vaccinations_per_hundred'] }
Fusl has joined #ruby
<havenwood> Glumetu: Does that ^ make sense?
<havenwood> nakilon: Yeah, I don't find the block forms of Hash.new and Array.new particularly intuitive.
<Glumetu> ok i will try slice .. it makes some sense if it doesn't i'll come back later :) tank you very much
<havenwood> &>> Array.new(3) { rand }
<rubydoc> # => [0.014279511358296526, 0.4338895755778641, 0.011652941963210539] (https://carc.in/#/r/aci3)
<havenwood> &>> Array.new(3) { |n| rand n }
<rubydoc> # => [0.26229664644181916, 0, 0] (https://carc.in/#/r/aci4)
camilasan has quit [Ping timeout: 256 seconds]
<havenwood> This is amusing:
<havenwood> &>> rand 0.99999999999999999
<rubydoc> # => 0 (https://carc.in/#/r/aci5)
<havenwood> &>> rand 0.9999999999999999
<rubydoc> # => 0.053334135098559665 (https://carc.in/#/r/aci6)
camilasan has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
al2o3-cr has joined #ruby
schaerli_ has quit [Ping timeout: 256 seconds]
<nakilon> you can map times too
<nakilon> &>> 3,times.map{ rand }
<rubydoc> stderr: -e:4: syntax error, unexpected ',', expecting `end'... check link for more (https://carc.in/#/r/acia)
<nakilon> &>> 3.times.map{ rand }
<rubydoc> # => [0.01967795568914832, 0.9660548716708037, 0.7933133216880359] (https://carc.in/#/r/acib)
<havenwood> nakilon: I like the looks of it. The two downsides are the extra method call and the Fiber.
<havenwood> nakilon: When those don't matter, `3.times.map do` works just as well as `Array.new(3) do`.
sinan has quit [Quit: sinan]
sinan has joined #ruby
somazero has joined #ruby
cuerbot has joined #ruby
elcuervo has quit [Ping timeout: 265 seconds]
Mrgoose has quit [Quit: The Lounge - https://thelounge.chat]
baojg has quit [Ping timeout: 264 seconds]
akem has quit [Ping timeout: 264 seconds]
baojg has joined #ruby
akem has joined #ruby
baojg_ has joined #ruby
baojg has quit [Remote host closed the connection]
ekinox has joined #ruby
TCZ has quit [Quit: Szatan od Szamponu i Sanah od Szampana]
TCZ has joined #ruby
TCZ has quit [Client Quit]
baojg_ has quit [Ping timeout: 264 seconds]
alextee has quit [Ping timeout: 264 seconds]
fercell has quit [Ping timeout: 272 seconds]
fercell has joined #ruby
alextee has joined #ruby
baojg has joined #ruby
queip has joined #ruby
Technodrome has joined #ruby
baojg has quit [Ping timeout: 264 seconds]
cd has quit [Quit: cd]
mic_e_ has joined #ruby
m27frogy has joined #ruby
baojg has joined #ruby
mic_e_ has quit [Ping timeout: 258 seconds]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
al2o3-cr has quit [Ping timeout: 256 seconds]
al2o3-cr has joined #ruby
joast has joined #ruby
baojg has quit [Ping timeout: 264 seconds]
linoge has joined #ruby
goepsilongo has joined #ruby
baojg has joined #ruby
orbyt_ has joined #ruby
baojg has quit [Remote host closed the connection]
somazero has quit [Quit: Leaving]
sinan has quit [Ping timeout: 240 seconds]
schaerli has joined #ruby
camilasan has quit [Ping timeout: 240 seconds]
alexherbo2 has joined #ruby
<alexherbo2> Hello
<alexherbo2> What is the best way to simulate method overloading?
<alexherbo2> I have SQLite results, as rows of columns (array of array) or as rows of hash (array of hash).
<alexherbo2> I have a `build_record` method to transform a row to an object.
jenrzzz has joined #ruby
Mrgoose has joined #ruby
<alexherbo2> with a hash: row.transform_keys(&:to_sym), and pass to .new
<alexherbo2> with an array: [row.fields, row].transpose.to_h, and pass to build_record again, which pass to .new
<alexherbo2> how can I implement the overloading to have 2 `build_record` methods with different prototype
kristian_on_linu has joined #ruby
<alexherbo2> I want to avoid control flow with `case...when`
jenrzzz has quit [Ping timeout: 256 seconds]
<alexherbo2> they all seem to use flow control to achieve it
<alexherbo2> adding method to the classes so they have `#build-record` could work, but it is intruisive
sinan has joined #ruby
<alexherbo2> looks interesting
cow[moo] has joined #ruby
cow[moo] has quit [Client Quit]
<phaul> Most common way is just to use flow control dispatching on the type of argument
<phaul> Ruby tries to identify methods by name, it's not just about dispatch on call, but for Object#method it needs to be unambiguous
<phaul> Also the type system is new and it's opt-in on 3.0. So normally arguments are typeless
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<phaul> (as far as method calls are concerned)
jenrzzz has joined #ruby
cow[moo] has joined #ruby
jla has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pavelz has quit [Changing host]
pavelz has joined #ruby
<nakilon> is it possible to somehow compile the Ruby code into JVM bytecode to then execute on machine with Java?
dinfuehr has quit [Ping timeout: 256 seconds]
dinfuehr has joined #ruby
Technodrome has joined #ruby
ChmEarl has joined #ruby
<havenwood> nakilon: Yeah, they ship with tooling to generate .java classes, if that's what you mean?
<havenwood> nakilon: Like: jrubyc --javac foo.rb
<nakilon> havenwood I have a ruby file that reads input from STDIN, etc.; I tried rubyc -- it was compiling for half an hour and crashed presumably because running out of RAM
<nakilon> now reading the https://github.com/jruby/warbler
<nakilon> not that their README provides any example of how to use it...
<havenwood> nakilon: Alternatively, you can: java -jar jruby-complete-9.2.14.0.jar foo.rb
<havenwood> If you grab the JRuby 9.2.14.0 Complete .jar.
<havenwood> nakilon: The #jruby folk themselves are in the #jruby channel and are super helpful.
<nakilon> I suppose this warbler thing is doing that for me -- it has installed jruby-jars, jruby-rack, rubyzip
<nakilon> but I can't figure out how to use it yet
<nakilon> oh I made it
<havenwood> nakilon: What was the command?
<nakilon> "warble jar" -- it automatically found the ./bin/mygem
<nakilon> so java -jar runs it and seems working, starts slowly though
<nakilon> $ time mygem
<nakilon> $ time java -jar mygem.jar
<nakilon> 2.40 real 4.98 user 0.33 sys
<nakilon> 0.14 real 0.08 user 0.04 sys
<havenwood> nakilon: Is the former running with JRuby too?
<nakilon> ruby 2.3
<nakilon> I'll try rbenv jruby, just a sec
<nakilon> oh idk how to install it, nvm ) ERROR: Java 8 required, but your Java version was: openjdk version "14.0.1" 2020-04-14
<nakilon> I'll use this jar
al2o3-cr has quit [Ping timeout: 256 seconds]
orbyt_ has joined #ruby
<nakilon> hmmm, for some reason the resulting jar works not always the same
<havenwood> nakilon: CRuby starts a good bit faster than the JVM. With JRuby the --dev command helps. Drip would help with both the `jruby` and `java` startup times. https://github.com/ninjudd/drip
<havenwood> nakilon: <3 hyperfine
<nakilon> thanks, I'll bookmark that
<havenwood> nakilon: --disable=gems helps across the board, if you're not using gems
<havenwood> hyperfine 'ruby --disable=gems -e "0"'
<nakilon> will "java -jar" read it from RUBYOPT?
<havenwood> I don't know
<havenwood> nakilon: I don't know what your goals are, but you might consider looking at TruffleRuby on Substrate VM.
<nakilon> jar weights 24MB ..(
<nakilon> havenwood my goal is to put that executable to a server that I don't own, and it has no ruby but it has java
<nakilon> the server says it can't accept this large file, heh
cliluw has quit [Ping timeout: 240 seconds]
cliluw has joined #ruby
<havenwood> nakilon: Just another thought, but I wonder if you could get a reasonably sized standalone from ruby-packer https://github.com/pmq20/ruby-packer
<nakilon> yeah, that's the rubyc thing that after few undocumented tweaks was compiling it for half an hour and crashed )
<havenwood> nakilon: Yeah, I've had similar luck.
<nakilon> unzip -l gives a hint why it's so big
<nakilon> 15631722 02-02-2021 17:27 META-INF/lib/jruby-core-9.2.14.0-complete.jar
<nakilon> 11729290 02-02-2021 17:27 META-INF/lib/jruby-stdlib-9.2.14.0.jar
<nakilon> is it a jar in a jar? maybe I can look into them to remove extra stuff...
roadie has joined #ruby
<nakilon> I feel like I don't need most of this stuff in -core- https://dpaste.org/4AiT/slim
<nakilon> wtf is "bouncycastle" though in -stdlib- https://dpaste.org/7qKh/slim
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Technodrome has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
KeyJoo has joined #ruby
<nakilon> is my assumption correct that I can just zip/unzip the jar file and it won't get "corrupted"?
<nakilon> then I would gonna make a some script to quickly select and remove out files from nested jars...
va5c0 has joined #ruby
va5c0 has quit [Client Quit]
akmed has joined #ruby
va5c0 has joined #ruby
ekinox has quit [Read error: Connection reset by peer]
jla has joined #ruby
Aguiar has joined #ruby
<Aguiar> @jan
pgib has quit [Ping timeout: 265 seconds]
<JanHebler[m]> <Aguiar "@jan"> Yes?
<Aguiar> JanHebler[m] Your code worked, thanks for your help.
<JanHebler[m]> <Aguiar "Jan Hebler Your code worked, tha"> You're welcome 😀
<Aguiar> JanHebler[m] I managed to send my assignment in the last few minutes, I almost missed the deadline.
schne1der has quit [Quit: schne1der]
hiroaki has quit [Ping timeout: 272 seconds]
jenrzzz has joined #ruby
roadie has quit [Ping timeout: 260 seconds]
roadie has joined #ruby
fanta1 has quit [Quit: fanta1]
hiroaki has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
chouhoulis has joined #ruby
orbyt_ has joined #ruby
<isene> I am trying to capture Ctrl-q as a key sequence in a Ruby program but failing - While it is easy to capture Ctrl-a with "Ctrl-v Ctrl-a" in VIM insert mode when writing y program, for obvious reasons, Ctrl-q does not yield such a code. So how do I enter that inside the quotation marks in my program? I would also like to capture an even more elusive key combo - the Ctrl-^ (this is for a curses RPN
<isene> calculator I'm writing)
kristian_on_linu has quit [Remote host closed the connection]
maryo has joined #ruby
dinfuehr has quit [Ping timeout: 258 seconds]
dinfuehr has joined #ruby
dinfuehr has quit [Ping timeout: 265 seconds]
pgib has joined #ruby
dinfuehr has joined #ruby
<leftylink> I think I read somewhere that the answer will involve something like putting the terminal into raw mode, but I lack knowledge of the specifics and what to do after that is achieved
roadie has quit [Ping timeout: 264 seconds]
Glumetu has left #ruby [#ruby]
roadie has joined #ruby
roadie has quit [Remote host closed the connection]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SeepingN has joined #ruby
alextee has quit [Ping timeout: 258 seconds]
chouhoulis has quit [Remote host closed the connection]
KeyJoo has quit [Quit: KeyJoo]
fercell has quit [Ping timeout: 240 seconds]
emptyflask has joined #ruby
<alexherbo2> you mean like this?
va5c0 has quit [Quit: WeeChat 3.0]
croberts has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
alextee has joined #ruby
orbyt_ has joined #ruby
GodFather has quit [Ping timeout: 256 seconds]
alextee has quit [K-Lined]
dviola has joined #ruby
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
neshpion has joined #ruby
GodFather has joined #ruby
al2o3-cr has joined #ruby
<nakilon> facepalm at java
sinan has quit [Ping timeout: 240 seconds]
<nakilon> 11 means 11 and 1.8 means 8...
<nakilon> or maybe 11 does not mean 11, who knows
<c355e3b> its also called 55 and 53 in some contexts
<nakilon> also rbenv said "BUILD FAILED" but after 20 more lines: "Installed jruby-9.2.13.0"
pgib has quit [Ping timeout: 240 seconds]
<phaul> alexherbo2: yeah something along those lines
<nakilon> how do I detect in Gemfile that it's jruby?
<nakilon> or rather in gemspec
<nakilon> ah, nvm, RUBY_PLATFORM is there
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GodFather_ has joined #ruby
howdoi has joined #ruby
GodFather_ has quit [Client Quit]
Lyubo1 has quit [Ping timeout: 246 seconds]
<nakilon> is there any not 5 years old gem like this one? https://github.com/wojtekmach/minitest-metadata
drakonis has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
<nakilon> it does not seem to work with minitest-around
asdasdzzzzzz has joined #ruby
<asdasdzzzzzz> Hi guys, I'm currently working on a react/rails api app. I have deployed the application to heroku and I came across a problem. When I access a subroute (for example: "/feed") I get the error 404 route [GET] '/feed' does not exist. How can I get rid of this problem? Any suggestions? Thank you
duderonomy has joined #ruby
al2o3-cr has quit [Ping timeout: 256 seconds]
al2o3-cr has joined #ruby
maryo87 has joined #ruby
dinfuehr has quit [Ping timeout: 240 seconds]
maryo has quit [Ping timeout: 246 seconds]
dinfuehr has joined #ruby
schaerli has quit [Ping timeout: 264 seconds]
gr33n7007h has joined #ruby
al2o3-cr has quit [Ping timeout: 256 seconds]
hahuang65_ is now known as hahuang65
Lyubo1 has joined #ruby
al2o3-cr has joined #ruby
shokohsc has quit [Ping timeout: 246 seconds]
gr33n7007h has quit [Ping timeout: 256 seconds]
shokohsc has joined #ruby
fercell has joined #ruby
neshpion_ has joined #ruby
neshpion has quit [Remote host closed the connection]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
Aguiar has quit [Quit: Ping timeout (120 seconds)]
neshpion_ is now known as neshpion
Rudd0 has quit [Ping timeout: 240 seconds]
Aguiar has joined #ruby
fercell has quit [Ping timeout: 240 seconds]
maryo87 has quit [Ping timeout: 246 seconds]
swaggboi has quit [Ping timeout: 264 seconds]
swaggboi has joined #ruby
gix has joined #ruby
postmodern has joined #ruby
s3nd1v0g1us has joined #ruby
Mia has joined #ruby
Axy has quit [Ping timeout: 240 seconds]
cliluw has quit [Read error: Connection reset by peer]
nertzy has quit [Quit: Leaving]
al2o3-cr has quit [Ping timeout: 256 seconds]
cthulchu_ has joined #ruby
blackmesa has joined #ruby
alexherbo2 has quit [Ping timeout: 258 seconds]
TomyWork has quit [Remote host closed the connection]
evil has joined #ruby
Fire-Dragon-DoL has quit [Ping timeout: 256 seconds]
Fire-Dragon-DoL has joined #ruby
ur5us_ has joined #ruby
al2o3-cr has joined #ruby
drakonis has quit [Quit: ZNC 1.8.2 - https://znc.in]
ur5us has joined #ruby
schne1der has joined #ruby
ur5us_ has quit [Ping timeout: 264 seconds]
drakonis has joined #ruby
Technodrome has joined #ruby
Mrgoose has quit [Ping timeout: 240 seconds]
TomyLobo has joined #ruby
asdasdzzzzzz has quit [Ping timeout: 272 seconds]
Aguiar has quit [Ping timeout: 248 seconds]
pgib has joined #ruby
TCZ has joined #ruby
cd has joined #ruby
linoge has quit [Remote host closed the connection]
linoge has joined #ruby
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
linoge has quit [Ping timeout: 264 seconds]
blackmesa has quit [Ping timeout: 272 seconds]
Rudd0 has joined #ruby
blackmesa has joined #ruby
TCZ has quit [Remote host closed the connection]
schne1der has quit [Quit: schne1der]
cliluw has joined #ruby
Mrgoose has joined #ruby
cthulchu_ has quit [Ping timeout: 246 seconds]
hiroaki has quit [Ping timeout: 264 seconds]
hiroaki has joined #ruby
blackmesa has quit [Ping timeout: 258 seconds]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
Xiti has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
cognemo has quit [Ping timeout: 256 seconds]
cognemo has joined #ruby
cuerbot has quit [Read error: Connection reset by peer]
kristian_on_linu has joined #ruby
elcuervo has joined #ruby