apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<behavioral> pipework a strategy would fit when you have to call multiple of them?
<volty> the data structure then (btw what are accounts & assets without persistence? for a monopoly game?)
<pipework> behavioral: A strategy is good when you have to make a decision about how to proceed given an input that determines what you need to do in such a way that the logic based on what you need to do changes drastically.
pwh has joined #ruby
jonkri has quit [Quit: jonkri]
<pipework> I don't really know the kinds of inputs you'll be getting, but you could have a SingleAccountStrategy or a MultiAccountStrategy, and those strategies would encapsulate the units of work to handle the input.
tkuchiki has quit [Remote host closed the connection]
gr33n7007h has joined #ruby
<volty> Tell me, please, what I am missing. To me it seems asking particle physics questions - just for the sake of throwing a stone...
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wmoxam has joined #ruby
<behavioral> pipework a chain of strategies then you mean?
<behavioral> customer_account = Account.new(single_asset)
ehaliewicz has joined #ruby
brianpWins has joined #ruby
<behavioral> and customer_b_account = Account.new(multiple_assets=[asset1,asset2]
<pipework> behavioral: Why would you need to chain? Typically a strategy is used at one fork of code execution.
pskosinski has joined #ruby
DanKnox is now known as DanKnox_away
<behavioral> pipework see the above
<pipework> Neither of those are really chain-y.
<pipework> customer_account = Account.new(asset1, asset2) # Uses MultipleAssetStrategy
<behavioral> Account's initializer would call either SingleAccountStrategy or MultiAccountStrategy
<pipework> customer_account = Account.new(asset1) # Uses SingleAssetStrategy
Astral_ has quit [Read error: Connection reset by peer]
<behavioral> and if it calls MultiAccountStrateg(assets=[]) then that strategy's initializer will call the assets
Astral_ has joined #ruby
pkrnj has quit [Ping timeout: 264 seconds]
rickmasta has joined #ruby
Bry8Star{T2 has quit [Remote host closed the connection]
tspike has joined #ruby
BRMatt has joined #ruby
noopq has joined #ruby
saarinen has quit [Quit: saarinen]
seich- has joined #ruby
Bry8Star{T2 has joined #ruby
ewnd9 has quit [Ping timeout: 245 seconds]
nwertman has joined #ruby
<pipework> behavioral: You could use a strategy to choose what kind of pipeline to use to construct an account based on assets. So Account.new would take the input given to it to select a strategy, and the strategy could take the input passed to it and hand it off to a chain of responsibility which would handle the multiple units of work that need to take place to create an account in your system.
robert_ has quit [Quit: Connection reset by traffic clause.]
bricker`work has quit [Remote host closed the connection]
pkrnj has joined #ruby
markalanevans has joined #ruby
<markalanevans> Hey folks, i need to get the internet swatch time when i format time
Animawish has joined #ruby
<markalanevans> But i don't see that as a format option here: http://www.ruby-doc.org/core-2.0.0/Time.html
<markalanevans> Am i crazy?
<markalanevans> I'm porting some code from PHP and in php its readily available: http://php.net/manual/en/function.date.php
<markalanevans> i would simply add "B" in my format string.
<hone> \quit
hone has quit [Quit: Lost terminal]
Naoe-Kanno has quit [Quit: ネウロイを負かさなきゃならないね]
fourq_ has joined #ruby
<behavioral> pipework thank you this was insightful
mlpinit has joined #ruby
<behavioral> particle physics at its finest ;)
devoldmx3 has quit [Ping timeout: 264 seconds]
<pipework> behavioral: Anytime, sir.
RichardBaker has quit [Quit: RichardBaker]
DrCode has quit [Remote host closed the connection]
<volty> ah! what's in a name!? - that which we call strategy by any other name will be the same talking tragedy
funburn has joined #ruby
<behavioral> volty do you mind if I ask if you are 15?
<volty> just reverse!
<pipework> 12?
<pipework> Reverse what part? :p
<behavioral> did you learn to program 6 months ago?
hiyosi has joined #ruby
<volty> long time ago, little puffy
<volty> long long
<pipework> Anyways, glad to help.
Hien has quit [Quit: leaving]
DrCode has joined #ruby
<behavioral> pipework it was really helpful. It makes me thing that a strategy is a good fit if you have a composite
<behavioral> so the strategy itself could also be a composite
pkrnj has quit [Ping timeout: 264 seconds]
<behavioral> where a builder would be the composite and it can implement multiple single strategies
<volty> or I am lost or you are academics or you are lost in pompously talking about trivial and superflous notions
<behavioral> you know what I mean?
conner has quit [Ping timeout: 245 seconds]
snovak has joined #ruby
<pipework> volty: Not everyone is into the "I'm a programmer, motherfucker" vibe.
<behavioral> volty I am not an academic, but let me tell you I like R, erlang, haskell and combinatorial
hogeo has joined #ruby
<volty> pipework: i do agree, but you could have told me about the context
nettoweb has joined #ruby
<pipework> volty: lrn2abstractconcept :p
Hien has joined #ruby
<pipework> behavioral: Usually a strategy is used when you have to choose what code execution path to take given some input. See git's merge strategies, for example. http://stackoverflow.com/questions/366860/when-would-you-use-the-different-git-merge-strategies
<volty> i come here from time to time, rarely, and are used to see right, direct, questions about real world problems /// that's all folks! I have nothing against you
<pipework> He has a real world problem. Designing a simple account creation system that is easy to understand and minds a separation of concerns.
<behavioral> volty not everything in life is about "how do I find the index of 'doh' in my Array"
maletor has quit [Quit: Computer has gone to sleep.]
adkron has joined #ruby
fourq_ has quit [Quit: Lost terminal]
kilophoton has quit [Ping timeout: 264 seconds]
snovak has quit [Ping timeout: 264 seconds]
chrismerrill has joined #ruby
<volty> yes, too much 'pipe' (in italian) for my taste - just a matter of taste // anyway I would like the others tell you how much they liked your exchange of those, pretty scolastic, notions in a public channel
amacgregor has joined #ruby
c0rn has quit [Ping timeout: 264 seconds]
chrismerrill has left #ruby [#ruby]
elaptics is now known as elaptics`away
<volty> never mind! good study! I'm going to set up a strategy for going to my toilet :)
ewnd9 has joined #ruby
RORgasm_ has quit [Remote host closed the connection]
Blaze_Boy has quit [Remote host closed the connection]
<pipework> volty: Just make sure you include an abstract factory pattern when you wipe!
<behavioral> LOL
<behavioral> pipework I would like to see him implement a memento
<behavioral> maybe he can try to undo
brianpWins has quit [Quit: brianpWins]
<pipework> Maybe some day he'll work in a distributed transaction system.
<volty> (really guys, i like joking, but this time i really didn't understand what you were talking about, it seemed so surreal to me )
stonevil has quit [Remote host closed the connection]
gyre007 has joined #ruby
<pipework> volty: We were just being silly.
BrianJ has joined #ruby
sventon has quit [Remote host closed the connection]
<volty> pipework: let me, at least, hope that this channels won't get invaded by theorist ... :)
<pipework> volty: The point of using patterns like this is to further expose domain problems and extract architecture from the equation. A good use of a pattern will preclude your need to solve a problem architecturally and let you focus on the actual problem at hand.
froy has quit [Ping timeout: 256 seconds]
<pipework> volty: You're being a bit anti-social in that regard. I welcome all whose intent is to learn and grow, even if they don't want to learn how I prefer or think is correct. :)
andbutsothen has joined #ruby
rickmasta has quit [Quit: Leaving...]
conner has joined #ruby
<volty> the patterns have to do with (real) probems, not with simple abstract theoretizing about how initializiers could branch and invoke their 'children' (or similar)
<behavioral> volty
fourq_ has joined #ruby
<behavioral> do you have any idea how rails manage to let you configure database adapter to be mysql or postgresql
<behavioral> and sitll everything work?
<volty> pipework: you are wrong! I want to learn! There's always to learn
<pipework> I don't see us disagreeing, so I think we're just violently agreeing, but we're also talking past each other here.
russt has joined #ruby
kilophoton has joined #ruby
<volty> behavioral: that is a goal (configuring), your stated question hadn't any goal
<pipework> volty: I didn't say you didn't want to learn. I said you were being anti-social by saying you'd prefer not to have people who want to talk about patterns and architecture in here.
jamesaanderson has joined #ruby
bricker`LA has joined #ruby
<volty> pipework: I'll restate it: design patterns given the objective
<pipework> volty: I don't understand what you mean.
<volty> not on trival and generic stuff
rupee has quit [Quit: Leaving]
jamesaanderson has quit [Client Quit]
twoism has quit [Remote host closed the connection]
<behavioral> pipework don't waste the key strokes
<pipework> volty: I'm sorry you disagree about our mode of thought. However, I have no desire to change, and you're providing no reason for me to do. I've got to get back to ripping out unnecessary abstraction from an application I'm building.
fourq_ has quit [Client Quit]
twoism has joined #ruby
<volty> right, let's not waste :)
<behavioral> I think we talked enough about this, if he thinks this is theory and is irrelevant for 'real world problems' so be it
<volty> good idea! :)
ewnd9 has quit [Ping timeout: 260 seconds]
<behavioral> pipework isn't it funny how code goes from very concrete to 'too abstract' then cycles back down to more concrete
<behavioral> after the performance degrades :)
fourq_ has joined #ruby
<volty> it is not irrilevant, it is fuzzy to talk design patterns without a goal, about such a simple data structure
<pipework> behavioral: I strive for simplicity in a non-trivial world.
ColKurtz has joined #ruby
St_Marx has quit [Quit: Ex-Chat]
<pipework> volty: Fuzzy is alright. It's just an idea to get you going. He's not exactly scribing his code into diamond, he can refactor as things become more clear. :)
<volty> pipework: i'm sure you understand me. I falled in love, and got lost, with generic algorithms and C++ template ... ON REAL PROBLEMS
Monie has joined #ruby
<pipework> volty: I don't see why you think his problem isn't real. Maybe you're just asking for code when there isn't any and he's trying to approach a problem.
<volty> do as you please, my idea is that your discussion (given the non-problem) wasn't instructive
<pipework> He learned from it. :)
kofno has joined #ruby
twoism has quit [Ping timeout: 264 seconds]
Davey_ has joined #ruby
<pipework> My opinion is that your insistence on how to discuss things is quite myopic and distasteful. :)
cHarNe2 has joined #ruby
<volty> I don't believe he did learn anything :)
<pipework> Lolk.
<behavioral> volty lol :)
<behavioral> wow
<behavioral> do you code with the same kind of reasoning?
<behavioral> LOL
<behavioral> that would result in some funny softwarte
nettoweb has quit [Quit: nettoweb]
<behavioral> software
krzkrz has joined #ruby
flaviodesousa has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
<pipework> Anyways, he's probably just being irate and intentionally argumentative at this point. I'm glad you found what you needed.
mlpinit has quit [Remote host closed the connection]
<behavioral> it has been an instructive day for me to be honest
<behavioral> I refreshed some lost memories
<volty> when i have accounts & assets i just create accounts & assets and then go on, DIPENDING on what I have to do with them.
kofno has quit [Ping timeout: 264 seconds]
Hanmac has quit [Ping timeout: 264 seconds]
<pipework> Ah he just does it. Brilliant, why didn't I think of that? Why was I so wrapped up in creating an easily understood system that can be extended and has a separation of concerns with encapsulation of responsibility and logic? Woe is me.
pwh has quit [Remote host closed the connection]
locriani has quit [Remote host closed the connection]
cHarNe2 has quit [Quit: leaving]
pwh has joined #ruby
locriani has joined #ruby
MorbidOne has left #ruby [#ruby]
pskosinski has quit [Quit: Til rivido Idisti!]
<volty> pipework: do not pipe me with that, what are you talking about is an art, what you need for art is talent, when you have it (talent) you do it whether or not you know anything about design patterns, strategies etc etc etc
nari has quit [Ping timeout: 264 seconds]
mwmnj has joined #ruby
pkrnj has joined #ruby
<pipework> behavioral: http://i.imgur.com/szWirG6.gif
<Buuyo> design patterns are just cookbook solutions to common problems. what's wrong with using them instead of redesigning the wheel? :p
ukd1 has joined #ruby
cHarNe2 has joined #ruby
<volty> Buuyo: nothing wrong with design patterns, what was wrong was the absence of a real problem to apply whatever design pattern
<Buuyo> "over-design" ?
<volty> initializing isn't a design pattern, it is a matter of choice dipending on the real problem
<volty> Buuyo: i prefer to call it "over-talk" :)
tkuchiki has joined #ruby
<Buuyo> or the linua franca
funburn has quit [Quit: funburn]
<volty> over-talk-about-design
<pipework> He's a share-nothing sort of guy, I suppose.
<Buuyo> when I say abstract factory pattern there's no confusion about what I mean, except for by people who haven't done the bookwork.
<pipework> Or even a quick googling!
locriani has quit [Ping timeout: 264 seconds]
<Buuyo> mostly
<pipework> It's a shared nomenclature that bridges ideas with short phrases.
<volty> pipework: i share common sense :)
hashpuppy has quit [Quit: Computer has gone to sleep.]
sevenseacat has joined #ruby
rickmasta has joined #ruby
funburn has joined #ruby
krzkrz has quit [Quit: krzkrz]
krzkrz has joined #ruby
<pipework> Like if I said, "Distributed service oriented architecture" it's similar to saying "triple half-caff venti two pumps sugar free hazelnut two pumps toffee nut lactaid one hundred eighty degree extra foamy caramel drizzle on the top and bottom caramel macchiato"
<Buuyo> or "headache"
<pipework> You'd say, "No, just give me the instructions on how to make it."
Lewix has joined #ruby
funburn has quit [Client Quit]
<volty> pipework: do not sideway with distributed services, the mine were just about your "design patterns", "strategies" on accounts & assets, without knowing what is going to be done on them
wems has quit [Ping timeout: 245 seconds]
[[thufir]] has quit [Ping timeout: 264 seconds]
<volty> just to fill data? you want to fool me? talk about design patterns for just assigning values, storing in a db (o data structures - do not be pedant)
<volty> ?
seich- has quit [Ping timeout: 240 seconds]
raul782_ has quit [Remote host closed the connection]
mwmnj has quit [Quit: Textual IRC Client: www.textualapp.com]
raul782_ has joined #ruby
<volty> design patterns, generic algorithms, templates, abstract factories .... they are all intriguing, nice, instructive, useful, .... as long as we have a problem domain (at least as an example)
<Buuyo> design patterns themselves aren't that hard to implement. it's not a matter of what's easiest, because it's all fairly easy. it's a matter of what makes sense.
Genjikyoshero has quit [Ping timeout: 264 seconds]
<Buuyo> what makes sense comes from the domain in object decomposition
bricker`LA has quit [Remote host closed the connection]
<pipework> Buuyo: He's a Programmer, motherfucker.
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Buuyo> pipework: fist bump
<pipework> Buuyo: Brofist, brogrammer bruv.
<BraddPitt> guys im finishing up the Ruby primer on rubymonk.com, what else should i move on to? I have prior programming experience btw
miskander has joined #ruby
<pipework> BraddPitt: You could stop Angelina from importing children into the U.S.
<Buuyo> BraddPitt: hands on practical learning. it's the 70 in 70/20/10 learning.
mfridh has quit [Read error: Connection reset by peer]
Xaitec has joined #ruby
<BraddPitt> why pipework didn't you see the new cover story in People on our children?
<BraddPitt> it was like a 7 page spread
<pipework> BraddPitt: No, I haven't, actually. Is it worth the read?
jamesaanderson has joined #ruby
<BraddPitt> obvi
<BraddPitt> the little asian one is really cute
pkrnj has quit [Ping timeout: 245 seconds]
<pipework> BraddPitt: My favorite ruby book for learning how ruby works is Metaprogramming Ruby. But only the first half, it talks about ruby's object model and how it 'thinks'. The second half is actually about metaprogramming, which is nifty but not as wonderful for new rubyists.
<pipework> The first half will help you think like ruby does, understand how the objects themselves behave.
<volty> You could try to convince Snowden that it isn't nice to tell the people arround the globe ...
raul782_ has quit [Ping timeout: 276 seconds]
<pipework> Understanding ruby's object model will give you a pretty solid basis to build on.
<pipework> s/basis/base/
<Buuyo> that came out of left field
darksoox has quit [Quit: Lost terminal]
<BraddPitt> ty pipework
<pipework> Cheers.
seich- has joined #ruby
<volty> I have some very dirty code (module initializers) in some sources, hope it will work in ruby 2
<BraddPitt> im loving ruby btw
<BraddPitt> almost as much as python
<Buuyo> *almost* ?
lukec has quit [Quit: lukec]
<pipework> BraddPitt: Python is a great educational language.
<volty> better lisp (as for educational)
<volty> ahah
<pipework> It's what I teach people who are new to programming.
<BraddPitt> thankfully most unis are starting to do the same
pkrnj has joined #ruby
<BraddPitt> i learned programming with java
<BraddPitt> taught myself python and js after that
<BraddPitt> now learning ruby
<volty> the python univ mafia ! ahah
<pipework> Javascript was my first language. I love thinking in prototypal languages.
<BraddPitt> its interesting
<BraddPitt> i like OO though
<Buuyo> my first language was corel script. it was pretty depressing.
<behavioral> javascript is a hard paradigm
<Buuyo> ;)
<behavioral> my first language was pascal
<Boohbah> my first language was LOGO
gyre007 has quit [Remote host closed the connection]
<Boohbah> a LISP dialect
<sevenseacat> mine was perl. lulz.
<volty> I like OO too - the two's remember me of milking ...
<Buuyo> oo's great. only two letters to remember the acronyms for
<Boohbah> .downcase.capitalize
<volty> my first was fortran, then pascal, then machine, then assembler, then c++, then dirty dbase ...
<behavioral> volty amazing.....
<Buuyo> what, no punch cards?
<behavioral> volty how you load data to a register in x86 assembler?
fgo has joined #ruby
<volty> machine was interesting, i got my sinclair spectrum, didn't know i had assembler and did mastermind in machine code
<volty> behavioral: who can remember that, i'm quite old, LOAD AH, 0x08
<pipework> behavioral: Very carefully?
<volty> the ugly bacic too - of course, who didn
<Buuyo> behavioral: to be fair, that question presumes it was x86 and not vax-11 or something.
<volty> 't?
fourq__ has joined #ruby
<behavioral> pdp
<behavioral> Buuyo he is old, so it must have been PDP
<volty> naaa, that old but didn't on pdp :)
<pipework> I'm not really into adversarial nonsense, let's talk about handling distributed transactions in a service-oriented architecture!
<pipework> It's hard. :(
<Buuyo> sounds like homework :/
<behavioral> pipework what are the constraints?
wmoxam has quit [Quit: Lost terminal]
<behavioral> is consistency required?
<pipework> behavioral: Trying to figure out if it's the responsibility of the invoking service to handle it, or if there's a way to bake it into the architecture. :(
<volty> the teacher! my wife is a teacher, and so ... breaking eggs - a professional deformation
lyanchih has joined #ruby
<cHarNe2> hi guys, im having issues with file-encodings. got log-files i would like to parse, but all i get is "invalid byte sequence in UTF-8 (ArgumentError)" any one konws what i should do?
mengu has quit [Quit: This computer has gone to sleep]
Nisstyre has quit [Quit: Leaving]
<pipework> cHarNe2: Open the file using the encoding that the contents of the file uses?
<pipework> ASCII-8BIT maybe?
ixti has quit [Quit: WeeChat 0.4.1]
buzzybron has joined #ruby
<volty> not utf-8 or not properly encoder (or corrupted)
<volty> s/encoder/encoded/
yoshie902a has quit [Quit: yoshie902a]
<behavioral> pipework would a message bus be applicable to your transaction problem?
rickmasta has quit [Quit: Leaving...]
<volty> you are so intellingent and handsome!
<cHarNe2> file -bi says text/plain; charset=us-ascii
<behavioral> perhaps the transactions are posted to a queue and the nodes participating in the transactions are dequeuing and posting results
pkrnj has quit [Ping timeout: 246 seconds]
<pipework> behavioral: It could, as a service. Yeah. But how do I manage rollbacks?
<behavioral> you need to keep start state
<volty> implementing a state machine
slyv has joined #ruby
<behavioral> can you clone the original object and apply the transaction and if successful you can commit it
<behavioral> ?
Davey_ is now known as Davey
<pipework> So each service needs to be able to undo operations, or the message bus should be able to queue new operations to undo all previously done operations in a way that the services involved can consume?
nanoxd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<goleldar> do you guys prefer using an options hash vs local variables?
stonevil has joined #ruby
<goleldar> I am making a search method that searches a hash
nanoxd has joined #ruby
<behavioral> I don't think the message bus should know that business logic
pkrnj has joined #ruby
<pipework> goleldar: It depends on the interface of the method.
<volty> hash is always better
<goleldar> ok
<volty> more extandable
<Buuyo> behavioral, pipework: have you guys looked at how java does it? (hate to ask)
<pipework> Buuyo: I don't know how java does it.
<Buuyo> they have a transaction manager that is responsible for giving the final say as to whether the distributed task should commit or rollback
<goleldar> how do I get it to return errors if required keys are not present
digital-ghost has quit [Remote host closed the connection]
snovak has joined #ruby
<pipework> My types of messages are based off of unicast, anycast, multicast, and broadcast.
<pipework> goleldar: Hash#fetch
<Buuyo> probably worth a look anyway. *shrug*
Woodsman has quit [Quit: HydraIRC -> http://www.hydrairc.com <- Now with extra fish!]
verto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pipework> Buuyo: Can you link me to something relevant?
banisterfiend is now known as banister`sleep
<pipework> I'll check it out. Mind that the services might be on a wholly different network, machine, or process.
<Buuyo> i'll see if I can find something.
Astral_ has quit [Ping timeout: 264 seconds]
raul782_ has joined #ruby
<volty> do the rollbacks on single nodes imply rollbacks on other ones?
hogeo has quit [Remote host closed the connection]
<Buuyo> in a distributed transaction system, it would have to
<pipework> I either need to impose some kind of undo-like interface, or a way to test without applying the operation on the service.
<goleldar> pipework, thanks!
<goleldar> pretty cool class method that returns errors
hogeo has joined #ruby
froy has joined #ruby
<pipework> goleldar: Yeah, you can do a lot with Hash#fetch. I use it all the time to set defaults and return ArgumentErrors and the such.
<behavioral> pipework why would you care about the mode of you packet communication for such a thing?
<pipework> behavioral: It's not so much packet-level as types of messages you can send.
raul782_ has quit [Remote host closed the connection]
<volty> then they have to talk between them, to syncronize
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
stonevil has quit [Ping timeout: 276 seconds]
<behavioral> well this would go away in message bus
raul782_ has joined #ruby
gh has joined #ruby
<pipework> behavioral: The invoking service would probably use unicast to the message bus service.
ColKurtz has quit [Quit: Textual IRC Client: www.textualapp.com]
<behavioral> lets say you use rabbit or zeroMQ, you could have channels and nodes can subscribe to multiple channels
snovak has quit [Ping timeout: 245 seconds]
nari has joined #ruby
<behavioral> yes but why would you care about this?the driver would handle the connectivity and it itself would leave the mode up to the kernel
<behavioral> you are not talking about building your own message bus are you?
enjoi has quit [Ping timeout: 260 seconds]
<volty> common sense: decouple, do not think about many things at the same time // since you have a much bigger problem (commit, rollbacks etc) implement in a whatever way and go on - so that you can rollback yourself (give up ) :)
<volty> i mean "implement the communication in whatever way"
<pipework> behavioral: I'm leaving the implementation up to the service implementor. This is a system of services without any forced things like "it uses zeromq"
funburn has joined #ruby
<pipework> I'm going to provide packages services to use though.
danman has joined #ruby
kofno has joined #ruby
funburn has quit [Client Quit]
danman has quit [Remote host closed the connection]
<pipework> So if I had a message bus service, it could use zeromq, and it could take messages that describe the transaction.
pkrnj has quit [Ping timeout: 264 seconds]
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
raul782_ has quit [Ping timeout: 240 seconds]
kizzx2 has joined #ruby
gh has quit [Quit: Leaving]
aarkerio has joined #ruby
<Buuyo> pipework: I'm having trouble finding good literature. Oddly enough, this stackoverflow question itself is quite informative: http://stackoverflow.com/questions/9795677/how-to-design-global-distributed-transactionnone-database-can-jta-use-for-non
pkrnj has joined #ruby
Lewix has quit [Remote host closed the connection]
<Buuyo> TaskA is your distributed transaction, the subtasks are teh rollback capable parts of the distributed transaction.
DanKnox_away is now known as DanKnox
St_Marx has joined #ruby
<pipework> behavioral: From the first sentence, I think he's asking the same thing.
locriani has joined #ruby
thesheff17 has quit [Ping timeout: 264 seconds]
<volty> you ppl are so advanced, cannot follow you anymore since here's 3:30
<pipework> Buuyo: ^
elnormous has joined #ruby
aarkerio has left #ruby [#ruby]
<volty> Buuyo: your question isn't stated in a clean manner. You are going to understand your prob. much better if you state it in a state-of-the-art language. Believe me. Bye
volty has quit [Quit: Konversation terminated!]
aarkerio has joined #ruby
<sevenseacat> lol
<Buuyo> must be a pretty lonely fellow. :)
Xaitec has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
mary5030 has joined #ruby
<aarkerio> hi! what "check freeze container" means in boolean.frozen? method?
kilophoton has quit [Ping timeout: 264 seconds]
<behavioral> means you can't make changes to it
<behavioral> if it is frozen, you can't change it
<behavioral> so if you try to write to it you will raise an exception
mary5030 has quit [Remote host closed the connection]
robovirtuoso has joined #ruby
pkrnj has quit [Ping timeout: 264 seconds]
Xaitec has joined #ruby
raul782_ has joined #ruby
<pipework> So I think the impact is that a service should either support a rollback functionality itself or at least the ability to issue a message equivalent to a delete?
<aarkerio> but foo = false foo.freeze foo=true works
<pipework> aarkerio: The variable isn't frozen, the value is.
[[thufir]] has joined #ruby
jackjackdrpr has quit [Quit: Leaving.]
rcosta has quit [Remote host closed the connection]
pkrnj has joined #ruby
ravster has quit [Quit: Leaving.]
i_s has quit [Remote host closed the connection]
<Buuyo> pipework: the rollback functionality itself is best. have you read much about 2pc, acp or x/open xa ?
mary5030 has joined #ruby
gyre007 has joined #ruby
endash has joined #ruby
<pipework> Buuyo: Still reading. I'm trying to keep the interface services must implement pretty low.
kobain_ has joined #ruby
kobain has quit [Ping timeout: 256 seconds]
<pipework> I'm thinking that they'd either implement the interface to rollback or respond with some message saying "I can't you let you do that, Dave."
<pipework> Not literally though, just something saying it's not implemented.
C0deMaver1ck has quit [Ping timeout: 246 seconds]
sarkis has joined #ruby
<Buuyo> When are you envisioning the hal9000 refusal occurring?
<Buuyo> one of those things where you poll the service to figure out whether the distributed transaction will fail in advance of the transaction?
<pipework> Buuyo: You know, I hadn't thought about it. Either before the transaction takes place or during?
<Buuyo> well, if it happens "during" the transaction, previous steps in the transaction need to be rolled back
<Buuyo> and if it happens before the transaction, it sounds a lot like fortune telling to me.
krzkrz has quit [Quit: krzkrz]
robovirtuoso has quit [Ping timeout: 260 seconds]
kobain_ is now known as kobain
rdxc has quit [Quit: Textual IRC Client: www.textualapp.com]
mary5030 has quit [Remote host closed the connection]
iliketur_ has quit [Quit: zzzzz…..]
havenwood has quit [Ping timeout: 240 seconds]
goodcodeguy has joined #ruby
andbutsothen has quit [Quit: andbutsothen]
gyre007 has quit [Ping timeout: 264 seconds]
andbutsothen has joined #ruby
BSaboia has quit [Ping timeout: 245 seconds]
gr33n7007h has quit [Ping timeout: 240 seconds]
seich- has quit [Ping timeout: 240 seconds]
thesheff17 has joined #ruby
kilophoton has joined #ruby
andbutsothen has quit [Client Quit]
<BraddPitt> is nil considered an object ?
efrainolivares has quit [Quit: efrainolivares]
viszu has joined #ruby
andbutsothen has joined #ruby
pwh has quit [Quit: pwh]
Lewix has joined #ruby
<sevenseacat> everything in ruby is an object.
<pipework> Not everything!
<sevenseacat> nil is an object of class NilClass.
<Buuyo> what does nil.instance_of? Object
<pipework> Arguments are composed of objects, but the argument isn't an object itself.
<pipework> But other than that, everything is an object.
<BraddPitt> right, just checking, thanks
<pipework> BraddPitt: Yeah, nil is an object.
<pipework> It's a singleton of NilClass
gr33n7007h has joined #ruby
cantonic has joined #ruby
starship has joined #ruby
<Buuyo> irb(main):003:0> nil.instance_of? Object => false
<Buuyo> that bothers me. :(
seich- has joined #ruby
slyv has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rym has quit [Remote host closed the connection]
enjoi has joined #ruby
Xaitec has quit [Read error: Connection reset by peer]
Rym has joined #ruby
<Buuyo> whoops. .is_a? I'm having an off night. :p
philcrissman_ has joined #ruby
<pipework> I like the way #kind_of? reads.
BRMatt has quit [Ping timeout: 264 seconds]
krzkrz has joined #ruby
krzkrz has quit [Client Quit]
andbutsothen has quit [Quit: andbutsothen]
andbutsothen has joined #ruby
andbutsothen has quit [Client Quit]
akells has joined #ruby
krzkrz has joined #ruby
krzkrz has quit [Client Quit]
aarkerio has left #ruby ["Verlassend"]
pwh has joined #ruby
krzkrz has joined #ruby
pkrnj has quit [Ping timeout: 264 seconds]
Spami has quit [Quit: This computer has gone to sleep]
pH14 has joined #ruby
krzkrz has quit [Client Quit]
ryandeussing has quit [Remote host closed the connection]
funburn has joined #ruby
pwh has quit [Ping timeout: 264 seconds]
pkrnj has joined #ruby
zeade has quit [Quit: Leaving.]
ukd1 has quit [Ping timeout: 264 seconds]
ffranz has quit [Quit: Leaving]
IceDragon has quit [Quit: Space~~~]
goodcodeguy has quit [Quit: leaving]
goodcodeguy has joined #ruby
i_s has joined #ruby
cads has joined #ruby
funburn has quit [Client Quit]
shadoi1 has quit [Quit: Leaving.]
krzkrz has joined #ruby
<behavioral> I gotta go
<behavioral> pipework have fun
goodcodeguy has quit [Client Quit]
<pipework> behavioral: I will do my damned best, sir.
<pipework> You too, mkay?
goodcodeguy has joined #ruby
<behavioral> sure will
<behavioral> time to get some shut eye
pkrnj has quit [Ping timeout: 260 seconds]
behavioral has quit [Quit: [BX] Time wasted: all of it]
hashpuppy has joined #ruby
hashpuppy has quit [Client Quit]
crucify_me has joined #ruby
Levin_22 has joined #ruby
crucify_me has quit [Remote host closed the connection]
pkrnj has joined #ruby
Xaitec has joined #ruby
rupee has joined #ruby
i_s has quit [Ping timeout: 240 seconds]
seich- has quit [Ping timeout: 240 seconds]
miskander has quit [Quit: miskander]
jbomo has quit [Ping timeout: 260 seconds]
krzkrz has quit [Quit: krzkrz]
krz has joined #ruby
krz has quit [Changing host]
krz has joined #ruby
GeissT has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
snovak has joined #ruby
seubert has left #ruby [#ruby]
lyanchih has quit [Quit: lyanchih]
marcdel has joined #ruby
rupee has quit [Quit: Leaving]
snovak has quit [Ping timeout: 264 seconds]
randomau_ has quit [Ping timeout: 268 seconds]
philcrissman_ has quit [Remote host closed the connection]
bzitzow has quit [Ping timeout: 264 seconds]
seich- has joined #ruby
pweems has quit [Ping timeout: 276 seconds]
banister`sleep has quit [Remote host closed the connection]
banisterfiend has joined #ruby
rburton- has joined #ruby
adkron has quit [Ping timeout: 264 seconds]
lyanchih has joined #ruby
pitzips has quit [Ping timeout: 245 seconds]
x1337807x has joined #ruby
dankest has quit [Quit: dankest]
dhruvasagar has joined #ruby
Targen has quit [Ping timeout: 264 seconds]
radic_ has quit [Read error: Connection reset by peer]
radic_ has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
slyv has joined #ruby
slyv has quit [Max SendQ exceeded]
Hanmac has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
leonardo__ has joined #ruby
dhruvasagar has quit [Ping timeout: 276 seconds]
ffio has joined #ruby
lnormous has quit [Quit: Leaving]
leonardo__ has quit [Client Quit]
Monie has joined #ruby
aryaching has joined #ruby
sevenseacat has left #ruby [#ruby]
sevenseacat has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
leonardo__ has joined #ruby
greenrose1 has joined #ruby
rezzack has quit [Quit: Leaving.]
greenrose has quit [Ping timeout: 245 seconds]
markalanevans has quit [Read error: Operation timed out]
optimusprimem has quit [Disconnected by services]
nanoxd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dankest has joined #ruby
krz has quit [Quit: krz]
hiyosi has quit [Ping timeout: 245 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
krz has joined #ruby
krz has quit [Changing host]
krz has joined #ruby
optimusprimem has joined #ruby
krz has quit [Client Quit]
aryaching has quit [Quit: Bye]
krz has joined #ruby
cooldman224 has joined #ruby
krz has quit [Client Quit]
krz has joined #ruby
ksh has joined #ruby
pweems has joined #ruby
akells has quit [Remote host closed the connection]
nanoxd has joined #ruby
sayan has joined #ruby
goleldar has quit [Ping timeout: 268 seconds]
mrsolo has joined #ruby
optimusprimem has quit [Quit: Saindo]
leonardo__ has quit [Quit: Saindo]
optimusprimem has joined #ruby
optimusprimem has quit [Changing host]
optimusprimem has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
nowthatsamatt has quit [Quit: nowthatsamatt]
cooldman224 has quit [Remote host closed the connection]
starship has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
krz has quit [Quit: krz]
DanKnox is now known as DanKnox_away
krz has joined #ruby
krz has joined #ruby
krz has quit [Changing host]
krz has quit [Client Quit]
rickmasta has joined #ruby
maroloccio has quit [Ping timeout: 264 seconds]
optimusprimem has quit [Quit: Saindo]
viszu has quit [Quit: Leaving.]
Spami has joined #ruby
op has joined #ruby
op has quit [Read error: Connection reset by peer]
pkrnj has quit [Ping timeout: 245 seconds]
goleldar has joined #ruby
Spami has quit [Client Quit]
endash has quit [Quit: endash]
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
krz has joined #ruby
nowthatsamatt has joined #ruby
Animawish has quit [Quit: Animawish]
pkrnj has joined #ruby
maroloccio has joined #ruby
Lewix has quit [Remote host closed the connection]
sayan has quit [Quit: Leaving]
mrsolo has quit [Quit: This computer has gone to sleep]
Rym_ has joined #ruby
x1337807x has quit [Quit: Textual IRC Client: www.textualapp.com]
Rym has quit [Ping timeout: 264 seconds]
Rym_ is now known as Rym
jamesaanderson has joined #ruby
snovak has joined #ruby
kofno has quit [Read error: Connection reset by peer]
snovak has quit [Ping timeout: 276 seconds]
locriani has quit [Remote host closed the connection]
flughafen has quit [Quit: Lost terminal]
optimusprimem has joined #ruby
optimusprimem has joined #ruby
rickmasta has quit [Quit: Leaving...]
sambao21 has quit [Quit: Computer has gone to sleep.]
dankest has quit [Quit: dankest]
optimusprimem has quit [Client Quit]
dhruvasagar has quit [Ping timeout: 264 seconds]
optimusprimem has joined #ruby
optimusprimem has quit [Changing host]
optimusprimem has joined #ruby
caju has joined #ruby
Rym has quit [Quit: Rym]
locriani has joined #ruby
lysw123 has joined #ruby
dankest has joined #ruby
dhruvasagar has joined #ruby
apple has joined #ruby
apple is now known as Guest28199
mrsolo has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
locriani has quit [Ping timeout: 264 seconds]
Levin_22 has quit [Ping timeout: 264 seconds]
pierre1 has joined #ruby
lysw123 has quit [Remote host closed the connection]
lysw123 has joined #ruby
lysw123 has quit [Remote host closed the connection]
lysw123 has joined #ruby
lysw123 has quit [Remote host closed the connection]
lysw123 has joined #ruby
Levin_22 has joined #ruby
TechTonics has joined #ruby
r4nd0m1 has joined #ruby
Fuzai has quit [Ping timeout: 264 seconds]
KobraKao has quit [Remote host closed the connection]
forgot has left #ruby [#ruby]
<TechTonics> has anyone had any problems installing the gem arcadia?
raul782_ has quit [Remote host closed the connection]
akells has joined #ruby
<pipework> You might have a better time just describing the problem you have.
raul782_ has joined #ruby
devoldmx has joined #ruby
locriani has joined #ruby
nanoxd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<TechTonics> i have the problem of installing tcl/tk run time ...
Fuzai has joined #ruby
<TechTonics> which arcadia requires
rburton- has quit [Quit: Leaving...]
rburton- has joined #ruby
ericmathison has quit [Ping timeout: 264 seconds]
seich- has quit [Ping timeout: 240 seconds]
Alina-malina has joined #ruby
rickmasta has joined #ruby
goodcodeguy has quit [Quit: leaving]
parzo has joined #ruby
braincrash has joined #ruby
raul782_ has quit [Ping timeout: 264 seconds]
fourq_ has quit [Ping timeout: 264 seconds]
DanKnox_away is now known as DanKnox
ner0x has quit [Quit: Leaving]
pkrnj has quit [Ping timeout: 276 seconds]
quazimodo has quit [Ping timeout: 268 seconds]
ryandeussing has joined #ruby
pkrnj has joined #ruby
Banistergalaxy has quit [Ping timeout: 260 seconds]
Banistergalaxy has joined #ruby
jbomo has joined #ruby
<TechTonics> trying to recompile ruby after compiling tcl/tk and there's no change ..
braincra- has quit [Ping timeout: 268 seconds]
lyanchih has quit [Quit: lyanchih]
sarkis has quit [Quit: leaving]
seich- has joined #ruby
caju has quit [Remote host closed the connection]
eldariof has joined #ruby
ryandeussing has quit [Ping timeout: 264 seconds]
nowthatsamatt has quit [Quit: nowthatsamatt]
elnormous has quit [Ping timeout: 276 seconds]
Levin_22 has quit [Quit: Levin_22]
freeayu has quit [Quit: This computer has gone to sleep]
cads has quit [Ping timeout: 260 seconds]
dkamioka has joined #ruby
DanKnox is now known as DanKnox_away
raul782_ has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
ewnd9 has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thesheff17 has quit [Read error: Connection reset by peer]
ffio_ has joined #ruby
fuleo has quit [Ping timeout: 264 seconds]
mulander has quit [Ping timeout: 276 seconds]
cool has quit [Ping timeout: 276 seconds]
fuleo has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
pkrnj has quit [Ping timeout: 240 seconds]
TomRone has joined #ruby
JohnTerryCFC has joined #ruby
<JohnTerryCFC> Hello
<JohnTerryCFC> Wanted to share a new programming forum/community: http://thedevshed.net/forum/
<JohnTerryCFC> Feel free to join :)
JohnTerryCFC has quit [Client Quit]
eldariof has quit [Ping timeout: 246 seconds]
<pipework> JohnTerryCFC: Can I interact with it solely through email and have access to 90% or greater of the features without using the website?
pkrnj has joined #ruby
<sevenseacat> too late, he came, he spammed, he left
mele- has joined #ruby
jamesaanderson has joined #ruby
Heero has joined #ruby
rburton- has quit [Read error: Connection reset by peer]
<TechTonics> what's the best way to totally remove
<TechTonics> ruby
<sevenseacat> depends how you installed it
JDHankle has joined #ruby
rickruby has quit [Remote host closed the connection]
parzo has quit [Remote host closed the connection]
<TechTonics> i downloaded the tar ball and ./configure make make install ..
fgo has quit [Remote host closed the connection]
freeayu has joined #ruby
rickruby has joined #ruby
<sevenseacat> oh good luck with that.
parzo has joined #ruby
<TechTonics> hmm that much fun eh ? ..
pkrnj has quit [Ping timeout: 260 seconds]
philcrissman_ has joined #ruby
BraddBitt has joined #ruby
<davidcelis> JohnTerryCFC needs to learn to listserv
luckyruby has joined #ruby
<davidcelis> my god, he's using vBulletin?
<davidcelis> what is this, the fucking 90s?
BraddPitt has quit [Ping timeout: 264 seconds]
[[thufir]] has quit [Remote host closed the connection]
<TechTonics> /join #ubuntu
<luckyruby> How come Date#commercial takes in 1..7 but Date#wday outputs 0..6?
pkrnj has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
snovak has joined #ruby
ffio has quit [Ping timeout: 264 seconds]
kofno has joined #ruby
ericmathison has joined #ruby
<pipework> davidcelis: TIL that ruby and perl are so alike, but python stands on its own
kidoz has quit [Quit: Ухожу я от вас]
ksh has quit [Ping timeout: 240 seconds]
DrCode has quit [Ping timeout: 240 seconds]
end_guy has quit [Ping timeout: 240 seconds]
snovak has quit [Ping timeout: 264 seconds]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
nanoxd has joined #ruby
justsee has left #ruby [#ruby]
kofno has quit [Ping timeout: 276 seconds]
yacks has quit [Quit: Leaving]
Heero has quit [Quit: Leaving]
BillCriswell has joined #ruby
DrCode has joined #ruby
jonahR has joined #ruby
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
tomzx_mac has quit [Ping timeout: 240 seconds]
ericthegreen has joined #ruby
JohnBat26 has joined #ruby
end_guy has joined #ruby
pierre1 has quit [Quit: Leaving]
lukec has joined #ruby
pH14 has quit [Remote host closed the connection]
JohnTerryCFC has joined #ruby
<JohnTerryCFC> Hello!
<JohnTerryCFC> Wanted to share a new programming forum/community: http://thedevshed.net/forum/
<JohnTerryCFC> Feel free to join :)
<pontiki> oh crikey
pwh has joined #ruby
<JohnTerryCFC> Needless to say that there is obv a Ruby section... :P
<pontiki> JohnTerryCFC: stop spamming
<buzzybron> is there a johnterry section?
mrsolo has joined #ruby
ericthegreen has quit [Quit: Leaving.]
ericthegreen has joined #ruby
<JohnTerryCFC> lolz
<JohnTerryCFC> this anin't no spam
<pipework> Stop advertizing. :)
<JohnTerryCFC> it's more like letting know
dhruvasagar has joined #ruby
pkrnj has quit [Ping timeout: 245 seconds]
yacks has joined #ruby
<JohnTerryCFC> Don't worry
<buzzybron> i am doing this > sql = "select bla bla where col = #{some_var}" to prepare a sql statement, but the contents of some_var actually have some quotes and this causes my satement to return error, how can i fix it?
JohnTerryCFC has quit [Client Quit]
Targen has joined #ruby
browndawg has joined #ruby
pkrnj has joined #ruby
<ericthegreen> @buzzybron: why are you not using ?-style parameters? #{some_var} is a fabulous way to facilitate SQL injection attacks.
locriani has quit [Remote host closed the connection]
ksh has joined #ruby
locriani has joined #ruby
locriani has quit [Read error: Connection reset by peer]
locriani has joined #ruby
pkrnj has quit [Ping timeout: 260 seconds]
ericthegreen has left #ruby [#ruby]
tvw has joined #ruby
locriani has quit [Ping timeout: 264 seconds]
rickruby has quit [Remote host closed the connection]
pkrnj has joined #ruby
pen has joined #ruby
mansi has joined #ruby
ewnd9 has quit [Ping timeout: 240 seconds]
quazimod1 has joined #ruby
_ffio_ has joined #ruby
ffio_ has quit [Ping timeout: 264 seconds]
mansi has quit [Ping timeout: 240 seconds]
nitish has quit [Remote host closed the connection]
stonevil has joined #ruby
raul782_ has left #ruby [#ruby]
pkrnj has quit [Ping timeout: 245 seconds]
kizzx2 has quit [Quit: Leaving.]
timonv has joined #ruby
JDHankle has quit [Remote host closed the connection]
seich- has quit [Ping timeout: 240 seconds]
pkrnj has joined #ruby
stonevil has quit [Ping timeout: 245 seconds]
sparq_ has joined #ruby
sparq_ has quit [Read error: Connection reset by peer]
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
ndrei has joined #ruby
JDHankle has joined #ruby
lyanchih has joined #ruby
lukec has quit [Quit: lukec]
TechTonics has quit [Quit: Leaving]
hogeo has quit [Ping timeout: 276 seconds]
hogeo has joined #ruby
seich- has joined #ruby
lysw123 has quit [Quit: lysw123]
_ffio_ has quit [Quit: WeeChat 0.4.1]
relix has joined #ruby
Monie has joined #ruby
locriani has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
RichardBaker has joined #ruby
dhruvasagar has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
marsLantern has joined #ruby
timonv has quit [Remote host closed the connection]
pkrnj has quit [Ping timeout: 260 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freeayu has quit [Read error: Connection reset by peer]
soba has joined #ruby
gstamp has quit [Quit: Computer has gone to sleep.]
quazimod1 has quit [Ping timeout: 245 seconds]
rickruby has joined #ruby
freeayu has joined #ruby
gstamp has joined #ruby
goleldar has quit [Ping timeout: 264 seconds]
pkrnj has joined #ruby
lukec has joined #ruby
ananthakumaran has joined #ruby
snovak has joined #ruby
amacgregor_ has joined #ruby
lyanchih has quit [Quit: lyanchih]
amacgregor has quit [Ping timeout: 264 seconds]
lukec has quit [Client Quit]
michaeldeol has joined #ruby
kofno has joined #ruby
pkrnj has quit [Ping timeout: 264 seconds]
gr33n7007h has quit [Ping timeout: 260 seconds]
rickruby has quit [Ping timeout: 246 seconds]
jamesaanderson has joined #ruby
fixl has joined #ruby
snovak has quit [Ping timeout: 245 seconds]
pkrnj has joined #ruby
jamesaanderson has quit [Client Quit]
kizzx2 has joined #ruby
gr33n7007h has joined #ruby
jamesaanderson has joined #ruby
rickmasta has quit [Quit: Leaving...]
timonv has joined #ruby
kofno has quit [Ping timeout: 264 seconds]
jamesaanderson has quit [Client Quit]
nfk has joined #ruby
philcrissman_ has quit [Remote host closed the connection]
bluOxigen has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blueOxigen has joined #ruby
goleldar has joined #ruby
bluOxigen has quit [Ping timeout: 245 seconds]
jamesaanderson has joined #ruby
kizzx2 has quit [Ping timeout: 260 seconds]
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
pkrnj has quit [Ping timeout: 276 seconds]
axeman- has joined #ruby
pen has quit [Read error: Connection reset by peer]
jamesaanderson has quit [Client Quit]
pen has joined #ruby
pkrnj has joined #ruby
braoru has joined #ruby
Ripp__ has quit [Ping timeout: 240 seconds]
michaeldeol has quit [Remote host closed the connection]
Kelet has joined #ruby
soba has quit [Ping timeout: 276 seconds]
ananthakumaran has quit [Quit: Leaving.]
gr33n7007h has quit [Ping timeout: 245 seconds]
gr33n7007h has joined #ruby
locriani has quit [Read error: Connection reset by peer]
locriani_ has joined #ruby
ryandeussing has joined #ruby
crus has quit [Read error: Connection reset by peer]
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
timonv has quit [Remote host closed the connection]
kizzx2 has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
soba has joined #ruby
osvico has quit [Ping timeout: 245 seconds]
blueOxigen has quit [Read error: Connection reset by peer]
jamesaanderson has joined #ruby
soba_ has joined #ruby
bluOxigen has joined #ruby
ryandeussing has quit [Ping timeout: 260 seconds]
soba has quit [Ping timeout: 245 seconds]
altamic has joined #ruby
iliketur_ has joined #ruby
seich- has quit [Ping timeout: 240 seconds]
stayarrr has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rickmasta has joined #ruby
JDHankle has quit [Remote host closed the connection]
browndawg has quit [Read error: Connection timed out]
browndawg has joined #ruby
seich- has joined #ruby
tagrudev has joined #ruby
quazimodo has joined #ruby
jamesaanderson has joined #ruby
pwh has quit [Quit: pwh]
ndrei has quit [Ping timeout: 260 seconds]
pkrnj has quit [Ping timeout: 245 seconds]
Lewix has joined #ruby
Lewix has joined #ruby
ayaz has joined #ruby
postmodern has quit [Quit: Leaving]
postmodern has joined #ruby
pkrnj has joined #ruby
rickmasta has quit [Quit: Leaving...]
aryaching has joined #ruby
mulander has joined #ruby
cool has joined #ruby
Bry8Star{T2 has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
altamic has quit [Quit: altamic]
blandflakes has quit [Quit: Page closed]
yacks has quit [Quit: Leaving]
ndrei has joined #ruby
mydog2 has joined #ruby
ananthakumaran has joined #ruby
gr33n7007h has quit [Ping timeout: 264 seconds]
locriani_ has quit [Ping timeout: 246 seconds]
postmodern has quit [Quit: Leaving]
postmodern has joined #ruby
postmodern has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
rickruby has joined #ruby
postmodern has joined #ruby
nextdropping has joined #ruby
tater has left #ruby [#ruby]
<mydog2> morning
gr33n7007h has joined #ruby
gr33n7007h has quit [Max SendQ exceeded]
akells has quit [Remote host closed the connection]
n1x has joined #ruby
nixmaniack has joined #ruby
gr33n7007h has joined #ruby
gr33n7007h has quit [Max SendQ exceeded]
tvw has quit []
rickruby has quit [Ping timeout: 260 seconds]
gr33n7007h has joined #ruby
snovak has joined #ruby
gr33n7007h has quit [Max SendQ exceeded]
iam has joined #ruby
nixmaniack has quit [Read error: Connection reset by peer]
gr33n7007h has joined #ruby
haxrbyte has joined #ruby
n1x has quit [Remote host closed the connection]
iam has quit [Remote host closed the connection]
pkrnj has quit [Ping timeout: 276 seconds]
gr33n7007h has quit [Max SendQ exceeded]
apeiros has quit [Remote host closed the connection]
pranny has joined #ruby
gr33n7007h has joined #ruby
pkrnj has joined #ruby
kofno has joined #ruby
gr33n7007h has quit [Max SendQ exceeded]
adrenaline_ has quit [Remote host closed the connection]
rickmasta has joined #ruby
lyanchih has joined #ruby
gr33n7007h has joined #ruby
gr33n7007h has quit [Max SendQ exceeded]
workmad3 has joined #ruby
iliketur_ has joined #ruby
haxrbyte has quit [Remote host closed the connection]
gr33n7007h has joined #ruby
iliketur_ has quit [Max SendQ exceeded]
dhruvasagar has quit [Ping timeout: 240 seconds]
haxrbyte has joined #ruby
snovak has quit [Ping timeout: 264 seconds]
gr33n7007h has quit [Max SendQ exceeded]
iliketur_ has joined #ruby
iliketur_ has quit [Max SendQ exceeded]
mrsolo has quit [Quit: Leaving]
<mydog2> anyone ever installed an instance of the "spot-us" crowdfunding app?
txdv has quit [Ping timeout: 260 seconds]
<pipework> I don't even know what it is.
gr33n7007h has joined #ruby
s0ny123 has joined #ruby
dhruvasagar has joined #ruby
gr33n7007h has quit [Max SendQ exceeded]
Spami has quit [Quit: This computer has gone to sleep]
gr33n7007h has joined #ruby
kofno has quit [Ping timeout: 276 seconds]
antulik has joined #ruby
<mydog2> pipework, - https://github.com/spot-us/spot-us <<
gr33n7007h has quit [Max SendQ exceeded]
<pipework> hm
<sevenseacat> mmm rails 2
gr33n7007h has joined #ruby
gr33n7007h has quit [Max SendQ exceeded]
<mydog2> i'm not a ruby/rails guy at all. but i'm trying to get an understanding of how/what's required to get an instance up/running..
<abrkn> whats a shorter way to write this: admin_ip = search(:node, 'role:admin').first ? search(:node, 'role:admin').first[:ipaddress] : nil
<mydog2> and i can't find an install doc/article anywhere
gr33n7007h has joined #ruby
<sevenseacat> there are notes on installation there
<sevenseacat> though its rails 2 so you'll need ruby and rails setup already
elnormous has joined #ruby
pkrnj has quit [Ping timeout: 246 seconds]
<mydog2> sevenseacat, - i saw the notes.. but i've also heard some others say you need a lot more than just those few notes
parzo has quit [Remote host closed the connection]
pen has quit [Remote host closed the connection]
<mydog2> i've got a test linux/fedora platform
jds_ has joined #ruby
<mydog2> it's running apache/php tests. but i've never set up anything ruby/rails related
<sevenseacat> well yes, you need to know enough about ruby to set it up
<sevenseacat> and enough about the version of rails its using
<sevenseacat> you wouldnt just download a php app and expect it to magically work
<mydog2> sevenseacat, - which is why i'm looking for information
eoinkelly has quit [Quit: eoinkelly]
<mydog2> which is why i asked if anyone has done this
iliketur_ has joined #ruby
pkrnj has joined #ruby
michaeldeol has joined #ruby
Lewix has joined #ruby
Lewix has quit [Changing host]
Lewix has joined #ruby
amacgregor has joined #ruby
amacgregor__ has joined #ruby
aces1up has joined #ruby
Guest11161 has quit [Ping timeout: 256 seconds]
amacgregor_ has quit [Ping timeout: 264 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<aces1up> if i create and exception like myerr = MyException.new err.message, err.backtrace, can i then do raise myerr ?
persand has joined #ruby
digifiv5e has joined #ruby
digifiv5e is now known as Guest79056
Mon_Ouie has joined #ruby
amacgregor has quit [Ping timeout: 246 seconds]
workmad3 has quit [Ping timeout: 245 seconds]
decoponio has joined #ruby
aganov has joined #ruby
michaeldeol has quit [Ping timeout: 246 seconds]
dagobah has joined #ruby
BillCriswell has quit [Remote host closed the connection]
seich- has quit [Ping timeout: 240 seconds]
mansi has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
filipe has joined #ruby
aces1up has quit []
rickmasta has quit [Quit: Leaving...]
noopq has quit [Ping timeout: 245 seconds]
browndawg has quit [Read error: Connection timed out]
druonysus has joined #ruby
mansi has quit [Ping timeout: 245 seconds]
browndawg has joined #ruby
druonysus has quit [Client Quit]
druonysuse has joined #ruby
pkrnj has quit [Ping timeout: 276 seconds]
ahawkins has joined #ruby
s0ny123 has quit [Quit: Lost terminal]
dangerousdave has joined #ruby
zavier has quit [Quit: WeeChat 0.4.0]
seich- has joined #ruby
Senjai has quit [Ping timeout: 264 seconds]
pkrnj has joined #ruby
Targen has quit [Ping timeout: 245 seconds]
dhruvasagar has quit [Ping timeout: 264 seconds]
srji has joined #ruby
dodosan has joined #ruby
allanm_ has quit [Read error: Connection reset by peer]
allanm_ has joined #ruby
jbomo has quit [Ping timeout: 264 seconds]
<srji> i'm looking for an ruby/osx interface. my ruby script should get the currently played itunes song, but i don't want to write macruby script
filipe has quit [Ping timeout: 245 seconds]
jarray52 has left #ruby [#ruby]
<hoelzro> srji: there's probably something better than this, but you could shell out to applescript
dodosan has quit [Read error: No route to host]
lunarjar has joined #ruby
dodosan has joined #ruby
Lewix has quit [Remote host closed the connection]
r4nd0m1 has quit [Excess Flood]
wallerdev has quit [Quit: wallerdev]
mele- has quit [Quit: Linkinus - http://linkinus.com]
<srji> i thought about applescript, but i hoped it is possilble to only use ruby
r4nd0m1 has joined #ruby
mfridh has joined #ruby
stonevil has joined #ruby
kilophoton has quit [Ping timeout: 276 seconds]
<jrobeson> i know nothing about this macs. not at all.. but is such stuff exposed over growl?
dhruvasagar has joined #ruby
<srji> i dont want to use a third party library
<jrobeson> well have fun then
locriani has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
<srji> i should be a small, tiny ruby script, which prints out the currently played song
<srji> s/i/it
<jrobeson> and it would be.. if you used a library
<jrobeson> otherwise.. who knows whawt crap you have to go through
dash_ has joined #ruby
Ripp__ has joined #ruby
rickruby has joined #ruby
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
filipe has joined #ruby
senayar has joined #ruby
lurch_ has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alup has joined #ruby
gstamp has quit [Quit: Computer has gone to sleep.]
blackmesa has joined #ruby
jds_ has quit [Remote host closed the connection]
snovak has joined #ruby
<user258467> Hi, is there a lib in ruby which parse a string and output its type
tonni has joined #ruby
funburn has joined #ruby
<user258467> '125' Int, 'foo' String, '2013-08-30' DateTime
<jrobeson> its type?
<jrobeson> oh
kofno has joined #ruby
kaspergrubbe has joined #ruby
funburn has quit [Client Quit]
snovak has quit [Ping timeout: 260 seconds]
gr33n7007h has quit [Ping timeout: 264 seconds]
relix has joined #ruby
kofno has quit [Ping timeout: 240 seconds]
marcgg has joined #ruby
ryandeussing has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
Dave has joined #ruby
Xeago has joined #ruby
Dave is now known as Guest52603
akells has joined #ruby
dankest has quit [Quit: Peace]
parzo has joined #ruby
tvw has joined #ruby
Gonzih has joined #ruby
gr33n7007h has joined #ruby
pranny has quit [Quit: Leaving.]
pskosinski has joined #ruby
ryandeussing has quit [Ping timeout: 264 seconds]
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
Lewix has joined #ruby
akells has quit [Ping timeout: 245 seconds]
noop has joined #ruby
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
pranny has joined #ruby
noop has quit [Read error: Connection reset by peer]
noopq has joined #ruby
KensoDev has joined #ruby
filipe has quit [Ping timeout: 240 seconds]
r4nd0m1 has quit [Ping timeout: 245 seconds]
allsystemsarego has joined #ruby
r4nd0m1_ has joined #ruby
allsystemsarego has quit [Changing host]
allsystemsarego has joined #ruby
noop has joined #ruby
noopq has quit [Ping timeout: 260 seconds]
andikr has joined #ruby
wems has joined #ruby
ewnd9 has joined #ruby
Lewix has quit [Ping timeout: 264 seconds]
Advocation has joined #ruby
troessner has joined #ruby
michaeldeol has joined #ruby
jonkri has joined #ruby
locriani has quit [Ping timeout: 264 seconds]
r0bglees0n has quit [Ping timeout: 264 seconds]
marcgg has quit [Remote host closed the connection]
parzo has quit [Remote host closed the connection]
dagobah has quit [Remote host closed the connection]
dagobah has joined #ruby
marcgg has joined #ruby
puppeh has joined #ruby
noop is now known as noopq
aiguu has joined #ruby
<aiguu> ̷̴̐خ ̷̴̐خ ̷̴̐خ امارتيخ ̷̴̐خ poof!
dagobah has quit [Remote host closed the connection]
marcgg has quit [Remote host closed the connection]
tonni has quit [Remote host closed the connection]
stonevil has quit [Remote host closed the connection]
puppeh has quit [Remote host closed the connection]
kaspergrubbe has quit [Remote host closed the connection]
russt has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
KensoDev has quit [Remote host closed the connection]
dodosan has quit [Remote host closed the connection]
rickruby has quit [Remote host closed the connection]
lurch_ has quit [Remote host closed the connection]
<aiguu> bye
dagobah has joined #ruby
sr78ger has joined #ruby
marcgg has joined #ruby
tonni has joined #ruby
michaeldeol has quit [Ping timeout: 260 seconds]
<aiguu> ̷̴̐خ ̷̴̐خ ̷̴̐خ امارتيخ ̷̴̐خ disappear!
dagobah has quit [Remote host closed the connection]
marcgg has quit [Remote host closed the connection]
tonni has quit [Remote host closed the connection]
<jrobeson> that's not very nice.
<jrobeson> stop doing that
senayar has joined #ruby
puppeh has joined #ruby
mansi has joined #ruby
marcgg has joined #ruby
aiguu has left #ruby [#ruby]
rickruby has joined #ruby
nomenkun has joined #ruby
tonni has joined #ruby
jibi has joined #ruby
<Nilium> Some people are immense tools. That guy is one of 'em.
seich- has quit [Ping timeout: 240 seconds]
<puppeh> tried entering a Time.now field in mongodb using the official driver but it gets stored as utc
<puppeh> (ie. it's 2 hours behind)
blaxter_ has joined #ruby
jds_ has joined #ruby
timonv has joined #ruby
filipe has joined #ruby
mansi has quit [Ping timeout: 246 seconds]
pipework has quit [Remote host closed the connection]
apeiros has joined #ruby
aiguu has joined #ruby
pipework has joined #ruby
aiguu has left #ruby [#ruby]
seich- has joined #ruby
niko has joined #ruby
mikecmpbll has joined #ruby
nextdropping_ has joined #ruby
codecop has joined #ruby
elnormous has quit [Ping timeout: 264 seconds]
blaxter_ has quit [Ping timeout: 264 seconds]
nextdropping has quit [Ping timeout: 260 seconds]
antulik has quit [Remote host closed the connection]
antulik has joined #ruby
echevemaster has quit [Quit: Leaving]
dash_ has quit [Ping timeout: 240 seconds]
kaspergrubbe has joined #ruby
r0bglees0n has joined #ruby
Matriks has joined #ruby
dash_ has joined #ruby
shellox has joined #ruby
<shellox> hi
<shellox> how do you do mkdir -p '/tmp/{1,2,3} in ruby?
<Xeago> shellox: you mean by using ruby API's or by shelling out?
<shellox> using FileUtils.mkdir_p '/tmp/ '
<shellox> Xeago: directly with ruby
<shellox> can i pass an array to the command?
druonysuse has quit [Ping timeout: 260 seconds]
<shellox> with doing ['foo','bar'].each do |e| etc. ?
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
<Hanmac> shellox: ri says: "You can pass several directories at a time in a list."
<shellox> Hanmac: yeah, i saw that, i just fail at the syntax atm
<Hanmac> FileUtils.mkdir_p [1,2,3].map {|i| "/tmp/#{i}" }
<Xeago> shellox: reading the documentation you can simply do FileUtils.mkdir_p '/path/here', '/another/path/here'
hamakn has quit [Remote host closed the connection]
<shellox> Xeago: yeah, i want to create /tmp/1 /tmp/2 /tmp/3 for example
<apeiros> what Hanmac said, or in this special case: FileUtils.mkdir *"tmp/1".."tmp/3"
<shellox> Fileutils.mkdir_p '/tmp/1' /tmp/2' seems like a duplicate somehow. better would be FileUtils.mkdir_p '/tmp/{1,2}' or so
<shellox> but this doesn't work apparently
gr33n7007h has quit [Ping timeout: 260 seconds]
noopq has quit [Read error: Connection reset by peer]
noopq has joined #ruby
<Xeago> you might be able to get some globbing expansion function from somewhere
blaxter_ has joined #ruby
<Xeago> but I doubt you would want that
<shellox> Xeago: yeah, and passing to the shell doesn't look very clean either
<Xeago> hanmac's map is reasonably clean
seich- has quit [Ping timeout: 240 seconds]
MrZYX|off is now known as MrZYX
<shellox> Hanmac: sorry, too small screen today :/ Didn't see your map..
kobain has quit []
<shellox> yeah, that's good, thanks :)
RichardBaker has quit [Quit: RichardBaker]
kilophoton has joined #ruby
michaeldeol has joined #ruby
niceguyjames has joined #ruby
<Hanmac> maybe better: (1..3).map {|i| "/tmp/#{i}" } or 1.upto(3).map {|i| "/tmp/#{i}" }
<pipework> Or 3.times
<pipework> But then it doesn't fold.
* apeiros still votes for *"tmp/1".."tmp/3"
seich- has joined #ruby
LiquidInsect has quit [Ping timeout: 245 seconds]
<pipework> Seems funny, that range.
camilasan has joined #ruby
<apeiros> but it works. it even works with "tmp/1".."tmp/20"
<pipework> It does, yes
LiquidInsect has joined #ruby
<pipework> If I saw it, I'd assume that someone was showing off.
agjacome has joined #ruby
<apeiros> I'd assume someone was lazy and overly clever ;-)
noop has joined #ruby
<pipework> Same thing, probably.
stayarrr has quit [Quit: Leaving.]
<pipework> But having it in a range like that does buy you some extra fun, given that it's a range.
kilophoton has quit [Ping timeout: 246 seconds]
michaeldeol has quit [Ping timeout: 264 seconds]
noopq has quit [Ping timeout: 276 seconds]
ghr has joined #ruby
gr33n7007h has joined #ruby
Stygia has joined #ruby
stayarrr has joined #ruby
noname001 has joined #ruby
Zai00 has joined #ruby
jds_ has quit [Ping timeout: 264 seconds]
noop has quit [Read error: Connection reset by peer]
snovak has joined #ruby
hogeo has quit [Ping timeout: 245 seconds]
afei has joined #ruby
noop has joined #ruby
kofno has joined #ruby
<Hanmac> hmmm imo it would be cool if Range can be rewritten so that for iteration it when using #succ it also uses the end of the range for direction ... like if you have an Range of two 2d Points ...
rickmasta has joined #ruby
atmosx has joined #ruby
<pipework> Hanmac::Range sounds pretty catchy.
snovak has quit [Ping timeout: 245 seconds]
<Hanmac> yeah, i #succ more than every other Range ;D
browndawg has quit [Quit: Leaving.]
hamakn has joined #ruby
kofno has quit [Ping timeout: 276 seconds]
timonv has quit [Remote host closed the connection]
Guest52603 has quit [Quit: Leaving...]
luckyruby has quit [Remote host closed the connection]
rickruby has quit [Ping timeout: 264 seconds]
persand has quit [Quit: persand]
noop has quit [Read error: Connection reset by peer]
noop has joined #ruby
Kabaka_ has quit [Ping timeout: 240 seconds]
pranny has quit [Read error: Connection reset by peer]
Anticom has joined #ruby
pranny has joined #ruby
Al__ has joined #ruby
shaunbaker has joined #ruby
rickmasta has quit [Quit: Leaving...]
Kabaka_ has joined #ruby
nextdropping_ has quit [Ping timeout: 276 seconds]
krz has quit [Quit: krz]
neo_ has joined #ruby
krz has joined #ruby
krz has quit [Changing host]
krz has joined #ruby
puppeh has left #ruby ["bb"]
sayan has joined #ruby
locriani has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
shellox has quit [Ping timeout: 260 seconds]
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
locriani has quit [Ping timeout: 264 seconds]
sayan has quit [Excess Flood]
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
antulik has quit [Remote host closed the connection]
antulik has joined #ruby
jds_ has joined #ruby
persand has joined #ruby
rickmasta has joined #ruby
ohcibi has quit [Read error: Connection reset by peer]
quazimodo has quit [Ping timeout: 245 seconds]
mansi has joined #ruby
yacks has joined #ruby
zoee has joined #ruby
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
dhruvasagar has joined #ruby
antulik has quit [Ping timeout: 260 seconds]
dagobah has joined #ruby
nari has quit [Ping timeout: 260 seconds]
klaut has joined #ruby
neo_ has quit [Ping timeout: 260 seconds]
timonv has joined #ruby
zoee_ has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
io_syl has quit [Quit: io_syl]
GeissT has quit [Ping timeout: 246 seconds]
s0ny123 has joined #ruby
ayaz has joined #ruby
zarubin has joined #ruby
relix has joined #ruby
v0n has quit [Ping timeout: 260 seconds]
rickmasta has quit [Quit: Leaving...]
pranny has quit [Quit: Leaving.]
skulls has joined #ruby
girija has joined #ruby
ksh has quit [Ping timeout: 240 seconds]
zoee_ has quit [Remote host closed the connection]
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
Guest78988 has joined #ruby
Guest78988 has quit [Excess Flood]
ehaliewicz has quit [Ping timeout: 246 seconds]
Criztian has joined #ruby
Heskie has joined #ruby
aryaching has quit [Ping timeout: 240 seconds]
ohcibi_ has joined #ruby
kalleth has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
shellox has joined #ruby
kjellski has joined #ruby
ohcibi_ is now known as ohcibi
kalleth has joined #ruby
mengu has joined #ruby
ehaliewicz has joined #ruby
obs has joined #ruby
michaeldeol has joined #ruby
gyzmodo has joined #ruby
cek has joined #ruby
ryandeussing has joined #ruby
sevenseacat has left #ruby [#ruby]
persand has quit [Ping timeout: 264 seconds]
jds_ has quit [Ping timeout: 276 seconds]
michaeldeol has quit [Ping timeout: 245 seconds]
procrastinat0r has joined #ruby
ryandeussing has quit [Ping timeout: 276 seconds]
snovak has joined #ruby
funburn has joined #ruby
kofno has joined #ruby
funburn has quit [Client Quit]
procrastinat0r has quit [Read error: Connection reset by peer]
nari has joined #ruby
obs has quit [Remote host closed the connection]
antulik has joined #ruby
VTLob has joined #ruby
snovak has quit [Ping timeout: 245 seconds]
obs has joined #ruby
atmosx_ has joined #ruby
atmosx has quit [Ping timeout: 272 seconds]
kofno has quit [Ping timeout: 264 seconds]
Al__ has quit [Quit: Al__]
<cHarNe2> DateTime.parse("2013.08.24 16:32:38:806", "%Y.%m.%d %H:%M:%S:%L").strftime("%L") => "000" why? shouldn't it be "806"?
<apeiros> cHarNe2: I don't think the second arg of DateTime::parse is the format
<apeiros> from the docs: DateTime.parse(string='-4712-01-01T00:00:00+00:00'[, comp=true[, start=ITALY]])
<cHarNe2> ohh
<apeiros> I guess you want strptime
gyre007 has joined #ruby
<apeiros> >> require 'date'; DateTime.strptime("2013.08.24 16:32:38:806", "%Y.%m.%d %H:%M:%S:%L").strftime("%L")
<eval-in> apeiros => "806" (https://eval.in/45796)
<apeiros> reading docs - a lost art :-p
<cHarNe2> ye, works way better :)
funburn has joined #ruby
Gonzih has quit [Quit: IRC is just multiplayer vim.]
rdark has joined #ruby
hogeo has joined #ruby
razi has joined #ruby
lyanchih has quit [Quit: lyanchih]
lyanchih has joined #ruby
ahawkins has quit [Ping timeout: 240 seconds]
St_Marx has quit [Ping timeout: 240 seconds]
quazimod1 has joined #ruby
Matriks has quit [Remote host closed the connection]
mengu has quit [Quit: This computer has gone to sleep]
Matriks has joined #ruby
pranny has joined #ruby
buzzybron has quit [Quit: Leaving.]
aaronmcadam has joined #ruby
ferdev has joined #ruby
locriani has joined #ruby
quazimod1 has quit [Ping timeout: 264 seconds]
Xaitec has quit [Remote host closed the connection]
funburn has quit [Quit: funburn]
__Cr0 has joined #ruby
jds_ has joined #ruby
agjacome has quit [Quit: leaving]
locriani has quit [Ping timeout: 264 seconds]
seich- has quit [Ping timeout: 240 seconds]
noop has quit [Ping timeout: 245 seconds]
mansi has joined #ruby
afei has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
Neomex has joined #ruby
JDHankle has joined #ruby
gasbakid has joined #ruby
Neomex has quit [Client Quit]
mansi has quit [Ping timeout: 260 seconds]
seich- has joined #ruby
nextdropping has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
agjacome has joined #ruby
kjellski has quit [Read error: Connection reset by peer]
rickmasta has joined #ruby
JDHankle has quit [Ping timeout: 246 seconds]
kjellski has joined #ruby
jds_ has quit [Ping timeout: 260 seconds]
wems has quit [Ping timeout: 240 seconds]
goleldar has quit [Ping timeout: 246 seconds]
mikecmpbll has joined #ruby
swordsmanz has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
antulik has quit [Remote host closed the connection]
ferdev has quit [Remote host closed the connection]
klaut has quit [Remote host closed the connection]
zoee has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
dagobah has quit [Remote host closed the connection]
Advocation has quit [Remote host closed the connection]
funburn has joined #ruby
ferdev has joined #ruby
dagobah has joined #ruby
Advocation has joined #ruby
antulik has joined #ruby
senayar has joined #ruby
pipework has quit [Remote host closed the connection]
zoee has joined #ruby
pipework has joined #ruby
akemrir has joined #ruby
akemrir has quit [Client Quit]
rickmasta has quit [Quit: Leaving...]
phracker has quit [Ping timeout: 240 seconds]
atmosx_ has quit [Remote host closed the connection]
antulik has quit [Remote host closed the connection]
atmosx has joined #ruby
antulik has joined #ruby
phracker has joined #ruby
noop has joined #ruby
lyanchih has quit [Quit: lyanchih]
camilasan has quit [Remote host closed the connection]
rickmasta has joined #ruby
camilasan has joined #ruby
Zolo has joined #ruby
michaeldeol has joined #ruby
goleldar has joined #ruby
stayarrr has quit [Quit: Leaving.]
mneorr has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasa_ has joined #ruby
lkba has joined #ruby
colonolGron has joined #ruby
cantonic has quit [Ping timeout: 245 seconds]
diegoviola has joined #ruby
michaeldeol has quit [Ping timeout: 240 seconds]
cantonic has joined #ruby
snovak has joined #ruby
ehaliewicz has quit [Ping timeout: 246 seconds]
jds_ has joined #ruby
amacgregor__ has quit [Ping timeout: 246 seconds]
donmartini has joined #ruby
kofno has joined #ruby
rickmasta has quit [Quit: Leaving...]
cantonic_ has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
cantonic has quit [Ping timeout: 245 seconds]
cantonic_ is now known as cantonic
clocKwize has joined #ruby
snovak has quit [Ping timeout: 264 seconds]
katsrc has joined #ruby
kofno has quit [Ping timeout: 260 seconds]
axeman- has quit [Read error: Connection reset by peer]
axeman- has joined #ruby
camilasa_ has quit [Remote host closed the connection]
camilasan has joined #ruby
rcosta has joined #ruby
rcosta has quit [Remote host closed the connection]
gr33n7007h has quit [Ping timeout: 260 seconds]
mklappstuhl has joined #ruby
axeman- has quit [Remote host closed the connection]
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
klaut has joined #ruby
ferdev has quit [Ping timeout: 264 seconds]
kizzx2 has quit [Quit: Leaving.]
caju has joined #ruby
r4nd0m1_ has quit []
locriani has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
atno has quit [Ping timeout: 248 seconds]
ferdev has joined #ruby
realDAB has joined #ruby
camilasa_ has quit [Remote host closed the connection]
camilasan has joined #ruby
Neomex has joined #ruby
locriani has quit [Ping timeout: 246 seconds]
Advocation has quit [Quit: Advocation]
mlpinit has joined #ruby
Al_ has joined #ruby
mansi has joined #ruby
Advocation has joined #ruby
poga has quit [Remote host closed the connection]
enjoi has quit [Ping timeout: 264 seconds]
funburn has quit [Quit: funburn]
mansi has quit [Ping timeout: 246 seconds]
blackmesa has joined #ruby
kjellski_ has joined #ruby
kofno has joined #ruby
caju has quit [Remote host closed the connection]
stayarrr has joined #ruby
gr33n7007h has joined #ruby
JohnBat26 has quit [Ping timeout: 275 seconds]
gr33n7007h has quit [Max SendQ exceeded]
goleldar has quit [Ping timeout: 246 seconds]
gr33n7007h has joined #ruby
gr33n7007h has quit [Max SendQ exceeded]
kofno has quit [Ping timeout: 260 seconds]
gr33n7007h has joined #ruby
failshell has joined #ruby
rdxc has joined #ruby
shaunbaker has quit [Remote host closed the connection]
lucazi has joined #ruby
obs has quit [Remote host closed the connection]
kofno has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
ryandeussing has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
obs has joined #ruby
chairabanta has joined #ruby
niko has quit [Ping timeout: 624 seconds]
dhruvasagar has joined #ruby
<chairabanta> Hi, I have gem build my own gem and now how do I do to use locally? I would have just to write require 'my-gem'
<pipework> It should be in your gem path. So gem install it.
<pipework> Or provide the path to the gem if you want.
<pipework> Or use bundler to provide the gem whichever way you please.
obs has quit [Remote host closed the connection]
ryandeussing has quit [Ping timeout: 240 seconds]
obs has joined #ruby
browndawg has joined #ruby
<chairabanta> How do I know my gem path I use rbenv?
<pipework> env
<chairabanta> and I have no GEM_HOME
<chairabanta> pipework: not referenced in env
Ripp__ has quit [Quit: Ripp__]
colonolGron has quit [Quit: Lost terminal]
cads has joined #ruby
<pipework> chairabanta: I don't believe in rbenv. chruby is what I use.
<pipework> rvm before that.
<diegoviola> chruby rocks
<pipework> chruby and ruby-install is all you need.
sevenseacat has joined #ruby
<chairabanta> ok I will have a look at chruby
<pipework> chairabanta: For now, just cd to your gem project directory and build the gem, then gem install <file.gem<
<pipework> >
shellox has quit [Ping timeout: 245 seconds]
michaeldeol has joined #ruby
obs has quit [Remote host closed the connection]
pootler has joined #ruby
obs has joined #ruby
St_Marx has joined #ruby
pweems has quit [Ping timeout: 264 seconds]
michaeldeol has quit [Ping timeout: 246 seconds]
dhruvasagar has quit [Ping timeout: 260 seconds]
gr33n7007h has quit [Ping timeout: 245 seconds]
mansi has joined #ruby
aeffle has joined #ruby
aeffle has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
dhruvasagar has joined #ruby
clocKwize has quit [Ping timeout: 260 seconds]
clocKwize has joined #ruby
gasbakid has quit [Remote host closed the connection]
Trynemjoel has quit [Max SendQ exceeded]
Advocation has quit [Quit: Advocation]
gr33n7007h has joined #ruby
Trynemjoel has joined #ruby
gr33n7007h has quit [Max SendQ exceeded]
senayar_ has joined #ruby
clocKwize has quit [Client Quit]
lemonsparrow has joined #ruby
senayar has quit [Ping timeout: 245 seconds]
Snaggle has joined #ruby
mansi has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
mansi has joined #ruby
St_Marx has quit [Quit: Ex-Chat]
realDAB has quit [Quit: realDAB]
zarubin has quit [Read error: Connection reset by peer]
Neomex has quit [Quit: Neomex]
Advocation has joined #ruby
dweeb has joined #ruby
pen has joined #ruby
zarubin has joined #ruby
dbcclarke has joined #ruby
<Snaggle> I am trying to use a gem (bio-graphics), but I get this error when loading a script that for it: /sw/lib/ruby/2.0/rubygems/dependency.rb:296:in `to_specs': Could not find 'bio' (>= 1) among 20 total gem(s) (Gem::LoadError). I have "bio" installed from source, not as a gem, and that is installed into /sw/lib/ruby/site_ruby/2.0.
<Snaggle> Is there a way to get the 'bio-graphics' gem to see my non-gem 'bio' ? Or will I have to install bio as a gem as well?
Astralum has joined #ruby
Zolo has quit [Remote host closed the connection]
yacks has quit [Quit: Leaving]
mansi has quit [Ping timeout: 264 seconds]
<apeiros> ensure /sw/lib/ruby/site_ruby/2.0 is in $LOAD_PATH, then it shouldn't matter that it isn't installed as a gem (unless bio-graphics does something stupid)
<apeiros> but it's probably easier to just install it as a gem
<e-dard> Hi all. Having trouble getting sinatra working with shottgun. I have a class-based sinatra app, and in same directory I have config.ru with require 'app_file_name' and run MyApp. Server starts but end points all 404
<e-dard> Any ideas?
<dbcclarke> How do I change this line of code: "@us_matches = Match.where(["(club_1_id = ? or club_2_id = ?)", 1, 1]).order('match_date DESC').limit(8)" - to return club_1_id = 1 and club_2_id = 144 ? I have to use the "in ?" instead of "= ?"
St_Marx has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<apeiros> dbcclarke: hu?
<apeiros> use `and` instead of `or` and supply 144 as 3rd arg to where?
ayaz has quit [Remote host closed the connection]
<apeiros> not sure what you want… also probably AR and then #rubyonrails would be better suited.
<sevenseacat> yeah it's AR.
jkamenik has joined #ruby
<dbcclarke> HMM OK APEIROS
workmad3 has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
kofno has quit [Remote host closed the connection]
kofno has joined #ruby
browndawg has quit [Read error: Connection timed out]
<apeiros> capslockfail? :)
locriani has joined #ruby
<dbcclarke> hehe ny bad...
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
dbcclarke has quit [Quit: Page closed]
enjoi has joined #ruby
<_br_> e-dard: Well shotgun has some issues. Try e.g. rerun instead.
browndawg has joined #ruby
__Cr0 has quit []
<_br_> e-dard: there is also an explanation of why this is "better" than the other alternatives https://github.com/alexch/rerun
<e-dard> _br_: cool thanks
<_br_> e-dard: That being said, make sure the rack config is working correctly.
dangerousdave has joined #ruby
<e-dard> _br_: yeah in this case it was the config file ;) SHould have done require './app_file_name'
<e-dard> Will look at rerun though :)
hogeo has quit [Remote host closed the connection]
parzo has joined #ruby
locriani has quit [Ping timeout: 260 seconds]
<parzo> Wondering if someone could point me in the right direction, trying to deploy to heroku and when I run rake db:migrate it tells me there are missing files but those same files it is milling are 100% in my git repo output of error and git files here https://gist.github.com/mhoad/6389087
BRMatt has joined #ruby
shaunbaker has joined #ruby
<parzo> Apologies, wrong channel
<parzo> Embarrassing ;)
<Snaggle> apeiros: ruby2.0 -e 'puts $LOAD_PATH' says that /sw/lib/ruby/site_ruby/2.0 is already in $LOAD_PATH and adding it to the shell environ just to be sure doesn't fix the Gem::LoadError :(
yacks has joined #ruby
kofno has quit [Remote host closed the connection]
defaultro has quit [Quit: defaultro]
<_br_> e-dard: depending on your ruby version try using require_relative instead
corpuscle has joined #ruby
gyre007 has quit [Remote host closed the connection]
obs has quit [Read error: Connection reset by peer]
seich- has quit [Ping timeout: 240 seconds]
<_br_> parzo: No problem
chairabanta is now known as chairabanta|away
<_br_> parzo: maybe you are executing rake from the wrong folder? (I'm not really familiar with heroku though)
snovak has joined #ruby
sambao21 has joined #ruby
<parzo> just confirmed that wasn't the case but cheers for the thought all the same
obs has joined #ruby
seich- has joined #ruby
ldnunes has joined #ruby
Advocation has quit [Quit: Advocation]
nextdropping has quit [Remote host closed the connection]
ntus1017 has joined #ruby
chairabanta|away has quit [Quit: Leaving...]
snovak has quit [Ping timeout: 240 seconds]
NimeshNeema has left #ruby [#ruby]
blackmesa has quit [Ping timeout: 240 seconds]
gyzmodo has quit [Ping timeout: 246 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
ndrei has quit [Ping timeout: 260 seconds]
jibi has quit [Ping timeout: 260 seconds]
girija has quit [Ping timeout: 260 seconds]
fantazo has joined #ruby
jibi has joined #ruby
atno has joined #ruby
ramblex has joined #ruby
Zai00 has quit [Quit: Zai00]
DanielRb has quit [Quit: Quit]
breakingthings has joined #ruby
<Stygia> Hey, a question about ruby. One of the features I found really useful in Python was the docstrings, a standarized way of adding documentation and classes, that could then later be access with introspection. That is, you could easily access documentation with code, and if you imported and used a class, you could access these docstrings from the python "REPL" without opening the source. Is there a similar standard for ruby? My two ru
<Stygia> by coworkers say no, immediately, but I can hope.
wallerdev has joined #ruby
whitedawg has joined #ruby
<apeiros> Stygia: use the 'pry' repl
Monie has joined #ruby
codecop has quit [Remote host closed the connection]
DanielRb has joined #ruby
<apeiros> also install pry-doc along with it
ndrei has joined #ruby
<apeiros> you can then e.g. do `? String#upcase` to view its docs or `$ String#upcase` to view its source
jdenen has joined #ruby
pygospa has quit [Quit: leaving]
wallerdev has quit [Client Quit]
<Stygia> apeiros, Hmm that sounds useful. But I take it there is no standard for this is ruby, then?
<apeiros> there are two standards. rdoc and yard.
pygospa has joined #ruby
<apeiros> but docs are not available via introspection
_maes_ has joined #ruby
mark_locklear has joined #ruby
<apeiros> not sure how pry does it, whether it depends on you having the docs installed, or whether it parses the source on the fly. I'd assume the latter.
<apeiros> and it seems it properly supports yard's tagging
whitedawg has left #ruby [#ruby]
ndrei has quit [Ping timeout: 240 seconds]
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JDHankle has joined #ruby
pranny has quit [Quit: Leaving.]
ndrei has joined #ruby
pipework has quit [Remote host closed the connection]
suraj has joined #ruby
xk_id has quit [Quit:
<Stygia> apeiros, Alright, well thanks. That's a bit sad, possibly one of the things I"ll miss once/when I move my project to ruby from python. But still, I suppose I can deal with it.
michaeldeol has joined #ruby
<Stygia> apeiros, Until 20 years from now when I'm skilled enough to just write my own language that has both, heh.
<apeiros> Stygia: o0
<apeiros> I don't see why you're sad
<apeiros> you can do what you want. even if not using the precise tools you hoped for (introspection)
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ArchBeOS has joined #ruby
ArchBeOS has joined #ruby
<Stygia> apeiros, Oh yea I can, and this is workable, no doubt. I just liked the notion of introspecting docstrings, it seemed neat and clean.
<apeiros> if you transition from one language to another, that's an experience you'll have to expect (that things don't map 1:1)
<Stygia> apeiros, But heh, while ruby of course has flaws, there's a reason I'm moving to ruby, yea?
girija has joined #ruby
<apeiros> I agree. it'd be nice if ruby had docs available via introspection. but for the given scenario it doesn't really matter.
<Stygia> apeiros, Oh I know. That's not the issue, of course. I just liked this feature. Just like I liked significant whitespace and will miss it, yea? But not big deal.
shaunbaker has quit [Remote host closed the connection]
klaut has quit [Remote host closed the connection]
antulik has quit [Remote host closed the connection]
senayar_ has quit [Remote host closed the connection]
<Stygia> apeiros, No, not really.
pen has quit [Remote host closed the connection]
JDHankle has quit [Ping timeout: 240 seconds]
senayar has joined #ruby
xcfox has joined #ruby
michaeldeol has quit [Ping timeout: 245 seconds]
DaZ has joined #ruby
kichawa has joined #ruby
kkszysiu has joined #ruby
suraj has quit [Quit: leaving]
senayar has quit [Remote host closed the connection]
ferdev has quit [Remote host closed the connection]
zoee has quit [Remote host closed the connection]
parzo has quit [Remote host closed the connection]
ntus1017 has quit [Remote host closed the connection]
dagobah has quit [Remote host closed the connection]
dagobah has joined #ruby
zoee has joined #ruby
dkamioka has quit [Remote host closed the connection]
dagobah has quit [Remote host closed the connection]
senayar has joined #ruby
zoee has quit [Remote host closed the connection]
sayan has joined #ruby
zoee has joined #ruby
niceguyjames has joined #ruby
zeel has joined #ruby
DonRichie has joined #ruby
kaldrenon has joined #ruby
katsrc has quit [Remote host closed the connection]
Criztian has quit [Remote host closed the connection]
dangerousdave has quit [Read error: Connection reset by peer]
Dave has joined #ruby
Dave is now known as Guest91259
mikecmpbll has joined #ruby
gyre007 has joined #ruby
kkszysiu has left #ruby [#ruby]
mansi has joined #ruby
adkron has joined #ruby
endash has joined #ruby
sr78ger has quit [Ping timeout: 276 seconds]
dagobah has joined #ruby
devoldmx3 has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
kofno has joined #ruby
devoldmx has quit [Ping timeout: 245 seconds]
mansi has quit [Ping timeout: 248 seconds]
mrsolo has joined #ruby
sayan has quit [Ping timeout: 256 seconds]
Xeago has quit [Ping timeout: 264 seconds]
pothibo has joined #ruby
Xeago has joined #ruby
kichawa has left #ruby [#ruby]
mansi has joined #ruby
sailias has joined #ruby
locriani has joined #ruby
nari has quit [Ping timeout: 245 seconds]
turduks has joined #ruby
eka has joined #ruby
turduks has quit [Client Quit]
sayan has joined #ruby
devoldmx3 has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
mansi has quit [Ping timeout: 256 seconds]
ewnd9 has quit [Ping timeout: 264 seconds]
rcosta has joined #ruby
Monie has joined #ruby
troessner has quit [Ping timeout: 246 seconds]
locriani has quit [Ping timeout: 264 seconds]
maasdesigner has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
devoldmx has quit [Ping timeout: 256 seconds]
sayan has quit [Ping timeout: 245 seconds]
devoldmx has joined #ruby
<maasdesigner> hi i install Staticmatic gem when i run create command in terminal i get the following error >>>>> https://gist.github.com/maasdesigner/6389512
troessner has joined #ruby
Zai00 has joined #ruby
shaunbaker has joined #ruby
Snaggle has left #ruby [#ruby]
colonolGron has joined #ruby
fourq_ has joined #ruby
rcosta has quit [Remote host closed the connection]
mrsolo has quit [Quit: This computer has gone to sleep]
zeel has left #ruby [#ruby]
ryandeussing has joined #ruby
rdxc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
snovak has joined #ruby
xeon has joined #ruby
xeon has quit [Max SendQ exceeded]
nettoweb has joined #ruby
goodcodeguy has joined #ruby
ryandeussing has quit [Ping timeout: 248 seconds]
xeon has joined #ruby
zai has joined #ruby
S0da has quit [Read error: Connection reset by peer]
Catie has quit [Ping timeout: 246 seconds]
<zai> is there an easy way to make a real duplicate of a multi dimensional array in ruby? so something like this doesn't happen: http://pastebin.com/gVqRyzUK
snovak has quit [Ping timeout: 245 seconds]
noname001 has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
kjellski_ has quit [Quit: Leaving]
kjellski has quit [Quit: Leaving]
nettoweb has quit [Client Quit]
<tobiasvl> probably marshalling
<zai> ok, I should have asked google about it... found marshall load/dump at stackoverflow
<zai> thanks tobiasvl
<Hanmac> zai use Marshal.load & Marshal.dump
devoldmx has quit [Ping timeout: 256 seconds]
<zai> thanks Hanmac :)
poga has joined #ruby
jaynewstrom has quit [Remote host closed the connection]
devoldmx has joined #ruby
jaynewstrom has joined #ruby
kiri has quit [Ping timeout: 245 seconds]
corpuscle has quit [Ping timeout: 264 seconds]
kiri has joined #ruby
pipework has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
<Hanmac> infomation: Marshaling does also get the references right if you load and dump the entire array, like if you have an Object twice in an array (same object_id) it will be still one object after loading
snovak has joined #ruby
rcosta has joined #ruby
srji_ has joined #ruby
amacgregor has joined #ruby
<_br_> zai: tobiasvl: Isn't there a deep clone gem for this?
fourq_ has quit [Quit: Lost terminal]
mpereira has quit [Read error: Connection reset by peer]
JDHankle has joined #ruby
soba_ has quit [Ping timeout: 240 seconds]
<zai> _br_: idk. it cost me about 45 minutes until I realized that .dup isn't making a deep copy. I wasn't aware of that
srji has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
youngman15 has joined #ruby
JohnTerryCFC383 has joined #ruby
<JohnTerryCFC383> Hello!
BSaboia has joined #ruby
<JohnTerryCFC383> Wanted to share a new programming forum/community: http://thedevshed.net/forum/
<sevenseacat> spam incoming
<_br_> zai: Rather common behavior in many languages I think.
<JohnTerryCFC383> Feel free to join :)
<JohnTerryCFC383> This isn't spam
<JohnTerryCFC383> no
<JohnTerryCFC383> -.-'
<pipework> Unsolicited advertisement incoming!
JDHankle has quit [Ping timeout: 256 seconds]
<sevenseacat> it is when you do it repeatedly
<youngman15> How do I return only the data from the current date until the future? this is the line of code: "Match.where(["(task_1 (?) or task_2 in (?))", [2,6], [2,6]]).order('match_date DESC').limit(6)"
<JohnTerryCFC383> Dudem, stop being such a drama queen xD
<sevenseacat> xD
jerius has joined #ruby
<pipework> JohnTerryCFC383: Unsolicited advertisement isn't taken to very kindly on technical channels.
cpruitt has joined #ruby
<pipework> Especially when the advertisement lumps ruby and perl together as if they don't deserve a subforum, but lolpython does.
<JohnTerryCFC383> This won't be spammed all over the channel
rcosta has quit [Remote host closed the connection]
<donmartini> hey I have this line and need to add style => 'float: left' to it but i keep getting a compile error = f.label :name
<JohnTerryCFC383> The thing with merged sections is a temp thing
amacgregor has quit [Read error: Connection reset by peer]
<JohnTerryCFC383> Lack of content for now
michaeldeol has joined #ruby
rdxc has joined #ruby
amacgregor has joined #ruby
xeon has quit [Ping timeout: 268 seconds]
corpuscle has joined #ruby
<_br_> donmartini: Maybe not a good idea to encode CSS inline with your view. Put that into its own CSS file where it belongs?
shaunbaker has quit [Remote host closed the connection]
rcosta has joined #ruby
pweems has joined #ruby
obs has quit [Remote host closed the connection]
freeayu has quit [Quit: This computer has gone to sleep]
Macaveli has joined #ruby
obs has joined #ruby
dagobah has quit [Remote host closed the connection]
pothibo has quit [Remote host closed the connection]
rcosta has quit [Remote host closed the connection]
zoee has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
pipework has quit [Remote host closed the connection]
Macaveli has quit [Remote host closed the connection]
dagobah has joined #ruby
Macaveli has joined #ruby
rcosta has joined #ruby
senayar has joined #ruby
pipework has joined #ruby
ericmathison has quit [Ping timeout: 245 seconds]
<mikecmpbll> youngman15: where('match_date > ?', Date.today) ?
freeayu has joined #ruby
dagobah has quit [Remote host closed the connection]
rcosta has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
Macaveli has quit [Remote host closed the connection]
mikecmpbll has quit [Remote host closed the connection]
Macaveli has joined #ruby
dagobah has joined #ruby
mikecmpbll has joined #ruby
JohnTerryCFC383 has quit [Quit: irc2go]
senayar has joined #ruby
michaeldeol has quit [Ping timeout: 248 seconds]
jibi has quit [Quit: .]
<youngman15> mikecmpbll: Im going to try that
senayar has quit [Remote host closed the connection]
Macaveli has quit [Remote host closed the connection]
<mikecmpbll> but that belongs in #rubyonrails, by the way :)
Macaveli has joined #ruby
mikecmpbll has quit [Remote host closed the connection]
senayar has joined #ruby
pipework has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
mikecmpbll has joined #ruby
breakingthings has quit [Remote host closed the connection]
krawchyk has joined #ruby
<donmartini> _br_ I know it belomgs in it's own css file but I am just learning this so just wondering how to it inline
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
breakingthings has joined #ruby
krz has quit [Quit: krz]
relix has joined #ruby
Heskie has quit []
<Macaveli> How can I exclude something out of my map? https://gist.github.com/YOUConsulting/f753b092c779ced7150c
quazimodo has joined #ruby
ewnd9 has joined #ruby
iamjarvo has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
pweems has quit [Ping timeout: 248 seconds]
<youngman15> mikecmpbll: How does this look: Match.where('match_date > ?', Date.today)["(task_1 in (?) or task_2 in (?))", [2,6], [2,6]]).order('match_date DESC').limit(6)
<youngman15> I think I should reorder something....
<mikecmpbll> youngman15: it looks terrible.
<youngman15> HAHA
KobraKao has joined #ruby
<_br_> donmartini: What template language is that? Slim?
<sevenseacat> haml methinks
hiyosi has joined #ruby
<mikecmpbll> youngman15: Match.where("match_date > ?, task_1 in (?) or task_2 in (?)", Date.today, [2,6], [2,6]).order('match_date DESC').limit(6)
ryandeussing has joined #ruby
Guest91259 has quit [Read error: Connection reset by peer]
<Hanmac1> Macaveli: you need an select before the map
dangerousdave has joined #ruby
Hanmac1 is now known as Hanmac
<_br_> Macaveli: Maybe you rather want a #select or #delete_if
jlast has joined #ruby
corpuscle has quit [Read error: Operation timed out]
kevinykchan has joined #ruby
<Macaveli> _br_ Hanmac delete is indeed better than select or reject I thank you
nowthatsamatt has joined #ruby
aryaching has joined #ruby
<donmartini> how can i add an inline style of float left to this = f.label :name
obs has quit [Read error: Operation timed out]
<donmartini> _br_ liquid I hink
ryandeussing has quit [Ping timeout: 268 seconds]
rdxc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ananthakumaran has quit [Quit: Leaving.]
stayarrr has quit [Quit: Leaving.]
<_br_> you think? Well, that makes answer your question difficult, I think.
obs has joined #ruby
robbyoconnor has joined #ruby
eshlox has joined #ruby
tkuchiki has joined #ruby
pwh has joined #ruby
wmoxam has joined #ruby
Anticom has quit [Ping timeout: 260 seconds]
pH14 has joined #ruby
girija has quit [Read error: Operation timed out]
obs has quit [Read error: Operation timed out]
Bry8Star{T2 has quit [Remote host closed the connection]
jkamenik1 has joined #ruby
Bry8Star{T2 has joined #ruby
jkamenik has quit [Ping timeout: 260 seconds]
srji_ has quit [Ping timeout: 264 seconds]
pwh has quit [Ping timeout: 245 seconds]
srji has joined #ruby
kofno has quit [Remote host closed the connection]
ahawkins has joined #ruby
ahawkins has quit [Client Quit]
JDHankle has joined #ruby
ahawkins has joined #ruby
tomzx_mac has joined #ruby
thesheff17 has joined #ruby
zeel has joined #ruby
Advocation has joined #ruby
tabolario has joined #ruby
akells has joined #ruby
ryandeussing has joined #ruby
locriani has joined #ruby
corpuscle has joined #ruby
Stygia has quit [Ping timeout: 264 seconds]
mmitchell has joined #ruby
shaunbaker has joined #ruby
corpuscle has quit [Ping timeout: 264 seconds]
locriani has quit [Ping timeout: 256 seconds]
seich- has quit [Ping timeout: 240 seconds]
zai has left #ruby [#ruby]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
defaultro has joined #ruby
devoldmx3 has joined #ruby
mneorr has quit [Remote host closed the connection]
jp- has joined #ruby
nari_ has joined #ruby
fenicks has joined #ruby
mneorr has joined #ruby
kofno has joined #ruby
hasrb has joined #ruby
iamjarvo has quit [Remote host closed the connection]
browndawg has quit [Ping timeout: 264 seconds]
iamjarvo has joined #ruby
dkamioka has joined #ruby
devoldmx has quit [Ping timeout: 264 seconds]
troessner has quit [Quit: Leaving]
iamjarvo has quit [Remote host closed the connection]
jkamenik1 has quit [Read error: Connection reset by peer]
blaxter_ has quit [Quit: foo]
jbomo has joined #ruby
freeayu has quit [Read error: Connection reset by peer]
<failshell> how do you use variables in a %w()? i tried using %w(#{foo} #{bar}), but that doesnt seem to work
jkamenik has joined #ruby
<mydog2> hi - trying to get an understanding of how to install a ruby app from github...
<mydog2> i have 0 ruby/rails experience
seich- has joined #ruby
<mydog2> right now, i'm trying to figure out what i have to install in terms of supporting ruby/rails apps to be able to install the github app
<mydog2> can someone tell me what this command would do? --rake db:create:all
<mydog2> i know rake is a ruby/make function..
ffranz has joined #ruby
<mydog2> but where/what is the db:create:all getting data from?
<bartj3> failshell: use capital w
<bartj3> %W(#{foo} #{bar}) should work
browndawg has joined #ruby
<bartj3> [foo, bar] might be easier for the eyes but i guess the real world isn't as simple as the example :)
mrsolo has joined #ruby
jkamenik1 has joined #ruby
proph3t has joined #ruby
<proph3t> hi all
<failshell> i have to wonder why have w and W. what's the different apart from being able to use variables?
jkamenik has quit [Ping timeout: 264 seconds]
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
zelo has joined #ruby
hamakn has quit [Remote host closed the connection]
<bartj3> as far as i know thats to only difference, just like single or double quotes
robbyoconnor has quit [Ping timeout: 245 seconds]
shouya has joined #ruby
hamakn has joined #ruby
kpshek has joined #ruby
girija has joined #ruby
VTLob has quit [Quit: VTLob]
dkamioka has quit [Remote host closed the connection]
Monie has joined #ruby
shouya1 has quit [Ping timeout: 264 seconds]
marsLantern has quit [Quit: marsLantern]
sambao21 has quit [Quit: Computer has gone to sleep.]
<_br_> mydog2: If its rails, please try #rails or #rubyonrails
seich- has quit [Ping timeout: 245 seconds]
sailias1 has joined #ruby
wallerdev has joined #ruby
hamakn has quit [Ping timeout: 268 seconds]
Nanuq has quit [Ping timeout: 245 seconds]
sailias has quit [Ping timeout: 240 seconds]
jillesme has joined #ruby
Banistergalaxy has quit [Ping timeout: 264 seconds]
seich- has joined #ruby
zelo has quit [Remote host closed the connection]
kevinykchan has quit [Quit: Computer has gone to sleep.]
Criztian has joined #ruby
sambao21 has joined #ruby
kevinykchan has joined #ruby
akells has quit [Remote host closed the connection]
Guest71984 has quit [Ping timeout: 264 seconds]
mansi has joined #ruby
nettoweb has joined #ruby
pedrocr has joined #ruby
kevinykchan has quit [Client Quit]
juarlex has joined #ruby
<pedrocr> How do I yield to a block with a changed binding?
cody-- has joined #ruby
girija has quit [Ping timeout: 264 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
tomzx_mac has quit [Ping timeout: 264 seconds]
jerius has quit [Ping timeout: 260 seconds]
companion is now known as Companion
atno has quit [Ping timeout: 245 seconds]
QQQ has joined #ruby
akells has joined #ruby
Nanuq has joined #ruby
s0ber has quit [Remote host closed the connection]
bluenemo has joined #ruby
yacks has quit [Ping timeout: 264 seconds]
BillCriswell has joined #ruby
s0ber has joined #ruby
Macaveli has quit [Ping timeout: 256 seconds]
chairabanta has joined #ruby
lukec has joined #ruby
Quashie_ has quit [Ping timeout: 256 seconds]
corpuscle has joined #ruby
iamjarvo has joined #ruby
Davey has joined #ruby
bio has joined #ruby
kevinykchan has joined #ruby
bio is now known as Guest98659
rupee has joined #ruby
<pedrocr> here's a minimal testcase of what I'm trying to do: https://gist.github.com/pedrocr/6390369
jerius has joined #ruby
michaeldeol has joined #ruby
tagrudev has quit [Quit: Me = Awesome]
rippa has joined #ruby
youngman15 has quit [Quit: Page closed]
mrsolo has joined #ruby
jerius has quit [Client Quit]
colonolGron has quit [Quit: Lost terminal]
corpuscle has quit [Read error: Connection reset by peer]
akells has quit [Remote host closed the connection]
devdazed has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
soba has joined #ruby
devdazed has joined #ruby
RORgasm has joined #ruby
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
michaeldeol has quit [Ping timeout: 245 seconds]
camilasan has quit [Remote host closed the connection]
niceguyjames has joined #ruby
camilasan has joined #ruby
camilasan has quit [Remote host closed the connection]
ahawkins has quit [Ping timeout: 256 seconds]
camilasan has joined #ruby
_maes_ has joined #ruby
kevinykchan has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Jake232 has joined #ruby
akells has joined #ruby
C0deMaver1ck has joined #ruby
mneorr has quit [Ping timeout: 256 seconds]
camilasan has quit [Remote host closed the connection]
C0deMaver1ck is now known as Guest48372
<pedrocr> fixed it with "instance_exec(&proc)"
camilasan has joined #ruby
mansi has quit [Read error: Connection reset by peer]
petru has left #ruby [#ruby]
akells has quit [Remote host closed the connection]
noname001 has joined #ruby
_maes_ has quit [Client Quit]
mansi has joined #ruby
braoru has quit [Remote host closed the connection]
_maes_ has joined #ruby
Bry8Star{T2 has quit [Remote host closed the connection]
<r0bglees0n> pedrocr: instance_eval() works too. you dont use anything unique to instance_exec there.
mneorr has joined #ruby
ananthakumaran has joined #ruby
<pedrocr> r0bglees0n, how would you do it with instance_eval?
<r0bglees0n> instance_eval(&blk).
<pedrocr> right
<pedrocr> but I need to pass arguments
<r0bglees0n> you dont pass any in that example though
<pedrocr> instance_eval(arg, &proc) doesn't work
<r0bglees0n> your block has to accept them but you need to pass em to instance_exec too
Bry8Star{T2 has joined #ruby
Guest48372 has quit [Changing host]
Guest48372 has joined #ruby
<pedrocr> I pass "bar" in the example
Guest48372 is now known as C0deMaver1ck
<r0bglees0n> which example?
<pedrocr> the gist
jerius has joined #ruby
atmosx has quit [Ping timeout: 240 seconds]
relix has joined #ruby
<apeiros> instance_eval does not accept an argument
<apeiros> also "doesn't work" is about as bad a problem description as humanly possible.
relix has quit [Client Quit]
GeissT has joined #ruby
<r0bglees0n> your example uses neither instance_eval & instance_exec?
<pedrocr> r0bglees0n, instance_exec was the solution to the problem
mneorr_ has joined #ruby
<r0bglees0n> ok
<r0bglees0n> so in your IRC message, you said instance_exec(&blk).
<r0bglees0n> you never passed "bar" anywhere
<r0bglees0n> in gist or IRC
mneorr has quit [Read error: Connection reset by peer]
kofno has quit [Remote host closed the connection]
<r0bglees0n> anyway glad you figured it out
niceguyjames has quit [Quit: Computer has gone to sleep.]
atyz has joined #ruby
kofno has joined #ruby
<pedrocr> I did yield "bar" before and replaced it with instance_exec("bar",&proc)
<pedrocr> and naturally changed self.my_create_method to (name, &proc)
<r0bglees0n> pick a different variable name
<r0bglees0n> 'proc' is a method as well
<r0bglees0n> &blk is usual
filipe has quit [Ping timeout: 264 seconds]
<pedrocr> right, it worked fine though
* apeiros prefers block
<apeiros> no need to mutilate the language
thatRD has joined #ruby
<r0bglees0n> it works fine, but method lookup will find your local variable & not the method
<r0bglees0n> so its better to just avoid that conflict
<r0bglees0n> yes &block is nicer
<r0bglees0n> whichever
<r0bglees0n> just not proc
niceguyjames has joined #ruby
DrShoggoth has joined #ruby
fourq__ is now known as fourq
<MrZYX> foo(&not_proc) ?
<MrZYX> scnr
atno has joined #ruby
fourq has quit [Disconnected by services]
heftig has quit [Read error: Connection reset by peer]
heftig_ has joined #ruby
ryandeussing has quit [Remote host closed the connection]
endzyme has joined #ruby
codecop has joined #ruby
heftig_ is now known as heftig
<r0bglees0n> ehh, im wrong, proc {} resolves fine because of the block. its still confusing though.
jerius has quit [Ping timeout: 256 seconds]
seich- has quit [Ping timeout: 245 seconds]
nerocrux has joined #ruby
relix has joined #ruby
jillesme has left #ruby [#ruby]
elnormous has joined #ruby
camilasan has quit [Read error: No route to host]
camilasan has joined #ruby
relix has quit [Client Quit]
flak has joined #ruby
jerius has joined #ruby
flak is now known as Guest34931
endash has quit [Quit: endash]
endzyme has quit [Remote host closed the connection]
endzyme has joined #ruby
chairabanta has quit [Quit: Leaving...]
relix has joined #ruby
relix has quit [Client Quit]
locriani has joined #ruby
splittingred has joined #ruby
rippa has quit [Ping timeout: 248 seconds]
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
wallerdev has joined #ruby
v0n has joined #ruby
seich- has joined #ruby
end_guy has quit [Ping timeout: 240 seconds]
filipe has joined #ruby
_axx has joined #ruby
michaeldeol has joined #ruby
locriani has quit [Ping timeout: 245 seconds]
nettoweb has quit [Quit: nettoweb]
sambao21 has quit [Quit: Computer has gone to sleep.]
relix has joined #ruby
deol has joined #ruby
michaeldeol has quit [Read error: Connection reset by peer]
niceguyjames has quit [Quit: Computer has gone to sleep.]
m8 has joined #ruby
atyz has quit [Quit: Leaving...]
end_guy has joined #ruby
sambao21 has joined #ruby
malkomalko has joined #ruby
akells has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
mansi has quit [Read error: Connection reset by peer]
bricker`LA has joined #ruby
mansi has joined #ruby
xk_id has joined #ruby
zachrab_ has joined #ruby
jkamenik1 has left #ruby [#ruby]
zachrab has quit [Read error: Connection reset by peer]
mrsolo has quit [Quit: This computer has gone to sleep]
snath has quit [Ping timeout: 264 seconds]
Lewix has joined #ruby
Lewix has joined #ruby
atyz has joined #ruby
ryandeussing has joined #ruby
user258467 has quit [Remote host closed the connection]
johest has quit [Quit: Konversation terminated!]
<proph3t> where can I find a Ruby mentor
<proph3t> ?
rippa has joined #ruby
aganov has quit [Remote host closed the connection]
Guest34931 has quit [Ping timeout: 248 seconds]
kpshek has quit []
<abrkn> is there a way to have a "notifies" that starts a service if not running or restarts if already running? (preferrably multiple services)
Lewix has quit [Ping timeout: 268 seconds]
ELLIOTTCABLE has quit [Remote host closed the connection]
shashin has joined #ruby
dankest has joined #ruby
Spami has joined #ruby
devoldmx3 has quit [Ping timeout: 264 seconds]
dash_ has quit [Quit: dash_]
Kudos has left #ruby ["Textual IRC Client: www.textualapp.com"]
<waxjar> supervisord, god, upstart all do that i believe
devoldmx has joined #ruby
sevenseacat has quit [Quit: Leaving.]
terrellt has quit [Ping timeout: 276 seconds]
Stygia has joined #ruby
Lewix has joined #ruby
bluenemo has quit [Remote host closed the connection]
DanBoy has quit [Remote host closed the connection]
hashpuppy has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
yacks has joined #ruby
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DanBoy has joined #ruby
<havenwood> i've just used god and been happy, but upstart looks interesting
<eka> I always used supervisord
agjacome has quit [Ping timeout: 260 seconds]
sambao21 has joined #ruby
tvw has quit []
pygospa has quit [Disconnected by services]
pygospa has joined #ruby
shashin has quit [Quit: Be back later]
hamakn has joined #ruby
Anticom has joined #ruby
akells has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
jonahR has quit [Quit: jonahR]
dash_ has joined #ruby
rupee has quit [Quit: This computer has gone to sleep]
dash_ has quit [Client Quit]
Quashie_ has joined #ruby
io_syl has joined #ruby
Advocation has quit [Quit: Advocation]
<Alasdairrr> I've always used SMF
filipe has quit [Ping timeout: 245 seconds]
xeon has joined #ruby
xeon has quit [Max SendQ exceeded]
_maes_ has quit [Ping timeout: 245 seconds]
xeon has joined #ruby
Matriks has quit [Remote host closed the connection]
xeon has quit [Max SendQ exceeded]
hamakn has quit [Ping timeout: 245 seconds]
xeon has joined #ruby
QQQ has quit [Ping timeout: 268 seconds]
terrellt has joined #ruby
akells has joined #ruby
locriani has joined #ruby
filipe has joined #ruby
xeon has quit [Max SendQ exceeded]
xeon has joined #ruby
Advocation has joined #ruby
xeon has quit [Max SendQ exceeded]
GeissT has quit [Quit: MillBroChat AdIRC User]
xeon has joined #ruby
QQQ has joined #ruby
nerocrux has quit [Remote host closed the connection]
xeon has quit [Max SendQ exceeded]
xeon has joined #ruby
xeon has quit [Max SendQ exceeded]
luckyruby has joined #ruby
havenwood has quit [Remote host closed the connection]
xeon has joined #ruby
xeon has quit [Max SendQ exceeded]
ccolorado has left #ruby [#ruby]
<_br_> Lets suppose I want to rebuild a simple twitter, particularly the follow and social stuff. Friends feature etc. Do I have to build that myself or is there something out there which I could to build ontop?
Quashie_ has quit [Ping timeout: 264 seconds]
xeon has joined #ruby
alex__c2022 has joined #ruby
wems has joined #ruby
xeon has quit [Max SendQ exceeded]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
xeon has joined #ruby
poga has quit [Remote host closed the connection]
robovirtuoso has joined #ruby
xeon has quit [Max SendQ exceeded]
mikecmpbll has joined #ruby
MrThePlague has joined #ruby
xeon has joined #ruby
RichardBaker has joined #ruby
mercwithamouth has joined #ruby
<mercwithamouth> does it make sense to write a web crawler in ruby?
<_br_> mercwithamouth: if speed is not a paramount feature sure.
<eka> mercwithamouth: yes, and I'll do it also, but don't need to
nbrock has joined #ruby
<sam113101> it's i/o bound more than anything else, so yes it does make sense
kpshek has joined #ruby
<_br_> depends also on what you are scraping, if you already throw in a headless browser then its not an issue
digital-ghost has joined #ruby
<mercwithamouth> _br_: long term speed is no big deal though the faster the better...it's more of a personal tool. I almost want to wait until i know more about clojure and use that
<terrellt> mercwithamouth: There are some good utilities for web scraping in ruby, and I'm sure it'll be "as fast as you expect."
<_br_> mercwithamouth: I would check out existing scraping libs first. Particularly in different langauges, to see what fits your bill best without to re-invent the wheel.
digital-ghost has quit [Remote host closed the connection]
dweeb has quit [Quit: Textual IRC Client: www.textualapp.com]
marcdel has joined #ruby
Animawish has joined #ruby
Animawish has quit [Client Quit]
workmad3 has joined #ruby
jsatk has joined #ruby
pel_daniel has joined #ruby
juarlex has quit [Remote host closed the connection]
<mercwithamouth> _br_: definitely..it's mostly 'play'....it's like a personal tool..to allow me to be more lazy.
fenicks has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
juarlex has joined #ruby
<pedrocr> any idea why this breaks: Net::HTTP.get URI("https://www.tbray.org/ongoing/ongoing.atom")
<pedrocr> it seems to be trying to parse the beginning of the content as the HTTP response
mlpinit_ has joined #ruby
akells has quit [Remote host closed the connection]
<_br_> mercwithamouth: Ah thats a lot of fun then. I wrote myself also one leveraging statistical analysis based on past data to guess how to change the parsing scheme when a page structure changed.
<pedrocr> I'm running ruby 1.9.3p0
marcdel_ has joined #ruby
dankest has quit [Quit: Peace]
snovak_ has joined #ruby
fenicks has joined #ruby
MrThePlague has quit [Remote host closed the connection]
<terrellt> _br_: Success rate?
elux has joined #ruby
marcdel has quit [Ping timeout: 256 seconds]
xeon has quit [Ping timeout: 245 seconds]
poga has joined #ruby
alup has quit [Quit: Leaving]
<mercwithamouth> _br_: scary o_O;
soba_ has joined #ruby
nbrock has quit [Quit: Leaving.]
snath has joined #ruby
soba has quit [Ping timeout: 260 seconds]
bronson_ has joined #ruby
mlpinit has quit [Ping timeout: 276 seconds]
snovak has quit [Ping timeout: 264 seconds]
nomenkun has quit [Remote host closed the connection]
<_br_> terrellt: Pretty good, because for my cases the data is very descriptive and similar. Its pretty alpha though. Really want to opensource this stuff once I have time here.
bronson_ has quit [Client Quit]
ahawkins has joined #ruby
<_br_> mercwithamouth: Well its part of the fun :)
robovirtuoso has quit [Ping timeout: 240 seconds]
xeon has joined #ruby
snath has quit [Read error: Connection reset by peer]
rupee has joined #ruby
akells has joined #ruby
luckyruby has quit [Remote host closed the connection]
snath has joined #ruby
Tricon has joined #ruby
kiri has quit [Ping timeout: 264 seconds]
camilasan has quit [Remote host closed the connection]
RichardBaker has quit [Quit: RichardBaker]
swordsmanz has quit [Read error: Connection reset by peer]
end_guy has quit [Remote host closed the connection]
shaunbaker has quit [Remote host closed the connection]
swordsmanz has joined #ruby
DrCode has quit [Remote host closed the connection]
DanBoy has quit [Remote host closed the connection]
jaynewstrom has quit [Read error: Connection reset by peer]
Catie has joined #ruby
lucazi has quit [Remote host closed the connection]
jaynewstrom has joined #ruby
DanBoy has joined #ruby
pitzips has joined #ruby
amacgregor has quit [Ping timeout: 245 seconds]
user258467 has joined #ruby
senayar has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 256 seconds]
mrsolo has joined #ruby
devoldmx has joined #ruby
dkamioka has joined #ruby
end_guy has joined #ruby
kiri has joined #ruby
nari_ has quit [Ping timeout: 248 seconds]
nowthatsamatt has quit [Quit: nowthatsamatt]
deol has left #ruby [#ruby]
losco has joined #ruby
Xeago has quit [Remote host closed the connection]
gemmy has joined #ruby
tj_ has joined #ruby
hasrb has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 240 seconds]
devoldmx has joined #ruby
dankest has joined #ruby
seich- has quit [Ping timeout: 245 seconds]
colonolGron has joined #ruby
ssvo has joined #ruby
ewnd9 has quit [Ping timeout: 260 seconds]
Monie has joined #ruby
Anticom has quit [Ping timeout: 264 seconds]
timonv has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
blackmesa has joined #ruby
DrCode has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
banghouse2 has joined #ruby
kofno has quit [Remote host closed the connection]
cody-- has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
seich- has joined #ruby
niceguyjames has joined #ruby
niceguyjames has quit [Client Quit]
juarlex has quit [Remote host closed the connection]
shaunbaker has joined #ruby
kilophoton has joined #ruby
hashpuppy has quit [Quit: Computer has gone to sleep.]
smigg has joined #ruby
hasrb has joined #ruby
i_s has joined #ruby
noname001 has quit [Ping timeout: 260 seconds]
devoldmx3 has joined #ruby
girija has joined #ruby
freeayu has joined #ruby
kofno has joined #ruby
MrThePlague has joined #ruby
MrThePlague has joined #ruby
devoldmx27 has joined #ruby
felix-dev has joined #ruby
<felix-dev> سمَـَّوُوُحخ ̷̴̐خ ̷̴̐خ ̷̴̐خWords Have Power امارتيخ ̷̴̐خ
failshell has quit [Remote host closed the connection]
eka has quit [Remote host closed the connection]
mlpinit_ has quit [Remote host closed the connection]
jsatk has quit [Remote host closed the connection]
tonni has quit [Remote host closed the connection]
malkomalko has quit [Remote host closed the connection]
gyre007 has quit [Remote host closed the connection]
marcgg has quit [Remote host closed the connection]
jds_ has quit [Remote host closed the connection]
shaunbak_ has joined #ruby
mlpinit has joined #ruby
jsatk has joined #ruby
marcgg has joined #ruby
eka has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
kobain has joined #ruby
hiyosi has quit [Quit: WeeChat 0.4.1]
hiyosi has joined #ruby
dagobah has quit [Remote host closed the connection]
i_s has quit [Ping timeout: 264 seconds]
devoldmx3 has quit [Ping timeout: 248 seconds]
baordog has joined #ruby
hiyosi has quit [Client Quit]
i_s has joined #ruby
losco has quit [Quit: Linkinus - http://linkinus.com]
filipe has quit [Remote host closed the connection]
losco has joined #ruby
hiyosi has joined #ruby
shellox has joined #ruby
proph3t has quit [Quit: proph3t]
<_br_> uh? is today philosophy day? :)
losco has left #ruby [#ruby]
shaunbaker has quit [Ping timeout: 245 seconds]
[[thufir]] has joined #ruby
mneorr has joined #ruby
proph3t has joined #ruby
Targen has joined #ruby
kofno has quit [Remote host closed the connection]
mneorr_ has quit [Read error: Connection reset by peer]
shaunbak_ has quit [Remote host closed the connection]
jamesaanderson has joined #ruby
endash has joined #ruby
devoldmx has joined #ruby
Spami has joined #ruby
felix-dev has left #ruby [#ruby]
Stygia has quit [Quit: Leaving]
pootler has quit [Ping timeout: 245 seconds]
mmitchell has quit [Remote host closed the connection]
akells has quit [Remote host closed the connection]
mmitchell has joined #ruby
devoldmx3 has joined #ruby
nowthatsamatt has joined #ruby
<_br_> Hanmac: haha thats awesome
maletor has joined #ruby
devoldmx27 has quit [Ping timeout: 264 seconds]
Advocation has quit [Quit: Advocation]
anay has joined #ruby
efrainolivares has joined #ruby
devoldmx has quit [Ping timeout: 264 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Advocation has joined #ruby
rdxc has joined #ruby
<Hanmac> _br_ and if this is not big enough, use the printed version of Wikipedia: http://img.labnol.org/di/wikipedia-print.jpg ;P
pootler has joined #ruby
cantonic has quit [Quit: cantonic]
allaire has joined #ruby
<allaire> Hi, how can I make this regex works with a utf-8 char? https://gist.github.com/allaire/6391636
randomautomator has joined #ruby
Uranio has joined #ruby
ukd1 has joined #ruby
cantonic has joined #ruby
<mercwithamouth> ruby/dev newb question...i'm watching a screencast. how does that work? abs_path since abs_path doesn't take any parameters...how can you still feed in the file...that's very functional...but i would think you would still have to include an argument...i know my thinking is wrong but help =P http://d.pr/i/gQue
Davey has quit [Quit: Computer has gone to sleep.]
proph3t has quit [Remote host closed the connection]
<Hanmac> allaire: \w has only ascii chars, use [[:alpha:]] or [[:alnum:]]
cantonic has quit [Client Quit]
ahawkins has quit [Quit: leaving]
colonolGron is now known as hungryGron
jamesaanderson has joined #ruby
dkamioka has quit [Remote host closed the connection]
tonni has joined #ruby
Davey has joined #ruby
nettoweb has joined #ruby
<allaire> Hanmac: Error still happening. The issue is with the "é". if I change it for a regular "e", it works well
donmartini has quit [Quit: WeeChat 0.4.0]
xeon has quit [Ping timeout: 256 seconds]
<mercwithamouth> or oops ignore me...i see what they're doing now. way off
sambao21 has quit [Quit: Computer has gone to sleep.]
mlpinit has quit [Remote host closed the connection]
dkamioka has joined #ruby
mlpinit has joined #ruby
aaronmcadam has quit [Ping timeout: 240 seconds]
DanKnox_away is now known as DanKnox
<apeiros> allaire: //n tells ruby that your regex is NOT utf-8
devoldmx3 has quit [Ping timeout: 248 seconds]
dkamioka has quit [Remote host closed the connection]
sambao21 has joined #ruby
devoldmx has joined #ruby
jamesaanderson has quit [Ping timeout: 256 seconds]
<apeiros> so you can't use non-ascii characters in such a regex.
RichardBaker has joined #ruby
<allaire> I see, so if I remove the /n for a /
<allaire> and swap all \w for [:alnum:]
jamesaanderson has joined #ruby
<allaire> Meh now I get the reverse error :P Encoding::CompatibilityError: incompatible encoding regexp match (UTF-8 regexp with ASCII-8BIT string)
twoism has joined #ruby
dkamioka has joined #ruby
ghr has quit [Quit: Computer has gone to sleep.]
snath has quit [Read error: Connection reset by peer]
ismael_ has joined #ruby
snath has joined #ruby
ismaelrb has joined #ruby
<allaire> apeiros: Willing to share a bit more knowledge on the topic? :(
pH14 has quit [Remote host closed the connection]
S0da has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pwh has joined #ruby
poga has quit [Remote host closed the connection]
mansi has quit [Remote host closed the connection]
poga has joined #ruby
ismael__ has joined #ruby
mansi has joined #ruby
Banistergalaxy has joined #ruby
corpuscle has joined #ruby
sleetdrop has joined #ruby
starfox21 has joined #ruby
Nogbit has left #ruby [#ruby]
<apeiros> allaire: what ruby version are you using?
sh00p has joined #ruby
<apeiros> I assume 1.9+?
<allaire> yep
<apeiros> if so, then \w does NOT differ between //n and //u
<apeiros> this changed from ruby 1.8 where \w changed depending on //n and //u
bigkevmcd has quit [Quit: outta here]
marcgg has quit [Remote host closed the connection]
ismael_ has quit [Quit: Linkinus - http://linkinus.com]
<apeiros> I don't see why you'd get above error with the code you pasted… your string literals should be utf-8, since you set the encoding via the comment
ismael__ has quit [Client Quit]
ismael_ has joined #ruby
devoldmx has quit [Ping timeout: 245 seconds]
Advocation has quit [Quit: Advocation]
<apeiros> ah, in the code you pasted you don't try to match
wallerdev has quit [Quit: wallerdev]
<apeiros> allaire: well, the question is on you - why are you trying to match a binary encoded string against a utf-8 pattern? :)
mansi has quit [Read error: Operation timed out]
ntus1017 has joined #ruby
snath has quit [Ping timeout: 256 seconds]
<apeiros> if the string is supposed to be a utf-8 encoded string, then make sure the encoding is set properly.
devoldmx has joined #ruby
<allaire> apeiros: Honestly, I suck at regex, and I'm only trying to extend https://github.com/github/email_reply_parser/blob/master/lib/email_reply_parser.rb#L130 so it works for iPhone french signature
<allaire> so I'm a bit http://i.imgur.com/xVyoSl.jpg
splittingred has quit [Ping timeout: 240 seconds]
ntus1017 has quit [Remote host closed the connection]
i_s has quit [Remote host closed the connection]
i_s has joined #ruby
<sam113101> I'm pretty sure that dog knows what he's doing
sleetdrop has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
splittingred has joined #ruby
<pontiki> probably better than me
<allaire> nah dont think so, I know him quite well
sleetdrop has joined #ruby
<sam113101> he's got his tie and everything
digital-ghost has joined #ruby
bzitzow has joined #ruby
<allaire> but he's booting windows so....
mikepack has joined #ruby
fourq has joined #ruby
sepp2k has joined #ruby
<pontiki> maybe he's helping out a friend?
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marcdel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Hanmac> ah i finally get what is the meaning of the arabic words ;P i thought that they are only spaming ;P
cody-- has joined #ruby
mac_fag has joined #ruby
<mac_fag> سمَـَّوُوُحخ ̷̴̐خ ̷̴̐خ ̷̴̐خ امارتيخ ̷̴̐خ
mac_fag has quit [Killed (idoru (Spam is off topic on freenode.))]
mlpinit has quit [Remote host closed the connection]
tonni has quit [Remote host closed the connection]
MrThePlague has quit [Remote host closed the connection]
mmitchell has quit [Remote host closed the connection]
jsatk has quit [Remote host closed the connection]
i_s has quit [Remote host closed the connection]
eka has quit [Remote host closed the connection]
anay has quit [Remote host closed the connection]
allaire has quit [Remote host closed the connection]
ismaelrb has quit [Remote host closed the connection]
digital-ghost has quit [Remote host closed the connection]
endash has quit [Remote host closed the connection]
mmitchell has joined #ruby
jsatk has joined #ruby
allaire has joined #ruby
eka has joined #ruby
digital-ghost has joined #ruby
<AntelopeSalad> is the book "design patterns in ruby" still useful to go through given it's a 2007 release?
<apeiros> allaire: well, sorry, busy here and going to commute soon
breakingthings has quit [Remote host closed the connection]
breakingthings has joined #ruby
mneorr has quit [Remote host closed the connection]
freeayu has quit [Remote host closed the connection]
efrainolivares_ has joined #ruby
poga has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 264 seconds]
poga has joined #ruby
efrainolivares has quit [Ping timeout: 264 seconds]
dkamioka has quit [Remote host closed the connection]
efrainolivares_ has left #ruby [#ruby]
iliketur_ has joined #ruby
<fourq> zendeavor: was that you that we were having a conversation about vim registers vs set paste some time last week?
iliketur_ has quit [Client Quit]
akells has joined #ruby
iliketur_ has joined #ruby
RORgasm has quit [Remote host closed the connection]
pwh has quit [Quit: pwh]
<zendeavor> perhaps
kidoz has joined #ruby
<digital-ghost> Anyone able to tell me why there is a difference to <% a = b ? '_extension' : '' %> vs. assigning b as @b
apeiros has quit [Remote host closed the connection]
<fourq> zendeavor: you and brisbin and i I think
<zendeavor> i've switched to emacs since then and am now totally lost
rezzack has joined #ruby
<digital-ghost> The first bombs, because b is undefined. But, why is it that @b doesn't bomb/error out?
<fourq> lol, you on arch?
<zendeavor> yes
<fourq> hmm, and we also talked about weechat
<fourq> ringing a bell?
<zendeavor> no
<fourq> k
<zendeavor> i talk about vim and emacs and weechat with a lot of people regularly
<fourq> so would you argue set paste of registers?
<fourq> or*
<Morrolan> digital-ghost: instance-variables default to nil, if undefined.
<zendeavor> registers, with a vim compiled +clipboard
<digital-ghost> Morrolan: Wonderful, that explains what's going on. Is there a reason for that?
<Morrolan> I don't know, it has bitten me in the arse several times. :P
<fourq> and why not set paste?
<zendeavor> because you have to set nopaste after
<fourq> zendeavor: also what about over ssh?
<fourq> can you use registers over ssh that way?
<zendeavor> :e scp://
JDHankle has quit [Remote host closed the connection]
<Morrolan> digital-ghost: It might be so you can access instance variables of an object (via attr_...), and have it not blow up when they're not set yet. But I am unsure.
Woodsman has joined #ruby
MrThePlague has joined #ruby
MrThePlague has quit [Changing host]
MrThePlague has joined #ruby
<digital-ghost> Morrolan: Maybe, thanks for the response. I just realized that I've never understood 'uninitialized ___var type___' before
<digital-ghost> Not sure what that means, vs say undefined?
<fourq> zendeavor: thanks
<zendeavor> fourq: also go ahead and make the leap to gvim if you haven't yet
JDHankle has joined #ruby
JDHankle has quit [Remote host closed the connection]
devoldmx3 has joined #ruby
<fourq> why's that
akells has quit [Remote host closed the connection]
Xeago has joined #ruby
<zendeavor> better rendering
zeade has joined #ruby
JDHankle has joined #ruby
dkamioka has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
maasdesigner has quit [Ping timeout: 268 seconds]
seich- has quit [Ping timeout: 245 seconds]
<zendeavor> vim also has a --server mode which could be useful in a well-engineered workflow. but it requires X11 for IPC
<zendeavor> (so may as well just bump up to gvim while you're here)
jsatk has quit [Remote host closed the connection]
mmitchell has quit [Remote host closed the connection]
starfox21 has quit [Remote host closed the connection]
thatRD has quit [Remote host closed the connection]
krawchyk has quit [Remote host closed the connection]
mmitchell has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
jsatk has joined #ruby
zeel has quit [Quit: Playaz gon' play]
starfox21 has joined #ruby
<zendeavor> fourq: to be perfectly fair, there's literally only 1 downside to gvim; it's not on your virtual console
fantazo has quit [Ping timeout: 260 seconds]
<zendeavor> you probably spend your whole time in X already...
robovirtuoso has joined #ruby
rbento has joined #ruby
dhruvasagar has quit [Ping timeout: 245 seconds]
iamjarvo has quit [Remote host closed the connection]
rdxc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowthatsamatt has quit [Quit: nowthatsamatt]
<fourq> zendeavor: and for screen users?
dhruvasagar has joined #ruby
iamjarvo has joined #ruby
skaby has quit [Ping timeout: 264 seconds]
<zendeavor> learn to split vim windows?
<zendeavor> you're either switching context from gvim-to-screen or vim-to-screen-buffer
<havenwood> Aaron Patterson showed some nice gvim wizardry in his peepcode.
seich- has joined #ruby
<havenwood> tempting...
<zendeavor> havenwood: i bit the bullet and adopted emacs instead
snath has joined #ruby
<zendeavor> less than a week in, full convert
<havenwood> zendeavor: nice, that is a fast adoption
allaire has quit []
<zendeavor> if you can swallow the pill that emacs is really a host for elisp applications with an basic text editor thrown in for the ride
endzyme has quit [Remote host closed the connection]
JDHankle has quit [Remote host closed the connection]
<zendeavor> as opposed to a text editor that happens to understand a lisp dialect
<havenwood> zendeavor: emacs seems like a really great OS, if it just shipped with a nice text editor...
<zendeavor> then you're ready to roll
<havenwood> :P
<zendeavor> yeah i'm not sure where that quote originated
<zendeavor> but it's false
iamjarvo has quit [Ping timeout: 268 seconds]
<havenwood> i like emac bindings, keep dipping my toes but haven't actually stuck with it for several weeks
<zendeavor> at least at this point
bf4 has joined #ruby
mark_locklear has quit [Quit: Leaving]
<zendeavor> perhaps someday in the past it was true
<havenwood> zendeavor: just being silly (hope noone takes that joke srsly)
<zendeavor> the catch is that every keystroke is actually bound to an elisp function call
<zendeavor> even literal characters
Yakko has joined #ruby
snovak_ has quit [Remote host closed the connection]
<zendeavor> so the editor in the end is just an elisp application too
mlpinit has joined #ruby
<zendeavor> havenwood: i've heard evil-mode can even outshine vim's own text-objects
snovak has joined #ruby
nanoxd has quit [Quit: Textual IRC Client: www.textualapp.com]
bricker`LA has quit [Ping timeout: 264 seconds]
<havenwood> i need to invest some time, soo much to learn...!
<zendeavor> it's not much to learn
capsuley has joined #ruby
<zendeavor> M-x apropos RET ; C-h ?
kofno has joined #ruby
hungryGron has quit [Quit: Lost terminal]
<zendeavor> movement with C-n C-p C-f C-b M-f M-b
jamesaanderson has joined #ruby
dkamioka has quit [Remote host closed the connection]
<havenwood> that is about how much I know :P
<zendeavor> but you can just have evil-mode and get the beauty of vim style navigation
<havenwood> interesting
kofno has quit [Remote host closed the connection]
kofno_ has joined #ruby
<zendeavor> havenwood: that's enough to use it effectively; emacs24 has package.el builtin too, so M-x package-list-package RET
ismael_ has quit [Remote host closed the connection]
atmosx has joined #ruby
kofno_ has quit [Remote host closed the connection]
jbrechtel has joined #ruby
JDHankle has joined #ruby
<zendeavor> havenwood: the most important things are discovery of documentation (which tends to be rather brief, like a docstring) and how to enable/disable modes
kofno has joined #ruby
Ripp__ has joined #ruby
kofno has quit [Remote host closed the connection]
srji has quit [Ping timeout: 264 seconds]
iamjarvo_ has joined #ruby
devoldmx3 has quit [Read error: Connection reset by peer]
carraroj has joined #ruby
<zendeavor> havenwood: oh, i guess you can't forget C-s and C-r for incremental searches
zeade has quit [Remote host closed the connection]
zeade has joined #ruby
devoldmx has joined #ruby
St_Marx has quit [Quit: Ex-Chat]
atmosx has quit [Client Quit]
zachrab_ has quit [Remote host closed the connection]
pedrocr has quit [Quit: Ex-Chat]
gemmy has quit [Ping timeout: 260 seconds]
failshell has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
c0rn has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
dallasm has joined #ruby
dkamioka has joined #ruby
rdark has quit [Quit: leaving]
carraroj has quit [Remote host closed the connection]
ramblex has quit [Remote host closed the connection]
Monie has joined #ruby
carraroj has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
MileyCyrus has joined #ruby
<MileyCyrus> hi
devoldmx has joined #ruby
<Morrolan> G'day
fourq has quit [Ping timeout: 264 seconds]
jamesaanderson has joined #ruby
fourq has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
browndawg has quit [Quit: Leaving.]
ryandeussing has quit [Remote host closed the connection]
dkamioka has quit [Remote host closed the connection]
jamesaanderson has quit [Client Quit]
abrkn has quit [Ping timeout: 240 seconds]
marcdel has joined #ruby
marcdel has quit [Max SendQ exceeded]
devoldmx has quit [Read error: Connection reset by peer]
shock_one has joined #ruby
marcdel has joined #ruby
bricker has joined #ruby
iamjarvo_ has quit [Remote host closed the connection]
sleetdrop has quit [Quit: Computer has gone to sleep.]
BSaboia has quit [Ping timeout: 264 seconds]
iamjarvo has joined #ruby
nettoweb_ has joined #ruby
youngman15 has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
browndawg has joined #ruby
lukec has quit [Quit: lukec]
tvw has joined #ruby
<youngman15> If I have this: .fixed <- is this a method or a element?
<youngman15> IN my ruby code
nettoweb has quit [Ping timeout: 256 seconds]
nettoweb_ is now known as nettoweb
mrsolo has joined #ruby
<terrellt> youngman15: gist.
carraroj has quit [Ping timeout: 264 seconds]
<canton7> youngman15, ruby doesn't have public elements, only public methods. so it's proabably a method
<youngman15> ahhh ok thanks..i thought it was a methor
<youngman15> method
dkamioka has joined #ruby
iliketur_ has joined #ruby
ryandeussing has joined #ruby
katsrc has joined #ruby
enebo has joined #ruby
mansi has joined #ruby
adambeynon has joined #ruby
<r0bglees0n> whats an element?
apeiros has joined #ruby
dkamioka has quit [Remote host closed the connection]
<goodcodeguy> twerk MileyCyrus twerk!
<MileyCyrus> :D
mansi_ has joined #ruby
goleldar has joined #ruby
girija has quit [Ping timeout: 240 seconds]
MrThePlague has quit [Remote host closed the connection]
kirun has joined #ruby
skaby has joined #ruby
cozby has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
lyanchih has joined #ruby
jleishman has quit [Remote host closed the connection]
<MileyCyrus> I became a fan of MileyCyrus since That Day
brianpWins has joined #ruby
jamesaanderson has joined #ruby
<cozby> hi, not sure where else to ask... so I figure I try here. When you perform a bundle install is fetches gem dependencies, is it possible to force the fetch to use the http protocol and not the git protocol?
mansi_ has quit [Read error: Operation timed out]
<goodcodeguy> MileyCyrus: I became a fan of foam fingers ;)
mansi has joined #ruby
workmad3 has joined #ruby
seich- has quit [Ping timeout: 245 seconds]
<MileyCyrus> hahah
altamic has joined #ruby
gemmy has joined #ruby
alex__c2022 has joined #ruby
altamic has quit [Client Quit]
devoldmx has joined #ruby
senayar has joined #ruby
lukec has joined #ruby
<shock_one> cozby: No. You don't have git?
seich- has joined #ruby
lyanchih has quit [Quit: lyanchih]
marcdel has quit [Ping timeout: 245 seconds]
rupee has quit [Quit: Leaving]
workmad3 has quit [Read error: Operation timed out]
Al_ has quit [Quit: Al_]
devoldmx has quit [Read error: Connection reset by peer]
akells has joined #ruby
DanKnox is now known as DanKnox_away
andikr has quit [Remote host closed the connection]
<cozby> yes I do
devoldmx has joined #ruby
nowthatsamatt has joined #ruby
<shock_one> cozby: Then what is the problem?
tonni has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rickmasta has joined #ruby
teddyp1cker has joined #ruby
<cozby> bundle install --without development test postgres --deployment when I run that
workmad3 has joined #ruby
<cozby> the fetch times out on dependencies because it uses the git:// protocol
sayan has joined #ruby
<cozby> I want to force it to use the http proto instead
<cozby> (because that works)
shellox has quit [Ping timeout: 264 seconds]
devoldmx has quit [Read error: Connection reset by peer]
youngman15 has quit [Quit: Page closed]
<terrellt> cozby: I assume your gemfile has a git repo in it? Why not just switch that to the HTTP repo?
<shock_one> cozby: you can try to install that gem with the gem command or manually.
scottradcliff has joined #ruby
splittingred has quit [Quit: splittingred]
gildo has joined #ruby
jamesaanderson has joined #ruby
<cozby> terrellt: um I don't follow. I have a project I cloned gitlabhq to be exact
<cozby> when I run the bundle install it fails
devoldmx has joined #ruby
senayar has quit [Remote host closed the connection]
pootler has quit [Ping timeout: 256 seconds]
DanKnox_away is now known as DanKnox
<terrellt> Which release?
<cozby> I have 4.2 and I'm trying to upgrade to 5
<cozby> I'm following those instractions
<cozby> at step 5 it flakes out
splittingred has joined #ruby
<cozby> because it can't grab dependencies using the git:// proto
dkamioka has joined #ruby
<terrellt> cozby: Can you go straight to 5.4? The 5.4 gemfile doesn't have git://.
pratz has joined #ruby
brianpWins has quit [Quit: brianpWins]
mmitchell has quit [Remote host closed the connection]
<cozby> terrellt... I'm not sure
Matriks has joined #ruby
<cozby> the jump from 4 to 5 is drastic
jamesaanderson has quit [Client Quit]
<terrellt> If they follow semver it should be the same process.
pratz has left #ruby [#ruby]
<terrellt> Gitlab's pretty good at documenting changes though.
Zai00 has quit [Quit: Zai00]
iamjarvo has quit [Remote host closed the connection]
corpuscle has quit [Quit: corpuscle]
iamjarvo has joined #ruby
ssvo has quit [Ping timeout: 248 seconds]
raul782_ has joined #ruby
<kaldrenon> Is there an array function which accepts a block and returns two arrays - one which contains elements meeting the block's condition, and one with the remainder? For example, [1.2.3].func_name { |i| i < 3 } would return [[1.2]. [3]]
<kaldrenon> (that last . was supposed to be a , )
<banisterfiend> kaldrenon partition
<kaldrenon> banisterfiend: Thaaat's what I was looking for.
<banisterfiend> >> [1,2,3].partition { |i| i < 3 }
<eval-in> banisterfiend => [[1, 2], [3]] (https://eval.in/46058)
<kaldrenon> Couldn't remember the name.
sepp2k has quit [Quit: Leaving.]
noop has quit [Ping timeout: 264 seconds]
jamesaanderson has joined #ruby
thesheff17_ has joined #ruby
timonv has joined #ruby
noop has joined #ruby
iamjarvo has quit [Read error: Operation timed out]
scarolan_ has joined #ruby
<shock_one> About remembering — a while ago some guys from this channel used a utility to record your terminal. Maybe somebody remembers it's name?
theRoUS is now known as theRoUS|sick
thesheff17 has quit [Disconnected by services]
thesheff17_ is now known as thesheff17
<apeiros> shock_one: I guess you should ask banisterfiend
<banisterfiend> shock_one showterm
<shock_one> banisterfiend: exactly! Thank you.
scarolan has quit [Ping timeout: 256 seconds]
jonkri has quit [Quit: jonkri]
MrBoo has joined #ruby
rdxc has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
kofno has joined #ruby
Criztian has quit [Remote host closed the connection]
<banisterfiend> shock_one that'll be $50 thankyou
scarolan has joined #ruby
pwh has joined #ruby
browndawg has quit [Ping timeout: 248 seconds]
haxrbyte has quit [Remote host closed the connection]
pH14 has joined #ruby
scarolan_ has quit [Read error: Operation timed out]
devoldmx has joined #ruby
eldariof has joined #ruby
kofno has quit [Ping timeout: 240 seconds]
robovirtuoso has quit [Quit: Lost terminal]
QQQ has quit [Ping timeout: 245 seconds]
haxrbyte has joined #ruby
zarubin has quit [Ping timeout: 245 seconds]
pratz has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pwh has quit [Ping timeout: 256 seconds]
stayarrr has joined #ruby
pratz has quit [Client Quit]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
soba has joined #ruby
banghouse2 is now known as banghouseAFK
mercwithamouth has quit [Ping timeout: 264 seconds]
wallerdev has joined #ruby
soba_ has quit [Ping timeout: 256 seconds]
teddyp1cker has quit [Remote host closed the connection]
alvaro_o has joined #ruby
jkline has joined #ruby
DrCode has quit [Remote host closed the connection]
<jkline> I want to add a Rake task that takes action based on values in my gemspec file. Is there a standard or recommended way to read a gemspec file from within Rake?
cantonic has joined #ruby
<Hanmac> banisterfiend: did you allready laugth about the Nintento2DS ? ;P
lyanchih has joined #ruby
<banisterfiend> Hanmac no opinion, why don't u like it bb?
alex__c2022 has quit [Quit: alex__c2022]
marcdel has joined #ruby
marcdel has quit [Max SendQ exceeded]
hasrb has quit [Remote host closed the connection]
dkamioka has quit [Remote host closed the connection]
<Hanmac> imo i dont like the layout ... imo it its better when you can fold it ... the current 2DS does not fit into a pocket :/
MrBoo has quit [Ping timeout: 264 seconds]
nhubbard has left #ruby [#ruby]
marcdel has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
devoldmx has quit [Read error: Connection reset by peer]
dallasm has quit [Remote host closed the connection]
<Eiam> I don't like it because it continues to acknowledge Nintendo's willful ignorance of the future
<Eiam> which tells me the company will probably just wither away & die
Zeeraw has quit [Quit: Computer has gone to sleep.]
devoldmx has joined #ruby
alex__c2022 has joined #ruby
<Eiam> mom doesn't buy a nintendo, she buys a smart phone, the latest android or iOS thingy. Mom is far more likely to also buy her kid one of those things that can do 'lots of things and maybe she will turn of cell service when he gets older for emergencies" than "I'm going to buy him a stupid box that just lets him play video games all day"
gemmy has quit [Quit: leaving]
<banisterfiend> Hanmac the real question is whether upon folding yourself the pocket fits into you.
<Eiam> - 50 DKP for nintendo.
gildo has quit [Quit: Leaving]
marek_ has joined #ruby
DrCode has joined #ruby
Speed has joined #ruby
alex__c2022 has quit [Client Quit]
mercwithamouth has joined #ruby
jerius has quit [Quit: jerius]
noop is now known as noopq
soba has quit [Read error: Connection reset by peer]
mmitchell has joined #ruby
soba has joined #ruby
akells has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 245 seconds]
lyanchih has quit [Quit: lyanchih]
teddyp1cker has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jkline> Ok, so apparently Gem::Specification.load is the thing I want
kirun has quit [Ping timeout: 260 seconds]
<jkline> it was a bit hard to find because very common words. Still let me know if there is something better
jerius has joined #ruby
saarinen has joined #ruby
tkuchiki has quit [Remote host closed the connection]
buibex has joined #ruby
dhruvasagar has joined #ruby
akells has joined #ruby
pweems has joined #ruby
akells has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
kirun has joined #ruby
Uranio has quit [Quit: while you reading this, a kitty dies]
seich- has quit [Ping timeout: 245 seconds]
devoldmx has quit [Read error: Connection reset by peer]
zarubin has joined #ruby
iamjarvo has joined #ruby
`MArceLL` has joined #ruby
codecop has quit [Remote host closed the connection]
pootler has joined #ruby
failshell has quit [Remote host closed the connection]
sayan has quit [Quit: Leaving]
kayloos has joined #ruby
ukd1 has quit [Remote host closed the connection]
marcdel has joined #ruby
timonv has quit [Remote host closed the connection]
devoldmx has joined #ruby
Xeago has quit [Remote host closed the connection]
seich- has joined #ruby
stayarrr has quit [Quit: Leaving.]
davexunit has joined #ruby
<davexunit> hey everyone
splittingred has quit [Quit: splittingred]
jerius has quit [Ping timeout: 245 seconds]
<davexunit> anyone here ever use faraday with the net-http-persistent adapter?
marek_ has quit [Read error: Connection reset by peer]
locriani has quit [Remote host closed the connection]
klm1 has joined #ruby
locriani has joined #ruby
splittingred has joined #ruby
<klm1> hi all — i've got a strange situation where using net::http:persistent (or typhoeus) vs net::http is transforming POSTs into GETs when we hit our API server. has anyone run into anything like this?
RichardBaker has quit [Quit: RichardBaker]
klm1 has left #ruby [#ruby]
marek_ has joined #ruby
kidoz has quit [Quit: Ухожу я от вас]
klm1 has joined #ruby
Senjai has joined #ruby
Senjai has joined #ruby
pootler has quit [Quit: Lost terminal]
locriani_ has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
capsuley has quit [Quit: capsuley]
locriani has quit [Read error: Connection reset by peer]
sanav has joined #ruby
JDHankle has quit [Remote host closed the connection]
capsuley has joined #ruby
rippa has quit [Ping timeout: 248 seconds]
<allsystemsarego> Hi all, http://lpaste.net/raw/92336 can anyone tell me why the timeout option doesn't do its job? Am I missing something?
jaimef has quit [Excess Flood]
decoponio has quit [Quit: Leaving...]
soba has quit [Ping timeout: 264 seconds]
MrThePlague has joined #ruby
MrThePlague has quit [Changing host]
MrThePlague has joined #ruby
<klm1> hey all — i've got a strange situation where net::http::persistent and typhoeus are sending POST requests that are being changed to GETs when we hit our API app server. this doesn't happen with net::http. has anyone seen any behavior like this?
jaimef has joined #ruby
<sanav> hello friends ! I'm final year student in B.tech .I want to do certification in pen-testing but i'm confused which to choose .Some says to choose (ISC)2 and some says choose GPEN .(ISC)2 is very costly for me .Please guide me
ffranz has quit [Quit: Leaving]
dkamioka has joined #ruby
<wmoxam> What the heck is 'pen-testing'?
ffranz has joined #ruby
<allsystemsarego> penetreation testing is ot here
<wmoxam> oh, network security stuff
<sanav> wmoxam: yes
akells has joined #ruby
<wuest> sanav: kind of off topic. Super short version: you should research job requirements for your prospects and choose the better option weighing demand for the cert vs cost
<wmoxam> sanav: I don't think you'll find many people with that background in this channel
<wuest> Have fun, security research/etc. is about the most fun you can have at the keyboard. :)
rippa has joined #ruby
<sanav> haha ! ok :)
<allsystemsarego> in the mean time, three people have on-topic questions which noone answers :P
blueOxigen has joined #ruby
hiyosi has quit [Ping timeout: 264 seconds]
sventon has joined #ruby
sventon has quit [Remote host closed the connection]
<sanav> metasploit is written in ruby .I think that may be #ruby know that but :( .Its ok .Take care and thank you for replying me .
stayarrr has joined #ruby
devoldmx3 has joined #ruby
xcfox has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
marcdel has joined #ruby
locriani_ is now known as locriani
devoldmx has quit [Ping timeout: 264 seconds]
hasrb has joined #ruby
bluOxigen has quit [Ping timeout: 264 seconds]
ericmathison has joined #ruby
pel_daniel has left #ruby [#ruby]
kofno has joined #ruby
fourq has quit [Quit: leaving]
cozby has quit [Remote host closed the connection]
fourq has joined #ruby
<wuest> allsystemsarego: in my defense, I haven't used net::http::persistent and lpaste.net for some weird reason isn't resolving for me. I answered what I could :p
starfox21 has quit [Ping timeout: 248 seconds]
pel_daniel has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
Jake232 has joined #ruby
SHyx0rmZ has joined #ruby
kofno has quit [Ping timeout: 264 seconds]
<sebastianb> Is there any simple way to determine if string contains only specified characters?
<sebastianb> and return false if not?
<sebastianb> It could be operation on array if I split the string
dallasm has joined #ruby
<banisterfiend> sebastianb match it against a regex
dallasm has quit [Remote host closed the connection]
epsylon has joined #ruby
buibex has quit [Remote host closed the connection]
<sebastianb> I hate regex'
<allsystemsarego> Hi all, http://pastebin.com/raw.php?i=nzs1PD9y can anyone tell me why the timeout option doesn't do its job? Am I missing something?
<sebastianb> :D
<banisterfiend> sebastianb now's your chance to unhate it :)
allanm has joined #ruby
sanav has left #ruby [#ruby]
cantonic has quit [Ping timeout: 245 seconds]
robert__ has joined #ruby
robert__ has quit [Changing host]
robert__ has joined #ruby
dallasm has joined #ruby
zarubin has quit [Ping timeout: 248 seconds]
robert__ is now known as robert_
<sebastianb> banisterfiend: I think I resolved it more 'ruby way'
jibi has joined #ruby
<sebastianb> I just have to check it out ;)
<banisterfiend> sebastianb well your problem was quite vaguely stated.
<banisterfiend> sebastianb what did u come up with? :)
jkline has quit [Quit: jkline]
mrsolo has quit [Quit: This computer has gone to sleep]
freezey has joined #ruby
mmitchell has quit [Remote host closed the connection]
Woodsman has quit [Quit: HydraIRC -> http://www.hydrairc.com <- Go on, try it!]
ddm has joined #ruby
mmitchell has joined #ruby
buibex has joined #ruby
markalanevans has joined #ruby
<_br_> Any preferences for translation (i18n) ? i18n, gettext, fast-gettext, r18n, ... ?
<sebastianb> banisterfiend: I already was splitting the string into array of characters and I just iterate through this array and raise error if the char is not in the array of 'allowed' characters.
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mrsolo has joined #ruby
<sebastianb> I'll probably have to refactor it, but for now it's just an idea ;P
<banisterfiend> sebastianb that sounds kind of fussy
<sebastianb> quick and dirty, I would call it ;)
dangerousdave has quit [Remote host closed the connection]
dangerousdave has joined #ruby
<banisterfiend> dirty yes, but it introduces a lot of incidental complexity
<banisterfiend> because*
dangerousdave has quit [Client Quit]
<banisterfiend> you typically want to use the solution that is least complex but balance that with performance
<sebastianb> for now I just want to make it work ;)
vaks2 has joined #ruby
marcdel has joined #ruby
Yakko_ has joined #ruby
ukd1 has joined #ruby
tj___ has joined #ruby
RichardBaker has joined #ruby
wems has quit [Ping timeout: 264 seconds]
<markalanevans> How can i get the http method [GET, POST, PUT, DELETE] while doing a phpunit controller test
altamic has joined #ruby
<_br_> Anyone have an idea performance vise fast-gettext vs r18n ?
buibex has quit [Remote host closed the connection]
atyz has quit [Quit: Leaving...]
stonevil has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
devoldmx3 has quit [Ping timeout: 264 seconds]
Yakko has quit [Ping timeout: 264 seconds]
tj_ has quit [Ping timeout: 264 seconds]
altamic has left #ruby [#ruby]
robustus has joined #ruby
jbrechtel has quit [Remote host closed the connection]
locriani has quit [Remote host closed the connection]
altamic has joined #ruby
locriani has joined #ruby
altamic has left #ruby [#ruby]
<markalanevans> This worked: Request::server('REQUEST_METHOD')
<markalanevans> woohoo.
atyz has joined #ruby
scottradcliff has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
buibex has joined #ruby
pyx has joined #ruby
raul782_ has quit [Remote host closed the connection]
raul782_ has joined #ruby
pweems has quit [Ping timeout: 256 seconds]
davexunit has quit [Quit: Later]
forrest has joined #ruby
locriani has quit [Read error: Connection reset by peer]
akells has quit [Remote host closed the connection]
forrest has quit [Read error: Connection reset by peer]
locriani has joined #ruby
pyx has quit [Client Quit]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
seich- has quit [Ping timeout: 245 seconds]
pweems has joined #ruby
raul782_ has quit [Ping timeout: 248 seconds]
Davey__ has joined #ruby
postmodern has joined #ruby
Davey has quit [Ping timeout: 268 seconds]
srji has joined #ruby
BillCriswell has quit [Remote host closed the connection]
Notte has joined #ruby
dallasm has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 248 seconds]
seich- has joined #ruby
klm1 has left #ruby [#ruby]
Senjai_ has joined #ruby
Senjai has quit [Ping timeout: 256 seconds]
Zeeraw has joined #ruby
capsuley has left #ruby [#ruby]
marek_ has quit [Ping timeout: 240 seconds]
capsuley has joined #ruby
Gabri has joined #ruby
Gabri has quit [Remote host closed the connection]
agent_white has joined #ruby
snovak_ has joined #ruby
mansi has quit [Remote host closed the connection]
Emmanuel_Chanel has quit [Ping timeout: 264 seconds]
marek_ has joined #ruby
mansi has joined #ruby
saarinen has joined #ruby
rbento has quit [Quit: ZZZzzz…]
mercwithamouth has quit [Ping timeout: 256 seconds]
raul782_ has joined #ruby
cody-- has quit [Quit: Computer has gone to sleep.]
jsatk has quit [Remote host closed the connection]
diegoviola has quit [Ping timeout: 264 seconds]
jkamenik has joined #ruby
iamjarvo has quit [Remote host closed the connection]
snovak has quit [Ping timeout: 264 seconds]
iamjarvo has joined #ruby
devoldmx has joined #ruby
atyz has quit [Quit: Leaving...]
mansi has quit [Ping timeout: 248 seconds]
teddyp1cker has quit [Remote host closed the connection]
saarinen has quit [Client Quit]
iamjarvo has quit [Ping timeout: 245 seconds]
VTLob has joined #ruby
eldariof has quit [Ping timeout: 248 seconds]
defaultro has quit [Quit: defaultro]
ArchBeOS has quit [Quit: Leaving]
bluOxigen has joined #ruby
jsatk has joined #ruby
mansi has joined #ruby
stonevil has quit [Remote host closed the connection]
stonevil has joined #ruby
blueOxigen has quit [Ping timeout: 256 seconds]
gildo has joined #ruby
razi has quit [Ping timeout: 276 seconds]
Matriks has quit [Remote host closed the connection]
Rym has joined #ruby
JDHankle has joined #ruby
tj___ is now known as tj_
tj_ is now known as tj`
marcdel has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
kofno has joined #ruby
splittingred has quit [Quit: splittingred]
vince_prignano has joined #ruby
Yakko_ has quit [Remote host closed the connection]
havenwood has joined #ruby
seich- has quit [Ping timeout: 245 seconds]
jdenen has quit [Quit: Leaving.]
gtrak has joined #ruby
MrThePlague has quit [Remote host closed the connection]
vince_prignano has quit [Remote host closed the connection]
wmoxam has quit [Quit: Lost terminal]
vince_prignano has joined #ruby
Davey__ has quit [Read error: Connection reset by peer]
kofno has quit [Ping timeout: 264 seconds]
stonevil_ has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
kayloos has quit [Remote host closed the connection]
devoldmx3 has joined #ruby
kayloos has joined #ruby
jkamenik has quit [Quit: Leaving.]
stonevil has quit [Ping timeout: 245 seconds]
seich- has joined #ruby
jkamenik has joined #ruby
pH14 has quit [Quit: pH14]
diegoviola has joined #ruby
noopq is now known as noopq|afk
carraroj has joined #ruby
KobraKao has quit [Read error: Connection reset by peer]
carraroj has quit [Read error: Connection reset by peer]
jp- has quit [Quit: OK, I believe you… but my tommy gun don't]
dkamioka has quit [Remote host closed the connection]
KobraKao has joined #ruby
carraroj has joined #ruby
carraroj has quit [Client Quit]
gks has joined #ruby
Nisstyre has joined #ruby
bricker_ has joined #ruby
Mon_Ouie has quit [Ping timeout: 264 seconds]
devoldmx3 has quit [Read error: Connection reset by peer]
vince_prignano has quit [Remote host closed the connection]
<gks> So, I have a command line tool, it's relatively complex and includes several objects that get created, it doesn't stay running for long (10 seconds or so) but i'm having a hard time determining the best way to determine if things fail and returning an exit code that says so. should i use exceptions for this? or do i just have a public ivar that says whether that object completed its goal and check before program completion?
shock_one has quit [Remote host closed the connection]
S0da has quit [Quit: S0da]
devoldmx has joined #ruby
jkline has joined #ruby
katsrc_ has joined #ruby
bricker has quit [Ping timeout: 268 seconds]
<waxjar> you exit with a status code > 1 as soon as something bad happens and print relevant messages to STDERR?
<goodcodeguy> allsystemsarego: I may be poking up the wrong tree, but what happens if you set the value to 1?
katsrc has quit [Ping timeout: 264 seconds]
banghouseAFK has quit [Remote host closed the connection]
<gks> waxjar sure i get that, but i'm trying to determine the best method for determine if something has failed
<goodcodeguy> allsystemsarego: apparently that method expects a fixnum or nil
<goodcodeguy> allsystemsarego: so that means that it's probably converting 0.0001 to 0 which then would cause it not to do what you expect
<gks> do people use begin/rescue/ensure, or is that mostly frowned on, i just don't know enough ruby to determine what is common or not
freezey has quit [Remote host closed the connection]
<allsystemsarego> goodcodeguy, good point, let me double check
Lewix has quit [Remote host closed the connection]
devoldmx has quit [Read error: Connection reset by peer]
<allsystemsarego> thanks for pointing out
<waxjar> yea, you can wrap your program in a begin/rescue block to rescue exceptions
<gks> got it, thanks, that should get me started
St_Marx has joined #ruby
<waxjar> your code should raise exceptions in that case tho, if something goes wrong
<gks> right
<ezra> gks: try not to do the pokemon exception handling thing. try to be as discrete with the exception ranges as possible
<gks> this puts a bit more coupling between things which is both good and bad, but it is what it is i guess
tbrock has quit [Quit: Textual IRC Client: www.textualapp.com]
gyre007 has joined #ruby
devoldmx has joined #ruby
stayarrr has quit [Quit: Leaving.]
<waxjar> sometimes you see stuff like: obj.do_this || exit 1
<gks> ezra: is there a guide for what errors typically follow in at? i.e. 2xx are for one thing while 3xx are for another?
bsdbandit has quit [Ping timeout: 245 seconds]
<terrellt> ....Pokemon exception handling?
<gks> waxjar: in my case, the whole thing doesn't fail if one component fails. so, one part could fail but another may not. so i wouldn't necessarily want to exit entirely on one component failing
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<terrellt> ....'Cause...'cause you gotta catch 'em all?
<terrellt> If so, that is fantastic.
<gks> lol
bsdbandit has joined #ruby
<ezra> gks: totally depends on what you're invoking. some libraries are great at throwing typed exceptions (Timeout::TimeoutError, Net::SSH::Auth, etc). others just raise strings
elaptics`away is now known as elaptics
DanBoy has quit [Remote host closed the connection]
<gks> got it, sounds like i need to start with something simple, then improve once i've determined the best way to handle it all (it's not a very big tool (1000 lines or so)
<ezra> terrellt: yeah, the catch them all, wrap-your-entry-point exception handler
atyz has joined #ruby
DanBoy has joined #ruby
brotatos has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
<ezra> sometimes you have to start w/ that to debug something unexpected, but that's a pathological case
goodcodeguy has quit [Quit: Lost terminal]
DonRichie has quit [Ping timeout: 256 seconds]
<waxjar> i always try to use the exception classes that are in core. otherwise i'll raise an LibraryName::Error which inherits from StandardError with a message
tjbiddle has joined #ruby
devoldmx has joined #ruby
strgbrew has joined #ruby
Companion is now known as companion
DonRichie has joined #ruby
<ezra> waxjar: agreed. if i find myself parsing the text message to determine the error, i'll be more granular and just add a new typed exception
devoldmx3 has joined #ruby
jleishman has joined #ruby
jleishman has quit [Remote host closed the connection]
bsdbandit has quit [Ping timeout: 245 seconds]
jleishman has joined #ruby
bsdbandit has joined #ruby
pwh has joined #ruby
atyz has quit [Quit: Leaving...]
goodcodeguy has joined #ruby
soba has joined #ruby
devoldmx has quit [Ping timeout: 264 seconds]
bf4 has left #ruby [#ruby]
ehaliewicz has joined #ruby
yxhuvud has quit [Ping timeout: 264 seconds]
bklane has joined #ruby
pwh has quit [Ping timeout: 245 seconds]
slyv has joined #ruby
slyv has quit [Max SendQ exceeded]
_JamieD_ has joined #ruby
i8igmac has quit [Ping timeout: 246 seconds]
v0n has quit [Ping timeout: 260 seconds]
jsatk has quit [Remote host closed the connection]
workmad3 has joined #ruby
araujo has quit [Read error: Connection reset by peer]
bluOxigen has quit [Ping timeout: 248 seconds]
araujo has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
elux has quit [Quit: Bye!]
breakingthings has quit []
mikepack has quit [Remote host closed the connection]
Vivekananda has joined #ruby
Emmanuel_Chanel has joined #ruby
Vivekananda has quit [Max SendQ exceeded]
Vivekananda has joined #ruby
stonevil_ has quit [Remote host closed the connection]
akells has joined #ruby
cek has quit [Quit: жопа диридай диридиридай]
kaldrenon has quit [Remote host closed the connection]
kaldrenon has joined #ruby
pwh has joined #ruby
diegoviola has quit [Ping timeout: 245 seconds]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
smigg has quit [Remote host closed the connection]
eoinkelly has joined #ruby
akells has quit [Ping timeout: 264 seconds]
kaldrenon has quit [Ping timeout: 245 seconds]
pwh has quit [Ping timeout: 260 seconds]
raul782_ has quit [Remote host closed the connection]
snovak_ has quit [Remote host closed the connection]
raul782_ has joined #ruby
i8igmac has joined #ruby
marek_ has quit [Ping timeout: 264 seconds]
snovak has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
n_blownapart has joined #ruby
bean has joined #ruby
pwh has joined #ruby
bobbyz has joined #ruby
ldnunes has quit [Quit: Leaving]
raul782_ has quit [Ping timeout: 245 seconds]
julian-delphiki has quit [Ping timeout: 256 seconds]
julian-delphiki has joined #ruby
marcdel has joined #ruby
ShaneCurran has joined #ruby
workmad3 has quit [Read error: Operation timed out]
ShaneCurran has quit [Excess Flood]
rcosta has joined #ruby
bean has quit [Ping timeout: 260 seconds]
aryaching has quit [Ping timeout: 256 seconds]
mansi has quit [Remote host closed the connection]
n_blownapart has quit [Remote host closed the connection]
locriani has quit [Remote host closed the connection]
mansi has joined #ruby
soba_ has joined #ruby
eoinkelly has quit [Quit: eoinkelly]
Astral_ has joined #ruby
kofno has joined #ruby
locriani has joined #ruby
staafl has joined #ruby
dash_ has joined #ruby
raul782_ has joined #ruby
mydog2 has quit [Ping timeout: 264 seconds]
SegFaultAX has quit [Quit: ZNC - http://znc.in]
jibi has quit [Quit: .]
mlpinit has quit [Remote host closed the connection]
SegFaultAX has joined #ruby
<staafl> rubyists, how would I go about writing a script that
mansi has quit [Ping timeout: 240 seconds]
<staafl> finds the longest line in a bunch of files
yfeldblum has quit [Ping timeout: 268 seconds]
Astralum has quit [Ping timeout: 260 seconds]
slyv has joined #ruby
soba has quit [Ping timeout: 256 seconds]
locriani has quit [Ping timeout: 245 seconds]
pawprint has joined #ruby
kofno has quit [Ping timeout: 256 seconds]
pawprint has quit [Client Quit]
<MrZYX> read the files, find the longest line?
goodcodeguy has quit [Quit: Lost terminal]
dash_ has quit [Ping timeout: 264 seconds]
sailias1 has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
i8igmac has quit [Remote host closed the connection]
allsystemsarego has quit [Quit: Leaving]
Notte has quit [Remote host closed the connection]
enjoi has quit [Quit: Leaving]
<brisbin> sound slike homework
bigmac has joined #ruby
<apeiros> staafl: where are you stuck?
bigmac is now known as i8igmac
<staafl> brisbin, nope, not homework
<apeiros> (because as you probably figured - we won't just do it for you)
denysonique is now known as denysonique_
denysonique_ is now known as denysonique__
<staafl> apeiros, I can do it on my own
brianpWins has joined #ruby
<staafl> but I'm wondering what the best way would be
<apeiros> then show us how you did (gist.github.com) and we will show you how to improve it.
<staafl> apeirows, I haven't written anything yet
<brisbin> cat * | while read -r line; echo "$(echo $line | wc -c) $line"; done | sort -rn
dangerousdave has joined #ruby
<staafl> brisbin, thanks
<staafl> anyway, I'm interested in pure Ruby
<apeiros> staafl: easy, we've got time
<brisbin> it wasn't a serious answer
<apeiros> staafl: btw., most irc clients can tab-complete nicks. avoids typos like apeirows
vaks2 has quit []
Lewix has joined #ruby
<staafl> I could just read ARGF and store the maximal row
<staafl> apeiros, sorry
<apeiros> np, just telling
<staafl> what's the easiest way to recurse over all subdirectories and files?
dallasm_ has joined #ruby
Liothen has joined #ruby
pawprint has joined #ruby
<apeiros> Dir.glob
soba has joined #ruby
<staafl> I seem to remember a glob like this "/**/*/"
dallasm_ has quit [Remote host closed the connection]
<apeiros> yes, drop the last /, though
<apeiros> otherwise you only get dirs
<staafl> aha, I see
<staafl> ok, how would I do it as a oneliner?
<apeiros> do what?
<staafl> ARGF.each_line.each_with_object("") { |max| ... } ?
<apeiros> see Enumerable#max_by
<staafl> apeiros, cool :-)
<staafl> now just one last piece
<staafl> how do I store the file containing the line?
<staafl> maybe Dir.glob("/**/*").each do |file| file.each_line.max_by(&:length) ?
<BraddBitt> ahahaha
<staafl> end
<BraddBitt> i was looking at shift/unshift discussion
<BraddBitt> saw
<BraddBitt> this
soba_ has quit [Ping timeout: 268 seconds]
b00stfr3ak has quit [Ping timeout: 245 seconds]
soba_ has joined #ruby
i8igmac has quit [Ping timeout: 245 seconds]
sh00p has quit [Ping timeout: 245 seconds]
<staafl> BraddBitt, not a bad mnemonic
<BraddBitt> i find it quite helpful
<existensil> that's great. terribly disturbing image, but effective.
soba has quit [Ping timeout: 260 seconds]
<canton7> hah, nice!
conner has quit [Quit: Leaving]
<staafl> how can I do a flatmap/concatmap in ruby?
efrainolivares has joined #ruby
bklane has quit [Remote host closed the connection]
locriani has joined #ruby
locriani has quit [Remote host closed the connection]
bobbyz has quit [Ping timeout: 260 seconds]
denysonique__ is now known as denysonique
<apeiros> with flat_map
soba_ has quit [Ping timeout: 256 seconds]
pawprint has quit [Quit: Leaving]
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
shellox_ has joined #ruby
brianpWins has quit [Quit: brianpWins]
rbento has joined #ruby
<staafl> apeiros, thanks
<staafl> aka "concat_collect"
denysonique is now known as denysoniqeu
<staafl> I really wish Ruby hadn't adopted all those smalltalkish api identifiers
<staafl> now I have to remember a 4th set of projection operators
<havenwood> staafl: collect_concat, got it reversed
<staafl> ok, thanks
<staafl> anyway, why would ruby -e "print Dir.glob('/**/*.cs').flat_map(&:each_line).max_by(&:length)" hang on 5-6 of 50 lines each?
<staafl> 5-6 files?
elaptics is now known as elaptics`away
<apeiros> because / is the root directory
<apeiros> and /** recurses through *all* directories from the root directory on
<apeiros> I doubt that that'd be 5-6 files only
gks has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<staafl> ok, got it
<staafl> ruby -e "print Dir.glob('**/*.cs').flat_map(&:each_line).max_by(&:count).first" gives me the name of the file
RichardBaker has quit [Quit: RichardBaker]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<staafl> shouldn't it flatmap the files to lines and then give me the text of the line?
<apeiros> that's inefficient
<staafl> I don't care about that right now, it's just a oneliner
rbento has quit [Quit: ┐('~`;)┌]
<apeiros> well, Dir.glob returns an array of strings.
nowthatsamatt has joined #ruby
<apeiros> and flat_map'ing those file names with String#each_line will basically just be a no-op
<staafl> I see
<apeiros> >> "hello".each_line.to_a
<eval-in> apeiros => ["hello"] (https://eval.in/46076)
seich- has quit [Ping timeout: 245 seconds]
<staafl> any way to include the file opening in the projection?
<apeiros> also String#count is not how you get the length of a string
i8igmac has joined #ruby
<apeiros> use the normal block form of map, not the condensed &:methodname
ddm has quit [Quit: Page closed]
yfeldblum has joined #ruby
jleishman has quit [Remote host closed the connection]
nowthatsamatt has quit [Client Quit]
stonevil has joined #ruby
fenicks has quit [Remote host closed the connection]
<staafl> ruby -e "print Dir.glob('**/*.cs').each { |f| File.new(f).each_line.max_by(&:length) }.max_by(&:length)"
enebo has quit [Quit: enebo]
b00stfr3ak has quit [Quit: Leaving]
<staafl> again, the name of the file
<staafl> ah, wait, it should be map instead of each
<staafl> success!
<staafl> apeiros, thank you for the help
t1k007 has quit [Ping timeout: 264 seconds]
<markalanevans> How do i use eloquent to select multiple records?
<markalanevans> Is it not really supposed to be used in that way?
seich- has joined #ruby
<apeiros> staafl: you can also nest max_by
<markalanevans> $users = User::where("state", "=", "CA") for example.
<markalanevans> And
<markalanevans> Id like to do that. but that returns a Builder object.
<staafl> apeiros, I'm not sure I understand how
atyz has joined #ruby
marcdel has joined #ruby
splittingred has joined #ruby
YFSGT has joined #ruby
<YFSGT> سمَـَّوُوُحخ ̷̴̐خ ̷̴̐خ ̷̴̐خ امارتيخ ̷̴̐خ
YFSGT has quit [Killed (idoru (Spam is off topic on freenode.))]
rcosta has quit [Remote host closed the connection]
eka has quit [Remote host closed the connection]
JDHankle has quit [Remote host closed the connection]
markalanevans has quit [Remote host closed the connection]
mmitchell has quit [Remote host closed the connection]
digital-ghost has quit [Remote host closed the connection]
gyre007 has quit [Remote host closed the connection]
tonni has quit [Remote host closed the connection]
stonevil has quit [Remote host closed the connection]
jkline has quit [Remote host closed the connection]
Ripp__ has quit [Remote host closed the connection]
efrainolivares has quit [Remote host closed the connection]
splittingred has quit [Client Quit]
raul782_ has quit [Remote host closed the connection]
jkamenik has quit [Remote host closed the connection]
helvete has joined #ruby
rcosta has joined #ruby
<apeiros> staafl: filenames.max_by { |filename| File.foreach(filename).max_by(&:length).length }
JDHankle has joined #ruby
raul782_ has joined #ruby
Ripp__ has joined #ruby
<Nilium> I guess freenode is now killing people who spam that thing.
<staafl> what happened?
<staafl> did that guy crash the clients or something
<apeiros> it's a bug in apple's coretext
<apeiros> and yes, it causes a crash
<Nilium> Someone pasted text that crashes Core Text.
ryandeussing has quit [Remote host closed the connection]
<staafl> what a waste of carbon
jaynewstrom has quit [Remote host closed the connection]
<Nilium> And it gets you killed from freenode.
<JDHankle> I was wondering why my chat was crashing constantly
<JDHankle> now I know
<apeiros> I'm still amazed that freenode hasn't preprocessing of messages
<apeiros> that's how I'd do it. kill them before broadcasting their message.
devoldmx has joined #ruby
<staafl> my client crashes when I connect to ##haskell
devoldmx3 has quit [Read error: Connection reset by peer]
<apeiros> lol
* apeiros curious
<staafl> perhaps it's something in their topic
<apeiros> did you mean #haskell?
<apeiros> because ##haskell is empty
<Nilium> I wonder if freenode is just killing their connection or k-lining the tools
<staafl> apeiros, yeah
<staafl> anyway, thanks again for all the help
atyz has quit [Ping timeout: 256 seconds]
<JDHankle> jeez, you think apple would get on that.
<staafl> you taught me some useful tricks
rdxc has quit [Quit: Textual IRC Client: www.textualapp.com]
<JDHankle> I knew when I went linux => mac I was going to have issue, but crashing my irc client when a certain string is passed was not one I had thought of
kirun has quit [Quit: Client exiting]
disgrntld has joined #ruby
devoldmx3 has joined #ruby
<Nilium> Apple already fixed it, actually.
RichardBaker has joined #ruby
<Nilium> The problem is that the fix wasn't backported to earlier versions of OS X and iOS, so it's only in iOS 7 and 10.9
staafl has quit [Read error: Connection reset by peer]
s0ny123 has quit [Quit: Lost terminal]
maroloccio has quit [Quit: WeeChat 0.4.0]
staafl has joined #ruby
<BraddBitt> what is the point of blocks in ruby?
<BraddBitt> i'm just learning them but don't understand their benefit
<disgrntld> very basic question, but why does `a = {}; a['foo'] = 'bar'` work and not `a = {}; a.foo = 'bar'` or `a = {}; a.foo: 'bar'`?
devoldmx has quit [Ping timeout: 248 seconds]
<Eiam> ha
cosmin has quit [Ping timeout: 245 seconds]
<Eiam> yeah I'm on 10.9
zarubin has joined #ruby
<Eiam> no crash
<staafl> disgrntld, that's not a block
banjara has joined #ruby
<staafl> that's a hash, i.e. an associative container
Dreamer3 has joined #ruby
<disgrntld> I was expecting them all to be hash attribute assignments on the hash, a
<disgrntld> the last two don't work
<jrobeson> BraddBitt, a few different benefits.. one is small behavours that you don't want to write a method for. another is for places like file reading. you can encapsulate the closing of the file handle in the block
<jrobeson> so whenever you use the block you can make it automatically close the file.
dallasm_ has joined #ruby
<BraddBitt> oh, that makes sense
<BraddBitt> thank you
<jrobeson> BraddBitt, have you programmed in other languages before.. perhaps there is a semi analogue ?
<BraddBitt> python, java
<jrobeson> something with a closure
<BraddBitt> mm
bricker_ is now known as bricker`awat
bricker`awat is now known as bricker`away
<jrobeson> it's similiar enough to that
<staafl> disgrntld, sorry, I mixed your question up with BraddBitt
<staafl> anyway, ruby's hashes are not like javascript's objects
<jrobeson> BraddBitt, you might want to consider looking at rubybits 2 on codeschool. it shows examples for procs, lamdbas , and blocks and which one can do which
nowthatsamatt has joined #ruby
<staafl> a hash's contents as a hash are distinct from its properties as an object
seich- has quit [Ping timeout: 245 seconds]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
<staafl> it's actually closer to the standard way of doing things (Java/Python/etc)
mansi has joined #ruby
<staafl> so only [] indexing works
mansi has quit [Remote host closed the connection]
<disgrntld> can you expound on what is meant by a hash's contents?
mansi has joined #ruby
<disgrntld> I guess I don't understand the disctinction between a hash's contents and it's properties
KobraKao has quit [Remote host closed the connection]
<staafl> >> {}.instance_methods.take 10
<eval-in> staafl => undefined method `instance_methods' for {}:Hash (NoMethodError) ... (https://eval.in/46077)
<staafl> >> {}.methods.take 10
<eval-in> staafl => [:rehash, :to_hash, :to_h, :to_a, :inspect, :to_s, :==, :[], :hash, :eql?] (https://eval.in/46078)
<staafl> >> {}.to_s
<eval-in> staafl => "{}" (https://eval.in/46079)
Astral_ has quit [Ping timeout: 264 seconds]
<staafl> those are its properties/methods/whatever
<disgrntld> to_s is a method listing it's properties, then?
<apeiros> methods, not properties
<BraddBitt> noted, jrobeson. I'm currently finishing up rubymonk's ruby primer
<apeiros> and .methods lists an object's methods
Patchou has joined #ruby
eoinkelly has joined #ruby
<disgrntld> waitwait, if to_s lists methods, then why don't I see :rehash, :to_hash, :to_h, etc?
seich- has joined #ruby
<staafl> disgrntld, nope, to_s just converts the contents to a string
<apeiros> disgrntld: again, not to_s
<havenwood> disgrntld: #to_s doesn't list methods, #methods does
<staafl> >> {cat: "tom", mouse: "jerry"}
<eval-in> staafl => {:cat=>"tom", :mouse=>"jerry"} (https://eval.in/46080)
<staafl> >> {cat: "tom", mouse: "jerry"}.methods.take 5
<eval-in> staafl => [:rehash, :to_hash, :to_h, :to_a, :inspect] (https://eval.in/46081)
<apeiros> .first 5 is actually more efficient (doesn't go through enumeration)
<staafl> is it clearer now?
<staafl> apeiros, take 5 enumerates the whole thing? omg?
kofno has joined #ruby
<apeiros> staafl: no
mansi has quit [Ping timeout: 268 seconds]
Tamae has quit [Ping timeout: 246 seconds]
<apeiros> staafl: but it uses .each to get at the values. .first doesn't, it slices the array directly.
<apeiros> with copy-on-write even
<staafl> apeiros, I see. thank you
<disgrntld> is it correct that staafl's latest example's contents are two strings, cat and mouse?
<staafl> disgrntld, yes
<apeiros> unless core-devs bothered to reimplement #take on array
<disgrntld> kk
<apeiros> disgrntld: depends. I'd count the keys to its contents too
<staafl> actually, the proper syntax uses => instead of :
amacgregor has joined #ruby
<staafl> >> {cat=> "tom", mouse=> "jerry"}
<eval-in> staafl => undefined local variable or method `cat' for main:Object (NameError) ... (https://eval.in/46082)
<apeiros> so it contains the two keys :cat and :mouse, and it contains the two values "tom" and "jerry"
<staafl> or not?
<disgrntld> gotcha
<apeiros> >> {:cat => "tom"} == {cat: "tom"}
<eval-in> apeiros => true (https://eval.in/46083)
<staafl> >> {"cat" => "tom", "mouse" => "jerry"}
<eval-in> staafl => {"cat"=>"tom", "mouse"=>"jerry"} (https://eval.in/46084)
<disgrntld> so back to my original question, the only way to assign an object's contents is via []?
<apeiros> `foo: value` syntax only works for symbol-keys
<staafl> ok, so that's another difference from js
<apeiros> disgrntld: no. you're having a misconception there.
hasrb has quit [Remote host closed the connection]
<apeiros> disgrntld: [] is a method (with the name "[]")
<apeiros> an object's contents are either stored directly in `self` (only native/C code can do that - core objects like String/Hash/Array do that), or in instance variables.
<apeiros> and from the outside, you can only manipulate the contents of an object via methods.
kofno has quit [Ping timeout: 256 seconds]
<disgrntld> oook, that last statement made it click a bit
<staafl> (although you can actually add new methods to objects)
St_Marx has quit [Quit: Ex-Chat]
<disgrntld> so a.foo doesn't work, because foo isn't a method
strgbrew has quit [Ping timeout: 245 seconds]
kpshek has quit []
<disgrntld> but I can use the [] method to add to a's contents
<staafl> disgrntld, precisely
<disgrntld> cool
<disgrntld> thanks you guys
<staafl> now go and profit :-)
<apeiros> staafl: yes @ add methods to objects, but strictly speaking you're not manipulating the contents of the object that way
echevemaster has joined #ruby
<apeiros> methods are always stored in a class (or module)
<apeiros> and an object's own methods are stored in its singleton_class
<BraddBitt> so when i include a module within a class, that module can access all of that class' parameters
<apeiros> so adding a method to an object actually adds it to its singleton_class
<BraddBitt> er, parameters is the wrong word
<staafl> (members)
<apeiros> BraddBitt: an included module ends up in the inheritance chain of the including class
baordog has quit [Remote host closed the connection]
<apeiros> this means you inherit instance methods from it and access to constants
<apeiros> it also has implications for @@class_variables (which I'm fuzzy about because I don't use them due to the rather confusing way they work)
pootler has joined #ruby
<staafl> apeiros, can you access members down the inheritance chain?
adkron has quit [Ping timeout: 248 seconds]
<apeiros> staafl: define "members"
<staafl> fields
<apeiros> same
<staafl> "instance variables"
<apeiros> no
<apeiros> instance variables belong to exactly one object
<staafl> ok
<apeiros> classes being objects can have ivars
<apeiros> but those are only visible in class methods
<apeiros> and include doesn't add class methods
DrShoggoth has quit [Ping timeout: 256 seconds]
audiodude has joined #ruby
sh00p has joined #ruby
capsuley has quit [Ping timeout: 264 seconds]
mlpinit has joined #ruby
iliketur_ has quit [Quit: zzzzz…..]
mercwithamouth has joined #ruby
mansi has joined #ruby
mansi has quit [Remote host closed the connection]
terrellt has quit [Ping timeout: 264 seconds]
snovak has quit [Remote host closed the connection]
iliketur_ has joined #ruby
mansi has joined #ruby
mlpinit has quit [Ping timeout: 240 seconds]
nfk has quit [Quit: yawn]
hashpuppy has joined #ruby
tvw has quit []
hashpuppy has quit [Client Quit]
matti has quit [Quit: Oh dear...]
mercwithamouth has quit [Quit: Lost terminal]
mansi has quit [Ping timeout: 264 seconds]
pel_daniel has left #ruby [#ruby]
Astralum has joined #ruby
_JamieD_ has quit [Quit: _JamieD_]
apeiros has quit [Remote host closed the connection]
obs has joined #ruby
jamesaanderson has joined #ruby
marek_ has joined #ruby
VTLob has quit [Quit: VTLob]
kobain has quit []
mrsolo has quit [Quit: This computer has gone to sleep]
amacgregor has quit [Ping timeout: 245 seconds]
mrsolo has joined #ruby
twoism has quit [Ping timeout: 245 seconds]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shellox_ has quit [Ping timeout: 256 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cloaked1 has joined #ruby
jamesaanderson has joined #ruby
dangerousdave has quit [Quit: Leaving...]
richiebkr has joined #ruby
RichardBaker has quit [Ping timeout: 268 seconds]
richiebkr is now known as RichardBaker
jetblack has quit [Quit: leaving]
hiyosi has joined #ruby
volty has joined #ruby
<cloaked1> So, say I have an instance variable in a class and it starts out as nil. Now, I can make it so that accessor has a set of hash values: method.interface1[:keyname] to get keyname's value, but how would I go about making it so that I could call that hash value like a method? IE method.interface1.keyname
KobraKao has joined #ruby
<cloaked1> aight, I think I found a solution at SO.
devoldmx3 has quit [Ping timeout: 245 seconds]
staafl has quit [Ping timeout: 256 seconds]
BRMatt has quit [Ping timeout: 276 seconds]
Xeago has joined #ruby
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Nisstyre has quit [Quit: Leaving]
defaultro has joined #ruby
zeroXten has joined #ruby
jamesaanderson has joined #ruby
<zeroXten> is there a standard quick way of doing something like: max = value if value > max
cavel has quit [Read error: Connection reset by peer]
<zeroXten> an operator would be nice
obs has quit [Quit: Konversation terminated!]
Vivekananda has quit [Ping timeout: 264 seconds]
<zeroXten> hmmm, a max method might do
<zeroXten> ohhh, there is even a minmax
Ripp__ has quit [Quit: Ripp__]
<zeroXten> max = [max, value].max
<zeroXten> heh
eka has joined #ruby
andbutsothen has joined #ruby
srji has quit [Ping timeout: 264 seconds]
twoism has joined #ruby
<BraddBitt> could use ternary operator
<BraddBitt> but
<BraddBitt> what you have works too even though its kinda odd to read
<BraddBitt> i would change the variable name if i did it that way
kofno has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zeroXten> i would have thought that setting a max/min would happen quite a lot
Vivekananda has joined #ruby
<zeroXten> i can probably refactor anyway using minmax
<zeroXten> kill two birds with one stuff just by stuffing numbers onto an array
<Xeago> zeroXten: *tuple*
slyv has quit [Quit: Textual IRC Client: www.textualapp.com]
<Xeago> I would like ruby to implement tuples as (val,val2,val3)
kofno has quit [Ping timeout: 245 seconds]
<zeroXten> Xeago: tuple?
Astralum has quit [Ping timeout: 264 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
Catie has quit [Ping timeout: 264 seconds]
jamesaanderson has joined #ruby
pwh has quit [Read error: Connection reset by peer]
terrellt has joined #ruby
TheFuzzball has quit [Quit: Leaving...]
<Xeago> yes, tuples :)
nari_ has joined #ruby
<Xeago> tuple, noun (Computing), a data structure consisting of multiple parts
marcdel has joined #ruby
<zeroXten> Xeago: yeah, I get that much. Not sure about the context though :)
marek_ has quit [Remote host closed the connection]
<zeroXten> you mean instead of when I said array?
gtrak has quit [Ping timeout: 260 seconds]
DrShoggoth has joined #ruby
Vivekananda has quit [Excess Flood]
tomzx_mac has joined #ruby
<brotatos> Does this function make sense? https://gist.github.com/brotatos/c65ee2945726a0af0e73
twoism has quit [Remote host closed the connection]
<Xeago> zeroXten: yes
marek_ has joined #ruby
zarubin has quit [Ping timeout: 260 seconds]
gildo has quit [Ping timeout: 260 seconds]
tyfighter has joined #ruby
twoism has joined #ruby
mansi has joined #ruby
hashpuppy has joined #ruby
snovak has joined #ruby
blackmesa has quit [Remote host closed the connection]
predator217 has joined #ruby
bricker`LA has joined #ruby
Vivekananda has joined #ruby
chriskk has joined #ruby
Tricon has quit [Quit: Bye!]
twoism has quit [Ping timeout: 245 seconds]
mansi has quit [Ping timeout: 245 seconds]
ffranz has quit [Quit: Leaving]
predator117 has quit [Ping timeout: 276 seconds]
blackmesa has joined #ruby
m8 has quit [Quit: Sto andando via]
snovak has quit [Ping timeout: 268 seconds]
<volty> so, what should be the desired syntax and effect of tuples rispect to ruby arrays?
<volty> ec. respect
mansi has joined #ruby
Targen has quit [Ping timeout: 256 seconds]
Banistergalaxy has quit [Ping timeout: 264 seconds]
<Xeago> volty: more clearly distinct between multiple of the same, and data
<volty> what would be the desired syntax & effect respect to the example given (update the max value if the new value is greater)?
<Xeago> syntax I mentioned, I was just picking on his wording
nari_ has quit [Ping timeout: 268 seconds]
slyv has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<volty> Xeago: can you give a useful, real, example?
mansi has quit [Ping timeout: 240 seconds]
<volty> (long time passed since i was stydying tuples, i don't miss them in ruby - that's why i'm curious)
<Xeago> I don't miss them either
taion809 has joined #ruby
<volty> ok :)
<Xeago> but I think it is a nice type, helps people keep the distiction between many-ducks, and data-of-a-duck
ryandeussing has joined #ruby
<volty> zeroXten: i use maxval = [value, maxval].max (and do not care about speed...)
<volty> Xeago: there's danger behind it ...
bricker`LA has quit [Quit: leaving]
<volty> there's the risk they'll become lispers :)
nettoweb has quit [Quit: nettoweb]
seich- has quit [Ping timeout: 245 seconds]
jamesaanderson has joined #ruby
apeiros has joined #ruby
cloaked1 has quit [Quit: Page closed]
mlpinit has joined #ruby
Banistergalaxy has joined #ruby
ryandeussing has quit [Ping timeout: 245 seconds]