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
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
<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
<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.
<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
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.
<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.
<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.]
<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
<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]
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]
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
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]
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)
<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.
<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
<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
<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>
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
<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.
<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]
<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 :(
<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.]
<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]