havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.5.0, 2.4.3, 2.3.6: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
chocoelho has quit [Quit: chocoelho]
bkxd has joined #ruby
bkxd has quit []
KeyJoo has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
Rr4sT has quit [Quit: Connection closed for inactivity]
mikecmpbll has quit [Quit: inabit. zz.]
jtdoncas has quit [Ping timeout: 268 seconds]
bkxd has quit [Ping timeout: 240 seconds]
jrp93 has quit [Read error: Connection reset by peer]
eightlimbed has quit [Ping timeout: 248 seconds]
bkxd has joined #ruby
justicefries has joined #ruby
justicefries has quit [Client Quit]
justicefries has joined #ruby
mtkd has quit [Ping timeout: 256 seconds]
mtkd has joined #ruby
darkhanb_ has joined #ruby
darkhanb has quit [Ping timeout: 248 seconds]
meshsmith has quit [Remote host closed the connection]
megamos has quit [Ping timeout: 248 seconds]
chocoelho has joined #ruby
justicefries has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
justicefries has joined #ruby
drewmcmi_ has quit [Quit: Textual IRC Client: www.textualapp.com]
justicefries has quit [Client Quit]
amatas has quit [Quit: amatas]
drewmcmillan has joined #ruby
alex`` has quit [Quit: WeeChat 2.0.1]
alfiemax has joined #ruby
alfiemax has quit [Ping timeout: 252 seconds]
s33n has joined #ruby
jtdoncas has joined #ruby
chocoelho has quit [Quit: chocoelho]
pelegreno has quit [Remote host closed the connection]
pelegreno has joined #ruby
al2o3-cr has quit [Quit: 你变得越安静,你就越能听到]
wolakkk has joined #ruby
guardianx has joined #ruby
alfiemax has joined #ruby
al2o3-cr has joined #ruby
guardianx has quit []
alfiemax has quit [Ping timeout: 256 seconds]
wolakkk has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
jeffreylevesque has joined #ruby
zwliew has joined #ruby
wolakkk has joined #ruby
noodle has quit [Quit: /quit]
mynameisdebian has quit [Quit: Leaving]
noodle has joined #ruby
jtdoncas has quit [Ping timeout: 248 seconds]
hightower3 has quit [Ping timeout: 240 seconds]
hightower3 has joined #ruby
wolakkk has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
jtdoncas has joined #ruby
wolakkk has joined #ruby
bkxd has quit []
bkxd has joined #ruby
knight33 has quit [Ping timeout: 256 seconds]
leitz has quit [Quit: Nappy time]
John__ has quit [Read error: Connection reset by peer]
Azure has quit [Read error: Connection reset by peer]
randomstrangerb has quit [Ping timeout: 268 seconds]
Azure has joined #ruby
randomstrangerb has joined #ruby
bkxd has quit []
TomyLobo2 has quit [Ping timeout: 252 seconds]
jeffreylevesque_ has joined #ruby
jeffreylevesque has quit [Ping timeout: 240 seconds]
Vapez has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
alfiemax has joined #ruby
iamarun has joined #ruby
alfiemax has quit [Ping timeout: 248 seconds]
ledestin has joined #ruby
s33n has quit [Quit: Leaving]
AJA4350 has quit [Quit: AJA4350]
belmoussaoui has quit [Quit: belmoussaoui]
chocoelho has joined #ruby
justicefries has joined #ruby
chocoelho has quit [Quit: chocoelho]
gix- has joined #ruby
gix has quit [Disconnected by services]
cosimo_ has quit [Quit: ZNC 1.6.5 - http://znc.in]
c0ncealed has quit [Read error: Connection reset by peer]
c0ncealed has joined #ruby
darkness has joined #ruby
hightower3 has quit [Ping timeout: 252 seconds]
iamarun has quit [Quit: Leaving]
dviola has quit [Quit: WeeChat 2.0.1]
alfiemax has joined #ruby
randomstrangerb has quit [Ping timeout: 256 seconds]
randomstrangerb has joined #ruby
troys_ is now known as troys
alfiemax has quit [Ping timeout: 240 seconds]
dinfuehr has quit [Ping timeout: 240 seconds]
dinfuehr has joined #ruby
nofxx has joined #ruby
bkxd has joined #ruby
faces has joined #ruby
konsolebox has quit [Ping timeout: 256 seconds]
konsolebox has joined #ruby
zwliew has quit [Quit: Connection closed for inactivity]
bkxd has quit []
bkxd has joined #ruby
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
randomstrangerb has quit [Ping timeout: 268 seconds]
randomstrangerb has joined #ruby
wolakkk has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
bkxd has quit [Client Quit]
konsolebox has quit [Ping timeout: 256 seconds]
konsolebox has joined #ruby
ptx0 has quit [Remote host closed the connection]
bkxd has joined #ruby
bkxd has quit [Client Quit]
ptx0 has joined #ruby
stove has quit [Remote host closed the connection]
stove has joined #ruby
alfiemax has joined #ruby
stove has quit [Remote host closed the connection]
stove has joined #ruby
konsolebox has quit [Ping timeout: 248 seconds]
konsolebox has joined #ruby
alfiemax has quit [Ping timeout: 248 seconds]
konsolebox has quit [Ping timeout: 240 seconds]
konsolebox has joined #ruby
troys is now known as troys_
ByronJohnson has quit [Ping timeout: 248 seconds]
eightlimbed has joined #ruby
alfiemax has joined #ruby
alfiemax has quit [Remote host closed the connection]
darkhanb_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
konsolebox has quit [Ping timeout: 268 seconds]
naprimer3 has joined #ruby
konsolebox has joined #ruby
naprimer has quit [Ping timeout: 240 seconds]
konsolebox has quit [Ping timeout: 252 seconds]
konsolebox has joined #ruby
alfiemax has joined #ruby
konsolebox has quit [Ping timeout: 252 seconds]
konsolebox has joined #ruby
troys_ is now known as troys
konsolebox has quit [Ping timeout: 256 seconds]
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
randomstrangerb has quit [Ping timeout: 240 seconds]
randomstrangerb has joined #ruby
konsolebox has joined #ruby
Mikasi has quit [Remote host closed the connection]
Mikasi has joined #ruby
Mikasi has quit [Max SendQ exceeded]
Mikasi has joined #ruby
konsolebox has quit [Ping timeout: 256 seconds]
konsolebox has joined #ruby
lytol_ has joined #ruby
jtdoncas_ has joined #ruby
rippa has joined #ruby
eightlimbed has quit [Ping timeout: 265 seconds]
jtdoncas has quit [Ping timeout: 252 seconds]
troys has quit [Quit: Bye]
marius has joined #ruby
KeyJoo has joined #ruby
konsolebox has quit [Ping timeout: 248 seconds]
konsolebox has joined #ruby
elphe has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
jnollette has quit [Ping timeout: 272 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jnollette has joined #ruby
alfiemax has quit [Remote host closed the connection]
mtkd has quit [Ping timeout: 248 seconds]
mtkd has joined #ruby
cdg has joined #ruby
LocaMocha is now known as JPMorgan
reber has joined #ruby
JPMorgan is now known as Sauvin
k0mpa has quit [Ping timeout: 272 seconds]
cdg has quit [Ping timeout: 265 seconds]
ahrs has quit [Remote host closed the connection]
ahrs has joined #ruby
anisha has joined #ruby
darkness has quit [Remote host closed the connection]
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
alfiemax has joined #ruby
jrp93 has joined #ruby
jtdoncas_ has quit [Ping timeout: 260 seconds]
dn` has joined #ruby
alfiemax has quit [Remote host closed the connection]
KeyJoo has quit [Ping timeout: 260 seconds]
alfiemax has joined #ruby
claudiuinberlin has joined #ruby
alfiemax has quit [Ping timeout: 248 seconds]
randomstrangerb has quit [Ping timeout: 248 seconds]
randomstrangerb has joined #ruby
jtdoncas_ has joined #ruby
jtdoncas_ has quit [Ping timeout: 260 seconds]
Dimik has quit [Ping timeout: 265 seconds]
oetjenj has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
jtdoncas_ has joined #ruby
darkhanb has joined #ruby
jtdoncas_ has quit [Ping timeout: 248 seconds]
t0adst00l has joined #ruby
belmoussaoui has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
jtdoncas_ has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
jtdoncas_ has quit [Ping timeout: 265 seconds]
mtkd has joined #ruby
clemens3 has joined #ruby
alex`` has joined #ruby
jnollette has quit [Remote host closed the connection]
dionysus69 has joined #ruby
jnollette has joined #ruby
jtdoncas_ has joined #ruby
randomstrangerb has quit [Ping timeout: 256 seconds]
randomstrangerb has joined #ruby
alfiemax has joined #ruby
jtdoncas_ has quit [Ping timeout: 248 seconds]
InfinityFye has joined #ruby
InfinityFye has left #ruby [#ruby]
zwliew has joined #ruby
Ltem has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
alfiemax has quit [Remote host closed the connection]
drewmcmillan has joined #ruby
jtdoncas_ has joined #ruby
miskatonic has joined #ruby
t0adst00l has quit [Ping timeout: 272 seconds]
biberu has joined #ruby
jtdoncas_ has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has quit [Ping timeout: 260 seconds]
gil_ has joined #ruby
troulouliou_div2 has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
miskatonic has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
chocoelho has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
jrp93_2 has joined #ruby
jtdoncas_ has joined #ruby
amatas has joined #ruby
jrp93 has quit [Ping timeout: 265 seconds]
jtdoncas_ has quit [Ping timeout: 240 seconds]
justicefries has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AJA4350 has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
mtkd has joined #ruby
mynameisdebian has joined #ruby
<mynameisdebian> Anyone use Rails? Looking at the example at the bottom of this page on Controllers here: https://www.tutorialspoint.com/ruby-on-rails/rails-controllers.htm What is the practical difference between the "show" and "edit" methods? Are they both needed?
<mozzarella> mynameisdebian: they do different things
<mozzarella> well, ultimately it's for you to decide
<mynameisdebian> mozzarella: Thank you for the reply. Can you elaborate on that for me? The only difference I see is that "edit" includes the line "@subjects = Subject.all"
<mozzarella> but show typically doesn't allow you to modify the entry, it only shows it
<mynameisdebian> mozzarella: I guess I don't see how the edit method actually changes anything?
<mynameisdebian> sorry for the newbie question
<mozzarella> mynameisdebian: it doesn't change anything, it's from there that you write the form needed to modify an entry
<mozzarella> the form will be sent to update
<mozzarella> the two views can be similar or entirely different
jtdoncas_ has joined #ruby
Burgestrand has joined #ruby
<mynameisdebian> mozzarella, thank you
Burgestrand has quit [Client Quit]
drcode has quit [Ping timeout: 240 seconds]
<mozzarella> mynameisdebian: maybe you would understand better by looking at the screenshots: https://www.tutorialspoint.com/ruby-on-rails/rails-views.htm
<mynameisdebian> mozzarella: tbh I was just going through that tutorial in order, and I didn't get to the Views section yet, so didn't realize that I would be defining a view for each method (I get that now)
<mynameisdebian> your answer helped
<mozzarella> alright
cdg has joined #ruby
jtdoncas_ has quit [Ping timeout: 260 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
plexigras has quit [Ping timeout: 272 seconds]
cdg has quit [Ping timeout: 272 seconds]
chocoelho has quit [Quit: chocoelho]
sameerynho has joined #ruby
drewmcmillan has joined #ruby
<mynameisdebian> I will look at those
leitz has joined #ruby
<leitz> Confused again. Didn't we used to be able to declare a variable outside of a method and then use it in the method, as long as it wasn't re-defined?
<mynameisdebian> leitz, if you are not defining a class in your .rb file, try preceding the variable with an '@'
<mynameisdebian> leitz, sorry if I misunderstood
<mynameisdebian> leitz, sorry, I may have misunderstood. Can you paste your code somewhere?
jtdoncas_ has joined #ruby
<leitz> mynameisdebian, Line 19 sets the connection name. L43's method needs it https://github.com/makhidkarun/rb_tools/blob/master/bin/set_origin_planet.rb
DmitryBochkarev has joined #ruby
<leitz> Lately I've moved back to Ruby from Python, so I may just be more confused than normal.
jtdoncas_ has quit [Ping timeout: 260 seconds]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<leitz> The code and connection work. I was just wondering if there was a way to not pass in the connection name.
<mynameisdebian> leitz, what error do you get?
<mynameisdebian> oh
tomlukeywood has joined #ruby
guardianx has joined #ruby
<mozzarella> I don't think it ever was possible, but you can use globals, constants or functions
<tomlukeywood> I am attempting recursion in ruby yet when i try this code i get an error: quiz.rb:19: syntax error, unexpected tIDENTIFIER, expecting keyword_end
<tomlukeywood> https://pastebin.com/tAMgPhZ4 why is this?
<ruby[bot]> tomlukeywood: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/c70e92a3d9458ac9d8980ec74e4e5178
<ruby[bot]> tomlukeywood: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
bkxd has quit []
jtdoncas_ has joined #ruby
<leitz> tomlukeywood, maybe swtich lines 19 and 20?
<mozzarella> tomlukeywood: although you don't need parentheses, you still need comas…
<tomlukeywood> leitz: but would that not remove the recursion?
<mozzarella> commas*
<mynameisdebian> tomlukeywood, I'm not a Ruby expert but can you define an argument list without commas?
<tomlukeywood> mozzarella: oh thanks
alfiemax has joined #ruby
<leitz> tomlukeywood, I'm barely able to recurse myself, so still working on it.
nadir has joined #ruby
zwliew has quit [Quit: Connection closed for inactivity]
jtdoncas_ has quit [Ping timeout: 268 seconds]
<tomlukeywood> leitz: what dont you understand?
<leitz> tomlukeywood: life, women, recursion...
<al2o3-cr> lol
<tomlukeywood> leitz: can you understand this example?
alfiemax has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
jnyw has quit [Quit: WeeChat 2.0.1]
<leitz> Hey tomlukeywood, I've done one or two small recursion exercises. Literally, one or two. So I get the concept of it but not much more. Reading "Grokking Algorithms" and it's helping. Took a coding break for the past couple weeks.
<tomlukeywood> ok if you get stuck just say
<leitz> Also re-reading "think like a programmer" and the recursion example makes sense. Mostly.
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ltem has quit [Quit: bbl]
belmoussaoui__ has joined #ruby
<jhass> havenwood: al2o3-cr I maintain a couple of the older ruby packages but the main one is by anatol
drewmcmillan has joined #ruby
<al2o3-cr> ok, thank you jhass.
belmoussaoui has quit [Ping timeout: 272 seconds]
belmoussaoui__ is now known as belmoussaoui
leitz has quit [Quit: Nappy time]
guardianx has left #ruby [#ruby]
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
jtdoncas_ has joined #ruby
ta_ has quit [Ping timeout: 250 seconds]
ta_ has joined #ruby
jtdoncas_ has quit [Ping timeout: 246 seconds]
despai has joined #ruby
plexigras has joined #ruby
tomlukeywood has left #ruby [#ruby]
despai has quit [Quit: ...]
tomphp has joined #ruby
hightower3 has joined #ruby
TomyLobo2 has joined #ruby
alfiemax has quit [Remote host closed the connection]
<troulouliou_div2> hi i have a string like this BLAH=DATA1, BLAH2=DATA2, BLAH3=DATA3 ; what is the best way to extract DATA3 with a regexp ?
<troulouliou_div2> i can get the index of BLAH3 and then extract but i would like to know if there is a better way
<lupine> /BLAH3=(\w+)/ ?
<troulouliou_div2> lupine, and then how to extract it from the string ?
<troulouliou_div2> just string[post, length] ?
jtdoncas_ has joined #ruby
<troulouliou_div2> gsub :)
<lupine> "BLAH=DATA1, BLAH2=DATA2, BLAH3=DATA3".match(/BLAH3=(\w+)/)[1]
<lupine> `match` will return a MatchData instance. you can get by index (1 being the first capture group) or do whatever else you like
<troulouliou_div2> lupine, yeah thanks
mtkd has quit [Ping timeout: 248 seconds]
mtkd has joined #ruby
jtdoncas_ has quit [Ping timeout: 264 seconds]
jrp93_3 has joined #ruby
jrp93_2 has quit [Ping timeout: 252 seconds]
jrp93 has joined #ruby
jrp93_2 has joined #ruby
jrp93_3 has quit [Ping timeout: 252 seconds]
jrp93 has quit [Ping timeout: 252 seconds]
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
alfiemax has joined #ruby
clemens3 has quit [Ping timeout: 264 seconds]
John__ has joined #ruby
jtdoncas_ has joined #ruby
jtdoncas_ has quit [Ping timeout: 265 seconds]
ta_ has joined #ruby
anisha has joined #ruby
randomstrangerb has quit [Ping timeout: 272 seconds]
chocoelho has joined #ruby
randomstrangerb has joined #ruby
chocoelho has quit [Client Quit]
vipaca has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
Burgestrand has joined #ruby
Burgestrand has quit [Client Quit]
Burgestrand has joined #ruby
mynameisdebian has quit [Ping timeout: 265 seconds]
Burgestrand has quit [Quit: Closing time!]
Burgestrand has joined #ruby
alfiemax has quit [Remote host closed the connection]
mynameisdebian has joined #ruby
Burgestr_ has joined #ruby
jtdoncas_ has joined #ruby
Burgestrand has quit [Ping timeout: 256 seconds]
jtdoncas_ has quit [Ping timeout: 256 seconds]
cremes has joined #ruby
x0f has joined #ruby
DLSteve has joined #ruby
drewmcmi_ has joined #ruby
drewmcmillan has quit [Ping timeout: 264 seconds]
drewmcmi_ has quit [Client Quit]
drewmcmillan has joined #ruby
drewmcmillan has quit [Client Quit]
drewmcmillan has joined #ruby
Ltem has joined #ruby
Burgestr_ has quit [Quit: Closing time!]
InfinityFye has joined #ruby
dionysus69 has joined #ruby
InfinityFye has left #ruby [#ruby]
drewmcmillan has quit [Quit: Textual IRC Client: www.textualapp.com]
drewmcmillan has joined #ruby
despai has joined #ruby
camonz has joined #ruby
jtdoncas_ has joined #ruby
anisha has joined #ruby
jtdoncas_ has quit [Ping timeout: 240 seconds]
despai has quit [Quit: ...]
helpa-bot has joined #ruby
tcopeland_ has joined #ruby
gf3_ has joined #ruby
gf3 has quit [Ping timeout: 248 seconds]
hurricanehrndz has quit [Ping timeout: 248 seconds]
yaewa has joined #ruby
zwliew has joined #ruby
Brak____________ has quit [Ping timeout: 248 seconds]
Iambchop has quit [Ping timeout: 248 seconds]
rideh has quit [Ping timeout: 248 seconds]
tcopeland has quit [Ping timeout: 248 seconds]
yosafbridge has quit [Ping timeout: 248 seconds]
CBebop has quit [Ping timeout: 248 seconds]
gf3_ is now known as gf3
<ikopico> yo, in gemspec - adding 'rake' and 'rspec' as 'add_development_dependency' - then running with 'bundle exec' tells me that I don't have 'rake' installed in this bundle, same goes with rspec. I guess this is a common misunderstanding, can anyone please advise?
anisha_ has joined #ruby
coderphive has quit [Ping timeout: 248 seconds]
maciuszek has quit [Ping timeout: 248 seconds]
lxsameer has quit [Ping timeout: 248 seconds]
jerryskye has quit [Ping timeout: 248 seconds]
Lyubo1 has quit [Ping timeout: 248 seconds]
<havenwood> ikopico: Do you have the line `gemspec` in your Gemfile?
hays_ has joined #ruby
hr3f has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anisha has quit [Ping timeout: 248 seconds]
DLSteve has quit [Ping timeout: 248 seconds]
naprimer3 has quit [Ping timeout: 248 seconds]
moei has quit [Ping timeout: 248 seconds]
pppktz has quit [Ping timeout: 248 seconds]
href has quit [Ping timeout: 248 seconds]
zipkid has quit [Ping timeout: 248 seconds]
synstack has quit [Ping timeout: 248 seconds]
DTZUZU has quit [Ping timeout: 248 seconds]
ozzloy_ has quit [Ping timeout: 248 seconds]
akhkharu has quit [Ping timeout: 248 seconds]
perry has quit [Ping timeout: 248 seconds]
kenichi has quit [Ping timeout: 248 seconds]
<ikopico> yup, other than testing with rake everything works as expecetd @havenwood
claudiuinberlin has quit [Ping timeout: 248 seconds]
weaksauce has quit [Ping timeout: 248 seconds]
cjohnson has quit [Ping timeout: 248 seconds]
Puffball_ has quit [Ping timeout: 248 seconds]
Derperperd has quit [Ping timeout: 248 seconds]
PaulePanter has quit [Ping timeout: 248 seconds]
hays has quit [Ping timeout: 248 seconds]
hxegon has quit [Ping timeout: 248 seconds]
Keltia has quit [Ping timeout: 248 seconds]
Gabemo has quit [Ping timeout: 248 seconds]
helpa has quit [Ping timeout: 248 seconds]
<ikopico> Actually I'm using most of the templates that you get with 'bundle gem'
hr3f is now known as href
tcopeland_ is now known as tcopeland
DTZUZU has joined #ruby
drewmcmillan has quit [Quit: Textual IRC Client: www.textualapp.com]
A124 has quit [Ping timeout: 240 seconds]
yosafbridge has joined #ruby
michael_mbp has quit [Ping timeout: 240 seconds]
bokayio has quit [Ping timeout: 240 seconds]
helpa-bot has quit [Remote host closed the connection]
helpa has joined #ruby
<havenwood> ikopico: I just tried a two-liner Gemspec with rake as dev dep in gemspec and it installed rake.
Puffball has joined #ruby
pppktz has joined #ruby
anisha_ has quit [Client Quit]
<ikopico> havenwood hmm did you run 'bundle' / 'bundle install' to achieve that?
hxegon has joined #ruby
PaulePanter has joined #ruby
<havenwood> ikopico: yup
x0f has quit [Ping timeout: 260 seconds]
drewdrew has joined #ruby
<havenwood> ikopico: A Gemfile with `source 'https://rubygems.org'` and `gemspec` only.
drewdrew has quit [Client Quit]
nuck has quit [Ping timeout: 260 seconds]
<ikopico> yup that's the exact same setup I have
<havenwood> ikopico: and in the *.gemspec a: gem.add_development_dependency 'rake'
<havenwood> ikopico: then: bundle
ta_ has quit [Remote host closed the connection]
bokayio has joined #ruby
A124 has joined #ruby
DLSteve has joined #ruby
Mikasi has quit [Ping timeout: 268 seconds]
<havenwood> ikopico: Using the latest RubyGems and Bundler?
drewmcmillan has joined #ruby
HashNuke has quit [Ping timeout: 260 seconds]
<havenwood> Works on my machine!
<ikopico> LOL
<ikopico> ugh
<havenwood> RubyGems 2.7.4 and Bundler 1.16.1.
<ikopico> I hate when it comes to dependency management and rbenv etc
x0f has joined #ruby
<havenwood> ikopico: gem update --system && gem update bundler
perry has joined #ruby
perry has quit [Changing host]
perry has joined #ruby
rideh has joined #ruby
jerryskye has joined #ruby
<havenwood> ?rbenv
<ruby[bot]> Missing command under rbenv? Did you try `rbenv rehash`?
Gabemo has joined #ruby
Derperperd has joined #ruby
Mikasi has joined #ruby
CBebop has joined #ruby
brainslug has joined #ruby
kenichi has joined #ruby
Lyubo1 has joined #ruby
<havenwood> RVM has #rvm, chruby has #chruby, and rbenv has that message ^.
synstack has joined #ruby
ozzloy has joined #ruby
<havenwood> ;-P
synstack has quit [Changing host]
synstack has joined #ruby
ozzloy has quit [Changing host]
ozzloy has joined #ruby
<ikopico> :)
michael_mbp has joined #ruby
Keltia has joined #ruby
cjohnson has joined #ruby
<ikopico> OK I'm feeling dumb now, I've removed the .bundle dir and refetched everything ¯\_(ツ)_/¯
tomphp has joined #ruby
<ikopico> And now it works
mtkd has quit [Ping timeout: 265 seconds]
<havenwood> \o/
<ikopico> Thanks a lot havenwood - in the future when in doubt I'll first turn it off and on again
coderphive has joined #ruby
lxsameer has joined #ruby
mtkd has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
hurricanehrndz has joined #ruby
naprimer3 has joined #ruby
jtdoncas_ has joined #ruby
jtdoncas_ has quit [Ping timeout: 250 seconds]
code_zombie has joined #ruby
mikecmpbll has joined #ruby
tomphp has quit [Ping timeout: 252 seconds]
mynameisdebian has quit [Quit: Leaving]
mynameisdebian has joined #ruby
ta_ has joined #ruby
belmoussaoui has quit [Read error: Connection reset by peer]
belmoussaoui has joined #ruby
alfiemax has joined #ruby
vipaca has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ishido has quit [Ping timeout: 272 seconds]
chouhoulis has joined #ruby
tomphp has joined #ruby
jtdoncas_ has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
tomphp has quit [Client Quit]
jtdoncas_ has quit [Ping timeout: 240 seconds]
Burgestrand has joined #ruby
ta_ has quit [Ping timeout: 255 seconds]
dviola has joined #ruby
ta_ has joined #ruby
banisterfiend has joined #ruby
clemens3 has joined #ruby
elphe has quit [Ping timeout: 264 seconds]
dionysus69 has joined #ruby
NightMonkey has quit [Quit: ZNC - http://znc.in]
troulouliou_div2 has quit [Remote host closed the connection]
linetrac1 has joined #ruby
moei has joined #ruby
flak has joined #ruby
selim_ has joined #ruby
selim has quit [Read error: Connection reset by peer]
linetrace has quit [Read error: Connection reset by peer]
QualityAddict has quit [Ping timeout: 240 seconds]
yaewa has quit [Ping timeout: 264 seconds]
sirecote has quit [Ping timeout: 264 seconds]
sirecote has joined #ruby
ikopico has quit [Ping timeout: 264 seconds]
Mrgoose2 has quit [Ping timeout: 264 seconds]
elphe has joined #ruby
ikopico has joined #ruby
yokel has quit [Ping timeout: 264 seconds]
ericmathison has quit [Ping timeout: 264 seconds]
ericmathison has joined #ruby
rippa has quit [Ping timeout: 264 seconds]
Mrgoose2 has joined #ruby
Ishido has joined #ruby
minimalism has quit [Quit: minimalism]
Ltem has quit [Quit: Leaving]
NightMonkey has joined #ruby
jtdoncas_ has joined #ruby
jtdoncas_ has quit [Ping timeout: 248 seconds]
elphe has quit [Ping timeout: 252 seconds]
justicefries has joined #ruby
mynameisdebian has quit [Remote host closed the connection]
mynameisdebian has joined #ruby
VladGh has quit [Remote host closed the connection]
VladGh has joined #ruby
mynameisdebian has quit [Client Quit]
ta_ has quit [Ping timeout: 260 seconds]
dinfuehr has quit [Ping timeout: 264 seconds]
ta_ has joined #ruby
dinfuehr has joined #ruby
Burgestrand has quit [Quit: Closing time!]
maciuszek has joined #ruby
Brak____________ has joined #ruby
Iambchop has joined #ruby
zipkid has joined #ruby
nuck has joined #ruby
HashNuke has joined #ruby
ogres has joined #ruby
jtdoncas_ has joined #ruby
zwliew has quit [Quit: Connection closed for inactivity]
jtdoncas_ has quit [Ping timeout: 248 seconds]
darkhanb has joined #ruby
mtkd has quit [Ping timeout: 248 seconds]
mtkd has joined #ruby
c0ncealed has quit [Remote host closed the connection]
c0ncealed has joined #ruby
KeyJoo has joined #ruby
ta_ has quit [Ping timeout: 250 seconds]
alfiemax has quit [Remote host closed the connection]
eightlimbed has joined #ruby
jrp93_2 has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
jnollette has quit [Ping timeout: 272 seconds]
jtdoncas_ has joined #ruby
chouhoulis has quit [Ping timeout: 268 seconds]
jtdoncas_ has quit [Ping timeout: 240 seconds]
jnollette has joined #ruby
KeyJoo has quit [Ping timeout: 248 seconds]
KeyJoo has joined #ruby
uZiel has joined #ruby
<TomyLobo2> i need to solve the travelling salesman problem for a set of about 20 entries
<TomyLobo2> i could bruteforce it, but maybe there's a gem for that? :)
despai has joined #ruby
zautomata has joined #ruby
ectos has joined #ruby
ta_ has quit [Ping timeout: 268 seconds]
DmitryBochkarev has joined #ruby
spkag has joined #ruby
ta_ has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
kapil___ has joined #ruby
jtdoncas_ has joined #ruby
jtdoncas_ has quit [Ping timeout: 248 seconds]
webguynow has quit [Ping timeout: 256 seconds]
webguynow has joined #ruby
bkxd has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
tvw has joined #ruby
<havenwood> TomyLobo2: Here's an example solution with ai4r: https://github.com/SergioFierens/ai4r/tree/master/examples/genetic_algorithm
cdg has joined #ruby
despai has quit [Quit: ...]
<TomyLobo2> that thing's page was redirecting to all kinds of advertisement so i didnt look into it
Dimik has joined #ruby
sameerynho has quit [Ping timeout: 256 seconds]
<TomyLobo2> havenwood, but doesn't this approximate?
<havenwood> TomyLobo2: You want to exhaust all possibilities?
bmurt has joined #ruby
<TomyLobo2> yes
<TomyLobo2> it's only 17 entries
<havenwood> TomyLobo2: Is it cheating to use the Google Distance Matrix API?
<havenwood> ;-P
<TomyLobo2> only 128k possibilities...
<TomyLobo2> heh
<TomyLobo2> that's probably spherical though
<havenwood> shortest_route_by_*
<TomyLobo2> and probably even takes roads into account
<havenwood> yeah, if your sales folk aren't going by road it's no use
<TomyLobo2> :D
<TomyLobo2> it's not sales
<havenwood> just joking
<TomyLobo2> it's planning a construction ship's route in stellaris
<havenwood> ah, neat
<havenwood> TomyLobo2: hrm, any way to do this with Matrix?
<havenwood> i dunno
<TomyLobo2> i made a savegame parser, i'm picking it apart to find all the planets missing research/mining stations, now i want to find the optimal route between them
<TomyLobo2> assuming direct jumps, for starters :)
amatas has quit [Quit: amatas]
<TomyLobo2> havenwood, what'S MAtrix?
<TomyLobo2> the google thing?
<havenwood> TomyLobo2: I just meant with Matrix in stdlib or like NMatrix from SciRuby.
tvw has quit [Ping timeout: 255 seconds]
<havenwood> It just seemed like a matrix - I don't actually have a solution.
bkxd has quit [Ping timeout: 264 seconds]
<havenwood> TomyLobo2: On second thought, there's probably nothing to that.
<havenwood> TomyLobo2: Brute forcing seems reasonable.
orbyt_ has joined #ruby
<TomyLobo2> yeah i just have to make sure i dont have all permutations in memory at any point ^^
DmitryBochkarev has joined #ruby
<TomyLobo2> i need a parallel_min_by ^^
<TomyLobo2> maybe i should use backtracking instead of being lazy and using Array#permutation
bkxd has joined #ruby
jtdoncas_ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
belmoussaoui has quit [Remote host closed the connection]
bkxd has quit []
millz has joined #ruby
miskatonic has joined #ruby
bkxd has joined #ruby
jamesaxl has quit [Quit: WeeChat 1.9.1]
jtdoncas_ has quit [Ping timeout: 268 seconds]
miskatonic has quit [Remote host closed the connection]
d^sh has quit [Ping timeout: 265 seconds]
d^sh has joined #ruby
stove has quit [Quit: stove]
pastorinni has joined #ruby
<TomyLobo2> i'm basically looking for the shortest hamiltonian path on the graph
drcode has joined #ruby
drcode has quit [Remote host closed the connection]
spkag has quit [Quit: Konversation terminated!]
drcode has joined #ruby
justicefries has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
spkag has joined #ruby
jeffreylevesque_ has quit [Ping timeout: 264 seconds]
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
chouhoulis has joined #ruby
DmitryBochkarev has joined #ruby
ta_ has quit [Ping timeout: 272 seconds]
belmoussaoui has joined #ruby
mtkd has quit [Ping timeout: 272 seconds]
ta_ has joined #ruby
mtkd has joined #ruby
yokel has joined #ruby
ozzloy has quit [Remote host closed the connection]
lytol_ has quit [Remote host closed the connection]
ogres has quit [Quit: Connection closed for inactivity]
jtdoncas_ has joined #ruby
killsnowden has joined #ruby
pastorinni has quit [Remote host closed the connection]
Azure has quit [Quit: Oops.]
cdg has quit [Remote host closed the connection]
zautomata1 has joined #ruby
zautomata has quit [Ping timeout: 248 seconds]
ta_ has quit [Ping timeout: 260 seconds]
marius has quit [Quit: marius]
code_zombie has quit [Ping timeout: 250 seconds]
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
ta_ has joined #ruby
Azure has joined #ruby
Burgestrand has joined #ruby
capin has joined #ruby
Burgestrand has quit [Quit: Closing time!]
eightlimbed has quit [Ping timeout: 272 seconds]
meesles has joined #ruby
bkxd has quit []
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 252 seconds]
millz has quit [Quit: Ex-Chat]
tomphp has joined #ruby
DmitryBochkarev has joined #ruby
zautomata1 has quit [Quit: WeeChat 1.4]
Azure has joined #ruby
zautomata has joined #ruby
ta_ has quit [Ping timeout: 264 seconds]
killsnowden has quit [Quit: Leaving]
<TomyLobo2> it's still not done
<TomyLobo2> come on, it's just 17! permutations
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
<TomyLobo2> 355 687 428 096 000
<TomyLobo2> 355 trillion.... that takes a while
stove has joined #ruby
ta_ has joined #ruby
randomstrangerb has quit [Ping timeout: 260 seconds]
randomstrangerb has joined #ruby
millz has joined #ruby
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mistergibson has joined #ruby
cdg has joined #ruby
cdg has quit [Ping timeout: 250 seconds]
alfiemax has joined #ruby
ged has quit [Quit: WeeChat 2.0]
ged has joined #ruby
Azure has joined #ruby
ta_ has quit [Ping timeout: 260 seconds]
justicefries has joined #ruby
bairyn has joined #ruby
ta_ has joined #ruby
ahrs has quit [Remote host closed the connection]
ahrs has joined #ruby
KeyJoo has quit [Ping timeout: 264 seconds]
<apeiros> TomyLobo2: you seriously calculate 17! perms of something?
<TomyLobo2> yes
<TomyLobo2> well not anymore
<apeiros> I mean, assuming calculating 1 takes 1µs (0.000001s), you still wait for 11 years…
<TomyLobo2> i'm switching to branch&bound, which should be 2^17 instead :)
<TomyLobo2> ...according to wikipedia
<apeiros> yes, that should be ever so slightly that it's barely noticeable faster
<TomyLobo2> do you have any idea how big the difference between 2^n and n! is?
<apeiros> yes, about 11y in above calc :-p
<TomyLobo2> from 355 trillion to 131072
<apeiros> yes. or again, in above calc, from 11.27y to 0.1s
<apeiros> as I said, barely noticeable.
<apeiros> as you can see, I'm being dead serious
<TomyLobo2> oh
<TomyLobo2> i thought you said it's barely noticably faster
<apeiros> it is. I mean it's only 11y. how'd you notice that?
<TomyLobo2> change in gait, coughing, grey hair
<apeiros> I guess it matters whether you're older than the universe
<apeiros> ;-)
* apeiros afk
<capin> would anyone mind taking a look at a homebrew formula I have edited, https://goo.gl/nEx1Fs I can't figure out why the app won't compile with python support. more specifically why cmake can't find a library even though I've added the library path as a compile time arg. build error => https://goo.gl/c1r6F9
justicefries has quit [Quit: Textual IRC Client: www.textualapp.com]
elphe has joined #ruby
elphe has quit [Ping timeout: 272 seconds]
<TomyLobo2> looks like that would get more replies in a channel about whatever that "homebrew formula" thing is
reber has quit [Quit: Leaving]
arch__ has joined #ruby
<capin> TomyLobo2: yeah I posted in #machomebrew yesterday, and there hasn't been a reply since my post from yesterday ¯\_(ツ)_/¯
arch__ has quit [Client Quit]
ta_ has quit [Ping timeout: 264 seconds]
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
jnyw has joined #ruby
arch__ has joined #ruby
sameerynho has joined #ruby
arch__ has quit [Client Quit]
cremes has quit [Quit: cremes]
zautomata has quit [Quit: WeeChat 1.4]
jtdoncas_ has quit [Ping timeout: 248 seconds]
ta_ has joined #ruby
flak has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
bairyn is now known as ByronJohnson
[reed] has quit [Ping timeout: 268 seconds]
[reed] has joined #ruby
[reed] has joined #ruby
xMopxShell is now known as xMopx
sameerynho has quit [Ping timeout: 264 seconds]
elphe has joined #ruby
oetjenj has joined #ruby
stove has quit [Remote host closed the connection]
stove has joined #ruby
exchgr has quit [Ping timeout: 272 seconds]
al2o3-cr has quit [Ping timeout: 240 seconds]
stove has quit [Remote host closed the connection]
spkag has quit [Quit: Konversation terminated!]
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vipaca has joined #ruby
stove has joined #ruby
ta_ has quit [Ping timeout: 268 seconds]
exchgr has joined #ruby
al2o3-cr has joined #ruby
ta_ has joined #ruby
raynold has joined #ruby
chocoelho has joined #ruby
stove has quit [Client Quit]
marius has joined #ruby
eightlimbed has joined #ruby
eightlimbed has quit [Remote host closed the connection]
eightlimbed has joined #ruby
ogres has joined #ruby
jtdoncas_ has joined #ruby
elphe has quit [Ping timeout: 248 seconds]
chocoelho has quit [Quit: chocoelho]
kapil___ has quit [Quit: Connection closed for inactivity]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
t0adst00l has joined #ruby
mtkd has quit [Ping timeout: 248 seconds]
s33n has joined #ruby
_sfiguser has joined #ruby
vipaca has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mtkd has joined #ruby
<_sfiguser> hello guys... is there something similar to urllib3 in ruby ? http://urllib3.readthedocs.io/en/latest/user-guide.html
<Zarthus> what functionality do you wish to have
<Zarthus> Ruby in itself has a http and url include
<Zarthus> there's gems available for anything more advanced
jenrzzz has quit [Ping timeout: 252 seconds]
t0adst00l has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 240 seconds]
t0adst00l has joined #ruby
marius has quit [Quit: marius]
elphe has joined #ruby
randomstrangerb has quit [Ping timeout: 268 seconds]
randomstrangerb has joined #ruby