fflush changed the topic of #ruby to: Ruby 1.9.3-p194: http://ruby-lang.org || Paste > 3 lines of text on pastebin.com
deeds has left #ruby [#ruby]
yasushi has joined #ruby
mikepack has quit [Remote host closed the connection]
tarwich1 has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
yasushi_ has joined #ruby
artOfWar has quit [Read error: Connection reset by peer]
artOfWar has joined #ruby
yasushi has quit [Ping timeout: 246 seconds]
evilsushi has joined #ruby
evilsushi has joined #ruby
evilsushi has quit [Changing host]
artOfWar has quit [Remote host closed the connection]
yasushi_ has quit [Remote host closed the connection]
artOfWar has joined #ruby
notVert has quit [Read error: Connection reset by peer]
yasushi has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
cj3kim has quit [Quit: This computer has gone to sleep]
chrishunt has quit [Ping timeout: 268 seconds]
rlb3 has joined #ruby
awarner has quit [Remote host closed the connection]
w400z has quit []
digitalcakestudi has joined #ruby
`damien has quit [Quit: `damien]
lggr has joined #ruby
havenn has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
chrishunt has joined #ruby
CodeFriar has joined #ruby
CodeFriar has quit [Remote host closed the connection]
kay-z has joined #ruby
yasushi has quit [Ping timeout: 268 seconds]
cj3kim has left #ruby [#ruby]
rakunHo has joined #ruby
k0m has joined #ruby
havenn has quit [Remote host closed the connection]
trevortwining has quit [Remote host closed the connection]
vjt has quit [Ping timeout: 272 seconds]
lggr has quit [Ping timeout: 245 seconds]
yshh has joined #ruby
vjt has joined #ruby
austinbv has joined #ruby
dagnachewa has quit [Remote host closed the connection]
gabrielrotbart has quit [Remote host closed the connection]
aaronmacy has quit [Quit: Lost terminal]
geggam has quit [Remote host closed the connection]
lggr has joined #ruby
minijupe has joined #ruby
gabrielrotbart has joined #ruby
dagnachewa has joined #ruby
ttt has joined #ruby
rakunHo has quit [Remote host closed the connection]
Criztian has quit [Remote host closed the connection]
rakunHo has joined #ruby
k0m has quit [Quit: Computer has gone to sleep.]
ndrei has quit [Ping timeout: 248 seconds]
bbttxu has quit [Quit: bbttxu]
mwilson` has quit [Excess Flood]
mwilson` has joined #ruby
BdeUtra has quit [Quit: BdeUtra]
BSaboia__ has quit [Read error: Connection reset by peer]
ttt has quit [Ping timeout: 260 seconds]
derpops has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
fbernier has quit [Quit: ZNC - http://znc.in]
vitor-br has joined #ruby
tyfighter has quit [Quit: tyfighter]
jjbohn has joined #ruby
WellMux has joined #ruby
philips_ has quit [Excess Flood]
amacgregor_osx has quit [Ping timeout: 240 seconds]
philips_ has joined #ruby
dakine has joined #ruby
trevortwining has joined #ruby
ZachBeta has joined #ruby
nga4 has quit [Ping timeout: 246 seconds]
chessguy has joined #ruby
kay-z has quit [Ping timeout: 272 seconds]
ZachBeta has quit [Remote host closed the connection]
qos has quit [Ping timeout: 248 seconds]
lggr has joined #ruby
fyolnish has joined #ruby
fbernier has joined #ruby
shiki has quit [Remote host closed the connection]
amacgregor_osx has joined #ruby
fbernier has quit [Client Quit]
shiki has joined #ruby
graham has joined #ruby
graham is now known as Guest86520
<Guest86520> ?
Guest86520 has quit [Client Quit]
fbernier has joined #ruby
ZachBeta has joined #ruby
ncr100_ has quit [Ping timeout: 248 seconds]
yshh has quit [Remote host closed the connection]
trevortwining has quit []
moted has quit [Remote host closed the connection]
trevortwining has joined #ruby
rlb3 has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
shiki has quit [Ping timeout: 252 seconds]
eignerchris has quit [Remote host closed the connection]
yasushi has joined #ruby
jjbohn has quit [Quit: Leaving...]
trevortwining has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 268 seconds]
johnjohnson has joined #ruby
fbernier has quit [Quit: ZNC - http://znc.in]
mercwithamouth has quit [Ping timeout: 248 seconds]
fbernier has joined #ruby
yasushi has quit [Ping timeout: 246 seconds]
graft has quit [Ping timeout: 252 seconds]
fbernier has quit [Client Quit]
stuartrexking has quit [Quit: Leaving...]
johnjohnson has quit [Client Quit]
lggr has joined #ruby
Drewch has quit [Excess Flood]
ph^ has joined #ruby
fbernier has joined #ruby
mikeg has quit [Quit: Leaving]
Drewch has joined #ruby
w400z has joined #ruby
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
maletor has quit [Quit: Computer has gone to sleep.]
JustinCampbell has quit [Remote host closed the connection]
JustinCampbell has joined #ruby
delinquentme has quit [Quit: Leaving]
tarwich1 has quit [Quit: Leaving.]
JustinCampbell has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 240 seconds]
ph^ has quit [Ping timeout: 246 seconds]
rlb3 has joined #ruby
jarred_ has joined #ruby
jarred has quit [Ping timeout: 252 seconds]
jarred_ is now known as jarred
jonatha__ has quit [Remote host closed the connection]
yshh has joined #ruby
stuartrexking has joined #ruby
kvirani has joined #ruby
minijupe has quit [Quit: minijupe]
kvirani has quit [Remote host closed the connection]
tarwich1 has joined #ruby
tarwich1 has quit [Client Quit]
lggr has joined #ruby
savage- has quit [Ping timeout: 246 seconds]
sabooky has quit [Quit: leaving]
w400z has quit []
specialGuest has quit [Ping timeout: 240 seconds]
joelsbeard has quit [Ping timeout: 268 seconds]
baroquebobcat has joined #ruby
ebobby has quit [Quit: Lost terminal]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
rlb3 has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
austinbv has quit [Ping timeout: 252 seconds]
hadees has quit [Quit: hadees]
lggr has quit [Ping timeout: 245 seconds]
linoj has joined #ruby
chessguy has quit [Remote host closed the connection]
ayawaska has quit [Read error: Connection reset by peer]
ayawaska has joined #ruby
slicslak has quit [Ping timeout: 244 seconds]
chessguy has joined #ruby
carrythezero has quit [Quit: leaving]
awarner has joined #ruby
jasonkuhrt has joined #ruby
lggr has joined #ruby
bradhe_ has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
cilquirm has quit [Quit: cilquirm]
chessguy has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
AlbireoX has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
emmanuelux has quit [Ping timeout: 246 seconds]
noahsussman has quit [Quit: Unexpected SpanishInquisitionException]
chessguy has joined #ruby
dpk has quit [Quit: Asleep at the keyboard.]
Mon_Ouie has quit [Ping timeout: 240 seconds]
slicslak has joined #ruby
stuartrexking has quit [Quit: Leaving...]
stuartrexking has joined #ruby
stuartrexking has quit [Client Quit]
stuartrexking has joined #ruby
Pinoqu has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
stuartrexking has quit [Client Quit]
lggr has joined #ruby
WellMux has quit []
nari has joined #ruby
justinmcp has quit [Ping timeout: 240 seconds]
ttt has joined #ruby
Yomero_ has quit [Ping timeout: 260 seconds]
dakine has quit [Quit: Leaving]
Guedes has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
chessguy has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 246 seconds]
horofox has joined #ruby
rlb3 has joined #ruby
ttt has quit [Ping timeout: 260 seconds]
ZachBeta has quit [Quit: Computer has gone to sleep.]
straind has joined #ruby
slicslak has quit [Ping timeout: 240 seconds]
ZachBeta has joined #ruby
jeekl has quit [Ping timeout: 246 seconds]
apok_ has joined #ruby
rlb3 has quit [Client Quit]
freeayu has joined #ruby
ndrei has joined #ruby
chrishunt has quit [Ping timeout: 252 seconds]
robbyoconnor has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
apok_ has quit [Client Quit]
chessguy has joined #ruby
apok has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
Targen has joined #ruby
c0rn_ has quit [Quit: Computer has gone to sleep.]
ckrailo has joined #ruby
dagnachewa has quit [Quit: Leaving]
bricker has quit [Ping timeout: 244 seconds]
manouch has quit [Quit: manouch]
haxrbyte_ has quit [Ping timeout: 268 seconds]
lggr has quit [Ping timeout: 255 seconds]
davidcelis has joined #ruby
ndrei has quit [Quit: Lost terminal]
dagnachewa has joined #ruby
lggr has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
AlbireoX has quit [Remote host closed the connection]
ph^ has joined #ruby
ttt has joined #ruby
blazes816 has quit [Quit: blazes816]
shiki has joined #ruby
hadees has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
mrsolo has quit [Quit: Leaving]
justinmcp has joined #ruby
ph^ has quit [Ping timeout: 240 seconds]
robbyoconnor has joined #ruby
lggr has joined #ruby
wpaulson has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
ZachBeta has quit [Quit: Computer has gone to sleep.]
jerrad has quit [Remote host closed the connection]
sn0wb1rd has quit [Quit: sn0wb1rd]
lggr has quit [Ping timeout: 246 seconds]
GraemeLion has joined #ruby
phanousit has joined #ruby
phanousit is now known as siameseguy
voodoofish4301 has quit [Quit: Leaving.]
<siameseguy> hello. I'm trying to separate my ruby code and trying to use require_relative at the top of them. my files won't run on the terminal anymore. any suggestions?
<invisime> siameseguy: what does your init script and file structure look like?
Ruler_Of_Heaven_ has joined #ruby
<siameseguy> this is the file i would run to start everything, nothing is required yet
pipopopo has quit [Ping timeout: 256 seconds]
<siameseguy> this is it with the requires http://pastie.org/4751139
<siameseguy> I'm also getting a require_relative no method error
jenrzzz has joined #ruby
lggr has joined #ruby
Drewch has quit [Ping timeout: 244 seconds]
<siameseguy> invisime: all the files are in the same folder
null- has left #ruby [#ruby]
<invisime> siameseguy: what error are you getting?
<siameseguy> its weird its working now
<siameseguy> invisime: thanks
<invisime> you're welcome.
siameseguy has quit [Quit: siameseguy]
lggr has quit [Ping timeout: 244 seconds]
uris has joined #ruby
amacgregor_osx has quit [Read error: Connection reset by peer]
kiyoura has joined #ruby
stephenjudkins_ has quit [Quit: stephenjudkins_]
lggr has joined #ruby
uris has quit [Read error: Connection reset by peer]
uris has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
lamba has joined #ruby
amacgregor_osx has joined #ruby
karakedi has joined #ruby
guns has joined #ruby
dagnachewa has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 255 seconds]
<lamba> can you use defined in a rake task like this ? http://pastebin.com/scUG0aNR My ruby experience runs to all of 30 minutes, but it's not doing what i expected.
<lamba> i've also tried (defined?(name)).nil?) to no avail, and a few others.
lggr has joined #ruby
chrishunt has joined #ruby
deadghost has joined #ruby
QKO_ has joined #ruby
jrajav has joined #ruby
justinmcp has quit [Remote host closed the connection]
QKO has quit [Ping timeout: 245 seconds]
<lamba> nvm. barking up the wrong tree. needs nil? not defined?
justinmcp has joined #ruby
lggr has quit [Ping timeout: 255 seconds]
bananagram has quit [Ping timeout: 244 seconds]
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby
justinmcp has quit [Remote host closed the connection]
freeayu has quit [Ping timeout: 252 seconds]
bananagram has joined #ruby
xyzodiac has joined #ruby
lggr has joined #ruby
freeayu has joined #ruby
jamesaxl has quit [Ping timeout: 260 seconds]
uris has quit [Ping timeout: 244 seconds]
ckrailo has quit [Quit: Computer has gone to sleep.]
havenn has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
[Neurotic] has quit [Remote host closed the connection]
nga4 has joined #ruby
bananagram has quit [Ping timeout: 244 seconds]
yxhvuud has quit [Ping timeout: 246 seconds]
AlbireoX has joined #ruby
lggr has joined #ruby
<Spooner> lamba : Thing is, hard to know you meant name being nil, not name being undefined if you didn't explain how you expected your code to work.
havenn has quit [Remote host closed the connection]
beneggett has quit [Quit: Computer has gone to sleep.]
sn0wb1rd has joined #ruby
ph^ has joined #ruby
freeayu has quit [Ping timeout: 244 seconds]
lggr has quit [Ping timeout: 240 seconds]
mucker has quit [Quit: leaving]
ph^ has quit [Ping timeout: 252 seconds]
mohits has quit [Read error: Connection reset by peer]
mohits_ has joined #ruby
lggr has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
radic has quit [Ping timeout: 244 seconds]
freeayu has joined #ruby
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
bradhe has joined #ruby
\13k has quit [Quit: Leaving]
jarred has quit [Quit: jarred]
redbeard0x0a has joined #ruby
savage- has joined #ruby
rjmt has quit [Max SendQ exceeded]
rjmt_ has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
GraemeLion has quit [Quit: out]
vitor-br has quit [Quit: Saindo]
ananthakumaran has joined #ruby
w400z has joined #ruby
austinbv has joined #ruby
techsurvivor has quit [Read error: Connection reset by peer]
lggr has joined #ruby
savage- has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
radic has joined #ruby
linoj has quit [Quit: linoj]
savage- has joined #ruby
bookpage has joined #ruby
bookpage has left #ruby [#ruby]
doritostains has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
w400z has quit [Quit: Computer has gone to sleep.]
jameshyde_ has joined #ruby
invisime has quit [Quit: Leaving.]
invisime1 has joined #ruby
swarley_ has joined #ruby
amacgregor_osx has quit [Ping timeout: 240 seconds]
adelcampo has quit [Ping timeout: 244 seconds]
kenneth has quit [Quit: kenneth]
joofsh has quit [Remote host closed the connection]
alvaro_o has quit [Quit: Ex-Chat]
jarred has joined #ruby
lggr has joined #ruby
verto is now known as verto|off
ZachBeta has joined #ruby
amacgregor_osx has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
beneggett has joined #ruby
iori has joined #ruby
snorkdude has joined #ruby
snorkdude has quit [Remote host closed the connection]
SeySayux has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
ryh has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 245 seconds]
nga4 has quit []
ryh has joined #ruby
amacdonald has joined #ruby
kenneth has joined #ruby
kenneth has quit [Client Quit]
ken_barber has quit [Ping timeout: 260 seconds]
<amacdonald> Hey, is it cool to ask framework related questions here when its about selection?
<bnagy> who can say
<bnagy> odds are you're going to have more luck in rails or rubyonrails or sinatra or whatever framework
<bnagy> but you can always try
<bnagy> it's also not an awesome time of day
ryh has quit [Ping timeout: 255 seconds]
ffranz has quit [Ping timeout: 248 seconds]
<amacdonald> Yeah, but those opinions would be slanted
SeySayux has joined #ruby
<amacdonald> looking to chose between rails and sinatra
<bnagy> oic
<bnagy> sinatra then
<bnagy> rails s a miscarriage
<bnagy> but I hate all web frameworks, so my opinion is pretty slanted as well
<amacdonald> Yeah...thats why I asked my initial question. At RubyConf a few years back I learned I was a leper for using web frameworks :)
lggr has joined #ruby
quest88 has joined #ruby
mohits_ has quit [Ping timeout: 245 seconds]
awarner has quit [Remote host closed the connection]
ken_barber has joined #ruby
<bnagy> I wouldn't say that
<bnagy> leprosy is mostly non-contagious, people make too much of a fuzz over it
<bnagy> *fuss
<bnagy> my fingers are way overtrained for typing fuzz
<amacdonald> Don't wanna know what that's about
chendo has quit [Ping timeout: 244 seconds]
<amacdonald> So you're not a fan of Rails...
<amacdonald> Seems like no ones really impartial
sepp2k has joined #ruby
<bnagy> well if I ever had to do any web work I would always favour the lightest solution which used ruby that was as close to natural as possible
<bnagy> there are many reasons to hate rails, but mainly I hate the stupid DSL and monkey patches
chendo has joined #ruby
gabrielrotbart has joined #ruby
<bnagy> for people that write 'normal' ruby it's like an editor watching teenagers text each other
bananagram has joined #ruby
evilsushi has quit [Quit: Lost terminal]
khakimov has joined #ruby
w400z has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
jarred has quit [Quit: jarred]
Chryson has quit [Quit: Leaving]
jasonkuhrt has quit [Quit: Linkinus - http://linkinus.com]
jasonkuhrt has joined #ruby
Banistergalaxy has quit [Ping timeout: 252 seconds]
bradhe has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
amacdonald has quit [Quit: Page closed]
<Spooner> amacdonald : Can't really state an opinion on the matter unless you are partial...
mr-rich has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
lggr has joined #ruby
ph^ has joined #ruby
<Spooner> I don't think I've seen positives for Rails in this channel though. Ruby programmers, rather than pure web devs, seem to favour stuff like Sinatra, I think.
sn0wb1rd_ has joined #ruby
machty has joined #ruby
[Neurotic] has joined #ruby
redbeard0x0a has quit [Read error: Connection reset by peer]
mwilson` has quit [Excess Flood]
mwilson` has joined #ruby
<kiyoura> Spooner, a framework is used per the specific needs of a project
<kiyoura> and hopefully not by anyone's silly preference
sn0wb1rd has quit [Ping timeout: 255 seconds]
sn0wb1rd_ is now known as sn0wb1rd
<bnagy> what are the specific project needs that would make you select rails then?
<bnagy> a love of memory bloat?
<kiyoura> bnagy: to get paid quicker
ph^ has quit [Ping timeout: 252 seconds]
shiki has quit [Ping timeout: 240 seconds]
shiki has joined #ruby
<swarley_> I think i remember liking sinatra more than rails
<swarley_> i only tried rails a small bit though
lggr has quit [Ping timeout: 260 seconds]
<Spooner> bnagy : You are already employing a lot of Rails devs or it is a requirement of your employer?
<bnagy> kiyoura: that's not a project need
<kiyoura> bnagy, it's project-dependant; i'd only use sinatra on my personal projects
havenn has joined #ruby
<bnagy> and I'm sure anyone that really knows their framework would have roughly equivalent time to market, especially versus choosing one they don't know / like
ken_barber has quit [Remote host closed the connection]
<kiyoura> yeah there's that case too
<kiyoura> but that's not as common
<bnagy> Spooner: exactly - which is not a project specific need, again
<swarley_> what does rails have that another framework doesnt have?
<bnagy> it's a 'we have a hammer therefore every project is a nail' approach
<kiyoura> not sure how my statement of being paid quicker is project-dependant is a 'nail'
<bnagy> being paid quicker is just an assertion
<Spooner> kiyoura I disagree to a point; for example, both Python and Ruby do exactly the same thing, but people can decide they like one thing over the other based on how much one annoys them less than the other.
n_blownapart has joined #ruby
<kiyoura> Spooner, hmm true. but i think that's arguably a broader argument
<kiyoura> as python and ruby are both general-purpose programming languages
lggr has joined #ruby
machty has quit [Quit: machty]
<swarley_> well
<swarley_> a webserver framework is a webserver framework right?
<n_blownapart> hi .sorry noob question: can't see why I'm getting an indeterminate number (more than 2) of decks of cards with this prog: thanks: http://pastie.org/4751506
<kiyoura> swarley_, no...
sn0wb1rd has quit [Ping timeout: 244 seconds]
<swarley_> they all do the same thing, just in different ways
<kiyoura> not at all..
sn0wb1rd has joined #ruby
<swarley_> so you're saying
<swarley_> if i threw a baseball at you and you caught it, and i fired it out a cannon and you caught it
<swarley_> they don't do the same things
<swarley_> either way you caught it
<kiyoura> swarley_, uhm not sure how that's relevant: moreover, there are other physics therein--this is the framework
<swarley_> Its relevant because you just want the same end result. I don't see why that concept seems to be crumbling for you from the time i say it to the time you read it
<kiyoura> swarley_, the 'physics' per the technique of how you threw the ball is the actual software-specific framework
<kiyoura> not the abstract idea of solving a problem.
havenn has quit [Ping timeout: 244 seconds]
<n_blownapart> perfect time to take a break and answer a noob question: http://pastie.org/4751506
<swarley_> the abstract idea is to each their own. If framework A and B can both do it but with different steps.. forget it
Yomero_ has joined #ruby
<kiyoura> you dont understand programming to an interface vs programming to an implementation. so yes, forget it.
S1kx has quit [Ping timeout: 255 seconds]
<n_blownapart> ^^ why doesn't this prog. just give me two decks of cards?
burgestrand has joined #ruby
<bnagy> n_blownapart: dunno, too badly written, can't read
lggr has quit [Ping timeout: 244 seconds]
maletor has joined #ruby
<swarley_> kiyoura, i have objc to teach me those differences. And i'm not talking about the actual code even mattering lol. All I'm even considering is end result
<n_blownapart> sorry will fix indents bnagy
<kiyoura> swarley_ lol well that's why!
<bnagy> n_blownapart: read Array#product
<bnagy> I think it's on array, anyway
horofox has quit [Quit: horofox]
<swarley_> IMO, if an API is weird i put a wrapper on it an pretend it died in a corner
<swarley_> that's how it should be done <- forgot to put my opinion on the line
mr-rich has joined #ruby
<n_blownapart> http://pastie.org/4751506 edited indentation bnagy sorry. Array#product ?
ryanf has quit [Quit: leaving]
sent-hil has joined #ruby
<Spooner> n_blownapart : #cycle(1) is just #each
erdos has joined #ruby
<erdos> hello!
michael_mbp has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
<n_blownapart> thanks Spooner yeah but I get many decks of cards instead of just two here. do I need a break somewhere? (tried it to no avail)
<swarley_> n_blownapart, what do you expect the return to be?
<Spooner> 104 cards, made from 2 decks?
<erdos> can someone recommend me a good book to learn ruby? i already have strong experience with oop/java/php and need to transition in to ruby for a project i'm working on
<n_blownapart> swarley_: I added line thirteen . just two decks of cards given string on line 12.
<swarley_> erdos, i'm a fan of Beginning Ruby by Peter Cooper
lggr has joined #ruby
<n_blownapart> each card listed as Q of spades , etc. swarley_
<swarley_> alright, let me take another look
<n_blownapart> swarley_: gratzie
<bnagy> n_blownapart: keep lines 2 and 3, and delete the rest
jrajav has quit []
<erdos> swarley_: thanks i'll check that out! is it good for someone who already knows programming fundamentals?
<Edward_> erdos, book of ruby
<n_blownapart> bnagy: its a book example.
<bnagy> oh god not this again
<swarley_> erdos, The first few chapters are pretty good to brush up / get familiar with object orientation. Past that it is useful as a reference to me even today
<sent-hil> erdos: Pickaxe if you've programming exp. Well Grounded Rubyist if you don't
glupo has quit [Remote host closed the connection]
<bnagy> a book says to make Deck and Subset of PlayingCard?
<bnagy> that's idiotic
<n_blownapart> bnagy: crucify me. I have a book and I'm going through it. I can't just write this stuff cold. pax.
<bnagy> and the use of cycle there is beyond retarded
<Spooner> I found the Pickaxe (Programming Ruby) very useful too, when I started out, with a programming background.
Guest64548 has joined #ruby
<n_blownapart> bnagy: the prog is featuring #cycle
<bnagy> the core code there is SUITS.product(RANKS).map {|s,r| "#{s} of #{r}"}
<erdos> sent-hil, swarley_, Edward_, Spooner: thanks guys! i will go check out all those books now and pick one
<erdos> :)
xnm has joined #ruby
<n_blownapart> bnagy: haven't got to product yet, but thanks.
<erdos> seems like a good community in here
<swarley_> SUITS.each {|x| RANK.each {|y| @cards << "#{y} of #{x} } }
jasonkuhrt has quit [Quit: Leaving...]
<swarley_> erdos, yes this channel as well as #ruby-lang are fairly active and we have a lot of people willing to help
lggr has quit [Ping timeout: 246 seconds]
<erdos> sweet!
pen has quit [Ping timeout: 240 seconds]
<swarley_> feel free to ask any questions you may have as youre learning. Most of us remember what its like to be learning ruby and what areas can be weird
<swarley_> most
<swarley_> most
<swarley_> No idea if the channel blocks color codes
pu22l3r has quit [Read error: Connection reset by peer]
<Spooner> I don't remember so well. Remind me why a Bignum is different to a unary operator please.
* swarley_ /mode s
deryl has quit [Read error: Connection reset by peer]
<erdos> hehe great, i'll definitely be lurking here a quite a bit in the near future then :)
locriani has quit [Read error: Connection reset by peer]
pu22l3r has joined #ruby
<swarley_> Spooner, lol?
Guest64548 has quit [Client Quit]
deryl has joined #ruby
locriani has joined #ruby
<sent-hil> erdos: have you installed ruby yet?
<n_blownapart> swarley bnagy so then is #cycle used much with enumerable objects ?
<davidcelis> Bi#cycle
<dekz> How does Marshall#dump work, does it call a specific method I can override to return nil on a certain unmarshable object?
<Spooner> And why Ruby doesn't support code like ++"frog", which it REALLY should do to be taken seriously.
<n_blownapart> davidcelis: Bi curious
<swarley_> n_blownapart, personally I have never used it
<bnagy> dekz: yes, it does
<davidcelis> Spooner: ++"frog" ?
<davidcelis> Spooner: wtf?
<swarley_> Spooner, the one thing i have found really confusing is
<Spooner> davidcelis : Yah. I think that is solid code in at least 3 other languages, some of which I wrote a specification of on a napkin within the last month.
<swarley_> Spooner, [24] pry(main)> (1.methods - Object.new.methods).map(&:to_s).grep /\@/ #=> ["-@", "+@"]
<bnagy> n_blownapart: I have never used it, but that's not to say it wouldn't be useful somewhere
<davidcelis> Spooner: holy shit you almost had me man
<davidcelis> Spooner: 8/10, bravo
<swarley_> that made me so excited
<Spooner> swarley_ : Thanks. All clear now!
<n_blownapart> swarley_: interesting. but still can't see why I'm getting more than two decks of cards as it is: pastie.org/4751506 cool thanks bnagy all helpful
<swarley_> and i went into the source
<swarley_> and was like
<swarley_> MAKING "++@" METHOD
<swarley_> yeah apparently it doesnt work that way
lggr has joined #ruby
<erdos> sent-hil: no not yet, i'm goign to get started tonight, i've just found out this project i'm about to start needs ruby so it was a nice distraction to look into where i was going to start
bradhe has joined #ruby
<swarley_> n_blownapart, can i see the code you have now?
<Spooner> n_blownapart : Actually, your code gives a deck of 104 cards, so that is perfectly correct. Your inspection is at fault, not your code!
xyzodiac has quit [Quit: Computer has gone to sleep.]
<Spooner> deck.instance_variable_get(:@cards).size => 104
<sent-hil> erdos: cool, is it a web project?
<Spooner> pry(main)> deck.instance_variable_get(:@cards).uniq.size => 52
jenrzzz has quit [Ping timeout: 256 seconds]
<n_blownapart> pastie.org/4751506 swarley_ ^^ Spooner I guessed on line 13 with a puts. how to inspect?
Hanmac1 has quit [Ping timeout: 245 seconds]
<bnagy> line 13 is hit with every iteration of the inner loop - ie 104 times
<n_blownapart> Spooner: cool I'll check that out
hsbt has quit [Read error: Connection reset by peer]
<n_blownapart> bnagy: thanks sorting it out.
<Spooner> n_blownapart : Like I just did. I ran your code in pry, though you could equally put "require 'pry'; binding.pry" at the end of the code and run it from the cli to then examine the values and such.
<swarley_> i would go with bnagy's method by the way, mine if ugly looking
<swarley_> assuming he has pry installed
<erdos> sent-hil: yeah, it's a whois/cms probe/bunch of other stuff hybrid, i'm aware i need to get rails sussed as well, but definitely gotta ruby first!
<n_blownapart> swarley_: ok thanks you guys are very kind . I do I'm doing this on an editor though bnagy
lewis1711 has left #ruby [#ruby]
<davidcelis> pry(main)> deck.instance_variable_get(:@cards).size # => 156
<davidcelis> aww yeah Spite & Malice time mother fuckers
thunderstrike has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
kiyoura has quit [Quit: Leaving]
darkc0met has quit [Quit: ZNC - http://znc.in]
andr0m3da has joined #ruby
<n_blownapart> davidcelis: also I can inspect with this in the prog I take it? : deck.instance_variable_get(:@cards).size
burgestrand has quit [Quit: Leaving.]
seanyo has quit [Ping timeout: 252 seconds]
<bnagy> wow, I (and everyone else) failed to notice the attr_reader on @cards, in our haste to show off :D
<swarley_> i'm a fan of adding
<swarley_> object.pry at the end
<davidcelis> i dunno dude i just wanted to reference the fact that Spite & Malice uses three decks
<davidcelis> sre 2 disappoint
<Spooner> You'd be better off using the attr_reader, which I completely didn't notice (so just deck.cards.size)
<bnagy> n_blownapart: puts dec.cards.size
<davidcelis> s/dec/deck/g
<Spooner> puts (though p is more useful, I find) is the cornerstone of all good debugging. Discuss ;)
<swarley_> i like deck.pry because you can do @cards.size
<swarley_> directly
<bnagy> davidcelis: you are right, I wrote dec instead of deck. It was a typographic error, I am ashamed. Thankyou for correcting me.
<davidcelis> bnagy: you are welcome, good sir and/or madam
hsbt_ has joined #ruby
<swarley_> i think p is good for visually seeing your data structure
<swarley_> ensuring(sort of) your type
<n_blownapart> davidcelis: don't follow Spite and Malice. many thanks all - a lot to digest. Spooner bnagy swarley_
<swarley_> I think using exceptions is a more ideal way to do it, but not more realistic
<swarley_> i'm not going to write an exception for everything that could go wrong
<bnagy> using exceptions to do whatnow?
<swarley_> debug
<swarley_> i use raise in my classes to debug when i'm not lazy
justinmcp has joined #ruby
<davidcelis> CardNotDealtError
<swarley_> raise WTFMan unless object.is_a? ExpectedType
<bnagy> nah that should be part of regular code
lggr has joined #ruby
<swarley_> i omit them when the code is so simple you have to be trying to fuck it up
<Spooner> rescue DealingFromTheBottomOfTheDeckError; @dealer.shoot; end
<davidcelis> raise WhatIsThisIDontEvenError
<bnagy> I use more or less nothing but p, warn $! and warn $@.join("\n")
<davidcelis> or for you zelda fans, `raise IAmError`
<swarley_> raise MyHandsUpInTheAirSomeTimes.new("saying ayyyyohhhh gotta leeeet go")
slicslak has joined #ruby
<swarley_> it would work better if the keyword was throw...
<swarley_> if it keeps crashing, i throw in tons and tons of begin; rescue; end blocks. at that point i've given up all hope though
<Spooner> bed.goto if time > absurdly_late # Goodnight!
<swarley_> fork; puts "You can't make this PID sleep, I do what I want"
<swarley_> s/PID/\#\{\$\$\}/
<davidcelis> #define SUPPORT_JOKE 1
chessguy has quit [Remote host closed the connection]
<davidcelis> __goto__(:bed)
artOfWar has quit [Ping timeout: 268 seconds]
eregon has quit [Quit: No Ping reply in 180 seconds.]
<swarley_> if(text.length > 100) then raise TLDR.new end
eregon has joined #ruby
Kwpolska has quit [Ping timeout: 244 seconds]
robbyoconnor has joined #ruby
bananagram has quit [Ping timeout: 252 seconds]
ZachBeta has quit [Quit: Computer has gone to sleep.]
robbyoconnor has quit [Client Quit]
nga4 has joined #ruby
Kwpolska has joined #ruby
cool has quit [Quit: Connection closed for inactivity]
Spooner has quit [Ping timeout: 246 seconds]
ananthakumaran has quit [Ping timeout: 240 seconds]
lggr has quit [Ping timeout: 256 seconds]
karakedi has quit [Ping timeout: 252 seconds]
ZachBeta has joined #ruby
lggr has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
rakunHo has quit [Ping timeout: 252 seconds]
ananthakumaran has joined #ruby
d3vic3 has quit [Ping timeout: 248 seconds]
ZachBeta has quit [Client Quit]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
robbyoconnor has joined #ruby
n_blownapart has quit [Remote host closed the connection]
Pinoqu has quit [Quit: Pinoqu]
dhruvasagar has joined #ruby
d3vic3 has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
ph^ has joined #ruby
robbyoconnor has joined #ruby
swarley_ has quit [Ping timeout: 246 seconds]
bradhe has quit [Remote host closed the connection]
thunderstrike has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 252 seconds]
thunderstrike has joined #ruby
busybox42 has quit [Ping timeout: 240 seconds]
AlbireoX has quit [Read error: Connection reset by peer]
ph^ has quit [Ping timeout: 252 seconds]
robbyoconnor has quit [Ping timeout: 240 seconds]
AlbireoX has joined #ruby
xnm has quit [Quit: WeeChat 0.3.7]
nat2610 has quit [Ping timeout: 240 seconds]
gmci has quit [Quit: Computer has gone to sleep.]
pen has joined #ruby
lggr has joined #ruby
ZachBeta has joined #ruby
rippa has joined #ruby
bradhe has joined #ruby
invisime1 has quit [Quit: Leaving.]
sparki has joined #ruby
tvw has joined #ruby
banisterfiend` has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
bradhe has quit [Ping timeout: 244 seconds]
ZachBeta has quit [Quit: Computer has gone to sleep.]
stuartrexking has joined #ruby
lggr has joined #ruby
ltsstar has joined #ruby
eignerchris has joined #ruby
digitalcakestudi has quit [Read error: Connection reset by peer]
sagax has joined #ruby
nataraj has joined #ruby
<nataraj> Hi
caveat- has quit [Remote host closed the connection]
<nataraj> problem with sup mail client :- http://paste.org/54223
<nataraj> ruby 1.9.3p194
<nataraj> am i missing on any gems?
lggr has quit [Ping timeout: 252 seconds]
caveat- has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
austinbv has quit [Ping timeout: 246 seconds]
justinmcp has quit [Remote host closed the connection]
austinbv has joined #ruby
artOfWar has joined #ruby
dhruvasagar has joined #ruby
seoaqua has joined #ruby
ltsstar has quit [Ping timeout: 252 seconds]
lggr has joined #ruby
nga4 has quit []
baroquebobcat has joined #ruby
Mon_Ouie has joined #ruby
bradhe has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
rippa has quit [Ping timeout: 248 seconds]
<TTilus> nataraj: are you aware that you are using pretty much unsupported mailclient, whose users mainly run own customized versions!
<TTilus> s/!/?/
<nataraj> oh!
bradhe has quit [Remote host closed the connection]
tagrudev has joined #ruby
<nataraj> TTilus, can you suggest a better supported Ruby mail client?
<TTilus> nataraj: which is not to say it is bad in any way
<TTilus> nataraj: no :(
bradhe has joined #ruby
tvw has quit [Remote host closed the connection]
tvw has joined #ruby
* TTilus is using sup
<nataraj> have a git of sup-mainline, but unable to find a gemspec in it
<nataraj> TTilus, which release do ya use?
<TTilus> nataraj: none of them :)
<TTilus> nataraj: it is an old next-branch with a set of patches
<nataraj> do you mind sharing your code?
lggr has joined #ruby
<TTilus> nataraj: you might want to try different rubies
<nataraj> different ? 1.8 ?
bradhe has quit [Ping timeout: 268 seconds]
w400z has quit []
<TTilus> nataraj: i think i have it in github, but im too lazy to check wit this cellphone :(
<TTilus> nataraj: you have rbenv or rvm right
<nataraj> np. no
<TTilus> nataraj: give 1.9.0 and 1.8.7 a shot
cj3kim has quit [Quit: This computer has gone to sleep]
<TTilus> nataraj: install rbenv, thats an order :) you _do_ want it
<nataraj> on archlinux, need to check out aur
tvw has quit [Ping timeout: 252 seconds]
<nataraj> yeah, got it
lggr has quit [Ping timeout: 240 seconds]
<nataraj> system (set by /home/nataraj/.rbenv/version)
<nataraj> rbenv: no local version configured for this directory
M- has joined #ruby
josh^ has joined #ruby
Monie has joined #ruby
<TTilus> nataraj: read rbenv tutorial
<TTilus> nataraj: you install your own local separated rubies using installer plugin (whatever it was called)
<nataraj> presently compiling 1.8.7 from abs
bluOxigen has joined #ruby
<bnagy> TTilus: ruby-build
lggr has joined #ruby
<bnagy> nataraj: but you can build from src yourself just as easily - for jruby I pull the git, ant, then symlink it into .rbenv for example
<nataraj> need i get ruby from git?
<nataraj> i do have source in abs
<nataraj> installed ruby-build also
busybox42 has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
quest88 has quit [Quit: quest88]
ananthakumaran has quit [Quit: Leaving.]
stuartrexking has quit [Quit: Leaving...]
khakimov has joined #ruby
ryanf has joined #ruby
michael_mbp has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
<TTilus> nataraj: with ruby-build i did not need to know :) i just $ rbenv install somerubyversion
amacgregor_osx has quit [Ping timeout: 252 seconds]
und3f has joined #ruby
<nataraj> yep, rbenv getting 1.8.7 from ftp.ruby-lang.org
sjuxax has quit [Read error: Connection reset by peer]
<nataraj> should i install as root or normal user?
lggr has quit [Ping timeout: 240 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
arturaz has joined #ruby
mrdodo has joined #ruby
amacgregor_osx has joined #ruby
stuartrexking has joined #ruby
philips_ has quit [Excess Flood]
maesbn has joined #ruby
lggr has joined #ruby
baphled has joined #ruby
philips_ has joined #ruby
stuartrexking has quit [Client Quit]
mercwithamouth has quit [Ping timeout: 246 seconds]
cantonic has quit [Quit: cantonic]
lggr has quit [Ping timeout: 260 seconds]
michael_mbp has joined #ruby
lggr has joined #ruby
ananthakumaran has joined #ruby
sjuxax has joined #ruby
mvangala_ has quit [Read error: Connection reset by peer]
xpen has joined #ruby
mvangala has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
derpops has quit []
bradhe has joined #ruby
stuartrexking has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
ph^ has joined #ruby
timonv has joined #ruby
s1n4 has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
rakl has joined #ruby
lggr has joined #ruby
<rakl> random question, in ruby, can you pass a block to a method without namespacing? for example, can you say Array.new.each { puts self_or_some_other_keyword }
ABK has joined #ruby
<rakl> instead of Array.new.each { |element| puts element }
dhruvasagar has joined #ruby
c0rn_ has joined #ruby
Morkel has joined #ruby
<bnagy> that's what irb / pry are for :)
arietis has joined #ruby
<bnagy> but self isn't very useful
lggr has quit [Ping timeout: 246 seconds]
<Banistergalaxy> Bnagy can you give me some weight loss tips
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
<bnagy> contract norovirus
<Banistergalaxy> Hehe
<rakl> bnagy I tried self and this before asking, but was just wondering
zigomir has joined #ruby
<rakl> I was using handlebars.js and blacks in that don't have to be name spaced. You can refer to the obj in the current iteration as `this`
<rakl> lol
<rakl> s/blacks/blocks
michael_mbp has quit [Quit: michael_mbp]
dr_bob has joined #ruby
stuartrexking has quit [Quit: Leaving...]
stephenjudkins has joined #ruby
lggr has joined #ruby
tchebb has quit [Quit: Leaving.]
justinmcp has joined #ruby
fantazo has quit [Remote host closed the connection]
friskd has joined #ruby
quazimodo has joined #ruby
<quazimodo> is there a way to sum the method return values of an array of objects?
<quazimodo> so the_total = myobjects.sum(&:some_method)
<quazimodo> 'ive seen something like it
<quazimodo> hrm
<rking> quazimodo: There's arr.inject 0 do |a,i| a += some_method i end
<rking> quazimodo: ActiveSupport adds a .sum that takes a block, too.
idletom has quit [Ping timeout: 252 seconds]
lggr has quit [Ping timeout: 260 seconds]
dmnd has joined #ruby
crodas has quit [Quit: Disconnecting from stoned server.]
crodas has joined #ruby
Criztian has joined #ruby
lggr has joined #ruby
cezar has joined #ruby
mbk has joined #ruby
cezar has quit [Client Quit]
Hanmac has joined #ruby
aganov has joined #ruby
demian`_ has quit [Quit: demian`_]
nataraj has quit [Ping timeout: 248 seconds]
sspiff has joined #ruby
sspiff has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
rodasc has joined #ruby
haxrbyte has joined #ruby
m3pow has quit [Ping timeout: 245 seconds]
<quazimodo> woo me so smark
<quazimodo> yeah i used foo.sum(&:method_name)
<quazimodo> XD
crodas has quit [Read error: Connection reset by peer]
baphled has quit [Ping timeout: 244 seconds]
austinbv has quit [Ping timeout: 245 seconds]
derpops has joined #ruby
<rking> quazimodo: Yeah, you're probably pulling in ActiveSupport, then. (I.e., you're doing Rails)
haxrbyte has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
eignerchris has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 252 seconds]
lggr has joined #ruby
<quazimodo> yup
<quazimodo> hrm
<quazimodo> i wonder if ruby has a nice helper method to turn strings into abbreviations XD
sent-hil has quit [Remote host closed the connection]
lolmaus has joined #ruby
rakl has quit [Quit: sleeping]
<Hanmac> quazimodo: "AbcDefXyz".each_char.select{|c| /[[:upper:]]/ =~ c}.join #=> "ADX"
stuartrexking has joined #ruby
<rking> quazimodo: You'll have to be more specific about your input/output pairs.
m3pow has joined #ruby
Yomero_ has quit [Ping timeout: 240 seconds]
stuartrexking has quit [Client Quit]
justinmcp has quit [Remote host closed the connection]
Eldariof18-ru has joined #ruby
mauro has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
bradhe has quit [Ping timeout: 240 seconds]
mauro has left #ruby [#ruby]
nataraj has joined #ruby
<Hanmac> quazimodo: better: "AbcDefXyz".scan(/[[:upper:]]/).join
mohits has joined #ruby
lggr has joined #ruby
m3pow has quit [Quit: ChatZilla 0.9.88.2 [Firefox 11.0/20120410121533]]
slicslak has quit [Ping timeout: 246 seconds]
answer_42 has joined #ruby
<rking> "AbcDefXyz".gsub /[[:lower:]]/, ''
jprovazn_away is now known as jprovazn
<rking> "AbcDefXyz".tr 'a-z', ''
<Hanmac> rking yeah your version may work too, but i think my version is better
<Hanmac> and your tr is shitty because it does not respect the existence of öäü
<rking> Only weird people need those chars.
<rking> *puff of dust as rking vanishes*
michael_mbp has joined #ruby
<Hanmac> but i think modo dont want to hear an answer because he is not responding
<quazimodo> hrm
<rking> Hanmac: What is better about the scan/join ?
<quazimodo> well the strings i have to shorten are between 2 and 6 words long
lggr has quit [Ping timeout: 244 seconds]
c0rn_ has quit []
<quazimodo> like
<quazimodo> "premium light vienna rye loaf"
<quazimodo> maybe just take out the vowels :/
mahmoudimus has joined #ruby
<rking> Hehe
<quazimodo> thats not abbreviatingi si t, what that called
<quazimodo> when you take words and keep them phonetically similar and minimal?
<Hanmac> rking you are right gsub is faster :/
<rking> Hanmac: It should be like this, to be just like yours: "AbcDefXyz".gsub /[^[:upper:]]/, ''
<bnagy> "premium light vienna rye loaf".scan(/(\w)\w+/).flatten.join ?
<quazimodo> bnagy: yeah thats cool too
<rking> The [[:lower:]] version doesn't take spaces and punctuation out.
athit has joined #ruby
znake has joined #ruby
<quazimodo> iguess if it kept just 3 letters from each word
<quazimodo> i dno
<quazimodo> what would make most sense to a person?
lggr has joined #ruby
<rking> quazimodo: Step 1) Open a test file. Step 2) Write a test. Step 3) Implement it. Step 4) Repeat from step 2 until you know what you want.
<quazimodo> hrm yeah maybe
<quazimodo> hehe
Monie has quit [Read error: Connection reset by peer]
<Hanmac> "premium light vienna rye loaf".scan(/(\w{3})\w*/).flatten.join #=> "preligvieryeloa
jgrevich has quit [Quit: jgrevich]
<Hanmac> rking i was wrong ... scan is faster
<rking> Hanmac: That's the least of my concerns either way.
<Hanmac> r.report("scan") {100_000.times { string.scan(/[[:upper:]]/).join }} #scan 0.350000 0.000000 0.350000 ( 0.350637)
<Hanmac> r.report("gsub") {100_000.times { string.gsub(/[^[:upper:]]/,'') }} # gsub 0.400000 0.000000 0.400000 ( 0.396495)
<rking> Hanmac: The time spent typing up the benchmark is greater than the total time either will ever save.
maletor has joined #ruby
<Hanmac> :P
Banistergalaxy has quit [Ping timeout: 240 seconds]
<rking> Hehe, yeah. That is a whopping 1/2,000,000th of a second difference.
Criztian has quit [Remote host closed the connection]
<rking> Hanmac: Though, now I'm curious. On your system what happens if you do: string.gsub(/[^[:upper:]]+/
ztirf has joined #ruby
ayawaska has quit [Ping timeout: 268 seconds]
<Hanmac> gsub is minimal faster (or equal)
lggr has quit [Ping timeout: 240 seconds]
<Hanmac> they "dance" both around 0.37 ...
c0rn_ has joined #ruby
lggr has joined #ruby
futoase has joined #ruby
chendo has quit [Ping timeout: 252 seconds]
<rking> K, thanks. =)
chendo has joined #ruby
jameshyde_ has quit [Remote host closed the connection]
GoldenCider has quit [Quit: GoldenCider]
athit has quit [Quit: leaving]
ryanf has quit [Quit: leaving]
nari has quit [Quit: Ex-Chat]
answer_42 has quit [Ping timeout: 276 seconds]
shiki_ has joined #ruby
gabrielrotbart has quit [*.net *.split]
nick_h has quit [*.net *.split]
Nanuq has quit [*.net *.split]
mafs has quit [*.net *.split]
uxp has quit [*.net *.split]
pavelz has quit [*.net *.split]
Veejay has quit [*.net *.split]
Koshian_ has quit [*.net *.split]
drmegahertz has quit [*.net *.split]
PhilK has quit [*.net *.split]
playmuc_ has quit [*.net *.split]
_jesse_ has quit [*.net *.split]
lggr has quit [Ping timeout: 248 seconds]
uxp has joined #ruby
hoelzro|away is now known as hoelzro
shiki has quit [Ping timeout: 260 seconds]
abstrax has joined #ruby
Monie has joined #ruby
Monie has quit [Changing host]
Monie has joined #ruby
<abstrax> can i prevent haml from executing ruby code ? like %div=`some command` ?
<quazimodo> i can use gsub to match words
mrdodo has quit [Remote host closed the connection]
<quazimodo> but i dont know how to process the variables and return them, for example how do I shorten a word thats been matched to 3 letters?
<Muz> gsub is used for replacement, use match, or scan for actually matching against a regex.
<Muz> Or the =~ operator.
justsee has quit [Quit: Linkinus - http://linkinus.com]
<dr_bob> quazimodo: s.gsub /(\w{3})\w+/, '\\1'
sent-hil has joined #ruby
PhilK has joined #ruby
_jesse_ has joined #ruby
answer_42 has joined #ruby
nari has joined #ruby
lggr has joined #ruby
<dr_bob> quazimodo: or, if you like: s.gsub /\b(\w{3})\w+\b/, '\\1'
<quazimodo> ah i see
<quazimodo> make 2 matches
<Hanmac> dr_bob i think /(\w{3})\w*\b/ is better
<dr_bob> no, it's a single match - but with a capturing group
<dr_bob> Hanmac: why?
<Hanmac> bcause yours not match 3-letter-words
Criztian has joined #ruby
<dr_bob> Hanmac: there' s no point in shortening 3 letter words to 3 letter words, is it?
vlad_starkov has joined #ruby
<Hanmac> you sould ask the user if he wants that
<Hanmac> .. oh you are right
<dr_bob> Hanmac: a three letter word does already have three letters.
<dr_bob> :-)
znake has quit [Quit: znake]
xargoon has quit [Ping timeout: 252 seconds]
<Hanmac> i seems that i was still at the scan variant
<dr_bob> shit happens...
zommi has joined #ruby
Veejay has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
gabrielrotbart has joined #ruby
nick_h has joined #ruby
Koshian_ has joined #ruby
mafs has joined #ruby
pavelz has joined #ruby
playmuc_ has joined #ruby
Nanuq has joined #ruby
drmegahertz has joined #ruby
matthewrobbins has joined #ruby
dvessel has joined #ruby
lggr has joined #ruby
mohits has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
alem0lars has joined #ruby
jeekl has joined #ruby
jeekl has joined #ruby
jeekl has quit [Changing host]
matthewrobbins has quit [Client Quit]
xargoon has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
Criztian has quit [Remote host closed the connection]
amaya_ has joined #ruby
lggr has joined #ruby
elaptics`away is now known as elaptics
vlad_starkov has quit [Remote host closed the connection]
flype has joined #ruby
matthewrobbins has joined #ruby
amacgregor_osx has quit [Ping timeout: 240 seconds]
chussenot has joined #ruby
justsee has quit [Quit: Linkinus - http://linkinus.com]
dekroning has joined #ruby
M- has quit [Quit: This computer has gone to sleep]
berkes has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
eikko has quit [Ping timeout: 252 seconds]
omry has joined #ruby
vlad_starkov has joined #ruby
amacgregor_osx has joined #ruby
berserkr has joined #ruby
JohnBat26 has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
Nanuq has quit [Ping timeout: 245 seconds]
gabrielrotbart has quit [Ping timeout: 245 seconds]
Nanuq has joined #ruby
Koshian_ has quit [Ping timeout: 245 seconds]
pavelz has quit [Ping timeout: 245 seconds]
tr4656 has quit [Ping timeout: 246 seconds]
gabrielrotbart has joined #ruby
hbpoison has joined #ruby
Eplemosen has joined #ruby
pavelz has joined #ruby
Koshian_ has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
elaptics is now known as captain-elaptics
specialGuest has joined #ruby
c0rn_ has quit []
answer_42 has quit [Quit: WeeChat 0.3.8]
lggr has joined #ruby
adambeynon has joined #ruby
Iszak has joined #ruby
Iszak has quit [Changing host]
Iszak has joined #ruby
F1skr has joined #ruby
kstephens_ has quit [Ping timeout: 264 seconds]
LouisGB has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
hbpoison has quit [Ping timeout: 245 seconds]
Vainoharhainen has joined #ruby
F1skr has quit [Quit: WeeChat 0.3.8]
iocor has joined #ruby
kstephens has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
iocor has quit [Client Quit]
mklappstuhl has joined #ruby
notVert has joined #ruby
mrdodo has joined #ruby
dmnd has quit [Read error: Connection reset by peer]
dmnd has joined #ruby
dmnd has joined #ruby
dmnd has quit [Changing host]
workmad3 has joined #ruby
chendo has quit [Ping timeout: 252 seconds]
amacgregor_osx has quit [Ping timeout: 240 seconds]
nataraj has quit [Ping timeout: 260 seconds]
dmnd_ has joined #ruby
dmnd_ has quit [Changing host]
dmnd_ has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
Xeago has joined #ruby
matled has quit [Remote host closed the connection]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
bobbbo has joined #ruby
dmnd has quit [Ping timeout: 246 seconds]
dmnd_ is now known as dmnd
amacgregor_osx has joined #ruby
baphled has joined #ruby
fyolnish has quit [Remote host closed the connection]
dmnd has quit [Read error: Connection reset by peer]
iocor has joined #ruby
lggr has joined #ruby
dmnd has joined #ruby
dmnd has quit [Changing host]
dmnd has joined #ruby
captain-elaptics is now known as elaptics
chendo has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
fyolnish has joined #ruby
Squarepy has joined #ruby
coderhut has joined #ruby
coderhut has quit [Client Quit]
Squarepy has quit [Changing host]
Squarepy has joined #ruby
dekroning has quit [Read error: Connection reset by peer]
coderhut has joined #ruby
coderhut has quit [Client Quit]
coderhut has joined #ruby
cantonic has joined #ruby
lggr has quit [Ping timeout: 255 seconds]
Squarepy_ has joined #ruby
Squarepy has quit [Read error: Connection reset by peer]
beneggett has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
lggr has joined #ruby
pskosinski has joined #ruby
pen has quit [Remote host closed the connection]
Squarepy_ has quit [Read error: Connection reset by peer]
F1skr has joined #ruby
Squarepy_ has joined #ruby
Squarepy_ has quit [Read error: Connection reset by peer]
Squarepy_ has joined #ruby
sent-hil has quit [Remote host closed the connection]
Squarepy_ has quit [Read error: Connection reset by peer]
Squarepy_ has joined #ruby
justinmcp has joined #ruby
Squarepy_ has quit [Read error: Connection reset by peer]
Squarepy_ has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
Squarepy_ has quit [Read error: Connection reset by peer]
Squarepy has joined #ruby
Squarepy has quit [Read error: Connection reset by peer]
Squarepy has joined #ruby
Targen has quit [Ping timeout: 244 seconds]
fixl has joined #ruby
coderhut has quit [Quit: Page closed]
Squarepy has quit [Ping timeout: 244 seconds]
s1n4 has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
s1n4 has joined #ruby
s1n4 has quit [Client Quit]
s1n4 has joined #ruby
iocor has quit [Quit: Computer has gone to sleep.]
dmnd has quit [Quit: dmnd]
Dreamer3 has quit [Quit: Leaving...]
Dreamer3 has joined #ruby
Jellyg00se has quit [Ping timeout: 240 seconds]
michael_mbp has quit [Quit: michael_mbp]
lggr has quit [Ping timeout: 268 seconds]
cantonic has quit [Ping timeout: 260 seconds]
dvessel has left #ruby [#ruby]
dhruvasagar has quit [Ping timeout: 252 seconds]
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby
cascalheira has joined #ruby
lggr has joined #ruby
dhruvasagar has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
davidcelis has quit [Ping timeout: 244 seconds]
davidcelis has joined #ruby
davidcelis has quit [Changing host]
davidcelis has joined #ruby
Jellyg00se has joined #ruby
fyolnish has quit [Remote host closed the connection]
d3vic3 has quit [Ping timeout: 256 seconds]
mohits has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
dhruvasagar has quit [Ping timeout: 260 seconds]
dhruvasagar has joined #ruby
lggr has joined #ruby
nopper` is now known as nopper
nataraj has joined #ruby
justinmcp has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 244 seconds]
seoaqua has quit [Max SendQ exceeded]
lggr has joined #ruby
derpops has quit []
lggr has quit [Ping timeout: 246 seconds]
bbttxu has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
libryder has quit [Ping timeout: 264 seconds]
nataraj has quit [Ping timeout: 244 seconds]
libryder_ has joined #ruby
jbw_ has quit [Quit: ┌∩┐(◣_◢)┌∩┐]
justinmcp has joined #ruby
jbw has joined #ruby
parus_ has quit [Ping timeout: 264 seconds]
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
parus has joined #ruby
br4ndon has joined #ruby
lggr has joined #ruby
flype has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
lggr has quit [Ping timeout: 244 seconds]
specialGuest has quit [Quit: WeeChat 0.3.8]
frogprince_mac has joined #ruby
Elhu has joined #ruby
d3vic3 has joined #ruby
d3vic3 has quit [Client Quit]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
Eplemosen has quit [Quit: NOPE]
lggr has joined #ruby
alem0lars has quit [Quit: quit]
cantonic has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
TomJ has quit [Quit: TomJ]
dr_bob has quit [Ping timeout: 245 seconds]
manouch has joined #ruby
wallerdev has quit [Quit: wallerdev]
workmad3 has joined #ruby
nari has quit [Ping timeout: 245 seconds]
zommi has left #ruby [#ruby]
mengu has joined #ruby
lggr has joined #ruby
arya has joined #ruby
arya is now known as ^arya^
pskosinski has left #ruby ["Some alternative (not-controlled-by-fu*up-people) Red Eclipse servers: http://altred.tk/list"]
lggr has quit [Ping timeout: 248 seconds]
josh^ has quit [Remote host closed the connection]
lggr has joined #ruby
tvw has joined #ruby
^arya^ has quit [Ping timeout: 252 seconds]
lggr has quit [Ping timeout: 255 seconds]
arya has joined #ruby
freeayu has quit [Ping timeout: 268 seconds]
amaya_ has quit [Ping timeout: 256 seconds]
shiki_ has quit [Ping timeout: 255 seconds]
xpen has quit [Remote host closed the connection]
frogprince_mac has quit [Ping timeout: 256 seconds]
hoelzro is now known as hoelzro|away
hoelzro|away is now known as hoelzro
freeayu has joined #ruby
lggr has joined #ruby
arya has quit [Ping timeout: 255 seconds]
dhruvasagar has quit [Ping timeout: 252 seconds]
Foxandxss has joined #ruby
love_color_text has joined #ruby
dhruvasagar has joined #ruby
lggr has quit [Ping timeout: 255 seconds]
arya has joined #ruby
Mon_Ouie has joined #ruby
bbttxu has quit [Quit: bbttxu]
lggr has joined #ruby
diegoviola has joined #ruby
dr_bob has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
frogprince_mac has joined #ruby
pskosinski has joined #ruby
fermion has joined #ruby
lggr has joined #ruby
brahman_work has joined #ruby
<brahman_work> Hi, I am starting to store data structures in yaml. When I use YAML.load_file to read in the yaml can I use some variable in the yaml file?
BdeUtra has joined #ruby
senny has quit [Remote host closed the connection]
wuzzzzaah has joined #ruby
amaya_ has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
senny has joined #ruby
shiki has joined #ruby
Mon_Ouie has quit [Ping timeout: 252 seconds]
mohits has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
<chiel> anyone know how to assign variables to erb templates in sinatra?
<brahman_work> sorted it by putting a place holder and using gsub! on the raw yaml before loading and using YAML.load(raw) instead of load_file
adac has joined #ruby
<brahman_work> thanks anyways.
<adac> If i'm in file spec/models/my_model_spec and want to access a file that resides in spec/assets/file_to_access how must the path look like?
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
<chiel> ah, it seems like local variables are simply available?
frogprince_mac has quit [Ping timeout: 256 seconds]
lggr has quit [Ping timeout: 255 seconds]
elico has joined #ruby
answer_42 has joined #ruby
arya has quit []
topriddy has joined #ruby
machty has joined #ruby
Pinoqu has joined #ruby
keppy has joined #ruby
<topriddy> what is difference between python and ruby? other than language syntax and dev environment/setups?
cakehero has joined #ruby
Bosma has quit [Ping timeout: 252 seconds]
bobbbo has quit [Quit: bobbbo]
lggr has joined #ruby
rlb3 has joined #ruby
ltsstar has joined #ruby
pskosinski has quit [Quit: Some alternative (not-controlled-by-fu*up-people) Red Eclipse servers: http://altred.tk/list]
pskosinski has joined #ruby
pskosinski has quit [Client Quit]
pskosinski has joined #ruby
Guedes_out is now known as Guedes
lxsameer has joined #ruby
pskosinski has quit [Client Quit]
lggr has quit [Ping timeout: 246 seconds]
pskosinski has joined #ruby
<lxsameer> how can i download a gem with its dependencies (without installing them)?
pskosinski has quit [Client Quit]
pskosinski has joined #ruby
dpk has joined #ruby
larissa has joined #ruby
sjuxax has left #ruby [#ruby]
<Vainoharhainen> Have anyone tested "whois" gem?
lggr has joined #ruby
<Vainoharhainen> have ruby anything similar to print_r
<canton7> Vainoharhainen, p
baphled has quit [Ping timeout: 240 seconds]
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
<Muz> Odd nick.
<Muz> (Translates as "paranoid")
chendo has quit [Ping timeout: 240 seconds]
lggr has quit [Ping timeout: 260 seconds]
<Vainoharhainen> Muz: :)
chendo has joined #ruby
horofox has joined #ruby
arya has joined #ruby
Jrz has joined #ruby
br4ndon has joined #ruby
trevortwining has joined #ruby
eml_ is now known as eml
arya is now known as ^arya^
<Jrz> hey guys
lggr has joined #ruby
quazimodo has quit [Read error: Connection reset by peer]
<^arya^> hey
<Jrz> I need to choose between goliath, cramp.in, sinatra synchrony etc
<Jrz> I'm creating a http/json (at least for now) game server with a mongo (mongoid) backend
vladyn has joined #ruby
br4ndon has quit [Client Quit]
diegoviola has quit [Quit: leaving]
m3pow has joined #ruby
kvirani has joined #ruby
vladyn has left #ruby [#ruby]
seanyo has joined #ruby
Eplemosen has joined #ruby
abstrax has left #ruby [#ruby]
manouch has quit [Quit: manouch]
gmci has joined #ruby
Jay_Levitt has quit [Quit: Jay_Levitt]
lggr has quit [Ping timeout: 245 seconds]
frogprince_mac has joined #ruby
thunderstrike has quit [Ping timeout: 255 seconds]
pskosinski has quit [Quit: Some alternative (not-controlled-by-fu*up-people) Red Eclipse servers: http://altred.tk/list]
mark_locklear has joined #ruby
seanyo has quit [Read error: Connection reset by peer]
philips_ has quit [Excess Flood]
amaya_ has quit [Quit: ChatZilla 0.9.88.2 [Firefox 15.0.1/20120905151427]]
pskosinski has joined #ruby
^arya^ has quit [Ping timeout: 244 seconds]
philips_ has joined #ruby
lggr has joined #ruby
<fearoffish> anyone used Ruby Units? I think I misunderstand somewhere…these conversions 'feel' wrong ;-) https://gist.github.com/3749328
nari has joined #ruby
yshh has quit [Remote host closed the connection]
rodasc is now known as crodas
solirc has joined #ruby
pskosinski has quit [Quit: Some alternative (not-controlled-by-fu*up-people) Red Eclipse servers: http://altred.tk/list]
kvirani has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 256 seconds]
pskosinski has joined #ruby
^arya^ has joined #ruby
Morkel has quit [Quit: Morkel]
demian`_ has joined #ruby
horofox has quit [Quit: horofox]
lledet has joined #ruby
Administrator__ has joined #ruby
mohits has joined #ruby
^arya^ has quit [Ping timeout: 252 seconds]
lggr has joined #ruby
<Mon_Ouie> fearoffish: The comment suggests for some reasons Rational numbers aren't being displayed properly
<Mon_Ouie> Check Rational(3, 4).inspect and .to_s
Administrator__ has quit [Client Quit]
<fearoffish> will do, thanks
<eml> Jrz: You didn't ask a question you know. ;)
s1n4 has quit [Ping timeout: 248 seconds]
BeLucid has quit [Remote host closed the connection]
s1n4 has joined #ruby
verto|off is now known as verto
<Jrz> eml good point ;)… I'm actually looking for the "best" ;) way to implement this.. The game server has a few collections which are mostly write only, and the "game state" for each game is pretty read-write. The thing I worry about most is stability and concurrency… It a bit unclear when I would go for sinatra or goliath or cramp.
love_color_text has quit [Remote host closed the connection]
m3pow has quit [Quit: ChatZilla 0.9.88.2 [Firefox 14.0.1/20120713224749]]
<Jrz> At this point I'm only supporting http/json requests, but if there's too much data over the line, it might be changed later… But it has no concern for me now.
M- has joined #ruby
<fearoffish> Mon_Ouie: that was it, check the gist again
<fearoffish> thanks for the input
topriddy has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 244 seconds]
^arya^ has joined #ruby
<Xeago> Jrz: as long json is used for transport (originating from something else then more json), it is fairly easy to move to another system like thrift
guns has quit [Quit: guns]
pskosinski has quit [Quit: Some alternative (not-controlled-by-fu*up-people) Red Eclipse servers: http://altred.tk/list]
topriddy has joined #ruby
topriddy has quit [Read error: Connection reset by peer]
<Xeago> Jrz: for stability, consider idempotent writes
topriddy has joined #ruby
topriddy has quit [Read error: Connection reset by peer]
<Xeago> err, reliability*
neku has joined #ruby
topriddy has joined #ruby
topriddy has quit [Read error: Connection reset by peer]
topriddy has joined #ruby
topriddy has quit [Read error: Connection reset by peer]
s1n4 has quit [Ping timeout: 246 seconds]
topriddy has joined #ruby
topriddy has quit [Read error: Connection reset by peer]
<Jrz> Xeago, yeah transport and protocol can be changed..
<Jrz> It seems that goliath is 'made' for this (at least http api server, async).. and sinatra-synchrony is only a patch.. Not sure how they compare
<Xeago> what exactly is it you are concerned about when considering sinatra, goliath and cramp?
topriddy has joined #ruby
topriddy has quit [Read error: Connection reset by peer]
sailias has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
s1n4 has joined #ruby
topriddy has joined #ruby
topriddy has quit [Read error: Connection reset by peer]
^arya^ has quit [Ping timeout: 248 seconds]
topriddy has joined #ruby
topriddy has quit [Read error: Connection reset by peer]
<Xeago> Jrz: are you concerned about the scalability?
lggr has joined #ruby
<eml> Jrz: You can always look into clojure with noir/compojure/whatever too. (Sorry ruby folks!)
<Jrz> Xeago, I don't really see how they compare.. sinatra is a webframework, but I only need a simple json api. goliath does exactly this afaik, and cramp is a bit more low level it seems
topriddy has joined #ruby
<Jrz> Xeago, not too concerned.. Not expecting to get hammered. And if I will, I'll get some extra boxes and load balancers first :-)…
<Xeago> where I work, we run several internal api's on satrina, and some on padrino
invisime has joined #ruby
zaargy has joined #ruby
pskosinski has joined #ruby
<zaargy> any idea how to do this? http://pastebin.com/L1cCrQby
topriddy1 has joined #ruby
topriddy1 has quit [Read error: Connection reset by peer]
<Xeago> sinatra::synchrony increases the scalability on a single node of sinatra
frogprince_mac has quit [Ping timeout: 246 seconds]
topriddy1 has joined #ruby
topriddy1 has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 256 seconds]
ph^ has quit [Remote host closed the connection]
<Jrz> Xeago, I was running sinatra+mongomapper, which worked.. Now moved to sinatra+mongoid, because my admin is in mongoid, and I came across some annoyances in mm.. But now updating a document seems hella slow suddenly (read maybe 500ms!)
topriddy1 has joined #ruby
<invisime> zaargy: an each through the keys with two assignments is probably your best bet.
topriddy2 has joined #ruby
<Xeago> do profiling to figure out where it actually spends it's time
<zaargy> oh okay. i was trying to think of a clever way.
topriddy2 has quit [Read error: Connection reset by peer]
ananthakumaran has quit [Quit: Leaving.]
topriddy2 has joined #ruby
topriddy2 has quit [Read error: Connection reset by peer]
topriddy2 has joined #ruby
topriddy2 has quit [Read error: Connection reset by peer]
awarner has joined #ruby
<Jrz> Xeago, it happens in both save! and update_attributes! but I'll have to do some profiling yes
topriddy2 has joined #ruby
topriddy2 has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 246 seconds]
BeLucid has joined #ruby
pskosinski has quit [Client Quit]
topriddy has quit [Ping timeout: 244 seconds]
<invisime> zaargy: if there were a hash method that accepted a list of keys and values, there would be a clever way. but that method doesn't exist, unfortunately.
topriddy2 has joined #ruby
<zaargy> feels like i should be able to do it with inject
topriddy has joined #ruby
topriddy has quit [Read error: Connection reset by peer]
lchin has joined #ruby
topriddy has joined #ruby
topriddy has quit [Read error: Connection reset by peer]
topriddy1 has quit [Ping timeout: 240 seconds]
topriddy has joined #ruby
manouch has joined #ruby
topriddy has quit [Read error: Connection reset by peer]
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
rlb3_ has joined #ruby
monkegji_ has joined #ruby
karstensrage has quit [Read error: Operation timed out]
parus has quit [*.net *.split]
rlb3 has quit [*.net *.split]
bluenemo has quit [*.net *.split]
mbk has quit [*.net *.split]
timonv has quit [*.net *.split]
thone has quit [*.net *.split]
Jck_true has quit [*.net *.split]
monkegjinni has quit [*.net *.split]
yalue has quit [*.net *.split]
G has quit [*.net *.split]
pradeepto has quit [*.net *.split]
aces1up has quit [*.net *.split]
boris317 has quit [*.net *.split]
rlb3_ is now known as rlb3
topriddy has joined #ruby
timonv has joined #ruby
topriddy has quit [Read error: Connection reset by peer]
^arya^ has joined #ruby
mikekelly has quit [Ping timeout: 272 seconds]
aces1up has joined #ruby
topriddy has joined #ruby
topriddy has quit [Read error: Connection reset by peer]
mbk has joined #ruby
yshh has joined #ruby
Jck_true has joined #ruby
sailias has quit [Quit: Leaving.]
topriddy2 has quit [Ping timeout: 244 seconds]
lchin has quit [Ping timeout: 240 seconds]
topriddy has joined #ruby
topriddy has quit [Read error: Connection reset by peer]
krawchyk has joined #ruby
topriddy has joined #ruby
topriddy has quit [Read error: Connection reset by peer]
thone has joined #ruby
G has joined #ruby
parus has joined #ruby
tommyvyo has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
lggr has joined #ruby
My_Hearing has joined #ruby
My_Hearing has quit [Changing host]
My_Hearing has joined #ruby
^arya^ has quit [Ping timeout: 252 seconds]
Mon_Ouie has quit [Ping timeout: 252 seconds]
jrist-afk is now known as jrist
<Jrz> lol :/
spopescu has joined #ruby
spopescu has left #ruby [#ruby]
<Jrz> this simple test: https://github.com/Prajna/goliath-versus-sinatra-and-node results in thin with synchrony to be the fastests and most stable
fbernier has quit [Read error: Connection reset by peer]
yasushi has joined #ruby
<Jrz> Node only does 260 rps :s.. sin 800, sinsyn 995, goliath fails
pradeepto has joined #ruby
<Jrz> so somethings wrong :s
lggr has quit [Ping timeout: 245 seconds]
[Neurotic] has quit [Read error: Connection reset by peer]
Eplemosen has quit [Quit: NOPE]
<Xeago> how do you measure stableness in those results?
^arya^ has joined #ruby
<Xeago> go for developer efficiency, not single machine efficiency
<Xeago> because you should scale horizontally
nari has quit [Ping timeout: 255 seconds]
omry has quit [Read error: Connection reset by peer]
apok has joined #ruby
yasushi has quit [Remote host closed the connection]
<Jrz> Xeago, well… "Send request failed!"
S1kx has joined #ruby
S1kx has joined #ruby
S1kx has quit [Changing host]
pskosinski has joined #ruby
<Xeago> as in, timeouts?
<Jrz> and socker_recv operation timed out aka failed to complete the test
thone_ has joined #ruby
lledet has quit [Quit: lledet]
<Xeago> I can't call that stableness
<Jrz> well ture, but I'm just running some tests, which should not fail
<Xeago> that will get resolved if you scale horizontally
lggr has joined #ruby
<Xeago> running 'some' tests resulting in a stress test?
machty has quit [Quit: machty]
<Jrz> just any test i can find quickly :)
<Jrz> but what I don't understand is that goliath and node are so slow compared to sinatra
<Xeago> stress testing does not at all measure stabilit
<Xeago> y
<Jrz> no I know
frogprince has quit [Read error: Connection reset by peer]
frogprince has joined #ruby
karstensrage has joined #ruby
karstensrage has quit [Max SendQ exceeded]
bluenemo has joined #ruby
Spooner has joined #ruby
fbernier has joined #ruby
<Xeago> actually, according to the link you posted earlier, gloiath is faster then sinatra+thin
mikekelly has joined #ruby
yalue has joined #ruby
thone has quit [Ping timeout: 240 seconds]
<Jrz> exactly
_karstensrage has joined #ruby
<Jrz> (but I tested both sinatra and sinatra synchrony)
<Xeago> 150010 Jrz: but what I don't understand is that goliath and node are so slow compared to sinatra, how are they slow?
<Jrz> goliath goes 350…
<Jrz> Xeago: Requests per second, Time per request and transfer rate
^arya^ has quit [Ping timeout: 252 seconds]
<Xeago> tbh if I were you, I wouldn't be concerned about this, if you are, ruby is not the language to develop in
<Jrz> Well, it's something that puzzles me.. I'm on a macbook air, which is ofcourse slower than an mpb. And I have some other stuff running.. but I get nowhere near 7000rps
tr4656 has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
<Jrz> Also, is async even neccecary when proxying / balancing behind nginx?
Appineer has joined #ruby
<Xeago> Jrz: no
pu22l3r has quit [Ping timeout: 268 seconds]
<Xeago> and that's the point
<Xeago> it doesn't matter
<Xeago> you scale horizontally, and your looking at vertical scaling at the moment
Appineer has quit [Client Quit]
Appineer has joined #ruby
<Jrz> that's what I thought.. but just a few moments ago, some page stated you should run behind a proxy nginx or haproxy
<Xeago> yup
<Xeago> you should
<Xeago> and those will help you to scale horizontally
<Jrz> I know
jbw has quit [Ping timeout: 240 seconds]
mrdodo has quit [Ping timeout: 246 seconds]
dmiller has quit [Ping timeout: 246 seconds]
<lxsameer> does class variables is like some static variables that shared between all the subclasses and the class itself ?
<hoelzro> lxsameer: class variables are shared between a class and its subclasses, yes
<Jrz> but then the whole async stuff is gone. (except for io waits for file access / network access for lets say db)
^arya^ has joined #ruby
ztirf has quit [Quit: Nettalk6 - www.ntalk.de]
<lxsameer> hoelzro: what about instance variable ? does subclasses inherit the instance variables ?
bluOxigen has quit [Ping timeout: 260 seconds]
<dr_bob> lxsameer: actually only instances have instance variables
<hoelzro> instances of subclasses can access instance variables that a method in a superclass defined, yes
lggr has joined #ruby
<hoelzro> because a Ruby object is "basically" a hash of instance variables
theRoUS_ has joined #ruby
<lxsameer> dr_bob: is there any thing that can be inherited from superclass but not change the super internals ?
<hoelzro> @foo is a property of the object, no matter which class is accessing it
omry has joined #ruby
<dr_bob> instance variables are not immediately part of the class definition as in C++ or Java for example. They spring into existence as a side effect of method execution.
tommyvyo_ has joined #ruby
tommyvyo_ has quit [Changing host]
tommyvyo_ has joined #ruby
<dr_bob> lxsameer: you can always change an instance's layout (in the sense of state stored in instance variables). Ruby is completely dynamic in that area.
jbw has joined #ruby
<lxsameer> dr_bob: aha thanks
carloslopes has joined #ruby
fixl has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
M- has quit [Quit: Leaving]
JohnBat26 has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
ananthakumaran has joined #ruby
<dr_bob> and any instance method can access insance variables created by any other instance method - regardless of the class they are defined in.
manouch has quit [Quit: manouch]
m3pow has joined #ruby
<Xeago> Jrz: yes indeed
<My_Hearing> @instance_variables only check what self currently is and retrieve the instance variable from there. There's no concept of an instance variable belonging to a class or a method, only to an object.
lggr has quit [Ping timeout: 245 seconds]
<Jrz> Ok.. so the benifit would be to scale outgoing requests such as http, some db operations + filesystem, and therefore reduce the need for multiple instances / memory overhead and processes
My_Hearing is now known as Mon_Ouie
<Jrz> But it's still bestpractice to first send the whole response back to nginx, and let that handle slow clients etc
machty has joined #ruby
GoGoGarrett has joined #ruby
yasushi has joined #ruby
gmci has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
lggr has joined #ruby
w400z has joined #ruby
<shevy> HELLO WORLD
<Xeago> goodbye heaven
rjmt_ has quit [Remote host closed the connection]
* Hanmac is now known as WORLD; hello shevy
<gogiel> is it possible to disable autformatiing for part of .rb file in rubymine? is there any markup?
nat2610 has joined #ruby
chussenot has left #ruby [#ruby]
wmoxam_ has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
lggr has joined #ruby
chussenot has joined #ruby
linoj has joined #ruby
<Jrz> Xeago: any pointers on how to do profiling for that slow update?
<Xeago> nope :<
<Xeago> not that experienced with ruby
<Jrz> ah
Appineer has quit [Quit: Mango IRC for iOS, http://mediaware.sk/mango]
axl_ has joined #ruby
<Jrz> hm.. it seems I have other problems: CPU usage: 17.58% user, 16.29% sys, 66.12% idle SharedLibs load averages: 2,46 2,48 2,44
Appineer has joined #ruby
lxsameer has quit [Quit: Leaving]
flype has joined #ruby
digitalcakestudi has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
solirc has left #ruby ["WeeChat 0.3.2"]
<Spooner> gogiel : Why do you need to disable formatting? I don't think I have an answer for you though, although I use Rubymine.
derpops has joined #ruby
jrajav has joined #ruby
<gogiel> Spooner: in one of my files i don't want to format small part of it (it adds unnecesary space in my css.erb). this in the only place
chimay has joined #ruby
prhppd has joined #ruby
yalue has quit [Quit: Leaving]
manouch has joined #ruby
<gogiel> it's very untypical case, but maybe someone.. ;)
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
robustus has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
digitalcakestudi has quit [Ping timeout: 260 seconds]
cantonic has quit [Quit: cantonic]
trevortwining has quit [Remote host closed the connection]
neku has quit [Quit: Linkinus - http://linkinus.com]
kpshek has joined #ruby
<chiel> is there a way to execute a shellscript from ruby?
devdazed has quit [Quit: Bye]
<chiel> i guess i mean "how does one do that"
<chiel> since i'm sure there's a way
Jay_Levitt has joined #ruby
Jay_Levitt has quit [Remote host closed the connection]
<hoelzro> chiel: do you want to just run something? do you want its output?
lggr has quit [Ping timeout: 240 seconds]
darkspe has joined #ruby
workmad3 has joined #ruby
Guest64548 has joined #ruby
JohnBat26 has joined #ruby
<chiel> hoelzro: just running is fine :)
<chiel> it's just an arbitrary shell command really
<hoelzro> chiel: try Kernel#spawn
wmoxam_ has quit [Quit: leaving]
<chiel> cool thanks, will have a look.
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby
uris has joined #ruby
rlb3 has quit [Quit: rlb3]
philcrissman has joined #ruby
<jrajav> chiel: Open3 is pretty sweet too
ffranz has joined #ruby
pskosinski has quit [Quit: Some alternative (not-controlled-by-fu*up-people) Red Eclipse servers: http://altred.tk/list]
ph^ has joined #ruby
lggr has joined #ruby
<chiel> seems there's "`" as well
<chiel> trying to figure out how to use it properly now.
ffranz has quit [Client Quit]
ffranz has joined #ruby
nwest has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
tommyvyo_ is now known as tommyvyo
devdazed has joined #ruby
<chiel> hm it doesn't actually seem to work though, directing stdout to another file.
__class__ has joined #ruby
johnlcox has joined #ruby
<chiel> trying to use it like this: p `#{root}/ui/vendor/mootools-core/build > #{pub}/mootools.js`
<chiel> it creates the file
<chiel> but it has no content.
ly_gs has joined #ruby
asteve has joined #ruby
ph^ has quit [Ping timeout: 260 seconds]
rlb3 has joined #ruby
<heftig> chiel: is your "build" script executable and has a shebang?
lggr has quit [Ping timeout: 246 seconds]
<chiel> yep
<chiel> that script works just fine when I execute it from the command line
shiki has quit [Remote host closed the connection]
<chiel> and i can see the stderr output
deadghost has quit [Ping timeout: 244 seconds]
<heftig> but you want the stdout output?
<workmad3> chiel: what are the values of root and pub?
<chiel> well, in the command I am redirecting the stdout to a file
<chiel> which is what I want to do
<chiel> workmad3: they're directories
<heftig> `
<heftig> `
stopbit has joined #ruby
<workmad3> chiel: yes, but are they definitely correct?
<chiel> workmad3: the command executes, and the file is created in the correct location.. but the file has no contents.
<chiel> yep
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
flip_digits has joined #ruby
<heftig> try system() instead
<chiel> they are:
<chiel> "/Users/chiel/src/tinker-client"
<chiel> "/Users/chiel/src/tinker-client/public"
<workmad3> chiel: right... and the build script prints something out on stdout?
<chiel> hmm k, will try system
lledet has joined #ruby
<chiel> workmad3: it prints the built script on stdout (which is why I redirect it to a file), and it prints the build log to stderr
mercwithamouth has joined #ruby
johnjohnson has joined #ruby
elux has joined #ruby
<chiel> seems to work with system
<chiel> I guess I will stick with that. :)
<chiel> heftig: cheers :)
nanderoo has joined #ruby
<chiel> I am curious why `` doesn't work though
<chiel> since it does almost everything correct
sebastorama has joined #ruby
<chiel> just the file it creates has no content
<workmad3> chiel: probably has something to do with how `` sets up stdout for the spawned process
sailias has joined #ruby
<chiel> hmm yeah probably
<chiel> oh well, system works :)
<workmad3> chiel: if you want to use ``, I'd probably suggest you do File.write("#{pub}/mootools.js", `#{root}/...`)
neku has joined #ruby
<chiel> workmad3: I am not attached to `` or anything, was just curious :)
<chiel> system() is just fine by me. :D
<workmad3> ok then :)
<chiel> thanks for the tips though
<workmad3> but yeah, that would be my suspicion, as `` returns the stdout while system() returns true/false and lets stdout go to the terminal output as normal
bbttxu has joined #ruby
ayawaska has joined #ruby
lggr has joined #ruby
ly_gs has quit [Remote host closed the connection]
ly_gs has joined #ruby
<chiel> workmad3: `` also seems to return stderr though
<chiel> since that build scripts prints a log to stderr (since it uses stdout for the file contents)
peteyg_ has quit [Ping timeout: 260 seconds]
boris317 has joined #ruby
wuzzzzaah has quit [Ping timeout: 244 seconds]
<chiel> damn, symlink isn't idempotent
manouch has quit [Quit: manouch]
<chiel> I didn't expect it to be, but you can hope.. :p
lggr has quit [Ping timeout: 256 seconds]
joshman_ has joined #ruby
ltsstar has quit [Ping timeout: 240 seconds]
nacengineer has quit [Quit: Leaving.]
Mon_Ouie has quit [Ping timeout: 260 seconds]
ly_gs has quit [Ping timeout: 255 seconds]
wuzzzzaah has joined #ruby
elsifaka has quit [Read error: No route to host]
^arya^ has quit [Ping timeout: 240 seconds]
elsifaka has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
jrajav has quit []
internet_user has joined #ruby
pricees has joined #ruby
lggr has joined #ruby
^arya^ has joined #ruby
Drewch has joined #ruby
cakehero has joined #ruby
lkba has joined #ruby
<shevy> what means idempotent
lggr has quit [Ping timeout: 244 seconds]
nateberkopec has joined #ruby
<heftig> shevy: repeated application doesn't change the result
<chiel> shevy: means you can execute something multiple times, but it won't have an effect if the effects of the function have already come true
<chiel> yes
<chiel> what heftig said xD
<chiel> much shorter + sweeter.
<shevy> oh cool
mohits has quit [Ping timeout: 256 seconds]
<heftig> e.g. def foo; @a = 3; end
<shevy> I like the sound it has... it sounds powerful :)
<heftig> calling foo multiple times has the same effect as calling it once
Spring_MT has joined #ruby
<chiel> :D
<shevy> reminds me of homer simpson, trying to get something and failing at that again and again
<Xeago> shevy: :)
<chiel> hah :)
<chiel> hm
<chiel> when I use system(), is there any way to suppress the stderr being output to the cli?
<hoelzro> chiel: 2>/dev/null
ttt has quit [Remote host closed the connection]
<chiel> hoelzro: ah yeah I can just put that in the command... duh.
<chiel> thanks :)
Spring_MT has left #ruby ["Leaving..."]
<hoelzro> ;)
<chiel> hoelzro: in my defense, I didn't sleep last night!
flip_digits has quit [Quit: Computer has gone to sleep.]
Morkel has joined #ruby
<hoelzro> chiel: I miss the obvious *all* the time =)
<shevy> /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0: undefined reference to `PEM_read_bio_X509_AUX@OPENSSL_1.0.0'
blackbox has joined #ruby
<shevy> I like linux. there is always funny error messages
iocor has joined #ruby
dhruvasagar has quit [Ping timeout: 255 seconds]
tommyvyo has quit [Ping timeout: 268 seconds]
<canton7> shevy, you'll love PHP then. "Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM"
<shevy> hahaha
<shevy> oh man
<canton7> I believe they changed that after a lot of complaints...
<chiel> hoelzro: phew ;D
iori has quit [Remote host closed the connection]
futoase has quit [Read error: Connection reset by peer]
<heftig> canton7: not yet, i think
<canton7> really? awwww
jenrzzz has joined #ruby
lggr has joined #ruby
mbk has quit [Ping timeout: 244 seconds]
CannedCorn has joined #ruby
CannedCorn has quit [Client Quit]
Morkel has quit [Quit: Morkel]
huliax has joined #ruby
ph^ has joined #ruby
dhruvasagar has joined #ruby
johnjohnson has quit []
mohits has joined #ruby
Morkel has joined #ruby
tommyvyo has joined #ruby
freeayu has quit [Remote host closed the connection]
jasonkuhrt has joined #ruby
chimkan has joined #ruby
bobbbo has joined #ruby
PragCypher has joined #ruby
lggr has quit [Ping timeout: 255 seconds]
johnjohnson has joined #ruby
_darkspe_ has joined #ruby
tagrudev has quit [Remote host closed the connection]
chendo has quit [Ping timeout: 252 seconds]
chendo has joined #ruby
mercwithamouth has quit [Ping timeout: 248 seconds]
Zuperbot has joined #ruby
darkspe has quit [Ping timeout: 244 seconds]
pu22l3r has joined #ruby
neku has quit [Ping timeout: 245 seconds]
lggr has joined #ruby
roflmaus has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
pricees_ has joined #ruby
<huliax> Anyone out there help me with a namespace / constant declaration thing?
xyzodiac has joined #ruby
jokar has joined #ruby
tommyvyo has quit [Ping timeout: 240 seconds]
pu22l3r has quit [Read error: Connection reset by peer]
* jokar hello all
pu22l3r has joined #ruby
<jokar> How can i speak with an ruby Expert ?
Nisstyre has quit [Ping timeout: 245 seconds]
jasond has joined #ruby
quest88 has joined #ruby
^arya^ has quit [Ping timeout: 245 seconds]
tommyvyo has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
* jokar anybody here?
Yomero_ has joined #ruby
ABK has quit [Ping timeout: 244 seconds]
<canton7> yeah, but we tend to only answer actual questions :P
<jokar> excuse me,i have some personal question
und3f has quit [Quit: Leaving.]
<jokar> and i know a ruby expert can answer it
<Hanmac> shevy is one :'P
mrdodo has joined #ruby
<Hanmac> huliax whats your problems with constants?
<jokar> Hanmac: is he expert?
<hoelzro> jokar: yes
jenrzzz has quit [Ping timeout: 268 seconds]
mrdodo_ has joined #ruby
<huliax> hey, thanks. coworker just came in and helped me out. thanks.
<huliax> its hard to be the early guy...
Speed has joined #ruby
Speed has quit [Changing host]
Speed has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
<jokar> is he here?
huliax has left #ruby [#ruby]
savage- has quit [Remote host closed the connection]
fantazo has joined #ruby
<hoelzro> jokar: yes
<Hanmac> jokar yeah he is *g
<jokar> hoelzro: is he here?
^arya^ has joined #ruby
lggr has joined #ruby
<jokar> *g ?
bobbbo has quit [Quit: bb]
<jokar> shevy : Hi,are you here?
sec has joined #ruby
mrdodo has quit [Ping timeout: 256 seconds]
darkspe has joined #ruby
bbttxu has quit [Quit: bbttxu]
quest88 has quit [Quit: quest88]
ttt has joined #ruby
* Hanmac is an ruby expert too but i woudnt tell someone that
<Xeago> jokar: ask, or be gone
sec has quit [Quit: Leaving]
_darkspe_ has quit [Ping timeout: 240 seconds]
lggr has quit [Ping timeout: 244 seconds]
machty has quit [Quit: machty]
metrix has joined #ruby
GoldenCider has joined #ruby
jschairb has joined #ruby
wuzzzzaah has quit [Ping timeout: 248 seconds]
Appineer has quit [Remote host closed the connection]
jgarvey has joined #ruby
<metrix> Is there a child_of? method or something similar for directories? I am looking at the dir and pathname objects and can't find anything.. I wan't do do something like Dir('/test/dir/here').child_of?('/test/) => true
<canton7> #start_with? :P
gfontenot has joined #ruby
carloslopes has quit [Ping timeout: 244 seconds]
jjbohn has joined #ruby
blackbox has quit [Quit: 暂离]
<metrix> I don't see a start with..
<metrix> :(
chimkan has quit [Remote host closed the connection]
chimkan has joined #ruby
<canton7> it's a string method
ttt has quit [Ping timeout: 260 seconds]
<metrix> ahh
horofox has joined #ruby
lggr has joined #ruby
<metrix> I like it! thank you
<metrix> I was about to write something to do that.. I'm glad I asked!
<canton7> obviously, potential problems with absolute/relative paths
<canton7> File#expand_path might be handy
johnjohnson has quit []
rjmt_ has joined #ruby
idletom has joined #ruby
johnjohnson has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
<adac> How can I tell open uri to disable certificate check
davidcelis has quit [Quit: K-Lined.]
<canton7> OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE is one way
<Hanmac> jo*ar seems to be a troll ... and if not he looks like that
zombor has joined #ruby
<canton7> raises a warning though, and I'm after a better way if there is one
pu22l3r has quit [Remote host closed the connection]
<zombor> why does this happen? CGI.parse("Body=accept+123&From=6148061628") => {"Body"=>["accept 123"], "From"=>["6148061628"]}
<zombor> i would have expected: {"Body"=>"accept 123", "From"=>"6148061628"}
johnjohnson has quit [Client Quit]
jrist is now known as jrist-mtg
RubyPanther has quit [Ping timeout: 240 seconds]
<adac> canton7, is there no way to do it like this (pseudo code) Nokogiri::HTML(open(url, verify_certificate => NONE).read)
pskosinski has joined #ruby
Criztian has joined #ruby
<canton7> adac, not sure. I haven't seen one, but doesn't mean one doesn't exist
devdazed has quit [Quit: Bye]
lggr has joined #ruby
dr_bob has quit []
johnjohnson has joined #ruby
dbck has joined #ruby
atmosx has joined #ruby
<atmosx> hello
dmiller has joined #ruby
mohits has quit [Ping timeout: 240 seconds]
<atmosx> guys, I'm using unicorn + nginx on a local server for fun mostly... running an octopress blog. On nginx's access log I can see lot's of (like a huge amount) of requests for phpmyadmin, and other php-buggy software.
<hoelzro> atmosx: oh, I have that same issue.
<Xeago> atmosx: that is so normal nowadays ;p
<atmosx> hm Since these request's can be handled by unicorn is it possible to run a pf (I'm using PF firewall) ? I mean, it must be right?
<Xeago> you're fine as long as you don't run such software
<atmosx> without having to monitor the log file
<atmosx> Xeago: yeah, it's only me I don't have users on that headless low consumption box, but still... since there's something smarter than unicorn at the backend
<hoelzro> atmosx: I was thinking of setting up a fail2ban rule for such entries
<atmosx> I think it's possible to write a software the bans everything as they make the idiotic request.
<canton7> yeah, fail2ban is great at things like that
lggr has quit [Ping timeout: 240 seconds]
<atmosx> hoelzro: I was using fail2ban but it's memory intensive, I'm looking for a solution that will use the *currently use* resources
<atmosx> unicorn is running alreay.
<atmosx> canton7: fail2ban reads httpd's log file.. it monitors a log file all the time
<hoelzro> atmosx: fail2ban is memory intensive?
arturaz has quit [Ping timeout: 252 seconds]
<shevy> Hanmac man dont redirect the folks to PRIVMSG me ;<
<atmosx> hoelzro: yes, compared to pf-only it is...
<atmosx> surelly is
<hoelzro> atmosx: compared to pf, sure
<canton7> atmosx, that's right. fail2ban is currently using about 4 megs of memory on my machine
^arya^ has quit [Ping timeout: 248 seconds]
carloslopes has joined #ruby
<hoelzro> it's taking like half a meg on mine atm
^arya^ has joined #ruby
<canton7> and it's useful to have it running, monitoring ssh anyway :P
fastred has joined #ruby
<atmosx> anyway, you think it's possible for unicorn to read the requests and upade pf tables?
<atmosx> canton7: I do that using pf only
fastred has quit [Client Quit]
<atmosx> I wrote this for fail2ban some time ago to monitor stats https://github.com/atmosx/f2bread
<shevy> guys
<atmosx> but I won't use fail2ban on the ebox anymore
<shevy> http://pastie.org/4754117 <-- are these two examples functionally equivalent? i.e. are they the same?
chimay has quit [Quit: WeeChat 0.3.9-rc1]
<atmosx> canton7: if you care about statistics then fail2ban is better than pf only... if you don't care about them, then pf is fine...
<Xeago> shevy: no
pskosinski has quit [Quit: Some alternative (not-controlled-by-fu*up-people) Red Eclipse servers: http://altred.tk/list]
trevortwining has joined #ruby
<atmosx> does loop ever end?
<canton7> shevy, the top one quits when Readline.readline returns something falsy
<hoelzro> shevy: I think loop won't end in that case
<Xeago> you have to write the break for loop yourself
manouch has joined #ruby
* atmosx thinks so too, although never used loop.
<shevy> ah
<Xeago> I discourage use of loop, it moves the conditions for ending the loop to weird places
<shevy> I see
<atmosx> any cool weechat theme?
lggr has joined #ruby
<jokar> shevy: can you answer my pm?
<Xeago> jokar: ask here
<Xeago> or please
<Xeago> go away
w400z has quit []
maesbn has quit [Remote host closed the connection]
<jokar> Xeago: i need a Person for teaching me
s1n4 has quit [Quit: leaving]
pskosinski has joined #ruby
<Xeago> then ask here
<atmosx> jokar: and you bug shevy ?
<shevy> jokar no, ask here
<Xeago> atmosx: does it run in terminal?
<atmosx> Xeago: who?
<Xeago> weechat
br4ndon has joined #ruby
<shevy> yeah
<jokar> shevy: i want know,is ruby hard?
<atmosx> weechat? sure
machty has joined #ruby
<shevy> jokar have you been using another programming language before ruby
ph^ has quit [Remote host closed the connection]
Goles has joined #ruby
<jokar> shevey :yes
<jokar> i work with C\C++ but not expert
ph^ has joined #ruby
<shevy> jokar then it should not be too hard. work through http://pine.fm/LearnToProgram/?Chapter=01 and use irb
roflmaus has quit []
<atmosx> Xeago: : http://d.pr/i/4yrw
<shevy> it will teach you the basics of ruby
<jokar> why many hacking tools written in ruby
<Xeago> lol
lggr has quit [Ping timeout: 240 seconds]
<atmosx> C\C++ are awesome, if you are an expert.
<Xeago> that theme is fine, shevy
<atmosx> jokar: I doubt many hacking tools are written in ruby.
<Xeago> why you looking for another theme?
<shevy> afterwards, you should look at the official documentation for class Hash, class Array and class String. These are the most important... read through the names of all methods twice, then try to understand at least 30% http://www.ruby-doc.org/core-1.9.3/Hash.html http://www.ruby-doc.org/core-1.9.3/String.html http://www.ruby-doc.org/core-1.9.3/Array.html
<atmosx> jokar: I seriously do... maybe some lame web-vuln scanner, and okay some portions of metasploit
<atmosx> actually all of it.
* atmosx takes the 1st statement back
<shevy> jokar ruby is an elegant language
<Xeago> atmosx: metasploit only tests and proves bugs
<Xeago> it doesn't hack
<shevy> I have no idea what unspecified "hacking tools" you mean...
<jokar> like metasploit
<Xeago> prolly scriptkiddie stoff
<atmosx> Xeago: dunno, personalization is the first I do when I get my hand on new software.
rjmt_ has quit [Remote host closed the connection]
<Xeago> so do I, but that looks good to me, don't like the font though
<shevy> jokar you wrote you use C and C++ but no other scripting language? you never used ANY scripting language at all? lua? php? python? perl?
<atmosx> Xeago: from to time, features non released exploit code..
<mklappstuhl> How would I do something like File.write in 1.9.2
<shevy> :(
<shevy> I'd wish someone would remove metasploit
<shevy> it poisons people
<Spooner> Ruby > C/C++ if executution speed is not important, which it isn't a great deal of the time.
<atmosx> Xeago: I can't think of any other 'hacking tool' written in ruby anyway
<Hanmac> jokar because they can
Speed has left #ruby ["Leaving channel."]
<jokar> no
<atmosx> shevy: well it's a tool. Great tool if you are a security freak.
<shevy> it's not the first time metasploit lures people
<atmosx> shevy: it's like facebook, if you put all people you knew from highschool in your timeline, suddenly sucks.
ABK has joined #ruby
<shevy> becom33 came to #ruby because of metasploit as well
<shevy> hehehehe
<Xeago> atmosx: been using bitstream vera mono sans, I desire it everywhere
<atmosx> jokar: you came because of metasploit?
baphled has joined #ruby
<jokar> No i like ruby
<atmosx> Xeago: I'm not sure I'd like to go as far as switching default terminal fonts...
<jokar> i want learn it
<Xeago> atmosx: what's that in the top left? connections to aws ec2?
<atmosx> I'm good with them :-)
<atmosx> jokar: if you really would want to learn, you would be already doing that.
<atmosx> jokar: instead you're loosing time here plaing idiot
<atmosx> playing <-
<shevy> hehe
<shevy> jokar if you want to learn it, why dont you work through chris pine tutorial already ;)
<jokar> can you offer me a book?
<atmosx> Xeago: I don't use aws, but yes... it's my script which display network connections other than the defaults :-) (dropbox, and some others are kept out)
<shevy> jokar can you START the tutorial man
<Xeago> mind sharing?
ryh has joined #ruby
<atmosx> Xeago: I'm on mac, using little-snitch, for monitoring outgoing connections but watcing what is happening real time helps
<jokar> shevy : if possible please answer my pm
<shevy> or admit that you dont want to learn ruby :)
<atmosx> Xeago: sure, it's a simple bash line
<atmosx> wait
<Xeago> jokar: for $80 an hour, i'll teach you and answer your questions
jprovazn is now known as jprovazn_away
<shevy> if you must use a book use http://pragprog.com/book/ruby/programming-ruby
<shevy> yeah
<jokar> shevy : can i talk to you tomorrow ?
pu22l3r has joined #ruby
<shevy> talk here in #ruby jokar
<mklappstuhl> any ideas regarding File.write?
insulator has joined #ruby
<jokar> some my questions are silly
ryh has quit [Remote host closed the connection]
<jokar> some of*
<shevy> if you are ashamed of them, do not ask them
<jokar> this room for expert and i'm a beginner
trevortwining has quit [Quit: trevortwining]
<hoelzro> jokar: this room is for everyone
<hoelzro> I'm a beginner too
<jokar> :)
<atmosx> xargoon: https://gist.github.com/3750265 ... I use GeekTool on macosx
<Spooner> mklappstuhl : File.write should be the same in 1.9.2 (by the way, 1.9.3 is the current and basically fixes 1.9.2).
<shevy> this room is for everyone
xyzodiac has quit [Ping timeout: 244 seconds]
<Xeago> atmosx: http://cl.ly/image/2x2f3E3W3D2j my layout
RubyPanther has joined #ruby
<jokar> shevy : is book good for beginner too?
workmad3 has quit [Ping timeout: 268 seconds]
<Spooner> mklappstuhl : What _exactly_ is your problem?
<shevy> yeah
<Xeago> jokar: we wouldn't have told you otherwise
<shevy> but you don't want to learn jokar
larissa has quit [Quit: Leaving]
<mklappstuhl> Spooner, afaik File.write does not exist in 1.9.2 : http://www.ruby-doc.org/core-1.9.2/File.html
<jokar> i want
<Xeago> jokar: you sound like an 8 year old
<jokar> i'm serious
<atmosx> xargoon: I use this one too https://gist.github.com/3750268 ... for info, external ip, internal ip, uptime and active network connections
<shevy> whoa Xeago that looks cool
<jokar> hehe
<jokar> Thank you
<Xeago> what exactly looks cool atmosx?
<shevy> 8 years is good to start programming
<mklappstuhl> Spooner, exact problem is that we run on heroku with 1.9.2 and use File.write. But apparently my coworker fixed it a few minutes ago (he didnt tell me yet)
<jokar> shevy : :)
<Xeago> atmosx: you use bash?
mucker has joined #ruby
<Spooner> mklappstuhl : You don't use File.write directly, you do File.open("bleh", "w") {|f| f.write "bleh" }
<shevy> Xeago, haha man... if you could look at what shit I run right now... a really AWFUL fluxbox theme, I cant make out much with it
notVert has quit [Read error: Connection reset by peer]
<Spooner> mklappstuhl : The #write method is in IO, not File itself.
flype has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
<Xeago> shevy: please share
GoldenCider has quit [Quit: GoldenCider]
<Xeago> always interested in other peoples work environment
aganov has quit [Remote host closed the connection]
lggr has joined #ruby
w400z has joined #ruby
<atmosx> shevy: actually, my gentoo fluxbox theme was ... awesomly cool. My friends kept stairring at the screen expecting morpheus to come out :_P
<sagax> i love ruby
<asteve> i love lamp
<asteve> the device that brings light, not the acronym representing a software stack
<atmosx> Xeago: oh-my-zsh on mac, bash where oh-my-zsh is not possible due to memory limitations
<Xeago> memory limitations :O?
<atmosx> Xeago: http://d.pr/i/pZsK
<mklappstuhl> Spooner, File.write(csv_file, Zlib::GzipReader.open(zip,&:read))
<Xeago> I experience zsh to be memory efficient
wuzzzzaah has joined #ruby
<atmosx> Xeago: yes
ph^ has quit [Remote host closed the connection]
<atmosx> Xeago: hmmm you don't seem to have access to many embedded devices :-P
<atmosx> Xeago: you know what a bifferboard is?
ph^ has joined #ruby
chrishunt has quit [Ping timeout: 244 seconds]
<Xeago> atmosx: ah in that case :)
blazes816 has joined #ruby
<atmosx> or an ebox 3350mx? try running zsh + oh-my-zsh scripts ... it will become unsusable
<Xeago> no, smallest I still work on is a machine with 128mb's
<atmosx> I mean a livinghell on cli
Jrz has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
chimay has joined #ruby
monsieurlu has joined #ruby
workmad3 has joined #ruby
<Xeago> atmosx: what's on the right of the spotlight icon, and hell your top is crowded with stuff
monsieurlu has quit [Client Quit]
`brendan has joined #ruby
acrocity has quit [Quit: leaving...]
<Spooner> mklappstuhl : Oh! File.write is actually in 1.9.3, since I just checked, so it is a documentation fail. Still slightly confused why it failed in 1.9.2 then.
<atmosx> Xeago: osx notifications, they suck big time
<atmosx> Xeago: but still...
<Xeago> mountain lion?
<atmosx> Xeago: yes
lggr has quit [Ping timeout: 240 seconds]
<atmosx> I'm on a macbook air SSD 256 4 GB ram, u?
wuzzzzaah has quit [Ping timeout: 256 seconds]
<Xeago> I don't see improvements in ML, will flash my current lion install on every new machine I get
<Xeago> mbp 2.6ghz 6 gigs of ram (bought 2*4, logicboard couldn't handle 2 sims of 1.3ghz)
<mklappstuhl> Spooner, umm... The documentation I sent you was 1.9.2...
ABK has quit [Read error: Connection reset by peer]
<atmosx> well, it's stable I had only 1 crash since it acme out
<atmosx> but it's not *that* big improvement...
<mklappstuhl> Spooner, and it wasn't inside so no documentation fail
Xeago has quit [Read error: Connection reset by peer]
xyzodiac has joined #ruby
<atmosx> I mean I could live with lion easilly, the notifications are not as they should. They will surelly improve in the next future
mrdodo has joined #ruby
slicslak has joined #ruby
ABK has joined #ruby
Xeago has joined #ruby
<Spooner> mklappstuhl : Yes, but it isn't documented in 1.9.2 or 1.9.3 docs, yet it exists in actual 1.9.3, so I am assuming it is in 1.9.2 too.
<Xeago> and I literally pulled my internet out of my laptop lol
EvanR has joined #ruby
lggr has joined #ruby
xpen has joined #ruby
ABK has quit [Read error: Connection reset by peer]
<atmosx> I see
artOfWar has quit [Remote host closed the connection]
<atmosx> I wish macbook would take any soft of ram extensions for future reference but...
<mklappstuhl> Spooner, it's not in 1.9.2 — its new in 1.9.3
ABK has joined #ruby
dr_bob has joined #ruby
<Xeago> atmosx: why use vim in terminal, considered macvim?
<atmosx> anyway, can unicorn/passenger/others handle http requests in a way to issue cli commands?
mrdodo_ has quit [Ping timeout: 268 seconds]
savage- has joined #ruby
<atmosx> Xeago: yes, I have it installed but I'm using terminal really too much.
<atmosx> the good thing about macvim is that is compiled with everything added
<Xeago> aight, meh, command-T wasn't easy to install
<atmosx> anyway have to go clean up!
<atmosx> Xeago: nice talking to you!
<Xeago> atmosx: take a look at totalterminal
<atmosx> cya later all
<Xeago> it's like a quake style console
JustinCampbell has joined #ruby
<atmosx> totalterminal? okay
<Xeago> single hotkey for a terminal window everywhere
hoelzro is now known as hoelzro|away
lggr has quit [Ping timeout: 260 seconds]
<Xeago> full screen, right side (like me), top and others
workmad3 has quit [Ping timeout: 248 seconds]
ken_barber has joined #ruby
<atmosx> seems pretty cool
mengu has quit [Read error: Connection reset by peer]
elsifaka has quit [Quit: Veloma e!]
workmad3 has joined #ruby
rjmt_ has joined #ruby
<Xeago> atmosx: it is :)
dr_bob has quit [Quit: Leaving.]
lggr has joined #ruby
Targen has joined #ruby
wallerdev has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
dmiller has quit [Ping timeout: 248 seconds]
h4mz1d has joined #ruby
mbk has joined #ruby
frogprince_mac has joined #ruby
ttt has joined #ruby
pradeepto has quit [Changing host]
pradeepto has joined #ruby
yshh has quit [Remote host closed the connection]
dmiller has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
SCommette has joined #ruby
mklappstuhl has quit [Ping timeout: 252 seconds]
Agis__ has joined #ruby
matled has joined #ruby
ttt has quit [Ping timeout: 240 seconds]
eignerchris has joined #ruby
spopescu has joined #ruby
spopescu has left #ruby [#ruby]
ananthakumaran has quit [Quit: Leaving.]
joephelius has joined #ruby
ABK has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
carloslopes has quit [Quit: Leaving.]
ABK has joined #ruby
mikepack has joined #ruby
rlb3 has quit [Quit: rlb3]
w400z has quit []
w400z has joined #ruby
<zaargy> SDFSADAFASDFDSFADSFASDFASDf
<zaargy> opps. sorry. lag.
lggr has joined #ruby
br4ndon has quit [Ping timeout: 246 seconds]
br4ndon has joined #ruby
h4mz1d has quit [Ping timeout: 260 seconds]
theRoUS_ has quit [Ping timeout: 252 seconds]
TNTshop has quit [Quit: Leaving]
voodoofish430 has joined #ruby
hbpoison has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
ABK has quit [Read error: Connection reset by peer]
yasushi has quit [Remote host closed the connection]
ABK has joined #ruby
rmcafee has joined #ruby
xpen has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 260 seconds]
davidpk has joined #ruby
davidpk has left #ruby [#ruby]
Vic has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
hemanth has quit [Read error: Connection reset by peer]
lggr has joined #ruby
hemanth has joined #ruby
<chetan-> anyone have experience packaging ruby itself (and gems) with an app for distribution?
idletom has quit [Ping timeout: 245 seconds]
Eldariof18-ru has quit [Ping timeout: 252 seconds]
joofsh has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
rippa has joined #ruby
yalue has joined #ruby
theRoUS_ has joined #ruby
aldodelgado has joined #ruby
brahman_work has left #ruby [#ruby]
h4mz1d has joined #ruby
apok has quit [Quit: apok]
_darkspe_ has joined #ruby
maletor has joined #ruby
AlbireoX has quit [Remote host closed the connection]
ABK has quit [Read error: Connection reset by peer]
chrishunt has joined #ruby
lggr has joined #ruby
darkspe has quit [Ping timeout: 240 seconds]
sn0wb1rd has quit [Quit: sn0wb1rd]
bluenemo has quit [Read error: Connection timed out]
joofsh has quit [Ping timeout: 245 seconds]
Iszak has quit [Quit: User has gone to sleep.]
Vic has left #ruby [#ruby]
insulator has quit [Ping timeout: 276 seconds]
flip_digits has joined #ruby
bluenemo has joined #ruby
hbpoison has quit [Ping timeout: 255 seconds]
deadghost has joined #ruby
artOfWar has joined #ruby
zz_chrismcg is now known as chrismcg
artOfWar has quit [Remote host closed the connection]
sspiff has quit [Ping timeout: 252 seconds]
artOfWar has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
Nisstyre has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
Targen has quit [Ping timeout: 248 seconds]
matthewrobbins has quit [Ping timeout: 252 seconds]
darkspe has joined #ruby
deadghost has quit [Ping timeout: 244 seconds]
jrist-mtg is now known as jrist
_darkspe_ has quit [Ping timeout: 244 seconds]
bradhe has joined #ruby
linusoleander has joined #ruby
yxhuvud has joined #ruby
<linusoleander> This is a bit strange. I've this script https://gist.github.com/018ff6e7e4c2ad831269
<linusoleander> The problem is that isn't using ruby 1.8.7, not 1.9.3 that is my default ruby version
<linusoleander> Any one knows why?
Nisstyre has quit [Max SendQ exceeded]
<linusoleander> Sorry, it is using 1.8.7 when it should use 1.9.3
darkspe has quit [Ping timeout: 255 seconds]
stkowski has joined #ruby
xyzodiac has joined #ruby
atmosx has quit [Quit: WeeChat 0.3.8]
sn0wb1rd has joined #ruby
sepp2k1 has joined #ruby
sepp2k has quit [Ping timeout: 252 seconds]
headius has joined #ruby
dbck has quit [Quit: Be back later]
adac has quit [Quit: Leaving]
<Hanmac> linusoleander do you use rvm?
<linusoleander> Yes
shevy has quit [Ping timeout: 256 seconds]
<Hanmac> thats maybe the problem :D
jgrevich has joined #ruby
<linusoleander> Okay, but why is it happening ?
wallerdev has joined #ruby
<Hanmac> when you open a shell, and do "ruby -v" what does it show to you?
<linusoleander> Hanmac: 1.9.3
<linusoleander> It's loading the correct version outside my script
<Hanmac> and "env ruby -v" ?
jerrad has joined #ruby
ABK has joined #ruby
lggr has joined #ruby
<linusoleander> Hanmac: Same as ruby -v
rjmt_ has quit [Ping timeout: 245 seconds]
F1skr has quit [Quit: WeeChat 0.3.8]
rjmt_ has joined #ruby
jenrzzz has joined #ruby
canton7 has quit [Remote host closed the connection]
canton7 has joined #ruby
<Hanmac> hm that is wondering ... you should ask in #rvm
aldodelgado has quit [Quit: aldodelgado]
h4mz1d has quit [Ping timeout: 260 seconds]
<linusoleander> Hanmac: Yeah, thanks
senny has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 240 seconds]
mahmoudimus has joined #ruby
<Xeago> linusoleander: move the script to some other directory
<Xeago> and try again
<Xeago> e.g. to ~
h4mz1d has joined #ruby
carloslopes has joined #ruby
<linusoleander> Xeago: It works when I'm trying to execute the script directly with ruby
<linusoleander> ruby my-script
DrShoggoth has quit [Quit: Leaving]
<linusoleander> ./my-script
<linusoleander> that works to
insulator has joined #ruby
<linusoleander> It does not work when I'm trying to add the script to a gem
<Hanmac> linusoleander: "gem env" does it links to the right ruby?
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
khakimov has joined #ruby
<linusoleander> Hanmac: Yes, it does
chimay has quit [Quit: WeeChat 0.3.9-rc1]
<linusoleander> I've added the script to the bin folder
darkspe has joined #ruby
blazes816 has quit [Quit: blazes816]
lggr has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
chimkan has quit [Quit: chimkan]
shevy has joined #ruby
slicslak has quit [Ping timeout: 240 seconds]
alvaro_o has joined #ruby
mrdodo has quit [Read error: Connection reset by peer]
Juul has quit [Ping timeout: 245 seconds]
sinful has quit [Ping timeout: 260 seconds]
pskosinski has quit [Remote host closed the connection]
rjmt_ has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 244 seconds]
h4mz1d has quit [Ping timeout: 244 seconds]
bradhe has quit [Read error: Connection reset by peer]
apok has joined #ruby
jasonkuhrt has quit [Quit: Leaving...]
ttt has joined #ruby
mrdodo has joined #ruby
Nisstyre has joined #ruby
Zuperbot has quit [Ping timeout: 240 seconds]
blazes816 has joined #ruby
pskosinski has joined #ruby
peteyg_ has joined #ruby
imami|afk is now known as banseljaj
rjmt_ has joined #ruby
kuyatzu has joined #ruby
kuyatzu has left #ruby ["WeeChat 0.3.2"]
skogis has joined #ruby
Vainoharhainen has quit [Quit: Leaving...]
ttt has quit [Ping timeout: 260 seconds]
lggr has joined #ruby
statarb3 has quit [Ping timeout: 256 seconds]
wpaulson has joined #ruby
bluenemo has quit [Ping timeout: 244 seconds]
PragCypher has quit [Read error: Connection reset by peer]
PragCypher has joined #ruby
BIGX333 has quit [Ping timeout: 248 seconds]
metrix has quit [Quit: ChatZilla 0.9.88.2 [Firefox 15.0.1/20120905151427]]
mrsolo has joined #ruby
chrismcg is now known as zz_chrismcg
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
pk1001100011 has joined #ruby
tyfighter has joined #ruby
lggr has joined #ruby
pk1001100011 has quit [Client Quit]
berkes has quit [Quit: Ex-Chat]
darkspe has quit [Ping timeout: 240 seconds]
mmitchell has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
S1kx has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
<lxsameer> what does this mean? "%w{ Spring Summer Autumn Winter }"
ncr100 has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
<deryl> populates a hash with each word (splits on whitespace)
elaptics is now known as elaptics`away
ABK has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 252 seconds]
<Xeago> not an array?
<Hanmac> lxsameer its the same as ["Spring","Summer","Autumn", "Winter"]
<Hanmac> deryl its an Array not an Hash :P
ABK has joined #ruby
<lxsameer> Hanmac: i know but how it works?
Agis__ has quit [Quit: Agis__]
<Xeago> yes it does
<deryl> err array sorry
<deryl> Hanmac: yeah my mistake
hadees has quit [Quit: hadees]
<deryl> but i am correct in that it splits on the whitespace (space is considered a whitespace)
Spooner has quit [Ping timeout: 240 seconds]
ewag has joined #ruby
chimay has joined #ruby
w400z has quit [Quit: Computer has gone to sleep.]
ncamargo has joined #ruby
prhppd has quit [Remote host closed the connection]
hiroyuki has joined #ruby
williamcotton has joined #ruby
lggr has joined #ruby
Goles has quit [Remote host closed the connection]
machty has quit [Read error: Connection reset by peer]
banisterfiend` has quit [Read error: Connection reset by peer]
machty has joined #ruby
insulator has quit [Remote host closed the connection]
banisterfiend` has joined #ruby
rlb3 has joined #ruby
deadghost has joined #ruby
banisterfiend` has quit [Read error: Connection reset by peer]
insulator has joined #ruby
etehtsea has joined #ruby
etehtsea is now known as Guest13961
lggr has quit [Ping timeout: 246 seconds]
LuShIoUs is now known as kranka
dpk has quit [Quit: Asleep at the keyboard.]
banisterfiend` has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
TomJ has quit [Quit: TomJ]
kranka is now known as lushious
banisterfiend` has quit [Read error: Connection reset by peer]
geekbri has joined #ruby
ABK has quit [Read error: Connection reset by peer]
GoldenCider has joined #ruby
ABK has joined #ruby
<shevy> lxsameer it works that the ruby parser sees it and does the corresponding thing
Guest13961 is now known as etehtsea
manouch has quit [Ping timeout: 244 seconds]
banisterfiend` has joined #ruby
jso has quit []
sagax has quit [Ping timeout: 240 seconds]
<shevy> rb_block_call(obj, id_each, 0, 0, ENUMFUNC(all), (VALUE)&result);
banisterfiend` has quit [Read error: Connection reset by peer]
<shevy> no idea where the %w syntax is
chimkan has joined #ruby
ABK has quit [Read error: Connection reset by peer]
<reactormonk> shevy: I think that is converted by the parser
mark_locklear has quit [Remote host closed the connection]
hadees has joined #ruby
<shevy> hmm... would it be in parse.y ? that lexer stuff confuses me
mucker has quit [Quit: leaving]
ABK has joined #ruby
<shevy> that lex.c file alone is scary... it starts with
<shevy> #if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
<shevy> and 25 more lines like this
<shevy> :\
banisterfiend` has joined #ruby
<shevy> this is cool though... the ruby keywords
<shevy> #line 19 "defs/keywords" {"break", {keyword_break, keyword_break}, EXPR_MID},
NimeshNeema_ has quit []
dpk has joined #ruby
stephenjudkins has joined #ruby
NimeshNeema has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
sebastorama has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
Russell^^ has joined #ruby
peteyg_ has quit [Ping timeout: 252 seconds]
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
peteyg_ has joined #ruby
adeponte has joined #ruby
darkspe has joined #ruby
lxsameer has quit [Quit: Leaving]
ABK has quit [Read error: Connection reset by peer]
slicslak has joined #ruby
ABK has joined #ruby
tchebb has joined #ruby
sspiff has joined #ruby
sspiff has quit [Changing host]
sspiff has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
friskd_ has joined #ruby
jjbohn is now known as long_john_bohn
jschairb has quit [Read error: Operation timed out]
baphled has quit [Read error: Connection reset by peer]
lggr has joined #ruby
Vinzgore has joined #ruby
<Vinzgore> Hello !
jso has joined #ruby
<shevy> Vinzgore hola que tal
<Vinzgore> Hehe, I don't speak spanish very well
Xeago has quit [Ping timeout: 252 seconds]
friskd has quit [Ping timeout: 252 seconds]
friskd_ is now known as friskd
<Vinzgore> Pero
<reactormonk> shevy: likely.
<Vinzgore> ¿Bien y tú?
Goles has joined #ruby
bricker has joined #ruby
<shevy> Vinzgore mi perro es un gato
<Vinzgore> Perro = Dog
<Vinzgore> But pero = but no ?
w400z has joined #ruby
<shevy> I am trying to desperately forget spanish so I can learn italian !
dmiller has quit [Remote host closed the connection]
<shevy> Vinzgore you learn ruby?
<Vinzgore> Yup
insulator has quit [Ping timeout: 276 seconds]
<Vinzgore> I just made a bot for IRC in ruby :)
<Vinzgore> And while browsing the list, i found this chan
<Vinzgore> So i though i would take a look :)
lggr has quit [Ping timeout: 248 seconds]
<shevy> haha
<shevy> we all start that way
<invisime> Vinzgore: did you use the cinch gem?
<Vinzgore> Nope
ABK has quit [Read error: Connection reset by peer]
<canton7> this and #ruby-lang are more or less help channels with random banter :P
<shevy> my first project also was an IRC bot in ruby
<canton7> same!
<invisime> same.
<shevy> ironically I wrote one in php and it did not work well
<Vinzgore> I just use sockets and open-uri
<invisime> of course, it was 5 or 6 years ago now. XD
<canton7> didn't use any framework though
<shevy> when I switched to ruby, it took me only some days before it was working
<Vinzgore> shevy: Same here
ABK has joined #ruby
<canton7> heh, I wrote an smtp/pop3 server pair in php. *that* was bad
stuartrexking has joined #ruby
<Vinzgore> But mine worked like a charm in PHP
<shevy> hehe
<Vinzgore> But i was to heavy
<shevy> well, PHP never really made "click" in my head
<Vinzgore> And php is not the best language to make an IRC bot
chimay has quit [Quit: WeeChat 0.3.9-rc1]
<canton7> or any sort of bot
adeponte has quit [Remote host closed the connection]
<Vinzgore> too*
<shevy> hehe
mrdodo has quit [Remote host closed the connection]
<shevy> PHP is still more popular than ruby :(
<Vinzgore> Unfortunately
<Vinzgore> I find Ruby much better :)
<asteve> ruby is leaps and bounds better than php
<shevy> The WWW must be the main evolution factor for programming languages these days
<asteve> but don't try to deal with multiple encodings, it's a nightmare on 1.9.2 :)
<shevy> encodings
eldariof has joined #ruby
<Vinzgore> Hehe, i had lots of trouble removing accents from a string due to encoding problems
<shevy> when is it not a nightmare...
<invisime> 1.9.wha? I
<Vinzgore> But i finally got it working o/
insulator has joined #ruby
<invisime> I've never heard of 1.9.1. ;-)
<invisime> 1.9.2*
lggr has joined #ruby
<Vinzgore> brb
Vinzgore is now known as Vinzaway
Vinzaway is now known as Vinzgore
ttt has joined #ruby
<Gate> php is easier to get into if you have no guidance/mentorship and just want to throw up a page that just repeats "LOL" 1000 times. So it gets a great many self-taught programmers.
adeponte has joined #ruby
ngoldman has quit [Remote host closed the connection]
xyzodiac has quit [Quit: Computer has gone to sleep.]
<shevy> yeah, that is a nice thing
<shevy> ruby should have something like that too
<shevy> .cgi isn't adequate compared to .php
lggr has quit [Ping timeout: 246 seconds]
yoklov has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ttt has quit [Ping timeout: 240 seconds]
ABK has joined #ruby
Jamone has joined #ruby
Jamone has quit [Changing host]
Jamone has joined #ruby
Edward_ has quit [Read error: Connection reset by peer]
budha_ has joined #ruby
Edward_ has joined #ruby
<Gate> shevy: PHP is directly translatable to ERB, all you need is a little rack app that lets you spit out ERB templates and you are done.
dmiller has joined #ruby
Monie has quit [Ping timeout: 245 seconds]
derpops has quit [Read error: Connection reset by peer]
derpops has joined #ruby
<peteyg_> asteve: nightmare in 1.9.2, but what about 1.9.3?
budha has quit [Ping timeout: 248 seconds]
<asteve> peteyg_: I'm in the process of switching us to 1.9.3 now; we're switching for other reasons than encoding improvements
<asteve> 1.9.3 does actual garbage collection, it's a miracle
aantix has joined #ruby
<asteve> I'm also certain that 1.9.2 has no garbage collection in it :)
budha_ has quit [Ping timeout: 240 seconds]
wpaulson has joined #ruby
fir_ed has joined #ruby
geekbri has quit [Remote host closed the connection]
darkspe has quit [Quit: Sto andando via]
lggr has joined #ruby
budha has joined #ruby
Goles has quit [Quit: Computer has gone to sleep.]
sepp2k1 has quit [Read error: Connection reset by peer]
Edward_ has quit [Ping timeout: 248 seconds]
joshman_ has quit [Quit: Computer has gone to sleep.]
<shevy> Gate you write I need .erb + rack. in php I only need a file called .php :(
<peteyg_> "actual" garbage collection :O? So what the heck does Ruby <1.9.2 all use?
cantonic has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
grainne has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
nga4 has joined #ruby
joshman_ has joined #ruby
ABK has quit [Read error: Connection reset by peer]
xyzodiac has joined #ruby
joelsbeard has joined #ruby
<Gate> shevy: because mod_php was built that way, passenger/rack weren't. I'm saying the rack app is a write-once thing that would ship as part of passenger.
<Gate> Not that I acutally think this is a good idea, by the way
lggr has joined #ruby
jeff_sebring has joined #ruby
niklasb has joined #ruby
<shevy> hmm
luckyrub_ has joined #ruby
<shevy> I see so much brittleness in the ruby world here, all the issues with rails + bundler alone for people who come here in #ruby ... if I would be matz I'd target the www first
Musfuut has quit [Read error: Operation timed out]
<shevy> (brittleness when distribution ruby code that is)
wallerdev has quit [Quit: wallerdev]
Musfuut has joined #ruby
<shevy> why did bundler have to be written at all WHY :(
wallerdev has joined #ruby
Musfuut is now known as Guest65452
<Vinzgore> Hey, do you use rubular.com ?
boris317 has left #ruby ["["Textual IRC Client: www.textualapp.com"]"]
ltsstar has joined #ruby
ianbrandt has joined #ruby
<invisime> why is there so much bundler hate in here? I quite like it.
lggr has quit [Ping timeout: 248 seconds]
luckyruby has quit [Ping timeout: 255 seconds]
<Gate> shevy: I wouldn't focus on web first. Ruby is so much more than that.
krawchyk has quit [Remote host closed the connection]
jrist is now known as jrist-afk
<Gate> I concur, bundler rocks
chussenot has quit [Quit: chussenot]
<Gate> shevy: PHP is the only "web first language" that comes to mind, and I despise working in it (not as much as I loath Java, but still)
<Gate> Ruby's goal is exactly what it should be: providing a laungage that is fun to work in
Vainoharhainen has joined #ruby
whitenoise has joined #ruby
<Hanmac> you could make a Website with C too but this is evil
<Gate> Hanmac: I worked for several months with a C++ ISAPI app that was in progress of translation to Java. Been there. Done that.
mark_locklear has joined #ruby
<invisime> Gate: javascript? :-P
<RubyPanther> If you want to use C for a website I recommend embedding Ruby and using the Ruby C API
<Gate> invisime: you mean as a web first language? I suppose so, but it was really meant for manipulation, not neccecarily generation.
lggr has joined #ruby
chussenot has joined #ruby
tewecske has quit [Read error: Connection timed out]
Juul has joined #ruby
<Hanmac> RubyPanther hm yeah that would be possible :D
nick_h has quit [Ping timeout: 245 seconds]
lorn_ has quit [Quit: ZNC - http://znc.sourceforge.net]
G has quit [Ping timeout: 245 seconds]
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
chussenot has quit [Client Quit]
<RubyPanther> possible and fun, and then use apr as the stdlib
ly_gs has joined #ruby
Guest65452 has quit [Ping timeout: 250 seconds]
shortlived has joined #ruby
niklasb has quit [Quit: WeeChat 0.3.8]
<RubyPanther> rb_funcall(rb_cObject, rb_intern("require"), 1, rb_str_new2("bundler") );
G has joined #ruby
<RubyPanther> I guess it is more concise if you just use Ruby.
shortlived has quit [Quit: Leaving]
nick_h has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
Guest65452 has joined #ruby
niklasb has joined #ruby
ABK has joined #ruby
lorn has joined #ruby
deadghost has quit [Ping timeout: 260 seconds]
lggr has joined #ruby
elux has quit [Quit: Bye!]
newtnik has joined #ruby
newtnik has quit [Client Quit]
newtnik has joined #ruby
ly_gs has quit [Remote host closed the connection]
ly_gs has joined #ruby
newtnik has quit [Client Quit]
jasonkuhrt has joined #ruby
newtnik has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
etehtsea has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
the_jeebster has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
CodeFriar has joined #ruby
friskd has quit [Quit: friskd]
newtnik has quit [Client Quit]
friskd has joined #ruby
friskd has quit [Read error: Connection reset by peer]
friskd has joined #ruby
flip_digits has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
newtnik has joined #ruby
bwlang has joined #ruby
fantazo has quit [Remote host closed the connection]
xaq has joined #ruby
pitty has joined #ruby
Goles has joined #ruby
etehtsea has joined #ruby
etehtsea is now known as Guest85807
Guest85807 has quit [Client Quit]
billy_ran_away has joined #ruby
lggr has joined #ruby
<billy_ran_away> Anyone know a good way to randomly produce a 1 OR a 10?
^arya^ has quit []
cascalheira has quit [Quit: Leaving...]
Guest65452 is now known as Musfuut
<johnjohnson> billy_ran_away: wat
<billy_ran_away> First instinct is ternary if statement...
<billy_ran_away> I want to randomly multiply an integer by 1 or 10.
<whitenoise> you sound like you're using buzz words
banisterfiend` has quit [Ping timeout: 260 seconds]
<billy_ran_away> So some of the number I want a whole magnitude bigger and others are good.
<billy_ran_away> *numbers
<whitenoise> so generate a random number, then based on its value, return either 1 or 10
<whitenoise> and use that
elaptics`away is now known as elaptics
<Hanmac> nr * [1,10].sample
<billy_ran_away> Hanmac: Duh! Thank you so much!
<whitenoise> or yeah, do that.
<whitenoise> there are about 20 different ways
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
Jamone has quit [Quit: Quit]
lggr has quit [Ping timeout: 256 seconds]
xyzodiac has quit [Quit: Computer has gone to sleep.]
insulator has quit [Ping timeout: 276 seconds]
ABK has quit [Read error: Connection reset by peer]
Monie has joined #ruby
Monie has quit [Changing host]
Monie has joined #ruby
workmad3 has joined #ruby
ABK has joined #ruby
krawchyk has joined #ruby
ttt has joined #ruby
pskosinski has quit [Quit: Some alternative (not-controlled-by-fu*up-people) Red Eclipse servers: http://altred.tk/list]
lggr has joined #ruby
hoelzro|away is now known as hoelzro
frogprince_mac has quit [Quit: Leaving...]
pskosinski has joined #ruby
insulator has joined #ruby
pskosinski has quit [Read error: Connection reset by peer]
deadghost has joined #ruby
pskosinski has joined #ruby
^arya^ has joined #ruby
mklappstuhl has joined #ruby
newtnik has quit [Quit: Leaving]
rippa has quit [Ping timeout: 244 seconds]
ttt has quit [Ping timeout: 240 seconds]
frogprince_mac has joined #ruby
cantonic has quit [Quit: cantonic]
Pinoqu has quit [Quit: Pinoqu]
lggr has quit [Ping timeout: 240 seconds]
tvw has quit [Remote host closed the connection]
cantonic has joined #ruby
slicslak has quit [Ping timeout: 256 seconds]
adeponte has quit [Remote host closed the connection]
ABK has quit [Read error: Connection reset by peer]
^arya^ has quit [Ping timeout: 246 seconds]
CodeVision has quit [Ping timeout: 246 seconds]
ABK has joined #ruby
CodeVision has joined #ruby
swarley_ has joined #ruby
lggr has joined #ruby
m3pow has quit [Quit: ChatZilla 0.9.88.2 [Firefox 15.0.1/20120907231657]]
Foxandxss has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
^arya^ has joined #ruby
ckrailo has joined #ruby
ABK has quit [Read error: Connection reset by peer]
PragCypher has quit [Read error: Connection reset by peer]
jso has quit []
slicslak has joined #ruby
PragCypher has joined #ruby
ABK has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
xaq has quit [Remote host closed the connection]
stephenjudkins has quit [Quit: stephenjudkins]
Neomex has joined #ruby
yoklov has quit [Quit: computer sleeping]
Virunga_ has joined #ruby
Virunga_ is now known as LennyLinux
pitty has quit [Ping timeout: 240 seconds]
GoHuyGo has joined #ruby
bluenemo has quit [Read error: Connection reset by peer]
elux has joined #ruby
LennyLinux has quit [Remote host closed the connection]
LennyLinux has joined #ruby
lggr has joined #ruby
GoldenCider has quit [Read error: Connection reset by peer]
ckrailo has quit [Quit: Computer has gone to sleep.]
Agis__ has joined #ruby
mrdodo has joined #ruby
GoldenCider has joined #ruby
LennyLinux has left #ruby [#ruby]
kirun has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
machty has quit [Ping timeout: 260 seconds]
pnkbst has joined #ruby
MasterIdler_ has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
h4mz1d has joined #ruby
cantonic has quit [Quit: cantonic]
katherinem13 has quit [Quit: Might IS right.]
chussenot has joined #ruby
katherinem13 has joined #ruby
hadees has quit [Quit: hadees]
xaq has joined #ruby
jasonkuhrt has quit [Quit: Linkinus - http://linkinus.com]
cj3kim has joined #ruby
arietis has joined #ruby
lggr has joined #ruby
gfontenot has quit []
derpops has quit [Ping timeout: 268 seconds]
hoelzro is now known as hoelzro|away
machty has joined #ruby
BdeUtra has quit [Ping timeout: 276 seconds]
stopbit has quit [Read error: Connection reset by peer]
derpops has joined #ruby
Yomero_ has quit [Remote host closed the connection]
gfontenot has joined #ruby
stopbit has joined #ruby
peteyg_ has quit [Ping timeout: 256 seconds]
lggr has quit [Ping timeout: 240 seconds]
xaq has quit [Remote host closed the connection]
gfontenot has quit [Client Quit]
luckyrub_ has quit [Remote host closed the connection]
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
luist has joined #ruby
<luist> hey guys.. i have 2 versions of rake installed.. how can i use the lowest version one to run an specific command?
rippa has joined #ruby
ABK has quit [Ping timeout: 255 seconds]
<Neomex> on windows you should have separate command promp i guess
<luist> was that for me?
banseljaj is now known as imami|afk
<Neomex> yep
lggr has joined #ruby
<blazes816> don't think that would do it Neomex (but I haven't used windows in forever)
cj3kim has quit [Quit: This computer has gone to sleep]
<fbernier> wtf has windows anything to do here
<blazes816> that I also have no clue about
cj3kim has joined #ruby
<Neomex> that on windows you can simply click on an icon and on unixes you can probably switch through comments
gnarmis has joined #ruby
<Muz> What.
<Neomex> yet I know shit so I'll just go hide myself
<Muz> First good idea you've had.
<Neomex> agreed
<blazes816> luist: your best bet is probably something like ~/.rvm/gems/..../rake-0.9.2.1/bin/rake foo; or whatever
<blazes816> $Neomex.show();
<blazes816> don't worry man, everyone was new at sometime
<Muz> blazes816: if that does something like 'require "rake"' it'll still include the wrong version, non?
<blazes816> yes
<blazes816> i don't know that there is a good way to do it
<blazes816> that way
<Muz> Would putting 'require "rubygems"; gem 'rake', '=version';" not be better?
<blazes816> require is always going to want the latest version
<Muz> Into the Rakefile that is.
<Muz> Err, with correct quotes.
<blazes816> that might do it
gfontenot has joined #ruby
hadees has joined #ruby
w400z has quit []
<Muz> Actually, it might not. Because my executing 'rake' it would have already included the wrong version.
ly_gs has quit [Remote host closed the connection]
<blazes816> luist: let us know how that works out; i'm interested
<blazes816> hmm. maybe both?
<Muz> You'd want to put that into the rake command script itself, and then explicitly call that version.
<blazes816> definitely not a good plan long term
<luist> blazes816: i uninstalled it.. then it said that it may brake some deps
<Muz> An easier solution is to only have the version you'd want installed.
<fbernier> the bad plan is definately using an older version of rake first ...
w400z has joined #ruby
<Muz> The better solution would be to use the more modern version throughout.
<Muz> Which raises the question, why do you need that specific and old version of Rake?
<gnarmis> hey, I was wondering about an idiomatic way to pipe an argument (let's say a hash) through multiple functions
<luist> if the newest versions were a bit compatible with anything i'd use them
rippa has quit [Ping timeout: 268 seconds]
w400z has quit [Client Quit]
<canton7> luist, this is the sort of thing which bundler is actually good at
lggr has quit [Ping timeout: 260 seconds]
<canton7> bundle exec rake blah blah
<Muz> functions = [:foo!, :bar!, :baz!]; functions.each { |f| hash.send(f) }; ?
kinginky has joined #ruby
<Muz> Or rvm, use a gemset which contains the old version of rake.
jrist-afk is now known as jrist
iocor has quit [Read error: Connection reset by peer]
iocor has joined #ruby
<gnarmis> Muz: hmm nice
BdeUtra has joined #ruby
swarley_ has quit [Quit: Leaving]
swarley has joined #ruby
nanderoo has quit [Quit: Leaving.]
khakimov has joined #ruby
RegEchse has joined #ruby
lggr has joined #ruby
neku has joined #ruby
rlb3 has quit [Quit: rlb3]
Targen has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
<shevy> please do take special notice that Muz properly finishes his sentences on IRC with '.' or other of those ... whatever the name is of . ? !
<shevy> punctuation marks?
<shevy> sentence enders?
Guest64548 has quit [Quit: Guest64548]
<Muz> Fullstops.
lggr has quit [Ping timeout: 268 seconds]
ttt has joined #ruby
neku has quit [Ping timeout: 244 seconds]
kpshek has quit []
insulator has quit [Remote host closed the connection]
<kinginky> i've put into my logbook that Muz properly finishes his sentences with fullstops
<kinginky> never forget.
awarner has quit [Remote host closed the connection]
ken_barber has quit [Read error: Connection reset by peer]
banisterfiend` has joined #ruby
ken_barber has joined #ruby
cj3kim has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
bricker_ has joined #ruby
ttt has quit [Ping timeout: 240 seconds]
ayawaska has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
Guedes is now known as Guedes_out
<kinginky> how does the speed of a ruby program compare to other languages?
chessguy has joined #ruby
johnlcox has quit [Ping timeout: 245 seconds]
<kinginky> is ruby pretty quick? is it feasible for something intensive, like a sever handling heavy, heavy traffic?
SCommette has quit [Quit: SCommette]
bricker has quit [Ping timeout: 244 seconds]
johnlcox has joined #ruby
eldariof has quit []
h4mz1d has quit [Ping timeout: 268 seconds]
minijupe has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
swarley has quit [Ping timeout: 256 seconds]
<luist> oh really… i hate this: Starting git-daemon: /usr/lib/ruby/gems/1.8/gems/bundler-1.2.1/lib/bundler/runtime.rb:31:in `setup': You have already activated daemons 1.1.9, but your Gemfile requires daemons 1.1.0. Using bundle exec may solve this. (Gem::LoadError)
chessguy has quit [Remote host closed the connection]
<RubyPanther> kinginky: the standard Ruby interpreters use traditional *nix networking written in C, so you won't see any problems in that sort of area. Things that are expensive are things at the high level, creating strings and that stuff
chessguy has joined #ruby
chimkan___ has joined #ruby
Jellyg00se has quit [Read error: Connection reset by peer]
chimkan___ has quit [Client Quit]
<RubyPanther> I'm using Ruby 2 and it is super-duper fast, and has working COW
Criztian has quit [Read error: Connection reset by peer]
Criztian_ has joined #ruby
idletom has joined #ruby
chimkan has quit [Ping timeout: 244 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
<Vinzgore> Hi :)
OneTonTurd has joined #ruby
RichGuk has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
OneTonTurd has quit [Client Quit]
lggr has joined #ruby
karakedi has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
sn0wb1rd has quit [Quit: sn0wb1rd]
joelsbeard has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 248 seconds]
GoHuyGo has quit [Quit: Leaving]
awarner has joined #ruby
baphled has joined #ruby
horofox_ has joined #ruby
lggr has joined #ruby
horofox has quit [Ping timeout: 246 seconds]
horofox_ is now known as horofox
Xeago has joined #ruby
matthewrobbins has joined #ruby
rdg has joined #ruby
kinginky has quit [Quit: Lost terminal]
SCommette has joined #ruby
chussenot has quit [Quit: chussenot]
atmosx has joined #ruby
<atmosx> hello
lggr has quit [Ping timeout: 268 seconds]
<gnarmis> RubyPanther: can u link me to that release?
swarley has joined #ruby
matthewrobbins has quit [Quit: matthewrobbins]
nightcoder_ has joined #ruby
asobrasil has joined #ruby
<shevy> gnarmis I think you need to use cvs or something
<gnarmis> yeah that's what it's looking like
<shevy> no sorry
<shevy> svn
<gnarmis> cool thanks
peteyg_ has joined #ruby
seich- is now known as seich
jenrzzz has quit [Ping timeout: 240 seconds]
elaptics is now known as elaptics`away
dmiller has quit [Remote host closed the connection]
lggr has joined #ruby
mmitchell has quit [Remote host closed the connection]
maletor has joined #ruby
burgestrand has joined #ruby
bbttxu has joined #ruby
fermion has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
nightcoder_ has quit [Quit: ircII EPIC5-1.1.2 -- Are we there yet?]
cj3kim has quit [Quit: This computer has gone to sleep]
mark_locklear has quit [Remote host closed the connection]
dmnd has joined #ruby
dmnd has quit [Changing host]
dmnd has joined #ruby
pu22l3r has quit [Ping timeout: 240 seconds]
PragCypher has quit [Read error: Connection reset by peer]
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby
bananagram has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
cj3kim has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
deadghost has quit [Ping timeout: 264 seconds]
ltsstar has quit [Quit: ltsstar]
Neomex has quit [Quit: Neomex]
timonv has joined #ruby
deadghost has joined #ruby
krawchyk has quit [Remote host closed the connection]
StuntS has joined #ruby
StuntS has left #ruby [#ruby]
<RubyPanther> gnarmis: git://github.com/ruby/ruby.git
linoj has quit [Ping timeout: 246 seconds]
<gnarmis> much better
jenrzzz has joined #ruby
adeponte has joined #ruby
<RubyPanther> I'm still using one from a month ago, I'm not seeing any bugs
stephenjudkins has joined #ruby
chessguy has quit [Remote host closed the connection]
<RubyPanther> gnarmis: If you're compiling C extensions this might help: https://gist.github.com/3671304
Jay_Levitt has joined #ruby
rdg has quit [Quit: ttfn]
lggr has joined #ruby
<TTilus> tomorrow frozenrails <3
chrisja has joined #ruby
<TTilus> in no more than 9 hours actually
<gnarmis> nic
<gnarmis> nice*
sn0wb1rd has joined #ruby
<TTilus> way enough time to get a good night sleep and travel 270 km to helsinki (while still asleep, hopefully)
emmanuelux has joined #ruby
PragCypher has joined #ruby
<TTilus> missing pre conf meetup this time though :(
<gnarmis> hey I was wondering how to pipe some args through a lot of functions idiomatically
ayawaska has joined #ruby
zombor has left #ruby ["Leaving..."]
<TTilus> gnarmis: func1(func2(func3(..))) ?
<TTilus> gnarmis: or what do you mean by "piping"?
<gnarmis> yeah but it's hard to do that with a lot of em
<gnarmis> piping in the unix sense
<gnarmis> in clojure, we have the nice little thread macro
ttt has joined #ruby
<gnarmis> ->
lggr has quit [Ping timeout: 256 seconds]
derpops has quit []
pettsson_ has joined #ruby
<workmad3> ruby is based around methods and arguments, not pipes though
<gnarmis> well say you have 10 functions that all take a hash and output the hash after some transformations
<workmad3> then you're stuck with f10(f9(f8(...)))
<gnarmis> and you wanna test permutations of those transformations
linusoleander has quit [Read error: Connection reset by peer]
<gnarmis> been trying reduce, etc
<workmad3> however, if you didn't rely on primitives and instead wrapped your own object around it, you could do
<canton7> if all your methods return enumerables rather than hashes...
<TTilus> gnarmis: ruby does not have that kind of thing out of the box
<workmad3> f1.f2.f3...
<TTilus> gnarmis: but it is implementable
linusoleander has joined #ruby
sailias has quit [Quit: Leaving.]
<canton7> iirc there are enumerable-returning alternaties to the normal each/map/etc on the way, at some point?
<gnarmis> yeah I saw a great little thing here https://groups.google.com/forum/?fromgroups=#!topic/comp.lang.ruby/YQL3hCEL2zI
<TTilus> gnarmis: pipe args, :f1, :f2, :f3, :f4
specialGuest has joined #ruby
specialGuest has quit [Changing host]
specialGuest has joined #ruby
<TTilus> gnarmis: pipe method like that is pretty trivial
<gnarmis> hmm exactly
lggr has joined #ruby
<gnarmis> with send?
<workmad3> TTilus: heh :) or, [:f1, :f2, :f3].each {|m| send(m, args)}
chessguy has joined #ruby
<gnarmis> ah that would be useful
<gnarmis> this stuff is great with data munging
chessguy has quit [Remote host closed the connection]
<workmad3> or rather, [:f1, ...].reduce(args) {|a, m| send(m, a)}
<gnarmis> and with https://github.com/harukizaemon/hamster, you have the whole shebang
ttt has quit [Ping timeout: 240 seconds]
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<TTilus> gnarmis: along the lines proposed by workmad3, def pipe args, *methods; methods.reduce(args) { |a, m| send(m, a) }; end
specialGuest has quit [Client Quit]
specialGuest has joined #ruby
havenn has joined #ruby
specialGuest has quit [Changing host]
specialGuest has joined #ruby
justinmcp has quit [Remote host closed the connection]
rmcafee has quit [Quit: rmcafee]
lggr has quit [Ping timeout: 245 seconds]
whitenoise has quit [Quit: This computer has gone to sleep]
<gnarmis> awesome, nice and elegant
khakimov has quit [Quit: Computer has gone to sleep.]
axl_ has quit [Quit: axl_]
ada2358 has joined #ruby
chessguy has joined #ruby
flip_digits has joined #ruby
statarb3 has joined #ruby
sn0wb1rd has quit [Read error: Connection reset by peer]
elux has quit [Quit: Bye!]
beneggett has joined #ruby
<shevy> hehe
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
jso has joined #ruby
sn0wb1rd has joined #ruby
<shevy> gnarmis how long have you been using ruby?
<gnarmis> about a year or 1.5 years
<gnarmis> mostly sinatra and some rails
carloslopes has quit [Ping timeout: 240 seconds]
<gnarmis> and random stuff
internet_user has quit [Remote host closed the connection]
lggr has joined #ruby
johnjohnson has quit []
avalarion has quit [Remote host closed the connection]
GoGoGarrett has quit [Remote host closed the connection]
adeponte has quit [Remote host closed the connection]
<shevy> cool
<shevy> you learn quickly
lggr has quit [Ping timeout: 264 seconds]
<RubyPanther> The better "principle of least surprise" is implemented, the less you have to learn and the more you can just try to do what you want and have it work.
<gnarmis> thanks, and yeah ruby's simplicity helps. I recommend clojure too
billy_ran_away has quit []
long_john_bohn is now known as jjbohn
adeponte has joined #ruby
Spooner has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
Juul has quit [Quit: Leaving]
<shevy> this is a wise cat
nwest has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
oGMinor has quit [Ping timeout: 252 seconds]
lggr has joined #ruby
Morkel has quit [Quit: Morkel]
frogprince_mac has quit [Quit: Leaving...]
Guedes has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
topriddy has joined #ruby
xyzodiac has joined #ruby
CodeFriar has quit [Quit: Leaving...]
niklasb has quit [Ping timeout: 255 seconds]
Goles has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 248 seconds]
khakimov has joined #ruby
axl_ has joined #ruby
niklasb has joined #ruby
jjbohn has quit [Quit: Leaving...]
kpshek has joined #ruby
cbuxton1 has joined #ruby
iamjarvo has quit [Ping timeout: 240 seconds]
karakedi has quit [Ping timeout: 244 seconds]
tommyvyo_ has joined #ruby
CodeFriar has joined #ruby
cbuxton2 has joined #ruby
cbuxton has quit [Ping timeout: 246 seconds]
rubious has joined #ruby
horofox has quit [Quit: horofox]
cbuxton1 has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
machty has quit [Ping timeout: 244 seconds]
ij has joined #ruby
cbuxton2 has quit [Ping timeout: 252 seconds]
cbuxton has joined #ruby
<ij> What's the best way to define a constant from C apart from eval?
CodeFriar has quit [Ping timeout: 268 seconds]
<ij> rb_const_set seems to set a constant that has been already set, no?
gfontenot has quit []
stephenjudkins has quit [Quit: stephenjudkins]
specialGuest has quit [Quit: WeeChat 0.3.8]
johnlcox has quit [Quit: Computer has gone to sleep.]
asteve has quit []
tntc has joined #ruby
<ij> rb_define_const, found it!
joelsbeard has joined #ruby
machty has joined #ruby
<joelsbeard> Does anyone know what "-s" argument for rake does? I can't find it on the internets
Voxxit has joined #ruby
samflores has joined #ruby
samflores has quit [Client Quit]
<havenn> joelsbeard: -s, --silent Like --quiet, but also suppresses the 'in directory' announcement.
johnlcox has joined #ruby
<havenn> joelsbeard: try: rake -h
lggr has quit [Ping timeout: 256 seconds]
justinmcp has joined #ruby
axl_ has quit [Quit: axl_]
robustus has quit [Quit: ZNC - http://znc.in]
<havenn> joelsbeard: Or: man rake
lggr has joined #ruby
pskosinski is now known as LandMine
s0ber_ has joined #ruby
LandMine is now known as pskosinski
cburyta has joined #ruby
s0ber has quit [Ping timeout: 245 seconds]
s0ber_ is now known as s0ber
headius has quit [Quit: headius]
[Neurotic] has joined #ruby
ckrailo has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
pricees_ has quit [Ping timeout: 240 seconds]
pricees has quit [Ping timeout: 244 seconds]
cburyta has quit [Remote host closed the connection]
chessguy has quit [Remote host closed the connection]
jasonkuhrt has joined #ruby
love_color_text has joined #ruby
lggr has joined #ruby
kpshek has quit []
dmiller has joined #ruby
dmiller has quit [Remote host closed the connection]
mklappstuhl has quit [Ping timeout: 244 seconds]
williamcotton has quit [Ping timeout: 244 seconds]
sdwrage has joined #ruby
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
lggr has quit [Ping timeout: 244 seconds]
chessguy has joined #ruby
axl_ has joined #ruby
ttt_ has joined #ruby
aantix_ has joined #ruby
joshman_ has quit [Ping timeout: 260 seconds]
nga4 has quit [Read error: Connection reset by peer]
manouch has joined #ruby
nga4 has joined #ruby
AlbireoX has joined #ruby
luist has quit [Quit: luist]
awarner has quit [Remote host closed the connection]
slicslak has quit [Ping timeout: 256 seconds]
aantix has quit [Ping timeout: 244 seconds]
aantix_ is now known as aantix
williamcotton has joined #ruby
rubious has quit [Quit: Leaving...]
lggr has joined #ruby
slicslak has joined #ruby
justinmcp has quit [Remote host closed the connection]
hadees has quit [Quit: hadees]
ttt_ has quit [Ping timeout: 240 seconds]
rbwsam has joined #ruby
stuartrexking has quit [Read error: Connection reset by peer]
stuartrexking has joined #ruby
dmiller has joined #ruby
rubious has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
mbk has quit [Ping timeout: 252 seconds]
mklappstuhl has joined #ruby
havenn has quit [Remote host closed the connection]
chessguy has quit [Remote host closed the connection]
philcrissman has quit [Remote host closed the connection]
kuzushi has quit [Ping timeout: 244 seconds]
Bosma has joined #ruby
sparki has quit [Quit: WeeChat 0.3.8]
lggr has joined #ruby
graft has quit [Ping timeout: 268 seconds]
dmiller has quit [Remote host closed the connection]
bwlang has left #ruby [#ruby]
notVert has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
slicslak has quit [Ping timeout: 256 seconds]
horofox has joined #ruby
theRoUS_ has quit [Read error: Operation timed out]
lggr has quit [Ping timeout: 244 seconds]
xaq has joined #ruby
horofox has quit [Client Quit]
tommyvyo has quit [Quit: Computer has gone to sleep.]
tommyvyo_ is now known as tommyvyo
Xeago has quit [Remote host closed the connection]
Foxandxss has joined #ruby
gnarmis has quit [Quit: gnarmis]
kirun has quit [Quit: Client exiting]
Vainoharhainen has quit [Quit: Leaving...]
jenrzzz has quit [Ping timeout: 260 seconds]
timonv has quit [Remote host closed the connection]
bbttxu has quit [Quit: bbttxu]
hadees has joined #ruby
jasonkuhrt has quit [Quit: Leaving...]
lggr has joined #ruby
the_jeebster has quit [Quit: Leaving.]
zmbmartin has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
pettsson_ has quit [Remote host closed the connection]
<zmbmartin> Can I sort an array of openstructs?
<epochwolf> sure!
<zmbmartin> I mean is that something that is there already or do I need to do the work.
chrisja has quit [Quit: leaving]
<epochwolf> I doubt the sort order would be useful to you
stopbit has quit [Quit: Leaving]
sailias has joined #ruby
<workmad3> you can sort anything, once you've worked out some way of comparing items
^arya^ has quit [Ping timeout: 240 seconds]
<canton7> #sort_by
lggr has quit [Ping timeout: 256 seconds]
* epochwolf sorts workmad3
<workmad3> :(
<workmad3> I didn't need sorting
<workmad3> I was already in order
<RegEchse> well
<epochwolf> workmad3: you need to be properly pigeonholed
CodeFriar has joined #ruby
<RegEchse> maybe better than workmad3.shuffle! :D
fantazo has joined #ruby
xyzodiac has quit [Quit: Textual IRC Client: www.textualapp.com]
<epochwolf> workmad3.rotate!
<workmad3> RegEchse: stop it, you're messing up my internal organs!
<RegEchse> ;D
lupine_85 has quit [Read error: Operation timed out]
* epochwolf flips workmad3's kidneys
drPoggs has quit [Read error: Operation timed out]
<workmad3> ok... now to figure out how to breath through my liver...
<zmbmartin> Thanks guys I got what I need. I appreciate it.
gfontenot has joined #ruby
<epochwolf> that should be… interesting
drPoggs has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
* epochwolf puts on sunglasses
<RegEchse> workmad3: we can solve that problem ... xD
<RegEchse> workmad3.clear
<RegEchse> ;P
<epochwolf> wait… I screwed that up! REDO!!!
* workmad3 gasps for breath
<epochwolf> that should be...
* epochwolf puts on sunglasses
<epochwolf> interesting
jgarvey has quit [Quit: Leaving]
minijupe has quit [Quit: minijupe]
<RegEchse> uhm
^arya^ has joined #ruby
cjz has joined #ruby
* epochwolf looks fricking sweet with two pairs of sunglasses on
<RegEchse> workmad3 << Lungs.new
<RegEchse> better? ^^
linusoleander has quit [Quit: linusoleander]
* workmad3 breaths in deeply
<workmad3> that's much better, thanks :)
lupine_85 has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
<epochwolf> cjz: ssl failure
<cjz> is it ok to have that module Jira4R; module V2?
GoldenCider has quit [Quit: GoldenCider]
lggr has joined #ruby
skogis has quit [Ping timeout: 260 seconds]
apok has quit [Remote host closed the connection]
apok has joined #ruby
mrdodo has quit [Remote host closed the connection]
<blazes816> cjz: it's okay but looks nicer to have them nested
slicslak has joined #ruby
^arya^ has quit []
sailias has quit [Quit: Leaving.]
lggr has quit [Ping timeout: 256 seconds]
hoelzro|away is now known as hoelzro
<cjz> but it is valid ruby?
johnlcox has quit [Ping timeout: 244 seconds]
GoHuyGo has joined #ruby
hoelzro is now known as hoelzro|away
<GoHuyGo> hey guys
<GoHuyGo> I'm trying to write a simple method that calculates the fibonnaci seq
bier has quit [Read error: Operation timed out]
sn0wb1rd has quit [Quit: I will be right back]
<GoHuyGo> I'm from a C background so I'm not sure if this is proper ruby
<Spooner> GoHuyGo : a[number + 1] doesnt' do anything in Ruby, any more than it would in C.
<GoHuyGo> Spooner: how do I declare an array in ruby of num+1 elements?
<Spooner> Ruby people never use for. Use n.times do |i| in this case or 0...n.each if you prefer.
<banisterfiend`> GoHuyGo oh rawl, u just got owned
<Spooner> GoHuyGo : Arrays are dynamic.
answer_42 has quit [Ping timeout: 276 seconds]
lggr has joined #ruby
arya^ has joined #ruby
SCommette has quit [Quit: SCommette]
hsbt_ is now known as hsbt_away
<Spooner> GoHuyGo : I guess I see what you were trying to do. You never need to declare something before it is assigned in Ruby.
hsbt_away is now known as hsbt
GoldenCider has joined #ruby
<GoHuyGo> Spooner: Kk, ty :)
<GoHuyGo> let me play with it some more
baphled has quit [Ping timeout: 240 seconds]
<Spooner> You can replace lines 2-3, or what you were tring to do, with: a = [0]
<GoHuyGo> ahh
<GoHuyGo> so a becomes the name of the array?
GoldenCider has quit [Remote host closed the connection]
<Spooner> Yes.
<GoHuyGo> or it points at the first element*
TheLZA has joined #ruby
<shevy> [0] is first element, [1] is second element etc.
<Spooner> Everything in Ruby is an implicit reference.
<Spooner> a is the array itself, separate to a[0], which is the first element.
<GoHuyGo> as opposed to an explicit reference like in C?
<shevy> with a C background this should be easy for you :)
mklappstuhl has quit [Ping timeout: 244 seconds]
<Spooner> Exactly.
lggr has quit [Ping timeout: 252 seconds]
<GoHuyGo> well
<shevy> btw GoHuyGo in ruby you can omit parens usually, if(i==1) is as if i == 1
<GoHuyGo> I've already written it out in C
<Spooner> Even immediate values (like 5) act like they were a reference to an object.
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
<GoHuyGo> let me pastie my C code
<Spooner> Yeah, the Ruby code is likely to be quite different.
<GoHuyGo> not sure if it's fully functional, but I think the logic is correct
<shevy> I just googled for a fibonacci solution :D
<GoHuyGo> brb
xaq has quit [Remote host closed the connection]
TheLZA has quit [Client Quit]
<GoHuyGo> ruby is so sexy
cakehero has joined #ruby
<GoHuyGo> still trying to handle all that sexiness
<Spooner> Yes shevy, but working through one isn't the same as looking it up.
<shevy> hehehe
TheLZA has joined #ruby
pu22l3r has joined #ruby
TheLZA has quit [Max SendQ exceeded]
<GoHuyGo> brb... ty for the help so far Spooner
jeff_sebring has quit [Quit: Leaving]
<GoHuyGo> and the rest of the team :)
TheLZA has joined #ruby
TheLZA has quit [Max SendQ exceeded]
<shevy> yippie!
<shevy> I am in Spooner's team!
TheLZA has joined #ruby
TheLZA has quit [Max SendQ exceeded]
axl_ has quit [Quit: axl_]
cakehero has quit [Client Quit]
jasonkuhrt has joined #ruby
TheLZA has joined #ruby
TheLZA has quit [Max SendQ exceeded]
TheLZA has joined #ruby
TheLZA has quit [Max SendQ exceeded]
doritostains has quit [Quit: Linkinus - http://linkinus.com]
TheLZA has joined #ruby
swarley has quit [Quit: Leaving]
TheLZA has quit [Max SendQ exceeded]
swarley has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
ttt_ has joined #ruby
lledet has quit [Quit: lledet]
gabrielrotbart has quit [Remote host closed the connection]
pu22l3r has quit [Remote host closed the connection]
aantix has quit [Remote host closed the connection]
aantix has joined #ruby
bier has joined #ruby
gabrielrotbart has joined #ruby
ttt_ has quit [Ping timeout: 240 seconds]
graft has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
jasonkuhrt has quit [Ping timeout: 244 seconds]
AlbireoX has quit [Remote host closed the connection]
horofox has joined #ruby
jso has quit []
TheLZA has joined #ruby
TheLZA has quit [Max SendQ exceeded]
TheLZA has joined #ruby
TheLZA has quit [Max SendQ exceeded]
kay-z has joined #ruby
MasterIdler__ has joined #ruby
MasterIdler__ has quit [Client Quit]
TheLZA has joined #ruby
TheLZA has quit [Max SendQ exceeded]
<Spooner> shevy : I always got picked last, even for my own team ;)
uris has quit [Quit: leaving]
kay-z has quit [Remote host closed the connection]
ryanf has joined #ruby
EvanR has quit [Ping timeout: 240 seconds]
kay-z has joined #ruby
CodeFriar has quit [Read error: Connection reset by peer]
awarner has joined #ruby
xaq has joined #ruby
<swarley> getting picked first is overrated
<swarley> you save the best for last
MasterIdler_ has quit [Ping timeout: 240 seconds]
busybox42 has quit [Quit: Leaving.]
lggr has quit [Ping timeout: 240 seconds]
busybox42 has joined #ruby
<Spooner> Yeah, I'm sure that is what they told me at the time ;)
kay-z has quit [Client Quit]
jso has joined #ruby
<banisterfiend`> swarley i saw you recommending someone do: obj.methods - Object.new.methods the other day
<banisterfiend`> swarley ffs, ls -m obj is so much nicer
<banisterfiend`> :)
timonv has joined #ruby
<Spooner> Object.new.methods == Object.public_instance_methods too ;)
<Spooner> pry is nicer, but harder to use ls in code itself ;)
topriddy has quit [Quit: topriddy]
Russell^^ has quit [Quit: Russell^^]
<swarley> banisterfiend`, oh i forgot about that lol
<banisterfiend`> hehe
<swarley> i perfer that because of how it traverses the array in a `less` style format
austinbv has joined #ruby
TomJ has quit [Quit: TomJ]
lggr has joined #ruby
freeayu has joined #ruby
love_color_text has quit [Remote host closed the connection]
nari has joined #ruby
horofox has quit [Quit: horofox]
tyfighter_ has joined #ruby
slicslak has quit [Ping timeout: 240 seconds]
tyfighter has quit [Ping timeout: 246 seconds]
tyfighter_ is now known as tyfighter
stkowski has quit [Quit: stkowski]
lggr has quit [Ping timeout: 264 seconds]
pnkbst has quit [Ping timeout: 244 seconds]
xaq has quit [Remote host closed the connection]
austinbv has quit [Ping timeout: 240 seconds]
pskosinski has quit [Quit: Some alternative (not-controlled-by-fu*up-people) Red Eclipse servers: http://altred.tk/list]
budha has quit []
haxrbyte_ has joined #ruby
pskosinski has joined #ruby
cburyta has joined #ruby
lggr has joined #ruby
timonv has quit [Remote host closed the connection]
haxrbyte has quit [Ping timeout: 245 seconds]
topriddy has joined #ruby
ncamargo has quit [Ping timeout: 240 seconds]
awarner has quit [Remote host closed the connection]
luist has joined #ruby
nga4 has quit [Ping timeout: 268 seconds]
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
topriddy has quit [Quit: topriddy]
luist_ has joined #ruby
luist has quit [Read error: Connection reset by peer]
luist_ is now known as luist
lggr has quit [Ping timeout: 244 seconds]
neal__ has joined #ruby
neal__ has left #ruby [#ruby]
cj3kim has joined #ruby
xaq has joined #ruby
jgrevich has quit [Ping timeout: 244 seconds]
jgrevich has joined #ruby
lggr has joined #ruby
xyzodiac has joined #ruby
arya^ is now known as arya_
keppy has quit [Quit: Leaving]
jjbohn has joined #ruby
jjbohn has quit [Client Quit]
ncamargo has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
Guedes has quit [Remote host closed the connection]
jso has quit []
jjang has joined #ruby
jjang has quit [Remote host closed the connection]
Guedes has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
Synthead has quit [Quit: p33 ba115]
lggr has joined #ruby
TheLZA has joined #ruby
TheLZA has quit [Max SendQ exceeded]
TheLZA has joined #ruby
TheLZA has quit [Max SendQ exceeded]
TheLZA has joined #ruby
TheLZA has quit [Max SendQ exceeded]
BdeUtra has quit [Quit: BdeUtra]
TheLZA has joined #ruby
TheLZA has quit [Max SendQ exceeded]