ljarvis changed the topic of #ruby-lang to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p547: http://ruby-lang.org || Paste code on http://gist.github.com
ender|dkm has quit [Ping timeout: 264 seconds]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
sepp2k1 has joined #ruby-lang
charliesome has joined #ruby-lang
sepp2k has quit [Ping timeout: 240 seconds]
seamon has quit [Quit: Zzzzzzz]
toastynerd has quit [Remote host closed the connection]
tmegano has quit [Ping timeout: 240 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
toastynerd has joined #ruby-lang
seamon has joined #ruby-lang
amsi has quit [Quit: Leaving]
mistym has quit [Read error: Connection reset by peer]
toastynerd has quit [Remote host closed the connection]
womble` is now known as womble
emmesswhy has quit [Quit: This computer has gone to sleep]
toastynerd has joined #ruby-lang
mistym has joined #ruby-lang
allomov has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
allomov has quit [Ping timeout: 245 seconds]
yyyy1313 has joined #ruby-lang
<yyyy1313> Hello, I'm new to using Ruby. I was wondering if anyone would be willing to spend a little bit of time trying to explain how to properly use a class and what it means to trying to have the results of a method from one class to be moved over to another method within said class.
|jemc| has joined #ruby-lang
<bnagy> yyyy1313: have you ever programmed before?
Derander has quit [Quit: ZNC - http://znc.sourceforge.net]
Derander has joined #ruby-lang
<yyyy1313> I'm new to programming, I been reading various books to get up to speed. Been reading for about a month and I get a lot of the concepts behind creating a program globally. But via the constraints of a class that I create it has broken my mind.
_Kerber0s_ has joined #ruby-lang
<yyyy1313> Some of the sources I been using has been learn to code the hard way, Beginning Ruby_From_Novice_to_Professional, and learn 2 Program 2nd edition.
_Kerber0s_ has quit [Remote host closed the connection]
_Kerber0s_ has joined #ruby-lang
<bnagy> well it might be better if you asked specific questions based on the examples from one of those. Hardway has all the exercises online.
Kerber0s has quit [Ping timeout: 260 seconds]
<bnagy> or if you explain what you think 'classes' 'objects' and 'methods' are
<yyyy1313> Well I'll post just something I was messing around with
<yyyy1313> class ProbabilityCalculator
<yyyy1313> def intiialize()
<yyyy1313> end
<yyyy1313> def calculation_probability(x, y)
<yyyy1313> ProbabilityCalculator.new()
<yyyy1313> @x = x, @y = y
<yyyy1313> x.to_f / y.to_f
<yyyy1313> @result = return result
<yyyy1313> end
<yyyy1313> end
<yyyy1313> calculation = ProbabilityCalculator.new
<yyyy1313> puts calculation.calculation_probability(1,8)
<bnagy> STAHP
amclain has joined #ruby-lang
<ohsix> smells pasty in here today
<bnagy> ok, pasting into IRC is bad. Use gist or pastie or something
<yyyy1313> Oh my bad
<yyyy1313> It was just a few lines so didn't think it would be too bad.
<bnagy> well 2 lines is the 'standard' polite limit :)
<yyyy1313> Ok, will do won't do it again. Sorry about that. Haven't really used IRC in forever, so wasn't famillar with the etiquette
<bnagy> so that code is gibberish
earthquake has quit [Quit: earthquake]
jgpawletko has quit [Quit: jgpawletko]
<yyyy1313> I just wanted to create a quick method to calculate probability and was just using random names for the time being. But the issue I'm having with it is I wanted to create a new method that took the result from calculation_probability and calculated another set of results from that method. The @result = return result was just something I added trying to see if I could get it to work on another
<yyyy1313> method I was going to create.
lsegal has joined #ruby-lang
<bnagy> start simpler
<bnagy> start by thinking about what classes and objects are
amerine has quit [Ping timeout: 240 seconds]
<yyyy1313> well I get the idea behind a class has a method or is-a part of a larger class.
<bnagy> because if it isn't something with some kind of state ( properties or attributes, or data, or whatever ) AND some kind of behaviour ( methods whatever ) then it probably shouldn't be represented as classes / objects
sharpmachine has quit [Remote host closed the connection]
yatish27 has quit [Ping timeout: 245 seconds]
<bnagy> data containers with no special behaviour -> use a standard type ( Array etc ) behaviour with no state -> use a Module
esmet_ has quit [Quit: Connection closed for inactivity]
yatish27 has joined #ruby-lang
<yyyy1313> Oh man, I thought a class had to encompass everything, lol.
<yyyy1313> Do you recommend any material that can help reinforce this idea?
<bnagy> bad abstraction is a fairly common problem, imho it just comes from cargo-culting code
<harly> work through them. plenty of searchable help online, it mostly hints you the answers, and teaches you some basic elements of ruby.
parenjitsu has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<yyyy1313> @bnagy what do you mean by cargo-culting?
<yyyy1313> @harly will definitely start working on it tonight see if it can help.
<bnagy> writing code based on copying other code that is not fully understood
<yyyy1313> Right actually let me link you the material and I can read some of the idea behind it, but it just hasn't quite clicked yet.
<yyyy1313> @bgnagy http://pastie.org/9522913 so this is one of the examples of trying to create a game with a room player with certain attributes. When trying to go line by line it completely broke my mind.
<harly> you should probably start with something more basic. ruby syntaxes. and then introductions to modules, classes, objects etc.
<bnagy> that's a pretty reasonable OO example
<harly> it's a complex OO example, for someone who knows no OO :)
<bnagy> and it's good that it's written in a very straightforward manner. What's not clear?
<harly> it's a basic game example :)
<yyyy1313> Well I been doing the basic work such as looping, creating global methods, using iterators and true and false statements. I also been using codeacademy to sink in other facets.
<yyyy1313> But when I got to this part in the book it just blew my mind completely.
<harly> looping, globals, iterators etc are ultra basic. next steps is to get a hold of modules and classes. but with examples that are focused on teaching that with simple examples, not relatively complex ones.
<yyyy1313> for example I don't quite understand why initialize is needed to begin the whole chain of commands. And I don't even understand how some of the methods are linked with others. I don't even get how the player character is even moving.
<harly> the koans would be a better start.
<bnagy> what if you started with just the Player class, then made a couple of Players and messed around with them?
<harly> and if in the koans you found something you didn't understand, it's very obvoius from context what stuff you should google to get a better grasp.
jbardin has quit [Quit: jbardin]
<yyyy1313> Ok, I'll give the koan a go.
<bnagy> yyyy1313: you should also start working with basic examples in irb. It really clarifies things when you get an instant response to every line
<harly> initialize is just the place where object variables are set up. It's called automatically after new is called to create the object. in this instance it's automatically dcreating a player object and storing it as an object variable (using the string parameter as the player name), and initialising rooms to be an empty array. that's why the code at the bottom creates a new dungeon passing a name as a parameter, and then sets up rooms.
<harly> but again, it's a complex exmaple to learn the basics.
karamazov has joined #ruby-lang
yatish27_ has joined #ruby-lang
mistym has quit [Remote host closed the connection]
yatish27 has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Ping timeout: 260 seconds]
<yyyy1313> so initialize just holds the instance that's created from Dungeon.new
<harly> the class holds them. initialize just sets them up.
yatish27 has joined #ruby-lang
<harly> the object holds them rather.
haraoka has joined #ruby-lang
<yyyy1313> Ah, ok. Alright let me give this Koan program a shot. I'll be back in a week if I have any issues getting it. Thanks for the link.
<harly> the koans is a good start. that code assumes knowledge of classes, object instantiation, object methods, object variables, string concatenation, attr_accessors, symbols, etc. the koans will teach you that. then it will be easier to see what it's doing.
<yyyy1313> Awesome. That's exactly what I need!
yatish27_ has quit [Ping timeout: 252 seconds]
seamon has quit [Quit: Zzzzzzz]
tkuchiki has joined #ruby-lang
bsvineeth has joined #ruby-lang
Newbie0086 has joined #ruby-lang
yatish27 has quit [Ping timeout: 252 seconds]
bsvineeth has quit [Ping timeout: 240 seconds]
yatish27 has joined #ruby-lang
ender|dkm has joined #ruby-lang
houhoulis has joined #ruby-lang
ender|dkm has quit [Ping timeout: 264 seconds]
migbar_ has quit [Remote host closed the connection]
yatish27 has quit [Ping timeout: 260 seconds]
migbar has joined #ruby-lang
michaeldeol has joined #ruby-lang
Benstr__ has quit [Quit: Lingo - http://www.lingoirc.com]
yatish27 has joined #ruby-lang
migbar has quit [Ping timeout: 245 seconds]
arBmind1 has joined #ruby-lang
arBmind has quit [Ping timeout: 240 seconds]
arBmind1 has quit [Client Quit]
yatish27 has quit [Ping timeout: 255 seconds]
natevick has joined #ruby-lang
yatish27_ has joined #ruby-lang
dwknoxy has quit [Quit: Textual IRC Client: www.textualapp.com]
torrieri has quit [Quit: Leaving...]
wallerdev has quit [Quit: wallerdev]
seamon has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michaeldeol has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
torrieri has joined #ruby-lang
natevick has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
migbar has joined #ruby-lang
michaeldeol has quit [Quit: Textual IRC Client: www.textualapp.com]
zenspider has quit [Ping timeout: 240 seconds]
migbar has quit [Ping timeout: 260 seconds]
sepp2k1 has quit [Read error: Connection reset by peer]
zz_anildigital is now known as anildigital
zenspider has joined #ruby-lang
kgrz has joined #ruby-lang
emmesswhy has joined #ruby-lang
_Kerber0s_ has quit [Ping timeout: 276 seconds]
Lewix_ has joined #ruby-lang
Cakey has joined #ruby-lang
Lewix has quit [Ping timeout: 260 seconds]
djbkd has quit [Quit: My people need me...]
migbar has joined #ruby-lang
mistym has joined #ruby-lang
Lewix_ has quit [Remote host closed the connection]
migbar has quit [Read error: Connection reset by peer]
migbar has joined #ruby-lang
amerine has joined #ruby-lang
hahuang65 has joined #ruby-lang
amerine has quit [Ping timeout: 245 seconds]
seamon has quit [Quit: Zzzzzzz]
Lewix has joined #ruby-lang
io_syl has quit [Ping timeout: 240 seconds]
anildigital is now known as zz_anildigital
j4cknewt has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
kgrz has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
cmckee has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
earthquake has joined #ruby-lang
natevick has joined #ruby-lang
centrx has quit [Quit: Mead error: Connection reset by beer]
natevick has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
omosoj has quit [Quit: Leaving]
diegovio1 has joined #ruby-lang
yyyy1313 has quit []
diegoviola is now known as Guest92324
Guest92324 has quit [Ping timeout: 260 seconds]
diegovio1 is now known as diegoviola
Miphix has joined #ruby-lang
amystephen has quit [Quit: amystephen]
earthquake has quit [Quit: earthquake]
gix- has quit [Ping timeout: 255 seconds]
amerine has joined #ruby-lang
gix has joined #ruby-lang
|jemc| has quit [Ping timeout: 260 seconds]
amerine has quit [Ping timeout: 268 seconds]
ender|dkm has joined #ruby-lang
lele|2 has quit [Ping timeout: 260 seconds]
lele|2 has joined #ruby-lang
ender|dkm has quit [Ping timeout: 264 seconds]
Lewix has quit [Read error: Connection reset by peer]
Lewix has joined #ruby-lang
kgrz has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
cmckee has quit [Quit: cmckee]
saarinen has joined #ruby-lang
saarinen has quit [Read error: Connection reset by peer]
saarinen has joined #ruby-lang
sidewinder27 has joined #ruby-lang
houhoulis has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
torrieri has quit [Quit: Leaving...]
karamazov has quit [Remote host closed the connection]
wallerdev has joined #ruby-lang
ender|dkm has joined #ruby-lang
Kerber0s has joined #ruby-lang
yatish27_ has quit [Ping timeout: 264 seconds]
mistym has quit [Remote host closed the connection]
kgrz has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
eddiezane_zzz is now known as eddiezane
eddiezane is now known as eddiezane_zzz
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
hahuang65 has quit [Ping timeout: 245 seconds]
hahuang65 has joined #ruby-lang
Kerber0s has quit [Read error: Connection reset by peer]
bsvineeth has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
Kerber0s has joined #ruby-lang
bsvineeth has quit [Ping timeout: 252 seconds]
necro has quit [Ping timeout: 246 seconds]
|jemc| has joined #ruby-lang
mistym has joined #ruby-lang
mmus has quit [Ping timeout: 245 seconds]
saarinen has quit [Quit: saarinen]
CaptainJet has quit []
enkristoffer has joined #ruby-lang
_Kerber0s_ has joined #ruby-lang
Kerber0s has quit [Read error: Connection reset by peer]
Lewix has quit [Remote host closed the connection]
kgrz has joined #ruby-lang
robbyoconnor has joined #ruby-lang
_Kerber0s_ has quit [Client Quit]
thagomizer has quit [Quit: Leaving.]
Lewix has joined #ruby-lang
toastynerd has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
JohnBat26 has joined #ruby-lang
tkuchiki_ has joined #ruby-lang
tkuchiki has quit [Ping timeout: 252 seconds]
ur5us has quit [Remote host closed the connection]
arooni-mobile has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
bsvineeth has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
_ht has joined #ruby-lang
Kerber0s has joined #ruby-lang
kyb3r_ has joined #ruby-lang
yatish27 has joined #ruby-lang
emmesswhy has quit [Quit: This computer has gone to sleep]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
tkuchiki_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
havenwood has quit [Ping timeout: 264 seconds]
AKASkip has joined #ruby-lang
[spoiler] has joined #ruby-lang
skade has joined #ruby-lang
skade_ has joined #ruby-lang
spastorino has quit [Quit: Connection closed for inactivity]
skade has quit [Ping timeout: 240 seconds]
j4cknewt has quit [Remote host closed the connection]
dabradley has quit [Ping timeout: 250 seconds]
arooni-mobile has quit [Ping timeout: 245 seconds]
|jemc| has quit [Ping timeout: 260 seconds]
arBmind has joined #ruby-lang
dabradley has joined #ruby-lang
DEac-_ has joined #ruby-lang
DEac- has quit [Read error: Connection reset by peer]
toastynerd has joined #ruby-lang
torrieri has joined #ruby-lang
toastynerd has quit [Ping timeout: 255 seconds]
<yorickpeterse> whitequark: re ragel, no, that way it completely shits itself.
<yorickpeterse> bbl
sidewinder27 has quit [Quit: Leaving]
Sphynx has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
havenwood has joined #ruby-lang
j4cknewt has joined #ruby-lang
diegovio1 has joined #ruby-lang
tbuehlmann has joined #ruby-lang
AKASkip has quit [Ping timeout: 245 seconds]
elico has joined #ruby-lang
kwd has joined #ruby-lang
ur5us has joined #ruby-lang
relix has joined #ruby-lang
matp has quit [Remote host closed the connection]
mbr has quit [Ping timeout: 260 seconds]
ur5us has quit [Ping timeout: 245 seconds]
torrieri has quit [Quit: Leaving...]
ur5us has joined #ruby-lang
allomov has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
yfeldblu_ has quit [Ping timeout: 240 seconds]
Lewix has quit [Remote host closed the connection]
ruby-lang175 has joined #ruby-lang
chussenot has joined #ruby-lang
Newbie0086 has quit [Ping timeout: 252 seconds]
mbr has joined #ruby-lang
mistym has quit [Remote host closed the connection]
<ruby-lang175> Is anyone here ?
Newbie0086 has joined #ruby-lang
solars has joined #ruby-lang
<havenwood> always
ironhide_604 has quit [Ping timeout: 246 seconds]
cmckee has joined #ruby-lang
ironhide_604 has joined #ruby-lang
AKASkip has joined #ruby-lang
qba73 has joined #ruby-lang
kwd has quit [Quit: Leaving.]
gianlucadv_ has joined #ruby-lang
kwd has joined #ruby-lang
dm78 has quit [Remote host closed the connection]
ironhide_604 has quit [Ping timeout: 246 seconds]
gianlucadv_ has quit [Client Quit]
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby-lang
gianlucadv_ has joined #ruby-lang
gianlucadv_ is now known as help
help is now known as gianlucadv_
elico has quit [Quit: Leaving.]
ayonkhan has joined #ruby-lang
dm78 has joined #ruby-lang
allomov has quit [Remote host closed the connection]
gianlucadv_ has quit [Quit: Ex-Chat]
charliesome has quit [Quit: zzz]
gianlucadv_ has joined #ruby-lang
cmckee has quit [Quit: cmckee]
ianmcshane has joined #ruby-lang
ianmcshane has quit [Remote host closed the connection]
gianlucadv_ has quit [Quit: Ex-Chat]
gianlucadv_ has joined #ruby-lang
gianlucadv_ has quit [Remote host closed the connection]
gianlucadv has left #ruby-lang [#ruby-lang]
skade_ has quit [Quit: Computer has gone to sleep.]
ender|dkm has quit [Ping timeout: 264 seconds]
sMecKs has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
amclain has quit [Quit: Leaving]
allomov has joined #ruby-lang
mikecmpbll has joined #ruby-lang
ferret_guy has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
ferret_guy has joined #ruby-lang
enkristoffer has quit [Quit: ❤]
adphillips has joined #ruby-lang
<unsymbol> good morning folks
kwd_ has joined #ruby-lang
kwd has quit [Read error: Connection reset by peer]
adphillips has quit [Client Quit]
s1kx has quit [Read error: Connection reset by peer]
s1kx has joined #ruby-lang
j4cknewt has quit []
hellangel7 has joined #ruby-lang
ferret_guy has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
michd is now known as MichD
arBmind1 has joined #ruby-lang
gianlucadv_ has joined #ruby-lang
arBmind has quit [Ping timeout: 245 seconds]
symm- has quit [Ping timeout: 264 seconds]
gianlucadv_ has quit [Client Quit]
jhass|off is now known as jhass
benlovell has joined #ruby-lang
ayonkhan has quit [Quit: Lingo - http://www.lingoirc.com]
gianlucadv has joined #ruby-lang
diegovio1a has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
darkness has joined #ruby-lang
yfeldblum has joined #ruby-lang
darkness is now known as Guest8986
bsvineeth has quit [Remote host closed the connection]
diegovio1 has joined #ruby-lang
Guest8986 has quit [Max SendQ exceeded]
diegovio1 is now known as diegovio1a
Guest8986 has joined #ruby-lang
hellangel7 has quit [Ping timeout: 272 seconds]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
kek has joined #ruby-lang
diegovio1a has quit [Client Quit]
charliesome has joined #ruby-lang
bsvineeth has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
marr has joined #ruby-lang
arBmind1 has quit [Quit: Leaving.]
diegoviola has quit [Remote host closed the connection]
arBmind has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
ianmcshane has joined #ruby-lang
bsvineeth has joined #ruby-lang
diegoviola has joined #ruby-lang
diegoviola has quit [Client Quit]
Guest8986 has quit [Max SendQ exceeded]
<yorickpeterse> well who would've thought I actually don't mind Emailing with customers
<yorickpeterse> especially if I get to argue about putting certain features in or not
<yorickpeterse> *especially* if I have a good case as to why not to do it :P
chussenot has quit [Quit: chussenot]
amerine has joined #ruby-lang
havenwood has joined #ruby-lang
amerine has quit [Ping timeout: 245 seconds]
havenwood has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby-lang
Cakey has quit [Ping timeout: 245 seconds]
yatish27 has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
yatish27 has quit [Ping timeout: 264 seconds]
Newbie0086 has quit [Quit: 离开]
ur5us has quit [Remote host closed the connection]
haraoka has quit [Ping timeout: 245 seconds]
havenwood has joined #ruby-lang
<ruby-lang175> !!!!!!!!!!!!!!!!
<yorickpeterse> ruby-lang175: ?
<ruby-lang175> Oh, i think the chat is dead.
<yorickpeterse> it's not. The US is still asleep and asia is pretty much going to bed
<yorickpeterse> and the EU is at work
<yorickpeterse> "work"
<yorickpeterse> In case you have a question, just ask it
<ruby-lang175> No, thank you. I am newbe in rails and just wanted to see what's going on in ruby-irc.
kyb3r_ has quit [Read error: Connection reset by peer]
<harly> generally people pop in and ask questions, and someone helps out. not tooooo much else.
havenwood has quit [Ping timeout: 264 seconds]
<jhass> ruby-lang175: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ help
robbyoconnor has quit [Ping timeout: 252 seconds]
<yorickpeterse> jhass: they didn't mention they wanted to see what's going on in the rails irc channel :)
robbyoconnor has joined #ruby-lang
<jhass> just making sure ;P
kwd_ has quit [Quit: Sleeping now. ZZZzzz…]
skade has joined #ruby-lang
<yorickpeterse> Fucking N+1 queries
<yorickpeterse> memoize all the things, map all the hashes
<yorickpeterse> and go from ~8000 queries to only a handful
<yorickpeterse> at least that's the goal
bsvineet_ has joined #ruby-lang
ianmcshane has quit [Remote host closed the connection]
bsvineeth has quit [Ping timeout: 245 seconds]
amerine has joined #ruby-lang
amerine has quit [Ping timeout: 245 seconds]
riffraff has joined #ruby-lang
tmegano has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 246 seconds]
tkuchiki_ has joined #ruby-lang
enkristoffer has joined #ruby-lang
benlovel1 has joined #ruby-lang
tkuchiki_ has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Ping timeout: 268 seconds]
benlovell has quit [Ping timeout: 245 seconds]
tmegano has quit [Ping timeout: 264 seconds]
ur5us has joined #ruby-lang
tmegano has joined #ruby-lang
ZAJDAN has joined #ruby-lang
ledestin_ is now known as ledestin
ur5us has quit [Ping timeout: 246 seconds]
Mon_Ouie has joined #ruby-lang
skade has quit [Ping timeout: 245 seconds]
skade has joined #ruby-lang
<ZAJDAN> hi
<ZAJDAN> today I have made decision "I will learn ruby"...but during installation I have got problem
<ZAJDAN> can anybody help me?
<canton7> asking "can anyone help" questions don't tend to get you very far
<canton7> try stating the problem you're having
tmegano has quit [Quit: Saindo]
<ZAJDAN> root@debian-zdenek:/home/zdenek# gem install rails
<ZAJDAN> ERROR: Error installing rails:
<ZAJDAN> activesupport requires Ruby version >= 1.9.3.
<ZAJDAN> root@debian-zdenek:/home/zdenek# ruby -v
<ZAJDAN> ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]
<ZAJDAN> ok I have made:
<ZAJDAN> apt-get remove ruby
<ZAJDAN> apt-get install ruby1.9.1-full
robbyoconnor has quit [Quit: Konversation terminated!]
<ZAJDAN> but now!
<ZAJDAN> root@debian-zdenek:/home/zdenek# ruby -v
<ZAJDAN> bash: /usr/bin/ruby: No such file or directory
<ZAJDAN> strange because ruby 1.9.1 is installed
<ZAJDAN> OS: Debian 6
strmpnk____ has quit [Ping timeout: 272 seconds]
SkramX has quit [Ping timeout: 272 seconds]
_dyrim has quit [Ping timeout: 272 seconds]
cryptoca has quit [Ping timeout: 272 seconds]
gianlucadv has quit [Ping timeout: 272 seconds]
tris has quit [Ping timeout: 272 seconds]
miqui has quit [Remote host closed the connection]
strmpnk____ has joined #ruby-lang
SkramX_ has joined #ruby-lang
diegoviola has joined #ruby-lang
Kerber0s has quit [Remote host closed the connection]
<workmad3> ZAJDAN: it could be set up as 'ruby-1.9' or 'ruby-1.9.1'
Kerber0s has joined #ruby-lang
<workmad3> ZAJDAN: welcome to the pain that is debian packaged ruby :P
<ZAJDAN> maybe in Debian 7 it is treated
<ZAJDAN> but I do not want to upgrade to Debian 7
cryptoca has joined #ruby-lang
<surrounder> why not ?
<ZAJDAN> many reasons...for example I like use old gnome
<surrounder> so install mate
<ZAJDAN> mate is not so same..just similar
nofxx__ has joined #ruby-lang
<ZAJDAN> I have removed previous ruby but
<ZAJDAN> /home/zdenek# ls /usr/bin/ru
<ZAJDAN> ruby1.8 ruby1.9.1
<surrounder> clinging to an old version of your OS is not the way to go either
<ZAJDAN> you are as Microsoft..just press to upgrade OS
<ZAJDAN> :_))
<ZAJDAN> similar problem I have had with skype..and many peoples press to me...upgrade OS..there is new package which works fine
<ZAJDAN> but I solved the problem without upgrade Debian....and with Ruby it must goes also
<surrounder> sure, it's all doable
_dyrim has joined #ruby-lang
nofxx_ has quit [Ping timeout: 272 seconds]
<surrounder> if you like giving yourself more work in the long run
<ZAJDAN> I am too much conservative
<surrounder> same, that's why I don't run debian on my own machines, just at work
<ZAJDAN> because all the new is not so best as before
benlovel1 has quit [Ping timeout: 260 seconds]
chussenot has joined #ruby-lang
tbuehlmann has quit [Quit: Leaving]
amerine has joined #ruby-lang
<workmad3> ZAJDAN: sure, not every change is an improvment... but every improvement *has* to be a change
tris has joined #ruby-lang
kek_ has joined #ruby-lang
kek_ has quit [Remote host closed the connection]
kek has quit [Ping timeout: 264 seconds]
kek has joined #ruby-lang
bsvineet_ has quit [Remote host closed the connection]
amerine has quit [Ping timeout: 240 seconds]
benlovell has joined #ruby-lang
sarkyniin has joined #ruby-lang
kek_ has joined #ruby-lang
kek has quit [Ping timeout: 260 seconds]
ldnunes has joined #ruby-lang
Lewix has joined #ruby-lang
Lewix has quit [Changing host]
Lewix has joined #ruby-lang
gianlucadv has joined #ruby-lang
bsvineeth has joined #ruby-lang
<ZAJDAN> it will be some problem with link to ruby, because when I try:
<ZAJDAN> ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux]
<ZAJDAN> root@debian-zdenek:/home/zdenek# /usr/bin/ruby1.9.1 -v
Kerber0s has quit [Remote host closed the connection]
<yorickpeterse> ZAJDAN: you can try https://github.com/postmodern/chruby in combination with https://github.com/postmodern/ruby-install
<yorickpeterse> saves you the pain of having to deal with Debian shipping outdated stuff
ender|dkm has joined #ruby-lang
migbar has quit [Remote host closed the connection]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
migbar has joined #ruby-lang
JohnBat26 has joined #ruby-lang
ender|dkm has quit [Ping timeout: 264 seconds]
havenwood has joined #ruby-lang
tbuehlmann has joined #ruby-lang
havenwood has quit [Ping timeout: 264 seconds]
Sgeo has quit [Read error: Connection reset by peer]
torrieri has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
ianmcshane has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
torrieri has quit [Client Quit]
migbar_ has joined #ruby-lang
migbar has quit [Ping timeout: 252 seconds]
<ZAJDAN> it seems that it is solved..I have downloaded the current stable 2.1.2 and used $ ./configure
<ZAJDAN> $ make
<ZAJDAN> $ sudo make install
karamazov has joined #ruby-lang
<ZAJDAN> now:
<ZAJDAN> root@debian-zdenek:/home/zdenek/Downloads/ruby/ruby-2.1.2# ruby -v
<ZAJDAN> ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux]
<yorickpeterse> That means you just overwrote your system Ruby
<yorickpeterse> Which can potentially break it
<yorickpeterse> (it being Debian)
<ZAJDAN> mine goal was keep debian 6 without upgrade
<ZAJDAN> and install ruby and rails from repository
<yorickpeterse> You might've very well just hosed it, though I'm not sure up to what extend Debian uses Ruby for stuff
<ZAJDAN> now I know when keep debian 6 I can not install ruby from his repository but must Building from Source
<sarkyniin> hey, I'm using valkyrie to transfer an sqlite db to a pg one
<sarkyniin> however, when I execute this command: valkyrie SQLite://pokedex.sqlite postgres://localhost/pokedex
<sarkyniin> it gives me this error: usr/local/lib/ruby/gems/2.1.0/gems/sequel-3.31.0/lib/sequel/adapters/postgres.rb:231:in `initialize': PG::ConnectionBad: fe_sendauth: no password supplied (Sequel::DatabaseConnectionError)
<sarkyniin> is there an easy way to fix this?
<yorickpeterse> sarkyniin: Yes, supply a password when connecting to Postgres
<yorickpeterse> The error literally tells you to
<sarkyniin> yorickpeterse: but I didn't set a password when creating the db/role
<yorickpeterse> apparently you did, otherwise it wouldn't ask for one
<yorickpeterse> also I don't see a user in that postgres:// string, so make sure that's set up properly too
<sarkyniin> valkyrie SQLite://pokedex.sqlite postgres://apt-get:[unixuserpassword]@localhost/pokedex
<sarkyniin> FATAL: password authentication failed for user "apt-get"
amerine has joined #ruby-lang
<sarkyniin> when I created my account, I just did "createaccount apt-get"
<sarkyniin> and select "y" when it asked for superuser
kek_ has quit [Remote host closed the connection]
kek has joined #ruby-lang
miqui has joined #ruby-lang
amerine has quit [Ping timeout: 240 seconds]
karamazov has quit []
earthquake has joined #ruby-lang
<ZAJDAN> root@debian-zdenek:/# ruby -v
<ZAJDAN> ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux]
<ZAJDAN> 2.4.1
<ZAJDAN> root@debian-zdenek:/# gem -v
<ZAJDAN> root@debian-zdenek:/#
<ZAJDAN> but!
<ZAJDAN> root@debian-zdenek:/# gem install rails
<ZAJDAN> ERROR: Loading command: install (LoadError)
<ZAJDAN> cannot load such file -- zlib
<ZAJDAN> ERROR: While executing gem ... (NoMethodError)
<ZAJDAN> undefined method `invoke_with_build_args' for nil:NilClass
pabloh has joined #ruby-lang
sepp2k has joined #ruby-lang
<yorickpeterse> ZAJDAN: please use gist.github.com for longer pastes
<yorickpeterse> ZAJDAN: Again, I suggest you use chruby/ruby-install and save you all the trouble
<yorickpeterse> the error about zlib means that libzlib/libzlib-dev (or w/e Debian calls it) is not installed
<yorickpeterse> You need to have it installed when you compile Ruby I believe
ledestin has quit [Ping timeout: 255 seconds]
ledestin_ has joined #ruby-lang
yfeldblum has joined #ruby-lang
yfeldblum has quit [Ping timeout: 260 seconds]
karamazov has joined #ruby-lang
ender|dkm has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
ender|dkm has quit [Ping timeout: 264 seconds]
sarpk92 has joined #ruby-lang
<sarpk92> hello
<sarpk92> anybody here?
<yorickpeterse> sarpk92: only programs, just ask your question
<sarpk92> only programs?
amystephen has joined #ruby-lang
chussenot has quit [Quit: chussenot]
<sarpk92> I am a front-end noob and cannot get this tutorial done https://github.com/edennis/jquery-gmap3-rails
<sarpk92> At the end it says $("#map_canvas").gmap3(); for the div
jgpawletko has joined #ruby-lang
<sarpk92> So in my viewer it looks like http://pastebin.com/MbGU8bVY
<sarpk92> However all I see in my browser is ("#map_canvas").gmap3();
<[spoiler]> Wat.
pablo_ has joined #ruby-lang
<yorickpeterse> sarpk92: you are misunderstanding what that code does
<[spoiler]> You should wrap that (`$("#map_canvas").gmap3();`) inside <script> tags
<yorickpeterse> ^
<yorickpeterse> Right now you're displaying it as literal text
<yorickpeterse> YESssss, this dumb CSV export that killed our services is almost done
<sarpk92> <script>(`$("#map_canvas").gmap3();`)</script> like this?
<yorickpeterse> memory usage down from 300MB to ~50
<yorickpeterse> sarpk92: without the backticks
<yorickpeterse> <script>$('#map_canvas').gmap3();</script> should be enough
<[spoiler]> Also, you would need to add that after the closing div tag. So... <div id="map" ...></div><script>$("#map_canvas").gmap3();</script>
workmad3 has quit [Ping timeout: 240 seconds]
earthquake has quit [Quit: earthquake]
ianmcshane has quit [Remote host closed the connection]
<[spoiler]> also what yorickpeterse said, without the backticks
<sarpk92> ok done
<sarpk92> not working still
pabloh has quit [Ping timeout: 264 seconds]
<sarpk92> I don't see anything in the browser
<[spoiler]> Did you include whichever library implements jQuery.fn.gmap3?
workmad3 has joined #ruby-lang
<yorickpeterse> sarpk92: change <div id="map" to <div id="map_canvas"
ianmcshane has joined #ruby-lang
<sarpk92> I did the gemfile thing and bundle install + //= require gmap3 to application.js
<yorickpeterse> also the extra parenthesis around the Javascript are not needed
<[spoiler]> The ( and ) are superfluous in this context, but you should call <%= javascript_include_tag "http://maps.googleapis.com/maps/api/js?sensor=true" before the call to $("#map_canvas").gmap3(); (if google maps implements it)
spastorino has joined #ruby-lang
<sarpk92> okay so i did this
<sarpk92> still not working?
<sarpk92> spoiler I am calling that
<[spoiler]> This isn't really a Ruby (or even Rails) related question.
<sarpk92> Does the order matter?
<[spoiler]> Yes, the order is very important
<sarpk92> I put it at the end
<sarpk92> oh
havenwood has joined #ruby-lang
<sarpk92> C'mon this is ruby not ANSI C
<sarpk92> WOW
<sarpk92> IT WORKS!
<[spoiler]> No, this is JavaScript
<[spoiler]> :P
<sarpk92> Order really matters
<sarpk92> So can I do this in rails
<sarpk92> or do I have to use these div stuff
<sarpk92> I mean with ruby code
<[spoiler]> Rails is a backend framework, so you will need to use JavaScript
<yorickpeterse> sarpk92: Do you mean generating HTML?
<sarpk92> yeah
<sarpk92> you know <% %> kind of stuff
<yorickpeterse> sarpk92: sort of, Rails uses ERB by default (that) but you can also use other languages
<yorickpeterse> (e.g. HAML)
<[spoiler]> Well, you could use a HTML-generator DSL, but I don't see the point
<sarpk92> like <% do_some_div_stuff(map_canvas) %>
<[spoiler]> This is a view/template; writing HTML (and ERB) or using some other templating language is expected of you. There's no point in wrapping it all up inside a method. You could, I suppose, create a partial
<[spoiler]> if the map appears on many places
<yorickpeterse> sarpk92: you'd have to write Ruby code for it yourself in this case
<sarpk92> ok
havenwood has quit [Ping timeout: 264 seconds]
<[spoiler]> if you had a partial, you'd use (if I remember correctly) <%= render 'map_canvas' %> and inside the map partial you could use some ruby to make sure the div IDs are unique. more about partials here: http://guides.rubyonrails.org/layouts_and_rendering.html#using-partials
<sarkyniin> hey, when using taps, I get this error
<sarkyniin> "/usr/local/lib/ruby/gems/2.1.0/gems/sequel-3.20.0/lib/sequel/adapters/postgres.rb:175:in `async_exec': PG::DatatypeMismatch: ERROR: column "is_base" is of type boolean but expression is of type integer (Sequel::DatabaseError)
<sarkyniin> LINE 1: ... ("id", "identifier", "is_base") VALUES (1, 'hp', 1), (2, 'a...
<sarkyniin> ^
<sarkyniin> HINT: You will need to rewrite or cast the expression.
pabloh has joined #ruby-lang
<sarkyniin> "
<[spoiler]> and yep, I gave you a good example, :-)
<sarkyniin> is there an easy way to rewrite it?
<kalleth> !paste
<kalleth> ...where's the damn bot
<[spoiler]> Lmao
<sarkyniin> oh
<sarkyniin> crap
<sarkyniin> I didn't c/p the paste link
<kalleth> :P
<[spoiler]> Hmm, not sure... What db are you using?
<sarkyniin> sqlite
<[spoiler]> I'd imagine bool values would get flattened, but I guess I was wrong
<[spoiler]> but your adapter says postgres
<sarkyniin> yeah, I thought taps would automatically modify the things
arBmind has joined #ruby-lang
<sarkyniin> the server is taking from an sqlite file
<sarkyniin> and I'm trying to convert it to pg
<[spoiler]> Hmm, not sure :o
<[spoiler]> This is beyond me, I used taps once
<[spoiler]> and it was smooth sailing, but what I needed was simple anyway
pablo_ has quit [Ping timeout: 260 seconds]
<[spoiler]> Also sarpk92 you should /join #rubyonrails and ask your rails questions there, they're the Rails experts! ;)
<[spoiler]> They probably have more insight (than I do; not sure about the other peeps here) about rails.
<sarpk92> Oh I found this page from rails site
enebo has quit [Ping timeout: 255 seconds]
<sarpk92> I cannot connect to that channel anyway
yatish27 has joined #ruby-lang
<workmad3> spastorino: you should be able to... #rubyonrails requires you to be identified to nickserv, same as talking in this chan requires
Kerber0s has joined #ruby-lang
<workmad3> sarpk92: ^^ that was to you... sorry spastorino
sarpk92 is now known as newsarpk
pabloh has quit [Quit: Saliendo]
newsarpk has quit [Quit: Page closed]
pabloh has joined #ruby-lang
newsarpk92 has joined #ruby-lang
<newsarpk92> what was the RoR channel?
ianmcshane has quit [Remote host closed the connection]
malconis has joined #ruby-lang
yatish27_ has joined #ruby-lang
jgpawletko has quit [Quit: jgpawletko]
yatish27 has quit [Ping timeout: 245 seconds]
torrieri has joined #ruby-lang
torrieri has quit [Changing host]
torrieri has joined #ruby-lang
jxie_ has quit [Ping timeout: 246 seconds]
<waxjar> #rubyonrails ..
jxie has joined #ruby-lang
yfeldblum has joined #ruby-lang
jgpawletko has joined #ruby-lang
banister has joined #ruby-lang
goatish_mound is now known as rsl
torrieri has quit [Client Quit]
enebo has joined #ruby-lang
yfeldblum has quit [Ping timeout: 268 seconds]
banister has quit [Client Quit]
<[spoiler]> Shift's over :-) I'm going home! ttyl/t guys! <3
[spoiler] has quit [Quit: Leaving]
<yorickpeterse> what a slacker
<yorickpeterse> going home...pffft
karamazov has quit [Remote host closed the connection]
<ZAJDAN> oot@debian-zdenek:/home/zdenek/Downloads/ruby/ruby-2.1.2# gem install rails
<ZAJDAN> ERROR: While executing gem ... (Gem::Exception)
<ZAJDAN> Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources
karamazov has joined #ruby-lang
<ZAJDAN> openssl is installed...one again I have made from ruby source /configure, make, make install...but still the problem with ssl
ianmcshane has joined #ruby-lang
<yorickpeterse> ZAJDAN: Please stop pasting errors directly into the channel
<yorickpeterse> ZAJDAN: use gist.github.com for that
<yorickpeterse> You've been told this before
cleopatra has quit [Ping timeout: 268 seconds]
<yorickpeterse> and again, I suggest you try chruby/ruby-install to save yourself time
banister has joined #ruby-lang
ZAJDAN has left #ruby-lang [#ruby-lang]
karamazov has quit [Ping timeout: 276 seconds]
ZAJDAN has joined #ruby-lang
charliesome has quit [Quit: zzz]
|jemc| has joined #ruby-lang
tdy has quit [Read error: Connection reset by peer]
nofxx__ has quit [Ping timeout: 276 seconds]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Lewix has joined #ruby-lang
riffraff has quit [Quit: Leaving]
kgrz has quit [Remote host closed the connection]
chouhoul_ has joined #ruby-lang
shinnya has joined #ruby-lang
kgrz has joined #ruby-lang
Kerber0s has quit [Remote host closed the connection]
Kerber0s has joined #ruby-lang
chouhoulis has quit [Ping timeout: 260 seconds]
Forgetful_Lion has quit [Remote host closed the connection]
kgrz has quit [Ping timeout: 245 seconds]
enkristoffer has quit [Quit: ❤]
nofxx__ has joined #ruby-lang
tdy has joined #ruby-lang
itsraining has joined #ruby-lang
loincloth has joined #ruby-lang
enkristoffer has joined #ruby-lang
ledestin_ has quit [Ping timeout: 245 seconds]
cmhobbs has joined #ruby-lang
cmhobbs has joined #ruby-lang
cmhobbs has quit [Remote host closed the connection]
cmhobbs has joined #ruby-lang
cmhobbs has joined #ruby-lang
cmhobbs has quit [Changing host]
ledestin has joined #ruby-lang
ianmcshane has quit [Remote host closed the connection]
kek_ has joined #ruby-lang
yfeldblum has joined #ruby-lang
amerine has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kek has quit [Ping timeout: 260 seconds]
Sphynx has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 240 seconds]
amerine has quit [Ping timeout: 240 seconds]
enkristoffer has quit [Quit: ❤]
bsvineeth has quit [Remote host closed the connection]
ledestin_ has joined #ruby-lang
ledestin has quit [Ping timeout: 276 seconds]
ledestin_ is now known as ledestin
enkristoffer has joined #ruby-lang
<darix> ZAJDAN: install openssl devel files before compiling ruby or keep using your distro packages if you have no clue what you are doing.
enkristoffer has quit [Changing host]
enkristoffer has joined #ruby-lang
<darix> yorickpeterse: unless chruby/ruby-install also install openssl for him (which i really really hope they wont), using this tools will give him just as broken as ruby installs as he has atm.
eddiezane_zzz is now known as eddiezane
<yorickpeterse> darix: ruby-install uses your package manager to install system level dependencies, if available
<yorickpeterse> it doesn't compile stuff from source
eddiezane is now known as eddiezane_zzz
<darix> yorickpeterse: i was wondering about oga ... should you remove the pure ruby part from the description now that it has a ragel based parser?
chouhoul_ has quit [Remote host closed the connection]
toastynerd has joined #ruby-lang
<yorickpeterse> darix: it's not part of the description anymore, for quite some time now
<darix> ok
chouhoulis has joined #ruby-lang
<darix> yorickpeterse: is there a gem release already? then i could quickly put it into a package :)
momomomomo has joined #ruby-lang
<yorickpeterse> Not yet, also wtf you want to package it already?
<darix> well if there was a gem ... i could with like 20s of work :p
ZAJDAN has quit [Read error: Connection reset by peer]
enkristoffer has quit [Quit: ❤]
<darix> and i usually try to avoid installing things outside of rpms :)
ZAJDAN has joined #ruby-lang
<darix> yorickpeterse: and i finally fixed rbx support for it
havenwood has joined #ruby-lang
|jemc| has quit [Ping timeout: 272 seconds]
toastynerd has quit [Remote host closed the connection]
mistym has joined #ruby-lang
kek_ has quit [Remote host closed the connection]
ender|dkm has joined #ruby-lang
mistym has quit [Remote host closed the connection]
ender|dkm has quit [Ping timeout: 264 seconds]
tdy has quit [Ping timeout: 245 seconds]
nofxx__ has quit [Ping timeout: 245 seconds]
thagomizer has joined #ruby-lang
kgrz has joined #ruby-lang
cmhobbs has quit [Remote host closed the connection]
|jemc| has joined #ruby-lang
cmhobbs has joined #ruby-lang
AKASkip has quit [Ping timeout: 268 seconds]
ledestin has quit [Ping timeout: 245 seconds]
vikasyaligar has joined #ruby-lang
vikasyaligar has left #ruby-lang [#ruby-lang]
<yorickpeterse> Not sure why you'd want to install oga outside of RubyGems at this point though
mistym has joined #ruby-lang
<yorickpeterse> at least not until 1.0
cmckee has joined #ruby-lang
karamazov has joined #ruby-lang
ledestin has joined #ruby-lang
solars has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby-lang
tdy has joined #ruby-lang
CaptainJet has joined #ruby-lang
yfeldblum has quit [Ping timeout: 272 seconds]
Phrogz has joined #ruby-lang
amerine has joined #ruby-lang
momomomomo has quit [Ping timeout: 246 seconds]
momomomomo has joined #ruby-lang
kgrz has quit [Remote host closed the connection]
fusillicode has quit [Quit: Leaving.]
fusillicode1 has joined #ruby-lang
amerine has quit [Ping timeout: 260 seconds]
fusillicode1 has quit [Read error: Connection reset by peer]
fusillicode has joined #ruby-lang
qba73 has quit []
io_syl has joined #ruby-lang
karamazov has quit [Remote host closed the connection]
kgrz has joined #ruby-lang
karamazov has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
konr has quit [Quit: Connection closed for inactivity]
bsvineeth has joined #ruby-lang
Miphix has quit [Quit: Leaving]
relix has joined #ruby-lang
necro has joined #ruby-lang
kek has joined #ruby-lang
kek has quit [Ping timeout: 246 seconds]
_whitelogger__ has joined #ruby-lang
jinie has joined #ruby-lang
toastynerd has joined #ruby-lang
wallerdev has joined #ruby-lang
valeri_uF0 has joined #ruby-lang
emmesswhy has joined #ruby-lang
manveru_ has joined #ruby-lang
mistym has quit [Remote host closed the connection]
th2389____ has joined #ruby-lang
dlackty__ has joined #ruby-lang
shennyg__ has joined #ruby-lang
jamo_ has joined #ruby-lang
Mellett68_ has joined #ruby-lang
kalleth_ has joined #ruby-lang
DefV has joined #ruby-lang
Benny1993 has joined #ruby-lang
saltsa_ has joined #ruby-lang
akahn_ has joined #ruby-lang
ozzloy has joined #ruby-lang
jlpeters_ has joined #ruby-lang
ozzloy has joined #ruby-lang
Muz_ has joined #ruby-lang
Kuukunen- has joined #ruby-lang
EvilJStoker_ has joined #ruby-lang
bryanl_ has joined #ruby-lang
GarethAdams_ has joined #ruby-lang
perryh has joined #ruby-lang
imajes_ has joined #ruby-lang
chouhoul_ has joined #ruby-lang
zenspider_ has joined #ruby-lang
banister has joined #ruby-lang
zeusmns_ has joined #ruby-lang
hellome has quit [Write error: Connection reset by peer]
soraher__ has joined #ruby-lang
manveru_ is now known as manveru
perryh is now known as perry
canton7 has joined #ruby-lang
valeri_uF0 is now known as valeri_ufo
anekos_ has joined #ruby-lang
wnd has joined #ruby-lang
lele has joined #ruby-lang
banister has joined #ruby-lang
paulog__ has joined #ruby-lang
banister has quit [Max SendQ exceeded]
kalzz has joined #ruby-lang
lacrosse has joined #ruby-lang
GitNick has joined #ruby-lang
Guest85414______ has joined #ruby-lang
shtirlic has joined #ruby-lang
banister has joined #ruby-lang
JoL1hAHN has joined #ruby-lang
oddmunds has joined #ruby-lang
znz_jp has joined #ruby-lang
banister has quit [Max SendQ exceeded]
jevs has joined #ruby-lang
EvilJStoker_ is now known as EvilJStoker
mattyohe has joined #ruby-lang
hplar has joined #ruby-lang
lsegal has joined #ruby-lang
cmckee has quit [Write error: Connection reset by peer]
phrozen77 has joined #ruby-lang
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
clamstar has joined #ruby-lang
adambeynon has joined #ruby-lang
lguardiola has joined #ruby-lang
banister has joined #ruby-lang
bryanl_ is now known as bryanl
banister has quit [Max SendQ exceeded]
skarn has joined #ruby-lang
skarn is now known as Guest10538
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
FiXato has joined #ruby-lang
pabloh has quit [Ping timeout: 276 seconds]
jlpeters_ is now known as jlpeters
yfeldblum has joined #ruby-lang
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
Kabaka has joined #ruby-lang
banister has joined #ruby-lang
joevandyk has joined #ruby-lang
akahn_ is now known as akahn
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
whitequark has joined #ruby-lang
pabloh has joined #ruby-lang
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
kirin` has quit [Ping timeout: 250 seconds]
banister_ has joined #ruby-lang
banister_ has quit [Max SendQ exceeded]
kirin` has joined #ruby-lang
banister_ has joined #ruby-lang
banister_ has quit [Max SendQ exceeded]
centrx has joined #ruby-lang
ggherdov has joined #ruby-lang
banister_ has joined #ruby-lang
banister_ has quit [Max SendQ exceeded]
yfeldblum has quit [Ping timeout: 255 seconds]
banister_ has joined #ruby-lang
banister_ has quit [Max SendQ exceeded]
banister_ has joined #ruby-lang
banister_ has quit [Max SendQ exceeded]
banister_ has joined #ruby-lang
banister_ has quit [Max SendQ exceeded]
symm- has joined #ruby-lang
banister_ has joined #ruby-lang
banister_ has quit [Max SendQ exceeded]
io_syl has quit []
amerine has joined #ruby-lang
mistym has joined #ruby-lang
kirin` has quit [Read error: Connection reset by peer]
zeusmns_ is now known as zeusmns
kirin` has joined #ruby-lang
sharpmachine has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby-lang
jbardin has joined #ruby-lang
<sarkyniin> anyone knows if making custom functions with the sequel gem is possible?
kirin` has quit [Read error: Connection reset by peer]
kirin` has joined #ruby-lang
mikecmpbll has quit [Ping timeout: 260 seconds]
benlovell has quit [Ping timeout: 240 seconds]
diegoviola has quit [Ping timeout: 246 seconds]
yatish27_ has quit [Ping timeout: 240 seconds]
yatish27 has joined #ruby-lang
kirin` has quit [Ping timeout: 255 seconds]
mikecmpbll has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
kirin` has joined #ruby-lang
karamazov has quit []
djbkd has joined #ruby-lang
kirin` has quit [Ping timeout: 246 seconds]
kirin` has joined #ruby-lang
amsi has joined #ruby-lang
saarinen has joined #ruby-lang
kirin` has quit [Ping timeout: 268 seconds]
hahuang65 has quit [Ping timeout: 268 seconds]
kirin` has joined #ruby-lang
RobertBirnie has joined #ruby-lang
momomomomo_ has joined #ruby-lang
<centrx> sarkyniin, You can extend any class/module in the gem
shinnya has quit [Ping timeout: 255 seconds]
momomomomo has quit [Ping timeout: 252 seconds]
momomomomo_ is now known as momomomomo
mkaesz has joined #ruby-lang
<darix> yorickpeterse: our ruby library packaging is doing the gem way
ender|dkm has joined #ruby-lang
hellangel7 has joined #ruby-lang
kirin` has quit [Read error: Connection reset by peer]
ruby-lang175 has quit [Quit: Page closed]
kirin` has joined #ruby-lang
yfeldblum has joined #ruby-lang
wallerdev has joined #ruby-lang
kirin` has quit [Ping timeout: 245 seconds]
<spastorino> workmad3: saw your mention a bit late, no worries :)
skade has quit [Quit: Computer has gone to sleep.]
yfeldblum has quit [Ping timeout: 252 seconds]
palar has joined #ruby-lang
io_syl has joined #ruby-lang
kirin` has joined #ruby-lang
parenjitsu has joined #ruby-lang
kirin` has quit [Read error: Connection reset by peer]
kirin` has joined #ruby-lang
enkristoffer has joined #ruby-lang
yibeikafei has joined #ruby-lang
allomov has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby-lang
Reen has quit [Ping timeout: 250 seconds]
nertzy has joined #ruby-lang
seamon has joined #ruby-lang
michaeldeol has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
pabloh has quit [Ping timeout: 260 seconds]
xtruder has joined #ruby-lang
pabloh has joined #ruby-lang
<xtruder> hi
<xtruder> could anyone help me with rss parser?
hahuang65 has joined #ruby-lang
<Phrogz> xtruder: Please don't ask if you can ask (or if someone is awake, or can help you). Just boldly ask your question and wait for help. :)
<Phrogz> It's not a dinner party or a Lorde song; you do not have to wait until you're announced.
<xtruder> lol ok
<xtruder> i have this basic parser: http://pastebin.com/1K2p33Gz, id like to set a limit to number of feeds to retrieve
skade has joined #ruby-lang
mahlon has quit [Quit: nine foot long outhouse ladle]
kgrz has quit [Remote host closed the connection]
kgrz has joined #ruby-lang
<Phrogz> xtruder: You mean that you want the first n items?
<xtruder> yes
loincloth has quit [Remote host closed the connection]
kgrz has quit [Remote host closed the connection]
nertzy has quit [Quit: This computer has gone to sleep]
kgrz has joined #ruby-lang
kgrz has quit [Remote host closed the connection]
marr has quit [Ping timeout: 268 seconds]
omosoj has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
tbuehlmann has quit [Remote host closed the connection]
<havenwood> xtruder: rss.items.first(n).each do |item|
<havenwood> xtruder: or take(n)
michaeldeol has quit [Read error: Connection reset by peer]
ender|dkm has quit [Ping timeout: 264 seconds]
bsvineeth has quit [Remote host closed the connection]
henrikhodne has joined #ruby-lang
michaeldeol has joined #ruby-lang
io_syl has quit []
<xtruder> thanks! btw, are these the only docs regarding this scraper http://www.ruby-doc.org/stdlib-1.9.3/libdoc/rss/rdoc/RSS.html? cant really make much of it
elico has joined #ruby-lang
palar_ has joined #ruby-lang
palar has quit [Ping timeout: 252 seconds]
mahlon has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mahlon has quit [Client Quit]
michaeldeol has joined #ruby-lang
mahlon has joined #ruby-lang
AKASkip has joined #ruby-lang
loincloth has joined #ruby-lang
kwd has joined #ruby-lang
seamon has quit [Quit: Zzzzzzz]
Lewix has quit [Remote host closed the connection]
kwd has quit [Read error: Connection reset by peer]
kwd_ has joined #ruby-lang
<|jemc|> headius: did this ever go anywhere? https://www.ruby-forum.com/topic/207420
<headius> no...I wasn't convincing
<headius> I think it would still be useful though
workmad3 has joined #ruby-lang
<|jemc|> looks like the conversation got bogged down in looking at other memoization patterns instead of realizing that was just one example use case for a thunk_method
<headius> it kinda got bogged down in discussions about general-purpose memoization
<|jemc|> heh
<|jemc|> yep
<headius> I just wanted something that was a method pointing at a value with no method overhead
<|jemc|> yep - with memoization as just one use case
<|jemc|> looks like rubinius has it
<|jemc|> as one of the "extra" methods provided beyond the MRI methods
seamon has joined #ruby-lang
<headius> I think Evan added it back when we were having the discussion
<headius> what is it called in Rubinius?
<headius> it's obviously a trivial thing to add to any impl, so it's mostly just about justifying its existence
<|jemc|> Module#thunk_method - just as you suggested
<|jemc|> I was trying to figure out what it was doing and found your proposal in the process :)
<headius> ahh cool
<headius> probably could do it as a gem that basically uses attr_reader and a hidden class-level instance var, or something
x0f has quit [Ping timeout: 240 seconds]
palar_ has quit []
x0f has joined #ruby-lang
pabloh has quit [Ping timeout: 260 seconds]
<headius> |jemc|: feel free to bump the issue and see if there's interest now
xsdg has quit [Quit: leaving]
<|jemc|> heh. I think I've already lost my faith in community involvement in the ruby-lang design process :P
<|jemc|> out of curiosity - is jruby (like rubinius) also in the habit of providing extra exposed methods like that?
Lewix has joined #ruby-lang
yfeldblum has joined #ruby-lang
ianmcshane has joined #ruby-lang
<headius> ruby-lang process works fine...but it requires a lot of participation
<headius> and no, we generally try to avoid exposing jruby-specific stuff unless absolutely necessary
bsvineeth has joined #ruby-lang
<headius> the Java integration subsystem, for example
[spoiler] has joined #ruby-lang
<headius> we will occasionally throw nonstandard features in when discussing them in a feature request, so there's a way for people to play with it
bsvineeth has quit [Remote host closed the connection]
migbar_ has quit [Remote host closed the connection]
migbar has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
momomomomo has joined #ruby-lang
yatish27 has joined #ruby-lang
jgpawletko is now known as jgpawletko_away
yatish27 has quit [Ping timeout: 255 seconds]
cmhobbs has quit [Quit: Leaving]
wallerdev has quit [Quit: wallerdev]
<bougyman> how can I get a string that contains a non-utf character?
migbar has quit [Ping timeout: 255 seconds]
<manveru> bougyman: "\udfff"
kgrz has joined #ruby-lang
ianmcshane has quit [Remote host closed the connection]
ianmcshane has joined #ruby-lang
<headius> non-UTF would be with \x
<bougyman> trying to get something to throw an error about non-UTF8
<bougyman> i've tried a bunch of \x stuff
ender|dkm has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
arBmind has joined #ruby-lang
kgrz has quit [Ping timeout: 276 seconds]
skade has quit [Quit: Computer has gone to sleep.]
allomov has joined #ruby-lang
<headius> "\xff".force_encoding("UTF-8").encode("UTF-16")
<headius> Ruby will turn literal strings with non-US-ASCII bytes in them into ASCII-8BIT, so you might not get the error without force_encoding
ender|dkm has quit [Ping timeout: 264 seconds]
chouhoul_ has quit [Ping timeout: 260 seconds]
pabloh has joined #ruby-lang
chouhoulis has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 272 seconds]
yatish27 has joined #ruby-lang
bsvineeth has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
marr has joined #ruby-lang
yatish27_ has joined #ruby-lang
marr has quit [Read error: Connection reset by peer]
<yorickpeterse> matti: so youtube lost track of my watch history (guess 3k is too much) and of course I didn't bookmark stuff. I'm now literally using this to find my music back: find . -name '*ruby-lang*' | xargs grep -P 'yorickpeterse.+matti.+youtube'
<yorickpeterse> matti: so I guess IRC logs are now my bookmarks
yatish2__ has joined #ruby-lang
marr has joined #ruby-lang
yatish27 has quit [Ping timeout: 240 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yatish27_ has quit [Ping timeout: 240 seconds]
michaeldeol has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
michaeldeol has quit [Client Quit]
havenwood has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
kwd_ has quit [Quit: Sleeping now. ZZZzzz…]
havenwood has quit [Ping timeout: 264 seconds]
imkmf has joined #ruby-lang
benlovell has joined #ruby-lang
nertzy has joined #ruby-lang
amsi has quit [Ping timeout: 252 seconds]
enkristoffer has quit [Quit: ❤]
chouhoulis has quit [Remote host closed the connection]
nertzy has quit [Quit: This computer has gone to sleep]
ayonkhan has joined #ruby-lang
jbardin has quit [Quit: jbardin]
pabloh has quit [Quit: Saliendo]
chouhoulis has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
nertzy has joined #ruby-lang
chouhoulis has joined #ruby-lang
solars has joined #ruby-lang
emmesswhy has quit [Quit: This computer has gone to sleep]
<matti> yorickpeterse: Haha
<matti> yorickpeterse: Nice detective work
yatish2__ has quit [Ping timeout: 268 seconds]
michaeldeol has joined #ruby-lang
hellangel7 has quit [Read error: Connection reset by peer]
necro has quit [Ping timeout: 246 seconds]
migbar has joined #ruby-lang
skade has joined #ruby-lang
ianmcshane has quit [Read error: Connection reset by peer]
katmutua has joined #ruby-lang
nertzy has quit [Quit: This computer has gone to sleep]
jbardin has joined #ruby-lang
jkprg has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
kgrz has joined #ruby-lang
migbar has quit [Ping timeout: 240 seconds]
jkprg has quit [Remote host closed the connection]
jkprg has joined #ruby-lang
jgpawletko_away is now known as jgpawletko
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
wallerdev has joined #ruby-lang
momomomomo has joined #ruby-lang
kgrz has quit [Ping timeout: 260 seconds]
toastynerd has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
seamon has quit [Quit: Zzzzzzz]
ianmcshane has joined #ruby-lang
ender|dkm has joined #ruby-lang
jkprg has quit [Quit: jkprg]
rcvalle has joined #ruby-lang
relix_ has joined #ruby-lang
emmesswhy has joined #ruby-lang
relix has quit [Ping timeout: 245 seconds]
toastynerd has joined #ruby-lang
postmodern has joined #ruby-lang
ianmcshane has quit [Remote host closed the connection]
nertzy has joined #ruby-lang
ianmcshane has joined #ruby-lang
momomomomo_ has joined #ruby-lang
benlovell has quit [Ping timeout: 268 seconds]
momomomomo has quit [Ping timeout: 245 seconds]
momomomomo_ is now known as momomomomo
djbkd has quit [Read error: Connection reset by peer]
ianmcshane has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
ianmcshane has joined #ruby-lang
ianmcshane has quit [Remote host closed the connection]
ianmcshane has joined #ruby-lang
loincloth has joined #ruby-lang
_Kerber0s_ has joined #ruby-lang
ianmcshane has quit [Remote host closed the connection]
Kerber0s has quit [Ping timeout: 268 seconds]
ianmcshane has joined #ruby-lang
eddiezane_zzz is now known as eddiezane
toastynerd has quit [Remote host closed the connection]
gix has quit [Quit: Client exiting]
nertzy has quit [Quit: This computer has gone to sleep]
gix has joined #ruby-lang
toastynerd has joined #ruby-lang
heftig_ is now known as heftig
ianmcshane has quit [Remote host closed the connection]
ianmcshane has joined #ruby-lang
ianmcshane has quit [Read error: Connection reset by peer]
findchris has joined #ruby-lang
Muz_ is now known as Muz
mkaesz has quit [Remote host closed the connection]
amsi has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
katmutua has left #ruby-lang [#ruby-lang]
symm- has quit [Ping timeout: 240 seconds]
toastynerd has joined #ruby-lang
sharpmachine has quit [Remote host closed the connection]
relix_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
imkmf has quit [Quit: Textual IRC Client: www.textualapp.com]
ur5us has joined #ruby-lang
migbar has joined #ruby-lang
imkmf has joined #ruby-lang
kgrz has joined #ruby-lang
[spoiler] has quit [Quit: Leaving]
toastynerd has quit [Remote host closed the connection]
_Kerber0s_ has quit [Read error: Connection reset by peer]
kgrz has quit [Ping timeout: 255 seconds]
havenwood has joined #ruby-lang
migbar has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby-lang
sepp2k has quit [Quit: Konversation terminated!]
momomomomo has quit [Ping timeout: 260 seconds]
joelroa has quit [Ping timeout: 260 seconds]
eddiezane is now known as eddiezane_zzz
yatish27 has quit [Remote host closed the connection]
elico has quit [Quit: Leaving.]
yatish27 has joined #ruby-lang
joelroa has joined #ruby-lang
<hahuang65> is there a trick to getting the difference of letters in ruby?
<hahuang65> for example, something like "c" - "a" to yield 2, since it's 2 steps from a to c?
<hahuang65> can i convert the letters to some numeric value and subtract them?
<havenwood> hahuang65: depends on your rules for difference i guess
miqui has quit [Remote host closed the connection]
<drbrain> 'c'.ord - 'a'.ord
<hahuang65> ah nice
<hahuang65> perfect, thank you
emmesswhy has quit [Quit: This computer has gone to sleep]
Mon_Ouie has joined #ruby-lang
yatish27 has quit [Ping timeout: 246 seconds]
<havenwood> hahuang65: you can go the other way with #chr: ('c'.ord - 2).chr #=> "a"
<hahuang65> havenwood: oh good tip. appreciate it
ramblinpeck_ is now known as ramblinpeck
migbar has joined #ruby-lang
ramblinpeck is now known as ramblinpeck_
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ldnunes has quit [Quit: Leaving]
_ht has quit [Remote host closed the connection]
<havenwood> hahuang65: do you care about caps?
Kerber0s has joined #ruby-lang
<hahuang65> havenwood: nah, guaranteed all lowercase. Was trying to solve this: https://www.hackerrank.com/challenges/the-love-letter-mystery
Kerber0s has quit [Remote host closed the connection]
<havenwood> ooh, a mystery!
itsraining has quit [Quit: itsraining]
<hahuang65> havenwood: I came up with this if you'd like to critique:
<wallerdev> ooh a love letter
<wallerdev> how romantic
<hahuang65> basically I just go through the word, slice off the first and last letter, take the ordinate difference, absolute value it, and add it to steps.
ender|dkm has quit [Ping timeout: 264 seconds]
<hahuang65> cleanest way I could think of.
<wallerdev> id probably do that loop in 2 steps if you were concerned about clean lol
<wallerdev> not a fan of ! methods
emmesswhy has joined #ruby-lang
<hahuang65> wallerdev: why is taht
<wallerdev> because they modify things
<wallerdev> like if you had x = "hello world" and you passed it into your method that does this
<wallerdev> x has now changed
<wallerdev> which is usually unexpected
<hahuang65> wallerdev: that's the whole point of the loop right, so that I can keep slicing pieces off since the condition of the loop is based on the string
<hahuang65> wallerdev: I understand what you mean
<hahuang65> wallerdev: what were you suggesting in 2 parts?
<wallerdev> like tc[-1].ord - tc[0].ord; then next like tc = tc[1..-2] or something
<hahuang65> wallerdev: yeah but the tradeoff there is readability no?
<wallerdev> i think its more readable as two lines lol
<hahuang65> wallerdev: adding more indexes to code is hella confusing for me as someone coming in who hasn't thought about the code yet
<hahuang65> I would have no idea what [1..-2] meant in this context
<wallerdev> and whenever i see ! i have to think about things more, like is it modifying something thats used in other places, does it matter that it is being modified twice in that line, does it matter which part of the subtraction runs first
<hahuang65> where as slice(0) and slice(-1) means I'm taking the first and last letters always
<wallerdev> stuff like that
<hahuang65> right but when it's as isolated as this code, i'd prefer NOT to use additional indexes
<hahuang65> wallerdev: I'
nofxx__ has joined #ruby-lang
<wallerdev> haha go for it, doesnt matter much for a coding challenge
<hahuang65> never use ! in our production code ;)
<hahuang65> wallerdev: I've run into the exact thing you're talking about in our prod code. Immutability is very helpful in those cases.
<wallerdev> yeah i like how languages like C# make strings immutable
<hahuang65> wallerdev: been working with Scala and Elixir. It makes somethings much harder, but it's also nice because of the safety.
charliesome has quit [Quit: zzz]
imkmf has quit [Ping timeout: 264 seconds]
MichD is now known as michd
allomov has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
seamon has joined #ruby-lang
workmad3 has quit [Ping timeout: 246 seconds]
sharpmachine has joined #ruby-lang
CorrosiveOne has joined #ruby-lang
CorrosiveOne is now known as CorEnc55
CorEnc55 has left #ruby-lang [#ruby-lang]
necro has joined #ruby-lang
<necro> I am trying to install "Rspec" as I am doing a ruby tutorial and am getting this error message : you don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory. -- How do I access this directory, how do I change it's permissions?
<wallerdev> sudo gem install rspec
<wallerdev> probably
imkmf has joined #ruby-lang
tectonic has joined #ruby-lang
tectonic has quit [Max SendQ exceeded]
vintik has joined #ruby-lang
migbar has quit [Remote host closed the connection]
<necro> sorry wallerdev I
migbar has joined #ruby-lang
<necro> m not sure what you mean, new to this
imkmf_ has joined #ruby-lang
<|jemc|> necro: your gems are installed in a directory that requires root permissions to write to
imkmf has quit [Read error: Connection reset by peer]
<|jemc|> necro: sudo is a terminal command that allows you to execute the following command with escalated permissions
<necro> oh thank you so much!
<necro> I really appreciate that. I got another sugegstion that solved the issue...much appreciated
loincloth has quit [Remote host closed the connection]
blowmage has quit [Ping timeout: 245 seconds]
sepp2k has joined #ruby-lang
charliesome has quit [Quit: zzz]
sarkyniin has quit [Quit: Quitte]
migbar has quit [Ping timeout: 252 seconds]
imkmf_ has quit [Ping timeout: 272 seconds]
AKASkip has quit [Ping timeout: 260 seconds]
blowmage has joined #ruby-lang
ayonkhan has quit [Quit: Lingo - http://www.lingoirc.com]
<hahuang65> necro: I would suggest NOT using system Ruby. You should take a look at http://rvm.io or https://github.com/sstephenson/rbenv
<necro> oh ok thank you
solars has quit [Ping timeout: 268 seconds]
<hahuang65> necro: but if you're just learning it might be better to look at it later, since it might just pile on more stuff to learn.
<necro> is system ruby the default ruby on my comp?
jamo_ is now known as Jamo
<necro> oh actually I did install rvm
<necro> the other day, as someone recommended I do...
<necro> Ok I downloaded rspec but this warning appeared: WARNING: You don't have /Users/dianatourjee/.gem/ruby/2.0.0/bin in your PATH, gem executables will not run.
nertzy has joined #ruby-lang
earthquake has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
<bougyman> necro: rvm current
<necro> is that a command ?
yfeldblum has quit [Ping timeout: 272 seconds]
<havenwood> hahuang65: here's an alternate take, just for fun: https://gist.github.com/havenwood/3ded5df2852aa48adeea
<bougyman> necro: yes
<necro> alright I put that in but nothing happened
<necro> same error is popping up for rspec
<postmodern> there is nothing wrong with system ruby
<necro> ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
<hahuang65> havenwood: hey, nice. That works well.
<necro> i also tried"gem install --user-install rspec" which downlaoded some gems but also retuned this error: WARNING: You don't have /Users/bbb/.gem/ruby/2.0.0/bin in your PATH, gem executables will not run.
<jhass> why don't you just add the mentioned directory to your PATH?
<hahuang65> postmodern: nothign wrong with system ruby. Agree. Just an organizational preference.
<necro> I'm not sure how to do that
ender|dkm has joined #ruby-lang
<jhass> google
<hahuang65> necro: what tutorial are you using?
<hahuang65> necro: might I suggest Michael Hartl's tutorial? Walks you through everything, including installing Ruby and getting gems and tests set up.
<necro> Test First Ruby
<necro> oh, thank you I will check it out
nathanstitt has joined #ruby-lang
<hahuang65> necro: even if you don't use it, this section will help you with what you're dealing with now: https://www.railstutorial.org/book/beginning#sec-up_and_running
<necro> thank you!
<necro> great...
<necro> I will look now - I just added the directory to the path but then it said it's not a directory so I can't
<jhass> what exactly did you do
<jhass> what command did you run
<jhass> be descriptive and exact
<necro> sudo nano /etc/paths
<necro> prompted me for password
<necro> then I added the file at the bottom of the page, as I read to do on google, and it responded that it was unable as /Users/bbb/.gem/ruby/2.0.0/bin was not a directory
sharpmachine has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
imkmf has joined #ruby-lang
Lewix has quit [Read error: Connection reset by peer]
sharpmachine has joined #ruby-lang
Lewix has joined #ruby-lang
nertzy has quit [Ping timeout: 255 seconds]
earthquake has quit [Quit: earthquake]
nertzy has joined #ruby-lang
<hahuang65> necro: that's not what you want to do
<necro> ...oh
nertzy has quit [Ping timeout: 255 seconds]
<necro> well thank you all for oyur help, I have to go now - I appreciate it very much.
amerine has quit [Ping timeout: 276 seconds]
amerine_ has joined #ruby-lang
necro has quit [Ping timeout: 246 seconds]
earthquake has joined #ruby-lang
yatish27 has joined #ruby-lang
sharpmachine has quit [Remote host closed the connection]
sharpmachine has joined #ruby-lang
seamon has quit [Quit: Zzzzzzz]
seamon has joined #ruby-lang
Guest10538 has quit [Changing host]
Guest10538 has joined #ruby-lang
vintik has quit [Remote host closed the connection]
Lewix has quit [Read error: Connection reset by peer]
Guest10538 is now known as skarn
Lewix has joined #ruby-lang
Sgeo has joined #ruby-lang
imkmf_ has joined #ruby-lang
vintik has joined #ruby-lang
charliesome has joined #ruby-lang
mikecmpbll has quit [Quit: i've nodded off.]
toastynerd has joined #ruby-lang
imkmf has quit [Ping timeout: 246 seconds]
djbkd has quit [Remote host closed the connection]
benlovell has joined #ruby-lang
imkmf_ is now known as imkmf
djbkd has joined #ruby-lang
skade has quit [Read error: Connection reset by peer]
skade_ has joined #ruby-lang
benlovell has quit [Ping timeout: 252 seconds]
jdecuirm has joined #ruby-lang
<jdecuirm> Hi all! good afternoon
<jdecuirm> I need someone to explain a fragment of the book beginning ruby, maybe i'm not getting it right!
<jdecuirm> i will appreciate it a lot!
elico has joined #ruby-lang
<jdecuirm> I am working with blocks, and the fragment is "Many elements of syntax are not objects, nor are code blocks in their literal form.)
Kerber0s has joined #ruby-lang
jdecuirm has quit [Client Quit]
<havenwood> jdecuirm: syntax like `if` and `=` aren't Objects, e.g., you can't ask them: if.is_a?(Object)
jdecuirm has joined #ruby-lang
<havenwood> >> 1.is_a? Object
<eval-in____> havenwood => true (https://eval.in/188003)
jdecuirm has quit [Client Quit]
jdecuirm has joined #ruby-lang
jdecuirm has quit [Client Quit]
jdecuirm_ has joined #ruby-lang
seamon has quit [Quit: Zzzzzzz]
sMecKs has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
jdecuirm_ has quit [Client Quit]
jdecuirm has joined #ruby-lang
amsi has quit [Read error: Connection reset by peer]
amsi has joined #ruby-lang
yfeldblu_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
karamazov has joined #ruby-lang
Kerber0s has quit [Read error: Connection reset by peer]
kavinder has joined #ruby-lang
Mellett68_ has quit [Remote host closed the connection]
Mellett68 has joined #ruby-lang
Kerber0s has joined #ruby-lang
jo__ has quit [Quit: Connection closed for inactivity]
earthquake has quit [Quit: earthquake]
seamon has joined #ruby-lang
imkmf_ has joined #ruby-lang
imkmf has quit [Ping timeout: 276 seconds]
|jemc| has quit [Ping timeout: 252 seconds]
skade_ has quit [Quit: Computer has gone to sleep.]
kavinder has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 268 seconds]
seamon has quit [Quit: Zzzzzzz]
marr has quit []
seamon has joined #ruby-lang
seamon has quit [Client Quit]
seamon has joined #ruby-lang