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
<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)
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?
<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
<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 ?
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'
<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.
<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