apeiros changed the topic of #ruby to: Ruby 2.1.0; 2.0.0-p353; 1.9.3-p484: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
petey has quit [Ping timeout: 252 seconds]
kenneth has quit [Quit: kenneth]
joshu has quit [Ping timeout: 245 seconds]
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]
mehlah has quit [Quit: Linkinus - http://linkinus.com]
<shevy> AlexRussia I can not change the topic
<AlexRussia> shevy: hahaha
<AlexRussia> RubyPanther: nice video, i know track
<RubyPanther> I did used to work with a group of Russian programmers, but they all had excellent English
mehlah has joined #ruby
<shevy> lagweezle lol
brunops has quit [Client Quit]
<AlexRussia> shevy: you need look it http://stuff.rubypanther.com/ulibka.html
lfox has quit [Quit: ZZZzzz…]
ElComradio has joined #ruby
Txandy is now known as Txandy|away
<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
<AlexRussia> lagweezle: ftw - For The Win ?
zcreative has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<shevy> AlexRussia nah = no
<AlexRussia> shevy: ok
<AlexRussia> RubyPanther: eh, but si not opensource (
<shevy> yes ftw is for the win
wallerdev has quit [Quit: wallerdev]
<AlexRussia> shevy: for the woman XD
<shevy> we are training AlexRussia in english
wallerdev has joined #ruby
<shevy> soon he will be as good as matz
<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]
<shevy> RubyPanther you are damn old man!
<AlexRussia> shevy: enjoy!
tempered has quit [Quit: !s]
ElComradio has quit [Quit: ElComradio]
<AlexRussia> RubyPanther: gimp gimp gimp....python?
apeiros has joined #ruby
kirun has quit [Quit: Client exiting]
benmoss has joined #ruby
centrx has quit [Quit: Leaving]
<RubyPanther> Perl, but I am currently working on a Ruby gimp plugin
predator217 has joined #ruby
<AlexRussia> RubyPanther: pretty nice, gimp is nice program
<benmoss> can anyone explain to me why this throws an exception? https://gist.github.com/benmoss/8761374
w4pm has joined #ruby
jamto11 has joined #ruby
Lewix has quit [Remote host closed the connection]
<benmoss> i mean, obviously it does because it's a frozen array, but shouldn't the dup mean that we aren't operating on the frozen array?
jamto11 has quit [Remote host closed the connection]
thams has quit [Ping timeout: 240 seconds]
<AlexRussia> benmoss: maybe, me stupid, but, what do Enumerator.new and how to your stop enumerate?
<RubyPanther> shevy is so old, he forgets he's old too
renlo has joined #ruby
<renlo> how does i install ruby
<benmoss> AlexRussia: not sure I understand
predator117 has quit [Ping timeout: 248 seconds]
<renlo> tried rvm, but i was getting an error with grunt...i'm just looking to compile some compass / sass stuff
<AlexRussia> renlo: what system?
<renlo> ubuntu / debian
<bnagy> benmoss: what's the exception?
<benmoss> bnagy: repro.rb:11:in `[]=': can't modify frozen Array (RuntimeError)
<renlo> uhh, i already uninstalled rvm but i think node couldnt find ruby
<AlexRussia> renlo: you know apt-get?
Butcho has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<renlo> yea, but its going to install an old version of ruby
<renlo> :(
<AlexRussia> eh
mentok has joined #ruby
mentok has quit [Changing host]
mentok has joined #ruby
<benmoss> renlo: what node app is trying to access ruby?
burlyscudd has joined #ruby
<AlexRussia> i think, if you get old version, go to ruby-lang.org and complile new version!
pabloh has joined #ruby
w4pm has quit [Ping timeout: 245 seconds]
<benmoss> renlo: grunt-sass or something?
<renlo> grunt threw a ruby error when i was trying to compile a scss file to css
Noldorin has quit []
<renlo> yea
<renlo> grunt-contrib-compass (/ sass)
<benmoss> does `ruby -v` work?
<benmoss> and what's the error?
Txandy|away is now known as Txandy
jack_rabbit has quit [Ping timeout: 245 seconds]
<AlexRussia> Txandy: !
<renlo> haha, thanks ben...i feel stupid now
<renlo> looks like ive already have ruby installed
<renlo> haha
<benmoss> hah np
<benmoss> bnagy: any idea?
<AlexRussia> renlo: debian-debian
<snkcld> how would i override Array#to_s?
<renlo> is there something similar to idle for ruby?
Noldorin has joined #ruby
<bnagy> benmoss: hm, not offhand. I can't repro with 'normal' frozen arrays
srji_ has joined #ruby
<AlexRussia> renlo: ?
Soda has quit [Remote host closed the connection]
<bnagy> benmoss: what's the bizarre Enumerator stuff for?
<RubyPanther> snkcld: class Array; alias_method :orig_to_s, :to_s ; def to_s_with_foo ; to_s + "foo" end ; alias_method :to_s, :to_s_with_foo; end
jrobertfox has quit [Quit: Take it easy.]
<renlo> i'm just a bit confused AlexRussia, i think that my version of ruby may be broken
<renlo> when i type 'ruby', nothing happens
<renlo> ruby -v shows the version
<benmoss> bnagy: just realized it's not relevant.. https://gist.github.com/benmoss/8761374
<RubyPanther> oops, but alert
<bnagy> and try writing it without it, see if you can get a simpler test case
<benmoss> yeah thats what' I'm trying right now
<RubyPanther> snkcld: class Array; alias_method :orig_to_s, :to_s ; def to_s_with_foo ; orig_to_s + "foo" end ; alias_method :to_s, :to_s_with_foo; end
<AlexRussia> renlo: yep, when you simple type 'ruby', nothing
<AlexRussia> renlo: what your version and where application error?
<RubyPanther> well, something like that anyways
<RubyPanther> very very bad idea though
davy_ has joined #ruby
<AlexRussia> RubyPanther: continue talk about girls pleeeeeeeeease
freerobby has quit [Quit: Leaving.]
bpfh has joined #ruby
srji has quit [Ping timeout: 252 seconds]
thams has joined #ruby
<RubyPanther> Once upon a time, in the age of dinosaurs, I was young and dated hot geek girls: http://stuff.rubypanther.com/images/AighDot2.jpg
<AlexRussia> shevy: i have langulage 'Cocaine', for users understand, what you used, when write code XD
ckinni has joined #ruby
<bnagy> benmoss: it's the nested construction
lukec has quit [Quit: lukec]
<AlexRussia> RubyPanther: beautyfuls XD
<benmoss> bnagy: but the first inner loop, "attempt" is not frozen, the second inner loop, it is?
<AlexRussia> RubyPanther: me liked ' in the age of dinosaurs' XD
<benmoss> that's what i don't get
<bnagy> benmoss: not sure why, though
<benmoss> bnagy: also what is weird is that without the `self.class.new` it doesn't throw
<benmoss> oh damnit
<AlexRussia> shevy: shevy!
<bnagy> benmoss: oh! I see.
<benmoss> that is it! `self.class.new` freezes attempt
<benmoss> damnit damnit damnit
<bnagy> when you create the nested.. yeah, so the second iteration blows up
<AlexRussia> benmoss: need self.new?
<benmoss> hah that was an annoying bug
freerobby has joined #ruby
max96at has quit [Quit: Textual IRC Client: www.textualapp.com]
beardspeed has joined #ruby
<shevy> AlexRussia wat
<shevy> AlexRussia go write more ruby code man
<AlexRussia> RubyPanther: and wtan later?
funburn has joined #ruby
<AlexRussia> shevy: XD
<AlexRussia> shevy: i have langulage 'Cocaine', for users understand, what you used, when write code XD
jonr22 has quit [Remote host closed the connection]
krnflake has quit [Ping timeout: 252 seconds]
<renlo> thanks for the help guys, got it to work :D
jonr22 has joined #ruby
hobodave has joined #ruby
<AlexRussia> renlo: LoL
<renlo> lol
Yahkob has joined #ruby
<RubyPanther> and then I got old, and settled down and married a nice Buddhist girl
<renlo> in python when you type 'python' it opens up the python command line
<AlexRussia> renlo: Say me, why can't we look another way? Wht can't we just play another game?
<renlo> ruby doesnt so i assumed ruby wasnt working / installed
<renlo> AlexRussia no comprende signor
<AlexRussia> renlo: python != ruby XD
<renlo> haha yea, but i was expecting something like that
phipes has joined #ruby
<bnagy> renlo: irb
yasushi has joined #ruby
<AlexRussia> renlo: hey, is interpol!
jack_rabbit has joined #ruby
<renlo> bnagy thank you!!!
<RubyPanther> you can just type "ruby" and go, as long as you remember to hit cntl-D at the end
<renlo> haha
<AlexRussia> renlo: try search 'Interpol - Evil' and you sound it!
<AlexRussia> renlo: haha
<AlexRussia> RubyPanther: haha
<renlo> huehue
<AlexRussia> RubyPanther: yep. You liked settled down life?
davy_ has quit [Remote host closed the connection]
<RubyPanther> yeah, married life is great
picca has left #ruby [#ruby]
bpfh has quit [Read error: Connection reset by peer]
jonr22 has quit [Ping timeout: 272 seconds]
bpfh has joined #ruby
chomskiii has quit [Read error: Connection reset by peer]
<renlo> as someone who has worked with python / django, what would be the benefits of moving over to rails?
chomskiii has joined #ruby
<RubyPanther> it is like having your life in screen(1) all your terminals can stay open
<RubyPanther> no rebooting
<bleak> haha
phipes has quit [Ping timeout: 245 seconds]
Txandy is now known as Txandy|away
klaut has quit [Remote host closed the connection]
yasushi has quit [Ping timeout: 245 seconds]
<RubyPanther> a stable interface to hack, API frozen in maintenance mode
hobodave has quit [Read error: Connection reset by peer]
<shevy> lol
<shevy> "stable interface to hack" epic
burlyscudd has quit [Quit: Leaving.]
krnflake has joined #ruby
mary5030 has joined #ruby
bpfh has quit [Read error: Connection reset by peer]
hobodave has joined #ruby
bpfh has joined #ruby
CourtJesterG has quit [Quit: Leaving...]
robustus has quit [Ping timeout: 245 seconds]
pfg has joined #ruby
dik_dak has joined #ruby
robustus has joined #ruby
mrfoo has quit [Ping timeout: 245 seconds]
<AlexRussia> RubyPanther: nice phrases.....need save
aryaching has quit []
dx7 has joined #ruby
Yahkob has quit [Remote host closed the connection]
<shevy> I am watching a splatter movie
<shevy> and man, when zombies bite people
<shevy> they kinda damage them seriously
<AlexRussia> shevy: what name of film? walking dead?
<bleak> being bitten by a zombie is fairly dire yes
<AlexRussia> XD
Aryasam has joined #ruby
asteros has joined #ruby
<AlexRussia> zombie is FUN
<AlexRussia> like theme
<AlexRussia> RubyPanther: you love zombies?
<AlexRussia> XD
benmoss has quit [Quit: benmoss]
<RubyPanther> I got bitten by zombies, it took 2 days to figure out I was fork()ing wrong
<shevy> AlexRussia "The Dead"
<shevy> AlexRussia we need more games written in ruby
<AlexRussia> shevy: try later 'walking dead'
asteros has quit [Client Quit]
<AlexRussia> shevy: more lazy games? no
<shevy> more games in general
asteros has joined #ruby
<RubyPanther> I don't watch zombie flicks, but I do end up seeing Thai ghost movies, which are often a cross between zombies and a romantic comedy
<AlexRussia> RubyPanther: a, you say about zombie like process!XD
<AlexRussia> RubyPanther: main(){
<AlexRussia> RubyPanther: fork();
<AlexRussia> RubyPanther: }
<AlexRussia> XD
axl_ has joined #ruby
nonnatus has quit [Read error: Connection reset by peer]
mary5030 has quit [Remote host closed the connection]
<AlexRussia> RubyPanther: you used *nix system for life?
mary5030 has joined #ruby
<RubyPanther> ps axu | grep 'Z' # check for zombies
Aryasam has quit [Ping timeout: 245 seconds]
bpfh has quit [Read error: Connection reset by peer]
<RubyPanther> AlexRussia: no, I only switched to *nix in 1998
bpfh has joined #ruby
<AlexRussia> RubyPanther: you used windows?
<RubyPanther> new apps stopped working in win3.1+win32s about that time, and I refused to install win95 so I tried linux
<RubyPanther> I was mostly using DOS still
<AlexRussia> RubyPanther: then now you on fedora?
<RubyPanther> and coding in a BASIC dialect called ASIC
<RubyPanther> Yeah, I switched from slackware to RedHat in `99 or `00, and I've been with it since, other than a couple years with fBSD
asteros has quit [Quit: asteros]
<RubyPanther> but I'm careful to write cross platform code, all my Ruby stuff works in windoze if needd
<AlexRussia> RubyPanther: you know, how to i understand: your OS is Fedora?
tt1187 has quit [Ping timeout: 260 seconds]
<RubyPanther> Fedora release 16 (Verne)
<AlexRussia> RubyPanther: yep, ruby is cross-platfoem
<AlexRussia> RubyPanther: ???
<AlexRussia> RubyPanther: no, no, my client for irc dont know your OS and i dont ask another mens
Txandy|away is now known as Txandy
senayar has quit [Remote host closed the connection]
brennanMKE has joined #ruby
<RubyPanther> Even Ruby C extensions are cross platform, if you do it right
<AlexRussia> RubyPanther: i go to to your stuff site and try open main page
freggles has quit [Remote host closed the connection]
<AlexRussia> RubyPanther: and me switched to error page, when written fedora XD
benzrf has joined #ruby
<benzrf> sup yall
<benzrf> I had an idea
<RubyPanther> Oh, that is a webserver, Fedora 19
<AlexRussia> RubyPanther: http://stuff.rubypanther.com/
<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
<benzrf> such a thing may not exist in our realm
<benzrf> RubyPanther: :\
<shevy> benzrf then java
fgo has quit [Remote host closed the connection]
Jdubs has quit [Read error: Operation timed out]
<RubyPanther> AlexRussia: it isn't an error page, the public facing page is http://rubypanther.com/
<AlexRussia> benzrf: god used Ruby http://godrb.com/
<AlexRussia> RubyPanther: yep, i know
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
yfeldblum has quit [Ping timeout: 272 seconds]
<shevy> new_list = []
sabeur has joined #ruby
mutenewt has joined #ruby
<shevy> More than one way in Python
<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> nothing really new
agent_white has joined #ruby
<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
timonv has joined #ruby
tempered has joined #ruby
<benzrf> The Three Laws of Optimization:
<benzrf> 1. Don't do it.
<benzrf> 2. Don't do it.
<benzrf> 3. Don't do it yet.
<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
<benzrf> *time
<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
agjacome has joined #ruby
agent_white has quit [Ping timeout: 245 seconds]
<centrx> AlexRussia, => #<ActiveSupport::TimeZone:0x00000001ac6f88 @name="Eastern Time (US & Canada)", @utc_offset=nil, @tzinfo=#<TZInfo::TimezoneProxy: America/New_York>, @current_period=#<TZInfo::TimezonePeriod: #<TZInfo::TimezoneTransitionDefinition: #<TZInfo::TimeOrDateTime: 1383458400>,#<TZInfo::TimezoneOffset: -18000,0,EST>>,#<TZInfo::TimezoneTransitionDefinition: #<TZInfo::TimeOrDateTime: 1394348400>,#<TZInfo::TimezoneOffset: -18000,
<centrx> 3600,EDT>>>>
<AlexRussia> centrx: Ou
<benzrf> AlexRussia: it is 9:24 here
<AlexRussia> benzrf: right!
<AlexRussia> centrx: ^^^
nycjv321 has joined #ruby
<AlexRussia> benzrf: 9:24 am?
sambao21 has quit [Client Quit]
<centrx> trusktr, "Could not create Makefile due to some reason, probably lack of necessary
<centrx> libraries and/or headers. Check the mkmf.log file for more details. You may
<centrx> need configuration options."
<centrx> SORRY
centrx has left #ruby [#ruby]
centrx has joined #ruby
<centrx> I am back, better than ever
<nycjv321> Any RubyMine users here? Does RubyMine only read Yard annotations and thats it?
<benzrf> AlexRussia: pm
<AlexRussia> benzrf: in my - 06:26 am, i think, need sleeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeep
petey has joined #ruby
<AlexRussia> nycjv321: RubyMine is not a collarborate platform?
<nycjv321> AlexRussia: what do u mean?
<AlexRussia> nycjv321: I think, i user, but not try make own server
* nycjv321 scratches head
<AlexRussia> nycjv321: ask on #xonotic , used RubyMine for develop
<nycjv321> AlexRussia: okay thanks.
* AlexRussia shot in nycjv321 head!
<AlexRussia> nycjv321: dev.xonotic.org ,maybe help, idk
<AlexRussia> nycjv321: also*
<AlexRussia> Who know good film?
<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...
<centrx> trusktr, apt-get install build-essential ?
<nycjv321> so I have written some methods to monkey patch standard libs. Is it bad that I made them into a gem? :P
ndrei has joined #ruby
<shevy> nycjv321 yes
<nycjv321> shevy: why?
* nycjv321 does evil laugh
<shevy> nycjv321 because others who use your gem will have a modified stdlib as well
<nycjv321> oh nah my gem is local
<shevy> then why is it a gem
<shevy> :P
<nycjv321> also each needs to be specifically included.
<nycjv321> so I can use them in multiple project
<centrx> Doesn't sound like much of a gem
Hanmac1 has joined #ruby
<nycjv321> e.g. require 'monkey_patches/array'
<shevy> hehe
<shevy> k
<nycjv321> lol
mercwithamouth has quit [Ping timeout: 264 seconds]
<shevy> so if they require that project, nothing gets auto-changed
<nycjv321> yes
<nycjv321> dude that would just be evil
* centrx wagers the monkey patching is unnecessary. Ruby already contains all necessary methods ever.
Aryasam has quit [Ping timeout: 252 seconds]
<shevy> nycjv321 what are your monkey patches doing?
<RubyPanther> nycjv321: monkey patching stdlib is fine if you're only adding methods and you're naming them in a non-generic way
<RubyPanther> so if I write a gem rubypantherfu and it adds #to_rubypantherfu then that is no problem. But if I add #to_r that would be really awful
<nycjv321> pretty basic stuff. e.g. swap array, get hash key by value, logarithmic iterator.
Hanmac has quit [Ping timeout: 248 seconds]
<nycjv321> I just did this yesterday.
<nycjv321> logarithmic sleep*
lpvn has quit [Read error: Connection reset by peer]
<shevy> you added to_r?
brennanMKE has quit [Ping timeout: 272 seconds]
<pontiki> gems don't have to be pushed out to rubygems to be gems
lpvn has joined #ruby
<nycjv321> pontiki: exactly.
<pontiki> running a local gem server is just fine and dandy
<RubyPanther> shevy: or in a real-world case, if my gem dec_number ads #to_decnumber that is fine, but #to_d would be awful
<nycjv321> well I'm only adding new methods. I think if I was overriding I would probobly compose, inherit or something else.
<pontiki> or an organizational one
<pontiki> but doing so you make it impossible to release your project as opensource
s2013 has quit [Ping timeout: 245 seconds]
<AlexRussia> nycjv321: interesing film...
<AlexRussia> shevy: !XD
sambao21 has joined #ruby
<RubyPanther> rb_define_method(rb_cObject, "to_dec_number", to_dec_number, 0); # not that bad
lpvn has quit [Read error: Connection reset by peer]
<nycjv321> pontiki: open source it anyway :P
lpvn has joined #ruby
<nycjv321> AlexRussia: A Clockwork Orange or Stand Up Guys?
grs has quit [Ping timeout: 264 seconds]
<nycjv321> AlexRussia: check out Midnight Cowboy :)
vlad_starkov has joined #ruby
<RubyPanther> don't click it will eat your brains
<nycjv321> to late
<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.
<RubyPanther> snkcld: pickaxe says "block parameters"
agjacome has joined #ruby
* nycjv321 hands shevy a slice of his imaginy dominos mushroom/anchovy pizza
lpvn has quit [Read error: Connection reset by peer]
<snkcld> nycjv321: im probably looking too deep into it
kewubenduben has joined #ruby
lpvn has joined #ruby
<snkcld> centrx: blocks are used by ruby by way of Procs though, i believe
<snkcld> or lambdas?
<pontiki> blocks, procs, and lambdas, oh my!
<centrx> snkcld, Not if it is a native method call
<AlexRussia> okay, need sleep, good night!
AlexRussia is now known as AlexRussia_Away
<RubyPanther> centrx: Blocks are Procs: def foo(&block); puts block.class end ; foo() {}
<RubyPanther> Proc
decoponio has joined #ruby
<nycjv321> pontiki: my head hurts
<centrx> RubyPanther, That is after you have passed it to a custom method
<snkcld> $ ruby -e "def func(&block) puts block.class end ; func do end"
<snkcld> Proc
<snkcld> yea
<snkcld> ok, just wanted to make sure i understood correctly
<RubyPanther> centrx: you're claiming there is an additional type of thing, but there isn't
<pontiki> nycjv321: maybe see the matzwizard and get some brains?
<RubyPanther> it would be surprising if blocks were only procs sometimes, and some unknown whatthewhat other times
<nycjv321> pontiki: ruby creator?
<nycjv321> is he ever on this channel?
<centrx> RubyPanther, The & operator converts it to a proc
<centrx> RubyPanther, If it were a Proc beforehand, you could pass it without &
<snkcld> OH
<RubyPanther> I can pass it without the &
<snkcld> centrx: that explains it well
mutenewt has quit [Quit: Leaving]
<snkcld> RubyPanther: you can pass a do-end and access the block without &
<pontiki> nycjv321: i am unfamiliar with his irc habits
<nycjv321> dude that would be cool
<RubyPanther> No, he doesn't come to irc, at least not English IRC
benzrf has joined #ruby
<snkcld> is that an optimization feature, that its not converted into a Proc if its anonymous
<benzrf> hmm
<benzrf> constant namespaces are lexically scoped
<benzrf> but constants /themselves/ are not
<benzrf> right?
jamto11 has joined #ruby
mgberlin has joined #ruby
<mgberlin> hey, what's the best way to share code on here?
<centrx> gist or pastie
nathancahill has quit [Quit: nathancahill]
Solnse has joined #ruby
crazymykl has quit [Quit: Konversation terminated!]
mikemac has joined #ruby
<mgberlin> Any idea why if I put block.call into the debugger (or otherwise use it in the program) I get a return value of 0?
<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
<agarie> Nonato: já tentou a instalação via RubyInstaller/pik? Tem os links aqui: https://www.ruby-lang.org/en/installation/
mgberlin has quit [Quit: mgberlin]
plotter has joined #ruby
endash has quit [Quit: endash]
<lpvn> agarie, from?
<agarie> lpvn: Brazil :D
mary5030 has quit [Remote host closed the connection]
<lpvn> haha state?
mocfive has quit [Ping timeout: 240 seconds]
iliketurtles has quit [Quit: zzzzz…..]
<agarie> São Paulo
kate_r has joined #ruby
braincrash has quit [Quit: bye bye]
<lpvn> cool
axl_ has quit [Quit: axl_]
Megtastique has joined #ruby
timonv has joined #ruby
<Nonato> agarie: obrigado pela dica, eu até tinha visto esse site, mas não tinha tentado por ele não!
<centrx> Potato muchacha el guara?
petey has quit [Remote host closed the connection]
axl_ has joined #ruby
petey has joined #ruby
Deele has quit [Ping timeout: 260 seconds]
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
braincrash has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
Butcho has quit [Quit: Textual IRC Client: www.textualapp.com]
petey has quit [Ping timeout: 252 seconds]
<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> i don't know what you are watching, RubyPanther
jamto11 has joined #ruby
mmcclimon has joined #ruby
mmcclimon has quit [Client Quit]
lagweezl1 has joined #ruby
lagweezl1 is now known as lapweezle
anildigital is now known as zz_anildigital
<pontiki> holy kraken
<pontiki> i've never seen him look like this
<RubyPanther> I think he likes the 70s
<lapweezle> O.o
thief_ has quit [Quit: Leaving]
<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?
axl_ has joined #ruby
wormwood has quit [Changing host]
wormwood has joined #ruby
<snkcld> nobitanobi: github.com/karabijavad/cadet ;P
gja has quit [Client Quit]
arietis has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
<nobitanobi> snkcld, thanks
<nobitanobi> I will take a look
nfk has quit [Quit: yawn]
Rylee has quit [Excess Flood]
predator217 has quit [Remote host closed the connection]
camt has quit [Remote host closed the connection]
replay has quit [Remote host closed the connection]
Bumptious has quit [Excess Flood]
Rylee has joined #ruby
aboudreault has joined #ruby
sailias has quit [Ping timeout: 272 seconds]
Bumptious has joined #ruby
plotter has joined #ruby
plotter has joined #ruby
plotter has quit [Changing host]
centrx has joined #ruby
agent_white has joined #ruby
iliketurtles has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
<animehti> Why does my method keep on printing twice
plotter has quit [Remote host closed the connection]
<animehti> My name method, help please. Thank you.
dseitz has joined #ruby
supersym has quit [Quit: WeeChat 0.4.2]
sambao21 has joined #ruby
griffindy has quit [Quit: Computer has gone to sleep.]
supersym has joined #ruby
camt has joined #ruby
rushed has joined #ruby
<bnagy> line 10 calls the name method, you probably want to change it to use an ivar like @name
agent_white has quit [Ping timeout: 245 seconds]
plotter has joined #ruby
plotter has joined #ruby
plotter has quit [Changing host]
araujo has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
sambao21 has quit [Ping timeout: 264 seconds]
Hanmac has joined #ruby
Jdubs_ has quit [Remote host closed the connection]
nycjv321 has quit [Quit: leaving]
Hanmac1 has quit [Ping timeout: 252 seconds]
agent_white has joined #ruby
mentok has quit [Quit: Computer has gone to sleep]
Noldorin has quit []
gja has joined #ruby
kewubenduben has quit [Ping timeout: 245 seconds]
Jetchisel has joined #ruby
angusigu1ss has joined #ruby
jclrb has quit [Quit: jclrb]
Amart41 has joined #ruby
vlad_starkov has joined #ruby
nari has joined #ruby
angusigu1ss has quit [Ping timeout: 240 seconds]
nithinbekal has joined #ruby
Amart41 has quit [Ping timeout: 260 seconds]
_mtr has quit [Quit: Textual IRC Client: www.textualapp.com]
cbetta_afk is now known as cbetta
vlad_starkov has quit [Read error: Connection reset by peer]
<agent_white> Everyone is migrating to PG since they began to close the mysql source.
jamto11_ has quit [Remote host closed the connection]
jamto11 has joined #ruby
anildigital is now known as zz_anildigital
cbetta is now known as cbetta_afk
<lapweezle> PostgreSQL fuh teh wuh.
Txandy|away is now known as Txandy
cbetta_afk is now known as cbetta
sabeur has joined #ruby
MatthewsFace has joined #ruby
mspah_ has joined #ruby
mspah_ has quit [Client Quit]
MatthewsFace has quit [Client Quit]
iliketurtles has quit [Ping timeout: 248 seconds]
MatthewsFace has joined #ruby
mrwbsn has joined #ruby
mrwbsn has left #ruby [#ruby]
Nonato has quit [Ping timeout: 245 seconds]
nari has quit [Ping timeout: 240 seconds]
sabeur has quit [Ping timeout: 240 seconds]
mentok has joined #ruby
mentok has joined #ruby
mentok has quit [Changing host]
cbetta is now known as cbetta_afk
<dseitz> I think oracle wants to close the enterprise tuning ability of mysql
<dseitz> $$$ yo
cbetta_afk is now known as cbetta
Mattx has quit [Ping timeout: 264 seconds]
<agent_white> mt, that was fer rails lulz
<agent_white> whurrz mah gpl yo
<dseitz> eeek
<agent_white> mt
<agent_white> Lawd I am terrible
iliketurtles has joined #ruby
Nonato has joined #ruby
iliketurtles has quit [Max SendQ exceeded]
<dseitz> what's 'mt' short for?
<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]
Jdubs has joined #ruby
crus has quit [Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com )]
rm_ has joined #ruby
Megtastique has joined #ruby
mgdixon has joined #ruby
Mon_Ouie has quit [Ping timeout: 272 seconds]
lxsameer has joined #ruby
estebistec has quit [Remote host closed the connection]
angusigu1ss has joined #ruby
dseitz has quit [Ping timeout: 245 seconds]
krnflake has quit [Ping timeout: 252 seconds]
jackneill has joined #ruby
jackneill has joined #ruby
jackneill has quit [Changing host]
s2013 has joined #ruby
estebistec has joined #ruby
agent_white has quit [Ping timeout: 272 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
agent_white has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
jzig has quit [Remote host closed the connection]
aryaching_ has quit [Ping timeout: 252 seconds]
angusigu1ss has quit [Ping timeout: 245 seconds]
freerobby has joined #ruby
rm_ has quit [Remote host closed the connection]
jamto11 has joined #ruby
mocfive has joined #ruby
Wolland has joined #ruby
nathancahill has quit [Quit: nathancahill]
mgdixon has quit [Ping timeout: 272 seconds]
dseitz has joined #ruby
freerobby has quit [Ping timeout: 252 seconds]
krnflake has joined #ruby
browndawg1 has quit [Ping timeout: 264 seconds]
gja has joined #ruby
Hanmac1 has joined #ruby
dodosan has joined #ruby
cbetta_afk is now known as cbetta
Hanmac has quit [Ping timeout: 264 seconds]
<Nilium> I wrote a very barebones lisp interpreter thingy in Ruby.
<Nilium> No variable support, but it works well enough to run a lisp expression that tokenizes, parses, and runs a lisp expression
cbetta is now known as cbetta_afk
Megtastique has quit []
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pfg has joined #ruby
browndawg has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_wh1te has joined #ruby
rushed has quit [Quit: rushed]
<lpvn> hey guys, this is a tricky one
agent_wh1te has quit [Client Quit]
Wolland has quit [Remote host closed the connection]
<bnagy> mysql gem bug, by the looks
<bnagy> try latest gem / mysql dll
<lpvn> it's still open, it seems
dseitz has quit [Ping timeout: 272 seconds]
s2013 has quit [Ping timeout: 248 seconds]
<bnagy> so.. "not tricky" is what you're saying
<bnagy> the bug even has a workaround
arietis has joined #ruby
Txandy|away is now known as Txandy
mentok has quit [Quit: Computer has gone to sleep]
bsdguru has quit [Quit: bsdguru]
dseitz has joined #ruby
<lpvn> bnagy, where is the workaround?
Wolland has joined #ruby
mocfive has quit [Remote host closed the connection]
agent_white has joined #ruby
krnflake has quit [Ping timeout: 272 seconds]
mocfive has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
kgrz has joined #ruby
<lxsameer> can i document javascript codes with yardoc ?
<Nilium> Probably not?
<Nilium> Considering it's made to parse Ruby, and Javascript is not Ruby..
iliketurtles has quit [Quit: zzzzz…..]
supersym has quit [Quit: WeeChat 0.4.2]
<lxsameer> Nilium: do you now any document generator that supports ruby and js together ?
<Nilium> I don't use Javascript, so no.
<lxsameer> thanks
mocfive has quit [Ping timeout: 245 seconds]
nobitanobi has quit [Quit: Leaving]
MatthewsFace has quit [Ping timeout: 272 seconds]
MatthewsFace has joined #ruby
kgrz has quit []
krnflake has joined #ruby
yarou has quit [Remote host closed the connection]
joshwines_ has quit [Remote host closed the connection]
rm_ has joined #ruby
rm_ has quit [Read error: No route to host]
brennanMKE has joined #ruby
rm_ has joined #ruby
funburn has joined #ruby
Solnse has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
timonv has quit [Remote host closed the connection]
rm_ has quit [Ping timeout: 252 seconds]
alpha123 has quit [Read error: Operation timed out]
sree has joined #ruby
dodosan has quit [Remote host closed the connection]
alpha123 has joined #ruby
lukec has joined #ruby
brennanMKE has quit [Ping timeout: 272 seconds]
wallerdev has quit [Quit: wallerdev]
TDJACR has quit [Ping timeout: 264 seconds]
tdubya has joined #ruby
tdubya has left #ruby ["Leaving"]
ndrei has joined #ruby
wishlistmaster has joined #ruby
TDJACR has joined #ruby
angusigu1ss has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sree has quit []
jamto11 has quit [Remote host closed the connection]
angusigu1ss has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
browndawg has left #ruby [#ruby]
Lewix has quit [Remote host closed the connection]
estebistec has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 272 seconds]
sabeur has joined #ruby
x77686d has quit [Quit: x77686d]
x77686d has joined #ruby
skaflem has joined #ruby
x77686d has quit [Client Quit]
Notte has joined #ruby
shredding has joined #ruby
lukec has quit [Quit: lukec]
sabeur has quit [Ping timeout: 252 seconds]
brunops has quit [Ping timeout: 272 seconds]
Wolland has quit [Remote host closed the connection]
cj3kim has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
timonv has joined #ruby
IceDragon has quit [Quit: Space~~~]
wildroman2 has joined #ruby
oddjobsman_ has joined #ruby
fgo has joined #ruby
pontiki has joined #ruby
Nonato has quit [Quit: Page closed]
echevemaster has quit [Quit: Leaving]
wildroman2 has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
paradisaeidae has joined #ruby
Lewix has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
gja has quit [Quit: This computer has gone to sleep]
gittish has joined #ruby
lagweezl1 has joined #ruby
lagweezl1 is now known as lapweezle
centrx has quit [Quit: Leaving]
petey has joined #ruby
lapweezle has left #ruby [#ruby]
kiri_ has quit [Ping timeout: 272 seconds]
thealch3m1st has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thealch3m1st has joined #ruby
petey has quit [Ping timeout: 252 seconds]
rm_ has joined #ruby
the_hack has joined #ruby
cdorovsky has joined #ruby
rushed has joined #ruby
kiri_ has joined #ruby
the_hack has quit [Client Quit]
the_hack has joined #ruby
predator117 has quit [Quit: leaving]
krnflake has quit [Ping timeout: 252 seconds]
OdNairy has joined #ruby
dapz has joined #ruby
browndawg has joined #ruby
the_hack has quit [Client Quit]
brennanMKE has joined #ruby
timonv has joined #ruby
havenwood has quit [Remote host closed the connection]
araujo has quit [Quit: Leaving]
rm_ has quit [Ping timeout: 272 seconds]
pfg has quit [Quit: Textual IRC Client: www.textualapp.com]
drumusician has joined #ruby
nithinbekal has quit [Ping timeout: 272 seconds]
lpvn has quit [Quit: Saindo]
krnflake has joined #ruby
nithinbekal has joined #ruby
fgo has quit [Remote host closed the connection]
ckinni has quit [Read error: Connection reset by peer]
predator117 has joined #ruby
wildroman2 has joined #ruby
shredding has quit [Quit: shredding]
yasushi has joined #ruby
cj3kim has quit [Remote host closed the connection]
krnflake has quit [Ping timeout: 252 seconds]
shredding has joined #ruby
Txandy is now known as Txandy|away
trusktr has quit [Quit: Leaving.]
trusktr has joined #ruby
trusktr has left #ruby [#ruby]
Txandy|away is now known as Txandy
brennanMKE has quit [Ping timeout: 240 seconds]
drumusician has quit [Quit: Leaving]
srji_ has quit [Quit: leaving]
kraljev5 has joined #ruby
<kraljev5> Hey, is there any metaprogramming way, for class to remember which object it was instantiated in?
wildroman2 has quit [Remote host closed the connection]
davy_ has quit [Remote host closed the connection]
wildroman2 has joined #ruby
krnflake has joined #ruby
freerobby has joined #ruby
<lagweezle> AlexRussia: Sorry for such a delay, but yes; ftw = for the win. It is horrible, horrible grammar.
freerobby has quit [Read error: Connection reset by peer]
freerobby1 has joined #ruby
timonv has quit [Remote host closed the connection]
w4pm has joined #ruby
standyro2 has quit [Ping timeout: 248 seconds]
sabeur has joined #ruby
freezey has joined #ruby
freerobby1 has quit [Ping timeout: 272 seconds]
paradisaeidae has quit [Quit: ChatZilla 0.9.90.1 [Firefox 26.0/20131205075310]]
anildigital is now known as zz_anildigital
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
w4pm has quit [Read error: Operation timed out]
Txandy is now known as Txandy|away
krnflake has quit [Ping timeout: 252 seconds]
zz_anildigital is now known as anildigital
nithinbekal has left #ruby [#ruby]
<agent_white> ftdubs
wildroman2 has quit [Remote host closed the connection]
Txandy|away is now known as Txandy
blackmes1 has joined #ruby
Hanmac has joined #ruby
krnflake has joined #ruby
ndngvr` has joined #ruby
rushed has quit [Quit: rushed]
Hanmac1 has quit [Ping timeout: 245 seconds]
funburn has quit [Quit: funburn]
tempered has quit [Quit: !s]
ndngvr has quit [Ping timeout: 245 seconds]
philcrissman has quit [Ping timeout: 260 seconds]
kmartiin has joined #ruby
Jdubs has quit [Remote host closed the connection]
Notte has quit [Remote host closed the connection]
aryaching has joined #ruby
yasushi has quit [Remote host closed the connection]
timonv has joined #ruby
<bnagy> kraljev5: just design it properly
<bnagy> eg pass self to the object in P.spawn
Jdubs has joined #ruby
<kraljev5> yes, but what if that is not an option?
<bnagy> maybe look at binding of caller in new
<bnagy> but it's stupid
Notte has joined #ruby
hmsimha has quit [Ping timeout: 265 seconds]
Notte has quit [Remote host closed the connection]
Txandy is now known as Txandy|away
<lagweezle> Sounds like a use for callbacks? O.o
Amart41 has joined #ruby
Jdubs has quit [Remote host closed the connection]
sabeur has quit [Remote host closed the connection]
wald0 has joined #ruby
Wolland has joined #ruby
Thanatermesis has joined #ruby
Thanatermesis has quit [Changing host]
Thanatermesis has joined #ruby
Jdubs has joined #ruby
Amart41 has quit [Ping timeout: 245 seconds]
ndrei has quit [Ping timeout: 245 seconds]
freezey has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
klaut has joined #ruby
rm_ has joined #ruby
max96at has joined #ruby
shredding has joined #ruby
Jonah11_ has quit [Ping timeout: 252 seconds]
rm_ has quit [Ping timeout: 260 seconds]
timonv has quit [Remote host closed the connection]
BraddBitt has joined #ruby
BraddPitt has quit [Ping timeout: 252 seconds]
aryaching has quit []
vlad_starkov has joined #ruby
timonv has joined #ruby
m8 has joined #ruby
timonv has quit [Remote host closed the connection]
brennanMKE has joined #ruby
agent_white has quit [Quit: goodnight]
Notte has joined #ruby
BraddBitt is now known as BradPitt
BradPitt is now known as BraddPitt
mojjojo has joined #ruby
motto has joined #ruby
senayar has joined #ruby
m8 has quit [Ping timeout: 265 seconds]
brennanMKE has quit [Ping timeout: 265 seconds]
ndrei has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
ner0x has quit [Quit: Leaving]
cdorovsky has left #ruby [#ruby]
claymore has joined #ruby
hmsimha has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
senayar has quit [Remote host closed the connection]
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
senayar has joined #ruby
gasbakid has joined #ruby
wildroman2 has joined #ruby
predator117 has quit [Ping timeout: 252 seconds]
blackmes1 has quit [Read error: Operation timed out]
freerobby has joined #ruby
pfg has joined #ruby
Jdubs has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
Jdubs has joined #ruby
ndrei_ has joined #ruby
ndrei has quit [Remote host closed the connection]
phipes has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 265 seconds]
_Andres has joined #ruby
mojjojo has quit [Quit: mojjojo]
ph8 has joined #ruby
carraroj has joined #ruby
relix has joined #ruby
Megtastique has joined #ruby
ndrei_ has quit [Ping timeout: 245 seconds]
Chioque has joined #ruby
ndrei has joined #ruby
Czupa has joined #ruby
kraljev5 has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Remote host closed the connection]
kraljev5 has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
barratt has joined #ruby
freezey has joined #ruby
Chioque has quit [Quit: Leaving]
yfeldblum has joined #ruby
Txandy|away is now known as Txandy
freezey has quit [Ping timeout: 252 seconds]
x77686d has joined #ruby
ndrei has joined #ruby
x77686d has quit [Client Quit]
monkegjinni has joined #ruby
ctp_ has quit [Ping timeout: 272 seconds]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Jdubs has quit [Remote host closed the connection]
Shidash has quit [Ping timeout: 252 seconds]
ndrei has quit [Ping timeout: 252 seconds]
dseitz has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Notte has quit [Remote host closed the connection]
blackmes1 has joined #ruby
Jdubs has joined #ruby
petey has joined #ruby
funburn has joined #ruby
predator117 has joined #ruby
petey has quit [Ping timeout: 260 seconds]
lkba has quit [Ping timeout: 248 seconds]
carraroj has quit [Ping timeout: 245 seconds]
Megtastique has quit []
rm_ has joined #ruby
eka has joined #ruby
Wolland has quit [Remote host closed the connection]
Wolland has joined #ruby
anildigital is now known as zz_anildigital
mojjojo has joined #ruby
netQT_ has joined #ruby
arianit has joined #ruby
arianit has joined #ruby
arianit has quit [Changing host]
rm_ has quit [Ping timeout: 245 seconds]
carraroj has joined #ruby
netQT_ has quit [Read error: Connection reset by peer]
ktosiek has quit [Read error: Connection reset by peer]
ktosiek has joined #ruby
gasbakid has quit [Remote host closed the connection]
Czupa has quit [Quit: Wychodzi]
Czupa has joined #ruby
brennanMKE has joined #ruby
ndrei has joined #ruby
sergicles has joined #ruby
bleak has quit [Read error: Connection reset by peer]
ktosiek has quit [Read error: No route to host]
Astral_ has joined #ruby
ktosiek has joined #ruby
Jdubs_ has joined #ruby
tonni_ has joined #ruby
bleak has joined #ruby
brennanMKE has quit [Ping timeout: 240 seconds]
eliasp_ has joined #ruby
SloggerKhan1 has joined #ruby
vongrippen_ has joined #ruby
wildroman2 has quit [Remote host closed the connection]
lethjakm1 has joined #ruby
Mon_Ouie has joined #ruby
lamba_ has joined #ruby
timonv has joined #ruby
pr00t_ has joined #ruby
dazeddev_ has joined #ruby
tonini has joined #ruby
unstable_ has joined #ruby
pdtpatr11k has joined #ruby
nw_ has joined #ruby
predator217 has joined #ruby
sawtooth_ has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Read error: Connection reset by peer]
wildroman2 has joined #ruby
phansch has joined #ruby
pu22l3r_ has joined #ruby
Lewix has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
arianit has quit [Ping timeout: 245 seconds]
freerobby has joined #ruby
Davedo1 has joined #ruby
elektronaut_ has joined #ruby
onewheelskyward_ has joined #ruby
jrd00 has joined #ruby
relix_ has joined #ruby
jcp has joined #ruby
jcp is now known as Guest99791
relix has quit [Read error: Connection reset by peer]
aep_ has joined #ruby
SirFunk- has joined #ruby
Jdubs_ has quit [Remote host closed the connection]
digifiv5e has joined #ruby
`ph8 has joined #ruby
digifiv5e is now known as Guest52318
predator117 has quit [*.net *.split]
Jdubs has quit [*.net *.split]
ph8 has quit [*.net *.split]
tonini_ has quit [*.net *.split]
nisstyre has quit [*.net *.split]
tonni has quit [*.net *.split]
jrd0 has quit [*.net *.split]
lethjakman has quit [*.net *.split]
asmodlol has quit [*.net *.split]
__main__ has quit [*.net *.split]
Astralum has quit [*.net *.split]
pr00t has quit [*.net *.split]
helpa has quit [*.net *.split]
Tobarja has quit [*.net *.split]
ghanima has quit [*.net *.split]
Beoran has quit [*.net *.split]
iceden has quit [*.net *.split]
sawtooth has quit [*.net *.split]
guyz has quit [*.net *.split]
onewheelskyward has quit [*.net *.split]
Kruppe has quit [*.net *.split]
rlvm has quit [*.net *.split]
aep has quit [*.net *.split]
unstable has quit [*.net *.split]
vongrippen has quit [*.net *.split]
pu22l3r has quit [*.net *.split]
rylinaux has quit [*.net *.split]
Davedo has quit [*.net *.split]
Sou|cutter has quit [*.net *.split]
zz_anildigital has quit [*.net *.split]
lamba has quit [*.net *.split]
pdtpatr1ck has quit [*.net *.split]
dazeddev has quit [*.net *.split]
eliasp has quit [*.net *.split]
tfitts has quit [*.net *.split]
SirFunk_ has quit [*.net *.split]
SloggerKhan has quit [*.net *.split]
DylanJ has quit [*.net *.split]
KK4MGV has quit [*.net *.split]
elektronaut has quit [*.net *.split]
shaman42 has quit [*.net *.split]
nw has quit [*.net *.split]
xsdg_ has quit [*.net *.split]
elektronaut_ is now known as elektronaut
onewheelskyward_ is now known as onewheelskyward
Davedo1 is now known as Davedo
_main_ has joined #ruby
tfitts has joined #ruby
timonv has joined #ruby
standyro2 has joined #ruby
dangerousdave has joined #ruby
timonv has quit [Remote host closed the connection]
shaman42 has joined #ruby
anildigital has joined #ruby
rubyracer has quit [Quit: Konversation terminated!]
freerobby has quit [Ping timeout: 248 seconds]
bleak has quit [Ping timeout: 252 seconds]
_main_ is now known as __main__
rlvm has joined #ruby
abra has quit [Ping timeout: 248 seconds]
prc has joined #ruby
gittish has quit [Quit: gittish]
iceden has joined #ruby
standyro2 has quit [Ping timeout: 272 seconds]
barratt has quit [Quit: Leaving...]
Sou|cutter has joined #ruby
Beoran has joined #ruby
abra has joined #ruby
asmodlol has joined #ruby
nisstyre has joined #ruby
DylanJ has joined #ruby
ghanima has joined #ruby
AxonetBE has joined #ruby
jrd00 is now known as jrd0
gittish has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
Notte has joined #ruby
Amart41 has joined #ruby
timonv has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
dapz has quit [Read error: Connection reset by peer]
AxonetBE has quit [Quit: AxonetBE]
barratt has joined #ruby
zevs04 has joined #ruby
Amart41 has quit [Ping timeout: 265 seconds]
zevs04 has quit [Client Quit]
alpha123 has quit [Ping timeout: 248 seconds]
TommyBotten has quit [Read error: Operation timed out]
TommyBotten has joined #ruby
AxonetBE has joined #ruby
alpha123 has joined #ruby
relix_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
relix has joined #ruby
kraljev5 has quit [Ping timeout: 240 seconds]
Notte has quit [Remote host closed the connection]
shredding has joined #ruby
mojjojo has quit [Quit: mojjojo]
mojjojo has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Wolland has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
wildroman2 has quit [Ping timeout: 245 seconds]
wildroma_ has joined #ruby
kies has quit [Remote host closed the connection]
Karkizz has joined #ruby
Guest21144 has joined #ruby
<Guest21144> Hi I'm a noob and I need some help. Here is my code https://gist.github.com/mariusavram91/8759276
<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…]
nateberkopec has joined #ruby
sski has quit [Ping timeout: 252 seconds]
freerobby has joined #ruby
motto has joined #ruby
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 )
<AlexRussia> Hanmac: fork();
pedda has joined #ruby
<AlexRussia> Hanmac: pay pu-erh, stop sleep XD
CourtJesterG has quit [Quit: Leaving...]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
w4pm has joined #ruby
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?
tyl has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
t0m0___ has quit [Ping timeout: 245 seconds]
<Hanmac> rename local repo? arnt they only directories that you can rename like anything else?
t0m0__ has quit [Ping timeout: 245 seconds]
t0m0_ has quit [Ping timeout: 245 seconds]
<shevy> AlexRussia: mv foo/ bar/
<shevy> :>
<AlexRussia> shevy: not directory
<shevy> AlexRussia: mv foo bar
<AlexRussia> shevy: name of REPO
<shevy> mv REPO RAPO
<AlexRussia> shevy: nononoo, si not worked
<shevy> ok
<shevy> define "local repo"
<AlexRussia> Enter passphrase for key '/home/alx/.ssh/id_rsa':
<AlexRussia> Counting objects: 5, done.
<AlexRussia> Delta compression using up to 4 threads.
<AlexRussia> Compressing objects: 100% (3/3), done.
<AlexRussia> Writing objects: 100% (3/3), 457 bytes | 0 bytes/s, done.
<AlexRussia> Total 3 (delta 0), reused 0 (delta 0)
<AlexRussia> remote: This repository moved. Please use the new location:
<AlexRussia> remote: git@github.com:AlexTalker/lite-twitter.git
<AlexRussia> To git@github.com:AlexTalker/light-twitter.git
<AlexRussia> 6f3b46a..d9dd416 master -> master
cbetta is now known as cbetta_afk
ndrei has quit [Read error: Operation timed out]
<AlexRussia> light-twitter need remove
<AlexRussia> is stupid name
<AlexRussia> (
jamto11 has joined #ruby
funburn has joined #ruby
ndrei_ has quit [Ping timeout: 264 seconds]
<AlexRussia> shevy: o, i understand
funburn has quit [Client Quit]
<AlexRussia> shevy: sOrRy
jamto11 has quit [Ping timeout: 264 seconds]
rm_ has joined #ruby
<waxjar> AlexRussia: if you want to share multiple lines its better to use a pastebin like gist.github.com to share them
einarj has joined #ruby
dann___ has joined #ruby
<AlexRussia> waxjar: yep, i know
<AlexRussia> waxjar: gist need auth?
<AlexRussia> waxjar: or possible anonymous-paste ?
yoshie902a has joined #ruby
yoshie902a has left #ruby [#ruby]
<dann___> https://gist.github.com/Pebblescript/36c4b79f730a4a700180 rake confict? ive uninstalled all versions of rake and reinstalled it but it still doesn't work
<waxjar> AlexRussia: you can rename your repository on github
<waxjar> you don't need to login :)
ndrei has joined #ruby
ndrei_ has joined #ruby
gittish has joined #ruby
<AlexRussia> waxjar: yep, i understand, github say 'repo removed, used it: bla-bla', but me dont understand )))
<dann___> (i'm on ruby 1.9.3)
rm_ has quit [Ping timeout: 252 seconds]
<waxjar> AlexRussia: i think Github wants you to use the new URL of the git repository: http://stackoverflow.com/questions/2432764/how-to-change-a-remote-repository-uri-using-git
sski has quit []
johnmilton has joined #ruby
<AlexRussia> waxjar: yep
johnmilton has quit [Max SendQ exceeded]
<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
hackeron has joined #ruby
petey has quit [Ping timeout: 245 seconds]
<apeiros> zxd: they both match for me
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> shevy: You lie!
<shevy> you repeated COBOL ;P
<AlexRussia> shevy: is reply!
<shevy> hehe
<AlexRussia> shevy: @D@!
<shevy> reply with the same content :P
<shevy> AlexRussia: @D@!
<shevy> is reply!
<AlexRussia> shevy: PARROT!
<AlexRussia> XD
<shevy> I don't even know what that @ means
<AlexRussia> shevy: @ = A
<shevy> ADA
<shevy> hmm
<shevy> can't you use normal characters :P
<shevy> yeah I know it
<shevy> an awful language
<shevy> the world has too many awful languages already
CalimeroTeknik has quit [Ping timeout: 240 seconds]
wildroman2 has quit [Remote host closed the connection]
loc22 has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
<AlexRussia> shevy: need write if - end or simple if?
meruem has joined #ruby
gizmore has quit [Ping timeout: 245 seconds]
gizless has joined #ruby
<shevy> both ways
<shevy> if condition
<shevy> bla()
<shevy> end
<shevy> or
griffindy has joined #ruby
<shevy> bla() if condition
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<AlexRussia> shevy: thx
bhaak has quit [Ping timeout: 248 seconds]
Txandy|away is now known as Txandy
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<zxd> how do I load a doc of an installed gem?
wildroman2 has joined #ruby
<AlexRussia> zxd: ri
<AlexRussia> zxd: ri class or ri class#method
CourtJesterG has joined #ruby
bhaak has joined #ruby
<zxd> ok
<AlexRussia> zxd: maybe, possible used rdoc, but idk it
<zxd> aren't gems supposed to install a bin file or symlink to /usr/local/rvm/bin when I do gem install foo?
jonr22 has joined #ruby
wallerdev has quit [Quit: wallerdev]
loc22 has joined #ruby
gizless has quit [Read error: Operation timed out]
monkegjinni has joined #ruby
CalimeroTeknik has joined #ruby
p8952 has joined #ruby
Hanmac1 has quit [Ping timeout: 245 seconds]
<AlexRussia> zxd: idk
<AlexRussia> shevy: hmm, my some code not work (
<zxd> ymca
anildigital is now known as zz_anildigital
jamto11 has joined #ruby
<AlexRussia> zxd: yes, of course
<zxd> idk!?
<zxd> what is
yfeldblum has joined #ruby
loc22 has quit [Quit: Leaving]
<AlexRussia> zxd: i dont KNOW!
<AlexRussia> shevy: https://gist.github.com/AlexTalker/8769617 string 35 and later
loc22 has joined #ruby
<zxd> good
zz_anildigital is now known as anildigital
havenwood has joined #ruby
Hanmac has joined #ruby
loc22 has quit [Client Quit]
loc22 has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
xcv has joined #ruby
<AlexRussia> shevy: shevy
zoscoy has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
<AlexRussia> shevy: o, sorry
<AlexRussia> shevy: every worked
zoscoy has joined #ruby
supersym has joined #ruby
Txandy is now known as Txandy|away
<AlexRussia> Hanmac: hhHHHaaaaahha
<Hanmac> AlexRussia: i think you like that too: https://i.chzbgr.com/maxW500/8030821376/h1F7156A2/
<AlexRussia> Hanmac: https://gist.github.com/AlexTalker/8769617 u=is my first code, me full idiot ot no? XD
meruem- has joined #ruby
<AlexRussia> Hanmac: what man on right side in hands?
freerobby has quit [Quit: Leaving.]
<Hanmac> AlexRussia: its a SonicScrewdriver ;P
<AlexRussia> Hanmac: ?
ioanpaulpirau has joined #ruby
jackneill has quit [Quit: WeeChat 0.4.2]
<AlexRussia> Hanmac: a, understand
gittish has joined #ruby
jackneill has joined #ruby
ioanpaulpirau has quit [Client Quit]
<AlexRussia> Hanmac: You like my code?or is shit? XD
meruem has quit [Ping timeout: 245 seconds]
gizless has joined #ruby
<Hanmac> about the code, a little bit to much global variables ... but i dont know if that can be avoided
<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.]
<AlexRussia> MrZYX: last diaspora maintainer?wow
dgfdgf has joined #ruby
`MArceLL` has quit [Ping timeout: 246 seconds]
<MrZYX> where did I say last?
dgfdgf is now known as `MArceLL`
<AlexRussia> MrZYX: ooop, my bad english ))
<AlexRussia> MrZYX: i write crazy-crazy code, but i think, possible remake it to lite version diaspora https://github.com/AlexTalker/lite-twitter
pinage404 has quit [Quit: Screw you guys i'm going home ! KMP ! ZNC - http://znc.in]
<loc22> MrZYX and shevy: im already registred but nothing happend
<waxjar> loc22: did you also identify?
<MrZYX> loc22: are you identified?
<MrZYX> AlexRussia: globals and tab indent make me all :(
jamto11 has joined #ruby
<MrZYX> especially since your globals are constants, you even freeze them!
<loc22> waxjar and MrZYX, yes Im identified too
rm_ has joined #ruby
anna__ has joined #ruby
<shevy> loc22 nope, after I do: /msg nickserv identify MY_PASSWORD_HERE I can /join #RubyOnRails just fine and talk there
sergicles has quit [Quit: sergicles]
<AlexRussia> MrZYX: is very bad?
<MrZYX> yes
<waxjar> aww yea! i finally know shevy's password :D
<MrZYX> :P
<AlexRussia> waxjar: XD
<MrZYX> waxjar: no, freenode replaces it with MY_PASSWORD_HERE, try it!
<shevy> hmm
<MrZYX> all we'll see is that
<shevy> you guys are having way too much fun
<AlexRussia> MrZYX: look TODO XD
<waxjar> hehe
vlad_starkov has quit [Remote host closed the connection]
<waxjar> loc22: a /whois doesn't show you as logged in here
<MrZYX> AlexRussia: check http://bundler.io for dep management
pskosinski has joined #ruby
barratt has quit [Quit: Leaving...]
Txandy|away is now known as Txandy
yasushi has joined #ruby
einarj has quit [Remote host closed the connection]
<loc22> Thanks! I did it ;)
<MrZYX> AlexRussia: also try posting <script>alert(0);</script>
<AlexRussia> MrZYX: where?
Guest23146 has quit [Ping timeout: 245 seconds]
<MrZYX> in your form
<AlexRussia> MrZYX: ok
rm_ has quit [Ping timeout: 265 seconds]
<AlexRussia> MrZYX: stop, added in end of form tag?
<MrZYX> no, as user of your site, try posting that as a message
mklappstuhl has joined #ruby
<MrZYX> <br\> is invalid too, it's <br/>. In general don't use HTML for styling, use CSS
<AlexRussia> MrZYX: but where added alert?
sergicles has joined #ruby
<MrZYX> as user of your app. it's vulnerable to XSS attacks
Hanmac1 has joined #ruby
pinage404 has joined #ruby
gizless has joined #ruby
<AlexRussia> MrZYX: sorry, i'm not understand you (
<MrZYX> so, you can post messages on your app, right?
gittish has joined #ruby
nari has quit [Ping timeout: 252 seconds]
Hanmac has quit [Ping timeout: 245 seconds]
<AlexRussia> i post msg to /post page, msg added in array and on /stream/number-page you look messages
<MrZYX> post "<script>alert(0);</script>" as message and then view the stream
monkegjinni has quit [Remote host closed the connection]
monkegjinni has joined #ruby
brennanMKE has joined #ruby
freerobby has joined #ruby
<AlexRussia> MrZYX: yep, need escaped symbols, but idk HOW
raar has joined #ruby
raar is now known as Guest14673
gittish has quit [Ping timeout: 252 seconds]
loc22 has quit [Remote host closed the connection]
<AlexRussia> afuck
<AlexRussia> MrZYX: ty
Jonah11_ has joined #ruby
<MrZYX> also look into views and layouts
gizmore has joined #ruby
Guest52318 has quit [Changing host]
Guest52318 has joined #ruby
Guest52318 is now known as guzy
guzy is now known as guyz
sergicles has quit [Quit: sergicles]
monkegjinni has quit [Ping timeout: 248 seconds]
plotter has joined #ruby
plotter has quit [Remote host closed the connection]
brennanMKE has quit [Ping timeout: 272 seconds]
gizless has quit [Ping timeout: 245 seconds]
<AlexRussia> MrZYX: what is 'helpers' in example?
<MrZYX> part of sinatras DSL, like get, post etc
<MrZYX> it lets you define methods you can use in your templates
Txandy is now known as Txandy|away
<AlexRussia> MrZYX: ok
<AlexRussia> MrZYX: in example 'How do I use sessions?' redirect to('path') is also part sinatra?
gizless has joined #ruby
wallerdev has joined #ruby
<MrZYX> sure
Hanmac has joined #ruby
figgleberry has joined #ruby
<AlexRussia> MrZYX: nice
senayar has quit [Remote host closed the connection]
gizmore has quit [Ping timeout: 252 seconds]
senayar has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
anildigital is now known as zz_anildigital
senayar_ has joined #ruby
senayar_ has quit [Remote host closed the connection]
pinage404 has quit [Quit: Screw you guys i'm going home ! KMP ! ZNC - http://znc.in]
senayar_ has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonr22 has quit [Remote host closed the connection]
jonr22 has joined #ruby
gizmore has joined #ruby
<AlexRussia> MrZYX: sinatra is interesing framework....
relix has joined #ruby
gizless has quit [Ping timeout: 260 seconds]
Txandy|away is now known as Txandy
arietis has joined #ruby
senayar has quit [Ping timeout: 252 seconds]
anna__ has quit [Ping timeout: 252 seconds]
jonr22 has quit [Read error: Operation timed out]
Notte has joined #ruby
adayzdone has joined #ruby
fgo has joined #ruby
Mon_Ouie has quit [Ping timeout: 272 seconds]
pinage404 has joined #ruby
Speed has quit [Ping timeout: 260 seconds]
basso has joined #ruby
Speed has joined #ruby
phansch has joined #ruby
gizmore has quit [Ping timeout: 272 seconds]
aryaching has quit []
cbetta_afk is now known as cbetta
chrisseaton has joined #ruby
gazarsgo has joined #ruby
adayzdone has left #ruby ["Textual IRC Client: www.textualapp.com"]
aryaching has joined #ruby
rickruby has joined #ruby
angusigu1ss has quit [Ping timeout: 240 seconds]
blackmes1 has quit [Ping timeout: 252 seconds]
Tomasso has joined #ruby
* lagweezle rubs head, "I haz a haddoch."
intuxicated_ has joined #ruby
Es0teric has joined #ruby
<apeiros> captain haddock?
<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....
<apeiros> "tjaaa, das ist voll der Hass" :D
cusco has joined #ruby
<cusco> ruby on rails questions should be placed in what channel?
<Karkizz> how do I reply here?
meruem- has quit [Ping timeout: 245 seconds]
<MrZYX> cusco: #rubyonrails
<MrZYX> Karkizz: you just did?
<AlexRussia> MrZYX: Jonne Haß ?
<Karkizz> I use ./msg but when I submit my message I don't see it
<MrZYX> AlexRussia: yes, not that hard to find out ;P
<cusco> thanks
nathancahill has joined #ruby
<Karkizz> Is it supposed to be like that?
<AlexRussia> MrZYX: yep, i look your face in commits XD
<MrZYX> Karkizz: /msg is for private conversations with another user
yasushi has quit [Remote host closed the connection]
loc22 has quit [Remote host closed the connection]
petey has quit [Ping timeout: 252 seconds]
<shevy> Karkizz no, just write here in #ruby
<AlexRussia> MrZYX: you start shared with me XD
<shevy> Karkizz yes /msg MrZYX
kaldrenon has quit [Ping timeout: 252 seconds]
havenwood has quit [Remote host closed the connection]
<MrZYX> AlexRussia: auto follow back ;)
<AlexRussia> MrZYX: yep, i know
cbetta is now known as cbetta_afk
<AlexRussia> MrZYX: but you get notify
ElComradio has joined #ruby
<shevy> Karkizz perhaps you have a bad IRC client. I am using xchat, it is very nice (or hexchat)
<Karkizz> I'm using Quassel
<shevy> weird name
<AlexRussia> MrZYX: lol, i get lag
<AlexRussia> MrZYX: maybe, this page dont work, but lag here https://joindiaspora.com/people/4cefc3da9072d77750000003/photos
VTLob has joined #ruby
Megtastique has quit []
zoscoy has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
<AlexRussia> MrZYX: i press 'view all' down you photos and when i scroll page, i get more copy one image
Solnse has joined #ruby
rickruby has quit [Remote host closed the connection]
Bumptious has quit []
rickruby has joined #ruby
pedda has quit [Quit: Textual IRC Client: www.textualapp.com]
<AlexRussia> MrZYX: bug-bug
Amart41 has joined #ruby
<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> xd
<pontiki> that is no incentive for me
<pontiki> not interested
<pontiki> i'd rather have an amzn gift card
<pr1x> meh, bitcoin > amazon
axl_ has quit [Quit: axl_]
<pontiki> not for me
Speed has joined #ruby
heidi has joined #ruby
<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
<centrx> chevy
<shevy> on cygwin!!!
<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
<griffindy> textual is also nice http://www.codeux.com/textual/
rickruby has joined #ruby
<lagweezle> ooh. a redhead.
vlad_starkov has quit [Remote host closed the connection]
sethen has joined #ruby
fschuindt has joined #ruby
fgo has quit [Remote host closed the connection]
yfeldblum has joined #ruby
krisbulman is now known as [krisbulman]
fschuindt has quit [Client Quit]
yarou has joined #ruby
Speed has quit [Ping timeout: 260 seconds]
<shevy> hehe
aniM has quit [Ping timeout: 252 seconds]
Spami__ has joined #ruby
[gmi] has joined #ruby
lukec has quit [Quit: lukec]
heidi has quit [Quit: Leaving.]
boboc has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
cashnguns has joined #ruby
mary5030 has joined #ruby
ElComradio has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
havenwood has joined #ruby
bsdbandi1 has quit [Quit: leaving]
Yahkob has joined #ruby
Speed has joined #ruby
intuxicated_ has quit [Ping timeout: 248 seconds]
Vivekananda has quit [Read error: Connection reset by peer]
Vivekananda has joined #ruby
DouweM has quit [Read error: Connection reset by peer]
ElComradio has quit [Client Quit]
MatthewsFace has joined #ruby
wildroman2 has quit [Remote host closed the connection]
loc22 has joined #ruby
arietis has joined #ruby
rickruby has quit [Remote host closed the connection]
glebe has joined #ruby
Hanmac1 has joined #ruby
loc22 has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 264 seconds]
figglebe_ has joined #ruby
plotter has quit [Remote host closed the connection]
rickruby_ has joined #ruby
yarou has quit [Remote host closed the connection]
lpvn has joined #ruby
glebe has quit [Ping timeout: 252 seconds]
apeiros has joined #ruby
[krisbulman] is now known as krisbulman
figgleberry has quit [Ping timeout: 260 seconds]
benzrf has joined #ruby
<benzrf> hello
<benzrf> hows it goin ruby people
<havenwood> rubyists!
mmcclimo_ has joined #ruby
mmcclimo_ has left #ruby [#ruby]
<havenwood> i couldn't convince #bash they should be bashelors, they say if they must be named, bashers
<havenwood> i like clojurian
apeiros has quit [Ping timeout: 252 seconds]
<benzrf> pythonista
<havenwood> pythonista like barista, clojurian like centurian
mmcclimon has quit [Disconnected by services]
<havenwood> scalite
mary5030 has joined #ruby
<havenwood> schemer
<pontiki> lithper
<lpvn> brainfucker
<havenwood> ha
apeiros has joined #ruby
<pontiki> perlers
<havenwood> monks* ^
<benzrf> haskeller
<pontiki> those tend to be more ascetic
<pontiki> there's a whole lot of perl folks who just use it to get stuff done
<benzrf> now that i know about monad transformers and lenses i am redoing my haskell implementation of a cruddy lisp
<benzrf> this time around it is much less horrifyingly messy
iamsean has joined #ruby
Megtastique has joined #ruby
<AlexRussia> hey,
<AlexRussia> set variable, value
<AlexRussia> is ruby feathure?
<benzrf> hm?
<shevy> AlexRussia this is a method set()
<AlexRussia> example: set :public_folder, File.dirname(__FILE__) + '/static'
<shevy> AlexRussia it is not part of default ruby
<havenwood> Feathers?
<AlexRussia> shevy: ok
<benzrf> AlexRussia: looks like sinatra
<shevy> :D
<AlexRussia> benzrf: XD
<centrx> <:&}
<pontiki> looks like several things that define a DSL
netQT has joined #ruby
lfox has joined #ruby
cashnguns has quit [Ping timeout: 245 seconds]
fgo has joined #ruby
yarou has joined #ruby
brennanMKE has joined #ruby
aniM has joined #ruby
l1mbo has joined #ruby
mmcclimon has joined #ruby
gittish has joined #ruby
cbetta_afk is now known as cbetta
brennanMKE has quit [Ping timeout: 265 seconds]
motto has joined #ruby
fgo has quit [Ping timeout: 272 seconds]
<nonnatus> I feel like rubyists got the short end of the stick, name-wise
<kraljev5> Hey, how to get max an min arity of a Method
<lagweezle> nonnatus: How so? O.o
krisbulman is now known as [krisbulman]
m8 has quit [Read error: Operation timed out]
<kraljev5> def x(a, b, c=10, d=20)
<kraljev5> would be 2..4
<nonnatus> Do you not think pythonistas sounds cooler?
boboc has quit []
<nonnatus> Clojurian... all that stuff.
<shevy> I prefer to be called rubygod
rubyracer has joined #ruby
<shevy> and the collective is then called the rubygos
<nonnatus> But then again, I don't think you could make a nifty name for Java... people
<shevy> ahem
<shevy> *rubygods
<shevy> JavaWTF
<shevy> JavaWTFians
<nonnatus> Yeah, exactly
<kraljev5> Anyone?
<nonnatus> Rubygod... pretty good. It conveys the proper pompousness one expects from language fanboys.
mklappstuhl has quit [Remote host closed the connection]
iamsean has quit [Quit: iamsean]
MatthewsFace has quit [Quit: Leaving]
petey has joined #ruby
freezey has joined #ruby
Notte has quit [Remote host closed the connection]
<shevy> kraljev5 not sure you can
<benzrf> ok if anybody here uses vim and does not have vim-argumentative
<benzrf> you need to get that shit right now
jonr22 has joined #ruby
cbetta is now known as cbetta_afk
<shevy> >> def foo(a,b,c=5); end; method(:foo).arity
<eval-in> shevy => -3 (https://eval.in/97131)
<shevy> >> def foo(a,b,c); end; method(:foo).arity
<eval-in> shevy => 3 (https://eval.in/97132)
rickruby_ has quit [Remote host closed the connection]
<shevy> kraljev5 seems you get only the amount, plus or minus, but never how many have a default value set
<benzrf> wat
Tomasso has quit [Ping timeout: 245 seconds]
ndrei has joined #ruby
ndrei_ has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
<havenwood> >> def x(a, b, c=10, d=20); end; required, optional = method(:x).parameters.partition { |k, _| k == :req }.map(&:size); Range.new(required, required + optional)
<kraljev5> So, you can only get MIN, not MAX
<kraljev5> that's dissapointing
<havenwood> #=> 2..4
<benzrf> just decompile it
<benzrf> :-D
<benzrf> then regex!
<havenwood> kraljev5: ^
<centrx> ANSWER ABOVE
rm_ has joined #ruby
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]
<kraljev5> thanks! great idea
<havenwood> shevy: i think DHH coined the term in this talk: http://37signals.com/svn/posts/2679-my-keynote-from-rubyconf-about-why-i-continue
jamto11 has quit [Remote host closed the connection]
Mattx has joined #ruby
Mattx has quit [Changing host]
Mattx has joined #ruby
<shevy> hehe
dseitz has joined #ruby
<shevy> 1 hour!
<shevy> you have too much time havenwood
nobitanobi has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
monkegjinni has joined #ruby
x77686d has quit [Quit: x77686d]
<nonnatus> kraljev5: def some_method a, b = 1, *c; end; puts method(:some_method).parameters
<nonnatus> its a start
<nonnatus> shows parameters as req, opt, rest
brunops has joined #ruby
barratt has joined #ruby
<Karkizz> anyone familiar with flashing roms using odin?
vlad_starkov has joined #ruby
aagdbl0 has joined #ruby
aagdbl0 has quit [Client Quit]
barratt has quit [Client Quit]
Jdubs has quit [Remote host closed the connection]
<kraljev5> Anybody else thinks def should return UnboundMethod or something instead of Symbol
<kraljev5> in Ruby 2.1
<nonnatus> The terrible god of poetry and death... now flashes ROM?
<havenwood> i like a symbol
drumusician has joined #ruby
cbetta_afk is now known as cbetta
<apeiros> kraljev5: no
<apeiros> Symbol is good
basso has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<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
monkegjinni has joined #ruby
[krisbulman] is now known as krisbulman
<kraljev5> why do symbols even exist, then
<havenwood> Strings, FREEZE THEM ALL \o/
<kraljev5> for a prettier code
nathancahill has quit [Quit: nathancahill]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
* 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?
OdNairy has joined #ruby
e^0 has quit [Quit: WeeChat 0.4.1]
<Hanmac> kraljev5 https://bugs.ruby-lang.org/issues/7797 << Matz says no
<apeiros> 20:36 kraljev5: I'd prefer symbols were just fancy string notation
<apeiros> but symbols are fancy integer notation
nathancahill has joined #ruby
iliketurtles has joined #ruby
tt1187 has joined #ruby
iliketurtles has quit [Excess Flood]
<kraljev5> Yep, that's nicely said
Spami__ has quit [Quit: This computer has gone to sleep]
tt1187 has left #ruby [#ruby]
fgo has quit [Ping timeout: 252 seconds]
<kraljev5> @Hanmac: I'd leave the Hash alone
dseitz has joined #ruby
<Hanmac> kraljev5: and if you try to join Symbol and String into one class: https://bugs.ruby-lang.org/issues/7792
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
<lpvn> havenwood, I lol'd
<kraljev5> Hanmac: that must be super slow :)
Megtastique has quit []
IceyEC has joined #ruby
gianlucadv has quit [Ping timeout: 260 seconds]
<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]
abra has quit [Quit: Textual IRC Client: www.textualapp.com]
gittish has quit [Quit: gittish]
Amart41 has joined #ruby
m8 has joined #ruby
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
soulcake has quit [Quit: ZNC - http://znc.in]
<shevy> Python is a powerful language
<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
<atmosx> havenwood: hm, okay.
<Cope> havenwood: thanks - changed
standyro2 has joined #ruby
<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
CourtJesterG has quit [Quit: Leaving...]
Txandy has quit [Quit: Leaving...]
<havenwood> atmosx: text/event-stream stuff is interesting, like this: https://gist.github.com/maccman/2992949
lfox has quit [Quit: ZZZzzz…]
<Cope> centrx: hmm true... *puzzle*
CourtJesterG has joined #ruby
<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
phipes has quit [Remote host closed the connection]
Speed has joined #ruby
<apeiros> art-solopov: require 'foo/bar' is fine. require 'lib/something' is indicative of bad $LOAD_PATH, though :)
<apeiros> (lib shouldn't have to be part of your require)
lamba_ is now known as lamba
iamsean has joined #ruby
<deever> shevy: of course i'm real
lamba has quit [Changing host]
lamba has joined #ruby
<art-solopov> shevy, apeiros: Thank you. I'll read about $LOAD_PATH more.
alexherbo2 has joined #ruby
<deever> MrZYX: is there a way without bundler
charliesome has joined #ruby
cbetta is now known as cbetta_afk
<apeiros> art-solopov: $LOAD_PATH lists the directories in which require and load look for files
<deever> ?
<shevy> MrZYX come on, show him the way without bundler!
<apeiros> art-solopov: after $LOAD_PATH is exhausted, rubygems' mechanism takes over
<MrZYX> deever: of course, trying to find out if bundler might be interfering
<Hanmac> art-solopov: i think you are looking for require_relative ?
<Cope> centrx: aha! i shall write some tests... i was beguiled by easy test data
<deever> how come that 'gem' finds gems that 'rake' can't?
<AntelopeSalad> lagweezle: what's the title of the talk?
allaire has quit []
<art-solopov> apeiros: Thanks. This is really embarassing: I've been playing around with Ruby for about two years, and I didn't know it...
<MrZYX> deever: okay next one, you are sure rubygems-bundler is not installed?
<apeiros> art-solopov: don't worry. I use ruby for ten years soon and still learn things.
funburn has joined #ruby
<centrx> I have not yet started using Ruby, but I already know everything about it
<Hanmac> deever: show us the output of "ruby -v" "which ruby" "gem env" "which gem" in one gist
aspires has joined #ruby
<MrZYX> deever: add head -n1 $(which rake) and head -n1 $(which gem) please
<lpvn> apeiros, omg you used ruby before it was cool
<lpvn> lol
<apeiros> lpvn: I used ruby when it started to become cool, though
<art-solopov> apeiros: This is the beautiful thing about Ruby... But also kinda embarassing. =)
<lpvn> hmmm yeah
<snkcld> if i have a class, how can i make it act like a hash, in that one coudl do foo[:x] ="blah". or even foo = {a: 1, b:2}
<apeiros> lpvn: wait, did you just call me a hipster? :D
<MrZYX> snkcld: implement #[] and #[]=
<mjc_> and =
<snkcld> oh, thats it?
<AntelopeSalad> lagweezle: thanks, i'll be watching this later
<snkcld> i just def []
<lpvn> no, you're an oldfag definitely
<lpvn> lol
<apeiros> ok, so now I'm an oldfag hipster
<MrZYX> snkcld: def [](key) and def []=(key, value)
pixelgremlins has joined #ruby
<snkcld> MrZYX: awesome, thanks
<apeiros> good, at least now I know where I stand :-p
cj3kim has joined #ruby
<shevy> among the oldfags or the hipsters?
atmosx has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
cbetta_afk is now known as cbetta
freezey has joined #ruby
mary5030 has joined #ruby
amclain has joined #ruby
mgdixon2 has quit [Ping timeout: 252 seconds]
<lpvn> hahaha
the_hack has quit [Quit: Leaving...]
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)?
<snkcld> but can i update the object in bulk?
<apeiros> lagweezle: what?
<apeiros> art-solopov: I'd recommend it
<apeiros> art-solopov: but no, it's not required
<deever> Hanmac, MrZYX: http://pastebin.com/3x8Nev8N
cbetta is now known as cbetta_afk
rushed has joined #ruby
<lagweezle> Just puzzled by your exchange. :3
mklappstuhl has joined #ruby
mary5030 has quit [Ping timeout: 245 seconds]
<apeiros> lagweezle: about farting old hipsters?
<art-solopov> apeiros: Thanks again. =) Did you happen to try Mr. Bones or Jeweler or similar tool?
<lagweezle> apeiros: yep
<shevy> snkcld sure if you handle it inside that defined method
<apeiros> art-solopov: I wrote gem-new and use that. I still should fix it, though :)
<apeiros> (gem install gem-new, then gem new YOURGEM)
cj3kim has quit [Remote host closed the connection]
<snkcld> shevy: what would it look like then, when i update the object in bulk? my_obj = {a: 1, b:2 }
<AntelopeSalad> lagweezle: i like that style of talk, reminds me of dhh's keynotes
<lagweezle> Erm, inside a class ... do I put an at_exit block inside an initialize method or such?
<shevy> snkcld first you must call the [] method. again in this example you are not calling it
<apeiros> snkcld: `foo =` is never an update. it's an assignment.
<apeiros> snkcld: = tells a variable to now reference a new/different/another object
<Hanmac> deever: hm i am still not sure if ruby and gem points the same binary (compare "/usr/local/bin/ruby" with "/usr/local/bin/ruby19" )
<art-solopov> apeiros: Awesome. I'll check it out. =)
mgdixon2 has joined #ruby
mgdixon has quit [Ping timeout: 252 seconds]
ixti has joined #ruby
<snkcld> ah, ok. just wondering if it was possible
aniM has quit [Ping timeout: 245 seconds]
<Hanmac> snkcld: obj.foo=val can be implemented as an update of internal objects inside obj, but it does not need to
Krajsnick has joined #ruby
Markvilla has joined #ruby
cj3kim has joined #ruby
george2 has quit [Remote host closed the connection]
glebe has joined #ruby
<shevy> snkcld sure, you can pass a hash to any method in ruby
brunops has joined #ruby
funburn has quit [Quit: funburn]
<art-solopov> apeiros: Worked like miracle, thanks. =)
<art-solopov> Gotta go now, bye! I'll be sure to drop by and try to help you out.
<shevy> snkcld this is valid ruby as well http://pastie.org/pastes/8692349/text
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]
glebe has quit [Ping timeout: 253 seconds]
doanerock has joined #ruby
<deever> they're the same
Hanmac has quit [Ping timeout: 265 seconds]
crus has joined #ruby
cbetta_afk is now known as cbetta
<platzhirsch> deever: what did you do to Hanmac? He exploded
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dx7 has joined #ruby
<deever> platzhirsch: ?
phipes has joined #ruby
fgo has quit [Remote host closed the connection]
<platzhirsch> deever: (10:24:19 PM) Hanmac left the room (quit: Ping timeout: 265 seconds).
<MrZYX> deever: what about the output of the two command I gave you?
<deever> no, he just quitted
Krajsnick has quit [Quit: Leaving...]
<MrZYX> deever: he lost the connection
brunops has quit [Ping timeout: 265 seconds]
mgdixon has joined #ruby
hmsimha has joined #ruby
<deever> MrZYX: they're in http://pastebin.com/3x8Nev8N
<MrZYX> nope, head -n1 $(which rake) and head -n1 $(which gem)
charliesome has joined #ruby
<deever> MrZYX: ah, wait
Hanmac has joined #ruby
mgdixon2 has quit [Ping timeout: 252 seconds]
<platzhirsch> How can talk like nothing happened… I will go on a rescue mission to retrieve Hanmac
* platzhirsch jumps into abyss
* Hanmac is back
mklappstuhl has quit [Remote host closed the connection]
<platzhirsch> got him
cbetta is now known as cbetta_afk
unstable_ has left #ruby [#ruby]
shime has quit [Ping timeout: 245 seconds]
mgdixon has quit [Ping timeout: 252 seconds]
estebistec has joined #ruby
shime has joined #ruby
<MrZYX> okay, what about gem which gem_you_try_to_load
tuttinator has quit [Quit: Linkinus - http://linkinus.com]
bradhe has quit [Remote host closed the connection]
cj3kim has quit [Remote host closed the connection]
rickruby has joined #ruby
animehti has joined #ruby
bradhe has joined #ruby
cbetta_afk is now known as cbetta
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
estebistec has quit [Remote host closed the connection]
<deever> MrZYX: /usr/local/lib/ruby/gems/1.9/gems/railties-3.2.16/lib/rails.rb
<deever> hmm
<MrZYX> uhmm
Mattx has quit [Quit: Leaving]
<MrZYX> okay, stupid us should have asked that in the first place
cashnguns has joined #ruby
drumusician has joined #ruby
<MrZYX> what's actually the error you have? (put it into a pastebin please)
<deever> mb the rake file is weird
timonv has quit [Remote host closed the connection]
angusigu1ss has quit [Ping timeout: 252 seconds]
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]
cj3kim has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
cbetta is now known as cbetta_afk
<MrZYX> ah, so my google fu still works
cbetta_afk is now known as cbetta
Hanmac has joined #ruby
<MrZYX> the message is bad, there are three requires, only one is rails
<MrZYX> the other two can throw a LoadError as well
<deever> i see
<deever> i'll move them, wayt
<deever> s/wayt/wait/
cj3kim has quit [Remote host closed the connection]
Hanmac1 has quit [Ping timeout: 260 seconds]
<deever> ok, still the same error
CpuID has joined #ruby
CpuID has quit [Changing host]
CpuID has joined #ruby
jackneill has quit [Ping timeout: 245 seconds]
AxonetBE has joined #ruby
Amart41 has joined #ruby
<MrZYX> I'd say just get rid of the rescue for a moment so we can see the original error
Opettaja has joined #ruby
<deever> "require 'rails'" in an irb works well, yes
petey has joined #ruby
pfg has joined #ruby
<deever> Could not find sprockets!
vpretzel has joined #ruby
claymore has quit [Ping timeout: 245 seconds]
<deever> MrZYX: thank you so much, i think the rake file quality is a bit low...;)
Amart41 has quit [Ping timeout: 264 seconds]
<MrZYX> not sure, sprockets-rails is a dep of rails and sprockets of course is a dep of that, so it's kinda weird that you don't have it
gittish has joined #ruby
claymore has joined #ruby
mojjojo has quit [Quit: mojjojo]
cj3kim has joined #ruby
pyreal has joined #ruby
cbetta is now known as cbetta_afk
<deever> MrZYX: indeed it's there. /usr/local/lib/ruby/gems/1.9/gems/sprockets-2.10.1/lib/sprockets.rb
atraylen has joined #ruby
pyreal has quit [Client Quit]
<deever> (gem which sprockets)
<MrZYX> deever: you might want to ask in #rubyonrails, I think they might have more experience in what can go wrong in that area
ohwhoa has quit [Quit: woah!]
<deever> Could not find sprockets (~> 2.2.1) amongst [..., sprockets-2.10.1, ...]
<deever> weird
<deever> MrZYX: yes, i will. Thank you so much for helping! :)
phipes has quit [Remote host closed the connection]
<MrZYX> ah, no
<MrZYX> ~> 2.2.1 means >= 2.2.1 < 2.3
<MrZYX> did you run bundle ?
jamto11 has joined #ruby
DaniG2k has joined #ruby
AxonetBE has quit [Quit: AxonetBE]
lkba has quit [Ping timeout: 248 seconds]
mentok has quit [Quit: Computer has gone to sleep]
[gmi] has quit [Quit: Leaving]
dx7_ has joined #ruby
rickruby has quit [Ping timeout: 245 seconds]
ndrei has quit [Ping timeout: 252 seconds]
ndrei has joined #ruby
gauteh has quit [Ping timeout: 260 seconds]
dx7 has quit [Ping timeout: 248 seconds]
angusigu1ss has joined #ruby
Vivekananda has quit [Read error: Connection reset by peer]
i_s has quit [Quit: i_s]
zoscoy has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
bradhe has joined #ruby
johnmilton has quit [Remote host closed the connection]
rickruby has joined #ruby
chrisja has joined #ruby
Vivekananda has joined #ruby
Karkizz has quit [Ping timeout: 240 seconds]
mojjojo has joined #ruby
bradhe has quit [Ping timeout: 260 seconds]
angusigu1ss has quit [Ping timeout: 245 seconds]
mercwithamouth has joined #ruby
<deever> why rake 0.9.6 when i already have 10.1.1?
lkba has joined #ruby
ElCapitanMarklar has joined #ruby
<mjc_> viki: you should ask that question here
<viki> mjc_: i didn't ask a question
<mjc_> you asked me a question
<viki> i said i'm failing, not the same :p
<mjc_> you said you didn't understand why some code you tried worked and the other code didn't
<viki> that's a comment, still not a question :p
<shevy> hehe
<deever> MrZYX: so i must install sprockets 2.2.x manually?
<shevy> WILL ONE OF YOU ASK A QUESTION!!!
<viki> -_- hang on, lemme update my git thingie
<MrZYX> deever: you must make `bundle` succeed
thealch3m1st has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
olivier_bk has quit [Ping timeout: 252 seconds]
<cbw> Supper new, What is ::Version about
<cbw> I saw it in the optparse docs
mentok has joined #ruby
<MrZYX> cbw: it's accessing the constant Version defined in the toplevel namespace (Object)
<cbw> MrZYX: How do I set it
<MrZYX> Version = your_value
<MrZYX> (outside of any class or module)
glebe has joined #ruby
thealch3m1st has joined #ruby
<AlexRussia> How to make method with some count argument
<AlexRussia> ?
<viki> ok nevermind, can't update git, gonna update gist instead
<AlexRussia> in C is like int fun(int n, ...);
<AlexRussia> where ... - some argument
<AlexRussia> s
glebe has quit [Read error: No route to host]
<AlexRussia> more and more, you dont know size, if you dont call function
<MrZYX> def foo(*n)
<cbw> MrZYX: Ok they are using ::Version.join('.') why would they do that. Is there some version convension I am unware of
<DouweM> AlexRussia: def foo(*args)
<AlexRussia> MrZYX: ok
glebe has joined #ruby
<AlexRussia> DouweM: MrZYX thank
<lagweezle> shevy: Erm, inside a class ... do I put an at_exit block inside an initialize method or such?
<AlexRussia> MrZYX: now n is array agruments?
<MrZYX> cbw: they expect an array or any other Enumerable
araujo has joined #ruby
<MrZYX> AlexRussia: yes
<AlexRussia> MrZYX: ok
<shevy> lagweezle does not matter, it is super global. I would not use at_exit at all
<shevy> lagweezle I think it is specific to the .rb file btw
itadder has joined #ruby
<itadder> so what new my ruby friends
aspires has quit []
ElCapitanMarklar has left #ruby ["Textual IRC Client: www.textualapp.com"]
<RubyPanther> new is: support for 1.9.3 ends in one year
<MrZYX> hm, is 2.1.0 still new?
<mjc_> yes
monkegjinni has quit [Remote host closed the connection]
<viki> Ok, updated gist for the exercise I'm working on. https://gist.github.com/VikiAnn/8754948
monkegjinni has joined #ruby
glebe has quit [Ping timeout: 265 seconds]
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.
<MrZYX> viki: http://rubydoc.info/stdlib/core/Array#delete-instance_method check that against your assumptions about Array#delete
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.
Hobogrammer has joined #ruby
<MrZYX> itadder: through the ruby koans already?
<itadder> oh
animehti has quit [Ping timeout: 245 seconds]
hmsimha has quit [Ping timeout: 245 seconds]
<itadder> oh wow
<itadder> neat stuff
m104 has joined #ruby
<itadder> does this work on mac
<MrZYX> sure
<itadder> oh wow
<itadder> anyone here use rubymine
shime has quit [Quit: Lost terminal]
<MrZYX> viki: okay, lets look at what .find does http://rubydoc.info/stdlib/core/Enumerable#find-instance_method
<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]
<AlexRussia> lol, is fun
<AlexRussia> http://cs606228.vk.me/v606228410/3660/ScgphxTZnu4.jpg Russia, loke look Americans
<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?
<AlexRussia> (
<AlexRussia> kill me
<havenwood> mgberlin: $stdout = StringIO.new; puts 'smurfy'; $stdout.string.chomp #=> "smurfy"
<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])
<havenwood> >> $stdout = StringIO.new; puts 'smurfy'; puts 'try', 'eet'; $stdout.string
<eval-in> havenwood => uninitialized constant StringIO (NameError) ... (https://eval.in/97384)
<havenwood> >.>
<nobitanobi> MrZYX, +1
<MrZYX> nobitanobi: or now preferred iirc: current_user.clubs.where(id: params[:id]).first
kirun has quit [Quit: Client exiting]
<havenwood> MrZYX: also don't be like me and forget: require 'stringio'
<nobitanobi> Why they have changed that to be prefered? You need to add the 'first' alwyas
m8 has quit [Quit: Sto andando via]
<nobitanobi> *always
shime has quit [Read error: No route to host]
<Hanmac> havenwood: hm i tryed a second way with reopen ... but it does not work with StringIO :/
<havenwood> mgberlin: ** MrZYX: err, meant mgberlin
shime has joined #ruby
<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]
cashnguns has joined #ruby
<Hanmac1> havenwood: try this:
<Hanmac1> >> require "tempfile";d = $stdout.dup;a=Tempfile.new("rw"); $stdout.reopen(a); puts 'smurfy'; $stdout.reopen(d) ; a.rewind; puts a.read
<eval-in> Hanmac1 => (https://eval.in/97392)
[krisbulman] is now known as krisbulman
<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
<MrZYX> (to your application)
<havenwood> Hanmac1: hmm
angusigu1ss has joined #ruby
<havenwood> mgberlin: There is a good RubyTaps episode on the subject, but it isn't one of the free ones: http://www.rubytapas.com/episodes/29-Redirecting-Output
<havenwood> RubyTapas*
<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?
<itadder> do you use that editor
<itadder> or is textmate just as good
agent_wh1te has joined #ruby
brunops has joined #ruby
<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?
iliketur_ has joined #ruby
iliketur_ has quit [Excess Flood]
<itadder> so many free ruby tuts
iliketur_ has joined #ruby
iliketur_ has quit [Excess Flood]
itadder has quit [Remote host closed the connection]
krisbulman is now known as [krisbulman]
<centrx> viki, Look at the test above it. That test expects take to return an object that responds to #size, i.e. an array
iliketur_ has joined #ruby
iliketur_ has quit [Excess Flood]
<viki> centrx ah, gotcha. so i need to write a conditional in there for when the take number == 1?
ElCapitanMarklar has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wildroman2 has quit [Remote host closed the connection]
mahlon has quit [Ping timeout: 252 seconds]
<viki> or maybe for when number > 1 do the stuff I have there already, else return candy
<viki> or something like that
timonv has quit [Ping timeout: 265 seconds]
<centrx> viki, Right
<centrx> viki, Really I think the test should use candy.first.type
<centrx> Rather than #take returning different kinds of objects, but that is what the test says
iliketur_ has joined #ruby
mentokIND has quit [Quit: Computer has gone to sleep]
zachallett has quit [Remote host closed the connection]
<viki> centrx yeah, that's how the test came, maybe i'll let the person i got the tests from know
gittish has quit [Quit: gittish]
zachallett has joined #ruby
<centrx> Always good to correct the teacher
bwwrd has joined #ruby
<viki> maybe i just wrote take all wrong from what they imagined when they wrote the test :p
mary5030 has joined #ruby
max96at has quit [Quit: Textual IRC Client: www.textualapp.com]
<viki> Ok wait a minute, so what i'm doing is if number > 1, do the stuff I had there already, else do the stuff i had there already and return candy?
<viki> seems repetetive
soulcake has joined #ruby
rickruby has quit []
zachallett has quit [Ping timeout: 248 seconds]
emergion has joined #ruby
bradhe has quit [Remote host closed the connection]
<centrx> viki, you could do: last line: removed_candies.one? ? removed_candies.first : removed_candies
bradhe has joined #ruby
rushed has quit [Quit: rushed]
rushed has joined #ruby
shime has quit [Read error: Operation timed out]
doanerock has quit [Ping timeout: 265 seconds]
bradhe has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
<havenwood> Hanmac: i guess IO.pipe solution for subshells, but for something solitary, poor, nasty, brutish, and short: https://gist.github.com/havenwood/8776768
<viki> centrx i'm not sure i follow
vpretzel has joined #ruby
<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]
rushed has quit [Quit: rushed]
<BackEndCoder> viki, no
ktosiek_ has joined #ruby
<BackEndCoder> but well done on being positive
griffindy has joined #ruby
RubyPanther has quit [Ping timeout: 252 seconds]