gigetoo has quit [Read error: Connection reset by peer]
cdg has quit [Remote host closed the connection]
gigetoo has joined #ruby
cdg has joined #ruby
LoneHermit has quit [Remote host closed the connection]
Mr_Pancake has joined #ruby
raul782 has quit [Remote host closed the connection]
spectra has joined #ruby
dviola has quit [Quit: WeeChat 1.7]
raul782 has joined #ruby
jenrzzz has joined #ruby
raul782 has quit [Remote host closed the connection]
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
raul782 has joined #ruby
gigetoo has quit [Ping timeout: 252 seconds]
hutch34 has quit [Ping timeout: 276 seconds]
cdg_ has joined #ruby
Isaac has joined #ruby
JBlazeCoder21 has quit []
gigetoo has joined #ruby
electrostat has quit [Quit: uwotm8]
kazlock has quit [Quit: This computer has gone to sleep]
electrostat has joined #ruby
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
brendan- has quit [Read error: Connection reset by peer]
bmurt has quit [Read error: Connection reset by peer]
cdg has quit [Ping timeout: 255 seconds]
nankyokusei has joined #ruby
brendan- has joined #ruby
P1ro has quit [Remote host closed the connection]
bmurt has joined #ruby
Ruby_Rocks_007 has joined #ruby
postmodern has quit [Remote host closed the connection]
postmodern has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
gigetoo has quit [Ping timeout: 264 seconds]
gigetoo has joined #ruby
kazlock has joined #ruby
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ResidentBiscuit has quit []
weez17 has joined #ruby
weez17 has quit [Remote host closed the connection]
weez17 has joined #ruby
cdg has joined #ruby
weez17 has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
Isaac has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 255 seconds]
weez17 has joined #ruby
weez17_ has joined #ruby
gix has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
weez17 has quit [Client Quit]
weez17_ has quit [Remote host closed the connection]
cdg_ has quit [Ping timeout: 256 seconds]
kht has joined #ruby
RuralHack has joined #ruby
RuralHack was banned on #ruby by ChanServ [*!*@unaffiliated/ruralhack]
RuralHack was kicked from #ruby by ChanServ [User is banned from this channel]
davezd has quit [Quit: Leaving]
weez17 has joined #ruby
gix has joined #ruby
davezd has joined #ruby
mwlang has quit [Ping timeout: 248 seconds]
mwlang has joined #ruby
gigetoo has quit [Ping timeout: 264 seconds]
kht has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
gix has quit [Ping timeout: 240 seconds]
csk has quit [Quit: ZZZzzz…]
howdoi has joined #ruby
electrostat has quit [Quit: uwotm8]
electrostat has joined #ruby
gix has joined #ruby
duckpupp1 has joined #ruby
DrCode has quit [Ping timeout: 256 seconds]
__Yiota has joined #ruby
davezd has quit [Quit: Leaving]
davezd has joined #ruby
duckpupp1 has quit [Ping timeout: 240 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
xlegoman has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
bkxd has joined #ruby
hutch34 has joined #ruby
gigetoo has quit [Ping timeout: 276 seconds]
Fin1te has joined #ruby
gigetoo has joined #ruby
dc4 has quit [Ping timeout: 255 seconds]
tamouse__ has joined #ruby
<tamouse__>
hello, rubymates
hutch34 has quit [Ping timeout: 240 seconds]
youch has joined #ruby
<tamouse__>
i have a new (to me) macbook air (i know, i know); i'm trying to install ruby with ruby-install which is my usual go-to. it's reporting problems with undefined symols for architecture x86_64
fowlduck has quit [Remote host closed the connection]
anisha has quit [Ping timeout: 276 seconds]
Rodya_ has quit [Read error: No route to host]
Rodya_ has joined #ruby
Julianee has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
tamouse__ has quit [Ping timeout: 255 seconds]
CloCkWeRX has quit [Quit: Leaving.]
kazlock has quit [Quit: This computer has gone to sleep]
foooobear has joined #ruby
LoneHermit has quit [Remote host closed the connection]
jeyraof has joined #ruby
gigetoo has quit [Ping timeout: 255 seconds]
raul782 has quit [Remote host closed the connection]
gigetoo has joined #ruby
raul782 has joined #ruby
raul782 has quit [Remote host closed the connection]
Julianee has joined #ruby
nankyokusei has joined #ruby
youch has joined #ruby
Rodya_ has quit [Quit: Leaving...]
nankyokusei has quit [Ping timeout: 248 seconds]
youch has quit [Ping timeout: 240 seconds]
JHan has quit [Quit: bye]
gigetoo has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
amclain has quit [Quit: Leaving]
harai has quit [Ping timeout: 240 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
edgr has joined #ruby
ifctj has quit [Ping timeout: 240 seconds]
ifctj has joined #ruby
jeyraof has quit [Quit: This computer has gone to sleep]
harai has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
gigetoo has joined #ruby
alexs-77 has quit [Quit: Page closed]
balazs has quit [Read error: Connection reset by peer]
gigetoo has quit [Ping timeout: 240 seconds]
andikr has joined #ruby
Elytra has quit [Quit: Connection closed for inactivity]
M4dH4TT3r has joined #ruby
gigetoo has joined #ruby
blaxter has joined #ruby
ifctj has quit [Ping timeout: 256 seconds]
conta has joined #ruby
Ishido has quit [Ping timeout: 256 seconds]
duckpupp1 has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
Cohedrin_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
duckpupp1 has quit [Ping timeout: 240 seconds]
futabachannel has joined #ruby
frozengeek has joined #ruby
csk157_ has joined #ruby
jshjsh has joined #ruby
JoshS has quit [Disconnected by services]
jshjsh is now known as JoshS
Ishido has joined #ruby
frozengeek has quit [Client Quit]
lxsameer has joined #ruby
Julianee has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
gigetoo has joined #ruby
hutch34 has joined #ruby
antgel has joined #ruby
<A124>
What is the best way to add a method that should be accessible everywhere, like puts and inspect, p.
harai_ has joined #ruby
harai has quit [Ping timeout: 240 seconds]
gix has quit [Ping timeout: 248 seconds]
hutch34 has quit [Ping timeout: 252 seconds]
aganov has joined #ruby
patarr has joined #ruby
<majjoha>
Hi. I've a good friend who wants to learn to program. While I am more than happy to help him along the way, I'd like to suggest him some material (either reading or interactive tutorials). Do you have any ideas on what would be a good introduction to a complete beginner?
<A124>
But interpreted and compiled are different things. Arduino is in my opinion the best first step.
gigetoo has joined #ruby
<A124>
Which is C++.
<A124>
Without the specific system dependent crap that beginners hate.
antgel has quit [Ping timeout: 264 seconds]
<majjoha>
I am pretty set on Ruby so far. Mostly because he wants to learn Sonic Pi too, so I think that it might be useful for him to have a similar syntax for both.
<majjoha>
Thanks for the suggestions.
mark_66 has joined #ruby
<majjoha>
Can you recommend any interactive tutorials?
antgel has joined #ruby
<M4dH4TT3r>
railstutorial.org
<M4dH4TT3r>
also a rails for zombies one
Cohedrin_ has joined #ruby
djuber has quit [Ping timeout: 240 seconds]
<A124>
No, not rails.
<majjoha>
No, I'd prefer to avoid Rails for now. I think it is a little out of scope for a complete beginner, but thanks for suggesting it, anyway.
<majjoha>
I was thinking of suggestion POODR to him, but do you think that is too much for a beginner?
loveablelobster has joined #ruby
<M4dH4TT3r>
rails is just a ruby framework... why not learn both at the same time...
Fernando-Basso has joined #ruby
<M4dH4TT3r>
railstutorial.org is how i learned
<majjoha>
Rails is fine, but I just do not want to overwhelm him with too much information. Also, I am not entirely sure if he is actually interested in web development.
gigetoo has quit [Ping timeout: 276 seconds]
gigetoo has joined #ruby
ugvfxc has joined #ruby
Julianee has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
grh has joined #ruby
Mortomes|Work has joined #ruby
gigetoo has quit [Ping timeout: 260 seconds]
wugy has joined #ruby
wugy has quit [Excess Flood]
gigetoo has joined #ruby
JoshS has quit [Quit: Leaving]
ferr1 has joined #ruby
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
<majjoha>
ljarvis: Thanks. It looks like quite a good suggestion.
Ruby_Rocks_007 has quit [Quit: Ruby_Rocks_007]
harai_ has quit [Ping timeout: 264 seconds]
vshjxyz has quit []
JeanCarloMachado has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
harai_ has joined #ruby
ImUs3r has joined #ruby
<ImUs3r>
i want to learn ruby but i knew python already. then i don’t need to learn ruby?
<tobiasvl>
ImUs3r: ?
n0equal has quit [Ping timeout: 255 seconds]
<tobiasvl>
do you WANT to learn ruby, or do you NEED to learn ruby?
<ImUs3r>
yes tobiasvl
<surrounder>
trololol
<ImUs3r>
surrounder: what you mean?
despai has joined #ruby
hutch34 has joined #ruby
<ImUs3r>
surrounder: i think that you have no manner
kineticrootkit[m has left #ruby ["Kicked by @appservice-irc:matrix.org"]
M-shine has left #ruby ["Kicked by @appservice-irc:matrix.org"]
jsanti[m] has left #ruby ["Kicked by @appservice-irc:matrix.org"]
tachyons[m] has left #ruby ["Kicked by @appservice-irc:matrix.org"]
mavenik[m] has left #ruby ["Kicked by @appservice-irc:matrix.org"]
<surrounder>
I'm fine with that
velu_aon[m] has left #ruby ["Kicked by @appservice-irc:matrix.org"]
<ImUs3r>
if i know python already, then i don’t need to learn ruby?
ec is now known as EOOIOTTCABLE
fjj[m] has left #ruby ["Kicked by @appservice-irc:matrix.org"]
vma[m] has left #ruby ["Kicked by @appservice-irc:matrix.org"]
nowz has quit [Remote host closed the connection]
contradictioned has quit [Remote host closed the connection]
<ImUs3r>
surrounder: ?
hutch34 has quit [Ping timeout: 245 seconds]
patarr has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
<ljarvis>
ImUs3r: if you know python then you don't know ruby, do you?
<surrounder>
I don't understand what you are trying to ask, also, tobiasvl asked you a question
<tobiasvl>
surrounder: ImUs3r answered "yes"…
<ImUs3r>
i don’t know ruby ljarvis
<surrounder>
tobiasvl: heh, fair enough
contradictioned has joined #ruby
gigetoo has joined #ruby
<ljarvis>
ImUs3r: then your question doesn't make any sense. Do you want to learn Ruby?
<ImUs3r>
yes if ruby is better than python
<ImUs3r>
:)
<ImUs3r>
ljarvis:
<ljarvis>
well that's a personal opinion
CloCkWeRX has joined #ruby
<ljarvis>
and it depends on the task, and other factors
<ImUs3r>
what is personal opinion?
<ljarvis>
please stop trolling
<ImUs3r>
:(
<ImUs3r>
😢
<ljarvis>
if you have a question about learning Ruby, please ask it
<ImUs3r>
but i m afraid of starting ruby
<tobiasvl>
ImUs3r: I know both ruby and python. are you wondering about something related to that? overlap in usage?
<ImUs3r>
because i think that it takes long time.
<tobiasvl>
how long did it take you to learn python? was python your first language? second languages don't take as long
<ImUs3r>
i learned python for 1 month and c for 3 month
<ImUs3r>
but i don’t know ruby now
<tobiasvl>
OK, learn ruby then. it'll be nice for you to know a language slightly closer to perl/lisp traditions, and one which can be more functional than python.
<ImUs3r>
oh tobiasvl
<ImUs3r>
:)
patarr has quit [Ping timeout: 245 seconds]
vondruch has joined #ruby
pandaant has joined #ruby
<ImUs3r>
but i heard that ruby is slow this is true?
tdump has joined #ruby
<toretore>
ImUs3r: it's time to stop trolling now, you're not very good at it
<ImUs3r>
😰
Julianee has quit [Remote host closed the connection]
Julianee has joined #ruby
<ImUs3r>
toretore: lol i m not troll
<toretore>
it's like that guy that keeps telling the same joke over and over and nobody is laughing, it doesn't get any better with repetition
<ljarvis>
ImUs3r: if you have a question or want help please get to the point, if you continue trolling you'll be muted or removed from the channel
<ImUs3r>
😓
Mon_Ouie has joined #ruby
<tdump>
I must be missing something really basic and would appreciate some help. here's a gist of my code https://git.io/vDvrR it just puts 24 and then stops. What I want to happen is that it tests to see if a number is evenly divisible by all the numbers in the range (3..20). If one of the operations doesn't divide cleanly e.g. no remainder it would break the each loop and continue with the while adding 2 to the test_number.
triangles has joined #ruby
<ljarvis>
tdump: you probably want next, not break?
Julianee has quit [Ping timeout: 255 seconds]
<ljarvis>
ah maybe not
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
<tdump>
ljarvis i don't want it to continue testing the divisibility of the numbers in range if there is a failure
<toretore>
use an if else
<toretore>
it's much clearer
<toretore>
or without the else, i guess
<tdump>
toretore like if .zero? continue, else break?
<Mon_Ouie>
The problem I think is that you're setting go to false if you find any divisor
<Mon_Ouie>
Enumerable#all? would also be helpful here
<tdump>
Mon_Ouie oh that makes sense. if i drop it down a line below the between the end statements you think it'll do the trick?
<Mon_Ouie>
No because that line would also be executed when you break out of the loop
<tdump>
Mon_Ouie I'm not familiar with enumerable#all bit I'll take a look
<toretore>
tdump: you want to do something if an expression is true, that's what if is for
<tdump>
toretore man I'm feeling dumb
tomphp has joined #ruby
<tdump>
toretore this just isn't clicking for me. I was thinking I need to next the reassignment of go so that it only executes when the each iterator completes
<tdump>
toretore but not sure how to do that
<tdump>
toretore excuse me nest, not next
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
JoshS has joined #ruby
<toretore>
tdump: i don't really understand what it is you want to do
gigetoo has quit [Ping timeout: 258 seconds]
<toretore>
tdump: you have a `test_number`, and you want to see if it is evenly divisible by each number between 3 and 20?
<tdump>
toretore yeah. and if it's not, I want to test the next positive number which is why I add 2 to test_number
<herwin>
because a number becomes negative if you add 1?
gigetoo has joined #ruby
<Mon_Ouie>
Because testing odd numbers is pointless
<toretore>
so what you want to do is to find the lowest number that is evenly divisible by every number in 3..20 and puts that?
<tdump>
herwin sorry I misspoke, I meant even not positive
<tdump>
toretore yeah
<toretore>
ok, so your use of break is justified
<tdump>
Mon_Ouie yeah
<tdump>
toretore well that's good to hear :-) at least something I did is!
EOOIOTTCABLE is now known as ec
<herwin>
the range still feels a bit odd to me; if a number is divisible by 20, than it will be divisible by 4, 5 and 10 as well, so ne need to test for those
<Mon_Ouie>
Although there's a better way of finding the LCM of 3..20 than checking all numbers until you find it
JoshS has quit [Quit: Leaving]
<tdump>
Mon_Ouie go on?
<tdump>
Mon_Ouie I'm all ears. I appreciate the help. I'm not a very mathy dude, and I'm not familiar with ruby's standard library
<Mon_Ouie>
You can compute the LCM of two numbers from their GCD which you can compute with Euclid's algorithm
<Mon_Ouie>
Oh, and speaking of standard library…
<tdump>
Mon_Ouie ok I'll look into that. I have no idea what Euclid's algorithm is.
<Mon_Ouie>
I was assuming this was more of a learning exercise
<tdump>
Mon_Ouie I'm trying to get into a coding bootcamp and they want me to do the first 30 project euler problems before I can reapply.
ldnunes has joined #ruby
<tdump>
Mon_Ouie most of the stuff I've coded involves api calls, filtering info from hashes/lists, things that are a bit more direct for me. I'm okay with puzzles, but I never took very high level math classes.
<Mon_Ouie>
Well, using Integer#lcm should make the problem very easy to solve
<tdump>
Mon_Ouie I feel like i'm learning more math concepts than coding concepts right now, even if I am making a rookie mistake with scope/loops right now. It's real late by me and I'm not firing on all cylinders
<tdump>
Mon_Ouie cool. I'll take a crack at it. Thanks again!
<Mon_Ouie>
That is what you would learn from project euler exercises, you usually need to know some property of the problem to compute the solution in a reasonable amount of time
<herwin>
tdump: the project euler things i've seen are often more math related puzzles than programming puzzles
<herwin>
they can be brute-forced by programming
gigetoo has quit [Ping timeout: 240 seconds]
<herwin>
but are often solveable by hand on a piece of paper
Cohedrin_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<tdump>
herwin well it's definitely not my favorite, but I gotta do what I gotta do
gigetoo has joined #ruby
harai_ has quit [Ping timeout: 252 seconds]
CloCkWeRX has quit [Ping timeout: 255 seconds]
JoshS has joined #ruby
duckpupp1 has joined #ruby
vondruch has quit [Ping timeout: 252 seconds]
brent__ has joined #ruby
anisha_ has quit [Quit: Leaving]
duckpupp1 has quit [Ping timeout: 240 seconds]
Mon_Ouie has quit [Read error: Connection reset by peer]
brent__ has quit [Ping timeout: 255 seconds]
gigetoo has quit [Ping timeout: 276 seconds]
gigetoo has joined #ruby
M-travis has quit [Remote host closed the connection]
aviraldg has quit [Remote host closed the connection]
M-manveru has quit [Read error: Connection reset by peer]
jakebriggs[m] has quit [Remote host closed the connection]
h42r62[m] has quit [Read error: Connection reset by peer]
Xi[m] has quit [Write error: Connection reset by peer]
bascht1 has quit [Write error: Connection reset by peer]
Giphy[m] has quit [Write error: Connection reset by peer]
<tdump>
herwin hey man. It turns out that this did exactly what I wanted: (3..20).reduce(:lcm), would you mind telling me why I can pass the symbol :lcm to reduce, and it works?
ryantriangles[m] has quit [Write error: Broken pipe]
dmitrysinina[m] has quit [Write error: Connection reset by peer]
daveyboi[m] has quit [Write error: Connection reset by peer]
kp666[m] has quit [Write error: Connection reset by peer]
M107262[m] has quit [Write error: Connection reset by peer]
<tdump>
herwin I saw someone do it on stack overflow so I tried it, but I don't understand it
aufi has quit [Quit: Leaving]
skweek has joined #ruby
Tempesta has joined #ruby
DoubleMalt has joined #ruby
<tdump>
herwin nevermind. I think i get it. lcm is a method of integer so I can pass it to reduce as a symbol. I guess i can do that with any method :+, :-, pretty cool
frozengeek__ has joined #ruby
tvw has joined #ruby
nowhere_man has quit [Ping timeout: 255 seconds]
nowz has joined #ruby
youch has joined #ruby
nankyokusei has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
psychicist__ has joined #ruby
aidalgol has quit [Ping timeout: 258 seconds]
koldbrutality has quit [Ping timeout: 264 seconds]
<herwin>
tdump: you're right
foooobear has quit [Ping timeout: 240 seconds]
<herwin>
it will call that method recursively on the elements of the array
youch has quit [Ping timeout: 258 seconds]
saneax is now known as saneax-_-|AFK
ionte has quit [Ping timeout: 240 seconds]
nankyokusei has quit [Ping timeout: 258 seconds]
<esObe>
Hi folks ! I am newbie to programming in Ruby. Can someone help me with this task, Please?
Azure has quit [Read error: Connection reset by peer]
mniip has quit [Ping timeout: 600 seconds]
Azure has joined #ruby
tekk has quit [Ping timeout: 276 seconds]
gigetoo has joined #ruby
tdump has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
JoshS has quit [Ping timeout: 276 seconds]
tekk has joined #ruby
<esObe>
1. it's the most difficult for me, how can I get the domain from there?
<esObe>
Could you provide me with some code for this part of the task?
gregf_ has joined #ruby
<herwin>
just forget the code for a moment: how would you get the domain from an mail address yourself?
gregf_ has left #ruby [#ruby]
<herwin>
then we know what to do, before we want to know how to do it
gregf_ has joined #ruby
biberu has joined #ruby
vondruch has joined #ruby
<esObe>
I am completely lost at the moment. I have the 'providers' variable but I need to take it from address variable.
gigetoo has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
ifctj has joined #ruby
last_staff has joined #ruby
futabach_ has quit [Quit: Leaving...]
manjaro-kde5- has quit [Ping timeout: 240 seconds]
ifctj has quit [Ping timeout: 258 seconds]
<esObe>
I don't know how can I pick something from random list
vondruch has quit [Quit: vondruch]
gigetoo has quit [Ping timeout: 240 seconds]
<esObe>
Can someone invite me to #ruby-lang channel ?
gigetoo has joined #ruby
browndawg has joined #ruby
mniip_ has joined #ruby
wotm8 has joined #ruby
duckpupp1 has joined #ruby
jshjsh has quit [Ping timeout: 258 seconds]
Beams has quit [Quit: .]
UnknownSoldier has quit [Remote host closed the connection]
psychicist__ has quit [Ping timeout: 245 seconds]
bkxd_ has quit [Ping timeout: 240 seconds]
duckpupp1 has quit [Ping timeout: 258 seconds]
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
ifctj has joined #ruby
sparch has joined #ruby
sparch has joined #ruby
sparch has quit [Changing host]
Beams has joined #ruby
_sfiguser has quit [Ping timeout: 240 seconds]
mniip_ is now known as mniip
marr has joined #ruby
M107262[m] has joined #ruby
daveyboi[m] has joined #ruby
M-manveru has joined #ruby
Giphy[m] has joined #ruby
M-travis has joined #ruby
bascht1 has joined #ruby
aviraldg has joined #ruby
kp666[m] has joined #ruby
jakebriggs[m] has joined #ruby
Xi[m] has joined #ruby
dmitrysinina[m] has joined #ruby
h42r62[m] has joined #ruby
gigetoo has quit [Ping timeout: 255 seconds]
hutch34 has joined #ruby
hobodave has joined #ruby
gigetoo has joined #ruby
browndawg has quit [Quit: Leaving]
browndawg has joined #ruby
bkxd has joined #ruby
hobodave has quit [Client Quit]
<Yxhuvud>
#ruby-lang is deprecated
patarr has joined #ruby
_sfiguser has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
skweek has quit [Read error: Connection reset by peer]
skweek has joined #ruby
psychicist__ has joined #ruby
<TheBrayn>
the new channel ist #ruby-kurz
Ishido has quit [Remote host closed the connection]
c355e3b has joined #ruby
<esObe>
thanks guys!
patarr has quit [Ping timeout: 240 seconds]
sepp2k has joined #ruby
gigetoo has quit [Ping timeout: 260 seconds]
al2o3-cr has quit [Ping timeout: 245 seconds]
gigetoo has joined #ruby
aufi has joined #ruby
E7F3RN4 has joined #ruby
E7F3RN4 has quit [Client Quit]
ElFerna has joined #ruby
duckpupp1 has joined #ruby
csk has joined #ruby
ifctj has quit [Ping timeout: 258 seconds]
gigetoo has quit [Ping timeout: 252 seconds]
gigetoo has joined #ruby
tvw has quit [Ping timeout: 255 seconds]
JoshS has joined #ruby
RickHull has quit [Quit: Leaving]
Elytra has joined #ruby
matled has quit [Remote host closed the connection]
nowz has quit [Remote host closed the connection]
gregj has joined #ruby
Mortomes|Work has quit [Ping timeout: 260 seconds]
<gregj>
folks, isn't pathname something that's built into the basic libraries in ruby ? I'm tryign to run fastlanme, but it comes back with: You require a gem, if this is a third party gem, please use `fastlane_require "pathname"` to ensure the gem is installed locally
kristoff_ has joined #ruby
gigetoo has quit [Ping timeout: 248 seconds]
kristoff_ has quit [Client Quit]
kristofferR has quit [Ping timeout: 248 seconds]
<dminuoso>
Mmm, I'd really love to get a more yarn-like interface to bundle.
<dminuoso>
An equivalent of "yarn add -T package" would be sweet.
<dminuoso>
:S
kristofferR has joined #ruby
gigetoo has joined #ruby
csk157 has joined #ruby
matled has joined #ruby
csk157_ has quit [Ping timeout: 258 seconds]
rwb has quit [Ping timeout: 245 seconds]
unshadow_ has joined #ruby
synthroid has joined #ruby
unshadow has quit [Ping timeout: 252 seconds]
phansch has joined #ruby
gigetoo has quit [Ping timeout: 255 seconds]
<ImUs3r>
where i must start ruby?
phansch has quit [Client Quit]
gigetoo has joined #ruby
<ImUs3r>
No one is here?
phansch has joined #ruby
ogabito has quit [Quit: Connection closed for inactivity]
hogetaro has quit [Quit: Leaving...]
<dminuoso>
ImUs3r: What do you mean by "where"
<ImUs3r>
dminuoso: yes, i find tutorial or site that i can study in
<ImUs3r>
i can study ruby in
frozengeek__ has quit [Read error: Connection reset by peer]
<dminuoso>
ImUs3r: ^- that's a great place to start.
<ImUs3r>
thanks dminuoso
<ImUs3r>
:)
<ImUs3r>
i think that ruby programmer is kind
<dminuoso>
ImUs3r: Based on your language, you should probably look into either learning some English or getting a Ruby book in your native language.
<ImUs3r>
lol
<ImUs3r>
i m new yorker, where are you live country guy?
<dminuoso>
You are definitely not a native speaker.
<ImUs3r>
👎
<ImUs3r>
lol
<ImUs3r>
i m New Yorker country guy
<ImUs3r>
😛
<ImUs3r>
where are you live? dminuoso ?
<dminuoso>
See, and I didn't expect Trumps presidency to have an impact on Americans ability to speak for another 20 years.
<dminuoso>
That was fast.
kristofferR has quit [Ping timeout: 255 seconds]
<ImUs3r>
it is good to use windows for ruby? dminuoso ?
kristofferR has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
tyang has joined #ruby
gigetoo has joined #ruby
blaxter has joined #ruby
sdothum has joined #ruby
patarr has joined #ruby
<ImUs3r>
dminuoso: ?
<dminuoso>
ImUs3r: Windows is fine, though there are some inconveniences and troubles.
aufi has quit [Quit: Leaving]
<dminuoso>
But it's fine if you just want to practice or learn.
<dminuoso>
You probably won't even notice.
<ImUs3r>
oh then what os is best? dminuoso ?
esObe has quit [Remote host closed the connection]
nankyokusei has joined #ruby
<dminuoso>
ImUs3r: Linux and MacOSX, but if you are on Windows it's not a problem really. The issues mostly start with native extensions of more special gems.
<ImUs3r>
linux
<ImUs3r>
or mac
<dminuoso>
Sure.
blaxter has quit [Client Quit]
conta has quit [Ping timeout: 276 seconds]
<ImUs3r>
what distribution is good of linux?
<dminuoso>
Whatever you prefer.
<SerialDev>
Ubuntu is usually the best for beginners
pandaant has quit [Remote host closed the connection]
<ImUs3r>
how about debian?
patarr has quit [Ping timeout: 245 seconds]
Lord_of_Life has quit [Excess Flood]
millerti has joined #ruby
<SerialDev>
i always recommend ubuntu for beginners because it's easy to set up and install and simply be up and running
Lord_of_Life has joined #ruby
<ImUs3r>
ubuntu >> debian ok
<ImUs3r>
thanks
DoubleMalt has quit [Ping timeout: 264 seconds]
ecuanaso has joined #ruby
<SerialDev>
if you're more advanced and want to tinker around and be all l33t, then by all means, go for debian or the others
bmurt has joined #ruby
<SerialDev>
ubuntu is based off of debian
lenwood has joined #ruby
<ImUs3r>
ok thanks
<SerialDev>
but ubuntu is good for people who just want to get a linux system and then get on with their life
nankyokusei has quit [Ping timeout: 260 seconds]
<SerialDev>
the others are for people who just want to sit around all day and hack their linux box so they can show off how l33t they are
<ImUs3r>
133t?
<ImUs3r>
what is it?
<SerialDev>
hacker slang for 'elite'
whiteline has quit [Remote host closed the connection]
<dminuoso>
By hacker slang you mean kiddie slang.
csk has quit [Ping timeout: 240 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
<herwin>
1995 called, they want their hard to use debian back
<SerialDev>
whatever makes you feel better, but yeah
<dminuoso>
Hacker culture prefers to do silly things like wordificationalizing.
<herwin>
things have changed
<ImUs3r>
dminuoso: you are hacker?
<SerialDev>
if that's true, then why haven't we abandoned ruby and all chased after javascript and the holy node.js?
<ImUs3r>
i think that your skill is very high
<SerialDev>
ruby is, after all, "so yesterday"
<ImUs3r>
dminuoso:
gigetoo has joined #ruby
jshjsh has joined #ruby
<dminuoso>
SerialDev: I have to admit, yarn is darn sexy compared to bundle.
DoubleMalt has joined #ruby
Voker57|2 has joined #ruby
triangles has quit [Quit: Leaving]
<SerialDev>
if you're referring to ruby on rails, i'm only aware of bundle
<dminuoso>
(Rails just happens to use this by default)
JoshS has quit [Ping timeout: 258 seconds]
<SerialDev>
dminuoso: yes, that's the bundler i was thinking of
gnufied has joined #ruby
<SerialDev>
anyway, what attracted me to ruby is it's succinct syntax and it's pure object-oriented nature
whiteline has joined #ruby
<SerialDev>
and it's core and api library are actually pretty good
<SerialDev>
not sure why ruby dropped in popularity unless it's due to what i call the 'magpie syndrome' so endemic among developers
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
harfangk has joined #ruby
conta has joined #ruby
govg has quit [Ping timeout: 255 seconds]
jshjsh is now known as JoshS
jshjsh has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
synthroi_ has joined #ruby
blackwind_123 has quit [Ping timeout: 240 seconds]
frozengeek__ has quit [Read error: Connection reset by peer]
csk157 has quit [Ping timeout: 258 seconds]
gigetoo has quit [Ping timeout: 245 seconds]
frozengeek__ has joined #ruby
rwb has joined #ruby
GinoManWorks has joined #ruby
bmurt has joined #ruby
gigetoo has joined #ruby
JoshS has quit [Ping timeout: 240 seconds]
blackwind_123 has joined #ruby
synthroid has quit [Ping timeout: 260 seconds]
ifctj has joined #ruby
Voker57|2 has quit []
roflmyeggo has quit [Ping timeout: 276 seconds]
jshjsh is now known as JoshS
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kobain has joined #ruby
<gregj>
folks, how do I solve issues like this: /Users/dave/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/specification.rb:2158:in `method_missing': undefined method `this' for #<Gem::Specification:0x3fc660881b50 fastlane-2.12.0> (NoMethodError)
<gregj>
someone has messed with our build machine, and it's a bit broken atm
sinanislekdemir has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 248 seconds]
gigetoo has joined #ruby
jessiepuls has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
al2o3-cr has joined #ruby
jrafanie has joined #ruby
larcara has quit []
govg has joined #ruby
crazyphil has quit [Ping timeout: 255 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
csk157 has joined #ruby
__Yiota has joined #ruby
siovene has quit [Quit: Connection closed for inactivity]
brent__ has joined #ruby
msmith has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
minimalism has quit [Quit: WeeChat 1.4]
jenrzzz has quit [Ping timeout: 248 seconds]
brent__ has quit [Ping timeout: 240 seconds]
saslam has joined #ruby
ramortegui has joined #ruby
gregj has left #ruby [#ruby]
ifctj has quit [Ping timeout: 260 seconds]
hutch34 has joined #ruby
ImUs3r_ has joined #ruby
frozengeek__ has quit [Read error: Connection reset by peer]
frozengeek__ has joined #ruby
Guest99287 has quit [Changing host]
Guest99287 has joined #ruby
Guest99287 is now known as Kestrel-029
aupadhye has quit [Ping timeout: 258 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
ImUs3r has quit [Ping timeout: 276 seconds]
ImUs3r_ is now known as ImUs3r
dionysus69 has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
Beams has quit [Quit: .]
jhack has joined #ruby
bmurt has joined #ruby
msmith has quit [Read error: Connection reset by peer]
bweston92 has quit [Quit: Connection closed for inactivity]
`tim` has joined #ruby
Asher has quit [Quit: Leaving.]
gigetoo has joined #ruby
ImUs3r has quit [Read error: Connection reset by peer]
frozengeek__ has quit [Quit: frozengeek__]
saneax-_-|AFK is now known as saneax
conta has quit [Read error: Connection reset by peer]
rfoust has joined #ruby
ImUs3r has joined #ruby
<Cymew>
I have tried to utilize rb-inotify to save the output to a log as my app starts up. But nothing happens. Anyone care to tell me what I'm missing? http://pastebin.com/iCsx8jQW
<ruby[bot]>
Cymew: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
ImUs3r has quit [Read error: Connection reset by peer]
DLSteve_ has joined #ruby
vondruch has joined #ruby
ImUs3r has joined #ruby
raul782 has joined #ruby
gigetoo has quit [Ping timeout: 248 seconds]
saneax is now known as saneax-_-|AFK
jessiepuls has joined #ruby
gigetoo has joined #ruby
Asher has joined #ruby
shinnya has joined #ruby
ifctj has joined #ruby
browndawg has quit [Quit: Leaving]
UnknownSoldier has joined #ruby
youch has joined #ruby
rory_mckinley has joined #ruby
tvon has quit [Remote host closed the connection]
unshadow_ is now known as unshadow
tdump has joined #ruby
frozengeek__ has joined #ruby
<tdump>
why is this returning nil? bang = (100...1).reduce(:*)
<tdump>
shouldn't that return a single value that is the product of the values in the range?
<Cymew>
Suggestions for how to sit in a loop doing other stuff, waiting for a file to update without triggering OEFErrors are most welcome. I'm not even sure rb-ionotify is the right thing.
<Cymew>
s/OEFErrors/EOFError/
shwouchkster has joined #ruby
gigetoo has quit [Ping timeout: 245 seconds]
nowhere_man has joined #ruby
<Papierkorb>
tdump: Ranges can only count upwards, not downwards. You can see if you do #to_a, that it's actually empty
d10n-work has joined #ruby
<rory_mckinley>
Trying to run a rails 3.22.x project on Ruby 2.4 - arel is throwing 'Cannot visit Integer' - anybody seen this before?
<tdump>
Papierkorb hahaha! Well that explains it. Thanks!
<Papierkorb>
tdump: Or rather, #each will never yield for that Range
gigetoo has joined #ruby
<tdump>
Papierkorb it doesn't really matte r in my case, I can just switch the numbers around, but do ruby ranges have a step value like Python?
<Papierkorb>
tdump: Range's do not store steps, but you can use the #step() method instead on it
<tdump>
Papierkorb dope! thanks again man. I appreciate it.
<Papierkorb>
Cheers
benlieb has joined #ruby
esObe has joined #ruby
Fernando-Basso has quit [Ping timeout: 264 seconds]
polishdub has joined #ruby
Fernando-Basso has joined #ruby
ifctj has quit [Ping timeout: 256 seconds]
<dminuoso>
rory_mckinley: If you run a Rails 3 project on Ruby 2.4 you deserve to have things break.
<dminuoso>
That is my professional opinion.
Snickers has quit [Ping timeout: 255 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso>
rory_mckinley: Either stick to Ruby 2.3.x or upgrade your Rails version.
<dminuoso>
(Ruby 2.4 made a big change unifying Fixnum and Bignum under Integer, considering the sheer amount of unicorn metamagickery inside Rails and dependencies Im not surprised in the slightest that old libraries don't work with 2.4)
<rory_mckinley>
dminuoso: I suspected as much - it currently runs on 1.9.3 and I am trying to see how far I can push the Ruby version up before it croaks - in preparation for upgrading Rails
rippa has joined #ruby
agent_white has joined #ruby
<dminuoso>
rory_mckinley: There were lots of changes, some syntax changes I think too.
gigetoo has quit [Ping timeout: 260 seconds]
<agent_white>
Mornin folks
<dminuoso>
Morning
gigetoo has joined #ruby
<rory_mckinley>
dminuoso: I as taking a fat chance - but I just wanted to check if just in case - there was an easy fix for it. Would be great not to have to inch the Ruby version along as well as the Rails version :)
tvon has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
<dminuoso>
rory_mckinley: Try running the rails test suite on the ruby version.
<dminuoso>
That should give you an good picture for rails at least.
cdg has joined #ruby
<dminuoso>
(Rather than running some rails application)
<rory_mckinley>
dminuoso: Ha! Good idea - thanks, will try that!
<dminuoso>
rory_mckinley: But yes, increasing both in parallel is actually a rather good ide
<dminuoso>
idea.
Renich has quit [Quit: leaving]
frozengeek__ has quit [Quit: frozengeek__]
jhack has joined #ruby
Axy has joined #ruby
<rory_mckinley>
dminuoso: Thanks for the advice!
Sembei has joined #ruby
grh has quit [Ping timeout: 255 seconds]
apeiros has quit [Ping timeout: 240 seconds]
gigetoo has quit [Ping timeout: 264 seconds]
<rory_mckinley>
dminuoso: To close the loop - it certainly seems as if the unifying of Fixnum and BigDecimal may be the culprit. The test suite (just for the app at the moment) runs fine on 2.3.3
chouhoulis has joined #ruby
Pisuke has quit [Ping timeout: 240 seconds]
Mia has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
<dminuoso>
rory_mckinley: Having seen plenty of Rails code it's not very surprising as I have mentioned.
<dminuoso>
There's tons of type inference, guessing, type checking.
apeiros has joined #ruby
GooseYArd has joined #ruby
<dminuoso>
rory_mckinley: Lots of native extensions wont work against 2.4 either unless they have been updated.
<dminuoso>
(becuase rb_cFixnum and rb_cBignum no longer exist)
Voker57|2 has joined #ruby
<rory_mckinley>
dminuoso: ah, ok, was not aware of the exact scope of the change - but I am happy to make first leap to 2.3.3 (way better than I was dreading TBH)
synthroid has joined #ruby
tdy has quit [Quit: WeeChat 1.7]
cassianoleal has quit [Quit: Connection closed for inactivity]
nankyokusei has joined #ruby
ecuanaso has joined #ruby
aganov has quit [Read error: Connection reset by peer]
aganov has joined #ruby
synthroi_ has quit [Ping timeout: 264 seconds]
naprimer_2 has quit [Ping timeout: 256 seconds]
ImUs3r has quit [Ping timeout: 240 seconds]
crankharder has joined #ruby
csk has joined #ruby
nankyokusei has quit [Ping timeout: 248 seconds]
markit has joined #ruby
ImUs3r has joined #ruby
<markit>
hi, long time I don't programm with ruby and I've to modify a ruby script. I have to iterate though a variable that usually is an array but could be a simple string
<markit>
what the correct and short syntax to doing that?
<markit>
I mean I've a function like def myfunction(parameter)
<markit>
an then parameter.each....
gigetoo has quit [Ping timeout: 240 seconds]
<markit>
but I could call that function with myfunction("xyx") and that code would break
<markit>
I should check if parameter is a string and transform in a (single item) array
naprimer_2 has joined #ruby
<markit>
suce there is a concise way to do so
gigetoo has joined #ruby
aufi has joined #ruby
Voker57|2 has quit []
_sfiguser has quit [Ping timeout: 240 seconds]
ImUs3r_ has joined #ruby
<phansch>
markit: depends on what you want to do if it is a string. you can check if it is a string with 'parameter.is_a?(String)'
ImUs3r_ has quit [Read error: Connection reset by peer]
jessiepuls has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
msmith has quit [Remote host closed the connection]
Jamo has joined #ruby
jessiepuls has joined #ruby
antgel has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
JeanCarloMachado has quit [Ping timeout: 260 seconds]
gigetoo has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jhack has quit [Quit: jhack]
electrostat has quit [Quit: uwotm8]
electrostat has joined #ruby
Jamo has quit [Quit: leaving]
nofxx has quit [Remote host closed the connection]
def_jam has quit [Quit: WeeChat 1.4]
nofxx has joined #ruby
al2o3-cr has joined #ruby
nofxx has quit [Remote host closed the connection]
nofxx has joined #ruby
sparch has quit [Ping timeout: 245 seconds]
chromis has left #ruby [#ruby]
jhack has joined #ruby
chromis has joined #ruby
zeroDi has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
Julianee has joined #ruby
ldnunes has quit [Quit: Leaving]
szulak has joined #ruby
DoubleMalt has joined #ruby
edwinvdgraaf has joined #ruby
slappy161 has joined #ruby
<slappy161>
hi all - I'm trying to install a gem(beaker) and I'm butting up against a weird dependency issue? http://pastebin.com/QbvVkB4r - this is against a private gem repo, fwiw.
<ruby[bot]>
slappy161: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
Trynemjoel has quit [Ping timeout: 264 seconds]
raul782 has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
edwinvdg_ has joined #ruby
youch has quit [Ping timeout: 258 seconds]
msmith has joined #ruby
<SeepingN>
you load ads still?
jackjackdripper has joined #ruby
<slappy161>
apparently
username_ has quit [Ping timeout: 240 seconds]
edwinvdgraaf has quit [Ping timeout: 264 seconds]
tuelz has quit [Quit: WeeChat 1.7]
raul782 has quit [Remote host closed the connection]
youch has joined #ruby
[Butch]_ has joined #ruby
[Butch] has quit [Ping timeout: 252 seconds]
[Butch]_ is now known as [Butch]
gigetoo has quit [Ping timeout: 255 seconds]
gigetoo has joined #ruby
Julianee has quit [Remote host closed the connection]
UnknownSoldier has joined #ruby
kazlock has quit [Quit: This computer has gone to sleep]
raul782 has joined #ruby
nofxx has quit [Remote host closed the connection]
raul782 has quit [Remote host closed the connection]
harai_ has quit [Ping timeout: 276 seconds]
nofxx has joined #ruby
montanonic has quit [Ping timeout: 255 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
Jackneill_ has joined #ruby
username_ has joined #ruby
cdg has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
gigetoo has joined #ruby
kazlock has joined #ruby
jeffreylevesque has joined #ruby
al2o3-cr has quit [Ping timeout: 240 seconds]
jhack has quit [Quit: jhack]
jenrzzz has quit [Ping timeout: 255 seconds]
unshadow_ has quit [Ping timeout: 240 seconds]
sonOfRa has quit [Quit: Bye!]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
amclain has joined #ruby
montanonic has joined #ruby
polyidus has quit [Quit: ZZZzzz…]
sonOfRa has joined #ruby
gigetoo has quit [Ping timeout: 245 seconds]
flying has quit [Ping timeout: 240 seconds]
raul782 has joined #ruby
gloscombe has joined #ruby
tuelz has joined #ruby
gigetoo has joined #ruby
Lord_of_Life has quit [Excess Flood]
Lord_of_Life has joined #ruby
csk has quit [Quit: ZZZzzz…]
harai_ has joined #ruby
ecuanaso has joined #ruby
JoshS has quit [Quit: Leaving]
phoo1234567 has joined #ruby
raul782 has quit [Remote host closed the connection]
nofxx has quit [Remote host closed the connection]
nofxx has joined #ruby
lenwood has joined #ruby
harai_ has quit [Ping timeout: 240 seconds]
ferr1 has joined #ruby
synthroid has quit []
griffindy has joined #ruby
JuliusDelta has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
AndBobsYourUncle has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nankyokusei has joined #ruby
BitWhisperer has joined #ruby
UnknownSoldier has quit [Remote host closed the connection]
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hahuang61 has joined #ruby
frozengeek__ has left #ruby [#ruby]
nankyokusei has quit [Ping timeout: 256 seconds]
rwb has quit [Ping timeout: 240 seconds]
gigetoo has quit [Ping timeout: 255 seconds]
dionysus69 has joined #ruby
unshadow has joined #ruby
raspado has joined #ruby
gigetoo has joined #ruby
<raspado>
hi all, im trying to loop through an array for a sql command, seems like I may be doing it wrong in my array loop, any ideas? http://pastebin.com/RmD7gDWX
<ruby[bot]>
raspado: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
enterprisey has quit [Ping timeout: 240 seconds]
troulouliou_div2 has quit [Quit: Leaving]
<apeiros>
raspado: your each loop writes to a variable which only exists within a loop, and additionally overrides it on every iteration.
<apeiros>
how to change it depends on what you want to achieve, though.
jhack has joined #ruby
raul782 has joined #ruby
<raspado>
im trying to loop through the array into the sql statement then I want to output the results, thinking of using a variable to do that but like you mentioned, may not be best inside that loop
cgibsonmm has joined #ruby
<apeiros>
assigning to a variable is not outputting. so do you want to store the results in a variable, or do you want to output the result?
jessiepuls has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gigetoo has quit [Ping timeout: 264 seconds]
brent__ has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
gigetoo has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
Bob8989|2 has joined #ruby
mwlang has joined #ruby
duckpupp1 has quit [Ping timeout: 256 seconds]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cgibsonmm has quit []
cevett has quit [Read error: Connection reset by peer]
cevett has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
ImUs3r has quit [Quit: ImUs3r]
jhack has quit [Quit: jhack]
jhack has joined #ruby
gigetoo has joined #ruby
`tim` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
BackEndCoder has quit [Excess Flood]
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #ruby
BackEndCoder has joined #ruby
jessiepuls has joined #ruby
cpruitt has quit [Quit: cpruitt]
Rodya_ has quit [Quit: Leaving...]
cajone has left #ruby [#ruby]
jhack has quit [Quit: jhack]
_djbkd has quit [Ping timeout: 260 seconds]
jhack has joined #ruby
_djbkd has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
cajone has joined #ruby
gigetoo has joined #ruby
unshadow has quit [Ping timeout: 240 seconds]
Derperpe1 has quit [Ping timeout: 260 seconds]
unshadow has joined #ruby
manjaro-kde5-- has joined #ruby
lenwood has quit [Ping timeout: 255 seconds]
benlieb has joined #ruby
gigetoo has quit [Ping timeout: 258 seconds]
ifctj has quit [Ping timeout: 245 seconds]
gigetoo has joined #ruby
brent__ has joined #ruby
last_staff has quit [Quit: last_staff]
szulak has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
grh has joined #ruby
dopamean_ has quit [Quit: WeeChat 1.3]
markholmes has quit [Remote host closed the connection]
raul782 has quit [Remote host closed the connection]
qba73 has joined #ruby
dionysus69 has quit [Ping timeout: 276 seconds]
qba73 has quit [Read error: Connection reset by peer]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
qba73 has joined #ruby
Derperpe1 has joined #ruby
unshadow_ has joined #ruby
qba73 has quit [Remote host closed the connection]
bkxd has joined #ruby
gigetoo has quit [Ping timeout: 252 seconds]
unshadow has quit [Ping timeout: 245 seconds]
gigetoo has joined #ruby
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rfoust has joined #ruby
bkxd has quit [Ping timeout: 252 seconds]
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #ruby
unshadow_ has quit [Ping timeout: 264 seconds]
AndBobsYourUncle has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
<raspado>
anyone familiar with the ruby postgres driver? im trying to run an exec and need to get the select statement output but all I am getting is ""results" => #<PG::Result:0x00000001be2548 status=PGRES_TUPLES_OK ntuples=0 nfields=2 cmd_tuples=0>"
Trynemjoel has joined #ruby
_djbkd has quit [Ping timeout: 240 seconds]
croberts has quit [Remote host closed the connection]
Toledo has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
OTORelic has quit [Ping timeout: 260 seconds]
polishdub has quit [Quit: Leaving]
ramortegui has quit [Quit: Ex-Chat]
csk has joined #ruby
gigetoo has joined #ruby
harai_ has joined #ruby
AndrewIsHere has joined #ruby
csk has quit [Client Quit]
_djbkd has joined #ruby
rwb has joined #ruby
duckpupp1 has joined #ruby
CoverSlide has quit [Quit: Lost terminal]
Julianee has joined #ruby
Toledo has quit [Remote host closed the connection]
Julianee has quit [Remote host closed the connection]
Julianee has joined #ruby
duckpupp1 has quit [Ping timeout: 252 seconds]
Toledo has joined #ruby
Julianee_ has joined #ruby
jhack has quit [Quit: jhack]
<mwlang>
when a Ruby class instance responds to a given method name, how can I find where that method was orignally defined?
Sammichmaker has joined #ruby
Julianee has quit [Ping timeout: 255 seconds]
gigetoo has quit [Ping timeout: 252 seconds]
montanonic has quit [Ping timeout: 264 seconds]
gigetoo has joined #ruby
dc4 has joined #ruby
kobain has joined #ruby
<ged>
mwlang: instance.method(method_name).owner
<mwlang>
ged: just figured that out moments before your msg.
<mwlang>
so now, how do I see what the Ruby is behind the method?
ElFerna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood>
mwlang: #source_location
<ged>
.source_location will return the source file and line number.
<ged>
Yeah, what he said. ;)
<ged>
Er... what havewood said. Shouldn't assume "he".
Toledo has quit [Ping timeout: 245 seconds]
<ged>
*havenwood. Ugh.
* ged
is the worst.
<mwlang>
ged: indeed.
<mwlang>
sheez…finally found my problem.
msmith has quit []
* mwlang
looks at bloody hole shot in own foot.
saneax-_-|AFK is now known as saneax
gigetoo has quit [Ping timeout: 256 seconds]
ruby[bot] has quit [Remote host closed the connection]
unshadow has joined #ruby
ruby[bot] has joined #ruby
gigetoo has joined #ruby
<mwlang>
tip of the day: If you’re converting a Ruby class to ActiveRecord, make sure you remove attr_reader declarations.
UnknownSoldier has joined #ruby
markit has left #ruby ["Konversation terminated!"]
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #ruby
_djbkd has quit [Read error: Connection reset by peer]
djbkd_ has joined #ruby
aryaching has quit [Ping timeout: 255 seconds]
minimalism has joined #ruby
<pragmatism>
:P
<pragmatism>
I remember coming back to Rails after about a year in Ruby and being like "wtf is going on with my initializers"
bkxd has joined #ruby
Cohedrin_ has quit [Read error: Connection reset by peer]
djbkd_ has quit [Remote host closed the connection]
tuelz has quit [Ping timeout: 260 seconds]
Cohedrin_ has joined #ruby
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
raul782 has joined #ruby
Jackneill_ has quit [Remote host closed the connection]
claw has quit [Ping timeout: 240 seconds]
Jackneill_ has joined #ruby
Julianee_ has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 255 seconds]
_djbkd has joined #ruby
Jackneill_ has quit [Remote host closed the connection]
AndBobsYourUncle has joined #ruby
_geoff has quit [Ping timeout: 264 seconds]
_djbkd has quit [Remote host closed the connection]
shinnya has joined #ruby
gigetoo has joined #ruby
reverberations has quit [Read error: Connection reset by peer]
AndBobsYourUncle has quit [Client Quit]
claw has joined #ruby
ecuanaso has joined #ruby
AndBobsYourUncle has joined #ruby
hahuang61 has quit [Ping timeout: 264 seconds]
biberu has quit [Read error: Connection reset by peer]
Toledo has joined #ruby
Xentil has joined #ruby
choke has joined #ruby
manjaro-kde5-- has quit [Ping timeout: 255 seconds]
__Yiota has joined #ruby
gigetoo has quit [Ping timeout: 258 seconds]
gigetoo has joined #ruby
ruby-lang609 has joined #ruby
raul782 has quit [Remote host closed the connection]
ruby-lang609 has quit [Client Quit]
nankyokusei has joined #ruby
Toledo is now known as croberts
nankyokusei has quit [Ping timeout: 255 seconds]
dc4 has quit [Ping timeout: 258 seconds]
Julianee has joined #ruby
marr has quit [Ping timeout: 264 seconds]
grh has quit [Ping timeout: 248 seconds]
_djbkd has joined #ruby
ramfjord_ has joined #ruby
_djbkd has quit [Remote host closed the connection]