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
sevvie has joined #ruby
Griffith has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maletor has quit [Quit: Computer has gone to sleep.]
iamninja has joined #ruby
Griffith has quit [Client Quit]
PanzerModern has joined #ruby
kirun has quit [Quit: Client exiting]
bweston92 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
sevvie has quit [Read error: Connection reset by peer]
lampd1_ has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zenspider> candlefactory: coffee flavored swedish fish?
<zenspider> I... I'd try one
Timgauthier is now known as timgauthier_away
windowlicker has joined #ruby
marr has quit [Ping timeout: 244 seconds]
<candlefactory> i might if it came with cream
studiotate has quit [Quit: Computer has gone to sleep.]
leonmaia has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_Andres has quit [Read error: No route to host]
lampd1_ has quit [Ping timeout: 258 seconds]
blackoperat has quit [Remote host closed the connection]
_Andres has joined #ruby
timgauthier_away is now known as Timgauthier
lzx has joined #ruby
Beoran has quit [Ping timeout: 250 seconds]
fandi has quit [Remote host closed the connection]
jeanlinux has quit [Ping timeout: 240 seconds]
delianides has quit [Remote host closed the connection]
Timgauthier is now known as timgauthier_away
timgauthier_away is now known as Timgauthier
jheg has quit [Quit: jheg]
lzx has quit [Remote host closed the connection]
vinleod has joined #ruby
lucyinthesky has joined #ruby
lucyinthesky has left #ruby ["Leaving"]
Scripore has joined #ruby
sevvie has joined #ruby
Menorah has quit [Quit: Leaving]
Timgauthier is now known as timgauthier_away
x1337807x has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
byprdct has joined #ruby
checkit has joined #ruby
x1337807x has quit [Max SendQ exceeded]
AUS3RIS has quit [Quit: Textual IRC Client: www.textualapp.com]
Guest12479 has quit [Changing host]
Guest12479 has joined #ruby
Guest12479 is now known as blindsight
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
pika_pika has joined #ruby
chipotle has quit [Quit: cheerio]
x1337807x has joined #ruby
adriancb has joined #ruby
x1337807x has quit [Max SendQ exceeded]
hamakn has quit [Remote host closed the connection]
rbennacer has joined #ruby
x1337807x has joined #ruby
Beoran has joined #ruby
zacts has quit [Read error: Connection reset by peer]
Guest26597 has quit [Ping timeout: 240 seconds]
zacts has joined #ruby
zacts has quit [Changing host]
zacts has joined #ruby
sevvie has joined #ruby
proxie has quit []
wookiehangover has quit [Ping timeout: 258 seconds]
spider-mario has quit [Remote host closed the connection]
candlefactory has quit [Ping timeout: 252 seconds]
sevvie has quit [Ping timeout: 244 seconds]
wookiehangover has joined #ruby
jerius has joined #ruby
checkit has quit [Quit: (null)]
jerius has quit [Client Quit]
sevvie has joined #ruby
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zacts has quit [Quit: leaving]
adriancb has quit [Remote host closed the connection]
tokik has joined #ruby
freerobby has quit [Quit: Leaving.]
studiotate has joined #ruby
checkit has joined #ruby
banister has quit [Ping timeout: 264 seconds]
virtualize has joined #ruby
rylev has joined #ruby
sevvie has quit [Ping timeout: 272 seconds]
studiotate has quit [Ping timeout: 244 seconds]
sankaber has joined #ruby
sankaber has quit [Client Quit]
oo_ has joined #ruby
rylev has quit [Ping timeout: 244 seconds]
asdff has joined #ruby
<GaryOak_> I have to switch to python for my job :(
freerobby has joined #ruby
wolf4ood has joined #ruby
zacts has joined #ruby
<wolf4ood> hi guys
m8 has quit [Quit: Sto andando via]
<GaryOak_> Hello
<wolf4ood> i'm a ruby newbie :D
<GaryOak_> that rhymes
<wolf4ood> i want to ask if it possible to pack and then pack a float in a single precision IEEE 754
<wolf4ood> now i'm at this point
<wolf4ood> [22.20].pack('g').bytes.map(&:to_i).pack('c*').unpack('g')
<wolf4ood> gives me [22.200000762939453]
<wolf4ood> that make fails my test
leonmaia has joined #ruby
<shevy> hmm
<shevy> >> 22.20
<shevy> wake up eval-in__
<shevy> wolf4ood, when I type 22.20 in my irb I get 22.2
<wolf4ood> yes
<wolf4ood> me too
<wolf4ood> but if you pack and unpack
<wolf4ood> gives me 22.200000762939453
sevvie has joined #ruby
Dopagod has quit [Read error: Connection reset by peer]
<shevy> k it was just confusing me, the 22.20 seems to be exactly like 22.2 even there, both times I get [22.200000762939453]
<wolf4ood> maybe i;m using pack unpack wrong
Dopagod has joined #ruby
<zenspider> ruby 2.x had some changes to make floats "look nicer"
<zenspider> but they're still the same thing under the covers
<zenspider> wolf4ood: "fails my test"... what's your test? you should never test floats for equality
<shevy> wolf4ood let's see... pack('g') means "Treat sizeof(float) characters as a float in network byte order."
<zenspider> in minitest, you'd use something like assert_in_delta or assert_in_epsilon
mary5030 has quit [Remote host closed the connection]
<zenspider> wolf4ood: what's with the first pack/bytes/map?
mary5030 has joined #ruby
<zenspider> this repros just fine with plain: ruby -e 'p [22.20].pack("g").unpack("g")'
<shevy> >> [22.20].pack('g') == "A\xB1\x99\x9A"
t_p has quit [Quit: Computer has gone to sleep.]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> eval-in__ is apparently already celebrating X-mas for bots today
<zenspider> drunkbot
<wolf4ood> that is the problem
<wolf4ood> if i receive "A\xB1\x99\x9A"
jeff-ooh has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
<wolf4ood> from network
<wolf4ood> and unpack
<wolf4ood> my test fail
<zenspider> again, what's your test?
<wolf4ood> i send "A\xB1\x99\x9A"
bashusr has joined #ruby
startupality has quit [Quit: startupality]
<wolf4ood> in the network
<wolf4ood> then i receive it back
jenrzzz has quit [Read error: Connection reset by peer]
<wolf4ood> and unpack
<zenspider> so... what you're saying is that you don't have an actual test
charliesome has joined #ruby
<wolf4ood> i have a test
<wolf4ood> but this explain all
<wolf4ood> [22.20].pack('g') == "A\xB1\x99\x9A"
<shevy> wolf4ood yeah this returns false
adriancb has joined #ruby
<wolf4ood> because if you unpack "A\xB1\x99\x9A"
<wolf4ood> i have again
<wolf4ood> 22.200000762939453
<zenspider> ruby -e 'require "minitest/autorun"; describe "X" do it "blah" do assert_in_epsilon 22.20, [22.20].pack("g").unpack("g").first; end; end;'
<wolf4ood> that is different from 22.20
<zenspider> passes
<wolf4ood> that i send
studiotate has joined #ruby
mary5030 has quit [Ping timeout: 272 seconds]
<wolf4ood> yes of course it passes
<wolf4ood> but it is a trick
studiotate has quit [Client Quit]
<zenspider> no, it's not
<zenspider> it is ok for them to be different
<wolf4ood> it is not the number that the user has inserted
<wolf4ood> so when i will saw it back
<zenspider> yes, it is... it's the computer's representation of it, at least.
jeff-ooh has quit [Ping timeout: 240 seconds]
pika_pika has quit [Ping timeout: 258 seconds]
<zenspider> I had hoped when you mentioned IEEE 754 that you grokked floats
spastorino has quit [Quit: Connection closed for inactivity]
<GaryOak_> this is a nice primer conversation about floats
adriancb has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider> you _cannot_ use equality for check floats (tho you're not even doing that... you're eyeballing and calling it a test afaik)
<zenspider> if you want it to be exactly the same, don't use floats.
<zenspider> floats are not the data representation for you
<wolf4ood> is not for me
<zenspider> use BigDecimal, or strings, or mils (ints as thousandths) or something else
<wolf4ood> if i write 22.20
beef-wellington has quit [Ping timeout: 265 seconds]
<wolf4ood> ruby gives me float
delianides has joined #ruby
icebourg has joined #ruby
<wolf4ood> it is the default type
<zenspider> hey... broken record... you need to open your mind
<zenspider> if you can't do that... I can't / won't help you
GaryOak_ has quit [Remote host closed the connection]
pandaant has joined #ruby
<zenspider> I could be doing something more interesting like trimming my toenails.
delianid_ has joined #ruby
kavita has quit [Remote host closed the connection]
Stalkr_ has quit [Quit: Leaving...]
gsd_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
delianides has quit [Ping timeout: 258 seconds]
shuber_ has joined #ruby
<wolf4ood> ok i will try with BigDecimal
axisys has quit [Remote host closed the connection]
akaiiro has quit [Ping timeout: 250 seconds]
_Andres has quit [Read error: Connection reset by peer]
_Andres has joined #ruby
<wolf4ood> not to say anithing but in java works
<wolf4ood> float f = 20.2f;
<wolf4ood> int i = Float.floatToIntBits(f);
<wolf4ood> float f1 = Float.intBitsToFloat(i);
<wolf4ood> assertEquals(f, f1);
<wolf4ood> afaik the problem is that ruby by default doesn't handle single precision
startupality has joined #ruby
<shevy> you could always try to file a bug report about it at https://bugs.ruby-lang.org/projects/ruby-trunk
s00pcan_ has quit [Ping timeout: 245 seconds]
<wolf4ood> thansk shevy
devoldmx33 has quit [Ping timeout: 244 seconds]
icebourg has quit []
Deele has quit [Ping timeout: 244 seconds]
chipotle has joined #ruby
kenneth has joined #ruby
robustus|Off has joined #ruby
robustus|Off is now known as robustus
shuber_ has quit [Remote host closed the connection]
<epitron> that looks like a bug, wolf4ood... packing and unpacking a float shouldn't change its value
sarmiena_ has quit [Quit: sarmiena_]
<wolf4ood> that is what i thought
<wolf4ood> i just did [22.20].pack('g').unpack('g')
<wolf4ood> and the value changed
<epitron> yep
tkuchiki has joined #ruby
<epitron> oh, maybe it's the letter you're using to pack it
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
<shevy> wolf4ood can you drop the trailing 0 though please
<epitron> yep
despai has quit [Quit: This computer has gone to sleep]
<epitron> wolf4ood: [22.20].pack("G").unpack("G") works
jaequery has quit [Quit: Textual IRC Client: www.textualapp.com]
<epitron> no bug
<epitron> :)
conniemj__ has quit [Quit: (null)]
<shevy> \o/
<shevy> from g to G
sargas has joined #ruby
<epitron> also, i'm sorry you had to deal with zenspider
zacts has quit [Read error: Connection reset by peer]
<epitron> please come back anyways
<shevy> hey
<shevy> as long as he wasn't suggesting that someone else were to cut his toeclaws, erm .. nails!
zacts has joined #ruby
zacts has quit [Changing host]
zacts has joined #ruby
<wolf4ood> yes because it uses double precision i think G
<epitron> so much precision for such a small number
<epitron> you can use 22.20.rationalize if you want the exact value :)
bkulbida has joined #ruby
<wolf4ood> ok thanks :D
<epitron> it's really easy to serialize too
<epitron> just .to_s it
<epitron> deserialize is: Rational( string )
jeff-ooh has joined #ruby
<wolf4ood> cook thanks :D
<epitron> np!
LouisRoR has joined #ruby
bkulbida has quit [Client Quit]
startupality has quit [Quit: startupality]
hamakn has joined #ruby
davedev24_ has quit [Ping timeout: 258 seconds]
davedev24_ has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
bigkevmcd has quit [Read error: Connection reset by peer]
nicolastarzia has joined #ruby
Neomex has quit [Read error: Connection reset by peer]
jaequery has joined #ruby
hamakn has quit [Ping timeout: 245 seconds]
olivier_bK has quit [Ping timeout: 244 seconds]
nicolastarzia has quit [Ping timeout: 240 seconds]
Akuma has quit [Quit: So long sukkas!]
marcules has quit [Quit: Page closed]
jeff-ooh has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
Musashi007 has quit [Ping timeout: 265 seconds]
elfuego has joined #ruby
patrick99e99 has quit [Ping timeout: 240 seconds]
sargas has quit [Quit: This computer has gone to sleep]
zacts has quit [Read error: Connection reset by peer]
<elfuego> I’m new to ruby, but i’m an experienced developer, and I’d like to learn just the key features and syntax of ruby. I’m looking for a quick video tutorial that can give me a quick summary/run down of the language. Any useful resources?
<shevy> don't think so
<shevy> you could randomly try to search for youtube entries about ruby
rbennacer has quit [Remote host closed the connection]
econerd4ever has quit [Remote host closed the connection]
econerd4ever has joined #ruby
<apeiros_> elfuego: zenspiders quickref gives you all of rubys syntax (not a video, though)
checkit has quit [Ping timeout: 240 seconds]
<apeiros_> !quickref
<apeiros_> oh, helpa is out :(
delianid_ has quit [Remote host closed the connection]
<shevy> it's bot x-mas
<shevy> >> 'right?'
<shevy> see, bots are unwrapping their gifts as we type
agjacome has joined #ruby
<havenwood> elfuego: here're some comparisons to other languages: https://www.ruby-lang.org/en/documentation/ruby-from-other-languages/
zacts_ has joined #ruby
Akagi201 has joined #ruby
zacts_ has quit [Read error: Connection reset by peer]
sevvie has quit [Read error: Connection reset by peer]
econerd4ever has quit [Ping timeout: 250 seconds]
giuseppesolinas has joined #ruby
jeff-ooh has joined #ruby
econerd4ever has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
<shevy> not a video though :)
sevvie has joined #ruby
supersym has quit [Ping timeout: 250 seconds]
blizzy is now known as li
li is now known as blizzy
Takle_ has quit [Remote host closed the connection]
pika_pika has joined #ruby
hamakn has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
_Andres has joined #ruby
yfeldblum has quit [Remote host closed the connection]
kavita has joined #ruby
pu22l3r_ has quit [Read error: Connection reset by peer]
pu22l3r has joined #ruby
jeff-ooh has quit [Remote host closed the connection]
bricker`work has quit [Ping timeout: 240 seconds]
bigmac has joined #ruby
bigmac is now known as i8igmac
acalewin has quit [Quit: ZNC - http://znc.in]
lampd1 has joined #ruby
kavita has quit [Ping timeout: 245 seconds]
oo_ has quit [Remote host closed the connection]
<epitron> i took a video of the webpage... it's a video
zakiazig_ has joined #ruby
lampd1 has quit [Ping timeout: 258 seconds]
supersym has joined #ruby
Youka has joined #ruby
rshetty has joined #ruby
windowlicker has quit [Quit: Lost terminal]
<Youka> Is there a Ruby JIT for windows? I found Rubinius, which doesn't support windows yet, and rujit, which isn't possible to compile because of broken code (f.e. gcc attributes in msvc build, failing download connection with mingw).
amclain has joined #ruby
<brixen> Youka: JRuby has a JIT and also has HotSpot's JIT under that
rockdon has quit [Ping timeout: 258 seconds]
mjmac has quit [Ping timeout: 258 seconds]
helpa has joined #ruby
<brixen> s/HotSpot/JVM/ more generally, I suppose
<Youka> Doesn't this require Java? Would like to have without.
<brixen> it does require Java
<brixen> Youka: are you interested in helping Rubinius work on Windows? :)
<shevy> :D
<brixen> I got the VM to compile at one point
<brixen> there was an issue linking C-exts
mjmac has joined #ruby
<Youka> I just want to compile it for a friend, not go that far :D
<shevy> hehehe
<brixen> Youka: there's also IronRuby, which uses the CLR, but it hasn't seen much work in a while I think
Synchunk has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
zacts_ has joined #ruby
rockdon has joined #ruby
<brixen> Youka: another option is using Docker on Windows http://docs.docker.com/installation/windows/
sarlalian has quit [Quit: WeeChat 0.4.2]
<brixen> Youka: you can use Rubinius under Docker
Synchunk has joined #ruby
<brixen> no Java, lotsa JIT :)
<Youka> good to know, thank you. That's some input to try around with now :)=
sarlalian has joined #ruby
<brixen> Youka: good luck!
ddd has joined #ruby
triple_b has joined #ruby
<brixen> shevy: Y U NO HANG IN #rubinius NO MORE? :p
* brixen runs off to dinner
zakiazig_ has left #ruby [#ruby]
rylev has joined #ruby
deryl has quit [Ping timeout: 272 seconds]
<shevy> brixen I am trying to cut channels slowly!
rshetty has quit [Remote host closed the connection]
jeanlinux has joined #ruby
dc_ has quit [Remote host closed the connection]
rshetty has joined #ruby
charliesome has quit [Ping timeout: 258 seconds]
acalewin has joined #ruby
shuber_ has joined #ruby
jtdoncas has quit [Remote host closed the connection]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
claptor has joined #ruby
rylev has quit [Ping timeout: 252 seconds]
charliesome has joined #ruby
krz has joined #ruby
jeanlinux has quit [Ping timeout: 252 seconds]
oo_ has quit [Remote host closed the connection]
rshetty has quit [Ping timeout: 272 seconds]
oo_ has joined #ruby
dc_ has joined #ruby
shuber_ has quit [Ping timeout: 245 seconds]
apeiros_ has joined #ruby
mgberlin has joined #ruby
<arclitgold> shevy: did you have channel overload?
<shevy> more like information overload
<shevy> I am on 10 right now :(
<shevy> 4 I can cut
<shevy> then it becomes difficult
<arclitgold> haha mind sharing?
<shevy> well truthfully, I am most active on #ruby, then #gobolinux
<shevy> I am mostly idling on #ffmpeg
zacts_ has quit [Quit: leaving]
charliesome has quit [Ping timeout: 255 seconds]
Kryptonical has joined #ruby
gr33n7007h has quit [Ping timeout: 240 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
<arclitgold> just looked at #gobolinux
<arclitgold> interesting
<arclitgold> never heard of it before
<shevy> it was cool when it was still active
<shevy> people nowadays are just chilling and chatting
<shevy> always hoping that sane directory layouts will make it into linux one day
Kryptonic has quit [Ping timeout: 272 seconds]
Kricir has quit [Remote host closed the connection]
michaeldeol has joined #ruby
<arclitgold> hehe probably going to have to keep hoping
pika_pika has quit [Ping timeout: 258 seconds]
AlSquire has quit [Quit: This computer has gone to sleep]
picassoo has quit []
supersym has quit [Ping timeout: 272 seconds]
amclain has quit [Quit: Leaving]
kapil__ has joined #ruby
zacts_ has joined #ruby
Musashi007 has joined #ruby
byprdct has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kavita has joined #ruby
cashnguns has joined #ruby
zorak8 has quit [Read error: Connection reset by peer]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zorak8 has joined #ruby
byprdct has joined #ruby
zacts_ has quit [Quit: leaving]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zacts has joined #ruby
mjmac has quit [Ping timeout: 258 seconds]
hmsimha has quit [Ping timeout: 252 seconds]
rockdon has quit [Ping timeout: 258 seconds]
byprdct has quit [Client Quit]
porfa has joined #ruby
alicanyilmaz has joined #ruby
mattwildig has quit []
alicanyilmaz has quit [Client Quit]
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
<porfa> hellos, im using selectorgadget to get xpath because i don’t know how to use css selectors (please dont throw any rocks) and im having problems scraping an image from a website ( http://gemsupplies.es/catalogo2/index.php/productos/belleza-y-cuidado-personal/almohada-de-masaje-vibratoria.html )
picassoo has joined #ruby
Sunlorhic has joined #ruby
Sunlorhic has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
gigetoo has joined #ruby
Sunlorhic has joined #ruby
<porfa> the only scrape i’ve done before was simple scraping, the images where located at an fixed url, so that was easy.. but a tutorial on css selectors would be the best right now
klmlfl has quit [Remote host closed the connection]
<waxjar> css selectors are easy!
<pwnz0r> whats the difference between == and ===
<pwnz0r> equality vs same object?
checkit has joined #ruby
checkit has quit [Excess Flood]
<waxjar> === is for case equality, == for generic equality
checkit has joined #ruby
lemur has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
<pwnz0r> thanks ill check out the link
_Andres has joined #ruby
tyll_ has joined #ruby
byprdct has joined #ruby
Takle has joined #ruby
LouisRoR has quit [Ping timeout: 258 seconds]
Synthead has joined #ruby
byprdct has quit [Client Quit]
tyll has quit [Ping timeout: 244 seconds]
arescorpio has quit [Read error: Connection reset by peer]
FooMunki has quit [Read error: Connection reset by peer]
econerd4ever has quit [Quit: Leaving...]
FooMunki has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<havenwood> porfa: css('#zoom').first.attr('href')
Takle has quit [Ping timeout: 272 seconds]
Channel6 has joined #ruby
sargas has joined #ruby
<porfa> waxjar: thank you!
<porfa> havenwood: cosy, thank you!
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> "45".start_with? /\d/
<shevy> waaah :(
vinleod has quit [Read error: Connection reset by peer]
bashusr has quit [Read error: Connection reset by peer]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
radic has quit [Ping timeout: 245 seconds]
radic has joined #ruby
bashusr has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
jenrzzz has joined #ruby
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
jaequery has joined #ruby
mjmac has joined #ruby
hmsimha has joined #ruby
rockdon has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
it0a has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
charliesome has quit [Ping timeout: 265 seconds]
bashusr has joined #ruby
charliesome has joined #ruby
tus has quit []
ajaiswal has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
clearlake has joined #ruby
arclitgold has quit [Quit: leaving]
kavita has quit [Remote host closed the connection]
bashusr has joined #ruby
krz has quit [Read error: Connection reset by peer]
zacts has quit [Quit: leaving]
bashusr has quit [Read error: Connection reset by peer]
basex has quit [Remote host closed the connection]
kasisnu has joined #ruby
bashusr has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
anaeem1_ has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
bashusr has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bashusr has quit [Read error: Connection reset by peer]
bashusr has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
charliesome has quit [Ping timeout: 258 seconds]
basex has joined #ruby
bashusr has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
Sunlorhic has quit [Ping timeout: 250 seconds]
charliesome has joined #ruby
basex has quit [Remote host closed the connection]
bashusr has joined #ruby
yfeldblum has joined #ruby
jaequery has joined #ruby
maletor has joined #ruby
cashnguns has quit [Quit: I'm just an old fashioned cowboy]
charliesome has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 258 seconds]
rshetty has joined #ruby
jaequery has quit [Client Quit]
Kricir has joined #ruby
charliesome has joined #ruby
patrick99e99 has joined #ruby
krz has joined #ruby
kavita has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
zorak8 has quit [Ping timeout: 265 seconds]
triple_b has joined #ruby
jaequery has joined #ruby
<havenwood> >> '45'.start_with? *'0'..'9'
<havenwood> #=> true
patrick99e99 has quit [Ping timeout: 265 seconds]
Cache_Money has joined #ruby
atomi has joined #ruby
Musashi007 has quit [Quit: Musashi007]
<havenwood> shevy: you're the one who reminded me #start_with? accepts multiple arguments :)
<havenwood> a couple days ago
<shevy> oh
<shevy> now that's a clever trick!
<shevy> that should be faster than a regex too, right?
Guest90 has joined #ruby
kavita has quit [Quit: goodbye...]
byprdct has joined #ruby
ndrei has joined #ruby
<shevy> well I'll just assume it will be :D
<havenwood> shevy: i think slower
byprdct has quit [Client Quit]
checkit has quit [Quit: (null)]
_Andres has quit [Read error: Connection reset by peer]
_Andres has joined #ruby
nativestranger has joined #ruby
rylev has joined #ruby
nativestranger has left #ruby [#ruby]
sevvie has joined #ruby
mjmac has quit [Ping timeout: 258 seconds]
CrazyM4n has quit [Quit: so that's how you do quit messages]
adriancb has joined #ruby
mjmac has joined #ruby
Guest90 is now known as _seac_
rylev has quit [Ping timeout: 245 seconds]
arya_ching has joined #ruby
sevvie has quit [Ping timeout: 250 seconds]
adriancb has quit [Ping timeout: 256 seconds]
oo_ has joined #ruby
anaeem1_ has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
sevvie has joined #ruby
sargas has joined #ruby
sargas has quit [Changing host]
sargas has joined #ruby
anaeem1_ has joined #ruby
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
Kricir has quit [Ping timeout: 272 seconds]
braincrash has quit [Quit: bye bye]
asdff has quit [Killed (idoru (Spam is off topic on freenode.))]
Musashi007 has joined #ruby
gsd has joined #ruby
mliq has joined #ruby
gsd has quit [Client Quit]
zacts has joined #ruby
gsd has joined #ruby
lampd1 has joined #ruby
freerobby has joined #ruby
oo_ has quit [Ping timeout: 240 seconds]
mliqu has quit [Ping timeout: 252 seconds]
braincrash has joined #ruby
leonmaia has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rshetty has quit [Remote host closed the connection]
lampd1 has quit [Ping timeout: 244 seconds]
leonmaia has joined #ruby
ohaibbq has joined #ruby
rshetty has joined #ruby
Pattt has quit [Ping timeout: 265 seconds]
centrx has joined #ruby
<centrx> fav = bet_type.to_s.match(/#{game[:fav_side].to_s}/)
freerobby has quit [Quit: Leaving.]
centrx has quit [Client Quit]
FooMunki has quit [Ping timeout: 240 seconds]
FooMunki has joined #ruby
aurumzx has joined #ruby
Lucky__ has joined #ruby
FooMunki has quit [Read error: Connection reset by peer]
FooMunki has joined #ruby
uber_hulk has joined #ruby
yfeldblum has joined #ruby
jtdowney has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdwrage has joined #ruby
rshetty has quit [Remote host closed the connection]
virtualize has quit []
virtualize has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
krz has quit [Quit: WeeChat 1.0.1]
jeremywrowe has joined #ruby
kiyote23 has quit [Remote host closed the connection]
basex has joined #ruby
icebourg has joined #ruby
Youka2 has joined #ruby
Youka has quit [Ping timeout: 272 seconds]
rshetty has joined #ruby
bkulbida has joined #ruby
basex has quit [Ping timeout: 264 seconds]
hmsimha has quit [Ping timeout: 252 seconds]
bkulbida has quit [Client Quit]
sargas has quit [Quit: This computer has gone to sleep]
greenbagels has quit [Ping timeout: 245 seconds]
mgberlin_ has joined #ruby
yfeldblum has joined #ruby
Takle has joined #ruby
delianides has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
mgberlin has quit [Ping timeout: 256 seconds]
rshetty has joined #ruby
Auv is now known as AChristmasuv
uber_hulk has quit [Quit: leaving]
urbanmonk has joined #ruby
Takle has quit [Ping timeout: 265 seconds]
delianides has quit [Ping timeout: 245 seconds]
<clearlake> anybody here just getting started with rails?
<ddd> you'd probably be better served in the #RubyOnRails channel for that. This channel is almost exclusively about ruby and its core+stdlib
leonmaia has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<clearlake> thanks ddd... i tried that earlier and there wasn't any discussion
urbanmonk has quit [Client Quit]
sevvie has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby
<ddd> hehe, there's always discussin in there. its the official channel for rails on freenode. there are, however, lulls in conversation.
michaeldeol has quit [Client Quit]
triple_b has joined #ruby
it0a has quit [Quit: WeeChat 1.0.1]
<clearlake> probably just walked in during a lull ;)
oo_ has joined #ruby
charliesome has quit [Quit: zzz]
sevvie has joined #ruby
mjmac has quit [Ping timeout: 258 seconds]
jtdowney has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
rockdon has quit [Ping timeout: 258 seconds]
mgberlin_ has quit [Remote host closed the connection]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mjmac has joined #ruby
rockdon has joined #ruby
jaequery has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
armyriad has joined #ruby
charliesome has joined #ruby
jtdoncas has joined #ruby
Kricir has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
Scripore has quit [Ping timeout: 244 seconds]
checkit has joined #ruby
checkit has quit [Excess Flood]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
checkit has joined #ruby
checkit has quit [Excess Flood]
clearlake has quit [Quit: Textual IRC Client: www.textualapp.com]
checkit has joined #ruby
clearlake has joined #ruby
checkit has quit [Excess Flood]
checkit has joined #ruby
checkit has quit [Excess Flood]
djbkd has joined #ruby
Stoge88 has joined #ruby
clearlake has quit [Client Quit]
<pwnz0r> LS
arya_ching has quit []
avahey91 has quit [Quit: Connection closed for inactivity]
Kricir has quit [Ping timeout: 240 seconds]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
josephndenton has quit [Ping timeout: 252 seconds]
echooo has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
echooo has joined #ruby
triple_b has joined #ruby
kiyote23 has joined #ruby
arup_r has joined #ruby
kasisnu has quit [Ping timeout: 255 seconds]
triple_b has quit [Client Quit]
noop has joined #ruby
triple_b has joined #ruby
<arup_r> Why I am getting the status as 200 OK,, evenif the url is getting redirected.. I am using Open-URI ... uri = open("http://www.ae.com/web/browse/product.jsp?productId=3435_9183_826&catId=cat6430042") { |f| p f.base_uri.to_s } # shown another url.. But
<arup_r> uri = open("http://www.ae.com/web/browse/product.jsp?productId=3435_9183_826&catId=cat6430042") { |f| p f.status } is giving 200
phutchins has quit [Ping timeout: 250 seconds]
gsd has joined #ruby
frog|OFF has quit [Ping timeout: 265 seconds]
<pwnz0r> hey guys. question about test/unit
rylev has joined #ruby
checkit has joined #ruby
<pwnz0r> ive seen this as a general pattern now...
<pwnz0r> when i have 7 tests lets say.
<pwnz0r> sometimes it says i have 11 assertions
<pwnz0r> or number of assertions > number of tests
jeanlinux has joined #ruby
Asher has quit [Read error: No route to host]
<pwnz0r> when i write it its 1 assertion per test
gsd has quit [Ping timeout: 244 seconds]
<pwnz0r> is tehre something in some of the assertions that use more than one assertion itself?
Asher has joined #ruby
michaeldeol has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
_Andres has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rylev has quit [Ping timeout: 252 seconds]
picassoo has quit [K-Lined]
jeanlinux has quit [Ping timeout: 272 seconds]
lemur_ has joined #ruby
kiyote23 has quit [Ping timeout: 256 seconds]
icebourg has quit []
lemur has quit [Ping timeout: 256 seconds]
charlenopires has joined #ruby
Guest64 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
renderful has quit [Remote host closed the connection]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pwnz0r has quit [Remote host closed the connection]
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dts|pokeball has quit [Ping timeout: 240 seconds]
vinleod has joined #ruby
jtdoncas has quit [Quit: Lost terminal]
rshetty has quit [Ping timeout: 265 seconds]
lxsameer has joined #ruby
lemur_ has quit [Remote host closed the connection]
lemur has joined #ruby
hmsimha has joined #ruby
jeanlinux has joined #ruby
jimmyhoughjr has quit [Quit: Textual IRC Client: www.textualapp.com]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michaeldeol has joined #ruby
lemur has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
michaeldeol has quit [Client Quit]
lampd1 has joined #ruby
Musashi007_ has joined #ruby
Musashi007 has quit [Ping timeout: 255 seconds]
Musashi007_ is now known as Musashi007
St_Marx has quit [Ping timeout: 250 seconds]
oo_ has quit [Remote host closed the connection]
bluOxigen has joined #ruby
commmmodo has quit [Quit: commmmodo]
lampd1_ has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
Stoge88 has joined #ruby
oo_ has joined #ruby
charlenopires has quit [Quit: Lingo: www.lingoirc.com]
yfeldblum has quit [Ping timeout: 244 seconds]
steveElsewhere has joined #ruby
commmmodo has joined #ruby
anarang has joined #ruby
<steveElsewhere> I'm going completely mad - can someone help me update my PATH via rake?
_seac_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lampd1 has quit [Ping timeout: 272 seconds]
<steveElsewhere> backticks don't seem to work, sh, %x...
<steveElsewhere> all I need is a simple: "export PATH=$PATH:$HOME/bin"
<steveElsewhere> but nothing seems to take
yfeldblum has joined #ruby
jeanlinux has quit [Ping timeout: 250 seconds]
rshetty has joined #ruby
<Hanmac> steveElsewhere: hm i only can say that you might not be able to set the PATH like that ...
psy_ has quit [Quit: Leaving]
<soahccc> steveElsewhere: what are you trying? Sounds like subshell is fouling you
St_Marx has joined #ruby
<steveElsewhere> i need to install a tool without sudo so I want to place it in home and add the path to PATH
djbkd has quit [Quit: My people need me...]
<Hanmac> steveElsewhere: hm have you tryed this: ENV["PATH"] += ":$HOME/bin" ?
<steveElsewhere> have not!
<steveElsewhere> will do 1sec
basex has joined #ruby
jeanlinux has joined #ruby
noop has quit [Ping timeout: 252 seconds]
hmsimha has quit [Ping timeout: 252 seconds]
kp666 has joined #ruby
lemur has joined #ruby
basex has quit [Ping timeout: 250 seconds]
<ajaiswal> arup_r, hi
<steveElsewhere> ha, it works but it doesn't take effect outside of rake
maletor has quit [Quit: Computer has gone to sleep.]
<soahccc> steveElsewhere: that is expected... I guess what you want is to set the path for the whole user?
<havenwood> steveElsewhere: it'll affect your process and its children, but never the parent process
virtualize has quit [Ping timeout: 252 seconds]
AndroUser466 has joined #ruby
<steveElsewhere> so I'd have to add it to my shell init and reload the shell or source the file?
<soahccc> I would say that is the only way
<steveElsewhere> ok that makes sense to me
hephaestus_rg has joined #ruby
Takle has joined #ruby
<steveElsewhere> thanks!
<soahccc> steveElsewhere: I "solved" it with this instructions (2.3) https://mcl.breitzeit.de/install_nix#2.-installing-mcl-(universal)
Morkel has joined #ruby
<steveElsewhere> perfect
shredding has joined #ruby
sevenseacat has joined #ruby
ChoiKyuSang has quit [Quit: Going offline, see ya! (www.adiirc.com]
Takle has quit [Ping timeout: 272 seconds]
_Andres has quit [Read error: Connection reset by peer]
mozzarella has quit [Quit: WeeChat 1.0.1]
_Andres has joined #ruby
mozzarella has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
shredding has quit [Ping timeout: 256 seconds]
testcore has quit [Remote host closed the connection]
testcore has joined #ruby
Valdrone has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
rshetty_ has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
agjacome has quit [Quit: leaving]
steveElsewhere has quit [Quit: Textual IRC Client: www.textualapp.com]
jrhe has joined #ruby
mozzarella has quit [Quit: WeeChat 1.0.1]
mozzarella has joined #ruby
checkit has quit [Quit: (null)]
oo_ has quit [Remote host closed the connection]
noop has joined #ruby
oo_ has joined #ruby
AndroUser466 has quit [Quit: good bye]
nicolastarzia has joined #ruby
noop has quit [Ping timeout: 256 seconds]
jrhe has quit [Quit: jrhe]
havenwood has quit []
nicolastarzia has quit [Ping timeout: 265 seconds]
russt has joined #ruby
fenzil has quit [Read error: Connection reset by peer]
elaptics is now known as elaptics`away
elaptics`away is now known as elaptics
jeremywrowe has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
i8igmac has quit [Ping timeout: 244 seconds]
ChoiKyuSang has joined #ruby
Guest64 has joined #ruby
tejas-manohar has joined #ruby
devoldmx has joined #ruby
charliesome has joined #ruby
russt has quit [Quit: russt]
noop has joined #ruby
dionysus69 has joined #ruby
psy_ has joined #ruby
<arup_r> Not able to get the data price from http://www.ae.com/web/browse/product_details.jsp?productId=3435_9183_826&catId=cat6430042 doc.xpath("(//div/span[normalize-space(substring-before(./@class,'saleprice ff-header'))='price'])[1]") is giving []... I did view source, where the price is present..
<arup_r> what am I missing ?
camilasan has quit [Remote host closed the connection]
noop has quit [Read error: Connection reset by peer]
<ajaiswal> arup_r, hello :)
<arup_r> hey.. hi...
<arup_r> Busy at work
<arup_r> things not working :(
<ajaiswal> arup_r, i can see that..
camilasan has joined #ruby
<arup_r> :)
mostlybadfly has quit [Quit: Connection closed for inactivity]
sdwrage has quit [Quit: This computer has gone to sleep]
commmmodo has quit [Quit: commmmodo]
cantonic has joined #ruby
rylev has joined #ruby
giuseppesolinas has joined #ruby
commmmodo has joined #ruby
charliesome has quit [Quit: zzz]
anarang has quit [Quit: Leaving]
rylev has quit [Ping timeout: 244 seconds]
Musashi007 has quit [Read error: Connection reset by peer]
Musashi007 has joined #ruby
noop has joined #ruby
oleo is now known as Guest21598
armyriad has quit [Ping timeout: 255 seconds]
oleo__ has joined #ruby
lkba_ has joined #ruby
jeanlinux has quit [Ping timeout: 256 seconds]
lkba has quit [Ping timeout: 245 seconds]
Guest21598 has quit [Ping timeout: 272 seconds]
rshetty_ has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
oo_ has quit [Remote host closed the connection]
psy__ has joined #ruby
oo_ has joined #ruby
Crazy_Atheist has quit [Quit: WeeChat 1.0.1]
psy__ has quit [Read error: Connection reset by peer]
iteratorP has joined #ruby
devoldmx has quit [Quit: AFK]
lampd1_ has quit [Remote host closed the connection]
Channel6 has quit [Quit: Leaving]
anarang has joined #ruby
jenrzzz has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
fandi has joined #ruby
alicanyilmaz has joined #ruby
renderful has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
charliesome has joined #ruby
brahmadpk has joined #ruby
alicanyilmaz has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
renderful has quit [Ping timeout: 258 seconds]
spicerack has joined #ruby
oo_ has joined #ruby
Dopagod has quit [Read error: Connection reset by peer]
alicanyilmaz has joined #ruby
alex88 has joined #ruby
charliesome has quit [Quit: zzz]
commmmodo has quit [Quit: commmmodo]
decoponio has joined #ruby
tombroomfield has joined #ruby
alicanyilmaz has quit [Quit: alicanyilmaz]
lzx has joined #ruby
commmmodo has joined #ruby
Musashi007 has quit [Quit: Musashi007]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sdwrage has joined #ruby
basex has joined #ruby
georgesmith has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
Guest64 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
georgesmith has quit [Read error: Connection reset by peer]
sdwrage has quit [Client Quit]
georgesmith has joined #ruby
dcarmich has joined #ruby
basex has quit [Ping timeout: 264 seconds]
tombroomfield has quit [Ping timeout: 255 seconds]
viblo has joined #ruby
SharpGAF has joined #ruby
SharpGAF has quit [Quit: Leaving.]
Valdrone has quit [Quit: Valdrone]
<sevenseacat> because you're calling a method that doesnt exist.
Techguy305 has quit [Ping timeout: 245 seconds]
bashusr has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
bashusr has joined #ruby
<arup_r> That I took from documentation
<arup_r> sevenseacat: ^^^^^^
<sevenseacat> is that the version of ruby you're using? whats the actual error message?
Takle has joined #ruby
georgesmith has quit [Quit: georgesmith]
<arup_r> `<main>': undefined method `response_body_permitted?' for #<Net::HTTPOK 200 OK readbody=true> (NoMethodError)
rurban has joined #ruby
thoughnut has joined #ruby
<Hanmac> arup_r: the sample need to be fixed, its now called only "body_permitted?"
Youka2 has quit [Quit: Nettalk6 - www.ntalk.de]
<arup_r> same error
georgesmith has joined #ruby
jaequery has joined #ruby
patrickholmes_ has joined #ruby
<sevenseacat> you dont provide information, we can't provide help
<sevenseacat> sorry.
patrickholmes has quit [Ping timeout: 244 seconds]
patrickholmes_ is now known as patrickholmes
lxsameer has quit [Read error: No route to host]
Takle has quit [Ping timeout: 265 seconds]
Cache_Money has joined #ruby
<arup_r> sevenseacat: What information you need..
<arup_r> ?
<sevenseacat> (16:26:35) sevenseacat: is that the version of ruby you're using? whats the actual error message?
<arup_r> sevenseacat: Yes.. 2.1.5
<Hanmac> sevenseacat: hm it looks like the method is gone ...
<arup_r> Did you try?
<Hanmac> sevenseacat: the method is documented but does not exist in the code
<arup_r> hanmac: +1
<sevenseacat> hanmac: i'm not the one with the problem
<sevenseacat> i was just starting the debugging process
<Hanmac> sevenseacat: yes, but its not arup_r's fault that it does fail
<arup_r> +1
<sevenseacat> i hadn't gotten that far yet
cantonic has quit [Quit: cantonic]
_Andres has quit [Read error: Connection reset by peer]
_Andres has joined #ruby
<Hanmac> HA! i found the culpit! its a class method but its documented as instance method!
<arup_r> hanmac: Need to report as a doco outdated.. It seems..
cantonic has joined #ruby
<Hanmac> arup_r: "res.class.body_permitted?" works for me ...
<arup_r> humm
<arup_r> Got the moto of the example now..
<arup_r> :)
rshetty has quit [Read error: Connection reset by peer]
bashusr has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
x1337807x has joined #ruby
hephaestus_rg has quit [Ping timeout: 245 seconds]
bashusr has joined #ruby
maestrojed has joined #ruby
<arup_r> hanmac: need one help I will be doing Ajax call with URL pattern like http://www.example.com/foo?start=1&sz=50&format=ajax.. Where 1 and 50 I want to change for each call.. like 51..100, 101..50 etc How can I do that using regex ?
<arup_r> How many time I need to replace I do have the logic.. Only not able to replace those numbers..
<Hanmac> nope i am not doing ajax stuff
bradleyprice has quit []
lkba_ has quit [Ping timeout: 245 seconds]
<arup_r> I need regex help
<arup_r> can I substitute those numbers dynamically?
<arup_r> hanmac: ^
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby
hgl has quit [Max SendQ exceeded]
hgl has joined #ruby
josephndenton has joined #ruby
georgesmith has quit [Quit: georgesmith]
Morkel has quit [Quit: Morkel]
keen__________11 has joined #ruby
keen__________10 has quit [Ping timeout: 245 seconds]
josephndenton has quit [Ping timeout: 258 seconds]
pen has joined #ruby
<Hanmac> arup_r: use sprintf directly
nicolastarzia has joined #ruby
<Hanmac> >> 1+2
<Hanmac> huch where is my evalin?
<arup_r> Awesome +1 +1
<arup_r> I totally forgot about String#%
<arup_r> Thanks Hanmac:
ayaz has joined #ruby
cantonic has quit [Quit: cantonic]
jmdade has quit [Quit: Textual IRC Client: www.textualapp.com]
bashusr has quit [Read error: Connection reset by peer]
arup_r has quit [Remote host closed the connection]
bashusr has joined #ruby
nicolastarzia has quit [Ping timeout: 258 seconds]
sevvie has quit [Read error: Connection reset by peer]
maestrojed has quit [Quit: Computer has gone to sleep.]
jmdade has joined #ruby
cantonic has joined #ruby
wolf4ood has quit [Quit: (null)]
sevvie has joined #ruby
<wasamasa> evalin sounds like a drug
AlSquire has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
soulcake has quit [Quit: Quack.]
fandi has quit [Remote host closed the connection]
soulcake has joined #ruby
hmsimha has joined #ruby
olivier_bK has joined #ruby
ChoiKyuSang has quit [Quit: Going offline, see ya! (www.adiirc.com]
kedare has quit [Ping timeout: 258 seconds]
dtordable has quit [Quit: leaving]
mjmac has quit [Ping timeout: 258 seconds]
dtordable has joined #ruby
dtordable has quit [Changing host]
dtordable has joined #ruby
lzx has quit [Remote host closed the connection]
rockdon has quit [Ping timeout: 258 seconds]
charliesome has joined #ruby
Flcn has quit [Quit: Be back later ...]
ChoiKyuSang has joined #ruby
basex has joined #ruby
lemur has quit [Remote host closed the connection]
dc_ has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
lemur has joined #ruby
CustosL1men has joined #ruby
startupality has joined #ruby
arup_r has joined #ruby
Zai00 has joined #ruby
iteratorP has quit [Quit: Leaving...]
basex has quit [Ping timeout: 244 seconds]
lemur has quit [Ping timeout: 255 seconds]
charliesome has quit [Quit: zzz]
hamakn has joined #ruby
rylev has joined #ruby
helpa has quit [Remote host closed the connection]
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 258 seconds]
nomadic has quit [Ping timeout: 244 seconds]
jaequery has quit [Ping timeout: 244 seconds]
echooo has quit [Ping timeout: 244 seconds]
wlanboy_ has quit [Ping timeout: 244 seconds]
bashusr has quit [Read error: Connection reset by peer]
hgl has quit [Ping timeout: 244 seconds]
julieeharshaw has quit [Ping timeout: 244 seconds]
dtordable has quit [Ping timeout: 244 seconds]
zorak8 has joined #ruby
echooo1 has joined #ruby
nomadic_ has joined #ruby
wlanboy has joined #ruby
yeticry has quit [Ping timeout: 244 seconds]
yeltzooo9 has quit [Ping timeout: 244 seconds]
eka has quit [Max SendQ exceeded]
echooo has joined #ruby
rylev has quit [Ping timeout: 240 seconds]
yeticry has joined #ruby
jaequery has joined #ruby
Spami has joined #ruby
<arup_r> >> url = "http://www.example.com/foo?start=%d&sz=%d&format=ajax" ; p url.gsub(/((?<=(start)=)|(?<=(sz)=))\d+/, '%d') % [21, 55]
hgl- has joined #ruby
<arup_r> hanmac: Can this regex be DRY?
hgl- is now known as hgl
helpa has joined #ruby
pibby has quit [Ping timeout: 244 seconds]
n008f4g_ has quit [Ping timeout: 244 seconds]
julieeharshaw has joined #ruby
echooo1 has quit [Ping timeout: 264 seconds]
sevvie has quit [Read error: Connection reset by peer]
<arup_r> So I need to replace first the numbers with %d and then need to use sprintf to put their new values
<arup_r> Actually the url is dynamic...
<arup_r> but it is not DRY.. :)
JimmyNeutron has quit [Ping timeout: 244 seconds]
sente has quit [Ping timeout: 244 seconds]
Stoge88 has quit [Ping timeout: 244 seconds]
tokik has quit [Ping timeout: 244 seconds]
_Andres has quit [Read error: Connection reset by peer]
echooo has quit [Ping timeout: 264 seconds]
cajone has joined #ruby
helpa has quit [Ping timeout: 244 seconds]
DrForr__ has quit [Ping timeout: 244 seconds]
razieliyo has quit [Ping timeout: 244 seconds]
ejnahc has quit [Ping timeout: 244 seconds]
cajone has quit [Ping timeout: 244 seconds]
soahccc has quit [Ping timeout: 244 seconds]
livcd has quit [Ping timeout: 244 seconds]
bashusr has joined #ruby
livcd_ has joined #ruby
echooo has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
<Hanmac> arup_r: something like that? url = "http://www.example.com/foo?start=11&sz=23&format=ajax" ; p url.gsub(/((?<=(start)=)|(?<=(sz)=))\d+/).with_index{|_,i| [21, 55][i]}
AndyBotwin has joined #ruby
viblo has quit [Ping timeout: 244 seconds]
bashusr has quit [Read error: Connection reset by peer]
<arup_r> hanmac: MERRY CHRISTMAS!!!
echooo1 has joined #ruby
lxsameer has joined #ruby
hamakn has quit [Remote host closed the connection]
Cache_Money has quit [Quit: Cache_Money]
viblo has joined #ruby
echooo has quit [Ping timeout: 245 seconds]
last_staff has joined #ruby
echooo has joined #ruby
viblo has quit [Client Quit]
hamakn has joined #ruby
lolmaus has joined #ruby
echooo1 has quit [Ping timeout: 245 seconds]
sevvie has joined #ruby
Flcn has joined #ruby
green-big-frog has joined #ruby
bashusr has joined #ruby
echooo1 has joined #ruby
LouisRoR has joined #ruby
echooo has quit [Ping timeout: 245 seconds]
sevvie has quit [Read error: Connection reset by peer]
sevvie has joined #ruby
echooo has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
last_staff has quit [Quit: Merry Christmas again, everyone!]
echooo1 has quit [Ping timeout: 245 seconds]
last_staff has joined #ruby
last_staff has quit [Client Quit]
yeticry has quit [Ping timeout: 255 seconds]
kp666 has quit [Quit: Leaving]
echooo1 has joined #ruby
yeticry has joined #ruby
xenomorph is now known as {xenomorph}
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hgl- has joined #ruby
{xenomorph} is now known as xenomorph
echooo has quit [Ping timeout: 265 seconds]
brahmadpk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hgl- has quit [Max SendQ exceeded]
startupality has quit [Quit: startupality]
bashusr has joined #ruby
hgl- has joined #ruby
hgl has quit [Read error: Connection reset by peer]
hgl- is now known as hgl
echooo has joined #ruby
echooo1 has quit [Ping timeout: 265 seconds]
josephndenton has joined #ruby
echooo1 has joined #ruby
rockdon has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
mjmac has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
echooo has quit [Ping timeout: 245 seconds]
echooo has joined #ruby
yfeldblum has joined #ruby
josephndenton has quit [Ping timeout: 245 seconds]
echooo1 has quit [Ping timeout: 245 seconds]
TPBallbag has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
bashusr has joined #ruby
echooo1 has joined #ruby
valeriansaliou has joined #ruby
pengin has joined #ruby
echooo has quit [Ping timeout: 244 seconds]
Zai00 has quit [Remote host closed the connection]
brahmadpk has joined #ruby
rshetty has quit [Remote host closed the connection]
Deele has joined #ruby
TPBallbag is now known as TPBaublebag
tkuchiki has quit [Ping timeout: 250 seconds]
startupality has joined #ruby
echooo has joined #ruby
rshetty has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
echooo1 has quit [Ping timeout: 244 seconds]
aswen has joined #ruby
spider-mario has joined #ruby
jheg has joined #ruby
reinaldob has joined #ruby
echooo1 has joined #ruby
Zai00 has joined #ruby
echooo has quit [Ping timeout: 245 seconds]
sevenseacat has quit [Remote host closed the connection]
bashusr has joined #ruby
Takle has joined #ruby
echooo has joined #ruby
aspiers has quit [Ping timeout: 265 seconds]
echooo1 has quit [Ping timeout: 245 seconds]
pengin has quit [Remote host closed the connection]
pengin has joined #ruby
troulouliou_dev has joined #ruby
echooo1 has joined #ruby
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
commmmodo has quit [Quit: commmmodo]
Takle has quit [Ping timeout: 265 seconds]
echooo has quit [Ping timeout: 255 seconds]
pengin has quit [Ping timeout: 240 seconds]
echooo has joined #ruby
echooo1 has quit [Ping timeout: 255 seconds]
echooo1 has joined #ruby
pen has quit []
echooo has quit [Ping timeout: 245 seconds]
Zai00 has quit [Remote host closed the connection]
kj_ has joined #ruby
chinaski has joined #ruby
charliesome has joined #ruby
echooo1 has quit [Ping timeout: 245 seconds]
basex has joined #ruby
<certainty> >> Array.new(3,"Ho!").each(&:display)
<certainty> damn
<certainty> anyway
Zai00 has joined #ruby
echooo has joined #ruby
chinaski has quit [Ping timeout: 258 seconds]
ohaibbq has quit [Quit: Leaving...]
basex has quit [Ping timeout: 240 seconds]
echooo1 has joined #ruby
<wasamasa> you should be scheming anyways
echooo has quit [Ping timeout: 255 seconds]
<certainty> wasamasa: heh ... good point
<certainty> the sad truth is that i sadly get to scheme lately
<certainty> erm
<certainty> rarely
jdj_dk has joined #ruby
<wasamasa> pah, I solved exercise 1.1 of SICP today
<certainty> cool that's a fine book
zorak8 has quit [Ping timeout: 244 seconds]
<wasamasa> yeah, I'm afraid the learning curve will go the emacs way though
echooo1 has quit [Ping timeout: 265 seconds]
<certainty> heh yeah probably.
echooo has joined #ruby
jeff-ooh has joined #ruby
<certainty> wasamasa: one thing that blew my mind was when things gone meta-circular
nicolastarzia has joined #ruby
<wasamasa> mhh
gokulnath has quit [Quit: Leaving]
<wasamasa> I got introduced to programming at university with a course that mixed up htdp with bits of sicp, the only thing that made sense was the calculator example
echooo1 has joined #ruby
nfk has joined #ruby
<wasamasa> I didn't have an idea before what parsing and interpreting actually meant
echooo has quit [Ping timeout: 265 seconds]
<certainty> wasamasa: one of the fundamental takeaways from SICP is that it explains very well how computation works. To think in terms of what processes a computation creates rather than how it is implemented
<certainty> that's something i still use today
<certainty> and teach to younger colleagues
chinaski has joined #ruby
<kj_> Hi I have return a ruby script in which I am using net/smtp to send mails. In IRB first time it worked so I integrated it with the scripts now it's giving error and the error is
brahmadpk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jeff-ooh has quit [Remote host closed the connection]
echooo has joined #ruby
<kj_> `check_auth_response': 534-5.7.14 <https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgjhbuxj (Net::SMTPAuthenticationError)
nicolastarzia has quit [Ping timeout: 240 seconds]
supersym has joined #ruby
<certainty> wasamasa: do you also know the little/seasoned schemer?
sevenseacat has joined #ruby
echooo1 has quit [Ping timeout: 272 seconds]
<wasamasa> certainty: someone at me hackerspace taught me about it
<wasamasa> *my
<certainty> those are very fine books as well
<certainty> also the reasoned schemer
echooo1 has joined #ruby
<certainty> for CL the two LoLs are great resources (of course also practical common lisp)
basex has joined #ruby
codecop has joined #ruby
<kj_> Hi I have return a ruby script in which I am using net/smtp to send mails. In IRB first time it worked so I integrated it with the scripts now it's giving error and the error is `check_auth_response': 534-5.7.14 <https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgjhbuxj (Net::SMTPAuthenticationError)
Spami has quit [Quit: This computer has gone to sleep]
echooo has quit [Ping timeout: 245 seconds]
dseitz has joined #ruby
<certainty> kj_: well check your credentials. It says that SMTP Auth failed
<certainty> either that or your auth mechenism is not supported but iirc that would yield a different error
<certainty> mechanism, even
<wasamasa> wait, two LoL?
<wasamasa> I only know about doug hoyte's let over lambda
<certainty> wasamasa: yeah Let over Lambda and Land of Lisp
<kj_> no issues with credentials certainty
echooo has joined #ruby
echooo1 has quit [Ping timeout: 245 seconds]
<certainty> time to head to the family ... have fun
<kj_> certainty_ no issues with credentials
m8 has joined #ruby
oo_ has quit [Remote host closed the connection]
echooo has quit [Ping timeout: 252 seconds]
supersym has quit [Quit: WeeChat 1.0.1]
Guest26597 has joined #ruby
echooo has joined #ruby
zorak8 has joined #ruby
Xeago has joined #ruby
<wasamasa> certainty: well, my friend who introduced me to the little schemer told me he was disappointed with let over lambda since it assumed you already know a different language well enough to not stumble over every example
echooo1 has joined #ruby
echooo has quit [Ping timeout: 264 seconds]
Takle has joined #ruby
jeanlinux has joined #ruby
anaeem1__ has joined #ruby
Jackneill has joined #ruby
zorak8 has quit [Read error: Connection reset by peer]
alex88_ has joined #ruby
echooo has joined #ruby
zorak8 has joined #ruby
vvivv has joined #ruby
anaeem1_ has quit [Ping timeout: 245 seconds]
echooo1 has quit [Ping timeout: 264 seconds]
alex88 has quit [Ping timeout: 256 seconds]
lzx has joined #ruby
echooo1 has joined #ruby
jeanlinux has quit [Ping timeout: 244 seconds]
Xeago has quit [Remote host closed the connection]
green-big-frog is now known as frog|OFF
echooo has quit [Ping timeout: 240 seconds]
echooo has joined #ruby
echooo1 has quit [Ping timeout: 240 seconds]
<godd2> I can't define pattern matching, but I'll know it when I see it.
rylev has joined #ruby
Synthead has quit [Quit: Leaving]
echooo1 has joined #ruby
echooo has quit [Ping timeout: 252 seconds]
ta has joined #ruby
max96at|off is now known as max96at
iamninja has quit [Quit: ZZZzzz…]
kirun has joined #ruby
rylev has quit [Ping timeout: 272 seconds]
leonmaia has joined #ruby
echooo has joined #ruby
echooo1 has quit [Ping timeout: 252 seconds]
doritostains has quit [Quit: WeeChat 1.0.1]
dumdedum has joined #ruby
aspiers has joined #ruby
<kj_> Guys I want to send email through ruby scripts any help ?
Guest26597 has quit [Ping timeout: 245 seconds]
echooo1 has joined #ruby
hakunin has quit [Read error: Connection reset by peer]
hakunin_ has joined #ruby
echooo has quit [Ping timeout: 252 seconds]
anaeem1_ has joined #ruby
anaeem1__ has quit [Read error: Connection reset by peer]
echooo has joined #ruby
_Andres has joined #ruby
Takle has quit [Remote host closed the connection]
brahmadpk has joined #ruby
echooo1 has quit [Ping timeout: 252 seconds]
chinaski has quit [Ping timeout: 244 seconds]
rshetty_ has joined #ruby
druznek has joined #ruby
echooo1 has joined #ruby
AndyBotwin has quit [Read error: Connection reset by peer]
olivier_bK has quit [Quit: Quitte]
aspiers has quit [Ping timeout: 272 seconds]
AlexRussia has joined #ruby
rkalfane has joined #ruby
olivier_bK has joined #ruby
olivier_bK has quit [Remote host closed the connection]
JimmyNeutron has joined #ruby
olivier_bK has joined #ruby
leonmaia has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
anaeem1_ has quit [Remote host closed the connection]
<godd2> kj_ check out https://github.com/mikel/mail
echooo has quit [Ping timeout: 265 seconds]
rshetty has quit [Ping timeout: 264 seconds]
AndyBotwin has joined #ruby
AndyBotwin has quit [Changing host]
AndyBotwin has joined #ruby
anaeem1_ has joined #ruby
echooo has joined #ruby
arup_r has quit [Remote host closed the connection]
echooo1 has quit [Ping timeout: 265 seconds]
valeriansaliou has quit [Ping timeout: 256 seconds]
chinmay_dd has joined #ruby
echooo1 has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
echooo has quit [Ping timeout: 255 seconds]
echooo has joined #ruby
rkalfane has joined #ruby
kj_ has quit [Quit: Page closed]
brahmadpk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
echooo1 has quit [Ping timeout: 255 seconds]
echooo1 has joined #ruby
chinaski has joined #ruby
echooo has quit [Ping timeout: 265 seconds]
mengu has joined #ruby
frog|OFF is now known as green-big-frog
pandaant has quit [Remote host closed the connection]
tombroomfield has joined #ruby
arup_r has joined #ruby
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
josephndenton has joined #ruby
Takle has joined #ruby
brahmadpk has joined #ruby
Takle_ has joined #ruby
dangerousdave has joined #ruby
brahmadpk has quit [Client Quit]
josephndenton has quit [Ping timeout: 258 seconds]
Takle has quit [Ping timeout: 265 seconds]
dangerousdave has quit [Ping timeout: 240 seconds]
dtordable has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amundj has joined #ruby
lampd1 has joined #ruby
Spami has joined #ruby
Spami has quit [Client Quit]
alex88 has joined #ruby
Darryl__ has joined #ruby
chipotle has quit [Quit: cheerio]
ta has quit [Remote host closed the connection]
alex88_ has quit [Ping timeout: 258 seconds]
MrIlyas has joined #ruby
lampd1 has quit [Ping timeout: 258 seconds]
jdj_dk has quit [Remote host closed the connection]
hmsimha has quit [Quit: Leaving]
echooo has joined #ruby
chipotle has joined #ruby
echooo1 has quit [Ping timeout: 265 seconds]
chipotle has quit [Client Quit]
Takle has joined #ruby
Takle_ has quit [Read error: Connection reset by peer]
banister has joined #ruby
kedare has joined #ruby
mikecmpbll has joined #ruby
spastorino has joined #ruby
wald0 has joined #ruby
iamninja has joined #ruby
rylev has joined #ruby
ta has joined #ruby
yfeldblu_ has joined #ruby
claptor has quit [Quit: this channel is bakas]
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
superrorc has joined #ruby
<superrorc> hi there!
<superrorc> trying to load args from cmd to sript
rurban has left #ruby ["Leaving"]
rylev has quit [Ping timeout: 245 seconds]
<superrorc> any ideas pls?
<godd2> superrorc File.new("in_file", "r") won't work. You'd need File.new(in_file, "r")
<godd2> passing "in_file" passes the literal string "in_file", not the contents of the variable in_file
yfeldblum has quit [Ping timeout: 256 seconds]
<godd2> same for "out_file"
ajaiswal has quit [Quit: Leaving]
tkuchiki has joined #ruby
Stoge88 has joined #ruby
<superrorc> o.. i see, thanks! i am noob )
<godd2> here is some good wisdom for new programmers: http://norvig.com/21-days.html
apeiros has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
<Hanmac> superrorc: also dont use File.new use File.open() { ... }
ta has quit [Quit: Leaving...]
<superrorc> godd2: coding is note mine)
<superrorc> hanmac: check it, ty
oponder has joined #ruby
ta has joined #ruby
kedare has quit [Quit: WeeChat 0.4.4-dev]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
AlexRussia has quit [Quit: WeeChat 1.1-dev]
AlexRussia has joined #ruby
rshetty_ has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
tombroom_ has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
nicolastarzia has joined #ruby
mikecmpbll has joined #ruby
bkulbida has joined #ruby
<superrorc> and one question please , trying to add symbol of new line ...
<superrorc> out_file.write(ips.uniq.join('\n'))
<superrorc> its failed
dionysus69 has quit [Quit: ChatZilla 0.9.91.1 [Firefox 34.0/20141127111021]]
rshetty_ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
<godd2> What is the most expressive programming language, and why is it Ruby?
nicolastarzia has quit [Ping timeout: 244 seconds]
rshetty_ has quit [Remote host closed the connection]
<superrorc> got it) \\n
bkulbida has quit [Client Quit]
porfa has quit [Ping timeout: 265 seconds]
rshetty_ has joined #ruby
rshetty has quit [Ping timeout: 255 seconds]
tkuchiki has quit [Ping timeout: 245 seconds]
porfa has joined #ruby
tuelz has joined #ruby
child has joined #ruby
zorak8 has quit [Ping timeout: 245 seconds]
<child> Im fucking trying to install ruby gem and bundle.... but bundle cannot be run as root, and as normal user it even not appears to the command line
yfeldblu_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
yeticry has quit [Ping timeout: 245 seconds]
sevvie has quit [Read error: Connection reset by peer]
despai has joined #ruby
startupality has quit [Quit: startupality]
sevvie has joined #ruby
valeriansaliou has joined #ruby
rshetty_ has quit [Remote host closed the connection]
dumdedum has quit [Quit: foo]
Takle has quit [Remote host closed the connection]
rshetty has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
valeriansaliou has quit [Ping timeout: 264 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
spicerack has joined #ruby
mikecmpbll has joined #ruby
<superrorc> child: $PATH ?
brahmadpk has joined #ruby
kiyote23 has joined #ruby
jmacdonald has joined #ruby
mikecmpbll has quit [Client Quit]
gr33n7007h has joined #ruby
kiyote23 has quit [Ping timeout: 258 seconds]
thoughnut has quit [Ping timeout: 244 seconds]
lzx has quit [Remote host closed the connection]
basex has quit [Remote host closed the connection]
kj_ has joined #ruby
thoughnut has joined #ruby
chipotle has joined #ruby
<kj_> I have tried all the way to send mail through ruby script everytime I try I same error Net::SMTPAuthenticationError: 534-5.7.14 <https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgnsbvAm
CustosL1men has quit [Ping timeout: 252 seconds]
s00pcan_ has joined #ruby
TPBaublebag has quit [Ping timeout: 265 seconds]
CustosL1men has joined #ruby
tuelz has quit [Ping timeout: 240 seconds]
rshetty has quit [Remote host closed the connection]
leitz has joined #ruby
<leitz> I think I'm in OOP hell...
TPBaublebag has joined #ruby
<leitz> An object has certain attributes. The class is almost always a super class. Sub-classes affect the attributes in differnet ways.
jespada has joined #ruby
<leitz> But a few of the attributes affect which subclass is chosen. So it seems like I need to instantiate the super class and then somehow toss in the right subclass.
<leitz> For an OOP newbie, this is confusing. At least for this OOP newbie...
pika_pika has joined #ruby
wald0 has quit [Quit: Lost terminal]
Spami has joined #ruby
mostlybadfly has joined #ruby
chinmay_dd has quit [Ping timeout: 256 seconds]
green-big-frog is now known as frog|OFF
klmlfl has joined #ruby
Takle has joined #ruby
oponder has quit []
wolf4ood has joined #ruby
jmacdonald has left #ruby ["Textual IRC Client: www.textualapp.com"]
postmodern has quit [Quit: Leaving]
clearlake has joined #ruby
Takle has quit [Ping timeout: 256 seconds]
<shevy> leitz the problem starts when you use terms like "attributes"
georgesmith has joined #ruby
<shevy> and what does "The class is almost always a super class" mean
charliesome has quit [Quit: zzz]
hiyosi has joined #ruby
chinmay_dd has joined #ruby
ta has quit [Remote host closed the connection]
ta has joined #ruby
josephndenton has joined #ruby
alex88 has quit []
rshetty has joined #ruby
Aryasam has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
<leitz> shevy, the super class is seldom if ever used by itself. Objects are almost always created from the subclasses.
<shevy> right so why is the super class important
<shevy> the subclass already has the instance variables it requires
<sevenseacat> youre not in OOP hell, you just dont really understand what youre trying to do
Takle has joined #ruby
<leitz> sevenseacat, I don't disagree. Just don't really get it.
<sevenseacat> maybe explain to us what youre trying to do?
<shevy> take sevenseacat here
<shevy> the superclass is class Cat
<sevenseacat> meow.
josephndenton has quit [Ping timeout: 272 seconds]
<leitz> shevy, the issue is that there are half a dozen possible sub-classes. An object only belongs to one, but which one is affected by the objects instance variables.
echooo has quit [Read error: Connection reset by peer]
<shevy> what is characteristic of a cat? four legs... a tail... a characteristic sound ... and whiskers.
sevvie has joined #ruby
* leitz visualizes seavenseacat introspecting...
<shevy> yes there can be many different cats. for example, class Garfield is a fat cat instance
* sevenseacat looks down own shirt
<shevy> and we assume that these be unique cats, so there is only one instance of class Garfield
<shevy> the instance variables do not determine as to what class something is; you always have the reference to class.self in your class
noop has quit [Ping timeout: 264 seconds]
Stoge88 has quit [Quit: Textual IRC Client: www.textualapp.com]
<kj_> It seems that we can't send email from irb or ruby-scripts as I tried all possibilities
<leitz> What if the superclass is Pet, and one of the variables is 'has_fur'. Sub-classes might be Cat, Dog, and FIsh. Which sub-class chosen depends on has_fur.
<kj_> tried action_mailer , mail, gmail. everything
<kj_> all the time same error
<sevenseacat> kj_: you sure can.
Takle has quit [Ping timeout: 272 seconds]
<kj_> same error everytime
<kj_> Net::SMTPAuthenticationError: 534-5.7.14 <https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgnsbvhX
tuelz has joined #ruby
<sevenseacat> your authentication details are wrong.
<sevenseacat> use the right ones.
<kj_> :( It worked fine when I try to login through firefox
<shevy> leitz yes, then you set this in your subclass
<shevy> leitz if you need to access the parent method, you can always use a call to super()
<sevenseacat> what happens when you click on the link?
Techguy305 has joined #ruby
<shevy> leitz you can not "choose" on an "attribute" without knowing what it is beforehand
<kj_> redirecting me to login page
Scripore has joined #ruby
<kj_> then "Security Checkup" Wizard
<sevenseacat> wtf is a security checkup wizard
<shevy> leitz what you describe here sounds as a factory pattern for creating instances, so you need another class that handles the proper instantiation of this depending on a has_fur instance variable; but it still does not make sense, because @has_fur is only available when you instantiate it
<kj_> ya same reaction everytime I receive that link and click
<kj_> over and over redirecting me to same link
Guest76 has joined #ruby
noop has joined #ruby
<kj_> I don't know wat I am missing here
sevvie has quit [Read error: Connection reset by peer]
<sevenseacat> sounds like your gmail account is a bit screwy
<shevy> what_is_this = AnimalFactory.create :has_fur => true, :is_fat => true, :likes_lasagne => true
anaeem1 has joined #ruby
<kj_> :D
<sevenseacat> try a different mail method
<shevy> what_is_this.name # => "Garfield"
<kj_> I created new one
<kj_> mail method ?
georgesmith has quit [Quit: georgesmith]
<sevenseacat> ie. not gmail
tombroom_ has quit [Remote host closed the connection]
<kj_> ohk
<kj_> Can you please suggest one
arup_r has quit [Remote host closed the connection]
AlexRussia has quit [Ping timeout: 245 seconds]
<sevenseacat> if you just want to test sending mail locally, i would suggest something like mailcatcher.
mrnugget has joined #ruby
<leitz> shevy, let me look at this a little differently, I'm still learning Ruby. Can I create the object with the super class and then somehow attach options from something else?
AlexRussia has joined #ruby
mrnugget has quit [Read error: Connection reset by peer]
sevvie has joined #ruby
Guest76 has quit [Ping timeout: 264 seconds]
jerius has joined #ruby
<leitz> For example, Oscar = Pet.new.. include cat_options; outside = skin_options[rand(skin_options.length)]
mrnugget has joined #ruby
<leitz> where skin_options would vary but whatever sort of *_options were chosen.
lampd1 has joined #ruby
<leitz> The other idea is to generate the variables that affect sub-class options and then set them into the object after it is instantiated.
<leitz> On a totally differnet note, sevenseacat, is your name related to a game?
<sevenseacat> nup
<leitz> Just wondering, it was a great game.
lampd1 has quit [Ping timeout: 258 seconds]
rylev has joined #ruby
Flcn has quit [Quit: Be back later ...]
sevenseacat has quit [Remote host closed the connection]
chinmay_dd has quit [Quit: Leaving]
TgMts has joined #ruby
<dtordable> shevy: hello!!!!!!!!!![H
samfisher has joined #ruby
<samfisher> hi, anyone here to help me with a small ruby script?
rylev has quit [Ping timeout: 244 seconds]
<samfisher> https://github.com/timcraft/nexmo this is the one, and I need FROM to be a list of number to send xmas messages
ta has quit [Remote host closed the connection]
s00pcan_ has quit [Ping timeout: 265 seconds]
AxonetBE has joined #ruby
<AxonetBE> Hi, this are my titles sorted by ASC https://gist.github.com/DriesS/b99174737ade1cd9e371
<AxonetBE> but I want to have the 500 before the 1000, is there a way to do this without creating extra field?
bkulbida has joined #ruby
<shevy> leitz ah you want a shapechanging object
vjt has quit [Quit: reboot]
reinaldob has quit [Remote host closed the connection]
<shevy> leitz that is not easily possible; evil.rb allowed this once but it won't be supported in default ruby
<shevy> leitz also, include happens inside of a class
reinaldob has joined #ruby
reinaldob has quit [Read error: Connection reset by peer]
<shevy> leitz one way you can realize this is not by subclassing but by adding a module of your choosing at run-time
reinaldob has joined #ruby
<shevy> I still don't understand where your subclass kicks in in your example leitz - so far you only described an instance of class Pet. Where are the subclasses here?
rkday has joined #ruby
<leitz> shevy, a sub-class might be Cat or Dog. Or Fish, if you don't like fur.
<samfisher> any help for me pls?
<leitz> shevy, the actual code is: https://github.com/LeamHall/CT_Character_Generator
evanjs has joined #ruby
<leitz> I can probably skip the 'variable affects selection' question for the moment. No desire for evil. :)
<leitz> And it's not really required for what I'm doing.
Takle has joined #ruby
tuelz has quit [Ping timeout: 245 seconds]
<leitz> I am, however, trying to learn to code well. That seems enough of a task for right now.
psyprus has quit [Ping timeout: 258 seconds]
<shevy> I still don't see where you use any subclass
reinaldob has quit [Ping timeout: 258 seconds]
<shevy> evil is not evil but evil.rb, https://github.com/yugui/evil-ruby/blob/master/lib/evil.rb and http://www.artima.com/forums/flat.jsp?forum=123&thread=147119 but it was more popular in the ruby 1.8.x era
<apeiros_> AxonetBE: that's called natural sorting. and reminds me that I still haven't added it to my `sorting` gem.
rshetty has quit [Remote host closed the connection]
<AxonetBE> apeiros_: found something : products.sort_by { |x| x.title[/\d+/].to_i }
<apeiros_> AxonetBE: that will only sort by number
<AxonetBE> that is ok as the title contains always a product number
<apeiros_> if you want to sort by nothing but that number, then that solution is good, yes
nicolastarzia has joined #ruby
AlexRussia has quit [Ping timeout: 258 seconds]
jeremywrowe has joined #ruby
nateberkopec has joined #ruby
ta has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
Hobogrammer has quit [Ping timeout: 264 seconds]
psyprus has joined #ruby
* leitz is called to the brunch table. Back in a few.
giuseppesolinas has quit [Quit: This computer has gone to sleep]
Mia has quit [Ping timeout: 258 seconds]
nicolastarzia has quit [Ping timeout: 255 seconds]
anaeem1 has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
silkfox has joined #ruby
elaptics is now known as elaptics`away
paulfm has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tvw has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
spicerack has joined #ruby
mary5030 has joined #ruby
spicerack has quit [Client Quit]
TgMts has quit [Quit: No Ping reply in 180 seconds.]
noop has quit [Quit: Leaving]
noop has joined #ruby
DadoCe has joined #ruby
AlexRussia has joined #ruby
TgMts has joined #ruby
mengu has quit [Remote host closed the connection]
jeremywrowe has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
sevvie has quit [Ping timeout: 258 seconds]
elfuego has quit [Quit: elfuego]
josephndenton has joined #ruby
jheg has quit [Quit: jheg]
TgMts has quit [Quit: No Ping reply in 180 seconds.]
LouisRoR has quit [Ping timeout: 244 seconds]
sevvie has joined #ruby
TgMts has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
josephndenton has quit [Ping timeout: 265 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 272 seconds]
lkba has joined #ruby
mary5030 has quit [Remote host closed the connection]
sevvie has joined #ruby
mary5030 has joined #ruby
kiyote23 has joined #ruby
dtordable has quit [Quit: leaving]
dtordable has joined #ruby
noop has quit [Ping timeout: 264 seconds]
noop has joined #ruby
dtordable has quit [Client Quit]
TgMts has quit [Ping timeout: 240 seconds]
dtordable has joined #ruby
dtordable has quit [Changing host]
dtordable has joined #ruby
oo_ has joined #ruby
elfuego has joined #ruby
mrnugget has quit [Quit: mrnugget]
elfuego has quit [Client Quit]
sevvie has quit [Read error: Connection reset by peer]
anarang has quit [Quit: Leaving]
lkba has quit [Ping timeout: 255 seconds]
oleo__ is now known as oleo
sevvie has joined #ruby
bradland has joined #ruby
frog|OFF is now known as green-big-frog
Aryasam_ has joined #ruby
Aryasam has quit [Ping timeout: 264 seconds]
sevvie has quit [Read error: Connection reset by peer]
sevvie has joined #ruby
iamjarvo_ has joined #ruby
iamjarvo_ has quit [Max SendQ exceeded]
mary5030 has quit [Remote host closed the connection]
iamjarvo_ has joined #ruby
silkfox has quit [Ping timeout: 240 seconds]
nateberkopec has quit [Quit: Leaving...]
tus has joined #ruby
evanjs has quit [Remote host closed the connection]
kj_ has quit [Quit: Page closed]
pushpak has joined #ruby
giuseppesolinas has joined #ruby
Kricir has joined #ruby
paulfm has quit [Quit: Zzzzz...]
sevvie has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
green-big-frog is now known as frog|OFF
lxsameer has quit [Quit: Leaving]
behrz has joined #ruby
behrz has quit [Read error: Connection reset by peer]
rkalfane has joined #ruby
behrz has joined #ruby
delianides has joined #ruby
reinaldob has joined #ruby
sevvie has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
silkfox has joined #ruby
anaeem1 has joined #ruby
<samfisher> anyone here pls?
<bradland> there are 836 of us here
davout has joined #ruby
<samfisher> bradland: I have this method nexmo.send_message(from: 'Ruby', to: 'YOUR NUMBER', text: 'Hello world') and would like to have 'Ruby" replaced with each line of a file
<samfisher> but dunnot exactly how to do it
<samfisher> I have File.readlines(file).each do |line|
behrz has quit [Ping timeout: 258 seconds]
<bradland> ok, you’re on the right track
beef-wellington has joined #ruby
<bradland> but one recommendation
jheg has joined #ruby
<samfisher> yes please
reinaldob has quit [Ping timeout: 264 seconds]
dandrade has joined #ruby
yeticry has joined #ruby
tvw has quit []
<bradland> don’t use File.readlines
<bradland> just use File.open
<bradland> File.readlines reads the entire file in to memory, which is inefficient
silkfox has quit [Ping timeout: 258 seconds]
<samfisher> ok
kish has quit [Read error: Connection reset by peer]
<bradland> File.open streams the file, which will read in chunks of the file in order to limit memory usage
<samfisher> and then, how do I replace 'Ruby' with the read variables?
<bradland> only use readlines when you need to perform an action that requires your app to “know” the entire contents
<bradland> within the block, the variable “line” contains the line from the file
<bradland> it’s called an iterator
mattwildig has joined #ruby
kish has joined #ruby
<samfisher> thank you. I didn't knew what is called and couldn't search much on google
freerobby has joined #ruby
<shevy> hanmac, does your new computer work finally?
<bradland> the code within the do/end block will be called once for each line of the file
<bradland> and “line” will contain a string representing the line
<samfisher> so to: line will work?
despai has quit [Ping timeout: 264 seconds]
vvivv has quit [Ping timeout: 252 seconds]
AxonetBE has quit [Quit: AxonetBE]
kapil__ has quit [Quit: Connection closed for inactivity]
snath has quit [Ping timeout: 250 seconds]
<samfisher> amazing
<samfisher> it worked
yeticry has quit [Ping timeout: 245 seconds]
despai has joined #ruby
Aryasam_ has quit [Quit: Bye]
kish has quit [Read error: Connection reset by peer]
chipotle has quit [Max SendQ exceeded]
Zai00 has quit [Quit: Zai00]
kish has joined #ruby
rylev has joined #ruby
chipotle has joined #ruby
cajone has quit [Quit: Leaving.]
keen__________12 has joined #ruby
oleo has quit [Quit: Verlassend]
kish has quit [Read error: Connection reset by peer]
cajone has joined #ruby
keen__________11 has quit [Ping timeout: 252 seconds]
cajone has quit [Remote host closed the connection]
<Hanmac> shevy new system is working, i already did play some games and do program again ... and i got a present from the ruby bug ticker xD
ta has quit [Remote host closed the connection]
cajone has joined #ruby
cajone has quit [Remote host closed the connection]
kish has joined #ruby
<shevy> \o/
samfisher has quit [Quit: exit error code 434]
Flcn has joined #ruby
cajone has joined #ruby
oleo has joined #ruby
TgMts has joined #ruby
Takle_ has joined #ruby
Takle has quit [Ping timeout: 265 seconds]
Flcn_ has joined #ruby
lkba has joined #ruby
Deele has quit [Ping timeout: 244 seconds]
Scripore has quit [Ping timeout: 240 seconds]
delianides has quit [Remote host closed the connection]
TgMts has quit [Client Quit]
kish has quit [Read error: Connection reset by peer]
Flcn has quit [Ping timeout: 264 seconds]
<shevy> we are the bug exterminators
<shevy> we eliminate them
despai has quit [Quit: This computer has gone to sleep]
<bradland> speak for yourself
<shevy> we grab them by the balls and toss them out the window
<bradland> i’m a bug factory
hamakn has joined #ruby
<shevy> then we also throw bradland out the window for good measure :)
kish has joined #ruby
it0a has joined #ruby
gregf has quit [Quit: WeeChat 1.0.1]
<shevy> how do you guys write benchmarks?
<shevy> I feel my current way is tedious
yeticry has joined #ruby
TgMts has joined #ruby
Lucky__ has joined #ruby
<waxjar> benchmark-ips! :D
rshetty has joined #ruby
chipotle has quit [Quit: cheerio]
hamakn has quit [Ping timeout: 272 seconds]
msmith has joined #ruby
<shevy> hmm
spider-mario has quit [Ping timeout: 264 seconds]
<shevy> what is ips doing?
josephndenton has joined #ruby
<bradland> iterations per second
yeticry has quit [Ping timeout: 244 seconds]
<shevy> I just compared .tr vs .gsub vs. .delete
<shevy> what would you guys think is the slowest among these three for the same net operation
druznek has quit [Ping timeout: 258 seconds]
hamakn has joined #ruby
<bradland> .delete (total guess)
despai has joined #ruby
<shevy> let me paste the three lines... user / system / total / real
<waxjar> gsub i suppose
davout has quit [Remote host closed the connection]
<shevy> Testing: .tr 1.950000 0.000000 1.950000 ( 2.445973)
<shevy> Testing: .gsub 24.760000 0.010000 24.770000 ( 31.492082)
<shevy> Testing: .delete 1.890000 0.000000 1.890000 ( 2.401972)
<shevy> I then compared .tr and .delete and .delete is consistently a bit faster than .tr but only very little
<bradland> woooooooa
byprdct has joined #ruby
<shevy> bradland I think the pickaxe mentioned it once that .gsub has to carry a regex engine or something like that
<shevy> oh sorry
<shevy> I see a mistake
kish has quit [Read error: Connection reset by peer]
<shevy> let me rerun the above...
TPBaublebag has quit []
kish has joined #ruby
<shevy> I assume .gsub is not that slow as I showed above hehe
AxonetBE_ has joined #ruby
<bradland> shevy: gist the source for that benchmark
AndyBotwin has quit [Remote host closed the connection]
<shevy> yeah
<bradland> i want to play with it
<shevy> I increased the amount of times though but .gsub is still by far the slowest :(
<shevy> I should really find all instances of where I use .gsub(bla,'') and use .tr instead
msmith has quit [Remote host closed the connection]
TgMts has quit [Quit: No Ping reply in 180 seconds.]
rpag has joined #ruby
freerobby has quit [Quit: Leaving.]
tombroom_ has joined #ruby
zorak8 has joined #ruby
<shevy> perhaps you can make .gsub faster bradland :)
<bradland> ha! unlikely
<waxjar> gsub and tr don't work the same though, shevy
aswen has quit [Ping timeout: 245 seconds]
<bradland> rule of thumb is, only use gsub when you _need_ regex
geggam has joined #ruby
<shevy> waxjar but for the given operation they are or?
<waxjar> yeah :)
<shevy> well it would seem fair for what they do anyway - .gsub offers the most features but is also the slowest
<shevy> but it's like a snail train
Soda has joined #ruby
Juanchito has quit [Quit: Connection closed for inactivity]
Deele has joined #ruby
mattwildig has quit []
tombroom_ has quit [Ping timeout: 244 seconds]
<waxjar> tr('ab', 'cd') replaces every a with a c and every b with a d, gsub('ab', 'cd') replaces every 'ab' with 'cd'
<waxjar> >> 'a1b'.tr('ab', 'cd')
snath has joined #ruby
<waxjar> => "c1d"
<waxjar> :P
lampd1 has joined #ruby
msmith has joined #ruby
TgMts has joined #ruby
jack_rabbit has joined #ruby
DadoCe has quit [Remote host closed the connection]
AUS3RIS has joined #ruby
freerobby has joined #ruby
Scripore has joined #ruby
lampd1 has quit [Ping timeout: 240 seconds]
AUS3RIS has quit [Client Quit]
rbennacer has joined #ruby
TgMts has quit [Client Quit]
yfeldblum has joined #ruby
AUS3RIS has joined #ruby
delianides has joined #ruby
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
Guest64 has joined #ruby
AUS3RIS has quit [Client Quit]
delianid_ has joined #ruby
AUS3RIS has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 255 seconds]
oo_ has quit [Remote host closed the connection]
delianides has quit [Ping timeout: 272 seconds]
jack_rabbit has quit [Ping timeout: 240 seconds]
ixti has joined #ruby
TgMts has joined #ruby
rylev has quit [Remote host closed the connection]
_ixti_ has quit [Ping timeout: 272 seconds]
sevvie has joined #ruby
xlogic has joined #ruby
hamakn has quit [Remote host closed the connection]
mary5030 has joined #ruby
reinaldob has joined #ruby
AxonetBE_ has quit [Quit: AxonetBE_]
xlogic has quit [Client Quit]
<pontiki> morning, folks
tjohnson has joined #ruby
mjuszczak has joined #ruby
commmmodo has joined #ruby
Scripore has quit [Ping timeout: 264 seconds]
sevvie has quit [Read error: Connection reset by peer]
mary5030 has quit [Ping timeout: 265 seconds]
reinaldob has quit [Ping timeout: 256 seconds]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Scripore has joined #ruby
yeticry has joined #ruby
existensil has quit [Quit: WeeChat 0.4.2]
Hanmac has quit [Ping timeout: 265 seconds]
sevvie has joined #ruby
<shevy> are you the x-mas present to #ruby today pontiki
neoxquick has quit [Quit: Miranda NG! Smaller, Faster, Easier. http://miranda-ng.org/]
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
crueber has joined #ruby
jaequery has joined #ruby
Deele has quit [Ping timeout: 244 seconds]
olivier_bK has quit [Ping timeout: 264 seconds]
Valdrone has joined #ruby
yeticry has quit [Remote host closed the connection]
rkday has quit [Ping timeout: 244 seconds]
jaequery has quit [Client Quit]
jimmyhoughjr has joined #ruby
droidburgundy has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
sevvie has quit [Read error: Connection reset by peer]
AxonetBE has joined #ruby
<byprdct> Is there a way to view method arguments via the terminal? For instance when I run some_object.methods it gives me a list of methods but is there a way I can see how I would use that method?
silkfox has joined #ruby
<bradland> byprdct: that’s a documentation feature. the command line tool for that is ri
msmith has quit [Remote host closed the connection]
<byprdct> awesome, thanks bradland
porfa has quit [Quit: porfa]
<byprdct> bradland so how would I use that on a specific method?
sargas has joined #ruby
<byprdct> I'm guessing I could use it on any object in the command line
<byprdct> do I use it as a flag or?
sevvie has joined #ruby
<byprdct> thank you!
beef-wellington has quit [Ping timeout: 240 seconds]
msmith has joined #ruby
Hanmac has joined #ruby
apeiros has quit []
rkalfane has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
sevvie has joined #ruby
allos_nerelin has joined #ruby
Takle_ has quit [Remote host closed the connection]
freerobby has left #ruby [#ruby]
arup_r has joined #ruby
AUS3RIS has quit [Remote host closed the connection]
vita has joined #ruby
AUS3RIS has joined #ruby
druznek has joined #ruby
devdazed has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
jespada has quit [Quit: Leaving]
druznek has quit [Client Quit]
<shevy> byprdct you can usually tab complete
<shevy> ri Arr<PRESS TAB HERE>
<shevy> there even once was a ncurses project where you got a fancy colourized combo-dropdown box when you pressed tab
arietis has joined #ruby
CustosL1men has quit [Quit: Leaving]
delianid_ has quit [Remote host closed the connection]
commmmodo has quit [Quit: commmmodo]
iamjarvo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
despai has joined #ruby
gsd has joined #ruby
leitz has quit [Quit: Nappy time]
sargas has quit [Quit: This computer has gone to sleep]
Channel6 has joined #ruby
spider-mario has joined #ruby
russt has joined #ruby
mjuszczak has quit []
AxonetBE has quit [Quit: AxonetBE]
tus has quit [Ping timeout: 265 seconds]
jerius has quit []
rkday has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
mengu has quit [Remote host closed the connection]
sevvie has quit [Read error: Connection reset by peer]
anaeem1 has quit [Remote host closed the connection]
clearlake has quit [Quit: Textual IRC Client: www.textualapp.com]
yfeldblum has joined #ruby
clearlake has joined #ruby
chipotle has joined #ruby
Kricir has quit [Remote host closed the connection]
silkfox has quit [Ping timeout: 256 seconds]
despai has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
silkfox has joined #ruby
despai has quit [Client Quit]
iamjarvo has joined #ruby
uber_hulk has joined #ruby
uber_hulk has left #ruby [#ruby]
sevvie has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
msmith has quit [Remote host closed the connection]
Scripore has quit [Ping timeout: 240 seconds]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
yeticry has joined #ruby
clearlake has quit [Quit: Textual IRC Client: www.textualapp.com]
tus has joined #ruby
crueber has quit [Quit: Leaving.]
<byprdct> Thanks shevy!
russt has quit [Quit: russt]
it0a has quit [Quit: WeeChat 1.0.1]
jaequery has joined #ruby
Cyberheb has joined #ruby
yeticry has quit [Remote host closed the connection]
jimms has joined #ruby
sargas has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest90 has joined #ruby
jzigmund has quit [Ping timeout: 250 seconds]
jzigmund has joined #ruby
TgMts has quit [Quit: No Ping reply in 180 seconds.]
bricker`work has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
sargas has quit [Client Quit]
TgMts has joined #ruby
gregf has joined #ruby
vita has quit [Quit: WeeChat 1.0.1]
evanjs has joined #ruby
Techguy305 has quit [Read error: Connection reset by peer]
Techguy305 has joined #ruby
sevvie has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
TgMts has quit [Quit: No Ping reply in 180 seconds.]
TgMts has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
djbender has quit [Read error: Connection reset by peer]
djbender has joined #ruby
sevvie has joined #ruby
barderer has joined #ruby
hamakn has joined #ruby
lectrick is now known as pmarreck
studiotate has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
agjacome has joined #ruby
Guest64 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rshetty has quit [Remote host closed the connection]
sevvie has joined #ruby
hamakn has quit [Ping timeout: 250 seconds]
pu22l3r_ has joined #ruby
havenwood has joined #ruby
brahmadpk has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> hellooo
Rapier- has joined #ruby
Areessell has joined #ruby
pu22l3r has quit [Ping timeout: 250 seconds]
<bricker`work> hellooooo
adriancb has joined #ruby
AUS3RIS has quit [Quit: ZZZzzz…]
bkulbida has quit [Quit: bkulbida]
<havenwood> squeeze('o')
Spami has joined #ruby
rkday has quit [Ping timeout: 245 seconds]
rkday has joined #ruby
dts|pokeball has joined #ruby
yeticry has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
Darryl__ has quit [Quit: Connection closed for inactivity]
yeticry has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
<rpag> >> "helloooo".squeeze('o')
mengu has joined #ruby
jaequery has quit [Ping timeout: 255 seconds]
sevvie has joined #ruby
jaequery has joined #ruby
<majeure> pry
<majeure> Whoops.
davedev24_ has quit [Ping timeout: 264 seconds]
mengu has quit [Ping timeout: 244 seconds]
Valdrone has quit [Quit: Valdrone]
porfa has joined #ruby
doodlehaus has joined #ruby
davedev24_ has joined #ruby
doodlehaus has quit [Remote host closed the connection]
doodlehaus has joined #ruby
jack_rabbit has joined #ruby
Azure has quit [Quit: My MBP went to sleep.]
gsd has joined #ruby
commmmodo has joined #ruby
yfeldblum has joined #ruby
yeticry has joined #ruby
tier has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 256 seconds]
Flcn_ has quit [Quit: Be back later ...]
nicolastarzia has joined #ruby
yeticry has quit [Remote host closed the connection]
lampd1_ has joined #ruby
doodlehaus has quit [Remote host closed the connection]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Scripore has joined #ruby
yeticry has joined #ruby
gsd has joined #ruby
checkit has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
tier has quit [Remote host closed the connection]
nicolastarzia has quit [Ping timeout: 250 seconds]
gsd has quit [Client Quit]
adriancb has quit [Remote host closed the connection]
tier has joined #ruby
lampd1_ has quit [Ping timeout: 258 seconds]
CustosL1men has joined #ruby
doodlehaus has joined #ruby
doodlehaus has quit [Remote host closed the connection]
yeticry has quit [Remote host closed the connection]
sarkis has joined #ruby
impi0us has joined #ruby
mattwildig has joined #ruby
<sarkis> hey all - we run a ruby on rails app in production and have been using rbenv - i don't like the crazy mess it makes - remembering to run things with rbenv exec etc etc
<sarkis> how does the ppa work out for production apps?
<pipework> brightbox ain't bad.
<sarkis> any first hand experiences? :)
<pipework> My company packages their own rubies and stuff.
JBreit has joined #ruby
<sarkis> feels so wrong using rbenv in prod :/
<pipework> Yeah, I'm not a fan of that either.
lolmaus has quit [Quit: Konversation terminated!]
<havenwood> sarkis: rbenv's maintainers don't recommend using it in production either.
<sarkis> ya :|
* pipework doesn't believe everything they say, but believes that
<kalleth> package { 'ruby2.1’: ensure => installed, require => Apt::Ppa['ppa:brightbox/ruby-ng-experimental'] }
<kalleth> :D
karmatr0n has quit [Remote host closed the connection]
<sarkis> experimental eh?
<kalleth> nah, it's an 'experimental' ppa but it contains good builds
<kalleth> basically the official releases as packages, because debian/buntu package repos are so hilariously out of date when it comes to rubby releases
<sarkis> ya - i assume it gets the newer versions sooner than the other "stable" one
msmith has joined #ruby
silkfox has quit [Ping timeout: 240 seconds]
startupality has joined #ruby
<kalleth> seems i'm wrong and they do have 'experimental' performance improvements
<shevy> no xmas ruby
<shevy> I am a sad one now
<kalleth> wat
porfa has quit [Quit: porfa]
porfa has joined #ruby
xenomorph is now known as {xenomorph}
sevvie has joined #ruby
barderer has quit [Ping timeout: 240 seconds]
samfisher has joined #ruby
msmith has quit [Ping timeout: 255 seconds]
lw has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
s00pcan_ has joined #ruby
yeticry has joined #ruby
rbennacer has quit [Remote host closed the connection]
BTRE has quit [Quit: Leaving]
dts|pokeball has quit [Read error: Connection reset by peer]
dts|pokeball has joined #ruby
elfuego has joined #ruby
ddd has quit [Ping timeout: 258 seconds]
deryl has joined #ruby
sevvie has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
klmlfl has quit [Remote host closed the connection]
klmlfl has joined #ruby
yeticry has quit [Remote host closed the connection]
maletor has joined #ruby
<bricker`work> Long shot: Has anybody worked with Sphinx? Am I meant to manually increment the ID field, or is there some sort of auto increment?
rkday has quit [Ping timeout: 240 seconds]
tombroomfield has quit [Remote host closed the connection]
sevvie has quit [Read error: Connection reset by peer]
kiyote23 has quit [Remote host closed the connection]
kiyote23 has joined #ruby
rylev has joined #ruby
mattwildig has quit [Remote host closed the connection]
jack_rabbit has quit [Ping timeout: 240 seconds]
davedev2_ has joined #ruby
startupality has quit [Quit: startupality]
davedev24_ has quit [Ping timeout: 258 seconds]
rbennacer has joined #ruby
chipotle has quit [Quit: cheerio]
rbennacer has quit [Remote host closed the connection]
dcarmich has joined #ruby
kiyote23 has quit [Remote host closed the connection]
Musashi007 has joined #ruby
JBreit has left #ruby ["Leaving"]
kiyote23 has joined #ruby
noop has quit [Ping timeout: 244 seconds]
Lucky__ has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
despai has joined #ruby
ixti has quit [Ping timeout: 240 seconds]
despai has quit [Client Quit]
msmith has joined #ruby
kish has quit [Quit: leaving]
pu22l3r_ has quit [Remote host closed the connection]
Valdrone has joined #ruby
elaptics`away is now known as elaptics
vvivv has joined #ruby
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
tier has quit [Remote host closed the connection]
despai has joined #ruby
chipotle has joined #ruby
yfeldblum has joined #ruby
despai has quit [Client Quit]
kiyote23 has quit [Remote host closed the connection]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
triple_b has joined #ruby
delianides has joined #ruby
Stoge88 has joined #ruby
Guest64 has joined #ruby
kiyote23 has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
ixti has joined #ruby
studiotate_ has joined #ruby
msmith has quit [Remote host closed the connection]
aswen has joined #ruby
studiotate__ has joined #ruby
studiotate has quit [Ping timeout: 258 seconds]
msmith has joined #ruby
pwnz0r has joined #ruby
delianides has quit [Ping timeout: 256 seconds]
havenwood has quit [Remote host closed the connection]
studiotate_ has quit [Ping timeout: 258 seconds]
Valdrone has quit [Quit: Valdrone]
_solomon has joined #ruby
_solomon has quit [Client Quit]
_solomon has joined #ruby
rylev has quit [Remote host closed the connection]
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
tejas-manohar has left #ruby [#ruby]
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
bluOxigen has quit [Ping timeout: 245 seconds]
x1337807x has joined #ruby
FooMunki has quit [Read error: No route to host]
arietis has joined #ruby
x1337807x has quit [Client Quit]
FooMunki has joined #ruby
anaeem1 has joined #ruby
mattmcclure has joined #ruby
tus has quit [Ping timeout: 244 seconds]
shuber_ has joined #ruby
Valdrone has joined #ruby
melik has joined #ruby
rbennacer has joined #ruby
yeticry has joined #ruby
uber_hulk has joined #ruby
Rapier- has quit [Read error: Connection reset by peer]
mattwildig has joined #ruby
Rapier- has joined #ruby
rbennacer has quit [Remote host closed the connection]
jaequery has quit [Ping timeout: 250 seconds]
kiyote23 has quit [Remote host closed the connection]
<pwnz0r> hey guys. question about test/unit
<pwnz0r> ive seen this as a general pattern now...
* pipework waits for pasted code
jaequery has joined #ruby
<pwnz0r> when i have 7 tests lets say.
<pwnz0r> is tehre something in some of the assertions that use more than one assertion itself?
<pwnz0r> when i write it its 1 assertion per test
rkalfane has joined #ruby
<pwnz0r> or number of assertions > number of tests
<pwnz0r> sometimes it says i have 11 assertions
<pwnz0r> im using test/unit
yeticry has quit [Ping timeout: 250 seconds]
tus has joined #ruby
<pwnz0r> sorry number of assertions is > that number of tests, but i use one assertion per test
<pwnz0r> hopefully that makes sense
rylev has joined #ruby
{xenomorph} is now known as xenomorph
<pipework> I think there's no rule about it.
<pipework> If test setup is expensive, I assert more per test.
<pwnz0r> ok that makes sense.
<pwnz0r> but im just curious becuase
<pwnz0r> i have 7 test functions with 1 assert each
<pwnz0r> but i get this as a response
<pwnz0r> 7 tests, 11 assertions, 0 failures, 0 errors, 0 skips
<pwnz0r> so im curious where the other 4 assertions are from
<pipework> You'd have to show your code.
vinleod has joined #ruby
<pwnz0r> ill git paste it
<pwnz0r> hold on
<pipework> gist is pretty nice.
ixti has quit [Ping timeout: 240 seconds]
jaequery has quit [Ping timeout: 265 seconds]
<pipework> pwnz0r: Huh, I'm not super sure. What ruby are you on?>
havenwood has joined #ruby
<pwnz0r> 2.1.5
<pwnz0r> it seems as though assert_match has another assert inside it
<pipework> pwnz0r: Try using minitest from rubygems and calling into that.
jaequery has joined #ruby
msmith has quit [Remote host closed the connection]
Guest90 has quit [Quit: Textual IRC Client: www.textualapp.com]
<pwnz0r> is minitest better? i have the gem but ive never really used i
<pwnz0r> it
<pipework> It's the successor to T::U
dc_ has joined #ruby
ixti has joined #ruby
child has quit [Ping timeout: 246 seconds]
<pwnz0r> ic
<pwnz0r> ill check it out
<pwnz0r> thanks
rkday has joined #ruby
<pwnz0r> test unit is just so simple and clean haha hopefully minitest is simple and clean
<pipework> minitest is super simple and clean.
michaeldeol has joined #ruby
<pwnz0r> cool
<pwnz0r> ya checking out the github readme now. seems simple enough. although ive never written a spec file for anything due to my newbness at ruby so far
<shevy> feliz navidad
<shevy> feliz navidad!
startupality has joined #ruby
x1337807x has joined #ruby
icebourg has joined #ruby
<pwnz0r> same 2 u
<shevy> :)
<pipework> pwnz0r: Well, you can write tests or specs with minitest and minitest-spec respectively.
<havenwood> shevy: Fröhliche Weihnachten!
<shevy> yay!
<havenwood> pwnz0r: I see 6 tests and 6 assertions with TestUnit, though the last two tests are dups. What version is your TestUnit?
<pwnz0r> 2.1.5
evanjs has quit [Remote host closed the connection]
razieliyo has joined #ruby
<havenwood> pwnz0r: ah, i thought that was your Ruby versions.. heh
<pwnz0r> both are 2.1.5
<havenwood> oh!
<havenwood> pwnz0r: can you just?: gem install test-unit
<havenwood> pwnz0r: The test-unit gem will be what ships with Ruby 2.2.
<pwnz0r> well ive just been convinced to switch over to minitest
<havenwood> pwnz0r: Do that instead! :)
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pwnz0r> haha great
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pipework> havenwood: Oh they're switching back to T::U?
<havenwood> pipework: No, they're just gemifying minitest and tu
lw has quit [Quit: s]
<pwnz0r> ruby 2.1.5 shipped with minitest and tu for me at least
<pipework> havenwood: Oh gotcha. Thought they were shipping another vendored version.
<havenwood> pwnz0r: they will keep shipping with bow
<havenwood> both*
<havenwood> just gems
decoponio has quit [Quit: Leaving...]
<pwnz0r> cool
<havenwood> at least as far as i recall from bugs.ruby-lang.org
<havenwood> i think it was proposed to remove test libs entirely, objections ensued and gemifying both minitest and test-unit was settled upon
<pwnz0r> do you guys regulary gem update? or do you run with some older versions of gems from time to time
<havenwood> pwnz0r: bleeding edge!
spicerack has joined #ruby
<pwnz0r> ?
evanjs has joined #ruby
<havenwood> pwnz0r: i generally use the latest stable release
<pwnz0r> does gem update normally give you stable of development release?
_solomon has quit [Quit: _solomon]
<pwnz0r> im with you on that one. id rather use stable as well
<pwnz0r> just like good old debian 7
kiyote23 has joined #ruby
<pipework> I don't ever gem update unless it's a tool that doesn't belong in a Gemfile
lolmaus has joined #ruby
<havenwood> Update test-unit 3.0.8 (removed from repository but bundled in tarball)
<havenwood> Update minitest 5.4.3 (removed from repository but bundled in tarball)
<havenwood> hmm
lw has joined #ruby
lw has quit [Max SendQ exceeded]
anaeem___ has joined #ruby
spicerack has quit [Client Quit]
Channel6 has quit [Quit: Leaving]
<havenwood> well, the march towards gemifying slowing proceeds
<havenwood> shevy: any formal word on 2.2 ship date?
kiyote23 has quit [Remote host closed the connection]
allos_nerelin has quit []
<shevy> havenwood dunno reall, the last release on the ftp server is like 5 days old by now
<shevy> hanmac must have delayed it all
anaeem1 has quit [Ping timeout: 265 seconds]
lw has joined #ruby
chrishough has joined #ruby
yfeldblum has joined #ruby
lw has quit [Client Quit]
startupality has quit [Quit: startupality]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pwnz0r> is assert_match replaced by refute_match?
<pwnz0r> or are those two different asserts
michaeldeol has joined #ruby
<pwnz0r> refering to minitest here
<pipework> assert and refute inverse pairs.
despai has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
Techguy305 has quit [Ping timeout: 255 seconds]
FooMunki has quit [Quit: FooMunki]
s00pcan_ has quit [Ping timeout: 245 seconds]
<pwnz0r> ahh
<pwnz0r> ic
Synchunk has quit [Ping timeout: 240 seconds]
nicolastarzia has joined #ruby
<pwnz0r> so its pretty much the same, just a few naming convensions and different inherittance of course
<pwnz0r> cool im down for minimal change
Synchunk has joined #ruby
<pipework> Yeah, it's pretty nice.
mloveless has joined #ruby
<pwnz0r> what are mocks and stubs useful for?
Dopagod has joined #ruby
uber_hulk has quit [Quit: leaving]
<pipework> pwnz0r: Lying, mostly.
<pwnz0r> haha ok
Spami has quit [Quit: This computer has gone to sleep]
nicolastarzia has quit [Ping timeout: 252 seconds]
<pwnz0r> and desccribe is just a way to make the output more understandable for other users i take it?
jheg has quit [Quit: jheg]
oleo__ has joined #ruby
evanjs has quit [Remote host closed the connection]
PanzerModern has quit [Remote host closed the connection]
<pwnz0r> or is describe only used for spec, mock, and stubs, not unit tests
<pipework> Well, describe and all that are a different approach where you follow more BDD stuff.
oleo__ has quit [Read error: Connection reset by peer]
<pipework> mocks and stubs aren't tied to tests or specs. They're useful regardless of whether you prefer assertions or bdd style stuff.
oleo is now known as Guest73081
oleo__ has joined #ruby
tombroomfield has joined #ruby
Guest70 has joined #ruby
<pwnz0r> alright cool
<pwnz0r> well so far im liking this
frog0909 has joined #ruby
<pwnz0r> very simple which is the whole point of tests
Guest73081 has quit [Ping timeout: 245 seconds]
SOLDIERz has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
shuber_ has quit [Remote host closed the connection]
shuber_ has joined #ruby
tombroomfield has quit [Ping timeout: 272 seconds]
jaequery has quit [Ping timeout: 240 seconds]
despai has joined #ruby
jimms has quit []
impi0us has quit [Ping timeout: 255 seconds]
porfa has quit [Quit: porfa]
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lampd1_ has joined #ruby
michaeldeol has joined #ruby
jaequery has joined #ruby
Stoge88 has joined #ruby
commmmodo has quit [Quit: commmmodo]
lemur has joined #ruby
Valdrone has quit [Quit: Valdrone]
icebourg has quit []
sevvie has joined #ruby
renderful has joined #ruby
mattwildig has quit [Remote host closed the connection]
lampd1_ has quit [Ping timeout: 244 seconds]
Guest64 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mloveless has quit [Remote host closed the connection]
Timgauthier has joined #ruby
yfeldblum has joined #ruby
crueber has joined #ruby
doodlehaus has joined #ruby
AlexRussia has quit [Changing host]
AlexRussia has joined #ruby
Cache_Money has joined #ruby
evanjs has joined #ruby
evanjs has quit [Remote host closed the connection]
renderful has quit [Ping timeout: 245 seconds]
SOLDIERz has quit [Quit: Be back later ...]
crueber has quit [Ping timeout: 256 seconds]
doodlehaus has quit [Ping timeout: 245 seconds]
russt has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
Valdrone has joined #ruby
chrishough has joined #ruby
Timgauthier is now known as timgauthier_away
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
diegoviola has joined #ruby
AlexRussia has quit [Ping timeout: 256 seconds]
msmith has joined #ruby
<dtordable> shevy: I have everything to learn Ruby now
<dtordable> shevy: I downloaded the examples of the book
AlexRussia has joined #ruby
Neomex has joined #ruby
<shevy> did you start
havenwood has quit [Remote host closed the connection]
Cyberheb has quit [Quit: Textual IRC Client: www.textualapp.com]
adriancb has joined #ruby
msmith has quit [Ping timeout: 255 seconds]
anaeem___ has quit [Remote host closed the connection]
AlexRussia has quit [Changing host]
AlexRussia has joined #ruby
rshetty has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
zen_ has joined #ruby
elfuego has quit [Quit: elfuego]
jaequery_ has joined #ruby
chipotle has quit [Quit: cheerio]
jaequery has quit [Ping timeout: 272 seconds]
<pwnz0r> dtordable: which book?
<pwnz0r> also can you use a range with a variable, such as (1..var)
mattwildig has joined #ruby
rshetty has quit [Ping timeout: 272 seconds]
Guest70 has quit [Quit: Textual IRC Client: www.textualapp.com]
AlexRussia has quit [Ping timeout: 240 seconds]
<bradland> pwnz0r: yes, you can use variables in ranges
rgs has quit [Ping timeout: 256 seconds]
<Hanmac> or you can use functions like 1.upto(var)
mloveless has joined #ruby
<pwnz0r> o that is even cleanre
<pwnz0r> thans hanmac
Timgauthier has joined #ruby
despai has joined #ruby
Timgauthier has quit [Client Quit]
Timgauthier has joined #ruby
<dtordable> pwnz0r: "book of ruby" from "How Collingbourne"
x1337807x has joined #ruby
<dtordable> huw collingbourne
rylev has quit [Remote host closed the connection]
davedev24_ has joined #ruby
davedev2_ has quit [Read error: Connection reset by peer]
Channel6 has joined #ruby
jaequery_ has quit [Ping timeout: 256 seconds]
gfawcettpq has joined #ruby
<Timgauthier> Merry Christmas | Frohe Weinachten | Joyeux Nöel
fourthousandsix has joined #ruby
AlexRussia has joined #ruby
jaequery has joined #ruby
keen__________12 has quit [Read error: Connection reset by peer]
iamninja has quit [Quit: ZZZzzz…]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<fourthousandsix> i need help configuring ruby on linux, I am trying to use gem to install sass and i get an error that says I dont have /root/.gem/ruby/2.1.0/bin in my PATH and that excecutables will not run
bricker`work has quit [Quit: leaving]
keen__________12 has joined #ruby
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<fourthousandsix> executables**
<fourthousandsix> i am using RCH LINUX AND THE DOCUMENTATION ON THE SUBJECT IS INCOMPLETE OR INCORRECT
<bradland> fourthousandsix: how did you install ruby? package, or ruby manager?
gfawcettpq has quit [Ping timeout: 265 seconds]
<pipework> fourthousandsix: I don't know how to help you. If you use arch, surely you know how to change your PATH.
<pipework> If you don't or don't want to learn it, there's chruby that can manage switching rubies into your path for you.
BTRE has joined #ruby
<fourthousandsix> I USED PACMAN TO INSTALL IT
<bradland> sry, can’t help you with that one. not familiar.
<bradland> if the docs are wrong/bad/out of date, i’d maybe recommend switching to a ruby manager like chruby
<pipework> fourthousandsix: ARE YOU TROLLING WITH YOUR CAPSLOCKS?
jack_rabbit has joined #ruby
Stoge88 has joined #ruby
<fourthousandsix> AND NOT ALL ARCH USERS KNOW EVERYTHING, i AM USING IT BECAUSE i AM RELATIVELY PROFICIENT WITH LINUX AND FIGURED iD GIVE ARCH A TRY BECAUSE IT IS AVAILIBLE FOR MY RASPBERRY PI
it0a has joined #ruby
rylev has joined #ruby
<bradland> pls kindly press the key to the left of “a” on your keyboard
<fourthousandsix> i DONT KNOW HOW TO CHANGE MY PATH, COULD YOU ENLIGHTEN ME
<pipework> Yeah, they seem to cater to that kinda crowd. I'd suggest you check out some other channels for that knowledge, but for getting ruby into your path, use chruby.
<fourthousandsix> I TRIED EDITING ~/.BASHRC AND IT DIDNT WORK
shuber_ has quit [Remote host closed the connection]
<pipework> I'd suggest an easier distro though, until you get a hold on everything, unless you're working up to learning all these kinds of things.
jdj_dk has joined #ruby
<fourthousandsix> no im not trolling i just use a font with all caps on my irc client and didnt know it was all caps in the output
rylev has quit [Remote host closed the connection]
<bradland> whew
Deele has joined #ruby
<fourthousandsix> i learn stuff like this everyday lol thats how i got here
<pipework> Ah so you just troll yourself. :D
<bradland> haha :)
<fourthousandsix> fuck this
fourthousandsix has quit [Quit: Leaving]
<pipework> Lol.
jaequery has quit [Ping timeout: 244 seconds]
<bradland> likelihood that he’ll get through that: 0%
shuber_ has joined #ruby
<pipework> I find arch users fascinating and frustrating.
jaequery has joined #ruby
Spami has joined #ruby
yeticry has joined #ruby
mattwildig has quit [Remote host closed the connection]
Timgauthier is now known as timgauthier_away
shuber_ has quit [Remote host closed the connection]
<dtordable> dd
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dtordable> Merry Christmas to all!
byprdct has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
claymore has joined #ruby
yeticry has quit [Remote host closed the connection]
Guest64 has joined #ruby
<dtordable> shevy: are you there?
<pipework> Even when he's present he's never quite fully 'there'.
Spami has quit [Quit: This computer has gone to sleep]
neoxquick has joined #ruby
Spami has joined #ruby
byprdct has joined #ruby
<dtordable> pipework: shevy is a dude dude
<dtordable> lol
Spami has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
lemur has quit [Remote host closed the connection]
arup_r has quit [Quit: Leaving.]
lemur has joined #ruby
<pwnz0r> wow did that guy just rage quit irc?
<pwnz0r> if you change your bashrc file you have to source it...
<pwnz0r> who uses arch linux that doesnt knowhow to linux... kids these days
ddd has joined #ruby
x1337807x has quit [Read error: No route to host]
x1337807x has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
x1337807x has quit [Read error: Connection reset by peer]
x1337807x has joined #ruby
lemur has quit [Ping timeout: 272 seconds]
deryl has quit [Ping timeout: 255 seconds]
klmlfl has quit [Remote host closed the connection]
x1337807x has quit [Client Quit]
icebourg has joined #ruby
fourthousandsix has joined #ruby
<fourthousandsix> i figured it out on my own, thanks for giving this channel a bad rep by being total aSSHOLES
<jidar> lol
pushpak has quit [Quit: Linkinus - http://linkinus.com]
Spami has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
melik has quit [Quit: (null)]
<shevy> dtordable I am semi-here
<shevy> fourthousandsix the problem is that you use distribution installation
<bradland> man, i really resent being called an asshole
<bradland> you came in to the ruby channel asking a systems question
<bradland> used caps lock the whole time, effectively shouting at everyone
<bradland> and got angry when no one could guide you through configuring the arch pacman packages
diegoviola has quit [Ping timeout: 252 seconds]
<shevy> wait
<shevy> we guide people through pacman here?
<bradland> if you don’t, you’re an asshole (apparently)
<shevy> nah
<bradland> i mean, i’m all happy to help people with off topic stuff, but geeze
msmith has joined #ruby
<shevy> it's a distribution specific problem he has so he must go to #pacman
despai has quit [Quit: This computer has gone to sleep]
<bradland> i mean, i’d give it a shot (helping)
jdj_dk has quit [Remote host closed the connection]
<shevy> ok fourthousandsix bradland will help you
despai has joined #ruby
byprdct has quit [Read error: Connection reset by peer]
<shevy> he is fake trolling though :)
<shevy> like xmas trolling
<jaequery> is it possible to do something like this? raise MyException.new( {:msg => 'validation error occurred'}) ...... and then inside rescue MyException => e , I do puts e[:msg] ?
mattwildig has joined #ruby
<crome> raise WtfError, 'message'; catch WtfError > e; puts e.message; end
<crome> er
<crome> rescue*
msmith has quit [Remote host closed the connection]
<crome> -typos
<jaequery> i dont want it just a message, i want pass in a hash of params that i can retrieve inside rescue
<jaequery> possible?
<crome> sure, you can put anything you want in your StandardError subclass
<pipework> jaequery: You can do whatever you want, the idea is that the exception class must accept those params.
despai has quit [Quit: This computer has gone to sleep]
<pipework> jaequery: The first argument _should_ be a message, and the others _ought_ to be optional.
jheg has joined #ruby
deryl has joined #ruby
havenwood has joined #ruby
ddd has quit [Ping timeout: 244 seconds]
Jackneill has quit [Remote host closed the connection]
Areessell has quit [Ping timeout: 272 seconds]
nymous has joined #ruby
<dtordable> shevy: I admire you
snath has quit [Ping timeout: 244 seconds]
<nymous> hey folks
chinaski has quit [Remote host closed the connection]
claudiuinberlin1 has joined #ruby
nicolastarzia has joined #ruby
<nymous> i have a stupid question... how to properly deploy ruby app with gem dependencies with c-extensions?
<pipework> see how nokogiri does it
DLSteve has quit [Quit: Leaving]
<nymous> i was trying to pack them with fpm and deploy using apt from my local repo
jdj_dk has joined #ruby
<nymous> but if one app wish to use an older version of gem than other app, i screwed, because apt doesn't allow that
<shevy> dtordable go learn ruby
<nymous> all i need is to deploy some ruby apps to my servers (fluentd, r10k etc) with minimum install dependencies
dc_ has quit [Remote host closed the connection]
<dtordable> shevy: It's late here, but I'll make time to learn something tomorrow
claudiuinberlin has quit [Ping timeout: 255 seconds]
<shevy> no you won't
<pipework> nymous: Package the apps, vendor the gems.
studiotate__ has quit [Quit: Lingo - http://www.lingoirc.com]
<nymous> pipework: how to vendor them?
<dtordable> shevy: I will make
<pipework> nymous: bundler
rainfyre has joined #ruby
<nymous> or... i mean how to package it?
nicolastarzia has quit [Ping timeout: 244 seconds]
yeticry has joined #ruby
<nymous> i don't want to install bundler on all servers
<pipework> nymous: When packaging the app, you just use bundler to install the dependencies to vendor/bundle
icebourg has quit []
<pipework> Then the final package is the app and its dependencies.
<pipework> A bit larger, but a lot easier if you're deploying multiple apps into the same server or namespace.
rylev has joined #ruby
<nymous> ok, see what i did. i have created an app folder on my dev machine, add Gemfile with primary app gem. did bundle package and bundle install --binstubs
<nymous> this makes me a folder with gems and some structure
<nymous> how to deploy it?
jdj_dk has quit [Remote host closed the connection]
allcentury has joined #ruby
<pipework> You didn't vendor the gems unless you have a .bundle/config that points to vendor/bundle
ixti has quit [Ping timeout: 252 seconds]
tier has joined #ruby
deryl has quit []
deavid has quit [Ping timeout: 250 seconds]
yeticry has quit [Ping timeout: 244 seconds]
<nymous> i don't get it
<nymous> is there a tutorial on how to deploy with bundler?
ixti has joined #ruby
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
MartynKeigher has joined #ruby
tier has quit [Ping timeout: 272 seconds]
dc_ has joined #ruby
deavid has joined #ruby
max96at is now known as max96at|off
claudiuinberlin1 has quit [Quit: Leaving.]
tombroomfield has joined #ruby
sevvie has quit [Ping timeout: 245 seconds]
chipotle has joined #ruby
mattmcclure is now known as sh1ps
josephndenton has quit [Ping timeout: 272 seconds]
sh1ps is now known as mattmcclure
Guest64 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tombroomfield has quit [Ping timeout: 245 seconds]
kiyote23 has joined #ruby
russt has quit [Quit: russt]
russt has joined #ruby
despai has joined #ruby
Synchunk has quit [Read error: Connection reset by peer]
FooMunki has joined #ruby
jheg has quit [Quit: jheg]
Synchunk has joined #ruby
lampd1_ has joined #ruby
checkit has quit [Ping timeout: 245 seconds]
mary5030 has quit [Remote host closed the connection]
rylev has quit [Remote host closed the connection]
Synchunk has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
Synchunk has joined #ruby
adriancb has quit [Remote host closed the connection]
adriancb has joined #ruby
lampd1_ has quit [Ping timeout: 258 seconds]
doodlehaus has joined #ruby
mary5030 has quit [Ping timeout: 244 seconds]
adriancb has quit [Ping timeout: 265 seconds]
dw2121 has joined #ruby
jaequery has quit [Ping timeout: 265 seconds]
jaequery has joined #ruby
Valdrone has quit [Quit: Valdrone]
doodlehaus has quit [Ping timeout: 255 seconds]
TgMts_ has joined #ruby
dw2121 has quit [Client Quit]
_pudding has joined #ruby
TgMts has quit [Ping timeout: 252 seconds]
bweston92 has joined #ruby
Valdrone has joined #ruby
<bradland> nymous: in order to accomplish what you want, you’ll need to understand a little more about how rubygems work
jeanlinux has joined #ruby
Hobogrammer has joined #ruby
<bradland> bundler installs ruby gems (packages of code) to a specific location. that location is configurable.
<bradland> to “vendor” gems is to configure bundler to install them to a location within your app root, rather than a separate (shared) location.
gr33n7007h has quit [Ping timeout: 244 seconds]
pwnz0r has quit [Remote host closed the connection]
<_pudding> I'm super new to Ruby, following a tutorial for Sinatra, and running into a really basic error... I've got a file called song.rb. in the same directory, I fire up IRB and type: require './song'
jeanlinux has quit [Ping timeout: 245 seconds]
<_pudding> irb then spits out an error: LoadError: cannot load such file -- rm-core from /Users/sam/.rbenv/versions/1.9.3-p448/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
diegoviola has joined #ruby
pwnz0r has joined #ruby
<_pudding> i'm not sure what to make of the error... does anyone have any pointers?
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
jeanlinux has joined #ruby
<bradland> _pudding: hrm. ruby is complaining that it can’t load the file “rm-core”, which I don’t recognize.
<bradland> can you pastie more of the stacktrace?
<_pudding> gah, i'm a fool
<_pudding> it's a typo in the song.rb file
<bradland> yeah, i was going to say, it’s probably an issue with a require within song.rb
<bradland> are you familiar with stack traces?
<_pudding> only slightly
<bradland> ok, in general, what you want to do is work your way down from the top
<bradland> start by looking for the first entry that relates to a file within your project
<bradland> often times, if you send bad parameters to ruby methods (like require), the error will occur within a ruby file (like custom_require.rb), but the problem originated in your script.
<bradland> in this case, you’ll probably see a reference to song.rb and a line number within the stack trace
<bradland> that’s where the error started
<_pudding> ah, ok
<bradland> this particular error is pretty common, because humans are generally bad at typing
<bradland> and when you make a typo in a require (very common), this is the erro ryou get
<bradland> “hey, i can’t load this thing you asked me for”
msmith has joined #ruby
mengu has joined #ruby
<_pudding> thanks much!
<bradland> you bet
spastorino has joined #ruby
TgMts_ has quit [Quit: No Ping reply in 180 seconds.]
nfk has quit [Quit: yawn]
Soda has quit [Remote host closed the connection]
dorei has joined #ruby
TgMts has joined #ruby
dtordable has quit [Quit: Lost terminal]
msmith has quit [Ping timeout: 252 seconds]
snath has joined #ruby
yeticry has joined #ruby
<bradland> hey shevy, just a cool benchmark formatting trick that you might like. you can pass an argument to Benchmark.bm specifying the length of the labels so that stuff lines up correctly: http://pastie.org/9797816
<bradland> embedding spaces lines up the results, but not the headers
<bradland> not sure why Benchmark doesn’t auto-detect the longest label and use that ¯\_(ツ)_/¯
chipotle has quit [Quit: cheerio]
<shevy> aha
yeticry has quit [Remote host closed the connection]
chipotle has joined #ruby
melik has joined #ruby
<waxjar> benchmark-ips does that, sorta. very long labels get their own line
<shevy> that's much better than having to manually pad :D
chipotle has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
chipotle has joined #ruby
mary5030 has joined #ruby
Rapier- has quit [Ping timeout: 264 seconds]
diegoviola has quit [Quit: WeeChat 1.0.1]
mengu has quit [Quit: Leaving]
melik has quit [Ping timeout: 272 seconds]
sarkis has quit [Ping timeout: 244 seconds]
helpa has joined #ruby
<bradland> shevy: here’s what that benchmark looks like using benchmark-ips: https://gist.github.com/bradland/96e05f5c09d61acc82fc
<bradland> PS, my computer is faster :P
<bradland> i love how benchmark-ips provides a comparison relating in terms of “Nx slower”
josephndenton has joined #ruby
Menorah has joined #ruby
<shevy> yeah
<shevy> you have some pimped up computer there
<bradland> it does 88 MPH.
<bradland> i’m real proud of it
<shevy> require 'benchmark/ips' is a gem addon?
shuber_ has joined #ruby
<bradland> ya
<bradland> gem install benchmark-ips
<bradland> no deps. nice clean install.
<bradland> well, may be deps, but i already had them
Guest64 has joined #ruby
Synchunk` has joined #ruby
Takle has joined #ruby
Synchunk has quit [Ping timeout: 245 seconds]
Synchunk` is now known as Synchunk
tjohnson has quit [Quit: Connection closed for inactivity]
kenneth has joined #ruby
<nymous> bradland: i understand (partially) how bundler works, it creates whole infrastructure with dependencies in app's folder. just unsure how to properly deploy it. say, would it be ok to make "bundle install --standalone --deployment --binstubs" and just copy resulting folder to a production server?
TgMts_ has joined #ruby
<nymous> can i make system-wide binstubs?
DLSteve has joined #ruby
Synchunk` has joined #ruby
<bradland> i recommend using a deployment system, like capistrano
<nymous> i already have apt repo and puppet
<bradland> the nice thing about capistrano is that it uses all the “correct” incantations for rails, the asset, pipeline, and bundler
<nymous> just don't want to mess with other tools too much
<bradland> capistrano is a client-side only tool
<bradland> you really don’t want to deploy a rails app manually
<bradland> you’ll hate yourself for it in a week
<nymous> i'm trying to deploy end-user ruby apps like r10k and fluentd
<bradland> the way capistrano does it is to provide a path to bundler
TgMts has quit [Ping timeout: 252 seconds]
Synchunk has quit [Ping timeout: 240 seconds]
Synchunk` is now known as Synchunk
<nymous> puppet itself is packaged somehow and nicely integrates into system with just system ruby
mattwildig has quit [Remote host closed the connection]
<nymous> i want to implement something like it
<bradland> hrm, i’ve never deployed either of these
<bradland> only custom built rails apps
<nymous> i mean not the tool, but packaging
<bradland> for your own app?
<bradland> or for r10k and fluentd?
<nymous> for this apps
<bradland> to some degree, the app has to support that kind of environment
Xeago has joined #ruby
<nymous> i can install them just by executing gem install r10k or gem install fluentd
<nymous> but they build some c-extenstions for their dependencies
<bradland> yeah, sorry, much of the advice i’ve given you so far has been for deploying your own rails apps
<nymous> i just do not want to install ruby-dev, build-essentials and stuff on all my servers
<bradland> in the case of an app from someone else, you’ll have to rely on their recommended deployment practices
<bradland> unfortunately, that’s a big part of how ruby works
russt has quit [Quit: russt]
<bradland> any ruby gem that has c-extensions is compiled during install
<nymous> fluentd has an omnibus prepackages version, but it contains the whole stack including their version of ruby, i think it's a bit an overkill
<nymous> i'm quite happy with system ruby
<bradland> therein lies the rub
mary5030 has quit [Remote host closed the connection]
<bradland> well, not really
Guest64 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bradland> i mean, you should be able to vendor your gems and ship them to your servers
mary5030 has joined #ruby
<bradland> problem is, i don’t know anything about r10k
<bradland> it’s all about the load path
<bradland> if the gems exist within the load path, you’re fine
<nymous> r10k is an automation script for puppet environments
<bradland> and you install it using `gem install`?
vinleod has quit [Quit: Computer has gone to sleep.]
<nymous> yes
pika_pika has quit [Ping timeout: 258 seconds]
<bradland> install ruby-dev and build-essentials
<bradland> you might be able to package all this up, but it’s going to take a lot of time and knowledge
<nymous> well, r10k doesn't compile anything, it's fluentd who compiles
<bradland> ah
<nymous> i've tried fpm packaging approach
<nymous> you can convert gems to debs with it
chipotle has quit [Quit: cheerio]
<bradland> are all the deployment environments identical?
<nymous> everything works perfectly fine except one thing
jeanlinux has quit [Remote host closed the connection]
<bradland> what’s the one thing?
Guest64 has joined #ruby
<nymous> fluentd uses faraday 0.9.0, r10k uses 0.8.9
<bradland> heh
<bradland> of course
<nymous> gem allows to have both, but apt-get doesn't
<bradland> hrm
<nymous> so i end up with version conflict, won't install
<nymous> so i'm searching for another way
<bradland> any way to package them so they won’t conflict. like faraday08 and faraday09?
Takle_ has joined #ruby
mary5030 has quit [Ping timeout: 245 seconds]
<nymous> and yes, my environments are pretty same, they are debian 7 cloud instances built from one image
<nymous> hm... interesting point about renaming
adriancb has joined #ruby
pwnz0r has quit [Remote host closed the connection]
<bradland> if you hit a wall, there’s another new-ish project that might help you: Traveling Ruby
hmsimha has joined #ruby
<bradland> their FAQ has some sage advice with regard to packaging and shipping Ruby interpreters: https://github.com/phusion/traveling-ruby#faq
<bradland> i’m off to xmas eve at the fam’s.
<bradland> see you guys!
Spami has quit [Quit: This computer has gone to sleep]
m8 has quit [Quit: Sto andando via]
<nymous> it's like omnibus i guess
<nymous> same approach, pack everything
Takle has quit [Ping timeout: 265 seconds]
<nymous> anyway, merry xmas bradland
jack_rabbit has quit [Ping timeout: 252 seconds]
mary5030 has joined #ruby
SOLDIERz has joined #ruby
wolf4ood has quit [Quit: (null)]
GGMethos has quit [Remote host closed the connection]
tkuchiki has joined #ruby
comm64 has joined #ruby
hiyosi has joined #ruby
<comm64> what is the ruby way of defining a named constant?
claymore has quit [Quit: Leaving]
<crome> ASD = 5
<comm64> that simple?
<comm64> thanks
rylev has joined #ruby
kiyote23 has quit [Remote host closed the connection]
<crome> you can add a semicolon at the end if it makes you feel better
<comm64> lol
thoughnut has quit [Quit: leaving]
SOLDIERz has quit [Ping timeout: 256 seconds]
<comm64> does it matter if the constant I'm defining is a boolean
josephndenton has quit [Ping timeout: 240 seconds]
Cache_Money has quit [Quit: Cache_Money]
<pipework> comm64: Constants point to objects.
<pipework> Any object.
josephndenton has joined #ruby
zen_ has quit [Ping timeout: 244 seconds]
<shevy> are constants also objects?
rylev has quit [Ping timeout: 252 seconds]
<crome> besides, there aren't really constants in ruby
<pipework> No, why would they be?
<pipework> They aren't constant, they're variables that warn you when you reassign them to a new object.
<pipework> But they're special too.
spicerack has joined #ruby
Guest64 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<comm64> so, for example, in php one might do... define('CONSTANT_NAME', true);
<comm64> how would one do that in ruby?
<pipework> comm64: SomeConstant = something
<pipework> Then there's stuff like const_set, but most of the time you don't need it.
<pipework> comm64: Do a ruby tutorial.
<comm64> I have
whyGaard has joined #ruby
mary5030_ has joined #ruby
mary5030_ has quit [Remote host closed the connection]
<whyGaard> hiya all o/ I'm installing homebrew to get my ruby updated to 2.2. upon installing homebrew, I get this error and I'm wondering if it's actually a problem, or if I can ignore it:
<crome> there are no constants in ruby. the closest you get (or rather, the most idiomatic thing there is) is assigning values that are supposed to be "constant" to variables that have a label starting with a capital letter
<crome> reassigning them will give a warning
<crome> but they are not constant per se
mary5030_ has joined #ruby
<whyGaard> Warning: /usr/bin occurs before /usr/local/bin
<whyGaard> Consider setting your PATH so that /usr/local/bin
<whyGaard> occurs before /usr/bin.
tombroomfield has joined #ruby
<whyGaard> is this an issue, at all? can I leave it alone?
<whyGaard> or is it really beneficial to set /usrs/local/bin before /usr/bin?
<pipework> whyGaard: It's a warning.
<comm64> I'm trying to implement in ruby an application originally written in php
<pipework> Most people set /usr/local first
<pipework> comm64: My condolences. Must be like trying to draw a portrait based off of a picasso.
<whyGaard> okay, so it's okay to leave it alone
<comm64> lol
<pipework> whyGaard: It's a warning. You won't be slaughtered in the night.
nicolastarzia has joined #ruby
<whyGaard> :P
<pipework> Most people have /usr/local/bin first
<crome> comm64: from the perspective of the app's behaviour it does not really matter if those things are not really constant, does it? just do CONSTANT_NAME = foo and consider it done
<whyGaard> oh oh
diegoviola has joined #ruby
mary5030 has quit [Ping timeout: 244 seconds]
jaequery has quit [Ping timeout: 240 seconds]
<pipework> It would probably help you out if you read what each of those directories tend to hold and what goes in them.
despai has quit [Quit: This computer has gone to sleep]
<whyGaard> okay, thanks ^^
shuber_ has quit [Remote host closed the connection]
<comm64> pipework: that actually describes the feeling quite well
<Xeago> whyGaard: if you install ruby through brew, which will place an executable in /usr/local/bin, but it comes after /usr/bin which also provides an executable of the same name
mary5030_ has quit [Ping timeout: 258 seconds]
<pipework> comm64: Just wait until the acid kicks in, then you'll be a surrealist.
<Xeago> you will use the executable in /usr/bin instead of the one provided by homebrew in /usr/local/bin
dts|pokeball has quit [Read error: Connection reset by peer]
bweston92 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
chrishough has joined #ruby
<whyGaard> okay. I'm going to switch it around and hope for the best. D:
Musashi007 has quit [Ping timeout: 256 seconds]
aswen has quit [Ping timeout: 245 seconds]
<Xeago> I would suggest having /usr/local/bin in front of /usr/bin
<comm64> pipework: huh?
<Xeago> for interactive use, that is most often what you want
jaequery has joined #ruby
dts|pokeball has joined #ruby
<Xeago> for really stable things, embedded, deployed servers, you will not want /usr/local/bin or as late as possible
<pipework> 'interactive use'? What a funny term.
nicolastarzia has quit [Ping timeout: 272 seconds]
josephndenton has quit [Ping timeout: 256 seconds]
<Xeago> pipework: not sure what is funny about it?
<pipework> Just read the FHS standard for linux, most things are in compliance with it.
kirun has quit [Quit: Client exiting]
<Xeago> pipework: that doesn't solve his problem though
<pipework> Xeago: just hearing someone refer to putting /usr/local as anything about interactive use.
<pipework> Xeago: He doesn't have one.
<Xeago> pipework: if he expects `ruby` to be homebrew's ruby, he does
<pipework> He just doesn't know what the difference is, and after learning about it, I'm sure he can brain it out himself, or wait until he has a problem.
<pipework> Xeago: Forecasting problems... mmm
<Xeago> yeye, xy-problem
<whyGaard> eep, didn't want to cause a fuss. just wanted to get ruby installed and get to coding :-)
sevvie has joined #ruby
<Xeago> on osx you should have a decently new ruby already though
<pipework> whyGaard: Warnings raised by software that doesn't suck are usually correct about what you should be doing.
lampd1 has joined #ruby
<whyGaard> rails 4.2 came out the other day :D ruby 2.1 is recommended, , current is 2.2 and I have 2.0
crdpink has joined #ruby
<whyGaard> so I wanted to get newest ruby before grabbing the new and shiny rails
crdpink2 has quit [Ping timeout: 258 seconds]
<whyGaard> pipework: that's good advice :P
Narzew has joined #ruby
<Xeago> that just moves all the fuss, how do you establish software x to not suck?
<Xeago> ah well
<Xeago> I'll go to bed :>
<Xeago> Have a jolly holiday season all!
Xeago has quit [Remote host closed the connection]
<whyGaard> gnight Xeago :D
<whyGaard> oh
<whyGaard> D:
<comm64> pipework: are you implying that I must be tripping to attempt this?
<pipework> Secret: All software sucks.
<pipework> comm64: It helps.
jaequery has quit [Ping timeout: 272 seconds]
Menorah has quit [Quit: This computer has gone to sleep]
rkday has quit [Ping timeout: 240 seconds]
tombroomfield has quit [Remote host closed the connection]
hmsimha has quit [Ping timeout: 252 seconds]
Valdrone has quit [Quit: Valdrone]
sevvie has quit [Read error: Connection reset by peer]
sankaber_ has joined #ruby
jaequery has joined #ruby
XxionxX has joined #ruby
vvivv has quit [Ping timeout: 264 seconds]
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rgs has joined #ruby
sevvie has joined #ruby
codecop has quit [Remote host closed the connection]
ixti has quit [Ping timeout: 256 seconds]
yeticry has joined #ruby
sankaber_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Takle has joined #ruby
<XxionxX> Hey, I'm sure it's something simple but why isn't my 'ten' variable incrementing: https://gist.github.com/XxionxX/a6a4736a2169da706018
<XxionxX> I thought the zero assignment was outside the loop
diegoviola has quit [Ping timeout: 258 seconds]
comm64_ has joined #ruby
<XxionxX> It keeps zeroing it out my variable for every loop
<shevy> and how do you invoke it
sonnym1 has joined #ruby
sonnym1 has quit [Max SendQ exceeded]
<XxionxX> The method?
AUS3RIS has joined #ruby
Takle_ has quit [Ping timeout: 272 seconds]
<shevy> sure
<shevy> you return on conditions
<shevy> so the loop is ended
<shevy> well
<shevy> I am sorry I used your word loop
<shevy> is that even a loop?
<shevy> you simply iterate over a collection
comm64 has quit [Quit: Lost terminal]
comm64_ is now known as comm64
<shevy> (1..10).each
hmsimha has joined #ruby
<XxionxX> hold on, I'll link the rest of the code. I didn't realize I needed to.
<shevy> and since the first condition is not met, the second will kick in and return false
<shevy> no, only show how you invoke it
<shevy> that must be only one method invocation
AUS3RIS has quit [Read error: Connection reset by peer]
sevvie has quit [Read error: Connection reset by peer]
TgMts_ has quit [Quit: No Ping reply in 180 seconds.]
yeticry has quit [Ping timeout: 264 seconds]
<shevy> smallest_multiple = divisble(test_multiple)
<shevy> is equal to
<shevy> smallest_multiple = divisble(0)
<XxionxX> Well I am trying to make the loop evaluate 2520 as the smallest divisable number
<shevy> that is not really a loop
<shevy> loop {} <--- that is a loop
<shevy> (1..10).each do |x|; if num % x == 0
<shevy> so here you have: if 0 % 1 == 0
TgMts has joined #ruby
<shevy> so ten += 1 ten will be 1
<shevy> so you enter: return false
<shevy> so your method returns false
charliesome has joined #ruby
<shevy> so smallest_multiple = divisble(0) now means that smallest_multiple is false
<shevy> ah, you have a loop down there, at while
<pipework> It's cute to watch shevy giving lessons.
mliqu has joined #ruby
<shevy> well we didn't see that in your first paste
allcentury has quit [Ping timeout: 244 seconds]
<shevy> that is really complicated code
<XxionxX> Yeah, the 'test_multiple' if in the while loop was because I was trying to figure out what I was doing wrong
<XxionxX> Yeah, sorry I'm new to coding
<XxionxX> I am doing Euler problems in an attempt to get better
samfisher has quit [Ping timeout: 245 seconds]
<shevy> what do you want to achieve?
mliq has quit [Ping timeout: 240 seconds]
<XxionxX> with this code?
<shevy> no
sevvie has joined #ruby
jenrzzz has joined #ruby
<shevy> what you are trying to solve
<XxionxX> From Euler:
<XxionxX> 2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20?
<XxionxX> So I was just trying to get the answer 2520
<shevy> I see
claptor has joined #ruby
<shevy> so we can ignore 1 as 1 is always true
<shevy> hmm one way could be to build some arrays and then look for shared members
<XxionxX> Yeah, but arrays are really slow, I wanted to stop before I had to search through them
<XxionxX> I was trying to break as soon as I hit the right number
<XxionxX> don't give me too many hints, I want to figure it out
<XxionxX> that is why I only linked the method
comm64 has quit [Quit: ChatZilla 0.9.91.1 [Firefox 35.0a2/20141114004002]]
comm64 has joined #ruby