havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.4 & 2.2.7: 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
ahrs has quit [Remote host closed the connection]
mint has joined #ruby
ahrs has joined #ruby
charliesome has joined #ruby
Pumukel has joined #ruby
raul782 has joined #ruby
JeanCarloMachado has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
raul782 has quit [Remote host closed the connection]
spicerack has joined #ruby
raul782 has joined #ruby
esObe_ has joined #ruby
cyphase has joined #ruby
duderonomy has quit [Ping timeout: 255 seconds]
esObe_ has quit [Ping timeout: 255 seconds]
marr has quit [Ping timeout: 240 seconds]
Lord_of_Life has quit [Excess Flood]
Lord_of_Life has joined #ruby
nankyokusei has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
wilbert has joined #ruby
mint has quit [Ping timeout: 260 seconds]
rgtk has quit [Ping timeout: 255 seconds]
nankyokusei has quit [Ping timeout: 255 seconds]
nitric_ has quit [Ping timeout: 255 seconds]
lxsameer has quit [Quit: WeeChat 1.7]
cisco has quit [Quit: Leaving.]
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hazelux has quit []
AndBobsYourUncle has joined #ruby
charliesome has joined #ruby
rakm has joined #ruby
cisco has joined #ruby
cisco has quit [Client Quit]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
mint has joined #ruby
cisco has joined #ruby
cisco has quit [Client Quit]
mint has quit [Max SendQ exceeded]
mint has joined #ruby
mint has quit [Max SendQ exceeded]
mint has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
Trynemjoel has quit [Ping timeout: 264 seconds]
cisco has joined #ruby
cisco has quit [Client Quit]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
cschneid_ has joined #ruby
jhack has joined #ruby
workmad3 has joined #ruby
eb0t_ has quit [Read error: Connection reset by peer]
def_jam has quit [Read error: Connection reset by peer]
eb0t_ has joined #ruby
def_jam has joined #ruby
cisco has joined #ruby
cisco has quit [Remote host closed the connection]
swills has quit [Quit: Leaving]
swills has joined #ruby
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cisco has joined #ruby
cisco has quit [Client Quit]
chrisgopher has quit [Remote host closed the connection]
Channel6 has joined #ruby
duderonomy has joined #ruby
outreachdan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cfec0b8d has quit [Remote host closed the connection]
BabyMario has joined #ruby
cschneid_ has quit [Remote host closed the connection]
jhack has quit [Quit: jhack]
beatdown has quit [Quit: ZNC 1.6.4 - http://znc.in]
nadir has quit [Quit: Connection closed for inactivity]
jenrzzz has quit [Ping timeout: 240 seconds]
BSaboia has joined #ruby
amclain has quit [Quit: Leaving]
workmad3 has quit [Ping timeout: 240 seconds]
hutch34 has joined #ruby
acalycine has joined #ruby
ryan_notabot has quit [Ping timeout: 252 seconds]
Trynemjoel has joined #ruby
_whitelogger has joined #ruby
PorcoRex has joined #ruby
<PorcoRex> Good evening.
cschneid_ has joined #ruby
mim1k has joined #ruby
cschneid_ has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 255 seconds]
mint has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 264 seconds]
Trynemjoel has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
claudevandort has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
hutch34 has quit [Ping timeout: 240 seconds]
impermanence has joined #ruby
impermanence has quit [Client Quit]
cfec0b8d has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
BSaboia has quit [Quit: Leaving]
libastral has quit [Ping timeout: 255 seconds]
libastral has joined #ruby
HoierM has quit [Quit: Leaving]
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
chrisseaton has quit [Quit: Connection closed for inactivity]
esObe_ has joined #ruby
rexb0t has joined #ruby
naprimer_2 has joined #ruby
genpaku has quit [Remote host closed the connection]
esObe_ has quit [Ping timeout: 252 seconds]
genpaku has joined #ruby
naprimer has quit [Ping timeout: 255 seconds]
nankyokusei has joined #ruby
jameser has joined #ruby
nankyokusei has quit [Ping timeout: 255 seconds]
antoniobeyah has quit [Quit: Connection closed for inactivity]
Trynemjoel has joined #ruby
milardovich has quit []
ThePortWhisperer has joined #ruby
<ThePortWhisperer> hello
<ThePortWhisperer> i was on version 2.4.0 and downgraded to 2.3.0
<ThePortWhisperer> when i do gem env home it says its looking at ..../rvm/gems/ruby-2.4.0
<ThePortWhisperer> i also did rbenv global 2.3.0
<ThePortWhisperer> what do i do about this wrong gem env home
Trynemjoel has quit [Ping timeout: 264 seconds]
Trynemjoel has joined #ruby
BabyMario has quit [Quit: bye]
<PorcoRex> rbenv and rvm are not compatible with each other. You need to uninstall one and install the other.
<PorcoRex> ThePortWhisperer, ^
<ThePortWhisperer> okay, after i uninsatll rvm then how do i fix the gem home
<PorcoRex> What do you mean by gem home?
rexb0t has quit [Quit: Mutter: www.mutterirc.com]
<ThePortWhisperer> the output of <gem env home>
<ThePortWhisperer> i was trying to remove rvm - rvm uninstall and rvm remove both return: Really? uninstall, all? See "rvm list" and limit the selection to something more sane please :)
<ThePortWhisperer> rvm list says : rvm rubies /n /n #no rvn rubies installed yet. try rvm help install.
<PorcoRex> Is rvm installed for your local user or globally?
<PorcoRex> when i do gem env home it says its looking at ..../rvm/gems/ruby-2.4.0 <- what's this full path?
<ThePortWhisperer> /root/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0
<PorcoRex> That doesn't look like the same path.
<ThePortWhisperer> hm
Suslov has joined #ruby
<ThePortWhisperer> okay after i ran that rvm remove and rvm uninstall i guess it jiggled something around
<ThePortWhisperer> even though it seemed to throw an error
<ThePortWhisperer> so i guess the issue has been fixed
<ThePortWhisperer> its now pointing to gems/2.3.0
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<PorcoRex> But in root's home dir. Are you purposefully doing that?
<ThePortWhisperer> yeah im just on some vm for a pentesting course
<PorcoRex> Alright.
__Yiota has joined #ruby
Jayson_Virissimo has quit []
t-recx has quit [Quit: t-recx]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
cschneid_ has joined #ruby
<Aeyris> Heh, you must be using Kali.
<Aeyris> The only somewhat mainstream distribution that completely throws the Unix user access model out the window is the one geared towards "security people".
<ThePortWhisperer> Aeyris, :)
cschneid_ has quit [Ping timeout: 255 seconds]
raspado has quit [Quit: Leaving...]
<ThePortWhisperer> Aeyris, we just use these VM's to wreck some boxes on a vpn and then dump them
<Aeyris> ThePortWhisperer: OSCP course?
<ThePortWhisperer> yes
<Aeyris> Did it a while ago. Good fun.
<Aeyris> OS-101-05669
__Yiota has quit [Ping timeout: 240 seconds]
<ThePortWhisperer> Aeyris, twisted definition of fun :)
<ThePortWhisperer> wow, they dont use that format anymore
<Aeyris> Heh.
<Aeyris> What's the new format?
<ThePortWhisperer> im guessing you would be considered OS-5669 now. im OS-24826.
<Aeyris> Nah.
<Aeyris> OS-19579.
<Aeyris> The -101- format is for completion.
FMan has quit [Quit: Nettalk6 - www.ntalk.de]
<Aeyris> At least, as far as I'm aware.
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
acalycine has quit [Quit: bye]
jenrzzz has quit [Ping timeout: 240 seconds]
<ThePortWhisperer> AHHH, I see, i didn't realize that was the grad format as I haven't got mine yet.
<Aeyris> You'll get there. ;)
<ThePortWhisperer> alright back to pwning, #offsec has some good banter, lots of grads as well if you want to add to autojoin
gix has quit [Ping timeout: 252 seconds]
<ThePortWhisperer> otherwise catch you in here next time i muck up my msfconsole gems
<Aeyris> Just joined. Hit me up if you have any questions about the lab. :)
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shinnya has quit [Ping timeout: 240 seconds]
gix has joined #ruby
claudevandort has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wilbert has quit [Ping timeout: 240 seconds]
esObe_ has joined #ruby
wilbert has joined #ruby
Suslo has joined #ruby
Suslo has quit [Client Quit]
wilbert has quit [Client Quit]
Suslo has joined #ruby
rakm has joined #ruby
esObe_ has quit [Ping timeout: 240 seconds]
xall has joined #ruby
Suslov has quit [Ping timeout: 255 seconds]
SteenJobs has joined #ruby
SteenJobs has quit [Ping timeout: 240 seconds]
mjuszczak has joined #ruby
mjuszczak has quit [Client Quit]
mjuszczak has joined #ruby
Robtop__ is now known as pwnd_nsfw
mjuszczak has quit [Client Quit]
xrcode has joined #ruby
mim1k has joined #ruby
hutch34 has joined #ruby
herbmillerjr has quit [Quit: Konversation terminated!]
raul782 has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 240 seconds]
anisha has joined #ruby
herbmillerjr has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
PorcoRex has quit [Quit: Leaving]
patarr has joined #ruby
raul782 has joined #ruby
spyder55 has joined #ruby
spyder55 has quit [Client Quit]
patarr has quit [Ping timeout: 255 seconds]
preyalone has quit [Quit: Connection closed for inactivity]
cam27 has joined #ruby
darwish_ has quit [Remote host closed the connection]
ThePortWhisperer has quit [Remote host closed the connection]
Channel6 has quit [Quit: Leaving]
nankyokusei has joined #ruby
AndBobsYourUncle has joined #ruby
nankyokusei has quit [Ping timeout: 255 seconds]
JoshS has joined #ruby
wilbert has joined #ruby
renchan has joined #ruby
mim1k has joined #ruby
nanoz has joined #ruby
joeop596 has joined #ruby
mim1k has quit [Ping timeout: 255 seconds]
joeop596 has left #ruby [#ruby]
cschneid_ has joined #ruby
Bock has joined #ruby
cschneid_ has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
cam27 has quit [Quit: cam27]
Suslo has quit [Quit: Leaving...]
jusa has joined #ruby
jeyraof^mbpr has joined #ruby
nanoz has quit [Ping timeout: 252 seconds]
AndBobsYourUncle has quit [Ping timeout: 240 seconds]
_djbkd has joined #ruby
armando has quit [Ping timeout: 252 seconds]
nanoz has joined #ruby
SteenJobs has joined #ruby
armando has joined #ruby
esObe_ has joined #ruby
SteenJobs has quit [Client Quit]
grh has joined #ruby
esObe_ has quit [Ping timeout: 240 seconds]
jud has joined #ruby
jud has joined #ruby
jud has quit [Changing host]
minimalism is now known as gr
domgetter has joined #ruby
jgt2 has joined #ruby
xall has quit [Ping timeout: 255 seconds]
AustinMatherne has quit [Remote host closed the connection]
mazeinmaze_ has joined #ruby
xall has joined #ruby
AustinMatherne has joined #ruby
armando has quit [Ping timeout: 255 seconds]
armando has joined #ruby
Xiti has quit [Quit: Xiti]
enterprisey_ has joined #ruby
hutch34 has joined #ruby
enterprisey has quit [Ping timeout: 255 seconds]
_tk421_ has quit [Read error: Connection reset by peer]
solocshaw has joined #ruby
User458764 has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
Guest96 has quit [Remote host closed the connection]
govg has quit [Ping timeout: 260 seconds]
Guest96 has joined #ruby
raul782 has quit []
eb0t has joined #ruby
eblip has joined #ruby
patarr has joined #ruby
jeffaustin81 has joined #ruby
eb0t_ has quit [Ping timeout: 255 seconds]
def_jam has quit [Ping timeout: 255 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
muelleme_ has joined #ruby
patarr has quit [Ping timeout: 255 seconds]
skweek has joined #ruby
bigtawm has joined #ruby
mazeinmaze_ has quit [Ping timeout: 240 seconds]
<bigtawm> Hey everyone. I want to make a bot for slack that reads from a google doc and alerts a channel when a row of data has been added along with a formatted output of the data in the chat. Is anyone familiar with slack and google drive apis? Also, how would I host this code so that it is always running?
wilbert has quit [Ping timeout: 255 seconds]
chouhoul_ has joined #ruby
<dminuoso> bigtawm: The drive api has push notifications you can subscribe to.
chouhoulis has quit [Ping timeout: 252 seconds]
solocshaw has quit [Ping timeout: 255 seconds]
solocshaw1 has joined #ruby
enterprisey_ has quit [Remote host closed the connection]
solocshaw1 is now known as solocshaw
<bigtawm> This looks like exactly what I need cause the google sheet gets automatically populated through the submission of a form
<bigtawm> Would I have to create a sinatra app to take the post request?
<dminuoso> bigtawm: That is how webhooks work, yes.
<j416> Isn't there an ifttt thing for that
<dminuoso> If sinatra is too much work for you, pick a different hobby. Like professional excel spreadsheeting.
<bigtawm> Okay cool. What would you recommend for hosting this app? Im a CS student so I havent put anything out on production like this.
pwnd_nsfw` has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
jeffaustin81 has quit [Remote host closed the connection]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dminuoso> bigtawm: No idea honestly. I know heroku has some free plans but they are limited. You might try #rubyonrails - much more likely to get an adequate answer there.
esObe_ has joined #ruby
<bigtawm> Okay, thanks I appreciate the help
pwnd_nsfw has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
govg has joined #ruby
nanoz has quit [Ping timeout: 245 seconds]
esObe_ has quit [Ping timeout: 255 seconds]
nankyokusei has joined #ruby
arooni has quit [K-Lined]
DarkBushido has quit [K-Lined]
epochwolf has quit [K-Lined]
GGMethos has quit [K-Lined]
nankyokusei has quit [Ping timeout: 255 seconds]
epochwolf has joined #ruby
DarkBushido has joined #ruby
DarkBushido has joined #ruby
DarkBushido has quit [Changing host]
arooni has joined #ruby
muelleme_ has quit [Ping timeout: 240 seconds]
grh has quit [Ping timeout: 260 seconds]
solocshaw has quit [Quit: solocshaw]
solocshaw has joined #ruby
GGMethos has joined #ruby
alfiemax has joined #ruby
dionysus69 has joined #ruby
solocshaw has quit [Ping timeout: 240 seconds]
conta has joined #ruby
User458764 has joined #ruby
pwnd_nsfw` is now known as pwnd_nsfw
Nilium has quit [Ping timeout: 246 seconds]
jpterry has quit [Ping timeout: 268 seconds]
Mortomes|Work has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 260 seconds]
xenops has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xenops has joined #ruby
xenops has quit [Client Quit]
xenops has joined #ruby
xrcode has quit [Remote host closed the connection]
xenops has quit [Client Quit]
xrcode has joined #ruby
xenops has joined #ruby
xenops has quit [Client Quit]
xenops has joined #ruby
xenops has quit [Client Quit]
xenops has joined #ruby
xenops has quit [Client Quit]
Burgestrand has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jgnagy has quit [Remote host closed the connection]
solocshaw has joined #ruby
Arpanet69 has joined #ruby
jgnagy has joined #ruby
User458764 has joined #ruby
pulkit4tech has joined #ruby
pulkit4tech has left #ruby [#ruby]
lenwood has joined #ruby
_djbkd has quit [Quit: My people need me...]
jameser_ has joined #ruby
cfec0b8d1 has joined #ruby
pulkit4tech has joined #ruby
cfec0b8d has quit [Ping timeout: 255 seconds]
jameser has quit [Ping timeout: 240 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Burgestrand has quit [Quit: Closing time!]
grh has joined #ruby
anisha has quit [Ping timeout: 252 seconds]
andikr has joined #ruby
dionysus69 has quit [Ping timeout: 245 seconds]
yuppie has joined #ruby
<yuppie> hi all
dionysus69 has joined #ruby
<alfiemax> hey
mark_66 has joined #ruby
<yuppie> whats up with this? https://pastebin.com/cjycMkBf
<ruby[bot]> yuppie: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/9248a3ead1403f495dc31616b68b0b3b
<ruby[bot]> yuppie: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<yuppie> im trying to install aws-sdk-v1 1.66
djbkd_ has joined #ruby
<apeiros> try with a non-EOL ruby version?
<yuppie> which one is non-EOL?
<yuppie> 2.2.1?
<apeiros> I think we're at 2.2+
<apeiros> 2.2.1 is an old version of the 2.2 series
<yuppie> and how can i upgrade from 2.2.1 to the latest? im using rvm
manjaro-kde5 has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
* dminuoso blames rvm
<apeiros> rvm install ruby-2.2.7
lenwood has quit [Ping timeout: 255 seconds]
<apeiros> you should probably also update your rvm installation
<yuppie> and how do i do that?
esObe_ has joined #ruby
<apeiros> rvm get stable
<apeiros> do you need a spoon along with that?
<yuppie> silver, pls
<apeiros> note that 2.2 is soon to be EOLed too
<apeiros> 2.4 is the current version
<apeiros> (2.4.1)
anisha has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
manjaro-kde5 has quit [Ping timeout: 252 seconds]
djbkd_ has quit [Remote host closed the connection]
User458764 has joined #ruby
alfiemax has quit [Remote host closed the connection]
chichou has joined #ruby
Guest96 has quit [Remote host closed the connection]
hutch34 has joined #ruby
Guest96 has joined #ruby
Paraxial has joined #ruby
uogkco has joined #ruby
hutch34 has quit [Ping timeout: 245 seconds]
aufi has joined #ruby
xall has quit [Ping timeout: 240 seconds]
djbkd_ has joined #ruby
patarr has joined #ruby
Burgestrand has joined #ruby
jamesaxl has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jdm has joined #ruby
patarr has quit [Ping timeout: 255 seconds]
xrcode has quit [Remote host closed the connection]
xrcode has joined #ruby
jaequery has joined #ruby
flying has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
asperon has joined #ruby
mikecmpbll has joined #ruby
<asperon> hi, i have an array that looks like this: https://gist.github.com/anonymous/3ae37bbad75a3b1309f6cc288b6f725a, how would i retrive a hash from it given its name if it exists?
DARPA has joined #ruby
<asperon> i have tried fonts.detect {|e| e == text_field['font'].capitalize} to no avail
jameser_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aufi has quit [Ping timeout: 245 seconds]
jameser has joined #ruby
<tobiasvl> asperon: not sure I follow. what is text_field?
Arpanet69 has quit [Ping timeout: 252 seconds]
<asperon> tobiasvl: its just a text string with the font name
<asperon> ie, Tangerine for example
<asperon> so i want to match it agains the hash "key" or whatever it is called
Silthias has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
DARPA has quit [Ping timeout: 252 seconds]
<elomatreb> asperon: Hash#key? may be useful
<asperon> elomatreb: right, thats probably it, via select?
<herwin> is there any reason this data is an array of hashes that all have 1 key, and not just a hash?
<asperon> herwin: its used like this in RMagic, and i would prefer to reuse it
<tobiasvl> asperon: since the hashes are nested you'd have to do something like this: fonts.detect {|e| e.detect {|f,_| f == text_field['font'].capitalize }}
<tobiasvl> but Hash#key? is better
<elomatreb> select returns an array with the elements that satisfy the condition, find/detect will return the first element that matches, even if there are more
LTommy has joined #ruby
<tobiasvl> also a good point
Arpanet69 has joined #ruby
<asperon> elomatreb: ok, so i should use detect then but with | key, hash |?
<asperon> that seemed to workj
<asperon> thanks
<elomatreb> Your top-level structure is an array, it doesn't have any keys, only values
mim1k has joined #ruby
<asperon> yes, but the values are hashes, and detect wouldn't match the string vs the hash key
<herwin> fonts.flat_map(&:to_a).to_h makes the structure much easier to work with
<tobiasvl> perhaps asperon meant the nested detect that I suggested
<tobiasvl> which works
<asperon> tobiasvl: exactly
agit0 has joined #ruby
<mikecmpbll> why does `bundle gem ..` create a /bin dir and then set `spec.bindir = 'exe'` in the gemspec?
Arpanet69 has quit [Ping timeout: 252 seconds]
kassav_ has joined #ruby
LTommy has quit [Quit: leaving]
Guest96 has quit [Remote host closed the connection]
aufi has joined #ruby
<elomatreb> bin is for utility scripts used during dev, exe for actual exposed executables iirc
Guest96 has joined #ruby
jsrn_ has joined #ruby
<mikecmpbll> ah okidokes, makes sense.
Qchmqs has joined #ruby
Beams has joined #ruby
valkyrka has joined #ruby
charliesome has joined #ruby
marr has joined #ruby
nankyokusei has joined #ruby
agit0 has quit [Ping timeout: 240 seconds]
cfec0b8d1 has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 245 seconds]
asperon has quit [Remote host closed the connection]
LTommy has joined #ruby
LTommy has quit [Client Quit]
LTommy has joined #ruby
solocshaw has quit [Ping timeout: 240 seconds]
anisha has quit [Quit: This computer has gone to sleep]
<Qchmqs> what's the channel for hanami the framework ?
<canton7> Qchmqs, looking at their website,it's this gitter channel: https://gitter.im/hanami/chat
djbkd_ has quit [Remote host closed the connection]
<canton7> (down at the bottom of the homepage, see the "Chat" link)
<Qchmqs> I'm not looking for chat, was just looking for their freenode channel
<Qchmqs> if they had one
<Qchmqs> I like joining channels and just looking occasionally for interesting talk
xall has joined #ruby
nofxxx has joined #ruby
LTommy has quit [Quit: Lost terminal]
nofxxxx has quit [Ping timeout: 260 seconds]
LTommy has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lxsameer has joined #ruby
ski7777 has joined #ruby
<chichou> yuppie: did you try with installing libxml2 with homebrew?
<chichou> I assume you are on mac os x?
<yuppie> yeah osx
<yuppie> and i already have that lib installed
govg has quit [Quit: leaving]
biberu has joined #ruby
govg has joined #ruby
<chichou> so the first attempt try to use its own libxml2 and the second one cannot find it on your system, I assume that you didn't brew link it then?
<chichou> as it's a keg-only formula
<yuppie> i've linked it now
<yuppie> invalid gem: package is corrupt, exception while verifying: undefined method `path2class'
srandon111 has joined #ruby
<srandon111> hello all, is it true that threading is discouraged in ruby ?
<chichou> yuppie: it probably doesn't matter but the first gists you are using 2.2.7 and the last one 2.0.0, is it intended?
ketan has joined #ruby
<yuppie> chichou yeah, im trying to find one that works
<yuppie> in the end, it doesn't really matter, i need a ruby with aws-sdk-v1 1.67 installed
<yuppie> but im having some troulble getting there
<chichou> trying on my system
cschneid_ has joined #ruby
jenrzzz has joined #ruby
manjaro-kde5 has joined #ruby
Snickers has joined #ruby
cschneid_ has quit [Remote host closed the connection]
jespada has joined #ruby
<yuppie> rvm list
cschneid_ has joined #ruby
<chichou> using another version of ruby but still
<chichou> I'm using rbenv
<yuppie> what version are you on
<chichou> it's in the gist but 2.4
<chichou> 2.4.1 to be precise
jespada has quit [Client Quit]
<yuppie> alright i'll try to use that
jespada has joined #ruby
Guest96 has quit [Remote host closed the connection]
Guest96 has joined #ruby
cschneid_ has quit [Remote host closed the connection]
bob_f has quit [Ping timeout: 256 seconds]
LTommy has quit [Ping timeout: 245 seconds]
<dminuoso> srandon111: Not necessarily.
<yuppie> im not sure what the issue really is
<dminuoso> srandon111: You just have to understand the limitations of the GVL. As long as you use multithreading to obtain parallelism *or* concurrent blocking IO then its fine.
LTommy has joined #ruby
<dminuoso> And woops. I mixed these two up right there.
<dminuoso> Concurrent actions are just fine with Ruby, threads will give you that. But if you want to obtain true parallelism, you can only get this with I/O for the most part.
jdbrowne has joined #ruby
<chichou> or you can use JRuby but that's another topic I guess
<chichou> yuppie: still no luck?
xrcode has quit [Read error: Connection reset by peer]
anisha has joined #ruby
cfec0b8d has joined #ruby
<dminuoso> 11:21 < chichou> or you can use JRuby but that's another topic I guess
<dminuoso> You may talk about JRuby in here.
<dminuoso> ;-)
<herwin> but it's not mentioned in the topic
nadir has joined #ruby
<chichou> yuppie what's your psych's version, out of curiosity?
<yuppie> switching to ruby 2.4.0
<yuppie> same error
<yuppie> encoding.c:815:27: warning: cast from 'unsigned char *' to 'unsigned short *' increases required alignment from 1 to 2 [-Wcast-align]
rgtk has joined #ruby
jespada has quit [Quit: WeeChat 1.7]
jusa has quit [Ping timeout: 240 seconds]
<yuppie> i guess my xcode stuff needs to be updated?
<chichou> you already checked there https://github.com/sparklemotion/nokogiri/issues/1483 I guess :-)
jaruga has joined #ruby
manjaro-kde5 has quit [Ping timeout: 240 seconds]
<yuppie> amazing
ferr1 has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
jdbrowne has quit [Ping timeout: 240 seconds]
Qchmqs has quit [Ping timeout: 240 seconds]
ledestin has joined #ruby
<yuppie> well i got it all installed now
dhollinger has quit [Ping timeout: 256 seconds]
<yuppie> but things still arent working as expected
sylario has joined #ruby
<chichou> sounds like my everyday struggles
Ishido has joined #ruby
MrBismuth has joined #ruby
impermanence has joined #ruby
MrBusiness has quit [Ping timeout: 246 seconds]
Ishido has quit [Client Quit]
impermanence has quit [Client Quit]
kent\n has quit [Quit: No Ping reply in 180 seconds.]
Ishido has joined #ruby
kent\n has joined #ruby
hutch34 has joined #ruby
patarr has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ishido has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 252 seconds]
pandaant has joined #ruby
LTommy has quit [Quit: Lost terminal]
<yuppie> why must i hate ruby so much
<txdv> why do you hate ruby
<yuppie> because i dont know how to solve these errors
<txdv> what is this wulfcli?
<yuppie> in-house bullshit
<txdv> is the developer of it in da house?
<yuppie> nope
<txdv> you are just defining a 'constant' called LIB_DIR again
dhollinger has joined #ruby
Qchmqs has joined #ruby
<yuppie> how do i stop that constant
<txdv> ruby --version
<yuppie> ruby 2.0.0p481 (2014-05-08 revision 45883) [x86_64-darwin13.1.0]
<yuppie> co-worker is on this version
<yuppie> and all is well
<txdv> where do you work?
<yuppie> a google company
arne_ has joined #ruby
<arne_> can i get ruby to treat "\r" as new line too
Ishido has joined #ruby
ryan_notabot has joined #ruby
<Burgestrand> arne_ where?
Ishido has quit [Read error: Connection reset by peer]
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
nankyokusei has joined #ruby
tvw has joined #ruby
ryan_notabot has quit [Ping timeout: 245 seconds]
<arne_> f.readline
<arne_> Burgestrand:
kristofferR has joined #ruby
<Burgestrand> arne_ You can pass a separator to it: http://ruby-doc.org/core-2.4.0/IO.html#method-i-readline
kristofferR has quit [Read error: Connection reset by peer]
kristofferR has joined #ruby
nankyokusei has quit [Ping timeout: 245 seconds]
kristofferR has quit [Client Quit]
kristofferR has joined #ruby
cisco has joined #ruby
cisco has quit [Max SendQ exceeded]
xall has quit [Ping timeout: 260 seconds]
cisco has joined #ruby
esObe_ has quit [Remote host closed the connection]
esObe_ has joined #ruby
denniszelada has joined #ruby
<denniszelada> Hello I am getting an issue in production, we are using kafka 0.9 and ruby 2.3, we have two brokers and one partition for the topic, and we have just one consumer with a group_id, but today we got an error which says no messages in the partition, seems like the subscribed_partitions of the group is empty, do you guys have any idea of what could be wrong?
Ishido has joined #ruby
toretore has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
esObe_ has quit [Ping timeout: 255 seconds]
pandaant has quit [Remote host closed the connection]
ledestin has joined #ruby
<Qchmqs> denniszelada: one thing you obviously have wrong is that your dev env isn't exactly like your production one
<Qchmqs> and if you added a staging proccess this should've been caught early
Ishido has quit [Ping timeout: 252 seconds]
impermanence has joined #ruby
shinnya has joined #ruby
impermanence has quit [Client Quit]
ledestin has quit [Ping timeout: 240 seconds]
patarr has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<denniszelada> @Qchmqs disclaimer I didn’t did this I am just trying to fix what people do
tvw has quit [Ping timeout: 240 seconds]
pandaant has joined #ruby
pandaant has quit [Remote host closed the connection]
patarr has quit [Ping timeout: 240 seconds]
valkyrka has quit [Quit: valkyrka]
JeanCarloMachado has quit [Ping timeout: 252 seconds]
Guest96 has quit [Remote host closed the connection]
chichou has quit [Read error: Connection reset by peer]
uogkco has quit [Remote host closed the connection]
Guest96 has joined #ruby
denniszelada has quit [Quit: denniszelada]
gusrub has quit [Ping timeout: 240 seconds]
chichou has joined #ruby
ahrs has quit [Ping timeout: 240 seconds]
cisco has quit [Quit: Leaving.]
Siyfion has joined #ruby
ahrs has joined #ruby
cisco has joined #ruby
cisco has quit [Max SendQ exceeded]
cfec0b8d has quit [Quit: Leaving.]
cisco has joined #ruby
cisco has quit [Client Quit]
millerti has joined #ruby
cisco has joined #ruby
cisco has quit [Remote host closed the connection]
cschneid_ has joined #ruby
tvw has joined #ruby
cisco has joined #ruby
Guest96 has quit [Remote host closed the connection]
cisco has quit [Client Quit]
Guest96 has joined #ruby
cschneid_ has quit [Ping timeout: 255 seconds]
cisco has joined #ruby
am55 has quit [Remote host closed the connection]
ixti has joined #ruby
claudevandort has joined #ruby
jusa has joined #ruby
jusa has quit [Ping timeout: 240 seconds]
anisha has quit [Quit: Leaving]
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ldnunes has joined #ruby
am55 has joined #ruby
<arne_> Burgestrand: thanks alot, can i also give it multiple seperators?
ldnunes has quit [Client Quit]
esObe_ has joined #ruby
ctompkinson has quit [Ping timeout: 255 seconds]
<arne_> well, doesn't look like it
ctompkinson has joined #ruby
toretore has quit [Ping timeout: 255 seconds]
esObe_ has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
am55 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
denniszelada has joined #ruby
jeyraof^mbpr has quit [Quit: This computer has gone to sleep]
synthroid has joined #ruby
kassav_ has quit [Ping timeout: 240 seconds]
chichou has quit [Ping timeout: 260 seconds]
synthroi_ has joined #ruby
erlend has quit [Ping timeout: 264 seconds]
mim1k has quit [Ping timeout: 240 seconds]
am55 has joined #ruby
erlend has joined #ruby
synthroid has quit [Ping timeout: 260 seconds]
ctompkinson has quit [Ping timeout: 240 seconds]
andikr has quit [Ping timeout: 245 seconds]
ctompkinson has joined #ruby
ldnunes has joined #ruby
__Yiota has joined #ruby
andikr has joined #ruby
denniszelada has quit [Quit: denniszelada]
Burgestrand has quit [Ping timeout: 240 seconds]
Mortomes|Work has quit [Ping timeout: 260 seconds]
conta has quit [Ping timeout: 240 seconds]
tvw has quit [Read error: Connection reset by peer]
tvw has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kassav_ has joined #ruby
Arpanet69 has joined #ruby
chichou has joined #ruby
chichou has quit [Client Quit]
Guest96 has quit [Remote host closed the connection]
Guest96 has joined #ruby
jusa has joined #ruby
Lord_of_Life has quit [Excess Flood]
conta has joined #ruby
gnufied has quit [Ping timeout: 255 seconds]
Lord_of_Life has joined #ruby
charliesome has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
nankyokusei has joined #ruby
conta has quit [Read error: Connection reset by peer]
conta has joined #ruby
mim1k has joined #ruby
<yuppie> im getting mixed messages about installing nokogiri
<yuppie> use these flags, dont use these flags, link it, dont link it
<yuppie> what the fuck is the problem with ruby these days
Burgestrand has joined #ruby
<Burgestrand> arne_ No, unfortunately if you need to do something fancy I believe you might have to read/buffer/split for yourself. If it's not a problem to load the entire file in memory, I'd simply do `File.read(path).split(/regex/)` and be done with it.
jameser has joined #ruby
nankyokusei has quit [Ping timeout: 245 seconds]
jusa has quit [Ping timeout: 240 seconds]
<yuppie> gem install nokogiri -v 1.6.3.1 -- --with-iconv-lib=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/lib --with-iconv-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include
<arne_> Burgestrand: thanks alot
yurikoles has joined #ruby
claudevandort has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AlexRussia has quit [Ping timeout: 240 seconds]
<arne_> Burgestrand: do you have experience with guessing these things?
<arne_> i am having a csv import in my app
aupadhye has joined #ruby
<Burgestrand> arne_ I am a professional guesser
<arne_> and people do stuff like ..\r, and the col_sep is not always defined
futilegames has joined #ruby
<Burgestrand> arne_ Have you tried looking at the built-in CSV capabilities of Ruby to see if they're sufficient for your needs? http://ruby-doc.org/stdlib-2.4.0/libdoc/csv/rdoc/CSV.html
<arne_> yes, i am using csv.parse(file.read,col_sep:';') right now
<arne_> but col_sep needs to be guessed, atleast
gnufied has joined #ruby
__Yiota has joined #ruby
DARPA has joined #ruby
esObe_ has joined #ruby
rotty_ has quit [Quit: ZNC 1.6.3+deb1 - http://znc.in]
kristofferR has joined #ruby
manjaro-kde5 has joined #ruby
Arpanet69 has quit [Ping timeout: 240 seconds]
cisco has quit [Quit: Leaving.]
futilegames has quit [Quit: futilegames]
esObe_ has quit [Ping timeout: 252 seconds]
bigkevmcd has joined #ruby
lele has quit [Ping timeout: 252 seconds]
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
lele has joined #ruby
loechel has joined #ruby
loechel has quit [Remote host closed the connection]
Pumukel has quit [Read error: Connection reset by peer]
loechel has joined #ruby
workmad3 has joined #ruby
bkxd has joined #ruby
ldnunes has quit [Quit: Leaving]
ldnunes has joined #ruby
ramortegui has joined #ruby
ctompkinson has quit [Ping timeout: 240 seconds]
ctompkinson has joined #ruby
gr has quit [Quit: gr]
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
<apeiros> arne_: read the first ~10K, count ; vs ,
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skweek has quit [Ping timeout: 260 seconds]
<apeiros> of course, this will fail if somebody embeds a , separated csv in a ; separated csv :D
<apeiros> (there are other ways to guess, but they're more difficult to pull off)
DARPA has quit [Ping timeout: 255 seconds]
__Yiota has joined #ruby
bkxd has quit [Ping timeout: 268 seconds]
chichou has joined #ruby
xall has joined #ruby
grh has quit [Ping timeout: 260 seconds]
tvw has quit [Remote host closed the connection]
tvw has joined #ruby
jameser has joined #ruby
xenops has joined #ruby
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
User458764 has joined #ruby
srandon111 has quit [Quit: Page closed]
rgr has joined #ruby
kdfarn has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
xall has quit [Ping timeout: 255 seconds]
chichou has quit [Ping timeout: 240 seconds]
Ishido has joined #ruby
ctompkinson has quit [Read error: Connection reset by peer]
pupsicle has joined #ruby
__Yiota has joined #ruby
DLSteve has joined #ruby
SuperLag_ has joined #ruby
conta1 has joined #ruby
conta has quit [Read error: Connection reset by peer]
conta1 is now known as conta
am55 has quit [Quit: Textual IRC Client: www.textualapp.com]
SuperLag has quit [Ping timeout: 255 seconds]
govg has quit [Ping timeout: 252 seconds]
cpruitt has quit [Quit: cpruitt]
claudevandort has joined #ruby
jonjitsu has quit [Quit: Leaving]
cpruitt has joined #ruby
manjaro-kde5 has quit [Ping timeout: 255 seconds]
dlitvak has joined #ruby
pwnd_nsfw` has joined #ruby
pwnd_nsfw has quit [Ping timeout: 252 seconds]
yeticry_ has joined #ruby
rgr has quit [Quit: rgr]
yeticry has quit [Ping timeout: 245 seconds]
sanguisdex has joined #ruby
<sanguisdex> anyone have an alais/function that when they run rubocop it opens the reported files in their editor?
jonjitsu has joined #ruby
jon_ has joined #ruby
jon_ has quit [Remote host closed the connection]
kdfarn has quit [Remote host closed the connection]
SuperLag_ is now known as SuperLag
workmad3 has quit [Ping timeout: 268 seconds]
SuperLag has quit [Changing host]
SuperLag has joined #ruby
hndk has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ldnunes has quit [Ping timeout: 260 seconds]
z64 has quit [Quit: WeeChat 1.6]
binaryplease has joined #ruby
workmad3 has joined #ruby
t-recx has joined #ruby
hndk has quit [Quit: Leaving]
jonjitsu has quit [Remote host closed the connection]
Doow has joined #ruby
ldnunes has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
ForeignBiscuit has joined #ruby
GinoManWrx has joined #ruby
ResidentBiscuit has quit [Ping timeout: 252 seconds]
papillon has joined #ruby
GinoManWorks has quit [Ping timeout: 252 seconds]
papillon has quit [Remote host closed the connection]
<arne_> apeiros: ah yes, but then i don't know what the line seperator is
<arne_> i should've never gotten into it
papillon_ has joined #ruby
nankyokusei has joined #ruby
VladGh has quit [Ping timeout: 256 seconds]
<apeiros> arne_: it's not that difficult to look for/count \r\n, \r, \n
<apeiros> though with line endings I'd probably just look for the first occurrence of /\r?\n|\r/
chouhoul_ has joined #ruby
Lord_of_Life has quit [Excess Flood]
narval has joined #ruby
Lord_of_Life has joined #ruby
nankyokusei has quit [Ping timeout: 255 seconds]
chouhoulis has quit [Ping timeout: 255 seconds]
papillon_ has quit [Quit: Mutter: www.mutterirc.com]
VladGh has joined #ruby
impermanence has joined #ruby
AlexRussia has joined #ruby
Lord_of_Life has quit [Excess Flood]
skweek has joined #ruby
Lord_of_Life has joined #ruby
Suslov has joined #ruby
bkxd has joined #ruby
papillon_ has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
mooser has joined #ruby
esObe_ has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
patarr has joined #ruby
war_pigs has joined #ruby
jpterry has joined #ruby
antoniobeyah has joined #ruby
esObe_ has quit [Ping timeout: 252 seconds]
cdg has joined #ruby
domgetter has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 252 seconds]
synthroi_ has quit [Remote host closed the connection]
war_pigs has quit [Quit: later... computer is sleeping]
<impermanence> I'm not quite sure why this error is being thrown: https://gist.github.com/jonassteinberg1/89a2a679b2b2ec5ccf991824788dea48
nobitanobi has joined #ruby
nowhere_man has quit [Ping timeout: 255 seconds]
war_pigs has joined #ruby
<dminuoso> impermanence: Let's have the full code.
rippa has joined #ruby
tvw has quit []
gizmore has joined #ruby
yokel has quit [Quit: Lost terminal]
yokel_ has joined #ruby
<ytti> 7/win 29
yokel_ is now known as yokel
synthroid has joined #ruby
workmad3 has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
loechel has quit [Read error: Connection reset by peer]
Puffball has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
cfec0b8d has joined #ruby
Puffball has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
jgnagy has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
jgnagy has joined #ruby
cschneid_ has joined #ruby
govg has joined #ruby
shinnya has quit [Ping timeout: 240 seconds]
__Yiota has joined #ruby
safetypin has joined #ruby
aufi has quit [Quit: Leaving]
binaryplease has quit [Ping timeout: 255 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
papillon_ has quit [Quit: Mutter: www.mutterirc.com]
papillon_ has joined #ruby
User458764 has joined #ruby
papillon_ has quit [Client Quit]
b3l914n has joined #ruby
jaruga has quit [Read error: Connection reset by peer]
jaruga has joined #ruby
mazeinmaze_ has joined #ruby
dhollinger has quit [Ping timeout: 240 seconds]
<sanguisdex> apeiros: in vim the line seperator is just :. so vim foo.rb:44
<impermanence> dminuso: sorry for the delay. sure, no problem. but everything else is commented out.
<impermanence> fyi.
griffindy has joined #ruby
papillon_ has joined #ruby
papillon_ has quit [Client Quit]
ForeignBiscuit is now known as PresidentBiscuit
JoshS has quit [Quit: Leaving]
<dminuoso> impermanence: The stacktrace and your code do not match.
<dminuoso> Try again.
chichou has joined #ruby
mazeinmaze_ has quit [Ping timeout: 255 seconds]
<dminuoso> OOr..
<dminuoso> impermanence: This is what you are calling.
griffindy has quit [Ping timeout: 240 seconds]
<dminuoso> impermanence: This is what you probably meant to call.
roshanavand has joined #ruby
<dminuoso> impermanence: Probably on the instance STDIN ;-)
mzo has joined #ruby
patarr has joined #ruby
<dminuoso> Sorry about that remark, I can see how this might have been misleading.
souljah has joined #ruby
Snickers has quit [Ping timeout: 240 seconds]
chichou has quit [Ping timeout: 240 seconds]
<souljah> Hello, I'm having some issues after a recent firmware update, My reverse-ssh functionallity is no longer responding to 'sudo service reverse-ssh start'
<souljah> It is throwin an error of /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- daemons (LoadError)
<souljah> Someone help pls, Ruby is not my area
<havenwood> souljah: gem install daemons # it's looking for the daemons gem
Burgestrand has quit [Quit: Closing time!]
<souljah> havenwood: The daemons gem is installed, that's the issue
<havenwood> souljah: Is it in your Gemfile (are you using a Gemfile.lock?)
_whitelogger has joined #ruby
<souljah> havenwood: The entries for Daemons within Gemfile.lock is: daemons (1.1.9)
<souljah> daemons
<souljah> daemons (>= 1.0.9)
<havenwood> souljah: If it isn't, try a `gem 'daemons'` in your Gemfile then run: bundle
spicerack has joined #ruby
sanguisdex has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<havenwood> souljah: Try prefixing the command you're getting the error with with `bundle exec`. If that doesn't work confirm there aren't multiple versions of Ruby in play.
dionysus69 has joined #ruby
<souljah> havenwood: How do I check current installation versions of ruby?
<havenwood> souljah: ruby -v
<havenwood> souljah: command -v ruby
<souljah> ruby 2.0.0p481 (2014-05-08 revision 45883) [x86_64-linux]
<havenwood> souljah: Yeah, multiple versions of Ruby. You were showing 1.9.1 above.
<souljah> Ah :)
<souljah> So daemons needs to be 2.0.0
<havenwood> Maybe you used `sudo` and dropped env?
<havenwood> souljah: No, you need to make it available to 1.9.1 (or better yet, stop using that old system Ruby and use 2.3 or 2.4.
<souljah> havenwood: How do I make it available to 1.9.1, unfortunetly changing 2.0.0 isn't an option :(
StoneCypher has joined #ruby
cagomez has joined #ruby
<havenwood> souljah: Pick which Ruby you're doing this with and make sure it's just that Ruby. Do you really need multiple Rubies installed? That seems confusing if unnecessary.
<havenwood> souljah: You can use one of the many Ruby version switchers if you really need multiple Rubies.
<souljah> havenwood: The whole system is backwards, but changing it isn't an option for me,
[Butch] has joined #ruby
<dminuoso> So seeing as this is #ruby, we can surely discuss why my enzyme+jest seems to automock for no obvious reasons, right havenwood?
lxsameer has quit [Quit: WeeChat 1.5]
* dminuoso prepares
nobitanobi has quit [Remote host closed the connection]
* herwin leaves preparing to postgresql
<dminuoso> JavaScript is like a special kind of Ruby. I promise.
<souljah> I ran a 'sudo apt-get install --reinstall linux-firmware' on one of our machines and now the reverse-ssh program is throwing ruby errors for the gem of Daemons
esObe_ has joined #ruby
conta has quit [Ping timeout: 260 seconds]
<havenwood> dminuoso: Nerp!
<baweaver> dminuoso: *promise* I see what you did there
<havenwood> souljah: Mind showing us `which -a ruby` so we can get a better picture of where the Rubies are?
<havenwood> souljah: My guess is only 1.9 is an apt Ruby? Or...
<souljah> /usr/local/bin/ruby
<souljah> /usr/bin/ruby
Qchmqs has quit [Ping timeout: 240 seconds]
<havenwood> souljah: Okay, so a 2.0 in /usr/local/bin and a 1.9 in /usr/bin
<havenwood> souljah: And?: sudo ruby -v
<souljah> ruby 2.0.0p481 (2014-05-08 revision 45883) [x86_64-linux]
mark_66 has quit [Remote host closed the connection]
workmad3 has joined #ruby
Silthias has quit [Ping timeout: 260 seconds]
esObe_ has quit [Ping timeout: 240 seconds]
Silthias has joined #ruby
<havenwood> souljah: Is there a?: command -v ruby19
<havenwood> command -v gem19
mooser has quit [Remote host closed the connection]
<havenwood> souljah: If you have the gem19 command available, try: sudo gem19 install daemons
<souljah> no luck there
<havenwood> souljah: So it looks like you have one system Ruby, then one Ruby manually compiled to /usr/local/bin...
<havenwood> souljah: With no way to switch Rubies. :-P
<souljah> :/
<impermanence> dminuoso: I was just trying to call gets.chomp. And save that to a variable. I don't see what the problem is? I'm new so I was just following a (well-written) tutorial.
dhollinger has joined #ruby
<souljah> I don't understand what would have caused this error to occur in the first place,
<havenwood> souljah: You could change the path order momentarily to put /usr/bin first, or use the full path to the 1.9 gem binary.
<souljah> this was working just before my last reboot, and no interaction was made with the ruby files,
<souljah> how do i specify full path?
<havenwood> souljah: /full/path/to/gem
cdg_ has joined #ruby
rakm has joined #ruby
<havenwood> souljah: which -a gem
<allisio> impermanence: How do you, as a newbie, know what would constitute "well-written" in this context?
<havenwood> souljah: it's probably the second one on that list of two ^
besquared has joined #ruby
safetypin has quit [Quit: ZZZzzz…]
<havenwood> impermanence: Use: STDOUT.gets
<matthewd> allisio: "well-written" and "accurate" mean different things
<souljah> havenwood: 'which -a gem' returns /usr/bin/gem
<allisio> I disagree.
<havenwood> impermanence: (That's the takeaway from what dminuoso was saying above.)
<dminuoso> havenwood: STDOUT.gets ?
<havenwood> dminuoso: lol
<dminuoso> Say what?
<havenwood> STDIN!!
<impermanence> havenwood: k.
<allisio> Or, well, I don't think an inaccurate piece of writing should ever be considered "well-written".
<dminuoso> >D
Snickers has joined #ruby
<havenwood> dminuoso: I haven't had my coffee.... ;-P
<havenwood> hahaha
<dminuoso> havenwood: Heh.
<havenwood> impermanence: STDIN.gets
cdg has quit [Ping timeout: 240 seconds]
<allisio> havenwood: I hadn't looked at the Gist yet and you got me excited to see what sort of shenanigans would've caused you to suggest `STDOUT.gets`. :P
<impermanence> fair.
<havenwood> allisio: rofl
<impermanence> yep.
<havenwood> allisio: STDOUT = STDIN; STDOUT.gets
<impermanence> allisio: look at the gist, please. I'm confused because my experience with other scripting languages leads me to think: Well...based on my previous ruby practice...it seems like this should work.
Karunamon has quit [Remote host closed the connection]
<matthewd> havenwood: Given the assignments to ARGV, that's not so far off :/
cagomez has quit []
<allisio> havenwood: `STDIN.puts` is (very) occasionally useful, so I thought there might be some corollary I'd not yet chanced upon.
stomar has joined #ruby
<havenwood> impermanence: read carefully: http://ruby-doc.org/core/Kernel.html#method-i-gets
StoneCyp1er has joined #ruby
cagomez has joined #ruby
<havenwood> "or from standard input if no files are present on the command line"
juggler has joined #ruby
<impermanence> havenwood: I will.
<allisio> impermanence: Why on earth are you assigning to ARGV?
<allisio> In which scripting language are you used to doing that?
<apeiros> havenwood: $stdin/$stdout should be preferred over STDIN/STDOUT
<allisio> But only if you don't know how to silently reassign constants.
<apeiros> (didn't read the full backlog)
<dminuoso> apeiros: And 1 should be preferred over $$/$$
<dminuoso> While we are at best practices.
Puffball has quit [Quit: No Ping reply in 210 seconds.]
<allisio> Nonsense.
<impermanence> allisio: I was just testing out different "stuff" is all.
<baweaver> dminuoso: you were never here for Ox0dea were you?
<matthewd> impermanence: Then you should know what you did that made it stop working
andikr has quit [Remote host closed the connection]
<dminuoso> baweaver: I absolutely was.
StoneCypher has quit [Ping timeout: 260 seconds]
<baweaver> ah, so you know the horrors he unleashed on the world XD
cdg_ has quit [Read error: Connection reset by peer]
cdg has joined #ruby
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
<impermanence> matthewd: fair enough.
jsrn_ has quit [Read error: Connection reset by peer]
Pumukel has quit [Read error: Connection reset by peer]
<matthewd> impermanence: To be clear, that doesn't mean "don't ask for help in understanding", but that your question would ideally be more like "I did X, and Y happened; I expected Z, can you help me understand why?"
StoneCyp1er has quit [Ping timeout: 240 seconds]
<adam12> allisio: Any reasoning on preferring $stdin over STDIN?
<allisio> apeiros: ^
<havenwood> adam12: reassignment
<adam12> allisio: Woops :)
StoneCypher has joined #ruby
<apeiros> adam12: Kernel uses the $ vars
<matthewd> (and less "this script isn't doing what it should. It would work in other languages. Why is ruby being wrong?")
<apeiros> also reassigning constants gives warnings (can be done without, though)
<adam12> Is reassigning one of the std fd's common?
<adam12> I'm not sure I've ever done it.
kassav_ has quit [Quit: kassav_]
<apeiros> it's reasonably common
<impermanence> matthewd: No, I understood what you meant. I've been using gets.chomp to get input for a couple of different exercises now. So...I'm baffled as to why the code in the gist doesn't work. havenwood, as did dminuoso sent me the doc on gets so I'm going to read that and I think that will answer my question. I'd read it now, but I'm "working".
<havenwood> adam12: the pattern is `$stdin = Whatever` then later `$stdin = STDIN` to set it back
<apeiros> consider daemons which want to log all which accidentally goes to stdout/stderr
Puffball has joined #ruby
<herwin> adam12: other languages often require reopen or dup2 to change it
<apeiros> there's a point to be made that this should happen externally, though
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<herwin> it's common, just more work
<allisio> impermanence: Kernel#gets will try to read from a file provided on the command line before looking for input on the standard input stream.
<allisio> Your first call is working because there are no command-line arguments, so it jumps right to reading stdin.
<allisio> Then you go and fuck with its head by modifying ARGV.
<apeiros> yupp, Kernel#gets is ARGF.gets
<apeiros> that has caused quite some confusion
<matthewd> For the record, TIL ^
<matthewd> I guess just because I'd always write the more explicit one automatically
<apeiros> it can be convenient, but I still think Kernel#gets should be $stdin.gets instead of ARGF.gets
StoneCypher has quit [Ping timeout: 240 seconds]
Guest96 has quit [Remote host closed the connection]
<matthewd> Yeah, ARGF is awesome when it's what you need, but seems rather open to surprise to have it sneak in unbidden
__Yiota has joined #ruby
Guest96 has joined #ruby
mooser has joined #ruby
solocshaw has joined #ruby
rkfmqf has joined #ruby
DarthGandalf has quit [Ping timeout: 240 seconds]
StoneCypher has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skweek has quit [Ping timeout: 245 seconds]
<havenwood> apeiros: agreed, the fancy is more than offset by the confusion
hogetaro has quit [Quit: Leaving...]
mooser has quit [Remote host closed the connection]
amclain has joined #ruby
outreachdan has joined #ruby
hogetaro has joined #ruby
__Yiota has joined #ruby
nitric has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
blackwind_123 has quit [Ping timeout: 252 seconds]
cdg has quit [Read error: Connection reset by peer]
cdg has joined #ruby
nobitanobi has joined #ruby
safetypin has joined #ruby
blackwind_123 has joined #ruby
nankyokusei has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rkfmqf has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
manjaro-kde5 has joined #ruby
__Yiota has joined #ruby
<allisio> "Mr. Matsumoto, tear down this Wall."
nankyokusei has quit [Ping timeout: 245 seconds]
hutch34 has joined #ruby
<allisio> "The Perls are lovely, dark and deep, but I have promises to keep, and miles to go before Ruby 3."
dionysus69 has joined #ruby
pavwgi has joined #ruby
esObe_ has joined #ruby
mim1k has quit [Ping timeout: 245 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
lagweezle_away is now known as lagweezle
Suslov has quit [Quit: Leaving...]
bkxd has joined #ruby
rgtk has quit [Ping timeout: 260 seconds]
elsevero has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
outreachdan has quit [Read error: Connection reset by peer]
juggler has quit [Quit: Leaving]
outreachdan has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
mjuszczak has joined #ruby
binaryplease has joined #ruby
ldnunes has quit [Ping timeout: 240 seconds]
Beverage1 has joined #ruby
besquared has quit [Remote host closed the connection]
griff has joined #ruby
pavwgi has quit [Remote host closed the connection]
griff has quit [Client Quit]
muelleme_ has joined #ruby
mjuszczak has quit [Client Quit]
Beverage has quit [Ping timeout: 240 seconds]
<impermanence> allisio: wow. that makes sense.
Guest96 has quit [Remote host closed the connection]
TinkerTyper has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
Guest96 has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
mjuszczak has joined #ruby
cagomez has quit [Remote host closed the connection]
jamesaxl has joined #ruby
cagomez has joined #ruby
cagomez has quit [Ping timeout: 255 seconds]
<allisio> elsevero: Your config file is ill-formed, but that's about as much as can be said at this point.
jamesaxl has quit [Ping timeout: 260 seconds]
<elsevero> allisio: it seems this https://github.com/fastlane/fastlane/issues/227#issuecomment-139449487 fixed the issue. I had to update the system variable
<allisio> elsevero: Ah. Glad you got it sorted.
ldnunes has joined #ruby
manjaro-kde5 has quit [Ping timeout: 255 seconds]
flying has quit []
jamesaxl has joined #ruby
muelleme_ has quit [Ping timeout: 255 seconds]
war_pigs has quit [Quit: later... computer is sleeping]
war_pigs has joined #ruby
war_pigs has quit [Client Quit]
renchan has quit [Quit: Leaving...]
war_pigs has joined #ruby
Silthias has quit [Quit: Leaving.]
war_pigs has quit [Client Quit]
Beams has quit [Quit: .]
mclee has joined #ruby
war_pigs has joined #ruby
war_pigs has quit [Client Quit]
war_pigs has joined #ruby
war_pigs has quit [Client Quit]
jonjitsu has joined #ruby
cagomez has joined #ruby
enterprisey has joined #ruby
grh has joined #ruby
Siyfion has quit [Quit: Textual IRC Client: www.textualapp.com]
jdbrowne has joined #ruby
enterprisey has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has joined #ruby
_djbkd has joined #ruby
jonjitsu has quit [Remote host closed the connection]
_djbkd has quit [Client Quit]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
duderonomy has quit [Ping timeout: 240 seconds]
jonjitsu has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
BTRE has quit [Read error: Connection reset by peer]
outreachdan has quit [Read error: Connection reset by peer]
outreachdan has joined #ruby
eclecticjohny has joined #ruby
hahuang61 has quit [Quit: WeeChat 1.7]
hahuang65 has joined #ruby
jaruga has quit [Quit: jaruga]
bonhoeffer_ has joined #ruby
govg has quit [Quit: leaving]
workmad3 has joined #ruby
jamesaxl has quit [Ping timeout: 240 seconds]
ketan has quit [Remote host closed the connection]
BTRE has joined #ruby
ketan has joined #ruby
ferr1 has quit [Quit: WeeChat 1.7]
Xiti has joined #ruby
jdbrowne has quit [Ping timeout: 252 seconds]
elsevero has quit [Quit: elsevero]
rgtk has joined #ruby
ketan has quit [Ping timeout: 245 seconds]
workmad3 has quit [Ping timeout: 255 seconds]
govg has joined #ruby
bigtawm has quit [Quit: Page closed]
lagweezle is now known as lagweezle_away
TomyLobo has joined #ruby
SeepingN has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
Ishido has joined #ruby
antgel has joined #ruby
Ishido has quit [Client Quit]
Ishido has joined #ruby
ben___ has joined #ruby
zquad has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zquad> Can someone help me with this ruby bash script? https://pastebin.com/BwsHTr2g I'm trying to get the variable `org` in that ruby string at the end of line 4
<ruby[bot]> zquad: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/f02a0b9ab368a800b7ef3635894237d5
<ruby[bot]> zquad: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<havenwood> zquad: If you want to see your shell variable in a subprocess you're going to need to export it.
jusa has joined #ruby
<havenwood> zquad: By convention, exported environment variables should be SCREAMING_SNAKE_CASE.
<havenwood> export ORG="test"
<zquad> mmmm
jaequery has joined #ruby
impermanence has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
enterprisey has joined #ruby
pulkit4tech has left #ruby [#ruby]
Puffball has quit [Ping timeout: 255 seconds]
jonjitsu has quit [Remote host closed the connection]
nobitanobi has quit [Remote host closed the connection]
atmosx has quit [Quit: WeeChat 1.4]
Puffball has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
cfec0b8d has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
bonhoeffer_ has quit [Ping timeout: 240 seconds]
cfec0b8d has joined #ruby
GodFather has joined #ruby
tentacle has joined #ruby
cagomez has joined #ruby
eclecticjohny has quit [Quit: Textual IRC Client: www.textualapp.com]
duderonomy has joined #ruby
solocshaw has quit [Ping timeout: 255 seconds]
lenwood has joined #ruby
mikecmpbll has joined #ruby
<tentacle> How does one control the lookup for inheritance? If I have a module with a "Base" class, then within that module, another module with a Base class, anything inheriting from that nested Base class (class Foo < Base) is trying to inherit from the top level Base class. Is there a way to do this without specifying the full nested Base class path?
<tentacle> It only seemed to become a problem once I switched to 2.3.3
hutch34 has joined #ruby
joelwallis has joined #ruby
<matthewd> tentacle: Are you using Rails autoloading, perchance?
<tentacle> matthewd: this is being primarily used within Rails, yes
mattp__ has joined #ruby
<tentacle> matthewd: thanks, just odd that it started doing this once I switched to 2.3.3
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
war_pigs has joined #ruby
mattp_ has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Remote host closed the connection]
<tentacle> quite possibly a fluke, thanks
Emmanuel_Chanel has quit [Ping timeout: 255 seconds]
dionysus69 has joined #ruby
<matthewd> Yeah, it comes down to whether Base is first referenced inside A::B (in which case it'll work), or inside A (in which case it won't) -- so it could be that you're accessing things in a different-than-usual order while doing post-ruby-update testing, or.. etc.
tolerablyjake has joined #ruby
Bock has quit [Remote host closed the connection]
jamesaxl has joined #ruby
<tentacle> matthewd: that looks to be the case :)
<tentacle> matthewd: thanks!
antgel has quit [Ping timeout: 252 seconds]
cdg has quit [Ping timeout: 255 seconds]
aryaching has joined #ruby
jamesaxl has quit [Ping timeout: 240 seconds]
jamesaxl has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nankyokusei has joined #ruby
A124 has quit [Quit: '']
lenwood has quit [Ping timeout: 240 seconds]
tentacle has quit [Quit: Textual IRC Client: www.textualapp.com]
workmad3 has joined #ruby
gdonald has quit [Read error: Connection reset by peer]
gdonald has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
nankyokusei has quit [Ping timeout: 255 seconds]
StoneCypher has quit [Ping timeout: 240 seconds]
__Yiota has joined #ruby
Nilium_ has joined #ruby
A124 has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
bkxd has joined #ruby
stupidsenpai has joined #ruby
d5sx43 has joined #ruby
marcdel has joined #ruby
Suslov has joined #ruby
gusrub has joined #ruby
d5sx43 has quit [Client Quit]
Nilium_ is now known as Nilium
User458764 has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
<stupidsenpai> Do we need to know how to build a chess game in order to be good programmers?
marcdel has quit [Ping timeout: 240 seconds]
<elomatreb> Not necessarily the chess part, but it's a good beginners app
lagweezle_away is now known as lagweezle
stupidsenpai has quit [Quit: Mutter: www.mutterirc.com]
jamesaxl has joined #ruby
gnufied has quit [Quit: Leaving]
gnufied has joined #ruby
elsevero has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
balazs has joined #ruby
dionysus69 has quit [Ping timeout: 252 seconds]
lenwood has joined #ruby
jamesaxl has joined #ruby
Emmanuel_Chanel has joined #ruby
<dminuoso> statelesscode: let's put it this way, if you dont know how to make a chess game, you are probably not a decent programmer. ;-)
<matthewd> * given documentation of the rules/mechanics of chess
pupsicle has quit [Quit: pupsicle]
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
Arpanet69 has joined #ruby
StoneCypher has joined #ruby
DARPA has joined #ruby
gusrub has quit [Ping timeout: 240 seconds]
Arpanet69 has quit [Ping timeout: 255 seconds]
yokel has quit [Ping timeout: 260 seconds]
gusrub has joined #ruby
yokel has joined #ruby
lenwood has quit [Ping timeout: 252 seconds]
Arpanet69 has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
username1 has joined #ruby
DARPA has quit [Ping timeout: 245 seconds]
<username1> is File#flock atomic between processes?
<username1> im trying to establish an interprocess lock
DARPA has joined #ruby
mooser has joined #ruby
mooser has quit [Remote host closed the connection]
mooser has joined #ruby
bonhoeffer has joined #ruby
cagomez has quit [Ping timeout: 255 seconds]
Arpanet69 has quit [Ping timeout: 252 seconds]
d10n-work has joined #ruby
<allisio> username1: That's the whole point of the method?
cseder has joined #ruby
<username1> allisio: the documentation isnt very clear
sheperson has joined #ruby
<username1> thanks
jamesaxl has joined #ruby
<dminuoso> username1: avoid flock, its annoying to use.
<dminuoso> :P
chichou has joined #ruby
patarr_ has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
_djbkd has joined #ruby
cagomez has joined #ruby
chichou has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 240 seconds]
atmosx has joined #ruby
jusa has quit [Ping timeout: 240 seconds]
xenops has quit [Read error: Connection reset by peer]
<atmosx> Hello, anyone familiar with libvirt lib? I'm getting paranoid, there's no way to actually *start* a predefined VM https://libvirt.org/ruby/api/Libvirt/Domain.html#method-i-resume
<atmosx> err here https://libvirt.org/ruby/api/Libvirt/Domain.html - doesn't make sense, I there's a method for every call except the most common
xenops has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
bonhoeffer has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
Suslov has quit [Quit: Leaving...]
jamesaxl has joined #ruby
cagomez has quit [Ping timeout: 252 seconds]
psychicist__ has joined #ruby
<atmosx> it's the "create" method... "Call virDomainCreate to start an already defined domain." ...
war_pigs has quit [Quit: later... computer is sleeping]
username1 has quit [Ping timeout: 252 seconds]
<baweaver> dminuoso *grumbles about en passant rules*
jamesaxl has quit [Read error: Connection reset by peer]
aspiers has quit [Quit: WeeChat 1.3]
<baweaver> Unless the job is for a board game company though, making a chess app is reaching
<baweaver> make something domain specific
* baweaver dislikes interview questions that aren't immediately relevant to the position
aspiers has joined #ruby
Arpanet69 has joined #ruby
DARPA has quit [Ping timeout: 252 seconds]
souljah has quit [Quit: Lost terminal]
war_pigs has joined #ruby
DARPA has joined #ruby
skweek has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
mooser has quit [Remote host closed the connection]
<atmosx> baweaver: Apparently interviewing is a never ending hot topic
<dminuoso> baweaver: Oh man. I remember a chess tournament once, I actually managed to turn it around with an (to me) unexpected en-passant possibility. When I took that pawn, he stared at me and started smiling because he thought I did something dumb and was forced to touch move..
<dminuoso> It was the first time he had even heard about en passant, suffice it to say he was pretty mad after that round..
Arpanet69 has quit [Ping timeout: 240 seconds]
pupsicle has joined #ruby
sheperson has quit [Ping timeout: 255 seconds]
grh has quit [Ping timeout: 260 seconds]
outreachdan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ben_____ has joined #ruby
outreachdan has joined #ruby
cschneid_ has quit [Remote host closed the connection]
Arpanet69 has joined #ruby
mooser has joined #ruby
cagomez has joined #ruby
nobitanobi has joined #ruby
ben___ has quit [Ping timeout: 240 seconds]
aswen has joined #ruby
rgtk has quit [Ping timeout: 240 seconds]
war_pigs has quit [Quit: later... computer is sleeping]
DARPA has quit [Ping timeout: 240 seconds]
DARPA has joined #ruby
Arpanet69 has quit [Ping timeout: 240 seconds]
<allisio> I like to get a pawn across and exclaim "King me!".
nobitanobi has quit [Ping timeout: 245 seconds]
cagomez has quit [Ping timeout: 255 seconds]
<lagweezle> Well, possibly. What if you hate chess and never learned anything of depth about the game?
Arpanet69 has joined #ruby
<StoneCypher> baweaver: it's not terribly uncommon to ask something too large to see how someone attacks planning and initial implementation
<cseder> I love chess
<cseder> i play on chess24 with the same nick as here. Challenge me?
DARPA has quit [Ping timeout: 252 seconds]
<lagweezle> I know how the pieces move, and that's about it. I don't know how castling works, but I know it's a thing...
cschneid_ has joined #ruby
Alina-malina has quit [Ping timeout: 255 seconds]
hahuang65 has quit [Quit: WeeChat 1.7]
Alina-malina has joined #ruby
cdg has joined #ruby
bz has quit [Ping timeout: 240 seconds]
nowhere_man has joined #ruby
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
<cseder> it's a thing, for sure. So is En Passant!
<matthewd> lagweezle: Right, hence "* given documentation of the rules/mechanics of chess"
war_pigs has joined #ruby
username1 has joined #ruby
jamesaxl has joined #ruby
bkxd has joined #ruby
ozcanesen has joined #ruby
<lagweezle> Ahh!
<lagweezle> cseder: So uh, what is En Passant?
<nofxxx> lagweezle, if there's no pieces between king and tower, and you never moved each... you can swap em
<lagweezle> Or is the exclamation mark part of the name?
<nofxxx> chess was 'europerized' for audience, I want to print an chinese one... bishop -> archery, queen -> master of war
<nofxxx> makes more sense also
<StoneCypher> chess is from india, not china
<nofxxx> StoneCypher, along with the grain of rice per square thing? always taught it was chinese...thanks
<StoneCypher> the grain of rice per square thing is just an apocryphal story
<baweaver> It's fine to ask architectural questions
<baweaver> but if you're an AWS shop hosting game servers you should probably ask about that
cagomez has joined #ruby
* lagweezle misses playing mah jjong. *Not* the solitaire BS.
DARPA has joined #ruby
gusrub has quit [Remote host closed the connection]
outreachdan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mooser has quit [Remote host closed the connection]
<cseder> I have a beautiful Majjong game on my MacBook
outreachdan has joined #ruby
<lagweezle> Do tell? Although the feel of the tiles and building the walls is ... oddly enjoyable.
Arpanet69 has quit [Ping timeout: 260 seconds]
Puffball has quit [Ping timeout: 240 seconds]
nankyokusei has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
<cseder> Its called Mahjong Elements HD and is quite enjoyable
timredd has joined #ruby
<lagweezle> Oooh. That's the 'solitaire' game that has the same name of the actual game. :/
joelwallis has quit []
nankyokusei has quit [Ping timeout: 260 seconds]
jamesaxl has quit [Read error: Connection reset by peer]
timredd has quit [Client Quit]
jamesaxl has joined #ruby
yurikoles has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
enterprisey has quit [Quit: see 'ya]
b3l914n_ has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
<cseder> oh...
<cseder> :/
<cseder> What's the real Mahjong game like?
<lagweezle> I've never played Rummy, but I've had folks compare it to that...
_djbkd has quit [Remote host closed the connection]
<lagweezle> Four players, proceeds from one player to the next. Draw tile, try to make 3 of a kind, 4 of a kind, or a run of three (or some more 'interesting' hands), discard a tile. Next person's turn.
<lagweezle> Although the rules are ... a bit more complex than that.
war_pigs has quit [Quit: later... computer is sleeping]
bkxd has quit [Ping timeout: 260 seconds]
<lagweezle> Oh ... and to make it "more fun" there are actually ... I'll say three different mah jjong rules. Chinese, Japanese, and the horrible thing that is American style Mah Jjong.
synthroid has quit []
<lagweezle> Trying to find a video but ... so far they are all pretty awful.
<lagweezle> https://youtu.be/tRCb_LOkEmQ isn't terrible.
Fin1te has joined #ruby
_djbkd has joined #ruby
gdonald has quit [Read error: Connection reset by peer]
<lagweezle> Actually, seems like a good explanation of the basics. The video goes a bit slow for my preferences, but I'm familiar with the game so ... it's probably about right for an introduction...
gdonald has joined #ruby
mjuszczak has quit []
Puffball has joined #ruby
jamesaxl has quit [Ping timeout: 240 seconds]
gusrub has joined #ruby
jamesaxl has joined #ruby
<StoneCypher> cseder: it's a bidding and betting game based around making sets, kind of rummy-ish
AlexRussia has quit [Ping timeout: 240 seconds]
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
<cseder> Aha, ok. Looks enjoyable!
<StoneCypher> it's one of those games where the quality of the opponents matters a lot (in the way that it does for bridge)
<cseder> looks like Rummy!
<cseder> Rummy on acid! ;)
tercenya has quit [Read error: Connection reset by peer]
tercenya has joined #ruby
<cseder> Never seen the real Mahjong as a board game anywhere where I come from, but probably available via Amazon or something
stomar has quit [Ping timeout: 252 seconds]
rgtk has joined #ruby
Arpanet69 has joined #ruby
war_pigs has joined #ruby
<StoneCypher> i mean just play a non-solitaire app version. it's a major game to the chinese, the way poker is to us
<StoneCypher> but you need three friends
<cseder> three friends?! Way over my limit.
DARPA has quit [Ping timeout: 252 seconds]
DARPA has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
minimalism has joined #ruby
Arpanet69 has quit [Ping timeout: 240 seconds]
rgtk has quit [Ping timeout: 240 seconds]
AlexRussia has joined #ruby
outreachdan has quit [Read error: Connection reset by peer]
snockerton has joined #ruby
outreachdan has joined #ruby
Puffball has quit [Ping timeout: 255 seconds]
ldnunes has quit [Quit: Leaving]
cschneid_ has quit [Remote host closed the connection]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Fin1te has quit [Quit: Later, tater.]
svkurowski has quit [Ping timeout: 260 seconds]
jamesaxl has quit [Ping timeout: 240 seconds]
jamesaxl has joined #ruby
cschneid_ has joined #ruby
rakm has joined #ruby
ramortegui has quit [Remote host closed the connection]
ryan_notabot has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
sumobob has joined #ruby
mooser has joined #ruby
claudevandort has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chichou has joined #ruby
enterprisey has joined #ruby
jusa has joined #ruby
mim1k has joined #ruby
biberu has quit [Read error: Connection reset by peer]
Lord_Squirrel has joined #ruby
cam27 has joined #ruby
<Lord_Squirrel> Sup
Lord_Squirrel has quit [Remote host closed the connection]
jamesaxl has joined #ruby
mooser has quit [Remote host closed the connection]
chichou has quit [Ping timeout: 260 seconds]
mooser has joined #ruby
aupadhye has quit [Ping timeout: 252 seconds]
jusa has quit [Ping timeout: 260 seconds]
mim1k has quit [Ping timeout: 260 seconds]
cam27 has quit [Quit: cam27]
jamesaxl has quit [Ping timeout: 252 seconds]
jamesaxl has joined #ruby
war_pigs has quit [Quit: later... computer is sleeping]
bkxd has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
PresidentBiscuit has quit [Ping timeout: 240 seconds]
psychicist__ has quit [Quit: Lost terminal]
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
roshanavand has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
d5sx43 has joined #ruby
war_pigs has joined #ruby
tvw has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
d10n-work has quit [Quit: Connection closed for inactivity]
jamesaxl has joined #ruby
aswen has quit [Quit: WeeChat 1.5]
volty has joined #ruby
brent__ has joined #ruby
Arpanet69 has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
swills has quit [Quit: Leaving]
swills has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
DARPA has quit [Ping timeout: 240 seconds]
elsevero has quit [Quit: elsevero]
swills has quit [Remote host closed the connection]
jdm_ has joined #ruby
JeanCarloMachado has joined #ruby
jamesaxl has quit [Ping timeout: 255 seconds]
jamesaxl has joined #ruby
jamesaxl has quit [Client Quit]
jenrzzz has quit [Ping timeout: 240 seconds]
d5sx43 has quit [Quit: Leaving...]
jdm has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
rakm has joined #ruby
BSaboia has joined #ruby
war_pigs has quit [Quit: later... computer is sleeping]
cagomez has quit [Remote host closed the connection]
sumobob has quit [Quit: WeeChat 1.7]
sumobob has joined #ruby
s2013 has joined #ruby
hahuang65 has joined #ruby
boto has joined #ruby
safetypin has quit [Ping timeout: 240 seconds]
mahlon has quit [Ping timeout: 240 seconds]
patarr_ has quit [Ping timeout: 240 seconds]
hutch34 has quit [Ping timeout: 245 seconds]
mahlon has joined #ruby
jdm_ has quit [Quit: Leaving]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
cagomez has joined #ruby
Rodya_ has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
AndBobsYourUncle has joined #ruby
raspado has joined #ruby
bronson has joined #ruby
gbailey has quit [Quit: ZNC - 1.6.0 - http://znc.in]
cagomez has quit [Remote host closed the connection]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
cagomez has joined #ruby
DarthGandalf has joined #ruby
cagomez has quit [Remote host closed the connection]
nankyokusei has joined #ruby
GodFather has quit [Ping timeout: 255 seconds]
<Radar> !ban lagweezle
lagweezle was kicked from #ruby by ruby[bot] [bannable offense, see http://ruby-community.com/pages/user_rules]
mooser has quit [Remote host closed the connection]
nuck has quit [Ping timeout: 240 seconds]
mooser has joined #ruby
DarthGandalf has quit [Ping timeout: 255 seconds]
nankyokusei has quit [Ping timeout: 245 seconds]
cam27 has joined #ruby
ozcanesen has quit [Quit: Textual IRC Client: www.textualapp.com]
cam27 has quit [Client Quit]
<baweaver> !unban lagweezle
lagweezle has joined #ruby
<baweaver> that work?
<lagweezle> Yay!
<Radar> lagweezle: wb
<baweaver> good to go then, sorry about that
<Radar> apologies again
<lagweezle> Thank you!
<lagweezle> np np
<lagweezle> I ought to have provided context.
Snickers has quit [Quit: Snickers]
<Radar> I should've scrolled up.
<StoneCypher> warns are the traditional way to prevent this
Verity has joined #ruby
<Verity> what is ruby a poor choice for
<matthewd> Verity: Talking to serial ports ;)
<lagweezle> Oh, so, anyways. If you end up actually wanting to get a mah jongg set, https://www.ymimports.com/pages/mahjong-buying-tips will likely prove helpful, if minimal. Alternatively, http://a.co/3k2Lmsp provides a huge amount of information, quite in depth. I *can* recommend that book to learn about the game.
<ytti> from my POV, complex projects
<ytti> long lived processes
DarthGandalf has joined #ruby
<lagweezle> That's what I ought to have posted instead of just a link for the message. Anyways, back to Ruby things.
<ytti> (like other interpreted, dynamically typed languages)
<havenwood> Verity: It's not a good esoteric language. Way too straightforward.
cam27 has joined #ruby
marcdel has joined #ruby
<cseder> Verity what kind of question is that? You're kidding / trolling right?
<Verity> no, I'm just comparing and contrasting
<baweaver> They've been around before.
<StoneCypher> Verity: high performance software
cagomez has joined #ruby
<cseder> Ruby is one of the best languages to combine with C
<StoneCypher> Verity: you wouldn't want to write an operating system, database, cutting edge FPS, etc in ruby
<StoneCypher> cseder: ...
<cseder> what? it is!
<ytti> basically interpreted, dynamically typed languages are great for tackling smaller projects faster
<Radar> ytti: who are you even talking to?
<ytti> but dividents quickly become taxes
<ytti> Radar, replying to verity's question
<Radar> ytti: perhaps include Verity's name in your replies?
<Verity> I knew he meant me due to the context :)
<Verity> I appreciate the replies
marcdel has quit [Ping timeout: 240 seconds]
<cseder> Verity You can use the RubyInline or FFI gems to include C code directly into your Ruby code.
cagomez has quit [Ping timeout: 245 seconds]
cisco has joined #ruby
cisco has quit [Max SendQ exceeded]
cisco has joined #ruby
cisco has quit [Max SendQ exceeded]
b3l914n_ has quit [Ping timeout: 255 seconds]
cisco has joined #ruby
<ytti> cseder, how is it better than say rust or nim for using C libraries?
cisco has quit [Max SendQ exceeded]
cisco has joined #ruby
cisco has quit [Max SendQ exceeded]
cisco has joined #ruby
<Verity> it certainly reads better to me at first glance
cisco has quit [Max SendQ exceeded]
cisco has joined #ruby
<cseder> ytti Verity I've been programming since 1993 in various programming languages and when it comes to Ruby I'm just a beginner, but the more I learn the more I enjoy it. It's the most pleasant programming language I've ever used and now I'm porting as much code as possible over to Ruby
<volty> what's best is getting the things done, and possibly with pleasure (of the beloved language)
cgibsonmm has joined #ruby
<Verity> cseder, I'm having a similar experience except I'm much newer to coding
<cseder> It sounds cliche but Ruby really is a FUN programming experience once you get to understand and use blocks in a correct way
<volty> as for the "what's poor for" - like questions, they should be sent back, and kindly asked to ask an advice in the style "I would like to do this, this, and this. Is Ruby nice for that? "
<cseder> blocks is sent from heaven
war_pigs has joined #ruby
<cseder> blocks are sent from heaven?
GodFather has joined #ruby
<lagweezle> Are.
<elomatreb> Were?
enterprisey has quit [Read error: Connection reset by peer]
<Radar> blocks're?
<volty> and will
<cseder> If you have $25 to spend, use it on this course about blocks in Ruby: https://pragmaticstudio.com/ruby-blocks
<cseder> It was the course I used to really understand how to use blocks in a creative way
boto has left #ruby [#ruby]
<Verity> this is my feeling
<Verity> ruby is just enjoyable to code in
<volty> but if you are creative yourself you can do it alone
<cseder> Highly recommended videos even if you "think" you understand blocks and iterators
<ytti> memory debugging isn't fun in ruby :/
<ytti> at least not in mri, jvm maybe much better
cschneid_ has quit [Remote host closed the connection]
<cseder> ytti not often you need it though...
<ytti> but compared to how easy it is in say golang
gusrub has quit [Remote host closed the connection]
<ytti> (i don't like golang otherwise, just great ecosystem/tooling)
<volty> memory debugging what for ?
<cseder> Doesn't RubyMine from Jetbrains come with a good debugging interface?
<ytti> volty, when the software uses more memory than you expect it to use
<Verity> I purchased "the ruby programming language" I'm hoping that will help me go from beginner to intermediate now
<Verity> rubymine I can get free but I don't want to lock myself into software that wont be free when I graduate so I've been using vscode
gusrub has joined #ruby
<Verity> it does look nice, though
<Verity> very feature rich, if you need it
<Verity> my serial program uses 99-100% cpu when sending, is that normal
DARPA has joined #ruby
<cseder> I've never heard of memory debugging in Ruby to be honest. Do you mean like just debugging to see what goes where in memory?
<StoneCypher> no
<volty> ytti: then you should better work on your expectations ?
<ytti> cseder, i mean trying to figure out why the software uses more memory than you expect it to use
<matthewd> Verity: It shouldn't be.. but as it's a fairly obscure thing to do, it's possible it's the library's fault rather than your code
cagomez has joined #ruby
<ytti> volty, it's easy to write bad code which leaks memory
<cseder> ytti maybe it's the IDE your using and not the Ruby code you're running
<matthewd> Verity: Gist your current state?
<ytti> cseder, this isn't novel situation
<volty> ytti: for the high level langs the introspection should be enough
pwnd_nsfw has joined #ruby
<ytti> cseder, it's not odd for ruby or python developer to need to figure out why program uses more memory than it should
<StoneCypher> cseder: dude he means like memory leaks and etc.
pwnd_nsfw` has quit [Ping timeout: 255 seconds]
<StoneCypher> cseder: high level languages don't magically get out of programmer errors relating to memory use
<Verity> matthewd, I don't have laptop with me at the moment but I'll post it when I get home later, I noticed the fan spinning up when sending a large file and I checked with htop and noticed 99% usage
<Verity> this was on a c2d laptop
<Verity> sending and receiving using two usb to serial adapters
<Verity> I connected rx to tx with some jumpers
<ytti> in some senses it's easier to leak in high level OO languages
<ytti> if you're not careful where your state lives
<ytti> you may keep putting object references here and there
<ytti> and ultimately have no clear idea what is your state
Arpanet69 has quit [Ping timeout: 240 seconds]
<Verity> so I shouldnt just assume the gc takes care of everything?
<matthewd> Is it really leaking if the application still knows how it's being used & can access it?
<ytti> gc will only collect if object isn't referenced
<matthewd> That sounds more like memory "use" than memory "leaks"
<cseder> ytti StoneCypher well aware of that, but I call that just debugging or memory optimisation, not memory debugging
<ytti> but it's easy to have complicated tangle of instances refering to each other
<volty> no way if your design is modular . dispose as soon as you don't need
<ytti> yeah, i would opt out of doing long-lived python/ruby processes
<cseder> best way to avoid it is to learn how to use blocks correctly! :) The videos I posted links to is a great start
<ytti> then you mostly don't have to care about the problem
<ytti> and this is how some large ruby shops have fixed their problems
<ytti> just kill workers when they get too large
cagomez has quit [Ping timeout: 240 seconds]
<Verity> that doesnt sound like the best fix
<ytti> and not care about the programming mistakes causing them
<Verity> but what do I know
<ytti> best may be enemy of done
<Verity> cseder, I just purchased "the ruby programming language, covers 1.8 and 1.9
<Verity> will this teach me blocks well? or will I still need the video
<Verity> is this an advanced topic to study later or try to master it early
<volty> Verity: go with the book, more than enough
sumobob has quit [Quit: WeeChat 1.7]
<allisio> Blocks are essentially what make Ruby Ruby.
<cseder> Verity is it the PickAxe book?
<volty> (for now, and forever - - that all the rest will depend on yourself)
<cseder> allisio true
<Verity> its a book by the ruby author, I think
<Verity> ykihiro matsumoto
<allisio> No, not quite.
<volty> I had it from pragmatic programmers
chouhoulis has quit [Ping timeout: 240 seconds]
<allisio> He "divinely inspired" it, in a sense.
<cseder> Verity, ok, not the Pragmatic Programmer PickAxe book?
cgibsonmm has quit [Remote host closed the connection]
<Verity> that book
<Verity> I hope its not too obsolete for the current ruby
<Verity> before I begin to read it
<allisio> How come you're still picking a book?
<volty> the same goes for spoken languages -- just start and breath the spirit of the language
<Verity> allisio, I've been finishing up a C book before I read this one so I still had some time
<cseder> Ok, It's a good book, but I'd recommend the PickAxe book: https://pragprog.com/book/ruby4/programming-ruby-1-9-2-0
cgibsonmm has joined #ruby
<Verity> I'll take a look at that, cseder ty
<allisio> Oof. I somehow conflated "The Ruby Programming Language" with "Programming Ruby". :<
<cseder> It's like the de-facto standard for learning Ruby
<ytti> i would probably not bother reading any material which assumes 1.8
<StoneCypher> "i call memory leaks memory optimization" (sigh)
<allisio> cseder: I reckon that title probably goes to "Eloquent Ruby" for programmers with some prior experience.
<cseder> StoneCypher lol... didn't mean exactly that
cdg has quit [Remote host closed the connection]
DarthGandalf has quit [Ping timeout: 240 seconds]
<nofxxx> StoneCypher, "In ruby evertyhing is an object, in haskell everything is a function, in C everything is a segfault"
<StoneCypher> nofxxx: cleaning keyboard begins now <3
<cseder> allisio probably... Still working through the PickAxe
<volty> in c everything is a speed
jdm has joined #ruby
<allisio> A velocity.
<nofxxx> volty, pff... assembly guys disagree with you
<volty> yes, but they are too slow to write
charliesome has joined #ruby
<volty> and calculate too - because you need to do some calculus for the sake of choosing the fastest instructions
<cseder> https://pragprog.com/book/ppmetr2/metaprogramming-ruby-2 also a good book I've started reading.
<volty> and they are already beaten by the calculus made by the compiler
<allisio> Usually.
bkxd has joined #ruby
<volty> yes, valid for the best compilers
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sumobob has joined #ruby
hutch34 has joined #ruby
cgibsonmm has quit [Quit: Leaving]
<volty> I am giving a look at scala. Anybody here with some experience with scala?
<cseder> I've programmed in both C and C++ as a living for many years and sometimes I miss the relatively low level way of programming, but now I'm going all-in for Ruby and Rails
<allisio> volty: baweaver seems to be the resident Scalar here.
solocshaw has joined #ruby
<volty> Their channel is full but mute. They must be lost in functional
<allisio> I assume that's not the appropriate demonym, though.
DARPA has quit [Ping timeout: 260 seconds]
cam27 has quit [Quit: cam27]
enterprisey has joined #ruby
<volty> Scaled ?
<allisio> To mean "a user of Scala"? Surely not.
zquad has quit [Remote host closed the connection]
<volty> Me, as a beginner, just scared
DTZUZU has joined #ruby
<allisio> Just dive in.
<cseder> The last developer job I had was using C# and .Net, which is also getting pretty good, but as said, its Ruby all the way now, I hope! I quit my job so I could work as a freelancer and the market for Rails is pretty good
<allisio> Alternatively, take the time to realize that Ruby is surprisingly functional.
<cseder> allisio true! It is.
<lupine> heh, just as everyone's bailing
<volty> I know enough of Ruby
hutch34 has quit [Ping timeout: 252 seconds]
bkxd has quit [Ping timeout: 252 seconds]
<cseder> I learned Lisp many years ago :)
<cseder> I think I used it once for understanding how a AutoCAD plugin was working
<volty> I gave it a look and escaped. I hate Python because of formatting (among others). I used to like Haskel (as a beginner), but then realized that it's utterly useless
<volty> scala seems amusing and promising
<cseder> Haskell isn't useless, but it has a limited scope compared to Ruby
AndBobsYourUncle has joined #ruby
<volty> imho haskell is totally useless. there's a video on yt where his creator states the same
<Radar> ?popcorn
<ruby[bot]> It's popcorn time! 🍿🍿🍿
<cseder> volty that is meant as humor
<Verity> lol
<volty> not at all! Watch the video
<cseder> but not everyone understands haskell humor
allisio has quit [Quit: WeeChat 1.7]
<Radar> link or ban
<volty> google yourself
<Verity> I did, couldnt find it
<Verity> where is link
<Radar> volty: You think I'm not serious?
cam27 has joined #ruby
allisio has joined #ruby
<volty> Radar: what do you mean by "not serious"?
<cseder> volty you think you're serious, but you are wrong
<Radar> !ban volty
volty was kicked from #ruby by ruby[bot] [bannable offense, see http://ruby-community.com/pages/user_rules]
<Radar> !unban volty
<Radar> next topic please.
<StoneCypher> Radar: i don't understand why that just happened
<Radar> Take this to #ruby-offtopic
<Radar> [09:23:50] <Radar>link or ban
<StoneCypher> Radar: not criticizing, just don't want to make the same mistake myself
<Radar> StoneCypher: I asked for a link, I didn't get one.
tvw has quit []
<StoneCypher> oh.
<cseder> I think he is referring to a joke made by Haskell's creator in a talk once
<Radar> If you're going to be making grandiose statements like that then I would expect you to back it up with evidence.
volty has joined #ruby
<sumobob> have you all checked out a cool micro framework called hanami? I spent the weekend playing with it, i was wondering the ruby communits thoughts, compared to something like roda
<Radar> Link to the damn video and EVEN BETTER link to the timestamp of where he said it.
<volty> slowly, just for the pleasure
<cseder> Do you think it's a good idea to learn Sinatra before jumping aboard Rails? Seems to be a debate
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<allisio> Radar: Weird thing to get so bent outta shape about, but here ya go: https://youtu.be/iSmkqocn0oQ?t=36
JeanCarloMachado has quit [Ping timeout: 255 seconds]
<StoneCypher> cseder: doesn't make a big difference either way. might as well, just so that you can speak to preferences from experience.
<cseder> It's both based on Rack, but is it a good path?
<allisio> SPJ was, of course, being humorously self-deprecating.
<havenwood> sumobob: I think Roda is to Sinatra as Hanami is to Rails.
JeanCarloMachado has joined #ruby
<matthewd> sumobob: Isn't Hanami's claim that it's *not* a microframework, but "Rails done right"?
<Radar> allisio: I was very not bent out of shape. I was having fun and it was misconstrued.
<allisio> Misconstrual is a door you have to open.
<cseder> Hanami?
<Radar> cseder: Sinatra is a much more light-weight framework compared to Rails. It's a pretty good starting place.
<cseder> That's a restaurant where I come from
<volty> yes, that is the video. As for the rest, go and try doing something in Haskell (I mean beyond folding and mapping) . A gui app, among other examples
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has joined #ruby
<ytti> allisio, quite often when i try to do something very functional in ruby, like recursing instead of looping, i run out of stack depth
<cseder> Radar ok. I'll check that out first. I have no web development background, mostly systems programming and desktop applications, so web development is new to me
<allisio> ytti: Does a demonstrative example immediately spring to mind?
cagomez has quit [Remote host closed the connection]
<allisio> We'll ignore that Ruby can be made to do TCO for the sake of your present argument.
cagomez has joined #ruby
<ytti> allisio, def foo; foo; end; foo?
_djbkd has quit [Read error: Connection reset by peer]
djbkd_ has joined #ruby
lagweezle is now known as lagweezle_away
<allisio> ytti: You do things like that for... what?
<allisio> At least, that doesn't look like it answers to the description of "very functional" to me.
<havenwood> ytti: Sounds like a case for #require_relative_with_tco there!: https://gist.github.com/havenwood/3c5a5e1476c811460992
<ytti> allisio, it can be low as 2k in my experience, which is easy to hit in practical sitautions
<cseder> Hanami looks interesting
jusa has joined #ruby
TomyLobo has quit [Ping timeout: 252 seconds]
<ytti> havenwood, right, that seems like it would make ruby more functional
chichou has joined #ruby
<allisio> ytti: Is it?
<Radar> cseder: It is very interesting :) It's an entirely new take on how to do web applications in Ruby.
<cseder> And the webpage is a beauty
<Radar> cseder: I think it's also more lightweight than Rails as well.
<ytti> but OO and functinal are not good marriage anyhow, in functional you keep variables immutable, functions don't have side-effects. In OO it's idiomatic to quite freely modify objects
mim1k has joined #ruby
<cseder> Radar is it also built on Rack?
<allisio> Mutation is not inherently part of object-orientation.
<Radar> cseder: yup
<Verity> maybe I should check out hanami instead of sinatra
<Verity> for my first web framework w/ ruby
<Radar> cseder: Rack is the common API that all Ruby frameworks use.
war_pigs has quit [Quit: later... computer is sleeping]
<Radar> Just skimming through Hanami's Getting Started guide and it looks great :D
<cseder> Aha... I'm such a noob
<havenwood> Verity: More like check out Roda instead of Sinatra. Check out Hanami instead of Rails. ;-P
<Radar> cseder: it's ok. We were all noobs once.
<havenwood> cseder: Try writing a simple Rack app and running it with: rackup
<cseder> So the new Sinatra -> Rails could become Roda -> Hanami
war_pigs has joined #ruby
<volty> no, that is only a matter of polarization oo vs functional. what oo needs isn't the REAL object of a REAL class, but just the syntactic behaviour of the oo
impermanence has joined #ruby
<havenwood> cseder: It's a worthy exercise. You'll quickly see with pure Rack apps why people go on and use a Rack adapter like Roda, Sinatra, Hanami or Rails.
<Radar> I thought Roda was only a router.
<volty> what oo programmer needs i meant
jusa has quit [Ping timeout: 245 seconds]
<cseder> havenwood haha, ok, I'll give it a go
<havenwood> Radar: Yeah, core Roda is about a thousand lines and is primarily just the addition of a routing tree on top of Rack. Then you compose a framework from Roda's plugins.
chichou has quit [Ping timeout: 255 seconds]
<havenwood> The one file that makes up core Roda: https://github.com/jeremyevans/roda/blob/master/lib/roda.rb
lxsameer has quit [Ping timeout: 252 seconds]
war_pigs has quit [Client Quit]
<havenwood> There are other ecosystem gems like Rodauth: http://rodauth.jeremyevans.net/
<cseder> I quit my job to learn and specialise in Ruby, RubyMotion and a Web Framework so I can do freelance jobs. I got tired of programming in C# and Visual Studio and hacking on old Borland C++ code
mim1k has quit [Ping timeout: 260 seconds]
<havenwood> But the plugins do combine to form a real framework. It's quite nice.
<allisio> You're quite nice.
<havenwood> Why thank you. ;-)
war_pigs has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
<ytti> allisio, yeah i'd say it's pretty common to deal say with lists with over 2k items
<cseder> So, wish me luck in my new career
<ytti> allisio, which you'd deal with recursive function in purely functinal langauge, but in ruby you probably shouldn't, unless you know the size is bounded to low number
<StoneCypher> ytti: are you presuming tail recursion?
<ytti> allisio, in purely functional language there wouldn't be call stack, so there isn't similar technical bound at all
charliesome has joined #ruby
<ytti> StoneCypher, yes
cschneid_ has joined #ruby
<StoneCypher> ytti: tail recursion isn't all that common in functional languages. my gut says 50/50
<matthewd> Verity: I'd personally recommend starting with Rails -- it's more complicated than other simpler options, but it's also widely documented etc
<StoneCypher> mostly just in things that descend from lisp, ml, oz, or prolog
<matthewd> (but I'm not exactly impartial)
<ytti> StoneCypher, but even without tail recursion, as there isn't call stack, the number is something silly
<ytti> StoneCypher, something where you'd be more worried about the size of your list probably
<StoneCypher> things without tail recursion (and with) generally still need a call stack.
<StoneCypher> even though they're fp.
<StoneCypher> very, very few languages are stackless.
<StoneCypher> and they tend to be radically different things, like sql and css
<StoneCypher> you can still blow the call stack on a language with tail recursion; it's just a lot more difficult
cschneid_ has quit [Ping timeout: 255 seconds]
<ytti> StoneCypher, i would guess it's magnitude where you worry about the size of what you're iterating
<ytti> StoneCypher, where as in ruby, you run into the limit in quite trivial numbers
<StoneCypher> iteration won't do it in any language. iteration is an alternative to recursion
<ytti> as i'm sure anyone has noticed who tries to write recursive functions instead of loops in ruby
<ytti> and then just give up and use loops, as intended
aryaching has quit [Ping timeout: 252 seconds]
war_pigs has quit [Quit: later... computer is sleeping]
<volty> iteration is recursion in bottom-up fashion
<StoneCypher> ... no, it isn't
<StoneCypher> they can be used to solve the same jobs, but they aren't cases of one another
<ytti> you keep stack size same
<ytti> regardles of eleent count in what you're itereating
<ytti> so it's fundametnally quite different
<ytti> 1. call, 2. return, 3. call, 4. return ...
<ytti> versus
cam27 has quit [Quit: cam27]
<volty> you solve the same problem, often keeping :"manual stack:
<volty> "
<ytti> 1. call 2. call 3. return 4. return
<StoneCypher> volty: by that logic, css and xslt, or sql and mongo, are forms of one another
<StoneCypher> volty: or vhs and dvd
swills has joined #ruby
<volty> ah ah, not at all, it's presentation vs trasformation vs organization vs algorithm
<allisio> volty: https://eval.in/773984
lxsameer has joined #ruby
genpaku has quit [Ping timeout: 240 seconds]
Lord_of_Life has quit [Excess Flood]
<allisio> I guess the "smart" there counts as maintaining a "manual stack", but it's not cumbersome.
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lord_of_Life has joined #ruby
domgetter has joined #ruby
pwnd_nsfw` has joined #ruby
genpaku has joined #ruby
cagomez has quit [Remote host closed the connection]
enterprisey has quit [Remote host closed the connection]
<volty> look, I am a bit fuzy now but I try it in few words --- all those (almost all) functional purists attribute absolute value, without proving the same value. the truth is that we humans often get tired and fuzzy, and need breaks, and need to trace slowly etc etc. With recursions you can get lost. With manual tracing (stack) you can do it in the end.
pwnd_nsfw has quit [Ping timeout: 240 seconds]
cagomez has joined #ruby
<volty> of course you can grasp recursions on single lists and trees, but when it comes to more complex interactions between objects, you easily get lost and frustrated. Otherwise the very intelligent functionals would already have produced something with no-matched values.
<volty> My motto is "do it as you please, and do not bite me with purism"