apeiros changed the topic of #ruby to: Ruby 2.1.5; 2.0.0-p598; 1.9.3-p551: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
MattB2 has joined #ruby
nkumari has joined #ruby
jonr22 has joined #ruby
reinaldob has quit [Ping timeout: 250 seconds]
benzrf|offline is now known as benzrf
nkumari has quit [Remote host closed the connection]
renderful has quit [Ping timeout: 258 seconds]
Spami has joined #ruby
thsig has joined #ruby
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
Joufflu has quit [Ping timeout: 258 seconds]
emmesswhy has joined #ruby
Joufflu has joined #ruby
Aswebb has quit [Remote host closed the connection]
jonr22 has quit [Ping timeout: 258 seconds]
n3phos has quit [Remote host closed the connection]
luriv_ has quit [Quit: Leaving]
thsig_ has joined #ruby
zorak8 has quit [Ping timeout: 245 seconds]
sailias has joined #ruby
josephndenton has quit [Ping timeout: 264 seconds]
thsig_ has quit [Remote host closed the connection]
jimms has quit [Remote host closed the connection]
thsig_ has joined #ruby
nkumari has joined #ruby
thsig has quit [Ping timeout: 272 seconds]
SHyx0rmZ has joined #ruby
karmatr0n has quit [Remote host closed the connection]
valeriansaliou has quit [Quit: Be back later ...]
thsig_ has quit [Ping timeout: 255 seconds]
timmmaaaayyy has joined #ruby
Joe_knock has left #ruby ["Leaving"]
charlenopires has quit [Ping timeout: 240 seconds]
ghr has joined #ruby
arescorpio has joined #ruby
x1337807x has joined #ruby
hmsimha has joined #ruby
Guest19435 has quit [Quit: Lost terminal]
<timmmaaaayyy> i'm trying to convert a URL from https://s3.amazonaws.com/bucket/blah/blah.jpg to s3://bucket/blah/blah.jpg. i'm initially retrieve the url from a databse, then covert to string, then use gsub.
<timmmaaaayyy> i'm doing s3url = image.to_s.gsub("https", "s3").gsub("s3.amazonaws.com", "") -- it puts brackets and quotes aroundt he result. why is this and how do i make it stop?
patteh has quit [Quit: leaving]
patteh has joined #ruby
charlenopires has joined #ruby
Channel6 has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
jnollette has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 255 seconds]
x1337807x has quit [Ping timeout: 240 seconds]
jnollette has joined #ruby
Wapitidou has joined #ruby
<waxjar> timmmaaaayyy: u = URI.parse(original_url); u.scheme = "s3"
<waxjar> require "uri" first, tho
sailias has quit [Quit: Leaving.]
<waxjar> you can do the same for the domain, just set it to ""
<timmmaaaayyy> ok let me give this a shot
jnollette has quit [Remote host closed the connection]
tus has joined #ruby
tokik has joined #ruby
jnollette has joined #ruby
<timmmaaaayyy> s3url = URI.parse(image); s3url.scheme = "s3" is just erroring out for me
thsig has joined #ruby
marr has quit [Ping timeout: 265 seconds]
<waxjar> did you require uri?
<timmmaaaayyy> yes
<timmmaaaayyy> /usr/lib/ruby/1.9.1/uri/common.rb:176:in `split': bad URI(is not URI?): ["https://s3.amazonaws.com/cmfusion-devenv/uploads/1412782836220-jz1p0hog544mquxr-1615a5f1d06433fc53d1f31ebbc9881c/Screen Shot 2014-10-01 at 7.30.52 PM.png"] (URI::InvalidURIError)
jnollette has quit [Remote host closed the connection]
<timmmaaaayyy> probably becuase of the spaces in the URI?
jottr has joined #ruby
jnollette has joined #ruby
<Wapitidou> What about wrapping the uri with URI.encode ?
nkumari has quit [Remote host closed the connection]
oo_ has joined #ruby
<waxjar> ah yeah, probably want to escape it first yeah
nkumari has joined #ruby
oo_ has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 244 seconds]
karmatr0n has joined #ruby
sailias has joined #ruby
ekinmur has quit [Quit: no longer available]
oo_ has joined #ruby
karmatr0n has quit [Remote host closed the connection]
xymbol_ has joined #ruby
davasaur_ has quit [Remote host closed the connection]
xymbol_ has quit [Client Quit]
xymbol_ has joined #ruby
saclark has joined #ruby
xymbol_ has quit [Client Quit]
xymbol_ has joined #ruby
moritzs has quit [Ping timeout: 272 seconds]
lucyinthesky has joined #ruby
xymbol_ has quit [Read error: No route to host]
startupality_ has quit [Quit: startupality_]
startupality has joined #ruby
sevenseacat has joined #ruby
deavid has quit [Ping timeout: 265 seconds]
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
lucyinthesky has left #ruby ["Leaving"]
sski has quit [Remote host closed the connection]
sski has joined #ruby
klmlfl_ has joined #ruby
fgo_ has joined #ruby
klmlfl has quit [Read error: Connection reset by peer]
bogeyd6 has quit [Read error: Connection reset by peer]
bottomlessrefuse has joined #ruby
timonv_ has joined #ruby
Tab has joined #ruby
goshdarnyou has joined #ruby
Tab is now known as Guest55881
sski has quit [Ping timeout: 244 seconds]
rylev has quit [Remote host closed the connection]
charlenopires has quit [Quit: Be back later ...]
aspires has joined #ruby
zorak8 has joined #ruby
timonv_ has quit [Ping timeout: 272 seconds]
blackie has joined #ruby
devoldmx has quit [Remote host closed the connection]
mkaesz has joined #ruby
startupality has quit [Quit: startupality]
tkuchiki has joined #ruby
aspires has quit [Client Quit]
JBreit has joined #ruby
atomical has joined #ruby
thsig has quit [Remote host closed the connection]
bottomlessrefuse has quit [Remote host closed the connection]
mkaesz has quit [Ping timeout: 264 seconds]
blackie has quit [Quit: irc2go]
thsig has joined #ruby
Guest55881 has quit [Read error: Connection reset by peer]
thsig has quit [Ping timeout: 244 seconds]
robustus|Off has quit [Ping timeout: 255 seconds]
ghr has joined #ruby
bobdobbs` has quit [Read error: Connection reset by peer]
charlenopires has joined #ruby
bobdobbs` has joined #ruby
robustus|Off has joined #ruby
robustus|Off is now known as robustus
sski has joined #ruby
Dopagod has quit [Remote host closed the connection]
chu has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
ghr has quit [Ping timeout: 255 seconds]
Arnie25 has joined #ruby
eind has quit [Remote host closed the connection]
adriancb has joined #ruby
karmatr0n has joined #ruby
bottomlessrefuse has joined #ruby
parabolize has joined #ruby
Avahey has joined #ruby
thsig has joined #ruby
chu has joined #ruby
atomical has quit [Ping timeout: 258 seconds]
sski has quit [Remote host closed the connection]
sski has joined #ruby
bottomlessrefuse has quit [Remote host closed the connection]
davasaurous has joined #ruby
atomical has joined #ruby
bottomlessrefuse has joined #ruby
hmsimha has quit [Ping timeout: 255 seconds]
<klmlfl_> hey all
avrc has joined #ruby
sski has quit [Ping timeout: 255 seconds]
jimbach has joined #ruby
bottomlessrefuse has quit [Ping timeout: 272 seconds]
x1337807x has joined #ruby
escapement has joined #ruby
Akagi201 has joined #ruby
Blizzy has quit [Ping timeout: 240 seconds]
VBlizzard has quit [Ping timeout: 240 seconds]
Takle has quit [Remote host closed the connection]
jimbach has quit [Remote host closed the connection]
MattB2 has quit [Remote host closed the connection]
jonr22 has joined #ruby
_aeris_ has quit [Ping timeout: 250 seconds]
mbrumbelow has joined #ruby
x1337807x has quit [Ping timeout: 264 seconds]
_aeris_ has joined #ruby
jonr2219 has joined #ruby
razieliyo_ has quit [Quit: Saliendo]
charlenopires has quit [Quit: Lingo: www.lingoirc.com]
VBlizzard has joined #ruby
Blizzy has joined #ruby
ekinmur has joined #ruby
Tranquility has quit [Quit: Connection closed for inactivity]
eind has joined #ruby
jonr2219 has quit [Ping timeout: 265 seconds]
havenwood has joined #ruby
jonr22 has quit [Remote host closed the connection]
snath has joined #ruby
Channel6 has quit [Remote host closed the connection]
ekinmur has quit [Ping timeout: 244 seconds]
deavid has joined #ruby
renderful has joined #ruby
bmichelsen has joined #ruby
Scripore has joined #ruby
jonr22 has joined #ruby
xymbol has joined #ruby
valeriansaliou has joined #ruby
VBlizzard has quit [Ping timeout: 244 seconds]
Blizzy has quit [Ping timeout: 244 seconds]
renderful has quit [Ping timeout: 255 seconds]
bottomlessrefuse has joined #ruby
MattB2 has joined #ruby
MattB2_ has joined #ruby
valeriansaliou has quit [Ping timeout: 255 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
MattB2 has quit [Ping timeout: 264 seconds]
rshetty has joined #ruby
rylev has joined #ruby
zorak8 has quit [Ping timeout: 264 seconds]
joast has joined #ruby
dseitz has joined #ruby
bottomlessrefuse has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
rylev has quit [Ping timeout: 272 seconds]
ghr has joined #ruby
Channel6 has joined #ruby
kl has quit [Ping timeout: 255 seconds]
spastorino has quit [Quit: Connection closed for inactivity]
jottr has joined #ruby
xymbol has quit [Quit: Be back later ...]
drawingthesun has joined #ruby
drawingthesun has quit [Read error: Connection reset by peer]
portiad has quit [Remote host closed the connection]
portiad has joined #ruby
portiad has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 272 seconds]
abuzze has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
st1gma2 has joined #ruby
matled- has joined #ruby
michael_mbp has joined #ruby
michael_mbp has quit [Excess Flood]
matled has quit [Read error: Connection reset by peer]
matled- is now known as matled
byprdct has joined #ruby
goshdarnyou has quit [Ping timeout: 265 seconds]
Romance has quit [Ping timeout: 265 seconds]
maZtah has quit [Ping timeout: 265 seconds]
alol has quit [Ping timeout: 265 seconds]
rshetty has quit [Remote host closed the connection]
robbyoconnor has quit [Excess Flood]
Shidash has quit [Ping timeout: 265 seconds]
robbyoconnor has joined #ruby
abuzze_ has quit [Ping timeout: 258 seconds]
Shidash has joined #ruby
KC9YDN has quit [Remote host closed the connection]
Romance has joined #ruby
goshdarnyou has joined #ruby
alol has joined #ruby
maZtah_ has joined #ruby
st1gma1 has quit [Ping timeout: 265 seconds]
cassianoleal has quit [Ping timeout: 265 seconds]
KC9YDN has joined #ruby
KC9YDN has quit [Client Quit]
segfalt has quit [Quit: Connection closed for inactivity]
nkumari has quit [Remote host closed the connection]
Pupeno_ has quit [Ping timeout: 256 seconds]
KC9YDN has joined #ruby
MattB2_ has quit [Ping timeout: 255 seconds]
MattB2 has joined #ruby
escapement has quit [Quit: Textual IRC Client: www.textualapp.com]
krz has joined #ruby
mary5030 has joined #ruby
ValicekB has quit [Ping timeout: 272 seconds]
MattB2 has quit [Remote host closed the connection]
mloveless has quit [Remote host closed the connection]
<klmlfl_> can someone help me understand why I can't access p.age
<sevenseacat> because you havent defined the age method on p
freerobby has joined #ruby
<sevenseacat> you probably want an attr_reader or attr_accessor
<havenwood> klmlfl_: the instance variable `@age` isn't accessible as a method from the outside yet
siervo has joined #ruby
bottomlessrefuse has joined #ruby
<siervo> hello
<havenwood> klmlfl_: aye, just below `class Person` add the line: attr_reader :age
bottomlessrefuse has quit [Remote host closed the connection]
<havenwood> klmlfl_: which would be like: def method age; @age end
xymbol has joined #ruby
<havenwood> klmlfl_: sorry, i mean: def age; @age end
<sevenseacat> def method? >_>
<havenwood> sevenseacat: mental lapse
<sevenseacat> :P
leitz has quit [Quit: Nappy time]
<havenwood> siervo: hi
<siervo> hey is it true that Python is easier to learn than ruby?
<havenwood> siervo: not for me
<siervo> I suck at math btw
<klmlfl_> thanks
<sevenseacat> it depends on the person. i had a horrible time trying to learn python.
thsig has quit [Ping timeout: 256 seconds]
thsig has joined #ruby
<klmlfl_> siervo: as a relatively newcomer to programming, i would say python and ruby are about the same.
<siervo> I don't want to be the greatest programmer ever I just want to do it for fun
portiad has joined #ruby
<klmlfl_> i like ruby a little bit better because i think the syntax is prettier.
<siervo> lolp
<sevenseacat> its true
<siervo> how is it prettier
jimbach has joined #ruby
<sevenseacat> though i do like python's significant whitespace
<chu> It's more "consistent", though I'm not sure that's the right word.
ValicekB has joined #ruby
<klmlfl_> siervo: you just have to use both of them to know what i mean.
arup_r has joined #ruby
<klmlfl_> siervo: why do you want to learn programming?
linojon has joined #ruby
<siervo> klm pretty is generally used by women ?
<havenwood> siervo: ?
<siervo> because I want to be a sysadmin
<klmlfl_> siervo: i'm not a woman?
<siervo> the term pretty
<siervo> I don't hear guys say that often is all
<mostlybadfly> wat
<klmlfl_> siervo: I'm gay?
<siervo> I want to be able to write scripts
<mostlybadfly> pretty is just a word, there isn't any gender or orientation related to it
<siervo> good for you then lol
<klmlfl_> siervo: use python.
<siervo> why
<havenwood> haha
<mostlybadfly> lol
wsmoak has quit [Quit: wsmoak]
<havenwood> siervo: i think Ruby's pretty
aspires has joined #ruby
brixen has joined #ruby
rshetty has joined #ruby
<siervo> I'll be back
<mostlybadfly> I think it's cute :)
sailias has quit [Quit: Leaving.]
siervo has quit [Remote host closed the connection]
<havenwood> siervo: the choice is partly an aesthetic one
x1337807x has joined #ruby
<havenwood> but nothing to do with the gender or sex of the programmer
<chu> klmlfl_: :)
timonv_ has joined #ruby
Takle has joined #ruby
drawingthesun has joined #ruby
jonr22 has quit [Remote host closed the connection]
drawingthesun has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
aspires has quit [Client Quit]
x1337807x has quit [Ping timeout: 240 seconds]
timonv_ has quit [Ping timeout: 258 seconds]
aspires has joined #ruby
Takle has quit [Ping timeout: 265 seconds]
ItSANgo has quit [Quit: Leaving...]
Channel6 has quit [Remote host closed the connection]
doodlehaus has joined #ruby
bottomlessrefuse has joined #ruby
adriancb has quit [Remote host closed the connection]
Channel6 has joined #ruby
echooo has joined #ruby
echooo1 has quit [Ping timeout: 240 seconds]
Kricir has joined #ruby
bottomlessrefuse has quit [Remote host closed the connection]
rshetty has quit [Remote host closed the connection]
hakunin has quit [Read error: Connection reset by peer]
nkumari has joined #ruby
abuzze has quit [Read error: Connection reset by peer]
jimbach has quit [Remote host closed the connection]
hakunin has joined #ruby
abuzze has joined #ruby
tyll_ has joined #ruby
adriancb has joined #ruby
adriancb has quit [Remote host closed the connection]
xcesariox has joined #ruby
jonr22 has quit [Remote host closed the connection]
tyll has quit [Ping timeout: 250 seconds]
nkumari has quit [Ping timeout: 258 seconds]
aspires has quit []
xcesariox has quit [Client Quit]
NoNMaDDeN has joined #ruby
konsolebox has quit [Ping timeout: 255 seconds]
bottomlessrefuse has joined #ruby
atomical has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chu has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
oleo__ has joined #ruby
ajaiswal has joined #ruby
adriancb has joined #ruby
oleo is now known as Guest38833
klmlfl_ has quit [Remote host closed the connection]
Guest38833 has quit [Ping timeout: 240 seconds]
Ankhers has joined #ruby
davasaurous has quit [Remote host closed the connection]
ghr has joined #ruby
airdeluxe has joined #ruby
ekinmur has joined #ruby
Megtastique has quit []
xenomorph is now known as {xenomorph}
airdeluxe has quit [Client Quit]
nkumari has joined #ruby
{xenomorph} is now known as xenomorph
linojon has quit [Quit: linojon]
Ankhers has quit [Ping timeout: 250 seconds]
konsolebox has joined #ruby
Kricir has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 264 seconds]
rshetty has joined #ruby
nkumari has quit [Remote host closed the connection]
davasaurous has joined #ruby
henesy has quit [Ping timeout: 258 seconds]
mkyurchev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bottomlessrefuse has quit [Remote host closed the connection]
arescorpio has quit [Excess Flood]
sevenseacat has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
sevenseacat has joined #ruby
freerobby has quit [Quit: Leaving.]
<Radar> How do people even learn to use the Elasticsearch gem's api?
<Radar> It feels totally opaque to me
davedev24_ has quit []
davedev24_ has joined #ruby
mbrumbelow has quit [Quit: mbrumbelow]
henesy has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
sevenseacat has quit [Client Quit]
radic has quit [Ping timeout: 256 seconds]
radic has joined #ruby
thsig has quit [Remote host closed the connection]
thsig has joined #ruby
x1337807x has joined #ruby
sevenseacat has joined #ruby
rshetty has quit [Remote host closed the connection]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
bottomlessrefuse has joined #ruby
davedev24_ has quit []
wallerdev has joined #ruby
Takle has joined #ruby
valeriansaliou has joined #ruby
fgo_ has quit [Ping timeout: 255 seconds]
wallerdev has quit [Client Quit]
thsig has quit [Ping timeout: 265 seconds]
x1337807x has quit [Ping timeout: 272 seconds]
mbrumbelow has joined #ruby
sailias has joined #ruby
Takle has quit [Ping timeout: 244 seconds]
bottomlessrefuse has quit [Remote host closed the connection]
valeriansaliou has quit [Ping timeout: 256 seconds]
mbrumbelow has quit [Client Quit]
kapil__ has joined #ruby
doodlehaus has quit [Remote host closed the connection]
ekinmur has quit [Remote host closed the connection]
fgo_ has joined #ruby
portiad has quit [Remote host closed the connection]
davasaurous has quit [Remote host closed the connection]
devoldmx33 has joined #ruby
rshetty has joined #ruby
tus has quit []
portiad has joined #ruby
bottomlessrefuse has joined #ruby
braincra- has quit [Quit: bye bye]
davasaurous has joined #ruby
jottr has joined #ruby
portiad has quit [Client Quit]
sevvie has joined #ruby
arup_r has quit [Quit: Leaving.]
klmlfl has joined #ruby
iamjarvo has joined #ruby
duncannz has joined #ruby
braincrash has joined #ruby
bottomlessrefuse has quit [Remote host closed the connection]
bottomlessrefuse has joined #ruby
jottr has quit [Ping timeout: 272 seconds]
JBreit has left #ruby ["Leaving"]
koderok has joined #ruby
koderok has quit [Client Quit]
bottomle_ has joined #ruby
bottomle_ has quit [Remote host closed the connection]
bottomle_ has joined #ruby
bottomle_ has quit [Remote host closed the connection]
mbrumbelow has joined #ruby
bottomlessrefuse has quit [Ping timeout: 256 seconds]
<pontiki> hi, all
<benzrf> Radar: i know a guy who made an api in haskel
<benzrf> :-3
ghr has joined #ruby
mbrumbelow has quit [Client Quit]
ekinmur has joined #ruby
dcarmich has joined #ruby
bmichelsen has quit [Quit: ZZZzzz…]
ghr has quit [Ping timeout: 264 seconds]
mikepack_ has quit [Remote host closed the connection]
rshetty has quit [Remote host closed the connection]
miyabe has quit [Remote host closed the connection]
NoNMaDDeN has quit [Remote host closed the connection]
dts|feasting is now known as dts
sailias has quit [Quit: Leaving.]
sdwrage has joined #ruby
Kricir has joined #ruby
oo_ has joined #ruby
devoldmx33 has quit [Ping timeout: 255 seconds]
oo_ has quit [Remote host closed the connection]
devoldmx has joined #ruby
oo_ has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
timonv_ has joined #ruby
luksaur has quit [Quit: Leaving]
mbrumbelow has joined #ruby
timonv_ has quit [Ping timeout: 250 seconds]
smoores has joined #ruby
mbrumbelow has quit [Client Quit]
obelich has joined #ruby
<obelich> hiyas
davasaurous has quit [Remote host closed the connection]
eind has quit [Remote host closed the connection]
galeido has quit [Ping timeout: 272 seconds]
rshetty has joined #ruby
x1337807x has joined #ruby
kyb3r_ has joined #ruby
klmlfl has quit [Remote host closed the connection]
anarang has joined #ruby
sdwrage has quit [Quit: Leaving]
x1337807x has quit [Ping timeout: 258 seconds]
davasaurous has joined #ruby
smoores has quit [Quit: Textual IRC Client: www.textualapp.com]
davasaurous has quit [Remote host closed the connection]
<obelich> hola buenas noches alguien por aca habla español ?
NoNMaDDeN has joined #ruby
giuseppesolinas has joined #ruby
weeb1e has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
weeb1e has joined #ruby
bracky has joined #ruby
<bracky> Anyone know how I could do something like this? http://pastie.org/pastes/9747922/text
<Radar> bracky: You want an array, not a hash.
mary5030 has quit [Remote host closed the connection]
davasaurous has joined #ruby
<bracky> You mean that hsh should be an array?
mary5030 has joined #ruby
<Radar> bracky: Look at my gist.
Spami has joined #ruby
MattB2 has joined #ruby
mary5030 has quit [Ping timeout: 258 seconds]
Morkel has joined #ruby
MattB2 has quit [Ping timeout: 264 seconds]
yeticry has quit [Ping timeout: 255 seconds]
yeticry has joined #ruby
Wapitidou has quit [Ping timeout: 258 seconds]
davasaurous has quit [Remote host closed the connection]
Soda has joined #ruby
crazydiamond has quit [Ping timeout: 265 seconds]
bmichelsen has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
ghr has joined #ruby
davasaurous has joined #ruby
buddy_tucker has joined #ruby
vyorkin has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo_ has joined #ruby
<obelich> some one here using angularjs + Rails ?
ghr has quit [Ping timeout: 250 seconds]
<sevenseacat> both of those topics are pretty off-topic here
<obelich> sevenseacat: :(
yeticry has quit [Ping timeout: 240 seconds]
<obelich> sevenseacat: some chanel you recomen to get some people can give some help ?
<sevenseacat> #rubyonrails or #angularjs? :)
duncannz has quit [Ping timeout: 258 seconds]
yeticry has joined #ruby
<Areessell> I'm sure google has the answer for any question you have about those since they are both wildly popular frameworks
<sevenseacat> thats too hard.
<Areessell> I don't see why alot of people are using Rails for hosting purely front-end style web apps
<Areessell> They could easily use Jekyll or Middleman
adriancb has quit [Remote host closed the connection]
<sevenseacat> mmmm not really, if it involves data
jonr22 has joined #ruby
<Areessell> Oh right.
<Areessell> All my "front-end" projects held data in the browser so I wasn't thinking about that. Never hooked one up to an actual database.
adriancb has joined #ruby
AlexRussia has quit [Quit: WeeChat 1.1-dev]
<sevenseacat> yeah for frontend stuff that just involves local storage or whatnot, rails is pointless
uber_hulk has joined #ruby
quazimodo has joined #ruby
<Areessell> I bit off alot for my current project =S Gotta abstract all my code into separate libraries. Easy to do, it's just such a pain renaming everything, opening every single file to double check everythings working.
saclark has quit [Quit: saclark]
jonr22 has quit [Ping timeout: 258 seconds]
adriancb has quit [Ping timeout: 264 seconds]
Takle has joined #ruby
ChoiKyuSang has quit [Quit: Going offline, see ya! (www.adiirc.com]
arup_r has joined #ruby
bluOxigen has joined #ruby
phutchins has quit [Ping timeout: 240 seconds]
timonv_ has joined #ruby
diegoviola has quit [Remote host closed the connection]
Lewix has joined #ruby
Lewix has joined #ruby
Lewix has quit [Changing host]
valeriansaliou has joined #ruby
Takle has quit [Ping timeout: 258 seconds]
Axy has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
snath has quit [Ping timeout: 245 seconds]
snath has joined #ruby
timonv_ has quit [Ping timeout: 250 seconds]
Scripore has quit [Ping timeout: 244 seconds]
valeriansaliou has quit [Ping timeout: 265 seconds]
bigmac has joined #ruby
Channel6 has quit [Quit: Leaving]
<bigmac> [a-z]{8}
<Areessell> No matches found.
<bigmac> would that find a string 8 chars long
<Areessell> Sure
<Areessell> I like to try things out on rubular
Photism has joined #ruby
<bigmac> i guess it works
<Areessell> Use /REGEXP_HERE/i for case insensitive matching or use [a-zA-Z]{8}
x1337807x has joined #ruby
<parabolize> string.[/\w{8}/] for short
<bigmac> i thought i was doing it wrond... here is 3what i did wrong
oo_ has joined #ruby
<parabolize> err.. string[/\w{8}/]
<Areessell> \w gets numbers and underscores as well
<bigmac> ["abc","lmno","qxyz"].include?(/[a-z]{4}/)
<bigmac> array
<Areessell> >> ["abc","lmno","qxyz"].any? { |n| n.length == 4 }
<eval-in__> Areessell => true (https://eval.in/227398)
<Areessell> Why use regexp and introduce needless overhead
<bigmac> my example is small, just for proof of concept
<Areessell> Better to learn good practice
<bigmac> any?
<bigmac> is like each
<bigmac> ?
x1337807x has quit [Ping timeout: 240 seconds]
<Areessell> It's an Enumerable method: http://www.rubydoc.info/stdlib/core/1.9.2/Enumerable
ndrei has joined #ruby
<Areessell> It's similar because it takes a block. `any?` checks if any of the objects in the Enumerable object returns true when the block is run. It uses the `each` method behind the scenes
ARCADIVS has joined #ruby
jottr has joined #ruby
<bigmac> a quick if expression
<bigmac> quicker
<Areessell> It's the same as going through each object with an `each` block, and `break`ing when an if expression returns true.
mbrumbelow has joined #ruby
ChoiKyuSang has joined #ruby
<bigmac> i see
Avahey has quit [Quit: Connection closed for inactivity]
<Areessell> You could use regular Ruby to do any of those methods in Enumerable, but it's just easier and usually faster to use them.
<Areessell> Makes life alot simplier when you work on large scale projects.
doodlehaus has joined #ruby
CrazyM4n has joined #ruby
<CrazyM4n> Whoever made Cinch for IRC bots was a genius
<CrazyM4n> I swear
jottr has quit [Ping timeout: 272 seconds]
davasaurous has quit [Ping timeout: 272 seconds]
benzrf is now known as benzrf|offline
<Areessell> Modularity in action
renderful has joined #ruby
renderful has quit [Read error: Connection reset by peer]
renderful has joined #ruby
<CrazyM4n> I was under the impression it wasn't working for like 3 hours
<CrazyM4n> Until I realized that by default commands were prefaced by !
<CrazyM4n> And it's been so smooth ever since
Joufflu has quit [Ping timeout: 258 seconds]
doodlehaus has quit [Ping timeout: 255 seconds]
Abhijit has joined #ruby
olivier_bK has joined #ruby
psy has quit [Remote host closed the connection]
konsolebox has quit [Remote host closed the connection]
Joufflu has joined #ruby
renderful has quit [Ping timeout: 258 seconds]
valeriansaliou has joined #ruby
rocknrollmarc has joined #ruby
psy has joined #ruby
psy has quit [Max SendQ exceeded]
psy has joined #ruby
mbrumbelow has quit [Quit: mbrumbelow]
kireevco has joined #ruby
valeriansaliou has quit [Client Quit]
mikepack has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
chabier has joined #ruby
Arnie25 has quit [Ping timeout: 256 seconds]
quazimodo has quit [Ping timeout: 255 seconds]
rshetty has quit [Remote host closed the connection]
olivier_bK has quit [Ping timeout: 258 seconds]
mikepack has quit [Ping timeout: 255 seconds]
quazimodo has joined #ruby
rocknrollmarc has quit [Ping timeout: 250 seconds]
ghr has joined #ruby
chabier has quit [Remote host closed the connection]
rshetty has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chabier has joined #ruby
ghr has quit [Ping timeout: 258 seconds]
byprdct has quit [Quit: by]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
abuzze has quit [Remote host closed the connection]
abuzze has joined #ruby
Jake232 has joined #ruby
nagaraj has joined #ruby
abuzze has quit [Ping timeout: 256 seconds]
_1_4671036271 has joined #ruby
lxsameer has joined #ruby
<_1_4671036271> m
<bigmac> my current buff.size=>39879165
<bigmac> this is 2.5 million usernames im trying to process
_1_4671036271 has quit [Remote host closed the connection]
<bigmac> this buffer would consume a bunch of ram? 39879165=>bytes
Soda has quit [Remote host closed the connection]
oleo__ has quit [Quit: Verlassend]
MattB2 has joined #ruby
<Areessell> What the hell if `buff`? Array? String?
<Areessell> If it's a String, then yeah if it's ASCII, I believe.
<bigmac> array
<bigmac> ["each_line"]
<bigmac> ["line1", "2", "3"]
<Areessell> Then absolutely not. The size in memory would be the sum all object's sizes in the Array
<Areessell> >> ["hello" ,"world"].collect(&:size).inject(&:+)
<eval-in__> Areessell => 10 (https://eval.in/227411)
ohaibbq has joined #ruby
Macaveli has joined #ruby
Lewix has quit [Remote host closed the connection]
MattB2 has quit [Ping timeout: 255 seconds]
<Areessell> If you are reading from a file, then you can just use readline to only have one line in memory at a time
<bigmac> well, im going to compare to files...
karmatr0n has quit [Remote host closed the connection]
<bigmac> the_hole_list.txt and names_already_processed.txt
<Areessell> Encode both files as SHA then compare those very small strings, rather than the very large strings both the file contents
marcdel has joined #ruby
<bigmac> this will cut the size down by how much?
<bigmac> 1 gig for example
devoldmx has quit [Remote host closed the connection]
<Areessell> If you use Digest::SHA2 and then by default it will always return a 256 bit string
VBlizzard has joined #ruby
Blizzy has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
JohnBat26 has joined #ruby
<bigmac> oh i see
speaking1ode has joined #ruby
Takle has joined #ruby
<Areessell> Of course, if you don't want to make it yourself, there's File.compare
<Areessell> Not sure how that works internally
marcdel_ has joined #ruby
marcdel has quit [Remote host closed the connection]
<Areessell> It reads it in chunks and compares the chunks, then if any chunk fails, it stops and returns false
speakingcode has quit [Ping timeout: 264 seconds]
airstream66 has joined #ruby
kireevco has quit [Quit: Leaving.]
<bigmac> also, how would you delete a entry from array
kireevco has joined #ruby
<Areessell> Delete. Can you start using Google please?
<bigmac> well, im trying to compare the 2 arrays
timonv_ has joined #ruby
Soda has joined #ruby
marcdel has joined #ruby
josephndenton has joined #ruby
airstream66 has quit [Remote host closed the connection]
<bigmac> sure, arr1+arr2.uniq
Takle has quit [Ping timeout: 250 seconds]
<sevenseacat> thats not comparing arrays
<Areessell> Thank you.
<bigmac> maybe my question was asked in the wrong manner
marcdel_ has quit [Ping timeout: 255 seconds]
mikecmpbll has quit [Quit: ciao.]
kyoshero has joined #ruby
<bigmac> array1.delete_if{|x| arry2.include?(x)}
n1lo has quit [Ping timeout: 240 seconds]
timonv_ has quit [Ping timeout: 255 seconds]
nrsk has joined #ruby
abuzze has joined #ruby
abuzze has quit [Remote host closed the connection]
jonr22 has joined #ruby
rshetty_ has joined #ruby
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
tvw has joined #ruby
rshetty has quit [Ping timeout: 255 seconds]
uber_hulk has quit [Ping timeout: 272 seconds]
jonr2219 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
rshetty_ has quit [Remote host closed the connection]
bal1 has joined #ruby
sevvie has quit [Quit: leaving]
charliesome has quit [Quit: zzz]
marcdel has quit [Ping timeout: 264 seconds]
marcdel has joined #ruby
jonr22 has quit [Remote host closed the connection]
jonr22 has joined #ruby
tobago has joined #ruby
jonr2219 has joined #ruby
havenwood has quit []
jonr22 has quit [Read error: Connection reset by peer]
Jake232 has quit [Quit: Textual IRC Client: www.textualapp.com]
n1lo has joined #ruby
jonr22 has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
kamilc__ has joined #ruby
chabier has quit [Remote host closed the connection]
andikr has joined #ruby
Macaveli has quit [Ping timeout: 264 seconds]
ARCADIVS has quit [Quit: ARCADIVS]
valeriansaliou has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
ghr has joined #ruby
jonr2219 has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
jonr22 has quit [Read error: Connection reset by peer]
clauswitt has joined #ruby
lkba has joined #ruby
WormDr1nk has quit [Ping timeout: 255 seconds]
buddy_tucker has quit [Quit: Konversation terminated!]
anaeem1_ has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
jonr22 has joined #ruby
jobewan has quit [Quit: Leaving]
jonr2219 has quit [Read error: Connection reset by peer]
valeriansaliou has quit [Read error: Connection reset by peer]
patrick99e99 has quit [Ping timeout: 245 seconds]
valeriansaliou has joined #ruby
lemur has quit [Remote host closed the connection]
lemur has joined #ruby
Joufflu has quit [Ping timeout: 265 seconds]
stoffus has joined #ruby
jonr22 has quit [Remote host closed the connection]
jonr22 has joined #ruby
Tranquility has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
valeriansaliou has quit [Ping timeout: 272 seconds]
anaeem1_ has joined #ruby
lemur has quit [Ping timeout: 258 seconds]
codecop has joined #ruby
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby
josephndenton has quit [Ping timeout: 256 seconds]
yokel has quit [Ping timeout: 240 seconds]
NoNMaDDeN has quit [Ping timeout: 264 seconds]
Macaveli has joined #ruby
jonr2219 has quit [Remote host closed the connection]
NoNMaDDeN has joined #ruby
jonr22 has joined #ruby
fxn has joined #ruby
mloveless has joined #ruby
echooo1 has joined #ruby
kireevco has quit [Read error: Connection reset by peer]
echooo has quit [Ping timeout: 244 seconds]
kireevco has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
jonr2219 has joined #ruby
jonr2219 has quit [Remote host closed the connection]
jottr has joined #ruby
jonr22 has joined #ruby
fabrice31 has joined #ruby
kamilc__ has quit [Remote host closed the connection]
CpuID has quit [Ping timeout: 265 seconds]
NoNMaDDeN has quit [Ping timeout: 265 seconds]
jottr has quit [Ping timeout: 240 seconds]
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
jaequery has joined #ruby
aganov has joined #ruby
shortCircuit__ has joined #ruby
michael_mbp has quit [Excess Flood]
amystephen has quit [Quit: amystephen]
timonv_ has joined #ruby
yokel has joined #ruby
michael_mbp has joined #ruby
shortCircuit__ is now known as friedAy
jonr22 has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
uber_hulk has joined #ruby
NoNMaDDeN has joined #ruby
jottr has joined #ruby
kuda has joined #ruby
timonv_ has quit [Remote host closed the connection]
Xiti has quit [Quit: Xiti]
Xiti has joined #ruby
x1337807x has joined #ruby
WormDr1nk has joined #ruby
ringarin has joined #ruby
jonr22 has quit [Remote host closed the connection]
ringaring has joined #ruby
jonr22 has joined #ruby
doodlehaus has joined #ruby
kireevco has left #ruby [#ruby]
SOLDIERz_ has joined #ruby
ringarin has quit [Read error: Connection reset by peer]
x1337807x has quit [Ping timeout: 250 seconds]
shredding has joined #ruby
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonr22 has quit [Remote host closed the connection]
jonr22 has joined #ruby
Aswebb has joined #ruby
charliesome has joined #ruby
jonr2219 has joined #ruby
jonr22 has quit [Remote host closed the connection]
doodlehaus has quit [Ping timeout: 244 seconds]
Cache_Money has joined #ruby
mkaesz has joined #ruby
lampd1 has joined #ruby
JCii8_ has quit [Ping timeout: 240 seconds]
Xiti has quit [Quit: Xiti]
bmichelsen has quit [Quit: ZZZzzz…]
Xiti has joined #ruby
<epitron> bigmac: that can be done simpler than delete_if; try "array1 - array2"
ht__th has joined #ruby
jonr22 has joined #ruby
ohaibbq has quit [Quit: Leaving...]
jonr2219 has quit [Read error: Connection reset by peer]
terlar has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
kuda has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonr2219 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
<epitron> if you don't care about order or having duplicates, you can convert the arrays to Set objects, and then you can do even more fun stuff, like intersection (&), union (|), exclusive or (^)
jonr22 has quit [Read error: Connection reset by peer]
kuda has joined #ruby
jonr22 has joined #ruby
gaussblurinc1 has joined #ruby
einarj has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Senjai has quit [Ping timeout: 240 seconds]
jonr2219 has joined #ruby
last_staff has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
ghr has joined #ruby
despai has joined #ruby
noop has joined #ruby
kuda has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider_> you can do all of that with just arrays, not just sets
marr has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
rdark has joined #ruby
Senjai has joined #ruby
ghr has quit [Ping timeout: 265 seconds]
CrazyM4n has quit [Quit: leaving]
tyll_ is now known as tyll
jonr22 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
rshetty has joined #ruby
Xeago has joined #ruby
kuda has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
bal1 has quit [Ping timeout: 240 seconds]
dalai has joined #ruby
livathinos has joined #ruby
jonr2219 has joined #ruby
jonr22 has quit [Remote host closed the connection]
Xeago_ has joined #ruby
arup_r has quit [Remote host closed the connection]
jonr22 has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
Senjai has quit [Ping timeout: 240 seconds]
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
razieliyo has joined #ruby
razieliyo has quit [Changing host]
razieliyo has joined #ruby
Xeago has quit [Ping timeout: 245 seconds]
alex88 has joined #ruby
razieliyo has quit [Remote host closed the connection]
Senjai has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
ht__th has quit [Ping timeout: 256 seconds]
iwishiwerearobot has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
Pupeno has joined #ruby
Takle has joined #ruby
sea_local has quit [Remote host closed the connection]
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
tvw has quit [Ping timeout: 240 seconds]
lessless has joined #ruby
jonr2219 has quit [Remote host closed the connection]
bmichelsen has joined #ruby
jonr22 has joined #ruby
iwishiwerearobot has quit [Ping timeout: 240 seconds]
dts has quit [Read error: Connection reset by peer]
<friedAy> hi
Takle has quit [Ping timeout: 250 seconds]
jonr22 has quit [Read error: Connection reset by peer]
dts has joined #ruby
jonr22 has joined #ruby
obelich has quit [Quit: Page closed]
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
greenbagels has quit [Ping timeout: 272 seconds]
greenbagels has joined #ruby
msgodf has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
kwd has joined #ruby
Alina-malina has joined #ruby
arup_r has joined #ruby
timonv_ has joined #ruby
arup_r has quit [Remote host closed the connection]
marcdel has quit []
last_staff has quit [Ping timeout: 265 seconds]
jonr22 has quit [Remote host closed the connection]
jonr22 has joined #ruby
olivier_bK has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
<gregf_> haha, fried on a day, black friday. far too many freakin' combinations :/
arup_r has joined #ruby
timonv_ has quit [Remote host closed the connection]
bigkevmcd has quit [Read error: Connection reset by peer]
Advocation has joined #ruby
jonr22 has quit [Remote host closed the connection]
abuzze has joined #ruby
Takle_ has joined #ruby
rocknrollmarc has joined #ruby
jonr22 has joined #ruby
memph1s has joined #ruby
abuzze_ has joined #ruby
Takle_ has quit [Read error: No route to host]
Takle_ has joined #ruby
parabolize has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
samuel02 has joined #ruby
livathin_ has joined #ruby
eind has joined #ruby
abuzze has quit [Ping timeout: 264 seconds]
timonv_ has joined #ruby
livathinos has quit [Ping timeout: 245 seconds]
jonr22 has quit [Read error: Connection reset by peer]
nobodyzzz has joined #ruby
jonr22 has joined #ruby
timonv_ has quit [Remote host closed the connection]
jenrzzz has joined #ruby
ht__th has joined #ruby
timonv_ has joined #ruby
jheg has joined #ruby
bigkevmcd has joined #ruby
joonty has joined #ruby
timonv_ has quit [Remote host closed the connection]
boombadaroomba has joined #ruby
sevenseacat has quit [Quit: Leaving.]
nobodyzzz has quit [Client Quit]
jonr22 has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
jonr22 has joined #ruby
dumdedum has joined #ruby
dumdedum has quit [Read error: Connection reset by peer]
startupality has joined #ruby
razieliyo has joined #ruby
razieliyo has joined #ruby
razieliyo has quit [Read error: Connection reset by peer]
ghr has joined #ruby
dumdedum has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
kuda has quit [Quit: Textual IRC Client: www.textualapp.com]
timonv_ has joined #ruby
jonr2219 has joined #ruby
rylev has joined #ruby
dumdedum has quit [Read error: Connection reset by peer]
boombadaroomba has quit [Ping timeout: 265 seconds]
dumdedum has joined #ruby
Takle_ has quit [Read error: Connection reset by peer]
skroon has quit [Quit: leaving]
Takle has joined #ruby
charliesome has quit [Ping timeout: 240 seconds]
marr has quit [Ping timeout: 264 seconds]
DaniG2k has joined #ruby
sinanislekdemir has joined #ruby
charliesome has joined #ruby
MattB2 has joined #ruby
rshetty has quit [Remote host closed the connection]
kl has joined #ruby
rylev has quit []
RitterJack has joined #ruby
ringaring has quit [Read error: Connection reset by peer]
samuel02 has quit [Remote host closed the connection]
dumdedum has quit [Read error: Connection reset by peer]
Spami has joined #ruby
Advocation has quit [Quit: Advocation]
bigkevmcd has quit [Ping timeout: 265 seconds]
dumdedum has joined #ruby
Spami has quit [Client Quit]
elaptics`away is now known as elaptics
kl has quit [Ping timeout: 240 seconds]
Spami has joined #ruby
jonr2219 has quit [Remote host closed the connection]
Areessell has quit [Ping timeout: 264 seconds]
jonr22 has joined #ruby
livathin_ has quit [Remote host closed the connection]
Advocation has joined #ruby
ikaros has joined #ruby
tgandrews_ has joined #ruby
jottr has quit [Read error: Connection reset by peer]
dumdedum has quit [Read error: Connection reset by peer]
jonr22 has quit [Read error: Connection reset by peer]
jottr has joined #ruby
jonr22 has joined #ruby
memph1s has quit [Quit: I couldn't come up with quit message :(]
oo_ has quit [Remote host closed the connection]
Areessell has joined #ruby
tgandrews_ has quit [Client Quit]
rshetty has joined #ruby
tgandrews_ has joined #ruby
Advocation has quit [Client Quit]
rshetty has quit [Remote host closed the connection]
lemur has joined #ruby
jonr22 has quit [Ping timeout: 240 seconds]
tgandrews_ has quit [Client Quit]
Takle has quit [Remote host closed the connection]
ItSANgo has joined #ruby
bayed has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
Macaveli has joined #ruby
ringarin has joined #ruby
WormDr1nk has quit [Ping timeout: 256 seconds]
iwishiwerearobot has joined #ruby
oo_ has joined #ruby
startupality has quit [Quit: startupality]
lolmaus has joined #ruby
Aswebb has quit []
startupality has joined #ruby
bigkevmcd has joined #ruby
tgandrews has joined #ruby
sk87 has joined #ruby
rkalfane has joined #ruby
samuel02 has joined #ruby
raja has joined #ruby
ayaz has joined #ruby
MattB2 has quit []
Spami has quit [Quit: This computer has gone to sleep]
dumdedum has joined #ruby
nfk has joined #ruby
charliesome_ has joined #ruby
decoponio has joined #ruby
livathinos has joined #ruby
greenbagels_ has joined #ruby
Advocation has joined #ruby
charliesome_ has quit [Read error: Connection reset by peer]
charliesome has quit [Ping timeout: 245 seconds]
charliesome has joined #ruby
mikecmpbll has joined #ruby
<mikecmpbll> ruby array splat behaviour seems inconsistent to me.
<mikecmpbll> >> a,b = *[1,2]
<eval-in__> mikecmpbll => [1, 2] (https://eval.in/227525)
samuel02 has quit [Remote host closed the connection]
<mikecmpbll> >> a,b = *[1,2]; puts a; puts b
<eval-in__> mikecmpbll => 1 ... (https://eval.in/227526)
<mikecmpbll> >> a= *[1]; puts a
<eval-in__> mikecmpbll => 1 ... (https://eval.in/227527)
<mikecmpbll> >> a,b = *[1,2]; puts a.inspect
<eval-in__> mikecmpbll => 1 ... (https://eval.in/227528)
greenbagels has quit [Ping timeout: 256 seconds]
<mikecmpbll> >> a = *[1]; puts a.inspect
<eval-in__> mikecmpbll => [1] ... (https://eval.in/227529)
<mikecmpbll> got there in the end.
dangerousdave has joined #ruby
moritzs has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
<mikecmpbll> imho it'd be more consistent in behaviour if a = *[1] resulted in a being 1
<apeiros_> no
<mikecmpbll> the conditions are the same, same number of variables as array elements.
<mikecmpbll> so why doens't it behave the same?
<apeiros_> a,*
<apeiros_> a,* = …
<mikecmpbll> this syntax is a new one on me, let me play around.
charliesome has joined #ruby
bigkevmcd has quit [Ping timeout: 255 seconds]
<mikecmpbll> still don't really see why it's necessary but i'll be placated if it works :p
<apeiros_> personally, I'd prefer explicit splat/unsplat all the time. but that's not what we have. consistency here is that non-multiple-lhs is auto-unsplat
<apeiros_> i.e. if you have x = … it's always *x = … if rhs is an array
dumdedum has quit [Quit: foo]
<apeiros_> oh interesting? splat seems to have changed behavior… used to be to_ary iirc, is to_a now.
ki0 has joined #ruby
dcarmich has joined #ruby
WormDr1nk has joined #ruby
<mikecmpbll> hmpf. you've certainly got me thinking about how splat works :)
mr_foobar_baz has joined #ruby
<mikecmpbll> still don't entirely get why my example has that result.
dangerousdave has quit [Ping timeout: 255 seconds]
certaint1 has quit [Quit: Lost terminal]
<mikecmpbll> ah, nvm i understand more clearly now.
certainty has quit [Quit: Lost terminal]
doodlehaus has joined #ruby
Kricir has joined #ruby
certainty has joined #ruby
VBlizzard has quit [Ping timeout: 240 seconds]
Blizzy has quit [Ping timeout: 240 seconds]
clauswitt has joined #ruby
tokik has quit [Ping timeout: 272 seconds]
arup_r_ has joined #ruby
moritzschaefer has joined #ruby
moritzs has quit [Ping timeout: 272 seconds]
doodlehaus has quit [Ping timeout: 240 seconds]
jottr has quit [Read error: Connection reset by peer]
arup_r has quit [Ping timeout: 255 seconds]
lsc is now known as Schmidt
jottr has joined #ruby
lkba has quit [Ping timeout: 244 seconds]
moritzschaefer has quit [Ping timeout: 250 seconds]
nastri has joined #ruby
JohnBat26 has quit [Ping timeout: 272 seconds]
kl_ has joined #ruby
danijoo_ has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
quimrstorres has joined #ruby
bigkevmcd has joined #ruby
greenbagels_ has quit [Ping timeout: 240 seconds]
moritzschaefer has joined #ruby
AFKGeek has joined #ruby
Timgauthier has joined #ruby
Takle has joined #ruby
mollitz has joined #ruby
Timgauthier is now known as timgauthier_away
fandi has quit [Remote host closed the connection]
timgauthier_away is now known as Timgauthier
<friedAy> I have to write some code that would not match a string that has atleast one alphabet in it. A regex like /^\d+/ matches the 12a , but I don't want it to match it.. I have /^\d+[^a-z]/ but that isn't working
jimms has joined #ruby
moritzschaefer has quit [Ping timeout: 272 seconds]
Pupeno has quit [Read error: Connection reset by peer]
Pupeno has joined #ruby
samuel02 has joined #ruby
Spami has joined #ruby
<DefV> friedAy: to do exactly what you want: /^[^a-z]+$/i
<friedAy> ah
ponga has joined #ruby
AlexRussia has joined #ruby
<gregf_> or /^\d+$/
<gregf_> er, well its the same
<DefV> well, not really
<apeiros_> DefV, friedAy: remember that ^$ is start/end of *line*. use \A and \z for start/end of *string*.
<friedAy> ohk
<DefV> gregf_: because he just said "that would not match a string that has at least one alphabet in it"
<DefV> gregf_: which means 10-1 is a valid value
<apeiros_> >> "helloworld\n12" =~ /^\d+
<eval-in__> apeiros_ => /tmp/execpad-1d563fc9ac7d/source-1d563fc9ac7d:2: unterminated regexp meets end of file ... (https://eval.in/227545)
<apeiros_> >> "helloworld\n12" =~ /^\d+$/
<eval-in__> apeiros_ => 11 (https://eval.in/227546)
<gregf_> friedAy: you want strings that have no alphabets in it?
<gregf_> >> puts %w{12345 123a a123b}.map { |val| val + " --> " + (val =~ /^\d+$/ ? "yep" : "nope") }
<eval-in__> gregf_ => 12345 --> yep ... (https://eval.in/227547)
<friedAy> yes
<apeiros_> (whoopsie, premature enter)
<gregf_> DefV: fair enough, so ; "10-2" =~ /^[\d-]+$/ ;)
<apeiros_> *sob*
<DefV> gregf_: and 10_1 and 10.2 and 9.8
<apeiros_> FUCKING WALLS!
<apeiros_> gregf_: \A \z. Not ^$
<DefV> gregf_: and 10/2 and 10*3 etc
Takle_ has joined #ruby
<gregf_> well, if the requirement was clear the code would handle all cases ;)
hanmac1 has joined #ruby
<gregf_> those are basic regexes ;)
bigkevmcd has quit [Ping timeout: 240 seconds]
<apeiros_> not sure whether that was re \A\z…
josephndenton has joined #ruby
Takle has quit [Ping timeout: 258 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
bigkevmcd has joined #ruby
raja has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ringarin has quit [Read error: Connection reset by peer]
kamilc__ has joined #ruby
alaa has joined #ruby
samuel02 has quit [Ping timeout: 264 seconds]
rocknrollmarc has quit [Ping timeout: 264 seconds]
wpp has joined #ruby
reinaldob has joined #ruby
mkaesz has quit [Remote host closed the connection]
josephndenton has quit [Ping timeout: 264 seconds]
ldnunes has joined #ruby
sinanislekdemir has quit [Remote host closed the connection]
jenrzzz has joined #ruby
mr_foobar_baz has quit [Quit: WeeChat 1.0.1]
ptrrr has joined #ruby
bigkevmcd has quit [Ping timeout: 255 seconds]
mkaesz has joined #ruby
mkaesz has quit [Remote host closed the connection]
mkaesz has joined #ruby
FooMunki has joined #ruby
chabier has joined #ruby
<shevy> "No matches."
<gregf_> apeiros_++. never used that \A before. '\b'/'\z' for word boundaries :/
Advocation has quit [Quit: Advocation]
<Timgauthier> They Call me the Hip-hop-ipotimus
<shevy> damn canadians
<Timgauthier> :O!
<shevy> btw Canadians... it is getting damn cold here lately Timgauthier :(
<Timgauthier> WHY? CAUSE I RAP ABOUT REALITY LIKE MY GRAM AND ME HAVING SOME TEA?
<shevy> no - because you have a french accent
<Timgauthier> THERE AINT NO PARTY LIKE MY GAMS TEA PARTY!
<Timgauthier> i don't luckily
<shevy> like Georges St-Pierre
<Timgauthier> shevy how cold? they got like 1foot of snow last night
ponga has quit [Remote host closed the connection]
<shevy> hmm lemme see
<Timgauthier> 30.48cm
<shevy> right now it is 2°C in central vienna; that means border vienna should be -3 compared to that, so -1°C, and that is about the highest temperature for today, it will be awful at night + chilling wind :(
mkaesz has quit [Ping timeout: 256 seconds]
wpp has quit []
Advocation has joined #ruby
<shevy> cool
<shevy> we have no snow yet
mr_foobar_baz has joined #ruby
oo__ has joined #ruby
marr has joined #ruby
wpp has joined #ruby
<gaussblurinc1> hi
<gaussblurinc1> can I determine both (bang or not) behavior inside one method?
mr_foobar_baz has quit [Client Quit]
<gaussblurinc1> is there any flag or function that said yes or no if method used with bang or not?
<shevy> you mean whether the name of a method is "foo!" or "foo" ?
Spami has quit [Quit: This computer has gone to sleep]
<shevy> >> def foo!; puts __method__; end; foo!
<eval-in__> shevy => foo! ... (https://eval.in/227562)
<shevy> >> def foo; puts __method__; end; foo!
<eval-in__> shevy => undefined method `foo!' for main:Object (NoMethodError) ... (https://eval.in/227564)
<shevy> oops
<shevy> >> def foo; puts __method__; end; foo
<eval-in__> shevy => foo ... (https://eval.in/227565)
mr_foobar_baz has joined #ruby
oo_ has quit [Ping timeout: 240 seconds]
<shevy> not sure if you can access __method__ outside a method though ... hahaha :D
Pupeno has quit [Read error: Connection reset by peer]
ringarin has joined #ruby
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
ayaz has quit [Read error: Connection reset by peer]
xymbol_ has joined #ruby
<gaussblurinc1> shevy: thanks!
<shevy> \o/
ajaiswal has quit [Quit: Leaving]
<gaussblurinc1> shevy: I want to define two methods with one body, because they are mostly the same (only one 'if' is a difference)
uber_hulk has quit [Read error: Connection reset by peer]
<gaussblurinc1> __method__ =~ '!'
<shevy> huh
<gaussblurinc1> or better: __method__ =~ /!$/ (but actually the same)
<shevy> I failed to parse that
xymbol has quit [Ping timeout: 265 seconds]
<shevy> two methods with one body? one main method... one alias to it?
<gaussblurinc1> bang and non-bang behavior
<gaussblurinc1> only one if is a difference
Advocation has quit [Ping timeout: 255 seconds]
<certainty> normally you'd build the bang version using the non-bang version (depends on your actual implementation though)
vyorkin has quit [Ping timeout: 264 seconds]
<shevy> gaussblurinc1 well I would probably use three methods - the method that does your initial action, a second method that invokes that method, and adds that if-check, and a third method that ... uhm... not sure if it is needed
<shevy> or determine the behaviour of your method absed on some arguments
<shevy> *based on
uber_hulk has joined #ruby
<certainty> sounds fishy
<gaussblurinc1> >> def foo; puts __method__.to_s =~ /[!]/ ? 'bang' : 'non'; end; alias :foo, foo!; foo(); foo!()
<eval-in__> gaussblurinc1 => /tmp/execpad-af9d49faad8e/source-af9d49faad8e:2: syntax error, unexpected ',' ... (https://eval.in/227575)
<shevy> sounds godly :D
<gaussblurinc1> oh
<certainty> :D
<shevy> the () will be superfluous anyway
<shevy> you can use alias_method too, then you can use the ,
<shevy> or you use alias, then you don't have to use ,
Kricir has quit [Remote host closed the connection]
apeiros_ has quit [Ping timeout: 272 seconds]
<certainty> maybe actual code would help
<gaussblurinc1> >> def foo; puts __method__.to_s =~ /[!]/ ? 'bang' : 'non'; end; alias :foo, :foo!; foo; foo!
<eval-in__> gaussblurinc1 => /tmp/execpad-75b476d35c20/source-75b476d35c20:2: syntax error, unexpected ',' ... (https://eval.in/227576)
wsmoak has joined #ruby
<shevy> haha
<gaussblurinc1> comma … hate code one-liner functions :(
<shevy> <shevy> or you use alias, then you don't have to use ,
<shevy> and also no :
<shevy> but just change alias to alias_method and it should work
<hanmac1> i dont tell you what the problem is, because i think using __method_ _ to check for bang vs non-bang is a bad idea imo
<shevy> hanmac1 ok so your solution is
SOLDIERz_ has quit [Quit: Be back later ...]
<hanmac1> some kind of method_missing voodoo
<shevy> omg
<shevy> hanmac1 style :)
<hanmac1> like def method_missing(meth, *args); self.replace(meth[/(.+)\!/,1],*args); end
<gaussblurinc1> hanmac1: and how to determine both bang and non-bang method behaviors inside one body?
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
<hanmac1> gaussblurinc1: you dont, you define only the non-bang method, and let method missing emulate the bang one ... but if you show us more of your code, then we might able to tell you what you do wrong
workmad3 has joined #ruby
tgandrews has quit [Quit: This computer has gone to sleep]
dts is now known as dts|Zzzz
ptrrr has quit [Quit: ptrrr]
jheg has quit [Ping timeout: 258 seconds]
JCii8_ has joined #ruby
Abhijit has quit [Read error: No route to host]
jheg has joined #ruby
Abhijit has joined #ruby
Mia has joined #ruby
<gaussblurinc1> hanmac1: only academic knowledge. I like interesting language sentences like this one. In perl you can use dual-var module for determining dual variable behaviour (string and number in one place). also, you can use wantarray() function to determine inside body of function that invocation of this function has array or scalar context.
JohnBat26 has joined #ruby
Senjai has quit [Ping timeout: 255 seconds]
Takle_ has quit []
<shevy> oh you mentioned perl
<shevy> that triggered eam from his beauty sleep
lemur has quit [Remote host closed the connection]
rocknrollmarc has joined #ruby
<shevy> gaussblurinc1 for wantarray(), I assume you could simply check for object.is_a? relationship right?
byteoverfl0w has joined #ruby
lemur has joined #ruby
<shevy> gaussblurinc1 you could also probably get extra context information from using caller() inside a method
Takle has joined #ruby
samuel02 has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
moritzschaefer has joined #ruby
bal1 has joined #ruby
mollitz has quit [Ping timeout: 255 seconds]
lemur has quit [Ping timeout: 272 seconds]
bmichelsen has quit [Quit: ZZZzzz…]
Prova_tecnica has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
bigkevmcd has joined #ruby
oo__ has quit [Read error: No route to host]
oo_ has joined #ruby
dts|Zzzz has quit [Ping timeout: 240 seconds]
banister has joined #ruby
<gaussblurinc1> shevy: yeah, caller may help. But how you can determine wantarray() in ruby with object.is_a? invocation? wantarray usage: wantarray ? () : '' # in perl () - list, nearly the same as array in ruby, not completely
moritzschaefer has quit [Max SendQ exceeded]
banister has quit [Max SendQ exceeded]
jonr22 has joined #ruby
banister has joined #ruby
doodlehaus has joined #ruby
samuel02 has quit [Remote host closed the connection]
apeiros_ has joined #ruby
Senjai has joined #ruby
nrsk has quit [Ping timeout: 256 seconds]
charliesome has quit [Quit: zzz]
Soda has quit [Ping timeout: 265 seconds]
postmodern has quit [Quit: Leaving]
jonr22 has quit [Ping timeout: 264 seconds]
fabrice31 has quit [Remote host closed the connection]
<arup_r_> Is there any online Regexp builder site.. Not Rubulat.. It is for testing.. I don't know how to write a bug free Regex.. :-)
moritzschaefer has joined #ruby
Advocation has joined #ruby
<canton7> those are doctor who bathrobes...
<canton7> and no, there's no tool to write your regex for you
<canton7> just like there's no tool to write your ruby for you
Tranquility has quit [Quit: Connection closed for inactivity]
* apeiros_ bites his tongue
<apeiros_> damn pedantry. so tempting :)
<canton7> well, there probably are, and they're probably shit ;)
Prova_tecnica has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
thsig has joined #ruby
<apeiros_> for all practical purposes "there's no tool to write code for you" is correct. so lets just leave it at that :)
oo__ has joined #ruby
<canton7> hehe, I know what you mean, and I agree... but that doesn't help make the point I'm making ;)
oo_ has quit [Read error: Connection reset by peer]
<apeiros_> :( I thought it does
<arup_r_> canton7: Ooo... Than I'm in trouble
<apeiros_> or well, at least it doesn't "unhelp" (what's the antonym of help?)
<canton7> heh, I'm probably just unimaginative. feel free to re-word what I said :P
<workmad3> apeiros_: hinder
<apeiros_> canton7: no, no. I agree with you.
despai has joined #ruby
* canton7 chuckles
<apeiros_> workmad3: thanks :)
* apeiros_ so tired. good thing it's friday.
* apeiros_ friday-huggles the channel
moritzschaefer has quit [Ping timeout: 245 seconds]
chabier has quit [Remote host closed the connection]
<txdv> i hate fridays
* canton7 is looking forward to pizza, wine, a good film, and brownie
<hanmac1> arup_r_: .gsub(/(products\/)(.+)(\/.+)/,'\1zoom\3')
<txdv> all the week i create plans for the weekend
rocknrollmarc has quit [Read error: No route to host]
<txdv> and then i fail to pursue them
<gaussblurinc1> canton7: brownie?
<workmad3> canton7: btw, there are techniques for what arup_r_ wants... but we are talking about him building a neural network, feeding it hundreds or thousands of examples of 'for this input, I want this output' strings to train it and then letting it loose :)
<txdv> because i wake up on sunday and do nothing
chabier has joined #ruby
<workmad3> on the whole... probably easier to just learn regexp so you can reason about them :)
<apeiros_> txdv: take monday off
<canton7> workmad3, yeah, I accept that you *can* generate code and regex....
<canton7> gaussblurinc1, brownie!
<txdv> im already taking like 12 days for december
<arup_r_> workmad3: Yes.,. you are correct!
<txdv> and i only have 1 vacation day
<workmad3> canton7: heh :) note I didn't provide a mechanism for writing regexp... I provided a (more complicated) mechanism to categorise the strings so that he doesn't need a regexp ;)
<txdv> the boss agreed to give me 3 days of working at home
<arup_r_> Everytime I started.. I lost my energy within a minute... so I'll try again
<txdv> still a fucking deficit of 4 months of work
<txdv> school and university was so much better
<workmad3> arup_r_: for me, regexp was something I learned by osmosis more than anything tbh... just too much time being unable to avoid them
<arup_r_> workmad3: Where is your regex.. I can't see it
thsig has quit [Ping timeout: 244 seconds]
<workmad3> arup_r_: that's because I didn't give you a regexp :P
nrsk has joined #ruby
thsig has joined #ruby
<arup_r_> Ohh!... I was searching the validity of the line "I provided a (more complicated) mechanism to categorise the strings so that he doesn't need a regexp "
<arup_r_> txdv: humm
Takle_ has joined #ruby
fabrice31 has joined #ruby
<txdv> what?
thsig has quit [Remote host closed the connection]
<gaussblurinc1> arup_r_: oh, which regexp you want?
<workmad3> arup_r_: that was when I said you could build and train a neural network for the purposes of sorting out your string manipulation :P
<workmad3> arup_r_: to avoid writing a regexp
thsig has joined #ruby
<workmad3> arup_r_: basically, I was providing a 'friday answer' - technically correct, but worth about as much as code written on a friday ;)
<gaussblurinc1> today is black friday, right? discounts on help and regex!
<arup_r_> workmad3: Insulting.. please shut up your mouth :-) :-)
<workmad3> arup_r_: no, I refuse!
<txdv> why neural network?
<txdv> Just create some AI which works for you
<arup_r_> gaussblurinc1: I got a working from hanmac1:
tgandrews has joined #ruby
<arup_r_> workmad3: Carry on!.. hehehehehe
Macaveli has joined #ruby
noop has quit [Ping timeout: 244 seconds]
<workmad3> txdv: I now see how the robot apocalypse starts... we create bayesian super-intelligent AI agents, and then we insult them by getting them to do menial string manipulation for us
Takle has quit [Ping timeout: 272 seconds]
despai has quit [Quit: This computer has gone to sleep]
fantazo has joined #ruby
<txdv> by that logic i should have killed my boss already
<workmad3> txdv: so no wonder they create a secret underground factory, build themselves robot bodies and slaughter us all
<txdv> Too easy for my taste
<workmad3> txdv: it's ok, you're human... you don't need to act rationally all the time :P
Advocation has quit [Quit: Advocation]
mkaesz has joined #ruby
<gaussblurinc1> txdv: is your boss a robot?
<hanmac1> workmad3: no they are turned mad because they are forced to do Java-programming ;P
<workmad3> hanmac1: :D
<txdv> the haskell robots will kill us all
<workmad3> hanmac1: I'm not sure which I'd prefer at the moment... java coding, or the barrel of URL manipulation I'm staring down in javascript right now...
<hanmac1> in java you need interfaces for your interfaces and factories that does create your factories ;P#
<txdv> hanmac1: that is not true, you can do overarchitecting with all languages
mkaesz has quit [Remote host closed the connection]
<workmad3> hanmac1: InterfaceFactoryFactoryInterfaceDiscoveryServiceFactoryInterface
mkaesz has joined #ruby
<hanmac1> workmad3: currently i do haxe programming that does put out javascript code, that uses Jquery, do to something with a configurator or similar ... last time i wrote a Image slider in haxe
mkaesz has quit [Remote host closed the connection]
<workmad3> txdv: I don't think hanmac1's claim was that you couldn't do over-architecturing in other languages... I think it was that in Java then you *have* to
<arup_r_> page.at("//ul[@id='image_slider']/li/a/img")
<arup_r_> Opps! Sorry I thought it is my IRB.. :-)
<txdv> java people get probably paid for factories per hour
<workmad3> txdv: yeah... their managers read the articles pointing out that kLoC/hour was a useless metric, so they started suffering in performance reviews
lemur has joined #ruby
Hobogrammer has quit [Ping timeout: 265 seconds]
<arup_r_> hanmac1: Thank you bery much!!
<arup_r_> very
<canton7> I think the java-bloat thing is partially langauge, partially cultural. everyone writes bloat, all the libraries you use are bloated, so bloat feels like the natural way
<canton7> you *can* write non-bloat in java (you have to write boilerplate, but that's different), but that *feels* wrong
arup_r_ has quit [Remote host closed the connection]
shazaum has joined #ruby
mostlybadfly has joined #ruby
charliesome has joined #ruby
moritzs has joined #ruby
fandi has joined #ruby
quimrstorres has quit [Remote host closed the connection]
Takle_ has quit [Read error: Connection reset by peer]
Takle has joined #ruby
<gaussblurinc1> what is the smallest valid jsonish string for default ruby json parser?
<gaussblurinc1> empty string not valid
<canton7> emptyobject or emptyarray
<gaussblurinc1> :(
jeanlinux has joined #ruby
<apeiros_> string as root object is not valid json
<apeiros_> so it's not a "for ruby json parser" thing.
xcesariox has joined #ruby
Morkel_ has joined #ruby
thsig_ has joined #ruby
fgo_ has quit [Ping timeout: 240 seconds]
<workmad3> >> require 'json'; JSON.parse("{}")
<eval-in__> workmad3 => {} (https://eval.in/227591)
thsig has quit [Read error: Connection reset by peer]
mengu has joined #ruby
SOLDIERz_ has joined #ruby
Morkel has quit [Ping timeout: 258 seconds]
Morkel_ is now known as Morkel
renderful has joined #ruby
Spami has joined #ruby
rodfersou has joined #ruby
renderful has quit [Ping timeout: 244 seconds]
quimrstorres has joined #ruby
sevenseacat has joined #ruby
quimrstorres has quit [Remote host closed the connection]
F__i__L has joined #ruby
Xeago_ has quit [Ping timeout: 264 seconds]
<F__i__L> hello! is it possible to get a list of instance methods defined in a class without the methods from the modules that are included in that class ?
quimrstorres has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Spami has quit [Quit: This computer has gone to sleep]
vinleod has joined #ruby
<apeiros_> F__i__L: yes
rkalfane has joined #ruby
<apeiros_> F__i__L: Klass.instance_methods - whatevermethods_you_dont_want
rkalfane has quit [Client Quit]
<F__i__L> aha!
<apeiros_> Klass.ancestors contains all the included modules too
<hanmac1> apeiros_: what about Klass.instance_methods(false) ?
bmichelsen has joined #ruby
bal1 has quit [Quit: bal1]
<apeiros_> hanmac1: those excludes all inherited methods. not just included modules.
fgo_ has joined #ruby
Xeago has joined #ruby
<hanmac1> F__i__L: if you only want the methods defined in the class, ingnoring super classes too, look at instance_methods(false)
<F__i__L> ok!
_aeris_ has quit [Remote host closed the connection]
bal1 has joined #ruby
_aeris_ has joined #ruby
noop has joined #ruby
cYris212 has joined #ruby
chabier has quit [Remote host closed the connection]
Paramore has quit [Quit: ZNC - http://znc.in]
<cYris212> Could somebody pls tell me what "--deployment" in "bundle install --deployment" does?
Snowstormer has joined #ruby
NoNMaDDeN has quit [Remote host closed the connection]
abuzze_ has quit [Ping timeout: 265 seconds]
thsig has joined #ruby
<workmad3> cYris212: it sets up bundler options that are typically recommended for deployment, such as only installing gems from Gemfile.lock, raising an error if Gemfile and Gemfile.lock are out of sync, installing into a vendored path, etc
<workmad3> cYris212: there's probably more detail on bundler.io
<F__i__L> hanmac1 instance_methods(false) wil alsol give me the methods returned in the included modules, right ?
<cYris212> workmad3: thanks a lot!
<F__i__L> so I have to substract include_modules(:&instance_methods).flatten
<hanmac1> F__i__L: hm no instance_methods(false) also removes the one from the included modules
thsig_ has quit [Ping timeout: 240 seconds]
thsig has quit [Remote host closed the connection]
thsig has joined #ruby
spastorino has joined #ruby
mr_foobar_baz has quit [Ping timeout: 250 seconds]
NoNMaDDeN has joined #ruby
michael_mbp has quit [Excess Flood]
thsig_ has joined #ruby
arup_r has joined #ruby
Xeago_ has joined #ruby
michael_mbp has joined #ruby
shredding has quit [Quit: shredding]
lkba has joined #ruby
thsig has quit [Ping timeout: 240 seconds]
fabrice31 has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 264 seconds]
Prawnzy has joined #ruby
bmichelsen has quit [Quit: ZZZzzz…]
vyorkin has joined #ruby
Wapitidou has joined #ruby
arup_r has quit []
fabrice31 has joined #ruby
stoffus has quit [Ping timeout: 264 seconds]
NoNMaDDeN has quit [Remote host closed the connection]
abuzze has joined #ruby
oo__ has quit [Quit: Leaving...]
xymbol_ has quit [Quit: Be back later ...]
jottr has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
Spami has joined #ruby
lemur has quit [Remote host closed the connection]
mikestok has joined #ruby
lemur has joined #ruby
atomical has joined #ruby
chabier has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
MrSamuel has quit [Ping timeout: 245 seconds]
mikestok has quit [Client Quit]
sailias has joined #ruby
Spami has quit [Client Quit]
mkaesz has joined #ruby
sailias has quit [Client Quit]
kamilc__ has quit [Quit: Leaving...]
chabier_ has joined #ruby
chabier_ has quit [Remote host closed the connection]
chabier_ has joined #ruby
lemur has quit [Ping timeout: 258 seconds]
chabier_ has quit [Remote host closed the connection]
chabier has quit [Ping timeout: 264 seconds]
rkalfane has joined #ruby
tkuchiki has quit [Ping timeout: 272 seconds]
MrSamuel has joined #ruby
Takle has joined #ruby
Miron has quit [Quit: ZNC - http://znc.in]
lostpotato has joined #ruby
mkaesz has quit [Ping timeout: 264 seconds]
chabier has joined #ruby
lostpotato is now known as Miron
chabier_ has joined #ruby
____aaaa1 has joined #ruby
Takle has quit [Read error: Connection reset by peer]
Takle has joined #ruby
nagaraj has quit [Read error: Connection reset by peer]
chabier has quit [Ping timeout: 255 seconds]
nagaraj has joined #ruby
chabier_ has quit [Ping timeout: 244 seconds]
lampd1 has quit []
chabier has joined #ruby
Pupeno has quit [Quit: Leaving...]
moritzs has quit [Ping timeout: 250 seconds]
tgandrews has quit [Quit: This computer has gone to sleep]
Miron has quit [Quit: ZNC - http://znc.in]
tgandrews has joined #ruby
lostpotato has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
chabier has quit [Ping timeout: 255 seconds]
lostpotato has quit [Client Quit]
jonr22 has joined #ruby
Miron has joined #ruby
jimms has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
stoffus has joined #ruby
MrSamuel has quit [Ping timeout: 240 seconds]
jonr2219 has joined #ruby
linojon has joined #ruby
atomical has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MrSamuel has joined #ruby
Prawnzy has quit [Remote host closed the connection]
Miron has quit [Quit: ZNC - http://znc.in]
Miron has joined #ruby
boombadaroomba has joined #ruby
jimms has joined #ruby
jonr2219 has quit [Ping timeout: 265 seconds]
mloveless has quit [Remote host closed the connection]
lessless has quit [Remote host closed the connection]
boombadaroomba has quit [Ping timeout: 240 seconds]
nagaraj has quit [Remote host closed the connection]
cYris212 has quit [Quit: Page closed]
kiyote23 has joined #ruby
vyorkin has quit [Ping timeout: 245 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jonr22 has quit [Remote host closed the connection]
yfeldblum has joined #ruby
bonhoeffer_ has joined #ruby
____aaaa1 has quit [Quit: leaving]
yfeldblu_ has joined #ruby
<bonhoeffer_> what is the bitbucket or competition to github that i’m hearing a little about?
<bonhoeffer_> do ruby coders mostly use github to collaborate?
<tobiasvl> bonhoeffer_: github is probably the largest in most communities, even ruby, yes
arya_ching has joined #ruby
kobain has joined #ruby
<bonhoeffer_> have you heard of bitbucket?
<bonhoeffer_> i just can’t imagine collaboration without git integration
bal1 has quit [Ping timeout: 245 seconds]
Advocation has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
livingstn has joined #ruby
kiyote23 has quit [Remote host closed the connection]
Timgauthier is now known as timgauthier_away
<apeiros_> bonhoeffer_: gitlab is also an alternative
<bonhoeffer_> cool — good to know
* apeiros_ still plans to install this at work…
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yfeldblu_ has quit [Ping timeout: 240 seconds]
AFKGeek has quit [Quit: Fades into the shadows]
<sevenseacat> we use gitlab at work... its not as awesome as github but decent
kiyote23 has joined #ruby
<bonhoeffer_> cool . . . looks like a lot of folks use it . . . with github being free, why use something else?
<sevenseacat> private projects
<bonhoeffer_> or proprietary codebases cheaper on gitlab?
<sevenseacat> considering gitlab you just download and set up on your own server
jottr has joined #ruby
sk87 has joined #ruby
Scripore has joined #ruby
<tobiasvl> bonhoeffer_: hmm, what do you mean? bitbucket supports git too
<bonhoeffer_> cool — i wasn’t familiar
xymbol_ has joined #ruby
tgandrews has quit [Quit: This computer has gone to sleep]
shredding has joined #ruby
sski has joined #ruby
quimrstorres has quit [Remote host closed the connection]
vyorkin has joined #ruby
jottr has quit [Ping timeout: 272 seconds]
silkfox has joined #ruby
Areessell has quit [Ping timeout: 264 seconds]
mkaesz has joined #ruby
Timgauthier has joined #ruby
livathinos has quit [Remote host closed the connection]
jimbach has joined #ruby
Advocation has quit [Quit: Advocation]
silkfox has quit [Ping timeout: 272 seconds]
livathinos has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
mkaesz has quit [Ping timeout: 265 seconds]
VBlizzard has joined #ruby
Blizzy has joined #ruby
Alina-malina has quit [Ping timeout: 264 seconds]
tgandrews has joined #ruby
<kaspergrubbe> There is also http://gogs.io/
Alina-malina has joined #ruby
<Takumo> Does anyone know if the timestamp field type is supported by tiny_tds?
xcesariox has quit [Ping timeout: 255 seconds]
kamil has joined #ruby
subtwo has quit [Ping timeout: 255 seconds]
<Takumo> kaspergrubbe: I love how all the endorsements are from China
iamjarvo has joined #ruby
ki0 has quit []
iamjarvo has quit [Max SendQ exceeded]
thsig_ has quit [Remote host closed the connection]
iamjarvo has joined #ruby
xcesariox has joined #ruby
friedAy has quit [Remote host closed the connection]
BlackGear has joined #ruby
BlackGear has quit [Quit: ZZZzzz…]
BlackGear has joined #ruby
livingstn has quit []
st1gma1 has joined #ruby
thsig has joined #ruby
BlackGear has quit [Max SendQ exceeded]
BlackGear has joined #ruby
jimms has quit [Remote host closed the connection]
oleo has joined #ruby
st1gma2 has quit [Ping timeout: 255 seconds]
snath has quit [Ping timeout: 250 seconds]
charliesome has quit [Quit: zzz]
bonhoeffer_ has quit [Quit: bonhoeffer_]
wpp has quit []
Takle_ has joined #ruby
Takle has quit [Read error: Connection reset by peer]
jimms has joined #ruby
Advocation has joined #ruby
snath has joined #ruby
fgo_ has quit [Read error: Connection reset by peer]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
davedev24_ has joined #ruby
Takle_ has quit [Read error: Connection reset by peer]
Takle has joined #ruby
byteoverfl0w has quit [Remote host closed the connection]
kiyote23 has quit [Remote host closed the connection]
kiyote23 has joined #ruby
last_staff has joined #ruby
ringarin has quit [Read error: Connection reset by peer]
ki0 has joined #ruby
Abhijit has quit [Remote host closed the connection]
Soda has joined #ruby
kiyote23 has quit [Remote host closed the connection]
sailias has joined #ruby
silkfox has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
pythdasch has joined #ruby
pythdasch has left #ruby ["Quitte"]
ringarin has joined #ruby
arya_ching has quit [Ping timeout: 264 seconds]
hanmac1 has left #ruby [#ruby]
quimrstorres has joined #ruby
byteoverfl0w has joined #ruby
diegoviola has joined #ruby
yeticry has quit [Ping timeout: 244 seconds]
quimrstorres has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
adriancb has joined #ruby
timonv_ has joined #ruby
kwd has quit [Quit: kwd]
NoNMaDDeN has joined #ruby
timonv_ has quit [Remote host closed the connection]
psy has quit [Remote host closed the connection]
yeticry has joined #ruby
mengu has quit [Remote host closed the connection]
adriancb has quit [Remote host closed the connection]
psy has joined #ruby
sski has quit [Remote host closed the connection]
samuel02 has joined #ruby
jeanlinux has quit [Remote host closed the connection]
sski has joined #ruby
jeanlinux has joined #ruby
samuel02 has quit [Read error: Connection reset by peer]
samuel02 has joined #ruby
quimrstorres has joined #ruby
kl_ has quit [Quit: leaving]
mkaesz has joined #ruby
chabier has joined #ruby
sski has quit [Ping timeout: 245 seconds]
chabier_ has joined #ruby
jeanlinux has quit [Ping timeout: 265 seconds]
josephndenton has joined #ruby
Timgauthier is now known as timgauthier_away
karmatr0n has joined #ruby
ltd has quit [Ping timeout: 255 seconds]
adriancb has joined #ruby
chabier has quit [Ping timeout: 240 seconds]
adriancb has quit [Remote host closed the connection]
brendenb has quit [Ping timeout: 258 seconds]
evanjs has joined #ruby
ltd has joined #ruby
chabier_ has quit [Ping timeout: 240 seconds]
LBRapid has quit [Ping timeout: 258 seconds]
Megtastique has joined #ruby
DaniG2k has quit [Ping timeout: 256 seconds]
adriancb has joined #ruby
adriancb has quit [Remote host closed the connection]
brendenb has joined #ruby
rippa has joined #ruby
LBRapid has joined #ruby
ltd has quit [Ping timeout: 255 seconds]
evanjs has quit [Ping timeout: 244 seconds]
timonv^ has joined #ruby
clauswitt has quit [Ping timeout: 255 seconds]
klmlfl has joined #ruby
livathinos has quit [Remote host closed the connection]
lxsameer has quit [Quit: Leaving]
ltd has joined #ruby
tvon has quit [Remote host closed the connection]
atomical has joined #ruby
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
banister_ has joined #ruby
Channel6 has joined #ruby
mengu has joined #ruby
banister has quit [Ping timeout: 255 seconds]
jonr22 has joined #ruby
byteoverfl0w has quit [Quit: Leaving... have a good one...]
iamjarvo_ has joined #ruby
matti has quit [Quit: Reconnecting]
Advocation has quit [Quit: Advocation]
matti has joined #ruby
matti has joined #ruby
matti has quit [Changing host]
mentero has joined #ruby
livathinos has joined #ruby
mentero has quit [Client Quit]
jonr22 has quit [Ping timeout: 265 seconds]
mentero has joined #ruby
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
mentero has quit [Remote host closed the connection]
Fire-Dragon-DoL has joined #ruby
Takle has quit [Read error: Connection reset by peer]
<monsieurp> I've got it on the tip of my fingers but I can't remember the correct syntax: perl -F':' -lane 'print $F[0];' /etc/passwd
andikr has quit [Remote host closed the connection]
<monsieurp> what is the equivalent in Ruby? ruby -F':' -lane 'puts .. ??' how do I access the F array?
Takle has joined #ruby
uber_hulk has quit [Ping timeout: 255 seconds]
jeanlinux has joined #ruby
ta_ has joined #ruby
mengu has quit []
ta has quit [Read error: Connection reset by peer]
gaussblurinc1 has quit [Read error: Connection reset by peer]
<monsieurp> well it's actually the same syntax :/
livathinos has quit [Remote host closed the connection]
jeanlinux has quit [Remote host closed the connection]
mikecmpbll has quit [Read error: Connection reset by peer]
<monsieurp> ruby -F':' -lane 'print $F[0]' /etc/passwd
jeanlinux has joined #ruby
bracky has quit [Ping timeout: 240 seconds]
AndChat| has joined #ruby
bracky has joined #ruby
lkba has quit [Ping timeout: 265 seconds]
Kricir has joined #ruby
Takle has quit [Read error: Connection reset by peer]
Takle has joined #ruby
benzrf|offline is now known as benzrf
lkba has joined #ruby
ta has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
Kricir has quit [Remote host closed the connection]
Linuus has joined #ruby
<benzrf> heuh
tkuchiki has joined #ruby
<benzrf> gogs looks kinda neat but i wish they hadnt just tried to clone github's UI
<Linuus> Some ruby libraries, such as Octokit and Twitter define all their stuff in modules and mixes in everything in their Client class. Are there any benefits of doing this over using separate classes and inheritance?
<benzrf> cause now if i use it i'll just keep expecting it to work like github and getting annoyed at it
AndChat| has quit [Ping timeout: 258 seconds]
<benzrf> while i might have really liked it if it were its own thing
ta has quit [Remote host closed the connection]
<shevy> Linuus module mixins are more flexible; you can always mix in something regardless, but with subclassing, you always require one and only one direct parent alone
Prawnzy has joined #ruby
Advocation has joined #ruby
konsolebox has joined #ruby
<Linuus> shevy: Sure, but look at this for instance: https://github.com/octokit/octokit.rb/blob/master/lib/octokit/client.rb They just mix in everything in one big class, the Client. It seems it would be hard not to accidentally override methods all over the place...?
Scripore has quit [Ping timeout: 264 seconds]
<shevy> I don't know that codebase
<shevy> it's a rather excessive amount of includes they use
<shevy> 35 lines of include
tkuchiki has quit [Ping timeout: 264 seconds]
hamakn has quit [Remote host closed the connection]
<shevy> are they real experts?
<workmad3> Linuus: it's not a good approach
<workmad3> Linuus: neither is having everything come in via inheritance though
<shevy> well Instagram uses like only 1/3 compared to that example of octokit
<workmad3> Linuus: both lead to bloated classes that are doing too much and difficult to work with and modify
<Linuus> shevy: That's only because their codebase is smaller. The design is the same.
ltd has quit [Ping timeout: 264 seconds]
ltd has joined #ruby
<Linuus> workmad3: Sure, shared stuff can be included via mixins. It just seemed weird to include everything in one class :)
mikecmpbll has joined #ruby
<shevy> the class that handles ALL problems
<shevy> class Universe
<Linuus> I usually create a base class and then inherit from that when creating an API wrapper for instance. So I would have done a Base class and then Octokit::Commit < Base and so on...
ta has joined #ruby
<shevy> yeah that is what people are doing
fandi has quit [Remote host closed the connection]
<shevy> class MyApp < Sinatra::Base
ta has quit [Remote host closed the connection]
Channel6 has quit [Quit: Leaving]
ta has joined #ruby
razieliyo has joined #ruby
<Linuus> Yep. I just thought maybe there were some upsides to using the other approach that I didn't see.
DaniG2k has joined #ruby
SOLDIERz_ has quit [Quit: Be back later ...]
<Linuus> It seems to be common among API wrappers for some reason
WormDr1nk has quit [Ping timeout: 244 seconds]
<workmad3> Linuus: composition is preferable, IMO... for example, last time I wrote an API client, I created a class for the connection that wrapper around Faraday, a class for Authentication that took in the authentication keys and turned them into request headers appropriately, and a class for the actual client that created a connection, created an authentication and exposed methods for making requests that used tho
<workmad3> se 2 classes
ColloquyUser has joined #ruby
enroxorz has joined #ruby
<enroxorz> hey guys, is it good practice having an init file require files within a folder? like in python?
<Linuus> workmad3: Yes that sounds more reasonable.
<shevy> enroxorz that is a perfectly legit approach
anarang has quit [Quit: Leaving]
<shevy> I do that for some autogenerated files where I can never be sure which ones will be there and which ones won't before starting
ColloquyUser has quit [Client Quit]
Hightower_ has quit [Quit: Not that there is anything wrong with that]
uber_hulk has joined #ruby
tgandrews has quit [Quit: Leaving]
<enroxorz> thanks shevy
<shevy> \o/
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby
anaeem1_ has joined #ruby
existensil has quit [Quit: WeeChat 0.4.2]
ltd has quit [Ping timeout: 272 seconds]
Advocation has quit [Quit: Advocation]
arup_r has joined #ruby
ltd has joined #ruby
ptrrr has joined #ruby
<klmlfl> Hey all
blackmesa has joined #ruby
<klmlfl> I'm still trying to figure out why this doesn't work: https://gist.github.com/anonymous/3f4d7799c821901092c7
<klmlfl> I posted it here yesterday and got the answer, thought I understood why I didn't work, but I'm still a bit confused.
apeiros_ has quit [Ping timeout: 256 seconds]
<klmlfl> Because this code seems to work: https://gist.github.com/anonymous/4dd5306a0be9af1ddc32
<shevy> how can this work
<workmad3> klmlfl: Person doesn't have a method 'age'
<shevy> you call the method .age
enroxorz is now known as ArchBeOS
<shevy> but you have not defined it
<shevy> so how can this work man
<workmad3> shevy: he said he doesn't understand why it doesn't work :P
<workmad3> shevy: so he already knows it's broken, but doesn't quite understand why ;)
<shevy> yeah I am telling him why
<klmlfl> I feel like it should work because the value of it was passed in to initialize it.
<shevy> why
<workmad3> klmlfl: right... but that was stored in an instance variable
AndChat| has joined #ruby
Seich has quit [Ping timeout: 258 seconds]
tylersmith has quit [Ping timeout: 258 seconds]
<workmad3> klmlfl: instance variables don't automatically become available via methods of the same name
<workmad3> klmlfl: you need to create the method
<exadeci> Hello, I got some activerecord problem I receive information about an exercise and I link it to a teacher_exercise but I can't find how to link it to the student id (using the student_login I receive) I tried with an includes but it displays the login :/ https://gist.github.com/exadeci/4629d570df6207131100
<workmad3> exadeci: #rubyonrails
<klmlfl> i thought any @variables are accessible
Seich has joined #ruby
<workmad3> klmlfl: no
<workmad3> klmlfl: the opposite :P
<klmlfl> that's the point of putting the @there
<workmad3> klmlfl: no, the @ makes it an instance variable rather than a local variable
Scripore has joined #ruby
<workmad3> klmlfl: but all instance variables in ruby are private and only accessible outside the object if you write a method to expose them
<klmlfl> i see.
<klmlfl> so if that was just age instead of @age, i would be able to access it?
<workmad3> klmlfl: no
<workmad3> klmlfl: because you still wouldn't have a method
<klmlfl> ok.
doev has joined #ruby
tylersmith has joined #ruby
<klmlfl> ok, i understand the needing a method part to access it
<workmad3> klmlfl: at that point, you'd have just created a local variable 'age' in the initialize method and the value would vanish afterwards
<klmlfl> we're clear on that now
<shevy> klmlfl it is easier by default to not expose such internal data
lkba has quit [Ping timeout: 258 seconds]
livathinos has joined #ruby
<klmlfl> k
<shevy> if you need that, you could use Struct or OpenStruct; there you will automatically have the method available on the data you provided
<shevy> Sword = Struct.new(:length, :weight); sword = Sword.new(120, 4.5)
<shevy> there... a sword with a length of 120 cm and a weight of 4.5 kg (probably not realistic...)
<workmad3> shevy: I see no units there :P
amundj has quit [Ping timeout: 258 seconds]
<shevy> you are excused
<shevy> you are from the UK
<klmlfl> what would the point be of using an local variable like age as opposed to @age
oleo__ has joined #ruby
<klmlfl> in that example
oleo is now known as Guest89591
<klmlfl> i can't think of one
<shevy> workmad3 though I guess I should have used meters instead, to stick to the SI system ...
<workmad3> klmlfl: grab it out the hash and then do some calculations on it before storing the result in an instance variable
<shevy> but man, inches are so out of the question
<klmlfl> k
doodlehaus has quit [Remote host closed the connection]
<workmad3> shevy: I personally read it as 120 rods in length, and 4.5 shevies in weight
<shevy> klmlfl you could use a local variable too
<shevy> klmlfl I mean it all depends if you need or want to have data be persistent in your object
Guest89591 has quit [Ping timeout: 244 seconds]
<shevy> like in the example above, with a sword
<shevy> every sword should have a length and a weight right?
<klmlfl> yea
<shevy> so it would make sense to store these in an @ivar (at least the length I guess... weight can perhaps be calculcated from the length... if you know the material... probably steel or? man I am no expert on swords)
<workmad3> klmlfl: now imagine if what you had was something like 'sword = Sword.new("120cm", "4.5kg") though
<shevy> aha
Kricir has joined #ruby
<shevy> now we are more clear here
<shevy> we don't have to guess the units!
<klmlfl> k
<shevy> workmad3 always improves code he gets a grab onto :)
<workmad3> klmlfl: then in the initialize method, you could easily want 'def initialize(length_str, weight_str); @length_in_cm = convert_to_cm(length_str); @weight_in_kg = convert_to_kg(weight_str); end'
<klmlfl> i'm trying to think of A single reason
<klmlfl> why one wouldn't use an instance variable
<klmlfl> at all
<klmlfl> in my code
<workmad3> klmlfl: because you don't want or need to keep data around
<workmad3> klmlfl: the other classic example would be needing a password for a particular operation
<klmlfl> but for a blueprint of the object
<shevy> klmlfl sometimes you just dump data into a temporary variable
<klmlfl> why would one a non persistent variable
<workmad3> klmlfl: you want to limit the amount of time the password exists in memory... storing it in an instance variable means you need to remember to clear the instance variable (or leak data)
<shevy> my favourite one is _
<shevy> klmlfl to break up chunks of code, for instance
<klmlfl> i think you guys have way more experience than me. lol
<shevy> well you will find situations where you have to use local variables
<workmad3> klmlfl: or storing the result of a calculation halfway through
<shevy> of course you can store in a @ivar too
<shevy> but what is the point if you don't really need it
Vile` has quit [Quit: ...]
<workmad3> klmlfl: you don't actually care about that result... but you want to split the calculation up into separate, more readable parts
mayday_jay has joined #ruby
<klmlfl> i guess what im saying is
leizzer has joined #ruby
ringarin has quit [Read error: Connection reset by peer]
<workmad3> klmlfl: so you store part of the calculation in a local variable, then continue the calculation
<klmlfl> if i dont save age in an @ivar
<klmlfl> how can it be used
<klmlfl> when its instantiated
<shevy> what is age exactly there
<workmad3> klmlfl: in your example, you'd want to store the age (or some calculation based off the age) in an ivar, most likely
<shevy> an @ivar right?
thsig has quit [Remote host closed the connection]
<shevy> you could also use a CONSTANT :>
<workmad3> klmlfl: but you started talking about general situations, so we were giving general responses ;)
<klmlfl> so let's say I instantiated the person, initialized age
<klmlfl> how can age (not @age) be used now
<shevy> you mean .age
<klmlfl> by other methods within the object?
<shevy> you must define that method!
<klmlfl> yes shevy
<shevy> if you do not define the method, of course you can not use it
<shevy> and you don't have many options to store data
<shevy> I mean you have @ivars
<shevy> what else would you need
<workmad3> klmlfl: btw, when we say 'define the method age', we mean in the simplest term, 'def age; @age; end'
<shevy> you could use a $var
<klmlfl> got it
<shevy> but then why would you want to use a class anyway
<workmad3> klmlfl: you have a method called 'age' that returns the value of the @ivar @age
<klmlfl> if i dont save it in an @ivar , just a regular local variable
<shevy> it won't be persistent if it is local
<klmlfl> it be accessed by the other methods within the instantiated object, right?
<workmad3> klmlfl: then you'd lose access to it outside of that local scope
<workmad3> klmlfl: no
<workmad3> klmlfl: local variables are scoped to the method they're created in
ringarin has joined #ruby
<workmad3> klmlfl: @ivars are scoped to the object they're created in
<shevy> klmlfl it is so local that it is superlocal to the method it was localized
<klmlfl> oh, right right.
<klmlfl> i knew that.
<klmlfl> brain fart
noop has quit [Quit: Leaving]
<workmad3> klmlfl: heh :)
<shevy> the name indicates that
chris613 has joined #ruby
<shevy> l-o-c-a-l variable
Guest56870 has quit [Ping timeout: 258 seconds]
eind has quit [Remote host closed the connection]
<shevy> unlike a
<shevy> g-l-o-b-a-l variable
<workmad3> shevy: hey, it's hard to be a newbie on a friday, give him a break ;)
<shevy> I am having way too much fun
<chris613> Is it correct to nest another begin/rescue if my ensure block might also throw exceptions?
lmickh has joined #ruby
<workmad3> (or not... it's kinda funny seeing you do the text equivalent of speaking slowly :D )
<klmlfl> thanks shevy, making it a great experience to ask questions on here ;)
<shevy> well he'll remember it the next time he says "local variable"
<shevy> l-oooooooo-c-a-l
<shevy> hmm
<klmlfl> I understand.
<shevy> loooooocal :D
<workmad3> bah, why does generating a 4096 bit diffie-helman parameters file take so bloody long? :(
<klmlfl> I was thinking of a variable outside of the method.
<shevy> klmlfl yes! an @ivar!
apoorvparijat has joined #ruby
<klmlfl> if that variable wasn't an instance variable
<workmad3> shevy: or a local variable in the class body ;)
last_staff has quit [Quit: last_staff]
<shevy> what else could it be klmlfl
<klmlfl> like class Person age = name =
<workmad3> 'class Foobar; class_local = "foo"; end'
<shevy> so a local var
<klmlfl> yea
<workmad3> klmlfl: the problem you have then is that 'age' is a local variable there, and 'def' stops you from accessing local variables from outside its scope
<shevy> there really aren't that many options if you think about it
<klmlfl> that variable could be accessed by methods within the class
apoorvparijat has quit [Client Quit]
<workmad3> klmlfl: no it couldn't... see my previous statement ;)
C0deMaver1ck has joined #ruby
<shevy> klmlfl how?
apoorvparijat has joined #ruby
C0deMaver1ck is now known as Guest15281
<klmlfl> shevy: i appreciate your help, but a word of advice, teaching isn't a matter of forcing something onto someones brain.
<klmlfl> because learning is about absorbing at ones own pace ;)
huddy has joined #ruby
<shevy> ah but your brain still believes that class Foo; bla = 5; end must work
<workmad3> klmlfl: 'def foobar; <this scope can't access local variables from outside it>; end'
<klmlfl> I think your brain thinks that's why my brain thinks.
<shevy> <klmlfl> that variable could be accessed by methods within the class
FooMunki has quit [Quit: FooMunki]
<workmad3> shevy: before you go completely OTT, remember that there *are* ways you could make that work in ruby ;)
<shevy> show me!
Seich has quit [Ping timeout: 258 seconds]
<workmad3> shevy: e.g. 'class Foo; bar = 5; define_method :fizz {bar}; end'
apoorvparijat has left #ruby [#ruby]
hamakn has joined #ruby
<shevy> irb gives me an error there
<shevy> it works with the ()
<klmlfl> when i create an instance of Person (we'll call it p1), are var and var2 accessible to other methods within p1?
Seich has joined #ruby
<workmad3> shevy: yeah... I sometimes forget when I need () :)
<shevy> workmad3 well ok so I guess we can actually refer to local variables
apoorvparijat has joined #ruby
<olivier_bK> i dont remember how i can this class in another class https://gist.github.com/zyriuse75/b62c2409fda3525dfa5c
<workmad3> klmlfl: first, answer this - "Do you think they are? and why? and can you demonstrate accessing them?'
silkfox has quit [Quit: WeeChat 0.4.3]
<klmlfl> I think they are accessible
thsig has joined #ruby
Xeago has joined #ruby
<workmad3> klmlfl: ok, question 1 answered... why?
mikecmpbll has quit [Quit: i've nodded off.]
<shevy> olivier_bK was there a question in your sentence?
<klmlfl> They should be accessible within the methods, meaning I think magic that happens in a method can alter their values if needed, and at least access them
<shevy> magic happens :)
<workmad3> klmlfl: ok, so you think that instance methods of a class have access to the local scope of the class body
mikecmpbll has joined #ruby
<workmad3> klmlfl: now, write some code that shows that this is the case
<klmlfl> Yes
<workmad3> klmlfl: or demonstrates that it isn't
<klmlfl> ok
<klmlfl> give me a minute, I'll be right back.
<workmad3> klmlfl: np ;)
kapil__ has quit [Quit: Connection closed for inactivity]
bestie has joined #ruby
<workmad3> I need coffee anyway :)
wald0 has joined #ruby
existensil has joined #ruby
doodlehaus has joined #ruby
oleo__ has quit [Quit: Verlassend]
Xeago_ has quit [Ping timeout: 250 seconds]
hexxx has joined #ruby
vyorkin has quit [Ping timeout: 240 seconds]
livathinos has quit [Remote host closed the connection]
drkyro has joined #ruby
hexxx has left #ruby [#ruby]
fabrice31 has quit [Remote host closed the connection]
crazydiamond has joined #ruby
silkfox has joined #ruby
<olivier_bK> shevy, i have another ruby script and i need to use this methode https://gist.github.com/zyriuse75/b62c2409fda3525dfa5c
renderful has joined #ruby
phutchins has joined #ruby
aganov has quit [Quit: Leaving]
<shevy> workmad3, when i do this: class Foo; bar = 5; define_method(:foo) {bar}; end where is foo() defined?
<shevy> olivier_bK you must include Color
ringarin has quit [Read error: Connection reset by peer]
<apeiros> interesting how it's still not a question
thsig_ has joined #ruby
<olivier_bK> i've included color but when i execute the script i get undefined method `colorize'
doodlehaus has quit [Remote host closed the connection]
mikecmpb_ has joined #ruby
<workmad3> shevy: it's defined as an instance method of Foo
konsolebox has quit [Ping timeout: 264 seconds]
ptrrr has quit [Quit: ptrrr]
anaeem1_ has quit [Ping timeout: 272 seconds]
<workmad3> shevy: that being what 'define_method' does ;)
<apeiros> olivier_bK: cool. we can now riddle or you can provide reproducable code.
Beoran__ has joined #ruby
anaeem1_ has joined #ruby
<apeiros> olivier_bK: personall I don't do the former.
msgodf has quit [Ping timeout: 265 seconds]
<apeiros> *personally
dANO has joined #ruby
Spami has joined #ruby
zybi1 has joined #ruby
pushpak has joined #ruby
<workmad3> klmlfl: how's it coming along? :)
<olivier_bK> how do you make ?
<klmlfl> this doesn't work
mikecmpbll has quit [Ping timeout: 255 seconds]
renderful has quit [Ping timeout: 264 seconds]
<klmlfl> this does
mikecmpb_ has quit [Client Quit]
thsig has quit [Ping timeout: 255 seconds]
<workmad3> klmlfl: right... but does the second one print out 'Hello' or 'nil'?
Axy has joined #ruby
<klmlfl> nil
<workmad3> klmlfl: ok... so what can you conclude?
<klmlfl> i dont know
mikecmpbll has joined #ruby
<workmad3> klmlfl: well, for starters you can conclude that instance variables aren't local variables, I'd hope ;)
<klmlfl> i can't get it to print hello at all
<shevy> olivier_bK you need to show the code that leads to the error you described
<klmlfl> yes, i got that.
Beoran_ has quit [Ping timeout: 250 seconds]
karmatr0n has quit [Remote host closed the connection]
<klmlfl> what was strange to me though
Mia has quit [Ping timeout: 255 seconds]
<klmlfl> on the second example
<workmad3> klmlfl: secondly, you can conclude that you can't access 'var' from inside the method definition
<klmlfl> i didnt declare var as an @ivar
<klmlfl> but in the method i did
<klmlfl> i did access as it as an @ivar **
<workmad3> klmlfl: 'def' doesn't give you access to the local scope you write it in
<benzrf> >mfw methods are not closures
roolo has joined #ruby
<shevy> yeah workmad3 I was being dumb and forgot .new ... works fine now -> class Foo; bar = 5; define_method(:foo) {bar}; end; Foo.new.foo
oleo has joined #ruby
FooMunki has joined #ruby
<workmad3> benzrf: I was about to use that as the way to introduce the concept of a closure ;)
<workmad3> benzrf: but you can do that now :P
<klmlfl> How can I get it to print Hello
<klmlfl> ..
jonr22 has joined #ruby
mikepack has joined #ruby
<klmlfl> How can I get a method to access var
<klmlfl> any way possible
<klmlfl> ?
ponga has joined #ruby
<workmad3> klmlfl: ok, as benzrf just said, a method defined with 'def' is not what's called a 'closure'
ponga has quit [Changing host]
ponga has joined #ruby
karmatr0_ has joined #ruby
<workmad3> klmlfl: a 'closure' is a technical way of saying "Has access to its surrounding scope" (in some sense)
Xeago_ has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
sevenseacat has quit [Remote host closed the connection]
alex88 has quit []
<workmad3> klmlfl: so, if you were paying attention to the back-and-forth between myself and shevy, you may have noticed me point out a way to define a method that *is* a closure
<workmad3> klmlfl: using 'define_method'
Axy has quit [Ping timeout: 255 seconds]
<klmlfl> ok
dangerousdave has joined #ruby
<klmlfl> so is the simple answer that a variable outside of a method can't be accessed?
patrick99e99 has joined #ruby
<klmlfl> regardless of whether its a @ivar or not
<klmlfl> because that's what it seems like to me.
agjacome has quit [Quit: leaving]
apope has joined #ruby
ndrei has quit [Ping timeout: 258 seconds]
<klmlfl> I tried to access var (or @var) within the method definition to puts it
<klmlfl> but the best i got was nil.
<workmad3> klmlfl: ok, so the next thing for you to check quickly... what is 'self' both inside and outside the method?
<klmlfl> k
<workmad3> klmlfl: first - what's your intuition?
<klmlfl> hm.
Scripore has quit [Ping timeout: 258 seconds]
mikepack has quit [Ping timeout: 256 seconds]
FooMunki has quit [Quit: FooMunki]
DaniG2k has quit [Ping timeout: 244 seconds]
NoNMaDDeN has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 272 seconds]
<klmlfl> I don't know. All I know is I think that's part of the solution because of how you presented it
<klmlfl> lol
<klmlfl> self refers to the object
<klmlfl> so..
atomical has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
konsolebox has joined #ruby
<workmad3> klmlfl: ok... so what changes with 'self' when you're inside and outside the object?
<klmlfl> self.var refers to the particular objects variable
<workmad3> klmlfl: no... 'self.var' calls the method 'var' on 'self'
<klmlfl> var isn't a method
<workmad3> s/inside and outside the method'
samuel02 has quit [Remote host closed the connection]
<workmad3> klmlfl: when you do 'self.var' you're calling a method though ;)
<workmad3> klmlfl: which should give you a hint why your first attempt with Person.new.age wasn't working ;)
<klmlfl> what if var is nothing more than "string"
jenrzzz has quit [Ping timeout: 240 seconds]
<klmlfl> so self.var
<klmlfl> does that puts it
<klmlfl> print it
<klmlfl> or something else it
<workmad3> klmlfl: no... you can't do 'self.var' unless you've defined a *method* var
<workmad3> klmlfl: and that's also not actually what I was asking
olivier_bK has quit [Ping timeout: 244 seconds]
<klmlfl> oh okay
jottr has joined #ruby
<workmad3> klmlfl: what do you think the value of *self* is when you're inside the method compared to outside the method in your code
shazaum has quit [Quit: Leaving]
<workmad3> klmlfl: e.g. 'class Person; self <-- what is self here?; def foo; self <-- what is self here?; end; end'
<klmlfl> oh okay
ikaros has quit [Quit: Ex-Chat]
Guest15281 has quit [Ping timeout: 258 seconds]
<klmlfl> my intuition: the first self refers to the object
bracky_ has joined #ruby
NoNMaDDeN has joined #ruby
<workmad3> klmlfl: the 'self' outside the method definition?
FooMunki has joined #ruby
<klmlfl> yes
<workmad3> klmlfl: ok... your intuition is leading you astray
<klmlfl> ok
<workmad3> klmlfl: 'self' outside the method is the *class*
C0deMaver1ck_ has joined #ruby
<workmad3> klmlfl: 'self' inside an instance method is the object you called the method on
freerobby has joined #ruby
tvw has joined #ruby
bracky has quit [Ping timeout: 265 seconds]
jottr has quit [Ping timeout: 264 seconds]
karmatr0_ has quit [Remote host closed the connection]
bracky_ has quit [Ping timeout: 240 seconds]
krz has quit [Quit: WeeChat 1.0.1]
mikepack has joined #ruby
shazaum has joined #ruby
chabier has joined #ruby
<workmad3> klmlfl: i.e. the context of your code changes when you're inside and outside the method definition... outside, the code is running on a class, inside the code is running on an instance... so @ivars, which we already stated are automatically private to an object, can't be accessed directly when they're declared outside method and referenced inside a method
<workmad3> klmlfl: but you *could* access an ivar that you set in one method and use in another method
eind has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<workmad3> klmlfl: e.g. you could write an initialze method that sets an ivar, and another method that returns the value of that ivar
<workmad3> *initialize
mary5030 has joined #ruby
Takle has quit [Read error: Connection reset by peer]
_ixti_ has joined #ruby
<klmlfl> Ok that makes sense.
Takle has joined #ruby
jbueza has joined #ruby
<workmad3> klmlfl: now, local variables work slightly differently... they can only be accessed from within the scope they were defined in
<klmlfl> I dont seem to have a problem understanding local variables - the variables inside of methods)
eind has quit [Remote host closed the connection]
<workmad3> klmlfl: and you can think of a scope, for now, as the code between 'class ... end', 'module ... end' and 'def ... end' (all of which create new scopes)
<klmlfl> They are very limited
<workmad3> klmlfl: so 'class Foobar; var = "hello" <-- that's a local variable; end'
ixti has quit [Ping timeout: 245 seconds]
<workmad3> klmlfl: so you can only access 'var' from inside the same scope
<klmlfl> from the class
<klmlfl> not from an object of the class
<workmad3> klmlfl: the other important bit about 'def', 'class' and 'module' is that they *remove* your access to the outside local variable scope
chabier has quit [Ping timeout: 272 seconds]
<klmlfl> right?
<klmlfl> or from a method within the class
<workmad3> klmlfl: so when you write 'def', all the code up until its closing 'end' can't access local variables from outside it
<workmad3> klmlfl: what's important for local variables is scopes, not objects and classes ;)
<workmad3> klmlfl: hence why I changed the terminology
<klmlfl> Ok I got it.
doev has quit [Quit: Verlassend]
einarj has quit [Remote host closed the connection]
<workmad3> klmlfl: it's important, because if you write some code that re-opens a class, e.g. 'class Foo; var = "hello"; end; class Foo; var <-- Local variable doesn't exist here; end'
<workmad3> klmlfl: so even though when you did 'class Foo' for the second time you were working with the same class, the scope has changed
<klmlfl> so a variable outside of a method definition cannot access any of the code inside of the method, variables and such.
<workmad3> klmlfl: correct
mary5030 has quit [Remote host closed the connection]
apope has quit [Quit: apope]
<workmad3> klmlfl: and code inside a method (written with 'def') also can't access local variables from outside it
<klmlfl> got it.
mary5030 has joined #ruby
silkfox has quit [Ping timeout: 256 seconds]
Vile` has joined #ruby
<workmad3> klmlfl: also, when you do 'some_object.something', 'something' there is *always* a method call, never something else (so it's not accessing an instance variable, not accessing a local variable... it's only a method call)
sdwrage has joined #ruby
<workmad3> klmlfl: so, with all of that information and explanation, do you think you could redo your original non-working code and get it to work? :)
<klmlfl> see..
<klmlfl> I thought .something could be a method (whatever is returned from a method) or a variable.
<ericwood> ivar access like that is just a method call
<klmlfl> Yea, I could.
<ericwood> attr_accessor and its ilk are syntactic sugar for getter/setter methods for ivars :D
mary5030_ has joined #ruby
eind has joined #ruby
<workmad3> ericwood: heh :) I was going to mention attr_accessor and its ilk after he got working code :P
lolmaus has quit [Quit: Konversation terminated!]
apeiros_ has joined #ruby
<ericwood> oops did I ruin it
<workmad3> ericwood: not quite yet ;)
atomical has joined #ruby
mary5030 has quit [Ping timeout: 258 seconds]
<ericwood> make 'em write java so they understand how good they have it with this syntactic sugar :D
silkfox has joined #ruby
<ericwood> "you tellin me I don't have to write 1000 lines to make that happen?!"
apeiros_ has quit [Read error: Connection reset by peer]
apope has joined #ruby
<workmad3> ericwood: I'm pretty sure that violates several international human rights treaties...
<workmad3> ericwood: it may even make you susceptible to charges of war crimes...
apeiros_ has joined #ruby
<ericwood> I hate java so much, but it did put hair on my chest
<workmad3> :)
lolmaus has joined #ruby
<workmad3> ericwood: tbh, I don't mind java itself too much... it's a bit verbose and annoying, but it's not too bad
<workmad3> ericwood: what I dislike is the J2EE ecosystem and the boilerplate and crap and hoops you have to deal with to get even the simplest crap working there
mayday_jay has quit [Quit: c ya!]
jonr2219 has joined #ruby
<workmad3> ericwood: oh, and the over-reliance on inheritance in most java architectures and frameworks... lets not forget about that :)
<ericwood> overall it didn't make me happy so I was like "naaaaaaaaahhhhh"
<ericwood> and now i write ruby all dayyyyy
<ericwood> errydayyyy
chabier has joined #ruby
<workmad3> yeah, it doesn't make me happy if I hear 'you have to write some java'
<ericwood> that's why JRuby is a thing :D
<workmad3> but hearing 'you have to write in Spring with a J2EE servlet container' and you'll see nowt but a cloud of dust
Seich has quit [Ping timeout: 258 seconds]
karmatr0n has joined #ruby
<ericwood> if someone told me that I'd hand in my badge and quit programming
St_Marx has quit [Remote host closed the connection]
<workmad3> ericwood: you'd have to give up your decoder ring too
<ericwood> :o
<ericwood> but it has my private key
<workmad3> ericwood: I'm pretty sure your private key is already in the public domain then :P
<ericwood> :D
<ericwood> okay time to go jam! peace out!
<workmad3> hf
<workmad3> klmlfl: well, it's code that works now at least ;)
Seich has joined #ruby
iamjarvo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Hanmac has quit [Quit: Leaving.]
jonr2219 has quit [Ping timeout: 244 seconds]
mikecmpb_ has joined #ruby
Darryl_ has joined #ruby
Hanmac has joined #ruby
Photism has quit [Quit: Leaving]
vyorkin has joined #ruby
startupality has quit [Quit: startupality]
alaa has quit [Ping timeout: 255 seconds]
blackmesa has quit [Ping timeout: 256 seconds]
Lingo has joined #ruby
josephndenton has quit [Ping timeout: 256 seconds]
St_Marx has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
diegoviola has quit [Quit: WeeChat 1.0.1]
mikecmpbll has quit [Ping timeout: 256 seconds]
lolmaus has quit [Quit: Konversation terminated!]
anaeem1 has joined #ruby
Snowstormer has quit [Quit: ZNC - http://znc.in]
tobago has quit [Remote host closed the connection]
anaeem1 has quit [Read error: Connection reset by peer]
Snowstormer has joined #ruby
anaeem1_ has joined #ruby
Snowstormer is now known as Guest64049
silkfox has quit [Ping timeout: 264 seconds]
mayday_jay has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
Linuus has quit [Ping timeout: 256 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Guest64049 is now known as Snowstormer
Snowstormer has quit [Changing host]
Snowstormer has joined #ruby
apope has quit [Quit: apope]
silkfox has joined #ruby
jheg has quit [Quit: jheg]
Disorganized has quit [Quit: Disorganized]
<ponga> p
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
triple_b has joined #ruby
Advocation has joined #ruby
shredding has left #ruby [#ruby]
BlackGear has quit [Quit: ZZZzzz…]
Takle has quit [Remote host closed the connection]
vyorkin has quit [Ping timeout: 255 seconds]
F__i__L has quit [Quit: Konversation terminated!]
joonty has quit [Quit: Leaving]
Mia has quit [Read error: Connection reset by peer]
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Takle has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
bestie has quit [Ping timeout: 258 seconds]
mikecmpb_ has quit [Ping timeout: 240 seconds]
emmesswhy has joined #ruby
bestie has joined #ruby
dangerousdave has joined #ruby
boombadaroomba has joined #ruby
NoNMaDDeN has quit [Remote host closed the connection]
rocknrollmarc has joined #ruby
gtrak has joined #ruby
Takle_ has joined #ruby
emmesswhy has quit [Ping timeout: 255 seconds]
<mostlybadfly> klmlfl: what is that
Takle has quit [Read error: Connection reset by peer]
<klmlfl> thats for workmad3
<mostlybadfly> Ah cool
emmesswhy has joined #ruby
<mostlybadfly> Hello :)
boombadaroomba has quit [Ping timeout: 264 seconds]
FooMunki has quit [Quit: FooMunki]
<ponga> nice to see you here mostlybadfly
rpag has joined #ruby
ptrrr has joined #ruby
atomical has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
atomical has joined #ruby
apoorvparijat has quit [Remote host closed the connection]
sdwrage has joined #ruby
<mostlybadfly> ponga: you too
dANO has quit []
sdwrage has quit [Client Quit]
<klmlfl> workmad3: I finally understand it!
atomical has quit [Ping timeout: 258 seconds]
banister_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<klmlfl> Your help along with this made it make sense: http://stackoverflow.com/questions/6669527/use-of-ruby-self-keyword
Scripore has joined #ruby
DogsAndCats has joined #ruby
snath has quit [Ping timeout: 264 seconds]
samflores has left #ruby [#ruby]
Takle_ has quit [Remote host closed the connection]
<workmad3> klmlfl: yay :)
sea_local has joined #ruby
sdwrage has joined #ruby
snath has joined #ruby
atomical has joined #ruby
<shevy> anyone knows if sepp2k has an IRC nick here?
freerobby has quit [Quit: Leaving.]
Takle has joined #ruby
<apeiros_> he used to be online and around quite a bit a while back
blackmesa has joined #ruby
<apeiros_> haven't seen him lately, though
<shevy> ah ok, good to know he was using IRC, thanks
<apeiros_> Last seen : Nov 20 14:05:16 2014 (1 week, 1 day, 03:26:10 ago)
eind has quit [Quit: Leaving...]
freerobby has joined #ruby
Wapitidou has quit [Ping timeout: 265 seconds]
freerobby has quit [Client Quit]
banister has joined #ruby
quimrstorres has quit [Remote host closed the connection]
fandi has joined #ruby
jerius has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
shazaum_ has joined #ruby
ghr has joined #ruby
Takle has quit [Ping timeout: 265 seconds]
jonr22 has quit [Remote host closed the connection]
Takle has joined #ruby
ptrrr has quit [Quit: ptrrr]
ctp has joined #ruby
shazaum has quit [Ping timeout: 265 seconds]
shazaum_ is now known as shazaum
ctp has quit [Client Quit]
jbueza has joined #ruby
shazaum has quit [Changing host]
shazaum has joined #ruby
DaniG2k has joined #ruby
DaniG2k has quit [Client Quit]
stoffus has quit [Quit: leaving]
ekinmur has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghr has quit [Ping timeout: 265 seconds]
rippa has quit [Ping timeout: 265 seconds]
despai has joined #ruby
posixpascal has joined #ruby
Takle has quit [Ping timeout: 258 seconds]
robbyoconnor has quit [Excess Flood]
AMDmi3 has joined #ruby
Takle_ has joined #ruby
robbyoconnor has joined #ruby
adriancb has joined #ruby
<AMDmi3> hi; what meaning does PREFIX environment variable have for ruby/rake?
Takle_ has quit [Remote host closed the connection]
<AMDmi3> the problem is that with it defined I have `Could not find rake (>= 0) amongst [] (Gem::LoadError)' error after calling rake
Takle_ has joined #ruby
livingstn has joined #ruby
lucyinthesky has joined #ruby
terlar has quit [Ping timeout: 264 seconds]
mloveless has joined #ruby
Lingo has quit [Quit: (null)]
Takle_ has quit [Read error: Connection reset by peer]
sdwrage has joined #ruby
Takle has joined #ruby
marcdel has joined #ruby
eindoofus__ has joined #ruby
Takle has quit [Read error: Connection reset by peer]
adriancb has quit [Ping timeout: 258 seconds]
<eindoofus__> hi, does anyone know how the return works on a method like "def price=(ammount) ... end" ?
quimrstorres has joined #ruby
<eindoofus__> does it return the first value assigned?
gargarin has joined #ruby
thsig_ has quit [Remote host closed the connection]
fabrice31 has joined #ruby
quimrstorres has quit [Remote host closed the connection]
sdwrage has quit [Client Quit]
Takle has joined #ruby
ptrrr has joined #ruby
<Hanmac> eindoofus__: it does depend how the function is called
fabrice31 has quit [Ping timeout: 245 seconds]
<Hanmac> >> def price=(value); return "ups"; end; p self.price = 40
RitterJack has quit [Remote host closed the connection]
<Hanmac> >>def price=(value); return "ups"; end; p self.send(:price=,40)
<Hanmac> huch where is my evalin respond?
<eval-in__> Hanmac => "ups" ... (https://eval.in/227840)
<Hanmac> >>def price=(value); return "ups"; end; p self.price = 40
<eval-in__> Hanmac => 40 ... (https://eval.in/227841)
<Hanmac> eindoofus__: as you can see, calling it without send does ignore the return value of that function
rkalfane has joined #ruby
jimbach has quit [Remote host closed the connection]
quimrstorres has joined #ruby
devoldmx has joined #ruby
<eindoofus__> thanks. good to know
<eindoofus__> when called with "self.price = 40" does "def price=(value)" simply return the argument passed in?
rkalfane has quit [Client Quit]
axisys has quit [Remote host closed the connection]
jimms has quit [Remote host closed the connection]
doodlehaus has joined #ruby
neoxquick has joined #ruby
Xeago_ has quit [Remote host closed the connection]
rippa has joined #ruby
axisys has joined #ruby
axisys has quit [Changing host]
axisys has joined #ruby
lolmaus has joined #ruby
Tranquility has joined #ruby
rkalfane has joined #ruby
lucyinthesky has quit [Quit: with birds I'll share this lonely view]
iamjarvo_ has joined #ruby
<Hanmac> eindoofus__: hm yes it does, or more the return from that price= functions is just simply ignored
ki0 has quit [Ping timeout: 240 seconds]
jonr22 has joined #ruby
gargarin has left #ruby [#ruby]
<shevy> lol
<shevy> Hanmac funny idea. also utterly useless
timonv^ has quit [Remote host closed the connection]
<Hanmac> like 99% of the internet ;P
Hobogrammer has joined #ruby
<shevy> no
<shevy> there is more than 1% pr0n
jottr has joined #ruby
<shevy> also don't forget the cartoons you copy paste Hanmac
<shevy> and town maps!
<shevy> without them I am totally lost in my home town
<shevy> that way I found out yesterday that walking uphill really sucks when it is cold
<shevy> the wind goes downwards, so it appears almost twice as cold there
mikecmpbll has joined #ruby
m0rphy has joined #ruby
jottr has quit [Ping timeout: 265 seconds]
jheg has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
<shevy> I seem to determine the base directory of a ruby installation into site prefix with this
<shevy> BASE_DIR = File.absolute_path(File.dirname(__FILE__)+'/..')+'/'
bigkevmcd has quit [Quit: Outta here...]
<shevy> that seems to work so well that I wonder why people use Pathname
<shevy> (of a gem-based project)
<shevy> Hanmac I dunno, I lost touch with modern-day comics
<shevy> I grew up with Tom and Jerry - and this theme song haha https://www.youtube.com/watch?v=v4aFZw_gXas
ekinmur has quit [Quit: no longer available]
Pumukel has joined #ruby
chabier has quit [Remote host closed the connection]
DogsAndCats has quit [Quit: Leaving]
<shevy> damn
<shevy> the long version sucks compared to the theme variant :(
Advocation has quit [Quit: Advocation]
m8 has joined #ruby
rylev has joined #ruby
m8 has quit [Changing host]
m8 has joined #ruby
diamonds has joined #ruby
diamonds has quit [Changing host]
diamonds has joined #ruby
Advocation has joined #ruby
jottr has joined #ruby
jeanlinux has quit [Remote host closed the connection]
kamil has quit [Quit: Leaving...]
auxbuss has joined #ruby
banister has quit [Ping timeout: 265 seconds]
inkblots_ has joined #ruby
Advocation has quit [Client Quit]
auxbuss has quit [Client Quit]
jonr2219 has joined #ruby
lmickh has quit [Remote host closed the connection]
nkumari has joined #ruby
Zawisza007 has joined #ruby
AMDmi3 has left #ruby [#ruby]
chabier has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
nkumari has quit [Remote host closed the connection]
ringarin has joined #ruby
ghr has joined #ruby
eat_multi has joined #ruby
jonr2219 has quit [Ping timeout: 240 seconds]
giuseppesolinas has joined #ruby
jottr_ has joined #ruby
Cache_Money has joined #ruby
max96at|off is now known as max96at
fxn has quit [Quit: bye]
Trieste has quit [Quit: ZNC - http://znc.in]
doodlehaus has quit []
blackmesa has quit [Ping timeout: 240 seconds]
diegoviola has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Trieste has joined #ruby
ndrei has joined #ruby
Cache_Money has quit [Remote host closed the connection]
chabier has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 244 seconds]
jottr has quit [Ping timeout: 256 seconds]
Pupeno has quit [Remote host closed the connection]
chabier has joined #ruby
chabier_ has joined #ruby
apope has joined #ruby
nkumari has joined #ruby
Zawisza007 has quit [Remote host closed the connection]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
St_Marx has quit [Ping timeout: 250 seconds]
Trieste has quit [Quit: ZNC - http://znc.in]
banister has joined #ruby
chabier has quit [Ping timeout: 256 seconds]
jheg has quit [Quit: jheg]
kiyote23 has joined #ruby
pushpak has quit [Quit: Linkinus - http://linkinus.com]
Timgauthier has joined #ruby
AugustoC has joined #ruby
tastycode has joined #ruby
St_Marx has joined #ruby
avrc has quit [Quit: this channel is bakas]
Timgauthier has quit [Client Quit]
kiyote23 has quit [Remote host closed the connection]
emmesswhy has joined #ruby
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
kiyote23 has joined #ruby
wald0 has quit [Ping timeout: 240 seconds]
kirun has joined #ruby
wald0 has joined #ruby
blackmesa has joined #ruby
Trieste has joined #ruby
tastycode has quit [Ping timeout: 244 seconds]
emmesswhy has quit [Ping timeout: 240 seconds]
anaeem1_ has quit [Remote host closed the connection]
n1lo has quit [Ping timeout: 256 seconds]
kiyote23 has quit [Ping timeout: 272 seconds]
emmesswhy has joined #ruby
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kireevco has joined #ruby
supersym has joined #ruby
jbueza has joined #ruby
emmesswhy has quit [Read error: Connection reset by peer]
kyb3r_ has joined #ruby
<arup_r> >> string = "Only delete the foo and the bar" ; p string.gsub(/\w+/, Hash[arr.product([""])])
<eval-in__> arup_r => undefined local variable or method `arr' for main:Object (NameError) ... (https://eval.in/227879)
Kricir has quit [Remote host closed the connection]
emmesswhy has joined #ruby
<arup_r> >> string = "Only delete the foo and the bar" ; arr = ["foo", "bar"]; p string.gsub(/\w+/, Hash[arr.product([""])])
<arup_r> Why Am I getting the => " "
eat_multi has quit [Quit: leaving]
Megtastique has quit []
<arup_r> I wanted to replace only 'foo' and 'bar'
<arup_r> But all words got vanished.. WHY?
tastycode has joined #ruby
jheg has joined #ruby
livingstn has quit []
jamooo has quit [Ping timeout: 256 seconds]
bogeyd6 has joined #ruby
jonr22 has quit [Remote host closed the connection]
jamooo has joined #ruby
ekinmur has joined #ruby
ekinmur has quit [Client Quit]
rocknrollmarc has quit [Ping timeout: 240 seconds]
rylev has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ekinmur has joined #ruby
ekinmur has quit [Client Quit]
chabier_ has quit [Remote host closed the connection]
claptor has quit [Quit: this channel is bakas]
ziggles has joined #ruby
<ziggles> I'm working on a gem that has some random binary files (audio/images). Where in the gem's directory structure should I store these files?
timonv_ has joined #ruby
St_Marx has quit [Remote host closed the connection]
<ziggles> i have them in bin/sounds bin/images right now.
<rpag> ziggles, data/ usually.
<rpag> bin/ is normally reserved for executables
St_Marx has joined #ruby
boombadaroomba has joined #ruby
claymore has joined #ruby
<ziggles> rpag: just googled about data/ ...
<ziggles> rpag: http://ruby-doc.org/stdlib-1.9.2/libdoc/rubygems/rdoc/Gem.html#method-c-datadir looks like data dir is the correct spot!
n1lo has joined #ruby
<apeiros_> it is
<ziggles> Whoops... that was for Ruby 1.9.2... but the same doc page exists for 2.1.5
<ziggles> thanks a ton
<apeiros_> ruby version doesn't really matter
<apeiros_> rubygems is versioned separately
tastycode has quit [Ping timeout: 250 seconds]
<ziggles> @apeiros_ well it kind of does... If you look @ the source there's a comment saying the dir should be deprecated
<ziggles> so that's good to know i guess lol
<rpag> data/<your gem name>/ seems to be the convention there
<apeiros_> iirc drbrain said the method should be deprecated, not the dir.
<apeiros_> but the way it's structured is annoying
spacemud has quit [Ping timeout: 250 seconds]
tastycode has joined #ruby
<ziggles> @apeiros_ ah yeah, that's correct. I misinterpreted the comment
iamjarvo_ has quit [Read error: Connection reset by peer]
iamjarvo_ has joined #ruby
boombadaroomba has quit [Ping timeout: 264 seconds]
spacemud has joined #ruby
<ziggles> apeiros_ / rpag do you know how i should be calling the data dir from within my gem? Currently i've been getting at my bin files via joining on the root
<ziggles> something like this: gem_root = Gem::Specification.find_by_name('my_gem')
vyorkin has joined #ruby
iamjarv__ has joined #ruby
ldnunes has quit [Quit: Leaving]
shazaum has quit [Quit: This computer has gone to sleep]
iamjarv__ has quit [Max SendQ exceeded]
<ziggles> then getting at data or bin i would end up with `.bin = File.join(gem_root, 'bin')`
bogeyd6 has quit [Quit: Leaving]
iamjarv__ has joined #ruby
dangerousdave has joined #ruby
<rpag> Gem.datadir('mygem') should work, but thats deprecated (apparently?) and couples you to rubygems.
iamjarv__ has quit [Max SendQ exceeded]
iamjarv__ has joined #ruby
apoorvparijat has joined #ruby
iamjarv__ has quit [Max SendQ exceeded]
jaequery has joined #ruby
anaeem1_ has joined #ruby
samuel02 has joined #ruby
<rpag> if you're at lib/mygem.rb, DATA_DIR = File.join(__dir__, '..', 'data', 'mygem') should also work
ldnunes has joined #ruby
iamjarvo_ has quit [Ping timeout: 244 seconds]
<rpag> ruby2+ for __dir__
<apeiros_> rpag: no
<apeiros_> you can't rely on your gem structure staying together
timonv_ has quit [Ping timeout: 240 seconds]
p8952 has quit [Quit: ZNC - http://znc.in]
<rpag> how come?
<apeiros_> ziggles: use the Gem.datadir, even if it's marked to be deprecated.
<apeiros_> rpag: because gem makes no guarantee to retain the structure.
<apeiros_> it could store the lib, bin and datadir in separate places.
<rpag> does it though, in practice?
<apeiros_> note: I'm not aware of this happening anywhere. but it's needless coupling anyway.
apoorvparijat has quit [Ping timeout: 240 seconds]
asmodlol has joined #ruby
jimms has joined #ruby
chrishough has joined #ruby
<rpag> it just assumes __dir__ will be relative to lib/mygem.rb, i haven't seen that not be the case
last_staff has joined #ruby
quimrstorres has quit [Remote host closed the connection]
<apeiros_> yes. and you don't need to do that. don't use bad design principles if you don't have to.
samuel02 has quit [Ping timeout: 250 seconds]
<apeiros_> you can go entirely without any assumption. so why would you choose to make one?
nanashiRei has quit [Ping timeout: 264 seconds]
asmodlol has quit [Client Quit]
nastri has quit [Read error: Connection reset by peer]
inkblots_ has quit [Quit: WeeChat 0.4.2]
ruby-issues has joined #ruby
jeanlinux has joined #ruby
<rpag> i don't think its a bad assumption to make, your coupled to relatively (lib/../data will always be there), or coupled to rubygems + Gem.datadir.
<rpag> relativity*
ArchBeOS has quit [Quit: Page closed]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jottr_ has quit [Ping timeout: 255 seconds]
<ruby-issues> Hi, im having an syntax issue i cant quite figure out. Is anyone able to help? http://paste.ee/p/kSzg1
chabier has joined #ruby
<rpag> ruby-issues, you're trying to use interpolation on a single quoted string
<apeiros_> rpag: *an assumption* vs *no assumption*. you already lost.
<apeiros_> I don't see how we're even debating this.
iamjarvo_ has joined #ruby
wald0 has quit [Quit: Lost terminal]
<apeiros_> well, actually I'm not anymore. if you want make bad design decisions, go ahead. you've been told.
p8952 has joined #ruby
<ruby-issues> rpag: i am?
<rpag> apeiros, *shrug*, totally subjective, i don't see it as a bad design decision
adriancb has joined #ruby
mloveless has quit [Remote host closed the connection]
<apeiros_> tbh, you've to be quite blind to not see it.
<ruby-issues> rpag: the only part in single quotes is the require 'open-uri'
Vile` has quit [Ping timeout: 240 seconds]
<rpag> ruby-issues, sorry, you're not
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ruby-issues> seems im losing the output after the ampersand
<rpag> oh i see
<rpag> try line.chomp
<rpag> its inserting a newline in there
jeanlinux has quit [Ping timeout: 264 seconds]
adriancb has quit [Remote host closed the connection]
<ruby-issues> im very new, can you give me a little more ?
<rpag> "line" is something like "CloudServer\n".
moritzs has joined #ruby
ponga has quit [Quit: Leaving...]
Vile` has joined #ruby
tastycode has quit [Ping timeout: 240 seconds]
tastycode_ has joined #ruby
jbueza has joined #ruby
<ruby-issues> rpag: so like |line\n|
iamjarvo_ has quit [Ping timeout: 264 seconds]
<rpag> that'd be a syntax error, but if you mean line embeds a newline(\n), then yeah
adriancb has joined #ruby
iamjarvo_ has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
arup_r has quit [Quit: Leaving.]
<rpag> try 'p line' and you should see the problem
Scripore has quit [Ping timeout: 272 seconds]
rylev has joined #ruby
rylev has quit [Remote host closed the connection]
<ruby-issues> rpag: ill have to look up what you mean
nanashiRei has joined #ruby
<rpag> before L6, add 'p line', it will show you the raw string
<ruby-issues> with single quotes?
<rpag> on L5, you may as well use #each, since you don't do anything with the return value of .map
<rpag> without single quotes
ghr has joined #ruby
chabier has quit [Remote host closed the connection]
rodfersou has quit [Remote host closed the connection]
rkalfane has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
fabrice31 has joined #ruby
bonhoeffer has joined #ruby
ghr has quit [Ping timeout: 258 seconds]
SCHAAP137 has joined #ruby
dcunit3d has quit [Ping timeout: 265 seconds]
<ruby-issues> the p line didnt show any different output
josephndenton has joined #ruby
tastycode_ has quit [Quit: tastycode_]
fabrice31 has quit [Ping timeout: 244 seconds]
kamil has joined #ruby
Lucky__ has joined #ruby
<ruby-issues> rpag: do i need backticks perhaps?
marcdel has quit []
bonhoeffer has quit [Quit: bonhoeffer]
tgandrews has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
Narzew has joined #ruby
<rpag> you just need to strip newlines from the local variable 'line'
bonhoeffer has joined #ruby
blackmesa has quit [Ping timeout: 245 seconds]
<ruby-issues> is there any docs on that?
diamonds has quit [Ping timeout: 256 seconds]
<ruby-issues> rpag: thanks for your patients
giuseppesolinas has quit [Quit: This computer has gone to sleep]
eindoofus__ has quit [Quit: Leaving]
gargarin has joined #ruby
bonhoeffer has quit [Ping timeout: 258 seconds]
apope has quit [Quit: apope]
jheg has quit [Quit: jheg]
zlude has quit [Ping timeout: 255 seconds]
<rpag> yups
atomical has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gargarin has left #ruby [#ruby]
echooo1 has quit [Read error: Connection reset by peer]
jimms has quit [Remote host closed the connection]
Mon_Ouie has quit [Quit: WeeChat 1.0.1]
snath has quit [Ping timeout: 264 seconds]
agjacome has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
timonv_ has joined #ruby
motto has joined #ruby
motto is now known as Guest78107
nkumari has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
m8 has quit [Ping timeout: 245 seconds]
dopie has joined #ruby
blackmesa has joined #ruby
Scripore has joined #ruby
nrsk has joined #ruby
toretore has quit [Ping timeout: 264 seconds]
apope has joined #ruby
nkumari has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
josephndenton has quit [Ping timeout: 256 seconds]
jaequery has joined #ruby
timonv_ has quit [Remote host closed the connection]
cleopatra has joined #ruby
<ruby-issues> rpag: i think ive tried every route so far still no luck. Are we talking about the |line| or the #{line}
klmlfl_ has joined #ruby
<rpag> #{line} part
<rpag> should most likely be #{line.chomp}
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<rpag> as a precaution, you may want to escape the query params as well
snath has joined #ruby
<totimkopf> hmm, does anyone know of an algorithms and DS book that uses ruby code instead of pseudocode?
jerius has quit []
<ruby-issues> rpag: i tried that and got /usr/lib/ruby/1.9.1/open-uri.rb:254:in `open_http': userinfo not supported. [RFC3986] (ArgumentError)
zybi1 has quit [Read error: Connection reset by peer]
NoNMaDDeN has joined #ruby
jaequery has quit [Ping timeout: 250 seconds]
klmlfl has quit [Ping timeout: 255 seconds]
ldnunes has quit [Quit: Leaving]
Avahey has joined #ruby
<ruby-issues> rpag: if i escaped it like this ..... /nph-vpn.cgi?name=#{line.chomp}&cmd=status (URI::InvalidURIError)
jds has quit [Quit: Connection closed for inactivity]
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<rpag> is the user+pass for basic HTTP auth?
<ruby-issues> rpag: which does give me the '&cmdstatus' part
<rpag> you might have to use net/http instead
<ruby-issues> rpag: im not sure
<rpag> i would guess so
zybi1 has joined #ruby
NoNMaDDeN has quit [Ping timeout: 240 seconds]
iamninja has joined #ruby
<rpag> can you paste the example code again?
klmlfl_ has quit [Ping timeout: 272 seconds]
<shevy> paste it right here!
iamjarvo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<rpag> its 80-ish lines ;)
<shevy> the more the better
<shevy> which either refers to code or to girls, I dunno
emmesswhy has joined #ruby
<ruby-issues> thats the output with the require 'net/http'
<ruby-issues> not sure about the `initalize`
despai has quit [Quit: This computer has gone to sleep]
<shevy> ruby is like a filter language
<shevy> dataset.select.reject.profit!
<shevy> I find your code hard to read ruby-issues
<shevy> can you not make newlines before an if-conditional check? and use consistent indent?
apope has quit [Quit: apope]
<shevy> elsif
<shevy> tunnel.include? "down"
<shevy> that's really a difficult style
<ruby-issues> im not advanced enough to understand what you saying let alone do it :-)
<shevy> nah
<shevy> you have a newline there
<shevy> simply eliminate it in your editor
emmesswhy has quit [Ping timeout: 244 seconds]
<ruby-issues> i tested the .include method and it works so thats good for me :-)
<shevy> the ruby parser will happily accept a lot more
<shevy> but the human brain likes simplicity and beauty
sj has joined #ruby
<shevy> on the error "No such file or directory - https://admin:n3td0te!@192.168.10.10/nph-vpn.cgi?name=CloudServer&cmd=status (Errno::ENOENT)"
emmesswhy has joined #ruby
<shevy> this is typical for code that tries to check whether something exists
<shevy> usually it would happen via:
<shevy> if File.exist? '/some/file.txt'
<ruby-issues> the file does exist, the file has the word "CloudServer"
dcunit3d has joined #ruby
<shevy> ok but this can not be true
<shevy> can you see the content of file "sesw-vpn-1.rb" ?
danman has joined #ruby
<ruby-issues> yes
<shevy> can you paste the first ~10 lines on a pastie?
<ruby-issues> the content of the file is the code?
<shevy> well yeah
<shevy> it's just text, until the ruby parser tries to interprete it
<shevy> then MAGIC happens
<ruby-issues> this is all of it http://paste.ee/p/KfKmW
<shevy> well that is a strange error
<shevy> perhaps the .cgi script gives you a silly result?
<shevy> and does it work in your browser
<rpag> ruby-issues, http://pastie.org/private/s9eqkhstccsmwvfgkhqgq - i think you might need something like that.
<shevy> aha - rpag added ssl support
adriancb has quit [Remote host closed the connection]
<ruby-issues> it returns the value 'actve' in the browser
<ruby-issues> or with curl -s -k .... i get 'active' too
<ruby-issues> or with wget ...
Lingo_ has joined #ruby
<rpag> net/http is a bit bleh to use
oleo has quit [Remote host closed the connection]
<rpag> zillion ways to do the same thing
<ruby-issues> ok thanks ill try your method
<ruby-issues> yeah someone said i should cases over if statements too
<rpag> oh, basic_auth won't work
Tranquility has quit [Quit: Connection closed for inactivity]
Pupeno has joined #ruby
Pupeno has joined #ruby
<rpag> no Net::HTTP#basic_auth
apope has joined #ruby
<ruby-issues> so should i remove the '.new' or add the #basic_auth
apope has left #ruby [#ruby]
jimms has joined #ruby
oleo has joined #ruby
<shevy> :)
supersym has quit [Quit: WeeChat 1.0.1]
<rpag> that may work, there's HTTPRequest#basic_auth
Rampages_afk has quit [Ping timeout: 255 seconds]
<rpag> http.req should be http.request
ghr has joined #ruby
danman has quit [Quit: danman]
giuseppesolinas has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rkalfane has joined #ruby
<ruby-issues> /usr/lib/ruby/1.9.1/net/http.rb:799:in `connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError
rkalfane has quit [Client Quit]
diegoviola has quit [Remote host closed the connection]
cleopatra has quit [Remote host closed the connection]
<ruby-issues> is that becasue of a self signed cert?
rkalfane has joined #ruby
ghr has quit [Ping timeout: 255 seconds]
kyoshero has quit [Read error: Connection reset by peer]
<rpag> yeah, it could be, try add http.verify_mode = OpenSSL::SSL::VERIFY_NONE for now.
<rpag> that's really not recommended though
<rpag> but it'll be fine for now
yfeldblum has joined #ruby
<ruby-issues> it will be on an MPLS network so ...
last_staff has quit [Quit: last_staff]
iamjarvo_ has joined #ruby
<ruby-issues> ./sesw-vpn-3.rb:3:in `block in <main>': undefined local variable or method `http' for main:Object (NameError)
jamooo has quit [Ping timeout: 272 seconds]
moritzs has quit [Ping timeout: 255 seconds]
jamooo has joined #ruby
<rpag> you should add that line after http = ...
ringarin has quit [Ping timeout: 250 seconds]
<ruby-issues> w000t!!
<ruby-issues> The tunnel is ACTIVE
aspires has joined #ruby
<ruby-issues> your code skills rock
jheg has joined #ruby
<rpag> do you have a root certificate for that peer? because, you don't verify the cert at all
<ruby-issues> no
<shevy> we need certificates for that beer
<ruby-issues> i shouldnt need to..
<ruby-issues> its on an MPLS
kireevco has quit [Quit: Leaving.]
pandaant has joined #ruby
<ruby-issues> and will only work through a VPN
nkumari has quit [Remote host closed the connection]
<shevy> rpag is now officially the SSL guru of the channel
yourabi has joined #ruby
<rpag> shevy, *highly* unlikely
<totimkopf> whew, tons of algorithms and DS books for python, java etc but only a few ~100 pages for ruby
<totimkopf> ~100 page books, that is
despai has joined #ruby
<shevy> less to read
<shevy> less to master!
<totimkopf> haha
<totimkopf> or maybe ruby developers don't get algorithms/DS questions during interviews?
<jhass> I think it's simply that java, C and python are more popular in the education/research sections
<totimkopf> :(
<totimkopf> nobody is taking ruby serial
Scripore has quit [Ping timeout: 265 seconds]
<shevy> serial?
<tobiasvl> serialpodcast.org
<totimkopf> south park (man bear pig episode, al gore says 'serial' instead of 'serious'0
posixpascal has quit [Ping timeout: 256 seconds]
<shevy> k... never watched south park
<shevy> the only reference I know to it was from the chewbacca defence due to A.J. simpson or however the name of that guy was
<rpag> south park is funny
danguita has quit [Ping timeout: 250 seconds]
<rpag> but if youre easily offended, you'll be easily offended :D
<shevy> I sticked to the first ten series of the simpsons!
<rpag> south park is an adult cartoon at least compared to the simpsons
<rpag> i love futurama
<totimkopf> I am forced to read the highly intimidating CLRS book with lots of psuedocode and math
danguita has joined #ruby
<shevy> futurama was too advanced
<shevy> simpson appealed to the simple minds
<shevy> until they ruined it :(
Soda has quit [Ping timeout: 240 seconds]
<rpag> ran out of storyline
posixpascal has joined #ruby
<totimkopf> jhass: what book(s) do you recommend for algorithms and DS?
jonr22 has joined #ruby
yourabi has quit [Quit: Textual IRC Client: www.textualapp.com]
havenwood has joined #ruby
<jhass> wikipedia? dunno, I'm not so much of an algo guy
<shevy> jhass haha... oh well.. reading a book ... watching TV is so much easier :D
<jhass> I know right!
<jhass> you should start south park shevy
<apeiros> Datenstrukturen & Algorithmen. it's german, though :-p
<shevy> I dunno... the characters look so strange... like buttons
<totimkopf> apeiros: by Gunter Saake?
nkumari has joined #ruby
vyorkin has quit [Quit: WeeChat 1.0.1]
<apeiros> totimkopf: no, P. Widmayer
anaeem1_ has joined #ruby
<totimkopf> found it
<totimkopf> ah, you beat me
<apeiros> oh, no new issue?
<shevy> that title sounds very dull
anaeem1_ has quit [Read error: Connection reset by peer]
<apeiros> 13y old… well, I guess it doesn't really matter :)
anaeem1_ has joined #ruby
<apeiros> shevy: the topic is very dull. but IMO the book does quite a good job at explaining.
<totimkopf> hehe
<totimkopf> from what I see in the book's preview it's not as "mathy" as the CLRS book
Guest78107 has quit [Quit: Sto andando via]
<totimkopf> I don't have a CS bookground so I'm a little intimidated by advanced mathematics
<totimkopf> s/bookground/background
emmesswhy has quit [Quit: This computer has gone to sleep]
jimms has quit []
anaeem1_ has quit [Ping timeout: 250 seconds]
beilabs has joined #ruby
<shevy> I prefer the word bookground
<totimkopf> hehe
SCHAAP137 has quit [Ping timeout: 264 seconds]
SCHAAP137_ has joined #ruby
Dr3amc0d3r|away has quit [Ping timeout: 250 seconds]
Tranquility has joined #ruby
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Dr3amc0d3r|away has joined #ruby
mloveless has joined #ruby
greenbagels has joined #ruby
<totimkopf> but I'm not sure, I'd like to know why one algorithm is more efficient than another.
Soda has joined #ruby
<shevy> because it takes less steps than the other one!
<shevy> if you have a lamborghini you'll be faster than in a Volkswagen!!!
<apeiros> totimkopf: it's not hard. and it's valuable.
<apeiros> but yes, you don't need it in your average 0815 rails job
decoponio has quit [Quit: Leaving...]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
m8 has joined #ruby
ndrei has joined #ruby
weeb1e has quit [Read error: Connection reset by peer]
weeb1e has joined #ruby
pyx has joined #ruby
pyx has quit [Client Quit]
xymbol_ has quit [Quit: Be back later ...]
apoorvparijat has joined #ruby
aspires has quit []
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
kiyote23 has joined #ruby
tejas-manohar has joined #ruby
mary5030_ has quit [Remote host closed the connection]
mary5030 has joined #ruby
razieliyo has quit [Ping timeout: 272 seconds]
posixpascal has joined #ruby
apoorvparijat has quit [Ping timeout: 265 seconds]
auxbuss has joined #ruby
chabier has joined #ruby
mary5030 has quit [Ping timeout: 258 seconds]
startupality has joined #ruby
cleopatra has joined #ruby
uber_hulk has quit [Ping timeout: 264 seconds]
fabrice31 has joined #ruby
thsig has joined #ruby
elaptics is now known as elaptics`away
adriancb has joined #ruby
chabier_ has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
auxbuss has quit [Quit: I'm gone.]
chabier has quit [Ping timeout: 255 seconds]
silkfox has quit [Ping timeout: 272 seconds]
beilabs_ has joined #ruby
Pupeno has quit [Ping timeout: 265 seconds]
beilabs has quit [Ping timeout: 255 seconds]
fabrice31 has quit [Ping timeout: 240 seconds]
rkalfane has joined #ruby
Pupeno has joined #ruby
lampd1 has joined #ruby
Wapitidou has joined #ruby
adriancb has quit [Ping timeout: 255 seconds]
silkfox has joined #ruby
spacemud has quit [Ping timeout: 244 seconds]
chabier_ has quit [Ping timeout: 255 seconds]
toretore has joined #ruby
konsolebox has quit [Remote host closed the connection]
Megtastique has joined #ruby
klmlfl has joined #ruby
dts has joined #ruby
max96at is now known as max96at|off
kiyote23 has quit [Remote host closed the connection]
ghr has joined #ruby
elegant has joined #ruby
kiyote23 has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Pupeno has quit [Remote host closed the connection]
siwica has joined #ruby
despai has joined #ruby
Channel6 has joined #ruby
kiyote23_ has joined #ruby
kiyote23 has quit [Read error: Connection reset by peer]
cleopatra has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 245 seconds]
dts has quit [Quit: Leaving]
nkumari has quit [Remote host closed the connection]
dts has joined #ruby
thsig has quit [Remote host closed the connection]
spacemud has joined #ruby
siwica has quit [Remote host closed the connection]
siwica has joined #ruby
JCii8__ has joined #ruby
Morkel has quit [Quit: Morkel]
nkumari has joined #ruby
bot12 has joined #ruby
<bot12> hi
<bot12> So what ruby implementation is the fastest currently out here?
<bot12> jruby? mri ruby? ree (what is that?)?
<bot12> maglev, mrbuy, topaz
<elegant> generally mri ruby
<bot12> oh, there are so many
<bot12> mriruby = mruby?
JCii8_ has quit [Ping timeout: 240 seconds]
<shevy> if you discount startup time then I think jruby is the fastest
<bot12> ah
kyoshero has joined #ruby
<shevy> perhaps not
<shevy> :\
<bot12> shevy: hi!
marcdel has joined #ruby
<shevy> well
<bot12> shevy: eh, the point of all this is that I am using sass and the libsass isn't ready yet (no full map support)
chabier has joined #ruby
<bot12> and I want to speed up compilation
<shevy> I wonder if they discount startup time
jonr22 has quit [Remote host closed the connection]
<bot12> as all rubies should support the features required by sass, I could use another one - in the hope that it is faster then.
kamoh has joined #ruby
kyoshero has quit [Max SendQ exceeded]
<bot12> or can I tweak mri ruby somehow?
<shevy> oh jump down to "Recent benchmarks put JRuby in the lead, followed by MagLev, Rubinius, then MRI." on the stackoverflow page
<bot12> oh
<bot12> hehe, let's jump the bandwagon
<headius> jruby should be faster than the other impls on just about everything, but it takes a bit of warmup to get there
mkaesz has quit [Remote host closed the connection]
kyoshero has joined #ruby
<bot12> and what is the difference between jruby-1.7. and jruby-9000 ?
<bot12> I mean 9000 is quite a version hop, isn't it?
despai has quit [Quit: This computer has gone to sleep]
mkaesz has joined #ruby
<headius> 9000 introduces a new execution runtime, new encoding and IO subsystem, and jumps to 2.2 compatibility
whoisjake has joined #ruby
<bot12> so 9000 is newer and faster
<bot12> , right?
jonr22 has joined #ruby
<shevy> and free cookies
zybi1 has quit [Remote host closed the connection]
<headius> right now we're finishing up compatibility and stability, but yes, it should get much faster than earlier versions over the next several months
<bot12> cool
ziggles has quit []
<bot12> it also got some nooooode fanciness? I mean callback hell and all those goodies?
* bot12 wants to be faaaaaaancy
<bot12> headius: is +graal the bleeding edge/nightly thing?
<bot12> I mean, both are dev though
whoisjake has quit [Client Quit]
elegant has left #ruby [#ruby]
<headius> truffle/graal is experimental/research work so don't look for that soon...they're focusing exclusively on how fast they can make things in the ideal case
<headius> while still supporting all Ruby features
<apeiros> and how fast can they make it in the ideal case? :)
<bot12> headius: but if it runs and sass compiles everything with that graal thing I could use that safely?
<bot12> apeiros: ruby mascot will come out of your box and abuse you
<apeiros> bot12: not a funny joke. please refrain.
<bot12> :)
<bot12> what mascot got ruby btw
mkaesz has quit [Ping timeout: 240 seconds]
<shevy> a ruby
<apeiros> there's that girl
<zacts> bot12: um a ruby ;-P
<shevy> bot12 don't let apeiros distract you with promises of pretty girls - it's just a ruby :(
<shevy> but it is shiny
<zacts> shevy: lol
<headius> bot12: perhaps...it runs a fair amount. You should talk to chrisseaton in #jruby about it, he's leading that side of things
<apeiros> ruby-chan, right
<zacts> ruby my dear
Takle has quit [Remote host closed the connection]
<headius> sass *should* be faster on JRuby proper too, but not by orders of magnitude or anything
Takle has joined #ruby
jonr22 has quit [Remote host closed the connection]
<shevy> my favourite mascot is that thing for the Go language
marcdel has quit []
<rpag> a gopher
<shevy> yeah that fat thing
<rpag> plan9 had cool art too
<rpag> it follows rob pike around i guess
<zacts> I like the old git monster
<shevy> we should push for a fitting mascot for ruby :\
<bot12> headius: I will try that now!
<rpag> i know, japan invented anime, you would think we'd have something awesome
<shevy> yeah
<shevy> but pls no sailor moon identity
<shevy> or those dragonball maniacs
<zacts> shevy: I like cowboy bebop
<shevy> I don't even know what that is sorry :D
<wasamasa> you guys
<bot12> apeiros: I refrain. What refrain should I sing now? :D
<shevy> but isn't that a song from the hansens?
<wasamasa> please don't turn wapanese
<wasamasa> kthx
<zacts> shevy: let me find a link. It was a series on cartoon network's adult swim
<apeiros> bot12: dude, you're on thin ice. stop it.
<zacts> well you can google it if you want
Photism has joined #ruby
<zacts> it's like an urban gangster space city bebop jazz kind of setting
giuseppesolinas has joined #ruby
<bot12> ohh :(
bot12 has left #ruby [#ruby]
silkfox has quit [Ping timeout: 255 seconds]
kamoh has quit [Remote host closed the connection]
<zacts> there are a few episodes for free on cartoon network's homepage
user_02 has joined #ruby
charliesome has joined #ruby
<user_02> hey. i am trying to activate budget plugin (https://github.com/edavis10/redmine-budget-plugin) which also requires rate plugin (https://github.com/edavis10/redmine_rate). I place the folders on /plugins but when i restart redmine i get “ERROR: The Rate plugin is not installed. Please install the Rate plugin from …”. Has anyone tried this? Any other budgeting plugins you recommend?
atomical has joined #ruby
renderful has joined #ruby
atomical has quit [Client Quit]
<user_02> Here’s the error output http://pastebin.com/vMrGXFYV
chabier has quit [Remote host closed the connection]
atomical has joined #ruby
postmodern has joined #ruby
beilabs_ has quit [Quit: Be back later ...]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<user_02> And this is the output when i try to activate only Rate plugin http://pastie.org/9749421
<jhass> did you ask #redmine?
despai has joined #ruby
MattB2 has joined #ruby
jonr22 has joined #ruby
beilabs__ has joined #ruby
renderful has quit [Ping timeout: 258 seconds]
fantazo has quit [Quit: Verlassend]
<user_02> jhass: yes. noone ever answers on #redmine.
Pupeno has joined #ruby
<jhass> how long did you wait?
<shevy> his whole life!!!
<user_02> jhass: a lot.
<user_02> shevy: :P
Megtastique has quit []
<user_02> a lot = hanging around for a week or so.
<jhass> >> Time.at(:a_lot)
<eval-in__> jhass => can't convert Symbol into an exact number (TypeError) ... (https://eval.in/228068)
ethercable has joined #ruby
<jhass> how about mailing list?
jonr22 has quit [Ping timeout: 240 seconds]
stormbytes has joined #ruby
<jhass> coming to #ruby asking about redmine is just like coming to ##c asking about, dunno, apache
sdwrage has joined #ruby
<user_02> i get most of my answers related to redmine in #ruby rather than #redmine
<rpag> NOT ANYMORE, THO
charliesome has quit [Quit: zzz]
sailias has quit [Quit: Leaving.]
Megtastique has joined #ruby
<zenspider_> user_02: this _really_ isn't a ruby question. We'd be happy to help you out with a ruby specific issue, but this ain't the right place for this question
freerobby has joined #ruby
stormbytes has left #ruby [#ruby]
<shevy> jhass now you made me curious what ##c will say about apache
leizzer has quit [Ping timeout: 240 seconds]
<rpag> they would say, go to #apache
<jhass> shevy: shall we find out? you have to ask the question though
<zenspider_> user_02: the problem you have is here: /usr/share/redmine/plugins/redmine_rate/init.rb:4 -- you'll have to debug it on your own or get help from #redmine
<shevy> jhass they have a defence wall - I got redirected to ##c-unregistered :(
jottr_ has joined #ruby
<jhass> oO you're not registered?
iamjarvo_ has quit [Ping timeout: 250 seconds]
<zenspider_> one of us
iamjarvo_ has joined #ruby
jerius has joined #ruby
iamjarvo_ has quit [Max SendQ exceeded]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
iamjarvo_ has joined #ruby
<shevy> long live the underground!
<zenspider_> hah
zenspider_ is now known as zenspider
despai has quit [Quit: This computer has gone to sleep]
dalai has quit [Quit: ZNC - http://znc.in]
ptrrr has quit [Quit: ptrrr]
vinleod has joined #ruby
<shevy> omg that is that jump-style thing
<rpag> worse, it's scooter
<shevy> I don't know what that is... unless you mean the old scooter techno band in the 1990s
<shevy> but that is just noise isn't it?
<rpag> exactly that :D
<shevy> I no longer understand modern music, I am sorry :(
<rpag> scooter is like the grandad of techno
<shevy> yeah
<shevy> techno I still understand... and ok, the jump-style thing is vaguely similar to that... but still ...
<shevy> rpag do you know the old love parade in Berlin?
giuseppesolinas has joined #ruby
<rpag> nope, curious to see it though
<jhass> rpag: "... that tries to be like a teenager", you forgot that part
<shevy> jhass hahaha :D
<rpag> jhass, definitely, he's the definition of uncool
jimbach has joined #ruby
<shevy> rpag I loved this one the most from the loveparade https://www.youtube.com/watch?v=jZk_OmpAc1g
robertt_dex has joined #ruby
<rpag> shevy, its like everything you want to forget about the 90s
<shevy> hahahaha
JCii8__ has quit [Read error: Connection reset by peer]
JCii8__ has joined #ruby
Xeago has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
kamil has quit [Quit: Linkinus - http://linkinus.com]
leizzer has joined #ruby
jheg has quit [Quit: jheg]
jerius has quit []
kiyote23_ has quit [Remote host closed the connection]
centrx has joined #ruby
blackmesa has joined #ruby
Xeago_ has joined #ruby
dts is now known as Sargon_
Sargon_ is now known as dts
davedev24_ has quit [Ping timeout: 264 seconds]
leizzer has quit [Client Quit]
thsig has joined #ruby
davedev24_ has joined #ruby
Xeago has quit [Ping timeout: 264 seconds]
ghr has joined #ruby
benzrf is now known as benzrf|offline
MattB2_ has joined #ruby
agrinb has joined #ruby
thsig has quit [Ping timeout: 258 seconds]
kiyote23 has joined #ruby
nkumari has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
claw has joined #ruby
ghr has quit [Ping timeout: 265 seconds]
<shevy> if I have a file like foo.rb and just one def there: def foo; puts 'hi from foo'; end ... no namespaces. Is there a simple way to load and attach this into a module?
MattB2 has quit [Ping timeout: 264 seconds]
<rpag> module Foo; binding.eval File.read('foo.rb'); end
<claw> https://eval.in/228075 Shouldn't line 4 (Conditional Assignment) only apply if options[:something].nil? ?
<claw> im confused
<shevy> rpag aha interesting, let me think
<claw> oh i guess its nil or false for conditional assingment
<zenspider> hrm... it's kinda sad that Kernel.load has the wrap param but still returns true and not the anonymous module it creates
dcunit3d has quit [Ping timeout: 240 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
gtrak has quit [Read error: Connection reset by peer]
claymore has quit [Quit: Leaving]
codecop has quit [Remote host closed the connection]
m8 has quit [Quit: Sto andando via]
lemur has joined #ruby
<centrx> claw, nil and false are both "falsey"
bonhoeffer has joined #ruby
adriancb has joined #ruby
<shevy> rpag that is a neat trick
ItSANgo has quit [Quit: Leaving...]
<claw> okay that bad for what im trying the archive with boolean options here. ill use options[:something] = true if options[:something].nil?
Guest1882 has joined #ruby
<centrx> claw, yes, or options.has_key?(:something)
beilabs___ has joined #ruby
jaequery has joined #ruby
despai has joined #ruby
beilabs__ has quit [Ping timeout: 255 seconds]
samuel02 has joined #ruby
silkfox has joined #ruby
reinaldob has quit [Remote host closed the connection]
agrinb has quit [Remote host closed the connection]
<banister> rpag what was your trick
<banister> that shevy is talking about
agrinb has joined #ruby
josephndenton has joined #ruby
Pumukel has quit [Quit: ChatZilla 0.9.91 [Firefox 33.1/20141106120505]]
iamjarvo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pietr0 has joined #ruby
kiyote23 has quit [Remote host closed the connection]
nkumari has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
<rpag> module Foo; binding.eval File.read('foo.rb'); end
kiyote23 has joined #ruby
josephndenton has quit [Ping timeout: 264 seconds]
pietr0 has quit [Client Quit]
claptor has joined #ruby
Lingo_ has quit [Quit: (null)]
kirun has quit [Quit: Client exiting]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
acmehandle has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
klmlfl has quit [Remote host closed the connection]
boombadaroomba has joined #ruby
kiyote23 has quit [Remote host closed the connection]
Wapitidou has quit [Quit: WeeChat 1.0]
sptx00 has joined #ruby
<jidar> is there some way to inspect variables in irb?
<jidar> or perhaps something a little more similar to how you can tab complete methods/properties
<jhass> jidar: just type its name and press enter
kiyote23 has joined #ruby
<jhass> also have a look at pry for a more powerful repl
startupality has quit [Quit: startupality]
<jidar> there we go
<jidar> pry is totally what I was looking for, thanks.
boombadaroomba has quit [Ping timeout: 258 seconds]
Scripore has joined #ruby
fabrice31 has joined #ruby
agrinb has quit [Remote host closed the connection]
samuel02 has quit [Remote host closed the connection]
kireevco has joined #ruby
cleopatra has joined #ruby
davedev24_ has quit [Ping timeout: 265 seconds]
apoorvparijat has joined #ruby
benzrf|offline is now known as benzrf
kiyote23 has quit [Remote host closed the connection]
davedev24_ has joined #ruby
<shevy> rpag I guess if I use @instance variables, they won't work when included into a class?
<shevy> oh nevermind
<rpag> shevy, as long as they're defined in instance methods they will
fabrice31 has quit [Ping timeout: 256 seconds]
ht__th has quit [Read error: Connection reset by peer]
<shevy> it works, I was just calling the wrong method
<shevy> foo = Foo.new; foo.foo can become confusing if you want to call foo.bar
dangerousdave has joined #ruby
dangerousdave has quit [Client Quit]
kiyote23 has joined #ruby
nkumari has quit [Remote host closed the connection]
mloveless has quit [Ping timeout: 240 seconds]
siwica1 has joined #ruby
mkaesz has joined #ruby
apoorvparijat has quit [Ping timeout: 250 seconds]
siwica has quit [Ping timeout: 258 seconds]
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
r0bby_ has joined #ruby
mloveless has joined #ruby
Soda has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 256 seconds]
cleopatra has quit [Remote host closed the connection]
hydrozen has joined #ruby
nkumari has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
Narzew has quit [Quit: Wychodzi]
davedev24_ has joined #ruby
mkaesz has quit [Ping timeout: 258 seconds]
user_02 has quit [Quit: user_02]
<hydrozen> Hey, is there a way to configure rubygems to not download release candidates / betas when doing `gem update`?
chrishough has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
banister has joined #ruby
davedev24_ has joined #ruby
chrishough has quit [Remote host closed the connection]
chrishough has joined #ruby
tgandrews has quit [Quit: This computer has gone to sleep]
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
diegoviola has joined #ruby
dts has quit [Ping timeout: 264 seconds]
devoldmx33 has joined #ruby
kireevco has quit [Ping timeout: 272 seconds]
ghr has joined #ruby
devoldmx has quit [Ping timeout: 250 seconds]
ItSANgo has joined #ruby
duncannz has joined #ruby
nerdy has joined #ruby
tastycode has joined #ruby
nerdy has quit [Client Quit]
duncannz has quit [Remote host closed the connection]
klmlfl has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
Ninjatarq has joined #ruby
kireevco has joined #ruby
TheRinger has joined #ruby
kiyote23 has quit [Remote host closed the connection]
TheRinger has quit [Client Quit]
kiyote23 has joined #ruby
dts has joined #ruby
kiyote23 has quit [Remote host closed the connection]
<zenspider> hydrozen: it doesn't by default
ghr has quit [Ping timeout: 245 seconds]
pandaant has quit [Remote host closed the connection]
<hydrozen> zenspider: where would that be configured?
<hydrozen> zenspider: i dont have much in my .gemrc
Crazy_Atheist has quit [Quit: lets try this way]
<hydrozen> rails (4.2.0.rc1, 4.2.0.beta4, 4.1.8, 4.1.7, 4.1.6)
<zenspider> hydrozen: it's a flag on install and update --[no-]prerelease
nerdy has joined #ruby
kiyote23 has joined #ruby
<zenspider> you had to have specified it to get one of the non-releases to begin with
beef-wellington has joined #ruby
AlexRussia has quit [Quit: WeeChat 1.1-dev]
qox31 has joined #ruby
<zenspider> maybe update will continue the trend if the topmost version is prerelease? I dunno
<hydrozen> ok, weird
nkumari has quit [Remote host closed the connection]
<hydrozen> either i got osmething that adds that flag automatically when I do gem update
AlexRussia has joined #ruby
<Ninjatarq> any suggestions on what distro of linux to run on an older laptop for ruby programming?
giuseppesolinas has joined #ruby
giuseppesolinas has quit [Client Quit]
<Ninjatarq> older = celeron 2 Ghz
hydrozen has quit [Quit: Textual IRC Client: www.textualapp.com]
silkfox has quit [Ping timeout: 258 seconds]
nkumari has joined #ruby
<jhass> Ninjatarq: doesn't matter for ruby, you should pick a desktop environment that gives a good compromise on that hardware
startupality has joined #ruby
<jhass> apeiros: Guest18066 is a spambot
<jhass> er, Guest1882, sorry
<apeiros> hf
<Ninjatarq> i think it's going to be easier for me to get linux on it than a license of XP
<Ninjatarq> i haven't actually seen the machine yet
Guest1882 was banned on #ruby by jhass [*!~rumitte@213.143.60.218]
Guest1882 was kicked from #ruby by jhass [spam is offtopic]
<jhass> thanks
<Ninjatarq> i'm guessing most of you folks develop on apple or windows?
<rpag> i develop on pear
<Ninjatarq> :)
<tobiasvl> linux here
<apeiros> Ninjatarq: I think windows is the minority
<rpag> i use linux, fedora.
<jhass> there are not many windows people in the ruby dev community
<tobiasvl> fedora here too!
<jhass> archlinux ;)
<Ninjatarq> apeiros: that's been my impression as well
<apeiros> no idea about mac vs. linux. pure ruby I'd say more linux. rails probably more macs.
<havenwood> freebsd
<Ninjatarq> rpag: any particular reasons that fedora is good for ruby?
bonhoeffer has joined #ruby
<Ninjatarq> havenwood: same questions re: freebsd