Xeago has quit [Remote host closed the connection]
<shevy>
wtf
joshu has joined #ruby
<shevy>
bonsais creating children
caustic has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
AxonetBE has quit [Quit: AxonetBE]
ixti has joined #ruby
joshu__ has joined #ruby
timonv has quit [Remote host closed the connection]
samsonasu has joined #ruby
illbyte has joined #ruby
mehlah has joined #ruby
joshu_ has quit [Ping timeout: 245 seconds]
<bleak>
sin
<lagweezle>
is fun
Txandy|away is now known as Txandy
krnflake has quit [Ping timeout: 252 seconds]
joshu has quit [Ping timeout: 264 seconds]
<shevy>
guys I need advice
<shevy>
do you find yourself rewriting old ruby code a lot?
<RubyPanther>
shevy: almost never
<RubyPanther>
well architectured code should mostly only need new methods and not rewrites
<shevy>
hehehe
<RubyPanther>
if you follow agile "you're not gonna need it," yeah, you're gonna need to rewrite it again and again and again
<RubyPanther>
I follow, "plan to add all the features you'll never need, but implement them later"
heidi has joined #ruby
mikepack has quit [Remote host closed the connection]
<bleak>
i finally got past the inheritance chapter of the pickaxe! it took me a week :v
<RubyPanther>
so for example, I'll use many-to-many and then just kludge to grab the first item
agent_white has quit [Ping timeout: 245 seconds]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
bleak today I realized I did not understand extend()
axl_ has joined #ruby
doanerock has quit [Quit: This computer has gone to sleep]
<bleak>
i haven't come across that method yet :(
<bleak>
or if i have, i've forgotten about it
krnflake has joined #ruby
angusigu1ss has joined #ruby
griffindy has quit [Quit: Computer has gone to sleep.]
Hanmac1 has quit [Ping timeout: 245 seconds]
<RubyPanther>
but then I also say, if you don't know what you're going to need you should probably turn off the computer and go for a long walk and think about your problem domain... internalize it
<shevy>
RubyPanther well I do that a lot
<shevy>
but it's damn cold outside man
<shevy>
you wanna kill me?!
agent_white has joined #ruby
<shevy>
it's much nicer in a warm place
<shevy>
I can't think for shit but it's comfy
rm_ has quit []
<RubyPanther>
shevy: treadmill
<AlexRussia>
RubyPanther: privet
<RubyPanther>
ya ne ponimayi
<RubyPanther>
u
<AlexRussia>
RubyPanther: ?
<AlexRussia>
RubyPanther: but you speak russian@
<AlexRussia>
!
<shevy>
he has a russian girlfriend
<AlexRussia>
shevy: a
gittish has quit [Quit: gittish]
<RubyPanther>
nyet, ya ne ponimayu po-russki. Da Americanitz!
ElComradio has quit [Quit: ElComradio]
<AlexRussia>
RubyPanther: ahahahhahahahaha
popl has left #ruby [#ruby]
hobodave has quit [Ping timeout: 252 seconds]
phinfonet has joined #ruby
<lagweezle>
hot
<AlexRussia>
RubyPanther: russian girlfriend hot?
<AlexRussia>
lagweezle: hi
<lagweezle>
hi
<RubyPanther>
I only made it through the first Pimsleur tape
<AlexRussia>
lol
<RubyPanther>
No, my wife is Thai, and I don't have any gfs
angusigu1ss has quit [Ping timeout: 240 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
brunops has joined #ruby
<AlexRussia>
shevy: ^^
<shevy>
wat :P
<AlexRussia>
shevy: he dont know russian girls
<AlexRussia>
shevy: you lie?
<RubyPanther>
I do have a Bulgarian pen pal, that is similar to Russian
nathancahill has joined #ruby
<AlexRussia>
shevy: change topic to sex
<AlexRussia>
shevy: XD
Hanmac has joined #ruby
<RubyPanther>
The confusion probably came from this Russian flash animation that the Bulgarian chic sent me 15 years ago: http://stuff.rubypanther.com/ulibka.html
Wolland has quit [Remote host closed the connection]
<RubyPanther>
Yeah, if you want to pick up Russian chics on the internet, you gotta know that :))) is not a double chin, it is an ear-to-ear smile. And if she says something really nice, you have to say :)))))))))
<centrx>
:&}
<RubyPanther>
and kisses are not :* they are :{} and :{P}
jonasschneider has joined #ruby
<AlexRussia>
fuckin manual
<AlexRussia>
i think, i need here in ruby
<AlexRussia>
but continue!
<lagweezle>
So you try to eat their face or give lots of tongue when kissing?
<AlexRussia>
is interesing XD
<RubyPanther>
lots of tongue follows the same principle as smiles... :{PPP}
blackmes1 has quit [Ping timeout: 252 seconds]
<shevy>
wtf
<AlexRussia>
shevy: ?
<RubyPanther>
Before Bush, Americans could go into a Russian or eastern European chat room and get all the chics, but it is a whole different world now
thams has joined #ruby
<AlexRussia>
shevy: friendship starting with :))))), understand?
<RubyPanther>
now you gotta be careful not to get g-lined
<shevy>
AlexRussia die
<shevy>
:>
<shevy>
wait I got it better
<AlexRussia>
RubyPanther: g-lined?
<shevy>
AlexRussia die!!!!!!!!!! :))))))))
<AlexRussia>
shevy: impossible, i'm died
<RubyPanther>
global IRC ban
tylersmith has joined #ruby
<AlexRussia>
RubyPanther: ah
<shevy>
zenspider is russian
<AlexRussia>
RubyPanther: hot russian girls XDDDD
fgo has joined #ruby
<shevy>
he sniped RubyPanther
<RubyPanther>
I'm lucky he doesn't have g-line, eh?
<shevy>
AlexRussia yeah and they want all your money!
<AlexRussia>
RubyPanther: girls beautiful like and ruby XD
dx7 has quit [Remote host closed the connection]
Noldorin has quit [Read error: Connection reset by peer]
<AlexRussia>
RubyPanther: yep
<lagweezle>
RubyPanther: lmao at 'a lot of tongue' comment
<AlexRussia>
shevy: kiss Putin!
<RubyPanther>
Yeah, the programmers I worked with all had CS phds, and half of them were women... all hot
<lagweezle>
anyways ... hav funy folks!
jonasschneider has quit [Ping timeout: 252 seconds]
<shevy>
AlexRussia nah
dx7 has joined #ruby
<lagweezle>
hot russian girls ftw
angusigu1ss has joined #ruby
<AlexRussia>
shevy: nah is?
Noldorin has joined #ruby
estebistec has joined #ruby
<RubyPanther>
that flash animation is pretty awesome if you decompile it, it isn't a video, every sprite is animated, each tree is sprite, everything is
<RubyPanther>
AlexRussia: yeah, if they email me and demand I take it down, I will lol
<AlexRussia>
shevy: lol, is nice
<AlexRussia>
RubyPanther: ahah
<shevy>
hey AlexRussia
<shevy>
do you use ReactOS?
tylersmith has quit [Ping timeout: 260 seconds]
<AlexRussia>
RubyPanther: you understand soundtrack in your animation?
<AlexRussia>
shevy: reacsSO
robert_ has joined #ruby
<AlexRussia>
ooops
<AlexRussia>
shevy: React1986 XD OS
<shevy>
ReactOS that russian OS
dx7 has quit [Ping timeout: 252 seconds]
<RubyPanther>
AlexRussia: only that it is a children's song about smiling. I definitely understand the part about the chic sending out emails to all the boys and making them smile! :)))
<AlexRussia>
shevy: yep, written in assebler, pretty shit interace and small programm FUUUUU, me love -O3
<AlexRussia>
RubyPanther: lol
<AlexRussia>
RubyPanther: maybe....is yep.... but part no XD
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<AlexRussia>
RubyPanther: me liked part where your draw ':)))' on man faces
byprdct has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
angusigu1ss has quit [Ping timeout: 265 seconds]
<AlexRussia>
RubyPanther: now the Russians have three of his mouth.
<AlexRussia>
!
<AlexRussia>
XD
<AlexRussia>
RubyPanther: what drugs you try when draw it? XD
<shevy>
:\
<RubyPanther>
No, I didn't draw it
<AlexRussia>
O
<AlexRussia>
LoL
<AlexRussia>
RubyPanther: really?but who?
<RubyPanther>
the Bulgarian girl sent it to me... in 1999 I think
axl_ has quit [Quit: axl_]
<AlexRussia>
RubyPanther: ah, sin't your work?
<AlexRussia>
isn't*
<RubyPanther>
At the time it was very popular on the internet, but it has since mostly disappeared
<AlexRussia>
LoL
<RubyPanther>
I thought I'd lost it because I couldn't search it in google, but then I found it on an old backup drive
<AlexRussia>
RubyPanther: oh, nice
resno has quit [Read error: Connection reset by peer]
<AlexRussia>
RubyPanther: hey, when your ask used russian later, write "Я Американец. Я не понимаю по-русски."
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<RubyPanther>
It is what I used as a code example to write a gimp plugin to convert layers to flash animations
<shevy>
god damn
apeiros has quit [Remote host closed the connection]
<benzrf>
based on something apeiros (i think) said a bit back
mojjojo has joined #ruby
<AlexRussia>
RubyPanther: I used Fedora 19 any time, when is Beta.I think now, fedora is shit
<RubyPanther>
AlexRussia: if you think a distro is low quality, it means you don't know how to use it.
Aryasam has joined #ruby
<AlexRussia>
RubyPanther: LoL
Yahkob has joined #ruby
<benzrf>
ruby feature: when a string is created from a literal, it stores the boundary locations of interpolated strings, and by calling String#interpolations you can get an array of special string-like objects that proxy to sections of the original string
<benzrf>
possible or no?
<RubyPanther>
the only arguably "bad" things that some distros do is re-package upstream stuff in a different way than normal, but Fedora doesn't do that
agent_white has quit [Ping timeout: 245 seconds]
<RubyPanther>
benzrf: it could have significant performance implications, but certainly "possible"
<benzrf>
hmmm
<benzrf>
apeiros said something the other day about interpolation overloading and contexts
Jdubs_ has joined #ruby
bpfh has quit [Read error: Connection reset by peer]
<benzrf>
what performance implications could it have?
<shevy>
god
<shevy>
use C
agent_white has joined #ruby
bpfh has joined #ruby
<shevy>
you want the perfect language
<RubyPanther>
benzrf: I haven't looked at the source in many versions, but traditionally the string literals are tightly optimized C and so any fiddling would necessarily (be in C and) slow them down
bpfh has quit [Read error: Connection reset by peer]
bpfh has joined #ruby
<RubyPanther>
shevy: I agree, C is the perfect language for computers. That is why the perfect language for humans, Ruby, is implemented in it
<benzrf>
ruby is hardly the perfect language for humans
angusigu1ss has joined #ruby
sjuxax has joined #ruby
<RubyPanther>
Okay, after Esperanto, Ruby
BackEndCoder has quit [Ping timeout: 260 seconds]
<sjuxax>
Hello. I'm using Money from RubyMoney. Apparently one can't use this with fixnums. How do I do something like Money.new(10) * 4, if someone wants to spend 10$ 4 times?
<AlexRussia>
sjuxax: lol, class Money in Ruby?wow
<sjuxax>
Currently Money operations with a fixnum operand complain undefined method exchange_to on 4:Fixnum
bpfh has quit [Read error: Connection reset by peer]
<RubyPanther>
sjuxax: the examples in the readme include: Money.new(1000, "USD") * 5
agent_white has quit [Ping timeout: 240 seconds]
bpfh has joined #ruby
<RubyPanther>
AlexRussia: it is like 10 years old or more
<RubyPanther>
It is awful, it stores money in cents.
<AlexRussia>
RubyPanther: ?
brennanMKE has quit [Ping timeout: 248 seconds]
<RubyPanther>
better than a float, but still... it fails to cover the problem domain. My complaints are proven by the rise of bitcoin
phipes has joined #ruby
angusigu1ss has quit [Ping timeout: 248 seconds]
<shevy>
benzrf name a better programming language for humans
<RubyPanther>
My original case, gas stations, was widely panned
estebistec has quit [Remote host closed the connection]
fgo has joined #ruby
agent_white has joined #ruby
<benzrf>
shevy: its not objective
charliesome has joined #ruby
<RubyPanther>
sjuxax: after thinking about it, that is probably because you didn't give a currency type
Txandy is now known as Txandy|away
<RubyPanther>
Happiness is subjective, but can be measured objectively.
<RubyPanther>
If Ruby makes programmers happier, that can be measured
<shevy>
benzrf your statement that ruby is not perfect is not objective :(
<benzrf>
pfft
bpfh has left #ruby ["Saindo"]
<shevy>
RubyPanther but benzrf won't measure unless it is objective
<shevy>
so let's count something
<shevy>
hmmm
<sjuxax>
shevy: ... Python is a better programming language for humans. Consistent, single ways to do things (there should be one and only one obvious to do something), forced indentation so no one can create a mess, explicitly outlines each step it's going to take.
* sjuxax
ducks
barratt has joined #ruby
* havenwood
throws a cabbage!
estebistec has joined #ruby
pietr0 has quit [Quit: pietr0]
<RubyPanther>
sjuxax: that is all abstract, that could all be true and still leave the programmer less happy
tylersmith has joined #ruby
<shevy>
sjuxax hmm so python has only one way to do things
agent_white has quit [Ping timeout: 245 seconds]
<RubyPanther>
Ruby teaches that there is usually one most-correct way to do things, but it doesn't chain you to it
<havenwood>
There’s nothing left of Pythono. I’m like a Ruby held up to the sunrise. Is it still a gem, or a world made of redness? It has no resistance to sunlight.
havenwood has quit []
<shevy>
hmm
<RubyPanther>
ternary is not a different way than if/else, it is the same thing
<shevy>
that site suggest to remove "for" in ruby
fgo has quit [Remote host closed the connection]
<RubyPanther>
things like "for" in Ruby should never be used anyways, that is syntactic sugar to aid incoming Perl hackers
<shevy>
I don't think I have any .rb file with for, other than showcasing for
<sjuxax>
shevy: Yes, you can abuse various functions to obtain the same output. It doesn't mean that there's not one way things are _supposed_ to be done. The fact that you can do it in other ways is a side effect.
phipes has quit [Remote host closed the connection]
Yahkob has quit [Remote host closed the connection]
phinfonet has quit [Quit: exitiing]
<shevy>
but I thought there is only a single way!
<RubyPanther>
That blog is absurd, in-place is not a different way to do the same thing, it is an actual different thing
sabeur has quit [Ping timeout: 252 seconds]
<sjuxax>
Yes, he seems to confuse getting the same output with doing the same thing.
<RubyPanther>
a, = items # seriously?!
snath has quit [Ping timeout: 264 seconds]
<benzrf>
RubyPanther: in plae
<benzrf>
?
Markvilla has joined #ruby
<benzrf>
*in place
agent_white has joined #ruby
<RubyPanther>
items = items.reverse vs items.reverse! # different ways, but also different hings
<RubyPanther>
things
<RubyPanther>
Maybe Ruby just does more things
<RubyPanther>
func1 lambda {|text| puts "hello " + text } vs func2 {|text| puts "hello " + text } # NOT the same!!!
<RubyPanther>
imagine a person who thinks those are the same using C
lpvn has joined #ruby
SpecFirst has quit [Quit: SpecFirst]
RoxasShadowRS has quit [Quit: Leaving]
snath has joined #ruby
<shevy>
does C have lambda?
ixti has quit [Read error: No route to host]
thams has quit [Quit: thams]
mutenewt has quit [Quit: Leaving]
yfeldblum has joined #ruby
lpvn has quit [Read error: Connection reset by peer]
lpvn has joined #ruby
ndrei has quit [Read error: Operation timed out]
roolo has quit [Quit: Leaving...]
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
Trynemjoel has quit [Ping timeout: 245 seconds]
linojon has joined #ruby
agent_white has quit [Ping timeout: 260 seconds]
<pontiki>
C don't need no lambdas. C has function pointers. :>
<shevy>
we won't need pontiki. We have ponbiki!
<pontiki>
:'((
dx7 has quit [Remote host closed the connection]
<shevy>
actually does ruby need lambda anyway?
Trynemjoel has joined #ruby
lpvn has quit [Read error: Connection reset by peer]
<pontiki>
i'd say so
petey has joined #ruby
<pontiki>
very much, in fact
<RubyPanther>
In C you do closures thusly http://porkrind.org/missives/closures-in-straight-c/ and it is precisely because it doesn't hold your hand with a keyword that you have to understand what you're asking for
lpvn has joined #ruby
ktosiek has quit [Read error: Operation timed out]
ktosiek has joined #ruby
_mtr has joined #ruby
<pontiki>
C has closures. A function reference in C is how Ruby's lambda works, after all
<pontiki>
Lisp was my first encounter with closures, back in the mid 70's
<shevy>
ack
<shevy>
I heard of the rare people who are still alive knowing lips, but that was quite a shock just now!
<shevy>
*lisp
<AlexRussia>
pontiki: lisp is fun
<RubyPanther>
lambdas are how you do functional programming in Ruby, so while they're generally a bad idea, they're necessary to cover Ruby's complete problem domain
<AlexRussia>
I have ask about speed
<AlexRussia>
for exmaple
kmartiin has quit [Remote host closed the connection]
<AlexRussia>
in sinatra array params[] included parametrs, sended to server in http protocol
ndrei has joined #ruby
<benzrf>
RubyPanther: did you just say
petey has quit [Ping timeout: 265 seconds]
sailias has joined #ruby
<benzrf>
lamdbas are a bad idea
<benzrf>
ಠ_ಠ
<benzrf>
*lambda
<RubyPanther>
benzrf: I just said they're necessary, so we can include people like you :o
<AlexRussia>
i think, if me called element of array not one in code, maybe o get small up speed, if used like n = params[:n] ?
<AlexRussia>
o, yep, i think, is array is hash )
<agent_white>
I'm too new. But all lambdas look like to me are filters. ;D
<pontiki>
AlexRussia: are you experiencing a lot of problems with your application's performance?
<benzrf>
RubyPanther: 'people like me'?
<benzrf>
i am hurt, RubyPanther
<AlexRussia>
pontiki: now no, but i have write good code, and if me start it now, maybe is help me in future
<RubyPanther>
benzrf: See, I assumed you'd be happy to identify that deeply with functional programming
emergion has joined #ruby
axl_ has quit [Ping timeout: 245 seconds]
<pontiki>
stop, then, AlexRussia. never spend time optimizing performance before you actually have some DATA to make it worth your while
<RubyPanther>
AlexRussia: the reality is that when your data grows so big that you can measure a difference between hash and array in a real app, then the answer is to use some kind of a database
<AlexRussia>
simple me afraid, when i called params[:name] everyone, is need search :name in hash, i think, if me make variable wirh params[:name], is help ruby found :name in hash fast
<RubyPanther>
Most good optimization has to do with cleaning up the architecture so that you do less stuff, rather than tweaking tiny details
barratt has quit [Quit: Leaving...]
<RubyPanther>
The main exception is where the details involve how many objects you instantiate, and their scope
<pontiki>
AlexRussia: you are thinking you are that much smarter than the people that write the interpretter in recognizing internal optimizations before you have any actual performance data to show?
agent_white has quit [Ping timeout: 248 seconds]
<pontiki>
when you use 'params[:name]', ruby is NOT searching a hash
<pontiki>
it know *exactly* where that information is stored
<AlexRussia>
pontiki: lol
nonnatus has joined #ruby
<pontiki>
although, really, if you want to spend your time this way, feel free
timonv has quit [Ping timeout: 260 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
<AlexRussia>
OKay, your Knuth killed me.I know is phrase before.
agent_white has joined #ruby
<AlexRussia>
like it:
<RubyPanther>
Knuth was talking about hand-tightening loops. Typically the reference is misused, but here it applies.
<AlexRussia>
Make it work.
<AlexRussia>
Make it right.
<AlexRussia>
Make it fast.
Yahkob has joined #ruby
<RubyPanther>
All those old guys would also say, you should be worrying about your algorithms not your loops
axl_ has joined #ruby
<benzrf>
yuup
<AlexRussia>
RubyPanther: is like "you have a long rope to.... shoot yourself in the foot!"?
<benzrf>
although I did manage to triple the performance of one program by just making it only redraw if an event has occurred since last tie
<AlexRussia>
RubyPanther: I get copy this book in russian translate
<AlexRussia>
RubyPanther: but i delete kde configs and now dont remember, where me stopped
nari has joined #ruby
pietr0 has joined #ruby
<AlexRussia>
RubyPanther: and in my fs 4,5 GiB books of math and math logic: for uni
beardspeed has quit [Quit: beardspeed]
pietr0 has quit [Remote host closed the connection]
Hobogrammer_ has joined #ruby
charliesome has quit [Ping timeout: 265 seconds]
<RubyPanther>
I hate math, that is what computers are for
<AlexRussia>
RubyPanther: and me hate math, but need end uni!
lpvn has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
<AlexRussia>
RubyPanther: for end uni need learning math 2 years
lpvn has joined #ruby
<AlexRussia>
math math
<AlexRussia>
programming isn't math
<benzrf>
math, not even once
<AlexRussia>
is like literature!
<benzrf>
i lie, <3 math
<AlexRussia>
benzrf: (
<AlexRussia>
I 3< your math!
fieldfirst has joined #ruby
<AlexRussia>
is like old russian joke(make in USSR)
<AlexRussia>
- What are your relations with mathematics?
lpvn has quit [Read error: Connection reset by peer]
<AlexRussia>
- We are not a simple relationship!
<AlexRussia>
"How is that?
<AlexRussia>
- In the mouth I fucked your math!
<AlexRussia>
вфььше
<AlexRussia>
dammit
<AlexRussia>
- What are your relations with mathematics?
<AlexRussia>
- We are not a simple relationship!
<AlexRussia>
- How is that?
<AlexRussia>
- In the mouth I fucked your math!
<benzrf>
wot does вфььше mean
<AlexRussia>
benzrf: вфььше is dammit in russian keyboard layout
lpvn has joined #ruby
centrx has joined #ruby
<benzrf>
lol
<centrx>
lol
<AlexRussia>
read about math!
<AlexRussia>
XD
hj2007 has quit [Quit: Leaving]
<AlexRussia>
RubyPanther: what you think about math?
trusktr has joined #ruby
sambao21 has joined #ruby
<AlexRussia>
benzrf: centrx waht time in your timezone?
<trusktr>
Hey guys, I'm trying to install dependencies for gitlab, and I'm getting this error with charlock_holmes. Any idea what might be wrong? https://www.refheap.com/31360
<nycjv321>
I'm going to write my own plugin.. if only supports the annotations.. kinda lame.
<AlexRussia>
Have blood die and interesing
<AlexRussia>
XD
<nycjv321>
AlexRussia: A Clockwork Orange ?
brennanMKE has joined #ruby
angusigu1ss has joined #ruby
<nycjv321>
if it*
<AlexRussia>
nycjv321: 1962?OMC
<RubyPanther>
AlexRussia: What I think about math: I don't need to know how it works, the computer knows already! I only need to know what the functions are and how to use them. n=0.1; loop{ print " "*(Math.cos(n%(3.14*2))*10).abs,"*\n"; n+=0.1;sleep 0.025}
mojjojo has quit [Quit: mojjojo]
<nycjv321>
AlexRussia: good movie its actually really relevant.
<nycjv321>
AlexRussia: if you want more recent check out Stand Up Guys
Yahkob has quit [Remote host closed the connection]
<AlexRussia>
RubyPanther: +100500
<benzrf>
bbl :P)
<benzrf>
* :)
benzrf has left #ruby [#ruby]
Yahkob has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
ndrei has quit [Ping timeout: 260 seconds]
<centrx>
This sentence is false.
<nycjv321>
centrx: which?
<centrx>
That one, right there.
funburn has quit [Quit: funburn]
* nycjv321
brains explode
tylersmith has quit [Remote host closed the connection]
<AlexRussia>
nycjv321: You read books?
<pontiki>
The Treachery of Sentences
<RubyPanther>
>> "This sentence is false" == false
Solnse has quit [Quit: Leaving.]
<trusktr>
centrx: there is no mkmf.log file for charlock_homes
mutenewt has joined #ruby
<nycjv321>
AlexRussia: I read occasionally. I can admit embarrassingly I don't read as much as I should. I usually just read about programming. OO, Design Patterns, new technologies etc.. etc..
mutenewt has quit [Read error: Connection reset by peer]
<pontiki>
Ceci n'est pas une phrase.
punkrawkR has quit [Read error: Connection reset by peer]
mutenewt has joined #ruby
NaStYdoG has quit [Ping timeout: 272 seconds]
angusigu1ss has quit [Ping timeout: 245 seconds]
<AlexRussia>
nycjv321: ah, it.
NaStYdoG has joined #ruby
<AlexRussia>
nycjv321: I read 1984,me like.
NaStYdoG is now known as Guest3747
<AlexRussia>
nycjv321: and 'We'
<AlexRussia>
nycjv321: in process
<nycjv321>
I actualy have been meaning to read that. I've read some of short stories. Orwell is the man.
<RubyPanther>
as long as you read all of Neal Stephenson's books, most geeks will consider you well read
<nycjv321>
lol I guess I'm not well read.
banister has joined #ruby
Yahkob has quit [Client Quit]
* nycjv321
embarks on creating an intellij plugin
<pontiki>
lol RubyPanther
ylluminate has joined #ruby
<AlexRussia>
RubyPanther: Neal Stephenson's ?
Aryasam_ has joined #ruby
<AlexRussia>
nycjv321: simple, me liked, what writer look in world... in future...
<pontiki>
nycjv321: then it's impossible for anyone else to use
<nycjv321>
pontiki: JK bro :)
<pontiki>
and they can't even do a bundle install
aryaching has joined #ruby
<pontiki>
oh well, in that case
<nycjv321>
wait what are you talking about?
vlad_starkov has quit [Read error: Connection reset by peer]
<pontiki>
if you have a project that uses your own set of private gems, that you make opensource, it's full of references to gems others can't find
<RubyPanther>
nycjv321: don't listen to them, if you look at different gems, it is totally normal to monkey patch as long as you're using non-generic names
<nycjv321>
well I would release the private gems as well
<RubyPanther>
pontiki: it is like saying nobody can use rails :)
<pontiki>
how, RubyPanther ?
<nycjv321>
right now my gem is more like a copper so no need to release :)
agjacome has quit [Quit: leaving]
<snkcld>
what is a variable called when its passed to a block via | | ?
Aryasam_ has quit [Quit: Bye]
<snkcld>
is it pretty much considered an argument to the block?
<pontiki>
block variable
<shevy>
block variable perhaps
<centrx>
spaghetti sandwich
<pontiki>
i love those
<snkcld>
makes sense
<shevy>
don't make me hungry man
griffindy has joined #ruby
postmodern has joined #ruby
<AlexRussia>
XD
<nycjv321>
shevy: dominos sounds pretty good about now
<snkcld>
can the spaghetti sandwiches be considered in the same way as a function arg is, to a function?
* nycjv321
resists the urge.
<nycjv321>
snkcld: yes.
<snkcld>
thats pretty much whats happening anyway, right? a Proc obj is created with a 'call' method, which has the logic in the block
<snkcld>
and the args to call are what are passed in the spaghett sandwich
eka has quit [Quit: Computer has gone to sleep.]
<centrx>
snkcld, I doubt Proc's are created for every block, blocks are language syntax
ohwhoa has quit [Quit: woah!]
<nycjv321>
snkcld: hmmm either I'm a noob. or your thinking about this too hard.
<centrx>
Perfect timing, we were just talking about blocks.
<mgberlin>
glad i could help. or need help.
<centrx>
mgberlin, You need to pass what you want to be num1 and num2 as parameters to call
<centrx>
mgberlin, Right now it is doing nil <=> nil which is 0
<mgberlin>
block.call(param1, param2)?
<centrx>
Yes
<mgberlin>
i thought it pulled the 1, 2 out of [1,2,3,4,5]
emergion has quit [Ping timeout: 260 seconds]
<centrx>
Nope. It is a custom method so you have to define it
habanany has quit [Ping timeout: 240 seconds]
<mgberlin>
centrx: does it just completely ignore the [1,2,3,4,5].blocker_call do |num1, num2| line?
_mtr has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
saarinen has quit [Quit: saarinen]
<centrx>
mgberlin, If you did blocker.call(self) I guess it would pass the entire array in and you would get 1,2 for those variables
Megtastique has joined #ruby
<centrx>
mgberlin, It is not ignoring that line
<Azure>
How should I go about creating custom severities for use in a custom Logger class that inherits Ruby's own logger?
mocfive has quit [Remote host closed the connection]
mocfive has joined #ruby
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
<Azure>
Just define negative severity constants (such as OUTGOING = -1, INCOMING = -2, etc.) and create the appropriate methods based on the already existing methods, or should I just write my own logger class that is based off of Ruby's Logger class?
Lewix has joined #ruby
Wolland has joined #ruby
Spami__ has joined #ruby
<lpvn>
mgberlin, blocker_call only calls the block you passed in the context of the [1, 2, 3, 4, 5] array, num1 and num2 have nothing to do with the first and the second element of the array
mocfive has quit [Ping timeout: 252 seconds]
<mgberlin>
s
<mgberlin>
okay, let me think that through
_2_Pony has joined #ruby
zz_anildigital is now known as anildigital
RubyPanther has quit [Ping timeout: 240 seconds]
angusigu1ss has joined #ruby
gja has joined #ruby
<nycjv321>
in the programming world, what do you call a menu that is shown when you right click?
Megtastique has quit []
<skyjumper>
context menu?
Nonato has joined #ruby
* nycjv321
hugs skyjumper
havenwood has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
<Nonato>
good morning... someone speaks portuguese?
_2_Pony has quit [Remote host closed the connection]
mocfive has joined #ruby
<benzrf>
sorry Nonato
<lpvn>
I do, Nonato
nathancahill has joined #ruby
iliketurtles has joined #ruby
sski has quit [Remote host closed the connection]
iliketurtles has quit [Excess Flood]
sski has joined #ruby
angusigu1ss has quit [Ping timeout: 252 seconds]
Megtastique has joined #ruby
<Azure>
hm... Although if I did do negative constants for custom severities, then SEV_LABEL would be pretty much useless.
RubyPanther has joined #ruby
Megtastique has quit [Client Quit]
rubyracer has joined #ruby
<Nonato>
de onde tc lpvn?
<RubyPanther>
I just electrocuted myself, that was fun
brennanMKE has joined #ruby
nstdloop has joined #ruby
iliketurtles has joined #ruby
sski has quit [Ping timeout: 245 seconds]
<Azure>
I suppose then in that case I should also redefine the severities in the custom logger? (In my case, the custom severities are more or less INFO-level with extra chars indicating direction/etc.)
<Azure>
Fun.
<lpvn>
br
gja has quit [Quit: This computer has gone to sleep]
chrisseaton has quit []
jamto11 has quit [Remote host closed the connection]
gja has joined #ruby
Guest95012 is now known as mephux
mephux has quit [Changing host]
mephux has joined #ruby
<Nonato>
Sou iniciante do ruby, e estou tentando instalar no windows 8, o seu sistema é windows, linux ou mac?
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<lpvn>
linux
tylersmith has joined #ruby
Amart41 has joined #ruby
aryaching_ has joined #ruby
beardspeed has joined #ruby
<Nonato>
você poderia me ajudar indicando algum site que fale sobre essa instalação e configurações, estou com um problema quando tendo problema na hora que tento criar alguma tabela dentro do banco.
plotter has quit [Quit: Leaving]
sambao21 has quit [Ping timeout: 260 seconds]
davy_ has joined #ruby
Es0teric has joined #ruby
vlad_starkov has joined #ruby
mehlah has quit [Read error: Connection reset by peer]
tylersmith has quit [Ping timeout: 245 seconds]
animehti has joined #ruby
Guest3747 is now known as NaStYdoG
aryaching has quit [Ping timeout: 252 seconds]
Amart41 has quit [Ping timeout: 245 seconds]
beardspeed has quit [Client Quit]
beardspeed has joined #ruby
beardspeed has left #ruby [#ruby]
Butcho has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
Butcho has quit [Max SendQ exceeded]
Butcho has joined #ruby
sski has joined #ruby
rudisimo has joined #ruby
<pontiki>
glad you're still alive, RubyPanther
<RubyPanther>
I'm a little tingly, but that's just bonus
brennanMKE has quit [Ping timeout: 272 seconds]
krisbulman is now known as [krisbulman]
[krisbulman] is now known as krisbulman
gja has quit [Quit: This computer has gone to sleep]
Wolland has quit [Remote host closed the connection]
tyl has joined #ruby
<shevy>
hmm
<shevy>
RubyPanther repair your flat man
heidi has quit [Quit: Leaving.]
phipes has joined #ruby
<RubyPanther>
shevy: I just moved, but I plugged in an old fan my landlord loaned me... to more efficiently distribute heat from the baseboard heater... and my theory is that there was dust on the plug
<pontiki>
my theory would a frayed cord
<shevy>
hehe
<RubyPanther>
naw, the cord is fine... it's working now
plotter has joined #ruby
<pontiki>
a frayed cord, especially right at the plug, wouldn't stop it from working
<pontiki>
just allow you to brush it with your hand/finger
<pontiki>
but i have no stake in this
browndawg has joined #ruby
<RubyPanther>
yeah, it arced right when I pluged it in, I saw the spark come out of the socket and into my hand
mocfive has quit [Remote host closed the connection]
mocfive has joined #ruby
plotter has quit [Client Quit]
<RubyPanther>
I'm going to use it as an excuse to drink tonight. I just have to decide which project to code on afterwards :o
<pontiki>
did you get burnt?
<RubyPanther>
no, I only had socks on, so it passed through just fine ;)
<pontiki>
nod
<RubyPanther>
the breaker worked, so it was limited
<pontiki>
i suggest drinking heavily and avoiding outlets and decisions
<Nonato>
agarie: entendo que esse RubyInstaller é para quem quer instalar e não sabe como e pq está instalando, meio que clique aqui e instale tudo que precisa e o que não precisa, ou estou enganado? kkkk
mocfive has joined #ruby
dseitz has joined #ruby
byprdct has joined #ruby
krisbulman is now known as [krisbulman]
snath has quit [Ping timeout: 245 seconds]
<RubyPanther>
this "zomg why is my code so slow?" talk is great
samsonasu has left #ruby [#ruby]
<RubyPanther>
but I'm not going to stop using inject
<pontiki>
wut?
linojon has quit [Quit: linojon]
<benzrf>
see ya
benzrf has left #ruby [#ruby]
<RubyPanther>
he says to use Hash[] instead of Array#inject
<pontiki>
who?
<RubyPanther>
tenderlove
<pontiki>
what am i missing?
Hobogrammer_ has quit [Ping timeout: 260 seconds]
<RubyPanther>
it's at 00:25:00
<centrx>
It is a few years old also
mmcclimon has joined #ruby
mmcclimon has quit [Remote host closed the connection]
<pontiki>
tenderlove truly is the john cleese of the ruby world
Txandy|away is now known as Txandy
sski has quit [Write error: Broken pipe]
snath has joined #ruby
ckinni has joined #ruby
axl_ has quit [Quit: axl_]
angusigu1ss has joined #ruby
AlexRussia has joined #ruby
AlexRussia_Away has quit [Remote host closed the connection]
araujo has quit [Remote host closed the connection]
zz_anildigital is now known as anildigital
Nonato has quit [Ping timeout: 245 seconds]
<lapweezle>
Yeah, working with Python annoys me. :/
<lapweezle>
Just being reminded of this.
renlo has left #ruby ["Leaving"]
axl_ has joined #ruby
_mtr has joined #ruby
angusigu1ss has quit [Ping timeout: 265 seconds]
mercwithamouth has joined #ruby
agjacome has quit [Quit: leaving]
Nahra_ has joined #ruby
brunops has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
fieldfirst_ has joined #ruby
thedonva1ghn has joined #ruby
ec_ has joined #ruby
agent_white has joined #ruby
predator117 has joined #ruby
aspires has joined #ruby
replay_ has joined #ruby
w4pm has joined #ruby
connor_g1odwolf has joined #ruby
jedinerd has joined #ruby
tonini_ has joined #ruby
crus has joined #ruby
ninegrid_ has joined #ruby
mercwithamouth has quit [Ping timeout: 265 seconds]
estebistec has quit [Remote host closed the connection]
theRoUS` has joined #ruby
nari has quit [Ping timeout: 272 seconds]
Txandy is now known as Txandy|away
w4pm has quit [Read error: Operation timed out]
estebistec has joined #ruby
mgberlin has joined #ruby
cbetta_afk is now known as cbetta
mgberlin has quit [Client Quit]
<snkcld>
how do i define a function to respond to << ?
vlad_starkov has joined #ruby
brennanMKE has joined #ruby
<bahar>
hey ruby guys, i'm going through an euler problem, and i'm not done with one of my answers, but it keeps giving me errors, wrong number of arguments (0 for 1) and i'm just doing a simple until loop... any ideas? https://gist.github.com/wasafiri/785fab5e2ec887f65fe4
mocfive has quit [Remote host closed the connection]
mocfive has joined #ruby
browndawg1 has joined #ruby
<DenzelM>
snkcld: Just define a the "<<" method on your class.
aspires has quit []
<snkcld>
well, i want it to look like a property is an array
<snkcld>
so i want to be able to do "blah.outgoing(:friends) << new_friend"
browndawg has quit [Ping timeout: 252 seconds]
<snkcld>
actually, scratch that
<snkcld>
i just realized that what happens is the function is executed, then << is executed, right?
<lpvn>
bahar, shouldn't collatz.array be collatz_array?
jamto11_ has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<DenzelM>
snkcld: Yup, correct. :)
jclrb has joined #ruby
mocfive has quit [Ping timeout: 252 seconds]
gja has quit [Ping timeout: 248 seconds]
standyro2 has joined #ruby
<snkcld>
ahhh.. looks like include Enumerable is what im looking for
<jclrb>
I think some of the *default* ruby gems might have been installed as root instead of user. Is there a way I can force a reinstall as user? I already added --user-install to my gemrc
gja has joined #ruby
griffindy has quit [Ping timeout: 260 seconds]
<bahar>
i'm a n00b sorry, ignore me
cbetta is now known as cbetta_afk
griffindy has joined #ruby
<nycjv321>
bahar: hey me too
Megtastique has quit []
<bahar>
haha, i missed two really simple errors
<bahar>
i guess i was staring at it too long
Nonato has joined #ruby
brennanMKE has quit [Ping timeout: 272 seconds]
axl_ has quit [Quit: axl_]
kiri_ has joined #ruby
<RubyPanther>
jclrb: if they're in the right place, just wrong user, you can do sudo chown -R user.user /path/to/gemdir
oso96_2000 has quit [Excess Flood]
aboudreault has quit [Excess Flood]
oso|away has joined #ruby
ec has quit [Write error: Connection reset by peer]
plotter has quit [Excess Flood]
oso|away is now known as oso96_2000
freerobby has quit [Quit: Leaving.]
agent_white has quit [Ping timeout: 260 seconds]
centrx has quit [Excess Flood]
juco has quit [Excess Flood]
nstdloop has quit [Excess Flood]
malcolmva has quit [Excess Flood]
gja has quit [Quit: This computer has gone to sleep]
juco has joined #ruby
malcolmva has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
jamto11 has quit [Write error: Broken pipe]
kiri has quit [Write error: No route to host]
theRoUS has quit [Write error: Broken pipe]
tonini has quit [Write error: Broken pipe]
ninegrid has quit [Write error: Broken pipe]
BrianJ has quit [Quit: Computer has gone to sleep.]
jedinerd_ has quit [Write error: Broken pipe]
connor_goodwolf has quit [Write error: Broken pipe]
thedonvaughn has quit [Write error: Broken pipe]
fieldfirst has quit [Write error: Broken pipe]
Nahra has quit [Write error: Broken pipe]
<nobitanobi>
Hi guys. Any OpenSource Ruby projects that would be easy to start for contributing?
<agent_white>
'Mistell'! It's a term I carried over from MMORPG's.
<agent_white>
When you accidentally send a message to the wrong window :P
<dseitz>
hehehe
nari has joined #ruby
iliketurtles has joined #ruby
<dseitz>
ok, well let me get over to the convo
<RubyPanther>
on the chess servers everybody types out "mistell"
iliketurtles has quit [Max SendQ exceeded]
iliketurtles has joined #ruby
dodosan has joined #ruby
<RubyPanther>
mmorpg's are the new muds, right?
kate_r has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<dseitz>
They claim it's a bug?
<agent_white>
^ Yup. Don't even need to connect to a BBS first!
<dseitz>
Like, oh... sorry our server just randomly started rewriting copyrights... lol
<agent_white>
It's crazy.
cbetta is now known as cbetta_afk
<agent_white>
dseitz: MT
zz_anildigital is now known as anildigital
<agent_white>
^^^ use it or iono
Txandy is now known as Txandy|away
jamto11 has quit [Read error: Connection reset by peer]
brennanMKE has joined #ruby
<RubyPanther>
It is a good example of why copyright assignment, other than to the FSF, is an awful idea. Always keep your copyrights, because it effectively means that software with lots of contributors can't be re-licensed
<dseitz>
*shrug* I can't act like it has affected me, I've never used MySQL hehe
<RubyPanther>
Another example, way back in the early 90s the Free Internet Chess Server got the original programmers to assign copyrights, on the claim that it was the only way to defend the GPL'd code, and then they closed the source and freechess.org [sic] is still closed source to this day
animehti has quit [Ping timeout: 245 seconds]
LuvLinuxOS has joined #ruby
Mattx has joined #ruby
s2013 has joined #ruby
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
doanerock has joined #ruby
timonv has joined #ruby
krnflake has quit [Ping timeout: 252 seconds]
freerobby has joined #ruby
petey has joined #ruby
bsdguru has quit [Quit: bsdguru]
BackEndCoder has joined #ruby
lapweezle has quit [Quit: wife aggro]
bsdguru has joined #ruby
sethen has quit [Remote host closed the connection]
agent_white has quit [Ping timeout: 252 seconds]
agent_white has joined #ruby
freerobby has quit [Ping timeout: 245 seconds]
timonv has quit [Ping timeout: 245 seconds]
petey has quit [Ping timeout: 252 seconds]
brennanMKE has quit [Ping timeout: 272 seconds]
axl_ has quit [Quit: axl_]
krnflake has joined #ruby
anildigital is now known as zz_anildigital
zz_anildigital is now known as anildigital
MatthewsFace has quit [Ping timeout: 272 seconds]
MatthewsFace has joined #ruby
dik_dak has quit [Remote host closed the connection]
Markvilla has quit [Quit: Computer has gone to sleep.]
s2013 has quit [Ping timeout: 245 seconds]
dodosan has quit [Remote host closed the connection]
<Guest21144>
For a continuous command like ping it doesn't send the output to the websocket client immediately it just stores it in the buffer, how could I send each line? thanks!
kiri_ has quit [Ping timeout: 252 seconds]
lkba has joined #ruby
kiri_ has joined #ruby
rm_ has joined #ruby
RoxasShadowRS has joined #ruby
pushpak has joined #ruby
rm_ has quit [Ping timeout: 265 seconds]
OdNairy has joined #ruby
Speed has joined #ruby
alex88 has joined #ruby
diegoviola has joined #ruby
brennanMKE has joined #ruby
barratt has quit [Quit: Leaving...]
gianlucadv has joined #ruby
AxonetBE has quit [Quit: AxonetBE]
wildroma_ has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 248 seconds]
assurbanipal has joined #ruby
alexherbo2 has joined #ruby
brennanMKE has quit [Ping timeout: 252 seconds]
Karkizz has quit [Remote host closed the connection]
Karkizz has joined #ruby
shredding has quit [Quit: shredding]
assurbanipal has quit [Client Quit]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
mercwithamouth has joined #ruby
spider-mario has joined #ruby
freerobby has joined #ruby
Beoran has quit [Ping timeout: 252 seconds]
hmsimha has quit [Ping timeout: 272 seconds]
freerobby has quit [Ping timeout: 252 seconds]
forcefsck has joined #ruby
Guest21144 was kicked from #ruby by apeiros [if you cross-post, at the very least tell that in every channel where you post. this is only a kick, not a ban. take it as a warning.]
timonv has joined #ruby
gwb3 has quit [Quit: leaving]
SHyx0rmZ has joined #ruby
kraljev5 has joined #ruby
monkegjinni has quit [Remote host closed the connection]
monkegjinni has joined #ruby
Beoran has joined #ruby
doanerock has quit [Read error: Connection reset by peer]
doanerock has joined #ruby
fgo has joined #ruby
Guest21144 has quit [Quit: Leaving]
gittish has quit [Quit: gittish]
phansch_ has joined #ruby
monkegjinni has quit [Read error: Operation timed out]
<Nilium>
Right, I think I should stop working on this lisp interpreter in ruby and actually do what I was originally planning
pfg has quit [Remote host closed the connection]
<Nilium>
Though first.. sleep.
phansch has quit [Ping timeout: 272 seconds]
funburn has quit [Quit: funburn]
mehlah has joined #ruby
phansch_ is now known as phansch
AxonetBE has joined #ruby
sski has joined #ruby
yfeldblum has joined #ruby
timonv has quit [Remote host closed the connection]
kiri_ has quit [Ping timeout: 245 seconds]
kiri_ has joined #ruby
timonv has joined #ruby
`ph8 has quit [Ping timeout: 264 seconds]
rubyracer has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
Deele has joined #ruby
AxonetBE has quit [Quit: AxonetBE]
barratt has joined #ruby
Mon_Ouie has quit [Ping timeout: 245 seconds]
timonv has quit [Remote host closed the connection]
t0m0_ has joined #ruby
gwb3 has joined #ruby
platzhirsch has joined #ruby
AlexRussia is now known as AlexRussia_Away
AlexRussia_Away is now known as AlexRussia
<AlexRussia>
lagweezle: [02.02.14 12:40:38] <lagweezle> AlexRussia: Sorry for such a delay, but yes; ftw = for the win. It is horrible, horrible grammar
petey has joined #ruby
t0m0__ has joined #ruby
<AlexRussia>
lagweezle: ^^^ lol, i'm exit to sleep in 06:40
t0m0___ has joined #ruby
x77686d has joined #ruby
t0m0___ has quit [Client Quit]
x77686d has quit [Client Quit]
yasushi has joined #ruby
t0m0___ has joined #ruby
kaldrenon has joined #ruby
gauteh has joined #ruby
<Hanmac>
shevy: http://cheezburger.com/8031618560 "Infographic of the Day: A Map of How Much Snow it Takes to Cancel School Across the United States"
vlad_starkov has quit [Remote host closed the connection]
alex88 has quit [Quit: Leaving...]
jamto11 has joined #ruby
petey has quit [Ping timeout: 272 seconds]
vlad_starkov has joined #ruby
yasushi has quit [Remote host closed the connection]
kaldrenon has quit [Ping timeout: 248 seconds]
kmartiin is now known as mklappstuhl_
yoshie902a has joined #ruby
timonv has joined #ruby
yoshie902a has quit [Client Quit]
mklappstuhl_ is now known as mklappstuhl
timonv_ has joined #ruby
jamto11 has quit [Ping timeout: 260 seconds]
bauruine has joined #ruby
rm_ has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
roolo has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
rm_ has quit [Ping timeout: 272 seconds]
<shevy>
hmm
<shevy>
Hanmac, we need rxw!
freggles has joined #ruby
phansch_ has joined #ruby
<AlexRussia>
shevy: !
tkuchiki has joined #ruby
MindfulMonk has joined #ruby
m8 has joined #ruby
kraljev5 has quit [Quit: kraljev5]
<shevy>
AlexRussia go write more ruby
phansch has quit [Ping timeout: 245 seconds]
<AlexRussia>
shevy: need more pu-erh XD
phansch_ is now known as phansch
<shevy>
puerh?
motto has quit [Ping timeout: 260 seconds]
SHyx0rmZ has quit [Read error: Connection reset by peer]
sski has quit [Remote host closed the connection]
SHyx0rmZ has joined #ruby
kirun has joined #ruby
sski has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vlad_starkov has quit [Remote host closed the connection]
OdNairy has joined #ruby
<waxjar>
there are so many different types of tea!
<shevy>
ah a tea
CourtJesterG has joined #ruby
<shevy>
AlexRussia try the vodka-tea
m8 has quit [Ping timeout: 252 seconds]
<AlexRussia>
shevy: alcohol? FUUUU
tvw has joined #ruby
drumusician has joined #ruby
OdNairy has quit [Client Quit]
<AlexRussia>
shevy: you love drink alcohol?
<Hanmac>
shevy i made 40 commits last week (17 commits yesterday) ... bad that i need to sleep sometimes ;P (why cant i use a forked process for that? :( ;P )
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
drumusician has quit [Ping timeout: 252 seconds]
charliesome has joined #ruby
ndrei_ has joined #ruby
w4pm has quit [Ping timeout: 260 seconds]
kate_r has joined #ruby
t0m0__ has quit [Ping timeout: 245 seconds]
[krisbulman] is now known as krisbulman
t0m0___ has quit [Ping timeout: 245 seconds]
t0m0_ has quit [Ping timeout: 245 seconds]
phinfonet has joined #ruby
diegoviola has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby
wallerdev has joined #ruby
timonv_ has quit [Remote host closed the connection]
wallerdev has quit [Client Quit]
senayar has quit [Remote host closed the connection]
t0m0_ has joined #ruby
t0m0__ has joined #ruby
t0m0___ has joined #ruby
yfeldblum has joined #ruby
yasushi has joined #ruby
fgo has quit [Remote host closed the connection]
sski has joined #ruby
yfeldblum has quit [Ping timeout: 248 seconds]
adedommelin has left #ruby [#ruby]
<shevy>
dumdidum
<shevy>
Hanmac commits for documentation?
<Hanmac>
hm not so much, i added more flags you can use ... like WX::FileDialog has now flags to open it in "save file" mode
<Hanmac>
i try to document the commited flags today if i can
cbetta_afk is now known as cbetta
<Hanmac>
shevy: then i add more checks inside that for sample when you have a WX::ListCtrl or similar that you cant use selection ids that are out of range (that would raise an fatal error, i use an Exception instead)
<AlexRussia>
shevy: Hanmac how to rename local repo?
<AlexRussia>
waxjar: i'm a manually set new url in .git/config
<AlexRussia>
XD
sski has joined #ruby
<waxjar>
sure :)
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
HeyisThataPlanet has joined #ruby
johnmilton has joined #ruby
SeySayux has quit [Read error: Operation timed out]
<AlexRussia>
waxjar: lazy search in git docs and ask, where is fuckin command for change url
asmodlol has quit [Remote host closed the connection]
connor_g1odwolf is now known as connor_goodwolf
asmodlol has joined #ruby
doode has joined #ruby
krisbulman is now known as [krisbulman]
<AlexRussia>
shevy: possible each array start with end? array.each {|i| etc} is nice, but i have each with end?or used reverse
<AlexRussia>
?
brennanMKE has joined #ruby
<AlexRussia>
shevy: like array.reverse.each {|i|} ?
SeySayux has joined #ruby
<AlexRussia>
shevy: o, possible reverse_each
AndChat| has joined #ruby
lkba has quit [Read error: Connection reset by peer]
<doode>
howdy i get a javascript error when i try to run a basic scaffold page and i was hoping someone could help me track it down. ruby server and sqlite seem fine
gnephiak has joined #ruby
pr1x has joined #ruby
<pr1x>
Hello
<Hanmac>
doode: #rubyonrails ?
<doode>
k\
forcefsck has quit [Ping timeout: 272 seconds]
<pr1x>
Anyone got time for some beginners questions (WARNING: They might be stupid) :P
angusigu1ss has joined #ruby
axl_ has joined #ruby
<AlexRussia>
pr1x: try ask me, but me beginner )
gittish has quit [Quit: gittish]
<AlexRussia>
how to exit without each cycle?
gittish has joined #ruby
brennanMKE has quit [Ping timeout: 272 seconds]
doode has left #ruby [#ruby]
t0m0_ has joined #ruby
t0m0__ has joined #ruby
t0m0___ has joined #ruby
senayar has joined #ruby
ndrei_ has quit [Ping timeout: 252 seconds]
ndrei has quit [Ping timeout: 265 seconds]
yasushi has quit [Remote host closed the connection]
nilsove has joined #ruby
nateberkopec has quit [Quit: Leaving...]
ndrei has joined #ruby
ndrei_ has joined #ruby
Speed has quit [Ping timeout: 260 seconds]
senayar has quit [Ping timeout: 252 seconds]
gnephiak has quit [Remote host closed the connection]
kraljev5 has joined #ruby
senayar has joined #ruby
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
mklappstuhl has quit [Remote host closed the connection]
gnephiak has joined #ruby
forcefsck has joined #ruby
timonv has joined #ruby
Txandy is now known as Txandy|away
jmoeller has joined #ruby
Txandy|away is now known as Txandy
corehook has joined #ruby
corehook has quit [Client Quit]
fieldfirst_ has quit [Ping timeout: 272 seconds]
oddjobsman_ has quit [Ping timeout: 252 seconds]
nszceta has joined #ruby
gnephiak has quit [Remote host closed the connection]
gnephiak has joined #ruby
timonv_ has joined #ruby
yfeldblum has joined #ruby
wallerdev has joined #ruby
MrZYX|off is now known as MrZYX
Vivekananda has quit [Quit: Ex-Chat]
Vivekananda has joined #ruby
fgo has joined #ruby
_Andres has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
fgo has quit [Read error: Connection reset by peer]
fgo has joined #ruby
<shevy>
pr1x ask
SloggerKhan1 has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 260 seconds]
<shevy>
pr1x ask here not PRIVMSG
<shevy>
reason is, it is much easier to answer here. in PRIVMSG I must select on your tab, which is an extra keystroke, and then I need to refocus on #ruby, which is another one
<shevy>
there is no problem just writing your questions here really
zxd has joined #ruby
SloggerKhan has joined #ruby
dann___ has quit [Ping timeout: 245 seconds]
jdahm has joined #ruby
<pr1x>
I'm trying to understand ruby and nokogiri enoguh to get some simple output from a site.
<shevy>
awww nokogiri
<zxd>
I don;t understand this why would \spostfix\/qmgr\[[0-9]+\]: not match while \spostfix\/qmgr\[[0-9]+\]:\s does match in Feb 2 08:49:43 hostname postfix/qmgr[2717]: C61399A25DA: from=<test@foobar.com>, size=17368, nrcpt=1 (queue active)
<shevy>
that's XML isn't it :<
<pr1x>
I noticed it's more quick and easy than using sed/awk :P
<shevy>
I gave up on XML years ago
<shevy>
I thought you had beginner question
<shevy>
;P
<pr1x>
shevy: Uhm, ok. So what should I use to parse html? :P
<shevy>
hmm
<shevy>
a regex
<shevy>
:>
<jdahm>
I'm using middleman with compass and susy for my personal website and I've updated stylesheets/screen.css.sass, but every time I execute "bundle exec middleman server" I get an error on the syntax in that file, but it's showing me a very old version of the file that doesn't exist any more. I've cleared out .sass_cache, but it's still happening. Anywhere else sass caches to?
<shevy>
fat_html_string.scan(//)
cbetta_afk is now known as cbetta
timonv_ has quit [Remote host closed the connection]
phansch has quit [Quit: Leaving]
gizmore has quit [Ping timeout: 252 seconds]
petey has joined #ruby
<pr1x>
shevy: print doc.scan('//span[@class="method-name"]') like this?
<shevy>
I would first collect the matches
<shevy>
and if you then need it displayed, print it via a method
helpa has joined #ruby
<shevy>
that is not a regex though
<waxjar>
don't listen to shevy! :P nokogiri is the way to go if you want to parse html/xml
helpa has quit [Remote host closed the connection]
<shevy>
pr1x there you go, waxjar will give you the nokogiri code you need
helpa has joined #ruby
<pr1x>
xD
<Hanmac>
pr1x: thats xpath syntax not regex
cbetta is now known as cbetta_afk
<jdahm>
phew, found it. For some reason a file got in the wrong spot and it was using that one instead
<pr1x>
Right about now I feel like reading sed/awk manual will complete my task faste. My head is spinning
zoscoy has joined #ruby
fantazo has joined #ruby
kate_r has quit [Ping timeout: 265 seconds]
Megtastique has joined #ruby
<waxjar>
pr1x are you writing a script or trying to use it from the command line?
hackeron has quit [Read error: Operation timed out]
habanany has joined #ruby
postmodern has quit [Quit: Leaving]
<pr1x>
I'm just trying to make a little ruby thing that i can run in bash
timonv has joined #ruby
<pr1x>
Simple as possible then I'll just use something I know better too get data into mysql
timonv has quit [Remote host closed the connection]
browndawg has quit [Quit: Leaving.]
<pr1x>
waxjar: Gonna check it out
jmoeller has quit []
Dude007 has joined #ruby
banister has joined #ruby
habanany has quit [Ping timeout: 252 seconds]
Speed has joined #ruby
timonv has joined #ruby
mlpinit has joined #ruby
barratt has quit [Quit: Leaving...]
rm_ has joined #ruby
mlpinit has quit [Client Quit]
gittish has quit [Quit: gittish]
AlSquire has joined #ruby
x77686d has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
x77686d has quit [Client Quit]
gizmore has joined #ruby
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
rm_ has quit [Ping timeout: 260 seconds]
t0m0__ has quit [Remote host closed the connection]
t0m0___ has quit [Remote host closed the connection]
t0m0_ has quit [Remote host closed the connection]
jdahm has left #ruby [#ruby]
anildigital has quit [Changing host]
anildigital has joined #ruby
gizless has joined #ruby
pinage404 has joined #ruby
gizmore has quit [Read error: Operation timed out]
sepp2k has joined #ruby
ndrei_ has quit [Ping timeout: 248 seconds]
pskosinski has joined #ruby
lxsameer has quit [Quit: Leaving]
ndrei has quit [Ping timeout: 248 seconds]
brennanMKE has joined #ruby
<KevinSjoberg>
I seem to have a problem. Mechanize (https://github.com/sparklemotion/mechanize) only return a partial page source of a webpage I'm trying to interact with. Any ideas why?
gizmore has joined #ruby
cbetta_afk is now known as cbetta
loc22 has joined #ruby
Noldorin has joined #ruby
gizless has quit [Ping timeout: 245 seconds]
tvw has quit [Ping timeout: 252 seconds]
brennanMKE has quit [Ping timeout: 240 seconds]
Txandy is now known as Txandy|away
Markvilla has joined #ruby
fgo has quit [Ping timeout: 252 seconds]
browndawg has joined #ruby
<loc22>
Hi! Do you know the official channel of Ruby on Rails?
gittish has joined #ruby
<waxjar>
#rubyonrails
<loc22>
waxjar I already tried it but I cant connect.
cbetta is now known as cbetta_afk
enebo has joined #ruby
<waxjar>
maybe you have to register your nickname with nickserv, some channels require you to do that before you can join
<AlexRussia>
waxjar: i registered, but not open
barratt has joined #ruby
<AlexRussia>
waxjar: o, come in
<waxjar>
:p
<AlexRussia>
loc22: try #RubyOnRails
aryaching has joined #ruby
plotter has quit [Remote host closed the connection]
<AlexRussia>
waxjar: i written smal twitter XD fot traning
<loc22>
AlexRussia I will try that, thanks!
<AlexRussia>
waxjar: but now my code is holy shit, i think, but it work!
loc22 has quit [Quit: Leaving]
<AlexRussia>
lagweezle: np
<waxjar>
haha, good job
<AlexRussia>
dammit
<AlexRussia>
waxjar: is simple, if you understand logic
loc22 has joined #ruby
<AlexRussia>
waxjar: need learning regular expression and added #tags and @names
<AlexRussia>
XD
<AlexRussia>
waxjar: and registration
<AlexRussia>
waxjar: now worked only post and stream
<AlexRussia>
waxjar: XD
gittish has quit [Ping timeout: 272 seconds]
<waxjar>
regular expressions are always useful to learn, almost every languages has them :)
p8952 has quit [Ping timeout: 252 seconds]
<shevy>
COBOL
<AlexRussia>
waxjar: i small know, only ? and *
<AlexRussia>
shevy: COBOL
<AlexRussia>
shevy: ADA!
fieldfirst has joined #ruby
<shevy>
AlexRussia: PARROT
<AlexRussia>
shevy: @D@!
<AlexRussia>
shevy: who?
<shevy>
AlexRussia: YOU
pskosinski has quit [Remote host closed the connection]
<AlexRussia>
Hanmac: yep,i have make class Page for html elements
<AlexRussia>
Hanmac: ahah
gizless has quit [Read error: Operation timed out]
<loc22>
Hey guys, I know this is not ruby on rails channel but I cant get into it. Do you know some gem for logging things that happend in the app? Or is better to do it myself? Thanks!
gittish has quit [Ping timeout: 248 seconds]
nszceta has quit [Ping timeout: 245 seconds]
<MrZYX>
loc22: /msg NickServ HELP
<AlexRussia>
MrZYX: lOl
the_hack has joined #ruby
<AlexRussia>
MrZYX: YOu used diaspora* ?
<AlexRussia>
sorry
spider-mario has quit [Remote host closed the connection]
<MrZYX>
I'm one of the maintainers currently
<shevy>
loc22 you have to register before you can join there. #ruby is much nicer, you dont have to register, but we send the railsers into the other channel
jamto11 has quit [Remote host closed the connection]
arietis has quit [Quit: Computer has gone to sleep.]
<Tomasso>
my code that process documents throws an exception when processing one of them.. the thing is that I would like to mak it not to stop execution but continue with the others.. I used a begin rescue to catch the exception, but once there how do i make it continue with the looping?
yfeldblum has joined #ruby
<apeiros>
it never occurred to me that his name might have been chosen as a pun on headache
Txandy is now known as Txandy|away
<lagweezle>
More Major HAddock right now.
Speed has quit [Ping timeout: 260 seconds]
gazarsgo has left #ruby [#ruby]
Solnse has joined #ruby
cbetta is now known as cbetta_afk
yfeldblum has quit [Ping timeout: 245 seconds]
Txandy|away is now known as Txandy
the_hack has quit [Quit: Computer has gone to sleep.]
<pontiki>
Tomasso: if you don't re-raise the exception in your rescue block, the program should merrily continue on it's way
Spami__ has quit [Quit: This computer has gone to sleep]
<mojjojo>
what is the alternative hash notation for advertiser_with_link[:advertiser_id] = 2 ?
cbetta_afk is now known as cbetta
zz_anildigital is now known as anildigital
ohwhoa has joined #ruby
<Tomasso>
pontiki, what do you mean by re-raise ?
Spami__ has joined #ruby
<apeiros>
mojjojo: none
<pontiki>
you raise the exception again in the rescue block
<mojjojo>
apeiros when is then advertiser_with_link.advertiser_id used?
<AlexRussia>
MrZYX: where you in diaspora?
<apeiros>
mojjojo: when advertiser_with_link has a method advertiser_id
<pontiki>
Tomasso: what behaviour are you seeing with what you have?
<apeiros>
mojjojo: hashes do not provide methods fitting their keys
Solnse has quit [Remote host closed the connection]
<apeiros>
mojjojo: would be difficult for non-string non-symbol keys
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mojjojo>
apeiros: ahh ok so that is for the methods and for getters and setters which actually behave like variables
<Tomasso>
pontiki, it shows the exception and the program dies.. and does not continue looping with the other documents
<apeiros>
mojjojo: "getters and setters which actually behave like variables" <- what?
<MrZYX>
AlexRussia: my address? mrzyx@social.mrzyx.de
petey has joined #ruby
<apeiros>
MrZYX: you're social?
<pontiki>
Tomasso: this is after wrapping it in the begin-rescue?
<AlexRussia>
MrZYX: how to ued adress? i love url...
<apeiros>
MrZYX: do you also have mrzyx@commercial.mrzyx.de? :)
<AlexRussia>
used*
<mojjojo>
apeiros ah nvm but i mean in js variables are accessed like that
<MrZYX>
apeiros: no, I only run a pod because I contribute to the software ;P
<AlexRussia>
apeiros: nick@pod
<Tomasso>
the loop is inside the begin rescue
<apeiros>
what's a pod?
<AlexRussia>
apeiros: diaspora is decentralized network
rubyracer has quit [Quit: Konversation terminated!]
loc22 has joined #ruby
<pontiki>
Tomasso: that's the problem then
<shevy>
isn't that for smoking
<apeiros>
ah, diaspora related
<AlexRussia>
apeiros: like jabber jid, is adress your id in diaspora
kaldrenon has joined #ruby
<MrZYX>
apeiros: I think I'll get hass.web and hass.mail when they become available ;D
<Karkizz>
What's ASP.NET?
<pontiki>
Tomasso: please paste up your code
<apeiros>
MrZYX: lol
plotter has joined #ruby
plotter has joined #ruby
plotter has quit [Changing host]
<Tomasso>
mmm i see.. Ok
<Karkizz>
Is it a different language than VB.NET?
<MrZYX>
apeiros: my last name is Haß ;)
<AlexRussia>
MrZYX: but how to used adress?
<shevy>
wtf Karkizz come to ruby man, abandon your evil past
<apeiros>
MrZYX: better than Kotz
<MrZYX>
true
<AlexRussia>
MrZYX: hmm, i look Hab one time in stream....
<Karkizz>
damn, I can't work in a team because I'm an autist. I dunno if programming would work out for me..
[krisbulman] is now known as krisbulman
<AlexRussia>
MrZYX: alextalker@joindiaspora.com
senayar_ has quit [Remote host closed the connection]
cbetta_afk is now known as cbetta
rickruby has quit [Ping timeout: 252 seconds]
<MrZYX>
Karkizz: it might, most modern project management techniques are highly social, though there are still some ways you might get along, especially if you're working remote. There are also projects/companies specially targeting people with such disabilities (don't remember any names, sorry)
Amart41 has quit [Ping timeout: 252 seconds]
<pr1x>
Screw this, who would like to make some code for me ruby/php? I'll pay in bitcoins.
<pontiki>
i can't spend bitcoin
<pr1x>
Why not?
<pontiki>
cos i can't be arsed to figure out how
<pr1x>
haha
<pr1x>
Well, leasson how too get porn fow bitcoins included.
<pr1x>
pontiki: I'll give you amazon giftcard if you make shit for me
<pr1x>
pontiki: I'll give you w/e giftcard u wish
angusigu1ss has joined #ruby
<pontiki>
what do you need?
<apeiros>
how much is money which you can't spend worth?
cbetta is now known as cbetta_afk
<pr1x>
apeiros: You can spent bitcoins
<pr1x>
I do all the time
<pr1x>
apeiros: I'll PM you
<apeiros>
no need
einarj has joined #ruby
mojjojo has quit [Quit: mojjojo]
<apeiros>
but thanks
chipotle has quit [Quit: cya]
glebe has joined #ruby
einarj has quit [Remote host closed the connection]
brennanMKE has joined #ruby
x77686d has joined #ruby
x77686d has quit [Client Quit]
orgiele has joined #ruby
orgiele has quit [Client Quit]
heidi has quit [Read error: Connection reset by peer]
Markvilla has quit [Quit: Computer has gone to sleep.]
heidi has joined #ruby
AxonetBE has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
brennanMKE has quit [Ping timeout: 272 seconds]
<shevy>
haha
<shevy>
apeiros I will PM you too!
sski has quit [Remote host closed the connection]
<pontiki>
oh, i can PM too!!
<pontiki>
but i won't
<apeiros>
yes! all! prime minister me!
carif_ has quit [Quit: Ex-Chat]
<pontiki>
yes, minister
sski has joined #ruby
e^0 has joined #ruby
AxonetBE has quit [Client Quit]
mmcclimon has joined #ruby
m8 has joined #ruby
<pr1x>
Why are you guys so afraid of PM ? :P
sski has quit [Ping timeout: 252 seconds]
ElComradio has quit [Quit: ElComradio]
motto has quit [Ping timeout: 240 seconds]
<lagweezle>
It will eat my soul! <.< >.>
glebe has quit [Quit: Leaving.]
anna__ has joined #ruby
<pontiki>
it devours mental bandwidth i don't want to deal with
<pontiki>
also intrusive
<apeiros>
pr1x: it's not about being afraid
x77686d has joined #ruby
<apeiros>
pr1x: it's just that private consultation isn't free
<HeyisThataPlanet>
some people have pm's setup to make or open a new window and when people is can be annoying too
tempered has joined #ruby
lukec has joined #ruby
<apeiros>
in here, everybody can profit from questions/replies, and that's what we're willing to do for free. like others contribute to open source, we contribute to open help.
<apeiros>
private help is consulting, and consultants cost.
<apeiros>
that's how I see it at least.
<CalimeroTeknik>
agreed
<CalimeroTeknik>
and private help is relying on one person, when in the chan whoever knows answers, it's more efficient
<shevy>
pr1x problem with PM is that I need two extra clicks, and on top of that I lose what is said on #ruby without reclick. I could perhaps use keyboard shortcuts but it is still extra work, all of which is not the case if people would just ask questions here on #ruby
<lagweezle>
What is this clicking thing? IRC has no clicking!
<lagweezle>
</silly>
<shevy>
I can't use inferior clients like irssi
* apeiros
is curious now for how much worth of money he provided help in here in the last 10 years…
<apeiros>
must be in the tens of thousands…
<shevy>
or peechat
aniM has joined #ruby
<pr1x>
Well irssi solves your clicking issue ;)
<shevy>
I dont wanna downgrade man
<lagweezle>
What client are you using?
<shevy>
xchat
centrx has joined #ruby
<CalimeroTeknik>
xchat has one good point: you won't mistake it for a terminal and post a command on a chan
rm_ has joined #ruby
ner0x has joined #ruby
<shevy>
yeah, I often mistype in general and it's so much easier to rearrange the wrong words in xchat than in those ncurses pink-neon coloured eye-stabbing clients
<CalimeroTeknik>
you need a new terminal emulator color scheme! here is, for xterm and urxvt: http://sprunge.us/FgTA
<shevy>
that's black on white
<shevy>
:>
<CalimeroTeknik>
oucchh
<CalimeroTeknik>
this capture hurts the eyes
<shevy>
what do osx guys use to chat?
Spami__ has quit [Quit: This computer has gone to sleep]
Markvilla has joined #ruby
jrd0 is now known as jrdnull
<lagweezle>
My only complaint about irssi is it's lack of color space. I want more colors! I run out of colors to highlight nicks with REAL fast in all but the smallest channels.
<lagweezle>
shevy: I'm on OS X, using irssi.
<pontiki>
there's a few os/x native chat apps
<pontiki>
i don't use any
vlad_starkov has joined #ruby
<lagweezle>
I don't remember what it is, but one of the best free ones starts with a C ... :3
<pontiki>
i use irssi from a shell via tmux
<lagweezle>
I know, helpful...
<mmcclimon>
lagweezle: Colloquy, probably
<lagweezle>
Yes! That.
rm_ has quit [Ping timeout: 265 seconds]
<pontiki>
adium can talk irc, but it rather sucks
fieldfirst_ has joined #ruby
<mmcclimon>
shevy: I just started using LimeChat, which seems good so far
yarou has quit [Remote host closed the connection]
Mattx has quit [Ping timeout: 265 seconds]
habanany has joined #ruby
cbetta_afk is now known as cbetta
rickruby has joined #ruby
blackmes1 has joined #ruby
anna__ has quit [Remote host closed the connection]
rm_ has quit [Read error: No route to host]
rm_ has joined #ruby
netQT has quit [Remote host closed the connection]
Czupa has quit [Remote host closed the connection]
yarou has joined #ruby
phinfone_ has joined #ruby
cbetta is now known as cbetta_afk
<havenwood>
kraljev5: You could freedom patch an #arity_range method so you can `method(:x).arity_range` if you want: class Method; def arity_range; optional, required = parameters.partition { |k, _| k == :req }.map &:size; optional..optional + required; end end
rickruby has quit [Ping timeout: 264 seconds]
<apeiros>
rofl, freedom patch
klaut_ has joined #ruby
<havenwood>
apeiros: \o/
lfox has quit [Quit: ZZZzzz…]
brennanMKE has joined #ruby
gittish has quit [Quit: gittish]
<apeiros>
I prefer guantanamo patches
phinfonet has quit [Ping timeout: 265 seconds]
<apeiros>
keep that terrorist code at bay!
zoscoy has joined #ruby
<havenwood>
:P
shime has joined #ruby
enebo has quit [Quit: enebo]
klaut has quit [Ping timeout: 252 seconds]
<shevy>
what is a freedom patch
Jdubs has joined #ruby
yfeldblum has joined #ruby
<havenwood>
shevy: a monkey patch
bleak has joined #ruby
<lagweezle>
french fries::freedom fries as monkey patch::freedom patch
mmcclimon has quit [Remote host closed the connection]
<apeiros>
and if you want an unbound method from it, it's trivial
<kraljev5>
sure
tictatonifonical has joined #ruby
<kraljev5>
but for class macros
<kraljev5>
you don't know whether user passed a def or a symbol
<apeiros>
and why'd it matter?
<lpvn>
kraljev5, I think this has to do with the fact that methods aren't first class citizens in ruby
vongrippen_ is now known as vongrippen
<kraljev5>
lpvn, Methods are first class citizens, blocks aren't
endash has joined #ruby
bogeyd6 has joined #ruby
<apeiros>
blocks and methods generate objects only on demand
<waxjar>
they aren't. they can be represented as an object, just as block can, tho
<lpvn>
no, you can't pass methods around like objects
lfox has joined #ruby
mentok has joined #ruby
<apeiros>
lpvn: yes, you can
<apeiros>
see Method, UnboundMethod, Symbol
<lpvn>
apeiros, you can if you wrap it with Method or a similar class
cbetta is now known as cbetta_afk
<apeiros>
lpvn: or shorter: you can
<apeiros>
;-p
glebe has joined #ruby
<lpvn>
ok, so blocks are first class citizens because Proc exists ;-p
<apeiros>
I'd say if you consider blocks first class citizens, then so are methods, and vice versa
<lpvn>
I was being sarcastic lol
arietis has joined #ruby
tictatonifonical is now known as basso
<benzrf>
hey what lib can I use to convert a proc to an AST and back
rickruby has joined #ruby
glebe has quit [Ping timeout: 252 seconds]
clamstar has quit [Remote host closed the connection]
<kraljev5>
how to compare symbol to gigantic string
mmcclimon has joined #ruby
<kraljev5>
let's say 20GB in size
clamstar has joined #ruby
<havenwood>
kraljev5: I've never seen a 20GB Symbol before.
<kraljev5>
with that I mean it's inefficient to convert one to the other
<kraljev5>
then 100MB
<kraljev5>
it's still overhead
<kraljev5>
space & time oveerhead
<shevy>
and the time required for the IRC typing overhead!
<kraljev5>
that too
TMM has joined #ruby
<havenwood>
kraljev5: Don't convert massive Strings to Symbols? This doesn't sound sane.
wildroman2 has joined #ruby
<shevy>
and the endless discussions and nobody can give an answer!
<shevy>
:)
<shevy>
haha
<shevy>
now come the people who tell you that this is an awful idea
<shevy>
kraljev5: this is an awful idea
<kraljev5>
No, let's say match fails at first character
<kraljev5>
you still have to convert one to the other
<Hanmac1>
kraljev5: you make this massive string possible from user input right? now you need to live with the consequences
<havenwood>
kraljev5: huh, why? have a Gist that shows what you're doing?
<Hanmac1>
i mean massive symbol
Hanmac1 is now known as Hanmac
l1mbo has quit [Quit: Leaving]
rickruby has quit [Ping timeout: 265 seconds]
<kraljev5>
nevermind. :)
<havenwood>
Hanmac: You were he who mentioned that #parameters doesn't work for C method, right?
Xuisce has joined #ruby
cbetta_afk is now known as cbetta
<Hanmac>
havenwood: yes, i was the culpit ;P
<havenwood>
I guess that would be nice to mention in the documentation, I should pull request. I'd not have known if you didn't say!
<Hanmac>
same for source_location
rudisimo has left #ruby [#ruby]
<havenwood>
mm
rudisimo has joined #ruby
ndrei_ has quit [Ping timeout: 240 seconds]
rudisimo is now known as rudisimo|away
wildroman2 has quit [Ping timeout: 245 seconds]
ndrei has quit [Ping timeout: 252 seconds]
davy_ has joined #ruby
lfox has quit [Ping timeout: 272 seconds]
cbetta is now known as cbetta_afk
nonnatus has quit [Ping timeout: 252 seconds]
LuvLinuxOS has quit [Quit: Leaving]
Mon_Ouie has joined #ruby
monkegjinni has quit [Remote host closed the connection]
ndrei has joined #ruby
ndrei_ has joined #ruby
danijoo has joined #ruby
monkegjinni has joined #ruby
zcreative has joined #ruby
freezey has quit [Remote host closed the connection]
fgo has joined #ruby
Megtastique has quit []
Yahkob has quit []
dangerousdave has joined #ruby
cbetta_afk is now known as cbetta
alekst has joined #ruby
monkegjinni has quit [Ping timeout: 240 seconds]
the_hack has joined #ruby
angusigu1ss has quit [Ping timeout: 272 seconds]
freezey_ has joined #ruby
gnephiak has quit [Quit: Konversation terminated!]
the_hack has quit [Client Quit]
davy_ has quit [Remote host closed the connection]
gittish has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
cbetta is now known as cbetta_afk
mojjojo has joined #ruby
monkegjinni has joined #ruby
dangerousdave has quit [Ping timeout: 245 seconds]
rm_ has quit [Remote host closed the connection]
alex88 has joined #ruby
weems has joined #ruby
w4pm has joined #ruby
KK4MGV has joined #ruby
angusigu1ss has joined #ruby
fieldfirst has quit [Ping timeout: 252 seconds]
fieldfirst_ has quit [Ping timeout: 248 seconds]
freezey_ has quit [Remote host closed the connection]
arietis has quit [Quit: Computer has gone to sleep.]
w4pm has quit [Ping timeout: 272 seconds]
alex88 has quit [Quit: Leaving...]
lfox has joined #ruby
arietis has joined #ruby
drumusician has quit [Ping timeout: 272 seconds]
JBreit has quit [Read error: Connection reset by peer]
arietis has quit [Client Quit]
kobain has joined #ruby
mojjojo has quit [Quit: mojjojo]
vlad_starkov has quit [Remote host closed the connection]
browndawg has left #ruby [#ruby]
benzrf has quit [Quit: leaving]
monkegjinni has quit [Remote host closed the connection]
xcv has quit [Remote host closed the connection]
monkegjinni has joined #ruby
xcv has joined #ruby
Hobogrammer has quit [Read error: Connection reset by peer]
Hobogrammer has joined #ruby
monkegjinni has quit [Read error: Operation timed out]
Kruppe has joined #ruby
echevemaster has joined #ruby
yfeldblum has joined #ruby
Guest99791 has quit [*.net *.split]
xiphias has quit [*.net *.split]
JBreit has joined #ruby
xcv has quit [Remote host closed the connection]
Markvilla has quit [Quit: Computer has gone to sleep.]
mojjojo has joined #ruby
figgleberry has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
rm_ has joined #ruby
Txandy is now known as Txandy|away
<platzhirsch>
jwhorto1: Hey, how did it go? Have they written anything yet
<mjc_>
viki: boo
figglebe_ has quit [Ping timeout: 245 seconds]
Jdubs has joined #ruby
tyl has joined #ruby
Txandy|away is now known as Txandy
xiphias has joined #ruby
timonv has joined #ruby
Jdubs has quit [Ping timeout: 245 seconds]
zcreative has quit [Quit: Computer has gone to sleep.]
hetre85 has joined #ruby
glebe has joined #ruby
cashnguns has joined #ruby
<apeiros>
kraljev5: compare length first. since you never should have such a big symbol in the first place, comparison would fail there already.
<apeiros>
kraljev5: but honestly, your question has code reek
e^0 has quit [Read error: Connection reset by peer]
rm_ has quit [Remote host closed the connection]
e^0 has joined #ruby
Alina-malina has quit [Ping timeout: 252 seconds]
rm_ has joined #ruby
glebe has quit [Ping timeout: 252 seconds]
RoxasShadowRS has quit [Quit: Leaving]
cbetta_afk is now known as cbetta
RoxasShadowRS has joined #ruby
Megtastique has joined #ruby
Alina-malina has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
<havenwood>
kraljev5: I don't know if you care about splats with your arity Range, but you could use Infinity for max like so: https://gist.github.com/havenwood/8773264
m104 has joined #ruby
Alina-malina has joined #ruby
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
<kraljev5>
@apeiros: Big string was just a point to emphasize huge overhead of first convering it
Guest14673 has quit [Ping timeout: 264 seconds]
<kraljev5>
If I have said I have short string, then you'd say "premature optimisation is the root of all evil"
iliketurtles has joined #ruby
chipotle has joined #ruby
senayar has joined #ruby
iliketurtles has quit [Excess Flood]
ctp has joined #ruby
senayar has quit [Remote host closed the connection]
cbetta is now known as cbetta_afk
<apeiros>
kraljev5: by falsifying your question, you get inapplicable solutions
Txandy is now known as Txandy|away
<havenwood>
kraljev5: Converting user input to Symbols isn't the way to go, on the large or small.
cj3kim has joined #ruby
thams has joined #ruby
<kraljev5>
I would have to make it more complicated, like this:
<kraljev5>
1. We are comparing string and symbol
<kraljev5>
2. 99% of comparisons fail on the first char
<kraljev5>
3. How to reduce conversion overhead
<havenwood>
kraljev5: Or where are the Strings coming from? Why would they ever be Symbols?
<havenwood>
How did Symbols get into this equation at all?
thams has quit [Client Quit]
<kraljev5>
strings -> let's say database
<kraljev5>
symbols -> constants in the code
<kraljev5>
"constants"
<Hanmac>
kraljev5: wrong! use "conststr".freeze
<waxjar>
why don't you use Strings instead Symbols
* Hanmac
is know playing the soundtrack from Frozen
<waxjar>
for various reasons, but comparing to Strings is not one of them
freezey has joined #ruby
yfeldblum has joined #ruby
soulcake has quit [Read error: Connection reset by peer]
<MrZYX>
kraljev5: thing of them as identifiers for data not so much as data itself
<Hanmac>
shevy just image i would need to go to the military (a few years ago it was madalory for all male (yeah i know its sexism) ) but just image "I" would need to go, ... you know how i can program ... just image how i would shot with a weapon? ;P
<apeiros>
kraljev5: symbols exist for performance reasons
<MrZYX>
kraljev5: or identifiers in general, where you'd often use an enum in other languages for example
<Hanmac>
kraljev5: would you compare C enums with C Strings?¿
<apeiros>
kraljev5: that doesn't mean you should try to force everything into a solution involving symbols
x77686d has joined #ruby
soulcake has joined #ruby
cbetta_afk is now known as cbetta
<kraljev5>
Thanks, I understand all this
<kraljev5>
but sometimes you say ruby is not about performance
timonv has quit [Remote host closed the connection]
<kraljev5>
sometimes it is
<shevy>
Hanmac you would have to rob in the dirt rather than shoot
aniM has quit [Ping timeout: 252 seconds]
<kraljev5>
I'd prefer symbols were just fancy string notation
<shevy>
kraljev5 nobody likes symbols anyway
fgo has joined #ruby
Txandy|away is now known as Txandy
raar has joined #ruby
<shevy>
kraljev5 but nobdy will eliminate them either
phipes has joined #ruby
raar is now known as Guest16296
rylinaux has joined #ruby
rylinaux has quit [Max SendQ exceeded]
<havenwood>
kraljev5: There are good reasons to have both interned and frozen strings. You need to understand the appropriate data type for your problem domain. That isn't premature optimization.
<apeiros>
kraljev5: it's always and never about performance ;-)
<Hanmac>
YustAnotherOne that does not got that Symbols are not Strings ... you are a Rails user right, kraljev5 ?
rylinaux has joined #ruby
rylinaux has quit [Max SendQ exceeded]
<kraljev5>
Nop, hate rails
<apeiros>
kraljev5: and you were right, this reeks of premature optimization.
vlad_starkov has joined #ruby
<havenwood>
kraljev5: For example, if you let users produce Strings that get converted to Symbols, they can run you oom by creating enough Symbols in memory.
Tool_Fan has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
<waxjar>
it seems that Symbols are Ruby's monads :p
<kraljev5>
Yes, we should have HashWithIndifferentAccess by default in ruby
<apeiros>
you should use symbols only when it's perfectly natural (which in this situation it clearly isn't) or when you have a clear performance reason (which doesn't seem to be the case)
<havenwood>
kraljev5: Gah, no!
<kraljev5>
:)
<havenwood>
HashWithIndifferenceToInsanity
Tool_Fan has quit [Client Quit]
phipes has quit [Read error: Connection reset by peer]
<apeiros>
Lam0rHash
phipes_ has joined #ruby
<apeiros>
sure, why not
<shevy>
havenwood hmm are you saying we should not run #to_sym on strings?
petey has quit [Remote host closed the connection]
<kraljev5>
Now in 2014, it's pointless to change such core features
Alina-malina has quit [Read error: Connection reset by peer]
<kraljev5>
but it it were 1990...
Alina-malina has joined #ruby
Xeago has joined #ruby
Hobogrammer_ has joined #ruby
<havenwood>
kraljev5: There isn't a problem that needs fixing. They work great. Beginner confusing can be solved with learning, not gimping the language.
aniM has joined #ruby
phipes_ has quit [Ping timeout: 264 seconds]
chomskiii has quit [Read error: Connection reset by peer]
<waxjar>
we'll end up with php :p
tkuchiki has quit [Remote host closed the connection]
<apeiros>
kraljev5: in 1990 you were lucky if your computer had 20MHz and 4MB RAM
<Hanmac>
kraljev5 you can try this: "string" =~ /\A#{:symbol}\z/
chomskiii has joined #ruby
<apeiros>
those times had different considerations
<havenwood>
shevy: That would worry me immediately. And if a user can do it arbitrarily then you've got a vulnerability.
<Hanmac>
kraljev5: then use inline C and compare the char inside the char* manually ;P
m104 has quit [Quit: bye]
<havenwood>
shevy: If you are in control of the inputs, and don't do silly things that put too much non-GCable stuff in memory, then no prob.
m104 has joined #ruby
<Hanmac>
platzhirsch: löL?¿ *me is now falling from the chair and ROFls around*
Hobogrammer has quit [Ping timeout: 265 seconds]
cbetta is now known as cbetta_afk
pixelgremlins_ba has joined #ruby
forcefsck has quit [Quit: Ex-Chat]
blackmes1 has quit [Quit: WeeChat 0.4.2]
zcreative has joined #ruby
yarou has quit [Remote host closed the connection]
Megtastique has joined #ruby
Squarepy has joined #ruby
<Hanmac>
shevy: "MinDefs resp #Norway #Sweden #Netherlands #Germany" pic.twitter.com/fNFV0Z61fM ... or i would call them the four rider of apocalypse ;P
pixelgremlins has quit [Ping timeout: 245 seconds]
chomskiii has quit [Read error: Connection reset by peer]
chomskiii has joined #ruby
pushpak has quit [Ping timeout: 252 seconds]
<apeiros>
platzhirsch: cerberdeer?
Mon_Ouie has quit [Read error: Operation timed out]
<platzhirsch>
apparently :)
<havenwood>
So now that we have a frozen string literal, do you all vote for `VERSION = '0.0.1'.freeze` or too trivial to bother? :P
<apeiros>
gah, should have asked you whether you have a twitter handle vor /via before tweeting… :(
chomskiii has quit [Read error: Connection reset by peer]
<apeiros>
havenwood: it's good if you do it, doesn't really matter if you don't. and the change in 2.1 has no impact on that opinion.
yarou has joined #ruby
<havenwood>
apeiros: good point, same practical effect before the literal
chomskiii has joined #ruby
<apeiros>
the 2.1 change just makes it more viable to use literals with .freeze instead of constants
<platzhirsch>
Twitter?
<apeiros>
twitter.
<apeiros>
sorry, what was the question again? :)
<shevy>
twitter?
HoloIRCUser has joined #ruby
HoloIRCUser has quit [Client Quit]
senayar has joined #ruby
mary5030 has quit [Remote host closed the connection]
Es0teric has quit [Quit: Computer has gone to sleep.]
standyro2 has joined #ruby
ndrei_ has quit [Read error: Operation timed out]
ndrei_ has joined #ruby
occamsquattro_ has joined #ruby
motto has quit [Ping timeout: 272 seconds]
decoponio has quit [Quit: Leaving...]
gianlucadv has joined #ruby
Amart41 has quit [Ping timeout: 265 seconds]
havenwood has quit [Remote host closed the connection]
cbetta_afk is now known as cbetta
nisstyre has quit [Quit: Leaving]
IceyEC has quit [Quit: IceyEC]
vlad_starkov has quit [Remote host closed the connection]
Shidash has joined #ruby
vlad_starkov has joined #ruby
deens has joined #ruby
x77686d has quit [Quit: x77686d]
prc has quit [Read error: No route to host]
prc1 has joined #ruby
zcreative has quit [Ping timeout: 272 seconds]
Lewix has joined #ruby
cbetta is now known as cbetta_afk
pasties has quit [Read error: Connection reset by peer]
AndChat| has quit [Quit: Bye]
vlad_starkov has quit [Ping timeout: 252 seconds]
<platzhirsch>
@platzhirsch122, follow me
prc1 has quit [Ping timeout: 245 seconds]
AxonetBE has joined #ruby
lkba has joined #ruby
<shevy>
no!
pasties has joined #ruby
<platzhirsch>
Thanks @phansch
<platzhirsch>
even Berlin, heyho
<phansch>
\o/
tuttinator has joined #ruby
dx7 has joined #ruby
standyro2 has quit [Ping timeout: 264 seconds]
Czupa has joined #ruby
yfeldblum has joined #ruby
atmosx has joined #ruby
<shevy>
ghetto
krisbulman is now known as [krisbulman]
<platzhirsch>
and hipsters are homeless people, yadda yadda :D
<shevy>
yeah some of them
<shevy>
linkslastige Szene
<atmosx>
hello
<shevy>
atmosx!
<shevy>
WHERE HAVE YOU BEEN
<atmosx>
shevy: hey, how's life?
<atmosx>
shevy: when I'm in Greece I have no time for IRC really :-P .. I started with Rails
fgo has joined #ruby
<shevy>
atmosx stressful, internship starts tomorrow and the whole team are perl gurus
<atmosx>
shevy: and I went snowboarding today! aya! was awful!
glebe has joined #ruby
skaflem has quit [Quit: Leaving]
<atmosx>
shevy: oh, hahaha good luck :-P perl guys seem to be pretty much hard-core
<shevy>
hmm
<shevy>
yah well
banister has joined #ruby
<shevy>
I think I should have better prepared to totally crush them with ruby's efficiency but I am unsure
<shevy>
like when they are +10 years older and thus had +10 years more time using perl (almost) daily, that's quite a bulk of knowledge
<atmosx>
shevy: you shouldn't clash, just trash them for using a dinosaur for as a programming language :-P
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
i_s has joined #ruby
<shevy>
eh I guess I'll be meek until I know what has to be done
cbetta_afk is now known as cbetta
glebe has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
<shevy>
all I know is that it will be some database for taxonomy from various different (and incompatible) sources, and afterwards a web interface to that database
<centrx>
Perl is a powerful language
mklappstuhl has joined #ruby
<atmosx>
centrx: really?
<atmosx>
centrx: so is Lisp
<atmosx>
centrx: so what?
<centrx>
I seem to have hit a nerve
<atmosx>
centrx: no not really..
habanany has quit [Ping timeout: 272 seconds]
doanerock has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
doanerock has joined #ruby
dodosan has joined #ruby
<shevy>
hehehe
<shevy>
well
<shevy>
Ruby is a powerful language
<havenwood>
we don't hate mother Lisp or uncle Perl
<havenwood>
though he's an odd one
<centrx>
I was saying Perl is a good language, even if the syntax is arcane
anildigital is now known as zz_anildigital
<centrx>
Whereas Python and PHP are retarded
cbetta is now known as cbetta_afk
<centrx>
PHP is an abomination and a scourge upon the face of the earth.
<centrx>
Python is just slightly daft.
<shevy>
PHP is a powerful language
<atmosx>
Python has a huge set of libraries and it's well documented.
<lpvn>
wow my eyes are burning from the flames I'm seeing here lol
<havenwood>
Lets discuss which instrument is best. The bass saxophone, maan. Piccolos suck!
<centrx>
PHP is not a powerful language, except in the sense that any Turing-complete language can do anything any other Turing-complete language can do.
<waxjar>
pythonistas like to ship a novel with their libraries :p
<Cope>
hullo - I've been reading an elementary book about sort algorithms: this is my attempt at a selection search - anyone familiar with the algprithm can comment on my implementation? http://lpaste.net/99388
_1_cesar_arturo3 has joined #ruby
Megtastique has quit []
<havenwood>
I like Rich Hickey's idea of having people pair to play the cello, one on the bow and the other on the strings. Then a red or green light if the pitch and timing are correct or not.
occamsquattro_ has quit [Ping timeout: 260 seconds]
<havenwood>
>.>
<havenwood>
Or just learn to use your instrument.
<havenwood>
:O
doanerock has quit [Ping timeout: 245 seconds]
<atmosx>
Cope: you'd better off at stackoverflow for a proper commentary on taht
xcv has joined #ruby
<atmosx>
centrx havenwood any experience in client/server applications?
<Cope>
ok... i'm not convinced it's a faithful rendition of the algorithm, but the faithful ones were revoltingly procedural
<havenwood>
atmosx: Yes.
<Cope>
this was my attempt at a more rubyish implementation!
danshult_ has joined #ruby
<havenwood>
Cope: Just a nit, but the Array literal `[]` is a more idiomatic way to create a new empty Array than `Array.new`.
<atmosx>
havenwood: I want to write a client to control my RPi, just get some reporting, from a VPS, you think DRb, my TCP/IP app or everything over HTTP would be best to use?
cbetta_afk is now known as cbetta
Hanmac1 has joined #ruby
_1_cesar_arturo3 has quit [Ping timeout: 245 seconds]
doanerock has joined #ruby
<lpvn>
centrx, I think you should warn everybody that #ruby is a channel about gemstones too
Hanmac has quit [Ping timeout: 248 seconds]
<havenwood>
atmosx: I guess it depends. An extremely simple option might be just a RESTful Sinatra API. Or if you need one-way streaming, event stream with Sinatra and SSE. For more bidirectional or complex stuff DRb, an MQ or Websockets, hrm.
<centrx>
:)
phipes has joined #ruby
<centrx>
This channel is active. #rails is a derelict
<havenwood>
centrx: #rubyonrails is the rails chan though
<centrx>
Exactly
<centrx>
That is why I tell everyone in #rails that the channel is about trains
<platzhirsch>
phansch: "Watch me fail while I'm trying to use Twitter without complaining about things." <- epic
<phansch>
it's pretty hard every now and then
<havenwood>
atmosx: I like the idea of Pi to Cloud DRb, I'd like to play with that myself.
lmg_ has joined #ruby
kraljev5 has left #ruby [#ruby]
nonnatus has joined #ruby
<centrx>
Cope, I feel like the algorithm you have is wrong...
<centrx>
Cope, "smallest" is never changed?
occamsquattro_ has joined #ruby
occamsquattro_ has left #ruby [#ruby]
<atmosx>
havenwood: I wrote DRb code in the bast, the problem is that you have to use 2 TCP/IP ports. In a real world scenario you need either OpenVPN (which adds an extra layer + cpu overheat) or 2 TCP ports open on the firewall.
phipes has quit [Ping timeout: 252 seconds]
Czupa has quit [Remote host closed the connection]
nonnatus has quit [Client Quit]
<havenwood>
atmosx: the latter sounds okay to me
nonnatus has joined #ruby
<havenwood>
atmosx: i guess depends on what is allowable
<Cope>
centrx: well it does change becaue each iteration the list is one smaller
<Cope>
so basically we're just starting at the top of the new list
cbetta is now known as cbetta_afk
<apeiros>
Cope: but every iteration should select the smallest
dx7 has quit [Remote host closed the connection]
<apeiros>
which your code doesn't
<atmosx>
havenwood: hmm this might be good for a small number of clients, but wouldn't it be extremely expensive for a larger number of clients?
mgdixon has joined #ruby
allaire has joined #ruby
<apeiros>
Cope: yours just selects the last item which is smaller than the current first item
<centrx>
Cope, If you change the array to [5,4,6,8,1,3,5,7] it fails
gigetoo has quit [Read error: Connection reset by peer]
<havenwood>
atmosx: not sure how you'd scale it, hrm
freezey has quit [Ping timeout: 265 seconds]
<lagweezle>
Man, that talk from David mumble at the Ruby con is rather awesome.
Hanmac has joined #ruby
<lagweezle>
Also, I love Ruby.
gigetoo has joined #ruby
<shevy>
anyone using ruby on windows, and also with readline enabled?
the_hack has joined #ruby
Hanmac1 has quit [Ping timeout: 245 seconds]
brunops has quit [Ping timeout: 245 seconds]
art-solopov has joined #ruby
manacit is now known as manaSEAt
rubyracer has quit [Quit: Konversation terminated!]
marr has joined #ruby
fantazo has quit [Ping timeout: 240 seconds]
deever has joined #ruby
<deever>
hi
<centrx>
Greetings, Sir/Madame
gianlucadv has quit [Ping timeout: 260 seconds]
<deever>
rake doesn't find a gem that is listed with 'gem list' and 'gem list --local'
<deever>
what should i do
<MrZYX>
deever: using bundler?
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
phipes has joined #ruby
Speed has joined #ruby
mgdixon2 has joined #ruby
<nonnatus>
if so, try bundle exec rake...
DouweM has joined #ruby
mgdixon has quit [Ping timeout: 252 seconds]
phipes has quit [Remote host closed the connection]
cbetta_afk is now known as cbetta
standyro2 has quit [Ping timeout: 252 seconds]
<centrx>
There should be a test before we answer questions, whether the person will ever say another thing in the channel again
AxonetBE has quit [Quit: AxonetBE]
<MrZYX>
at least he didn't left yet!
timonv has joined #ruby
m104 has quit [Quit: bye]
cj3kim has quit [Remote host closed the connection]
<shevy>
centrx yeah that is what I do sometimes
<shevy>
deever hey are you a real person
nszceta has joined #ruby
<shevy>
yup
<shevy>
is not real
phipes has joined #ruby
<art-solopov>
Hello. I have two noobie questions: 1) Are there any good tips on structuring Ruby/Sinatra project (regarding tests and everything)? 2) Does require care about path delimeters (should I use require File.join('lib', 'something') or will require 'lib/something' do)?
<mjc_>
apeiros: thanks again for helping viki the other day :)
Speed has quit [Client Quit]
<apeiros>
mjc_: sure thing, np
<shevy>
art-solopov require 'lib/something' is fine
pixelgremlins_ba has quit [Ping timeout: 245 seconds]
manaSEAt is now known as manaHAWKS
mgdixon has joined #ruby
mmcclimon has quit [Remote host closed the connection]
<snkcld>
once i implmenet [] and []=, i can then set my_object = {a:1 , b:2} etc?
<shevy>
snkcld wat
<apeiros>
snkcld: no, {} is always a hash literal
<shevy>
you must call the [] method man
<shevy>
why do you define it and then not call it
<lagweezle>
AntelopeSalad: It has some good content, but a lot of 'yay ruby' too.
<snkcld>
well, i can do my_obj[:x] = 1 right
* lagweezle
peers at lpvn and apeiros
mklappstuhl has quit [Remote host closed the connection]
<art-solopov>
Another noobie question: is it "required" (sorta) to make your project a gem (like in Python every project should be a setuptools/easyinstall egg)?
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
art-solopov has quit [Quit: Konversation terminated!]
cashnguns has quit [Ping timeout: 248 seconds]
ghanima has quit [Ping timeout: 240 seconds]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
<platzhirsch>
Singletons are so often seen as an anti-pattern that it seems sufficient to simply document that a class is a singleton: #Singleton, do not instantiate twice (WARNING) might trigger apocalypse
doanerock has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apeiros has quit [Remote host closed the connection]
klaut_ has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 265 seconds]
apeiros has joined #ruby
mercwithamouth has quit [Ping timeout: 248 seconds]
joelroa has joined #ruby
prc has joined #ruby
tjaco has joined #ruby
drumusician has quit [Ping timeout: 245 seconds]
x77686d has joined #ruby
<MrZYX>
deever: hmkay, please also post the Rakefile
Hanmac1 has joined #ruby
dodosan has quit [Remote host closed the connection]
<snkcld>
just to make sure i understand correctly, im implementing []= and its working great, i can do foo[:x] = blah, foo[:y] = blah. but i cant do any sort of ... = {x: blah, y: blah}
<snkcld>
?
<centrx>
You can do that without implementing any methods...
<MrZYX>
snkcld: foo = is always an assignment not a method call wasn't clear?
deens has quit [Remote host closed the connection]
nonnatus has quit [Read error: Connection reset by peer]
<snkcld>
hmm, i guess ill just implement some sort of foo.data = {x: blah, y: blah}
Hanmac has quit [Ping timeout: 252 seconds]
Notte has joined #ruby
Notte has quit [Remote host closed the connection]
thealch3m1st has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
jfelchner has joined #ruby
<viki>
I got help yesterday defining the grab method, but I'm stuck on the take method now and I also don't quite understand why what I was doing before didn't work and why the solution that did work, did.
CpuID has quit [Quit: This computer has gone to sleep]
phansch has quit [Quit: Leaving]
<viki>
MrZYX: I'm not sure what my assumptions are, I'm just using that because it worked in the last method :/
<MrZYX>
okay, then explain in your own words what Array#delete does
<viki>
deletes stuff from the array that are equal to the argument you give it
<AlexRussia>
sorry, how to linked my local git profile and github?
<MrZYX>
viki: okay, and what does candies.take return?
monkegjinni has quit [Ping timeout: 272 seconds]
<viki>
the candies it took out, i thought
rickruby has quit []
<AlexRussia>
found
<MrZYX>
viki: exactly, what object does it return?
<viki>
uhm. two instances of class Candy?
<MrZYX>
there's no object "two instances"
<viki>
an array containing two instances of class Candy?
<MrZYX>
exactly
<itadder>
I got no ruby done this weekend :(
<MrZYX>
now does @candies _contain_ an array?
zachallett has joined #ruby
mentok has quit [Quit: Computer has gone to sleep]
<viki>
uhm... @candies is an array
<MrZYX>
but does it also contain one you could remove?
<viki>
i guess not
<MrZYX>
so, you're trying to remove an array from @candies. But it doesn't contain one. What do you need to do instead?
george2 has joined #ruby
<viki>
voodoo. :p
cashnguns has quit [Ping timeout: 248 seconds]
Hobogrammer_ has quit [Ping timeout: 240 seconds]
<itadder>
vodo
<MrZYX>
on the high level, what do you need to do with the result you get from take
<itadder>
any gem to help me learn ruby
<viki>
i see the stuff on line 30 as basically voodoo. But I suspect i need to do something along those lines to remove stuff from @candies. SO i need to understand what's on line 30 better.
<itadder>
I am amazed how much free learning tuts for ruby
<MrZYX>
viki: lets do the same basic question, what does it return?
<viki>
MrZYX: what does which return?
kloeri|fosdem is now known as kloeri
HeyisThataPlanet has quit [Quit: om my gosh.. what is that?]
<MrZYX>
find of course, that's what you wanted to look at
shime has joined #ruby
<itadder>
thanks bbl
itadder has quit [Remote host closed the connection]
<viki>
Oh. It returns the stuff that matches what you put in the block.
<MrZYX>
all of it?
burlyscudd has joined #ruby
<viki>
Uh. No, only the first thing.
<MrZYX>
so what kind of object do you get?
platzhirsch has quit [Ping timeout: 264 seconds]
CpuID has joined #ruby
CpuID has quit [Changing host]
CpuID has joined #ruby
bradhe has joined #ruby
charliesome has joined #ruby
Adawerk has quit [Ping timeout: 272 seconds]
<viki>
Doesn't that depend on what you put in the block?
<MrZYX>
sure, in your specific case
Adawerk has joined #ruby
claymore has quit [Quit: Leaving]
nonnatus has joined #ruby
<viki>
In my specific case I think it returns an instance of the class Candy
lmg_ has quit [Ping timeout: 248 seconds]
ohwhoa has joined #ruby
<MrZYX>
exactly. Let's summarize: your @candies is [<Candy...>,<Candy...>,...], the .find gives you <Candy...> and the take gives you [<Candy...>,<Candy...>,<Candy...>]
<viki>
Ok so do I need to do find on take?
<MrZYX>
no, you do want to remove all you get from take, no?
<viki>
yes
<MrZYX>
so you get an array. what about iterating over that?
Megtastique has joined #ruby
jonr22 has quit [Remote host closed the connection]
<viki>
Like delete_if?
jonr22 has joined #ruby
glebe has joined #ruby
<MrZYX>
that's one approach, yes
Adawerk has quit [Ping timeout: 240 seconds]
<viki>
I don't see anything about iterating to delete things. I don't really understand what iterating means exactly I guess, other than just looking at each thing.
w4pm has joined #ruby
<MrZYX>
looking at _each_ thing hits the nail, the general method to iterate over things is #each
<MrZYX>
there are more that do additional things, like #map or #find and even #delete_if
JayLeon has joined #ruby
<MrZYX>
each one takes a block that's called for each element of the container (in 99% of the cases an array) you're iterating over
<MrZYX>
which gets passed the current element
mgberlin has joined #ruby
jonr22 has quit [Ping timeout: 245 seconds]
<viki>
can i have it look at each thing, but only up to the number i give it?
JayLeon has quit [Client Quit]
<mgberlin>
can you write an RSpec test to see if something was output to the console?
<MrZYX>
viki: basically take does exactly that, it just doesn't let you iterate directly but gives you something new that you can then iterate over
Adawerk has joined #ruby
nonnatus has quit [Read error: Connection reset by peer]
<viki>
Oh ok, so I can take, then iterate over the resulting array... Then uh. Somehow tell it to delete that stuff from the first array.
<MrZYX>
mgberlin: one approach is to do $stdout = StringIO.new
w4pm has quit [Ping timeout: 248 seconds]
freezey has quit [Ping timeout: 248 seconds]
Xeago has quit [Remote host closed the connection]
<MrZYX>
viki: yes, that "somehow" you already do in grab
aryaching has quit [Ping timeout: 260 seconds]
<MrZYX>
viki: or as mentioned there's also a way to do it with the delete_if you found
<viki>
Is one better than the others?
<mgberlin>
MrZYX what is #stdout?
<mgberlin>
sorry, $stdout
mentok has joined #ruby
<MrZYX>
viki: not in general and for your usecase just don't care for the moment, you can always optimize and further educate yourself in those areas if you're comfortable with the basics
Jdubs has joined #ruby
<viki>
ok, i'll try the take then iterate and report back.
<AlexRussia>
is is is bad ask here, but
<MrZYX>
mgberlin: the global stuff like puts uses to decide where to write stuff to, by default it holds standard out
<AlexRussia>
badass possible understand like bad ass?
<havenwood>
mgberlin: then you can: $stdout = STDOUT
fridim_ has joined #ruby
freezey has joined #ruby
<havenwood>
mgberlin: (To put point the $stdout global back at the constant STDOUT.)
<havenwood>
To point*
Adawerk has quit [Ping timeout: 272 seconds]
funburn has joined #ruby
<mgberlin>
so then the $stdout will just continue to accumulate all output while it's in scope?
<nobitanobi>
Right now I have @club = Club.find(params[:id]) - But what if I want to make sure that I am finding in the context of the clubs of the current_user?
<MrZYX>
nobitanobi: #rubyonrails but anyway: current_user.clubs.find(params[:id])
<MrZYX>
nobitanobi: that's seriously #rubyonrails now ;)
<viki>
MrZYX:
<viki>
er sorry
<havenwood>
Hanmac: Doesn't work how
<nobitanobi>
:)
<viki>
this seems to have worked, does it look ok? removed_candies.each { |candy| candies.delete(candy)}
<MrZYX>
yes, that's totally fine
<viki>
\o/ thanks!
thealch3m1st has joined #ruby
wildroman2 has joined #ruby
<mgberlin>
huh, I got it to work
<mgberlin>
but I don't really understand what's going on
RubyPanther has quit [Ping timeout: 252 seconds]
<mgberlin>
could someone point me to where I can read more about $stdout and StringIO?
freggles has quit [Remote host closed the connection]
<AlexRussia>
where i can get fast introduction in sql?i need use sqlite in application )
<MrZYX>
mgberlin: do you understand that puts is just another method? and that standard out basically is just an opened File?
<mgberlin>
i know puts is another method.
<mgberlin>
i don't know what you mean about standard out
klip has quit [Ping timeout: 252 seconds]
<MrZYX>
so let's assume puts is (for this demo purposes) defined as: def puts(str); $stdout.write(str); end; (it does more than that, but boils down to it)
klip has joined #ruby
phipes has joined #ruby
<lagweezle>
shevy: Interesting re: at_exit ... That will make it's use interesting.
sergicles has joined #ruby
VTLob has quit [Quit: VTLob]
mentok is now known as mentokIND
Hanmac1 has joined #ruby
vpretzel has quit [Remote host closed the connection]
<MrZYX>
mgberlin: in unix every process has at least 3 files open: standard in (stdin for short), standard out (stdout) and standard error (stderr) and since in unix everything is a file, these are too
<Hanmac1>
okay evaling might not like tempfile but you get what i did
<havenwood>
Hanmac1: TypeError: can't convert Tempfile into StringIO
<mgberlin>
so does the StringIO object read those files?
<viki>
ok i have another question about the same exercise (should i paste the gist again?), I'm getting an error that it can't call method type, is that because it's returning an array and not an instance of Candy?
petey has quit [Remote host closed the connection]
<MrZYX>
mgberlin: so by default standard in is what you type into your console when a process is running, standard out gets displayed as well does standard error. the last two both exist because you can control where the output of those go individually
tylersmith has joined #ruby
Hanmac has quit [Ping timeout: 248 seconds]
<MrZYX>
mgberlin: StringIO is a ruby class that pretends to be an IO object (what ruby maps files to, basically) except that it records and replays everything in memory
<MrZYX>
mgberlin: we just replace standard out with such an fake IO object now
asmodlol has quit [Remote host closed the connection]
itadder has joined #ruby
<mgberlin>
interesting
<itadder>
does anyone here find ruby mine usefull
<MrZYX>
mgberlin: googling for standard out/stdout etc will get you way more throughout explanations than I can give here if you need more
<mgberlin>
i understand the basics
<Hanmac1>
"this IO is a lie" ;P
<mgberlin>
i'll check it out more though
Hanmac1 is now known as Hanmac
<mgberlin>
thanks
lfox has joined #ruby
Adawerk has joined #ruby
ekarlso has quit [Quit: Lost terminal]
mklappstuhl has joined #ruby
angusigu1ss has quit [Ping timeout: 245 seconds]
MrZYX is now known as MrZYX|off
Hanmac has left #ruby [#ruby]
<viki>
can somebody maybe help me learn how to use pry or irb to look at the results of the various methods in my code so i can compare and see what's different to try to figure out what's wrong with it?
<centrx>
viki, What isn't working?
Hanmac has joined #ruby
Wolland has joined #ruby
<viki>
i can paste the gist, but it looks huge in the window when i paste it, i don't know if i'm pasting the wrong link >_<
<AlexRussia>
itadder: what you say about ruby and mine?
<viki>
I'm getting a nomethoderror, says undefined method 'type'
<viki>
I don't think I can copy and paste from the command prompt in windows
cj3kim has quit [Remote host closed the connection]
rickruby has joined #ruby
Adawerk has quit [Ping timeout: 248 seconds]
agent_wh1te has left #ruby [#ruby]
agent_white has joined #ruby
ElCapitanMarklar has joined #ruby
agent_white has quit [Client Quit]
<viki>
I think the error is because i have an instance of the class Candy inside an array, instead of just an instance of the class Candy, but I can't remember if when i've used type before in other methods it was inside an array or not.
agent_white has joined #ruby
hmsimha has joined #ruby
RubyPanther has joined #ruby
tjaco has quit [Read error: Operation timed out]
<centrx>
viki, Are you sure the error is on line 90?
<viki>
centrx: oh! i'm sorry, i forgot to update the note. it's on ine 98.
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
Yahkob has joined #ruby
jfelchner has quit [Quit: jfelchner]
tkuchiki has joined #ruby
<agent_white>
Afternoon!
hd1 has joined #ruby
hd1 has left #ruby [#ruby]
nonnatus has joined #ruby
<centrx>
viki, Bag#take returns an array, not a candy.
aef has joined #ruby
timonv has joined #ruby
<viki>
Right, that's what I thought the problem might be, but I couldn't remember if when I've used type before it was on an array or not.
<itadder>
who is the grandmaster in the ruby community
<viki>
So I need Bag#take to return a candy, then, right?
fgo has joined #ruby
Jetchisel has joined #ruby
<centrx>
viki, Apparently, but only if the take number == 1
<viki>
centrx will it break if i don't specify that it only does that if take number == 1?
<centrx>
viki, or: number == 1 ? removed_candies.first : removed_candies
<havenwood>
Hanmac: I didn't have enough coffee today but it is almost 4pm... oh well, emergency measures! Brewing a pot!!
<centrx>
viki, It is called the ternary operator
<viki>
i'm not familiar with that syntax. what's happening after .first?
<centrx>
a ? b : c is equivalent to if a then b else c
<Nilium>
It's actually called a ternary operator, but it's just a conditional.
<Nilium>
I say 'a' because a ternary operator just has three parts.
ElCapitanMarklar has joined #ruby
<viki>
side note, i just realized i'm coding during the super bowl :p
vpretzel has quit [Ping timeout: 248 seconds]
<Nilium>
Is that happening today?
postmodern has joined #ruby
<viki>
apparently. i just got a text from somebody about their super bowl party snacks.
pskosinski has quit [Remote host closed the connection]
<Nilium>
That would explain why the store was packed when I went to get shampoo yesterday.
<centrx>
What's that
<viki>
big american football event.
zcreative has joined #ruby
nisstyre has joined #ruby
<Nilium>
It's when American stereotypes sit down and ritualistically consume tons of food and advertising while periodically watching grown men grab each others' asses.
mlpinit has joined #ruby
<Nilium>
The ass grabbing is admittedly a small portion of the time spent and most of it is just advertising.
<agent_white>
termin
<agent_white>
mt :D
lpvn has quit [Ping timeout: 272 seconds]
bradhe has quit [Remote host closed the connection]
cashnguns has quit [Remote host closed the connection]
zachallett has joined #ruby
jamto11 has quit [Remote host closed the connection]
prc has quit [Read error: Connection reset by peer]
<agent_white>
viki: Haha I am as well, and in Denver nonetheless!
<viki>
agent_white: nice XD
prc has joined #ruby
<viki>
i'm actually not sure "coding" is an appropriate term for the attempt at learning which is actually what i'm doing, but i'm still tickled :p
jamto11_ has joined #ruby
Hanmac1 has joined #ruby
griffindy has quit [Quit: Computer has gone to sleep.]
jamto11_ has quit [Remote host closed the connection]
Speed has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
fgo has quit [Remote host closed the connection]
thealch3m1st has quit [Read error: Connection reset by peer]