ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
glosoli has quit [Ping timeout: 245 seconds]
<leftylink>
hmm
<leftylink>
I can't decide which word is better to use in that context, canon (part of the language => has been canonicalised) or cannon (referring to the classic contrast between technology and magic)
poontangmessiah has joined #ruby
kinbiko has quit [Ping timeout: 268 seconds]
fphilipe has quit [Ping timeout: 272 seconds]
icenovatx has quit [Ping timeout: 272 seconds]
sytherax has joined #ruby
<leftylink>
it could be really clever
fphilipe has joined #ruby
sytherax has quit [Ping timeout: 258 seconds]
kinbiko has joined #ruby
crankharder has joined #ruby
crankharder has quit [Client Quit]
kinbiko has quit [Ping timeout: 245 seconds]
megamos has quit [Ping timeout: 248 seconds]
sytherax has joined #ruby
sytherax has quit [Ping timeout: 245 seconds]
Intelo has joined #ruby
<Intelo>
If I have intellij Idea and want to develop in ruby. I do not need rubymine and just a FREE plugin to be installed in idea? Correct?Is idea EAP free for ever?
za1b1tsu has joined #ruby
kapilp has joined #ruby
kinbiko has joined #ruby
prestorium has joined #ruby
TomyWork has joined #ruby
sytherax has joined #ruby
howdoi has joined #ruby
sytherax has quit [Ping timeout: 245 seconds]
tdy has quit [Ping timeout: 245 seconds]
Tuor has joined #ruby
corellian has joined #ruby
ramfjord has joined #ruby
kyrylo has joined #ruby
sytherax has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
sytherax has quit [Ping timeout: 245 seconds]
kyrylo has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
dbugger has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
dbugger has quit [Remote host closed the connection]
kyrylo has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
x86sk has quit [Quit: Connection closed for inactivity]
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
jenrzzz has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
gabschem_ has joined #ruby
deepredsky has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
ellcs has joined #ruby
kyrylo has joined #ruby
TomyWork has quit [Ping timeout: 246 seconds]
aupadhye has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
TomyWork has joined #ruby
kyrylo has joined #ruby
gabschem_ has quit [Ping timeout: 245 seconds]
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
sytherax has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
sytherax has quit [Ping timeout: 272 seconds]
kyrylo has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
drnerdius has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
deepreds1 has joined #ruby
kyrylo has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
deepredsky has quit [Ping timeout: 272 seconds]
kyrylo has quit [Read error: Connection reset by peer]
kinbiko has quit [Ping timeout: 246 seconds]
kyrylo has joined #ruby
ellcs has quit [Ping timeout: 264 seconds]
TomyWork has quit [Remote host closed the connection]
TomyWork has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
dbugger has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
lxsameer has joined #ruby
kyrylo has joined #ruby
corellian has quit [Quit: leaving]
corellian has joined #ruby
TomyWork has quit [Remote host closed the connection]
kyrylo has quit [Read error: Connection reset by peer]
drnerdius has quit [Read error: Connection reset by peer]
drnerdius has joined #ruby
kyrylo has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
uranoss has quit [Quit: Connection closed for inactivity]
kyrylo has joined #ruby
TomyWork has joined #ruby
sytherax has joined #ruby
drnerdius has quit [Read error: Connection reset by peer]
drnerdius has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
sytherax has quit [Ping timeout: 245 seconds]
kyrylo has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
megamos has joined #ruby
kyrylo has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
queip has quit [Ping timeout: 246 seconds]
kyrylo has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
gabschem_ has joined #ruby
queip has joined #ruby
gabschem_ has quit [Remote host closed the connection]
gabschem_ has joined #ruby
sytherax has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
BH23 has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
involans has joined #ruby
bruce_lee has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
BH23 has quit [Ping timeout: 244 seconds]
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
Fraeon has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
ellcs has joined #ruby
faces has quit [Read error: Connection reset by peer]
kyrylo has quit [Read error: Connection reset by peer]
faces has joined #ruby
kyrylo has joined #ruby
sylario has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
queip has quit [Ping timeout: 248 seconds]
kyrylo has joined #ruby
gabschem_ has quit []
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
glosoli has joined #ruby
kyrylo has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
Intelo has quit [Remote host closed the connection]
glosoli has quit [Read error: Connection reset by peer]
x86sk has joined #ruby
kyrylo has joined #ruby
sytherax has quit [Ping timeout: 246 seconds]
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
queip has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
teclator has quit [Ping timeout: 258 seconds]
kyrylo has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
teclator has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
ramfjord has quit [Ping timeout: 245 seconds]
kapilp has quit [Quit: Connection closed for inactivity]
kyrylo has joined #ruby
sytherax has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
sytherax has quit [Ping timeout: 245 seconds]
kyrylo has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
sytherax has joined #ruby
sytherax has quit [Remote host closed the connection]
sytherax has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
aupadhye_ has joined #ruby
kyrylo has joined #ruby
aupadhye has quit [Ping timeout: 276 seconds]
kyrylo has quit [Read error: Connection reset by peer]
aupadhye_ is now known as aupadhye
za1b1tsu has quit [Remote host closed the connection]
CCDelivery has joined #ruby
kyrylo has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
Sithembewena has joined #ruby
kyrylo has joined #ruby
Sithembewena has quit [Remote host closed the connection]
Sithembewena has joined #ruby
jenrzzz has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
aupadhye_ has joined #ruby
aupadhye has quit [Ping timeout: 276 seconds]
_whitelogger has joined #ruby
poontangmessiah has quit [Ping timeout: 245 seconds]
aupadhye_ is now known as aupadhye
kapilp has joined #ruby
sytherax has quit [Remote host closed the connection]
za1b1tsu has joined #ruby
sleetdrop has joined #ruby
sytherax has joined #ruby
sytherax has quit [Remote host closed the connection]
spectra has quit [Ping timeout: 248 seconds]
CCDelivery has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 268 seconds]
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
deepredsky has joined #ruby
sytherax has joined #ruby
_sfiguser has joined #ruby
<_sfiguser>
hello all guys
spectra has joined #ruby
spectra has joined #ruby
spectra has quit [Changing host]
deepreds1 has quit [Ping timeout: 246 seconds]
sytherax has quit [Remote host closed the connection]
sytherax has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
jcalla has quit [Ping timeout: 258 seconds]
Swyper has joined #ruby
spectra has quit [Ping timeout: 248 seconds]
AJA4350 has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
<_sfiguser>
guys where can i start with ruby?
_sfiguser has quit [Quit: leaving]
spectra has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yalue has joined #ruby
deepreds1 has joined #ruby
<ytti>
people put way too much thought on how to learn things
<ytti>
it doesn't matter, what matters is putting in the hours
poontangmessiah has quit [Ping timeout: 268 seconds]
kyrylo has quit [Read error: Connection reset by peer]
queip has quit [Ping timeout: 246 seconds]
poontangmessiah has joined #ruby
BH23 has quit [Ping timeout: 245 seconds]
bmurt has quit [Ping timeout: 272 seconds]
jenrzzz has quit [Ping timeout: 272 seconds]
poontangmessiah_ has joined #ruby
bmurt has joined #ruby
queip has joined #ruby
drincruz has quit [Ping timeout: 245 seconds]
poontangmessiah has quit [Ping timeout: 268 seconds]
cako has joined #ruby
kinbiko has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
cako has quit [Ping timeout: 272 seconds]
ellcs has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
rubynoob has joined #ruby
cako has joined #ruby
<rubynoob>
Hello everyone. Assuming I have a string of "s1.s2.s3.domain.tld", what would be the best way to get an Array of ["s1.s2.s3.domain.tld", "s2.s3.domain.tld", "s3.domain.tld", "domain.tld"]
tdy has quit [Remote host closed the connection]
kyrylo has joined #ruby
megamos has quit [Ping timeout: 268 seconds]
kyrylo has quit [Read error: Connection reset by peer]
sytherax has joined #ruby
drincruz has joined #ruby
sytherax has quit [Ping timeout: 245 seconds]
kyrylo has joined #ruby
Swyper has quit [Remote host closed the connection]
kyrylo has quit [Read error: Connection reset by peer]
<leftylink>
that is interesting. I will note that `s = "abcdefg"; s[(s.index(?b) + 1)..-1]` will leave every character after a `b`. then it would be possible to iterate on that process
<leftylink>
&>> s = "abcdefg"; s[(s.index(?b) + 1)..-1]
<adam12>
rubynoob: I wouldn't advocate the use of that exactly, but it might stir up some creative juices.
<rubynoob>
adam12, leftylink, thanks! It definitely points me to the right direction!
kyrylo has joined #ruby
<adam12>
I actually think I already wrote this before.. for my DNS api.
phroa has quit [Quit: Leaving]
ellcs has quit [Ping timeout: 250 seconds]
<rubynoob>
I'm thinking of using it in my dnsmasq puppet module to automatically fill `search` domains in resolv.conf of clients.
kyrylo has quit [Read error: Connection reset by peer]
<adam12>
rubynoob: I use this in my DNS API, but it suffers the issue that it doesn't drop the TLD. You'd have to drop the TLD from the last element in the array as above. The gist is arguably simpler tho since it maps and doesn't reduce. https://gist.github.com/d3dca3becf5266b0c9acbd446c87372b
<adam12>
tdy has joined #ruby
user_corrupt has joined #ruby
<adam12>
Fun problem tho. I remember enjoying it the last time I tried to solve it. I wonder if havenwood can golf on it at all.
AJA4350 has joined #ruby
AJA4350 has quit [Remote host closed the connection]
kyrylo has joined #ruby
<rubynoob>
adam12, true. I've tried a couple of different ways to solve it, somehow none of them looked appealing to me, but your gist solution.
kyrylo has quit [Read error: Connection reset by peer]
<leftylink>
since the `p` isn't being used at all in the gist, one would rather just use .with_index there
<leftylink>
if we talk about golf
<adam12>
leftylink: True.
cow[moo] has quit [Read error: Connection reset by peer]
<user_corrupt>
hi guys.. just trying to get ruby updated on my mac because making static site with jekyll requires it... I do "brew install ruby" and then add "export PATH=/usr/local/opt/ruby/bin:$PATH" to shell config (from inside project folder) then I do "which ruby" and "ruby -v".. version is then shown as updated, but reopening terminal then shows older version.. any ideas?
<user_corrupt>
I do "nano .bash_profile" from inside project folder
<user_corrupt>
and then add the sucker there
<user_corrupt>
is there a particular folder where correct file should exist?
<qbrd[m]>
yea, so you should do like a `nano ~/.bash_profile`
<user_corrupt>
ah, thankies
<qbrd[m]>
although on mac, isn't is just `~/.profile`?
<qbrd[m]>
it's the one in your home directory, aka `~`
linuus[m] has joined #ruby
<havenwood>
qbrd[m]: A macOS Bash login shell will load /etc/profile and then just load the first that exists of ~/.bash_profile, ~/.bash_login and ~/.profile.
<havenwood>
It'll be interesting with everyone going to zsh by default in the next version of macOS!
yalue has quit [Quit: Leaving]
<havenwood>
adam12: hmmm
yqt has joined #ruby
user_corrupt has quit [Remote host closed the connection]
Huck777 has joined #ruby
sytherax has joined #ruby
Ghosties3 has joined #ruby
CableNinja has joined #ruby
<CableNinja>
hey all, I'm having problems adding a custom function to a built-in class. I've done it before for Hash and File, without issue, but I cannot seem to do it with Dir, it just keeps telling me that theres no such method, despite having done exactly the same thing I've done in the others
AJA4350 has joined #ruby
kyrylo has joined #ruby
<qbrd[m]>
havenwood: huh. interesting. And I agree, the zsh change is going to be... interesting.
poontangmessiah_ has quit [Ping timeout: 245 seconds]
<qbrd[m]>
CableNinja: can you share what you have so far?
Huck777 has quit [Remote host closed the connection]
<havenwood>
CableNinja: I showed not traversing dotfile dirs just as an example. You could add a keyword argument for that, or drop the Find.prune line to just disable that behavior.
kyrylo has quit [Read error: Connection reset by peer]
Swyper has quit [Remote host closed the connection]
drnerdius has joined #ruby
admin123 has joined #ruby
tf2ftw has joined #ruby
AJA4350 has quit [Ping timeout: 246 seconds]
duderono_ has joined #ruby
duderonomy has quit [Ping timeout: 244 seconds]
kyrylo has joined #ruby
duderono_ has quit [Read error: Connection reset by peer]
kyrylo has quit [Read error: Connection reset by peer]
za1b1tsu has quit [Remote host closed the connection]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
<CableNinja>
havenwood, thanks for the info. I have a weird issue now
<havenwood>
CableNinja: Yeah?
<CableNinja>
if I run that Find.find line, it works, as it is. But if I put that in the Dir.entries_R definition, I only get the dirname as a return value
<CableNinja>
I really shouldnt be coding this atm..