baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.5.0, 2.4.3, 2.3.6: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
<al2o3-cr> miah: anyway, i hope life plans out for you now :)
<miah> im certainly back on the right track
pabs has quit [Ping timeout: 256 seconds]
pabs has joined #ruby
<al2o3-cr> 3!
<al2o3-cr> that's supposed to be a thumbs up.
hairui has joined #ruby
<miah> 👍
Vapez has quit [Remote host closed the connection]
marxarelli is now known as marxarelli|afk
ramfjord has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
leitz has quit [Quit: Nappy time]
hairui has quit [Ping timeout: 263 seconds]
banisterfiend has joined #ruby
<zenspider> Then I'm leaning towards option #2
Badman703 has quit [Quit: Leaving]
chouhoul_ has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
brendan- has quit [Quit: Textual IRC Client: www.textualapp.com]
<banisterfiend> zenspider what's up homie
chouhoul_ has quit [Ping timeout: 268 seconds]
hoylemd has joined #ruby
Thaelim has joined #ruby
Rvampire has quit [Ping timeout: 256 seconds]
jeffreylevesque has quit [Ping timeout: 265 seconds]
ta_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
orbyt_ has joined #ruby
morenoh149 has quit [Ping timeout: 248 seconds]
Thaelimm has joined #ruby
Thaelimm has quit [Remote host closed the connection]
Thaelim has quit [Read error: Connection reset by peer]
Thaelimm has joined #ruby
drewmcmillan has joined #ruby
alex`` has quit [Ping timeout: 276 seconds]
milardovich has joined #ruby
clemens3 has quit [Ping timeout: 248 seconds]
jeffreylevesque has joined #ruby
hairui has joined #ruby
shinnya has quit [Ping timeout: 255 seconds]
milardovich has quit [Ping timeout: 248 seconds]
matchaw has quit [Ping timeout: 240 seconds]
hairui has quit [Ping timeout: 248 seconds]
matchaw has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lytol has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 256 seconds]
matchaw has quit [Remote host closed the connection]
ta_ has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arescorpio has joined #ruby
bruce_lee has quit [Remote host closed the connection]
matchaw has joined #ruby
sanscoeu_ has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
guacamole has joined #ruby
Mrgoose2 has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
sanscoeur has quit [Ping timeout: 260 seconds]
jeffreylevesque has quit [Ping timeout: 260 seconds]
Mrgoose2 has joined #ruby
sanscoeu_ has quit [Ping timeout: 260 seconds]
milardovich has joined #ruby
beauby has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
milardovich has quit [Ping timeout: 240 seconds]
beauby has quit [Ping timeout: 248 seconds]
pastorinni has quit [Remote host closed the connection]
d10n-work has quit [Quit: Connection closed for inactivity]
minimalism has joined #ruby
matchaw has quit [Remote host closed the connection]
matchaw has joined #ruby
hairui has joined #ruby
<al2o3-cr> banisterfiend: heads up, take a look at `Process.argv0`
<banisterfiend> al2o3-cr why are you telling me this?
cagomez has quit [Remote host closed the connection]
hairui has quit [Ping timeout: 276 seconds]
<al2o3-cr> banisterfiend: get wierd results using ruby 2.5 and pry 0.11.3
<banisterfiend> al2o3-cr that's a cool feature though thanks
<banisterfiend> al2o3-cr ah ok, could you give me more detail about the bug?
<al2o3-cr> yeah sure
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jerikl has joined #ruby
marr has quit [Ping timeout: 260 seconds]
matchaw has quit [Remote host closed the connection]
John_Ivan has quit [Read error: Connection reset by peer]
Thaelimm has quit [Remote host closed the connection]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
<banisterfiend> al2o3-cr i can't replicate that bug. I start pry and run: Process.argv0 and it returns: "/Users/john/.rbenv/versions/2.4.1/bin/pry"
<banisterfiend> you need to provide exact repro steps :D
<banisterfiend> what plugins do you have?
<al2o3-cr> zero plugins.
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
morenoh149 has joined #ruby
jcarl43 has quit [Quit: WeeChat 2.0.1]
matchaw has joined #ruby
jobewan has joined #ruby
konsolebox has quit [Ping timeout: 256 seconds]
jerikl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
n0m4d1c has joined #ruby
<al2o3-cr> i could of sworn it worked the other day in `irb` and `ruby int`
konsolebox has joined #ruby
<al2o3-cr> wtf
jeffreylevesque has joined #ruby
<banisterfiend> al2o3-cr actually i can duplicate it, thanks
<al2o3-cr> banisterfiend: okay, it seems this is something to do with ruby itself though.
<banisterfiend> y?
milardovich has joined #ruby
jobewan has quit [Quit: jobewan]
milardovich has quit [Read error: Connection reset by peer]
milardovich has joined #ruby
jobewan has joined #ruby
<al2o3-cr> irb and ruby interpreter was working before the upgrade.
hairui has joined #ruby
fusta has quit [Ping timeout: 268 seconds]
morenoh149 has quit [Ping timeout: 240 seconds]
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
fusta has joined #ruby
hairui has quit [Ping timeout: 256 seconds]
jobewan has quit [Quit: jobewan]
bmurt has joined #ruby
ledestin has joined #ruby
<al2o3-cr> it's something to do with GET_VM()->orig_progname
cdg has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
LastWhisper____ has joined #ruby
<banisterfiend> al2o3-cr heh did you find that out using the new pry-doc feature?
LastWhisper____ has quit [Client Quit]
<al2o3-cr> no, but i'll take a look =)
<al2o3-cr> wfm
cdg has quit [Ping timeout: 276 seconds]
<al2o3-cr> that is AMAZING!
<al2o3-cr> :P
jerikl has joined #ruby
<al2o3-cr> banisterfiend: good job dude!
<banisterfiend> thx homie
gizmore|2 has joined #ruby
<banisterfiend> watch this
oleo has quit [Remote host closed the connection]
* al2o3-cr is waiting...
oleo has joined #ruby
SynSynack has quit [Quit: Не разучиться мечтать... любить...]
bmurt has joined #ruby
gizmore has quit [Ping timeout: 260 seconds]
<al2o3-cr> banisterfiend: and there's me going through ruby source on github using ctrl+f
<banisterfiend> heh
<banisterfiend> well i just released it yesterday
<al2o3-cr> banisterfiend: you're awesome. really appreciate all the hard work you do massive respect! :)
<banisterfiend> heh no worries hope it helps
<al2o3-cr> banisterfiend: it will believe me =)
rexb0t has joined #ruby
<al2o3-cr> banisterfiend: you is top dog ;)
<al2o3-cr> good night banisterfiend
<banisterfiend> nite
<al2o3-cr> and good night ruby.
hairui has joined #ruby
al2o3-cr has quit [Quit: WeeChat 2.0.1]
tefa has joined #ruby
netherwolfe has joined #ruby
<tefa> hello, question. I need to get a list of objects and the output should be what they have in common.. how to do that ? i can use only map, flatten, flat_map, select, reduce, superior order, enumerables. It has to be common between objects, not classes
milardov_ has joined #ruby
rexb0t has quit [Client Quit]
roonsauce has joined #ruby
hairui has quit [Ping timeout: 264 seconds]
netherwolfe has quit [Ping timeout: 255 seconds]
milardovich has quit [Ping timeout: 268 seconds]
roonsauce has quit [Ping timeout: 248 seconds]
hairui has joined #ruby
govg has quit [Ping timeout: 248 seconds]
POKE53280 has joined #ruby
jerikl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 240 seconds]
hairui has quit [Ping timeout: 248 seconds]
POKE53280 has quit [Client Quit]
<tefa> question, if i do Object.methods i get a list... how do i know from every list wich one is to use where..
orbyt_ has joined #ruby
<tefa> for example.. whats in common in a list of methods for this
<tefa> [:foo, "foo"]
ramfjord has joined #ruby
<tefa> in the list of common methods it must include to_sym, but for example for [:foo, 2] shouldnt include to_sym, how to know that ?
<tefa> (in common methods )
schneide_ has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
schneide_ has quit [Ping timeout: 260 seconds]
storminator16 has quit [Ping timeout: 276 seconds]
<chrisseaton> tefa: what does 'what they have in common' mean?
ramfjord has quit [Ping timeout: 260 seconds]
<chrisseaton> tefa: do you mean you want the intersection of some properties of two objects?
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
hairui has joined #ruby
workmad3 has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
beauby has joined #ruby
hairui has quit [Ping timeout: 255 seconds]
willsams has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
milardovich has joined #ruby
beauby has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 264 seconds]
Xiti has quit [Quit: Xiti]
milardov_ has quit [Ping timeout: 248 seconds]
Xiti has joined #ruby
zapata has quit [Read error: Connection reset by peer]
zapata has joined #ruby
arescorpio has quit [Excess Flood]
konsolebox has quit [Ping timeout: 248 seconds]
konsolebox has joined #ruby
darkhanb has joined #ruby
hairui has joined #ruby
<rubycoder38> I'm a bit new with testing in general, I plan to start using minitest in my project, but what exactly should I test? each behavior of my application? edge cases and things like that?
konsolebox has quit [Ping timeout: 240 seconds]
<tefa> chrisseaton are you still there ?
<chrisseaton> tefa: yes
<tefa> chrisseaton im doing an exercise from a virtual class room...in the exercise they ask me the follow
<tefa> it says... we need another method in Inspections... that take a list of objets.. (i asssume with .methods, thats what we have been using pass exercise..) and return the common type of all of them.. we undesrtand by common type of set of messages that everyone understands
hairui has quit [Ping timeout: 268 seconds]
<tefa> add common_type to Inspections.. atention...we are looking for cmmon types between objects not classes... the next tips may helpo you... methods.. map.. fatten.. fat_map.. select.. recude.. blabla..
konsolebox has joined #ruby
kkim has joined #ruby
<chrisseaton> I can’t really understand your sentences sorry. ‘common type of set of messages’ just doesn’t mean anything to me. I think you have some context you are not realising we don’t have.
<chrisseaton> I think you’re simultaneously trying to solve a metaprogramming problem and a
<chrisseaton> set intersection one?
<tefa> and here its what i suppose to create... in this git and the exaplanation of the outputs expecting.. and what its real getting
<chrisseaton> Are you doing some kind of exercise in typing Ruby by using sets of methods?
<tefa> its metaprogramming yes
<tefa> im obligated to use a module name Inspections.. with a definition named common_types
<chrisseaton> It says the list contains ‘types’ but it contains the names of methods. This just doesn’t make any sense to start with.
<tefa> its difficult to me to explain.. because i have been doing exercises with no problem, but i really dont understand what is asking me...
<tefa> exactly... i thought the same.. so i was thinking.. if there is any method that you could know for what it is every method...
<tefa> so i thought something like.. x.common_type.map { |bla| bla.determinate_type} haha
<chrisseaton> `[:foo, "foo"].map(&:methods).reduce(&:&)` I think literally answers your question
<chrisseaton> But this question is so strange that it makes me think you have something else confused...
<chrisseaton> `[3, "foo", []].map(&:methods).reduce(&:&).include?(:upcase)` etc
<chrisseaton> Do you see how that works?
<tefa> i can do what you are doing... but its like cheating... i cant real.. know whats the output expecting... i used it because i dont know how to continue..
<tefa> it suppose that whats in [blabla].map wheres blabla... there should be like autocomplete... i cannot use the answer there.. i should use a way to detect, whats asking me in there..
AJA4350 has quit [Quit: AJA4350]
jerikl has joined #ruby
<chrisseaton> Sorry none of these phrases make any sense to me.
milardovich has quit [Remote host closed the connection]
govg has joined #ruby
<tefa> ... sorry.. dont know how to explain it
<tefa> can you explain me this ? [:foo, "foo"].map(&:methods).reduce(&:&) from (&:methods)
<chrisseaton> `[:foo, "foo"]` is your objects - the input
<tefa> i understand [:foo, "foo"].map, not what follows
<chrisseaton> `.map(&:methods)` turns them from a list of the objects, to a list of lists of their methods
<chrisseaton> For some reason, your text refers to 'methods' as 'types', which does not make any sense to me.
<chrisseaton> `.reduce(&:&)` turns a list of lists, into a single list, by combining them in a tree, with a set conjunction
ramfjord has joined #ruby
<tefa> suppose i do know what it does... cause i saw the output of it.. but i dont know how it works..
<chrisseaton> `&:methods` is like `{ |obj| obj.methods }`
<tefa> that make sense
<chrisseaton> Do you follow my explanation of how it works?
<tefa> & will be |obj| for example ?
<tefa> its like saying |&| &.methods
hndk has joined #ruby
<chrisseaton> When you call `map` you can pass a block, or you can pass a proc. `&:methods` produces a proc that calls `methods` on a single parameter.
ramfjord has quit [Ping timeout: 256 seconds]
konsolebox has quit [Ping timeout: 256 seconds]
<chrisseaton> Sorry I'm off
<tefa> np
jamesaxl has quit [Quit: WeeChat 2.0.1]
gix- has joined #ruby
gix has quit [Disconnected by services]
konsolebox has joined #ruby
n0m4d1c has quit []
hairui has joined #ruby
lagweezle is now known as lagweezle_away
hairui has quit [Ping timeout: 256 seconds]
ramfjord has joined #ruby
trautwein has quit [Quit: ZNC 1.6.5 - http://znc.in]
trautwein has joined #ruby
Qommand0r has quit [Ping timeout: 252 seconds]
ramfjord has quit [Ping timeout: 265 seconds]
govg has quit [Ping timeout: 240 seconds]
govg has joined #ruby
Qommand0r has joined #ruby
hairui has joined #ruby
nowhereman_ has joined #ruby
hairui has quit [Ping timeout: 252 seconds]
nowhere_man has quit [Ping timeout: 256 seconds]
sameerynho has quit [Ping timeout: 264 seconds]
starseed0000 has quit [Ping timeout: 265 seconds]
sammi` has joined #ruby
<tefa> is there anyone here ? can someone explain me... not what it does, how it works.. value.map(&:methods).reduce(&:&) (with patien.. thanks in advance )
kriskropd has quit [Ping timeout: 276 seconds]
workmad3 has joined #ruby
kriskropd has joined #ruby
asqrd_ has joined #ruby
beauby has joined #ruby
osvico has quit []
osvico has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
osvico has quit [Client Quit]
beauby has quit [Ping timeout: 264 seconds]
tefa has quit []
raynold has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hairui has joined #ruby
yosafbridge has quit [Ping timeout: 260 seconds]
hairui has quit [Ping timeout: 248 seconds]
yosafbridge has joined #ruby
dviola has quit [Quit: WeeChat 2.0.1]
osvico has joined #ruby
osvico has quit [Ping timeout: 264 seconds]
bigblind has quit [Ping timeout: 248 seconds]
kkim has quit [Quit: Leaving.]
jerikl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hairui has joined #ruby
hairui has quit [Ping timeout: 240 seconds]
soniya29 has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roonsauce has joined #ruby
GodFather has quit [Ping timeout: 256 seconds]
beauby has joined #ruby
hahuang65 has quit [Read error: Connection reset by peer]
hahuang65 has joined #ruby
kapil___ has joined #ruby
m27frogy has quit [Ping timeout: 256 seconds]
roonsauce has quit [Ping timeout: 240 seconds]
beauby has quit [Ping timeout: 264 seconds]
dinfuehr has quit [Ping timeout: 248 seconds]
GodFather has joined #ruby
dinfuehr has joined #ruby
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sanscoeur has joined #ruby
LocaMocha has joined #ruby
hairui has joined #ruby
soniya29 has quit [Quit: Leaving]
hairui has quit [Ping timeout: 256 seconds]
GodFather has quit [Ping timeout: 256 seconds]
starseed0000 has joined #ruby
morenoh149 has joined #ruby
audy has quit [Ping timeout: 240 seconds]
eroux has joined #ruby
pelegreno has quit [Ping timeout: 260 seconds]
jamesaxl has joined #ruby
GodFather has joined #ruby
hairui has joined #ruby
anisha_ has joined #ruby
helpa has joined #ruby
hairui has quit [Ping timeout: 265 seconds]
pelegreno has joined #ruby
kies has joined #ruby
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
alex`` has joined #ruby
clemens3 has joined #ruby
n008f4g_ has joined #ruby
darkhanb has joined #ruby
darkhanb has quit [Client Quit]
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby
hairui has joined #ruby
hndk has quit [Ping timeout: 268 seconds]
konsolebox has quit [Ping timeout: 260 seconds]
apeiros_ has quit [Ping timeout: 240 seconds]
konsolebox has joined #ruby
hairui has quit [Ping timeout: 260 seconds]
bigblind has joined #ruby
mtkd has joined #ruby
workmad3 has joined #ruby
darkhanb has joined #ruby
claudiuinberlin has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
konsolebox has quit [Ping timeout: 256 seconds]
troys has quit [Quit: Bye]
konsolebox has joined #ruby
dionysus69 has joined #ruby
konsolebox has quit [Ping timeout: 256 seconds]
starseed0000 has quit [Ping timeout: 265 seconds]
konsolebox has joined #ruby
snickers has joined #ruby
aufi has joined #ruby
vutral|kali has quit [Ping timeout: 248 seconds]
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
vyorkin has joined #ruby
hairui has joined #ruby
anisha__ has joined #ruby
n008f4g_ has quit [Ping timeout: 248 seconds]
anisha_ has quit [Ping timeout: 240 seconds]
hairui has quit [Ping timeout: 268 seconds]
Matthew1 has joined #ruby
Matthew1 has quit [Remote host closed the connection]
Matthew1 has joined #ruby
conta has joined #ruby
anisha_ has joined #ruby
anisha__ has quit [Ping timeout: 268 seconds]
imtryingtolearn has joined #ruby
clemens3 has quit [Ping timeout: 248 seconds]
imtryingtolearn has quit [Ping timeout: 260 seconds]
apeiros_ has joined #ruby
roonsauce has joined #ruby
roonsauce has quit [Ping timeout: 260 seconds]
hairui has joined #ruby
sanscoeur has quit [Remote host closed the connection]
Guest94326 has quit [Ping timeout: 248 seconds]
hairui has quit [Ping timeout: 276 seconds]
aupadhye has joined #ruby
hairui has joined #ruby
konsolebox has quit [Ping timeout: 276 seconds]
TomyWork has joined #ruby
asqrd_ has quit [Quit: Leaving]
clemens3 has joined #ruby
konsolebox has joined #ruby
mello has joined #ruby
mello is now known as Guest50607
vondruch has joined #ruby
RougeR has quit [Ping timeout: 256 seconds]
schneide_ has joined #ruby
bigblind has quit [Ping timeout: 256 seconds]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jackrandom has joined #ruby
schneide_ has quit [Remote host closed the connection]
ramfjord has joined #ruby
alex`` has quit [Ping timeout: 240 seconds]
<Bish> IT'S SO QUIET IN HERE
ramfjord has quit [Ping timeout: 260 seconds]
konsolebox has quit [Ping timeout: 260 seconds]
<apeiros_> THAT'S NO REAON TO START SHOUTING!
apeiros_ is now known as apeiros
konsolebox has joined #ruby
<Bish> BUT I AM BORED I WANT TO SEE DISCUSSIONS ABOUT RUBY
<apeiros> THEN BE THE CHANGE YOU'RE LOOKING FOR!
<Bish> GIL sucks, agree?
schneide_ has joined #ruby
minimalism has quit [Quit: minimalism]
<apeiros> partially
<apeiros> I'd prefer it to be gone, but I'm not sure how that can be achieved without major breaks.
<Bish> there is the part that sucks, being global, and the part that doesn't it mutexes
<Bish> well, for example? except native gems?
<apeiros> then again, jruby doesn't have gil. so maybe ruby should just jump in the cold water with a long enough preparation time
cajone has joined #ruby
alex`` has joined #ruby
<Bish> jruby isn't ruby too me, ỳou'll always end up having stupid gems you need
<Bish> which don't work on jruby
<apeiros> I think native gems are the only reason
cajone has left #ruby [#ruby]
<apeiros> which is why jruby can get rid of GIL
<apeiros> (since does gems don't work with it anyway)
<Bish> i always figured the GIL was implementation specific
<apeiros> well, if you really want, there's ways to have native C gems in jruby.
<apeiros> I think that's a correct statement
<Bish> i always thought the GIL wasn't in jruby because jvm already has mutexes and stuff
<Bish> btw, i never got jruby to work
<apeiros> huh?
<apeiros> `rvm install jruby; rvm use jruby; ruby -v # yay`
morenoh149 has quit [Ping timeout: 248 seconds]
Silthias1 has joined #ruby
<Bish> i try to go around these things
<Bish> rvm,chruby
<apeiros> I'd assume that to be similarly easy for other ruby version managers
<Bish> they always lead me to more problems than solutions
<apeiros> oh, well, your loss I guess?
<Bish> not really, really
<apeiros> hm, can't confirm
<apeiros> I've used rvm for years
<apeiros> and the only issue I remember having was related to how it one day started to automatically do `bundle exec` for you
<Bish> i spent hours multiple times, figuring out what went wrong with some gem installed somewhere else
<Bish> or when switching users environment changed
<Bish> a.e. wanted to have a ruby script has a e-mail-bouncer for postfix
<Bish> and no matter what i did, postfix wouldn't call the rvm ruby
<Bish> ended up doing something likee
<Bish> bash -c "chruby && ruby somescript.rb"
<apeiros> rvm uses wrappers for that
<Bish> so stupid
<Bish> apeiros: yeah ORR you just install it the right way
<apeiros> "right"
<apeiros> which fails for jruby? :)
<Bish> i never get surprised when having ruby installed by a package manager
<Bish> that might be me, i might be too stupid for java
roshanavand has joined #ruby
<Bish> jruby isn't in gentoo as a package (i think)
<Bish> and i never ran it manually
<Bish> i gave up really quick, most of the times, too
<Bish> the fact not having native gems will fuck me up, too
Silthias1 has left #ruby [#ruby]
<apeiros> I actually don't use many native gems. and those I do have a jruby pendant
<Bish> i love sequel, sequel loves postgresql
terens has joined #ruby
<terens> hello
<Bish> sequel needs "pg" to work fast and have some features for postgresql
<Bish> => i would already be mad
<Bish> if i couldn't use LISTEN on postgresql
<terens> I want to run multiple tools concurrently. Is IO.popen good for ths?
<terens> open3 fires a new thread too I dont want that
<Bish> terens: do you also dislike fork?
<terens> popen forks i think
<Bish> then i guess, if it does what you want
<Bish> you'll be fine?
<terens> I dont know which is better to do (or maybe use something else)
<Bish> it sounds like it's the reason popen exists(+ ipc between processesk
<Bish> uhh matz himself worked on pg
<apeiros> terens: depends on what you want to do. IO.popen works fine, but has some limits. If those limits are a problem for you, then Kernel#spawn is the swiss army knife of invoking other processes.
<apeiros> (or Process.spawn, if you don't like the global nature of Kernel#spawn)
<Bish> what would those limits be?
<apeiros> Bish: no pid, stdout & stderr mixed. probably some others. look through spawn's docs, there might be some things popen can't do.
<Bish> ohshit that's horrible
<apeiros> no pid is particularly problematic if you want to Process.wait on the subprocess.
<apeiros> (or any variant of wait, iirc I usually use wait2)
<Bish> man i wish ruby was fast and concurrent
<Bish> would make my life 10% better, i know that's sad, but it is
ianfleeton has joined #ruby
<terens> lol
<terens> I am thinking trying IO.popen and IO.select though
<terens> something like this
bigblind has joined #ruby
<terens> but this uses open3
<apeiros> terens: `if ready` will always be true
<apeiros> for IO.select to return nil you have to provide a timeout
<vutral|kali> i thought ruby is concurrent
beauby has joined #ruby
<dminuoso> vutral|kali: What do you mean by "concurrent"
<apeiros> vutral|kali: it is
<apeiros> it's just not parallel
marr has joined #ruby
<apeiros> or rather, mri/cruby is mostly not parallel
tvw has joined #ruby
<dminuoso> At least not the interpreter itself. You can still benefit from parallelism if threads spend time in blocking IO.
<dminuoso> (Or more generally blocking syscalls)
<dminuoso> apeiros: Is it wrong to call it "interpreter" when in fact we have YARV?
<apeiros> native gems can have parallelism too. I think that's rarely used, though.
* dminuoso is pondering about his mistakes
<apeiros> dminuoso: meh, colloquialisms are fine IMO?
<apeiros> also people use terms like "transpilers" when the term "compiler" fits just fine too, so whatevs 😂
mtkd has quit [Ping timeout: 256 seconds]
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
<dminuoso> apeiros: https://ro-che.info/ccc/20
mtkd has joined #ruby
<apeiros> lel
Guest50607 has quit [Ping timeout: 256 seconds]
<apeiros> though I think JS as a compilation target will soon be replaced by webasm.
<apeiros> and honestly I burn to take up that old pet language of mine again and finally write a compiler, and webasm seems like a fine target.
<apeiros> but alas, too many other things to do :(
armando_ has quit [Ping timeout: 256 seconds]
govg has quit [Ping timeout: 256 seconds]
<Bish> are you talking about ruby?
<Bish> ruby webasm would be so awesome
<dminuoso> No it would not.
<dminuoso> Most certainly not.
<Bish> sure it would
<apeiros> no, I wasn't. and yes, it ouwld be.
govg has joined #ruby
<apeiros> (sorry dminuoso, there we go again, we disagree :D)
milardovich has joined #ruby
<Bish> i played around with ruby react bindungs
<Bish> it was awesome.. like superawesome
<Bish> but load times destroyed the idea for me
<Bish> and code size
<dminuoso> Bish: You mean react-rails?
<dminuoso> It's horror.
<Bish> no, i wrote my own
<apeiros> I'd love to replace those stupid javascript files in my websites & -apps with ruby
<Bish> i had a little framework, where you had models which get synchronized via websockets, where you write react-components with ruby
<apeiros> I could use opal, but I'm not sure I want that.
<dminuoso> apeiros: Im preparing myself to dive into PureScript. :-P
<Bish> and it had hot reloading
<zleap> i seem to get a lot of errors on sites saying this script has stopped, or i get that in e-mails as i think people have this idea e-mail needs some sort of scripting
<Bish> developing in it was superawesome.. but as i said.. helloworld was 2mb.js or something
* elomatreb *boooooooooh, I am the ghost of CoffeeScript that haunts the asset pipeline*
<Bish> dminuoso: why not write something like that with haskell
* dminuoso shoots elomatreb
<Bish> that would be as awesome
<Bish> FRP in the browser, where model client ⇔ model_server
<Bish> im dreaming about this ever since i first thought about it
<dminuoso> Bish: Most React people dont even know what real FRP is about.
<dminuoso> And Im not talking about this fake discrete FRP.
<Bish> yeah that's why something like reflex(in good) would be awesome
<Bish> in completition with a model framework with communicates with the server
<Bish> one language for everything
<dminuoso> Bish: Im seriously craving for denotational semantics.
<Bish> as i said, i did this in ruby, it was awesome, but slow and big
<dminuoso> Dunno if there's any good FRP solution around yet that has denotational semantic.
<Bish> it would be more awesome in pure FP, but also harder
ramfjord has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
<dminuoso> Bish: At any rate, Im still young in Haskell, so that topic still lies ahead of me.
<Bish> dminuoso: and yeah react-rails is horrible, but the idea behind that is good
<Bish> i think reactrb or hyperloop how it's called now
<dminuoso> Bish: Well the problem is webpack is.. a piece of. Ah well.
<Bish> dminuoso: that topic is young for everyone since none did that
<Bish> dminuoso: nobody who has the right mind does webpack
<Bish> i used some code of hyperloop & combined it with jspm
Ltem has joined #ruby
<Bish> it worked like it was meant to do that
<Bish> i could write react components with ruby, and when i pressed "save" it reloaded on the page instantly with state preserved
<Bish> so cool
milardovich has quit [Ping timeout: 240 seconds]
<Bish> that what ruby-webasm would make possible
soniya29 has joined #ruby
<Bish> maybe i should create that :o
<apeiros> go for it!
<Bish> webasm does not have threads yet, so does ruby :>
<apeiros> ?
<Bish> in a sense, where they suck
<apeiros> yeah, webasm doesn't have threads, but ruby does?
konsolebox_ has joined #ruby
<Bish> like only for IO
<apeiros> I think ruby without threads is an acceptable subset
<Bish> beause GIL comes like always
<zleap> webasm sounds like it uses assembler language
<Bish> zleap: it kinda is.. webasm acts like a CPU, kinda-ish
<Bish> bytecode
<apeiros> Bish: uh, you're wrong. threads != parallely executed threads. concurrent is already good.
<zleap> ah
<Bish> but for everything non-deterministic you will need to talk to the outside with javascript callbacks
<Bish> like web cryptominers, lolol
<apeiros> Bish: and until just a couple years ago, most computers didn't have multiple cores either. so no true parallelism was possible anyway.
ramfjord has quit [Ping timeout: 268 seconds]
<apeiros> and nowadays many VMs will only provide you one core too
milardovich has joined #ruby
<Bish> apeiros: i would do that ruby-webasm thing instantly if ruby compiled anywhere
<Bish> but as it is right now with MRI i would have to bring ruby to asm
<Bish> and then start code, which would be weird
konsolebox has quit [Ping timeout: 268 seconds]
<apeiros> macruby did have a compiler
<apeiros> it's not impossible. just difficult ;-)
<Bish> hm, yeah but is this stuff then compatible with gemsh
<Bish> and i don't know if ruby needs threads internally
milardov_ has joined #ruby
<Bish> nah this idea is bullshit as long as ruby doesn't compile to something
devil_tux has joined #ruby
<apeiros> webasm-ruby is necessarily a subset of ruby
claudiuinberlin has joined #ruby
<Bish> well i don't want a language that looks like ruby
<Bish> this would be bs aswell
<Bish> i want to have a model ont he server side
<apeiros> and as said, ruby has been compiled "to something" before
<Bish> that works on the client side, just like it wasn't
<apeiros> and arguably even cruby compiles, after all, it does use an IL
<Bish> apeiros: as long as we don't have gems, that won't happen
soniya29_ has joined #ruby
<apeiros> I have a differing opinion.
<Bish> that is not an opinion
soniya29 has quit [Read error: Connection reset by peer]
<apeiros> being able to replace javascript with ruby is a lot of value on its own, even without gems.
<Bish> if your model has a gem, and it does not work in the client
<Bish> you will be frustrated
<apeiros> yeah, so? will you be less frustrated when you translated it all to js?
<Bish> you've gained nothing, you have a language in the browser, which is not the language on the server
<Bish> just like js
<apeiros> you've gained a lot. and yes, that's just an opinion of yours :-p
<Bish> and opal already does that, to be honest
<Bish> it's very good
<Bish> probably better than everything i could do the way i described
<dminuoso> apeiros: cruby compiles to something that wont run directly on webasm.
<apeiros> I haven't yet taken my time to truly look at opal. does it support the full scope of ruby regex? or does it just use JS' regex engine?
<Bish> if ruby compiled to LVM-IR && could use gems in progress
milardovich has quit [Ping timeout: 252 seconds]
<dminuoso> If you targeted webasm, you basically have to run YARV on webasm to simulate the ruby object model
<Bish> apeiros: if it doesn't support ruby-regex, it would certainly warn you
<Bish> it really does surprise not often
<Bish> only surprising about opal is, that it works so well
<apeiros> dminuoso: yes. bishs' point was that ruby isn't compiled, so making it compile would be difficult. but it is compiled. you'd need a different compiler, though.
<dminuoso> apeiros: I guess the relevant distinction is that you cant trivially compile Ruby to machine code (unless that just meant YARV with your program glued in)
<apeiros> or well, yes, actually you could also write a yarv vm on top of webasm. but not sure that'd be a good idea.
<dminuoso> apeiros: Crystal would be far better suited for the task.
<Bish> they also do not have threads :> great choice
amatas_ has joined #ruby
starseed0000 has joined #ruby
<Bish> yeah thought about crystal, too, it would be great for this use case
<apeiros> you could probably implement concurrency on webasm. just not parallelism.
<Bish> but i want a language for everything
<Bish> i forgot the professional term for that
* apeiros is currently learning rust for that purpose
<dminuoso> apeiros: I heard some news, Rust will get HKT in the near future. =)
<apeiros> and rust does compile to webasm :D
<dminuoso> Which means. I should learn Rust.
<terens> So then if you need to run several things would you use popen or open3 ? I mean open3 creates a thread too which seems waste to me.
<Bish> HKT?
<dminuoso> Bish: higher kinded types
<apeiros> you totally should. so I can see crazy things in rust, not just ruby.
<Bish> terens: use open3
<terens> I may need to run at the same time 50 tools
<dminuoso> Bish: we have higher order functions (because you can pass functions themselves as values). type systems allow the same thing: type functions, and you can pass them around as "type values".
<Bish> 50 is not a huge number to a kernel/computer/whatever
<Bish> and.. considerung you're worried about 50 threads that do NOTHING
<Bish> these 50 tools.. might spawn threads, ey
<terens> but it would be 50 threads vs 1
<Bish> atleast 1.
<Bish> no, it would be 100 vs 50+
<Bish> because each tool you run has a thread, too
<Bish> might have 10
<Bish> and the threads of these tools might even do something, like your popen3 threads just route IO
<Bish> s/like/while
soniya29 has joined #ruby
<Bish> and routing IO is not a hard task even for ruby, since the kernel does all the work
soniya29_ has quit [Read error: Connection reset by peer]
hairui has quit [Ping timeout: 264 seconds]
hairui has joined #ruby
<Bish> dminuoso: sounds weird
<dminuoso> Bish: Are you familiar with C++?
<Bish> yes
<Bish> no inheritance in rust
<Bish> that's good.
<dminuoso> Bish: Imagine you have things of the shape: template<typename T> struct container{ ... };
<apeiros> terens: honestly, the switching of 50 threads will almost certainly be the least of your problems (performance-wise)
<Bish> "traits" are like ruby include?
<dminuoso> Bish: So you can abstract over T right?
<Bish> yes
<dminuoso> Bish: Alright. So what if.. you wanted to abstract over templates that takes one typename. Any of the,
<dminuoso> Bish: *any of them.
jenrzzz_ has joined #ruby
<dminuoso> Anything that has the shape T<M>
<Bish> i really have no example in mind for that use case :D
<Bish> oy, rust looks really neat
<Bish> i understand the hype
<Bish> does it use llvm?
<dminuoso> Bish: Are you familiar with template template params?
hairui has quit [Ping timeout: 248 seconds]
spectrum has quit [Read error: Connection reset by peer]
<Bish> dminuoso: don't think so, not sure?
<dminuoso> Bish: Okay the idea is this: You have some: template <template <typename> class T> struct Monad { template<typename M> static T<M> mreturn(const T&); };
<Bish> yeah i figured something like that
<dminuoso> Bish: See how you have a polymorphic.. template T?
<Bish> yes
<dminuoso> Bish: That's higher kinded types.
roonsauce has joined #ruby
<Bish> and rust allows you to have that chain of types endlessly long
<Bish> bcause you can work with them in runtime
<Bish> amiright?
<dminuoso> Bish: Basically the core idea is that you want to talk about T, but you dont care about M. Especially with containers this is extremely useful.
<dminuoso> i.e. you want to talk about std::vector<T> without caring whatever T is
<dminuoso> but make it polymorphic, so it could be std::vector<T>, std::array<T> or anything
Dimik has quit [Ping timeout: 256 seconds]
<dminuoso> Bish: And C++ allows any order. So you could do template<template<template<class> class> Q> ...
<dminuoso> The syntax is just freaking horrid.
roonsauce has quit [Ping timeout: 265 seconds]
morenoh149 has joined #ruby
<Bish> i see, thanks
<Bish> aways considered rust the new hipster language
<Bish> but it really looks mature and well designed
<Bish> borrowing the right features
joshua__ has joined #ruby
sundhell_away is now known as sundhell
<Bish> redox-os looks fun
<dminuoso> Bish: Rust is C++ done right. ;0
<dminuoso> Without the C baggage.
hairui has joined #ruby
<Bish> i think this "garbage collection" feature is weird though
<Bish> it's actually a feature to have objects flying around in memory
<terens> apeiros the question is if I use open3, in order to avoid blocking to use non block form?
<Bish> otherwise people would have gc in c++ already
<dminuoso> Bish: C++ allows for GC.
<dminuoso> Bish: It's just implementors that chose not to use them.
<Bish> ? what are you talking about
<Bish> delete and creation on stack?
<Bish> and yes, it's what i said
Matthew1 has quit [Ping timeout: 255 seconds]
<Bish> they didn't choose them, for a reason (which might be a stupid reason, but they didn't)
Han has left #ruby [#ruby]
<dminuoso> Bish: C++ very carefully uses the model of an abstract machine, and gives a blanket as-if rule.
<dminuoso> Bish: As long as there's no observable semantical difference, there's absolutely nothing in the C++ standard that prevents from memory being GC managed.
<terens> Bish, how would you use then open3 if you needed to stream output for 50 subprocesses the same time ?
Serpent7776 has joined #ruby
<Bish> sorry, i don't remember how open3 worked
<Bish> but even if it blocks, to start processes
<Bish> i would just
Pisuke has joined #ruby
<Bish> Thread.new { Open3.popen3(...) loop { some communication with @queues}}
<Bish> that's like the only use ruby threads have anyways
<Bish> (i did rant enough about that already, but it's kinda true)
MyMind has quit [Ping timeout: 256 seconds]
jaruga has joined #ruby
milardovich has joined #ruby
* Bish searches the video driver in redox kernel for 5 minutes
hairui has quit [Ping timeout: 264 seconds]
* Bish reads over the word microkernel and driver in userspace for 20 times
ams__ has joined #ruby
hairui has joined #ruby
milardov_ has quit [Ping timeout: 252 seconds]
stan has left #ruby ["bye"]
nadir has quit [Quit: Connection closed for inactivity]
yohji has joined #ruby
tomphp has joined #ruby
hairui has quit [Ping timeout: 248 seconds]
sameerynho has joined #ruby
jenrzzz_ has quit [Ping timeout: 265 seconds]
guardianx has joined #ruby
apeiros has quit []
hairui has joined #ruby
armando_ has joined #ruby
joshua__ is now known as Matthew1
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ldnunes has joined #ruby
aguestuser has quit [Ping timeout: 255 seconds]
aguestuser has joined #ruby
<dminuoso> So..
<dminuoso> what will the thribers be called?
<dminuoso> friber maybe?
<dminuoso> havenwood surely knows.
<dminuoso> I vote for HonestThread
ramfjord has joined #ruby
morenoh149 has quit [Ping timeout: 240 seconds]
<Bish> in a language that has lonely operators?
sameerynho has quit [Ping timeout: 256 seconds]
tomphp has joined #ruby
starseed0000 has quit [Ping timeout: 260 seconds]
workmad3 has joined #ruby
konsolebox_ has quit [Ping timeout: 268 seconds]
ramfjord has quit [Ping timeout: 276 seconds]
konsolebox has joined #ruby
vyorkin has quit [Ping timeout: 268 seconds]
tomphp has quit [Client Quit]
milardov_ has joined #ruby
milardovich has quit [Ping timeout: 248 seconds]
cliq has joined #ruby
soniya29 has quit [Quit: Leaving]
sundhell is now known as sundhell_away
hairui has quit [Ping timeout: 265 seconds]
luna_x has joined #ruby
ianfleeton has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hairui has joined #ruby
vyorkin has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mtkd has quit [Ping timeout: 256 seconds]
morenoh149 has joined #ruby
mtkd has joined #ruby
hairui has quit [Ping timeout: 256 seconds]
drewmcmillan has joined #ruby
aguestuser has quit [Remote host closed the connection]
aguestuser has joined #ruby
RougeR has quit [Ping timeout: 240 seconds]
morenoh149 has quit [Ping timeout: 256 seconds]
bigblind has quit [Ping timeout: 256 seconds]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
milardov_ has quit [Ping timeout: 276 seconds]
Matthew1 has quit [Remote host closed the connection]
yohji has quit [Ping timeout: 256 seconds]
aguestuser has quit [Remote host closed the connection]
bijan_ has joined #ruby
hairui has joined #ruby
aguestuser has joined #ruby
apeiros_ has joined #ruby
deadnull has joined #ruby
deadnull has quit [Client Quit]
goatish has joined #ruby
tcopeland has quit [Quit: tcopeland]
apparition has joined #ruby
AJA4350 has joined #ruby
tomlukeywood has joined #ruby
<tomlukeywood> Is their somthing similair to schemes filter function in ruby?
bijan_ is now known as bijan_awaaaay
<dminuoso> tomlukeywood: it's just called .select
<dminuoso> &ri Enumerable#select
<tomlukeywood> dminuoso: ah thanks
<dminuoso> tomlukeywood: For what its worth, I constantly screw up and try to use .filter since I started with Haskell. ;-)
<dminuoso> Every day.
<tomlukeywood> hehe
bijan_awaaaay has quit [Quit: System has gone to sleep. ZZZzzz…]
hairui has quit [Ping timeout: 256 seconds]
despai has joined #ruby
<dminuoso> tomlukeywood: Also just for completeness sake, you can think of reject as `not .: filter`
<tomlukeywood> ok
hairui has joined #ruby
yohji has joined #ruby
John_Ivan has joined #ruby
John_Ivan has joined #ruby
John_Ivan has quit [Changing host]
RougeR has joined #ruby
SecretNINJA has joined #ruby
hairui has quit [Ping timeout: 264 seconds]
hairui has joined #ruby
konsolebox has quit [Ping timeout: 256 seconds]
sundhell_away is now known as sundhell
konsolebox has joined #ruby
tomlukeywood has quit [Remote host closed the connection]
willsams is now known as storminator16
devil_tux has quit [Ping timeout: 268 seconds]
truenito has joined #ruby
hairui has quit [Ping timeout: 240 seconds]
hairui has joined #ruby
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SynSynack has joined #ruby
truenito has quit [Remote host closed the connection]
raynold has quit [Quit: Connection closed for inactivity]
damasceno has joined #ruby
<damasceno> Hello. Does anyone know how to get the nginx logs from 70 minutes ago? I'm trying to do that with File.open(log).grep(/#{pattern}/) but it shows exactly the pattern, I need to read the log file from 70 minutes ago until now.
<apeiros_> damasceno: you want each line containing the pattern?
apeiros_ is now known as apeiros
kapil___ has quit [Quit: Connection closed for inactivity]
<damasceno> apeiros: I actually need to get the logs from 70 minutes ago and only then search for the pattern
<apeiros> …
aguestuser has quit [Remote host closed the connection]
<damasceno> I know how to search for the pattern but I don't know how to get the logs from XX minutes ago
hairui has quit [Ping timeout: 256 seconds]
<apeiros> that is entirely depending on your log format
<jhass> if you want to do that to speed it up, that won't help since there's no way to tell without reading the entire file
morenoh149 has joined #ruby
hairui has joined #ruby
<damasceno> apeiros: nginx
aguestuser has joined #ruby
<damasceno> ex: IP URL [16/Feb/2018:10:57:34 +0100] POST
<apeiros> damasceno: that's not descriptive.
<apeiros> that's better
<damasceno> better?
<damasceno> brb
<apeiros> grep for /\[16\/Feb\/2018:(?:09|10)/
<apeiros> and then if you truly need exactly 70 minutes, parse the timestamp for the returned lines and find the index of the first occurrence within 70min
<apeiros> jhass: one could read from the end and perform a quadratic+binary search, but it adds a shitton of complexity
tomphp has joined #ruby
<jhass> good luck seeking to the beginning of a line without wasting any time gained by that
<apeiros> no luck needed
tomphp has quit [Client Quit]
<apeiros> in any substantial file, the time gained by this method is huge
<apeiros> I know because I've done a half-measure of that already.
morenoh149 has quit [Ping timeout: 265 seconds]
<apeiros> you seek from the end, read a chunk which has a reasonable expectation of containing 2 newlines. if it doesn't, you buffer up. that part is not too complex.
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
konsolebox has quit [Ping timeout: 256 seconds]
vutral|kali has quit [Ping timeout: 256 seconds]
hairui has quit [Ping timeout: 265 seconds]
hairui has joined #ruby
konsolebox has joined #ruby
banisterfiend has joined #ruby
aufi has quit [Remote host closed the connection]
<apeiros> I f.ex. used 1KB reads. average line was iirc <200bytes, and longest line <1KB. reading until you get 2 newlines doesn't take that much time. you parse that single line, process it and then either expand your boundary (quadratic search) or limit it again (start of the binary search)
banisterfiend has quit [Client Quit]
shinnya has joined #ruby
<apeiros> (I know it was <1KB since out of curiosity I added a count of how many additional reads had to be performed to get 2 newlines, and there was none)
<apeiros> thinking about this again, I'd say you could even drop the quadratic part and just do a binary search with this method. on average, you'd probably do the same number of reads.
hairui has quit [Ping timeout: 268 seconds]
hairui has joined #ruby
<apeiros> damn you jhass, now I ponder on working out whether the quadratic search was worth it, lol
* dminuoso waves the "Hi apeiros" flag around
<apeiros> hi dminuoso
* dminuoso then picks up the "HAI jhass"
<apeiros> hey, hey, you're our maths guy here dminuoso, can you work this out for me please?
<dminuoso> We have to first talk about SI.
<dminuoso> What is KB?
<dminuoso> Either it should be kB or KiB
<apeiros> assume 1GiB log, 1KiB reads always getting 2 newlines. needle always in the last 50MiB
<jhass> I see I'm done here :P
<apeiros> jhass: hm? the "complexity" of seeking to the beginning of the line is the same. whether you start from the end or not.
drewmcmillan has joined #ruby
<apeiros> anyway, unless I'm mistaken, at the size of 1GiB and result being always in 50 last MiB, I'd say you save yourself an average of 4.3 comparisons. So quadratic search part was absolutely not worth it :D
<apeiros> it was fun to write, though :<
troulouliou_dev has quit [Quit: Leaving]
hairui has quit [Ping timeout: 256 seconds]
hairui has joined #ruby
ramfjord has joined #ruby
banisterfiend has joined #ruby
anisha_ has quit [Read error: Connection reset by peer]
ramfjord has quit [Ping timeout: 276 seconds]
konsolebox has quit [Ping timeout: 265 seconds]
anisha has joined #ruby
konsolebox has joined #ruby
BTRE has quit [Quit: Leaving]
hairui has quit [Ping timeout: 260 seconds]
hairui has joined #ruby
despai has quit [Ping timeout: 240 seconds]
despai has joined #ruby
bigblind has joined #ruby
valeth has joined #ruby
vondruch has quit [Ping timeout: 256 seconds]
schneide_ has quit [Remote host closed the connection]
vondruch has joined #ruby
schneide_ has joined #ruby
hairui has quit [Ping timeout: 252 seconds]
jeffreylevesque has quit [Ping timeout: 240 seconds]
schneide_ has quit [Read error: Connection reset by peer]
jcalla has joined #ruby
nadir has joined #ruby
morenoh149 has joined #ruby
hairui has joined #ruby
synthroid has joined #ruby
iamsoami has quit [Ping timeout: 260 seconds]
rf has joined #ruby
morenoh149 has quit [Ping timeout: 240 seconds]
hairui has quit [Ping timeout: 248 seconds]
hairui has joined #ruby
<damasceno> apeiros: just got back. Thanks, I'll try that
aguestuser has quit [Remote host closed the connection]
hairui has quit [Ping timeout: 248 seconds]
aguestuser has joined #ruby
hairui has joined #ruby
tomphp has joined #ruby
rwb has quit [Ping timeout: 248 seconds]
shinnya has quit [Ping timeout: 276 seconds]
tomphp has quit [Client Quit]
tcopeland has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
mtkd has joined #ruby
valeth has quit [Quit: WeeChat 2.0.1]
mcr1 has quit [Ping timeout: 276 seconds]
rf has quit []
envex has joined #ruby
jeffreylevesque has joined #ruby
roshanavand has quit [Quit: Leaving.]
tomphp has joined #ruby
hairui has quit [Ping timeout: 260 seconds]
minimalism has joined #ruby
riotjones has joined #ruby
amatas_ has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 276 seconds]
guardianx has quit [Ping timeout: 255 seconds]
jeffreylevesque_ has joined #ruby
ogres has joined #ruby
jeffreylevesque has quit [Ping timeout: 265 seconds]
apparition has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mcr1 has joined #ruby
hairui has joined #ruby
apparition has joined #ruby
konsolebox has quit [Ping timeout: 252 seconds]
hairui has quit [Ping timeout: 240 seconds]
hairui has joined #ruby
aguestuser has quit [Remote host closed the connection]
konsolebox has joined #ruby
aguestuser has joined #ruby
mcr1 has quit [Ping timeout: 256 seconds]
konsolebox has quit [Ping timeout: 240 seconds]
konsolebox has joined #ruby
hairui has quit [Ping timeout: 268 seconds]
hairui has joined #ruby
vyorkin has quit [Read error: Connection reset by peer]
morenoh149 has joined #ruby
luna_x has quit [Ping timeout: 256 seconds]
konsolebox has quit [Ping timeout: 260 seconds]
synthroid has quit [Remote host closed the connection]
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
yohji has quit [Ping timeout: 240 seconds]
synthroid has joined #ruby
jnollette has quit [Ping timeout: 255 seconds]
konsolebox has joined #ruby
morenoh149 has quit [Ping timeout: 256 seconds]
jnollette has joined #ruby
mcr1 has joined #ruby
sundhell is now known as sundhell_away
hairui has quit [Ping timeout: 276 seconds]
hairui has joined #ruby
jamiejackson has joined #ruby
joast has quit [Quit: Leaving.]
joast has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yohji has joined #ruby
rwb has joined #ruby
mtkd has quit []
riotjones has quit [Changing host]
riotjones has joined #ruby
phenom has quit [Ping timeout: 260 seconds]
gr33n7007h has joined #ruby
gr33n7007h is now known as al2o3-cr
bmurt has joined #ruby
mtkd has joined #ruby
hairui has quit [Ping timeout: 240 seconds]
phenom has joined #ruby
konsolebox has quit [Ping timeout: 256 seconds]
vyorkin has joined #ruby
konsolebox has joined #ruby
KeyJoo has quit [Ping timeout: 240 seconds]
hairui has joined #ruby
cliq has quit [Ping timeout: 256 seconds]
GodFather has quit [Quit: Ex-Chat]
GodFather has joined #ruby
bigblind has quit [Ping timeout: 240 seconds]
ianfleeton has joined #ruby
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vyorkin has quit [Quit: WeeChat 2.0.1]
hairui has quit [Ping timeout: 256 seconds]
aScottishBoat has joined #ruby
hairui has joined #ruby
morenoh149 has joined #ruby
ramfjord has joined #ruby
ianfleeton has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
morenoh149 has quit [Ping timeout: 248 seconds]
netherwolfe has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
Trel has left #ruby [#ruby]
ShekharReddy has quit [Quit: Connection closed for inactivity]
bigblind has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
netherwolfe has quit [Read error: Connection reset by peer]
aScottishBoat has quit [Quit: aScottishBoat]
<apeiros> damasceno: found my old code for rails logs, if you're interested
<apeiros> jhass: did a little perf test on a 500MB log file. extract 1 day from the log = 1.6ms on this machine :D (that's tons faster than grepping for the date - and by tons I mean >6000x faster ^^)
netherwolfe has joined #ruby
blood|work has joined #ruby
dinfuehr has quit [Ping timeout: 268 seconds]
<blood|work> https://gist.github.com/anonymous/53645596a37c2c359b21184ed404a150, For some reason the cmd being executed within this rb script isn't working properly. If I execute the command manually, it works fine. How can I get more debug output to see what is wrong? the current log it generates tells me nothing
dinfuehr has joined #ruby
<apeiros> blood|work: is there any particular reason for your code wildly containing empty lines? o0
<apeiros> blood|work: common reason for shellouts to not work the same as doing it manually is usually a different env (login shell vs non-login shell). don't know enough about windows to help with this, though.
morenoh149 has joined #ruby
banisterfiend has joined #ruby
<damasceno> apeiros: of course :D could you please share it?
<apeiros> sure, preparing a little gist right now
shadeslayer has quit [Ping timeout: 264 seconds]
<apeiros> and I actually see things I could improve, lol
banisterfiend has quit [Ping timeout: 276 seconds]
sundhell_away is now known as sundhell
tvw has quit [Remote host closed the connection]
pastorinni has joined #ruby
damasceno has quit [Ping timeout: 260 seconds]
shadeslayer has joined #ruby
chouhoulis has joined #ruby
jgpawletko has joined #ruby
jgpawletko has quit [Client Quit]
Rapture has joined #ruby
TomyWork has quit [Remote host closed the connection]
hairui has quit [Ping timeout: 256 seconds]
damasceno has joined #ruby
<damasceno> thanks apeiros!
<damasceno> I'll check it later today
hairui has joined #ruby
<apeiros> damasceno: I'll be offline in ~1h from now
<apeiros> so if you've got questions, either before then, or in ~3.5h again :)
hairui has quit [Ping timeout: 240 seconds]
hairui has joined #ruby
SynSynack has quit [Ping timeout: 260 seconds]
<blood|work> apeiros: This is a delivered script from oracle
<blood|work> I didn't write it
<apeiros> run…
<blood|work> well not delivered, gets generated when you run a setup
apparition has quit [Quit: Bye]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
k0mpa has joined #ruby
tvw has joined #ruby
hairui has quit [Ping timeout: 256 seconds]
netherwolfe has quit [Quit: Leaving]
hairui has joined #ruby
bmurt has joined #ruby
terens has quit [Remote host closed the connection]
rippa has joined #ruby
roonsauce has joined #ruby
<damasceno> sure apeiros, thanks again
<apeiros> yw
<apeiros> blood|work: I meant "run" as in "run away from wherever you are, oracle isn't worth it" ;-)
al2o3-cr has quit [Ping timeout: 240 seconds]
ianfleeton has joined #ruby
Cavallari has joined #ruby
Bish has quit [Quit: leaving]
bigblind has quit [Ping timeout: 240 seconds]
<apeiros> damasceno: updated it and added a bit of comments
<blood|work> apieros: wish it were that easy :P
<apeiros> ?tabnick blood|work
<ruby[bot]> blood|work: pro-tip - use tab completion for nicks. avoids typos in nicks.
synthroid has quit [Remote host closed the connection]
* apeiros should really automate this
<apeiros> blood|work: it is. you just don't to live with the consequences 😂
<apeiros> (I can empathize, got to use oracle at work too)
jackrandom has quit [Remote host closed the connection]
giraffe has quit [Remote host closed the connection]
tpendragon has quit [Remote host closed the connection]
hairui has quit [Ping timeout: 240 seconds]
damasceno has quit [Ping timeout: 260 seconds]
marr has quit [Ping timeout: 256 seconds]
Mia has quit [Read error: Connection reset by peer]
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
goatish has quit [Quit: Hibernating]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hairui has joined #ruby
conta has quit [Ping timeout: 255 seconds]
DLSteve_ has joined #ruby
shadeslayer has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
bmurt has joined #ruby
bijan_ has joined #ruby
<blood|work> apeiros: Can I alter the logging level for the rb script? If so, how would I change it to debug?
<apeiros> ruby -w iirc
<blood|work> k let me try that
<apeiros> but I'd have to read ruby's manpage myself, so I'd suggest to just read that ;-)
bijan_ has quit [Client Quit]
tessi_zz has quit [Remote host closed the connection]
<blood|work> really odd, the only output i see in the log file is Received stop signal at: 2018-02-16 10:01:21 -0500 followed by 0-9 numbers printed on separate lines
<blood|work> ah I see in the rb file it loops 10 times and logs it during service init.
ShekharReddy has joined #ruby
minimalism has quit [Quit: minimalism]
synthroid has joined #ruby
snickers has joined #ruby
minimalism has joined #ruby
banisterfiend has joined #ruby
snickers has quit [Client Quit]
goatish has joined #ruby
hairui has quit [Ping timeout: 256 seconds]
hairui has joined #ruby
yohji has quit [Ping timeout: 240 seconds]
ianfleeton has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
apeiros has quit []
zsoc has joined #ruby
yohji has joined #ruby
hairui has quit [Ping timeout: 248 seconds]
aspiers has quit [Ping timeout: 256 seconds]
lupine has quit [Ping timeout: 260 seconds]
lupine has joined #ruby
snath has quit [Ping timeout: 248 seconds]
raynold has joined #ruby
aupadhye has quit [Ping timeout: 252 seconds]
Cavallari1 has joined #ruby
aspiers has joined #ruby
k0mpa has quit [Ping timeout: 255 seconds]
Cavallari has quit [Ping timeout: 255 seconds]
Cavallari1 is now known as Cavallari
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hairui has joined #ruby
nowhere_man has joined #ruby
morenoh149 has quit [Ping timeout: 256 seconds]
jerikl has joined #ruby
nowhereman_ has quit [Ping timeout: 240 seconds]
hairui has quit [Ping timeout: 268 seconds]
hairui has joined #ruby
clemens3 has quit [Ping timeout: 248 seconds]
snickers has joined #ruby
cagomez has joined #ruby
cliq has joined #ruby
KeyJoo has joined #ruby
troys has joined #ruby
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hairui has quit [Ping timeout: 276 seconds]
jamiejackson has quit [Ping timeout: 240 seconds]
KeyJoo has quit [Remote host closed the connection]
RougeR has quit [Ping timeout: 240 seconds]
despai_ has joined #ruby
despai has quit [Ping timeout: 260 seconds]
dbugger has joined #ruby
<dbugger> hi everyone
<havenwood> Dbugger: hi
<dbugger> small question. This line "a ||= b if c" is executed as "(a ||= b) if c" or "a ||= (b if c)"?
jcarl43 has joined #ruby
Serpent7776 has quit [Quit: Leaving]
RougeR has joined #ruby
nowhere_man has quit [Ping timeout: 240 seconds]
d10n-work has joined #ruby
hairui has joined #ruby
yohji has quit [Remote host closed the connection]
<havenwood> Dbugger: a || a = b
jaruga has quit [Quit: jaruga]
tvw has quit []
<dbugger> no yeah, i was asking if it is first the ||= or the "if"
<dbugger> I know what ||= means :)
<dbugger> It was more about the priority of operators
<havenwood> Dbugger: gotcha, precedence
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
<havenwood> Dbugger: It can be fun to use Ripper to get answers to questions like that.
<dbugger> funny, "||=" is not listed
<dbugger> What is Ripper?
giraffe has joined #ruby
hairui has quit [Ping timeout: 252 seconds]
<havenwood> >> require 'ripper'; Ripper.sexp 'a ||= b if c'
<ruby[bot]> havenwood: # => [:program, [[:if_mod, [:vcall, [:@ident, "c", [1, 11]]], [:opassign, [:var_field, [:@ident, "a", [1, ...check link for more (https://eval.in/957617)
SeepingN has joined #ruby
tpendragon has joined #ruby
<dbugger> o_O
<havenwood> Dbugger: It's a tool in the stdlib.
<dbugger> holy f. The syntax is really different
roonsauce has quit [Remote host closed the connection]
<havenwood> Dbugger: Or you can look at the YARV instruction sequence:
<havenwood> >> RubyVM::InstructionSequence.compile('a ||= b if c').to_a.last
<ruby[bot]> havenwood: # => [1, [:trace, 1], [:putself], [:opt_send_without_block, {:mid=>:c, :flag=>28, :orig_argc=>0}, false], ...check link for more (https://eval.in/957618)
<dbugger> Not sure also what YARV is.... :D
<havenwood> >> puts RubyVM::InstructionSequence.compile('a ||= b if c').disasm
<ruby[bot]> havenwood: # => == disasm: #<ISeq:<compiled>@<compiled>>================================ ...check link for more (https://eval.in/957620)
<havenwood> Dbugger: Yet Another Virtual Machine
<havenwood> Dbugger: The CRuby VM.
<dbugger> ok, I think I am biting again more than I can chew...
<dbugger> :P
<havenwood> Dbugger: look at precedence of `=` and `if`
dionysus69 has joined #ruby
<dbugger> well, it is not "=" but "||=", but maybe it is the same
kapil___ has joined #ruby
<havenwood> Dbugger: TL;DR: `if c` is first
morenoh149 has joined #ruby
hairui has joined #ruby
<havenwood> >> require 'ripper'; Ripper.sexp('a ||= b if c').last.first
<ruby[bot]> havenwood: # => [:if_mod, [:vcall, [:@ident, "c", [1, 11]]], [:opassign, [:var_field, [:@ident, "a", [1, 0]]], [:@op ...check link for more (https://eval.in/957626)
<havenwood> Dbugger: You can see it there ^
darkhanb has joined #ruby
roonsauce has joined #ruby
<havenwood> Dbugger: If you want to see why it's first, the --yydebug flag lets you see how the parse.y grammar rules are being applied: ruby --yydebug -e 'a ||= b if c'
cthulchu_ is now known as cthulchu
<havenwood> Dbugger: But that's more interesting than useful.
<havenwood> At least I've never actually used it productively. ;-P
troys has quit [Quit: Bye]
elcontrastador has quit [Ping timeout: 256 seconds]
morenoh149 has quit [Ping timeout: 240 seconds]
beauby has quit [Ping timeout: 256 seconds]
snath has joined #ruby
drewmcmillan has joined #ruby
hairui has quit [Ping timeout: 240 seconds]
troys has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ianfleeton has joined #ruby
alex`` has quit [Quit: WeeChat 2.0.1]
banisterfiend has joined #ruby
<dbugger> oh well, i guess i do not want to go that deep into the rabbit hole
storminator16 has quit [Quit: Leaving]
n008f4g_ has joined #ruby
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
roonsauce has quit [Remote host closed the connection]
biberu has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
eckhardt has joined #ruby
workmad3 has joined #ruby
hairui has joined #ruby
dviola has joined #ruby
gix- has quit [Quit: Client exiting]
ianfleeton has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gix has joined #ruby
goatish has quit [Quit: Hibernating]
goatish has joined #ruby
hairui has quit [Ping timeout: 240 seconds]
roonsauce has joined #ruby
workmad3 has quit [Ping timeout: 268 seconds]
kaspergrubbe has joined #ruby
alex`` has joined #ruby
alex`` is now known as alexherbo2
alexherbo2 is now known as alex``
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
desperek has joined #ruby
desperek has quit [Changing host]
desperek has joined #ruby
roonsauce has quit [Remote host closed the connection]
nowhere_man has joined #ruby
za1b1tsu has joined #ruby
suhdood has joined #ruby
bigblind has joined #ruby
ShekharReddy has quit [Quit: Connection closed for inactivity]
claudiuinberlin has joined #ruby
NL3limin4t0r has joined #ruby
kaspergrubbe has quit [Ping timeout: 256 seconds]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kaspergrubbe has joined #ruby
anisha has quit [Ping timeout: 256 seconds]
morenoh149 has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jerikl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jerikl has joined #ruby
banisterfiend has joined #ruby
morenoh149 has quit [Ping timeout: 276 seconds]
mcr1 has quit [Ping timeout: 252 seconds]
hairui has joined #ruby
mcr1 has joined #ruby
eroux has quit [Ping timeout: 252 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomlukeywood has joined #ruby
hairui has quit [Ping timeout: 255 seconds]
nogic has joined #ruby
DTZUZU has quit [Quit: WeeChat 1.9]
schneide_ has joined #ruby
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
schneide_ has quit [Ping timeout: 256 seconds]
ramfjord has joined #ruby
ldnunes has quit [Read error: Connection reset by peer]
ldnunes has joined #ruby
claudiuinberlin has joined #ruby
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
type1team has joined #ruby
<type1team> Hello, i have a question...
<type1team> Any can help me?
<eam> type1team: don't ask to ask, just ask!
<type1team> What RoR CMS do you recommend for blogs like websites.
<type1team> It is important to be optimized with the conversions for SEO and Schema.
<eam> type1team: for rails, you might want to ask in #rails
<bougyman> that's really a matter of opinion.
<bougyman> I would recommend: none.
<bougyman> #anythingbutrails is my hashtag
<miah> for blogs i always go as static as possible and just use something like disqus for conversation =)
<bougyman> ^
<bougyman> simple solutions for simple problems.
<bougyman> Not everything has to be a kitchen sink
<type1team> I am looking to build a PBN at least 10 niche sites. I use WP but it is very vulnerable to attacks. Exploits.
<eam> I used jekyll once for that kind of thing and enjoyed it
<miah> Peanut Butter Ninja?
<eam> I'm with miah and bougyman
roonsauce has joined #ruby
Mike11 has joined #ruby
<type1team> private blog networks (PBNs)
Mike11 has quit [Max SendQ exceeded]
<miah> sounds cool but i think im more interested in a peanut butter ninja at this point
<eam> I've developed a late night snack habit of a spoonful of peanut butter and a spoonful of jelly mixed in a bowl, with crackers to dip
<miah> i mean the thing with blogs, websites.. there are a infinite number of CMS frameworks
<type1team> Is there a gem for SEO and Schema for RoR that optimizes the ranking of the sites?
<havenwood> type1team: Jekyll and Middleman are the usual go-to static site generators in Ruby. Hugo is a nice (ahem, Go-lang) static site generator as well: https://gohugo.io/
<havenwood> type1team: https://middlemanapp.com/
roonsauce has quit [Remote host closed the connection]
<type1team> Nice!
roonsauce has joined #ruby
<type1team> but my concerns about the subject of SEO and Schema. That meet the convensiones for site positioning and metadata.
<miah> do you mean like a database schema?
<type1team> Structured Data in Markup (Schema.org) - SEO Tactics for Ranking in Search Engine.
<miah> the term seo just makes my eyes gloss over and i imagine im somewhere else
<miah> so i cant help you there =)
<SeepingN> How to target old Google algorithms, volume 483
<type1team> lol
<SeepingN> oh woops, 484
<type1team> Google use: Deep Learning
<type1team> Some place where you can investigate if there are SEO Gems, Schema in general positioning and rank sites in the search engines?
hairui has joined #ruby
sameerynho has joined #ruby
<rubycoder38> here is my current script and I'd like to start writing tests with minitest and refactor after that, however, I'd like to start with the output method, the output method only outputs json: https://gist.github.com/anonymous/505ebdf94d1cb48b27c13b928e51f907 -- how am I supposed to test my output method if it only outputs some specific json output?
<rubycoder38> I'm a bit confused and yes I'm new with testing
za1b1tsu has quit [Quit: Leaving]
<bougyman> type1team: if you're looking for an easy way to accomplish SEO, you're searching for a unicorn.
<type1team> LOL, but must exister some gem that helps.
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hairui has quit [Ping timeout: 240 seconds]
nowhere_man has quit [Ping timeout: 248 seconds]
riotjones has quit [Quit: Leaving...]
bmurt has joined #ruby
riotjones has joined #ruby
morenoh149 has joined #ruby
<miah> maybe google can help better with that answer? (assuming the gem has good seo)
kaspergrubbe has quit [Ping timeout: 248 seconds]
al2o3-cr has joined #ruby
<type1team> No, someone here should have the answer, I will be patient.
synthroid has quit [Remote host closed the connection]
synthroid has joined #ruby
yqt has joined #ruby
al2o3-cr has quit [Ping timeout: 240 seconds]
<rubycoder38> any ideas please?
LocaMocha has quit [Remote host closed the connection]
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mtkd has quit []
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
haylon has joined #ruby
DTZUZU has joined #ruby
apeiros_ has joined #ruby
jerikl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
suhdood_ has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
Ltem has quit [Ping timeout: 252 seconds]
suhdood_ has quit [Remote host closed the connection]
suhdood has quit [Ping timeout: 240 seconds]
mtkd has joined #ruby
nogic has quit [Ping timeout: 256 seconds]
suhdood has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lunarkitty7 has quit [Quit: WeeChat 2.0]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hairui has joined #ruby
despai_ has quit [Quit: ...]
hairui has quit [Ping timeout: 248 seconds]
al2o3-cr has joined #ruby
marr has joined #ruby
tvw has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jerikl has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
haylon has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
workmad3 has joined #ruby
al2o3-cr has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 265 seconds]
nowhere_man has joined #ruby
sagax has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Ping timeout: 265 seconds]
Dimik has joined #ruby
banisterfiend has joined #ruby
SecretNINJA has quit [Ping timeout: 248 seconds]
shadeslayer has joined #ruby
ldnunes has quit [Quit: Leaving]
hairui has joined #ruby
kaspergrubbe has joined #ruby
tomlukeywood has quit [Remote host closed the connection]
hairui has quit [Ping timeout: 256 seconds]
bmurt has joined #ruby
kaspergrubbe has quit [Ping timeout: 268 seconds]
kapil___ has quit [Quit: Connection closed for inactivity]
Ltem has joined #ruby
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rwb has quit [Ping timeout: 260 seconds]
cagomez has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 265 seconds]
sanscoeur has joined #ruby
hfp_work has quit [Ping timeout: 240 seconds]
sagax has joined #ruby
hfp_work has joined #ruby
TvL2386_ has joined #ruby
Cavallari has quit [Quit: Cavallari]
drewmcmillan has joined #ruby
TvL2386 has quit [Ping timeout: 256 seconds]
clemens3 has joined #ruby
vondruch has quit [Ping timeout: 248 seconds]
hfp_work has quit [Ping timeout: 240 seconds]
goatish has quit [Quit: Hibernating]
morenoh149 has quit [Ping timeout: 260 seconds]
despai has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
hairui has joined #ruby
shinnya has joined #ruby
xelkarin has joined #ruby
hairui has quit [Ping timeout: 240 seconds]
morenoh149 has joined #ruby
ramfjord has joined #ruby
jeffreylevesque_ has quit [Ping timeout: 256 seconds]
pastorinni has quit [Ping timeout: 240 seconds]
cagomez has joined #ruby
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
jcalla has quit [Quit: Leaving]
hfp_work has joined #ruby
sameerynho has quit [Ping timeout: 255 seconds]
cagomez has quit [Ping timeout: 268 seconds]
zautomata1 has joined #ruby
zautomata has quit [Ping timeout: 255 seconds]
zautomata2 has joined #ruby
goatish has joined #ruby
tvw has quit []
zautomata1 has quit [Ping timeout: 240 seconds]
biberu has quit []
tvw has joined #ruby
hfp_work has quit [Ping timeout: 248 seconds]
workmad3 has joined #ruby
n008f4g_ has quit [Ping timeout: 240 seconds]
hairui has joined #ruby
eckhardt has joined #ruby
hfp_work has joined #ruby
cagomez has joined #ruby
roonsauce has quit []
sammi` has quit [Quit: Lost terminal]
hairui has quit [Ping timeout: 265 seconds]
sammi` has joined #ruby
dionysus69 has joined #ruby
al2o3-cr has joined #ruby
Ltem has quit [Quit: bbl]
suhdood has quit [Read error: Connection reset by peer]
mtkd has quit [Ping timeout: 276 seconds]
jnollette has quit [Ping timeout: 255 seconds]
jordanm has quit [Ping timeout: 256 seconds]
rwb has joined #ruby
mtkd has joined #ruby
jnollette has joined #ruby
banisterfiend has quit [Ping timeout: 268 seconds]
jordanm has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
synthroid has quit []
nowhere_man has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Remote host closed the connection]
nowhere_man has joined #ruby
mint has joined #ruby
jeffreylevesque has joined #ruby
hairui has joined #ruby
WA9ACE has quit [Quit: ZNC 1.6.3+deb1 - http://znc.in]
SpeakerToMeat has quit [Read error: Connection reset by peer]
hairui has quit [Ping timeout: 248 seconds]
Ltem has joined #ruby
WA9ACE has joined #ruby
<tcopeland> type1team: FWIW there’s the sitemap_generator gem
prutheus has joined #ruby
druonysus has joined #ruby
<prutheus> Hello. Can someone explain me how this line `entries = entries.values_at(*(0...entries.length).step(2))` selects only 1,3,5,7th element and so on? I dont know what the * is doing and how that works
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
druonysus has quit [Client Quit]
bmurt has joined #ruby
desperek has quit [Quit: xoxo]
jamesaxl has quit [Quit: WeeChat 2.0.1]
tomlukeywood has joined #ruby
pastorinni has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
<weaksauce> prutheus * is the splat operator that unpacks and passes in the values to that function
ramfjord has joined #ruby
<weaksauce> 0...entries.length is the range from 0 up to the last entry and step picks every second element
suhdood has joined #ruby
<prutheus> okay. i still do not understand * ... ;(
<weaksauce> so (0...10) is a range of everything from 0-9
<apeiros_> prutheus: basically, foo(*[1,2,3]) is expanded to foo(1,2,3)
apeiros_ is now known as apeiros
<weaksauce> that's more succinct
<apeiros> obviously useful if you have args in an array, like: args = [1,2,3]; foo(*args)
<weaksauce> you can also create a function with it def foo(*args) that is an array of all the arguments passed into the function
<apeiros> s/function/method/ ;-)
<prutheus> so it is like a .each loop?
ramfjord has quit [Ping timeout: 265 seconds]
<apeiros> no. you can't construct a method call with multiple arguments using any form of loop.
ramfjord has joined #ruby
<prutheus> ahh got it
workmad3 has quit [Ping timeout: 240 seconds]
prutheus has quit [Quit: Page closed]
druonysus has joined #ruby
banisterfiend has joined #ruby
yqt has quit [Read error: Connection reset by peer]
ramfjord has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
tomlukeywood has quit [Remote host closed the connection]
pastorinni has quit [Remote host closed the connection]
druonysus has quit [Quit: Konversation terminated!]
druonysus has joined #ruby
hairui has joined #ruby
amatas has quit [Quit: amatas]
ramfjord has quit [Ping timeout: 240 seconds]
druonysus has quit [Client Quit]
druonysus has joined #ruby
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has quit [Client Quit]
druonysus has joined #ruby
druonysus has joined #ruby
druonysus has quit [Changing host]
hairui has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
druonysus has quit [Client Quit]
hairui has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
hairui has quit [Ping timeout: 248 seconds]
WA9ACE has quit [Quit: ZNC 1.6.3+deb1 - http://znc.in]
mint has quit [Quit: Leaving]
tvw has quit []
tvw has joined #ruby
ogres has quit [Quit: Connection closed for inactivity]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 256 seconds]
ta_ has joined #ruby
ramfjord has joined #ruby
pastorinni has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dbugger has quit [Ping timeout: 255 seconds]
suhdood_ has joined #ruby
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
suhdood has quit [Read error: Connection reset by peer]
pastorinni has quit [Remote host closed the connection]
eckhardt has joined #ruby
tcopeland has quit [Quit: tcopeland]
eckhardt has quit [Client Quit]
suhdood_ has quit [Ping timeout: 260 seconds]
pastorinni has joined #ruby
schneide_ has joined #ruby
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
bronson has joined #ruby
eckhardt has joined #ruby
hairui has joined #ruby
schneide_ has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
<kspencer> if someone who has used thor more than me, is there a way to prompt a user to pick between subcommands when they only give the parent command e.g. they gave 'script parent' instead of 'script parent child', the no_commands block doesn't seem to be working in that way nor does adding it as a default command as far as i've seen
hairui has quit [Ping timeout: 256 seconds]
ramfjord has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tefa has joined #ruby
snath has quit [Ping timeout: 276 seconds]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ltem has quit [Quit: good night]
<tefa> can someone explain me this error? (i think it has to be on how you declare the function..) https://gist.github.com/tefanga/e33eb29d09b5b772813e92a7bd7bab6c
eckhardt has joined #ruby
jnyw has joined #ruby
paraxial has quit [Quit: The Lounge - https://thelounge.github.io]
<apeiros> tefa: wrong channel?
vutral|kali has quit [Ping timeout: 260 seconds]
paraxial has joined #ruby
bmurt has joined #ruby
<NL3limin4t0r> tefa: Seems like Haskell code to me.
eckhardt has quit [Client Quit]
bmurt has quit [Client Quit]
<apeiros> NL3limin4t0r: the .hs in the error would support that :D
<NL3limin4t0r> apeiros: So why post in the Ruby irc?
chouhoul_ has joined #ruby
<apeiros> NL3limin4t0r: if you look one message above, you'll notice that I asked that very question
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
jordanm has quit [Ping timeout: 240 seconds]
<NL3limin4t0r> apeiros: Ah, thought you where tefa for a sec. Didn't check the name.
ta_ has quit [Ping timeout: 248 seconds]
<kspencer> yeah so tefa, try #haskell
tvw has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 252 seconds]
goatish has quit [Quit: Hibernating]
schneide_ has joined #ruby
<apeiros> no reaction from tefa anyway. can't have been too important.
* kspencer waits for an answer to his question, though its kinda scrolled up so I'll post it again
chouhoul_ has quit [Ping timeout: 256 seconds]
<kspencer> if someone who has used thor more than me has an idea, is there a way to prompt a user to pick between subcommands when they only give the parent command e.g. they gave 'script parent' instead of 'script parent child', the no_commands block doesn't seem to be working in that way nor does adding it as a default command as far as i've seen
John_Ivan has quit [Read error: Connection reset by peer]
<tefa> sorry guys! hahaha im on the wrong channel! (i usually code on ruby... thats why i automatically got in here xd)
schneide_ has quit [Ping timeout: 240 seconds]
alex`` has quit [Ping timeout: 256 seconds]
jnollette has quit [Remote host closed the connection]
ta_ has joined #ruby
agent_white has quit [Quit: brb]
agent_white has joined #ruby
jnollette has joined #ruby
<kspencer> also somehow answered my own question, idk why but before it wasn't showing the help, but now it does, i remembered it is supposed to output help if there is no default command
bronson has quit [Remote host closed the connection]
goatish has joined #ruby
NL3limin4t0r has quit [Quit: WeeChat 1.9.1]
bronson has joined #ruby
bronson has quit [Ping timeout: 264 seconds]
hairui has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
morenoh149 has quit [Ping timeout: 268 seconds]
hairui has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<rubycoder38> can you guys help me refactor this piece of code? https://gist.github.com/anonymous/c13956a8750d2936b6b87c3c90f7f564
AndBobsYourUncle has joined #ruby
<rubycoder38> I'd like to move the transactions from the transfer method to another method/class, it's not very DRY this way
<rubycoder38> the problem is the first one expects the currency variable and the other one needs target_currency
mtkd has quit [Ping timeout: 240 seconds]
DLSteve_ has quit [Quit: All rise, the honorable DLSteve has left the channel.]
<rubycoder38> how can I undry this?
<kspencer> use method(arguments)?
<kspencer> eg def update_wallet(currency, target_currency) ... end
mtkd has joined #ruby
<rubycoder38> yes, that's what I thought, but look at the line 27 and 34
tcopeland has joined #ruby
<kspencer> then I'd probably have it send a hash that you put {target: x, primary: y}
<kspencer> or something similar
<kspencer> I'm basically brainstorming along with you
<rubycoder38> yes, sounds like that could work also
sundhell is now known as sundhell_away
<kspencer> and basically run some if ... elsif ... else ... end to check if both were given, none were given (would most likely error out), and one or the other were given
<kspencer> and validation if need be
<kspencer> although you can kinda build that into else
AndBobsYourUncle has quit [Quit: Textual IRC Client: www.textualapp.com]
jerikl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
deadnull has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
railswebdev has joined #ruby
Sifrael has joined #ruby
Sifrael884 has quit [Ping timeout: 248 seconds]