<pwnd_sfw>
It's telling me my "check_xxx" methods are not defined
<Nowaker>
pwnd_sfw: works for me on rb 2.6.3
<Nowaker>
ah, that's not a syntax error
<Nowaker>
it's a runtime error
<pwnd_sfw>
I have updated the gist with my full code and the sample data
aremaref has quit [Ping timeout: 265 seconds]
<pwnd_sfw>
it may not run or do what it's supposed to yet. I got to testing the code, but got stuck at the case
<pwnd_sfw>
statement
<ignorand>
Nowaker: "-request_time_iso_date, phone_number, -id".split(',').map{|key| key.strip.start_with?('-')?"#{key.strip.slice(1, key.strip.length-1)}: :desc":":#{key.strip}"}.join(', ') seems to create a string, but I can't sent it to order
<pwnd_sfw>
I don't know yet that the check methods do things appropriately
<pwnd_sfw>
But that will be something I will tackle later.
drincruz_ has quit [Ping timeout: 260 seconds]
<ignorand>
Nowaker: .split(',').map{|key| key.strip.start_with?('-')?"#{key.strip.slice(1, key.strip.length-1)} DESC":key.strip}.join(', ') seems to work :)
aremaref has joined #ruby
<leftylink>
oh
<pwnd_sfw>
updated gist has syntax that doesn't break
<pwnd_sfw>
control flow is still broken though
<leftylink>
it's important to note that functions can't be called before they're defined
<pwnd_sfw>
This isn't php now
<leftylink>
this is ruby
<leftylink>
&>> foo; def foo; :no end
<rubydoc>
stderr: -e:4:in `<main>': undefined local variable or method `foo' for main:Object (NameError)... check link for more (https://carc.in/#/r/a25e)
<pwnd_sfw>
I guess I'm usually working with class definitions instead of just in main
<pwnd_sfw>
pomodoro just popped. I should be in a better spot now ty
bambanx has quit [Ping timeout: 260 seconds]
haxx0r has joined #ruby
<haxx0r>
It's so easy, yet i struggle hard. https://i.imgur.com/GhcfPTd.png is there a certain algorithm idea which i can use to actually go from 1 to 1.1.1 ? I tried it myself, failed. i tried it with rubytree but i can't wrap my head around on how to create the tree based on given input. might also be a factor that it's 3am
roshanavand has quit [Ping timeout: 240 seconds]
<haxx0r>
the only solution i have in my mind is with loads of spaghetti code :-)
cthu| has quit [Read error: Connection reset by peer]
cthu| has joined #ruby
weaksauce has joined #ruby
roshanavand has joined #ruby
lucasb has quit [Quit: Connection closed for inactivity]
Rudd0 has quit [Ping timeout: 240 seconds]
roshanavand has quit [Quit: Quitting...]
umjisus has quit [Ping timeout: 240 seconds]
drincruz_ has joined #ruby
drincruz_ has quit [Ping timeout: 272 seconds]
TCZ is now known as toxic_worm
drincruz_ has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
AndyC has quit [Ping timeout: 265 seconds]
gavlee has quit [Ping timeout: 260 seconds]
<pwnd_sfw>
all of the sample data for day 4 AOC returns results that it is supposed to but my answer is still incorrect lol
gavlee has joined #ruby
<leftylink>
make own sample data
aremaref has quit [Ping timeout: 260 seconds]
aremaref has joined #ruby
<havenwood>
haxx0r: If you can make your input code available as text, you'll have a much better chance of getting someone to bite on a solution.
<leftylink>
I don't think it even manages to be fewer characters
<tempate60>
It's probably not worth it
<tempate60>
Thanks anyway
nowhere_man has joined #ruby
jenrzzz has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nakilon>
leftylink, I guess you can remove one pair of ()
<nakilon>
IIRC
<jhass>
to save a whooping whole of 1 character? :D
jenrzzz has quit [Ping timeout: 260 seconds]
<nakilon>
yes, /r/frugal
jenrzzz has joined #ruby
Technodrome has joined #ruby
tempate60 has quit [Remote host closed the connection]
_whitelogger has joined #ruby
davispuh has joined #ruby
<cloud69>
whooptiedoo!
<cloud69>
burgerking whooper cheese, just for you!
rorymckinley has joined #ruby
<rorymckinley>
I am seeing behaviour with a script that has its STDOUT output piped to awk, where STDOUT.sync does not behave the way I think the docs say it should. Code plus observations here: https://gist.github.com/rorymckinley/fe7a78e3022a936275664af9311926a5. Any ideas?
ruby[bot] has quit [Ping timeout: 272 seconds]
Atro has quit [Ping timeout: 272 seconds]
noodle has quit [Ping timeout: 272 seconds]
junaidnaseer2 has quit [Ping timeout: 272 seconds]
<rorymckinley>
jhass: Hmm - I had not thought of that - my assumption is usually that I am doing something wrong :) - thank you for the suggestion, I will do some further experimentation.
<jhass>
well, fwiw even cat shows the same behaviour
<jhass>
cloud69: I guess you want to make solidus_multi_domain a git dependency since the last tag is from 2016
nowhere_man has quit [Remote host closed the connection]
<cloud69>
Great idea! Thanks :)
nowhere_man has joined #ruby
junaidnaseer2 has quit [Remote host closed the connection]
ellcs has joined #ruby
PaulePanter has quit [Remote host closed the connection]
PaulePanter has joined #ruby
dviola has quit [Ping timeout: 272 seconds]
akem__ has joined #ruby
dviola has joined #ruby
akem_ has quit [Ping timeout: 240 seconds]
akem__ has quit [Ping timeout: 246 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowhere_man has quit [Ping timeout: 272 seconds]
gavlee has joined #ruby
ellcs has quit [Remote host closed the connection]
ellcs has joined #ruby
TCZ has joined #ruby
ellcs has quit [Ping timeout: 260 seconds]
weaksauce has quit [Ping timeout: 264 seconds]
bkuhlmann has joined #ruby
crankharder has joined #ruby
Technodrome has joined #ruby
bkuhlmann has quit []
pwnd_sfw6 has joined #ruby
pwnd_sfw has quit [Ping timeout: 272 seconds]
pwnd_sfw6 is now known as pwnd_sfw
<pwnd_sfw>
leftylink, I didn't put boundaries on my regexs.. One passport was getting validated improperly. There was no way I was going to manually find that haha
deadbee has joined #ruby
akem has joined #ruby
<adam12>
Over the last 12 days, I've been conducting an experiment by building docs for every gem published on Rubygems. It's been .. interesting.
<adam12>
2459 gems (avg 205 per day). Largest one built had docs 7.75 MB compressed and longest one took 54 minutes to build O_O
cd has joined #ruby
<adam12>
(on average they are 159kb compressed and take 8 seconds to build)
pwnd_sfw0 has joined #ruby
aremaref has joined #ruby
pwnd_sfw has quit [Ping timeout: 240 seconds]
pwnd_sfw0 is now known as pwnd_sfw
aremaref has quit [Ping timeout: 240 seconds]
deadbee has quit [Quit: WeeChat 2.9]
carbone5 has joined #ruby
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
AndyC has joined #ruby
AndyC has quit [Client Quit]
AndyC has joined #ruby
Swyper has quit [Remote host closed the connection]
<leah2>
i do it in J if you're interested in golfing
<leah2>
but not golfing super hard, i'm still learning
orbyt_ has joined #ruby
TCZ is now known as toxic_worm
jmcgnh has joined #ruby
linuus[m] has joined #ruby
execat[m] has joined #ruby
hsiktas[m] has joined #ruby
jmcgnh has quit [Ping timeout: 246 seconds]
r34lp0w3r[m] has joined #ruby
jo-so has joined #ruby
MeVegan[m] has joined #ruby
gypsy5[m] has joined #ruby
Hanma[m] has joined #ruby
turt2live has joined #ruby
glimpse[m] has joined #ruby
AndyC has quit [Ping timeout: 272 seconds]
otagi[m] has joined #ruby
stan has joined #ruby
<rapha>
interested in golfing every once in a while, yes (it was fun creating that challenge linked to above), but only in ruby. life's already too short as it is...
danielk43[m] has joined #ruby
jmcgnh has joined #ruby
jmcgnh has quit [Ping timeout: 246 seconds]
crankharder has quit [Ping timeout: 272 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
crankharder has joined #ruby
crankharder has quit [Ping timeout: 272 seconds]
roshanavand has joined #ruby
crankharder has joined #ruby
crankharder has quit [Ping timeout: 246 seconds]
Rudd0 has joined #ruby
drincruz_ has joined #ruby
crankharder has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Ping timeout: 260 seconds]
crankharder has quit [Ping timeout: 256 seconds]
toxic_worm has quit [Remote host closed the connection]