fflush changed the topic of #ruby to: Ruby 1.9.3-p194: http://ruby-lang.org || Paste > 3 lines of text on pastebin.com
<i0n> can you do a gsub on each object in an array without turning it into a string?
bier has joined #ruby
ukd1 has quit [Quit: leaving]
<td123> loop { gets input; puts output } ? :P
akem has quit [Read error: Connection reset by peer]
<heftig> i0n: no.
akem has joined #ruby
tonni has joined #ruby
Vert has joined #ruby
<Gurpartap> i0n: arr.each { |obj| obj.gsub(.., ..) }
<Gurpartap> this?
notVert has quit [Ping timeout: 252 seconds]
<td123> doh, I suck, loop { input = gets ; puts input }
<Gurpartap> and ofcourse build another array off it
macmartine has joined #ruby
<i0n> if you dont clone the array first will the original array get changed as well?
<Gurpartap> i0n: no.
<i0n> im confused a little on what a .dup .clone is and why you need them./
tonni has quit [Remote host closed the connection]
mockra has quit [Remote host closed the connection]
<Gurpartap> i0n: cloning a var allocated separate memory addresses
<i0n> array1 = array2 {blah blah} .. this doesnt change array1?
<Gurpartap> i0n: editing at which won't edit the variable that you cloned from
<Gurpartap> i0n: that of course would change array1
<i0n> err
<i0n> reverse that
beneggett has quit [Quit: Computer has gone to sleep.]
<i0n> array2 = array1 {}
<Gurpartap> that wont change array1
<i0n> oic
<Gurpartap> actually, it depends on which method/function you use on array1
tewecske has quit [Quit: Leaving.]
<Gurpartap> using that with .each probably wont work
<i0n> yea i think thats what i ran into
<i0n> had to use .map
<Gurpartap> unless your {} changes array1, array2 won't change either
sailias has quit [Ping timeout: 246 seconds]
iamjarvo has quit [Quit: Leaving...]
greasegum has joined #ruby
akem has quit [Read error: Connection reset by peer]
cakehero has quit [Quit: Leaving...]
tatsuya has quit [Remote host closed the connection]
akem has joined #ruby
bradhe has joined #ruby
indian has joined #ruby
tatsuya has joined #ruby
iamjarvo has joined #ruby
Tyl3R has joined #ruby
raul782 has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
mockra has joined #ruby
tatsuya has quit [Ping timeout: 272 seconds]
Tyl3R has quit [Quit: EOF]
uris has quit [Quit: leaving]
<bnagy> chessguy: yes
cirwim has quit [Quit: Leaving.]
<bnagy> and it is called... ...
<bnagy> ... crap :(
twock has joined #ruby
<chessguy> funny name for a gem..
indian has quit [Read error: Operation timed out]
<bnagy> Hirb!
denis_ has quit [Quit: Leaving]
bradhe has joined #ruby
undersc0re has joined #ruby
Stalkr_ has joined #ruby
Ethan has quit [Ping timeout: 272 seconds]
ZachBeta has joined #ruby
apok has joined #ruby
apok has quit [Client Quit]
mxweas has joined #ruby
mengu has quit [Read error: Connection reset by peer]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<chessguy> bnagy: sounds interesting, thanks
bradhe has quit [Remote host closed the connection]
mengu_ has joined #ruby
mengu_ has quit [Changing host]
mengu_ has joined #ruby
mengu has quit [Remote host closed the connection]
Stalkr_ has quit [Read error: Connection reset by peer]
vitor-br has joined #ruby
<bnagy> you might want to check highline, too
yxhuvud has quit [Ping timeout: 250 seconds]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
ukd1 has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<bnagy> i0n: what Gurpartap said is kind of 180 degrees from correct
* Gurpartap realized XD
<bnagy> try a=[1,2,3];b=a;a << 4; p b
<bnagy> i0n: which is why you want to dup or clone
<bnagy> although sometimes even that's not enough to protect the original
pskosinski has quit [Quit: I've got a feeling there's a fish in the floor; I'd better squish it or he'll swim out the door; Sometimes they take me for a walk in the sun; I see my fish and I have to run]
blazes816 has joined #ruby
bglusman_ has quit [Read error: Connection reset by peer]
bglusman has joined #ruby
<bnagy> a=["I'M"];b=a.clone;b.map {|s| s << ' IN UR STRINGZ!'};p a
<bnagy> eg
bglusman has quit [Read error: Connection reset by peer]
akem has quit [Read error: Connection reset by peer]
bglusman has joined #ruby
undersc0re has quit [Read error: Connection reset by peer]
undersc0re has joined #ruby
akem has joined #ruby
jarred_ has joined #ruby
<Gurpartap> bnagy: oh oh. i shouldn't have assumed what clone meant :/
<Gurpartap> i0n: bnagy is probably right
jarred has quit [Ping timeout: 250 seconds]
jarred_ is now known as jarred
Apple has joined #ruby
Apple is now known as Guest19109
mahmoudi_ has joined #ruby
denis has joined #ruby
mahmoudimus has quit [Read error: Connection reset by peer]
ghjk has quit [Ping timeout: 272 seconds]
cableray has quit [Quit: cableray]
akem has quit [Ping timeout: 252 seconds]
ZachBeta has quit [Quit: Computer has gone to sleep.]
akem has joined #ruby
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Guest19109 has quit [Read error: Connection reset by peer]
n8ji has joined #ruby
Vert has quit [Ping timeout: 252 seconds]
strife25 has quit [Quit: Computer has gone to sleep.]
akem has quit [Read error: Connection reset by peer]
akem has joined #ruby
jimeh has joined #ruby
fayimora has joined #ruby
raul782 has joined #ruby
gmci has quit [Quit: Computer has gone to sleep.]
raul782 has quit [Remote host closed the connection]
ProT-0-TypE has joined #ruby
ProT-0-TypE has quit [Client Quit]
gmci has joined #ruby
vitorpacheco has joined #ruby
vitor-br has quit [Ping timeout: 272 seconds]
mockra has quit [Remote host closed the connection]
mahmoudi_ has quit [Ping timeout: 244 seconds]
cirwim has joined #ruby
cirwim has left #ruby [#ruby]
brianpWins has quit [Quit: brianpWins]
savage- has joined #ruby
kah_ has quit [Ping timeout: 264 seconds]
gtuckerkellogg has joined #ruby
beakerma_ has joined #ruby
raul782 has joined #ruby
hunglin has joined #ruby
beakerman has quit [Ping timeout: 272 seconds]
mockra has joined #ruby
mxweas has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
<i0n> hmm okay so now i have a weird problem.. array1 = method () { |f| ... } which shows correctly in irb
kah_ has joined #ruby
<i0n> oh hangon
Hanmac has quit [Ping timeout: 240 seconds]
<i0n> ok it shows correctly in irb, but when i try to pass it into my method as a argument the error/debug message shows like its not performing any stuff I ran on the block?
odigity has joined #ruby
mockra has quit [Remote host closed the connection]
Transformer has joined #ruby
Transformer has quit [Excess Flood]
manizzle has quit [Remote host closed the connection]
manizzle has joined #ruby
mengu_ has quit [Remote host closed the connection]
Z_Mass has quit [Quit: Leaving]
sailias has joined #ruby
<chessguy> i0n: that doesn't even parse for me in 1.9.3
<i0n> i had to do it inline with things like collect!
{aaron} has quit [Quit: Leaving]
akem has quit [Read error: Connection reset by peer]
akem has joined #ruby
chimkan_ has joined #ruby
jarred has quit [Ping timeout: 240 seconds]
Speed has quit [Remote host closed the connection]
Stalkr_ has joined #ruby
iamjarvo has quit [Quit: Leaving...]
Nies has quit [Quit: Saliendo]
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Stalkr_ has quit [Ping timeout: 240 seconds]
jarred has joined #ruby
icy` has quit [Quit: .: adios :.]
n8ji has quit [Remote host closed the connection]
syamajala has joined #ruby
nateberkopec has quit [Quit: Leaving...]
greasegum has quit [Ping timeout: 272 seconds]
akem has quit [Read error: Connection reset by peer]
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
Araxia has quit [Quit: Araxia]
mockra has joined #ruby
syamajala has quit [Remote host closed the connection]
greasegum has joined #ruby
mockra has quit [Ping timeout: 244 seconds]
SolarisBoy1 has joined #ruby
<davidokner> I'm trying to understand the syntax to add a class instance variable.
Doobie has quit [Remote host closed the connection]
Doobie has joined #ruby
th3g33k has joined #ruby
<jumpingcloud> davidokner: isn't it @variable_name ?
<davidokner> No, that is an instance variable. I want a class instance variable.
<jumpingcloud> @@variable?
busybox42 has joined #ruby
<jumpingcloud> davidokner: sorry, im new just tryin to give back.
<blazes816> jumpingcloud is right: @@var
<blazes816> daviddokner&
<blazes816> ^
<davidokner> That is a class variable, I'm talking about a third option.
* jumpingcloud walks to book shelf
<blazes816> ? I'm not sure what you mean.
<davidokner> It is like a class variable, but it is not inherited by subclasses.
<blazes816> Class A; end; def A.foo; puts 'foo'; end
<blazes816> ?
yakko has joined #ruby
<ThePicard> Mon_Ouie: haven't done the benches yet, i decided to do a little more reading
<jumpingcloud> davidokner: I'm not certain ruby supports this type of variable.
<davidokner> I don't get it though
radic has quit [Disconnected by services]
akem has quit [Read error: Connection reset by peer]
radic_ has joined #ruby
radic_ is now known as radic
akem has joined #ruby
icy` has joined #ruby
icy` has quit [Changing host]
icy` has joined #ruby
<blazes816> wtf, idk what i was saying with the method thing
<otters> class A; class << self; @var = "foo"; end; end
<davidokner> I have not seen code like that yet.
<jumpingcloud> davidokner: thanks! this is new to me!
* jumpingcloud ragequits! ;) j/k
n8ji has joined #ruby
n8ji has quit [Remote host closed the connection]
jumpingcloud has quit [Ping timeout: 272 seconds]
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
<davidokner> But, I don't understand any of the explinations of the syntax for this type of variable.
Guest___ has joined #ruby
shadoi has joined #ruby
dagnachewa has joined #ruby
mpereira has quit [Ping timeout: 246 seconds]
nedbat has quit [Ping timeout: 244 seconds]
noganex has quit [Read error: Operation timed out]
noganex has joined #ruby
Araxia has joined #ruby
nedbat has joined #ruby
gtuckerkellogg has joined #ruby
<davidokner> I'm reading that article. I didn't find that one before.
shadoi has quit [Quit: Leaving.]
tommyvyo has joined #ruby
reuf has quit [Quit: Leaving]
stefanp_ has joined #ruby
gtuckerkellogg has quit [Client Quit]
gmci has quit [Quit: Computer has gone to sleep.]
stefanp has quit [Ping timeout: 265 seconds]
Guest___ has quit [Ping timeout: 255 seconds]
jarred_ has joined #ruby
greasegum has quit [Quit: Leaving]
shadoi has joined #ruby
jarred has quit [Ping timeout: 272 seconds]
jarred_ is now known as jarred
nedbat has quit [Ping timeout: 276 seconds]
soooga has joined #ruby
hadees has quit [Quit: hadees]
soooga has quit [Max SendQ exceeded]
soooga has joined #ruby
hadees has joined #ruby
chimkan_ has quit [Remote host closed the connection]
<davidokner> Is there such thing as a class method?
chimkan_ has joined #ruby
<davidokner> instead of an instance method? One I just call on the class, without using an instance?
kvirani has joined #ruby
grantbdev has quit [Quit: Leaving]
<davidokner> I could use that class method to return a class variable.
<fowl> no
<fowl> class variables are gay
<fowl> davidokner: what's the difference in Foo.new.doo and Foo.doo ?
<davidokner> I am not using inheritance, so I don't need class instance variables yet.
manizzle has quit [Read error: No route to host]
<fowl> davidokner: class variables are still pretty gay
<davidokner> Because my variable isn't specific to any instance, so it looks confusing to type an instance just to display a class variable that is not specific to that arbitrary instance.
<fowl> davidokner: by using class variables you are saying "Hey word, dont bother trying to subclass or extend this in any way, because it's gay!"
<fowl> hey world*
<davidokner> Oh, Ok.
<davidokner> So it might get extended.
<davidokner> And you don't want to prevent that
<fowl> i dont understand your aversion to class instance vars
shadoi has quit [Quit: Leaving.]
<davidokner> Well I have to finish reading the article on it
<davidokner> And it got me thinking
<davidokner> I just wanted to try something right now
mockra has joined #ruby
ryanf has quit [Ping timeout: 246 seconds]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
telling has quit [Ping timeout: 265 seconds]
bradhe has joined #ruby
mehlah has quit [Quit: Leaving...]
iamjarvo has joined #ruby
luckyruby has joined #ruby
hadees has quit [Quit: hadees]
telling has joined #ruby
<davidokner> Ruby does have class methods.
paulsherwood has left #ruby ["-freenode #ruby"]
charliesome has joined #ruby
<bnagy> yes?
<bnagy> was that in doubt?
<davidokner> I thought somebody said it didn't.
hadees has joined #ruby
_justin has joined #ruby
shadoi1 has joined #ruby
<bnagy> if so that was a crazyperson
<bnagy> File.mtime fname <-- random example
<davidokner> def self.methodname
<davidokner> I think you use self
<bnagy> you can, or you can do class Foo; class << self; def whatever
RichieEvan has joined #ruby
{aaron} has joined #ruby
<bnagy> plus about a dozen more esoteric ways
<davidokner> But now I'm trying to reference a regular method in my class method.
<bnagy> you can't
<bnagy> like... think about it
<davidokner> right
<bnagy> instance methods are only available on instances
<fowl> class methods are really instance methods on a class
<davidokner> Well it actually was working, until I made it a class method.
<davidokner> I could reference an instance method from a class variable.
<bnagy> well you can't reference anything 'from a variable'
<davidokner> Because I pushed an array of instances onto a class variable.
<bnagy> but classvars are horrible and you shouldn't use them
<davidokner> @@
<bnagy> yeah. Do Not Use.
<davidokner> I should be using class instance variable.
<bnagy> maybe, I don't know what you're trying to do
<davidokner> I will as soon as I read that article. I'm trying to test something else.
<bnagy> class ivar might be the right way to do X, @@classvar is always the Wrong Way
<davidokner> I'm not doing inheritance, so it shouldn't be any different right?
<bnagy> yes, it's different
<fowl> as i said earlier davidokner just because you dont want to "do inheritance" doesnt mean you should cripple your library so others cant
jarred has quit [Quit: jarred]
<fowl> you're not listening
<fowl> damnit
<davidokner> This is what I did. http://pastie.org/4351438
<davidokner> I'm trying to extend the bank account example in the Pick Axe book.
chimkan_ has quit [Quit: chimkan_]
<bnagy> yeah that is wrong and horrible
<davidokner> The books are teaching to use class variables.
<{aaron}> another scope/context puzzler http://pastebin.com/LuMQj9tS
<bnagy> not just because it uses @@vars but because it's broken encapsulation
jarred has joined #ruby
<davidokner> Book of Ruby and Pick Axe, both.
<{aaron}> interestingly, using ruby-prof profile(&block) works
<fowl> with any luck @@vars will be gone in 2.0
<davidokner> Oh, maybe that would be good.
<bnagy> there's no earthly reason an Account class should be a bank and know about all the accounts
<bnagy> imagine if someone put that code into prod :< any Account has access to all Accounts
<davidokner> I was trying to think of the best way to create a method that would display the balances for all the accounts.
<bnagy> make a container class
<davidokner> I should make a new class
<davidokner> Like bank or something
<bnagy> then if you reaaaaally wat introspection, you can pass a ref to your container instance to the account
<bnagy> yeah, Bank is a decet example
<bnagy> and then the Bank _instance_ holds lots of Accounts
<davidokner> Right, that would be good
jarred has quit [Client Quit]
<fowl> {aaron}: the error is on line 30, what is `be`? it isnt defined anywhere...
<davidokner> ok, I'll try doing that
tommyvyo has joined #ruby
<{aaron}> fowl: it's a matcher
<{aaron}> it works when using standard rspec 'it' dsl
<{aaron}> but now when wrapped in benchmark
<bnagy> davidokner: and like I said, you can make bofa=Bank.new :going_broke_soon
<{aaron}> does work when wrapped with ruby-prof profile
shadoi1 has quit [Quit: Leaving.]
mockra has quit [Remote host closed the connection]
<{aaron}> so there is some difference in how profile vs. benchmark is invoking the block...?
<bnagy> then fred=Account.new name: 'fred', balance: 1000, bank: bofa
<davidokner> I'll need to know how to push each account onto the bank account instance during account initialization.
<bnagy> but tbh an Account probably doesn't need to know which bank it belongs to, so I wouldn't do that except as an exercise
fowl has left #ruby ["i give up on all of you except bnagy"]
<bnagy> davidokner: bofa << Account.new('fred',1000)
<davidokner> I don't think I was going to do that.
leoncamel has joined #ruby
<davidokner> I tried << and push
<{aaron}> edited to make it clearer: http://pastebin.com/a7kke3VV
jarred has joined #ruby
<davidokner> I'll clean it up and try again. It was telling me it didn't recognize "<<"
<bnagy> davidokner: well yeah you need to define the Bank class :) You can start just with class Bank < Array;end
mockra has joined #ruby
<bnagy> then maybe chunk attr_accessor :name in there or something
<bnagy> *chuck
dagnachewa has quit [Remote host closed the connection]
SycPuppy has joined #ruby
kvirani has quit [Remote host closed the connection]
Rezwan has quit [Ping timeout: 276 seconds]
<SycPuppy> Been a long time since I used irc but is there really 593 people in a room saying nothing?
mxweas has joined #ruby
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
<{aaron}> found my answer: i had to explicitly instance_eval on the example_group_instance... that was really awkward: http://pastebin.com/JzS2cM3S
vitorpacheco has quit [Quit: Saindo]
heftig has quit [Quit: leaving]
jumpingcloud has joined #ruby
nari has joined #ruby
heftig has joined #ruby
sent-hil has joined #ruby
jumpingcloud has quit [Client Quit]
shadoi has joined #ruby
<davidokner> I'm getting undefined method "<<"
<davidokner> Does it matter that I'm using jRuby?
<bnagy> no
<davidokner> oMethodError: undefined method `<<' for #<Bank:0x3c2c7ac5 @accounts=[]>
<bnagy> cause you didn't define that method, I guess
<davidokner> the method << ?
<bnagy> as I said, start with class Bank < Array; attr_accessor :name; end
<davidokner> That is a built in method
<bnagy> then you'll get a lot of goodness for free
<davidokner> Oh
<davidokner> Make Bank a subclass of array
<davidokner> I missed that
<davidokner> I think I saw <<
<bnagy> yeah. In real life I'd probably recommend making it a DelegateClass, but one step at a time
<bnagy> with your existing code, if you defined an accessor for accounts, you can do Bank.new.accounts << whatever
<bnagy> cause @accounts is an Array
nari has quit [Quit: Ex-Chat]
havenn has joined #ruby
ryanf has joined #ruby
<bnagy> making it a pure subclass is actually kind of a shitty abstraction, but it's didactic
dhodgkin has joined #ruby
rippa has joined #ruby
jarred has quit [Ping timeout: 244 seconds]
jarred_ has joined #ruby
nateberkopec has joined #ruby
brianpWins has joined #ruby
kah_ has quit [Read error: Connection timed out]
mikepack has joined #ruby
bigkm has joined #ruby
beakerma_ has quit [Remote host closed the connection]
bigkm has quit [Client Quit]
bigkm has joined #ruby
davidcelis has quit [Quit: K-Lined.]
SolarisBoy1 has quit [Quit: Leaving.]
<davidokner> I'm having trouble with the Bank < Array class.
mockra has quit [Remote host closed the connection]
<davidokner> It will tell me undefined method balance or undefined method <<
<davidokner> And I'm not sure what I should actually have in the class
shadoi has quit [Quit: Leaving.]
<bnagy> davidokner: literally what I said
<bnagy> and nothing else :)
<davidokner> Oh, really, nothing else.
<bnagy> lehmann=Bank.new; lehmann.name = "Lehmann Bros"
<bnagy> lehmann << Account.new('fred',1000); balance = lehmann.inject(:+)
<bnagy> woops
<bnagy> lehman.map {|account| account.balance}.inject(:+)
ukd1 has quit [Quit: Lost terminal]
<davidokner> Ok, I changed it so it just has the accessor
<bnagy> davidokner: you are failing to listen
<davidokner> Yeah, I think so
<davidokner> You didn't have that map stuff before
<bnagy> it doesn't need an accessor for accounts, it's already an array
<bnagy> the accessor I put in is so you can name your banks, but it's not really required yet
cj3kim has joined #ruby
<davidokner> Oh, yeah I'm not going to name it that way.
masak has quit [Ping timeout: 252 seconds]
mxweas has quit [Quit: Leaving...]
<bnagy> I'm not really a fan of your Transaction class either :)
<bnagy> I'd just make the transactions instance methods on Bank
sent-hil has quit [Remote host closed the connection]
CaptainJet has quit []
<davidokner> I didn't figure it out
bmal has joined #ruby
<davidokner> You are saying the Bank class hould be empty?
lusory has quit [Ping timeout: 240 seconds]
<davidokner> And that I should use map to push to the accounts into the map class?
<bnagy> map isn't a class
<davidokner> Yeah I know.
<Gavilan> davidokner: WHAT?!?!?! THE BANK IS EMPTY?!?!?
masak has joined #ruby
* Gavilan goes running to extract all his deposits....
<davidokner> I mean use map to push the accounts into the bank.
<bnagy> pff. greeks.
<bnagy> no, I used << to add an account
<davidokner> Right, so I don't get what map is for.
<bnagy> because the Bank is an Array, effectively
<bnagy> and it contains Accounts
<bnagy> to get the sum of all accounts you need to map them, first, to create a new array of 'how much money is in this account'
<bnagy> then inject(:+) adds up all the numbers in that new array
<davidokner> Oh, I wasn't going to get the sum of all accounts. I wanted to traverse the array and print out the balance for each account.
<bnagy> which is otherwise known as map reduce
cableray has joined #ruby
<bnagy> it was just an example. Once it's an array you can do lots of stuff
<bnagy> bank.select {|account| account.balance > 1000000} -> new array of high rollers
krnlsndrs has joined #ruby
<bnagy> etc
dhruvasagar has joined #ruby
<bnagy> or puts mybank.map {|account| "#{account.name}: #{account.balance}"}
<davidokner> I think I need to make Bank a hash
<davidokner> because otherwise I don't know if I can reference the right bank account to create a transaction
<bnagy> if you like, but once you start thinking like that you could almost start to do it 'properly'
<davidokner> What would be properly?
<bnagy> transactions, databases...
<davidokner> hmm
havenn has quit [Remote host closed the connection]
<bnagy> a hash of account_num=>Account is a start
akem has quit [Read error: Connection reset by peer]
nateberkopec has quit [Quit: Leaving...]
akem has joined #ruby
akem has joined #ruby
akem has quit [Changing host]
<bnagy> imho I would get a version that works, at all
brianpWins has quit [Quit: brianpWins]
<bnagy> start by defining the API, then implement it behind the scenes
classix has quit [Ping timeout: 244 seconds]
<bnagy> then change the implementation without changing the API
<bnagy> good practice
<Gavilan> <bnagy> because the Bank is an Array, effectively ---> O_o I strongly disagree...
<bnagy> Gavilan: there's nothing to disagree with, it is a statement of fact at the moment
<davidokner> I'm trying to figure out how to print the account balances from within the Bank
<bnagy> 12:41 < bnagy> or puts mybank.map {|account| "#{account.name}: #{account.balance}"}
<Gavilan> bnagy: I state that a bank is never an array... Unless your definition of either array or bank is extremelly different from mine....
tommyvyo has joined #ruby
<davidokner> I was trying to do .each do |i| return balance
td123 has quit [Quit: WeeChat 0.3.8]
<davidokner> but I didn't know what to put before the .each
<bnagy> if you want to transform it into a method, just make your method and swap 'mybank' for 'self'
<Gavilan> davidokner: why not AccountsPrinter.ForAccountsOf(Bank).Print() or AccountPrinter.For(Bank.Accounts).Print()
<bnagy> self is not needed syntactically, but it makes it clearer what's happening
<davidokner> self.each do ? I was thinking self and I tried it
banisterfiend has joined #ruby
<bnagy> so you've got an Array, so in instance methods, self refers to that instance
iamjarvo has quit [Quit: Leaving...]
<bnagy> it's the object's internal view of itself
beakerman has joined #ruby
<bnagy> but you don't want to return from inside a block like that...
leoncamel has quit [Remote host closed the connection]
linoj has quit [Quit: linoj]
shadoi has joined #ruby
hell_razer has joined #ruby
noyb has quit [Remote host closed the connection]
<davidokner> I don't think that map method works with my code, and I'm not sure what it needs to be changed to.
<davidokner> Let me just show you http://pastie.org/4351715
rippa has quit [Ping timeout: 255 seconds]
<davidokner> It doesn't recognize the method balance and I have to review the map function.
iamjarvo has joined #ruby
<davidokner> I should probably give it a break
<bnagy> your each method won't work, cause the default receiver for balance there will be the array, which doesn't have that method
xbob has joined #ruby
<bnagy> if you change line 6 to 'puts i.balace' it might work
<davidokner> Ok
<bnagy> modulo other bugs
Darkout has joined #ruby
julio has joined #ruby
xbob has quit [Read error: Connection reset by peer]
beneggett has joined #ruby
shadoi has quit [Quit: Leaving.]
hell_razer has quit [Remote host closed the connection]
mockra has joined #ruby
beakerman has quit [Remote host closed the connection]
xbob has joined #ruby
<davidokner> Well, it runs, I have to check for logic errors though, because I don't know which account is which.
<davidokner> I can't belive I forgot the i
<davidokner> I haven't been using each very much yet though
<davidokner> I didn't need the self either.
<davidokner> I can just put each do
<davidokner> "each do |i|"
<bnagy> stylistically, I'd suggest using snake_case for method names
<bnagy> yeah, I said that before - I suggest using self for clarity
<davidokner> I did, didn't I
<davidokner> that is using upper case for the begining of each word
<bnagy> no you have someWackyCaseFromJavaOrSomething
<davidokner> Oh, I thought that was called snake case
<bnagy> ok well use the one with underscores
foEs has joined #ruby
<davidokner> Yeah, I see in wikipedia it says _ is snake case
<bnagy> I believe that it's snake and yours is camel, but I'm not emotionally invested in being right about that
<davidokner> ah
iamjarvo has quit [Quit: Leaving...]
<davidokner> Thank you so much!
<bnagy> also if you use 'i' as a block var for each etc, people will assume it's an integer
<bnagy> when it's actually an Account
savage- has quit [Remote host closed the connection]
<davidokner> I'm getting tired so I'll have to stop fo rnow. It is 1:08AM.
<davidokner> Yeah, I'd like to work on it some more.
<davidokner> I'd like to know all kinds of things I could do to improve it
<bnagy> breaks are good
<bnagy> like I said - get it working first
<bnagy> then refactor, it's good practice for 'real' code
<davidokner> I think its working now. I'll have to check the math, but I think it is.
<davidokner> This is really cryptic though:
<banisterfiend> bnagy: what did u think of the olympic opening
<davidokner> Look how I had to do it to store the accounts
<davidokner> by array location
<davidokner> for the Transaction.new( bank1[0], bank1[1])
<bnagy> banisterfiend: I didn't see it, was at like 4am here :(
<bnagy> davidokner: yeah, look at select
<davidokner> ok, I think I read about that.
bmal has quit [Ping timeout: 264 seconds]
xbob has quit [Read error: Connection reset by peer]
<davidokner> I remember doing map and select on rubymonk.com
<davidokner> but I forget it
<bnagy> reread the docs for Enumerable
<bnagy> it's pretty much absolutely critical for fluent ruby
<bnagy> banisterfiend: I just found out they're youtubing the whole games, though
<davidokner> oh, ok. It looks like there are a lot of methods in Enumerbale.
<bnagy> which is fricking awesome, cause cable TV doesn't get out this far
<banisterfiend> bnagy: just a live feed or it's broken up into pieces and we can watch it wheenever?
<davidokner> I was going to see the batman movie but lost my movie appetite after the shooting at that movie last weekend.
havenn has joined #ruby
<davidokner> Olympics might be good on Blu-Ray
foEs has quit [Quit: Leaving]
<davidokner> Highlights or something
foEs has joined #ruby
<bnagy> there was a shooting? I didn't see anything on the news about that...
<banisterfiend> davidokner: i thought that film was weird anyway
tewecske has joined #ruby
<banisterfiend> davidokner: the first half was good, the second half was just weird
maxmmurphy has joined #ruby
<bnagy> I should go to the market and buy food
beneggett has quit [Ping timeout: 244 seconds]
beneggett has joined #ruby
havenn has quit [Ping timeout: 244 seconds]
<Darkout> about olympics, i downloaded :\
<Darkout> the opening ceremony
adityag has joined #ruby
araujo has quit [Quit: Leaving]
beneggett has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
davidokner has left #ruby [#ruby]
Tomasso has quit [Ping timeout: 240 seconds]
hunglin has quit [Quit: Leaving.]
adamkittelson has quit [Remote host closed the connection]
julio has quit [Ping timeout: 252 seconds]
chson has joined #ruby
dhruvasagar has quit [Ping timeout: 250 seconds]
savage- has joined #ruby
dhruvasagar has joined #ruby
maxmmurphy has quit [Quit: maxmmurphy]
Azure has quit [Excess Flood]
Azure has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby
lldong has joined #ruby
<Paradox> ʕ •ᴥ•ʔ
<Gurpartap> _
<Paradox> ಠ‿ಠ
<Gurpartap> ੱ_ੱ
<Paradox> (づಠ_ಠ)づ
<Paradox> (づಠ‿ಠ)づ
<Paradox> (づ。◕‿‿◕。)づ
<Gurpartap> ਾ_ਾ
<Paradox> ≈≈≈≈≈≈≈~=[,,_,,]:3
ananthakumaran has joined #ruby
blazes816 has quit [Quit: Leaving]
<Paradox> ok
mikepack has quit [Remote host closed the connection]
artOfWar has joined #ruby
chimkan has joined #ruby
jimmy1980 has joined #ruby
savage- has quit [Remote host closed the connection]
mrwalker has quit [Remote host closed the connection]
classix has joined #ruby
_justin has quit [Ping timeout: 240 seconds]
tightwork has quit [Quit: ZNC - http://znc.sourceforge.net]
Gurpartap has quit [Quit: Page closed]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
tommyvyo has joined #ruby
foEs has quit [Quit: Leaving]
foEs has joined #ruby
tightwork has joined #ruby
ananthakumaran1 has joined #ruby
foEs has quit [Client Quit]
foEs has joined #ruby
quest88 has quit [Quit: quest88]
savage- has joined #ruby
tommyvyo has quit [Client Quit]
jrajav has joined #ruby
ananthakumaran has quit [Ping timeout: 240 seconds]
lusory has joined #ruby
digitalcakestudi has quit [Read error: Operation timed out]
davidcelis has joined #ruby
tommyvyo has joined #ruby
reuf has joined #ruby
reuf has quit [Max SendQ exceeded]
ZachBeta has joined #ruby
<twock> こんいちは
eggie5 has joined #ruby
<eggie5> what types does Array#& work on???
dhruvasagar has quit [Ping timeout: 264 seconds]
lusory has quit [Read error: Connection reset by peer]
ZachBeta has quit [Read error: Connection reset by peer]
ZachBeta has joined #ruby
jeff_sebring has joined #ruby
<Paradox> anything that implements <==> i presume
<banisterfiend> Paradox: sup g.
<eggie5> how does & do compares?
<eggie5> the object_id???
<Paradox> banisterfiend, sup
<Paradox> eggie5, probably via <==>
<eggie5> Paradox: so if I implement the <==> in my class and then fill and array with it, can I do &???
<Paradox> try it and find out
<Paradox> open up irb/pry and make a class that has a few simple things
<Paradox> then make an array of those things
<Paradox> and another one
savage- has quit [Remote host closed the connection]
<Paradox> and run &
<Paradox> banisterfiend, where are you out of?
<eggie5> haha how do you search "<==>" in google???
<eggie5> it seems to ignore it
<banisterfiend> Paradox: what do u mean
<Paradox> banisterfiend, where do you work?
<banisterfiend> Paradox: new zealand
<Paradox> oh heh
<banisterfiend> Paradox: you?
<Paradox> pivotal
<Paradox> but its an internship
<banisterfiend> is that in sf?
<Paradox> yah
<banisterfiend> brb watching 'shame'
<Paradox> i actually work for a client
<Paradox> that uses pivotal
<Paradox> (pivotal wrote jasmine)
_justin has joined #ruby
<Paradox> everyone keeps asking me if im a new pivot though, because evidently i know too much about ruby to just be a client
<Paradox> lol
<Darkout> i like pivotal project workspace with chef
tatsuya has joined #ruby
<Paradox> Darkout, that is so useful for spinning up machines
<Paradox> heh
<Paradox> eggie5, looks like it probably uses the object id
<Paradox> although i wouldnt put money on it
<eggie5> Paradox: that's what I was thinking but I'm not sure how to confir
<eggie5> Paradox: anyways I want to use & on an array of class X but I'm not sure how to make it work....
<eggie5> how does one X equal another X???
twock has quit [Quit: Lost terminal]
<Paradox> it might have more documentation
tatsuya has quit [Remote host closed the connection]
<Paradox> ah
ZachBeta has quit [Quit: Computer has gone to sleep.]
<Paradox> & is a bit tricky
<Paradox> it does an include? on one array
<Paradox> but not sure how the stock one works
<Paradox> might want to post a stackoverflow question
<Paradox> or a messagegroup one
<Paradox> im not well enough versed in C to see how it works
<Paradox> might want to join #C and ask about http://pastebin.com/ji95Gvnn
<banisterfiend> eggie5: it just seems to use ==
<eggie5> so can I implement it in my class X then? just define == method?
<eggie5> or what?
<banisterfiend> eggie5: Yeah
<eggie5> banisterfiend: cool i'll try that
tk___ has joined #ruby
<banisterfiend> eggie5: wait, implement what in your class X ?
tobago|away has joined #ruby
<banisterfiend> Array#& is a method on arrays, all you can do is implement ==
<eggie5> well I have an array of class X that I want do & on, e.g. x1 & x2
<banisterfiend> eggie5: what does 'i have an array of class X' mean?
<banisterfiend> arrays dont have classes in ruby
<banisterfiend> well, they're just class Array
<banisterfiend> you cant have an array of particular objects, really. It doesn't work like that in ruby
<eggie5> no, I have an array filled with instances of a class
<eggie5> say class Dog
<Paradox> [X, X, X, X, X]
nari has joined #ruby
<eggie5> yeah
<banisterfiend> eggie5: that's irrelevant though
<eggie5> [dog1, dog2, dog3] & [dog3, dog4]
<banisterfiend> ruby really doesn't care, it only calls == on the members, no matter what they are
<eggie5> so I just implement == in dog class to get the & functionality right?
<banisterfiend> Yeah
tobago has quit [Ping timeout: 246 seconds]
<eggie5> banisterfiend: cool
billiamii has quit [Read error: Connection reset by peer]
<Paradox> just tried it
<Paradox> and it doesnt seem to work…
<Paradox> :/
SycPuppy has quit [Quit: Nettalk6 - www.ntalk.de]
zeen has joined #ruby
nari has quit [Ping timeout: 255 seconds]
<Paradox> maybe i did it wrong
<Paradox> idk
<shevy> PEOPLE
<shevy> HELLO
mockra has quit [Remote host closed the connection]
greyEAX has joined #ruby
nari has joined #ruby
Darkout has quit [Quit: Leaving.]
<Hanmac1> Paradox: i think you need #hash and #eql? too
Hanmac1 is now known as hanmac
hanmac is now known as Hanmac
Bosma has quit [Ping timeout: 252 seconds]
foEs has quit [Remote host closed the connection]
ryanf has quit [Quit: leaving]
<Paradox> probably
dhruvasagar has joined #ruby
adityag has left #ruby [#ruby]
heftig has quit [Ping timeout: 245 seconds]
nari has quit [Ping timeout: 255 seconds]
tobago|away has quit [Ping timeout: 246 seconds]
heftig has joined #ruby
icy` has quit [Quit: .: adios :.]
gregorg_taf has quit [Read error: Connection reset by peer]
icy` has joined #ruby
icy` has quit [Changing host]
icy` has joined #ruby
jrajav has quit [Quit: The best darkness is strange and surprising]
<Mon_Ouie> Yeah, it does need those — and not ==, in fact
<banisterfiend> Yeah
<banisterfiend> Mon_Ouie: 'alut
<Mon_Ouie> 'alut
<eggie5> banisterfiend: how did you find out & uses ==?
<banisterfiend> eggie5: it uses #hash and eql?
<eggie5> banisterfiend: why'd you tell me == then???
qwerxy has joined #ruby
<eggie5> i'm confused
<eggie5> cause I implemented == and the & compare doesn't work
<banisterfiend> eggie5: because i thought it was, but it wasn't
<banisterfiend> eggie5: geniuses make mistakes sometimes
<banisterfiend> ;)
<eggie5> banisterfiend: haha
<eggie5> banisterfiend: where are you seeing this?
<banisterfiend> eggie5: show-source Array#&
<banisterfiend> seems to somewhat imply it
<eggie5> banisterfiend: all that c code???
<Mon_Ouie> I think they omitted to document it
<banisterfiend> eggie5: Yeah, lrn2C :)
<banisterfiend> eggie5: if u cant program C, you'll always be somebody's bitch
<Mon_Ouie> But yeah, hash equality allows to implement it in linear time
julio has joined #ruby
<eggie5> banisterfiend: haha was staring at that and didn't see hash or eql in there
dhruvasagar has quit [Ping timeout: 255 seconds]
{aaron} has quit [Quit: Leaving]
<eggie5> well I say that they converted one array to a hash table
cableray has quit [Quit: cableray]
hadees has quit [Quit: hadees]
raul782 has quit [Remote host closed the connection]
lusory has joined #ruby
ethan2 has joined #ruby
julio has quit [Ping timeout: 255 seconds]
leoncamel has joined #ruby
<eggie5> what's the standard ruby hash code that I can just copy??
<eggie5> i just have 2 fields id and date
undersc0re has quit [Ping timeout: 264 seconds]
hadees has joined #ruby
dhruvasagar has joined #ruby
<Hanmac> eggie5: maybe when you have an class with attr_reader :x,:y ... and this are your values to check:def hash; [@x,@y].hash ; end
<eggie5> Hanmac: that's a good idea!
<eggie5> or I can over engineer it with this: https://gist.github.com/3196548
<Hanmac> and the eql? is def eql?(other);@x == other.x && @y ==other.y;end
<Mon_Ouie> Or just alias eql? == if you defined it earlier
robozahn has joined #ruby
<banisterfiend> Mon_Ouie: hey monny
<eggie5> banisterfiend: i implemented hash and & works now!
<banisterfiend> eggie5: good
<eggie5> Hanmac: ha i just did def eql?(o); self==(o); end
Chryson has quit [Quit: Leaving]
<eggie5> Hanmac: and did what you did in ==
<eggie5> Hanmac: should I reverse mine?
<Hanmac> it works too but alias is better
dhruvasagar has quit [Ping timeout: 264 seconds]
SCommette has joined #ruby
duder has joined #ruby
* Hanmac prefers alias_method over alias ...
duder has quit [Client Quit]
<banisterfiend> Hanmac: y
<banisterfiend> Hanmac: i thought u were all about SPEED, and alias is speedier
<banisterfiend> Hanmac speed demon
chimkan has quit [Quit: chimkan]
duder has joined #ruby
mockra has joined #ruby
<Hanmac> but alias_method is hookable
tonni has joined #ruby
chimkan has joined #ruby
yakko is now known as yakko_slp
<banisterfiend> Hanmac: ya, that's why u should avoid it, in case some pig overrides it with bizarre behaviour
<banisterfiend> def alias_method(*args) puts "sup Hanmac!111!!11!" end
SCommette has quit [Quit: SCommette]
qwerxy has quit [Quit: offski]
<Hanmac> but you still get pro facts from it
mockra has quit [Ping timeout: 255 seconds]
duder has quit [Client Quit]
paolooo has joined #ruby
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
kevinbond has quit [Read error: Connection reset by peer]
chimkan has quit [Client Quit]
<Hanmac> i saw a system where the reloading of the scripts was broken, so overwriting alias_method was better then using alias directly
kevinbond has joined #ruby
AlbireoX is now known as AlbireoX`Away
<Paradox> banisterfiend, hey you there
<banisterfiend> Paradox: going for dinner
<Paradox> got something you might know
<Paradox> ok
<Paradox> have fun
<Paradox> hanmac, maybe you know
<Paradox> any easy way to wrap a guard controlling a webserver inside a foreman ?
<Hanmac> ... currently never used any webserver with ruby yet
<shevy> a what
<shevy> a cop controlling the streets inside a prostitute???
<shevy> Hanmac, alias_method is longer to type tho
tatsuya has joined #ruby
M- has joined #ruby
k_89 has joined #ruby
<Hanmac> you could make an alias of alias_method :P
tonni has quit [Remote host closed the connection]
cj3kim has quit [Quit: This computer has gone to sleep]
ethan2 has quit [Ping timeout: 264 seconds]
_justin has quit [Ping timeout: 255 seconds]
<shevy> I cant make up my mind
<shevy> if !
<shevy> vs
<shevy> unless
<Mon_Ouie> unless, except when there's also an else
<eggie5> night ruby
eggie5 has quit [Quit: eggie5]
xorgnak has joined #ruby
qwerxy has joined #ruby
Criztian has joined #ruby
classix has quit [Ping timeout: 264 seconds]
Criztian has quit [Remote host closed the connection]
mneorr has joined #ruby
ethan2 has joined #ruby
lupine_85 has quit [Excess Flood]
lupine_85 has joined #ruby
br4ndon has joined #ruby
fantazo has quit [Read error: Connection reset by peer]
thomas is now known as Stud
<companion> shevy, I got a good idea how to make up your mind :)
mehlah has joined #ruby
igotnolegs has quit [Quit: Computer has gone to sleep.]
<shevy> companion how?
<companion> shevy, what works for me is mostly a verry annoying youtube video :)
<companion> then I can make up my mind of what would be the best ;p
mneorr has quit [Quit: Leaving.]
<shevy> hmmmm
M- has quit [Quit: This computer has gone to sleep]
<shevy> my brain likes to prefer something
<companion> then go for it? :)
ph^ has joined #ruby
M- has joined #ruby
<shevy> well
<shevy> it's a problem
<shevy> when I use only if, it seems a lot easier to toggle
mneorr has joined #ruby
<shevy> but would I really want to stop using unless ....
jarred_ has quit [Quit: jarred_]
pskosinski has joined #ruby
Cache_Money has quit [Quit: Leaving]
Vert has joined #ruby
fantazo has joined #ruby
banghouse has quit [Remote host closed the connection]
davidpk has joined #ruby
mneorr has quit [Quit: Leaving.]
classix has joined #ruby
mneorr has joined #ruby
Targen has quit [Ping timeout: 246 seconds]
ph^ has quit [Remote host closed the connection]
mneorr has quit [Quit: Leaving.]
ethan2 has quit [Ping timeout: 250 seconds]
chimkan has joined #ruby
Vert has quit [Ping timeout: 252 seconds]
mneorr has joined #ruby
liluo has joined #ruby
yxhuvud has joined #ruby
qwerxy has quit [Quit: offski]
justsee has joined #ruby
ethan2 has joined #ruby
julio has joined #ruby
wintorez has joined #ruby
wintorez has left #ruby [#ruby]
mobilegamelabs has joined #ruby
mneorr has quit [Quit: Leaving.]
M- has quit [Quit: This computer has gone to sleep]
M- has joined #ruby
Jayunit100 has quit [Read error: Connection reset by peer]
wm3|zzz is now known as workmad3
_whitelogger has joined #ruby
chimkan has quit [Quit: chimkan]
artOfWar has quit [Remote host closed the connection]
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
julio has quit [Ping timeout: 264 seconds]
_justin has joined #ruby
nyuszika7h has joined #ruby
arietis has joined #ruby
Spooner has joined #ruby
Araxia has quit [Quit: Araxia]
mneorr has joined #ruby
resure has joined #ruby
mneorr has quit [Client Quit]
qos has joined #ruby
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
mahmoudimus has joined #ruby
wallerdev has quit [Quit: wallerdev]
tatsuya has quit [Read error: Connection reset by peer]
tatsuya has joined #ruby
workmad3 is now known as wm3|away
havenn has joined #ruby
Sigma00 is now known as Drunkma
jimeh2 has joined #ruby
jimeh has quit [Ping timeout: 250 seconds]
relix has joined #ruby
qwerxy has joined #ruby
resure has quit [Remote host closed the connection]
shashin has joined #ruby
rippa has joined #ruby
akem has quit [Quit: Forget progress by proxy. Land on your own moon.]
Foxandxss has joined #ruby
pskosinski has quit [Read error: Connection timed out]
shellox has quit [Quit: ZNC - http://znc.in]
jhchabran has quit [Ping timeout: 252 seconds]
nari has joined #ruby
Ionic` has quit [Ping timeout: 240 seconds]
pskosinski has joined #ruby
havenn has quit [Ping timeout: 246 seconds]
und3f has joined #ruby
whitedawg has joined #ruby
strnx has quit [Excess Flood]
saschagehlich has joined #ruby
shashin has quit [Quit: shashin]
heftig has quit [Ping timeout: 250 seconds]
kuranai has joined #ruby
mpereira has joined #ruby
shashin has joined #ruby
mengu has joined #ruby
centipedefarmer has joined #ruby
bigkm has quit [Ping timeout: 264 seconds]
bigkm has joined #ruby
emmanuelux has joined #ruby
_0riginaI is now known as GreenMint
GreenMint is now known as eidhbfdijbf
centipedefarmer has quit [Quit: This computer has gone to sleep]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
strnx has joined #ruby
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
heftig has joined #ruby
jimmy1980 has quit [Ping timeout: 246 seconds]
lldong has quit [Ping timeout: 240 seconds]
eidhbfdijbf is now known as BlueMint
Stalkr_ has joined #ruby
BlueMint has left #ruby [#ruby]
jimmy1980 has joined #ruby
yugui is now known as yugui_zzz
Tony_Sidaway has joined #ruby
shashin has quit [Quit: shashin]
kjellski has joined #ruby
mikeric has joined #ruby
nyuszika7h has quit [Quit: Here we are, going far to save all that we love - If we give all we've got, we will make it through - Here we are, like a star shining bright on your world - Today, make evil go away!]
dpk_ has joined #ruby
nyuszika7h has joined #ruby
dpk_ has quit [Client Quit]
julio has joined #ruby
julio has quit [Ping timeout: 246 seconds]
heftig has quit [Ping timeout: 250 seconds]
tatsuya has quit [Remote host closed the connection]
whitedawg has quit [Read error: Connection reset by peer]
darren has joined #ruby
regedare1 is now known as regedarek
bigkm has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
jhchabran has joined #ruby
darren has quit [Ping timeout: 272 seconds]
mikeric has quit [Quit: mikeric]
julio has joined #ruby
tatsuya has joined #ruby
mikalv has quit [Remote host closed the connection]
mikalv has joined #ruby
Taranis has quit [Ping timeout: 248 seconds]
MornStar| has quit [Ping timeout: 272 seconds]
Axsuul has quit [Ping timeout: 240 seconds]
banisterfiend has quit [Read error: Connection reset by peer]
telling has quit [Ping timeout: 250 seconds]
kuranai has quit [Quit: leaving]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
banisterfiend has joined #ruby
MornStar| has joined #ruby
mehlah has quit [Quit: Leaving...]
Husel has joined #ruby
telling has joined #ruby
geekyogi has joined #ruby
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Foxandxss has joined #ruby
qwerxy has quit [Quit: offski]
JeanMertz has joined #ruby
hynkle has joined #ruby
matti has joined #ruby
nedbat has joined #ruby
hynkle has quit [Quit: Computer has gone to sleep.]
qwerxy has joined #ruby
jbw has quit [Ping timeout: 246 seconds]
qwerxy has quit [Client Quit]
tatsuya has quit [Remote host closed the connection]
denis has quit [Quit: Leaving]
M- has quit [Quit: This computer has gone to sleep]
MornStar| has quit [Quit: ircN 8.00 for mIRC (20100904) - www.ircN.org]
yakko_slp is now known as yakko
seanstickle has joined #ruby
tatsuya has joined #ruby
ConstantineXVI has quit [Excess Flood]
tatsuya has quit [Remote host closed the connection]
shashin has joined #ruby
ConstantineXVI has joined #ruby
chessguy has quit [Remote host closed the connection]
ConstantineXVI has quit [Client Quit]
hadees has quit [Quit: hadees]
ConstantineXVI has joined #ruby
Tony_Sidaway has left #ruby [#ruby]
yugui_zzz is now known as yugui
julio has quit [Ping timeout: 240 seconds]
mengu has quit [Remote host closed the connection]
Jayunit100_ has joined #ruby
Jayunit100 has quit [Read error: Connection reset by peer]
Jayunit100_ is now known as Jayunit100
banisterfiend has quit [Read error: Connection reset by peer]
ZachBeta has joined #ruby
chessguy has joined #ruby
tatsuya has joined #ruby
davidpk has quit [Ping timeout: 244 seconds]
resure has joined #ruby
mrwalker has joined #ruby
mrwalker has quit [Remote host closed the connection]
<chessguy> is there a gem for helping to write interactive console apps in ruby?
dr_diamond has joined #ruby
<shevy> chessguy a few ... highline is one
<shevy> then there are option parsers, like slop https://github.com/injekt/slop/
azm has joined #ruby
gmci has joined #ruby
nateberkopec has joined #ruby
<oddmunds> also there is thor, but it might not be what you want (but also it might be what you want)
_justin has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
jonathanwallace has quit [Read error: Connection reset by peer]
stoffus has joined #ruby
niklasb has joined #ruby
jonathanwallace has joined #ruby
tomb_ has quit [Quit: Computer has gone to sleep.]
arietis has quit [Quit: Computer has gone to sleep.]
Husel has quit [Quit: Page closed]
banisterfiend has joined #ruby
fraser has joined #ruby
<chessguy> oddmunds, shevy, i'm not so much looking for things to parse arguments to the executables
stoffus has quit [Client Quit]
<shevy> well
<chessguy> but more like handling a loop in which you enter and process commands.
nari has quit [Ping timeout: 255 seconds]
stoffus has joined #ruby
<chessguy> i'll check out highline, it looks interesting
<shevy> loop { user_input = gets.chomp; break if user_input == 'q' }
justsee has quit [Quit: Leaving...]
<shevy> I always end up using a big case / when menu to check against user input
stoffus has left #ruby [#ruby]
MornStar| has joined #ruby
<chessguy> shevy, well sure. i'm just looking for an object-oriented way to have a class per possible input-handler
r0bby has joined #ruby
nari has joined #ruby
stoffus has joined #ruby
fantazo has quit [Remote host closed the connection]
Spooner has quit [Ping timeout: 252 seconds]
robbyoconnor has quit [Ping timeout: 272 seconds]
ZachBeta has quit [Quit: Computer has gone to sleep.]
<fraser> Couldn't you define a module that handles input and just include it in any object that'll need the input
<fraser> The equivalent of a java ActionListener basically
<chessguy> fraser: there are lots of possibilities for how to do it. i'm just wondering if someone has built something re-usable for something like this
gtuckerkellogg has joined #ruby
<fraser> chessguy: I'm probably the person least likely to know, but it's always fun to try to figure out a solution rather than download a library.
mucker has joined #ruby
<chessguy> it's also fun seeing what someone else has written
techsurvivor has quit [Ping timeout: 240 seconds]
krusty_ar has joined #ruby
dhruvasagar has joined #ruby
geekyogi has quit [Quit: Leaving.]
qwerxy has joined #ruby
kidoz has joined #ruby
geekyogi has joined #ruby
emmanuelux has quit [Ping timeout: 264 seconds]
ZachBeta has joined #ruby
nicoulaj has joined #ruby
chessguy has quit [Read error: Connection reset by peer]
jonathanwallace has quit [Read error: Connection reset by peer]
chessguy has joined #ruby
jonathanwallace has joined #ruby
Doc_X has quit [Read error: Connection reset by peer]
Doc_X has joined #ruby
MornStar| has quit [Quit: ircN 8.00 for mIRC (20100904) - www.ircN.org]
jimmy1980 has quit [Ping timeout: 250 seconds]
jimmy1980 has joined #ruby
Spooner has joined #ruby
yugui is now known as yugui_zzz
wvms has quit [Read error: Connection reset by peer]
wvms has joined #ruby
dhruvasagar has quit [Ping timeout: 244 seconds]
Eldariof-ru has joined #ruby
<fraser> leave
fraser has quit [Quit: Lost terminal]
krusty_ar has quit [Read error: Connection reset by peer]
krusty_ar has joined #ruby
maxmmurphy has joined #ruby
gtuckerkellogg has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
chessguy has quit [Remote host closed the connection]
foEs has joined #ruby
nari has quit [Ping timeout: 244 seconds]
tatsuya has quit [Remote host closed the connection]
Stalkr_ has quit [Quit: Linkinus - http://linkinus.com]
Stalkr_ has joined #ruby
monkegjinni has joined #ruby
<shevy> dumdedum
<wvms> dedum
kvirani has joined #ruby
Richmond has joined #ruby
dr_diamond has quit [Quit: Bye !]
tatsuya has joined #ruby
tatsuya has quit [Remote host closed the connection]
companion has quit [Changing host]
companion has joined #ruby
arietis has joined #ruby
paolooo has quit [Quit: Page closed]
beakerman has joined #ruby
<abdulkarim> How do I get the 'Title' attribute from this hash ? > http://seethiscode.appspot.com/30001
Stalkr_ has quit [Quit: Linkinus - http://linkinus.com]
Stalkr_ has joined #ruby
maxmmurphy has quit [Quit: maxmmurphy]
timonv has quit [Remote host closed the connection]
<shevy> data["server_time"]["BookData"]["Title"]
<shevy> this is a fucked up data structure btw
<shevy> you even have an array there
<shevy> so the above wouldn't work
maxmmurphy has joined #ruby
<Mon_Ouie> More than one
<shevy> yeah
<shevy> data["server_time"]["BookData"] will yield the array
<shevy> then you have to find the proper element that holds the BookData key
havenn has joined #ruby
kah_ has joined #ruby
strife25 has joined #ruby
digitalcakestudi has joined #ruby
strife25 has quit [Client Quit]
tatsuya has joined #ruby
<shevy> let's spread wisdom
<shevy> "The to_s method, for obtaining a String representation of an object, is probably the most commonly implemented and best known of these methods."
<shevy> "inspect, on the other hand, is intended for debugging use, and should return a representation that is helpful to Ruby developers."
akem has quit [Ping timeout: 240 seconds]
linoj has joined #ruby
<abdulkarim> shevy: data["server_time"]["BookData"]["Title"] this doesn't work
<Hanmac> like "<helpfull>" :P
<shevy> abdulkarim yes because you have an array
<abdulkarim> I got this dom from isbndb.com. Basically i'm writing a script that will fetch the title for a given ISBN
<shevy> abdulkarim in the array you must find the proper hash entry
<shevy> check via require 'pp'; pp data["server_time"]["BookData"] first
jameshyde has joined #ruby
<abdulkarim> shevy: nil
SCommette has joined #ruby
<Hanmac> its this: data["BookData"][0]["Title"]
foEs has quit [Ping timeout: 272 seconds]
<abdulkarim> Hanmac: nopes, already tried that
<abdulkarim> NoMethodError: undefined method `[]' for nil:NilClass
<shevy> ok your first key is:
<shevy> "BookList"
<shevy> pp data["BookList"]
<shevy> that will give you the first array
<Hanmac> data["BookList"][0]["BookData"][0]["Title"]
<shevy> whoever wrote this should be shot btw
und3f has quit [Quit: Leaving.]
<abdulkarim> Hanmac: ohk now that works !
<abdulkarim> shevy: true
nari has joined #ruby
<abdulkarim> http://pastie.org/4353628 << xml_data is what I got from ISBNDB.com
<abdulkarim> and then 'xmlsimple' screwed it up into that weird data structure :/
<shevy> oh
niklasb has quit [Quit: WeeChat 0.3.8]
<shevy> XML
<shevy> then this is ok
<abdulkarim> Is there a more simpler way of fetching the Title from that XML?
<shevy> XML sucks so much that people ought to stop using it anyway
<shevy> no idea, perhaps with nokogir
<shevy> I stopped using XML about 5 years ago
<shevy> *nokogiri
niklasb has joined #ruby
<shevy> it's odd that there is an array though
iamjarvo has joined #ruby
yugui_zzz is now known as yugui
<abdulkarim> Ok, wait. `puts data["BookList"][0]["BookData"][0]["Title"]` #=>nil
<abdulkarim> why?
foEs has joined #ruby
tk___ has quit [Quit: ばいばい]
<abdulkarim> Ok, sorry my fault :)
shevy has quit [Ping timeout: 246 seconds]
abstrusenick has joined #ruby
nari has quit [Ping timeout: 240 seconds]
davidpk has joined #ruby
Richmond has quit [Quit: Leaving]
Targen has joined #ruby
yugui is now known as yugui_zzz
shevy has joined #ruby
linoj has quit [Quit: linoj]
maxmmurphy has quit [Quit: maxmmurphy]
th3g33k1 has joined #ruby
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
EMarklar has joined #ruby
th3g33k has quit [Ping timeout: 264 seconds]
* weeb1e_ breathes
<weeb1e_> I don't have the slightest clue what is going on
<weeb1e_> I have a Thin::Server, it maps '/' to Router.new
<weeb1e_> class Router; def call(env); pp env end end
<weeb1e_> At that point, all paths in env are already incorrect. They are prepended with another applications root path, which every one of my browsers cannot be doing randomly. So this make no sense at all
abstrusenick has quit [Quit: abstrusenick]
koshii has quit [Ping timeout: 252 seconds]
julio has joined #ruby
shashin has quit [Quit: shashin]
qos has quit [Quit: Linkinus - http://linkinus.com]
strife25 has joined #ruby
th3g33k1 has quit [Quit: Leaving.]
kah_ has quit [Ping timeout: 244 seconds]
havenn has quit [Remote host closed the connection]
mehlah has joined #ruby
Tomasso has joined #ruby
sendoushi has joined #ruby
resure has quit [Remote host closed the connection]
azm has quit [Ping timeout: 246 seconds]
hoelzro|away is now known as hoelzro
resure has joined #ruby
Musok has joined #ruby
sendoushi has quit [Read error: Connection reset by peer]
exchgr has joined #ruby
Markvilla has joined #ruby
Xethron_ has quit [Ping timeout: 272 seconds]
td123 has joined #ruby
kah_ has joined #ruby
strife25 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
strife25 has joined #ruby
jbw has joined #ruby
kah_ has quit [Ping timeout: 272 seconds]
around has joined #ruby
Musok is now known as sendoushi
nyuszika7h is now known as Guest96536
around is now known as nyuszika7h
ananthakumaran1 has quit [Quit: Leaving.]
duply has joined #ruby
sergiu-dev has joined #ruby
Xethron has joined #ruby
Guest96536 has quit [Ping timeout: 264 seconds]
wvms has left #ruby [#ruby]
nyuszika7h has quit [Read error: Connection reset by peer]
macmartine has joined #ruby
mikepack has joined #ruby
Nisstyre has quit [Ping timeout: 272 seconds]
around has joined #ruby
havenn has joined #ruby
around is now known as nyuszika7h
pac1 has joined #ruby
soooga has quit [Quit: 离开]
tomb_ has joined #ruby
tatsuya has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
k_89 has quit [Ping timeout: 246 seconds]
foEs has quit [Ping timeout: 272 seconds]
abstrusenick has joined #ruby
skipper has joined #ruby
skipper has quit [Remote host closed the connection]
EMarklar has quit [Quit: This computer has gone to sleep]
havenn has quit [Ping timeout: 246 seconds]
abstrusenick has quit [Client Quit]
abstrusenick has joined #ruby
resure has quit [Remote host closed the connection]
resure has joined #ruby
twinturbo has joined #ruby
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
havenn has joined #ruby
sergiu-dev has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
strife25 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
jrajav has joined #ruby
dhruvasagar has joined #ruby
Gavilan has left #ruby [#ruby]
havenn has quit [Remote host closed the connection]
cantonic has quit [Quit: cantonic]
strife25 has joined #ruby
mobilegamelabs has quit [Quit: Angry Polygon (iPhone/Android/Mac) - http://www.MGGGGG.com/ap #ratingexchange]
mikepack has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
akem has quit [Ping timeout: 272 seconds]
mobilegamelabs has joined #ruby
rushed has joined #ruby
pzol has quit [Ping timeout: 240 seconds]
altivec has quit [Quit: WeeChat 0.3.0]
mikepack has quit [Remote host closed the connection]
rushed has quit [Client Quit]
havenn has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby
strife25 has quit [Quit: Computer has gone to sleep.]
srji has joined #ruby
srji has quit [Client Quit]
foolove has quit [Ping timeout: 252 seconds]
chimkan has joined #ruby
foolove has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
Markvilla has quit [Quit: Markvilla]
<ThePicard> Mon_Ouie: &blah.method(:[]) is like twice as slow
<Mon_Ouie> When calling the methods many times, or calling the methods many times?
phinfonet has joined #ruby
resure has quit [Remote host closed the connection]
<ThePicard> Mon_Ouie: http://pastie.org/4354021
pzol has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
havenn has quit [Remote host closed the connection]
<ThePicard> Mon_Ouie: also, both sides of your or were the same thing...
heftig has joined #ruby
qwerxy has quit [Quit: offski]
geekyogi has quit [Read error: Connection reset by peer]
<Mon_Ouie> Oh :p I meant calling the method many times, or calling the block many times
k_89 has joined #ruby
<ThePicard> calling the block many times was ~2x as fast as calling the proc'd method many times
<Mon_Ouie> But it's about the same with that
<ThePicard> hmm?
<matti> Hi Mon_Ouie
dhruvasagar has joined #ruby
<ThePicard> benchmark disclaimer, I'm on windows right now due to extensive gaming, it may be different on linux...?
cantonic has joined #ruby
havenn has joined #ruby
chimkan has quit [Quit: chimkan]
<Mon_Ouie> 'alut matti ;)
savage- has joined #ruby
strife25 has joined #ruby
centipedefarmer has joined #ruby
<ThePicard> Mon_Ouie: ah, I did not think to try that
Hien has quit [Ping timeout: 272 seconds]
jameshyde has quit [Ping timeout: 264 seconds]
Guest76126 has joined #ruby
jameshyde has joined #ruby
rushed has joined #ruby
rushed has quit [Quit: rushed]
linoj has joined #ruby
julio has quit [Ping timeout: 244 seconds]
bradhe has quit [Remote host closed the connection]
wargasm has quit [Read error: Connection reset by peer]
wargasm has joined #ruby
mars__ has joined #ruby
linoj has quit [Quit: linoj]
mahmoudimus has joined #ruby
mockra has joined #ruby
conor_ireland has quit [Quit: conor_ireland]
EMarklar has joined #ruby
conor_ireland has joined #ruby
havenn has quit [Remote host closed the connection]
davidpk has quit [Quit: Computer has gone to sleep.]
zaidka has joined #ruby
chimkan has joined #ruby
leoncamel has quit [Ping timeout: 244 seconds]
<zaidka> hello. if i build a c extension to ruby, is there any overhead in calling c functions?
<Mon_Ouie> About the same overhead as for regular method calls
havenn has joined #ruby
mneorr has joined #ruby
Morkel has joined #ruby
timonv has joined #ruby
centipedefarmer has quit [Quit: This computer has gone to sleep]
Gab0 has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
<yxhuvud> Mon_Ouie: how about if using FFI to call it?
chimkan has quit [Client Quit]
mockra has quit [Remote host closed the connection]
cj3kim has quit [Client Quit]
<Mon_Ouie> yxhuvud: I'm not sure about how it is implemented, the part where Ruby arguments are converted into structures C can understand has more overhead I think
<Mon_Ouie> Compared to the C API where ruby just passes you a bunch of pointers you can do whatever you want with directly in C
<zaidka> Mon_Ouie, i have a small function that i want to impelment in c. it'll be called maybe a thousand times per second. should i not worry about unexpected surprises when it comes to calling overhead?
<Mon_Ouie> 1000 times per seconds doesn't sound like much to me
<zaidka> im not talking web. just a regular script run by one user
<Mon_Ouie> (By that I mean, not enough for the calling overhead to be so important — the actual implementation may need to be fast)
<Mon_Ouie> I'm not talking web either
<shevy> zaidka if C is not fast enough for you, what else do you wanna use... assembler? ;-)
<matti> Machine code.
zaidka has quit [Read error: Connection reset by peer]
abstrusenick has quit [Quit: abstrusenick]
<matti> :)
krusty_ar has quit [Quit: No Ping reply in 180 seconds.]
banghouse has joined #ruby
<shevy> PERL!!!
Guest76126 has quit [Ping timeout: 272 seconds]
<shevy> I want to go back to punchard interfaces
<shevy> ahm
<shevy> punchcard
<matti> That's not efficient.
ZachBeta has joined #ruby
tatsuya has joined #ruby
krusty_ar has joined #ruby
Layke has joined #ruby
<Layke> What would you recommend as a getting started?
<k_89> for ruby?
<Layke> Yeah sorry. (Have 10+ years experience of programming)
<k_89> i guess then writing basic ruby would be piece of cake for you ..
<matti> With that amount of years, asking that sort of question should left you covered in shame :)
<k_89> just read on its metaprogramming features
<Layke> Haha. I've gone through the docs already. Just wondering if there is a "goto" book that most people refer to.
<matti> Layke: :)
<matti> Layke: Look at Eloquent Ruby book.
<k_89> Layke, there's a book .. metaprogramming ruby
<matti> Layke: It only touches on Ruby-specific things.
wallerdev has joined #ruby
<Layke> Cheers. Yeah that's the kind of thing I'm looking for.
<k_89> i found meta ruby more helpful
bradhe has joined #ruby
<k_89> it deals with all the magic in ruby
<matti> k_89: Both are good.
<k_89> making dsl's and stuff
duply has quit [Read error: Connection reset by peer]
<matti> k_89: Meta programming is a funny thing.
<shevy> Layke best way is to start writing ruby code as soon as possible
<k_89> yeah it is
havenn has quit [Remote host closed the connection]
exchgr has quit [Quit: exchgr]
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
<Layke> shevy, Yeah, I agree. I've already been working through simple "assignment" examples and project euler questions etc.
<shevy> Layke, work through these examples as quickly as possible http://pine.fm/LearnToProgram/?Chapter=01
<matti> k_89: There is this learning curve: First you discover meta-programming, Second you want to make everything into a DSL, Third you discover a real-life project (probably at work) which abuses MP and then you learn to avoid it (troubleshooting can be a bitch).
krusty_ar has quit [Quit: No Ping reply in 180 seconds.]
Hien_ has joined #ruby
<shevy> then your next task shall be - understand and explain what is an @instance variable, when you use __DATA__ __END__ ARGV and ARGF
ZachBeta has quit [Quit: Computer has gone to sleep.]
Jackneill has joined #ruby
quest88 has joined #ruby
berserkr has joined #ruby
<shevy> yeah
<matti> shevy: ARGF is a child of Matz and the Devil himself.
<shevy> what matti wrote ^^^
Jackneill is now known as Guest91275
<shevy> though I stay away from meta magic
<matti> Hehe
krusty_ar has joined #ruby
<shevy> BUT I WILL LEARN RAILS ONE DAY
<matti> NOESS
<matti> ;d
<k_89> but you gotta learn all the ruby's meta magic to understand rails, sinatra etc
<matti> Yeah.
<k_89> i understand sinatra to a fair level now
<Layke> On that topic k_89, is rails the de facto goto framework?
Nisstyre has joined #ruby
<matti> k_89: I like to use Spider-Man quote here: "With great power comes great responsobility"
<k_89> i hate rails
<Layke> ie, *everyone* knows rails?
<k_89> :P
<shevy> k_89 how do they make the:
<matti> Layke: No, I don't know / like it.
<shevy> map /
<shevy> part?
<k_89> but then i am mainly a php guy
<shevy> oh dear
<matti> PHP?
<matti> Quick.
<k_89> hehe
<matti> Exorcism
<matti> Infidel.
<shevy> let's burn him
<matti> ;d
<k_89> nvm
<matti> Hehe
<shevy> or we put him with matti into a room
JeanMertz has quit [Quit: JeanMertz]
<matti> shevy: Better to burn him ;p
<shevy> he can choose
<Layke> Do you use any PHP framework k_89 ? Just curious. :)
<shevy> matti, yeah, easier and faster
<shevy> :P
<k_89> shevy, at the end of sinatra's included files, they just do an include to include all of sinatras methods into current context
<shevy> hmm
<k_89> Layke, i switch every 4-5 months :P
dhruvasagar has quit [Ping timeout: 252 seconds]
<k_89> currently i'm using laravel
<k_89> its a beauty
<k_89> but getting bored of it too
conor_ireland has quit [Quit: conor_ireland]
<Layke> I always just stick with Zend Framework for anything I use when working on PHP based projects.
<matti> shevy: Putting me into a room with PHP developers is forbidden by Geneva Conventions.
<k_89> Layke, you checked out composer??
<matti> ;]
<Layke> No I haven't
<shevy> zend zend zend
<k_89> laravel and fuelphp frameworks are coming out as composer packages
<matti> shevy: LOL ;s
<k_89> those + silex are gonna be my goto php dev tools in near future
<matti> k_89: +1
<k_89> Layke, do have a look getcomposer.org
<k_89> matti, +1 for what ??
mneorr has quit [Quit: Leaving.]
Ionic` has joined #ruby
<matti> k_89: Being open minded :)
<Kwpolska> How do I remove the first 18 lines from a string in ruby?
<k_89> :)
mneorr has joined #ruby
<shevy> Kwpolska what do you mean with lines from a string
zaidka has joined #ruby
<shevy> if you mean separated by newline \n
<shevy> then you could convert it to array, then fetch only lines 19 up to last
<shevy> string.split("\n")[19..-1]
gmci has quit [Quit: Computer has gone to sleep.]
<shevy> or 18, no idea. try it.
<shevy> string = string.split("\n")[18..-1]
<td123> str.lines.slice(18..-1).unlines
<matti> unlines?
<td123> nvm lol
Morkel has quit [Quit: Morkel]
<td123> I'm thinking about a diff language
<matti> :D
<td123> haskell has unlines and lines
gmci has joined #ruby
<Kwpolska> okay, shevy’s solution worked, thanks.
<matti> Kwpolska: There is a problem with it.
<matti> Kwpolska: If number of "\n" is substantial.
havenn has joined #ruby
<Kwpolska> matti: and I do not know what 'substantial' means here.
ethan2 is now known as Ethan
maxmmurphy has joined #ruby
<Hanmac> yxhuvud there is something FFI cant do
<matti> Kwpolska: If you have large file read into a string, then spliting it to remove first 18 lines might cost memory. But, whatever works I fine I guess and less fiddly :)
Keva161 has joined #ruby
<Kwpolska> it is quite large, but I don’t care.
<matti> Ah, OK.
<matti> :)
jbw has quit [Ping timeout: 272 seconds]
<shevy> haskell has unlines?
<shevy> well, if it is an alias to split("\n") perhaps it wouldn't be so bad
<shevy> or rather
<shevy> join("\n")
<hoelzro> unlines = join "\n"
<hoelzro> lines = split "\n"
<hoelzro> iirc
gmci has quit [Quit: Computer has gone to sleep.]
mobilegamelabs has quit [Quit: Angry Polygon (iPhone/Android/Mac) - http://www.MGGGGG.com/ap #ratingexchange]
<Paradox> this is why i hate windows http://i.imgur.com/Gpifl.png among other things
chimkan has joined #ruby
tightwork has quit [Quit: ZNC - http://znc.sourceforge.net]
jwmann has joined #ruby
exchgr has joined #ruby
tchebb1 has quit [Quit: Leaving.]
tightwork has joined #ruby
mockra has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
Ethan has quit [Ping timeout: 244 seconds]
ZachBeta has joined #ruby
<shevy> yeah Paradox
krusty_ar has quit [Quit: No Ping reply in 180 seconds.]
<shevy> the key with windows is to try and avoid the degrees of suck
<shevy> since ruby scripts work on windows, I am quite ok with windows again
akem has joined #ruby
<Paradox> this is a VMware
krusty_ar has joined #ruby
<Paradox> so i dont use it too often
<shevy> hehe
<Paradox> but seriously
<Paradox> 3k updates?
<td123> shevy: ya it has unlines, you can see the definition here https://github.com/ghc/packages-base/blob/master/Data/List.hs#L1083 in case you're interested
mneorr has quit [Quit: Leaving.]
azm has joined #ruby
savage- has quit [Remote host closed the connection]
<shevy> Paradox perhaps many small files
cj3kim has joined #ruby
kidoz has quit [Quit: Ухожу я от вас]
<shevy> unlines = concatMap (++ "\n")
<shevy> whoa
<shevy> haskell code looks scary
<Paradox> thats because it was designed by sperglords for sperglords
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<hoelzro> it's not that bad once you get used to it
mneorr has joined #ruby
drago757 has joined #ruby
jbw has joined #ruby
mockra has quit [Ping timeout: 250 seconds]
<Paradox> C is the only functional/proceedural language i know
<Paradox> and i have no intention of learning any others
<k_89> javascript??
zaidka has quit [Ping timeout: 272 seconds]
kirun has joined #ruby
help2man is now known as shopt
Xethron has quit [Changing host]
Xethron has joined #ruby
Ethan has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
<jrajav> Paradox: You don't really know what a functional language is, do you?
savage- has joined #ruby
liluo has quit [Remote host closed the connection]
<Mon_Ouie> procedural or imperative is almost the opposite of functional programming
<jrajav> ^
<jrajav> Ruby is a lot more of a functional language than C is
EMarklar has quit [Quit: This computer has gone to sleep]
nateberkopec has quit [Quit: Leaving...]
cantonic has quit [Quit: cantonic]
jarred has joined #ruby
wvms has joined #ruby
stefanp_ has quit [Ping timeout: 265 seconds]
SCommette has quit [Quit: SCommette]
savage- has quit [Remote host closed the connection]
cantonic has joined #ruby
SCommette has joined #ruby
tonni has joined #ruby
<Kwpolska> I need to do some magic with .po files. I want to copy over the msgid to the msgstr. Is there any easy way to do that or should I incorporate space magic?
livencode has joined #ruby
chimkan has quit [Quit: chimkan]
dross_ is now known as dross
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
k_89 has quit [Quit: Leaving]
davidcelis has quit [Quit: K-Lined.]
drago757 has quit [Quit: drago757]
<Kwpolska> oh wait, space magic is easier than ruby in this case. (and by 'space magic' I mean msgmerge)
banisterfiend has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
hoelzro is now known as hoelzro|away
cantonic has quit [Quit: cantonic]
chimkan has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
atmosx has joined #ruby
levieraf has joined #ruby
seanstickle has quit [Quit: seanstickle]
havenn has quit [Remote host closed the connection]
Markvilla has joined #ruby
havenn has joined #ruby
alindeman has quit [Quit: /quit]
greasegum has joined #ruby
tompsony has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
tvw has joined #ruby
shadoi has joined #ruby
<tompsony> otters
<tompsony> you are there man
mrwalker has joined #ruby
mxweas has joined #ruby
drago757 has joined #ruby
levieraf has quit [Ping timeout: 272 seconds]
Araxia has joined #ruby
havenn has quit [Remote host closed the connection]
tonni has quit [Remote host closed the connection]
havenn has joined #ruby
mahmoudimus has joined #ruby
<Kwpolska> I have those files: /locale/en/something.po and /locale/pl/something.po, and the ruby script is /getnames.rb. How can I get the 'en' and 'pl' parts to an array? (I know about glob, but won’t it return locale/en or stuff like that? I am a noob when it comes to ruby, actually.)
livencode has left #ruby ["Leaving"]
mrwalker has quit [Remote host closed the connection]
BrokenCog has quit [Quit: leaving]
twinturbo has quit [Quit: twinturbo]
drago757 has quit [Quit: drago757]
havenn has quit [Ping timeout: 245 seconds]
<tompsony> otters pls man
<tompsony> talk to me
<Kwpolska> what?
<tompsony> o.o
<tompsony> you is otters
<tompsony> ?
<tompsony> you are*
CaptainJet has joined #ruby
shadoi has quit [Quit: Leaving.]
<tompsony> you are a programmer?
<tompsony> Kwpolska
<Ionic`> holy shit, you're annoying
cj3kim has quit [Quit: This computer has gone to sleep]
<Kwpolska> anyone who can kick this sir around?
<tompsony> ;/
<Kwpolska> idiot*
<tompsony> why
<tompsony> I need to talk to the otter
<tompsony> only
shashin has joined #ruby
<Mon_Ouie> Kwpolska: That's still no reason to call someone else an idiot.
<Mon_Ouie> tompsony: Use private messages in that case (/msg otters …)
beakerma_ has joined #ruby
<tompsony> [Mon_Ouie]: ok thank you!
<Mon_Ouie> Kwpolska: Regarding your question, you can Dir.glob and map to the basename
<tompsony> but the fact that I have a job and a budget of $ 200
<tompsony> need someone with skills
<Kwpolska> I just did that by myself. thanks anyways.
shashin has quit [Client Quit]
<tompsony> ;/
<shevy> lol
<Kwpolska> tompsony: add one zero to the budget if you want someone with skills.
<shevy> otter is cuddly
<Kwpolska> at least one.
<tompsony> lol
jimeh2 has quit [Ping timeout: 252 seconds]
<tompsony> 2000 o.o very hard
Bosma has joined #ruby
<shevy> no
<shevy> he said to add one zero
<shevy> 0200
<Kwpolska> at the end
<shevy> pfffft a bit later for that now... :P
<shevy> btw Kwpolska how did you solve the /locale/pl/something.po thing?
Axsuul has joined #ruby
beakerman has quit [Ping timeout: 272 seconds]
<Kwpolska> shevy: Dir.glob and then File.basename
<shevy> ah ok
goganchic has joined #ruby
qwerxy has joined #ruby
<shevy> File.ext "/locale/pl/something.po" # => ".po"
<shevy> array << File.ext("/locale/pl/something.po")
JeanMertz has joined #ruby
<Mon_Ouie> He's not looking for that, he's looking for "pl"
<shevy> oh
koshii has joined #ruby
<JeanMertz> Is there any reason why I can't poll my own server using Net::HTTP and Thin? It always returns a response timeout, even when starting thin locally
<JeanMertz> (so I poll the same server from where the poll originates, only a different end-point)
<JeanMertz> Ah hang on, probably a thread issue
robozahn has quit [Ping timeout: 265 seconds]
<tompsony> I just need someone with skills that can create the script in one hour.
<tompsony> Paid $ 200
kvirani has quit [Remote host closed the connection]
Ethan has quit [Quit: *poof*]
shadoi1 has joined #ruby
koshii has quit [Ping timeout: 252 seconds]
beakerman has joined #ruby
beakerma_ has quit [Read error: Connection reset by peer]
tonni has joined #ruby
justinseiter has quit [Quit: Leaving]
<goganchic> topsony, $200 per hour? =)
<shevy> tompsony, u must learn ruby
tommyvyo has joined #ruby
<tompsony> yes
<tompsony> not now
<Ionic`> there are freelancer channels on freenode
<Ionic`> better ask there
Ste11a has quit [Ping timeout: 244 seconds]
macmartine has joined #ruby
theRoUS has joined #ruby
nateberkopec has joined #ruby
ph^ has joined #ruby
baroquebobcat has joined #ruby
reuf has joined #ruby
joesavage has joined #ruby
atmosx has quit [Ping timeout: 244 seconds]
EMarklar has joined #ruby
<joesavage> Anyone here available for freelancing a small Ruby Jekyll static site generation project for me?
reuf has quit [Max SendQ exceeded]
beakerma_ has joined #ruby
twinturbo has joined #ruby
reuf has joined #ruby
twinturbo has quit [Client Quit]
reuf has quit [Max SendQ exceeded]
EMarklar has quit [Client Quit]
reuf has joined #ruby
nazty has joined #ruby
nazty has quit [Read error: Connection reset by peer]
naz has quit [Quit: Leaving]
beakerman has quit [Ping timeout: 250 seconds]
levieraf has joined #ruby
EMarklar has joined #ruby
CaptainJet has quit [Ping timeout: 244 seconds]
beakerman has joined #ruby
atmosx has joined #ruby
<shevy> :(
<shevy> noone wants to learn ruby anymore
<shevy> except for Layke... the last guy to want to learn ruby here lately
iamjarvo has quit [Quit: Leaving...]
CaptainJet has joined #ruby
beakerma_ has quit [Ping timeout: 272 seconds]
goganchic has quit [Quit: leaving]
tonni has quit [Remote host closed the connection]
mpereira has quit [Ping timeout: 272 seconds]
chimkan has quit [Quit: chimkan]
iamjarvo has joined #ruby
beakerma_ has joined #ruby
azm has quit [Ping timeout: 246 seconds]
<iamjarvo> i have this .ru file and there is a require in it. it seems that the require has to be like this require './lib/process/processor' require_realtive blows up
Ste11a has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
blacktulip has joined #ruby
beakerman has quit [Ping timeout: 272 seconds]
<iamjarvo> i think this is a good thread concerning my problem
Ethan has joined #ruby
karneisada has joined #ruby
cantonic has joined #ruby
bot1 has joined #ruby
<karneisada> welp
<karneisada> I apparently got yail working
karneisada has left #ruby [#ruby]
bot1 has quit [Remote host closed the connection]
banisterfiend has quit [Ping timeout: 240 seconds]
<atmosx> shevy: I want to learn,I don't know nothing about ruby
<atmosx> shevy: I'm publishing my latest script in a couple of minutes on github any comments would be more than welcomed (on how to optimize the code, better approach, improvements, etc.)
darren has joined #ruby
mars__ has quit [Quit: Leaving]
lupine_85 has quit [Changing host]
lupine_85 has joined #ruby
drago757 has joined #ruby
AlbireoX`Away is now known as AlbireoX
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
banisterfiend has joined #ruby
Guest97636 has quit [Ping timeout: 276 seconds]
<Spaceghostc2c> shevy: Didn't you hear? Ruby is oldnews. The new shit is clojure. :(
<iamjarvo> can someone explain why when i require a file in irb in a directory im in i have to do require './file' i rembere i read it somewhere about the loadpaths and what haooens when you are in a directory. but i cant remember where
<shevy> dont know clojure
drago757_ has joined #ruby
<shevy> iamjarvo, core team hates ./ these days in plain require
nilg has joined #ruby
<Layke> How do you mean shevy ?
<iamjarvo> ahh interesting. whats the alternate?
wvms has quit [Quit: wvms]
<shevy> iamjarvo require_relative() or modifying $LOAD_PATH or simply using a ./ in require or install the project into your ruby installation SITE DIR
<shevy> Layke, nah, there were two guys here who wanted someone else to write scripts for them
<shevy> rather than learn ruby on their own
<shevy> :(
drago757 has quit [Ping timeout: 264 seconds]
drago757_ is now known as drago757
<Layke> Ah :)
<iamjarvo> shevy you mentoned using ./ but didnt you say core team hates it
<shevy> iamjarvo, if you use ruby 1.9.x then you could use require_relative
<shevy> iamjarvo, yeah. it worked in 1.8.x
<iamjarvo> shevy require_relative and rackup files dont like each other
<iamjarvo> thats what im having probs wiht
<iamjarvo> with
<shevy> aha
<shevy> rackup is not valid ruby?
<iamjarvo> if i do require ./filename in the config.ru it works but require_relative or require doesnt work
<shevy> but you use ruby 1.9.x ?
levieraf has quit [Ping timeout: 240 seconds]
<iamjarvo> 1.9.3
darren has quit [Remote host closed the connection]
Guest97636 has joined #ruby
linoj has joined #ruby
br4ndon has joined #ruby
drago757 has quit [Quit: drago757]
macer1 has joined #ruby
atmosx has quit [Read error: Operation timed out]
<shevy> odd
<shevy> in normal .rb files, require_relative works?
yakko has quit [Ping timeout: 272 seconds]
Ethan has quit [Ping timeout: 272 seconds]
shashin has joined #ruby
yakko has joined #ruby
<shevy> hmmm
<shevy> why is nil.to_s == ''
tonni has joined #ruby
<Spooner> Because nil.to_s is not a printed string (for better or worse). nil.inspect is "nil" though.
fantazo has joined #ruby
tommyvyo has joined #ruby
mockra has joined #ruby
<shevy> hmm
Berglund has joined #ruby
<Mon_Ouie> That's probably because the rackup file isn't run normally (that is, not using load or require)
<Mon_Ouie> Also require ./file doesn't work: just getting in another directory breaks that
joesavage has left #ruby [#ruby]
<Mon_Ouie> Assuming __FILE__ is set correctly, you can $LOAD_PATH.unshift File.dirname(__FILE__) and require as you need
nilg` has joined #ruby
levieraf has joined #ruby
<iamjarvo> i just ended up using this require File.expand_path(File.dirname(__FILE__) + "/lib/order_processor/processor")
tatsuya has quit [Remote host closed the connection]
quest88 has quit [Quit: quest88]
jarred has quit [Ping timeout: 264 seconds]
quest88 has joined #ruby
tatsuya has joined #ruby
<iamjarvo> Mon_Ouie: ^
mockra has quit [Remote host closed the connection]
beakerma_ has quit [Ping timeout: 272 seconds]
baphled has joined #ruby
nyuszika7h has quit [Quit: Here we are, going far to save all that we love - If we give all we've got, we will make it through - Here we are, like a star shining bright on your world - Today, make evil go away!]
Guest91275 has quit [Quit: Guest91275]
nyuszika7h has joined #ruby
<Mon_Ouie> $LOAD_PATH.unshift File.expand_path("../lib", __FILE__) would be better, as it would allow to require files from there without doing anything weird
SegFaultAX has quit [Ping timeout: 246 seconds]
Ethan has joined #ruby
tatsuya has quit [Ping timeout: 272 seconds]
SegFaultAX has joined #ruby
jarred has joined #ruby
<iamjarvo> Mon_Ouie describe anything weird
tonni has quit [Remote host closed the connection]
tatsuya has joined #ruby
beakerman has joined #ruby
tonni has joined #ruby
xorgnak has quit [Ping timeout: 272 seconds]
Berglund has quit [Quit: Computer died.]
GlenK has joined #ruby
Gab0 has quit [Remote host closed the connection]
<Mon_Ouie> Doing requires like what you did above everywhere instead of using the more conventional require 'order_processor/foo'
rippa has quit [Ping timeout: 255 seconds]
mengu has quit [Remote host closed the connection]
around has joined #ruby
nyuszika7h is now known as Guest35929
around is now known as nyuszika7h
azm has joined #ruby
azm has quit [Changing host]
azm has joined #ruby
azm has quit [Read error: Connection reset by peer]
<iamjarvo> ok
<iamjarvo> thanks
macer1 has quit [Ping timeout: 272 seconds]
Guest35929 has quit [Ping timeout: 264 seconds]
shadoi1 has quit [Quit: Leaving.]
Gab0 has joined #ruby
aruntomar has joined #ruby
timonv has quit [Remote host closed the connection]
banisterfiend has quit [Ping timeout: 252 seconds]
cantonic has quit [Quit: cantonic]
<otters> christ I wish people would stop PMing me
Goles has quit [Quit: Computer has gone to sleep.]
dawtcummz is now known as dawtcawm
linoj has quit [Quit: linoj]
dawtcawm is now known as Guest18269
gmci has joined #ruby
<shevy> otters heheeh
<shevy> everyone wants to flirt with an otter
<otters> I shouldn't have picked this attention-grabbing username
jameshyde has quit [Remote host closed the connection]
tomeo has joined #ruby
* shevy cuddles the otter!!!
bluenemo has quit [Remote host closed the connection]
atmosx has joined #ruby
Keva161 has quit [Remote host closed the connection]
<otters> we don't happen to have a ruby bot in here do we?
SegFaultAX has quit [Read error: Operation timed out]
chimkan has joined #ruby
banisterfiend has joined #ruby
SegFaultAX has joined #ruby
_axx has quit [Ping timeout: 240 seconds]
aruntomar has quit [Quit: Leaving]
<shevy> dont think so
<shevy> save for Hanmac
<otters> nuts
<otters> well, irb works just as well
<otters> class A; class << self; attr_accessor :foo; @foo = 1; end; end; A.foo #=> nil
<otters> why is this
yxhuvud has quit [Ping timeout: 250 seconds]
<Mon_Ouie> You set @foo on the class's singleton class, not on the class itself
wvms has joined #ruby
<otters> Oh, wait, I understand
<Mon_Ouie> Similarly when you do class Foo; attr_accessor :bar; @bar = 1; end, Foo.new.bar is nil
<otters> attr_accessor is a class method
<otters> but instance variables...okay
<otters> Got it
<Hanmac> the funniest think is that singleton classes can have singleton classes too :P
<otters> so I should put the ivar declaration outside the singleton class block
<shevy> boggles the mind
<shevy> the ruby inside the ruby inside the ruby
<shevy> inside the ruby
<otters> this is the only part of ruby that is really confusing
<shevy> ruby the inside
<otters> besides continuations
<shevy> inside the ruby the ruby inside
<shevy> otters, I find too many things in ruby confusing :(
<shevy> the principle of least matz surprise sometimes reminds me of someone being on a LSD rush
_axx has joined #ruby
<shevy> all the different ways to *eval* make me really violent
<otters> yeah, eval
<otters> I'll tell you, I love ruby right now though
<banisterfiend> shevy: you've never tried LSD, in fact i doubt you've tried many drugs at all. You're actually a very innocent and sheltered boy ;)
<otters> I had to alter this FTPD to support SSL
<otters> now in any other language, I would have to check it out from github, modify the source
<otters> and then use that
<otters> ruby? re-open the class, monkey patch SSL support in
<shevy> banisterfiend true
<atmosx> I agree on the LSD part, I have no opinion on the rest you people are talking a strange language
* atmosx eats chocolate
15SACFCYB has joined #ruby
mneorr has left #ruby [#ruby]
nyuszika7h has quit [Quit: Here we are, going far to save all that we love - If we give all we've got, we will make it through - Here we are, like a star shining bright on your world - Today, make evil go away!]
<atmosx> you don't know how it's likeeee to love somebodyyy
<shevy> otters, the really sad thing is that other languages are much worse than ruby
<shevy> like PHP
* atmosx is listening to Nina Simone - To Love Somebody, from the album Best Of Nina Simone Vol 2 [2:40 mins] [128 kbps MPEG audio file] [2.67 MB] [played missing value times]
<otters> well, I'm not saying anything is wrong with Ruby
<otters> it's a very well designed language
<shevy> come on cuddly otter!
<shevy> <otters> this is the only part of ruby that is really confusing
<shevy> ^^^ the first level of hate
<shevy> :)
<otters> well it could be very well designed for all I know
Xethron has quit [Ping timeout: 244 seconds]
<otters> son of a gun! module_eval too??
<otters> where's singleton_eval
Xethron_ has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
exchgr has quit [Quit: exchgr]
strife25 has quit [Quit: Computer has gone to sleep.]
shashin has quit [Quit: shashin]
chimkan has quit [Ping timeout: 246 seconds]
<shevy> hehe
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<shevy> dont forget class_eval
<shevy> and penis_eval
<otters> mixin_eval
mxweas has quit [Quit: Computer has gone to sleep.]
<shevy> mhhhmmm
<otters> oh wow, instance_eval works on single instances
<shevy> sounds sexy
<otters> holy balls
<wm3|away> otters: a singleton class is still just a class
<shevy> \o/
darren has joined #ruby
<otters> I like how you can just ignore the fact that you shouldn't be able to call private methods
<otters> with __send__
macer1 has joined #ruby
tonni has quit [Remote host closed the connection]
Guest18269 is now known as pushp0p
pushp0p has quit [Changing host]
pushp0p has joined #ruby
shashin has joined #ruby
Araxia has quit [Ping timeout: 272 seconds]
mxweas has joined #ruby
booginga has joined #ruby
<atmosx> night all
atmosx has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Araxia has joined #ruby
banisterfiend has quit [Ping timeout: 240 seconds]
darren has quit [Ping timeout: 272 seconds]
blacktulip has quit [Read error: Connection reset by peer]
tsolan has joined #ruby
<tsolan> hallo
<Hanmac> otters there is public_send too
chimkan_ has joined #ruby
<tsolan> having a bit of a problem using nokogiri... wondering if anyone can help... https://gist.github.com/3201855
<tsolan> i'm using sinatra, all i'm seeing output is "end"
qwerxy has quit [Quit: offski]
15SACFCYB has quit [Ping timeout: 244 seconds]
chimkan_ has quit [Client Quit]
bowlowni has joined #ruby
<burgestrand> tsolan: that’s how sinatra works.
EMarklar has quit [Quit: Leaving]
<wm3|away> tsolan: that's all your block is returning
banisterfiend has joined #ruby
<burgestrand> tsolan: sinatra renders the return value of your block, you return "end", that is what is rendered.
EMarklar has joined #ruby
<Paradox> have they finally updated tilt
<Paradox> ?
<burgestrand> tsolan: http://www.sinatrarb.com/intro#Return%20Values
qwerxy has joined #ruby
<EMarklar> Hi does anyone know if you can rename a foreign key in a factory_girl association?
<wm3|away> Paradox: last release is back in august
<wm3|away> Paradox: why do you ask though?
qwerxy has quit [Client Quit]
<tsolan> ok so what do i modify to output something every time nokogiri encounters an img tag?
<tsolan> i tried using yield but got an error
sgronblo1 has quit [Ping timeout: 272 seconds]
<Paradox> wm3|away, because it doesn't pass the full options hash to redcarpet
<wm3|away> tsolan: maybe you need to step back and go through a sinatra tutorial...
bowlowni has quit [Ping timeout: 240 seconds]
<Paradox> and it fucks up smarty and shit like that with sinatra :(
mpereira has joined #ruby
<wm3|away> Paradox: doesn't look like it even supports smarty :/
<wm3|away> Paradox: but with the redcarpet issue... you could always fork and fix ;)
Eldariof-ru has quit []
davidcelis has joined #ruby
SCommette has quit [Quit: SCommette]
cj3kim has joined #ruby
darren has joined #ruby
centipedefarmer has joined #ruby
SCommette has joined #ruby
centipedefarmer has quit [Read error: Connection reset by peer]
centipedefarmer has joined #ruby
Xethron_ is now known as Xethron
Xethron has quit [Changing host]
Xethron has joined #ruby
Speed has joined #ruby
Speed has quit [Changing host]
Speed has joined #ruby
zemanel has joined #ruby
VegetableSpoon has joined #ruby
krnlsndrs has quit [Quit: Leaving]
krnlsndrs has joined #ruby
tomeo has quit [Remote host closed the connection]
<Paradox> wm3|away, looks like its already fixed in head
sendoushi has quit [Remote host closed the connection]
Z_Mass has joined #ruby
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
piggybox has quit [Read error: Connection reset by peer]
piggybox has joined #ruby
mxweas has quit [Quit: Computer has gone to sleep.]
baphled has quit [Ping timeout: 240 seconds]
thone_ has joined #ruby
greenarrow has joined #ruby
alindeman_ has joined #ruby
VegetableSpoon has quit [Remote host closed the connection]
jrajav has quit [Quit: The best darkness is strange and surprising]
bluenemo has joined #ruby
thone has quit [Ping timeout: 240 seconds]
Cache_Money has joined #ruby
Stormbytes has joined #ruby
alindeman_ is now known as alindeman__
Stormbytes has quit [Remote host closed the connection]
brianpWins has joined #ruby
saschagehlich has quit [Quit: saschagehlich]
mahmoudimus has quit [Ping timeout: 250 seconds]
tonni has joined #ruby
ZachBeta has joined #ruby
alindeman__ is now known as alindeman
nilg has quit [Read error: Connection reset by peer]
linoj has joined #ruby
bairui has quit [Quit: WeeChat 0.3.7]
hamfz_ has joined #ruby
[Neurotic] has joined #ruby
bairui has joined #ruby
balki has joined #ruby
balki has quit [Read error: Connection reset by peer]
shashin has quit [Quit: shashin]
balki has joined #ruby
julio has joined #ruby
balki_ has quit [Ping timeout: 240 seconds]
mahmoudimus has joined #ruby
dr_diamond has joined #ruby
jwmann has quit [Quit: Leaving.]
julio has quit [Ping timeout: 244 seconds]
Criztian has joined #ruby
dcope has joined #ruby
<dcope> anyone using id3lib-ruby? i can't seem to get hte length of a trakc.
Progster has joined #ruby
r0bby is now known as robbyoconnor
booginga has quit [Quit: This computer has gone to sleep]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
maletor has joined #ruby
nicoulaj has quit [Ping timeout: 264 seconds]
nilg` has quit [Read error: Connection reset by peer]
minijupe has joined #ruby
kjellski has quit [Quit: Leaving]
mxweas has joined #ruby
dcope has left #ruby [#ruby]
shadoi1 has joined #ruby
shadoi1 has quit [Read error: Connection reset by peer]
greasegum has quit [Remote host closed the connection]
reuf has quit [Quit: Leaving]
levieraf has quit [Ping timeout: 244 seconds]
w400z has joined #ruby
cableray has joined #ruby
fantazo has quit [Remote host closed the connection]
Liothen has joined #ruby
Liothen has quit [Changing host]
Liothen has joined #ruby
mxweas has quit [Quit: Computer has gone to sleep.]
GlenK has quit [Ping timeout: 244 seconds]
jimmy1980 has quit [Ping timeout: 255 seconds]
<Spooner> dcope id3lib was replaced by http://robinst.github.com/taglib-ruby/
GeekOnCoffee has joined #ruby
BrokenCog has joined #ruby
tonni has quit [Remote host closed the connection]
igotnolegs has joined #ruby
ryanf has joined #ruby
iamjarvo has quit [Ping timeout: 240 seconds]
linoj has quit [Quit: linoj]
levieraf has joined #ruby
liluo has joined #ruby
xmajoh has joined #ruby
rockets has joined #ruby
tvw has quit [Remote host closed the connection]
adamkittelson has joined #ruby
w400z has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
jarred_ has joined #ruby
jarred has quit [Ping timeout: 250 seconds]
jarred_ is now known as jarred
Foxandxss has joined #ruby
tewecske has quit [Quit: Leaving.]
ph^ has quit [Remote host closed the connection]
tatsuya has quit [Remote host closed the connection]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Criztian has quit [Remote host closed the connection]
shashin has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
RichieEvan has quit [Quit: RichieEvan]
tonni has joined #ruby
jimeh2 has joined #ruby
minijupe has quit [Quit: minijupe]
Gavilan has joined #ruby
codezombie has joined #ruby
levieraf has quit [Ping timeout: 264 seconds]
vitoravelino is now known as vitoravelino`afk
Cache_Money has quit [Ping timeout: 240 seconds]
nari has joined #ruby
shashin has quit [Ping timeout: 272 seconds]
banisterfiend has quit [Read error: Connection reset by peer]
BrokenCog has quit [Quit: leaving]
ZachBeta has quit [Quit: Computer has gone to sleep.]
bglusman has quit [Remote host closed the connection]
ryanf has quit [Quit: broken pipes |||]
jeff_sebring has quit [Quit: Leaving]
banisterfiend has joined #ruby
EMarklar has quit [Quit: This computer has gone to sleep]
kirun has quit [Quit: Client exiting]
davidcelis has quit [Quit: K-Lined.]
cantonic has joined #ruby
rlomax has quit [Ping timeout: 252 seconds]
BrokenCog has joined #ruby
rlomax has joined #ruby
Bosma has quit [Ping timeout: 252 seconds]
wm3|away is now known as wm3|zzz
levieraf has joined #ruby
<Paradox> woot router running tomato and ruby scripts
cantonic has quit [Quit: cantonic]
lkba has joined #ruby
noyb has joined #ruby
lae has quit [Quit: rebooting]
Markvilla has quit [Quit: Markvilla]
mahmoudimus has joined #ruby
musee has joined #ruby
musee is now known as lae
Progster has quit [Ping timeout: 260 seconds]
drago757 has joined #ruby
M- has joined #ruby
xmajoh has quit [Read error: Connection reset by peer]
justsee has joined #ruby
nilg has joined #ruby
darren has quit [Remote host closed the connection]
levieraf has quit [Ping timeout: 240 seconds]
th3g33k has joined #ruby
locriani has quit [Read error: Connection reset by peer]
seatea has joined #ruby
locriani has joined #ruby
locriani has quit [Changing host]
locriani has joined #ruby
seatea is now known as chclto
andrewhl has joined #ruby
reuf has joined #ruby
Markvilla has joined #ruby
Bosma has joined #ruby
darren has joined #ruby
dr_diamond has quit [Quit: Bye !]
mxweas has joined #ruby
emmanuelux has joined #ruby
jrajav has joined #ruby
RichieEvan has joined #ruby
RichieEvan has left #ruby [#ruby]
levieraf has joined #ruby
<shevy> dumdedum
maletor has quit [Quit: Computer has gone to sleep.]
pskosinski has quit [Ping timeout: 272 seconds]
tcopp has joined #ruby
bier has quit [Read error: Operation timed out]
centipedefarmer has quit [Quit: This computer has gone to sleep]
tcopp has left #ruby [#ruby]
Ethan has quit [Ping timeout: 252 seconds]
kaen has joined #ruby
tompsony has quit [Ping timeout: 246 seconds]
centipedefarmer has joined #ruby
fayimora has quit [Quit: Busy…..zzzzz]
nari has quit [Ping timeout: 264 seconds]
sevvie has joined #ruby
centipedefarmer has quit [Client Quit]
levieraf has quit [Ping timeout: 246 seconds]
<rockets> Are allcaps variables constants by convention, or is there actually some logic in the interpreter around this?
<rockets> Eh never mind I think I just realized how silly of a question that is.
rockets is now known as zastern
linoj has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]