fflush changed the topic of #ruby to: Ruby 1.9.3-p194: http://ruby-lang.org || Paste > 3 lines of text on pastebin.com
TheIronWolf has joined #ruby
ilyam_ has joined #ruby
TheIronWolf has quit [Client Quit]
saschagehlich has joined #ruby
saschagehlich has quit [Client Quit]
faen has joined #ruby
w400z has joined #ruby
r0bby has quit [Ping timeout: 252 seconds]
powerplay has quit [Read error: Connection reset by peer]
ilyam has quit [Ping timeout: 246 seconds]
ilyam_ is now known as ilyam
powerplay has joined #ruby
resure has quit [Remote host closed the connection]
stkowski has quit [Quit: stkowski]
akem has quit [Ping timeout: 276 seconds]
slux has quit [Remote host closed the connection]
deryldoucette has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
xaq has joined #ruby
virunga has quit [Quit: Sto andando via]
voodoofish4301 is now known as voodoofish430
sailias has joined #ruby
opus has quit [Ping timeout: 248 seconds]
w0lverine has quit [Quit: w0lverine]
Stalkr_ has quit [Quit: Leaving...]
ylluminate has quit [Quit: Bye!]
verto|off is now known as verto
davidcelis has quit [Quit: K-Lined.]
opus has joined #ruby
akem has joined #ruby
virunga has joined #ruby
bothra has joined #ruby
nari has quit [Ping timeout: 246 seconds]
daniel_hinojosa has quit [Ping timeout: 246 seconds]
xaq has quit [Remote host closed the connection]
jjang has quit [Remote host closed the connection]
arubin has joined #ruby
cassianoleal has joined #ruby
blazes816 has quit [Quit: Leaving]
RichieEvan has joined #ruby
nwest has joined #ruby
deryl has quit [Quit: deryl]
nwest has quit [Client Quit]
cassianoleal has left #ruby [#ruby]
opus has quit [Quit:]
virunga has quit [Quit: Sto andando via]
Nanuq has quit [Ping timeout: 245 seconds]
daniel_hinojosa has joined #ruby
jorge has quit [Remote host closed the connection]
jezebel has joined #ruby
baroquebobcat has joined #ruby
sailias has quit [Quit: Leaving.]
jorge has joined #ruby
verto is now known as verto|off
kenichi has quit [Remote host closed the connection]
ken_barber1 has joined #ruby
banisterfiend has joined #ruby
igotnolegs has joined #ruby
ken_barber has quit [Ping timeout: 252 seconds]
ilyam has quit [Remote host closed the connection]
ilyam has joined #ruby
ckrailo_ has quit [Quit: Computer has gone to sleep.]
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
adamkittelson has quit [Remote host closed the connection]
Nanuq has joined #ruby
jezebel has left #ruby [#ruby]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
flip_digits has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
seanstickle has quit [Quit: seanstickle]
nadirvardar has quit [Quit: Computer has gone to sleep.]
davidcelis has joined #ruby
jjang has joined #ruby
thecreators has joined #ruby
manizzle has joined #ruby
JustinCampbell has quit [Remote host closed the connection]
seanstickle has joined #ruby
iori has joined #ruby
liluo has quit [Remote host closed the connection]
chimkan___ has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
Spooner has quit [Ping timeout: 240 seconds]
iamjarvo has joined #ruby
chimkan_ has quit [Ping timeout: 246 seconds]
chriskk has joined #ruby
chimkan___ has quit [Ping timeout: 246 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
jorge has quit [Remote host closed the connection]
jjbohn has joined #ruby
dotnull has joined #ruby
Ethan has quit [Ping timeout: 240 seconds]
randomautomator has quit [Remote host closed the connection]
banisterfiend has quit [Remote host closed the connection]
brdude has quit [Quit: brdude]
jorge has joined #ruby
ianbrandt has quit [Quit: ianbrandt]
seanstickle has quit [Quit: seanstickle]
Asher has joined #ruby
mfridh has quit [Ping timeout: 250 seconds]
lolsuper_ has joined #ruby
lolsuper_ has quit [Changing host]
lolsuper_ has joined #ruby
lolsuper_ has quit [Read error: Connection reset by peer]
dotnull has quit [Remote host closed the connection]
lolsuper_ has joined #ruby
lolsuper_ has quit [Read error: Connection reset by peer]
nadirvardar has joined #ruby
bothra has quit [Ping timeout: 245 seconds]
mrsolo has quit [Quit: Leaving]
savage- has quit [Ping timeout: 246 seconds]
adeponte has quit [Remote host closed the connection]
banisterfiend has joined #ruby
liluo has joined #ruby
dotnull has joined #ruby
Banistergalaxy has quit [Ping timeout: 264 seconds]
HRabbit has quit [Ping timeout: 245 seconds]
jorge has quit [Remote host closed the connection]
jorge has joined #ruby
JustinCampbell has joined #ruby
ringotwo has quit [Remote host closed the connection]
thecreators has quit [Remote host closed the connection]
defendguin1 has joined #ruby
jorge has quit [Remote host closed the connection]
g_rotbart has quit [Remote host closed the connection]
evenix has joined #ruby
<evenix> hi all
<evenix> im having some issue deploying a sinatra app to heroku https://gist.github.com/3280401
baroquebobcat has joined #ruby
artOfWar has quit [Remote host closed the connection]
jorge has joined #ruby
TorpedoSkyline has joined #ruby
artOfWar has joined #ruby
mneorr has joined #ruby
vpitriumph has joined #ruby
<vpitriumph> Hey guys
ryanRT has joined #ruby
v0n has quit [Ping timeout: 246 seconds]
<vpitriumph> This isn't specifically ruby related, but on the command line is there a way to avoid having to escape all the metacharacters in a regex. For example if I wanted to wrap all instances of joe with (joe) using sed. Now to get it to work I have to use \( and \)
jorge has quit [Remote host closed the connection]
<jrajav> You could write a regex to replace all the regex metacharacters with escapes
<jrajav> :3
mneorr has quit [Client Quit]
rakm has quit [Quit: Computer has gone to sleep.]
<vpitriumph> :D well that would be one option, but seriously, I feel like in the past I didn't have to escape all my metacharacters. Am I just imagining that?
rakunHo has quit [Remote host closed the connection]
jorge has joined #ruby
khakimov has joined #ruby
nari has joined #ruby
artOfWar has quit [Ping timeout: 240 seconds]
tiripamwe has joined #ruby
vitor-br has joined #ruby
iori has quit [Remote host closed the connection]
paolooo has quit [Quit: Page closed]
sepp2k has quit [Remote host closed the connection]
Tulak has quit [Quit: Leaving.]
hunglin has joined #ruby
<vpitriumph> okay
<vpitriumph> so I'm a moron
<vpitriumph> to answer my own question
<vpitriumph> set '...' vs sed ... needed to wrap my regex up
banisterfiend has quit [Remote host closed the connection]
Gab0 has quit [Ping timeout: 255 seconds]
ilyam has quit [Quit: ilyam]
jasonLaster has joined #ruby
Maniacal has joined #ruby
JustinCampbell has quit [Remote host closed the connection]
dotnull has quit [Remote host closed the connection]
JustinCampbell has joined #ruby
JustinCampbell has quit [Read error: Connection reset by peer]
JustinCampbell has joined #ruby
infinitiguy has joined #ruby
jjang_ has joined #ruby
infinitiguy has quit [Client Quit]
vpitriumph has quit [Quit: Page closed]
HRabbit has joined #ruby
jjang_ has quit [Remote host closed the connection]
jjang has quit [Read error: No route to host]
mascool has quit [Ping timeout: 250 seconds]
jjang has joined #ruby
mockra has joined #ruby
apok has quit [Ping timeout: 246 seconds]
adamkittelson has joined #ruby
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
banisterfiend has joined #ruby
jasonLaster has quit [Remote host closed the connection]
scriabin has joined #ruby
mockra has quit [Ping timeout: 246 seconds]
jasonLaster has joined #ruby
adamkittelson has quit [Ping timeout: 252 seconds]
brdude has joined #ruby
Gab0 has joined #ruby
zeen has joined #ruby
TorpedoSkyline has quit [Quit: Computer has gone to sleep.]
Tomasso has quit [Ping timeout: 250 seconds]
banisterfiend has quit [Remote host closed the connection]
jasonLaster has quit [Ping timeout: 245 seconds]
jorge has quit [Remote host closed the connection]
ken_barber1 has quit [Remote host closed the connection]
banisterfiend has joined #ruby
jonathanwallace has quit [Remote host closed the connection]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
w400z has quit []
TorpedoSkyline has joined #ruby
jjang_ has joined #ruby
bricker88 has quit [Quit: Leaving.]
jjang_ has quit [Remote host closed the connection]
ken_barber has joined #ruby
Goles has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
jjang has quit [Ping timeout: 240 seconds]
jasonLaster has joined #ruby
fbernier has joined #ruby
g_rotbart has joined #ruby
g_rotbart has quit [Remote host closed the connection]
Araxia has quit [Ping timeout: 244 seconds]
ken_barber has quit [Ping timeout: 276 seconds]
wargasm has quit [Read error: Connection reset by peer]
Boffers has joined #ruby
wargasm has joined #ruby
dsrguru has joined #ruby
defendguin1 has quit [Quit: Leaving.]
<dsrguru> does Ruby have a shortcut for a record-like class that just defines accessors and initializes them?
<dsrguru> or does one have to call attr_accessor and write initialize
<banisterfiend> dsrguru: u tell me
Bofu has quit [Ping timeout: 240 seconds]
<dsrguru> banisterfiend: I've been looking online to see if there's syntactic sugar but I haven't found it
williamcotton_ has joined #ruby
williamcotton has quit [Ping timeout: 246 seconds]
williamcotton_ is now known as williamcotton
<banisterfiend> dsrguru: alert! alert!
<dsrguru> banisterfiend: (I'm coming from the LISP mentality that all common things have to be abstracted away)
<dsrguru> so if Google doesn't have it, there's no DRY option?
Araxia has joined #ruby
<banisterfiend> dsrguru: u could build your own method to do it
<banisterfiend> dsrguru: or maybe there's a gem to do it
<dsrguru> banisterfiend: but if there's no common way, I'm probably using a less than idiomatic approach
<banisterfiend> dsrguru: u want something like: attr_accessor_with_values :x => 10, :y => Potato.new
<banisterfiend> dsrguru: is that right?
<dsrguru> do most ppl use a hash instead of a custom class
williamcotton_ has joined #ruby
<banisterfiend> dsrguru: what do u mean a hash?
williamcotton has quit [Ping timeout: 268 seconds]
williamcotton_ is now known as williamcotton
<dsrguru> a hash that maps a record's properties to its values
<dsrguru> in python you'd just use a tuple
Chryson has joined #ruby
<dsrguru> in most LISPs you would use a list
<dsrguru> in C you'd use a struct
<dsrguru> so if you'd use a class in ruby
<dsrguru> then yes, I could write attr_accessor_with_values
powerplay has quit [Ping timeout: 252 seconds]
<dsrguru> but I don't want to use a non-idiomatic approach
<dsrguru> I just want to know what rubyists normally use for records
<banisterfiend> dsrguru: most rubyists initialize the accessors inside intialize() method i guess
<dsrguru> k thanks
artOfWar has joined #ruby
niklasb_ has joined #ruby
radic has quit [Ping timeout: 244 seconds]
artOfWar_ has joined #ruby
jjang has joined #ruby
xnm has joined #ruby
thomas is now known as desperado
Maniacal has quit [Quit: Leaving]
fumbe has quit [Ping timeout: 246 seconds]
defendguin1 has joined #ruby
artOfWar has quit [Ping timeout: 244 seconds]
headius has joined #ruby
Araxia has quit [Quit: Araxia]
desperado is now known as thomas
sailias has joined #ruby
voodoofish430 has quit [Quit: Leaving.]
Gab0 has quit [Ping timeout: 245 seconds]
olrrai has joined #ruby
freeayu has joined #ruby
olrrai has quit [Client Quit]
Abbas| has quit [Ping timeout: 264 seconds]
radic has joined #ruby
krz has quit [Quit: krz]
* epochwolf yawns
eph3meral has quit [Quit: Leaving]
<GeekOnCoffee> stop that
fumbe has joined #ruby
freeayu has quit [Ping timeout: 268 seconds]
jjbohn has quit [Quit: Leaving...]
afcapel has joined #ruby
afcapel has left #ruby [#ruby]
hydrozen has joined #ruby
justsee is now known as justsee|away
sailias has quit [Quit: Leaving.]
niklasb_ has quit [Ping timeout: 244 seconds]
freeayu has joined #ruby
yoklov has quit [Quit: computer sleeping]
yoklov has joined #ruby
justsee|away is now known as justsee
hadees has joined #ruby
fbernier has quit [Ping timeout: 246 seconds]
fbernier has joined #ruby
chimkan_ has joined #ruby
adeponte has joined #ruby
uris has joined #ruby
GeekOnCoffee has quit [Ping timeout: 244 seconds]
hemanth has quit [Read error: Connection reset by peer]
jrajav has quit [Quit: The best darkness is strange and surprising]
hemanth has joined #ruby
jorge has joined #ruby
headius has quit [Quit: headius]
JustinCampbell has quit [Remote host closed the connection]
jorge has quit [Ping timeout: 252 seconds]
mahmoudimus has joined #ruby
ringotwo has joined #ruby
GeekOnCoffee has joined #ruby
Jesterman81 has joined #ruby
Jesterman81 has quit [Client Quit]
Jesterman81 has joined #ruby
freeayu__ has joined #ruby
tomoyuki28jp has joined #ruby
<tomoyuki28jp> When we use the logger gem without rails, the log save to which path? I use mac.
freeayu has quit [Ping timeout: 252 seconds]
ilyam has joined #ruby
ilyam has quit [Client Quit]
ken_barber has joined #ruby
locriani has quit [Read error: Connection reset by peer]
locriani_ has joined #ruby
locriani_ is now known as locriani
locriani has quit [Changing host]
locriani has joined #ruby
bglusman has joined #ruby
dsrguru has quit [Quit: leaving]
darren has quit [Remote host closed the connection]
Juul has joined #ruby
Chryson has quit [Quit: Leaving]
banisterfiend has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
Jesterman81 has left #ruby [#ruby]
cantonic has quit [Quit: cantonic]
darren has joined #ruby
TorpedoSkyline has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
nXqd has joined #ruby
yoklov has quit [Quit: computer sleeping]
darren has quit [Remote host closed the connection]
nazty has quit [Read error: No route to host]
naz has joined #ruby
uris has quit [Quit: leaving]
baroquebobcat has quit [Quit: baroquebobcat]
wereHamster has joined #ruby
savage- has joined #ruby
headius has joined #ruby
jasonLaster has quit [Remote host closed the connection]
Synthead has quit [Remote host closed the connection]
Synthead has joined #ruby
ananthakumaran has joined #ruby
mattonrails has joined #ruby
mockra has joined #ruby
banisterfiend has joined #ruby
ananthakumaran1 has joined #ruby
hunglin has left #ruby [#ruby]
ananthakumaran has quit [Ping timeout: 265 seconds]
schleppy1 has joined #ruby
<schleppy1> Please, forgive the newbness.
<schleppy1> I have an instance of Enumerable::Enumerator
<schleppy1> I just want to check if there are any items in it.
<schleppy1> I thought
<schleppy1> puts my_enum.count
<schleppy1> would work, but it barfs at that.
<schleppy1> what am I doing wrong here?
jgrevich has quit [Quit: jgrevich]
cloud|droid has joined #ruby
<bnagy> can you rephrase 'barfs' in, you know, actually useful words?
<schleppy1> :) yeah, so I am using aws/s3
<schleppy1> I grab a bucket
<bnagy> I suspect you have a 'false premise' error - ie that you don't really have an instance of an Enumerator
<schleppy1> Well, I did this:
jonnn_ has joined #ruby
<schleppy1> puts "\n\object.methods : "+ bucket_object.methods.sort.join("\n").to_s+"\n\n"
monkegjinni has joined #ruby
<schleppy1> and `puts bucket_object.class
jonnn_ has left #ruby [#ruby]
<schleppy1> which outputs: Enumerable::Enumerator
mrdodo has quit [Remote host closed the connection]
<schleppy1> My actual error, when trying to print .count is
<schleppy1> s3-put.rb:89:in `find': undefined method `call' for "dnsquery/80d9e3dd9dc7eb81efe3e6623744ad27.tar":String (NoMethodError)
<bnagy> ohhhh wait I am a tard
<banisterfiend> bnagy: u have a good heart though
<bnagy> those are like generators, they don't have count
Juul has quit [Ping timeout: 246 seconds]
<schleppy1> so, next should work then?
yoklov has joined #ruby
<bnagy> try peek
rubynewbie has quit [Quit: Page closed]
<schleppy1> s3-put.rb:87:in `update_package': undefined method `peek' for #<Enumerable::Enumerator:0x105dd9158> (NoMethodError)
<bnagy> ok well that's odd
<bnagy> just call methods on it
ananthakumaran has joined #ruby
minijupe has quit [Quit: minijupe]
Juul has joined #ruby
<bnagy> fwiw the AWS ruby code is a horror
<bnagy> so who knows what they're doing in there
<schleppy1> appologies bnagy: but what do you mean, "just call methods on it"?
nXqd has quit [Remote host closed the connection]
ananthakumaran1 has quit [Ping timeout: 252 seconds]
<schleppy1> Basically I am trying to determine if an object already exists in a given bucket.
<bnagy> whatever_the_hell.methods
<schleppy1> ah, gotcha.
<banisterfiend> lilac wineeeeeeeeeeee
<schleppy1> isn't that what this does (in a prettier way):
<schleppy1> puts "\n\object.methods : "+ bucket_object.methods.sort.join("\n").to_s+"\n\n"
<bnagy> I guess, if one of those is the object in question, but you never pastie'd the output
vitor-br has quit [Remote host closed the connection]
Eldariof-ru has joined #ruby
<bnagy> maybe it's a version thing, what ruby are you running? .any? should do what you want though
<schleppy1> > ruby --version
<schleppy1> ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]
TPFC-SYSTEM has joined #ruby
<bnagy> ah ok
dross_ has joined #ruby
burgestrand has joined #ruby
<schleppy1> this is my output, from `puts bucket_object.any?`
<bnagy> ok so their code is screwed
<schleppy1> shite.
<bnagy> fix it and send them a patch :)
<bnagy> try upgrading ruby, first
<bnagy> 1.8 was written by aristotle
<davidcelis> 1.8 was written by socrates
<schleppy1> 1.9.3 ok?
dross has quit [Ping timeout: 246 seconds]
<bnagy> yes
<schleppy1> 1.8 is what came on osx.
cameron_ has joined #ruby
cameron_ has quit [Remote host closed the connection]
<bnagy> I really hate the aws code
Aenigma has quit [Read error: Operation timed out]
<bnagy> can you swap it out for s3cmd? At least that works :)
<schleppy1> I would have done it with Python or Go, but wanted to get my hands wet with Ruby.
<schleppy1> s/wet/dirty/
<bnagy> sadly I think you were unlucky in your choice of gem
baroquebobcat has joined #ruby
<schleppy1> dear lord, how big is the ruby-1.9.3 tgz?
deryl has joined #ruby
<schleppy1> taking 4-ever!
<schleppy1> eh, 12 meg, they must be throttling or something.
jjang has quit [Ping timeout: 252 seconds]
Aenigma has joined #ruby
<schleppy1> I have consistent 12mb/s. They must have a dsl connection :D
syamajala has joined #ruby
emmanuelux has quit [Ping timeout: 265 seconds]
tommyvyo has quit [Quit: Computer has gone to sleep.]
andrewhl has joined #ruby
<schleppy1> Will I need to re-install the aws/s3 gem afterward? Like, is it version aware?
Juul has quit [Ping timeout: 246 seconds]
<bnagy> probably
baroquebobcat has quit [Quit: baroquebobcat]
<schleppy1> ok, hopefully last dumb question. I need to re-install aws-s3. How do I update gem to point to the new version?
__class__ has quit [Read error: Connection reset by peer]
<bnagy> hopefully when you installed ruby it installed a new version of gem
<schleppy1> ah, right you are
cj3kim has joined #ruby
<schleppy1> son of a bitch. 1.9.3, and the same freaking errors.
<schleppy1> oh well.
burgestrand has quit [Quit: Leaving.]
iori has joined #ruby
Ethan has joined #ruby
__class__ has joined #ruby
n_blownapart has joined #ruby
<n_blownapart> hi is it true that Lambdas and Procs are hardly used in most programs and blocks are most common. I don't understand any of them anyhow but I thought I could start there.
fbernier has quit [Ping timeout: 245 seconds]
<banisterfiend> n_blownapart: yeah, lambdas/procs are relatively rare i guess
<banisterfiend> but you'll probably see them used a couple of times in medium sized apps
hydrozen has quit [Quit: Computer has gone to sleep.]
jorge has joined #ruby
<davidcelis> they're all Procs
<davidcelis> ALL OF THEM
<davidcelis> Procs.
<davidcelis> even banisterfiend is a Proc.
<davidcelis> banisterfiend.is_a? Proc # => true
<n_blownapart> thanks banisterfiend. I thought I understood scope well enough to see how this prog works but if anyone has time to walk me through it I would be grateful: http://pastie.org/4403917
<banisterfiend> davidcelis: your mom said i was more of a stabby lambda: ->(your_mom) { banisterfiend() }.() #=> true
<n_blownapart> davidcelis: thats funny !
<davidcelis> the empty parens...
<davidcelis> THEY BURN
shadoi has quit [Ping timeout: 248 seconds]
<Paradox> hey banisterfiend
<Paradox> did you ever update pry to use jist?
<banisterfiend> Paradox: Yes, 0.9.10 uses it
<Paradox> yay
<banisterfiend> yeah it's prtty awesome
<banisterfiend> in the next release we're migrating to rb-readline too
powerplay has joined #ruby
<Paradox> yay
<Paradox> will that break coolline though?
Eldariof59-ru has joined #ruby
<banisterfiend> Paradox: no, they're mutually excluseive
<Paradox> cool
<banisterfiend> Pry.config.input = Readline vs Pry.config.input = Coolline
<Paradox> ah
FlyingFoX has quit [Read error: Operation timed out]
powerplay1 has joined #ruby
powerplay has quit [Read error: Connection reset by peer]
<Paradox> is there any way i can easily take the output of a method and run it as a gist?
<Paradox> i tried gist -o
<banisterfiend> Paradox: run the method then use gist -o
<banisterfiend> ill show u
<Paradox> nah
<Paradox> i just got it
<Paradox> :)
<Paradox> thanks
charliesome has joined #ruby
<banisterfiend> Paradox: https://gist.github.com/3281719
mockra has quit [Remote host closed the connection]
<banisterfiend> ok
<banisterfiend> Paradox: gist -i is the main thing
Eldariof-ru has quit [Ping timeout: 252 seconds]
dhruvasagar has quit [Ping timeout: 268 seconds]
<Paradox> :)
<n_blownapart> I've been reading how Procs and Lambdas are so powerful once you understand the subtle differences yada2.
<banisterfiend> n_blownapart: not really
<banisterfiend> 90% of the time you really dont care about the difference between the two
bradhe has quit [Remote host closed the connection]
<n_blownapart> or between them and blocks?
<banisterfiend> i just use lambdas cos the syntax is sexier
<banisterfiend> -> {} :P
locriani has quit [Remote host closed the connection]
<n_blownapart> gross
adeponte has quit [Remote host closed the connection]
<banisterfiend> n_blownapart: i think it looks awesome
<banisterfiend> check out my API
<banisterfiend> i like it anyway :)
<n_blownapart> so I should just keep using blocks until understand them. (thanks I'll check it out)
skrewler_ has joined #ruby
<banisterfiend> n_blownapart: it'll take a while to properly grok blocks and know when to use them
<banisterfiend> at least it did for me, but i came from a C background
<banisterfiend> whre blocks kind of blew the top off my head
<n_blownapart> banisterfiend all three types can carry values outside of the scope they were defined in...is that the gist of it?
<banisterfiend> they're all closures yeah
<banisterfiend> but if you look closely
<banisterfiend> you realize that ruby only has one type of closure, not 3
<banisterfiend> the block
<banisterfiend> proc { } <------------ 'proc' method that takes a block parameter
<banisterfiend> lambda { } <-------------- 'lambda' method that takes a block parameter
<banisterfiend> 'block' is the only closure in ruby, in other words
skrewler has quit [Ping timeout: 246 seconds]
FlyingFoX has joined #ruby
skrewler_ is now known as skrewler
<n_blownapart> nice. what does it mean to use the word closure? banisterfiend
<davidcelis> Proc
dhaivatpandya has joined #ruby
<banisterfiend> n_blownapart: it just means "carry values outside of the scope they were defined in"
locriani has joined #ruby
<n_blownapart> banisterfiend: do you mean nearly an acronym?
mattonrails has quit [Remote host closed the connection]
<banisterfiend> n_blownapart: no..
<banisterfiend> wtf
<banisterfiend> n_blownapart: look up 'closure (computerscience)' in wikipedia
indeterminate has joined #ruby
<n_blownapart> thanks I did. got hung up on some examples and came running here. more later thanks ! banisterfiend
syamajala has quit [Remote host closed the connection]
<bnagy> it's a closure because it encloses the state of stuff from where it was defined. It noms memory images 8{} NOM NOM NOM BINDING
akem has quit [Quit: Forget progress by proxy. Land on your own moon.]
sinful_ has left #ruby [#ruby]
jeff_sebring has quit [Quit: Leaving]
akem has joined #ruby
mockra has joined #ruby
codora has joined #ruby
<n_blownapart> thanks bnagy i'm looking up nom. nubian here.
<bnagy> nom (n): to eat
Godslast1ring has joined #ruby
<n_blownapart> bnagy: sorry no capiche
shadoi has joined #ruby
<n_blownapart> bnagy: what does your notation mean 8{} etc ?
mk03 has quit [Remote host closed the connection]
Godslastering has quit [Ping timeout: 246 seconds]
<bnagy> it looks like Cookie Monster
<bnagy> that is a closure nomming a snapshot of memory
burgestrand has joined #ruby
yoklov has quit [Quit: computer sleeping]
dhaivatpandya has quit [Quit: dhaivatpandya]
Godslastering has joined #ruby
Godslast1ring has quit [Ping timeout: 245 seconds]
<n_blownapart> bnagy: thanks I will work on that.
<n_blownapart> bnagy: sorry if I repeat myself, but you are not the guy living in Kathmandu?
digitalcakestudi has quit [Read error: Connection reset by peer]
<bnagy> well I'm one of them
<bnagy> and I'll admit I may be the only one on this channel
scriabin has quit [Remote host closed the connection]
freeayu__ has quit [Ping timeout: 246 seconds]
<n_blownapart> bnagy: not in a city of women then? that is great ! this is varreli do you remember me? I was going to visit and exchange your ruby lessons for tea.
cloud_droid has joined #ruby
<n_blownapart> bnagy: I've been trying to get this: http://pastie.org/4403917
<bnagy> I remember
<n_blownapart> cool
<bnagy> what about it?
<n_blownapart> bnagy: its just confusing me, like blocks do too.
<n_blownapart> bnagy: but maybe if I read about nomming the snapshot it will come to life.
cloud_droid has quit [Client Quit]
cloud|droid has quit [Quit: Leaving]
cloud|droid has joined #ruby
freeayu__ has joined #ruby
kpshek has quit []
yxhuvud has joined #ruby
defendguin1 has quit [Quit: Leaving.]
SegFaultAX has quit [Ping timeout: 245 seconds]
mockra has quit [Remote host closed the connection]
dvolker has quit [Read error: Connection reset by peer]
baroquebobcat has joined #ruby
mockra has joined #ruby
rutkla has joined #ruby
s1n4 has joined #ruby
stoffus has joined #ruby
mockra has quit [Remote host closed the connection]
jorge has quit [Remote host closed the connection]
w0lverine has joined #ruby
mfcabrera has joined #ruby
queequeg1 has joined #ruby
stoffus has quit [Ping timeout: 252 seconds]
tomoyuki28jp has quit [Remote host closed the connection]
<deryl> Ruby stores its compiler location and flags within itself, correct?
vectorshelve has joined #ruby
Goles has quit [Quit: Computer has gone to sleep.]
<vectorshelve> Hi
yonggu has joined #ruby
RichieEvan has quit [Quit: RichieEvan]
Hanmac1 is now known as Hanmac
yonggu has quit [Remote host closed the connection]
yonggu has joined #ruby
babinho has quit [Quit: leaving]
zodiak has quit [Ping timeout: 246 seconds]
vmatiyko has joined #ruby
skrewler has quit [Ping timeout: 268 seconds]
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
robbyoconnor has joined #ruby
savage- has quit [Remote host closed the connection]
headius has quit [Quit: headius]
savage- has joined #ruby
<vectorshelve> hemanth: hi
<hemanth> vectorshelve, hey! Howz it going?
<RubyPanther> ruby 2 wouldn't compile my extension until I switched from ANSI C to C89 (no // comments)
moshee has quit [Ping timeout: 246 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
<vectorshelve> hemanth: good... how about you ?
babinho has joined #ruby
apeiros_ has quit [Remote host closed the connection]
<hemanth> vectorshelve, not bad
<vectorshelve> hemanth: :)
n_blownapart has quit [Remote host closed the connection]
khakimov has quit [Quit: Computer has gone to sleep.]
gentz has quit [Remote host closed the connection]
Bacalli has quit [Quit: Leaving]
baroquebobcat has quit [Quit: baroquebobcat]
sqlbyme has joined #ruby
wereHamster has quit [Read error: Connection reset by peer]
wereHamster has joined #ruby
andrewhl has quit [Remote host closed the connection]
ananthakumaran has quit [Quit: Leaving.]
andrewhl has joined #ruby
andrewhl has quit [Read error: Connection reset by peer]
mmokrysz has joined #ruby
tonini has joined #ruby
mmokrysz has left #ruby [#ruby]
mockra has joined #ruby
chitradeep has joined #ruby
deryl has quit [Quit: Time To Go, Too Bad, So Sad!]
vmatiyko has left #ruby [#ruby]
rutkla has quit [Ping timeout: 245 seconds]
mockra has quit [Ping timeout: 246 seconds]
apok has joined #ruby
maesbn has joined #ruby
cj3kim has left #ruby ["Leaving"]
quazimodo has joined #ruby
sqlbyme has quit [Quit: Leaving.]
<quazimodo> guys I've installed the latest grit but require grit doesnt work
<quazimodo> no so such file to load -- grit (LoadError)
<quazimodo> ow
<quazimodo> didnt require rubygems
dr_bob has joined #ruby
<Hanmac> RubyPanter did you make a isssue ticket or did you ask in #ruby-dev too?
<Hanmac> i mean RubyPanther
deryl has joined #ruby
djblue has joined #ruby
zodiak has joined #ruby
<RubyPanther> Naw, I'm assuming they know it and told gcc -ansi -pedantic or something
<Hanmac> but imo its a bug not a feature
<RubyPanther> well C99 came after C89 for good reasons IMO ;)
freeayu__ has quit [Quit: 离开]
powerplay1 has left #ruby [#ruby]
<RubyPanther> I guess -ansi -pedantic actually gives ISO C instead of ANSI C since ANSI normally implies C99
aganov has joined #ruby
workmad3 has joined #ruby
djblue has left #ruby [#ruby]
a_a_g has joined #ruby
noyb has joined #ruby
Morkel has joined #ruby
baphled has joined #ruby
jjang has joined #ruby
locriani has quit [Remote host closed the connection]
answer_42 has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
luckyruby has joined #ruby
ananthakumaran has joined #ruby
lurch_ has joined #ruby
shadoi has quit [Quit: Leaving.]
moshee has quit [Remote host closed the connection]
elhu has joined #ruby
gmci has quit [Quit: Computer has gone to sleep.]
blacktul_ has joined #ruby
blacktulip has quit [Ping timeout: 252 seconds]
fantazo has quit [Remote host closed the connection]
elhu has quit [Client Quit]
moshee has joined #ruby
dhruvasagar has joined #ruby
JohnBat26 has joined #ruby
bradhe has joined #ruby
baphled has quit [Read error: Operation timed out]
d3vic3 has joined #ruby
Emmanuel_Chanel_ is now known as Emmanuel_Chanel
demian`_ has quit [Read error: Connection reset by peer]
quazimodo has quit [Ping timeout: 276 seconds]
jorge has joined #ruby
mohits has quit [Read error: Connection reset by peer]
demian`_ has joined #ruby
lurch_ has left #ruby [#ruby]
bradhe has quit [Remote host closed the connection]
noyb has quit [Quit: Leaving.]
dangerousdave has joined #ruby
<fowl> rbenv works better than rvm.
jorge has quit [Ping timeout: 256 seconds]
bradhe has joined #ruby
lolmaus has joined #ruby
chussenot has joined #ruby
s1n4 has quit [Quit: leaving]
xorigin has joined #ruby
arturaz has joined #ruby
s1n4 has joined #ruby
tiripamwe has quit [Ping timeout: 245 seconds]
<RubyPanther> rbenv += 1
tiripamwe has joined #ruby
nadirvardar has quit [Quit: Computer has gone to sleep.]
bradhe has quit [Remote host closed the connection]
qwerxy has joined #ruby
Eldariof59-ru has quit []
rutkla has joined #ruby
Synthead has quit [Quit: sqooq]
jprovazn_away is now known as jprovazn
gmci has joined #ruby
mockra has joined #ruby
* Hanmac uses system ruby and is happy with it
<banisterfiend> Hanmac: you're a noob.
igotnolegs has quit [Quit: Computer has gone to sleep.]
<Hanmac> banister why i need other versions? i do not support versions older then 1.9.1+ :P
zoo-zed has joined #ruby
zoo-zed has quit [Client Quit]
elhu has joined #ruby
<banisterfiend> Hanmac: updating to latest patch release, running and experimenting with other implementations (rubinius, jruby)
<Hanmac> my system ruby has latest patch release, and my gems do not support jruby ... (rubinius may be supported but this is not tested)
ringotwo has quit [Remote host closed the connection]
mockra has quit [Ping timeout: 248 seconds]
SecretAgent has quit [Read error: Operation timed out]
wang has quit [Read error: Operation timed out]
SecretAgent has joined #ruby
wang has joined #ruby
mlue has quit [Ping timeout: 248 seconds]
mlue has joined #ruby
mlue has quit [Changing host]
mlue has joined #ruby
Guest89851 has joined #ruby
dekroning has joined #ruby
pskosinski has joined #ruby
und3f has joined #ruby
gilead has joined #ruby
clocKwize has joined #ruby
user__ has joined #ruby
vectorshelve_ has joined #ruby
akem has quit [Ping timeout: 252 seconds]
vectorshelve_ has quit [Client Quit]
user__ has quit [Client Quit]
chichou has joined #ruby
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
subbyyy has quit [Quit: Leaving.]
evenix has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
AlbireoX has joined #ruby
chitradeep has quit [Quit: chitradeep]
tatsuya_o has quit [Remote host closed the connection]
<deryl> So because thats your choice of way to work with ruby, *everyone* has to follow suit?
<deryl> ruby would never grow if we followed that pattern
qtplatypus has left #ruby [#ruby]
user__ has joined #ruby
akem has quit [Read error: Connection reset by peer]
qwerxy has quit [Quit: offski]
<banisterfiend> Hanmad is a really weird guy
<banisterfiend> Hanmac
<banisterfiend> But i have a fondness for him
<banisterfiend> he's a decent programmer and has an original personality
<Hanmac> deryl so you say i should support jruby with my gems too?
<banisterfiend> Hanmac: jruby actually has decent support for C exts these days
<banisterfiend> so long as u dont use private MRI API, it should be ok
vlad_starkov has joined #ruby
<Hanmac> does something like rb_ary_new() count as "private MRI API" ?
<deryl> i say your idea that sticking *only* with system packages and that everyone should be happy with it is screwy. Whether *your* personal gems support anything other than MRI is totally up to you, but I see you consistently seem to think (and advocate) that anyone using anything but system packages is looney toons
qwerxy has joined #ruby
graspee has joined #ruby
<banisterfiend> Hanmac: probably not
<deryl> You, as a person, beyond that I have no issues with so don't take that as me insulting you or thinking you're an idiot or something. Totally not the case. I just don't see eye to eye with you in regards to your thinking about ruby itself
<banisterfiend> Hanmac: that should be ok
user__ has quit [Client Quit]
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
<banisterfiend> Hanmac: private API would be like RString structs
<deryl> (in my case its different. I *am* looney toons hehe)
pskosinski has quit [Remote host closed the connection]
<Hanmac> banisterfiend: https://github.com/Hanmac/libogre-ruby << try to make this in jruby and then say what happend
<banisterfiend> deryl: are you starting to reconsider marriage now you realize your fiancee is occupying your MBP so much
<deryl> banisterfiend: hahaha.
<deryl> definitely. in fact we had that very conversation today, evne if jokingly. scary you are
<banisterfiend> deryl: get a dedicated facebook machine, aka facebook
<banisterfiend> for her*
<deryl> oh that was bad
<banisterfiend> err
<banisterfiend> ipad
Rochefort has joined #ruby
Eldariof-ru has joined #ruby
<banisterfiend> i mean get her an ipad
<deryl> yeah we are getting one. we're both getting one. once we finish this move
<banisterfiend> she's only using your MBP to play farmville right? :)
<Hanmac> deryl i would support jruby too when jruby supports me :P ...
<deryl> she's getting an iPad 3, iPhone 4S. I've got the 2011 MBP, and am getting an iPad 3 and iPhone 4S
<deryl> Hanmac: :)
Markvilla has joined #ruby
<deryl> banisterfiend: no she owns her own business. Her system took a giant.. err… crap would be an understatement
<banisterfiend> deryl: nice gadgets
chitradeep has joined #ruby
<Hanmac> deryl or if you want: try to build this https://github.com/Hanmac/libogre-ruby with jruby
<deryl> hehe yeah. my sister is getting my ASUS Transformer tablet, and I'm replacing it with the iPad. The iPad will also double as my book reader. (I've craploads of books). The iPhone is because I need a phone, and because my brother wants me to figure out writing apps for it. He and several friends do a lot of contract support work for artists (Independent artists not under RIAA control) and wants to look at having a couple apps done.
<banisterfiend> deryl: android tablets aren't quite there yet IMO
<deryl> Hanmac: I'm not using jruby. doesn't support most of the Cext gems I use
<banisterfiend> nextgen will be awesome, jellybean tablets
<banisterfiend> but current gen kind of sucks
daniel_hinojosa has quit [Ping timeout: 268 seconds]
<deryl> banisterfiend: i agree mostly with that.
snnd has joined #ruby
<deryl> there are a couple 'ok' apps but not many
mfcabrera has quit [Ping timeout: 246 seconds]
<banisterfiend> deryl: yeah the main thing jellybean has is project butter
[diecast]_ has joined #ruby
<banisterfiend> finally android tablets will have a smooth UI
bairui_ has joined #ruby
<banisterfiend> they're kind of laggy atm
artOfWar_ has quit [*.net *.split]
sgronblom has quit [*.net *.split]
kn330 has quit [*.net *.split]
balki_ has quit [*.net *.split]
alanp_ has quit [*.net *.split]
techsurvivor has quit [*.net *.split]
nacengineer has quit [*.net *.split]
dnyy has quit [*.net *.split]
[diecast] has quit [*.net *.split]
g4 has quit [*.net *.split]
r126l has quit [*.net *.split]
sinned has quit [*.net *.split]
relix has quit [*.net *.split]
Guest83725 has quit [*.net *.split]
eregon_ has quit [*.net *.split]
kalleth has quit [*.net *.split]
Sou|cutter has quit [*.net *.split]
mikalv has quit [*.net *.split]
Kwpolska has quit [*.net *.split]
mksm has quit [*.net *.split]
TheMoonMaster has quit [*.net *.split]
crodas has quit [*.net *.split]
any-key has quit [*.net *.split]
jmcphers has quit [*.net *.split]
Gm4n_ has quit [*.net *.split]
bnagy has quit [*.net *.split]
Cork has quit [*.net *.split]
musl has quit [*.net *.split]
danheberden has quit [*.net *.split]
nahhh has quit [*.net *.split]
snnd is now known as sinned
dnyy_ has joined #ruby
<deryl> ICS isn't all *that* bad.. but definitely not iOS :)
<banisterfiend> you have ICS on your tablet?
<deryl> yes
balki has joined #ruby
danheberden has joined #ruby
bairui has quit [Read error: Connection reset by peer]
alanp has joined #ruby
bnagy has joined #ruby
macer1 has joined #ruby
relix has joined #ruby
apeiros_ has joined #ruby
chriskk has quit [Quit: chriskk]
chriskk has joined #ruby
Markvilla has quit [Quit: Computer has gone to sleep.]
dhruvasagar has quit [Ping timeout: 256 seconds]
Morkel has quit [Quit: Morkel]
dhruvasagar has joined #ruby
chitradeep has quit [Quit: chitradeep]
hoelzro|away is now known as hoelzro
dangerousdave has quit [Quit: Leaving...]
qwerxy has quit [Quit: offski]
<banisterfiend> Hanmac: Hans Mackowiak
S2kx has joined #ruby
S1kx has quit [Read error: Connection reset by peer]
cezar has joined #ruby
overclucker has joined #ruby
cloud|droid is now known as toto
kstephens has quit [Quit: PredictTheFuture]
toto is now known as sudipta
apok has quit [Quit: apok]
<overclucker> I want to trash a couple values in an assignment. I want only the first and last elements of an array. here is an example of what I would like to do: first, nil, nil, last = chunk.split
<overclucker> obviously nil will not take assignemnts, I tried haha. I could use any variable name, I was just hoping there was a /dev/null in ruby. Is there a special variable for this occasion?
<banisterfiend> overclucker: _
<banisterfiend> overclucker: or *
<banisterfiend> overclucker: first, *, last = chunk.split
cezar has quit [Quit: Leaving]
locriani has joined #ruby
locriani has quit [Changing host]
locriani has joined #ruby
imami|afk is now known as banseljaj
Hanmac has quit [Ping timeout: 245 seconds]
<overclucker> ah
sudipta is now known as cloud|droid
<overclucker> great! * seems to allow flexible array sizes too. Thanks!
RudyValencia has joined #ruby
mockra has joined #ruby
chitradeep has joined #ruby
justsee is now known as justsee|away
Tulak has joined #ruby
kn330 has joined #ruby
sgronblom has joined #ruby
g4 has joined #ruby
r126l has joined #ruby
Kwpolska has joined #ruby
any-key has joined #ruby
mksm has joined #ruby
Guest83725 has joined #ruby
mikalv has joined #ruby
TheMoonMaster has joined #ruby
crodas has joined #ruby
eregon_ has joined #ruby
Gm4n_ has joined #ruby
jmcphers has joined #ruby
Sou|cutter has joined #ruby
nahhh has joined #ruby
Cork has joined #ruby
kalleth has joined #ruby
techsurvivor has joined #ruby
musl has joined #ruby
nacengineer has joined #ruby
brdude has quit [Quit: brdude]
kaiwren has joined #ruby
just4dos has quit [Ping timeout: 240 seconds]
Hanmac has joined #ruby
mockra has quit [Ping timeout: 245 seconds]
piotr_ has joined #ruby
quazimodo has joined #ruby
locriani has quit [Ping timeout: 244 seconds]
<Hanmac> >> 1
<Hanmac> :(
thisirs has joined #ruby
<Hanmac> overclucker like this: [1,2,3,4].values_at(0,-1) #=> [1, 4]
schleppy1 has quit [Quit: Leaving.]
jeff_sebring has joined #ruby
dr_bob has quit [*.net *.split]
vectorshelve has quit [*.net *.split]
arturaz has quit [Remote host closed the connection]
greenysan has joined #ruby
kstephens has joined #ruby
companion has quit [Ping timeout: 264 seconds]
felipecvo has quit [Ping timeout: 246 seconds]
companion has joined #ruby
workmad3 has joined #ruby
baphled has joined #ruby
jonathanwallace has joined #ruby
justsee|away is now known as justsee
bullicon has joined #ruby
workmad3 has quit [Quit: leaving]
zz_chrismcg is now known as chrismcg
bairui_ is now known as bairui
pjotr_pan has joined #ruby
fastred has joined #ruby
mfcabrera has joined #ruby
tatsuya_o has joined #ruby
bairui has quit [Quit: WeeChat 0.3.7]
Markvilla has joined #ruby
wallerdev has quit [Quit: wallerdev]
u_u has quit [Ping timeout: 265 seconds]
chimkan_ has left #ruby [#ruby]
chussenot has quit [Quit: chussenot]
mfcabrera has quit [Ping timeout: 252 seconds]
kn330 has quit [Ping timeout: 255 seconds]
Morkel has joined #ruby
qwerxy has joined #ruby
tiripamwe has quit [Ping timeout: 244 seconds]
thisirs has quit [Remote host closed the connection]
tiripamwe has joined #ruby
berserkr has joined #ruby
peterhellberg has joined #ruby
workmad3 has joined #ruby
flype has joined #ruby
rutkla has quit [Ping timeout: 246 seconds]
manizzle has quit [Remote host closed the connection]
manizzle has joined #ruby
u_u has joined #ruby
arturaz has joined #ruby
dpk has joined #ruby
slux has joined #ruby
elhu has quit [Quit: Computer has gone to sleep.]
rutkla has joined #ruby
resure has joined #ruby
robotmay has joined #ruby
luckyruby has quit [Remote host closed the connection]
thisirs has joined #ruby
mockra has joined #ruby
lkba has quit [Quit: Bye]
rutkla_ has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
elhu has joined #ruby
dhruvasagar has joined #ruby
rutkla has quit [Ping timeout: 246 seconds]
tiripamwe has quit [Ping timeout: 268 seconds]
tiripamwe has joined #ruby
mockra has quit [Ping timeout: 245 seconds]
peterhellberg has quit [Remote host closed the connection]
dpk has quit [Ping timeout: 255 seconds]
pjotr_pan has left #ruby [#ruby]
pskosinski has joined #ruby
dangerousdave has joined #ruby
vectorshelve has joined #ruby
specialGuest has joined #ruby
Squarepy has joined #ruby
Squarepy has quit [Changing host]
Squarepy has joined #ruby
peterhellberg has joined #ruby
<ij> banisterfiend, Can pry do value returning when invoked from code?
s1n4 has quit [Quit: peace out]
tvw has joined #ruby
cascalheira has joined #ruby
chitradeep has quit [Quit: chitradeep]
manizzle has quit [Remote host closed the connection]
beneggett has quit [Ping timeout: 246 seconds]
manizzle has joined #ruby
AndrewNTH has joined #ruby
AndrewNTH has left #ruby [#ruby]
beneggett has joined #ruby
Rochefort has quit [Remote host closed the connection]
chitradeep has joined #ruby
[Neurotic] has quit [Quit: Leaving]
dhruvasagar has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby
w0lverine has quit [Quit: w0lverine]
tonini has quit [Remote host closed the connection]
u_u has quit [Ping timeout: 246 seconds]
mobilegamelabs has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
Foxandxss has joined #ruby
fermion has joined #ruby
mfcabrera has joined #ruby
lkba has joined #ruby
Vert has joined #ruby
jrist-afk has quit [Read error: Operation timed out]
resure has quit [Remote host closed the connection]
tiripamwe has quit [Ping timeout: 252 seconds]
hasse has joined #ruby
<hasse> What is the best way to store a simple hash without using a database. Is it using PStore?
mneorr has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<Hanmac> hasse: you could store it with Marshal.dump(hash)
<hasse> Hanmac: does Marshal store in memory or filesystem?
<ij> Marshal serializes it.
<Hanmac> hasse Marshal does only serialize it to a String ... what you do with the string is your turn ...
<hasse> ij: ah, okay
<bnagy> PStore basically _does_ use a Hash and Marshal
<Hanmac> you could write it to filesystem or send it to some IP, what ever you want
<hasse> bnagy: PStore sounds like the way to go then
<bnagy> no idea, best isn't a useful concept without a metric
dhruvasagar has quit [Ping timeout: 265 seconds]
chitradeep has quit [Quit: chitradeep]
Tomasso has joined #ruby
dhruvasagar has joined #ruby
resure has joined #ruby
resure has quit [Remote host closed the connection]
<bnagy> if you care about human readability and being really slow then I guess YAML would be the best choice
gmci has quit [Quit: Computer has gone to sleep.]
ephemerian has joined #ruby
chussenot_ has joined #ruby
cloud|droid has quit [Quit: Leaving]
resure has joined #ruby
u_u has joined #ruby
cloud|droid has joined #ruby
cloud|droid has quit [Client Quit]
dpk has joined #ruby
cloud|droid has joined #ruby
Tulak1 has joined #ruby
jankly has quit [Read error: Connection reset by peer]
mockra has joined #ruby
jankly has joined #ruby
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
x0F_ is now known as x0F
Tulak has quit [Read error: Operation timed out]
hasse has quit [Ping timeout: 245 seconds]
Foxandxss has joined #ruby
arietis has joined #ruby
jeff_sebring has quit [Quit: Leaving]
jrist-afk has joined #ruby
banseljaj is now known as imami|afk
mockra has quit [Ping timeout: 245 seconds]
HRabbit has quit [Ping timeout: 244 seconds]
zii has joined #ruby
ij has quit [Read error: Connection reset by peer]
chitradeep has joined #ruby
Squarepy_ has joined #ruby
cloud|droid has quit [Quit: Leaving]
cloud|droid has joined #ruby
u_u has quit [Ping timeout: 245 seconds]
Squarepy_ has quit [Changing host]
Squarepy_ has joined #ruby
specialGuest has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
elhu has quit [Quit: Computer has gone to sleep.]
Squarepy has quit [Ping timeout: 246 seconds]
dhruvasagar has quit [Ping timeout: 246 seconds]
Squarepy_ is now known as Squarepy
fowl is now known as fowlskdfjs
dhruvasagar has joined #ruby
joukokar has joined #ruby
deryl has quit [Quit: deryl]
ephemerian has quit [Quit: Leaving.]
Squarepy has quit [Read error: Connection reset by peer]
iori has quit [Read error: No route to host]
shadda has quit [Excess Flood]
shadda has joined #ruby
iori has joined #ruby
S2kx has quit [Read error: Connection reset by peer]
Morkel has quit [Quit: Morkel]
Agis__ has joined #ruby
S2kx has joined #ruby
Spooner has joined #ruby
yasushi has joined #ruby
yasushi has quit [Remote host closed the connection]
yasushi has joined #ruby
Stalkr_ has joined #ruby
<macer1> how to rescue all io exceptions?
dhruvasagar has quit [Ping timeout: 245 seconds]
ephemerian has joined #ruby
senny has joined #ruby
dhruvasagar has joined #ruby
rutkla has joined #ruby
<Axsuul> macer1: rescue IOError
<Axsuul> Is there any way to get Time in a timezone without making it global? (currently its Time.zone = "...")
rutkla_ has quit [Ping timeout: 240 seconds]
wargasm has quit [Read error: Connection reset by peer]
yasushi has quit [Ping timeout: 268 seconds]
ananthakumaran has left #ruby [#ruby]
wargasm has joined #ruby
dpk has quit [Ping timeout: 252 seconds]
<Hanmac> Axsuul: Time.now.getlocal("+01:00")
thisirs has quit [Remote host closed the connection]
HRabbit has joined #ruby
u_u has joined #ruby
virunga has joined #ruby
Speed has joined #ruby
Speed has quit [Changing host]
Speed has joined #ruby
jorge has joined #ruby
<zii> MRI has a shitty parser. It accepts :[], but not :] or :[.
elhu has joined #ruby
<Hanmac> zii because :] and :[ are not valid methods
S2kx has quit [Ping timeout: 246 seconds]
<zii> That's not an argument it's got nothing to do with methods. These are SYMBOLS, Hanmac — symbols.
jjang has quit [Remote host closed the connection]
<zii> s/ment i/ment, i/
chitradeep has quit [Quit: chitradeep]
strg has joined #ruby
chussenot_ has quit [Quit: chussenot_]
<Hanmac> :"]"
Squarepy has joined #ruby
Squarepy has quit [Changing host]
Squarepy has joined #ruby
msuszczy has joined #ruby
<hoelzro> I'm guessing the only reason :[] parses is because it's common enough
<zii> I know I can make one, if I really need, but I'm talking about the crappyness of MRI's parser.
<zii> If you can parse :[], it'd be logical that it can parse :[, which it can't, which is retarded.
<hoelzro> zii: what's the actual definition for a symbol literal?
<Spooner> :[].to_s[rand(2)].to_sym works too. That is what I'd use.
<hoelzro> when it comes to the parse
<hoelzro> *parser
<zii> Okay, you found a hole in my rant. The definition most likely says that it doesn't do that.
<workmad3> zii: Spooner hehe
<workmad3> err...
<hoelzro> I'm guessing it's something like ([a-zA-z_][0-9a-zA-Z_]*)|(\[\])
nari has quit [Ping timeout: 248 seconds]
<Spooner> zii CRuby is always right, even if it is wrong. It _is_ the definition of the language.
<zii> Isn't there a standart now?
<workmad3> hoelzro: actually, the grammar seems to say it's a valid function name or variable name, prefixed with a :
wargasm has quit [Read error: Connection reset by peer]
<hoelzro> even better =)
<Hanmac> zii if you realy need :[ make an feature request
<shevy> what is that
<shevy> I know that :[]
<Spooner> workmad3: You can do :@frog though.
<shevy> is a symbol
<Spooner> workmad3 : Sorry, read fail.
<workmad3> Spooner: @frog is a valid varname though
<workmad3> :)
<shevy> strange
S1kx has joined #ruby
S1kx has joined #ruby
<shevy> :[] works but :[ and :] dont
<zii> How am I gonna write awesome smilies without :[? You mean I need to suffice with :-@?
<workmad3> shevy: [ isn't a valid function name or variable name
<shevy> ah
<workmad3> shevy: [] is though :)
<shevy> is [] listed as an explicit exception or something?
<workmad3> [] is a valid function name
<zii> Fuck, why do standarts cost money? What the shit.
<shevy> def []! <--- hehe does not work ;(
<zii> Netweaver
<shevy> yeah
<shevy> and usually they cost a lot of money too
<apeiros_> zii: are you german?
<workmad3> zii: because standard organisations are basically acting as a form of endorsement and enforcement of the standard
chitradeep has joined #ruby
kaiwren has quit [Ping timeout: 240 seconds]
<apeiros_> (asking because of the typo - it's standarD in both, german and english, "eine Standarte" is a flag)
<zii> apeiros_, No. If I'd know sie is you in german I certainly wouldn't call myself that.
<workmad3> zii: so you're not paying for the standard, you're paying to make it an ISO standard (the standard part is free... it's just a community standard)
<zii> apeiros_, Ah, latvian. We've got standart too.
<Spooner> zii ah yes, there is a standard now. I am behind the times. I'd be surprised if it wasn't based on CRuby and aimed at non-CRuby implementations though, but maybe they finally got it working sensibly.
<zii> workmad3, Myeah, I know, I know.
<Spooner> I haven't got standards.
<workmad3> Spooner: I believe they standardised YARV 1.9.2 :)
<zii> Does anyone have the standard here?
* Hanmac is standardless
<Spooner> YARV 1.9.2? No-one will ever use that as long as 1.6 still works.
<shevy> my standard is simplicity
msuszczy has quit [Ping timeout: 245 seconds]
wargasm has joined #ruby
<shevy> how expensive?
<zii> workmad3, So I could win an argument in the internets? ;-D
<shevy> CHF 238,00
<shevy> china franks
<workmad3> shevy: £150+
<shevy> hehe
<shevy> apeiros_ knows the china franks currency
<shevy> ok, google says... 1 Schweizer Franken = 0,832197244 Euro
<shevy> so I say about 180 euro!
<zii> 238.00 Swiss francs = 245.81592 US$
flype has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<shevy> hmm the US$ is that low again?
<shevy> oh
<shevy> 1 Euro = 1,2414 US Dollar
dpk has joined #ruby
<peterhellberg> Oh, so { :@foo => 'bar' } is ok, but { @foo: 'bar' } isn’t… (Not _that_ surprising though)
<shevy> hmm
<shevy> this is a bit ugly
<shevy> both actually
<peterhellberg> Absolutely :)
<peterhellberg> shevy: Very ugly even
<peterhellberg> shevy: Ok from the point of view of MRI that is, not elegance ;)
<shevy> yeah. I am trying to remember if I ever saw it in code so far
<shevy> the { :@foo => 'bar' } variant at least
mfridh has joined #ruby
jorge has quit [Remote host closed the connection]
Wizek has joined #ruby
<Wizek> hello
<apeiros_> zii: where's the problem? that's like the equivalent of 15min of work /me hides
<peterhellberg> I’m quite happy with the HAL spec and the use of _links and _embedded (Since they are valid Ruby symbol names; { _links: { self: { href: "/foo" } } } )
Rochefort has joined #ruby
<Wizek> Is there a trivial/one-liner way of getting the binding of the caller?
S1kx has quit [Quit: Leaving]
gmci has joined #ruby
<shevy> Wizek hmm ... caller perhaps... and then ... uhm... erm...
Rochefortes has joined #ruby
<peterhellberg> “One of most useful feature not present in Ruby is to get the binding of the caller of current method, to do something with its local variables.”
<shevy> hmm
<Spooner> I'm sort of glad that is unavailable.
<shevy> why
rutkla has quit [Ping timeout: 276 seconds]
<shevy> it could be an object with instance variables
sepp2k has joined #ruby
<shevy> well ok
<shevy> they are local variables... but still
<Spooner> Because if I should be playing with it, it should be passing itself into me, so to speak.
<shevy> eeeks... eval
<bnagy> and ruby has a strong history of protecting things you shouldn't play with
<Spooner> Well, OK, no :)
Rochefort has quit [Ping timeout: 246 seconds]
u_u has quit [Read error: Operation timed out]
<peterhellberg> Commence epic foot shooting!
fridim_ has joined #ruby
* shevy shoots at bnagy!
<shevy> damn...
<shevy> missed :(
<Hanmac> peterhellberg ... i think instance_eval { ... } is more better then the normal eval
<shevy> (my foot ...)
<shevy> there is more than one way to eval
<shevy> about fifty
mockra has joined #ruby
clocKwize has quit [Quit: clocKwize]
kaiwren has joined #ruby
Squarepy has quit [Read error: Connection reset by peer]
liluo has quit [Remote host closed the connection]
Squarepy has joined #ruby
AlbireoX has quit [Remote host closed the connection]
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
Rajesh has joined #ruby
clocKwize has joined #ruby
Rajesh is now known as Guest78947
JohnBat26 has quit [Remote host closed the connection]
rutkla has joined #ruby
Konboi has joined #ruby
mockra has quit [Ping timeout: 252 seconds]
<peterhellberg> Wizek: The old Binding.of_caller in the extensions library might have done what you are looking for, in 2004. http://extensions.rubyforge.org/rdoc/classes/Binding.html#M000022
kaiwren_ has joined #ruby
kaiwren has quit [Ping timeout: 245 seconds]
uris has joined #ruby
<peterhellberg> Wizek: A “modern” alternative: https://github.com/banister/binding_of_caller
JustinCampbell has joined #ruby
tolland has joined #ruby
JohnBat26 has joined #ruby
kaiwren has joined #ruby
<peterhellberg> Oh, so you can specify an optional binding when calling Kernel.eval
<peterhellberg> Nice to learn something new
macer1 has quit [Ping timeout: 246 seconds]
Morkel has joined #ruby
deryl has joined #ruby
kaiwren_ has quit [Ping timeout: 245 seconds]
Squarepy has quit [Read error: Connection reset by peer]
Squarepy has joined #ruby
u_u has joined #ruby
Markvilla has quit [Quit: Computer has gone to sleep.]
taoroute has joined #ruby
charliesome has quit [Ping timeout: 245 seconds]
<taoroute> Are there any elasticsearch masters here?
mucker has joined #ruby
Squarepy has quit [Read error: Connection reset by peer]
dpk has quit [Ping timeout: 252 seconds]
adeponte has joined #ruby
gentz has joined #ruby
Lachryma has joined #ruby
uris has quit [Read error: Connection reset by peer]
taoroute has quit [Client Quit]
<Wizek> thanks
lurch_ has joined #ruby
<Wizek> peterhellberg, why is that news?
<peterhellberg> Wizek: News because I didn’t know about it before reading the docs just now
dpk has joined #ruby
jillsmitt_ has joined #ruby
acemtp has quit [Read error: Connection reset by peer]
Gryllida is now known as gry
jillsmitt has quit [Ping timeout: 246 seconds]
jimstoik13 has joined #ruby
uris has joined #ruby
<Wizek> I see
Guest is now known as trout
trout is now known as Guest22160
dpk has quit [Ping timeout: 265 seconds]
dr_bob has joined #ruby
mobilegamelabs has quit [Quit: Turn Your Friend Into a Dog (iPhone/iPad) http://www.MGGGGG.com/turn-your-friend-into-a-dog]
Guest78947 has quit [Quit: Leaving to Quit]
dpk has joined #ruby
_marvin has joined #ruby
justsee is now known as justsee|away
justsee|away is now known as justsee
wargasm has quit [Read error: Connection reset by peer]
dr_bob has left #ruby [#ruby]
dr_bob has joined #ruby
Tulak1 has quit [Quit: Leaving.]
Clooth has quit [Ping timeout: 264 seconds]
Tulak has joined #ruby
fridim_ has quit [Ping timeout: 246 seconds]
Tulak has quit [Ping timeout: 248 seconds]
Clooth has joined #ruby
a_a_g has quit [Quit: Leaving.]
fumbe has quit [Ping timeout: 245 seconds]
kedare has joined #ruby
u_u has quit [Ping timeout: 248 seconds]
dpk has quit [Ping timeout: 246 seconds]
felipecvo has joined #ruby
virunga_ has joined #ruby
virunga has quit [Quit: Sto andando via]
virunga_ has quit [Read error: Connection reset by peer]
virunga has joined #ruby
dhruvasagar has quit [Ping timeout: 276 seconds]
dhruvasagar has joined #ruby
tk_ has joined #ruby
dpk has joined #ruby
Clooth has quit [Ping timeout: 276 seconds]
burgestrand has quit [Quit: Leaving.]
kaiwren has quit [Ping timeout: 246 seconds]
cousine has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
uris has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
virunga is now known as Brutus-
carloslopes has joined #ruby
nXqd has joined #ruby
kaiwren has joined #ruby
burgestrand has joined #ruby
u_u has joined #ruby
chussenot_ has joined #ruby
`brendan has joined #ruby
robbyoconnor has quit [Ping timeout: 246 seconds]
wargasm has joined #ruby
Agis__ has quit [Quit: Agis__]
<nXqd> hi guys :)
fourlastor has joined #ruby
wargasm has quit [Read error: Connection reset by peer]
wargasm has joined #ruby
<Brutus-> nXqd: hi sexy
mockra has joined #ruby
Konboi has quit [Remote host closed the connection]
macer1 has joined #ruby
crankycoder has joined #ruby
Squarepy has joined #ruby
jjbohn has joined #ruby
<bnagy> I NEED AN ADULT
<bnagy> a/s/l I like stabby proc syntax wanna cyber?
<apeiros_> rofl
<Muz> bnagy: /Inside/ voice.
<apeiros_> and "l" here refers to programming language?
Knodi has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
Boffers has quit [Quit: Leaving]
mockra has quit [Ping timeout: 268 seconds]
cassianoleal has joined #ruby
fbernier has joined #ruby
dhruvasagar has joined #ruby
<cassianoleal> what's the cleanest way to check for an HTTP response 422?
<cassianoleal> Net::HTTPResponse goes only so far as 417
dpk has quit [Ping timeout: 252 seconds]
emmanuelux has joined #ruby
chitradeep has quit [Quit: chitradeep]
<Muz> Use a different HTTP library? HTTParty may be able to do it.
chitradeep has joined #ruby
<Muz> At the very least, it'd be easy enough to write a test case.
Clooth has joined #ruby
<JonnieCache> cant you just get the status as an integer?
<Muz> Or just inspect the headers directly
Abbas5 has joined #ruby
Abbas5 is now known as Abbas-
Abbas- has quit [Changing host]
Abbas- has joined #ruby
Abbas- is now known as Abbas5
dpk has joined #ruby
<JonnieCache> all the ones above 417 are not part of the original http spec so theres often going to be hoops to jump through
<Muz> 418.
<JonnieCache> my favourite
flype has joined #ruby
jjbohn has quit [Quit: Leaving...]
enroxorz has joined #ruby
enroxorz has quit [Changing host]
enroxorz has joined #ruby
<Hanmac> imo the coffee protocol should be extended to support Teapots too
<apeiros_> Muz: is 418 the "your government sucks" status code?
<JonnieCache> tbf that is really bad design isnt it
sailias has joined #ruby
<JonnieCache> there should be a generalised hot beverages protocol
<Muz> apeiros_: I'm a teapot.
<JonnieCache> apeiros_: much better than that
jorge_ has joined #ruby
<apeiros_> oh
<JonnieCache> apeiros_: https://tools.ietf.org/html/rfc2324
dhruvasagar has quit [Ping timeout: 268 seconds]
dhruvasagar has joined #ruby
Axsuul has quit [Ping timeout: 250 seconds]
emmanuelux has quit [Ping timeout: 246 seconds]
<cassianoleal> HTTParty uses Net::HTTP underneath, I'm not sure it implements any other response classes
<cassianoleal> I'll have a look, though
Abbas5 is now known as Abbas|
<cassianoleal> I'm currently using the status code, but a class name makes the test more readable
<Muz> There's nothing stopping you from extending the Net class
<JonnieCache> yep nothing to stop you putting more constants in there
<cassianoleal> true
<Muz> As long as you can get to the status code in the respones headers though, what more do you want other than for aesthetic purposes?
jrajav has joined #ruby
<cassianoleal> might do that
<cassianoleal> not much, really
<JonnieCache> theyre pretty good aesthetic purposes though
<cassianoleal> it does work with the code
<JonnieCache> magic numbers and all that
<cassianoleal> yep, my point exactly
<graspee> 418 is a very magickal number if you are familiar with Aleister Crowley
wargasm has quit [Read error: Connection reset by peer]
cloud_droid has joined #ruby
nXqd has quit [Quit: leaving]
wargasm has joined #ruby
<JonnieCache> graspee: some of my friends are into that
<cassianoleal> really? what's its meaning for him? or for Nuit for that matter
<JonnieCache> some strange stuff
<cassianoleal> lol
<graspee> it's the number for abrahadabra
cloud|droid has quit [Quit: Leaving]
<graspee> and some other things which are slightly more contrived
<Hanmac> Crowley? ... sounds familar ... he was in a book i read
<jrajav> D. Grayman? :P
<graspee> http://en.wikipedia.org/wiki/Abrahadabra scroll down to gematria
<Muz> הרו רא הא
<Muz> Hah, that's mentioned on there.
<jrajav> Hanmac: You don't happen to know what node.js's child_process.exec function requires, do you?
<jrajav> That seems to be the only remaining barrier to chrootbot
<Hanmac> jrajav no i dont know :(
<JonnieCache> graspee: connected this this iirc: http://en.wikipedia.org/wiki/Discordianism
<JonnieCache> its like zen for anarchists as far as i can make out
<Hanmac> jrajav: Crowley was in "good omens" http://en.wikipedia.org/wiki/Good_Omens
resure has quit [Ping timeout: 245 seconds]
<hoelzro> great book
paolooo has joined #ruby
<jrajav> JonnieCache: More like zen for trolls at life
<jrajav> JonnieCache: Read the whole article :P
<JonnieCache> theres a lot of crossover there in my experience
<jrajav> Haha
strg has quit [Quit: strg]
<jrajav> Honestly, zen is pretty fucked up too, but most people who categorize things as "zen" don't know what they're on about
<graspee> like zen mode on bejeweled? :D
strg has joined #ruby
<jrajav> That's the only true zen
krusty_ar has joined #ruby
strg has quit [Client Quit]
<JonnieCache> well im not just talking out of my ass there are definitely parallels
resure has joined #ruby
<graspee> of course there are paralells
<graspee> it's just that once you get into that area, people tend to cleave closely to one particular approach and not investigate others
<graspee> it's like mac vs. pc rather than a spritual buffet
thomasfedb has quit [Ping timeout: 246 seconds]
fforbeck has joined #ruby
<JonnieCache> tbh the only understanding i have of zen is as a cognitive tool: sometimes the only way to understand things is to give up
<JonnieCache> ive not really investigated it further than that
thomasfedb has joined #ruby
<graspee> because you gave up? :D
sgronblom has quit [Read error: Connection reset by peer]
<JonnieCache> hahaha i really didnt mean that pun. but it is quite a good one
sgronblom has joined #ruby
* burgestrand rimshot
<JonnieCache> no, because it was only a brief chapter in a larger book
dhruvasagar has quit [Ping timeout: 244 seconds]
Progster has joined #ruby
dhruvasagar has joined #ruby
andrewpthorp has joined #ruby
<jrajav> If you describe zen as a cognitive tool, you already understand it a lot better than most people
<jrajav> Of course a true zen master would assert that it's impossible to actually describe zen
<jrajav> But just ignore that bullshit :P
resure has quit [Ping timeout: 276 seconds]
<cassianoleal> yeah, what are masters for anyway?
<cassianoleal> lol
<JonnieCache> some of those are amazing
<cassianoleal> how do I index a hash by its values instead of keys?
<cassianoleal> I mean… look for hash['value'] to get 'key'
<cassianoleal> you know what I mean
<cassianoleal> :P
<peterhellberg> cassianoleal: You want to invert the hash
<JonnieCache> theres a method that turns the hash inside out
<shevy> hash.jack_the_ripper
<shevy> $hash # => {"b"=>2, "a"=>1, "c"=>3, "e"=>5, "d"=>4, "j"=>7, "i"=>7, "FgH"=>6}
<shevy> $hash.invert # => {2=>"b", 1=>"a", 3=>"c", 5=>"e", 4=>"d", 7=>"i", 6=>"FgH"}
<cassianoleal> nice, thanks
<shevy> there is also... $hash.values("foo","bar") I think which gives you the key
<shevy> the keys
<shevy> :)
resure has joined #ruby
kaiwren_ has joined #ruby
<shevy> unless you give only one argument, then it is "the key" again... :P
<shevy> the english language is more difficult than the ruby language
br4ndon has joined #ruby
iamjarvo has quit [Quit: Leaving...]
flype has quit [Quit: Computer has gone to sleep.]
Stalkr_ has quit [Ping timeout: 265 seconds]
sailias has quit [Ping timeout: 246 seconds]
<cassianoleal> haha
Knodi has quit [Quit: Knodi]
<peterhellberg> shevy: values_at takes a list of keys and returns their respective values.
kaiwren has quit [Ping timeout: 246 seconds]
kaiwren_ is now known as kaiwren
fearoffish has joined #ruby
cousine has quit [Remote host closed the connection]
vng has joined #ruby
crankycoder has quit [Quit: Leaving...]
ramblex has joined #ruby
jorge_ has quit [Remote host closed the connection]
bothra has joined #ruby
tommyvyo has joined #ruby
jrist-afk has quit [Ping timeout: 245 seconds]
geekbri has joined #ruby
crankycoder has joined #ruby
fugit has quit [Remote host closed the connection]
crankycoder has quit [Client Quit]
br4ndon has quit [Ping timeout: 252 seconds]
bluenemo_ has joined #ruby
bluenemo_ has quit [Changing host]
bluenemo_ has joined #ruby
bluenemo_ has quit [Client Quit]
jimstoik13 has quit [Remote host closed the connection]
locriani has joined #ruby
locriani has quit [Changing host]
locriani has joined #ruby
vng has quit [Quit: leaving]
wargasm has quit [Read error: Connection reset by peer]
vng has joined #ruby
Markvilla has joined #ruby
wargasm has joined #ruby
nari has joined #ruby
jjbohn has joined #ruby
linoj has joined #ruby
wangr has joined #ruby
ramblex has quit [Read error: Operation timed out]
seanstickle has joined #ruby
vng is now known as crankycoder
ramblex has joined #ruby
crankycoder has quit [Quit: leaving]
s1n4 has joined #ruby
crankycoder has joined #ruby
locriani has quit [Remote host closed the connection]
yoklov has joined #ruby
mockra has joined #ruby
flype has joined #ruby
br4ndon has joined #ruby
jrist_ has joined #ruby
mockra has quit [Ping timeout: 252 seconds]
slux has quit [Remote host closed the connection]
iamjarvo has joined #ruby
verto|off is now known as verto
slux has joined #ruby
iori has quit [Remote host closed the connection]
Ethan has quit [Ping timeout: 244 seconds]
tatsuya_o has quit [Remote host closed the connection]
Goles has joined #ruby
cousine has joined #ruby
tatsuya_o has joined #ruby
Shahor has joined #ruby
tatsuya__ has joined #ruby
tatsuya_o has quit [Read error: Connection reset by peer]
ken_barber has quit [Remote host closed the connection]
d3vic3 has quit [Ping timeout: 245 seconds]
chitradeep has quit [Quit: chitradeep]
kaiwren_ has joined #ruby
kaiwren has quit [Ping timeout: 246 seconds]
kaiwren_ is now known as kaiwren
Rochefortes has quit [Remote host closed the connection]
chitradeep has joined #ruby
Shahor has quit [Client Quit]
ken_barber has joined #ruby
v0n has joined #ruby
kvirani has joined #ruby
lorandi has joined #ruby
yoklov has quit [Quit: computer sleeping]
nwest has joined #ruby
tatsuya__ has quit [Remote host closed the connection]
johnlcox has joined #ruby
ken_barber1 has joined #ruby
jimstoik13 has joined #ruby
vectorshelve has quit [Quit: Page closed]
Ethan has joined #ruby
bbttxu has joined #ruby
kvirani has quit [Remote host closed the connection]
macer1 has quit [Ping timeout: 244 seconds]
und3f has quit [Quit: Leaving.]
andrewhl has joined #ruby
und3f has joined #ruby
cantbecool has joined #ruby
ken_barber has quit [Ping timeout: 244 seconds]
Abbas| has quit [Read error: Connection reset by peer]
blacktul_ has quit [Read error: Connection reset by peer]
Abbas5 has joined #ruby
Abbas- has quit [Changing host]
Abbas- has joined #ruby
Abbas- is now known as Abbas5
und3f has quit [Client Quit]
und3f has joined #ruby
jrist_ is now known as jrist
dross_ is now known as dross
und3f has quit [Client Quit]
nateberkopec has joined #ruby
dhruvasagar has quit [Ping timeout: 244 seconds]
und3f has joined #ruby
blacktulip has joined #ruby
nXqd has joined #ruby
Abbas5 is now known as Abbas|
Eldariof-ru is now known as eldariof
jgarvey has joined #ruby
dhruvasagar has joined #ruby
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
MarGarina has joined #ruby
d3vic3 has joined #ruby
ananthakumaran has joined #ruby
<MarGarina> Hi, I use Net::HTTP to send simple get requests, but didn't find a generic way to work regardless of whether ssl is on or off
<MarGarina> (so far I manually use http.set_ssl = true / false, but it can be deduced from the uri...)
<MarGarina> sorry, I meant use_ssl=true/false
<MarGarina> any idea how to simply send a request and use ssl only if https?
sdimkov has joined #ruby
monobit has joined #ruby
Squarepy has quit [Changing host]
Squarepy has joined #ruby
<clocKwize> MarGarina: Use something like Nestful or Httparty
ananthakumaran has quit [Client Quit]
<clocKwize> they are more friendly wrappers around Net::HTTP
robbyoconnor has joined #ruby
<MarGarina> clocKwize: interesting, will chk, 10x
asobrasil has joined #ruby
sdimkov has quit [Remote host closed the connection]
<clocKwize> don't ever (EVER) say 10x instead of thanks. People will stop taking you seriously
sdimkov has joined #ruby
awarner has joined #ruby
<hoelzro> I've never seen 10x as a substitute for thanks
jstew has joined #ruby
sdimkov has quit [Remote host closed the connection]
flype has quit [Ping timeout: 252 seconds]
<seanstickle> 10x = thanks?
<seanstickle> wtf
<clocKwize> I have, many moons ago
<clocKwize> when I was about 14
<clocKwize> on AOL chat
<clocKwize> even then I thought wtf
cloud_droid has quit [Ping timeout: 276 seconds]
<clocKwize> MarGarina: See!
robbyoconnor has quit [Read error: Connection reset by peer]
jonnn_ has joined #ruby
sdimkov has joined #ruby
chitradeep has quit [Quit: chitradeep]
jrajav has quit [Quit: The best darkness is strange and surprising]
<MarGarina> clocKwize: sorry man. Thanks :)
<clocKwize> no problem
<MarGarina> never seen '10x' in this light.
<MarGarina> Using it for years.
brdude has joined #ruby
flype has joined #ruby
chitradeep has joined #ruby
<MarGarina> Ohh maybe that's why people always make this hating face at me.
<elhu> MarGarina: It actually makes sense if you say it out loud with an Irish accent :P.
nari has quit [Ping timeout: 265 seconds]
erichmenge has joined #ruby
pu22l3r has joined #ruby
<shevy> sex
<shevy> ^^^ with irish accent
pu22l3r has quit [Remote host closed the connection]
stopbit has joined #ruby
pu22l3r has joined #ruby
emmanuelux has joined #ruby
liluo has joined #ruby
ThaDick has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
kvirani has joined #ruby
rodj has joined #ruby
jorge_ has joined #ruby
lorandi has quit [Quit: Leaving]
Abbas| has quit [Ping timeout: 255 seconds]
burgestrand has quit [Quit: Leaving.]
cezar has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
jorge_ has quit [Ping timeout: 276 seconds]
cezar has quit [Client Quit]
fn0rd has quit [Ping timeout: 276 seconds]
qwerxy has quit [Ping timeout: 252 seconds]
sailias has joined #ruby
jaylevitt has joined #ruby
bigkevmcd has quit [Quit: outta here]
qwerxy has joined #ruby
justsee has quit [Quit: Leaving...]
<peterhellberg> MarGarina: I’m pretty happy with both RestClient and Typhoeus, but you can also check if uri.is_a?(URI::HTTPS)
<seanstickle> Is Typhoeus still maintained?
fn0rd has joined #ruby
<seanstickle> We looked at it a few months ago and it seemed … well not quite abandoned
<seanstickle> But not exactly active either
<peterhellberg> seanstickle: 0.4.1 was released about a month ago
kpshek has joined #ruby
<seanstickle> Neato!
<peterhellberg> And so was 0.4.2 it seems
quazimodo has quit [Ping timeout: 276 seconds]
<peterhellberg> I quite like their Hydra concept
mockra has joined #ruby
bluenemo has quit [Ping timeout: 245 seconds]
<seanstickle> As do I.
<seanstickle> Learned about Typhoeus in that book on building service oriented systems with Ruby
<workmad3> seanstickle: heh :) same here
internet_user has joined #ruby
<workmad3> it was about the only thing I learned from that book :)
mockra_ has joined #ruby
<seanstickle> I learned a lot from that book.
<seanstickle> One of the better Ruby books, for sure.
<workmad3> yeah, it's a pretty well written book
Squarepy has quit [Read error: Connection reset by peer]
<workmad3> and I even recommended it to others as a reasonable intro to SOA
whoev has quit [Quit: leaving]
<workmad3> just didn't really learn anything new myself from it :)
joshman_ has joined #ruby
<seanstickle> Gotcha
Squarepy has joined #ruby
<peterhellberg> I used it in a web based test framework that I wrote for a client last year. (It ran a test suite against external implementations of an API-spec we had provided third party developers)
<workmad3> seanstickle: it's certainly a lot more approachable and useful than the thomas erl books on SOA...
mahmoudimus has joined #ruby
mockra has quit [Ping timeout: 245 seconds]
mockra_ has quit [Remote host closed the connection]
dpk has quit [Ping timeout: 252 seconds]
<seanstickle> workmad3: That's like saying a car is a much nicer way to get around town than shooting yourself in the face and having an ambulance drive you.
<seanstickle> workmad3: which is to say, I agree with you
<fourlastor> is it better to organize a c-extension into a gem or not? also, is this guide still valid? http://ruby-doc.org/docs/ProgrammingRuby/html/ext_ruby.html? (i have the pragmatic programmers guide, and it refers to the online version for c-extensions writing)
<shevy> x.untaint RuntimeError: can't modify frozen String
<workmad3> seanstickle: I don't drive...
<shevy> where x is an ENV entry
<peterhellberg> fourlastor: Better than what?
* workmad3 will stop taking metaphors literally now
<fourlastor> peterhellberg, as in best practice
<workmad3> shevy: heh :) ENV strings are frozen and tainted?
<shevy> ah ok
<shevy> perhaps I picked a bad example then
<workmad3> shevy: I was asking the question...
<shevy> well
<shevy> I picked the example from the pickaxe
<workmad3> which one?
<shevy> y1 = ENV['HOME']
<shevy> y1.tainted?
<workmad3> the online version based on 1.6?
<peterhellberg> fourlastor: I’d probably go for a gem
<shevy> hmm ok... book title is actually "Programming Ruby 1.9 - The Pragmatic Programmer's Guide"
<workmad3> ok, so a more recent one then...
<shevy> it says "If the safe level is less than 3, you can remove the taint from an object by invoking untaint."
pfaff has joined #ruby
<peterhellberg> fourlastor: One of my gems that is mainly implemented in C: https://github.com/peterhellberg/kinetosis
<Hanmac> shevy, yeah ... but then the string is frozen you cant :P
headius has joined #ruby
<shevy> hmmmm
<shevy> so when do I use untaint?
<shevy> shall I stick to my old way ... x = x.dup :P
<fourlastor> peterhellberg, did you use gemcutter to bootstrap it?
<peterhellberg> fourlastor: I’m unfortunately not able to test it anymore… since Apple removed the Sudden Motion Sensor in most of their machines :)
<shevy> ah
Goles has quit [Quit: Computer has gone to sleep.]
<shevy> ok... but when is #untaint really useful?
dpk has joined #ruby
<shevy> whoa what a docu
<fourlastor> also peterhellberg, where did you refer to write a c extension? :P
<shevy> rb_secure(3);
<workmad3> shevy: I've never used untaint myself
<shevy> hehe
<peterhellberg> fourlastor: I’m not sure what you mean about bootstrapping, but yes… I’ve published the gem on http://rubygems.org/gems/kinetosis
<workmad3> shevy: I can understand the rationale... you've gotten some input from a user, you don't quite trust it yet, so you taint it
<shevy> yeah
<workmad3> shevy: and if you then validate it then you can untaint it to say 'actually, it's ok'
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
cantbecool has quit [Quit: Textual IRC Client: www.textualapp.com]
cousine_ has joined #ruby
<workmad3> shevy: but... it doesn't work quite as intuitively as that in practice
<shevy> yeah... hehehe
<shevy> if we are polite
<fourlastor> peterhellberg, having a starting point (http://rdoc.info/github/technicalpickles/jeweler this is an example)
cousine has quit [Ping timeout: 246 seconds]
Abbas5 has joined #ruby
Abbas5 is now known as Abbas-
<shevy> if I am not so polite, I say... this is useless
Abbas- has quit [Changing host]
Abbas- has joined #ruby
Abbas- is now known as Abbas5
<workmad3> shevy: and we are polite :P
lxsameer has quit [Max SendQ exceeded]
<peterhellberg> fourlastor: I mainly read the source for other gems, and also some C-specific solutions from the VirtualBox source.
lxsameer has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
<workmad3> shevy: one should maintain politeness in all of one's endeavours...
mneorr has quit [Quit: Leaving.]
Gab0 has joined #ruby
<workmad3> shevy: otherwise we're all just going to turn into you... and no one wants that :P
<peterhellberg> fourlastor: I’d recommend that you use Bundler for generating the initial structure of your new gem.
<fourlastor> peterhellberg, ok, i'll look it up right now
<peterhellberg> fourlastor: (I generally write my .gemspecs by hand, but bundler can automate that somewhat)
lxsameer has quit [Max SendQ exceeded]
<shevy> workmad3 haha
lxsameer has joined #ruby
dpk has quit [Ping timeout: 252 seconds]
cousine has joined #ruby
<workmad3> peterhellberg: the gemspec built by bundler is quite a nice balance between hand-modifiable and automated, IMO
hsbt is now known as hsbt_away
<peterhellberg> workmad3: Yeah, I wouldn’t use Hoe or Jeweller… but Bundler is ok in my book
lxsameer has quit [Max SendQ exceeded]
kn330 has joined #ruby
lxsameer has joined #ruby
answer_421 has joined #ruby
lxsameer has quit [Read error: Connection reset by peer]
dpk has joined #ruby
cousine_ has quit [Ping timeout: 246 seconds]
<shevy> I am going to remember that!
<workmad3> peterhellberg: yeah, I used jeweller in the past
<shevy> bundle guys I shall send to peterhellberg :)
<workmad3> peterhellberg: wouldn't again :)
answer_42 has quit [Ping timeout: 246 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<workmad3> shevy: one day you will take the plunge and learn about these things :P
<shevy> I really hate bundler though
answer_421 has quit [Client Quit]
mongrelion has joined #ruby
<workmad3> shevy: what contrived reason do you have for this particular hatred? :P
<shevy> I am going to hold to my script that creates .gemfile for me as long as possible
Abbas5 is now known as Abbas|
<mongrelion> Hi there o/ I was wondering if there is any specific flag for compiling ruby on a ARM processor. Perhaps an [special] option that I want to include or keep out?
<shevy> workmad3, reading a ruby on rails tutorial, following the commands there on the official website, seeing how bundler exploded into my face
answer_42 has joined #ruby
cousine has quit [Ping timeout: 246 seconds]
<cout> mongrelion: it doesn't work out of the box? or are you cross-compiling?
<workmad3> shevy: right... so as usual, nothing rational :P
daniel_hinojosa has joined #ruby
<mongrelion> cout: no, no, I am just on the point of start compiling...
brdude has quit [Quit: brdude]
<shevy> workmad3 but it did not work man
burgestrand has joined #ruby
Gab0 has quit [Remote host closed the connection]
<shevy> https://github.com/carlhuda/bundler/issues?state=open 329 open issues, 1711 closed issues. that's a lot of issues they have!
MarGarina has quit [Ping timeout: 252 seconds]
<peterhellberg> shevy: You don’t need to depend on Bundler just because it generates a .gemfile for you :)
<shevy> nono
<workmad3> shevy: bundler has been working fine for me since it was in 0.9 days and I've been on rails 2.3.5 and had to hack it in manually
bigkevmcd has joined #ruby
<shevy> the .gemfile I generate on my own
<workmad3> shevy: and it's been working pretty much problem free since 1.0 days and rails 3.0 :)
<workmad3> shevy: so it must be you :P
<shevy> the only need I had to use bundler so far was because some website said "bundle install this"
<JonnieCache> tbf it was slow as shit before 1.1
bluenemo has joined #ruby
<JonnieCache> but that was as much to do with the server as anything else
<workmad3> JonnieCache: yeah well... it is also heuristically solving NP-complete graph resolution problems...
<shevy> hehehe
<shevy> sounds complicated
<JonnieCache> it is now. before it just bruteforced it iirc
<peterhellberg> I’m working as a consultant for a number of companies and Bundler has been a _great_ tool for separating different projects.
<workmad3> JonnieCache: I don't think the resolution has changed much... it just had to get a lot more data from rubygems each time in pre 1.1 days
<JonnieCache> bundler is clearly brilliant. if you dont think it is, you must not have used languages which lack such things
<workmad3> JonnieCache: it had to basically download and parse all the dependency info for all the gems on rubygems...
<JonnieCache> that was it. whereas now it can ask for the ones it wants
<Muz> https://rubygems.org/gems/fuck_you_bundler This was my favourite gem ever.
<workmad3> yeah
<shevy> LOL
<workmad3> Muz: yeah, I like that one :D
<Muz> If only for it shwing up on the autocomplete for coworkers using Rubymine.
<shevy> hahaha
<Muz> Since it got pulled, but left for dependancy reasons, it only seemed apt to publish https://rubygems.org/gems/fuck_you_rubygems
<shevy> lol man
<shevy> that's you there!
zemanel has joined #ruby
<shevy> total downloads: 3
<shevy> ack
<shevy> dependency hell ...
<shevy> ERROR: While executing gem ... (Gem::DependencyError)
<shevy> Unable to resolve dependencies: fuck_you_rubygems requires fuck_you_bundler (>= 0)
<shevy> how is anyone able to resolve this??
answer_42 has quit [Quit: WeeChat 0.3.8]
dereknelson has quit [Read error: Connection reset by peer]
<Muz> https://rubygems.org/downloads/fuck_you_bundler-1.0.0.gem The gem is definitely stil there.
dereknelson has joined #ruby
answer_42 has joined #ruby
<shevy> ah
philips_ has quit [Excess Flood]
<Muz> I suppose they don't surface it as available on the rubygems API calls that gem makes.
chrisja has joined #ruby
answer_42 has quit [Client Quit]
<Muz> s/gem/bundler/ ? *shrugs*
<hoelzro> rubybundlers?
<hoelzro> =P
hsbt_away is now known as hsbt
mahmoudimus has joined #ruby
andrewpthorp has quit [Quit: Leaving...]
ananthakumaran has joined #ruby
tatsuya_o has joined #ruby
bwlang has joined #ruby
hsbt is now known as hsbt_away
answer_42 has joined #ruby
Squarepy has quit [Read error: Connection reset by peer]
hsbt_away is now known as hsbt
philips_ has joined #ruby
deryl has quit [Quit: deryl]
Squarepy has joined #ruby
jlogsdon has joined #ruby
rutkla has quit [Read error: Connection reset by peer]
jlogsdon has quit [Remote host closed the connection]
jlogsdon has joined #ruby
andrewpthorp has joined #ruby
<bwlang> are image maps in the same class as "under construction" animated gifs? I would like to provide some context information about certain regions of an image i'm processing… Is there some better way to do that in a browser?
havenn has joined #ruby
ken_barber1 has quit [Remote host closed the connection]
ken_barber has joined #ruby
rutkla has joined #ruby
<seanstickle> bwlang: yes
SCommette has joined #ruby
mahmoudimus has quit [Client Quit]
<peterhellberg> bwlang: yes
<bwlang> seanstickle: yes they're ultra passé? or yes there is some better way?
tatsuya_o has quit [Ping timeout: 245 seconds]
<seanstickle> bwlang: both/and
hunglin has joined #ruby
Squarepy has quit [Changing host]
Squarepy has joined #ruby
techsurvivor has left #ruby ["WeeChat 0.3.8"]
macer1 has joined #ruby
deryl has joined #ruby
burgestrand has quit [Quit: Leaving.]
<workmad3> Muz: it got yanked
<shevy> hehe
havenn has quit [Remote host closed the connection]
locriani has joined #ruby
locriani has quit [Changing host]
locriani has joined #ruby
dpk has quit [Quit: Asleep at the keyboard.]
aganov has quit [Quit: aganov]
<Muz> workmad3: oh I'm aware, but the gem was left there to satisfy dependencies. I was just making a small joke on that.
<workmad3> :)
<bwlang> seanstickle; hmm - nothing i can encode in the image itself i guess… it's going to be a bit of pain to pass around the positions of the various features. Maybe an svg with some bitmap elements. sound crazy?
<seanstickle> bwlang: sounds like a lot of work for a clickable image
uris has joined #ruby
fn0rd has quit [Quit: Lost terminal]
locriani has quit [Read error: Operation timed out]
<bwlang> seanstickle: it's actually about 50k images that we're processing and need to display in web context (but maybe somewhere else too)
Scurvy has joined #ruby
<bwlang> i want a scientist to be able hover over a band in a gel and get some information about what's expected to be there.
<seanstickle> Why not display it all the time?
<seanstickle> Why hide it?
Husel has joined #ruby
daniel_hinojosa has quit [Ping timeout: 240 seconds]
chrisbolton_ has joined #ruby
cantonic has joined #ruby
TorpedoSkyline has joined #ruby
<shevy> seanstickle what kind of clickable image
<shevy> something with boobs?
jprovazn is now known as jprovazn_away
<seanstickle> shevy: ask bwlang
<peterhellberg> bwlang: Do you have an example image online somewhere?
<shevy> he scares me
<seanstickle> shevy: biochemistry gels
<shevy> he is doing something for scientists. that is scary in itself...
erichmenge has quit [Quit: Be back later]
<seanstickle> shevy: so no boobs
<shevy> :(
dpk has joined #ruby
erichmenge has joined #ruby
<bwlang> peterhellberg: i can toss up an example… - sorry no body parts..
jprovazn_away has quit [Quit: Leaving]
<peterhellberg> I would separate the images from the features data (probably delivered as JSON) and then plot the overlays using JavaScript (CoffeeScript in my case)
dpk has quit [Client Quit]
erichmenge has quit [Client Quit]
<peterhellberg> bwlang: Something along these lines? http://upload.wikimedia.org/wikipedia/commons/6/60/Gel_electrophoresis_2.jpg
erichmenge has joined #ruby
Clooth has quit [Quit: Bye!]
erichmenge has quit [Client Quit]
<peterhellberg> Oh, and how many lanes per gel are we talking about? (How much information should be shown for each image?)
adelcampo has joined #ruby
cek has joined #ruby
<cek> 192 rdebug not stopping in rails 232 code
sdimkov has left #ruby [#ruby]
bbttxu has quit [Quit: bbttxu]
<cek> i set breakpoints and they're successfully ignored
mongrelion has left #ruby [#ruby]
bigkevmcd has quit [Quit: outta here]
<peterhellberg> bwlang: Also, is there a fixed number of "types" of gels? (Same information on multiple images)
bigkevmcd has joined #ruby
sdimkov_ has joined #ruby
<JonnieCache> cek rdebug doesnt work with 1.9
baroquebobcat has joined #ruby
<JonnieCache> its much better for a variety of reasons
<cek> well crap, why is it compiling and installing with no error
<cek> wait, how did whole world debug 192 with no debugger present?
<cek> let alone 193
yeggeps_ has quit [Read error: Connection reset by peer]
<cek> https://github.com/cldwalker/debugger/#reason-for-fork -- why can't we overthrow the dictator?
<JonnieCache> with pry
yeggeps has joined #ruby
yeggeps has quit [Read error: Connection reset by peer]
yeggeps has joined #ruby
<JonnieCache> cek: this new debugger integrates with pry as well
<peterhellberg> bwlang: Oh, ok. And you want some kind of hover tooltip or similar for each line/column?
<bwlang> peterhellberg: i can identify the regions of interest pretty reliably now, i just need to hover over the various features to get more information.
maesbn has quit [Remote host closed the connection]
<bwlang> peterhellberg: yeah - tooltip style...
ananthakumaran1 has joined #ruby
rutkla has quit [Ping timeout: 244 seconds]
theRoUS has quit [Ping timeout: 248 seconds]
<bwlang> i'd like to do this on the server. rather than encode the regions, but i'll do that if the svg idea doesn't pan out. I like the svg idea because those images could be reused in other contexts without having to interpret the json blob
<seanstickle> Wow, please tell me the images are higher quality than that
<bwlang> seanstickle: that's the low res...
<seanstickle> You don't say
ananthakumaran has quit [Ping timeout: 265 seconds]
<bwlang> seanstickle: they're generated from an signal trace actually - so i can build pretty much any resolution.
Progster has quit [Ping timeout: 260 seconds]
jonnn_ has left #ruby ["Textual IRC Client: http://www.textualapp.com/"]
ckrailo has joined #ruby
<codora> good morning, rubyists!
yeggeps_ has joined #ruby
<hoelzro> morning
<codora> morning, hoelzro
<shevy> die
<shevy> oops
<shevy> wrong channel
yeggeps has quit [Read error: Connection reset by peer]
<shevy> hi codora
* codora hugs shevy
<codora> hai :D
<shevy> oh you write hai, like vectorshelve
<codora> yes, yes i do.
<codora> i dont know how vectorshelve is though.
<codora> *who
Synthead has joined #ruby
<codora> so shevy, today is a good day to learn ruby! i'm all excited!
<peterhellberg> See you guys later
<ccooke> It is always a good day to learn ruby
<ccooke> *
peterhellberg has quit [Remote host closed the connection]
TPFC-SYSTEM has left #ruby [#ruby]
<shevy> codora, vectorshelve is some ruby on rails guys from india
<shevy> *guy
<ccooke> * Except possibly several hours into a session learning python
<shevy> which python version
cokanut has joined #ruby
Husel has quit [Quit: Leaving]
havenn has joined #ruby
quazimodo has joined #ruby
kaiwren_ has joined #ruby
[diecast]_ has quit [Changing host]
[diecast]_ has joined #ruby
[diecast]_ has joined #ruby
[diecast]_ is now known as [diecast]
<TorpedoSkyline> Anyone in here use Sublime Text 2?
davidcelis has quit [Quit: K-Lined.]
<Hanmac> no we use better OS
chitradeep has quit [Quit: chitradeep]
<codora> what is sublime text 2?
<TorpedoSkyline> shad dap Hanmac =P
<TorpedoSkyline> It's a pretty popular text editor. I'm wondering if anyone has gotten Ruby syntax detection to work in it.
* Hanmac is an ubuntuist
chitradeep has joined #ruby
* codora pets Hanmac
<TorpedoSkyline> Hanmac, ST2 is on Ubuntu.
<JonnieCache> i use it
<JonnieCache> ruby works just fine
<fearoffish> codora: the bestestest most awesomestest text editor there is
<JonnieCache> the whole thing is a dream really
<JonnieCache> i love it
<fearoffish> it's text mate, on steroids, for all OS's
<TorpedoSkyline> JonnieCache, pure Ruby isn't in the syntax list.
<codora> fearoffish: i have never heard of it until now. checking it out.
chitradeep has left #ruby [#ruby]
<TorpedoSkyline> R is, and so it RoR.
kaiwren has quit [Ping timeout: 252 seconds]
kaiwren_ is now known as kaiwren
<TorpedoSkyline> But not just Ruby.
<JonnieCache> TorpedoSkyline: maybe thats an mistake
cek has quit [Ping timeout: 256 seconds]
<Muz> It's non-Free.
<TorpedoSkyline> codora, it's ok. I'm probably going to go with Chocolat because it works better with Ruby.
<codora> oh.
cokanut has quit [Ping timeout: 268 seconds]
<TorpedoSkyline> JonnieCache, when you open a .rb file everything looks good?
<TorpedoSkyline> codora, http://chocolatapp.com/
kaiwren has quit [Read error: Connection reset by peer]
kaiwren_ has joined #ruby
<fearoffish> TorpedoSkyline: it works with 99% of text mate plugins, so Rubysyntax is easy to get going
<JonnieCache> TorpedoSkyline: i use it for ruby coding all day every day
<JonnieCache> well not the weekend
<TorpedoSkyline> I'm not seeing how you guys are getting it to run right though… =\
verto is now known as verto|off
<fearoffish> in what way?
<codora> TorpedoSkyline: a mac user? interesting.
<TorpedoSkyline> codora, that's all I use.
<codora> TorpedoSkyline: i'm pleased you have the money for that :P
<TorpedoSkyline> fearoffish, getting it to auto detect Ruby syntax. I might have figured something out.. sec.
* codora grins.
rodj has quit [Quit: Page closed]
<TorpedoSkyline> codora lol. =P
theRoUS has joined #ruby
tk_ has quit [Quit: ばいばい]
<codora> TorpedoSkyline: so, how are you doing this morning?
shevy has quit [Ping timeout: 246 seconds]
<codora> i havent woken up all of the way, yet.
havenn has quit [Remote host closed the connection]
<TorpedoSkyline> codora, hanging in there. Trying to get my editor(s) to work. =P
<TorpedoSkyline> How about you?
<codora> :9
mikepack has joined #ruby
<codora> i'm trying to get steam games working over wine
dpk has joined #ruby
<TorpedoSkyline> lol
sdimkov_ has quit [Read error: Connection reset by peer]
<codora> i recently installed linux mint 13 just for steam games.
<JonnieCache> TorpedoSkyline: once youve done the syntax thing, make sure you get the package manager
<TorpedoSkyline> codora, good luck. I never had a good experience with Wine. =P
<JonnieCache> so you can install stuff like the linter and so on
<TorpedoSkyline> JonnieCache, I have the package manager.
<TorpedoSkyline> JonnieCache, I just can't get the syntax thing. =P
<codora> TorpedoSkyline: steam itself is working fine, and i got various installers working, but nothing really works easily in full screen, and i cant see why not.
Stalkr_ has joined #ruby
<TorpedoSkyline> Meh.
<TorpedoSkyline> I'm probably going to stay with Chocolat.
adelcampo has quit [Quit: adelcampo]
rodj has joined #ruby
specialGuest has joined #ruby
jonathanwallace has quit [Remote host closed the connection]
ringotwo has joined #ruby
<codora> i cant wait for steam to come out natively for linux. i'm going to buy so many games.
monobit has quit []
yeggeps has joined #ruby
yeggeps_ has quit [Read error: Connection reset by peer]
<TorpedoSkyline> codora, that's going to push Linux ahead so far.
<TorpedoSkyline> It'll be AWESOME.
apeiros_ has quit [Remote host closed the connection]
<codora> TorpedoSkyline: i know right??
<JonnieCache> apparently the source engine runs faster under linux than windows
nXqd has quit [Ping timeout: 268 seconds]
<JonnieCache> did you see that article? very cool
<codora> JonnieCache: i'm not surprised!
Stalkr_ has quit [Read error: Connection reset by peer]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
<codora> i AM pleased to hear it. performance nuts like myself will want to switch to linux for extra performance
<TorpedoSkyline> codora, (btw, I don't really have a bunch of money for Macs yet. I was given one, and I'm trying to start a business. So a gain for Linux is a gain for me too. ;P)
<sprink_> games are the only reason I keep windows around
beakerma_ has joined #ruby
<TorpedoSkyline> If this thing dies tomorrow, I'm heading out to get a $350 PC and run Ubuntu on it.
<codora> TorpedoSkyline: fair enough. sprink_: yeah, me too. i hate windows, but most games only work on it.
<Hanmac> i dont need to play games anymore ... i have them in my dreams :P
<workmad3> TorpedoSkyline: heh :) sounds fine... until you realise that then you'll be using Unity
cek has joined #ruby
locriani has joined #ruby
locriani has quit [Changing host]
locriani has joined #ruby
<TorpedoSkyline> GAH workmad3, that's true. Is GNOME 2 still around in any fashion?
<codora> Hanmac: i usually have nightmares. my dreams arent very entertaining.
bglusman has quit [Remote host closed the connection]
<fearoffish> remember, that just because steam will run on linux, doesn't mean all the games will
Squarepy has quit [Read error: Connection reset by peer]
<fearoffish> e.g. it runs on mac, but there are lots of games that don't run on mac
<codora> TorpedoSkyline: linux mint maintains a fork of gnome2 called M-something
Squarepy has joined #ruby
<codora> let me check
jonathanwallace has joined #ruby
<Hanmac> codora: some of my dreams are nightmare, others are superhero like ... and the otherother are like RPG :P
<workmad3> fearoffish: yeah... I was wondering if it would run something like transgamer
<Hanmac> including HUD, inventary and skilltree :P
<JonnieCache> xfce ftw
<codora> MATE
<fearoffish> hmm, maybe
<TorpedoSkyline> ok, cool codora
<workmad3> fearoffish: although that wouldn't let all games run... if they had something like that and then a compatibility rating or similar though, that could be quite cool
<codora> Hanmac: too much time spent in bad places XD i cant have awesome rpg dreams.
beakerman has quit [Ping timeout: 272 seconds]
rachet has left #ruby [#ruby]
andrewhl has quit [Remote host closed the connection]
<codora> workmad3: http://appdb.winehq.org/
* JonnieCache just bought a wii
andrewhl has joined #ruby
<JonnieCache> havent used it yet
<codora> you should hack it and put linux on it.
<codora> it's what i would do with a wii
andrewhl has quit [Read error: Connection reset by peer]
<JonnieCache> im going to be playing zelda, metroid and mario on it
<Synthead> what's the cool ruby console I can make a script drop to? I forget
<JonnieCache> then probably never touching it again
<Synthead> the debugging console
andrewhl has joined #ruby
<JonnieCache> Synthead: pry
theRoUS has quit [Remote host closed the connection]
Squarepy has quit [Changing host]
Squarepy has joined #ruby
<workmad3> JonnieCache: heh :)
<Synthead> JonnieCache: how do I make it happen again? :)
<codora> Synthead: try pry. pry is fun.
<JonnieCache> Synthead: binding.pry
<workmad3> JonnieCache: I have a wii... all I use it for nowadays is the occasional game of guitar hero
savage- has quit [Remote host closed the connection]
<JonnieCache> i HAVE to play the new zelda and metroid. its frankly a travesty that i havent yet. its been years since they came out
adelcampo has joined #ruby
<codora> jonathanwallace: well, after you play zelda, metroid, and mario on it, THEN put linux on it, and use it as a home server :D
<codora> whoops.
geekbri has quit [Remote host closed the connection]
<codora> JonnieCache: t^
<codora> butterfingers.
<TorpedoSkyline> lol
<TorpedoSkyline> I have no idea what I'd do with a Wii,
<Synthead> Pry doesn't seem to be defined and require 'pry' doesn't work
<codora> same thing we do with every device, pinky..
<TorpedoSkyline> I'm more of an XBox person, so I'd want to play Halo 4. XD
shevy2 has joined #ruby
bbttxu has joined #ruby
<codora> they already came out with halo4?
emmanuelux has quit [Ping timeout: 246 seconds]
voodoofish has quit [Ping timeout: 240 seconds]
<deryl> <- PS3 + Modern Warfare 3.. but thats me
<Abbas|> fps is so gay on controller
<Abbas|> mw3+mouse+keyb = real men = win
<codora> deryl: i kindof want to try getting mw3 working over wine, if that's at all possible.
<codora> i'm going to try it!
himsin has joined #ruby
<Muz> "gay". "real men".
* Muz sighs.
<JonnieCache> mw3
<JonnieCache> figures
<Muz> Heh.
<Synthead> codora: how can I drop to pry?
Morkel has quit [Quit: Morkel]
<codora> Synthead: drop a script to pry?
<deryl> no clue. I bought a PS3 about 6 months ago. The only game I play on my MBP (in VMware Fusion *or* native) is Portal II
* JonnieCache is happy camping it up with mario and zelda
mark1 has joined #ruby
<workmad3> JonnieCache: which new zelda?
<Synthead> codora: yeah, I'm trying to drop to a console of the current environment so I can debug things
<workmad3> JonnieCache: there's now 2 on the wii, the latest one is actually pretty new :)
<codora> Synthead: OOOOH.
<workmad3> JonnieCache: and I still need to play both of them... :/
<codora> yeah, okay, i dont know how to do that, but i know what you are talking about.
seanstickle has quit [Quit: seanstickle]
<JonnieCache> the new one. the other one is actually a gamecube game that got delayed so much, it got ported to the wii for launch
<workmad3> Synthead: binding.pry at the point you want it should be the incantation
<JonnieCache> ive played that one
<Synthead> codora: yeah! so all the vars and junk would be defined, etc
<Synthead> workmad3: literally binding.pry?
<workmad3> Synthead: afaik, yes
hemanth has quit [Read error: Connection reset by peer]
<workmad3> Synthead: which is why that was what you were told :P
<Synthead> binding.pry
<Synthead> NoMethodError: undefined method `pry' for #<Binding:0x1a957440>
<Synthead> from (irb):6
<workmad3> Synthead: you do need pry in the bundle if you're using bundler though, btw
hemanth has joined #ruby
<workmad3> Synthead: and if you're in rails, probably pry-rails
<Synthead> just plain ruby atm
<workmad3> Synthead: right... so you've installed the pry gem?
<deryl> pry-doc, pry-nav, pry-rails, pry-stack_explorer, pry-exception_explorer, pry-highlight
<deryl> should be a good solid 'pry' env
axl__ has joined #ruby
<Synthead> workmad3: ahh, there we go :) installing it now
<Hanmac> deryl what about pry-themes ?
eldariof has quit [Ping timeout: 265 seconds]
mahmoudimus has joined #ruby
<deryl> Hanmac: that too if you want. Was just thinking of a good solid baseline core set
mark1 has quit [Client Quit]
<JonnieCache> pry-debugger surely!
<JonnieCache> i think that replaces pry-nacv
kaiwren_ has quit [Quit: kaiwren_]
<JonnieCache> *nav
<Synthead> workmad3: what do I need to require?
<deryl> i'd have to ask banisterfiend. i don't think pry-nav is replaced by pry-debugger
<workmad3> Synthead: don't know... deryl or JonnieCache should know :)
<workmad3> Synthead: I'm still a pretty novice user of pry myself tbh ;)
<Synthead> deryl and JonnieCache: yo guys
axl_ has quit [Ping timeout: 252 seconds]
<JonnieCache> you should just be able to require 'pry'
<deryl> iirc pry-debugger is for integration with 'debugger' gem (replacement for ruby-debug19)
<Synthead> irb(main):006:0> require 'pry'
<Synthead> LoadError: no such file to load -- pry
<Synthead> from (irb):6:in `require'
<Synthead> from (irb):6
axl_ has joined #ruby
<JonnieCache> Synthead: require 'rubygems' first maybe
<deryl> did you add pry to your GEmfile and 'bundle install'?
Clooth has joined #ruby
dr_bob has quit []
<Synthead> JonnieCache: OH YEAH
<JonnieCache> deryl: i think together, they replace the functionality of pry-nav though
<deryl> or install pry manually if not using bundler?
<Synthead> JonnieCache: always forget that!
fbernier has quit [Ping timeout: 245 seconds]
<Synthead> sweeeet, it works now :)
<JonnieCache> Synthead: if you update to the new ruby you wont have to do that
andrewpthorp has quit [Quit: Linkinus - http://linkinus.com]
<JonnieCache> require rubygems i mean
<deryl> JonnieCache: possibly. i'd have to test pry-debugger.
dpk has quit [Quit: Asleep at the keyboard.]
<Synthead> JonnieCache: hah. signs of 1.8 ... *sniff sniff* ... yup, I smell 1.8
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
<JonnieCache> yeah get off 1.9 man. do yourself a favor
<JonnieCache> off 1.8 i mean
baphled has quit [Read error: Operation timed out]
<shevy2> haha
<Synthead> JonnieCache: I agree 110%. Unfortunately, I work as one of a pressured team that "doesn't have time" to do such upgrades
axl__ has quit [Ping timeout: 256 seconds]
<shevy2> freudschian slip there
<Synthead> :p
shevy2 is now known as shevy
cantonic_ has joined #ruby
<deryl> JonnieCache: actually it adds several commands to pry *using* debugger *to* do so
<deryl> step, next, finish, continue, and breakpoints
lesce has joined #ruby
<Hanmac> Synthead and what will be next year? 2013 is the year ruby 1.8 dies
Dreamer3 has quit [Ping timeout: 264 seconds]
und3f has quit [Ping timeout: 246 seconds]
davidcelis has joined #ruby
<lesce> hey all , is there a method for strings that turns it into a hashed string , I know about .hash but I want to specify it's length.
Tomasso has quit [Ping timeout: 256 seconds]
<shevy> what is a "hashed string"
<Synthead> Hanmac: DEEAAAAAAAAAATH, descruction!
<Synthead> Hanmac: DEEAAAAAAAAAAAAAAATH, descruction!
Dreamer3 has joined #ruby
* Synthead 's metal song my buddies improvised
mfcabrera has quit [Quit: This computer has gone to sleep]
<lesce> shevy: a string that has been modified by a hash function
cantonic has quit [Ping timeout: 265 seconds]
cantonic_ is now known as cantonic
<Hanmac> lesce do you mean md5?
benson has joined #ruby
<lesce> Hanmac: I don't think md5 is still supported by ruby
kedare has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
flype has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
geekbri has joined #ruby
hoelzro is now known as hoelzro|away
nu7hatch has joined #ruby
<Hanmac> lesce it is: "Digest::MD5"
quazimodo has quit [Remote host closed the connection]
<workmad3> lesce: all the common secure one-way hashes are in the digest library
axl__ has joined #ruby
adeponte has quit [Remote host closed the connection]
<workmad3> lesce: secure being a bit of a misnomer, but oh well :)
<lesce> Hanmac: thanks , it didn't appear in ruby-doc so I thought it was probably removed :)
verto|off is now known as verto
xorigin has quit [Quit: leaving]
<lesce> workmad3: thanks
axl_ has quit [Ping timeout: 245 seconds]
axl__ is now known as axl_
apeiros_ has joined #ruby
Abbas| has quit [Quit: restart]
Stalkr_ has joined #ruby
robotmay has quit [Remote host closed the connection]
mmokrysz has joined #ruby
catphish_ has joined #ruby
<catphish_> when building ruby, how can i ensure it compiles with openssl?
cokanut has joined #ruby
<Mon_Ouie> I believe it builds it by default *if* the OpenSSL lib is installed and found
<catphish_> that's what i believed
Abbas- has joined #ruby
<catphish_> but on this occasion it's not building it
Abbas- is now known as Abbas5
joast has quit [Quit: Leaving.]
<catphish_> i've installed libssl-dev under ubuntu 12.04
fourlastor has quit [Quit: Sto andando via]
yeggeps has quit [Read error: Connection reset by peer]
Squarepy has quit [Read error: Connection reset by peer]
toofar has joined #ruby
yeggeps has joined #ruby
eywu has joined #ruby
Squarepy has joined #ruby
monobit has joined #ruby
schleppy1 has joined #ruby
macer1 has quit [Quit: No Ping reply in 240 seconds.]
greenysan has quit [Read error: Connection reset by peer]
greenysan1 has joined #ruby
yeggeps has quit [Read error: Connection reset by peer]
geekbri has quit [Ping timeout: 246 seconds]
<shevy> good old ubuntu
yeggeps has joined #ruby
akem has quit [Read error: Connection reset by peer]
macer1 has joined #ruby
yeggeps has quit [Client Quit]
carloslopes has quit [Quit: Leaving.]
<shevy> crippling packages since 2004
<TorpedoSkyline> lol shevy
savage- has joined #ruby
<Hanmac> catphish_ "apt-get build-dep ruby1.9.1"
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
DrShoggoth has joined #ruby
<catphish_> Hanmac: thanks
<catphish_> i don't really want to install all of it, but will cherry pick from that :)
<shevy> good thing Hanmac uses ubuntu
voodoofish has joined #ruby
jonah has joined #ruby
mmokrysz has left #ruby [#ruby]
jonah is now known as Guest62068
Guest62068 is now known as jonahR
<Hanmac> catphish_ it does not install ruby itself only the build-deps
<Hanmac> PS: ruby is a build-dep when building ruby XD
<catphish_> interesting :)
darren has joined #ruby
Abbas5 is now known as Abbas|
<catphish_> im just trying to cherry-pick the openssl dev libs
<catphish_> because i want the resulting ruby to run on a clean ubuntu installation
<Hanmac> when i build something i try to build it with most extendions as possible
berserkr has quit [Quit: Leaving.]
<catphish_> i normally would
<catphish_> but on this occasion i want the opposite
rakm has joined #ruby
<Hanmac> catphish_ the zlib dev is also very important
<catphish_> i want a ruby that has openssl and yaml and that's all :)
<Hanmac> without you cant ddl gems
<catphish_> zlib1g-dev
<catphish_> will try that
chimkan has joined #ruby
mark1 has joined #ruby
<ozzloy> how do i do a GET over https? i see examples of gets and examples of https, but i'm unable to combine them. i know almost nothing of http
jillsmitt_ has quit [Ping timeout: 244 seconds]
<catphish_> net/http is quite complicated to get your head around
jrajav has joined #ruby
maletor has joined #ruby
sdimkov_ has joined #ruby
chimkan has quit [Read error: Connection reset by peer]
enroxorz is now known as bodie
dv_ has quit [Read error: Connection reset by peer]
<shevy> yup
<shevy> that's what people who use ubuntu have to do
bodie is now known as OmarLittle
<shevy> uncripple packages
gilead has quit [Quit: This computer has gone to sleep]
<shevy> it's always fun to find out what name has been given to packages that were castrated
<shevy> you'd think the different distributions would follow a simple scheme, but oh no, they all name things differently
<catphish_> weird, this ruby is building without anything :(
jgrevich has joined #ruby
<catphish_> no zlib, no yaml
<workmad3> catphish_: that's gonna be useful :P
<shevy> as one would expect from a good ubuntu system
<catphish_> even though i keep installing the dev packages
<catphish_> im confused, never had any of these issues on 10.04
<catphish_> there's nothing in the output of ./configure on the subject at all
vectorshelve has joined #ruby
dv_ has joined #ruby
<shevy> could be in config.log
vectorshelve has quit [Client Quit]
<shevy> also, in ext/zlib and ext/openssl, when the makesfiles were generated, you can do "make" and see for the specific error(s)
cakehero has joined #ruby
vectorshelve has joined #ruby
greenysan1 has quit [Read error: Operation timed out]
mfridh has quit [Read error: Operation timed out]
jgrevich has quit [Client Quit]
Squarepy has quit [Changing host]
Squarepy has joined #ruby
<catphish_> when i run make there's no "Failed to configure openssl. It will not be installed."
<catphish_> so maybe it is building
jonahR has quit [Quit: jonahR]
Vert has quit [Ping timeout: 252 seconds]
bradhe has joined #ruby
jgrevich has joined #ruby
schleppy1 has quit [Quit: Leaving.]
arturaz has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby
mark1 has quit [Quit: WeeChat 0.3.8]
vectorshelve has quit [Ping timeout: 245 seconds]
vectorshelve has joined #ruby
y2k has quit [Quit: changing servers]
y2k has joined #ruby
verbad has joined #ruby
<ozzloy> crazed, what if i want to put parameters in the url?
artOfWar has joined #ruby
<ozzloy> crazed, thanks, btw
vectorshelve has quit [Client Quit]
<catphish_> ok... so it turns out i'm just a moron, after installing the libraries i forgot to specify PREFIX= to configure and was testing the wrong version
dekroning has quit [Quit: leaving]
joast has joined #ruby
jimstoik13 has quit [Quit: Leaving]
banisterfiend is now known as banister`dreamla
banister`dreamla is now known as banisterfiend
Araxia has joined #ruby
<ozzloy> https://gist.github.com/3287067 crazed i think this might be what i want
verbad has quit [Client Quit]
<shevy> catphish_ hmm I get another message
<ozzloy> it doesn't error, but idk if it's what i want.
<ozzloy> idk how to check either
randomautomator has joined #ruby
sprite-- has joined #ruby
<shevy> installing default openssl libraries
<shevy> catphish_, what --prefix did you use btw? --prefix=/usr ?
<catphish_> shevy: after installing libssl-dev libyaml-dev and zlib1g-dev it all worked fine
jillsmitt has joined #ruby
<catphish_> my prefix happens to be /opt/appli
ephemerian has quit [Quit: Leaving.]
<catphish_> because this ruby installation is to be kept separate from any other rubies on the system
<shevy> hehe
<shevy> well, good that you got that sorted out!
stef_ has joined #ruby
<catphish_> was just me being stupid
<catphish_> the libs were fine, i was just installing to 2 different places and testing the old build
<catphish_> thanks for the *pointers
lesce has quit [Quit: leaving]
jasonLaster has joined #ruby
chussenot__ has joined #ruby
zodiak has quit [Ping timeout: 248 seconds]
chussenot__ is now known as chussenot
adeponte has joined #ruby
JohnBat26 has quit [Read error: Operation timed out]
kmlawson has joined #ruby
ringotwo has quit [Remote host closed the connection]
chussenot_ has quit [Read error: Operation timed out]
sprite-- has quit [Ping timeout: 245 seconds]
chussenot has quit [Client Quit]
mucker has quit [Quit: leaving]
liluo has quit [Remote host closed the connection]
codezombie has joined #ruby
TPFC-SYSTEM has joined #ruby
fourlastor has joined #ruby
hadees has quit [Quit: hadees]
tiripamwe has joined #ruby
fourlastor has quit [Client Quit]
clocKwize has quit [Quit: clocKwize]
cokanut has quit [Ping timeout: 245 seconds]
bier__ has joined #ruby
bier_ has quit [Ping timeout: 246 seconds]
shadoi has joined #ruby
w0lverine has joined #ruby
ph^ has joined #ruby
tyoc213 has joined #ruby
mrsolo has joined #ruby
Ethan has quit [Ping timeout: 248 seconds]
<tyoc213> Ruby 'ruby-1.9.3-p194' was built using clang - but it's not (fully) supported, expect errors. What type of "errors"?
<Muz> I presume you're using RVM to produce that message? In which case, #rvm may be a better point of call.
Stalkr_ has quit [Read error: Connection reset by peer]
matti has left #ruby ["8-X"]
carloslopes has joined #ruby
mfridh has joined #ruby
jonahR has joined #ruby
apok has joined #ruby
adeponte has quit [Remote host closed the connection]
carloslopes has quit [Client Quit]
matti has joined #ruby
carloslopes has joined #ruby
cj3kim has joined #ruby
shadoi has quit [Quit: Leaving.]
resure has quit [Remote host closed the connection]
jwmann has joined #ruby
wallerdev has joined #ruby
jwmann has quit [Max SendQ exceeded]
jwmann has joined #ruby
hadees has joined #ruby
cj3kim has left #ruby [#ruby]
hadees has quit [Remote host closed the connection]
adeponte has joined #ruby
Ethan has joined #ruby
Ethan has quit [Client Quit]
Ethan has joined #ruby
macmartine has joined #ruby
atmosx has joined #ruby
<atmosx> hello
sdimkov_ has quit [Remote host closed the connection]
yasushi has joined #ruby
ringotwo has joined #ruby
voodoofish has quit [Ping timeout: 248 seconds]
<Gate> hi
stkowski has joined #ruby
resure has joined #ruby
<matti> Hi
<atmosx> hi
elhu has quit [Quit: Computer has gone to sleep.]
<matti> Lo
tiripamwe has quit [Ping timeout: 248 seconds]
cek has quit [Ping timeout: 246 seconds]
BrianJ_ has joined #ruby
tiripamwe has joined #ruby
cek has joined #ruby
cokanut has joined #ruby
nadirvardar has joined #ruby
sdimkov has joined #ruby
sdimkov has left #ruby [#ruby]
brdude has joined #ruby
yasushi has quit [Ping timeout: 244 seconds]
senny has quit [Remote host closed the connection]
Markvilla has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Godslastering has quit [Ping timeout: 246 seconds]
Godslast1ring has joined #ruby
havenn has joined #ruby
khakimov has joined #ruby
atmosx has quit [Quit: Leaving]
<cek> fuck, it even doesn't catch exceptions.
aquaranto has joined #ruby
felipecvo has quit [Quit: leaving]
chrismcg is now known as zz_chrismcg
adamkittelson has joined #ruby
cousine has joined #ruby
kmlawson has quit [Quit: Bye!]
Godslastering has joined #ruby
syamajala has joined #ruby
blazes816 has joined #ruby
tvw has quit [Remote host closed the connection]
Vert has joined #ruby
naz has quit [Read error: Connection reset by peer]
williamcotton has quit [Ping timeout: 252 seconds]
brdude has quit [Ping timeout: 248 seconds]
naz has joined #ruby
<Muz> cek?
williamcotton has joined #ruby
ringotwo has quit [Remote host closed the connection]
hynkle has joined #ruby
ringotwo has joined #ruby
<shevy> Muz!
<Muz> ¿shevy?
<davidcelis> davidcelis!
<shevy> Did I already mention that I love the fact that you finish sentences with '.' on IRC:)
voodoofish has joined #ruby
<Muz> No, I don't think you did.
<apeiros_> shevy otoh finishes his with :)
friskd has joined #ruby
allsystemsarego has joined #ruby
orange_ninja has joined #ruby
sdimkov_ has joined #ruby
thomasfedb has quit [Ping timeout: 246 seconds]
<orange_ninja> q: in IRB, how do you control the formatting of the return values? (for example: in the nokogiri tutorial, the return results of an xpath query have one entry per line)
abra has quit [Ping timeout: 276 seconds]
thomasfedb has joined #ruby
fmcgeough has joined #ruby
jrajav has quit [Quit: The best darkness is strange and surprising]
syamajala has quit [Remote host closed the connection]
<apeiros_> orange_ninja: irb by default uses the .inspect of the return value
<allsystemsarego> Hi, I want to use autotest with test-unit. I have app.rb and app_test.rb and launch autotest but it doesn't pick changes up when I save app.rb - I don't know what I'm doing wrong.
<apeiros_> you can use "; whatever" to temporarily "override" that
<apeiros_> e.g. `a = [*1..10_000]; 0`
Eldariof-ru has joined #ruby
<apeiros_> this will return (and thus print) 0, instead of the large array
sdimkov_ has quit [Client Quit]
<orange_ninja> apeiros: yeah, but I do want the return values though; just wondering how that return information can be formatted in a way that is easy to read
sdimkov_ has joined #ruby
shadoi has joined #ruby
headius has quit [Quit: headius]
<orange_ninja> apeiros: in the nokogiri tutorials, an xpath query has the results returned (one result per line); whereas when I do the same thing, I get a blob of xml data back (non-formatted)
bricker88 has joined #ruby
<apeiros_> orange_ninja: as said, irb uses .inspect of the return value. so either change that or change what is last evaluated
macer1 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<cek> NetBeans!
<orange_ninja> k
<apeiros_> alternatively you can change the method irb uses
apok has quit [Read error: Connection reset by peer]
<apeiros_> not such a good choice IMO, though
apok has joined #ruby
<apeiros_> IRB.conf[:INSPECT_MODE] is the relevant setting
macer1 has joined #ruby
<orange_ninja> aperios_ : cool ty
<apeiros_> orange_ninja: use tab completion for nicks
<apeiros_> less embarrassing :-p
<apeiros_> (no, my nick has nothing to do with apes…)
havenn has quit [Remote host closed the connection]
<orange_ninja> apeiros_ eek ; sry ; thx for the tip :)
SirFunk has quit [Ping timeout: 245 seconds]
<cek> so where are all those netbeans ruby module developers that supposed to be "larger number of people working on plugin"?
Liothen has joined #ruby
<cek> once funding $$ is gone, work is gone
<cek> hooray to opensource
* apeiros_ hands cek a hanky
<cek> just proves how opensource community is incapable when faced with "no money for you" dilemma
<shevy> cek yeah, same what happened to GNOME3. egoistic devs ignored users, fucked up gnome3, got hired away by companies and worked elsewhere. so now gnome is in a state of shit
<cek> gnome was shit.
jgrevich_ has joined #ruby
brianpWins has quit [Quit: brianpWins]
<cek> it's a totally different story. I just can't understand why would anyone in his clear mind would spend his valueable time on something for others for free.
sdimkov_ has quit [Remote host closed the connection]
jgrevich has quit [Ping timeout: 255 seconds]
jgrevich_ is now known as jgrevich
<cek> people in Africa are starving
<Hanmac> cek KDE is not soo much better
xaq has joined #ruby
<apeiros_> cek: are you in all seriousness complaining about people who actually do provide their work for free?
<bricker88> Hi - What is the best (i.e. "correct") way to make the options here available to the instance methods? Set attr_accessor, or mattr_accessor? Or something else? https://gist.github.com/3287624
SirFunk has joined #ruby
ttilley has joined #ruby
fridim_ has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
brdude has joined #ruby
mneorr has joined #ruby
blazes816 has quit [Quit: Leaving]
hltbra has joined #ruby
hltbra has left #ruby ["Leaving..."]
<Hanmac> bricker88 i think you should ask in #rubyonrails
otters has quit [Ping timeout: 246 seconds]
<Hanmac> because ActiveRecord is a spawn of it
kenichi has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
havenn has joined #ruby
mrsolo has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
<bricker88> Hanmac: I know, I usually ask there first if the question involves AR, but I find that room to be full of a lot of people who don't really know Ruby - understandable but questions like this never get answered.
<bricker88> Hanmac: Anyways, I just decided to break each method into its own module and include the methods conditionally, so that works for me for now
jbw has quit [Ping timeout: 246 seconds]
cokanut has quit [Ping timeout: 265 seconds]
ringotwo has quit [Remote host closed the connection]
cokanut has joined #ruby
<Hanmac> yeah one of the ruby princibles ... RinR - "Ruby is not Rails"
<Hanmac> ;P
chussenot has joined #ruby
ringotwo has joined #ruby
fantazo has joined #ruby
ph^ has quit [Remote host closed the connection]
bbttxu has quit [Ping timeout: 248 seconds]
otters has joined #ruby
resure has quit [Remote host closed the connection]
eywu has quit [Quit: Leaving.]
sei has joined #ruby
ph^ has joined #ruby
jonnn has quit [Ping timeout: 246 seconds]
lkba has quit [Ping timeout: 246 seconds]
geekbri has joined #ruby
catphish_ has quit [Quit: Leaving]
mneorr has quit [Quit: Leaving.]
Tomasso has joined #ruby
daniel_hinojosa has joined #ruby
indeterminate has quit [Ping timeout: 256 seconds]
br4ndon has joined #ruby
geekbri has quit [Read error: Connection reset by peer]
coderhut has joined #ruby
geekbri_ has joined #ruby
mascool has joined #ruby
locriani has quit [Remote host closed the connection]
elhu has joined #ruby
OmarLittle is now known as Paul-Atreides
voodoofish430 has joined #ruby
answer_42 has quit [Quit: WeeChat 0.3.8]
baphled has joined #ruby
mneorr has joined #ruby
mneorr has quit [Client Quit]
chimkan_ has joined #ruby
cokanut has quit [Ping timeout: 246 seconds]
br4ndon has quit [Ping timeout: 245 seconds]
geekbri_ has quit [Ping timeout: 246 seconds]
imami|afk is now known as banseljaj
jbw has joined #ruby
geekbri has joined #ruby
jrajav has joined #ruby
Scurvy has quit [Quit: leaving]
kirun has joined #ruby
locriani has joined #ruby
locriani has quit [Changing host]
locriani has joined #ruby
adamkitt_ has joined #ruby
TorpedoSkyline has quit [Quit: Computer has gone to sleep.]
<shevy> cek you want ruby projects to be closed source and sell-only???
deryl has quit [Quit: deryl]
u_u has quit [Read error: Operation timed out]
<cek> shevy, i'm sure that would bring a *working* debugger then
<cek> i don't mind paying $10, and so do you
<shevy> you define my opinion now?
<cek> yes, I was promoted as your representative
<Hanmac> cek & shevy is closed source ruby even possible? ... i thought only as c-ext
<shevy> you live in turkiye don't you cek?
<Hanmac> shevy better than in a turkey :P
chichou has quit [Remote host closed the connection]
<cek> I live directly at Iran nuclear facility
<shevy> Hanmac I find it better to try to be as close to the original sound as possible... i.e. "Beijing" rather than "Peking"
specialGuest has quit [Remote host closed the connection]
<cek> shevy, aren't you a russian spy somehow?
<shevy> or Suomi rather than Finland
adamkittelson has quit [Ping timeout: 240 seconds]
<shevy> cek I like you, but you need to stop using ruby
kvirani has quit [Read error: Connection reset by peer]
<shevy> you won't make a million dollar that way cek
<cek> do you think long term ruby use causes brain cell damage?
kvirani has joined #ruby
fridim_ has quit [Ping timeout: 246 seconds]
<Muz> It's safe to say that from your ramblings, /something/ causes braincell damage.
<cek> well at least that's not piles like in case of objective C usage
jonathanwallace has quit [Remote host closed the connection]
nXqd has joined #ruby
specialGuest has joined #ruby
adelcampo has quit [Quit: Leaving.]
<shevy> cek did you even write any ruby code at all?
<shevy> to have to use "netbeans" for ruby code ...
<cek> no, i'm top manager in indian firm, i only read ruby code, not write it
<cek> neabeans had slick debugging feature, and overall the design of IDE was almost perfect
<cek> then, rubymine came with their russian low prices and historically good coders skillset
ramblex has quit [Ping timeout: 244 seconds]
<cek> neabeans was also totally good for jruby guys, who, I think, hate anything else
<cek> in IDE terms
<Muz> They hate everything else. Including themselves.
chimkan_ has quit [Remote host closed the connection]
felipe_Brz has joined #ruby
chimkan_ has joined #ruby
felipe_Brz has left #ruby [#ruby]
guns has joined #ruby
specialGuest has quit [Changing host]
specialGuest has joined #ruby
<shevy> who'd have known that folks not writing ruby hang out on #ruby
<shevy> must be because of the free beer
<shevy> oh wait
<shevy> PAID beer ...
elhu has quit [Quit: Computer has gone to sleep.]
<matti> shevy
sahilsk has joined #ruby
tiripamwe has quit [Read error: Connection reset by peer]
<sahilsk> Hi, i'm trying to install ruby on my vps but fail. It says "cc1: out of memory allocating 3475308 bytes after a total of 16506880 bytes
<sahilsk> make[2]: *** [ripper.o] Error 1
<sahilsk> .. error
<sahilsk> I tried increasing memory by ulimit -d/m/v to unllimited bu still no luck
i0n has joined #ruby
<cek> sahilsk, talk to your VPS provider about RAM increase
<sahilsk> how can i install ruby?
<cek> or add swap
<Guest83725> sahilsk: your vps needs more ram
<cek> shevy, who would knew that 1.9.2 won't work with rubygems 1.4.2, which in turn is needed to run rails 2.3.2
br4ndon has joined #ruby
specialGuest has quit [Remote host closed the connection]
<sahilsk> cek: Guest i agree. but is there any other way to get around ?
<Guest83725> sahilsk: install ruby through your package manager
<cek> sahilsk, yes, by installing binary package
niklasb_ has joined #ruby
williamcotton has quit [Ping timeout: 256 seconds]
<sahilsk> cek yes.. i'm looking for it
williamcotton has joined #ruby
seanstickle has joined #ruby
u_u has joined #ruby
<shevy> cek you don't use ruby
<shevy> heya matti
<shevy> sahilsk, and you can install smaller programs?
<sahilsk> shevy: yes, i just finished installing and compiling curl
<sahilsk> *libcurl
<shevy> hmm ok so you can install things
shulgin has joined #ruby
<sahilsk> any idea where will i find binaries. I don't see anything near to it on ruby official site
shulgin has left #ruby [#ruby]
Guest89851 is now known as Jackneill
Jackneill has quit [Changing host]
Jackneill has joined #ruby
aguynamedryan_ has joined #ruby
<Hanmac> sahilsk Guest says from your package manager
aguynamedryan_ has quit [Client Quit]
<shevy> sahilsk what does your provider use?
<sahilsk> Hanmac: i've rvmm installed.
<shevy> what is a rvmm
<sahilsk> rvm
rutkla has joined #ruby
<sahilsk> ruby version manager.
<Hanmac> sahilsk thats the wrong way when you have to few ram
bluenemo has quit [Remote host closed the connection]
etank has quit [Ping timeout: 260 seconds]
<sahilsk> then?
<lectrick> Is there some sort of ampersand symbol shortcut for .each{|f| method(f)} ?
<shevy> sahilsk so you dont compile directly? you compile via rvm?
<sahilsk> both ways
<lectrick> so .each{|o| o.meth} : .each(&:meth) :: .each{|o| meth(o)} : ??
<sahilsk> same error coming
<Mon_Ouie> Yeah but I there's not much of a reason to use it, and method(f) is a bad example for it anyway
<Mon_Ouie> With foo(f) it would be &method(:foo)
<banisterfiend> lectrick: method(f) is a no-op :)
cousine has quit [Remote host closed the connection]
<banisterfiend> oh
<sahilsk> memory output : http://www.pasteall.org/34366/c
<banisterfiend> it's a standin
resure has joined #ruby
<davidcelis> lectrick: dont think so
Speed has joined #ruby
Speed has quit [Changing host]
Speed has joined #ruby
moelee has joined #ruby
<lectrick> would be cool if you could auto-arg each element of a collection the same way you can auto-send each element of a collection
<katherinem13> Are Rails specific questions appropriate here, or is there a seperate Rails channel?
havenn has quit [Remote host closed the connection]
<davidcelis> katherinem13: See topic. #rubyonrails
<Mon_Ouie> #rubyonrails
<davidcelis> oh its not in the topic anymore
<jrajav> Topic eh?
<katherinem13> Thanks
<davidcelis> hrm.
<shevy> sahilsk this is odd. I have the same, and even less swap. and ruby compiles fine for me, from source
<shevy> seems like it stucks in ripper.c
<sahilsk> 1.9.1 compiles but it's buggy one so, no use. For > 1.9.1 it shows error
hadees has joined #ruby
<shevy> odd
<shevy> perhaps you found some real, weird bug here, if 1.9.1 compiled for you without error
jaylevit has joined #ruby
jaylevit has quit [Client Quit]
bbttxu has joined #ruby
<sahilsk> so, no luc fo rme
jjbohn is now known as jjbohn|afk
<sahilsk> *luck
cokanut has joined #ruby
MasterIdler has joined #ruby
<Hanmac> shevy i think that maybe 1.9.1 needs a bit less ram to compile then >1.9.1?
jasonLaster has quit [Remote host closed the connection]
<shevy> could make sense, perhaps sahilsk was just unlucky
<shevy> sahilsk, perhaps there are more ways to specify extra ram
<sahilsk> let me trying installing 1.8.x . One doubt. Will my rail 3. 0 app run on it?
<epochwolf> shevy: he's got 2gb of free ram from the looks of that free -m
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
<shevy> "Rails 3.0 requires Ruby 1.8.7 or higher."
<sahilsk> that's nice
<sahilsk> i give it a try
Guest83725 has quit [Quit: leaving]
<shevy> epochwolf, yeah, I have the same, but his ruby does not compile, mine does. something is odd with his provider
<shevy> perhaps some anti-compile protection :P
<epochwolf> shevy: haha, that's possible. Our IT here doesn't allow compilers in production.
eywu has joined #ruby
jaylevitt has quit [Ping timeout: 244 seconds]
<shevy> yeah, I can understand that kind of reasoning
lorandi has joined #ruby
<epochwolf> We have to compile locally and push the binaries to production with scp
<epochwolf> Keeping two copies of redhat in sync manually through an IT department without automation is a bitch
adamkitt_ has quit [Remote host closed the connection]
jgrevich has quit [Read error: Connection reset by peer]
jgrevich has joined #ruby
adamkittelson has joined #ruby
Speed has joined #ruby
Speed has quit [Changing host]
Speed has joined #ruby
tewecske has joined #ruby
jonathanwallace has joined #ruby
niklasb_ has quit [Ping timeout: 252 seconds]
jorge_ has joined #ruby
RichieEvan has joined #ruby
Tomasso has quit [Ping timeout: 248 seconds]
nazty has joined #ruby
nazty has quit [Read error: Connection reset by peer]
Boohbah has joined #ruby
jorge_ has quit [Remote host closed the connection]
reinaldob has joined #ruby
<shevy> hehe
<shevy> cant you use ruby scripts to do that job?
jgrevich has quit [Quit: jgrevich]
reinaldob has left #ruby [#ruby]
jorge_ has joined #ruby
specialGuest has joined #ruby
<epochwolf> shevy: not when we don't have access to production :P
Eldariof-ru has quit [Read error: Connection reset by peer]
Eldariof-ru has joined #ruby
<shevy> hmm
khakimov has quit [Quit: Computer has gone to sleep.]
slux has quit [Remote host closed the connection]
brianpWins has joined #ruby
eightfold has joined #ruby
<eightfold> howdy. i'm getting the dreaded "Gem::Specification#default_executable= is deprecated with no replacement." whatever i try to do with gem
fmcgeough has quit [Quit: fmcgeough]
<eightfold> not even gem update --system works without spitting out this error
coderhut has quit [Ping timeout: 245 seconds]
<shevy> man, #ruby-lang is so low traffic compared to #ruby :(
<Hanmac> shevy ... do you know pidgin? i use it as irc client for this channel ...
<sahilsk> Ok, i've finished installing cum compiling 1.8.7. but patches failed to apply. Hope everything is ok
<eightfold> and gem pristine --all --no-extensions is no worky either
tiripamwe has joined #ruby
<shevy> Hanmac yup, I have pidgin, use it for ICQ. for irc, I use xchat... I am surprised you can use pidgin for IRC
jorge_ has quit [Remote host closed the connection]
<shevy> sahilsk, what kind of patches would you need :P
<shevy> it's the latest ruby 1.8 version?
<shevy> ruby-1.8.7p370.tar.bz2 I think
<Hanmac> shevy i enabled the history for pidgin ... so for this channel too :P
<shevy> hmmm
<Hanmac> currently the log is > 50MiB :P ...
<shevy> how does it look?
<shevy> when you IRC in pidgin
<Hanmac> not so bad
<sahilsk> shevy: i don't know. it mentioned 2 patches. fcuk all... i'mm moving ahead
niklasb_ has joined #ruby
williamcotton_ has joined #ruby
<shevy> hehe
williamcotton has quit [Ping timeout: 276 seconds]
williamcotton_ is now known as williamcotton
i0n has quit [Quit: Lost terminal]
<shevy> Hanmac, this is xchat I use http://i45.tinypic.com/2im87ed.png
<shevy> does pidgin look similar? mostly I only need one simple way for the tabs
<shevy> I couldn't bear weechat or irssi anymore
TomRone has quit [Ping timeout: 248 seconds]
cakehero has joined #ruby
cek has quit [Quit: жопа диридай диридиридай]
TPFC-SYSTEM has quit [Quit: TPFC-SYSTEM]
ramblex has joined #ruby
<sahilsk> shevy, now i fcuked up..
<sahilsk> #gem update --sytem
<sahilsk> ERROR: Loading command: update (LoadError)
<sahilsk> no such file to load -- zlib
<Hanmac> shevy mine does look like this: https://trisquel.info/files/Pidgin_08.png
qwerxy has quit [Ping timeout: 252 seconds]
<Hanmac> sahilsk: you forgot to install the build-deps before you install your ruby
<Hanmac> get more ram and then install an recent ruby version!
seanstickle has quit [Quit: seanstickle]
blazes816 has joined #ruby
Squarepy has quit [Quit: Leaving]
Gab0 has joined #ruby
<shevy> Hanmac, hmm... that seems very small
geekbri has quit [Remote host closed the connection]
geekbri has joined #ruby
<shevy> sahilsk seems like the zlib was not completely installed, probably lack the header files
<shevy> go into ext/zlib and do "make" there
<shevy> it should tell you the error
<sahilsk> ok
<sahilsk> shevy cann i run ruby1.9.3 makefile?
<Hanmac> sahilsk it may interesting for you: ruby1.8 will die next year
<sahilsk> ouchaaa :O
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<shevy> sahilsk you confuse me... you compile 1.8.x and now you want to use 1.9.3 makefile ??????
banisterfiend has quit [Read error: Connection reset by peer]
williamcotton has quit [Ping timeout: 244 seconds]
jjbohn|afk is now known as jjbohn
<sahilsk> sorry about that . Actually, i don't know where to find ruby 1.8.7's ext
<sahilsk> but since i've 1.9.x tar file with me. i can easily find its ext folder and can do make shake
Paul-Atreides has left #ruby ["Leaving"]
<Hanmac> shevy i think the is eigher a noob, or a troll, or an expert that is send to us, to test us
TomRone has joined #ruby
smw has joined #ruby
williamcotton has joined #ruby
<sahilsk> Hanmac: nice one..
<Spooner> Hanmac : Or all three :)
<sahilsk> but am here after trolling on google/yahoo and M$ crap called bing
abra has joined #ruby
niklasb_ has quit [Read error: Operation timed out]
shadda has quit [Excess Flood]
shadda has joined #ruby
<shevy> sahilsk, nah, if you have the source, .tar.bz2 and extract it
<shevy> then you will have the ext/ subdirectory
banisterfiend has joined #ruby
thomasfedb has quit [Ping timeout: 246 seconds]
Goles has joined #ruby
<shevy> I am not sure how you compile... RVM may be different. No idea. I always use the source directly.
<sahilsk> shevy i used rvm , dear
<shevy> yeah
<shevy> it makes people dumber :)
<sahilsk> shevy ..nevermind.. i'll look into that. Thanks for the immense contribution.
<shevy> it must extract it somewhere too, though
thomasfedb has joined #ruby
<shevy> bit odd that you have the ext/ folder for 1.9.x but not for 1.8 ...
scootiepuff has joined #ruby
tyoc213 has quit [Remote host closed the connection]
Axsuul has joined #ruby
TorpedoSkyline has joined #ruby
macmartine has joined #ruby
icy` has quit [Quit: .: adios :.]
abra has quit [Quit: Leaving]
david_julia has joined #ruby
david_julia has left #ruby [#ruby]
david_julia has joined #ruby
Gm4n_ is now known as Gm4n
Gm4n has quit [Changing host]
Gm4n has joined #ruby
jonahR has quit [Quit: jonahR]
_ikke_ has joined #ruby
<david_julia> Hi I was hoping for some advice on how to structure an order history model that keeps track of what user modified certain things about an order when its status changes from pending to confirmed, to shipped to received
<_ikke_> trying to execute rspec, but getting a rather cryptic error: https://gist.github.com/264782b769f36478b6b5 Anyone got a clue what's going wrong?
khakimov has joined #ruby
ananthakumaran1 has quit [Quit: Leaving.]
berserkr has joined #ruby
<Muz> _ikke_: if you run `gem list -l` what do you get?
<Muz> Seems to suggest you don't have all the necessary rspec gems installed.
<Muz> (Run that from the same terminal as the one that you got that error in)
nXqd has quit [Ping timeout: 240 seconds]
uris has quit [Quit: leaving]
<_ikke_> hmm, empty list
<blazes816> david_julia: you could create something like OrderChange (order_id, user_id, field, from, to). then do like OrderChange.create :order_id => 1, :user_id => 2, :field => 'status', :from => 'pending', :to => 'confirmed'
williamcotton_ has joined #ruby
daniel_hinojosa has quit [Ping timeout: 265 seconds]
<blazes816> Or make the Order itself simply a composite of a series of OrderChanges stacked on top of an InitialOrder
maletor has quit [Quit: Computer has gone to sleep.]
<blazes816> probably more work than it's worth for this
<_ikke_> Muz: But when install rspec with gem install rspec, it does install the dependencies
williamcotton has quit [Ping timeout: 240 seconds]
williamcotton_ is now known as williamcotton
<blazes816> but we do a similar thing to store documents and their changes
brdude has quit [Quit: brdude]
lkba has joined #ruby
indeterminate has joined #ruby
paolooo has quit [Ping timeout: 245 seconds]
maletor has joined #ruby
<Muz> _ikke_: are you using rvm or similar? It may be that the terminal you were running rspec in hadn't loaded rvm, and you had installed rspec in a different terminal that had.
w400z has joined #ruby
<_ikke_> Muz: I have just removed rvm
<_ikke_> installed it in a new terminal
sei has quit [Ping timeout: 240 seconds]
<_ikke_> closed and reoped a terminal
<_ikke_> all the same error
<_ikke_> (it = rspec)
<Muz> Re-install rspec in the same terminal as the one you're running rspec from?
<_ikke_> Muz: done that
benson has quit [Remote host closed the connection]
cokanut has left #ruby [#ruby]
<_ikke_> to no prevail
specialGuest has quit []
<Muz> How are you invoking rspec?
specialGuest has joined #ruby
<_ikke_> rspec
specialGuest has quit [Changing host]
specialGuest has joined #ruby
benson has joined #ruby
resure has quit [Remote host closed the connection]
brdude has joined #ruby
bullicon has quit [Quit: Computer has gone to sleep.]
nacengineer has quit [Quit: Leaving.]
nacengineer has joined #ruby
fantazo has quit [Remote host closed the connection]
TomRone has quit [Ping timeout: 268 seconds]
cascalheira has quit [Quit: Leaving...]
burgestrand has joined #ruby
samrose has joined #ruby
w0lverine has quit [Quit: w0lverine]
samrose_ has joined #ruby
samrose_ has quit [Read error: Connection reset by peer]
bwlang has left #ruby [#ruby]
odigity has joined #ruby
<odigity> having some trouble with a bit of metaprogramming: https://gist.github.com/3288728
<odigity> can't figure out how to dynamically generate a class, and access a variable inside the class that was originally passed in to the method that generated the class
<odigity> instead I get this: undefined local variable or method `klass' for StringArray:Class (NameError)
<Mon_Ouie> Use define_method, not def
<Mon_Ouie> def-defined methods don't have access to local variables
khakimov has quit [Quit: Computer has gone to sleep.]
<odigity> oh. never used define_method before, I'll go look it up. thanks for the tip
Jackneill has quit [Quit: Jackneill]
alvaro_o has joined #ruby
yoklov has joined #ruby
<odigity> is there a define_class_method?
e___ has joined #ruby
<banisterfiend> define_singleton_method
<e___> botnet anyone?
notVert has joined #ruby
Vert has quit [Ping timeout: 252 seconds]
sahilsk has left #ruby [#ruby]
guns has quit [Quit: guns]
TomRone has joined #ruby
clocKwize has joined #ruby
clocKwize has quit [Client Quit]
<odigity> woohoo!
williamcotton has quit [Ping timeout: 255 seconds]
williamcotton_ has joined #ruby
BigFatFatty has joined #ruby
<_ikke_> Muz: /home/ikke/.gem/ruby/1.9.1/bin is in my PATH, is that ok?
Lachryma has quit [Quit: Leaving]
havenn has joined #ruby
<Muz> _ikke_: well, it wouldn't find rspec otherwise. :)
monobit is now known as asteve
<_ikke_> ok
hadees has quit [Quit: hadees]
<_ikke_> But I wonder why it can't find the dependencies
specialGuest has quit [Remote host closed the connection]
<Muz> Is the test suite you're trying to run, one you've just written, or one you've cloned from elsewhere?
s1n4 has quit [Quit: leaving]
<_ikke_> Muz: The latter
<Muz> If it's the latter, does it come with any hint as to what version of Ruby, and what version libraries to use? Biggest giveaway would be the presence of a Gemfile.
<_ikke_> there is
<Muz> Ah, in that case, you want to install deps by running `bundle install`
elhu has joined #ruby
<_ikke_> well
<Muz> If bundle isn't found, then install it first, gem install bundler
<_ikke_> a valid.gemspec
specialGuest has joined #ruby
specialGuest has joined #ruby
specialGuest has quit [Changing host]
sepp2k has quit [Quit: Leaving.]
<Muz> They may well expect you to run rspec via Rake, which in turn munges other crap into the runtime stuff...
sepp2k1 has joined #ruby
<_ikke_> Muz: The author said just to run rspec
<_ikke_> And bundler doesn't run either
<_ikke_> So I guess something in my setup is screwed
moshee has quit [Ping timeout: 240 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
moelee has quit [Quit: Leaving.]
mlee has joined #ruby
jonahR has joined #ruby
jeff_sebring has joined #ruby
<_ikke_> gem list doesn't show any gems installed :S
tolland has left #ruby [#ruby]
<Muz> Something is totally boned with your rvm installation methinks.
<_ikke_> Muz: Well, I have uninstalled rvm (rvm implode)
iamjarvo has quit [Quit: Leaving...]
cascalheir has joined #ruby
tastycakeman1 has joined #ruby
deryl has joined #ruby
<asteve> i need a robots.txt parser, can anyone recommend one for finding the sitemap?
CannedCorn has joined #ruby
<davidcelis> _ikke_: Nice
<davidcelis> _ikke_: now install rbenv
hadees has joined #ruby
<tastycakeman1> can someone help me make a screen scraper with hpricot?
cakehero has quit [Quit: Computer has gone to sleep.]
nohonor has quit [Quit: Leaving]
<davidcelis> tastycakeman1: might want to check out Mechanize for that instead
samrose has quit [Ping timeout: 256 seconds]
<tastycakeman1> i thought mechanize is for going in and out
<davidcelis> tastycakeman1: For one, hpricot development has ceased
<tastycakeman1> :(
<tastycakeman1> aww shucks
<jrajav> Sorry guys
<jrajav> Bot still won't be back today
<davidcelis> tastycakeman1: "going in and out"?
<jrajav> Soon I promise
<jrajav> But for now, bai
jrajav has quit [Quit: The best darkness is strange and surprising]
<tastycakeman1> is mechanize to be used with nokogiri?
<davidcelis> tastycakeman1: Nokogiri is a dependency of Mechanize. It handles the parsing and any Mechanize page object is a Nokogiri document
<tastycakeman1> oh got it
<davidcelis> tastycakeman1: Mechanize specifically wraps it in a navigational tool that handles links nicely (and making them clickable by your script)
Ethan has quit [Read error: Connection reset by peer]
<davidcelis> as well as providing other niceties
cczona has joined #ruby
<tastycakeman1> ok i will take a look at some mechanize things first and then come back
<tastycakeman1> thanks
BrianJ_ has quit [Quit: Computer has gone to sleep.]
workmad3 has joined #ruby
cczona has left #ruby [#ruby]
<_ikke_> If I look in .gems/ruby/1.9.1/{bin,gems} I see everything installed, but gem doesn't seem to see any gems installed
johnlcox_ has joined #ruby
cakehero has joined #ruby
burgestrand has quit [Quit: Leaving.]
<_ikke_> Can I just remove the ~/.gem directory?
elhu has quit [Quit: Computer has gone to sleep.]
jlogsdon_ has joined #ruby
chson has joined #ruby
chson has quit [Remote host closed the connection]
<_ikke_> I have two directories
<davidcelis> yes
johnlcox has quit [Ping timeout: 240 seconds]
<_ikke_> ~/.gem/ruby/1.9.1 and /usr/lib/ruby/1.9.1
cascalheir is now known as cascalheira
<odigity> how can I convert a hash to a new hash inline? with an array, I use map, but there doesn't seem to be an equivalent for hashes
<odigity> like if you want to wrap all the values in the hash with decorator classes
chussenot has quit [Quit: chussenot]
khakimov has joined #ruby
jlogsdon has quit [Ping timeout: 244 seconds]
<davidcelis> odigity: hash.inject({}) { |h,(k,v)| # do some shit here }
<davidcelis> though merge also takes a block
<odigity> they all have unintuitive syntax
<odigity> compared to map
<davidcelis> hash.merge(hash) { |k,v| # modify stuff }
w0lverine has joined #ruby
<Mon_Ouie> If you're going to use inject to modify the same object at each iteration, you might as well use #each_with_object
<davidcelis> hash = { :foo => :bar }; hash.merge(hash) { |k,v| v.to_s } # => { :foo => "bar" }
skryking has quit [Quit: Konversation terminated!]
<odigity> specifically what I'm trying to do (in one line) is instantiated a new object of a class derived from hash, and populate it with key/values pairs from a hash given to me, but only after I've wrapped each value in a decorator
mneorr has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
yxhuvud has quit [Ping timeout: 252 seconds]
samrose has joined #ruby
<davidcelis> what do you have right now
BigFatFatty has left #ruby [#ruby]
ThaDick has quit [Quit: I'm outta here!]
Eldariof-ru has quit []
banisterfiend has quit [Remote host closed the connection]
<_ikke_> It looks like ruby doesn't look in the ~/.gem/ruby/1.9.1/gems directory for the gems
banisterfiend has joined #ruby
<davidcelis> i believe ~/.gem/ is some sort of cache
khakimov has quit [Quit: Computer has gone to sleep.]
ctp_ has quit [Quit: Linkinus - http://linkinus.com]
fforbeck has quit [Quit: Leaving]
greenysan has joined #ruby
phinfonet has joined #ruby
<_ikke_> davidcelis: it's just a local install location that doesn't effect other users
<Mon_Ouie> It's also the directory where gems get installed by default
mlee1 has joined #ruby
johnlcox_ has quit [Remote host closed the connection]
<Mon_Ouie> _ikke_: How did you install Ruby?
macer1 has quit [Ping timeout: 252 seconds]
<_ikke_> Mon_Ouie: Via the package manager
<_ikke_> (arch linux)
mlee has quit [Ping timeout: 276 seconds]
theRoUS has quit [Ping timeout: 248 seconds]
<Mon_Ouie> Never had a problem here; what if you explicitly use gem install --no-user-install?
codeFiend has joined #ruby
speciaLG_ has joined #ruby
undersc0re has joined #ruby
danheberden has quit [Excess Flood]
<_ikke_> Mon_Ouie: that does require root, right?
<Mon_Ouie> Yeah
<_ikke_> No improvement
<matti> Sir Mon.
<matti> ;]
<Mon_Ouie> 'alut matti ;)
Godslastering has quit [Disconnected by services]
Godslast1ring is now known as Godslastering
danheberden has joined #ruby
<banisterfiend> matti: can u translate some polish video for me
<banisterfiend> it's quite short
specialGuest has quit [Ping timeout: 246 seconds]
elhu has joined #ruby
<matti> Mon_Ouie: ;]
<matti> banisterfiend: SFW?
<matti> ;d
Godslastering has quit [Quit: leaving]
johnlcox has joined #ruby
Godslastering has joined #ruby
Tulak has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
<matti> banisterfiend: Em. Is this a joke? ;]
<matti> banisterfiend: They mostly mamble and swear a lot.
<banisterfiend> matti: no, i want to know what they're arguing about
<banisterfiend> matti: can u figure out why they're fighting?
<matti> banisterfiend: They don't say why.
cassianoleal has left #ruby [#ruby]
<matti> banisterfiend: There is some other guy shouting at them to move away from the car (white one).
u_u has quit [Ping timeout: 252 seconds]
<matti> banisterfiend: Aside of that, they mainly call themselves names.
asobrasil has left #ruby [#ruby]
<matti> banisterfiend: Where the hell did you dig something like that?
<banisterfiend> matti: reddit.com/r/justiceporn
speciaLG_ has quit []
specialGuest has joined #ruby
specialGuest has quit [Changing host]
specialGuest has joined #ruby
rutkla has quit [Ping timeout: 276 seconds]
jeff_sebring has quit [Quit: Leaving]
<matti> banisterfiend: AH.
<matti> banisterfiend: LOL
<matti> ;D
carloslopes has quit [Quit: Leaving.]
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
Abbas| has quit [Ping timeout: 245 seconds]
verto is now known as verto|off
Abbas5 has joined #ruby
Abbas5 is now known as Abbas-
Abbas- has quit [Changing host]
Abbas- has joined #ruby
Abbas- is now known as Abbas5
havenn has quit [Remote host closed the connection]
<jdiez> hello, I come from a python background and I want to learn ruby: get me excited and/or point me to a tutorial. please. :D
<banisterfiend> jdiez: read the poignant guide
geekbri has quit [Remote host closed the connection]
<jdiez> link?
<tastycakeman1> ok i give up, i need halp
<tastycakeman1> i am trying to just scrape the emails from a page like this
u_u has joined #ruby
asteve has quit []
<tastycakeman1> and i am trying to use mechanize/nokogiri
vlad_starkov has quit [Remote host closed the connection]
jstew has quit [Quit: leaving]
wereHamster has quit [Quit: Lost terminal]
beneggett has joined #ruby
<tastycakeman1> i can do the page = agent.get("url"), but it produces a xml output?
<banisterfiend> jdiez: search yourself :P google for 'whys poignant guide to ruby'
brdude has quit [Quit: brdude]
specialGuest has quit [Remote host closed the connection]
<jdiez> okay, I'm reading poignant guide to ruby but it assumes I'm an idiot
CannedCorn has quit [Quit: Computer has gone to sleep.]
<jdiez> You could say a symbol is a bit easier on the computer. It’s like an antacid. The colon indicates the bubbles trickling up from your computer’s stomach as it digests the symbol. Ah. Sweet, sweet relief.
<jdiez> why can't it explain to me why a symbol is "easier on the computer" than a string?
wereHamster has joined #ruby
Abbas5 is now known as Abbas|
<blazes816> jdiez: everytime you create a string, it's put in memory
<blazes816> so say a character takes 2 bytes, and you create a string @myvar = "foo"
<blazes816> that takes 6 bytes
<blazes816> (aside from ruby overhead and junk)
bricker88 has quit [Quit: Leaving.]
<blazes816> if you do @myothervar = "foo", there's another 6 bytes
<blazes816> and if you keep doing it, it keeps taking another 6 bytes
asteve has joined #ruby
<eam> hm why would a character take two bytes
<blazes816> @myvar = :foo, a symbol is only stored once
beneggett has quit [Client Quit]
<jdiez> hm, okay, I see, python doesn't work that way
<eam> jdiez: python does work that way
<blazes816> eam: given a hypothetical 2 byte encoding
<jdiez> myvar = "foo" and myothervar = "foo" doesn't take 6 bytes in memory
asteve has quit [Client Quit]
<eam> blazes816: yeah I was just wondering if you were a weirdo windows user -- who uses 2 byte encodings? :)
<blazes816> jdiez: not exactly, 6 bytes. you can't easily measure it like you could with a C program. but the point is it takes more memory
<eam> jdiez: sure it does
<jdiez> hang on, but really, it doesn't
<banisterfiend> jdiez: buy a book
<blazes816> jdiez: in python, a = "foo"; b = "foo" takes more memory than a = "foo"
<banisterfiend> jdiez: get the book 'the ruby programming language'
<banisterfiend> jdiez: and sit down and read it :)
beneggett has joined #ruby
<eam> jdiez: it does. You are creating two strings
<banisterfiend> jdiez: rather than scrounging together knowledge from various internet tutorials and irc channels
<jdiez> blazes816, yes, but less than if it would store 6 bytes
jorge_ has joined #ruby
<jdiez> hang on guys, I'm trying to find a post
<jdiez> it explains that python assigns "labels" to objects
<jdiez> 1 sec
bothra has quit [Ping timeout: 245 seconds]
johnlcox_ has joined #ruby
<blazes816> eam: UTF-16 uses 2 bytes
<eam> blazes816: right
<eam> blazes816: which is why I asked if you were a windows guy
<eam> no one else uses it, windows uses it everywhere
williamcotton_ has quit [Quit: williamcotton_]
<eam> (almost no one else)
<blazes816> ah, sorry, I missed that
<blazes816> definitely, not, I just picked it
specialGuest has joined #ruby
<blazes816> minus the first comma
notVert has quit [Ping timeout: 252 seconds]
<apeiros_> doesn't java use utf-16 pervasively too?
<jdiez> see? it really doesn't create two equal strings
<apeiros_> or is that a thing of the past?
Araxia has quit [Ping timeout: 265 seconds]
workmad3 has joined #ruby
johnlcox has quit [Ping timeout: 276 seconds]
sailias has quit [Ping timeout: 276 seconds]
beneggett has quit [Client Quit]
<blazes816> jdiez: strings and integers work differently; integers are essentially immutable singletons
<blazes816> jdiez: now, I believe in ruby if you dup a string, it will just use a pointer to the same string until it's mutated, but I could be smoking crack
<blazes816> i think I read that somewhere though
<jdiez> yes, that's what I think python does
<jdiez> exactly
<eam> jdiez: various implementations may do many different things under the hood, but that's not really relevant
<eam> the reason you want to use symbols instead of strings is that a symbol is essentially an enumerated type
<jdiez> which means?¡
<eam> well, pretend it's a native integer type
<eam> or a native pointer type
<eam> right?
<eam> implementation doesn't matter much
<Mon_Ouie> blazes816: For the record, that technique is called Copy-on-write
<eam> but a string -- when you use a string, the entire string has to be examined to determine what it contains
<jdiez> oh, okay, so it's like an enum
<jdiez> silly me
<blazes816> Mon_Ouie: merci
<eam> so it's an o(n) operation on the length of the string
Morkel has joined #ruby
<eam> the memory details are kind of important, but also kind of a red herring
awarner has quit [Read error: Connection reset by peer]
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
tommyvyo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
awarner has joined #ruby
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Vert has joined #ruby
jorge_ has quit [Remote host closed the connection]
jorge_ has joined #ruby
jonahR has quit [Quit: jonahR]
<david_julia> Hey guys, I'm trying to get this existing rails project up and running, but some of the rspec tests (which I'm told pass on the other guys' development machines) are failing with the error "ActionView::Template::Error: No route matches {}"
<david_julia> I'm not quite sure why this is happening… if anyone could provide some insight I'd be super happy!
<shevy> david_julia hmm the rails guys are on #rubyonrails
<shevy> most folks here are rails-incompetent
<david_julia> ahh thanks for the tip :)
<shevy> I for instance could not help, because I dont know rails... but it's on my todo list (some day hehe)
internet_user has quit [Remote host closed the connection]
elhu has quit [Quit: Computer has gone to sleep.]
hynkle has quit [Quit: Computer has gone to sleep.]
havenn has joined #ruby
wangr has quit [Ping timeout: 245 seconds]
fearoffish has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
w400z has quit []
macmartine has joined #ruby
pdtpatrick has joined #ruby
jimeh has quit [Ping timeout: 246 seconds]
Vert has quit [Ping timeout: 252 seconds]
<blazes816> shevy: you should pick up Latin while you're at it
<apeiros_> and greek
<blazes816> heyo!
<shevy> blazes816 nah, I dont waste time learning dead unused languages
Vert has joined #ruby
qwerxy has joined #ruby
<Synthead> arguing semantics, Dir['**/**'].each do |what_should_this_be_called?|
<blazes816> block variable?
<shevy> Synthead usually, the shorter the better
<apeiros_> Synthead: use glob do
<shevy> Synthead, I usually end up giving the name "entry" or "item"
<apeiros_> no need to chain 2 methods
<Synthead> can't be 'file', cause it could be a dir. can't be 'dir' cause it could be a file
<apeiros_> Synthead: and it'd be a path
<Muz> "item"
<Synthead> item works :)
<shevy> Synthead, right but it is an array
<apeiros_> so: Dir.glob('**/*') do |path|
<blazes816> oh, haha. I though you mean the syntactical element name
<Synthead> haha
<Synthead> nah, just a good block variable to call it
<shevy> yeah path is good
<Synthead> ooh, path
Morkel has quit [Quit: Morkel]
david_julia has left #ruby [#ruby]
banisterfiend has quit [Remote host closed the connection]
<apeiros_> Synthead: also **/*, not **/**
pskosinski has quit [Ping timeout: 246 seconds]
<Synthead> apeiros_: why?
<apeiros_> because **/** makes no sense
<Synthead> apeiros_: I assumed that, but why doesn't it make sense? :)
<apeiros_> ** means "descend into all directories". if you already descend into all directories, telling ruby to do it again makes no sense.
br4ndon has joined #ruby
<apeiros_> it's like counting to infinity twice.
<Synthead> apeiros_: ahhh, okay. I'll use '**/*', thanks!
<Synthead> haha
<shevy> apeiros_ chuck norris can
<Synthead> 1 2 skip a few
<shevy> lol
<shevy> 3 4 knock on my door
jorge_ has quit [Remote host closed the connection]
mmokrysz has joined #ruby
<Synthead> 5 6 pick up sticks
mmokrysz has left #ruby [#ruby]
daniel_hinojosa has joined #ruby
<shevy> 7 8 EXTERMINATE
<Synthead> is it bad that I envision scripts whenever I see a pattern these days? :p
<Synthead> 9 10 and then...
<shevy> no it's good
<shevy> it means your brain is trying to think
<Synthead> hah, good point :)
<shevy> you can hop from pattern to pattern to pattern and eventually something new will emerge
<shevy> if you do it long enough, you'll end up at points no other human has (yet) reached
<shevy> and these can be the really cool ideas
<Synthead> sometimes I feel like I'm writing Myst books when I write code
<blazes816> unless it's all a giant fractal
<shevy> (implementing them can be difficult... I had a great idea 5 years ago and still dont know how to realize it)
<Synthead> hah, awesome
graspee has quit [Quit: leaving]
Maniacal has joined #ruby
linoj has quit [Ping timeout: 244 seconds]
Vert has quit [Ping timeout: 252 seconds]
blacktulip has quit [Remote host closed the connection]
Tomasso has joined #ruby
Vert has joined #ruby
w400z has joined #ruby
mfcabrera has joined #ruby
thone_ has joined #ruby
joshman_ has quit [Read error: Operation timed out]
jorge_ has joined #ruby
axl_ has quit [Quit: axl_]
justsee has joined #ruby
JustinCampbell has quit [Remote host closed the connection]
w0lverine has quit [Quit: w0lverine]
hynkle has joined #ruby
thone has quit [Ping timeout: 276 seconds]
rakunHo has joined #ruby
johnlcox_ has quit [Remote host closed the connection]
jrist is now known as jrist-afk
pskosinski has joined #ruby
zeen has quit [Ping timeout: 265 seconds]
nu7hatch has left #ruby [#ruby]
<tastycakeman1> does anyone here have expereicen with mechanize?
sdwrage has joined #ruby
<davidcelis> hello again
<tastycakeman1> !
paval has joined #ruby
<tastycakeman1> i am entirely lost and confuse
<davidcelis> why
<davidcelis> the documentation/tutorials make it pretty easy
<Muz> What are you doing? What do you expect? What do you get?
chimkan_ has quit [Quit: chimkan_]
<Muz> ¡asktoask etc.
<tastycakeman1> i am trying to pull the links inside some <a href>s on a page
helpa has joined #ruby
<tastycakeman1> i can get page = agent.get('url')
<davidcelis> !ask
<helpa> How to ask good questions and get great answers: http://www.mikeash.com/getting_answers.html
helpa has left #ruby [#ruby]
<tastycakeman1> but am confused on how to continue
samrose has quit [Quit: Ex-Chat]
<tastycakeman1> my example page is this: http://www.aa.washington.edu/people/fellows.html
<davidcelis> tastycakeman1: have you read the documentation? it goes over how to get links and follow them
<tastycakeman1> and i am just trying to pull the links
<tastycakeman1> and i am confused reading this: http://mechanize.rubyforge.org/Mechanize/Page/Link.html
<davidcelis> I mean my god sir
<davidcelis> it's right on the guide
<davidcelis> the README points right to the guide
<davidcelis> right to it!
<davidcelis> and the second section is on links
<Muz> See Rubyforge and the my_page.links code block.
<Muz> Should be enough to figure it out.
<Muz> Hint: Calling .href on a link will give you the href property if that's what you wanted.
<tastycakeman1> ok, i am still confused but going back to the documentation!
<Muz> tastycakeman1: at the very least, try writing some code. If it doesn't work, paste what you wrote onto pastie.org and we can take a look.
<Muz> We can give you pointers, but we're not here to do your legwork. :)
<tastycakeman1> i tried playing with some examples in irb, but i am confused what is nokogiri and what is mechanize
<Muz> You'll learn quicker, and more, by trying. It's not like playing about is going to blow up your computer or worse...
<Muz> Mechanize is the HTTP client, it does HTTP requests and returns the response etc.
rodj has quit [Quit: Page closed]
<Muz> Nokogiri is a class that can parse HTML or XML items, and provide easy and neat accessors to items in the data.
<shevy> tastycakeman1 it's XML parsing crap
<Muz> So, you could fetch a page with Mechanize, and pass the returned HTML into Nokogiri and play about with it there.
<shevy> tastycakeman1 I recommend to you to not waste your time with anything XML related
<tastycakeman1> so the parsing bits i should be using nokogiri?
<tastycakeman1> yeah thats waht i was confused about
<tastycakeman1> and reading up on nokogiri
<Muz> tastycakeman1: you can do. It's just a bit more heavyweight that the HTML parsing that Mechanize revveals to you.
Vert has quit [Ping timeout: 252 seconds]
<Muz> By the sounds of it, you don't need Nokogiri for this task, it's just needlessly complex given Mechanize does exactly what you described you wanted.
beneggett has joined #ruby
brdude has joined #ruby
<tastycakeman1> ok, mechanize should be enough then
specialGuest has quit [Remote host closed the connection]
<Muz> Yup.
Vert has joined #ruby
andrewhl_ has joined #ruby
<tastycakeman1> wait, so nokogiri is a class in mechanize?
sgronblom has quit [Ping timeout: 265 seconds]
<Muz> It's an entirely seperate gem.
johnlcox has joined #ruby
<Muz> Mechanize depends on it, because it uses it for HTML parsing iirc.
Majost has joined #ruby
<tastycakeman1> but i can do parsing without requiring nokogiri
[Neurotic] has joined #ruby
<Muz> So, Mechanize fetches the page, parses the HTML returned with Nokogiri, and creaes Mechanize::Page items etc with accessors that Mechanize provides
<tastycakeman1> oh man, ok im going to stop asking questions...
<Muz> Going back to Nokogiri lets you do things beyond the basic stufff Nokogiri surfaces
VegetableSpoon has joined #ruby
andrewhl has quit [Ping timeout: 245 seconds]
<Majost> when raising an exception, can I used the printf notation to insert values of variables into the printed message?
johnlcox has quit [Remote host closed the connection]
<shevy> Majost yes
<tastycakeman1> how does mechanize tell the mechanize::page items apart?
kvirani has quit [Remote host closed the connection]
<shevy> Majost you must use formatting rules. example: sprintf("%1$*2$s %2$d %1$s", "hello", 8) # => " hello 8 hello"
<shevy> hmm was a bit complicated
<shevy> Majost, this is easier to understand:
<shevy> sprintf("%-20s %s","foo","bar") # => "foo bar"
<shevy> printf("%-20s %s","foo","bar")
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
axl_ has joined #ruby
<Majost> shevy: is the syntax like this: raise error ('Some value is: %i' , someInt)
alanp_ has joined #ruby
balki_ has joined #ruby
alanp_ has quit [Read error: Connection reset by peer]
<shevy> you should first raise properly
dangerousdave has quit [Quit: Leaving...]
alanp_ has joined #ruby
balki_ has joined #ruby
workmad3 has quit [Ping timeout: 268 seconds]
<shevy> int = 5; raise sprintf('Some value is: %i', int)
<shevy> RuntimeError: Some value is: 5
<shevy> from (irb):6
<shevy> from /System/Executables/irb:12:in `<main>'
nwest has quit [Quit: Computer has gone to sleep.]
<shevy> but for such a simple example you really dont need sprintf
<shevy> int = 5; raise sprintf("Some value is: ${int}")
lae is now known as clowns
<shevy> oops
<shevy> int = 5; raise "Some value is: "+int.to_s
clowns is now known as lae
codeFiend has quit [Ping timeout: 246 seconds]
bbttxu has quit [Quit: bbttxu]
khakimov has joined #ruby
johnlcox has joined #ruby
Bonkers has joined #ruby
balki has quit [Ping timeout: 276 seconds]
paval has quit [Ping timeout: 246 seconds]
davidcelis has quit [Quit: K-Lined.]
alanp has quit [Ping timeout: 276 seconds]
<Spooner> Majost: Yeah, we usually don't need sprintf, since we have raise "it all went #{fubar}"
<Spooner> But if we do, we generally use the shorthand: "It all went %s at level %s" % [fubar, level]
baphled has quit [Ping timeout: 252 seconds]
banseljaj is now known as imami|afk
Banistergalaxy has joined #ruby
<shevy> why do you write fubar
<shevy> is this an UK thing?
<apeiros_> fubar is fucked up beyond all repair
<apeiros_> Spooner: for multi-values I prefer sprintf actually. I only use String#% with single values (or hashes)
jlogsdon_ has quit [Remote host closed the connection]
jlogsdon has joined #ruby
tommyvyo has joined #ruby
himsin has quit [Quit: Leaving]
<Spooner> Fair enough.
fullofcaffeine_ has joined #ruby
ProLoser|Work has joined #ruby
qwerxy has quit [Quit: offski]
<ProLoser|Work> anyone here use livereload?
<ProLoser|Work> for some reason it's ignoring my config.rb for sass/compass
Goles has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
MasterIdler_ has joined #ruby
MasterIdler_ has quit [Client Quit]
workmad3 has joined #ruby
atmosx has joined #ruby
Goles has joined #ruby
verto|off is now known as verto
Araxia has joined #ruby
stopbit has quit [Quit: Leaving]
RudyValencia has quit [Ping timeout: 252 seconds]
chrisbolton_ has quit [Quit: chrisbolton_]
zemanel has quit [Quit: Remote hottie closed the connection]
MasterIdler has quit [Ping timeout: 246 seconds]
Goles has quit [Client Quit]
flint_ has joined #ruby
flint has quit [Ping timeout: 244 seconds]
dpk has joined #ruby
workmad3 has quit [Ping timeout: 268 seconds]
fascik has joined #ruby
tiripamwe has quit [Ping timeout: 240 seconds]
codezombie has quit [Quit: Linkinus - http://linkinus.com]
iamjarvo has joined #ruby
tewecske has quit [Quit: Leaving.]
fastred has quit [Ping timeout: 265 seconds]
fascik is now known as fastred
fridim_ has joined #ruby
TorpedoSkyline has quit [Quit: Computer has gone to sleep.]
specialGuest has joined #ruby
specialGuest has quit [Changing host]
specialGuest has joined #ruby
Divinite has joined #ruby
Divinite has quit [Remote host closed the connection]
Divinite has joined #ruby
banisterfiend has joined #ruby
manizzle has quit [Remote host closed the connection]
awarner has quit [Remote host closed the connection]
manizzle has joined #ruby
jorge_ has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 245 seconds]
phinfonet has quit [Quit: phinfonet]
apeiros_ has quit [Remote host closed the connection]
jorge_ has joined #ruby
beneggett has quit [Ping timeout: 246 seconds]
justsee is now known as justsee|away
andrewhl_ has quit [Remote host closed the connection]
ramblex has quit [Quit: ramblex]
DrShoggoth has quit [Quit: Leaving]
jlogsdon has quit [Remote host closed the connection]
sdwrage has quit [Quit: geekli.st/programmer]
macmartine has quit [Quit: Computer has gone to sleep.]
uris has joined #ruby
daniel_hinojosa has quit [Ping timeout: 246 seconds]
verto is now known as verto|off
johnlcox has quit [Remote host closed the connection]
jonathanwallace has quit [Remote host closed the connection]
johnlcox has joined #ruby
jonathanwallace has joined #ruby
VegetableSpoon has quit [Quit: Leaving]
ryanRT has quit [Quit: Ex-Chat]
sgronblom has joined #ruby
meoblast001 has joined #ruby
allsystemsarego has quit [Quit: Leaving]
Divinite has quit [Ping timeout: 240 seconds]
xiphiasx_ has quit [Quit: migrating elsewhere]
jonathanwallace has quit [Ping timeout: 256 seconds]
sailias has joined #ruby
daniel_hinojosa has joined #ruby
verto|off is now known as verto
kvirani has joined #ruby
kvirani has quit [Remote host closed the connection]
xiphiasx_ has joined #ruby
xiphiasx_ has quit [Changing host]
xiphiasx_ has joined #ruby
stephenjudkins has joined #ruby
tiripamwe has joined #ruby
<meoblast001> hi. i have a question that hopefully doesn't create some kind of flame war.. i've started learning Ruby recently, and i've noticed, like Python, it has a language-wide "standard"/"guideline" for all projects following this standard
<meoblast001> i come from a background of doing C/C++/Java and i've always just used project-wide standards.. my own standards for my own projects, and if i join someone else's project, i conform to their standards
<havenn> meoblast001: Conform! https://github.com/styleguide/ruby/
<meoblast001> in Python i've done the same (i ignored the Python language guidelines and adopted my own), but as i've payed attention to a lot of the Ruby community, if you don't follow the language-wide guidelines, you're treated as an outcast and are generally shunned
undersc0re has quit [Quit: *poof*]
specialGuest has quit [Remote host closed the connection]
<meoblast001> my point exactly
Ethan has joined #ruby
<meoblast001> anyways. how strong is this attitude really among the Ruby community? do developers avoid projects that do not follow the language-wide standards? is it something i should really worry much about?
andrewhl has joined #ruby
hynkle has quit [Quit: Computer has gone to sleep.]
justsee|away is now known as justsee
fridim_ has quit [Ping timeout: 246 seconds]
beneggett has joined #ruby
pskosinski has quit [Ping timeout: 248 seconds]
jorge_ has quit [Remote host closed the connection]
beneggett has quit [Client Quit]
SCommette has quit [Quit: SCommette]
<havenn> meoblast001: I highly recommend following conventions such as soft-tabs with a two-space indent. Whether or not you use an explicit return or avoid parens on methods is more of a trifle.
stkowski has quit [Quit: stkowski]
fastred has quit [Quit: fastred]
<meoblast001> havenn: what primary benefit is there in adopting a language-wide standard instead of a per-project standard?
<meoblast001> many editors now have ways to customize standards per-project
<havenn> meoblast001: It is an aesthetic agreement amongst Rubyists. Single-spaced or eight-spaced code is just visually offensive.
<havenn> meoblast001: Most editors will 2-space Ruby out of the box.
<meoblast001> hm. and for the HTML and Javascript in my project?
ProLoser|Work has left #ruby [#ruby]
Wizek has quit [Ping timeout: 246 seconds]
<meoblast001> and hypothetically speaking, what if i also included a language with another language-wide standard?
<meoblast001> would i then implement multiple coding standards within my own project? one for each language?
nari has joined #ruby
<meoblast001> (side note: 1-space nad 8-space are not a problem for my previous standard. i used tabs. they grow as large as i want them to)
<havenn> meoblast001: For languages with a convention of its own, I'd always defer to that. When there isn't a strong convention, like with HTML or CoffeeScript IMHO, I go with 2-spaces.
<havenn> For a language with**
<havenn> meoblast001: Rubyists are much more likely to use a text editor rather than a full-fledged IDE.
<meoblast001> i don't use a full-fledged IDE, but my text editor has at least a few "project"-like capabilities
w400z has quit [Quit: Computer has gone to sleep.]
<meoblast001> anyways.. this is where things get interesting... historically i've used tabs, and now i'd be adopting spaces. tabs and spaces in one project? that sounds like a disaster
<havenn> meoblast001: Text editors treat tabs so wildly differently that Matz went with spaces not tabs.
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
tobym_ has joined #ruby
<havenn> meoblast001: I've got my editor set to save tabs as spaces.
<meoblast001> yeah, so that returns to my point... having tabs and spaces in one project sounds like a disaster
jrajav has joined #ruby
Progster has joined #ruby
<havenn> meoblast001: never use tabs, problem solved ;)
<meoblast001> i actually think that might be a solution
<meoblast001> in a hopefully-not-insulting way... space users seem more militant and less willing to conform
<meoblast001> so if i use spaces, i can get tab users to conform and not frustrate space users
<havenn> meoblast001: in Sublime Text 2 I set: "translate_tabs_to_spaces": true,
punkrawkR has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
<meoblast001> i've always followed "tabs from the beginning of the line up. spaces after non-whitespace characters".. which i guess makes things interesting
<havenn> meoblast001: Yeah, the purists love those spaces. Militantly sometimes.
<meoblast001> ok, since i'm in a room of all spacists, talk me out of using tabs going forward
<havenn> meoblast001: I use tabs, knowing they are actually two-spaces.
jjbohn has quit [Quit: Leaving...]
<meoblast001> only 2 reasons i use tabs are because text editors give you flexibility over their size, and all text editors treat them as a single whitespace character, not multiple
<havenn> meoblast001: Tabs are an unnecessary headache. NEVER do I lament having my 'tabs' *really* be two-spaces.
<meoblast001> i do in Python
<meoblast001> Python standards are 4 spaces. but _some_ Python code is unreadable if it's not 8
<jrajav> Tabs have never cause a headache for me
<meoblast001> jrajav: you use tabs in Ruby? or only when in other languages?
<jrajav> All?
<jrajav> I've used tabs for pretty much ever, w/ tabwidth 4
<havenn> meoblast001: Yet Google uses 2-spaces in Python. =)
<meoblast001> jrajav: ooh, so you have it save to 4 spaces in the file, and load to tabs in your editor?
<jrajav> No -_-
<jrajav> I would have said that if I meant it
<meoblast001> ooh. nevermind then. i was misinterpreting.
<meoblast001> so using tabs in Ruby... no one has tried to injure and/or isolate your projects yet?
<jrajav> I meant that, if an editor allows me to set the tab width, and most do, I set it to 4
krz has joined #ruby
<jrajav> That configurability is also the main reason I see tabs as preferrable to spaces
<meoblast001> agreed
linoj has joined #ruby
drockna has joined #ruby
<jrajav> You can have consistency and good version control, and everyone can have their own preferences too
<jrajav> Some people like 2-space tabwidths, I think those are bloody insane
<havenn> jrajav: Good point. I set it to 2, so your tabs don't look fine to me. >.>
<drockna> I there a way to do Dynamic Mix-ins?
<jrajav> I also think 8 is a bit much
<meoblast001> some how i feel like i've started a flame war
<jrajav> I'm not flaming anyone :)
<jrajav> What are the main advantages people see to using spaces over tabs?
<meoblast001> although i feel the need to respond to havenn's statement saying that i only use tabs up to the first non-whitespace character
<meoblast001> that's my solution to the problem
<lectrick> I have two model class definitions that depend on each other. I am trying to unit-test them but if I require one it throws an error because the other is not defined yet. How the fuck do I untangle this mess?
<meoblast001> when you need things to "look right", i simply tab up to the current indentation, then use space to finish the job
atmosx has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<jrajav> meoblast001: Are you talking about splitting things like multiple string literals and method calls over multiple lines?
<Spooner> meoblast001 : Which then means the viewer _has_ to have the same tab-space view as you did or it will be messed up. I thought the point was that hard tabs were always ace?
<meoblast001> hm.. method calls, yes.. multiple string literals... sort of
<jrajav> You should always space things that depend on spacing with spaces
<jrajav> I thought that was common sense :P
<jrajav> Tabs vs. spaces debate is just for normal block indentation.. or so I thought
<meoblast001> <tab><tab><tab>this = "blah"\n<tab><tab><tab> "more"
<havenn> Whitespace is neither 'white' nor 'space', discuss...
<meoblast001> havenn: lol
<jrajav> Let's discuss the proper indentation style for Brainfuck
<meoblast001> jrajav: yeah. i tend to not debate about tabs/spaces. i take the conformist "You start the project, you choose. You didn't start the project, you STFU" approach
<jrajav> Oh of course
codeFiend has joined #ruby
<jrajav> Consistency trumps any style debate
<jrajav> ANY
<meoblast001> but the main reason i'm asking is to figure out what reprocusions i could have for starting a project in Ruby with tabs
jjbohn has joined #ruby
bricker88 has joined #ruby
<meoblast001> i don't want to isolate myself and my projects from the world simply because everyone hates tabs
jjang has joined #ruby
mneorr has quit [Ping timeout: 276 seconds]
<bricker88> is there any convention for naming private methods? I know a lot of languages like to start private method names with an underscore
<eam> meoblast001: out of curiosity, why do you use tabs?
<eam> I understand the reason behind using spaces, but not so much with tabs
<banisterfiend> bricker88: none
kpshek has quit []
jjbohn has quit [Client Quit]
<jrajav> eam: I already listed a few....
<eam> sorry, re-reading scrollback
<jrajav> And no one answered when I asked why people use tabs
<jrajav> *spaces
<jrajav> >_>
<eam> oh, configurability?
<jrajav> And consistency
<jrajav> Well, simpler consistency
ckrailo has quit [Quit: Computer has gone to sleep.]
<bricker88> banisterfiend: Is it meant to signify anything when a method does start with an underscore?
baroquebobcat has quit [Quit: baroquebobcat]
<eam> jrajav: I use spaces because the indent level of the code is important. I need it to not change
<meoblast001> eam: reasons for tabs: customizable tab length to suit each programmer's preference, each tab character is treated as one character; reasons for spaces: not all text editors see tabs the same way
<lectrick> The reason why people uses spaces and not tabs is pure consistency with what has become prevailing practice. I don't think Ruby gives a shit, but your fellow coders will. << jrajav
<jrajav> eam: But it's only important to you, right?
<eam> and because tab boundaries aren't always where code needs to be indented (eg, matching paren boundaries after an identifier)
<banisterfiend> bricker88: sometimes ruby methods are like this: __my_method__
moshee has quit [Ping timeout: 276 seconds]
<banisterfiend> bricker88: it's either ruby itself trying to hide very important methods
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
<eam> jrajav: well I require all my engineers to adhere to my coding standards
<banisterfiend> bricker88: or it's people indciating to the user that the method is somewhat critical and a deep implementation detail
<bricker88> banisterfiend: Got it. Thanks!
<banisterfiend> often you see __my_method__ methods in included modules
<eam> I find most tab users tend to mix tabs and spaces, which never ends well
<jrajav> eam: Got it. Fair enough
<eam> because when the tab-stop changes, the space indention is then wrong
<lectrick> jrajav: I would have preferred tabs, since they are more storage-efficient, but consensus has become "two spaces per indent" for much of ruby code
<eam> and if you don't change the tab-stop then there's no reason to use tabs in the first place :)
<meoblast001> well. could an open source ruby project suffer because it uses tabs more than an open source project in, say, C++ because it uses tabs?
<jrajav> For what it's worth, I would *always* prefer a consistent standard in a project, regardless of what that standard is, over having my own way and everyone else having theirs too
<jrajav> That goes for whether I'm leading it or just joining it
johnlcox has quit [Ping timeout: 252 seconds]
<lectrick> jrajav: Quick! Look at the space in a file and tell me whether it's tab or space characters! (does that help answer your question? lol)
<eam> I probalby won't work on a project if they mix tabs and spaces :)
<meoblast001> jrajav: i agree
<jrajav> lectrick: I don't see how that's important in the slightest
emmanuelux has joined #ruby
banisterfiend has quit [Remote host closed the connection]
<meoblast001> jrajav: at my job we have no standard.... it gets ugly sometimes
<jrajav> lectrick: Also, two spaces per indent is a great argument to me FOR using tabs
mneorr has joined #ruby
kirun has quit [Quit: Client exiting]
<eam> meoblast001: put in an SCM hook to reject commits that don't pass coding standards
<lectrick> jrajav: it's important if you're trying to align things with what most editors provide such as command-] and it chokes because some of the lines used tabs and others used spaces
skilcraft has joined #ruby
fowlskdfjs is now known as fowl
<eam> lectrick: also block-indent during refactoring
<meoblast001> eam: well, i'm mainly referring to people rejecting the project
<lectrick> jrajav: paste some code that uses spaces to indent into code that uses tabs to indent.... and have fun pulling your hair out because we are OCD
<jrajav> lectrick: So what you're really saying is a problem is that some coders use tabs and some use spaces
<havenn> I mostly agree with Github's style guides. I don't understand why they don't have a line following 'private', but otherwise I think they pretty much got it right.
<jrajav> Still not an argument that everyone should use spaces
<eam> meoblast001: since you're asking for anecdotes, I would be inclined to reject
artOfWar has quit [Remote host closed the connection]
mneorr has quit [Client Quit]
<lectrick> jrajav: Yes. I'm saying tabs would be perfectly fine... if everyone used tabs consistently. But the consensus has spoken already, and it's spaces. You missed the window to make that argument, basically.
<jrajav> lectrick: By the way, I'm pretty sure I've done exactly that operation in both Sublime and Eclipse and they've both handled it fine
<meoblast001> eam: so i'm best off with spaces then?
<eam> meoblast001: in my opinion, yes
<havenn> ^
<lectrick> jrajav: Not everyone uses Sublime, or Eclipse, or Vim, or Textmate, or Emacs, or....
<eam> I've never seen a tab-user who didn't mix spaces at the end to fix indention against things like foo(
<meoblast001> hm. and then for the Javascript/HTML/etc, i should use spaces too?
<jrajav> eam: That's what you SHOULD do
<eam> and when that's done it negates any benefit of tabs (you can't change their stop)
<meoblast001> and hell.. i guess in this case i might as well start using spaces in C/C++/Java
<lectrick> jrajav: Every editor handles spaces fine though. Terminal editors to GUI editors, I heard even WINDOWS handles spaces fine.
<havenn> tab users often seem more likely to leave trailing whitespace as well >.>
hunglin has quit [Quit: Leaving.]
<jrajav> eam: See my comment earlier about using spaces where the spacing actually matters
hunglin has joined #ruby
<eam> jrajav: right but, do you see what happens when you do that and the tab stop changes?
<jrajav> eam: … Things stay the way they should be?
sailias has quit [Quit: Leaving.]
banisterfiend has joined #ruby
<jrajav> eam: The idea is that before putting the spaces in to align the continuation line, you first tab out to the current indentation
<lectrick> jrajav: You can't save a tab-stop setting to a text file.
<jrajav> You don't need to
<jrajav> lectrick: Also, yes you can in vim ;)
jorge_ has joined #ruby
hynkle has joined #ruby
quest88 has joined #ruby
<meoblast001> havenn: i hate trailing whitespace :<
<eam> jrajav: I think it falls down when you have indention other than purely leading indention
<lectrick> Most editors will let you configure the tab key to just type two (or one, or more) spaces. So you can keep your muscle memory :)
<jrajav> lectrick: And every editor handles spaces fine, but I would say that every editor handles tabs even better
<fowl> >> %%%%%%%
<jrajav> eam: And I disagree.
<eam> jrajav: well, do you use tabs after identifiers as well?
<meoblast001> eam: and that's where my standard saves the say, woo
jorge_ has quit [Remote host closed the connection]
<meoblast001> day*
<jrajav> I don't think I would ever use a tab after the intial indentation on a line, no
<meoblast001> but still.. i'm just confused
<lectrick> meoblast001: I have "remove trailing whitespace on save" on in Sublime, but it sure results in crappy git commits if not everyone had that set from the get-go
<havenn> Tabs are only acceptable if you're coding in Whitepace lang: http://compsoc.dur.ac.uk/whitespace/
beneggett has joined #ruby
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
<meoblast001> lectrick: heh. i agree. i have it set like that for projects i started (and enforce this policy with an iron fist). but at work i do not
drockna has left #ruby [#ruby]
freeayu has joined #ruby
greenysan has quit [Ping timeout: 255 seconds]
<lectrick> Our team is actually considering a giant trailing whitespace removal across the entire codebase as a single commit
<eam> when I managed a large perl project I used an scm commit hook to perltidy all code upon commit with standard style
<meoblast001> heh
<meoblast001> i still feel just as confused as when i joined this channel
subbyyy has joined #ruby
<lectrick> eam: that's kind of dictatorlike lol
<eam> and run whatever language appropriate version of lint exists
<meoblast001> and as a person with anxiety issues and trouble making simple decisions with no obvious correct path....
<jrajav> lectrick: It doesn't really matter if you lump it all in as a single commit; the real problem is that that marks a giant glitch in diffs that cross that commit's "boundary"
<bricker88> How are private and protected methods different if a child class can access its parent class's private methods? https://gist.github.com/3290538 Is it *just* sibling class access?
<jrajav> lectrick: Cluttering them up hopelessly forever
<fowl> >> exit
hunglin has quit [Ping timeout: 256 seconds]
<eam> lectrick: the innocent have nothing to fear ...
<jrajav> lectrick: The main problem with any programmatic style change :/
havenn has quit [Remote host closed the connection]
tayy has joined #ruby
<lectrick> jrajav: yeah, i was afraid of that fallout too
subbyyy has quit [Client Quit]
jonathanwallace has joined #ruby
w0lverine has joined #ruby
subbyyy has joined #ruby
sailias has joined #ruby
AlbireoX has joined #ruby
beneggett has quit [Client Quit]
eywu has quit [Quit: Leaving.]
dpk has quit [Quit: Asleep at the keyboard.]
Goles has joined #ruby
tastycakeman1 has quit [Quit: Leaving]
ryansobol has joined #ruby
<ryansobol> can anyone tell me what kind of string "%016x" is in ruby? v1.8.7 if it matters
Tulak has quit [Quit: Leaving.]
danheberden has quit [Excess Flood]
<fowl> rstring?
danheberden has joined #ruby
<meoblast001> jrajav: so you have used tabs in team projects in ruby and have not experienced any serious problems?
d-best has quit [Quit: Reconnecting]
<jrajav> I haven't had the pleasure of working on any team projects in Ruby
d-snp has joined #ruby
<jrajav> Team projects? Tabs? Yes.
<meoblast001> hm
<meoblast001> sounds like the spaces argument just got stronger >_>
<jrajav> If you're talking about "will people tear you apart for using tabs"?
<jrajav> Well.
<jrajav> We're all nerds here
<jrajav> :P
<meoblast001> nah, that's not my fear at all
<meoblast001> i've just heard people (particularly rubyists) say things like "I will not work on a project that uses tabs"
<fowl> you get shot for using tabs in my hood
<jrajav> ^
<meoblast001> if my project uses tabs, that's very much against my interest
<jrajav> haha
<jrajav> Then use spaces
<meoblast001> then if i want consistency, i use spaces everywhere
<meoblast001> there are no languages that demand tabs, are there?
<jrajav> Most editors make the issue transparent anyway. Like I said, the only real reason I like tabs is configurability; as the project originator, that's not an issue for you
<jrajav> No lol
<jrajav> Whitespace doesn't count
<jrajav> (The language)
Chryson has joined #ruby
<meoblast001> i mean... with a guideline that demands tabs
<jrajav> Not that I know of
<meoblast001> all the languages i've seen with a global guideline say "Spaces or gtfo"
jonahR has joined #ruby
<jrajav> If there is, it deserves some major ostracizing
<jrajav> Yeah, I never understood that
<meoblast001> understood what?
<jrajav> But "global guidelines" are almost always written by a very small group of people
<jrajav> And usually also a highly opinionated one
<meoblast001> arbitrary decisions with no clear answer + anxiety issues
<meoblast001> never a good combination
maletor has quit [Quit: Computer has gone to sleep.]
<jrajav> Just use spaces
banisterfiend has quit [Read error: Connection reset by peer]
<jrajav> Appease the masses
<meoblast001> hm. guess that'll work
maletor has joined #ruby
<eam> can't use tabs with befunge-93
Synthead has quit [Remote host closed the connection]
banisterfiend has joined #ruby
<meoblast001> if i use 4 spaces instead of 2, do people complain?
w400z has joined #ruby
itnomad has joined #ruby
<meoblast001> or at least complain a lot less
sailias has quit [Ping timeout: 246 seconds]
Synthead has joined #ruby
<eam> meoblast001: I've never had anyone complain to me about 4. As Linus famously said, if you've indented far enough for it to be a problem your code sucks anyway
<jrajav> Ha
<jrajav> I'm quoting that
<meoblast001> :D
<jrajav> Ohhhhh Linus
<meoblast001> i did that once in JS
<meoblast001> damn callbacks!
<eam> jrajav: you can get the actual quote here: http://www.kernel.org/doc/Documentation/CodingStyle
<meoblast001> had to move code around to make it stop
Araxia_ has joined #ruby
baroquebobcat has joined #ruby
<Spaceghostc2c> meoblast001: I just suggest you make sure to indent correctly on whitespace relevant languages.
Araxia has quit [Read error: No route to host]
Araxia_ is now known as Araxia
<meoblast001> Spaceghostc2c: define "whitespace relevant"
<meoblast001> and does "4 spaces" count as "correctly" in Ruby?
<jrajav> meoblast001: You realize that you can pass named functions as callbacks?
<meoblast001> despite the standard saying 2
<jrajav> I.E. It's still just as relevant in JS
<meoblast001> jrajav: yes, that's what i changed
Abbas| has quit [Ping timeout: 252 seconds]
<meoblast001> but i had to tweak things because of closure
<jrajav> Good :)
ryansobol has left #ruby [#ruby]
<Spaceghostc2c> meoblast001: Languages where the whitespace actually matters in code execution.
<meoblast001> aah
oohahh1 has joined #ruby
<eam> Spaceghostc2c: you mean like ruby
<Spaceghostc2c> python, coffeescript, etc.
<Spaceghostc2c> eam: Yeah... like ru... wait, no.
<eam> Spaceghostc2c: sure, ruby uses whitespace as line terminators
<meoblast001> i'm almost sold on this "4 spaces" thing
<jrajav> "<tab>" == "<4 spaces>" : false
<Spaceghostc2c> eam: I can one-line everything.
<jrajav> It matters in code execution
<jrajav> ;D
xaq has quit [Remote host closed the connection]
<eam> Spaceghostc2c: eval "1 + 2" vs eval "1 \n + 2"
<Spaceghostc2c> eam: Also, I can split most anything across multiple lines.
<eam> you cannot
<eam> the syntax changes depending on where the linebreak occurs
<Spaceghostc2c> eam: Yes you can.
<eam> you're incorrect and I gave you an example above. Try it
<Spaceghostc2c> eam: Yeah, and you have to include the message with the object.
<Spaceghostc2c> eam: 1. \n +2
<eam> you do, because it's whitespace significant
<eam> that's what the term means
<Spaceghostc2c> Since 1+2 is just 1.+(2)
<eam> C is an example of a non-whitespace significant language, where " " and "\n" can be freely interchanged
<Spaceghostc2c> I think you're stretching the term into something it doesn't mean.
<eam> ruby is not
<eam> Spaceghostc2c: and I think you're confused. Go look it up :)
yoklov has quit [Quit: computer sleeping]
pu22l3r_ has joined #ruby
bothra has joined #ruby
<jrajav> I think for the purposes of the discussion, the only whitespace that matters is from the beginning of the line to the first non-whitespace character
oohahh1 has left #ruby [#ruby]
<jrajav> Of course some modern languages like Ruby and Javascript do things with line breaks, mostly for convenince
Goles has quit [Quit: Computer has gone to sleep.]
<Spaceghostc2c> eam: Pretty sure you're being pedantic. :)
<eam> which makes them whitespace significant. It's what the term means.
<eam> the term existed long before python
<eam> (looong before)
<Spaceghostc2c> Well, don't give a fuck. How's about that? :D
<eam> Spaceghostc2c: you're welcome to your ignorance I guess, but you brought it up, not me
<Spaceghostc2c> eam: Mkay pal!
<Spaceghostc2c> eam: I'd say every language is whitespace significant if it requires whitespace between any single part of the language.