<comet23>
i looked at the solution and i don't understand fib(n - 1) + fib(n - 2)
<comet23>
is there a way to make the recursive solution forwards not backwards?
<mkaito>
that's a contrived one
<mkaito>
look at a different one
<mkaito>
people love being too clever
<comet23>
i see why it has to be backwards, it's because i have a limit of 10 i can't really go forwards
<comet23>
let's say i pass 10 as a limit, calling it recursively forwards will be forever infinite
<mkaito>
traditionally, you just keep going forward until you pass the limit, then take a step back.
<mkaito>
but backwards works too
<comet23>
how would i go forwards?
troys is now known as troys_
gix has quit [Ping timeout: 260 seconds]
ketan has joined #ruby
zEpHiRo has joined #ruby
gix has joined #ruby
<mkaito>
you keep putting values into an array based on the sum of the previous two?
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
claw has quit [Ping timeout: 255 seconds]
Immune_ has joined #ruby
ketan has quit [Ping timeout: 268 seconds]
gwilkes has joined #ruby
Immune has quit [Ping timeout: 260 seconds]
claw has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
Joufflu has joined #ruby
arescorpio has quit [Quit: Leaving.]
zEpHiRo has quit [Quit: ZZZzzz…]
zEpHiRo has joined #ruby
kculpis has joined #ruby
patarr has joined #ruby
cam27 has quit [Quit: cam27]
xall has quit [Quit: xall]
uZiel has joined #ruby
patarr has quit [Ping timeout: 248 seconds]
Xeago has quit [Ping timeout: 255 seconds]
mim1k has joined #ruby
Joufflu has quit [Read error: Connection reset by peer]
mim1k has quit [Ping timeout: 268 seconds]
Joufflu has joined #ruby
rhyselsmore has joined #ruby
zyklonbee has left #ruby [#ruby]
troys_ is now known as troys
aglorei has quit [Ping timeout: 248 seconds]
yoongkang has quit [Quit: This computer has gone to sleep]
_whitelogger has joined #ruby
minimalism has quit [Quit: minimalism]
gothicsouth has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
tolerablyjake has joined #ruby
aglorei has joined #ruby
Puffball_ has quit [Remote host closed the connection]
Puffball has joined #ruby
perniciouscaffei has joined #ruby
brent__ has joined #ruby
yoongkang has joined #ruby
patrontechnosoft has joined #ruby
weaksauce has quit [Ping timeout: 248 seconds]
patrontechnosoft has quit [Remote host closed the connection]
SeepingN has joined #ruby
minimalism has joined #ruby
Rr4sT has quit [Quit: Connection closed for inactivity]
minimalism has quit [Client Quit]
zEpHiRo has quit [Quit: IRC Client: zetanova.com]
minimalism has joined #ruby
elsevero has quit [Quit: elsevero]
dviola has quit [Quit: WeeChat 1.9]
bkxd has joined #ruby
cam27 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
bkxd_ has joined #ruby
Bock has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
<apeiros>
darix: don't, that hurts!
druonysuse has quit []
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bkxd has quit [Ping timeout: 260 seconds]
enterprisey has joined #ruby
bkxd_ has quit [Ping timeout: 255 seconds]
Mortomes|Work has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lacuna has joined #ruby
ur5us has quit [Remote host closed the connection]
jameser has joined #ruby
kculpis has quit [Ping timeout: 248 seconds]
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
biberu has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ketan has joined #ruby
conta has joined #ruby
brent__ has quit [Remote host closed the connection]
anisha has joined #ruby
nofxxx has joined #ruby
_mak has left #ruby [".."]
jameser has joined #ruby
perniciouscaffei has joined #ruby
ketan has quit [Ping timeout: 260 seconds]
pankaj_ has joined #ruby
nofxx has quit [Ping timeout: 248 seconds]
SeepingN has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
shinnya has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
podlech has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
SeepingN has joined #ruby
jameser has joined #ruby
troys has quit [Quit: Bye]
podlech has quit [Client Quit]
yoongkang has quit [Quit: This computer has gone to sleep]
rohitpaulk has joined #ruby
patarr has joined #ruby
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shinnya has quit [Ping timeout: 248 seconds]
yoongkang has joined #ruby
oleo has quit [Quit: irc client terminated!]
patarr has quit [Ping timeout: 260 seconds]
enterprisey has quit [Remote host closed the connection]
savoir-faire has quit [Max SendQ exceeded]
savoir-faire has joined #ruby
howdoi has joined #ruby
uZiel has joined #ruby
Fridtjof has quit [Ping timeout: 246 seconds]
vifino has quit [Ping timeout: 240 seconds]
comet23 has quit [Ping timeout: 255 seconds]
vifino has joined #ruby
Fridtjof has joined #ruby
xall has joined #ruby
Silthias has joined #ruby
cjk101010 has quit [Ping timeout: 276 seconds]
rohitpaulk has quit [Read error: Connection reset by peer]
rohitpaulk has joined #ruby
modin has quit [Ping timeout: 240 seconds]
mr_rich101 has quit [Ping timeout: 240 seconds]
clamstar has quit [Ping timeout: 240 seconds]
sinduck has quit [Ping timeout: 240 seconds]
tsunamie has quit [Ping timeout: 240 seconds]
sonne has quit [Ping timeout: 240 seconds]
DarthGandalf has quit [Remote host closed the connection]
mtkd has quit [Ping timeout: 240 seconds]
croberts has quit [Quit: No Ping reply in 180 seconds.]
DarthGandalf has joined #ruby
brixen has quit [Ping timeout: 240 seconds]
potatoe has quit [Ping timeout: 255 seconds]
Neptu has quit [Ping timeout: 240 seconds]
TinkerTyper_ has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
perniciouscaffei has joined #ruby
mr_rich101 has joined #ruby
iooner has quit [Ping timeout: 268 seconds]
Toledo has joined #ruby
mlehrer has quit [Ping timeout: 240 seconds]
miah has quit [Ping timeout: 240 seconds]
TinkerTyper has joined #ruby
perniciouscaffei has quit [Client Quit]
sinduck has joined #ruby
theRoUS has quit [Ping timeout: 240 seconds]
bw\_ has quit [Ping timeout: 240 seconds]
tsunamie has joined #ruby
iooner has joined #ruby
aglorei has quit [Ping timeout: 248 seconds]
miah has joined #ruby
mlehrer has joined #ruby
theRoUS has joined #ruby
bw\ has joined #ruby
pankaj_ has quit [Ping timeout: 276 seconds]
pankaj_ has joined #ruby
mtkd has joined #ruby
konsolebox has quit [Ping timeout: 240 seconds]
edwardly has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
Neptu has joined #ruby
brixen has joined #ruby
modin has joined #ruby
potatoe has joined #ruby
potatoe has joined #ruby
potatoe has quit [Changing host]
sniffer has joined #ruby
sonne has joined #ruby
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
edwardly has joined #ruby
edwardly has joined #ruby
edwardly has quit [Changing host]
clamstar has joined #ruby
cjk101010 has joined #ruby
konsolebox has joined #ruby
xall has quit [Ping timeout: 258 seconds]
andikr has joined #ruby
yoongkang has quit [Quit: Leaving]
aglorei has joined #ruby
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rohitpaulk has quit [Ping timeout: 260 seconds]
xall has joined #ruby
cam27 has quit [Quit: cam27]
ltem has joined #ruby
Dimik has joined #ruby
Silthias has left #ruby [#ruby]
Silthias has joined #ruby
ledestin has joined #ruby
duderonomy has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
nobitanobi has joined #ruby
hinbody has quit [Ping timeout: 268 seconds]
djbkd has quit [Remote host closed the connection]
<zenspider_>
forwards? infinite?
zenspider_ is now known as zenspider
zenspider has quit [Changing host]
zenspider has joined #ruby
<zenspider>
heh
<zenspider>
mistym: yay! glad it has been fixed. yes, add a comment, or if you can tag it with the appropriate backports
vondruch has joined #ruby
nobitanobi has quit [Remote host closed the connection]
nicesignal has quit [Ping timeout: 240 seconds]
mark_66 has joined #ruby
alex`` has joined #ruby
jaruga has joined #ruby
lacuna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lacuna has joined #ruby
vondruch has quit [Remote host closed the connection]
danguita has joined #ruby
vondruch has joined #ruby
danguita has quit [Client Quit]
ta__ has joined #ruby
rohitpaulk has joined #ruby
ta_ has quit [Ping timeout: 260 seconds]
milardovich has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
ketan has joined #ruby
xall has quit [Ping timeout: 255 seconds]
ketan has quit [Ping timeout: 240 seconds]
hanmac has quit [Ping timeout: 240 seconds]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marr has joined #ruby
alex`` has quit [Ping timeout: 255 seconds]
alex``` has joined #ruby
danguita has joined #ruby
xall has joined #ruby
ur5us has joined #ruby
Dimik has quit [Ping timeout: 268 seconds]
ddddddd has joined #ruby
xall has quit [Ping timeout: 240 seconds]
hanmac has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
mesamoo has quit [Quit: Konversation terminated!]
patarr has joined #ruby
rohitpaulk has quit [Ping timeout: 240 seconds]
clemens3 has joined #ruby
xall has joined #ruby
montanonic has joined #ruby
moei has quit [Read error: Connection reset by peer]
patarr has quit [Ping timeout: 240 seconds]
Toledo is now known as croberts
weathermaker has joined #ruby
mitt3ns has joined #ruby
ur5us has quit [Remote host closed the connection]
agent_white has quit [Ping timeout: 258 seconds]
vondruch has quit [Remote host closed the connection]
nobitanobi has joined #ruby
nobitanobi has quit [Remote host closed the connection]
vondruch has joined #ruby
nobitanobi has joined #ruby
milardovich has joined #ruby
bkxd has joined #ruby
Xeago has joined #ruby
moei has joined #ruby
xall has quit [Quit: xall]
vondruch has quit [Remote host closed the connection]
polysics has quit [Remote host closed the connection]
vondruch has joined #ruby
hinbody has joined #ruby
polysics has joined #ruby
polysics_ has joined #ruby
polysics has quit [Ping timeout: 240 seconds]
<Cork>
is there a way to get around uninitialized constant OpenSSL::Digest::DSS1 ? (i'm trying to use Net::SSH, and i must support this crypto, and yes i know it is insecure)
clemens3 has quit [Quit: WeeChat 1.0.1]
<ljarvis>
Cork: require "openssl"
<Cork>
ljarvis: i have
<Cork>
its uninitialized constant OpenSSL::Digest::>DSS1< that is missing
<Cork>
(for good reason, but the site i need to connect to uses a 9 year old server with ssh-dss only crypto *sigh*)
<Cork>
rvm install 2.4.1
bkxd has quit [Ping timeout: 260 seconds]
rohitpaulk has joined #ruby
elnino11 has joined #ruby
<ljarvis>
Cork: what's `openssl version`
<Cork>
OpenSSL 1.1.0f 25 May 2017
<ljarvis>
that's why
<ljarvis>
DSS1 isn't supported in 1.1+
<ljarvis>
iirc
<Cork>
its the default on debian stretch
hinbody has quit [Ping timeout: 240 seconds]
<ljarvis>
you'll have to revert to an older version
<Cork>
ouch...
<ljarvis>
yeah :(
<Cork>
not really an option
<ljarvis>
lol
<Cork>
my current only option (and it sucks bad) is system('sftp -o HostKeyAlgorithms=+ssh-dss -o KexAlgorithms=diffie-hellman-group1-sha1') but i really REALLY don't want to do there...
<Cork>
do there == go there
hightower2 has joined #ruby
<ljarvis>
well, you want to connect to an old server so you'd better go back in time a bit :)
<Cork>
sigh ya freaking ironmountain...
pankaj_ has quit [Quit: Leaving]
<elnino11>
Hello everyone . I am working on making a PCI complaint payment gateway on ruby on rails and as per the requirements listed in it, I have to 'use strong credentials to render all authentication credentials undreadable'. I would love to have help from you all on what steps and direction to proceed in. Thank you.
milardovich has quit [Remote host closed the connection]
tolerablyjake has joined #ruby
tolerablyjake has quit [Client Quit]
uZiel has quit [Remote host closed the connection]
roshanavand has joined #ruby
hinbody has joined #ruby
<elnino11>
My project is currently working on ruby 1.9.3 and jruby 1.7.0
alex``` has quit [Quit: WeeChat 1.9]
mim1k has joined #ruby
uZiel has joined #ruby
workmad3 has joined #ruby
<balo>
PCI is an artform itself. and to be PCI compliant, a PCI certified dev needs to be the committer. A friendly advice: keep the PCI scope as small as possible, don't mix it in your existing [probably old and big legacy] project
<balo>
you won't find an ensure_pci_compliance gem :D so I hope you know what you are doing or ask for help otherwise
noname has joined #ruby
<elnino11>
We are actually already PCI compliant of minimal level, and are now moving towards a higher level of compliance. We have our vaults and everything in place but we have some extra requirements and I want to use the right methodology with each task I do. I actually did come across this https://github.com/rocketjob/symmetric-encryption
howdoi has quit [Quit: Connection closed for inactivity]
<elnino11>
I want to know if there are better methods to things or better gems which can help me
<zenspider>
Cork: if stfp works... maybe stunnel?
<zenspider>
I don't know if you can specify
<Cork>
zenspider: could you be a little bit more specific? it doesn't tell me anything and google gives me nothing
<Cork>
ah you mean the system command
lxsameer has joined #ruby
<zenspider>
stunnel is just a secure tunnelling tool I've used in the past, esp when I wanted to punch holes in things... if sftp can actually deal with dss then maybe stunnel can too but then you can use that to route through
<Cork>
sftp can deal with it cause openssh still have the crypto in the lib
<Cork>
even though it is disabled by default
<zenspider>
blech
<Cork>
ya
<Cork>
this makes me quite sick to my stomach but regulations requires me to do this so... -_-'
jenrzzz has quit [Ping timeout: 258 seconds]
<Cork>
i'm just trying to find a not horrible solution, but it really doesn't look like there is one
<zenspider>
I'm sure you can containerize the solution... that's not horrible... right? right?
<Cork>
heh
roshanavand has quit [Ping timeout: 240 seconds]
vondruch has quit [Remote host closed the connection]
<croberts>
sadly the directory in question has a "k" in it
<ljarvis>
croberts: you're using interpolation, why?
<ljarvis>
just remove the #{}
<croberts>
the qpid_linerstore var has to be there, i guess i could make it constant
<croberts>
oh nm i see it
<ljarvis>
#{qpid_linearstore}/dat2
<croberts>
blah, yeah i just caught it
<croberts>
sorry to bother :(
InfinityFye has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
elnino11 has quit [Ping timeout: 260 seconds]
ShekharReddy has joined #ruby
rhyselsmore has joined #ruby
ShekharReddy has quit []
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
xall has joined #ruby
ascarter has joined #ruby
psychicist__ has joined #ruby
ascarter has quit [Ping timeout: 248 seconds]
mim1k has joined #ruby
xall has quit [Ping timeout: 260 seconds]
TomyLobo2 has joined #ruby
tvw has joined #ruby
hutch34 has joined #ruby
patarr has joined #ruby
rileyy has quit [Ping timeout: 255 seconds]
hutch34 has quit [Ping timeout: 258 seconds]
ketan has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
stamina has joined #ruby
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ketan has quit [Ping timeout: 240 seconds]
xall has joined #ruby
rileyy has joined #ruby
polysics_ has quit [Remote host closed the connection]
cschneid_ has joined #ruby
polysics has joined #ruby
dunk has left #ruby [#ruby]
cschneid_ has quit [Ping timeout: 255 seconds]
sepp2k has joined #ruby
showstyle has joined #ruby
romankapitonov has joined #ruby
showstyle has quit [Quit: WeeChat 1.7.1]
InfinityFye has quit [Ping timeout: 240 seconds]
vikas027 has joined #ruby
<vikas027>
Hi Gurus, I have multiline variable. How Do I append it to a file so that new line char doesn't gets deleted? https://dpaste.de/W6EG
pandaant has quit [Remote host closed the connection]
<dminuoso>
vikas027: Don't use the trailing backslashes?
<vikas027>
dminuoso: I want to add those for making the syntax consistent across other files.
belmoussaoui_ has joined #ruby
<ljarvis>
vikas027: add the char in yourself?
<vikas027>
ljarvis: Sorry, I didn't get that
<ljarvis>
vikas027: "....\n" \
<vikas027>
I am just converting a bash script to ruby. All but htis part is done
<vikas027>
ljarvis: Perfect, this works like a charm SecRule REQUEST_URI "@beginsWith /v2-beta/"\n \ Thanks a ton !!
hutch34 has joined #ruby
nobitanobi has quit [Remote host closed the connection]
bkxd has joined #ruby
bkxd_ has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
hutch34 has quit [Ping timeout: 255 seconds]
kthibodeaux has joined #ruby
xall has quit [Ping timeout: 268 seconds]
xall has joined #ruby
xall_ has joined #ruby
xall has quit [Ping timeout: 268 seconds]
xall has joined #ruby
shinnya has joined #ruby
bkxd__ has joined #ruby
xall_ has quit [Ping timeout: 248 seconds]
bkxd_ has quit [Ping timeout: 248 seconds]
bkxd has quit [Ping timeout: 248 seconds]
bkxd has joined #ruby
petruff has joined #ruby
uZiel has quit [Remote host closed the connection]
rhyselsmore has joined #ruby
BSaboia has quit [Read error: Connection reset by peer]
BSaboia has joined #ruby
shiranuidong has joined #ruby
ldnunes has joined #ruby
uZiel has joined #ruby
ketan has joined #ruby
petruff has quit [Quit: WeeChat 1.9]
hutch34 has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
Joufflu has quit [Ping timeout: 248 seconds]
ketan has quit [Ping timeout: 268 seconds]
workmad3 has quit [Ping timeout: 260 seconds]
petruff has joined #ruby
hutch34 has quit [Ping timeout: 258 seconds]
bkxd__ has quit [Ping timeout: 255 seconds]
bkxd has quit [Ping timeout: 276 seconds]
ketan has joined #ruby
bkxd has joined #ruby
bkxd_ has joined #ruby
aglorei has quit [Read error: Connection reset by peer]
danguita has quit [Read error: Connection reset by peer]
uZiel has quit [Read error: Connection reset by peer]
stamina has quit [Ping timeout: 255 seconds]
ur5us has joined #ruby
xall has quit [Quit: xall]
aglorei has joined #ruby
iomotoko has joined #ruby
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
ketan has quit [Remote host closed the connection]
ketan has joined #ruby
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
ShekharReddy has joined #ruby
milardovich has joined #ruby
ogotai has quit [Ping timeout: 260 seconds]
ogotai has joined #ruby
workmad3 has joined #ruby
InfinityFye has joined #ruby
uZiel has joined #ruby
minimalism has quit [Quit: minimalism]
Ishido has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
synthroid has joined #ruby
ltp has quit [Ping timeout: 240 seconds]
ar1a_ has joined #ruby
ar1a_ is now known as ar1a
InfinityFye has quit [Quit: Leaving]
<ar1a>
hi! im trying to use this lib (https://github.com/chrokh/normalizr). I'm following the example and try to make a schema, but ruby throws an error saying "uninitialized constnat mymodulehere::Schema (NameError)", so i tried using Normalizr::Schema but that failed too. I'll paste my code in a second
romankapitonov has quit [Ping timeout: 268 seconds]
romankapitonov has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
<apeiros>
ljarvis: huh? why .dup.update and not just .merge? (or is it not a hash?)
hutch34 has joined #ruby
<ljarvis>
whoops that's what i meant
<ljarvis>
the original .dup threw me
<ljarvis>
I assume it's a hash
polysics_ has joined #ruby
mim1k has joined #ruby
[Butch] has joined #ruby
polysics has quit [Ping timeout: 248 seconds]
<ljarvis>
Does anyone use rubocop with a service that comments on GitHub PRs with offences?
<matthewd>
ljarvis: I'm pretty sure CodeClimate does that for us
<ljarvis>
ah ok, yeah I've heard good things about CodeClimate
bkxd_ has quit [Ping timeout: 255 seconds]
bkxd has quit [Ping timeout: 260 seconds]
conta has quit [Ping timeout: 260 seconds]
mim1k has quit [Read error: Connection reset by peer]
enterprisey has joined #ruby
mim1k has joined #ruby
kculpis has quit [Ping timeout: 240 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lamduh has joined #ruby
<lamduh>
what is the best way for an experienced developer to quicly get up to speed with ruby for RoR dev
duderonomy has joined #ruby
<Papierkorb>
learning ruby
vondruch has quit [Remote host closed the connection]
Paraxial has quit [Ping timeout: 248 seconds]
vondruch has joined #ruby
<Papierkorb>
No secrets there. you're experience, you know yourself how you learn new stuff the fastest. Just skim over the ruby community style guide first to get you on good tracks w.r.t how ruby code should (according to it) look
<lamduh>
sure...just didn't know if something like codeacademy would be good just for initial syntax, but I should probably just read the docs
<baweaver>
learnxinyminutes
<baweaver>
then Eloquent Ruby
<baweaver>
The first will give you a shotgun syntax tour
g^k_1^w^m_s^u has joined #ruby
<baweaver>
the second will teach you to Ruby like a Ruby person
romankapitonov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<baweaver>
Then you should be good to hit whatever rails tutorials, docs, style guides, or otherwise.
<lamduh>
Sounds good thanks
<baweaver>
lamduh: what's your base experience in?
g^k_1^w^m_s^u has left #ruby [#ruby]
<lamduh>
I
cam27 has quit [Quit: cam27]
<lamduh>
Idk....I have a lot of experience with a lot of languages. Professionally, C# web dev, but I've written compilers in scala and python, and multiple games with SDL so I am pretty comfortable with C++ and C as well.
<lamduh>
and ofc javascript for react stuff.
<baweaver>
You'll find Scala and JS to be the closest feeling.
shinnya has quit [Ping timeout: 248 seconds]
<baweaver>
Python to look the most similar
<lamduh>
I'm trying to move to the west coast and all these companies want me to know ROR for some reason
<baweaver>
Also note #RubyOnRails
<baweaver>
Rails 4 in Action was written by our beloved Radar and takes you through a lot of what you need to know.
<lamduh>
Yeah I'm already on it..Appreciate it though. Was asking if the development experience is better on windows yet but doesnt seem like it
dionysus69 has quit [Ping timeout: 240 seconds]
<Papierkorb>
People have reported success with that linux subsystem stuff
<lamduh>
Yeah....I don't know why but linux subsystem just feels hacky to me
<Papierkorb>
It's windows
<baweaver>
Still surprised that that's a thing
<lamduh>
I'm in an airport waiting for my flight to the bahamas downloading Lubuntu for a VM
<baweaver>
not sure what I think of it.
brent__ has joined #ruby
<lamduh>
unity always kills my laptop when I run it in a vm
g^k_1^w^m_s^u has joined #ruby
<lamduh>
and yeah....Microsoft has turned a new leaf....obviously for profits...but I think they will startt being more open source friendly soon
<baweaver>
If you want something fun, look into Raganwald's 'Kestrels, Quirky Birds, and Hopeless Egocentricy'
<lamduh>
C# is a good language. .NET core and vs code are cross platform...idk i'd rather write enterprise web apps with .NET core than java tbh
<baweaver>
If I can ever spell egocentricity right.
g^k_1^w^m_s^u has quit [K-Lined]
<lamduh>
That is quite the hipster title haha
<baweaver>
Raganwald does a lot of JS and Ruby writing, interesting stuff.
<baweaver>
brb.
<lamduh>
Probably need to do a bit more of the basics before I get into it but thanks for the usggestion
<lamduh>
plane just got here so thanks for all the help. ill bbl. c ya
mim1k has quit [Ping timeout: 248 seconds]
mim1k has joined #ruby
Paraxial has joined #ruby
hutch34 has quit [Ping timeout: 258 seconds]
ski7777 has joined #ruby
lamduh has quit [Ping timeout: 240 seconds]
Joufflu has joined #ruby
cam27 has joined #ruby
hutch34 has joined #ruby
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
cevett has quit [Read error: Connection reset by peer]
amclain has joined #ruby
nobitanobi has quit [Remote host closed the connection]
xco_ has joined #ruby
xco has quit [Ping timeout: 248 seconds]
xco_ is now known as xco
eckhardt has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
Paraxial has quit [Ping timeout: 248 seconds]
FastJack has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AgentVenom has joined #ruby
__Yiota has joined #ruby
_1_w_m__s_u__g_k has joined #ruby
_1_w_m__s_u__g_k has quit [K-Lined]
Domon has joined #ruby
gusrub has joined #ruby
konsolebox has quit [Ping timeout: 240 seconds]
ltem has quit [Quit: Leaving]
xco has quit [Quit: xco]
Paraxial has joined #ruby
maattdd has quit [Ping timeout: 260 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaruga has quit [Quit: jaruga]
cam27 has quit [Quit: cam27]
haylon has quit [Remote host closed the connection]
haylon has joined #ruby
konsolebox has joined #ruby
npgm has joined #ruby
hogetaro has quit [Quit: Leaving...]
<axsuul>
I would like to run a command via Ruby. Right now, system() gives me what I need except I also need access to the output. Sometimes the command will return blank and I need to know if that's the case. It doesn't seem like system() can do this. Another caveat is it also needs to support interaction (i.e. a byebug inspection). What can I use to run a command that supports interaction but also allows me to get access to output?
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
__Yiota has joined #ruby
<Papierkorb>
axsuul: Use `: "puts `ls some_dir/*`"
<Papierkorb>
axsuul: ` will return whatever the command wrote to STDOUT as string
lxsameer has quit [Quit: WeeChat 1.7]
lxsameer has joined #ruby
<axsuul>
Papierkorb: I've tried that however, backticks don't support interaction
<lxsameer>
axsuul: use Process module if you need to interact with that process.
<Papierkorb>
axsuul: See the Open3 lib. it's bundled with ruby.
<axsuul>
Papierkorb: I've also tried that but all it does is separate stdout, stderr, stdin
<axsuul>
I need to be able to interact with the command
<axsuul>
as if I were running the command natively in terminal
<axsuul>
#system works cause it redirects all output (I believe it streams it)
ledestin has joined #ruby
dar123 has joined #ruby
stamina has joined #ruby
<axsuul>
lxsameer: Is that Process#exec?
<eam>
axsuul: Papierkorb gave you the best answer: Open3
<eam>
it's called open3 because it does a popen and returns three descriptors: stdin, stdout and stderr for your subprocess
<Papierkorb>
axsuul: Do you actually need to do all that, or can you just check the processes exit code?
<axsuul>
eam: how would I redirect the interaction with Open3?
<axsuul>
all it does is hang if I place a byebug or binding.pry call within the code, for example
<eam>
as I said it returns three descriptors
ozcanesen has joined #ruby
<eam>
you'll need to service them
<axsuul>
Papierkorb: yep because, in my case, the exit code is always the same (1) but the output can be different
<eam>
axsuul: this is somewhat of a complex situation, you may need to spend some time studying the fundamentals
<eam>
dealing with i/o on >1 descriptor requires event driven operations
<eam>
or threads
ledestin has quit [Ping timeout: 255 seconds]
haylon has quit []
andikr has quit [Remote host closed the connection]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lxsameer has quit [Quit: WeeChat 1.7]
tolerablyjake has joined #ruby
weathermaker has quit [Quit: weathermaker]
stamina has quit [Quit: WeeChat 1.9]
mim1k has joined #ruby
drcode has quit [Read error: Connection reset by peer]
synthroid has quit []
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has quit [Ping timeout: 276 seconds]
bitcycle has quit [Quit: WeeChat 1.4]
GinoMan has joined #ruby
dviola has joined #ruby
mim1k has joined #ruby
__Yiota has joined #ruby
milardovich has quit [Remote host closed the connection]
vondruch has quit [Remote host closed the connection]
<apeiros>
class SomeClass; alias_method :existing_method, :new_name
<apeiros>
graaah Papierkorb!
vondruch has joined #ruby
* apeiros
swings fist in general direction of Papierkorb!
<maesitos>
Papierkorb: but it's private isn't it?
<apeiros>
private just means "can't be invoked with an explicit receiver"
<darix>
apeiros: Gewalt ist keine Loesung!
<apeiros>
and you are within the scope of the private method… it's a private instance method of Module
<apeiros>
your class is an instance of Module
<Papierkorb>
maesitos: Note that #alias_method isn't only an alias, but it actually *copies* the method. Try this: `class Object; alias_method :gimme, :to_s; end`, and then call it on an int: `123.gimme`. This won't give you "123" as you might expect, but it actually calls #to_s from its implementation in Object.
<apeiros>
darix: that wasn't violence. it was only posturing.
<apeiros>
Papierkorb: eh, it aliases the method as in the code. it's like a hard-link vs. a soft-link :)
<Papierkorb>
maesitos: So if you want to add something to an existing implementation, a common idiom is this: `alias_method :old_foo, :foo; def foo; old_foo(...); end`
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<Papierkorb>
apeiros: Yeah well, I meant that it doesn't generate a simple `def x; y; end` as one might expect
<apeiros>
fair hint
mim1k has joined #ruby
<maesitos>
Papierkorb: but my question is: how is it possible that the method alias_method is available inside a class definition?
<eam>
darix: serialized with an event driven function, yeah?
<eam>
aka select
<apeiros>
maesitos: classes are objects
<apeiros>
maesitos: and code of a class body is executed within the scope of the class itself
<apeiros>
which is an instance of Class
<apeiros>
and Class is a subclass of Module
<maesitos>
apeiros: got it
<apeiros>
hence instance methods of both Class and Module are available in the class body
vondruch has quit [Remote host closed the connection]
<Papierkorb>
maesitos: what apeiros said. Try this: Create a class and give it a private method. Then add a public method. Call that private method once without self, and once with explicit self.
vondruch has joined #ruby
cam27 has joined #ruby
<apeiros>
note that that's why `class Foo; def self.bar; …` defines a "class" method
<maesitos>
apeiros: that was the missing link for me, I didn't recall Class is a subclass of Module
<apeiros>
it's just a specific case of `def some_obj.foo; …; end`, where some_obj == self == Foo
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros>
(which in turn defines an instance method on the singleton_class of some_obj - there aren't really any other kinds of methods in ruby than instance methods)
Ishido has joined #ruby
mim1k has quit [Ping timeout: 268 seconds]
<maesitos>
apeiros: I'm almost finishing "grounded rubyist" and it's now clear to me that everything is an object and all that but I was missing the fact that Class is a subclass of Module
<maesitos>
apeiros: Thanks!
ddddddd has joined #ruby
<apeiros>
weeeeell, actually… :D
<apeiros>
yw ;-)
<apeiros>
(not everything is an object, but most)
kobain has quit [Ping timeout: 255 seconds]
<apeiros>
things which aren't objects f.ex.: code, variables, methods, blocks (you can create objects from the latter two, though, and one could consider it an implementation detail that they aren't)
<Papierkorb>
Not everything is an Object. Some are just BasicObject's *runs*
<apeiros>
heh
<apeiros>
BasicObject… makes me yearn for something like Introspection even more…
enterprisey has quit [Remote host closed the connection]
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
<rapha>
havenwood: Oh, ouch: "Why are you writing an XML parser? Why not use Nokogiri?" - Answer: "In short, because Nokogiri doesn't work."
cam27 has quit [Quit: cam27]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
mim1k has joined #ruby
<Zarthus>
normally i'd recommend fixing nokogiri, but that's only because 99% of projects that think that don't actually release a better product and give up halfway through :P
<Zarthus>
seems like this guy kind of commited
Mia has quit [Read error: Connection reset by peer]
milardovich has quit [Ping timeout: 248 seconds]
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
shanecav has joined #ruby
weaksauce has joined #ruby
<darix>
rapha: mechanize? not sure how much it abstracts from nokogiri
milardovich has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
shiranuidong has quit [Remote host closed the connection]
Joufflu has quit [Ping timeout: 240 seconds]
shanecav has quit [Quit: shanecav]
xzhao has quit [Remote host closed the connection]
milardovich has quit [Ping timeout: 276 seconds]
lxsameer has joined #ruby
xzhao has joined #ruby
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
nhhc has joined #ruby
nhhc has quit [Remote host closed the connection]
br0d1n has joined #ruby
psychicist__ has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
chouhoulis has quit []
Mia has quit [Ping timeout: 240 seconds]
cam27 has joined #ruby
vondruch has quit [Remote host closed the connection]
Joufflu has joined #ruby
vondruch has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
cam27 has quit [Client Quit]
nobitanobi has joined #ruby
milardovich has joined #ruby
mim1k has quit [Ping timeout: 246 seconds]
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
chouhoulis has joined #ruby
GinoMan2440 has joined #ruby
Joufflu has quit [Read error: Connection reset by peer]
vondruch has quit [Remote host closed the connection]
Joufflu has joined #ruby
vondruch has joined #ruby
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
tau has joined #ruby
<zenspider>
nokogiri doesn't work??? uhhh
GinoMan has quit [Ping timeout: 260 seconds]
milardovich has quit [Remote host closed the connection]
GinoMan2440 has quit [Ping timeout: 260 seconds]
<zenspider>
oh... yorick's BS again... n/m.
<zenspider>
"nokogiri doesn't work... (on rubinius)" ... which isn't ruby.
ketan has joined #ruby
jenrzzz has joined #ruby
__Yiota has joined #ruby
gusrub has quit [Remote host closed the connection]
tau has left #ruby [#ruby]
ketan has quit [Ping timeout: 240 seconds]
<rapha>
Well, it's still possible that someone will produce good software, no matter their motivation.
__Yiota has quit [Client Quit]
gusrub has joined #ruby
<rapha>
Anyone have any experience with Ox?
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
johnny56 has quit [Ping timeout: 264 seconds]
nowhere_man has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
roshanavand has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
tvw has quit []
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
alex`` has quit [Quit: WeeChat 1.9]
InfinityFye has joined #ruby
mim1k has joined #ruby
nobitanobi has quit [Remote host closed the connection]
<rapha>
darix: thanks for the mechanize suggestion, I'll keep that at the back of my mind.
mim1k has quit [Ping timeout: 240 seconds]
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shinnya has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
<mistym>
Finally found why trunk is broken 😩 Another long bisect session.
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
ltem has quit [Ping timeout: 255 seconds]
milardovich has joined #ruby
Silthias has quit [Ping timeout: 255 seconds]
vondruch has quit [Remote host closed the connection]
<mistym>
Which is broken if building --with-static-linked-ext
<zenspider>
I'm a bit stumped... I recently switched to a new laptop and one of my main processes stopped working. It's part of my multi-project review / CI / etc thingies. I'm not sure why it would have stopped working after this switch tho.
<zenspider>
turns out, I'm trying to run the following array:
<zenspider>
no split. just passing array to system
<zenspider>
eg this hangs: system(*%W[ruby #{nil} -S rdoc -h])
<havenwood>
ahh
<zenspider>
either it used to not hang... or ... I dunno. something changed somewhere around the time I switched... but I can't isolate where/how/why
brent__ has quit [Ping timeout: 240 seconds]
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
<eam>
you don't know if it had that empty arg on your old laptop?
enodata has joined #ruby
aglorei has quit [Ping timeout: 248 seconds]
<zenspider>
I must have the way the code was written...
<zenspider>
but I was running off the same version of ruby (absolute path)... so *shrug*?
<zenspider>
just so strange
milardovich has joined #ruby
<mistym>
When filing an issue at bugs.ruby-lang.org, is there a way to cc the author of a related commit?
<zenspider>
glad I found the fix tho... had to chase it down through 2 projects
<zenspider>
mmmm... lemme go remind myself. sec
brent__ has joined #ruby
mostlybadfly has joined #ruby
milardovich has quit [Ping timeout: 248 seconds]
<zenspider>
mistym: well... you can add watchers to the issue... I don't think that/remember if rubymine is dynamic enough to just trigger such a thing by name in the description
<zenspider>
like... I can add you to a new issue as a watcher
<mistym>
zenspider: Yeah, maybe not... I'll add a watcher after I file it I guess. Thanks!
scarar has joined #ruby
<zenspider>
I'd add the watcher while you create it... that way they get a notification for sure. Not sure about after the fact until there is another event
scarar has left #ruby [#ruby]
<zenspider>
you can also link to their issue by #nnn or revision via rnnn
<zenspider>
but I don't think it'll notify the owner of that issue or revision
patarr_ has joined #ruby
<mistym>
Hm, I can't seem to see the option 🤔 Is it restricted for non-admin users, maybe?
<mistym>
Yeah, I linked the revision already, but I doubt it'd notify the author
<zenspider>
if it is related, you can also consider adding them as owner
<zenspider>
huh... I can't add a watcher either. it is definitely on the "new issue" screen for me, but maybe that's just for those with commit bit? *shrug*
<mistym>
It's the specific commit that introduced the bug, so yeah, related
<mistym>
Huh, maybe
<zenspider>
I can't delete the spam ticket at the top tho... I don't know how granular the perms are
vondruch has quit [Remote host closed the connection]
<zenspider>
I can assign to nobu if you can't
vondruch has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
<mistym>
Thank you! Yeah, I don't seem to be able to
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Joufflu has quit [Ping timeout: 248 seconds]
ledestin has joined #ruby
rhyselsmore has joined #ruby
NightMonkey has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
johnny56 has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
patarr has joined #ruby
gothicsouth has joined #ruby
ketan has joined #ruby
preyalone has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
ketan has quit [Ping timeout: 248 seconds]
belmoussaoui_ has quit [Ping timeout: 240 seconds]
belmoussaoui_ has joined #ruby
brent__ has joined #ruby
GodFather_ has joined #ruby
cahoots has joined #ruby
<cahoots>
hi, why does "^#define\\s+\\w+\\s*\\w*$".gsub("+", "\\+") return "^#define\\s\\w\\s*\\w*$" ?
<cahoots>
dang, the gsub escapes it after it substitutes for some reason
hutch34 has quit [Ping timeout: 276 seconds]
<cahoots>
so i need "\\\\+"
<cahoots>
weird
mtkd has quit [Ping timeout: 246 seconds]
brent__ has quit [Ping timeout: 248 seconds]
mtkd has joined #ruby
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 276 seconds]
<elomatreb>
cahoots: Depending on how you're printing the result, you may be seeing the #inspect of the String, which shows escape sequences (If I understand your problem correctly)
lxsameer has quit [Quit: WeeChat 1.8]
milardovich has joined #ruby
gothicsouth has joined #ruby
jol_ has joined #ruby
comet23 has joined #ruby
<comet23>
what are your thoughts on the imac pro?
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<cahoots>
idk why they'd couple a cpu with a monitor for high-end stuff
<cahoots>
like if i want a data center of macs, i don't want a bunch of monitors along with
<comet23>
if you're doing creative work with photoshop or 3d programs you can use that and it will help you out really well or if you need to run multiple vms at the same time or create test servers, i think it's great
mim1k has joined #ruby
<cahoots>
they can just by a separate monitor though
<cahoots>
*buy
<comet23>
my imac is my favorite computer
rhyselsmore has joined #ruby
<cahoots>
sure, but they have more customers than just you
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<zenspider>
cahoots: I'd recommend also sticking to regexps and not strings
mim1k has quit [Ping timeout: 260 seconds]
brent__ has joined #ruby
duderono_ has joined #ruby
jol_ is now known as jol
<cahoots>
man
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
duderonomy has quit [Ping timeout: 240 seconds]
sgen has joined #ruby
tastygradient has joined #ruby
tastygradient has quit [Client Quit]
Joufflu has joined #ruby
tvw has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
vondruch has quit [Remote host closed the connection]