<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?
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
<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
<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
<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]
<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?
<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.
<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.
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.
<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]
<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]
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]
<_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]
<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]
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
<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
<_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]
<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
<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?
<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]
<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]
<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]
<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.
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
<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]
<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 }
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]
<_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
<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]
<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]
<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