coca_rails has quit [Read error: Connection reset by peer]
<benzrf>
they are being passed as args to the .done and the .fail methods
<benzrf>
presumably as callbacks
Hanmac has quit [Quit: Leaving.]
<RedNifre>
I know, but maybe I'm confused by the abstraction of the example... one sec...
coca_rails has joined #ruby
coca_rails has quit [Read error: Connection reset by peer]
baroquebobcat has quit [Quit: baroquebobcat]
<RedNifre>
So it would be like load_something(user_credentials).done ->(result) { puts "looks fine }.fail ->(error) { puts "check your internet connection because of " +error } ?
mrsolo has quit [Quit: This computer has gone to sleep]
<benzrf>
RedNifre: sure
yfeldblum has joined #ruby
<RedNifre>
But can it be done prettier?
<benzrf>
wrapping the \s in parens might clarify it
coca_rails has joined #ruby
<banisterfiend>
RedNifre you have to put () around the done argument
p4tux has joined #ruby
workmad3 has quit [Ping timeout: 259 seconds]
<banisterfiend>
done(->(result {}).
<banisterfiend>
or
<banisterfiend>
you could have: done { |result| }.fail { |error| }
Bira has joined #ruby
<benzrf>
this is why i appreciate haskell, m8
starchild_ has quit [Ping timeout: 264 seconds]
n88 has quit [Changing host]
n88 has joined #ruby
psyl0n has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 272 seconds]
Ziarkaen` has joined #ruby
<RedNifre>
I guess I can cut the "done", but can I cut the "fail"? I mean like load_something { puts "it worked" }.{ puts "it failed"}
ukd1 has joined #ruby
ehaliewicz has quit [Ping timeout: 245 seconds]
motto has quit [Quit: Sto andando via]
Bira has quit [Remote host closed the connection]
caveat- has joined #ruby
drag00n has quit [Ping timeout: 240 seconds]
kitak has quit [Read error: Connection reset by peer]
Ziarkaen has quit [Ping timeout: 272 seconds]
kitak has joined #ruby
nateberkopec has joined #ruby
Bira has joined #ruby
<RedNifre>
hmmmmm....
<banisterfiend>
RedNifre if you use -> instead u can
<banisterfiend>
RedNifre as i showed u in 'then'
pel_daniel1 has left #ruby [#ruby]
<ravster>
Hey, how do I make one method in a module call another method in the same module?
<RedNifre>
You mean "blahblah(xx).then ->(result) { }, ->(error) { }"? But that's still a lot of code, how would you cut that down?
Geniack has joined #ruby
randomnick_ has quit [Quit: Leaving]
<RedNifre>
or did you mean a different 'then'?
kaldrenon has quit [Remote host closed the connection]
kaldrenon has joined #ruby
<RedNifre>
I guess "}.{" is impossible because you always need a method name, so the bare minimum would be "}.else {", right?
<benzrf>
anyway continue yelling about my code, please
iliketurtles has joined #ruby
<shevy>
ok, def __mul__ is odd
<benzrf>
how so?
<benzrf>
it keeps identifiers less special-casey
<shevy>
well I would assume that there is a reason for whoever uses that to use 4 _
allaire has quit []
<benzrf>
it makes it jump out
<benzrf>
:P
<shevy>
hehe
<benzrf>
and honestly how often do you do operator overloading
x1337807x has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
<shevy>
only when I have a need to do so
<benzrf>
there you go
<shevy>
really, I think you can use like only 5% of what ruby offers and be fine with that
<DanBoy>
in ruby overloading?
<benzrf>
but yeah so far i think i like ruby more than py
<shevy>
I am not even using lambdas and I am perfectly happy with that
<benzrf>
maybe
<benzrf>
ugh ruby lambdas
<DanBoy>
in ruby you always got the splat argument to check you don't have to do traditional overloading
<shevy>
benzrf I think one thing that people should keep in mind is that they should use things that solve a given problem, and if possible, do so elegantly or by being terse/short
c0rn has quit [Quit: Computer has gone to sleep.]
soheil has quit [Ping timeout: 260 seconds]
<shevy>
like, you could have an array, use .each on it, and put certain matches into a new array
<shevy>
or
<shevy>
you just use .select directly
<shevy>
and I think using .select is much better than the .each way even if it is a "there is more than one way to do it"
baroquebobcat has joined #ruby
<benzrf>
shevy: i instinctually went to haskell mode when I started doing mild FP since haskell is basically the only language where ive used it
<shevy>
benzrf, if you are curious about more __ stuff
<benzrf>
livescript is like coffeescript + some haskell + a truckload more sugar
<benzrf>
also it fixes CS shadowing issues
<benzrf>
= vs :=
coca_rails has quit [Ping timeout: 245 seconds]
<benzrf>
it has 'backcalls'
banjara has joined #ruby
<benzrf>
which are basically exactly like <- in do-notation
Davey has joined #ruby
<banisterfiend>
benzrf there's a version of haskell that compiles down to js
<benzrf>
nice
Aryasam has joined #ruby
duggiefr_ has joined #ruby
banjara has quit [Client Quit]
sergicles has quit [Changing host]
sergicles has joined #ruby
<benzrf>
task.js looks kinda like icedcoffeescript's stuff in normal js
near89 has joined #ruby
banjara has joined #ruby
<near89>
hiiiii
<near89>
how is everyone?
banjara has quit [Client Quit]
<benzrf>
near89: p. good
jkline has quit [Quit: jkline]
<benzrf>
do you have time to criticize my code?
banjara has joined #ruby
<benzrf>
it is relatively short
banjara has quit [Changing host]
banjara has joined #ruby
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
dEPy has joined #ruby
<banisterfiend>
benzrf live script looks pretty nice
oxtub has joined #ruby
nfk has quit [Quit: yawn]
<benzrf>
banisterfiend: ikr
<benzrf>
banisterfiend: how far are you into the docs?
<banisterfiend>
just skimmed the first page
<benzrf>
eh
<banisterfiend>
but it's nice
reset has quit [Quit: Leaving...]
<benzrf>
wait, first page?
<benzrf>
you mean like first scrollthru
<benzrf>
*page of scrolling
<benzrf>
because the homepage is the entire docs/site
<benzrf>
like CS
<near89>
im trying to develop an application
<near89>
it should be able to receive petitions from serveral other applications
<near89>
but only answer in order
<near89>
does this make sense?
snuffeluffegus has joined #ruby
<near89>
im not sure if I should run it as an http service for example, a binary, etc
<banisterfiend>
benzrf i would have preferred * for composition though
<banisterfiend>
near89 try and fit more than a few words on one line then u won't have to type so much
hogeo has joined #ruby
yfeldblu_ has joined #ruby
<near89>
haha ok
<near89>
any ideas?
nhhagen has joined #ruby
Seich_ has quit [Ping timeout: 265 seconds]
oxtub has quit [Client Quit]
<benzrf>
near89: use a queue?
<near89>
what kind of queue?
<benzrf>
idk
<benzrf>
im super new to java
<near89>
i mean, this should be really easy to deploy
banjara has quit [Quit: Leaving.]
<benzrf>
id tell you to import collections if this were python
<benzrf>
;p
dEPy has quit [Ping timeout: 246 seconds]
CaptainJet has joined #ruby
<benzrf>
oh wait pythons queue is in the queue module for some reason
<benzrf>
wtf python
banjara has joined #ruby
banjara has quit [Client Quit]
soheil has joined #ruby
banjara has joined #ruby
<near89>
I want to develop the app in ruby..
Seich_ has joined #ruby
banjara has quit [Client Quit]
mmitchell has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
Aryasam has quit [Ping timeout: 264 seconds]
<benzrf>
near89: im not recommending you switch
banjara has joined #ruby
<benzrf>
im learning ruby precisely because it looks like something id prefer to python
<benzrf>
maybe
yfeldblu_ has quit [Ping timeout: 245 seconds]
banjara has quit [Client Quit]
<benzrf>
it seems a bit flakier
nhhagen has quit [Ping timeout: 252 seconds]
jhulten_ has quit [Remote host closed the connection]
freakazoid0223 has joined #ruby
banjara has joined #ruby
bugsinlights has quit [Remote host closed the connection]
banjara has quit [Client Quit]
brianpWins has quit [Quit: brianpWins]
jhulten has joined #ruby
bugsinlights has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
banjara has joined #ruby
banjara has quit [Changing host]
banjara has joined #ruby
near89 has quit [Changing host]
near89 has joined #ruby
near89 has joined #ruby
<jblack>
I love ruby -far- over python
<jblack>
I just couldn't get past the indentation defining flow
<banisterfiend>
benzrf how's it flaky?
mlpinit has joined #ruby
<benzrf>
banisterfiend: i dunno its just a general feeling
<benzrf>
maybe its just timtowtdi
mlpinit has quit [Client Quit]
<benzrf>
jblack: really
<benzrf>
i like fioc
<benzrf>
ends clutter my eyes
<benzrf>
& i like not typing brackets and/or ends
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
jhulten has quit [Ping timeout: 240 seconds]
<banisterfiend>
benzrf wtfs is fioc
kitak has quit [Read error: Connection reset by peer]
<jblack>
different strokes for different folks. =)
kitak has joined #ruby
<benzrf>
banisterfiend: forced indentation of code
<benzrf>
haskell does it best tho
<benzrf>
as always
ZenGuy311 has quit [Ping timeout: 245 seconds]
<banisterfiend>
benzrf isn't it a complete pain in the ass when refactoring and moving chunks of code around?
<benzrf>
banisterfiend: not if your editor is awesome
<benzrf>
but yes because i have failed to configure my editor awesomely
raphaelivan has joined #ruby
<banisterfiend>
hehe
fuhgeddaboudit has joined #ruby
sjuxax has joined #ruby
<benzrf>
you need to redo the indentation when you move it in ruby, too
<jblack>
it's just one of those things some people swear by and others swear at.
<benzrf>
eh
<benzrf>
funnily i never even thought it was weird when i saw it
<benzrf>
i just looked at it and thought 'im home'
<benzrf>
well ok maybe not that
<jblack>
is there some reason you decided to discusss python indentation in #ruby?
<benzrf>
yes
<benzrf>
i have an OT quota
ZenGuy311 has joined #ruby
<sjuxax>
Hi all. I need help understanding http://ruby-doc.org/stdlib-2.0.0/libdoc/optparse/rdoc/OptionParser.html. Seems most stuff happens through on, which mostly wraps make_switch. make_switch lists several potential options, but how do I know the order these options are accepted in? I see people using on(x,y,z) that doesn't match the order listed there. Also, those options don't seem to specify option key names, so if I want to specify something as mandatory, h
banjara1 has joined #ruby
<benzrf>
sjuxax: your message cut off at 'as mandatory, h'
<benzrf>
jblack: but more specifically im currently into python so i feel the need to compare everything
<benzrf>
anyway, can you look at my code and tell me what im showing a lack of understanding in?
<sjuxax>
benzrf: so if I want to specify something as mandatory, how do I know if I should say :argumentType = "mandatory" or :argument_type = "mandatory"?
<Methylated>
I need advice. I'm working with a huge legacy app
RedNifre has quit [Remote host closed the connection]
<DanBoy>
you should return after setting speed
dhruvasagar has quit [Ping timeout: 260 seconds]
hashpuppy has quit [Quit: Computer has gone to sleep.]
<DanBoy>
anything >= 50 will keep going down to where you set speed = 2
reset has quit [Ping timeout: 272 seconds]
io_syl has quit [Ping timeout: 272 seconds]
<DanBoy>
test it, 49 should return 2.5
<DanBoy>
anything above that or equal to it will be 2
mary5030 has joined #ruby
tylersmith has joined #ruby
<rickruby>
OH
<rickruby>
thanks!
<rickruby>
that was it :) ty DanBoy
vlad_starkov has quit [Ping timeout: 240 seconds]
<DanBoy>
just return after setting speed :P
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby
lfox has joined #ruby
ZenGuy311 has quit [Ping timeout: 240 seconds]
heidi has quit [Quit: Leaving.]
dEPy has joined #ruby
mmitchell has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
platypine has quit [Ping timeout: 245 seconds]
taternuts has joined #ruby
nhhagen has joined #ruby
tommyvyo has joined #ruby
dEPy has quit [Ping timeout: 240 seconds]
ZenGuy311 has joined #ruby
sjuxax has left #ruby [#ruby]
fijimunkii has quit [Ping timeout: 246 seconds]
hashpuppy has joined #ruby
nhhagen has quit [Ping timeout: 260 seconds]
ukd1 has joined #ruby
aryaching has joined #ruby
hashpuppy has quit [Client Quit]
Voodoofish430 has quit [Quit: Leaving.]
eka has quit [Quit: Computer has gone to sleep.]
raphaelivan has quit [Quit: Leaving.]
leeurooi has joined #ruby
brianpWins has quit [Quit: brianpWins]
psyprus has quit [Read error: Connection reset by peer]
psyprus has joined #ruby
Aryasam has quit [Ping timeout: 264 seconds]
Aryasam has joined #ruby
timonv has joined #ruby
<shevy>
all power to the people
<shevy>
all power to ruby!
alekst has quit [Quit: Computer has gone to sleep.]
ewnd9 has quit [Remote host closed the connection]
jhulten has joined #ruby
zz_jrhorn424 is now known as jrhorn424
<benzrf>
whats the best way to check equality against 2-3 items
<benzrf>
in python id do 'foo in 1, 2, 3'
polaco is now known as polaco_zZz
Aryasam has quit [Ping timeout: 264 seconds]
<shevy>
id?
<shevy>
x == y
<benzrf>
*I'd
timonv has quit [Ping timeout: 272 seconds]
<benzrf>
??
zeade has joined #ruby
<benzrf>
is there a more concise version of 'a == b or a == c'
<jblack>
you want to see if X is in [X,Y,Z] ?
<benzrf>
i guess
<benzrf>
what i just said basically
<jblack>
[1,3,4].include?(3)
<benzrf>
alright
<benzrf>
seems nearly as wordy
jhulten has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
<jblack>
If you don't like ruby, then don't write ruby.
<jblack>
There's exactly 23,412 languages to choose from. I counted.
<benzrf>
i thought one of the points of ruby was to be concise
leeurooi has quit [Quit: I'm outta here]
<benzrf>
:P
<benzrf>
i guess i will just stick with a == b or a == c
<jblack>
myarray.include?(val) seems rather concise to me
jonathanwallace has quit [Read error: Operation timed out]
<benzrf>
well i dont care about array inclusion
<benzrf>
it just happened to be concise in python
DanKnox is now known as DanKnox_away
<DanBoy>
fuck it
<DanBoy>
im learning fortran
Targen has joined #ruby
<jblack>
ok, [b,c].include?(a)
<shevy>
benzrf well you could alias to include?
<shevy>
alias i include?
<benzrf>
w/ever its not a huge dea
<benzrf>
l
jlast has joined #ruby
<shevy>
%w( abc bcc ccb ).i? 'b'
<shevy>
I am not sure how you want to make it more concise
<shevy>
do you want to reduce it to 0 characters? :D
<shevy>
or mind reading
r0bby_ has joined #ruby
<jblack>
trolling?
<shevy>
question?
jlast has quit [Remote host closed the connection]
<DanBoy>
lol wtf is going on
<prophile>
swarms of killer bees?
<jblack>
"Python is so much better because you can do two comparisons in 6 characters instead of 9 characters!"
<shevy>
AND
<shevy>
you don't have to type end
sevenseacat has joined #ruby
<DanBoy>
well
<benzrf>
it is not that much better
<DanBoy>
you guys are all lost
<shevy>
but I hate the : part
<DanBoy>
fortran is where its at
<benzrf>
I am just picky
<benzrf>
:P
<shevy>
def foo():
<jblack>
screw you all. I'm going back to quickbasic.
<shevy>
no wait... that's actually 3 chars
<shevy>
if () is mandatory
<shevy>
AND
<benzrf>
& im not trying to compare them, im trying to find out how to do it in ruby
<benzrf>
>_>
<shevy>
indent
<shevy>
we could strip ruby code of ' ', but not python code
<jblack>
benzrf: You can try [b,c].include?(a) if you want to compare two at once
<prophile>
wadler's law
<jblack>
or, perhaps... (a==b || a==c)
<prophile>
in action
<shevy>
who is wadler and why do we have to know that person
<jblack>
did he waddle?
<shevy>
lol
<prophile>
philip wadler is an academic
<jblack>
Lol, I like that
<prophile>
did a load of stuff about programming language design
<shevy>
wadler's law: if you waddle you are never going to win in a 100 metres run!
sepp2k has quit [Quit: Leaving.]
<shevy>
academic waddling
<shevy>
that's like... what's this sport where you have to just walk...
<prophile>
wadler's law is that people argue more about the syntax and other trivial things in programming language design
<prophile>
rather than the actual semantics
silent_root has joined #ruby
<shevy>
prophile jblack spoiled me, now I can only think about waddling :(
<prophile>
like the idea that the big difference between ruby is whitespace or colons :)
<prophile>
*between ruby and python
<benzrf>
bikeshedding woo
varfoo has joined #ruby
<benzrf>
my fave sort
<prophile>
precisely
<shevy>
well python needs indent!
zz_tsykoduk is now known as tsykoduk
<benzrf>
*sport
<benzrf>
shevy: why
<jblack>
There should be a waddler's law...
<shevy>
benzrf because it won't run otherwise
hogeo has quit [Remote host closed the connection]
<prophile>
if python swapped out indentation and colons for curly brackets it really wouldn't make much difference
<prophile>
if python swapped to, say, static typing it would be a completely different language
<prophile>
even if it looked similar
<jblack>
does assignment in python work the same as ruby?
<shevy>
"IndentationError: expected an indented block"
<shevy>
it tells me I must indent :(
<shevy>
but I dont wanna!
kobain has quit []
hogeo has joined #ruby
<prophile>
jblack: in what sense?
silent_r1ot has joined #ruby
<benzrf>
prophile: python cant have static typing without a major change in semantics
<jblack>
never mind.
<prophile>
benzrf: yes, that's my point
<benzrf>
prophile: like ridiculously major
<shevy>
jblack not sure about scoping... ruby must have more complicated rules because it allows variable assignments in blocks
<prophile>
semantics are the important thing in programming language design
<shevy>
but python has other strange things like those decorator thingies
<prophile>
syntax is just trivial sugar on top
<benzrf>
prophile: how would you even get static typing with prototype-based stuff
<benzrf>
shevy: decorators are just sugar
<benzrf>
@foo
_5kg has joined #ruby
<benzrf>
def bar
<benzrf>
is the same as
<benzrf>
def bar
<benzrf>
bar = foo(bar)
pdimitrov has quit [Read error: Operation timed out]
<prophile>
benzrf: it was only an example
<benzrf>
ok
freerobby has joined #ruby
pen has quit []
freerobby has quit [Read error: Connection reset by peer]
<benzrf>
actually though now that i think about it\
TheShaun is now known as TheShaun|AFK
<benzrf>
COULD you meaningfully have both static typing & prototype-based oop
<benzrf>
it doesnt seem possible to me
Flashmasterson has joined #ruby
<Flashmasterson>
how much Ruby knowledge should be involved in creating a website that uploads/downloads + edits audio + allows other people to register?
jonathanwallace has joined #ruby
pdimitrov has joined #ruby
<DanBoy>
did you finish pickaxe dude
<prophile>
benzrf: an interesting thought
<benzrf>
python is nearly proto based anyway
<benzrf>
sort of
pr0ggie has quit [Ping timeout: 246 seconds]
<prophile>
eh, I don't think it does really?
hogeo has quit [Ping timeout: 260 seconds]
<prophile>
I don't think this is a discussion for #ruby anyway :)
<DanBoy>
Flashmasterson, finish the pickaxe book then goto rails
xk_id has quit [Quit:
<benzrf>
DanBoy: goto considered harmful
<shevy>
hey Flashmasterson didn't you have this question like 3 weeks ago alread
<DanBoy>
yah yah ;P
<DanBoy>
i learned that with C
<Flashmasterson>
shevy: i did but it was phrased differently + i just got a new answer from a new person, so that was helpful
htns12 has joined #ruby
<Flashmasterson>
DanBoy: i didn't finish it yet, not even close - i've been studying more javascript and html/css lately
htns12 has left #ruby [#ruby]
<DanBoy>
Flashmasterson, didn't i get you to setup sublime?
Aryasam has joined #ruby
<Flashmasterson>
DanBoy: yeah! man it's great
rickruby has quit [Remote host closed the connection]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Flashmasterson>
DanBoy: and free damnit
btanaka has joined #ruby
<DanBoy>
honestly
rickruby has joined #ruby
<DanBoy>
your going to use rails right im guessing
<DanBoy>
for the site
<DanBoy>
ask that exact question in #rubyonrails
<Flashmasterson>
DanBoy: i think i'll end up having to, based on popular response to that question. ok i'll ask there now
benzrf has quit [Quit: sleep is important]
TheShaun|AFK is now known as TheShaun
<sevenseacat>
dont send him to us >_>
<DanBoy>
lol
Aryasam has quit [Ping timeout: 272 seconds]
r0bby_ has quit [Quit: Konversation terminated!]
rickruby has quit [Ping timeout: 260 seconds]
r0bby_ has joined #ruby
<DanBoy>
lol
<shevy>
nah, send him over
jkline has joined #ruby
vlad_starkov has quit [Ping timeout: 246 seconds]
glaksmono_ has quit [Quit: This computer has gone to sleep]
r0bby_ has quit [Ping timeout: 260 seconds]
pr0ggie has joined #ruby
Biohazard has quit [Ping timeout: 245 seconds]
fijimunkii has joined #ruby
bio has joined #ruby
tjad has joined #ruby
saarinen has joined #ruby
Guest14134 is now known as rodan-
idiocrash has quit []
tommyvyo has quit [Read error: No route to host]
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
soba has joined #ruby
sn0wb1rd has quit [Quit: See ya]
sn0wb1rd has joined #ruby
Monie has joined #ruby
nhhagen has joined #ruby
jonahR has left #ruby [#ruby]
ananthakumaran has joined #ruby
nateberkopec has quit [Quit: Leaving...]
danshult_ has joined #ruby
hogeo has joined #ruby
xk_id has joined #ruby
trusktr has quit [Quit: Leaving]
trusktr has joined #ruby
nhhagen has quit [Ping timeout: 246 seconds]
saarinen has quit [Quit: saarinen]
saarinen has joined #ruby
failshell has quit []
saarinen has quit [Client Quit]
bklane has joined #ruby
danshultz has quit [Ping timeout: 272 seconds]
trusktr has quit [Read error: Connection reset by peer]
hiyosi has quit [Ping timeout: 260 seconds]
x1337807x has joined #ruby
danshult_ has quit [Ping timeout: 240 seconds]
SE7EN-X has joined #ruby
SE7EN-X has left #ruby [#ruby]
jonathanwallace has quit [Ping timeout: 272 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
aapzak has quit [Ping timeout: 272 seconds]
aapzak has joined #ruby
s3itz has joined #ruby
brianpWins has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
nkts has quit [Quit: xy]
IceDragon has quit [Quit: Space~~~]
Jazz has joined #ruby
iliketurtles has joined #ruby
hogeo has quit [Ping timeout: 272 seconds]
mary5030 has quit [Remote host closed the connection]
iamjarvo has joined #ruby
rodan- has quit [Remote host closed the connection]
rodan- has joined #ruby
iamjarvo has quit [Remote host closed the connection]
iamjarvo has joined #ruby
aspires has joined #ruby
Soliah has joined #ruby
ewnd9 has joined #ruby
pixelgremlins_ba has joined #ruby
rodan- has quit [Ping timeout: 241 seconds]
_HolyCow1 has joined #ruby
BraddBitt has joined #ruby
vlad_starkov has joined #ruby
Guest27184 has joined #ruby
tkuchiki_ has joined #ruby
Methylated has quit [Ping timeout: 264 seconds]
ukd1 has quit [Remote host closed the connection]
robonerd has joined #ruby
ItSAN____ has joined #ruby
yfeldblum has joined #ruby
ukd1 has joined #ruby
ehaliewicz has joined #ruby
sergicles_ has joined #ruby
withnale has joined #ruby
octarine_ has joined #ruby
vadviktor__ has joined #ruby
Coolhand_ has joined #ruby
pdimitrov has quit [Read error: Operation timed out]
tylersmi_ has joined #ruby
eval-in_ has joined #ruby
iaj_ has joined #ruby
deanrock0__ has joined #ruby
wmoxam_ has joined #ruby
StanleyD has joined #ruby
pdimitrov has joined #ruby
mattias__ has joined #ruby
kke_ has joined #ruby
cwarner_ has joined #ruby
likemike_ has joined #ruby
fijimunk1i has joined #ruby
irated has joined #ruby
peterwal1er78 has joined #ruby
Mohan__ has joined #ruby
QKO_ has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
p4tux_ has joined #ruby
iamjarvo has joined #ruby
pr0ggie has quit [Ping timeout: 272 seconds]
maroloccio2 has joined #ruby
ukd1 has quit [Ping timeout: 264 seconds]
DanKnoxz has joined #ruby
machuga_ has joined #ruby
machuga_ has quit [Excess Flood]
germanstudent_ has joined #ruby
KernelPone has joined #ruby
crazed- has joined #ruby
scottstamp_ has joined #ruby
DanKnoxz is now known as DanKnox
orionstez has joined #ruby
orionstez is now known as orionstein
the_ment- has joined #ruby
OdNairy has joined #ruby
fijimunkii has quit [*.net *.split]
tylersmith has quit [*.net *.split]
lfox has quit [*.net *.split]
Apane has quit [*.net *.split]
tkuchiki has quit [*.net *.split]
Liothen has quit [*.net *.split]
p4tux has quit [*.net *.split]
sergicles has quit [*.net *.split]
Catie has quit [*.net *.split]
p8952 has quit [*.net *.split]
BraddPitt has quit [*.net *.split]
RTG` has quit [*.net *.split]
cwarner has quit [*.net *.split]
ItSANgo_ has quit [*.net *.split]
pryorda has quit [*.net *.split]
rclements has quit [*.net *.split]
octarine has quit [*.net *.split]
mattias_ has quit [*.net *.split]
darrik has quit [*.net *.split]
the_mentat has quit [*.net *.split]
eval-in has quit [*.net *.split]
testr0n has quit [*.net *.split]
iaj has quit [*.net *.split]
maroloccio has quit [*.net *.split]
scottstamp has quit [*.net *.split]
_HolyCow has quit [*.net *.split]
Mohan has quit [*.net *.split]
pixelgremlins has quit [*.net *.split]
nw has quit [*.net *.split]
crazedpsyc has quit [*.net *.split]
withnale_ has quit [*.net *.split]
germanstudent has quit [*.net *.split]
Coolhand has quit [*.net *.split]
vadviktor_ has quit [*.net *.split]
QKO has quit [*.net *.split]
likemike has quit [*.net *.split]
deanrock0 has quit [*.net *.split]
bahar has quit [*.net *.split]
DanKnox_away has quit [*.net *.split]
orionstein_away has quit [*.net *.split]
onewheelskyward has quit [*.net *.split]
machuga has quit [*.net *.split]
peterwalker78 has quit [*.net *.split]
Douglish has quit [*.net *.split]
wmoxam has quit [*.net *.split]
kke has quit [*.net *.split]
krz has joined #ruby
sergicles_ is now known as sergicles
scottstamp_ is now known as scottstamp
onewheelskyward_ has joined #ruby
machuga_ has joined #ruby
machuga_ is now known as machuga
KernelPone is now known as Catie
freezey has joined #ruby
bahar has joined #ruby
octarine_ is now known as octarine
silent_r1ot has quit [Read error: Operation timed out]
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
thams has quit [Quit: thams]
jkhwan has quit [Remote host closed the connection]
jamblack has quit [Quit: jamblack]
jkhwan has joined #ruby
yfeldblum has joined #ruby
linojon has quit [Quit: linojon]
dhruvasagar has quit [Read error: Connection reset by peer]
mrsolo has left #ruby ["Leaving"]
dhruvasagar has joined #ruby
GudRiddanz has joined #ruby
jkhwan has quit [Ping timeout: 272 seconds]
jamblack has joined #ruby
lukec has quit [Quit: lukec]
Flashmasterson has left #ruby [#ruby]
sjuxax has joined #ruby
awarner has joined #ruby
bio is now known as Biohazard
GudRiddanz has left #ruby [#ruby]
<sjuxax>
Hi. Getting undefined method `json_create' for Date:Class (NoMethodError) when I try to call Date::json_create on a string, but the method exists in documentation. I'm using ruby 1.9.3-p448.
GudRiddanz has joined #ruby
GudRiddanz has left #ruby [#ruby]
vlad_starkov has quit [Read error: Connection reset by peer]
czsr has joined #ruby
caleb_io has quit [Quit: caleb_io]
nisstyre has quit [Quit: Leaving]
nisstyre has joined #ruby
mj12albert has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
bean__ has joined #ruby
tommyvyo has quit [Read error: No route to host]
jamblack has quit [Quit: jamblack]
havenwood has joined #ruby
nhhagen has joined #ruby
apeiros_ has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
<sjuxax>
Thank you apeiros_. That seems pretty weird. Why does that behave that way?
iliketurtles has joined #ruby
tomzx_mac has quit [Ping timeout: 245 seconds]
<apeiros_>
sjuxax: I have no insights into the decision reasoning of ruby core devs.
brennanMKE has joined #ruby
<apeiros_>
I'd assume that they wanted changes to how core serializes as json to be optional
ananthakumaran has quit [Ping timeout: 246 seconds]
ananthakumaran has joined #ruby
dhruvasagar has joined #ruby
weems has quit [Read error: Connection reset by peer]
brianpWins has joined #ruby
earthquake has joined #ruby
brennanMKE has quit [Ping timeout: 240 seconds]
aspires has quit [Quit: aspires]
noop has joined #ruby
justsee has joined #ruby
hogeo has quit [Remote host closed the connection]
jkhwan has joined #ruby
hogeo has joined #ruby
postmodern has quit [Quit: Leaving]
onewheelskyward_ is now known as onewheelskyward
mercwithamouth has quit [Quit: Lost terminal]
Es0teric has joined #ruby
thecopy has joined #ruby
apeiros_ has quit [Remote host closed the connection]
hogeo_ has joined #ruby
apeiros has joined #ruby
nateberkopec has joined #ruby
hogeo has quit [Read error: Connection reset by peer]
aryaching has quit [Read error: Connection reset by peer]
havenwood has quit []
bean__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hiyosi has joined #ruby
weems has joined #ruby
silent_root has quit [Quit: Lost terminal]
silent_r1ot has quit [Quit: Lost terminal]
mercwithamouth has joined #ruby
varfoo has quit [Ping timeout: 272 seconds]
Seich has quit [Quit: Computer has gone to sleep.]
yacks has quit [Ping timeout: 268 seconds]
unstable has left #ruby [#ruby]
dhruvasagar has quit [Read error: Connection reset by peer]
ananthakumaran has quit [Read error: Connection reset by peer]
apeiros has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Ping timeout: 246 seconds]
varfoo has joined #ruby
nateberkopec has quit [Ping timeout: 265 seconds]
frustrum has quit [Ping timeout: 245 seconds]
sayan has joined #ruby
nisstyre has joined #ruby
ananthakumaran has joined #ruby
dEPy has joined #ruby
rickruby has joined #ruby
fuhgeddaboudit has quit [Read error: Operation timed out]
hiyosi has quit [Ping timeout: 260 seconds]
t_p has joined #ruby
dhruvasagar has joined #ruby
dEPy has quit [Ping timeout: 260 seconds]
jrhorn424 is now known as zz_jrhorn424
starchild_ has joined #ruby
s3itz has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
jkhwan has quit [Remote host closed the connection]
joelroa has quit [Quit: Computer has gone to sleep.]
ananthakumaran has joined #ruby
Guest22459 is now known as raar
raar has quit [Changing host]
raar has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
funburn has quit [Quit: funburn]
mr_red has quit [Quit: Bye :)]
tagrudev has joined #ruby
mr_red has joined #ruby
dhruvasagar has joined #ruby
funburn has joined #ruby
pranny has quit [Remote host closed the connection]
thecopy has quit [Quit: thecopy]
threesome has joined #ruby
JohnBat26 has joined #ruby
pranny has joined #ruby
timonv has quit [Remote host closed the connection]
pranny1 has joined #ruby
funburn has quit [Quit: funburn]
justsee has quit [Ping timeout: 246 seconds]
sevenseacat has quit [Quit: Leaving.]
AndChat- has quit [Quit: Bye]
justsee has joined #ruby
lxsameer has joined #ruby
lkba has joined #ruby
Ripp__ has joined #ruby
zipper has joined #ruby
<lxsameer>
does tomdoc supports javascript files too ?
pranny has quit [Ping timeout: 264 seconds]
sevenseacat has joined #ruby
oz` has joined #ruby
sergicles has quit [Quit: sergicles]
Seich has joined #ruby
diegok has joined #ruby
bakedb has joined #ruby
tewmten_ has joined #ruby
wereHams1er has joined #ruby
XenoWolf_ has joined #ruby
oz has quit [Ping timeout: 272 seconds]
tewmten has quit [Ping timeout: 272 seconds]
diego_k has quit [Ping timeout: 272 seconds]
bakedb_ has quit [Ping timeout: 272 seconds]
darkc0met has quit [Ping timeout: 272 seconds]
wereHamster has quit [Ping timeout: 272 seconds]
XenoWolf has quit [Ping timeout: 272 seconds]
oz` is now known as oz
atno__ has joined #ruby
kaspergrubbe has joined #ruby
kevinykchan has joined #ruby
tjad has quit [Ping timeout: 246 seconds]
atno has quit [Ping timeout: 245 seconds]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
r0bby_ has quit [Read error: No route to host]
nhhagen has joined #ruby
robbyoconnor has joined #ruby
darkc0met has joined #ruby
Kabaka has quit [Ping timeout: 240 seconds]
lewis has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
jaimef has quit [Excess Flood]
varfoo has quit [Ping timeout: 272 seconds]
lewis has joined #ruby
yfeldblu_ has joined #ruby
krz has quit [Ping timeout: 246 seconds]
t_p has quit [Quit: Computer has gone to sleep.]
nhhagen has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Ping timeout: 272 seconds]
sbos99 has joined #ruby
<lxsameer>
i need a document generator which support ruby and javascript?
dhruvasagar has quit [Read error: Connection reset by peer]
ananthakumaran has quit [Read error: Connection reset by peer]
lewis has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby
ananthakumaran has joined #ruby
<Kamuela>
Could someone take a look at this and explain to me what's going on? http://d.pr/i/IuEc Why isn't my mixed-type array working as the video says it should?
jaimef has joined #ruby
derebos has joined #ruby
<s2013>
Kamuela, did you try puts
<Kamuela>
s2013: just did, nothing
<s2013>
restart irb
<s2013>
and do a simple array like arr = [1,2]
<s2013>
then arr.inspect
dabos has joined #ruby
<Kamuela>
s2013: weird, yeah a restart fixed it
<s2013>
cool
<s2013>
when in doubt, restart
<Kamuela>
weird approach with interpeters lol
mercwithamouth has quit [Quit: Lost terminal]
<s2013>
its just approach in life in general
sectionme has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
mercwithamouth has joined #ruby
dEPy has joined #ruby
sbos99 has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby
tylersmi_ has quit [Remote host closed the connection]
thecopy has joined #ruby
dmyers has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<Kamuela>
class.method(a,b) equivalent to class.method a, b ?
WillAmes has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
myth17 has joined #ruby
brennanMKE has joined #ruby
Apane has quit [Ping timeout: 246 seconds]
WillAmes has joined #ruby
Mon_Ouie has quit [Ping timeout: 252 seconds]
justsee has quit [Ping timeout: 240 seconds]
brennanMKE has quit [Ping timeout: 246 seconds]
tjad has joined #ruby
derebos has quit [Ping timeout: 240 seconds]
ananthakumaran has quit [Read error: Connection reset by peer]
s2013 has quit [Ping timeout: 272 seconds]
iliketurtles has quit [Quit: zzzzz…..]
myth17 has quit [Quit: Bye Bye...]
Guest66421 has quit [Ping timeout: 264 seconds]
michael_mbp is now known as zz_michael_mbp
ananthakumaran has joined #ruby
BraddBitt is now known as BradPitt
mj12albert has quit [Ping timeout: 260 seconds]
BradPitt is now known as BraddPitt
zipper has quit [Ping timeout: 246 seconds]
nateberkopec has joined #ruby
simplex_ has joined #ruby
zz_tsykoduk is now known as tsykoduk
zz_michael_mbp is now known as michael_mbp
jkhwan has joined #ruby
krz has joined #ruby
krz has quit [Client Quit]
earthquake has quit [Quit: earthquake]
DanKnox is now known as DanKnox_away
wildroman has joined #ruby
hiyosi has joined #ruby
Ripp__ has quit []
pyrac has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has joined #ruby
wildroman has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
wildroman has joined #ruby
JimmyAtCMU has joined #ruby
dhruvasagar has joined #ruby
nateberkopec has quit [Ping timeout: 264 seconds]
<JimmyAtCMU>
In my code, I used "result=`./some-script.sh`", and the output seems to be cut off at some point.
ananthakumaran has quit [Read error: Connection reset by peer]
<JimmyAtCMU>
Does anyone know why it happens? Thanks!
simplex_ has quit [Ping timeout: 245 seconds]
hiyosi has quit [Ping timeout: 264 seconds]
ananthakumaran has joined #ruby
Ripp__ has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
wildroman has quit [Ping timeout: 260 seconds]
varfoo has joined #ruby
kaspergrubbe has quit [Ping timeout: 265 seconds]
codenapper has joined #ruby
Kneferilis has joined #ruby
krz has joined #ruby
tonni has joined #ruby
hogeo_ has quit [Remote host closed the connection]
<Kamuela>
I'm going through the Lynda Kevin Skoglund tutorial. Ruby is so beautiful.
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
funburn has joined #ruby
dagobah has joined #ruby
wildroman2 has joined #ruby
ahawkins has joined #ruby
skaflem has joined #ruby
jwang has quit [Ping timeout: 252 seconds]
wchun has joined #ruby
i_s has joined #ruby
vlad_starkov has joined #ruby
relix has joined #ruby
nhhagen has joined #ruby
threesome has quit [Ping timeout: 246 seconds]
drumusician has joined #ruby
JimmyAtCMU has quit [Remote host closed the connection]
hogeo has joined #ruby
JimmyAtCMU has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
tonni has quit [Read error: Connection reset by peer]
JimmyAtCMU has quit [Client Quit]
h_kon has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
ananthakumaran has quit [Read error: Connection reset by peer]
joelroa has joined #ruby
Lewix has joined #ruby
lewis has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
ananthakumaran has joined #ruby
codecop has joined #ruby
TheShaun is now known as TheShaun|AFK
preller has joined #ruby
pyrac has quit [Quit: pyrac]
jkhwan has quit [Remote host closed the connection]
Seich has quit [Quit: Computer has gone to sleep.]
jkhwan has joined #ruby
Seich has joined #ruby
nhhagen_ has joined #ruby
zipper has joined #ruby
luckyruby has joined #ruby
<Kamuela>
timtowtdi as f
lotharn has quit [Ping timeout: 246 seconds]
ehaliewicz has quit [Ping timeout: 246 seconds]
ananthakumaran has quit [Read error: Connection reset by peer]
lnormous has joined #ruby
i_s has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
i_s has joined #ruby
tonni has joined #ruby
Seich has quit [Ping timeout: 240 seconds]
Bofu2U has quit [Read error: Connection reset by peer]
raar has quit [Ping timeout: 252 seconds]
aspiers has quit [Ping timeout: 245 seconds]
nhhagen_ has quit [Ping timeout: 252 seconds]
jkhwan has quit [Remote host closed the connection]
banjara has joined #ruby
wildroman2 has quit [Remote host closed the connection]
jkhwan has joined #ruby
raar has joined #ruby
raar is now known as Guest18364
andikr has joined #ruby
i_s has quit [Ping timeout: 240 seconds]
zigomir has joined #ruby
nari has quit [Ping timeout: 245 seconds]
Kneferilis has quit [Ping timeout: 264 seconds]
tsykoduk is now known as zz_tsykoduk
aganov has joined #ruby
Astralum has joined #ruby
wallerdev has quit [Quit: wallerdev]
jkhwan has quit [Ping timeout: 272 seconds]
tonni has quit [Ping timeout: 260 seconds]
vlad_starkov has joined #ruby
colonolGron has joined #ruby
lnormous has quit [Ping timeout: 272 seconds]
coca_rails has joined #ruby
Astralum has quit [Ping timeout: 264 seconds]
Astralum has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
tonni has joined #ruby
dhruvasagar has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
coca_rails has quit []
tylersmith has joined #ruby
n4dir has joined #ruby
dmyers has quit [Quit: dmyers]
ananthakumaran has joined #ruby
lsmola has joined #ruby
n4dir has left #ruby [#ruby]
<krz>
if foo is a var string
vlad_starkov has quit [Remote host closed the connection]
tonni has quit [Read error: Connection reset by peer]
alup has joined #ruby
einarj has joined #ruby
yfeldblum has joined #ruby
Xeago has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
Seich has quit [Ping timeout: 264 seconds]
dhruvasagar has joined #ruby
hiyosi has quit [Ping timeout: 260 seconds]
ephemerian has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
ananthakumaran has joined #ruby
Astral_ has joined #ruby
claymore has joined #ruby
tsykoduk is now known as zz_tsykoduk
sayan has joined #ruby
sayan has quit [Remote host closed the connection]
camilasan has joined #ruby
djd has quit [Ping timeout: 250 seconds]
thecopy has quit [Quit: thecopy]
tonni has joined #ruby
djd has joined #ruby
sergicles has joined #ruby
timonv has joined #ruby
newbiehacker has joined #ruby
c0rn has quit []
Hanmac has joined #ruby
lsmola has quit [Quit: Leaving]
lsmola has joined #ruby
pdimitrov has quit [Ping timeout: 260 seconds]
sectionme has quit [Read error: Connection reset by peer]
LarsSmit has joined #ruby
pdimitrov has joined #ruby
ayaz has joined #ruby
platypine has joined #ruby
pr0ggie has quit [Ping timeout: 246 seconds]
vasilakisFiL has quit [Remote host closed the connection]
jhaals has joined #ruby
vasilakisFiL has joined #ruby
pr0ggie has joined #ruby
jhaals has quit [Client Quit]
sectionme has joined #ruby
Bira has joined #ruby
tonni has quit [Remote host closed the connection]
jhaals has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
ananthakumaran has quit [Read error: Connection reset by peer]
tonni has joined #ruby
dhruvasagar has joined #ruby
ananthakumaran has joined #ruby
solars has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
platypine has quit [Ping timeout: 264 seconds]
ananthakumaran has joined #ruby
drumusician has joined #ruby
tonni has quit [Read error: Connection reset by peer]
kaspergrubbe has joined #ruby
mengu has quit [Remote host closed the connection]
nhhagen_ has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has quit [Read error: Connection reset by peer]
obs has joined #ruby
threesome has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
krandi has joined #ruby
<krz>
ive got a string: 'foo_bar_cover_art.jpg' i need to check if the string has the any of the items in this array: %w(_cover_art _banner _original). at the same time. if th item exists in the string. i need to return the item. in this case. _cover_art will be returned
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
andikr has quit [Ping timeout: 272 seconds]
dhruvasagar has quit [Read error: Connection reset by peer]
nhhagen_ has quit [Ping timeout: 252 seconds]
Ripp__ has quit []
robustus has quit [Ping timeout: 264 seconds]
nvrch has joined #ruby
dhruvasagar has joined #ruby
robustus has joined #ruby
__LX__ has quit [Read error: Connection reset by peer]
chomskiii has joined #ruby
joost_like_toast has joined #ruby
chinychinchin has joined #ruby
apeiros has joined #ruby
derebos has joined #ruby
pranny1 has quit [Quit: Leaving.]
barratt has joined #ruby
tesuji has joined #ruby
<jblack>
krz: Look at the select method of array
pranny has joined #ruby
Kneferilis has joined #ruby
_Bravado has left #ruby [#ruby]
adambeynon has joined #ruby
tonni has joined #ruby
marcgg_ has quit [Read error: Connection reset by peer]
drumsrgr8forn8 has quit [Remote host closed the connection]
marcgg has joined #ruby
banjara has quit [Quit: Leaving.]
fijimunk1i has quit [Ping timeout: 264 seconds]
marcgg has quit [Read error: Connection reset by peer]
marcgg has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
olivier_bK has joined #ruby
_5kg has quit [Read error: Connection reset by peer]
ananthakumaran has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
timonv has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
brennanMKE has joined #ruby
tylersmith has joined #ruby
Jazz has quit [Disconnected by services]
ewnd9 has quit [Ping timeout: 245 seconds]
Bira has quit [Remote host closed the connection]
Xykon has joined #ruby
marcgg has quit [Remote host closed the connection]
<apeiros>
scanning is quite different from splitting…
<apeiros>
almost opposite. scan gives you the matches, split gives you the stuff between the matches.
marcgg has joined #ruby
d45h has quit [Ping timeout: 246 seconds]
kevinykchan has joined #ruby
Seich has quit [Ping timeout: 260 seconds]
dhruvasagar has joined #ruby
<krz>
yea i need the matches
<krz>
if there are any
sectionme has joined #ruby
hiyosi has quit [Read error: Operation timed out]
TheNumb has quit [Ping timeout: 296 seconds]
simplex_ has joined #ruby
timonv has joined #ruby
TheShaun|AFK is now known as TheShaun
TheNumb has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
kaspergr_ has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
tsykoduk is now known as zz_tsykoduk
lmmx_ has joined #ruby
ananthakumaran has joined #ruby
yfeldblum has joined #ruby
banisterfiend has joined #ruby
patteh has quit [Ping timeout: 245 seconds]
pr0ggie has quit [Ping timeout: 260 seconds]
kaspergrubbe has quit [Ping timeout: 260 seconds]
pdimitrov has quit [Ping timeout: 272 seconds]
eightbitraptor has joined #ruby
pr0ggie has joined #ruby
pdimitrov has joined #ruby
patteh has joined #ruby
lkba has quit [Ping timeout: 246 seconds]
joelroa has quit [Quit: Computer has gone to sleep.]
nism has joined #ruby
andikr has joined #ruby
krandi has quit [Ping timeout: 260 seconds]
zipper has joined #ruby
blaxter_ has joined #ruby
zarubin has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
karupanerura is now known as zz_karupanerura
pyrac has joined #ruby
jlebrech has joined #ruby
<lmmx_>
not sure if this is more of an XML question but the method itself relates to ruby (using the multi_xml library) - how do I specify the directory to go "up a level" from xref => contrib (using "../contrib") and back into the tree (to extract the name) http://pastie.org/8459202
ananthakumaran has quit [Read error: Connection reset by peer]
<workmad3>
lmmx_: sounds like an xpath question
reset has joined #ruby
<lmmx_>
alas the xml room is dead so early in the morning.. sorry to bother
kevinykchan has quit [Quit: Computer has gone to sleep.]
<workmad3>
lmmx_: how good are you with xpath?
<Hanmac>
lmmx_ use nokogiri when working with ruby + xml
luckyruby has quit [Remote host closed the connection]
<workmad3>
hanmac: can't the multi_xml lib use nokogiri as a backend? :)
<Hanmac>
i dont know multi_xml
<lmmx_>
i can't load nokogiri due to incompatibility with google_drive gem -_-
popl has joined #ruby
popl has joined #ruby
funburn has quit [Quit: funburn]
<lmmx_>
by "backend" that just means it requires the library without me seeing it, right? so the incompatibility still stands
<Hanmac>
oO
<lmmx_>
(◠△◠)
ItSANgo has joined #ruby
<Hanmac>
i wonder how can google_drive gem has a problem with nokogiri … i mean does it break when you require nokogiri too? or what do you mean with "incompatibility" ?
<krz>
oh wow. so you dont need to use a scan as well?
ananthakumaran has quit [Read error: Connection reset by peer]
<Hanmac>
i dont think why i should need to do
plotter has quit [Ping timeout: 245 seconds]
stunthamster has joined #ruby
apeiros has quit [Remote host closed the connection]
Kabaka has joined #ruby
ananthakumaran has joined #ruby
apeiros has joined #ruby
Macaveli has joined #ruby
habanany has joined #ruby
banjara has joined #ruby
Foredoomed has quit [Quit: Going offline, see ya! (www.adiirc.com)]
thecopy has joined #ruby
rickruby has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
habanany has quit [Quit: Bye]
habanany has joined #ruby
brennanMKE has joined #ruby
habanany has quit [Client Quit]
cads has quit [Ping timeout: 252 seconds]
habanany has joined #ruby
funburn has joined #ruby
habanany has quit [Client Quit]
pyrac has joined #ruby
tvw has joined #ruby
cads has joined #ruby
_5kg has joined #ruby
banjara has quit [Ping timeout: 246 seconds]
rdark has joined #ruby
tylersmith has joined #ruby
ewnd9 has quit [Ping timeout: 272 seconds]
brennanMKE has quit [Ping timeout: 260 seconds]
ananthakumaran has quit [Read error: Connection reset by peer]
Elhu has joined #ruby
lkba has joined #ruby
ananthakumaran has joined #ruby
_HolyCow has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
d45h has quit [Ping timeout: 265 seconds]
nateberkopec has joined #ruby
<krz>
i have the following array: %w(banner cover_art original). how can i gsub each element of the array instead of doing: basename.gsub('banner', '').gsub('original', '').gsub('cover_art', '')
dhruvasagar has quit [Read error: Connection reset by peer]
user258467 has quit [Remote host closed the connection]
drumusician has quit [Ping timeout: 260 seconds]
simplex_ has quit [Ping timeout: 265 seconds]
greenrose has joined #ruby
sayan has joined #ruby
pranny has quit [Ping timeout: 240 seconds]
justsee has joined #ruby
pyrac has quit [Ping timeout: 260 seconds]
greenrose1 has quit [Ping timeout: 246 seconds]
shaunbaker has quit [Remote host closed the connection]
shaunbaker has joined #ruby
d45h has quit [Ping timeout: 260 seconds]
andikr has joined #ruby
krandi has quit [Ping timeout: 246 seconds]
lyanchih has quit [Read error: Operation timed out]
ananthakumaran has quit [Read error: Connection reset by peer]
klaut has joined #ruby
jaimef has quit [Remote host closed the connection]
cba has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
ananthakumaran has joined #ruby
shaunbaker has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby
eka has joined #ruby
pranny has joined #ruby
Banistergalaxy has quit [Ping timeout: 272 seconds]
funburn has quit [Quit: funburn]
Banistergalaxy has joined #ruby
h_kon has quit [Remote host closed the connection]
h_kon_ has joined #ruby
nhhagen_ has joined #ruby
kaspergrubbe has joined #ruby
Ivo has quit [Quit: WeeChat 0.4.2]
hiyosi has joined #ruby
kaspergr_ has quit [Ping timeout: 257 seconds]
wildroman2 has joined #ruby
nhhagen_ has quit [Ping timeout: 252 seconds]
kiri has quit [Ping timeout: 246 seconds]
kiri has joined #ruby
tvw has quit []
kaspergr_ has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
sergicles has quit [Quit: sergicles]
kaspergrubbe has joined #ruby
kaspergr_ has quit [Read error: Connection reset by peer]
kaspergrubbe has quit [Remote host closed the connection]
ananthakumaran has quit [Read error: Connection reset by peer]
funburn has joined #ruby
Guest27184 is now known as RTG
dhruvasagar has quit [Read error: Connection reset by peer]
RTG is now known as RTG`
dhruvasagar has joined #ruby
ananthakumaran has joined #ruby
Geniack_ has joined #ruby
allsystemsarego has joined #ruby
<Geniack_>
hello, i need some help with simplecov... i am doing a ruby project without any rails stuff and i am calling SimpleCov.do before any requires but the coverage still shows that 0.00 % of code is covered, i cant find a solution on the net... any help?
d45h has joined #ruby
BizarreCake has joined #ruby
ItSANgo has quit [Ping timeout: 264 seconds]
d45h has quit [Max SendQ exceeded]
banisterfiend has quit [Quit: Computer has gone to sleep.]
Soda has joined #ruby
zarubin has quit [Ping timeout: 246 seconds]
wildroman2 has quit [Remote host closed the connection]
banjara has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ewnd9 has joined #ruby
d45h has joined #ruby
simoz has quit [Ping timeout: 245 seconds]
nomenkun has joined #ruby
thecopy has quit [Quit: thecopy]
banjara has quit [Ping timeout: 260 seconds]
krz has quit [Ping timeout: 260 seconds]
brennanMKE has joined #ruby
banisterfiend has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
sergicles has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
tjad_ has joined #ruby
tjad has quit [Ping timeout: 240 seconds]
wildroman has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
tylersmith has joined #ruby
limak has joined #ruby
ananthakumaran has joined #ruby
wildroman has quit [Remote host closed the connection]
<visof>
mikecmpbll: no i'm tryting to pacakge rails app as war and then war as rpm
acrussell has joined #ruby
p8952 has quit [Ping timeout: 264 seconds]
<mikecmpbll>
i have no idea, never done anything to do with packages outside of rubygems. i just remember reading something like what momomomomo just posted.
<momomomomo>
mikecmpbll: same haha
Ripp__ has joined #ruby
p8952 has joined #ruby
Liothen has joined #ruby
<ShellFu>
visof i wouldnt pollute your pkg db like that. Im my opinion id package with something portable like epm, and keep your custom packages separated from the os
<ShellFu>
im no pro programmer, but this is how I handle it everyday as a unix admin
divi has joined #ruby
banjara has quit [Ping timeout: 265 seconds]
sayan has quit [Ping timeout: 265 seconds]
<visof>
`rpmbuild -ba app.spec` will inherite all ENV?
drumusician has quit [Read error: Connection reset by peer]
<mikecmpbll>
:/
drumusician has joined #ruby
lukec has quit [Quit: lukec]
elux_ has joined #ruby
elux has quit [Read error: No route to host]
larissa has quit [Ping timeout: 272 seconds]
g0bl1n has joined #ruby
elux_ has quit [Client Quit]
maletor has joined #ruby
Bira has joined #ruby
<visof>
mikecmpbll: ?
RaCx has joined #ruby
<mikecmpbll>
visof: nothing :)
noop has quit [Ping timeout: 272 seconds]
baroquebobcat has joined #ruby
tonni has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
ffranz has quit [Remote host closed the connection]
<dcope>
why is the book_id always nil when i call payload_object? payload_object just loads as ymal
<dcope>
yaml
lmickh has joined #ruby
<Hanmac>
dcope: #rubyonrails
tagrudev has quit [Quit: Me = Awesome]
bean___ has joined #ruby
tylersmith has quit [Ping timeout: 244 seconds]
timonv has joined #ruby
ffranz has joined #ruby
wallerdev has joined #ruby
tsykoduk is now known as zz_tsykoduk
jerius has joined #ruby
wallerdev has quit [Client Quit]
wallerdev has joined #ruby
shaunbaker has joined #ruby
asobrasil has joined #ruby
tonni has joined #ruby
starchild_ has joined #ruby
Seich has joined #ruby
vlad_starkov has joined #ruby
elux has joined #ruby
tonni has quit [Read error: Connection reset by peer]
Targen has joined #ruby
Elhu has joined #ruby
LMolr has quit [Read error: Operation timed out]
MrThePlague has quit []
shaunbaker has quit [Ping timeout: 260 seconds]
jbpros has joined #ruby
Seich has quit [Ping timeout: 248 seconds]
dv__ has joined #ruby
dv_ has quit [Ping timeout: 248 seconds]
mikesplain has joined #ruby
larissa has joined #ruby
soulcake has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
dv__ is now known as dv_
soulcake has joined #ruby
jbpros has quit [Client Quit]
maletor has quit [Ping timeout: 272 seconds]
rickruby has quit [Remote host closed the connection]
neonlex has joined #ruby
thecopy has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
maletor has joined #ruby
Czupa has joined #ruby
wildroman has quit [Remote host closed the connection]
raphaelivan has quit [Quit: Leaving.]
verto has joined #ruby
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
pyrac has quit [Ping timeout: 250 seconds]
vlad_starkov has quit [Remote host closed the connection]
Bira has quit [Remote host closed the connection]
zz_tsykoduk is now known as tsykoduk
zeade has quit [Quit: Leaving.]
platzhirsch has left #ruby [#ruby]
dEPy has joined #ruby
heftig has quit [Quit: Quitting]
timonv has quit [Ping timeout: 264 seconds]
m8 has joined #ruby
jbpros has joined #ruby
kcombs has joined #ruby
fridim_ has joined #ruby
reset has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
typicalbender has joined #ruby
pyrac has joined #ruby
cpruitt has quit [Read error: Connection reset by peer]
mlpinit has quit [Remote host closed the connection]
timonv has joined #ruby
cpruitt has joined #ruby
tsykoduk is now known as zz_tsykoduk
iamjarvo has joined #ruby
Stygia has quit [Quit: Leaving]
mlpinit_ has joined #ruby
Liquid-- has joined #ruby
tomasso has joined #ruby
Bira has joined #ruby
d45h has quit []
<tomasso>
im running a process and it does http requests, in one of them I get 404 => Net::HTTPNotFound , and the process stops. I handled that exception by doing begin rescue, but the process continue to stop. Is there some way to make it continue doing other requests?
reset has quit [Ping timeout: 260 seconds]
mikesplain1 has joined #ruby
bluenemo has quit [Remote host closed the connection]
<hoelzro>
tomasso: would you mind pasting some code on a pastebin and sending us a link?
usrnix has joined #ruby
mikesplain has quit [Ping timeout: 246 seconds]
<usrnix>
Hi, what templating systems are there for ruby? like python's jinja
tjad has quit [Ping timeout: 260 seconds]
Ripp__ has quit []
<Hanmac>
usrnix depends what you want … the % method is very powerful
<krz>
is it possible to use gsub,to replace only the first occurrence?
mikesplain1 has quit [Client Quit]
<Hanmac>
krz #sub
mikesplain has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
camilasan has quit [Remote host closed the connection]
camilasa_ has joined #ruby
robbyoconnor has joined #ruby
Liquid-- has quit [Quit: Computer has gone to sleep.]
joast has quit [Quit: Leaving.]
mansi has quit [Remote host closed the connection]
fridim_ has quit [Read error: Operation timed out]
xk_id has quit [Quit:
mansi has joined #ruby
jbpros has quit [Client Quit]
thesheff17 has joined #ruby
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
jonathanwallace has quit [Ping timeout: 246 seconds]
jlast has joined #ruby
stringoO has quit [Read error: No route to host]
gcds has joined #ruby
jlast has quit [Read error: Connection reset by peer]
<Hanmac>
hmmm i wonder if it would be better when the array is splitted stored … like when you do a= [1,2,3]; a[5]; then its stored like {0=> [1,2,3], 5=>[4]} but iterates as [1,2,3,nil,nil,4] it would be fun to play with
mansi_ has joined #ruby
jlast has joined #ruby
dawkirst has quit [Ping timeout: 246 seconds]
gcds has quit [Read error: Connection reset by peer]
joast has joined #ruby
mansi has quit [Read error: Connection reset by peer]
gcds has joined #ruby
chinychinchin has quit [Quit: Konversation terminated!]
<Hanmac>
or something like a splitted Range, that is stored like [1,5,3,6] and is turned into 1.upto(5) + 5.downto(3) + 3.upto(6) ;P
chinychinchin has joined #ruby
thepumpkin has joined #ruby
thepumpkin has quit [Remote host closed the connection]
ewnd9 has quit [Read error: Operation timed out]
thepumpkin has joined #ruby
shredding has joined #ruby
ShellFu is now known as ShellFu_coffee
einarj has quit [Remote host closed the connection]
freakazoid0223 has quit [Read error: Connection reset by peer]
maletor has joined #ruby
d2dchat has joined #ruby
TheShaun is now known as TheShaun|AFK
andikr has quit [Remote host closed the connection]
failshell has joined #ruby
AndChat| has joined #ruby
lfox has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
jlebrech has quit [Quit: Konversation terminated!]
CaptainJet has joined #ruby
<Xeago>
that slution will have a trailing spaces
<Xeago>
-s
pel_daniel has quit [Ping timeout: 245 seconds]
<SteveBenner9>
interpolation is fastest in that post
<enebo>
workmad3 solution is faster than concat'ing or interpolation.
jaimef has quit [Read error: Connection reset by peer]
reset has joined #ruby
<Hanmac>
workmad3: if it could be called on each word (because of split) woulnt an gsub not faster? ;P
<SteveBenner9>
personally I like using << in most cases since its redonkulously readable
<SteveBenner9>
and I learned on c++ like most people in college I guess
<SteveBenner9>
so << makes my brain feel smart
<typicalbender>
SteveBenner9: it is in the case of only doing 1 thing but in the case where three things are interpolated the shovel operator is faster
lnormous has joined #ruby
<SteveBenner9>
typicalbender: oh ok :)
elux has quit [Quit: Leaving...]
<typicalbender>
:)
<typicalbender>
Personally I like reading the interpolation better and then leaving the shovel for things like arrays but thats the power of ruby :)
<Hanmac>
hm what about that? (its different but maybe also what he wants) title.gsub(/\w+/){|w| exceptions.include?(w) ? w : w.capitalize}.capitalize
<SteveBenner9>
of course when you're using an incredible IDE like Rubymine it's super easy to type out the #{}
jerius has joined #ruby
<typicalbender>
#vim
<SteveBenner9>
and convert selected text to be interpolated
<workmad3>
hanmac: hmm, good point :) I forget about gsub with a block most of the time
<enebo>
fwiw, JRuby does #{} faster than <<
whunt has joined #ruby
<benzrf>
VIM WOO
<typicalbender>
interesting, good to know
<enebo>
I would not really consider using one over the other for perf considerations unless it was dire
pyrac has quit [Quit: pyrac]
<SteveBenner9>
yes, but I'm lazy like Larry Wall says we should be ;)
<xtristan>
Can anyone point me in the right direction to leaving net/ssh connections open while an object is in scope? I see that channels are the way to go, but I need the 'master' connection to stay open to use it N seconds later (where N is nondeterministic)
vlad_starkov has quit [Remote host closed the connection]
<enebo>
And using Array.join like Xeago and workmad3 will beat string building since it happens in impl of join
lukec has joined #ruby
<visof>
`rpmbuild -ba file.spec`, from inside ruby code didn't give me the write rpmpackage, but if i run rpmbuild -ba file.spec in the shell it gave me the right prm
pel_daniel has joined #ruby
<visof>
how can i fix this?
juarlex_ has joined #ruby
<typicalbender>
FWIW these are the results of that script with jruby-1.7.6
<havenwood>
benzrf: Type `help` in irb, but use Pry instead! :)
<benzrf>
hanmac: oh that is just ri
<havenwood>
Kamuela: no
<Hanmac>
typicalbender: yeah, i wanted you to do the same with my string
<SteveBenner9>
benzrf: its called pry
<Kamuela>
havenwood: Then why does it have the "end" keyword?
<benzrf>
SteveBenner9: thanks
<havenwood>
Kamuela: well, sometimes not
<typicalbender>
benzrf: It's faster in some cases, there are optomizations you can do because it runs on the JVM
<SteveBenner9>
:)
<workmad3>
Kamuela: it doesn't use whitespace to define blocks
<Kamuela>
havenwood: also, are the tabs supposed to be spaces in my editor?
<enebo>
typicalbender: I will point out another issue with the bench for JRuby though (besides being a bit short). profiled optimizations will be performed throughout whole run so some earlier operations will be punished a little bit
jaimef has joined #ruby
atno__ has quit [Read error: Connection reset by peer]
<benzrf>
hanmac: python has a built in callable called 'help' where you can pass in an object or function or module or whatever and it analyzes it and gives you docs
<Kamuela>
workmad3: ah ok, but certain lines of text do need whitespace?
sambao21 has quit [Quit: Computer has gone to sleep.]
<havenwood>
Kamuela: some whitespace matters, some does not, it isn't whitespace sensitive as a method of closing blocks
danshultz has quit [Read error: Operation timed out]
axl_ has quit [Quit: axl_]
<workmad3>
Kamuela: whitespace can change the meaning in significant ways at times, yes :)
<workmad3>
Kamuela: e.g. 'some_obj["foo"]' vs 'some_obj ["foo"] '
<havenwood>
Kamuela: Whitespace is meaningful, but not for that meaning.
<typicalbender>
enebo: yeah I just copied that benchmark from a blog post. Not super scientific
pragmatism has joined #ruby
<typicalbender>
but ok for back of the envelope i guess
<Kamuela>
workmad3: I'm still trying to figure out hello.method('test') versus hello.method test
<SteveBenner9>
in Pry I type 'show-doc' or 'show-source'
<workmad3>
Kamuela: do you meant 'hello.method test' or 'hello.method "test" '?
huttan has quit [Ping timeout: 272 seconds]
mmcdaris has joined #ruby
braincrash has joined #ruby
<workmad3>
Kamuela: because those are 2 *very* different lines :) but
yojimbo_ has joined #ruby
<Kamuela>
workmad3: right, the exact equivalent WOULD be hello.method 'test'
<SteveBenner9>
havenwood you made my eyes bleed lol
<Kamuela>
workmad3: because test would refer to a variable identifier
zz_tsykoduk is now known as tsykoduk
<workmad3>
Kamuela: yup
<Kamuela>
I decided I wanted to go back and get a pretty good foundation before dealing with Rails just yet
<Kamuela>
I have a feeling when I go back, things are gonna be even easier
maniacal_ has joined #ruby
mikeg has quit [Read error: Connection reset by peer]
<enebo>
Kamuela: Have you done Ruby Koans yet?
<SteveBenner9>
workmad3 also, when you have multi-line strings things can get weird, you use '\' to continue a regular string but some people prefer just using the %q syntax altogether
<Kamuela>
enebo: Koans? No, I'm listening to Kevin Skoglund on Lynda
<workmad3>
SteveBenner9: I prefer to use a heredoc on multi-line strings
<SteveBenner9>
yes thats common I hate the sytnax though haha
<havenwood>
workmad3: i often find I use %||
<workmad3>
SteveBenner9: not spent enough time in bash? :)
<enebo>
Kamuela: Lots of practice working through all core libs and some amount of small programs to write like your snippet above
<Kamuela>
SteveBenner9: lol, thank you. i got that
<Hanmac>
SteveBenner9: what about "this" "kind" "of" "strings" "?" ? :D
axl_ has joined #ruby
JamesLever has joined #ruby
<havenwood>
i was pleased yesterday when i discovered i'd written a monkey face: inject(:|)
timonv has quit [Remote host closed the connection]
dagobah has quit [Remote host closed the connection]
atmosx has quit [Quit: Lost in trance]
<workmad3>
havenwood: :D
divi has joined #ruby
<workmad3>
havenwood: monkey inject!
<typicalbender>
At my previous employer we adopted the github ruby style guide which was nice as a beginner for learning the "common" way of doing this. https://github.com/styleguide/ruby
dangerousdave has joined #ruby
Guest90425 has quit [Read error: Connection reset by peer]
<Hanmac>
havenwood: "monkeyface for monkey patching" ;D
TehCraw has joined #ruby
timonv has joined #ruby
<SteveBenner9>
hanmac: yeah "quotes" are awesome!
<TehCraw>
Ah heck, only 906 people here. I was hoping to find a channel that was not quite so small.
<workmad3>
havenwood: from now on 'do the monkey' can refer to assembling a set of bit-flags into a bitmask :D
camilasa_ has quit [Remote host closed the connection]
iliketurtles has quit [Ping timeout: 260 seconds]
benzrf has quit [Read error: No route to host]
camilasan has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
olivier_bK has quit [Ping timeout: 260 seconds]
timonv has quit [Read error: Connection reset by peer]
<_br_>
obligatory question. Anyone managed to get rack-livereload, guard-livereload working with Slim & Sinatra ? Haml ?
s2013 has quit [Ping timeout: 244 seconds]
timonv has joined #ruby
Banistergalaxy has quit [Ping timeout: 244 seconds]
einarj has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
yfeldblu_ has quit [Read error: Connection reset by peer]
s2013 has joined #ruby
timonv has quit [Read error: Connection reset by peer]
Banistergalaxy has joined #ruby
cody-- has quit [Quit: derp]
zeade has joined #ruby
timonv has joined #ruby
Geniack_ has quit [Quit: leaving]
Tuxist has joined #ruby
atno__ has joined #ruby
<allaire>
Ruby 2.0 is said to be UTF-8 by default, but I just debugged my server because LANG wasnt set and ruby was falling back to ASCII, is this normal?
jhulten has joined #ruby
caleb_io has joined #ruby
<havenwood>
took me a sec to realize that wasn't meant to be liver_e_load, i need coffee
SteveBenner9 has quit [Ping timeout: 272 seconds]
Spami has joined #ruby
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gcds has quit [Remote host closed the connection]
atno has quit [Ping timeout: 245 seconds]
Mon_Ouie has joined #ruby
ddpunk has joined #ruby
<havenwood>
allaire: The default encoding is indeed UTF-8 in Ruby 2.0+.
barratt has quit [Ping timeout: 246 seconds]
pushpak has joined #ruby
jonahR has joined #ruby
einarj has quit [Ping timeout: 272 seconds]
heidi has joined #ruby
<havenwood>
allaire: What do you get for?: locale
Elhu has quit [Quit: Computer has gone to sleep.]
<allaire>
havenwood: what do you mean?
banjara has quit [Quit: Leaving.]
<allaire>
havenwood: when I type `locale` in my shell?
<havenwood>
allaire: If you type `locale` at the command line, what is echoed?
<havenwood>
allaire: yup yup
obs has quit [Quit: ChatZilla 0.9.87 [Iceape 2.7.12/20130119095535]]
zeropx has joined #ruby
<allaire>
havenwood: Now it's is correctly set to LANG="en_CA.UTF-8", so it's all good
<havenwood>
allaire: Are your LC_'s all UTF-*?
<allaire>
but on my server, it wasnt set at all
<allaire>
it was echoing to LANG= and LC_ALL=
jonahR is now known as jonahoffline
mark_locklear has quit [Ping timeout: 272 seconds]
<allaire>
so my question is, if ruby 2.0 is utf-8 by default, why, even if LANG and LC_ALL wasnt set, was still getting 'invalid byte sequence in US-ASCII' error
apeiros has joined #ruby
<allaire>
now that these two constants are set, everything's fine, but it wasnt prior to that
<Mon_Ouie>
That's the default encoding for your source code and for literals in your code
<Mon_Ouie>
It doesn't affect the default encoding for external inputs (e.g. files), which still depends on locales
camilasan has quit []
bigoldrock has joined #ruby
<havenwood>
allaire: You're positive you're actually running Ruby 2.0.0? (Unless like Mon_Ouie mentions you're reading a file encoded as US-ASCII, as it's still going to be that no matter what Ruby's internals are.)
ch___ has quit [Remote host closed the connection]
ghr has quit [Quit: Computer has gone to sleep.]
typicalbender has quit [Client Quit]
banjara has joined #ruby
<Mon_Ouie>
So when that string gets eval'd ruby thinks it's ascii because that's the encoding it was marked with
zigomir has joined #ruby
iliketurtles has joined #ruby
mfoo has joined #ruby
aapzak has quit [Ping timeout: 264 seconds]
<mfoo>
Hi, is it possible to identify what library support Ruby was compiled with at runtime? In this case I am interested if ruby was compiled with readline support
typicalbender has joined #ruby
<havenwood>
allaire: well, you don't need the link >.> but for others
Stygia has joined #ruby
<cout>
mfoo: I don't think the ruby binary itself gets linked directly to readline
czsr has quit [Remote host closed the connection]
koalallama has joined #ruby
<cout>
mfoo: so you should be able to just require 'readline' and see if it raises an exception
aapzak has joined #ruby
<mfoo>
cout << I'll try that, thanks
czsr has joined #ruby
srji has quit [Quit: Lost terminal]
davividal has joined #ruby
maurogoncalo has joined #ruby
jkhwan has quit [Remote host closed the connection]
jkhwan has joined #ruby
<allaire>
mfoo: I see what you did there
n4dir has joined #ruby
hiyosi has quit [Ping timeout: 272 seconds]
<allaire>
brb later
n4dir has left #ruby [#ruby]
allaire has quit []
earthquake has joined #ruby
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
bigoldrock has quit [Ping timeout: 245 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
chineduu has joined #ruby
Methylated has joined #ruby
freerobby has joined #ruby
freakazoid0223 has quit [Read error: Connection reset by peer]
chinychinchin has quit [Ping timeout: 244 seconds]
bigoldrock has joined #ruby
tylersmith has joined #ruby
wildroman has quit [Remote host closed the connection]
Es0teric has joined #ruby
wildroman has joined #ruby
tylersmith has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
havenwood has quit []
pyrac has joined #ruby
tylersmith has joined #ruby
wildroman has quit [Read error: Operation timed out]
Bira has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
ddpunk has quit [Remote host closed the connection]
lfox has joined #ruby
krz has quit [Quit: krz]
ddpunk has joined #ruby
banisterfiend has joined #ruby
JimmyAtCMU has joined #ruby
jaimef has quit [Remote host closed the connection]
mansi_ has quit [Remote host closed the connection]
ssvo has quit [Remote host closed the connection]
mansi has joined #ruby
<JimmyAtCMU>
When I do "result = `./script.sh`", apparently the string is cut off when the output is long.
<JimmyAtCMU>
How should I deal with the issue?
chineduu has quit [Read error: Connection reset by peer]
chineduu has joined #ruby
<cout>
use IO.popen
joelroa has joined #ruby
rndstr has quit [Remote host closed the connection]
davidboy has quit [Remote host closed the connection]
chuk has quit [Remote host closed the connection]
heidar has quit [Remote host closed the connection]
akhkharu has quit [Remote host closed the connection]
ziyadb has quit [Remote host closed the connection]
tommyvyo_ has quit [Remote host closed the connection]
zero7 has quit [Remote host closed the connection]
pipecloud has quit [Remote host closed the connection]
andrewstewart has quit [Remote host closed the connection]
im0b has quit [Remote host closed the connection]
rubyguy has quit [Remote host closed the connection]
kapowaz has quit [Remote host closed the connection]
xerxas has quit [Remote host closed the connection]
zpinter has quit [Remote host closed the connection]
randym_ has quit [Remote host closed the connection]
lectrick has quit [Remote host closed the connection]
sec_ has quit [Remote host closed the connection]
guilleiguaran_ has quit [Remote host closed the connection]
bluehavana has quit [Remote host closed the connection]
Guest85414___ has quit [Write error: Broken pipe]
mattyohe has quit [Write error: Broken pipe]
dnyy has quit [Write error: Broken pipe]
<cout>
whoa
petey has joined #ruby
ddpunk has quit [Ping timeout: 244 seconds]
<tylersmith>
i have a resque question and am wondering if there's a more specific channel i should ask in than here
<tylersmith>
me and google can't find any
<JimmyAtCMU>
cout: What is IO.popen?
joshwines has quit [Remote host closed the connection]
mroth has quit [Remote host closed the connection]
dziga has quit [Remote host closed the connection]
dekz has quit [Remote host closed the connection]
Domon_ has quit [Remote host closed the connection]
strax has quit [Remote host closed the connection]
geoffw8_ has quit [Remote host closed the connection]
flowerhack has quit [Remote host closed the connection]
Zespre has quit [Remote host closed the connection]
[Neurotic] has quit [Remote host closed the connection]
TheHodge has quit [Remote host closed the connection]
djd has quit [Remote host closed the connection]
Bira has joined #ruby
Naeblis has quit [Remote host closed the connection]
karnowski has quit [Remote host closed the connection]
caleb_io has quit [Quit: caleb_io]
JoeTheGuest has quit [Remote host closed the connection]
ckrailo has quit [Remote host closed the connection]
blooberr_ has quit [Remote host closed the connection]
octarine has quit [Remote host closed the connection]
<sayd>
having some trouble with octopress i think : /opt/boxen/rbenv/versions/1.9.2-p320/lib/ruby/1.9.1/mkmf.rb:368:in `try_do': The complier failed to generate an executable file. (RuntimeError)
<sayd>
You have to install development tools first.
mansi has joined #ruby
joshwines has joined #ruby
typicalbender has joined #ruby
zero7 has joined #ruby
rdark has quit [Quit: leaving]
banjara has quit [Client Quit]
sambao21 has joined #ruby
typicalbender has quit [Client Quit]
maletor has quit [Quit: Computer has gone to sleep.]
banjara has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ddpunk has quit [Remote host closed the connection]
ddpunk has joined #ruby
JoeTheGuest has joined #ruby
btanaka has joined #ruby
dziga has joined #ruby
sambao21 has quit [Client Quit]
ggherdov has joined #ruby
Domon_ has joined #ruby
rubyguy has joined #ruby
gilesw_ has joined #ruby
sailias has quit [Ping timeout: 272 seconds]
lfox has joined #ruby
denysonique has quit [Remote host closed the connection]
pkondzior___ has quit [Remote host closed the connection]
banisterfiend has quit [Quit: Computer has gone to sleep.]
geekbri has joined #ruby
rndstr has joined #ruby
ShellFu has quit [Remote host closed the connection]
<_br_>
Interesting theoretical question. If I provide a utf-8 input in ruby is it possible to guard it agains XSS by e.g. whitelisting certain characters? (this being a multi-lingual string)
akhkharu has joined #ruby
<sayd>
i dont suppose anyone coudl help me troubleshoot #boxen? its dead in their support channel
maletor has joined #ruby
shaileshg_ has joined #ruby
<sayd>
im confused about the install. it gets a repo put in /opt/boxen/repo and also there is a checkout of the repo in ~/src/out-repo
andrewstewart has joined #ruby
<sayd>
do i edit in the src dir and run script/boxen or run the /opt/boxen/bin/boxen hmm its a mystery
Zespre has joined #ruby
<apeiros>
_br_: that depends on more than just that. e.g. on where and how you use that whitelisted string.
Guest26798 has joined #ruby
Seich has quit [Quit: Computer has gone to sleep.]
banjara has quit [Quit: Leaving.]
<apeiros>
_br_: also you'd have to remember to verify the string is indeed valid utf-8, otherwise your whitelisting can have undesired side-effects
jaimef has joined #ruby
banjara has joined #ruby
Seich has joined #ruby
<_br_>
apeiros: that makes sense yes, I was just wondering how one would go in "whitelisting" only wanted chars on a multi-lingual input
<apeiros>
Seich: you don't happen to be swiss?
<_br_>
(against malicious use)
Azulinho has joined #ruby
LMolr has joined #ruby
FastestMilkman has joined #ruby
<apeiros>
_br_: \p{Letter} might help
zpinter has joined #ruby
lfox has quit [Ping timeout: 248 seconds]
platypine has joined #ruby
platypine has joined #ruby
Es0teric has quit [Quit: Nigga, im OUTIE 5000]
sngeth has joined #ruby
xpirator has joined #ruby
Seich has quit [Read error: Connection reset by peer]
<nobitanobi>
Is there any way to give String#include? more than one string to compare too? So, my_base_string.include?(substring1, substring2,...) ?
efrainolivares has quit [Ping timeout: 245 seconds]
vlad_sta_ has joined #ruby
<nobitanobi>
I am currently doing my_base.include? subs || my_base.include? subs2 || ..
<EHLOVader>
Hello, I was looking into the mailcatcher project ( from here http://mailcatcher.me/ ) they explicitly state that you shouldn't put the mailcatcher into the gemfile...
<EHLOVader>
I am trying to automate a vagrantfile and wanted to know why? or if there was a huge difference in the gemfile and gem install
mikesplain has joined #ruby
<Hanmac>
nobitanobi: or try this: my_base_string =~ /(substring1|substring2)/
platzhirsch has joined #ruby
<jblack>
nobitanobi: You could each it.
shaunbaker has joined #ruby
<Hanmac>
apeiros: what do you think? which one of this two forms are better?
flops has joined #ruby
<jblack>
nobitanobi: Are you trying to find out if an array of strings contains anoter array of strings?
wald0 has quit [Quit: Lost terminal]
<nobitanobi>
ok, nice thanks guys
gasbakid__ has quit [Read error: Operation timed out]
cpruitt has quit [Quit: cpruitt]
vlad_starkov has quit [Ping timeout: 245 seconds]
tsykoduk is now known as zz_tsykoduk
jaimef has quit [Remote host closed the connection]
<havenwood>
EHLOVader: Looks like the `mailcatcher` gem itself has a variety of dependencies including parts of a specific version of Rails and Sinatra. I guess they figure that the gem requiring such a mishmash of gems that are also likely required in different version by the app itself (if it has a Gemfile).
gasbakid__ has joined #ruby
atno__ is now known as atno
<havenwood>
oh, if forgot to end my sentence: is a bad idea...
<EHLOVader>
ah, so that would be the version requirements itself.
<EHLOVader>
that cause conflicts
<EHLOVader>
gotcha, thanks, that makes sense
mroth has quit [Read error: Connection reset by peer]
<EHLOVader>
I think through putty or maybe even vagrant itself I can accomplish something to install it outside of gemfiles
<EHLOVader>
not putty puppet
<EHLOVader>
my brain isn't working either
mroth has joined #ruby
lcf has joined #ruby
shaunbaker has quit [Remote host closed the connection]
kaspergrubbe has quit [Remote host closed the connection]
<lcf>
can you use more than 1 elsif in an if statement ?
<EHLOVader>
so ruby... if it wasn't apparent, I am not well versed in it... but I keep running into it being used for provisioning, build scripting, and other utility stuff...
<MrZYX>
lcf: yes
shaunbaker has joined #ruby
kaspergrubbe has joined #ruby
<lcf>
super
<EHLOVader>
Where would you all recommend I get started, if I wanted to learn more than I needed to manage those sorts of things?
lcf has quit [Client Quit]
<Hanmac>
lcf but you can look if a case when is not better for your case
sambao21 has quit [Quit: Computer has gone to sleep.]
<MrZYX>
too slow ;)
jaimef has joined #ruby
<havenwood>
EHLOVader: If you're fairly new to programming, Chris Pine's Learn to Program is a nice intro in Ruby. If you want to jump straight in the deep end, The Ruby Programming Language is a great book.
<EHLOVader>
nice, the latter would probably suit me better. I also thought of the progomofo.com as a decent way to get my hands dirty with ruby
hiyosi has joined #ruby
<EHLOVader>
I need to find projects I can use these on, looking into ruby, python, node.js etc... previously I had only worked with php, vbs, .net stuff and other proprietary ERP reporting languages...
bean___ has quit [Remote host closed the connection]
<platzhirsch>
actually that's the one of Vienna
<platzhirsch>
EHLOVader: it's really for a landing page not some dark hats presentation slide :P
d2dchat_ has joined #ruby
<EHLOVader>
haha
Azulinho has joined #ruby
mikesplain1 has joined #ruby
<samfisher>
hello. I have a small script with 2 parts, one parses a daily-changed XML one parsing a minutely-changed XML. how can I make first instruction to be run just once?
d2dchat has quit [Read error: Connection reset by peer]
<MrZYX>
samfisher: make two scripts, extract the common functionality into a library
sindork_ has joined #ruby
LBRapid_ has joined #ruby
<samfisher>
MrZYX: but I want only one script...
<MrZYX>
because...?
rickmasta has joined #ruby
jhaals has joined #ruby
axl_ has quit [Quit: axl_]
sumark_ has joined #ruby
<ycy>
there's something strange in your neighborhood, who you gonna call?
rtl_ has joined #ruby
<platzhirsch>
ycy: depends.. 911
<ycy>
ghostbusters.
carraroj has quit [Quit: Konversation terminated!]
<Hanmac>
ping apeiros
<apeiros>
pong
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
thesheff17 has joined #ruby
banjara has quit [Client Quit]
peterhu_ has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
carraroj has joined #ruby
banjara has joined #ruby
JesseH2 has joined #ruby
<Hanmac>
apeiros: have you seen my question? what is besser? [str1,str2].any? {|s| str3.include?(s)} or str3 =~ /(str1|str2)/ ?
<Hanmac>
i mean "better"
<apeiros>
the regex is probably faster
<apeiros>
and you don't need the capturing group
maloik_ has joined #ruby
rickruby has quit [Remote host closed the connection]
<samfisher>
assuming I have a script that prints "Current time is: #{time}", how can I make it not print a new line each time?
<samfisher>
using print "\e[2J\e[f" to clear the console but it's kinda dirty
<MrZYX>
use print instead of puts
ix0071 has joined #ruby
heftig has joined #ruby
<Hanmac>
apeiros: even if its generated like /(#{strs.join('|')})/ ? ;P
burgess has joined #ruby
<apeiros>
hanmac: again, no capturing group needed. and I'd use Regexp.union
alo1_ has joined #ruby
<apeiros>
if it's generated - not sure
<apeiros>
bench it?
maurogoncalo has quit [Quit: Leaving...]
kaichanvong___ has joined #ruby
<Hanmac>
nobitanobi: did you hear that?
<samfisher>
MrZYX: same thing, I get the flashing because of console clear
RedNifre has joined #ruby
Azulinho has quit [Ping timeout: 260 seconds]
<RedNifre>
Hey there!
platzhirsch has left #ruby [#ruby]
<Hanmac>
nobitanobi: my_base_string =~ Regexp.union(substring1,substring2,substring3) may be the bestestest variant ;P
<MrZYX>
samfisher: iirc there's an ansi code to clear the current line, google it
aspires has quit [Quit: sudo making a sandwich]
Liquid-- has joined #ruby
Freijo has joined #ruby
platzhirsch has joined #ruby
<RedNifre>
I know so little about ruby that I don't even know what to google for. What's it called if I want to add a method to Object that takes a string and some other parameters as input and then adds a new method with that name to the caller?
colonolG1on has joined #ruby
reset has joined #ruby
<nobitanobi>
hanmac: thank you :)
elux has quit [Quit: Leaving...]
spacebug has joined #ruby
<RedNifre>
All I find are static method additions in the style of "def object.methodname...", but how to do this dynamically?
Ripp__ has quit []
Tobarja_yikes has joined #ruby
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
banjara has quit [Client Quit]
jbpros has joined #ruby
braincra- has quit [Ping timeout: 240 seconds]
kenichi has quit [Ping timeout: 240 seconds]
Fuzai has quit [Quit: No Ping reply in 180 seconds.]
deanrock0 has quit [Quit: No Ping reply in 180 seconds.]
Fuzai has joined #ruby
LBRapid has quit [Ping timeout: 240 seconds]
mikesplain has quit [Ping timeout: 240 seconds]
kenichi has joined #ruby
anderson has quit [Quit: Leaving]
LBRapid_ is now known as LBRapid
Y_Ichiro has quit [Quit: No Ping reply in 180 seconds.]
Y_Ichiro has joined #ruby
anderson has joined #ruby
nonamehero has joined #ruby
Fuzai has quit [Client Quit]
Y_Ichiro has quit [Changing host]
Fuzai has joined #ruby
sumark has quit [Ping timeout: 240 seconds]
Y_Ichiro has joined #ruby
sindork has quit [Quit: No Ping reply in 180 seconds.]
rtl has quit [Ping timeout: 240 seconds]
anderson has quit [Max SendQ exceeded]
kenichi has quit [Client Quit]
<apeiros>
RedNifre: all method definitions are "dynamic", given that they're at runtime. do you mean with a variable method name?
psyprus has quit [Ping timeout: 240 seconds]
Y_Ichiro has quit [Quit: No Ping reply in 180 seconds.]
Fuzai has quit [Remote host closed the connection]
ix007 has quit [Ping timeout: 240 seconds]
JesseH has quit [Ping timeout: 240 seconds]
peterhu has quit [Ping timeout: 240 seconds]
Fuzai has joined #ruby
Y_Ichiro has joined #ruby
shevy has quit [Ping timeout: 240 seconds]
maloik has quit [Ping timeout: 240 seconds]
epic has quit [Ping timeout: 240 seconds]
kaichanvong has quit [Quit: _]
alo1 has quit [Ping timeout: 240 seconds]
kenichi has joined #ruby
psyprus has joined #ruby
Y_Ichiro has quit [Client Quit]
Guest88548 has quit [Ping timeout: 240 seconds]
Y_Ichiro has joined #ruby
Fraeon has quit [Ping timeout: 240 seconds]
nonamehero has quit [Ping timeout: 240 seconds]
colonolGron has quit [Ping timeout: 240 seconds]
Tobarja has quit [Ping timeout: 240 seconds]
psyprus has quit [Ping timeout: 240 seconds]
spacebug_ has quit [Remote host closed the connection]
mvangala has quit [Ping timeout: 240 seconds]
nonamehero has joined #ruby
mvangala has joined #ruby
psyprus has joined #ruby
Tobarja_yikes is now known as Tobarja
kaichanvong___ is now known as kaichanvong
Y_Ichiro has quit [Changing host]
Y_Ichiro has joined #ruby
<apeiros>
fuuu
shevy has joined #ruby
<apeiros>
holy splitted nets…
nonamehero has quit [Changing host]
nonamehero has joined #ruby
BizarreCake has quit [Ping timeout: 260 seconds]
<RedNifre>
yay, I'm on the same side than the person with the answer :)
<shevy>
RedNifre, even this here works: A.define_singleton_method(:test2) {|i='hi'|
<apeiros>
:(
<RedNifre>
Hm, I guess the old Ruby 1.8 that comes with Ubuntu simply doesn't cut it ... :/
ldnunes has quit [Quit: Leaving]
<apeiros>
eh, 1.8 is EOL
<apeiros>
no support
<apeiros>
dead
<apeiros>
gone
<RedNifre>
The thing is that I want to write a method that allows me to declare other methods.
<apeiros>
1.9 is already >5y old
<momomomomo>
You could say that 1.8 just doesn't cut the gems of today
<apeiros>
2.0 >1y (maybe even >2y - I lose track of time…)
* momomomomo
puts on sunglasses
Seich has quit [Ping timeout: 260 seconds]
<shevy>
RedNifre why don't you use define_method()
<RedNifre>
Yeah, I don't understand why 1.8 is used in Ubuntu :/
<apeiros>
I think apt by now has 1.9 and maybe even 2.0 packages
<shevy>
because this way they want to tell you to use something better than ubuntu
<apeiros>
just either named differently or with some flag/option (I don't use apt - #ubuntu or #debian for that)
<RedNifre>
I don't know that method, but what I want to do is this: The method I define using my method method first does some things and after that executes the block I passed to it.
<Hanmac>
RedNifre: depends how outdated your ubuntu is
<shevy>
method method first? :)
<RedNifre>
E.g. I might declace a method like this: to :say_hello { puts "hello" }
<RedNifre>
"to" would be the name of the method that generates methods. ":say_hello" would be the method name of the method to be generated.
simoz has joined #ruby
<shevy>
ok
<RedNifre>
"Define_method" is probably a method from the standard lib that doesn't add any code around it.
<shevy>
?
<apeiros>
define_method is the same as define_singleton_method
<apeiros>
just that it's for instance methods
<RedNifre>
The method declared via "to" should do more than just execute what I write.
<shevy>
?!?
<apeiros>
i.e., define_method --> def foo
<apeiros>
define_singleton_method --> def obj.foo
<RedNifre>
Please note that I'm a total beginner so I might missunderstand you a lot :)
allaire has quit []
jalcine has quit [Excess Flood]
<shevy>
this is a mutual feeling
r0bby_ has quit [Read error: Connection reset by peer]
<RedNifre>
I'll read some more about define_method, maybe it's exactly what I need. I'll be back in a few minutes...
<shevy>
"do more than just execute what I write" ... fetch you some coffee or read the mind, I am not sure. You need to tell it what to do. You can generate methods dynamically in ruby just fine, even on 1.8
divi has joined #ruby
JesseH2 has quit [Quit: Leaving]
JesseH has joined #ruby
<shevy>
I am still unsure about the problem description, I let apeiros take over ;)
jalcine has joined #ruby
<apeiros>
I'm off watching SC2, though
<shevy>
hehehe
<shevy>
this channel is filled with geeks
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
<platzhirsch>
geek sauce
banjara has quit [Client Quit]
<platzhirsch>
apeiros and shevy have always the same color in my IRC client
carraroj has quit [Read error: Connection reset by peer]
carraroj has joined #ruby
<usrnix>
Hmm, I want to start trying out sinatra for making simple web programs, anyone know of some sort of skeleton defaults I can generate? I think rails might do this where the directories and template files are presetup?
<RedNifre>
okay, maybe I should give a crazy example. Imagine you would want to start every method you write with puts "a method was called!". When using def you would have to write that at the start of every method? So you declare (pseudocode): def2(name,*params) { puts "a method..."; yield *params}...
Authenticator has quit [Remote host closed the connection]
andredublin has joined #ruby
ivanoats is now known as codefellowsbot
banjara has joined #ruby
andredublin has quit [Remote host closed the connection]
<RedNifre>
What I'm looking for is a way to declare a method in such a way that when I write the first line of the method body, some things have already happened to the parameters.
andredublin has joined #ruby
puppeh has joined #ruby
simoz2 has joined #ruby
dkamioka has quit [Remote host closed the connection]
__eka__ has joined #ruby
Elhu has joined #ruby
tsykoduk is now known as zz_tsykoduk
colonolG1on has quit [Quit: Lost terminal]
<RedNifre>
So my thinking was to add a method to Object that adds a method to the receiver(?) that first wrangles the parameter and then yields the block of the ... something something.
maletor has joined #ruby
andredublin has left #ruby [#ruby]
simoz has quit [Ping timeout: 272 seconds]
eka has quit [Ping timeout: 272 seconds]
fijimunkii has quit [Quit: leaving]
aspires has joined #ruby
mikesplain2 has joined #ruby
Bosox20051 has quit [Ping timeout: 246 seconds]
axl_ has joined #ruby
simoz2 has quit [Ping timeout: 248 seconds]
shadoi1 is now known as shadoi
codefellowsbot is now known as ivanoats
mikesplain1 has quit [Read error: Connection reset by peer]
banjara has quit [Quit: Leaving.]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikesplain3 has joined #ruby
banjara has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<stonecolddevin>
I'm trying to connect to an sql server 2008 database through ODBC. The connection string I have is from a C# program, and I"m not entirely sure what to do with it: http://pastie.org/8460783. Does anyone have any advice/examples of connecting to an sql server 2008 database using a dsn?
joelroa has quit [Quit: Computer has gone to sleep.]
lastk has joined #ruby
bootcoder has joined #ruby
<lastk>
someone knows a nice gem to parse logs?
aspires has quit [Client Quit]
yfeldblum has quit [Ping timeout: 260 seconds]
banjara has quit [Client Quit]
mikesplain2 has quit [Ping timeout: 240 seconds]
<waxjar>
RedNifre: can't you use a "proxy object" that performs the action (puts "a method was called!") and which then calls the method on another object?
banjara has joined #ruby
allaire has joined #ruby
banjara has quit [Client Quit]
Apane has joined #ruby
__eka__ is now known as eka
banjara has joined #ruby
sambao21 has joined #ruby
fijimunkii has joined #ruby
derebos has joined #ruby
<RedNifre>
how would that work for all methods? And how would a method declaration look?
drumusician has joined #ruby
LMolr has quit [Quit: Leaving]
hiyosi has joined #ruby
maurogoncalo has joined #ruby
saarinen has quit [Quit: saarinen]
r0bby_ has joined #ruby
<RedNifre>
Hm, I just noticed that my idea results in ugly () placement. "deff :say_something, parameter do" doesn't look that weird (except for the comma), but "deff(:method_name,params)" is just weird. Maybe it's a silly idea to begin with.
<visof>
i tried to run system("rpmbuild -ba file.spec") but with it got the wrong rpm, but if i execute rpmbuild -ba file.spec from the shell directly it got the right rpm
<visof>
is system or `` or exec need some kind of env to add or what's going on
dangerousdave has quit [Read error: Connection reset by peer]
funburn has joined #ruby
dangerousdave has joined #ruby
<RedNifre>
I don't think proxy.rb helps here...
zarubin has quit [Ping timeout: 272 seconds]
benwoody has joined #ruby
Raimondi has joined #ruby
peterhu_ is now known as peterhu
<RedNifre>
What originally brought me to the idea is python's named parameters and that the ruby idea seems to be to use a hash for this like def bla (name: "bob", id: 2). While this looks nice for the callers, I found it very ugly in the method.
<waxjar>
Ruby has keyword arguments since 2.0
hiyosi has quit [Ping timeout: 240 seconds]
robbyoconnor has joined #ruby
<RedNifre>
Guess I'll should read everything about ruby before I get any silly ideas then :)
<RedNifre>
btw, what way would you guys recommend to learn the language?
enebo has quit [Quit: enebo]
r0bby_ has quit [Ping timeout: 272 seconds]
saarinen has joined #ruby
<RedNifre>
I have a lot of fun in irb at the moment and googling stuff when i need them, but that might be the wrong way to learn it. I also have an old pickaxe 1.9, but maybe that's too old by now?
ddpunk has joined #ruby
axl_ has quit [Quit: axl_]
<shevy>
RedNifre you could always use method_missing() too
<TorpedoSkyline>
ah cool, I'll check it out. thanks ged
<apeiros>
TorpedoSkyline: if you have troubles with the docs, then *ask specific questions* about sections you don't understand.
<apeiros>
and no, the docs don't suck.
<shevy>
yeah, it's best to avoid projects where the original author was too lazy to invest his time
<platzhirsch>
RedNifre: I have no idea, just googled it from SO
heftig has quit [Quit: Quitting]
mooru has joined #ruby
<platzhirsch>
and to answer your question: I have no idea what Ruby could be of use on Android
<ged>
TorpedoSkyline: You can glean some general knowledge about how ERb works from the guide, but just be aware that it includes Erubis-only features.
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
hanmac I think that was mentioned a few times already even before that. it's as if you have bad quality information repeated until it seems factual. (I never visit aljazeera btw)
divi has joined #ruby
iamjarvo has quit [Ping timeout: 272 seconds]
<Hanmac>
yeah, but it seems now they have a proof
derebos has joined #ruby
anderson has joined #ruby
Seich has quit [Ping timeout: 244 seconds]
gasbakid__ has quit [Read error: Connection reset by peer]
banjara has quit [Client Quit]
allaire has quit [Ping timeout: 245 seconds]
banjara has joined #ruby
<shevy>
and that takes 9 years? :D
Stygia has quit [Ping timeout: 240 seconds]
banjara has quit [Client Quit]
vlad_starkov has quit [Remote host closed the connection]
banjara has joined #ruby
banjara has quit [Changing host]
banjara has joined #ruby
Monie has joined #ruby
MiguelGD has joined #ruby
sepp2k has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
ravster has joined #ruby
freakazoid0223 has quit [Read error: Connection reset by peer]
simoz2 has joined #ruby
zz_tsykoduk is now known as tsykoduk
simoz has quit [Ping timeout: 265 seconds]
Bira has quit [Remote host closed the connection]
Bira has joined #ruby
simoz2 has quit [Ping timeout: 246 seconds]
hiyosi has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
johnnyfuchs has quit [Quit: Leaving.]
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
divi has joined #ruby
yfeldblum has quit [Remote host closed the connection]
Bira has quit [Remote host closed the connection]
yfeldblum has joined #ruby
aa47f8 has quit [Quit: aa47f8]
coderhs has joined #ruby
allsystemsarego has quit [Quit: Leaving]
Bosox20051 has joined #ruby
lmxxml has joined #ruby
hiyosi has quit [Ping timeout: 246 seconds]
<lmxxml>
hey all, I've got an output from xml that sometimes provides more than one result, but there's no splitting of them so 2 emails just get concatenated - how can I delimit them?
Bira has joined #ruby
ddpunk has joined #ruby
yfeldblu_ has joined #ruby
<SloggerKhan>
lmxxml: are you using Nokogiri?
<lmxxml>
I am
<lmxxml>
puts corremail.xpath("..//email").text => mxue@ee.ucla.eduwang@ee.ucla.edu should be ["mxue@ee.ucla.edu","wang@ee.ucla.edu"]
<SloggerKhan>
Then your selector is probably wrong if it's giving you 2 results without splitting unless in the actual xml they're both the content of the same tag
<lmxxml>
my selector is a tag called <email> which is repeated in the same branch of the tree
<SloggerKhan>
have you tried corremail.xpath("..//email")[0].text ?
<lmxxml>
I want both though...
<SloggerKhan>
then you just do a loop
<Hanmac>
when you want both, why do you call "text"?
<SloggerKhan>
corremail.xpath("..//email").each
yfeldblum has quit [Ping timeout: 240 seconds]
<lmxxml>
ooh each sounds good
<lmxxml>
erm I'm just mutating an example for many different uses
<lmxxml>
is the .text superfluous?
robertjpayne has joined #ruby
<Hanmac>
lmxxml: use this: xpath("..//email").map(&:text)
yfeldblu_ has quit [Remote host closed the connection]
<lmxxml>
fantastic!
Banistergalaxy has quit [Ping timeout: 244 seconds]
<robonerd>
anyone worked with libuv (C) or webmachine (ruby) ?
mlpinit has joined #ruby
<lmxxml>
(◕‿◕)
iliketurtles has quit [Quit: zzzzz…..]
Banistergalaxy has joined #ruby
sepp2k has joined #ruby
lmxxml has quit [Quit: Page closed]
Stygia has joined #ruby
felixjet_ has quit [Quit: Leaving]
zeade has quit [Quit: Leaving.]
felixjet has joined #ruby
Underbyte has joined #ruby
Seich has joined #ruby
ddpunk has quit [Remote host closed the connection]
artm has quit [Ping timeout: 246 seconds]
dexec has joined #ruby
c0rn has joined #ruby
dexec has quit [Client Quit]
bean___ has joined #ruby
Bosox20051 has quit [Ping timeout: 246 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
phantasm66 has quit [Quit: *sleeeep….]
freerobby has quit [Quit: Leaving.]
platypine has joined #ruby
smigg has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
geekbri_ has joined #ruby
geekbri_ has quit [Remote host closed the connection]
puppeh has quit [Quit: Leaving...]
tonni has joined #ruby
workmad3 has joined #ruby
iliketurtles has joined #ruby
UForgotten has quit [Ping timeout: 245 seconds]
geekbri has quit [Read error: Operation timed out]
bootcoder has quit [Read error: Connection reset by peer]
bootcoder has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
jenrzzz has joined #ruby
<sayd>
sorry that is during a bundle install inside my boxen dir
nico has joined #ruby
yfeldblum has joined #ruby
dmerrick has joined #ruby
nico is now known as Guest43509
samfisher has quit [Ping timeout: 248 seconds]
mikesplain3 has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Client Quit]
zigomir has quit [Ping timeout: 272 seconds]
frustrum has quit [Quit: WeeChat 0.4.2]
<canton7>
sayd, looks like you don't have bundler installed?
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
heidi has quit [Read error: Connection reset by peer]
heidi has joined #ruby
fijimunkii has quit [Ping timeout: 244 seconds]
Bira has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 240 seconds]
<sayd>
canton7: hmm i will try installing it thanks
<canton7>
gem install bundler
<sayd>
i must have changed my GEM_HOME to ~/.gem
<sayd>
how do i find the GEM_HOME? it doesnt show up in gem env
yfeldblum has joined #ruby
pu22l3r has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
pu22l3r has joined #ruby
yfeldblum has joined #ruby
mlpinit has quit [Remote host closed the connection]
<sayd>
valid question right?
fijimunkii has joined #ruby
someish has joined #ruby
saarinen has quit [Quit: saarinen]
verto has quit [Ping timeout: 240 seconds]
<someish>
I need to dynamically create an html file inline a method. I'm using &Q{} for the multiline code, but I need to through a loop in the middle of it. What's the best way to go about that?
justsee has joined #ruby
Seich has quit [Ping timeout: 246 seconds]
RichardBaker has quit [Quit: RichardBaker]
yfeldblum has quit [Ping timeout: 240 seconds]
d45h has quit []
yfeldblu_ has joined #ruby
johnnyfuchs has joined #ruby
pu22l3r has quit [Ping timeout: 268 seconds]
drag00n has quit [Ping timeout: 264 seconds]
<sayd>
im not sure why gems would be going here since im on 1.9.2: /opt/boxen/repo/.bundle/ruby/1.9.1/gems/json-1.8.1/ext/json/ext/generator/gem_make.out
kaldrenon has quit [Remote host closed the connection]
rubx has joined #ruby
ddpunk has joined #ruby
Tuxist has quit [Remote host closed the connection]
<sayd>
seems like no gems will install because of that
larissa has joined #ruby
soheil has quit [Remote host closed the connection]
<rubx>
I'm in an irb on win7 and can't figure out how to shush my shell up
<workmad3>
rubx: bash != irb
derebos has quit [Ping timeout: 245 seconds]
visof has quit [Ping timeout: 268 seconds]
<rubx>
scriptname >/dev/null gives a syntax error, unexpected tINTEGER, expecting keyword_do or '{' or '('
jkamenik has quit [Quit: Leaving.]
joelio has quit [Ping timeout: 260 seconds]
ekarlso- has quit [Ping timeout: 260 seconds]
<rubx>
workmad3 *vacant glazed look*...
<rubx>
I can't access this here lol?
joelio has joined #ruby
banisterfiend has joined #ruby
<rubx>
never used bash to code before is that bad...
ekarlso has joined #ruby
<workmad3>
rubx: that SO answer is regarding redirecting output in a bash shell on linux/unix
tomaw has quit [Quit: Quitting]
<workmad3>
rubx: it's completely useless for irb on windows
sergicles has joined #ruby
duggiefresh has quit [Remote host closed the connection]
<workmad3>
rubx: hell, it's completely useless for irb on linux
duggiefresh has joined #ruby
<rubx>
ohhhh just noticed the question says "with Bash scripting"
<rubx>
will I have a bash installed on my computer with the regular ruby?
<workmad3>
bash is nothing to do with ruby
<rubx>
all I can see is Interactive Ruby, RubyGems Doc. Server and cmd prompt with ruby
bigoldrock has joined #ruby
<rubx>
oh :|
osvico has joined #ruby
angusiguess has quit [Ping timeout: 245 seconds]
visof has joined #ruby
<rubx>
cringe..
soheil has quit [Ping timeout: 272 seconds]
<rubx>
is Bash what you get when you run a command prompt in ubuntu / linux ?
huttan has quit [Ping timeout: 248 seconds]
CAP7017 has joined #ruby
<rubx>
$ curl etc. ...
<workmad3>
rubx: by default in many distros, yes
<rubx>
is it available for win7?
<workmad3>
probably not :)
kaspergrubbe has joined #ruby
<workmad3>
it also wouldn't help with your problem most likely...
<rubx>
haha ah right
<workmad3>
echoing stuff out is kinda central to IRB... turning that off would be weird :)
bret has quit [Remote host closed the connection]
<rubx>
i have this huge output from one of my commands though
<rubx>
it pulls in a big file but feels the need to show it all
<rubx>
guessing I wouldn't be able to speed things up by switching off the display...?
<workmad3>
ah... then do '<command that does big output>; false'
Speed has left #ruby ["WeeChat 0.4.2"]
<workmad3>
hehe, no :P
MiguelGD has quit [Ping timeout: 245 seconds]
<rubx>
haha worth a try
einarj has joined #ruby
<rubx>
what will '<black hole>; false' do ?
staafl has quit [Ping timeout: 272 seconds]
adambeynon has joined #ruby
duggiefresh has quit [Ping timeout: 248 seconds]
MiguelGD has joined #ruby
MiguelGD has quit [Client Quit]
<workmad3>
rubx: well, what IRB does is echo out the result of the last expression each time you hit 'return'
<rubx>
ya
<workmad3>
rubx: <whatever>; false; will mean that IRB echos out 'false' after running <whatever>
bret has joined #ruby
<rubx>
'suppressing' the output of <whatever>?
<workmad3>
in essence, yes :)
<rubx>
hmmm.......
<rubx>
thanks workmad3 :D
c0rn has quit [Remote host closed the connection]
<workmad3>
but only in the sense that the IRB repl doesn't see the result of <whatever>, it only sees 'false' and so spits that out
yfeldblu_ has quit [Remote host closed the connection]
maletor has joined #ruby
c0rn has joined #ruby
CAP7017 has quit [Ping timeout: 245 seconds]
<rubx>
"doesn't see" == "doesn't perform" ?
yfeldblum has joined #ruby
bret has left #ruby [#ruby]
rellin has quit [Read error: Connection reset by peer]
breakingthings has quit []
<rubx>
what's the right syntax here? <> and ' ... ' aren't giving me the results I was expecting...
soheil has joined #ruby
<rubx>
oh wait no, got it
jamblack has quit [Quit: jamblack]
<rubx>
cool!
<rubx>
that's actually really useful as it wasn't the processing time that stopped me running through the code it was the time it took to render so much text, thanks a lot
m8 has quit [Quit: Sto andando via]
RichardBaker has joined #ruby
<sayd>
shoudl I still be using GEM_HOME if I am using rbenv?
rellin has joined #ruby
samfisher has joined #ruby
samfisher has quit [Changing host]
samfisher has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
Gerente has joined #ruby
<sayd>
or can someoen point me to docs explaining GEM_HOME
tomaw has joined #ruby
asteros has joined #ruby
tkuchiki has joined #ruby
derebos has joined #ruby
a1ph4g33k has quit [Quit: Leaving]
elnormous has joined #ruby
elnormous has quit [Client Quit]
randomnick_ has quit [Read error: Connection reset by peer]
JesseH has quit [Quit: Leaving]
asteros has quit [Client Quit]
iliketurtles has quit [Ping timeout: 265 seconds]
vt102 has quit [Ping timeout: 246 seconds]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apeiros has quit [Remote host closed the connection]
freezey has joined #ruby
apeiros has joined #ruby
tvw has joined #ruby
<rubx_>
see lines 49 - 53
Bira has joined #ruby
mmitchel_ has joined #ruby
<rubx_>
should I withold that end until the end like the others? it's just a small check but it feels like I should end it there... the code should still continue running, right?
jonathanwallace has quit [Read error: Operation timed out]
Underbyte has quit [Quit: Leaving...]
kitak has joined #ruby
rickruby has joined #ruby
lfox has joined #ruby
freezey has quit [Ping timeout: 240 seconds]
kcombs has joined #ruby
<rubx_>
whatcha think DouweM ?
<DouweM>
lemme check
_Bravado has joined #ruby
jkline has quit [Quit: jkline]
mmitchell has quit [Ping timeout: 272 seconds]
<rubx_>
\(◠‿◠)/
mmitchel_ has quit [Ping timeout: 248 seconds]
<DouweM>
rubx_: I'm not quite sure what you would like to change about that, looks fine to me. the code is a bit messy overall, but I don't see anything wrong with the if/else on lines 49-53
<rubx_>
yeah, it's the first code / program I've ever written so kinda to be expected :/
Fire-Dragon-DoL has joined #ruby
<rubx_>
I looked at the ways to use unless etc. to clean things up
<DouweM>
want me to clean it up a bit?
<rubx_>
I need to add a load more of those if .kind_of?(Array) bits now
marr has quit [Ping timeout: 246 seconds]
<rubx_>
I was wondering could I set up a "method" to do that rather than copy and paste and just change "surname" to "email" etc..?
<rubx_>
that'd be v v kind!
<DouweM>
yeah, making a method for that is probably better
<DouweM>
I'll clean up the overall structure and we'll see about extracting that stuff later
<someish>
Better, what is the way to do something like that?
kaspergrubbe has quit [Remote host closed the connection]
<joelteon>
someish: just use map
kaspergrubbe has joined #ruby
<joelteon>
mq.map{|k,v|...}.join("")
nwertman has quit [Remote host closed the connection]
osvico has quit [Ping timeout: 268 seconds]
<someish>
joelteon: what does the chained join("") do?
drag00n has joined #ruby
justsee has quit [Ping timeout: 272 seconds]
<joelteon>
turns the array into a string
banjara has quit [Quit: Leaving.]
<joelteon>
you should probably be using a templating language for this, like haml
banjara has joined #ruby
<joelteon>
haml has loops and so on built in
jmimi1 has joined #ruby
lfox has quit [Quit: ZZZzzz…]
earthquake has quit [Quit: earthquake]
<someish>
joelteon: I see. I'll check out HAML. thanks!
jmimi is now known as Guest36931
Guest36931 has quit [Killed (cameron.freenode.net (Nickname regained by services))]
jmimi1 is now known as jmimi
<joelteon>
no problem
<someish>
joelteon: I just wanted to clarify that I'm doing this inline for a reason. I can't use erb or haml because I need to generate the html on the spot.
<someish>
..I think
phantummm has quit [Quit: phantummm]
matchaw has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
<joelteon>
Why can't you do that with haml?
<joelteon>
looks like the document structure is fixed
havenwood has joined #ruby
johnnyfuchs has quit [Quit: Leaving.]
DrShoggoth has quit [Remote host closed the connection]
s2013 has quit [Ping timeout: 272 seconds]
<someish>
joelteon: let me post all the code, and an explanation.
<DouweM>
rubx_: a couple of things: use better variable names, doesn't xpath(///).amp(&:text) *always* return an array? what do you want to do with email?
alvaro_o has quit [Read error: Connection reset by peer]
<DouweM>
rubx_: to provide any more help, I'd need to know the actual expected input and output formats
<rubx_>
@DouweM can you start a private conversation I don't know how to
Jdubs has quit [Remote host closed the connection]
<someish>
joelteon: I'll try that out. Thanks.
alvaro_o has joined #ruby
hiyosi has joined #ruby
<DouweM>
rubx_: sure
panaggio is now known as ISF
Jdubs has joined #ruby
VTLob has quit [Quit: VTLob]
Seich has quit [Ping timeout: 248 seconds]
blaxter has joined #ruby
SteveBenner9 has joined #ruby
justsee has joined #ruby
darkskiez has quit [Ping timeout: 245 seconds]
Seich has joined #ruby
Jdubs has quit [Ping timeout: 240 seconds]
hiyosi has quit [Read error: Operation timed out]
larissa has quit [Ping timeout: 245 seconds]
larissa has joined #ruby
timonv has joined #ruby
derebos has quit [Ping timeout: 248 seconds]
visof has quit [Ping timeout: 272 seconds]
stringoO has quit [Quit: stringoO]
timonv has quit [Read error: Operation timed out]
stringoO has joined #ruby
nwertman has quit [Quit: Lost terminal]
nwertman has joined #ruby
stringoO has quit [Read error: Connection reset by peer]
pitzips has quit [Read error: No route to host]
stringoO has joined #ruby
brtdv has quit []
nhhagen has quit [Remote host closed the connection]
nhhagen has joined #ruby
nhhagen_ has joined #ruby
zipper has joined #ruby
<someish>
joelteon: unexpected end of input...
<someish>
joelteon: I can't see what's wrong with your code either.
eyckelboom has joined #ruby
zeade has joined #ruby
bugsinlights has joined #ruby
mikepack has quit [Remote host closed the connection]
<joelteon>
mine?
mikepack has joined #ruby
stringoO has quit [Read error: Operation timed out]
DonRichie has quit [Ping timeout: 245 seconds]
DonRichie has joined #ruby
nhhagen_ has quit [Ping timeout: 245 seconds]
darkskiez has joined #ruby
darkskiez has quit [Changing host]
darkskiez has joined #ruby
mixel has joined #ruby
Jdubs has joined #ruby
tsykoduk is now known as zz_tsykoduk
benwoody has quit [Quit: benwoody]
Liquid-- has quit [Quit: Computer has gone to sleep.]
mlpinit has joined #ruby
ShellFu has quit [Quit: Leaving]
Geniack has quit [Ping timeout: 264 seconds]
<someish>
joelteon: "indenting at the beginning of document is illegal"
Bosox20051 has joined #ruby
larissa has quit [Ping timeout: 265 seconds]
rickruby has quit [Remote host closed the connection]
Jdubs has quit [Ping timeout: 245 seconds]
<joelteon>
oh, remove two spaces from the front of each line
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
nkts has joined #ruby
nkts has quit [Max SendQ exceeded]
geggam has quit [Remote host closed the connection]