fflush changed the topic of #ruby to: Ruby 1.9.3-p194: http://ruby-lang.org || Paste > 3 lines of text on pastebin.com
Takehiro has quit [Ping timeout: 260 seconds]
banseljaj is now known as imami|afk
bricker_ has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
rakl has joined #ruby
brianpWins has quit [Quit: brianpWins]
AMfish has joined #ruby
bricker has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<harushimo> I'm missed one case in my game winner function
<harushimo> how do I check for if players play the same choice?
fyolnish has quit [Remote host closed the connection]
duracrisis has joined #ruby
duracrisis has quit [Changing host]
duracrisis has joined #ruby
<Michael_> are you storing the choices in an array?
mahmoudimus has joined #ruby
seanstickle has joined #ruby
<harushimo> yeah. Let me code this
<harushimo> I'll show you
QKO has joined #ruby
rabidpraxis has joined #ruby
<Vinz|> L
<Michael_> if my_array.include? new_value
<Michael_> do_this
<harushimo> I was doing an comparison with the elements
<Michael_> how so?
sent-hil has left #ruby [#ruby]
sent-hil has joined #ruby
rubious has joined #ruby
dmiller has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
SDr has quit [Read error: Connection reset by peer]
SegFaultAX|work has joined #ruby
SDr has joined #ruby
<harushimo> like this: https://gist.github.com/3862127
thmzlt has joined #ruby
rabidpraxis has quit [Ping timeout: 248 seconds]
Vinz| has quit [Ping timeout: 240 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<harushimo> it is returning alan not Rob
<harushimo> it has return the first player
lggr has joined #ruby
<Paradox> i just realized i have a gap in my ruby knowledge
<Paradox> in a custom class, is there a way to make it return some value instead of the object signature?
sent-hil has quit [Remote host closed the connection]
BMF has joined #ruby
<harushimo> any suggestions
davetoo has joined #ruby
yshh has joined #ruby
ngoldman has quit [Remote host closed the connection]
SegFaultAX|work has quit [Ping timeout: 248 seconds]
havenn has joined #ruby
evansbee has quit [Read error: Connection reset by peer]
daniel_hinojosa has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
slainer68 has joined #ruby
SpeedTheory has joined #ruby
anachronistic has quit [Quit: anachronistic]
lggr has joined #ruby
slainer68 has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
joofsh has joined #ruby
cwron has joined #ruby
x1337807x has quit [Quit: x1337807x]
<A124> Paradox: inspect method
<harushimo> I got two bugs in this program which I can figure out
eignerch_ has quit [Remote host closed the connection]
havenn has quit [Ping timeout: 276 seconds]
mercwithamouth has joined #ruby
<harushimo> why am I getting the wrong winner for my first test case and how do I test for if people have the same choice
rabidpraxis has joined #ruby
<A124> Paradox: Define 'inspect' method inside the class.
<cwron> Hi, guys. I'm trying to improve https://github.com/compwron/radarTranslator/blob/master/lib/items.rb so that it can make an attr_accessor :parser and therefore only has to call Parser.new once, but neither class << self nor self.methodname are working for me in Parser and my googling says that it should be. Any suggestions?
vlad_starkov has quit [Ping timeout: 256 seconds]
<Paradox> A124, i did, and it doesnt seem to work
<harushimo> any suggestions
v0n has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
moshee has quit [Ping timeout: 260 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
uris has joined #ruby
luckyruby has quit [Remote host closed the connection]
<davetoo> I would like to try to use rbenv under Windoze 7 (for veewee/vagrant work) but am not having much luck searching for the windows equivalent of eval "$(rbenv init -)" is
lggr has joined #ruby
<davetoo> s/is$//
blazes816 has quit [Read error: Connection reset by peer]
blazes816 has joined #ruby
cjk101010 has quit [Ping timeout: 272 seconds]
davetoo has quit [Quit: Leaving.]
cjk101010 has joined #ruby
QKO has quit [Ping timeout: 245 seconds]
jeffreybaird has joined #ruby
<Michael_> cwron, is Parser being created during get_recomendations_in_dir?
CaptainJet has joined #ruby
Bosox20051 has joined #ruby
jeffreybaird has quit [Client Quit]
QKO has joined #ruby
werdnativ has quit [Ping timeout: 260 seconds]
lggr has quit [Ping timeout: 260 seconds]
<cwron> Michael_, yes. Three times.
blazes816 has quit [Read error: Connection reset by peer]
blazes816 has joined #ruby
<cwron> Michael_ I can break it out at the method level but I want all of Items to call one Parser, and I'm not sure how to do that :/
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
josh__ has quit [Remote host closed the connection]
<Michael_> the problem is attr_accesor :parser means that there is an instance variable in the init function named parser, not that three instances of a class will be created, which btw will end up being called something lie <Parser: #8fe732>. If you wanted to make those available, i'd make an array and store the parsers in their, and make that array an attr_accesor
eikko has quit [Ping timeout: 240 seconds]
yshh has quit [Remote host closed the connection]
lggr has joined #ruby
CJNE has joined #ruby
hotovson_ has quit [Remote host closed the connection]
cburyta has quit [Remote host closed the connection]
<cwron> Michael_ hmm, that makes sense. Ideally I would only ahve one parser, and call its static methods to parse different bits of text
<Michael_> yeah, why can't you use the same parser in your map function?
drago757 has joined #ruby
<cwron> Not sure. Here's what I'm seeing... So if you look at get_items in https://github.com/compwron/radarTranslator/blob/master/lib/items.rb I wish it could use the attr_accessor parser that get_recommendations_in_dir is using, but when I do so, I see "cannot call method on nil", implying that @parser is nil... which I don't understand
CJNE has quit [Ping timeout: 246 seconds]
hotovson has joined #ruby
<Michael_> I think to make a class variable, you preface it with @@, so @@parser= Parser.new, and then @@parser.get_recomentdation ...
ncr100 has quit [Ping timeout: 260 seconds]
lggr has quit [Ping timeout: 240 seconds]
<digerati_> can anyone help me with this fxruby error: http://pastebin.com/P0FCWRdn
<cwron> Ah... I will try that. I didn't know I wanted a class variable :p
bigoldrock has quit [Ping timeout: 246 seconds]
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<cwron> Michael_ yep, that was it. Many thanks.
<Michael_> your welcome. Wha's this project about?
cakehero has joined #ruby
hotovson has quit [Read error: No route to host]
lggr has joined #ruby
havenn has joined #ruby
<cwron> I want to make a prettier picture using some data, so I hand-scraped it out of PDFs and parsed it into csv. Next step is to use D3 javascript lib to make pretty pictures; I'm still struggling with that part, so I decided to refactor first.
<Michael_> sounds cool
<Michael_> good luck
<cwron> thx
niklasb has quit [Read error: Operation timed out]
slainer68 has joined #ruby
Takehiro has joined #ruby
twoism has quit [Remote host closed the connection]
Carsekyx has joined #ruby
yshh has joined #ruby
samflores has joined #ruby
vitor-br has joined #ruby
SegFaultAX|work has joined #ruby
anachronistic has joined #ruby
mrsolo has left #ruby ["Leaving"]
ryanlecompte has quit [Remote host closed the connection]
hgf_ has joined #ruby
iori has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
yxhuvud has joined #ruby
uris has quit [Read error: Connection reset by peer]
uris has joined #ruby
samflores has quit [Client Quit]
fyolnish has joined #ruby
Takehiro has quit [Ping timeout: 260 seconds]
havenn has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 276 seconds]
lggr has joined #ruby
slainer68 has quit [Ping timeout: 260 seconds]
mahmoudimus has joined #ruby
SegFaultAX|work has quit [Ping timeout: 256 seconds]
chrishunt has quit [Ping timeout: 276 seconds]
jarred has quit [Quit: jarred]
Spooner has quit [Ping timeout: 245 seconds]
SegFaultAX|work has joined #ruby
zenformatics1 has joined #ruby
<harushimo> be right back. I'm having with fixing this bug
<harushimo> I'm having a hard time fixing this bug in my program
lggr has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
lggr has joined #ruby
AlbireoX has joined #ruby
Carsekyx has left #ruby ["Leaving"]
ken_barber has quit [Remote host closed the connection]
rakl has quit [Quit: sleeping]
SegFaultAX|work has quit [Ping timeout: 244 seconds]
yxhuvud has quit [Quit: Nettalk6 - www.ntalk.de]
rakl has joined #ruby
SegFaultAX|work has joined #ruby
cburyta has joined #ruby
yxhuvud has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
rakl has quit [Client Quit]
hsbt_away has joined #ruby
hsbt_away is now known as hsbt_
hsbt has quit [Read error: Connection reset by peer]
ken_barber has joined #ruby
lggr has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
ken_barber has quit [Remote host closed the connection]
Michael_ has quit [Remote host closed the connection]
jenrzzz has joined #ruby
hsbt_ is now known as hsbt_away
hsbt_away is now known as hsbt
tjbiddle has joined #ruby
cburyta has quit [Ping timeout: 260 seconds]
vlad_starkov has joined #ruby
<harushimo> I can't seem to figure out why I'm returning the correct winner
rakl has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
<harushimo> I mean I'm not returning the correct winner for my program
bricker_ has quit [Ping timeout: 276 seconds]
rovalent has joined #ruby
Pochacco has joined #ruby
Pochacco has quit [Client Quit]
havenn has joined #ruby
<rovalent> All, qq - In terms of ERB, am I missing something regarding checking this for regex? <% if hostname != /^foo-.+-bar\.domain\.tld$/ %> text <% end %>
vlad_starkov has quit [Ping timeout: 260 seconds]
Vert has quit [Remote host closed the connection]
elux has joined #ruby
SegFaultAX|work has quit [Ping timeout: 256 seconds]
lggr has joined #ruby
thinkclay has joined #ruby
marcux has quit [Quit: marcux]
GeekOnCoffee has joined #ruby
<profx_> easy one, what is =~ ?
wedtm is now known as wedtm|away
Tearan has quit [Quit: Sleepy Badger....]
dblandin has joined #ruby
havenn has quit [Ping timeout: 244 seconds]
lggr has quit [Ping timeout: 248 seconds]
<ddd> used like: @var = "plus" ; @var =~ /us/ basically checks to see if the string value in @var contains what is between the / / and returns the position where it was found.
<ddd> starting from 0. so that example would return 2 because us is found in plus and starts at pos 2
mikepack has quit [Remote host closed the connection]
rubious has quit [Quit: Leaving...]
<ddd> returns nil if the wanted chars are not found
<profx_> so it does perform an assignment
<profx_> and it works left to right, and evaluates
xaq has quit [Remote host closed the connection]
<ddd> no it does no assignment. it checks for
jeffreybaird has joined #ruby
lggr has joined #ruby
roadt has joined #ruby
rakl has quit [Quit: sleeping]
lagzilla has quit [Quit: Leaving]
rakl has joined #ruby
nitti has joined #ruby
mikeg has quit [Quit: Leaving]
apok has quit [Ping timeout: 260 seconds]
Michael has joined #ruby
<rovalent> FYI, i just needed to use unless instead of !=
jeffreybaird has quit [Ping timeout: 260 seconds]
nitti has quit [Ping timeout: 256 seconds]
lggr has quit [Ping timeout: 260 seconds]
adeponte has quit [Remote host closed the connection]
brianpWins has joined #ruby
lggr has joined #ruby
nari has joined #ruby
thinkclay has quit [Quit: Leaving.]
thinkclay has joined #ruby
v0n has quit [Ping timeout: 255 seconds]
Michael has quit [Remote host closed the connection]
joeycarmello has joined #ruby
havenn has joined #ruby
chrishunt has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
Takehiro has joined #ruby
dblandin has quit [Quit: dblandin]
chin-tastic has joined #ruby
justsee has joined #ruby
justsee has quit [Remote host closed the connection]
lggr has joined #ruby
shadoi has joined #ruby
bapa has quit [Remote host closed the connection]
JonnieCache has joined #ruby
roadt has quit [Ping timeout: 260 seconds]
joshman_ has joined #ruby
wedtm|away is now known as wedtm
ttt has joined #ruby
slainer68 has joined #ruby
sebastorama has joined #ruby
Takehiro has quit [Ping timeout: 245 seconds]
pipopopo has quit [Ping timeout: 246 seconds]
daniel_- has quit [Ping timeout: 245 seconds]
Ruler_Of_Heaven_ has joined #ruby
c0rn_ has quit [Quit: Computer has gone to sleep.]
elux has quit [Quit: Bye!]
kaawee has quit [Quit: Konversation terminated!]
joshman_ has quit [Ping timeout: 260 seconds]
kaawee has joined #ruby
v0n has joined #ruby
manizzle_ has quit [Remote host closed the connection]
slainer68 has quit [Ping timeout: 256 seconds]
lggr has quit [Ping timeout: 276 seconds]
freeayu has joined #ruby
beneggett has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
rburton- has joined #ruby
lggr has joined #ruby
Lemon|mbp has joined #ruby
<Lemon|mbp> is there any defactor lib for generating images in ruby?
Michael has joined #ruby
seanstickle has quit [Quit: seanstickle]
iamjarvo has joined #ruby
rovalent has quit [Quit: Linkinus - http://linkinus.com]
v0n has quit [Read error: Connection reset by peer]
awarner has joined #ruby
freeayu has quit [Quit: 离开]
rakl has quit [Quit: sleeping]
roadt has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
v0n has joined #ruby
wedtm is now known as wedtm|away
kaawee has quit [Ping timeout: 240 seconds]
<harushimo> I figured out how to get my winner
<harushimo> hip hip hooray
<profx_> winner ?
<harushimo> I'm writing rock paper scissors program
<profx_> same :D
<profx_> use recursion ?
<harushimo> no I didn't use recursion
<profx_> weird
<profx_> so does it work for large sized arrays of arrays ?
<profx_> or did you just write it for the example provided ?
<harushimo> yeah
<harushimo> I'm still working on it
<profx_> :)
<profx_> let see what the submission says ;)
<harushimo> I just need to figure out the equal case
<harushimo> if the two players have the same choice, how to print the first player
<harushimo> I'm having problems with it
lggr has joined #ruby
<profx_> oh
<harushimo> yeah
<profx_> so your not doing the tournament ey...
<profx_> yet*
<harushimo> not yet
<profx_> ah, thats what I was talking about
<harushimo> i'm not there yet
<harushimo> I will be
xaq has joined #ruby
Michael has quit [Remote host closed the connection]
<harushimo> I still think you don't need recursion for the tournament
<harushimo> we will see
<profx_> as soon as I looked at it, thats what i thought: recursion
vitor-br has quit [Read error: No route to host]
<harushimo> it is recursion
gry has quit [Quit: ZNC - http://znc.in]
sent-hil has joined #ruby
no_worries has joined #ruby
cburyta has joined #ruby
<profx_> good luck
<harushimo> thank you
<harushimo> you too
lggr has quit [Ping timeout: 260 seconds]
vlad_starkov has joined #ruby
cburyta has quit [Read error: Operation timed out]
lggr has joined #ruby
freeayu has joined #ruby
iamjarvo has quit [Ping timeout: 246 seconds]
blazes816 has quit [Read error: Connection reset by peer]
blazes816 has joined #ruby
vlad_starkov has quit [Ping timeout: 260 seconds]
TomJ has quit [Quit: TomJ]
radic has quit [Ping timeout: 246 seconds]
jeffreybaird has joined #ruby
CaptainJet has quit []
lggr has quit [Ping timeout: 244 seconds]
cwron has quit [Ping timeout: 245 seconds]
blazes816 has quit [Read error: Connection reset by peer]
JonnieCache has quit [Ping timeout: 255 seconds]
blazes816 has joined #ruby
lggr has joined #ruby
rakl has joined #ruby
jrist-afk is now known as jrist
hgf_ has quit [Quit: hgf_]
headius has joined #ruby
iamjarvo has joined #ruby
nitti has joined #ruby
headius has quit [Client Quit]
dagnachewa has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
phantasm66 has joined #ruby
radic has joined #ruby
nitti has quit [Ping timeout: 240 seconds]
rburton- has quit [Quit: Linkinus - http://linkinus.com]
jenrzzz has quit [Ping timeout: 246 seconds]
forced_request has quit [Remote host closed the connection]
headius has joined #ruby
lggr has joined #ruby
blazes816 has quit [Read error: Connection reset by peer]
blazes816 has joined #ruby
blazes816 has quit [Client Quit]
love_color_text has quit [Remote host closed the connection]
DharmaSoldat has joined #ruby
cyong has joined #ruby
philcrissman has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
AMfish has quit []
Averna has joined #ruby
chin-tastic has quit [Ping timeout: 245 seconds]
locriani_ has joined #ruby
lggr has joined #ruby
Takehiro has joined #ruby
locriani has quit [Ping timeout: 252 seconds]
twoism has joined #ruby
banisterfiend has joined #ruby
slainer68 has joined #ruby
twoism has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 256 seconds]
LouisGB has quit [Ping timeout: 246 seconds]
twoism has joined #ruby
Takehiro has quit [Ping timeout: 264 seconds]
nat2610 has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
lggr has joined #ruby
BMF has quit [Remote host closed the connection]
stephenjudkins has quit [Quit: stephenjudkins]
slainer68 has quit [Ping timeout: 260 seconds]
jeffreybaird has quit [Quit: jeffreybaird]
DharmaSoldat has quit [Quit: Leaving]
gry has joined #ruby
dagnachewa has quit [Quit: Leaving]
lggr has quit [Ping timeout: 240 seconds]
nat2610 has left #ruby [#ruby]
headius has quit [Quit: headius]
gry has quit [Quit: ZNC - http://znc.in]
gry has joined #ruby
voodoofish430 has quit [Quit: Leaving.]
lggr has joined #ruby
dakine has joined #ruby
headius has joined #ruby
lukaszk has joined #ruby
jeffreybaird has joined #ruby
v0n has quit [Ping timeout: 260 seconds]
rippa has joined #ruby
jeffreybaird has quit [Read error: Connection reset by peer]
jeffreybaird has joined #ruby
jeffreybaird has quit [Client Quit]
lukaszk has quit [Ping timeout: 245 seconds]
lggr has quit [Ping timeout: 256 seconds]
ken_barber has joined #ruby
awarner has quit [Remote host closed the connection]
rakl has quit [Quit: sleeping]
cburyta has joined #ruby
phantasm66 has quit [Quit: *poof*]
lggr has joined #ruby
iamjarvo has quit [Quit: WeeChat 0.3.9-dev]
iamjarvo has joined #ruby
vlad_starkov has joined #ruby
Ducblangis has quit [Quit: WeeChat 0.3.0]
ken_barber has quit [Remote host closed the connection]
cburyta has quit [Ping timeout: 240 seconds]
quest88 has joined #ruby
chrishunt has quit [Ping timeout: 244 seconds]
krz has joined #ruby
joeycarmello has quit [Remote host closed the connection]
bradleyprice has joined #ruby
vlad_starkov has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 260 seconds]
skaczor has quit [Ping timeout: 264 seconds]
irleif has joined #ruby
wedtm|away is now known as wedtm
tommyvyo has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
bapa has joined #ruby
fridim_ has joined #ruby
lggr has joined #ruby
Gal3rielol has joined #ruby
iamjarvo has quit [Quit: Linkinus - http://linkinus.com]
iamjarvo has joined #ruby
manizzle has joined #ruby
dmiller has quit [Remote host closed the connection]
xyzodiac has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 260 seconds]
yoklov has joined #ruby
iamjarvo has quit [Quit: Leaving...]
lggr has joined #ruby
xyzodiac has joined #ruby
blazes816 has joined #ruby
starship is now known as Guest13048
duracrisis is now known as starship
Guest13048 has quit [Killed (hobana.freenode.net (Nickname regained by services))]
Guest13048 has joined #ruby
macmartine has joined #ruby
salman has quit [Ping timeout: 245 seconds]
headius has quit [Quit: headius]
mercwithamouth has quit [Ping timeout: 260 seconds]
mercwithamouth has joined #ruby
dmiller has joined #ruby
diegoviola has quit [Ping timeout: 248 seconds]
wedtm is now known as wedtm|away
adeponte has joined #ruby
ryanlecompte has joined #ruby
ryanlecompte has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 252 seconds]
ryanlecompte has joined #ruby
dpk has quit [Quit: Asleep at the keyboard.]
lggr has joined #ruby
bapa has quit [Read error: Connection reset by peer]
bapa has joined #ruby
jrist is now known as jrist-afk
jarred has joined #ruby
iamjarvo has joined #ruby
Takehiro has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
sent-hil has quit [Remote host closed the connection]
DharmaSoldat has joined #ruby
joeycarmello has joined #ruby
iamjarvo has quit [Client Quit]
lggr has joined #ruby
slainer68 has joined #ruby
<harushimo> thanks everyone
<harushimo> I'm heading to bed
harushimo has quit [Quit: Leaving]
Servidorv has joined #ruby
<Servidorv> hey guys
<Servidorv> any one there??
Takehiro has quit [Ping timeout: 264 seconds]
Servidorv has quit [Client Quit]
philcrissman has quit [Remote host closed the connection]
joofsh has quit [Remote host closed the connection]
slainer68 has quit [Ping timeout: 248 seconds]
xyzodiac has quit [Quit: Computer has gone to sleep.]
DharmaSoldat has left #ruby ["Leaving"]
no_worries has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 246 seconds]
<digerati_> when something uses: ac = Config.new
<digerati_> the .new is the def initalize()?
thinkclay has quit [Quit: Leaving.]
<digerati_> because i see things using Config.save for instance
<digerati_> and i see a def for save in Config class
gairola has joined #ruby
gairola has left #ruby [#ruby]
hemanth has joined #ruby
lggr has joined #ruby
rubious has joined #ruby
g-ram has quit [Quit: Computer has gone to sleep.]
rubious has quit [Client Quit]
<ryanf> digerati_: .new is a built-in method which calls initialize on the newly-created instance
ken_barber has joined #ruby
Tearan has joined #ruby
horofox has quit [Quit: horofox]
xorgnak has joined #ruby
<ryanf> so in general, you can think of a call to Config.new as corresponding to a call to the initialize instance method
<ryanf> but the new method does exist. it just almost never makes sense to override it
lggr has quit [Ping timeout: 260 seconds]
<digerati_> thanks ryanf
<digerati_> still learning here, dove head first into some really old ruby code and am trying to understand how they made it :)
adeponte has quit [Remote host closed the connection]
starship has quit [Ping timeout: 256 seconds]
lggr has joined #ruby
<reactormonk> digerati_: there is also .allocate, which does not call initialize
joeycarmello has quit [Remote host closed the connection]
<digerati_> i havent gotten that far yet
moshee has quit [Ping timeout: 245 seconds]
fridim_ has quit [Ping timeout: 246 seconds]
bapa has quit [Read error: Connection reset by peer]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
bapa has joined #ruby
cj3kim has joined #ruby
eilyx is now known as \n
\n is now known as eilyx
lggr has quit [Ping timeout: 245 seconds]
zenformatics1 has quit [Quit: Leaving.]
love_color_text has joined #ruby
zenformatics1 has joined #ruby
lggr has joined #ruby
Takehiro has joined #ruby
jarred_ has joined #ruby
jarred has quit [Ping timeout: 246 seconds]
jarred_ is now known as jarred
anachronistic has quit [Quit: anachronistic]
lggr has quit [Ping timeout: 260 seconds]
<banisterfiend> ryanf: new also does the alloc thing, it's basically: def new; o = alloc; o.send(:initialize); o; end
<ryanf> yes, I know
<ryanf> I was choosing to leave that out :)
lggr has joined #ruby
jarred_ has joined #ruby
quest88 has quit [Quit: quest88]
jarred has quit [Read error: Connection reset by peer]
jarred_ is now known as jarred
rellin has joined #ruby
<banisterfiend> k00
nitti has joined #ruby
reset has quit [Ping timeout: 240 seconds]
zommi has joined #ruby
uris has quit [Quit: Lost terminal]
nitti has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 260 seconds]
ananthakumaran has joined #ruby
ElderFain has quit [Ping timeout: 272 seconds]
<digerati_> is there any difference in @ or $ vars?
<digerati_> i.e @data = Config.new
<digerati_> i.e $data = Config.new
ElderFain has joined #ruby
jarred has quit [Quit: jarred]
lggr has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
JonnieCache has joined #ruby
<TTilus> digerati_: former is instance local (lives in "this") and later is global (do not use them)
lggr has quit [Ping timeout: 276 seconds]
<digerati_> So other instances can check $data since its global?
JonnieCache has quit [Ping timeout: 252 seconds]
lggr has joined #ruby
cyong has quit [Quit: Leaving.]
cyong has joined #ruby
ewag has quit [Ping timeout: 240 seconds]
manizzle has quit [Ping timeout: 240 seconds]
cyong has quit [Client Quit]
drago757 has quit [Quit: drago757]
lggr has quit [Ping timeout: 240 seconds]
cakehero has quit [Quit: Computer has gone to sleep.]
<reactormonk> banisterfiend: you forgot the arguments :>
macmartine has quit [Read error: Connection reset by peer]
lggr has joined #ruby
mercwithamouth has quit [Ping timeout: 245 seconds]
ananthakumaran has quit [Quit: Leaving.]
tgriffin2081 has joined #ruby
<digerati_> anyone ever use recursive_open_struct?
<tgriffin2081> I am a n00b in ruby, I am trying to get it set up on the mac, and I added this repository from github, but when I run ruby thefile.rb ... it tells me tha tthe ruby gems 'require' cannot load such file
<tgriffin2081> i have 1.9.3-p194
beneggett has quit [Ping timeout: 246 seconds]
<digerati_> tgriffin2081: do macs have console?
<tgriffin2081> yes i am in teh console
<tgriffin2081> well terminal
<digerati_> can you get to irb console?
<digerati_> just type irb in terminal
<tgriffin2081> ok that worked
<digerati_> you should get irb(main):001:0>
<tgriffin2081> its awaiting code
<tgriffin2081> yes
<digerati_> nice :)
Tearan has quit [Quit: Sleepy Badger....]
<digerati_> im a noob also
<digerati_> type require 'rubygems'
<digerati_> does it come back with => True
<tgriffin2081> i did and it shows => false
<digerati_> That means it wasnt already loaded
<digerati_> so its finding it
manizzle has joined #ruby
<digerati_> er i mean, that it WAS already loaded
<tgriffin2081> do you have to load ruby gems prior to running the code?
<digerati_> yes
<digerati_> typically
<digerati_> so at the top, in some of the code in studying
<digerati_> they have require 'rubygems'
<tgriffin2081> yes
lggr has quit [Ping timeout: 245 seconds]
<tgriffin2081> but i assume its failing because i haven't loaded it prior to running code
ewag has joined #ruby
beneggett has joined #ruby
<digerati_> can you add that to the top to be sure?
<digerati_> it will just come back with false if its already loaded
<tgriffin2081> it has require 'rubygems'
<digerati_> wont hurt
<digerati_> :)
<digerati_> you have a pastbin of the error?
<tgriffin2081> i can get one
<burgestrand> You don’t have to require rubygems since ruby 1.9
lggr has joined #ruby
<burgestrand> tgriffin2081: you are probably missing some gem dependency of the code. The name of the file it is trying to load tells you which it is.
<tgriffin2081> pastebin.com/zCaQKG5F
kuzushi has quit [Ping timeout: 256 seconds]
a_a_g has joined #ruby
<tgriffin2081> OH oops..I'm missing hpricot.. I'm knew to ruby
<tgriffin2081> i figured that it would get the gem automatically
<tgriffin2081> so I have to gem install all the required
manizzle has quit [Ping timeout: 260 seconds]
<burgestrand> tgriffin2081: most of them, anyway. You load gem libraries the same way you load local files.
cakehero has joined #ruby
<burgestrand> tgriffin2081: so the name is not *always* a gem, but usually is.
<tgriffin2081> like how do I check if I have the gem prior to loading it?
cburyta has joined #ruby
lggr has quit [Ping timeout: 276 seconds]
Gal3rielol has quit [Quit: Computer has gone to sleep.]
Gal3rielol has joined #ruby
Gal3rielol has quit [Client Quit]
lggr has joined #ruby
cburyta has quit [Ping timeout: 245 seconds]
<tgriffin2081> I got it to work.. thanks guys
Tearan has joined #ruby
<tgriffin2081> does anyone know the hot key to run rspec from vim?
adeponte has joined #ruby
werdnativ has joined #ruby
ken_barber has quit [Quit: Leaving...]
rippa has quit [Ping timeout: 240 seconds]
ananthakumaran has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
manizzle has joined #ruby
lggr has joined #ruby
tagrudev has joined #ruby
ryanf has quit [Ping timeout: 245 seconds]
sagax has joined #ruby
emb_ has joined #ruby
Tearan has quit [Quit: Sleepy Badger....]
cakehero has quit [Quit: Computer has gone to sleep.]
nitti has joined #ruby
wallerdev has quit [Quit: wallerdev]
emb_ has left #ruby [#ruby]
lggr has quit [Ping timeout: 240 seconds]
Tearan has joined #ruby
nitti has quit [Ping timeout: 246 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
hemanth has quit [Read error: Connection reset by peer]
mds2 has joined #ruby
lggr has joined #ruby
daslicious_ has quit [Quit: daslicious_]
Takehiro has quit [Remote host closed the connection]
CJNE has joined #ruby
darule has quit [Ping timeout: 248 seconds]
mahmoudimus has joined #ruby
AlbireoX has quit [Remote host closed the connection]
AlbireoX has joined #ruby
lushious has quit [Ping timeout: 252 seconds]
lggr has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby
answer_42 has joined #ruby
<tgriffin2081> does anyone have a good startup guide that shows how to use vim , rspec and ruby (also tmux) to set up your windows with the tests in 1 "window" and the code in another?
lggr has joined #ruby
AlbireoX has quit [Ping timeout: 248 seconds]
Tearan has quit [Quit: Sleepy Badger....]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
lushious has joined #ruby
Tearan has joined #ruby
adeponte has quit [Remote host closed the connection]
samuel02 has joined #ruby
ken_barber1 has joined #ruby
ken_barber1 has quit [Client Quit]
samuel02 has quit [Read error: Connection reset by peer]
reset has joined #ruby
mohits has joined #ruby
mohits has joined #ruby
mohits has quit [Changing host]
samuel02 has joined #ruby
ryanf has joined #ruby
Takehiro has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
evilsushi has joined #ruby
evilsushi has quit [Changing host]
evilsushi has joined #ruby
alecchen has joined #ruby
hemanth has joined #ruby
lggr has joined #ruby
und3f has joined #ruby
acrocity- has joined #ruby
nat2610 has joined #ruby
rakl has joined #ruby
Hanmac has joined #ruby
nat2610 has quit [Client Quit]
acrocity has quit [Ping timeout: 244 seconds]
yoklov has quit [Quit: computer sleeping]
mds2 has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
lggr has quit [Ping timeout: 252 seconds]
thmzlt has quit [Remote host closed the connection]
maesbn has joined #ruby
wedtm|away is now known as wedtm
alecchen has quit [Quit: alecchen]
daniel_hinojosa has quit [Quit: Leaving.]
timonv has joined #ruby
lggr has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
chussenot has joined #ruby
shadoi has quit [Quit: Leaving.]
manizzle has quit [Ping timeout: 276 seconds]
Hanmac has quit [Ping timeout: 256 seconds]
bapa has quit [Ping timeout: 246 seconds]
burgestrand has quit [Quit: Leaving.]
lggr has quit [Ping timeout: 240 seconds]
bradleyprice has quit [Remote host closed the connection]
ABK has joined #ruby
cburyta has joined #ruby
dmiller has quit [Remote host closed the connection]
lggr has joined #ruby
Jamone has joined #ruby
Jamone has joined #ruby
Jamone has quit [Changing host]
Monie has quit [Read error: Connection reset by peer]
aganov has joined #ruby
kyletcarey has joined #ruby
<kyletcarey> Is there any specific channel for people new to Ruby?
<rking> tgriffin2081: There are many different ways to set all of that up.
cburyta has quit [Ping timeout: 256 seconds]
<rking> tgriffin2081: I generally go all the way to guard, guard+spork if it's a slow project.
xaq_ has joined #ruby
xaq has quit [Read error: Connection reset by peer]
elsifaka has joined #ruby
<rking> tgriffin2081: But I also :map <f4> :up<cr>:!rake<cr>
Takehiro has quit [Remote host closed the connection]
CJNE has quit [Remote host closed the connection]
evilsushi has quit [Quit: Lost terminal]
lggr has quit [Ping timeout: 260 seconds]
dmiller has joined #ruby
lggr has joined #ruby
hotovson_ has joined #ruby
manizzle has joined #ruby
<rking> tgriffin2081: Let me/us know if you have trouble setting up Guard. It's a little gnarly.
margle has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
eldariof has joined #ruby
xclite has quit [Ping timeout: 260 seconds]
dhruvasagar has joined #ruby
lggr has quit [Ping timeout: 276 seconds]
lolmaus has joined #ruby
nitti has joined #ruby
jlwestsr has quit [Ping timeout: 246 seconds]
_mak has joined #ruby
rakl has quit [Quit: sleeping]
Morkel has joined #ruby
lggr has joined #ruby
justsee has joined #ruby
hotovson_ has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
seoaqua has joined #ruby
nitti has quit [Ping timeout: 246 seconds]
timonv has quit [Remote host closed the connection]
kyletcarey has quit [Ping timeout: 246 seconds]
hotovson has joined #ruby
workmad3 has joined #ruby
jprovazn_away is now known as jprovazn
chussenot has quit [Quit: chussenot]
justsee has quit [Quit: Linkinus - http://linkinus.com]
sspiff has joined #ruby
lggr has quit [Ping timeout: 255 seconds]
rakl has joined #ruby
lggr has joined #ruby
ryanlecompte has quit [Remote host closed the connection]
xaq_ has quit [Ping timeout: 260 seconds]
mohits has quit [Read error: Connection reset by peer]
havenn has quit [Remote host closed the connection]
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
ZubKonst has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 244 seconds]
dhruvasagar has joined #ruby
hbpoison has joined #ruby
Eplemosen has joined #ruby
ZubKonst_ has quit [Ping timeout: 246 seconds]
timonv has joined #ruby
lggr has joined #ruby
AMfish has joined #ruby
ngoldman has joined #ruby
Companion has quit [Ping timeout: 246 seconds]
mucker has joined #ruby
zigomir has joined #ruby
Companion has joined #ruby
xaq has joined #ruby
Takehiro has joined #ruby
Takehiro has quit [Remote host closed the connection]
Takehiro has joined #ruby
mneorr has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
brianpWins has quit [Quit: brianpWins]
JonnieCache has joined #ruby
Bosox20051 has quit [Remote host closed the connection]
banisterfiend has quit [Remote host closed the connection]
dr_bob has joined #ruby
chussenot has joined #ruby
artem has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
artem has quit [Remote host closed the connection]
artnez has quit [Read error: Connection reset by peer]
g_bleezy has quit [Read error: Connection reset by peer]
lggr has joined #ruby
dmiller has quit [Remote host closed the connection]
skogis has joined #ruby
dhruvasagar has quit [Ping timeout: 245 seconds]
g_bleezy has joined #ruby
tonini has joined #ruby
AMfish has quit [Ping timeout: 246 seconds]
Virunga has joined #ruby
dhruvasagar has joined #ruby
Virunga is now known as LennyLinux
_cheney has quit [Read error: Connection reset by peer]
SohKai has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
mhodgson has quit []
lggr has quit [Ping timeout: 260 seconds]
Tearan has quit [Quit: Sleepy Badger....]
burgestrand has joined #ruby
wedtm is now known as wedtm|away
timonv has quit [Remote host closed the connection]
lggr has joined #ruby
Gal3rielol has joined #ruby
dhruvasagar has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
eilyx has quit [Remote host closed the connection]
cburyta has joined #ruby
awestroke has joined #ruby
frihd has joined #ruby
vlad_starkov has joined #ruby
Jork1 has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
cburyta has quit [Ping timeout: 264 seconds]
maasha has joined #ruby
arturaz has joined #ruby
emergion has joined #ruby
gani has joined #ruby
rabidpraxis has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
<maasha> Hello. Is there a way to find out from within Ruby the number of bits used for pack template directives?
reset has quit [Quit: Leaving...]
<maasha> i.e that C is 8 bits
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<dr_bob> maasha: I think this is fixed by specification (i.e. in the docs)
hoelzro|away is now known as hoelzro
<maasha> hm, ok
daslicious has quit [Ping timeout: 256 seconds]
rabidpraxis has joined #ruby
mahmoudimus has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
fphilipe has joined #ruby
Elhu has joined #ruby
don9z has joined #ruby
rabidpraxis has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
nitti has joined #ruby
cezar has joined #ruby
cezar has quit [Remote host closed the connection]
don9z has left #ruby [#ruby]
xaq has quit [Ping timeout: 246 seconds]
chussenot has quit [Quit: chussenot]
<dr_bob> What do you need that for?
ewag has quit [Ping timeout: 260 seconds]
timonv has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
Averna has quit [Quit: Leaving.]
xorgnak has quit [Ping timeout: 260 seconds]
mohits has quit [Remote host closed the connection]
nitti has quit [Ping timeout: 260 seconds]
werdnativ has quit [Quit: werdnativ]
bluenemo_ has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
vjt has quit [Ping timeout: 272 seconds]
vjt has joined #ruby
fixl has joined #ruby
lggr has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
twoism has quit [Ping timeout: 245 seconds]
answer_42 has quit [Quit: WeeChat 0.3.9]
mneorr has joined #ruby
hbpoison has quit [Ping timeout: 240 seconds]
monkegjinni has joined #ruby
timonv has quit [Remote host closed the connection]
mucker has quit [Quit: leaving]
lggr has quit [Ping timeout: 264 seconds]
mucker has joined #ruby
gani has quit [Quit: leaving..]
lukaszk has joined #ruby
jamjam has joined #ruby
lukaszk has quit [Client Quit]
lggr has joined #ruby
<maasha> dr_bob: I was messing around with a class for encapsulating some inline C. I want to allocate memory from Ruby and manipulate byte strings with C. Very crufty :o)
dhruvasagar has quit [Ping timeout: 256 seconds]
SmoothSage has joined #ruby
xbayrockx has joined #ruby
jimeh2 has joined #ruby
dhruvasagar has joined #ruby
mengu has joined #ruby
monkegjinni has quit [Ping timeout: 240 seconds]
wallerdev has quit [Quit: wallerdev]
SmoothSage has quit [Max SendQ exceeded]
SmoothSage has joined #ruby
lukaszk has joined #ruby
tchebb has quit [Quit: Leaving.]
monkegjinni has joined #ruby
lukaszk has quit [Client Quit]
manizzle has quit [Ping timeout: 255 seconds]
lggr has quit [Ping timeout: 245 seconds]
dmiller has joined #ruby
_md has joined #ruby
SmoothSage has quit [Max SendQ exceeded]
DuoSRX has joined #ruby
SmoothSage has joined #ruby
tchebb has joined #ruby
elaptics`away is now known as elaptics
lggr has joined #ruby
lukaszk has joined #ruby
SmoothSage has quit [Max SendQ exceeded]
dmiller has quit [Ping timeout: 244 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
havenn has joined #ruby
mucker has quit [Quit: Lost terminal]
chichou has joined #ruby
mucker has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
SmoothSage has joined #ruby
lggr has quit [Ping timeout: 276 seconds]
robotmay has joined #ruby
sebastorama has quit [Quit: Computer has gone to sleep.]
tgriffin2081 has quit []
beiter has joined #ruby
timonv has joined #ruby
bluenemo has quit [Remote host closed the connection]
bluenemo_ has quit [Remote host closed the connection]
lggr has joined #ruby
chussenot has joined #ruby
seoaqua has quit [Ping timeout: 248 seconds]
sepp2k has joined #ruby
holden2471 has joined #ruby
burgestrand has quit [Ping timeout: 245 seconds]
skryking has quit [Ping timeout: 246 seconds]
jimeh2 has quit [Quit: bye]
burgestrand has joined #ruby
AMfish has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
haxrbyte has joined #ruby
cburyta has joined #ruby
holden2471 has left #ruby [#ruby]
lggr has joined #ruby
Mon_Ouie has quit [Ping timeout: 246 seconds]
jimeh has joined #ruby
emergion has joined #ruby
darule has joined #ruby
brtdv has joined #ruby
don9z has joined #ruby
don9z has left #ruby [#ruby]
drule has joined #ruby
cburyta has quit [Ping timeout: 255 seconds]
mucker has quit [Ping timeout: 260 seconds]
workmad3 has joined #ruby
darule has quit [Ping timeout: 240 seconds]
pskosinski has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
slainer68 has joined #ruby
flype has joined #ruby
ananthakumaran has quit [Read error: Operation timed out]
rabidpraxis has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
Xeago has joined #ruby
ananthakumaran has joined #ruby
hotovson has quit [Remote host closed the connection]
chussenot has quit [Quit: chussenot]
dhruvasagar has joined #ruby
lggr has joined #ruby
slainer6_ has joined #ruby
xorgnak has joined #ruby
poseid has joined #ruby
slainer68 has quit [Ping timeout: 252 seconds]
rabidpraxis has quit [Ping timeout: 260 seconds]
<dr_bob> ah
codecop has joined #ruby
<dross> hmm
cantonic has quit [Quit: cantonic]
_md has quit [Quit: Leaving...]
cantonic has joined #ruby
AMfish has quit []
lggr has quit [Ping timeout: 276 seconds]
piotr_ has joined #ruby
lggr has joined #ruby
haxrbyte has quit [Remote host closed the connection]
timmow has joined #ruby
haxrbyte has joined #ruby
deadghost has quit [Ping timeout: 264 seconds]
ankso has joined #ruby
<dr_bob> well well
ankso has left #ruby [#ruby]
greenarrow has joined #ruby
<dross> dr_bob: o.o
lggr has quit [Ping timeout: 256 seconds]
<matti> ;]
lggr has joined #ruby
frogprince_mac has joined #ruby
* dr_bob loves these intellectual challenging discusssions
_md has joined #ruby
<matti> Ohai dr_bob
<matti> dr_bob: We always have these here.
<matti> ;]
lggr has quit [Ping timeout: 256 seconds]
dhruvasagar has quit [Quit: Lost terminal]
dhruvasagar has joined #ruby
lggr has joined #ruby
nari has quit [Ping timeout: 245 seconds]
haxrbyte has quit [Read error: Connection reset by peer]
manizzle has joined #ruby
prtksxna has joined #ruby
tonini has quit [Remote host closed the connection]
thedeadghost has joined #ruby
thisirs has joined #ruby
tvw has joined #ruby
timonv has quit [Remote host closed the connection]
sa125 has joined #ruby
sa125 has left #ruby [#ruby]
chussenot has joined #ruby
brtdv has quit [Quit: Bye]
hotovson has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
brtdv has joined #ruby
beiter has quit [Read error: Connection reset by peer]
brtdv has quit [Remote host closed the connection]
brtdv has joined #ruby
vlad_starkov has joined #ruby
brtdv has quit [Client Quit]
beiter has joined #ruby
haxrbyte has joined #ruby
brtdv has joined #ruby
daniel_- has joined #ruby
lggr has joined #ruby
seoaqua has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
Neomex has joined #ruby
Neomex has quit [Client Quit]
timonv has joined #ruby
nari has joined #ruby
hotovson has quit [Remote host closed the connection]
seoaqua has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 256 seconds]
Attic[0] has joined #ruby
Attic[0] has left #ruby [#ruby]
Gal3rielol has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
lggr has joined #ruby
rakunHo has joined #ruby
thisirs has quit [Remote host closed the connection]
cburyta has joined #ruby
vaclavt has joined #ruby
slainer6_ has quit [Read error: Operation timed out]
brtdv has quit [Quit: Gone]
timonv has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
ad_da has joined #ruby
<ad_da> hi
beneggett has quit [Quit: Computer has gone to sleep.]
havenn has quit [Remote host closed the connection]
<ad_da> I have a interger variable like n=5. how can I do something similar to n.each do ..... end
<ad_da> I mean repeat the times of the integer
<lukaszk> 5.times.do ....
<ad_da> lukaszk: thank you
lggr has quit [Ping timeout: 240 seconds]
<lukaszk> bp
<lukaszk> np
hotovson_ has joined #ruby
<matti> .do?
cburyta has quit [Ping timeout: 240 seconds]
<matti> ;]
zz_chrismcg is now known as chrismcg
<lukaszk> it's a typo, not enough coffee :-)
<matti> Haha
<matti> I know, no worries ;]
<matti> Reminded me about MSSQL.
<matti> Where you have to call statent-handle.do
<matti> ;D
<lukaszk> ewwww
slainer68 has joined #ruby
<matti> lukaszk: ... are you based in London?
<lukaszk> yeah, why?
<matti> Do you like Anime by any chance too?
cascalheira has joined #ruby
eldariof has quit []
* lukaszk gets uncomfortable
timonv has joined #ruby
<matti> I know Lukasz who is based in London, likes anime and Korean food ;d
<matti> Might that be you?
<matti> Based in Shoreditch?
<lukaszk> internet is a small place ;-)
lggr has joined #ruby
<matti> Indeed it is ;d
* matti -> kwilczynski
ephemerian has joined #ruby
* matti goes *yay*
dhruvasagar has quit [Ping timeout: 246 seconds]
Jrz has joined #ruby
samphippen has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
hotovson_ has quit [Remote host closed the connection]
brtdv has joined #ruby
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
lggr has joined #ruby
brtdv has quit [Client Quit]
brtdv has joined #ruby
mmitchell has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
mmitchell has quit [Remote host closed the connection]
jlebrech has joined #ruby
<jlebrech> Is it possible for cucumber to dump you into an irb session?
<lukaszk> jlebrech: yeah, with pry
<withnale> is there any ruby 1.9.x version available packaged for centos6.3? (inc jruby) I don't want to have to install compilers on all my machines. alternatively, how easy is it to package ruby and gems myself?
<lukaszk> require 'pry'; binding.pry in one of your features
<matti> withnale: What distribution?
<matti> withnale: You can build Ruby of your chocie easily with FPM.
prtksxna has quit [Remote host closed the connection]
lggr has joined #ruby
<matti> withnale: Aside of trying to mingle with rvm and likes.
timonv has quit [Remote host closed the connection]
Nathandim has joined #ruby
timonv has joined #ruby
<workmad3> withnale: latest version of RVM can install binary distributions rather than source
<withnale> yeah. I just thought of using fpm. and saw it also had an interface for packaging gems
<matti> withnale: It does.
<matti> withnale: And its dead easy to use.
<workmad3> withnale: however, many gems use native extensions so you're likely to want/need compilers available anyway
<matti> withnale: I ship 1.9.2 and all gems as debs built with it.
<withnale> yeah. used it for source -> pkg before.
<matti> withnale: :)
<matti> withnale: The annoyance is that you have to sway from the Debian and/or RH way.
<workmad3> ah, packaging gems... always 'fun'
<matti> withnale: If you want to remain sane.
<matti> withnale: I install my Rubies under /opt
<dr_bob> matt, you believe you are still sane???
<dr_bob> That's a clear indication of insanity.
<matti> dr_bob: No. Sanity was destroyed long time ago by banister ;d
<matti> :)
hsbt is now known as hsbt_away
eikko has joined #ruby
banisterfiend has joined #ruby
<dr_bob> :-)
<workmad3> matti: speak of the fiendish devil...
lggr has quit [Ping timeout: 240 seconds]
<matti> workmad3: hehe
Iszak has joined #ruby
<matti> workmad3: Like if he knew... or sensed.
<matti> Ohai banisterfiend
<matti> ;d
bluOxigen has joined #ruby
<matti> banisterfiend: ;] ;] ;] ;]
<workmad3> banisterfiend: rebuild matti's sanity... he's starting to miss it
<banisterfiend> matti: your smileys need facial reconstructive surgery
<matti> Yay. banisterfiend is back! :)
* matti huggles banisterfiend
AMfish has joined #ruby
<matti> banisterfiend: They are little rough on the edges, indeed.
lggr has joined #ruby
manizzle has quit [Ping timeout: 276 seconds]
beiter has quit [Ping timeout: 256 seconds]
heftig has quit [Quit: leaving]
daniel_-_ has joined #ruby
<jlebrech> niiiice, I think i'll put pry in my .gemfile, can you have a global .gemfile?
daniel_- has quit [Read error: Operation timed out]
<banisterfiend> jlebrech: pry is for noobs
<lukaszk> puts ftw
<matti> ;d
lggr has quit [Ping timeout: 255 seconds]
<lukaszk> jlebrech: you can just install pry in global gemset if you use rvm. all my projects have pry as dev dependency anyway :)
emergion has quit [Quit: Computer has gone to sleep.]
<jlebrech> thanks banisterfiend
ForevernadeAFK has joined #ruby
fyolnish has quit [Remote host closed the connection]
<banisterfiend> lukaszk: do you use any pry plugins?
lggr has joined #ruby
eldariof has joined #ruby
<lukaszk> banisterfiend: I tried this a while back https://github.com/nixme/pry-nav but it was quite unstable
baphled has quit [Ping timeout: 246 seconds]
<banisterfiend> lukaszk: yeah, it has a robust replacement now: https://github.com/nixme/pry-debugger
<banisterfiend> lukaszk: it wsn't actually pry-nav's fault it was unstable it's a bug in ruby :(
<lukaszk> banisterfiend: good to know, I'll check out pry-debugger
<banisterfiend> lukaszk: the coolest one at the moment htough is this: https://github.com/conradirwin/pry-rescue
frihd has quit [Quit: Leaving.]
<banisterfiend> combine that with https://github.com/pry/pry-stack_explorer for serious power
Forevernade has quit [Ping timeout: 244 seconds]
<lukaszk> "cd-cause" -> mind blown
seoaqua has joined #ruby
no_worries has joined #ruby
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
<matti> Pry pry
<matti> What about good 'ol IRB?
lggr has quit [Ping timeout: 256 seconds]
<matti> No love any more?
<matti> ;/
no_worries has quit [Remote host closed the connection]
<banisterfiend> lukaszk: yeah, we have some pretty powerful exception handling stuff now, we even have a 'continue-exception' that allows you to recover from errors after fixing them, in some situations
manizzle has joined #ruby
<banisterfiend> matti: irb doesnt fizz and pop enough
dr_bob has quit [Quit: Leaving.]
<matti> banisterfiend: :<
<matti> banisterfiend: Not shiny enough?
<lukaszk> irb is for hipsters imo
<banisterfiend> hehe
<matti> LOL
* matti felt bad just now
<banisterfiend> matti: not powerful enough :) and not pretty enough
<matti> I need to put my skinny jeans, old shoes and thick-frame glassessss now...
<matti> banisterfiend: Get pry into the Core.
Vert has joined #ruby
seoaqua has quit [Ping timeout: 248 seconds]
<matti> banisterfiend: Hint: Japanese like good food, in case you have to bribe Matz.
<banisterfiend> matti: nah, then it's hard to update :)
<banisterfiend> gem is good for us
<lukaszk> a gem is enough, easier to update if it's not in std lib
<matti> ;]
<banisterfiend> yeah
<matti> I guess makes sense
lggr has joined #ruby
dr_bob has joined #ruby
<matti> Hey dr_bob
jgrevich has quit [Quit: jgrevich]
cburyta has joined #ruby
<dr_bob> reboot
lggr has quit [Ping timeout: 260 seconds]
Jake232 has joined #ruby
marcux has joined #ruby
aknagi has joined #ruby
arietis has joined #ruby
<jlebrech> i cucumber I want to "click 'foo' link' but I also have a 'foobar' link. how do specify in the string that I want to match 'foo' precisely?
nowhereman has quit [Remote host closed the connection]
lggr has joined #ruby
<JonnieCache> i need some regex help. how to I make a whole substring optional? I have this: `/foo (bar)? baz/ =~ "foo baz"`
<JonnieCache> which should match, but doesnt. what am i missing?
cburyta has quit [Ping timeout: 252 seconds]
flype has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<workmad3> JonnieCache: /foo (bar )?baz/
<workmad3> JonnieCache: otherwise you need a double space
elico has joined #ruby
mucker has joined #ruby
frederic has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
<JonnieCache> ahhhhhhh of course
<JonnieCache> goddamn
emergion has joined #ruby
daniel_-_ has quit [Quit: WeeChat 0.3.9]
beiter has joined #ruby
Neomex has joined #ruby
lggr has joined #ruby
marcux has quit [Quit: marcux]
DarkStar1 has joined #ruby
<DarkStar1> is 1.9.3 the latest ruby?
daniel_- has joined #ruby
AMfish has quit []
nitti has joined #ruby
<matti> DarkStar1: Stable-ish... yes.
<matti> DarkStar1: For latest grab ruby-head.
<DarkStar1> I need the most stable. I'm new to this and was given a site to migrate yesterday. Without being told what it was. So I'm following this tutorial: https://www.digitalocean.com/community/articles/how-to-install-ruby-on-rails-on-ubuntu-12-04-lts-precise-pangolin-with-rvm
<DarkStar1> I'm at the part where I have to install ruby :)
banisterfiend has quit [Read error: Connection reset by peer]
<lukaszk> DarkStar1: you can use rvm, or get ruby1.9 via apt and make it a system ruby (replacing old 1.8.7) via update alternatives magic
<matti> DarkStar1: Oh ;]
<JonnieCache> you want the latest 1.9.3
<JonnieCache> its 1.9.3-p194 iirc
xpen has joined #ruby
haxrbyte has quit [Ping timeout: 256 seconds]
Jake232 has quit [Quit: Computer has gone to sleep.]
nitti has quit [Ping timeout: 246 seconds]
nari has quit [Ping timeout: 245 seconds]
baphled has joined #ruby
haxrbyte has joined #ruby
matti has quit [Quit: 8-X]
lggr has quit [Ping timeout: 276 seconds]
<DarkStar1> thx guys
timonv has quit [Remote host closed the connection]
xpen has quit [Remote host closed the connection]
nari has joined #ruby
rakunHo has quit [Remote host closed the connection]
lggr has joined #ruby
matti has joined #ruby
hotovson_ has joined #ruby
Jork1 has quit [Quit: Jork1]
morozovm has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby
rakl has quit [Quit: sleeping]
lggr has joined #ruby
Shipow has joined #ruby
hotovson_ has quit [Remote host closed the connection]
eikko has quit [Excess Flood]
Jork1 has joined #ruby
fyolnish_ has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
hotovson has joined #ruby
lggr has joined #ruby
eikko has joined #ruby
awestroke has quit [Remote host closed the connection]
hotovson has quit [Ping timeout: 245 seconds]
xaq has joined #ruby
hsbt_away is now known as hsbt
lggr has quit [Ping timeout: 260 seconds]
dhruvasagar has quit [Quit: leaving]
LennyLinux has quit [Remote host closed the connection]
seoaqua has joined #ruby
dhruvasagar has joined #ruby
lggr has joined #ruby
Neomex has quit [Quit: Neomex]
dhruvasagar has quit [Client Quit]
dhruvasagar has joined #ruby
maasha has quit [Quit: Page closed]
seoaqua has quit [Ping timeout: 246 seconds]
verto|off is now known as verto
dagnachewa has joined #ruby
morozovm has quit [Read error: Connection reset by peer]
Vainoharhainen has joined #ruby
morozovm has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
Foxandxss has joined #ruby
take_cheeze has quit [Quit: Leaving.]
take_cheeze has joined #ruby
lggr has joined #ruby
cburyta has joined #ruby
realniko_ has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
ltsstar has joined #ruby
mneorr has quit [Remote host closed the connection]
cburyta has quit [Ping timeout: 246 seconds]
uris has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
[Neurotic] has quit [Remote host closed the connection]
realniko_ has quit [Ping timeout: 245 seconds]
eikko is now known as akemEikko
sepp2k has quit [Quit: Leaving.]
mgrayson has joined #ruby
lggr has joined #ruby
dhruvasagar has quit [Quit: Lost terminal]
dhruvasagar has joined #ruby
dhruvasagar has quit [Client Quit]
krz has quit [Quit: krz]
dhruvasagar has joined #ruby
_md has quit [Quit: Leaving...]
MikeyV27 has joined #ruby
dhruvasagar has quit [Client Quit]
lggr has quit [Ping timeout: 256 seconds]
dhruvasagar has joined #ruby
gani has joined #ruby
ltsstar has quit [Quit: ltsstar]
frogprince_mac has quit [Quit: Leaving...]
bapa has joined #ruby
akemEikko has quit [Ping timeout: 246 seconds]
gani has quit [Client Quit]
lggr has joined #ruby
bapa has quit [Client Quit]
larissa has joined #ruby
piotr__ has joined #ruby
Morkel has quit [Quit: Morkel]
piotr_ has quit [Ping timeout: 260 seconds]
josh^ has quit [Ping timeout: 260 seconds]
ad_da has quit [Quit: leaving]
eikko has joined #ruby
eikko has quit [Excess Flood]
nari has quit [Ping timeout: 245 seconds]
bapa has joined #ruby
nari has joined #ruby
bapa has quit [Client Quit]
bapa has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
bapa has quit [Client Quit]
<A124> I could not figure out "EOFError: end of file reached from /usr/share/ruby/net/protocol.rb:141:in `read_nonblock'" Any ideas?
lggr has joined #ruby
frogprince_mac has joined #ruby
mneorr has joined #ruby
baphled has quit [Ping timeout: 246 seconds]
hotovson_ has joined #ruby
heftig has joined #ruby
arielpts has quit [Excess Flood]
<A124> (in Net::HTTP.post)
arielpts has joined #ruby
und3f1 has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
und3f has quit [Ping timeout: 246 seconds]
palyboy has joined #ruby
samflores has joined #ruby
horofox has joined #ruby
yshh has quit [Remote host closed the connection]
nari has quit [Ping timeout: 255 seconds]
lggr has joined #ruby
frihd has joined #ruby
knuskrot has joined #ruby
fixl has quit [Ping timeout: 245 seconds]
geekbri has joined #ruby
bapa has joined #ruby
answer_42 has joined #ruby
kaawee has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
Shipow has quit [Quit: Leaving...]
rabidpraxis has joined #ruby
peanuts___ has joined #ruby
<peanuts___> Hi all, how to do pending test with Test::Unit ?
<peanuts___> it seems it's not possible by using pending "my test"
lggr has quit [Ping timeout: 245 seconds]
mark_locklear has joined #ruby
Virunga has joined #ruby
rabidpraxis has quit [Ping timeout: 246 seconds]
siril has joined #ruby
zommi has quit [Quit: Leaving.]
dpk has joined #ruby
<shevy> A124 perhaps something is trying to read input, and that fails
SirRamonGabriel has joined #ruby
<shevy> A124 I have something similar when I try to use cgi in irb
aganov has quit [Read error: Connection reset by peer]
lggr has joined #ruby
aganov has joined #ruby
siril has left #ruby ["WeeChat 0.3.7"]
kyktommy has joined #ruby
<A124> shevy: Yes. But the thing is I don't see what or where is the catch.
burgestrand has quit [Ping timeout: 246 seconds]
<shevy> hehe
Rydefalk_ has joined #ruby
kyktommy has quit [Client Quit]
Rydefalk has quit [Read error: Connection reset by peer]
<A124> I just need to fill in captcha, that is there as DoS prevention. (The site is probably target for spammers, as it contains personal information.
eikko has joined #ruby
elico has quit [Quit: elico]
eikko has quit [Max SendQ exceeded]
eikko has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
krawchyk has joined #ruby
Shipow has joined #ruby
lggr has joined #ruby
timonv has joined #ruby
gmurphey has quit [Ping timeout: 260 seconds]
zenformatics1 has quit [Quit: Leaving.]
ctevie has joined #ruby
ctevie has quit [Changing host]
ctevie has joined #ruby
cburyta has joined #ruby
fbernier has quit [Ping timeout: 245 seconds]
Jork1 has quit [Quit: Jork1]
_bart has joined #ruby
vitoravelino`afk is now known as vitoravelino
lggr has quit [Ping timeout: 240 seconds]
Jork1 has joined #ruby
zenformatics1 has joined #ruby
Jork1 has quit [Client Quit]
cburyta has quit [Ping timeout: 246 seconds]
elico has joined #ruby
lggr has joined #ruby
uris has quit [Quit: leaving]
jeffreybaird has joined #ruby
horofox has quit [Quit: horofox]
reinaldob has joined #ruby
xaq has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 240 seconds]
tommyvyo has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
kaawee has quit [Ping timeout: 252 seconds]
nitti has joined #ruby
lggr has joined #ruby
xaq has joined #ruby
knuskrot has left #ruby [#ruby]
vlad_starkov has joined #ruby
beiter has quit [Quit: beiter]
aquaranto has joined #ruby
nitti has quit [Ping timeout: 246 seconds]
invisime has joined #ruby
mneorr has quit [Remote host closed the connection]
<A124> shevy: Ok. The server replies gzip even with no accept encoding, also closes connection though keepalive, and even if I cope with all it replies again 403 even after I fill in the captcha. This stupid no-clue things are the worst.
Elhu has joined #ruby
callenb has joined #ruby
DarkStar1 has left #ruby [#ruby]
<shevy> hehehe
<shevy> you sound happy :)
<shevy> I hate captchas
<shevy> I think they were done to annoy humans
<shevy> because a bot can surely solve it quickly
xaq has quit [Remote host closed the connection]
<A124> It's just simple captcha to nail bots that crawl whole internet, except google and such.
burgestrand has joined #ruby
<A124> I want to fill it with hand, but the problem is the request strangely
lggr has quit [Ping timeout: 260 seconds]
morozovm has quit [Ping timeout: 260 seconds]
fermion has joined #ruby
_bart has left #ruby [#ruby]
lggr has joined #ruby
awarner has joined #ruby
mneorr has joined #ruby
samflores has quit [Ping timeout: 252 seconds]
fermion_ has joined #ruby
xaq has joined #ruby
sspiff has quit [Remote host closed the connection]
fermion has quit [Read error: Connection reset by peer]
fermion_ is now known as fermion
jlwestsr has joined #ruby
awarner has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 252 seconds]
atmosx has joined #ruby
frogprince_mac has quit [Quit: Leaving...]
xaq has quit [Remote host closed the connection]
und3f1 has quit [Read error: Connection reset by peer]
peanuts___ has quit [Quit: peanuts___]
<atmosx> hello
<atmosx> peanuts!
<atmosx> I'dhave some
lggr has joined #ruby
samflores has joined #ruby
joofsh has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
linoj has joined #ruby
cdzombak has joined #ruby
g-ram has joined #ruby
g-ram has quit [Client Quit]
und3f has joined #ruby
<A124> shevy: LoooL
KevinSjoberg has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
<A124> shevy: I got it. All was needed was User-Agent header conforming to Mozilla.
jrajav has joined #ruby
enroxorz-work has joined #ruby
yshh has joined #ruby
Spooner has joined #ruby
cburyta has joined #ruby
sailias has joined #ruby
hobana has joined #ruby
carloslopes has joined #ruby
<hobana> how do i do (echo "hi" | ./run) in ruby?
<hobana> i just want to write to a subprocess's stdin
xaq has joined #ruby
lggr has joined #ruby
<hobana> i am using IO.popen to open the subprocess, but i cant figure out how to write to that processes stdin
<lukaszk> ARGF.each_line etc
Criztian has joined #ruby
<lukaszk> ah, subprocess
Takehiro has quit [Remote host closed the connection]
heftig has quit [Quit: leaving]
bwlang has quit [Excess Flood]
bwlang has joined #ruby
theRoUS has quit [Ping timeout: 240 seconds]
nanderoo has joined #ruby
awarner has joined #ruby
<hobana> got it, i needed "mode='r+'" as an argument for popen
ffranz has joined #ruby
baphled has joined #ruby
<hobana> now, how can i hook a shell that is executed by that command?
<hobana> IO.popen('/bin/sh')
eikko has quit [Ping timeout: 264 seconds]
bwlang has quit [Excess Flood]
lggr has quit [Ping timeout: 244 seconds]
bwlang has joined #ruby
horofox has joined #ruby
ABK has quit [Ping timeout: 240 seconds]
bwlang has quit [Excess Flood]
bwlang has joined #ruby
bwlang has left #ruby [#ruby]
theRoUS has joined #ruby
lggr has joined #ruby
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<A124> stdin, stdout = IO.popen ?
<Mon_Ouie> No, it returns a single IO object
GoGoGarrett has joined #ruby
<A124> Ah. So I have mistaken with ptty, sorry.
<Mon_Ouie> Which you can use for both reading and writing if you used the appropriate mode at creation time
<burgestrand> hobana: perhaps https://github.com/gdb/rubysh might be interesting to you. Haven’t used it myself, just remembered seeing it a while ago.
<hobana> Mon_Ouie: I need to first write to the process via ruby, and then hook into the command line. what mode could be used for this?
<Mon_Ouie> "hook into the command line"?
<hobana> aka: exec bin/sh -> via ruby exec whoami -> give me a bash prompt
<hobana> so that the first command gets executed by ruby, but then i am given an interactive shell
<hoelzro> hobana: what exactly are you trying to do?
<Mon_Ouie> You could use Readline from the Ruby process and send input programatically that way
<hobana> i am writing exploit code for a ctf
<hoelzro> from the high level, I mean
<hobana> so i send a payload to a vulnerable program, which executes shellcode
<hobana> which in turn executes a bash shell
chin-tastic has joined #ruby
<hoelzro> hobana: so you need to create a shell in a vulnerable process, send it some shell script, and drop yourself into the shell when you're done?
<hoelzro> *drop yourself into that shell
<hobana> yes, exactly
<hoelzro> ok
<hoelzro> I would use a pty
<Xeago> could you explain a pty?
slainer6_ has joined #ruby
<hoelzro> painful.
<Xeago> lol, that's what I know aswell :)
gmurphey has joined #ruby
<hoelzro> the gist is you have a filehandle corresponding to the PTY
kaawee has joined #ruby
<hoelzro> writing characters to that handle is like typing them into a terminal
<hoelzro> and reading from that handle yields bytes from whatever's on the other end
<Xeago> you can hook multiple pty\s to a single device right?
lggr has quit [Ping timeout: 255 seconds]
<hoelzro> (it's been a while since I've messed with them)
<Xeago> I think thats what man says
Vert has quit [Read error: Connection reset by peer]
jrist-afk is now known as jrist
<hoelzro> most "terminals" you interact with these days are actually ptys
<Xeago> my terminal is a ttys
arkiver has joined #ruby
<Xeago> all mine are actually
maesbn_ has joined #ruby
slainer68 has quit [Ping timeout: 240 seconds]
<hoelzro> you don't use a GUI or a terminal multiplexer?
<Xeago> I just use osx's terminal
callenb has quit [Quit: Leaving.]
awarner has quit [Read error: Connection reset by peer]
cheetahw26 has joined #ruby
<hobana> would python be a better choice in this situation then?
<hoelzro> I'm not familiar with OS X's internals, but I'm pretty sure that's still a pty
lggr has joined #ruby
<Xeago> I don't think terminal.app uses a pty, I think it emulates a terminal
<cheetahw26> what's the best/recommended way to install rubygems on freebsd?
<hoelzro> hobana: not really; ptys are always a PITA
<hoelzro> Xeago: tty says otherwise =)
a_a_g has quit [Quit: Leaving.]
<Xeago> output of /usr/bin/tty gives me ttys00x
<Xeago> how to find pty?
maesbn has quit [Ping timeout: 256 seconds]
<hoelzro> ttys* is a slave pty
<Tarential> gives you /dev/tty for true tty
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
<Xeago> uh yea, /dev/ttys00x
<Tarential> /dev/tty1
<Tarential> ttyX
awarner has joined #ruby
<atmosx> cheetahw26: rvm by far.
<atmosx> second best is manually, there's a fine /usr/local/ directory there
<Xeago> atmosx: why?
<atmosx> cool my octopress blog conversion is ... finnished! yay!
<atmosx> Xeago: because the default in FreeBSD is ruby-1.8.x
<atmosx> so the system for 'ruby' understand 1.8, if you really wanna stuck with it, go for it.
mfridh has quit [Ping timeout: 252 seconds]
<Xeago> wouldn't any ruby version manager be equal then?
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
kaawee has quit [Ping timeout: 246 seconds]
<atmosx> rvm is independent, so the system can compile everything with 'ruby' support without getting in the way. You won't face 'path' and gem versioning issues, which is a major issue in ruby, etc.
<cheetahw26> thank you...
allanm has quit [Read error: Connection reset by peer]
<atmosx> Xeago: I don't know of any other system-independent ruby version manager... Never used anything else. Either I do it manually in /usr/local/ or use rvm.
lggr has quit [Ping timeout: 255 seconds]
<Xeago> rbenv
mfridh has joined #ruby
elico has quit [Ping timeout: 256 seconds]
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
lggr has joined #ruby
Rydefalk has joined #ruby
Rydefalk_ has quit [Read error: Connection reset by peer]
Axsuul has quit [Ping timeout: 256 seconds]
awarner has quit [Remote host closed the connection]
samphippen has quit [Quit: Computer has gone to sleep.]
rabidpraxis has joined #ruby
_cheney has joined #ruby
linoj_ has joined #ruby
v0n has joined #ruby
robertotauille has joined #ruby
rabidpraxis has quit [Remote host closed the connection]
thmzlt has joined #ruby
linoj has quit [Ping timeout: 255 seconds]
linoj__ has joined #ruby
atmosx has quit [Ping timeout: 276 seconds]
lggr has quit [Ping timeout: 245 seconds]
hotovson_ has quit [Remote host closed the connection]
linoj_ has quit [Ping timeout: 240 seconds]
chin-tastic has quit [Ping timeout: 246 seconds]
mercwithamouth has joined #ruby
arkiver has quit [Ping timeout: 246 seconds]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Morkel has joined #ruby
lggr has joined #ruby
hotovson has joined #ruby
Neomex has joined #ruby
peterhellberg has joined #ruby
ttt has quit [Remote host closed the connection]
<jcoglan> is there a way to encode a string in base-62 in ruby? i.e. only alphanumeric chars?
Mon_Ouie has quit [Ping timeout: 260 seconds]
kaawee has joined #ruby
<jcoglan> e.g. I have a base-16 hex string, and want to turn it into base-62
<Xeago> 62?
S1kx has joined #ruby
S1kx has quit [Changing host]
S1kx has joined #ruby
hotovson has quit [Ping timeout: 246 seconds]
jgarvey has joined #ruby
KevinSjoberg has joined #ruby
<Xeago> that is unusual, don't you mean 64?
<jrajav> Oh Google, how I do love you
clocKwize has quit [Remote host closed the connection]
beit has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
lukasz1 has joined #ruby
lukaszk has quit [Ping timeout: 246 seconds]
mneorr has quit [Remote host closed the connection]
chrisja has joined #ruby
atmosx has joined #ruby
Jrz has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
cheetahw26 has quit [Quit: Page closed]
lggr has joined #ruby
Criztian has quit [Remote host closed the connection]
sepp2k has joined #ruby
mohits has joined #ruby
samphippen has joined #ruby
verto is now known as verto|off
lggr has quit [Ping timeout: 245 seconds]
rabidpraxis has joined #ruby
stopbit has joined #ruby
mva3212 has joined #ruby
cakehero has joined #ruby
heftig has joined #ruby
theRoUS has quit [Ping timeout: 246 seconds]
codecop has quit [Quit: Išeinu]
mgates has joined #ruby
philcrissman has joined #ruby
Takehiro has joined #ruby
lggr has joined #ruby
Bish_ is now known as Bish
sspiff has joined #ruby
theRoUS has joined #ruby
Dawne has quit [Read error: Connection reset by peer]
A124 has quit [Read error: Connection reset by peer]
A124 has joined #ruby
verto|off is now known as verto
A124 has quit [Client Quit]
A124 has joined #ruby
Dawne has joined #ruby
Criztian has joined #ruby
eikko has joined #ruby
bbttxu_ has joined #ruby
chimay has joined #ruby
eikko has quit [Max SendQ exceeded]
eikko has joined #ruby
samflores has quit [Quit: Leaving...]
lggr has quit [Ping timeout: 255 seconds]
haxrbyte_ has joined #ruby
samflores has joined #ruby
DuoSRX has quit [Remote host closed the connection]
haxrbyte has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
Coolhand has quit [Remote host closed the connection]
<JonnieCache> i love the bitcoin irc channels. people are always trying to sell you strange things, like some kind of internet back alley
sent-hil has joined #ruby
whaley has joined #ruby
AMfish has joined #ruby
DrShoggoth has joined #ruby
<atmosx> yeah
lggr has quit [Ping timeout: 255 seconds]
<atmosx> it's weird
no_worries has joined #ruby
Nathandim has quit [Remote host closed the connection]
no_worries has quit [Remote host closed the connection]
Guest13048 has quit [Changing host]
Guest13048 has joined #ruby
Guest13048 is now known as starship
no_worries has joined #ruby
lggr has joined #ruby
elico has joined #ruby
fermion has quit [Ping timeout: 245 seconds]
arkiver has joined #ruby
mneorr has joined #ruby
kn330 has joined #ruby
iori has quit [Remote host closed the connection]
daniel_- has quit [Read error: Operation timed out]
dmiller has joined #ruby
mgates has left #ruby [#ruby]
fermion has joined #ruby
skryking has joined #ruby
xyzodiac has joined #ruby
tvw has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 245 seconds]
tagrudev has quit [Remote host closed the connection]
ananthakumaran has quit [Quit: Leaving.]
Criztian_ has joined #ruby
BeLucid_ has joined #ruby
nitti has joined #ruby
combatai` has joined #ruby
alek_b_ has joined #ruby
zenformatics2 has joined #ruby
SpeedTheory2 has joined #ruby
Criztian_ has quit [Remote host closed the connection]
yshh_ has joined #ruby
chrishunt has joined #ruby
jck_true_ has joined #ruby
quest88 has joined #ruby
lggr has joined #ruby
WhereIsMySpoon_ has joined #ruby
hotovson has joined #ruby
lepht has joined #ruby
hbpoison has joined #ruby
plu_ has joined #ruby
jenrzzz has joined #ruby
Drager_ has joined #ruby
jakk_ has joined #ruby
joeycarmello has joined #ruby
Freijo has joined #ruby
happosad1 has joined #ruby
joeycarmello has quit [Remote host closed the connection]
wereHams1er has joined #ruby
joeycarmello has joined #ruby
asuka_ has joined #ruby
armenb_ has joined #ruby
ericwood_ has joined #ruby
new299_ has joined #ruby
Sp4rKy_ has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
`heliar_ has joined #ruby
rlomax has joined #ruby
joukokar_ has joined #ruby
babinho_ has joined #ruby
udk_ has joined #ruby
Squarepy has joined #ruby
Squarepy has quit [Changing host]
Squarepy has joined #ruby
crazed- has joined #ruby
fearoffish_ has joined #ruby
Criztian has quit [*.net *.split]
yshh has quit [*.net *.split]
theRoUS has quit [*.net *.split]
statarb3 has quit [*.net *.split]
JonnieCache has quit [*.net *.split]
sagax has quit [*.net *.split]
Drager has quit [*.net *.split]
SpeedTheory has quit [*.net *.split]
armenb has quit [*.net *.split]
Tom2 has quit [*.net *.split]
alek_b has quit [*.net *.split]
asuka has quit [*.net *.split]
zenformatics has quit [*.net *.split]
jakk has quit [*.net *.split]
plu has quit [*.net *.split]
sideshowcoder has quit [*.net *.split]
babinho has quit [*.net *.split]
Sp4rKy has quit [*.net *.split]
ericwood has quit [*.net *.split]
BeLucid has quit [*.net *.split]
`heliar has quit [*.net *.split]
Jck_true has quit [*.net *.split]
lepht_ has quit [*.net *.split]
fearoffish has quit [*.net *.split]
wereHamster has quit [*.net *.split]
WhereIsMySpoon has quit [*.net *.split]
rlomax_ has quit [*.net *.split]
new299 has quit [*.net *.split]
happosade has quit [*.net *.split]
__main__ has quit [*.net *.split]
udk has quit [*.net *.split]
alexbst has quit [*.net *.split]
Fraeon has quit [*.net *.split]
combataircraft has quit [*.net *.split]
joukokar has quit [*.net *.split]
crazedpsyc has quit [*.net *.split]
kaneda__ has quit [*.net *.split]
plu_ is now known as plu
crazed- is now known as crazedpsyc
RJ3000_ has quit [Write error: Connection reset by peer]
greenarrow has quit [Read error: Connection reset by peer]
sideshowcoder has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
<atmosx> watching Javascript code is awful.
_bart has joined #ruby
<atmosx> I mean, it's ugly.
<atmosx> as hell.
greenarrow has joined #ruby
_main_ has joined #ruby
<_bart> hi all
alexbst has joined #ruby
carlyle has joined #ruby
xaq_ has joined #ruby
Ankhers has joined #ruby
RJ3000_ has joined #ruby
pepito2k has joined #ruby
blazes816 has quit [Quit: blazes816]
lggr has joined #ruby
<pepito2k> Hi there from Uruguay!, I wanted to ask what do you think about the Ruby Certification given by the Ruby Association: http://www.ruby.or.jp/en/certification/examination/
xaq has quit [Ping timeout: 244 seconds]
Virunga has quit [Remote host closed the connection]
_main_ is now known as __main__
xclite has joined #ruby
Tom2 has joined #ruby
statarb3 has joined #ruby
kaneda__ has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
netrealm has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
JonnieCache has joined #ruby
quest88 has quit [Quit: quest88]
lggr has quit [Ping timeout: 256 seconds]
AMfish has quit []
anachronistic has joined #ruby
samflores is now known as samflores|away
carlyle has quit [Remote host closed the connection]
robertotauille has quit [Quit: Leaving...]
no_worries has quit [Remote host closed the connection]
lggr has joined #ruby
thillux has joined #ruby
Agis__ has joined #ruby
thinkclay has joined #ruby
<shevy> what is module_function again?
<shevy> that I can call the function within the module?
thillux has quit [Client Quit]
<matti> shevy: ?
mengu has quit [Ping timeout: 256 seconds]
<Muz> I'd've thought the documentation there is pretty straightforward.
xaq_ has quit [Remote host closed the connection]
<shevy> hmmmm
thillux has joined #ruby
pepito2k has quit [Remote host closed the connection]
sspiff has quit [Remote host closed the connection]
peterhellberg has quit [Remote host closed the connection]
no_worries has joined #ruby
freeayu has quit [Ping timeout: 255 seconds]
lggr has quit [Ping timeout: 256 seconds]
josemota has joined #ruby
freeayu has joined #ruby
nitti has quit [Ping timeout: 260 seconds]
<josemota> hi everyone, how many logging levels are there in Rack::Logger? I can't find the constants anywhere in the docs nor the source code...
mikepack has joined #ruby
bbttxu_ has quit [Quit: bbttxu_]
<Spooner> josemota : Looks like it is the same as http://www.ruby-doc.org/stdlib-1.9.3/libdoc/logger/rdoc/Logger.html (since Rack::Logger is just a wrapper around the standard Logger).
pothibo has joined #ruby
lggr has joined #ruby
<josemota> Spooner: thank you. I'll take a look at it. I appreciate it.
irleif has joined #ruby
Takehiro has quit [Remote host closed the connection]
<pothibo> Every time I type "=> " using my current keyboard layout, I press the spacebar while holding alt. Now with my keyboard layout (Canadian Multi) it generates an alternate space character which makes the ruby parser go boom. Anyone would know how to fix this?
<JonnieCache> stop being canadian?
whaley has quit [Remote host closed the connection]
joshman_ has joined #ruby
<JonnieCache> or, remap the keys in your terminal software
xyzodiac has joined #ruby
<josemota> pothibo: it's a non-breaking space. I can't count the times I had that issue.
<Spooner> pothibo : Perhaps force utf-8 encoding on the file so it can handle it (just a guess).
<Elhu> pothibo: you also might be able to configure your editor to strop or replace this character on save
<workmad3> non-breaking spaces are awesome... they're a valid identifier name in ruby :D
<pothibo> josemota: I know, me too. I'm just fed up today and wants to be done with it
<josemota> if you're using Vim for instance, you can detect it with the listchars option
<Elhu> s/strop/strip/
<pothibo> Spooner: no, it's valid identifier like workmad3 said. It parses it as a variable
<pothibo> Elhu: I guess..
<JonnieCache> thats nice to know that its valid though, you could cause havok with that
<JonnieCache> one to remember
<pothibo> yeah, like the first time it happened to me… searched for 2 horus
<workmad3> JonnieCache: I've used it for a few 'interesting' code samples before :)
<pothibo> hours*
rostislav has joined #ruby
<workmad3> JonnieCache: like 'def hello world; end; hello world'
josemota has quit [Quit: WeeChat 0.3.5]
sspiff has joined #ruby
sspiff has joined #ruby
<rostislav> hi
<rostislav> please tell me how i can calculate and display interest ?
KevinSjoberg has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
dummies_freelanc has joined #ruby
burgestrand has quit [Quit: Leaving.]
<pothibo> I'll remap the keyboard I guess. never did that before.
lggr has quit [Ping timeout: 255 seconds]
<Spooner> rostislav : simple or compound? This isn't really a Ruby question if you don't know that.
<JonnieCache> pothibo: what os you on?
<pothibo> os x
<Xeago> rostislav you compute the the common divider of pi^e and e^pi
<Vinz_> pothibo: You could use Ukulele on OS X
<JonnieCache> ignore the 4mapbook part it works on any mac
<pothibo> JonnieCache: just finished installing it ;)
joshman_ has quit [Remote host closed the connection]
joeycarmello has quit [Remote host closed the connection]
<pothibo> brb
joshman_ has joined #ruby
pothibo has quit [Quit: pothibo]
carlyle has joined #ruby
morozovm_ has joined #ruby
maesbn_ has quit [Remote host closed the connection]
maesbn has joined #ruby
Takehiro has joined #ruby
pothibo has joined #ruby
chin-tastic has joined #ruby
awestroke has joined #ruby
nitti has joined #ruby
lggr has joined #ruby
<atmosx> should'nt this string find only chinese chars? ->puts fn if x.scan(/\p{Han}+/)
no_worries has quit [Remote host closed the connection]
hashpuppy has joined #ruby
samflores|away is now known as samflores
hbpoison has quit [Remote host closed the connection]
jprovazn is now known as jprovazn_away
und3f has quit [Ping timeout: 246 seconds]
<hashpuppy> this is a rails snippet, but i believe it's ruby related. why do lines 18+ see policies as [] when line 5 is commented out?
morozovm has joined #ruby
<hashpuppy> when i uncomment line 5, as shown in the snippet, it shows elements in the list
maesbn has quit [Ping timeout: 244 seconds]
<hashpuppy> i tried the deep copy just to see if that made a difference
krz has joined #ruby
<Spooner> hashpuppy : Quick one - never rescue Exception. StandardError is the highest level exception you should catch.
<hashpuppy> Spooner: thanks for the tip
<hashpuppy> why is that?
Neomex has quit [Quit: Neomex]
<Spooner> (and, in which case, you should just: rescue => e)
<A124> How could I input the data "raw", not translating to \u00... ? pry(ErrHandler)> "\x1F\x8B" => "\u001F\x8B"
freeayu has quit [Ping timeout: 256 seconds]
whaley has joined #ruby
<Spooner> hashpuppy : http://blog.nicksieger.com/articles/2006/09/06/rubys-exception-hierarchy (and, as I suggest, rescue without a specified class will capture StandardError, not Exception).
morozovm_ has quit [Ping timeout: 260 seconds]
<hashpuppy> thanks. do you think my original question is more rails related?
freeayu has joined #ruby
beit has quit [Quit: beit]
lggr has quit [Ping timeout: 260 seconds]
<pothibo> JonnieCache: Have you remapped stuff with the app?ç
morozovm_ has joined #ruby
<JonnieCache> pothibo: not on this machine, and not for a while, but yes
<Spooner> hashpuppy : Not a clue. Seems fine in "pure Ruby" terms. I would say that returning the things that you do looks more like you should just re-raise the error, but that is stylistic, not going to break it.
<pothibo> JonnieCache: oh nevermind, just saw the private xml thing
no_worries has joined #ruby
starship has quit [Quit: Leaving]
duracrisis has joined #ruby
peregrine81 has joined #ruby
morozovm has quit [Ping timeout: 246 seconds]
morozovm_ is now known as morozovm
duracrisis is now known as starship
<pothibo> Even better it has that settings already. Finally. I'm free
lggr has joined #ruby
<JonnieCache> pothibo: i used it to remap § to #
<JonnieCache> god knows why apple decided § was so important
eldariof has quit []
<JonnieCache> lawyers and politicians surely arent big mac users
<pothibo> lol
<sakh> they only need $ anyway
<pothibo> Finally, I will be able to type faster than 5 characters a minute to make sure I typed => properly
<JonnieCache> SATIRE!
<shevy> lol
whaley has quit [Remote host closed the connection]
macmartine has joined #ruby
<pothibo> sakh: lol
brtdv has quit [Quit: bye]
carloslopes has quit [Quit: Leaving.]
brtdv has joined #ruby
lolmaus has quit []
larissa has quit [Quit: Leaving]
lukasz1 has quit [Ping timeout: 260 seconds]
<Tarential> hmm I never thought about how annoying => would be to type on qwerty
kuzushi has joined #ruby
<Tarential> that is a rather silly combo
samflores has quit [Quit: Leaving...]
<sakh> btw whats the story or ruby using it?
<Tarential> oh well, on dvorak it works fine
rippa has joined #ruby
<Spooner> We can use { a: b } the vast majority of time (That is, when using symbolic keys in 1.9) so I don't have a problem with rockets any more ;)
<rostislav> please tell me how i can calculate and display %
<rostislav> in ruby
aganov has quit [Remote host closed the connection]
freeayu has quit [Remote host closed the connection]
brtdv has quit [Client Quit]
awestroke has quit [Remote host closed the connection]
<A124> rostislav: From what?
<Spooner> rostislav : That is a vague question. Here is an answer puts "24%" ;)
brtdv has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
<rostislav> my code puts 2475+5%
wallerdev has joined #ruby
<rostislav> syntax error, unexpected $end
<Spooner> Right, now you are asking a question.
ltsstar has joined #ruby
<A124> a) 5% of what?
<Tarential> well, he's implying a question anyway
<rostislav> of 2475
<Spooner> % isn't a percentage sign. It is a shortcut for the modulo method.
<rostislav> sorry i use ruby 2 days (
<Spooner> Tarential : Before it was not even a question ;)
<Tarential> try 2475*1.05
<A124> i = 2475; i+i*(0.05)
<rostislav> ok
lukasz1 has joined #ruby
<rostislav> thanks
triptec has left #ruby [#ruby]
<rostislav> i try
chrishunt has quit [Ping timeout: 260 seconds]
morozovm_ has joined #ruby
horofox has quit [Quit: horofox]
<rostislav> syntax error, unexpected tINTEGER, expecting $end
<rostislav> puts "MC975" 2475*1.05
lggr has joined #ruby
<Tarential> well, you have to concatenate the result of the calculation with the string
<Spooner> rostislav : n = 2475; p = 0.05; puts "#{n} + 5% is #{n + n * p}"
ngoldman_ has joined #ruby
ngoldman has quit [Ping timeout: 246 seconds]
blazes816 has joined #ruby
und3f has joined #ruby
morozovm has quit [Ping timeout: 252 seconds]
morozovm_ is now known as morozovm
ElderFain_ has joined #ruby
ElderFain has quit [Ping timeout: 272 seconds]
cakehero has quit [Quit: Computer has gone to sleep.]
ericwood_ is now known as ericwood
mercwithamouth has quit [Ping timeout: 256 seconds]
ZubKonst_ has joined #ruby
philcrissman has quit [Remote host closed the connection]
xyzodiac has quit [Quit: Computer has gone to sleep.]
hotovson has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 255 seconds]
xyzodiac has joined #ruby
ZubKonst has quit [Ping timeout: 246 seconds]
ssspiff has joined #ruby
ssspiff has quit [Changing host]
ssspiff has joined #ruby
sspiff has quit [Ping timeout: 246 seconds]
<rostislav> Spooner ok i will try (but this hard ) i need easy
<Xeago> rostislav: if that is hard
<Xeago> follow a tutorial
<Spooner> rostislav : yeah, try this http://pine.fm/LearnToProgram/?Chapter=01
morozovm has quit [Read error: Connection reset by peer]
<rostislav> Spooner ok thanks ) sorry for the stupid question (
vaclavt has quit [Quit: vaclavt]
Jork1 has joined #ruby
lggr has joined #ruby
Squarepy has quit [Ping timeout: 276 seconds]
<Spooner> It wasn't stupid. It was just too vague to answer easily. Hopefully working through those tutorials (and others you might find) might help.
samflores has joined #ruby
dblandin has joined #ruby
<rostislav> Spooner thanks
jrist is now known as jrist-afk
<Tarential> There are no stupid questions. Stupid people don't question anything. They just do.
mercwithamouth has joined #ruby
<zii> Stupid questions do not obligatory come from stupid people.
und3f has quit [Ping timeout: 246 seconds]
ananthakumaran has joined #ruby
eikko has quit [Ping timeout: 256 seconds]
joshman_ has quit [Quit: Computer has gone to sleep.]
<Spooner> rostislav : http://www.ruby-lang.org/en/documentation/quickstart/ doesn't look bad either. Using IRB (or Pry) is a good way to play around with code, more so than running scripts.
pettsson has joined #ruby
timtux has joined #ruby
dr_bob has quit [Quit: Leaving.]
rehat has joined #ruby
dmiller_ has joined #ruby
<rostislav> Spooner ok, whit Ruby and i teach english too )
dmiller has quit [Ping timeout: 244 seconds]
ssspiff has quit [Read error: Connection reset by peer]
<Tarential> I hope you mean learn english
samflores has quit [Client Quit]
<rostislav> yes
<Tarential> :)
lggr has quit [Ping timeout: 245 seconds]
irleif has quit [Quit: Computer has gone to sleep.]
poseid has quit [Ping timeout: 245 seconds]
samphippen has quit [Quit: Computer has gone to sleep.]
fbernier has joined #ruby
lggr has joined #ruby
hotovson has joined #ruby
cakehero has joined #ruby
philcrissman has joined #ruby
mohits has quit [Ping timeout: 246 seconds]
elico has quit [Remote host closed the connection]
tommyvyo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Squarepy has joined #ruby
dakine has quit [Read error: Connection reset by peer]
zigomir has quit [Ping timeout: 255 seconds]
horofox has joined #ruby
dakine has joined #ruby
samflores has joined #ruby
mmitchell has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
keltor has quit [Quit: bbl]
samuelj has joined #ruby
<samuelj> Hey, any suggestions on charting libraries? Preferably good looking and I'd like to live update
Eplemosen is now known as Eplemosen|away
hoelzro is now known as hoelzro|away
und3f has joined #ruby
monkegjinni has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
irleif has joined #ruby
monkegjinni has joined #ruby
rostislav has quit [Ping timeout: 246 seconds]
flagg0204 has quit [Quit: leaving]
mahmoudimus has joined #ruby
mneorr has quit [Remote host closed the connection]
ananthakumaran1 has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
samflores has quit [Quit: Linkinus - http://linkinus.com]
Michael_ has joined #ruby
bigoldrock has joined #ruby
flagg0204 has joined #ruby
SegFaultAX|work has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
Jork1 has quit [Quit: Jork1]
baphled has quit [Ping timeout: 256 seconds]
baphled has joined #ruby
lggr has joined #ruby
xbayrockx has quit []
timmow has quit [Quit: is having a nap]
ryanlecompte has joined #ruby
codeFiend has joined #ruby
horofox has quit [Quit: horofox]
voodoofish430 has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
<shevy> yo my peeps
<shevy> samuelj there was gruff
<samuelj> shevy gruff depends on imagemagick and i'm using jruby
<samuelj> would like to avoid that
hobana has quit [Ping timeout: 256 seconds]
lggr has quit [Ping timeout: 245 seconds]
monkegjinni has quit [Remote host closed the connection]
<shevy> aha so you have some constraints
Jork1 has joined #ruby
xyzodiac has joined #ruby
adeponte has joined #ruby
lggr has joined #ruby
adeponte has quit [Remote host closed the connection]
jrajav has quit []
ephemerian has quit [Quit: Leaving.]
lavaca_ has joined #ruby
lavaca has quit [Ping timeout: 252 seconds]
lavaca_ is now known as lavaca
carloslopes has joined #ruby
flype has joined #ruby
roadt has quit [Ping timeout: 260 seconds]
eikko has joined #ruby
chrishunt has joined #ruby
a_a_g has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
Criztian has joined #ruby
harushimo has joined #ruby
kn330 has quit [Ping timeout: 246 seconds]
jlebrech has quit [Ping timeout: 276 seconds]
Takehiro has quit [Remote host closed the connection]
<harushimo> hello to my favorite channel
kn330 has joined #ruby
<harushimo> I have to one thing: I've learned so much ruby from this channel. I hope you can continue teach me. I want to thank everyone
Synthead has quit [Read error: Connection reset by peer]
<Tarential> you're welcome! even though I just got here, only started learning two weeks ago and haven't helped you at all I'm happy to receive your blessing
Eplemosen|away is now known as Eplemosen
<Spooner> Tarential : :D
bricker has joined #ruby
<harushimo> I started learning ruby about 3 weeks ago
lggr has joined #ruby
<Tarential> then you have me beat lol
<harushimo> hehe
<harushimo> its all about practice and looking at problems
<JonnieCache> samuelj: all the best charting stuff these days tends to be in the browser
<JonnieCache> raphael and the charting thing that goes with it (i forget the name) are excellent
<harushimo> there is a good book I'm been doing online called learn ruby the hard way
beneggett has joined #ruby
nadendla has joined #ruby
<JonnieCache> samuelj: d3 is also amazing
cantonic_ has joined #ruby
<JonnieCache> or you could just generate your own svg in whatever way
<Tarential> I dunno, I thought d3 was pretty boring in gameplay compared to d2 </joke>
gmurphey has quit [Ping timeout: 244 seconds]
<JonnieCache> apparently d3 is a love poem to neoliberalism
DrShoggoth has quit [Ping timeout: 255 seconds]
katherinem13 has quit [Quit: Might IS right.]
<JonnieCache> i think that might be just my friend exaggerating based on his dislike for the trading system :)
<Tarential> lmao
katherinem13 has joined #ruby
DrShoggoth has joined #ruby
Mon_Ouie has joined #ruby
samphippen has joined #ruby
cantonic has quit [Ping timeout: 256 seconds]
cantonic_ is now known as cantonic
lggr has quit [Ping timeout: 260 seconds]
DrShoggoth has quit [Excess Flood]
DrShoggoth has joined #ruby
mva3212 is now known as smi|es
Takehiro has joined #ruby
jrist-afk is now known as jrist
frihd has quit [Quit: Leaving.]
Synthead has joined #ruby
kn330 has quit [Ping timeout: 255 seconds]
lggr has joined #ruby
frederic has quit [Remote host closed the connection]
sent-hil has quit [Remote host closed the connection]
awestroke has joined #ruby
mando has joined #ruby
mucker has quit [Quit: leaving]
twoism has joined #ruby
dagnachewa has quit [Remote host closed the connection]
twoism has quit [Remote host closed the connection]
tjbiddle has joined #ruby
tjbiddle has quit [Remote host closed the connection]
tjbiddle has joined #ruby
twoism has joined #ruby
asobrasil has joined #ruby
jgrevich has joined #ruby
timonv has quit [Remote host closed the connection]
alfism has joined #ruby
Michael_ is now known as lampe2
erichmenge has joined #ruby
blazes816 has quit [Quit: blazes816]
timonv has joined #ruby
blazes816 has joined #ruby
lggr has quit [Ping timeout: 276 seconds]
nitti has quit [Remote host closed the connection]
nitti has joined #ruby
nitti has quit [Remote host closed the connection]
robertotauille has joined #ruby
daniel_- has joined #ruby
Vainoharhainen has quit [Quit: Leaving...]
beneggett has quit [Quit: Computer has gone to sleep.]
nitti has joined #ruby
lggr has joined #ruby
hobana has joined #ruby
bradleyprice has joined #ruby
chussenot has left #ruby [#ruby]
elico has joined #ruby
hadees has joined #ruby
wedtm|away is now known as wedtm
CodeFriar has left #ruby ["Linkinus - http://linkinus.com"]
Squarepy has quit [Quit: Leaving]
mango_ has joined #ruby
kn330 has joined #ruby
elaptics is now known as elaptics`away
bigoldrock has quit [Quit: Leaving.]
hobana has quit [Ping timeout: 245 seconds]
Takehiro has quit [Remote host closed the connection]
smi|es is now known as mva3212
Spooner has quit [Ping timeout: 246 seconds]
mvangala has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
margle has quit [Quit: Computer has gone to sleep.]
GoGoGarrett has quit [Remote host closed the connection]
frogprince_mac has joined #ruby
Virunga has joined #ruby
beneggett has joined #ruby
brianpWins has joined #ruby
timonv has quit [Remote host closed the connection]
nitti_ has joined #ruby
twoism_ has joined #ruby
Drager_ has quit [Changing host]
Drager_ has joined #ruby
Drager_ is now known as Drager
twoism_ has quit [Remote host closed the connection]
twoism has quit [Read error: Connection reset by peer]
lggr has joined #ruby
burgestrand has joined #ruby
twoism has joined #ruby
mango_ has quit [Remote host closed the connection]
a_a_g has quit [Quit: Leaving.]
havenn has joined #ruby
mrsolo has joined #ruby
Virunga is now known as LennyLinux
x0F has quit [Read error: Connection reset by peer]
arturaz has quit [Ping timeout: 246 seconds]
locriani_ has quit [Remote host closed the connection]
nitti has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
lukasz1 has quit [Quit: WeeChat 0.3.8]
Elhu has quit [Quit: Computer has gone to sleep.]
x0F has joined #ruby
Asher has quit [Read error: No route to host]
Asher1 has joined #ruby
flype has quit [Quit: Computer has gone to sleep.]
Asher1 has quit [Client Quit]
Jrz has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
shevy has quit [Ping timeout: 240 seconds]
carlyle has quit [Remote host closed the connection]
lggr has joined #ruby
cardoni has joined #ruby
eldariof has joined #ruby
arkiver has quit [Quit: Leaving]
tommyvyo has joined #ruby
ncr100 has joined #ruby
lkba has joined #ruby
sent-hil has joined #ruby
baroquebobcat has joined #ruby
hobana has joined #ruby
enroxorz-work is now known as quique-roxorz
hobana has quit [Client Quit]
zenformatics1 has quit [Quit: Leaving.]
twoism has quit [Ping timeout: 256 seconds]
zenformatics has joined #ruby
<Eiam> yeah all the best charting is definitely in the browser..
<Eiam> i had a hell of a time finding a way to generate charts I could email
<Eiam> we wrote a gem to generate web charts or email charts based on the same data and the email charts look like crap compared to the web ones =(
lggr has quit [Ping timeout: 245 seconds]
Cascador has joined #ruby
<Cascador> hello everyone
<Cascador> i need to concatenate a bunch of .wav files using ruby
quique-roxorz is now known as Anthnoy-
<Cascador> i tried google but couldn't find anything "defacto" for doing this
<Cascador> so maybe you guys could recommend me a gem for working with .wav files?
x82_nicole has joined #ruby
Anthnoy- is now known as enroxorz
workmad3 has quit [Ping timeout: 240 seconds]
Ankhers has quit [Remote host closed the connection]
philcrissman has quit [Remote host closed the connection]
erichmenge has quit [Quit: Linkinus - http://linkinus.com]
lggr has joined #ruby
shevy has joined #ruby
frogstarr78 has quit [Remote host closed the connection]
zenformatics has quit [Quit: Leaving.]
<samuelj> ok everyone, if i knock up a simple sinatra app to display my chart, what lib should i use now? highcharts doesn't seem to have a gem or anything?
verto is now known as verto|off
answer_42 has quit [Quit: WeeChat 0.3.9]
adkron has joined #ruby
answer_42 has joined #ruby
frogstarr78 has joined #ruby
shadoi has joined #ruby
<harushimo> am I doing the group wrong for anagram program?
baphled has quit [Ping timeout: 260 seconds]
ananthakumaran1 has quit [Quit: Leaving.]
<harushimo> I am using a hash inside the function
DrShoggoth has quit [Quit: Leaving]
<harushimo> i'm working on it
<harushimo> just let me know
DrShoggoth has joined #ruby
sailias has quit [Quit: Leaving.]
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
joshman_ has joined #ruby
eikko has quit [Ping timeout: 244 seconds]
apok has joined #ruby
lggr has quit [Ping timeout: 276 seconds]
xyzodiac has quit [Quit: Computer has gone to sleep.]
eikko has joined #ruby
nwertman has joined #ruby
niklasb has joined #ruby
lggr has joined #ruby
sailias has joined #ruby
chimay has quit [Quit: WeeChat 0.4.0-dev]
ngoldman_ is now known as ngoldman
dakine has quit [Quit: Leaving]
sneakyness_wk has joined #ruby
Eplemosen has quit [Quit: Hexchat FTW! http://www.hexchat.org/]
wereHams1er is now known as wereHamster
whaley has joined #ruby
wereHamster has quit [Changing host]
wereHamster has joined #ruby
horofox has joined #ruby
eikko has quit [Ping timeout: 264 seconds]
timonv has quit [Remote host closed the connection]
samuelj has quit [Quit: Leaving]
imami|afk is now known as banseljaj
enroxorz has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<shevy> do you guys ever have the feeling
<shevy> you maintain some project over 3 or 4 years
<shevy> and slowly it starts to suck
<shevy> so you have this urge to rewrite it
<shevy> in the hope that it gets better ...
chrismcg is now known as zz_chrismcg
samphippen has quit [Ping timeout: 244 seconds]
evilsushi has joined #ruby
evilsushi has quit [Changing host]
evilsushi has joined #ruby
<matti> shevy: No.
<matti> ;]
lggr has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
<matti> shevy: I rather watch ST: TNG that re-write old thing to remove technical debt ;p
jeffreybaird has quit [Quit: jeffreybaird]
AlbireoX has joined #ruby
<otters> has anybody here used the AWS SDK for Ruby
ananthakumaran has joined #ruby
sepp2k1 has joined #ruby
<harushimo> any suggestions.
STyler has joined #ruby
sepp2k has quit [Ping timeout: 246 seconds]
<shevy> matti hehe
<matti> :>
<shevy> ohhh otters!!! cuddly otters are back
<matti> Wot?
thillux has quit [Remote host closed the connection]
<shevy> harushimo you always need to isolate things to the smallest part that fails whenever possible
lggr has joined #ruby
<matti> otters: Should just work.
<matti> harushimo: :)
<shevy> for instance
<shevy> ["cars"].group_by { |word| word.chars.sort }.values
<shevy> where are the other two values?
<otters> matti: ?
verto|off is now known as verto
<shevy> "scars" and "racs"
<shevy> also why is scars there
<shevy> harushimo I think your thoughts are not yet in alignment with your body
<matti> otters: SDK
<shevy> you must zen meditate first
wpaulson has joined #ruby
<A124> Same for me. But I'm aware of it.
<otters> matti: it doesn't just work
<otters> that's why I'm asking
colinbm has joined #ruby
<matti> otters: Ah.
<matti> otters: What's the problem?
LennyLinux has quit [Remote host closed the connection]
<otters> The Content-MD5 header is either ignored or not sent
<shevy> how can you be so mean to cuddly otters matti!
cardoni has quit [Quit: cardoni]
gmurphey has joined #ruby
<otters> last time I used this thing, I somehow got it to log every HTTP request
<harushimo> thanks guys
<harushimo> I'm just looking at the code
<otters> but how to do that now escapes me
<harushimo> it didn't seem right to me
Cascador has left #ruby ["Leaving"]
<harushimo> I'm trying to rearrange the letters. I know there is a reverse method but that is only reverse the characters
jeffreybaird has joined #ruby
heftig has quit [Ping timeout: 246 seconds]
<otters> ha
<otters> Content-MD5 is not getting sent
<harushimo> i'm still working on it
kaawee has quit [Ping timeout: 255 seconds]
Russell^^ has joined #ruby
Agis__ has quit [Quit: Agis__]
knuskrot has joined #ruby
<matti> harushimo: I did this once:
<matti> time head -20000 /usr/share/dict/words | ruby -e 'words = STDIN.read; a = {}; for w in words; w.strip!.downcase!; (a[w.unpack("c*").sort.pack("c*")] ||= []).push(w); end; END { for (k,v) in a; k = v.shift; puts "#{k}: #{v.join(" ")}" if v[1]; end }'
lggr has quit [Ping timeout: 244 seconds]
<harushimo> thats okay
colinbm has quit [Quit: colinbm]
<harushimo> that is a lot
carlyle has joined #ruby
<harushimo> why are using STDIN.read
<harushimo> are you inputting the word list?
JonnieCache has quit [Ping timeout: 260 seconds]
<harushimo> I'm curious
lggr has joined #ruby
<matti> Yes
<matti> time head -20000 /usr/share/dict/words
<shevy> harushimo always remain flexible
<harushimo> I am
<harushimo> I'm thinking
<matti> shevy: LOL
<shevy> "if user gives no input, use /usr/share/dict/words, else use his input"
SegFaultAX|work has quit [Ping timeout: 256 seconds]
<matti> shevy: Like a self-help class ;]
alvaro_o has joined #ruby
<shevy> hehe
<shevy> I am trying to make harushimo think on his own!
<harushimo> thanks make fun of the newbie
<matti> shevy: In a second you will be convincing him that life is beautiful etc ;p
Eplemosen has joined #ruby
<shevy> man harushimo don't listen to matti, he will spoil you
<shevy> listen to me
<matti> ;p
<matti> harushimo +1
<harushimo> haha
<matti> harushimo: Nobody makes fun :)
<matti> Go team harushimo Go
<shevy> I am like the striped thin animal in the old Junglebook movie
<harushimo> thanks guys
<matti> :>
frogstarr78 has quit [Remote host closed the connection]
heftig has joined #ruby
<shevy> and matti is on of the vultures
<harushimo> i'll be going to my first ruby hackthon
<shevy> *one
<harushimo> interesting
knuskrot has left #ruby [#ruby]
<shevy> harushimo, in some months you will have written so much ruby code
timonv has joined #ruby
<shevy> that you end up maintaining stuff only :(
alvaro_o has quit [Read error: Connection reset by peer]
<shevy> enjoy the creative first phase!
<harushimo> right
<harushimo> got it
<atmosx> `block in ffi_lib': Could not open library 'lib.dylib': dlopen(lib.dylib, 9): image not found (LoadError) <--- any idea how to get over this?
alvaro_o has joined #ruby
<shevy> with some beer perhaps
dblandin has quit [Ping timeout: 240 seconds]
<shevy> on linux I would typically try to find that file
<matti> LOL
<matti> shevy: +1
<shevy> this is an odd name though
<shevy> lib.dylib ... what kind of name is that?
<shevy> is that mac?
lggr has quit [Ping timeout: 260 seconds]
Sou|cutter has quit [Quit: WeeChat 0.3.7]
jenrzzz has quit [Ping timeout: 260 seconds]
<atmosx> yes
punkrawkR has joined #ruby
<atmosx> mdfind doesn't give much, I'll run a find on / and see ...
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
<shevy> linux is such a huge mess
rtl has left #ruby [#ruby]
frogstarr78 has joined #ruby
rtl has joined #ruby
<atmosx> yeah, freebsd is better in that respect.
<atmosx> ah didn't find anything
lggr has joined #ruby
daniel_hinojosa has joined #ruby
artnez has joined #ruby
<shevy> hmm
robotmay has quit [Read error: No route to host]
robotmay_ has joined #ruby
daniel_- has quit [Ping timeout: 245 seconds]
samphippen has joined #ruby
dummies_freelanc has quit [Ping timeout: 246 seconds]
philcrissman has joined #ruby
cardoni has joined #ruby
GoGoGarrett has joined #ruby
nateberkopec has joined #ruby
dummies_freelanc has joined #ruby
Tearan has joined #ruby
daniel_- has joined #ruby
<harushimo> i'm stuck
<harushimo> I can't figure it out
jrist is now known as jrist-afk
<harushimo> how to rearrange the letters
<harushimo> its bugging me
red_ has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
Tearan has quit [Client Quit]
kn330 has quit [Ping timeout: 256 seconds]
<harushimo> brb lunchtime
bbttxu_ has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
nateberkopec has quit [Client Quit]
mark_locklear has quit [Remote host closed the connection]
saschagehlich has joined #ruby
lggr has joined #ruby
kn330 has joined #ruby
SegFaultAX|work has joined #ruby
twoism has joined #ruby
hotovson has quit [Remote host closed the connection]
red_ has quit []
nateberkopec has joined #ruby
twoism has quit [Remote host closed the connection]
nitti_ has quit [Remote host closed the connection]
twoism has joined #ruby
xyzodiac has joined #ruby
red_ has joined #ruby
Xeago has quit [Remote host closed the connection]
<atmosx> that's the prob shevy https://github.com/imathis/octopress/issues/759 if you have any idea, it would be welcomed... didn't find any.
lggr has quit [Ping timeout: 260 seconds]
<atmosx> rake runs fine on freebsd
Emmanuel_Chanel_ has joined #ruby
nitti has joined #ruby
<shevy> a python error?
daniel_-_ has joined #ruby
lggr has joined #ruby
uncommitted has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 256 seconds]
jerrad has joined #ruby
skaczor has joined #ruby
jcoglan has quit [Ping timeout: 256 seconds]
<jeffreybaird> Anyone have an idea on how to do this better? (Context: I had a csv of about 100000 rows of data littered with duplicates) https://gist.github.com/3861705
<uncommitted> Trying to come up with a ruby way to edit config files, is there a module for this?
emmanuelux has joined #ruby
daniel_- has quit [Ping timeout: 245 seconds]
<oz> uncommitted: try YAML maybe
timonv has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 246 seconds]
<oz> uncommitted: it actually depends on what type of config file you wish to edit or generate :)
Tearan has joined #ruby
frihd has joined #ruby
robotmay has joined #ruby
timonv has joined #ruby
sent-hil has quit [Remote host closed the connection]
<uncommitted> two come to mind… /etc/network/interfaces, and then uncommenting things if they are commented out
red_ has quit [Ping timeout: 240 seconds]
<shevy> so you already have an existing config file
robotmay_ has quit [Ping timeout: 246 seconds]
<uncommitted> yes, exactly
Emmanuel_Chanel_ is now known as Emmanuel_Chanel
<shevy> you can read in the data like ... data = File.readlines("location of your file here")
<shevy> then modify this data variable
<shevy> then save it
lggr has joined #ruby
<shevy> data.each do |line| # check if line includes a '#' character, if yes you could get rid of it, then save that
Jrz has quit [Quit: Computer has gone to sleep.]
red_ has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
<uncommitted> seems easy enough, doing that exact same thing with bash at the moment
thmzlt has quit [Remote host closed the connection]
<uncommitted> writing erg's for some things though, curious if there was a more elegant way :)
irleif has joined #ruby
xaq has joined #ruby
irleif has quit [Client Quit]
nateberkopec has quit [Quit: Leaving...]
macmartine has joined #ruby
whaley has quit [Remote host closed the connection]
Juul has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
LennyLinux has joined #ruby
stephenjudkins has joined #ruby
nateberkopec has joined #ruby
daniel_-_ has quit [Ping timeout: 245 seconds]
Neomex has joined #ruby
Neomex has quit [Client Quit]
saschagehlich has quit [Remote host closed the connection]
saschagehlich has joined #ruby
elico has quit [Quit: elico]
havenn has quit [Remote host closed the connection]
lggr has joined #ruby
timonv has quit [Remote host closed the connection]
danishman has joined #ruby
cespare has quit [Quit: WeeChat 0.3.7]
djbender has joined #ruby
djbender has quit [Client Quit]
thmzlt has joined #ruby
nitti_ has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
timonv has joined #ruby
slainer6_ has quit [Remote host closed the connection]
theRoUS has quit [Ping timeout: 248 seconds]
codeFiend has quit [Quit: codeFiend]
niklasb has quit [Read error: Operation timed out]
Hanmac has joined #ruby
nitti has quit [Ping timeout: 276 seconds]
haxrbyte_ has quit [Ping timeout: 260 seconds]
lggr has joined #ruby
nitti has joined #ruby
robustus has joined #ruby
theRoUS has joined #ruby
nitti_ has quit [Ping timeout: 260 seconds]
locriani has joined #ruby
carlyle has quit [Ping timeout: 245 seconds]
kpshek has joined #ruby
axl_ has quit [Read error: Connection reset by peer]
chin-tastic has quit [Ping timeout: 245 seconds]
lggr has quit [Ping timeout: 248 seconds]
robotmay has quit [Remote host closed the connection]
axl_ has joined #ruby
sent-hil has joined #ruby
Jork1 has quit [Quit: Jork1]
daniel_-_ has joined #ruby
Jork1 has joined #ruby
carlyle has joined #ruby
kpshek has quit [Ping timeout: 244 seconds]
<ElderFain_> so I sort of took a stab at the recursion but I think I'm on the wrong path because obviously this doens't work and its not really recursino anyway...
xyzodiac has quit [Quit: Computer has gone to sleep.]
<ElderFain_> I'm just confused about how I am supposed to track how many nodes down to go (to know when to stop calling child_nodes)
<ElderFain_> and what the hell i'd return at all in that case..
lggr has joined #ruby
baphled has joined #ruby
<ElderFain_> I have a 'flat' hash that within its attributes defines a tree relationship, but the hash itself is flat. I want to be able to go through and say "for this given root node, give me the tree N levels deep"
werdnativ has joined #ruby
timonv has quit [Remote host closed the connection]
<ElderFain_> so if i said flatten_children("p1",1) i'd get back p4,p2. if I said flatten_children("p1",2) I'd get back p4,p2,p22
_bart has quit [Quit: _bart]
elaptics`away is now known as elaptics
red_ has quit [Ping timeout: 248 seconds]
lggr has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
ryanf has quit [Quit: leaving]
Hanmac has quit [Ping timeout: 246 seconds]
dnstbr has joined #ruby
<bricker> Is a Struct basically just a way to quickly define a class with accessors?
Playb3yond has joined #ruby
mercwithamouth has quit [Ping timeout: 260 seconds]
lggr has joined #ruby
<heftig> bricker: ri Struct
<bricker> heftig: I read it, but am still not clear what it's for
<blazes816> it's sort of like a method-less class
<blazes816> like just a collection of data
<bricker> heftig: or rather, what's different about a Struct, and class Person; attr_accessor :name, :email; end
<sent-hil> bricker: that's what I use it for
<heftig> bricker: not much, it's just convenience, as you said
<bricker> I see
<heftig> bricker: it also has some extra methods that are similar to those of Hash
<heftig> values, each_pair, et cetera
brtdv has quit [Excess Flood]
<bricker> cool
brtdv has joined #ruby
nyuszika7h has quit [Ping timeout: 246 seconds]
twoism has quit [Remote host closed the connection]
thedeadghost has quit [Ping timeout: 240 seconds]
lggr has quit [Ping timeout: 276 seconds]
Playb3yond has quit [Read error: Connection reset by peer]
baphled has quit [Ping timeout: 264 seconds]
Apocalypse has quit [Ping timeout: 246 seconds]
Playb3yond has joined #ruby
wpaulson has quit [Ping timeout: 276 seconds]
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
\n has joined #ruby
xaq has quit [Remote host closed the connection]
lggr has joined #ruby
vitoravelino is now known as vitoravelino`afk
timonv has joined #ruby
lampe2 has quit [Ping timeout: 256 seconds]
hashpuppy has left #ruby [#ruby]
Apocalypse has joined #ruby
arietis has joined #ruby
arielpts- has joined #ruby
_bart has joined #ruby
arielpts has quit [Ping timeout: 246 seconds]
chin-tastic has joined #ruby
kringa has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
nitti has quit [Ping timeout: 260 seconds]
rippa has quit [Ping timeout: 255 seconds]
mercwithamouth has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
love_color_text has quit [Remote host closed the connection]
kirun has joined #ruby
love_color_text has joined #ruby
slainer68 has joined #ruby
lggr has joined #ruby
carlyle_ has joined #ruby
kn330 has quit [Ping timeout: 260 seconds]
thedeadghost has joined #ruby
Jrz has joined #ruby
A124 has quit [Quit: Leaving.]
Dawne has quit [Quit: Leaving.]
statarb3 has quit [Quit: Leaving]
heisenmink has joined #ruby
knite has joined #ruby
<knite> hey guys, I'm a Python dev who's learning Ruby. I have a bit of an embarrassing newbie question...
carlyle has quit [Ping timeout: 245 seconds]
<frihd> go ahead, ask
no_worries has quit [Remote host closed the connection]
<knite> well, I'm working on iOS development in RubyMotion, but I don't think that matters directly.
xaq has joined #ruby
<knite> basically, I'm a bit confused about the difference between self.var, @var, and attr_accessor.
_7894 has quit [Read error: Operation timed out]
nwertman has quit [Quit: nwertman]
xaq has quit [Remote host closed the connection]
awestroke has quit [Ping timeout: 246 seconds]
<knite> for example, I have a class definition where I just tried to do self.session = whatever, which crashed my app because session hadn't previously been declared. and yet @session worked just fine.
lggr has quit [Ping timeout: 256 seconds]
<knite> sorry, a class method, in case that's ambiguous.
no_worries has joined #ruby
ltsstar has quit [Remote host closed the connection]
ltsstar has joined #ruby
robotmay has joined #ruby
<knite> I've done a bit of reading online, and it sounds as if self.var works the same as @var until you define a var() function. in other words, self.var is future proof whereas @var is not.
<knite> but I'm not sure where attr_accessor fits in, and I don't get why setting self.var in a class method broke things.
tvw has joined #ruby
<harushimo> i'm back
_bart has quit [Quit: _bart]
lggr has joined #ruby
<harushimo> Is my each do loop okay? I'm try to loop threw the list of words
<harushimo> I still can't figure the re arranging of the letters to make new words
tvw has quit [Excess Flood]
<harushimo> any suggestions
tvw has joined #ruby
<thmzlt> knite: self.var and @var are not related
mmitchell has quit [Remote host closed the connection]
<blazes816> you can split the string up into an array, then find combinations of that array of a certain size, then check them against a dictionary list to verify they're real works
<thmzlt> knite: @var is a "global" variable inside that object called instance variable
frihd has quit [Quit: Leaving.]
hoffmanc has joined #ruby
<hoffmanc> is there no way to check that a mock method is *not* called?
<harushimo> oh really
<thmzlt> knite: attr_accessor will define two methods (a getter and a setter) for the instance variable with the same name
_bart has joined #ruby
nitti has joined #ruby
<thmzlt> hoffmanc: I think (not sure) you can verify it is called zero times
<harushimo> I don't know
codeFiend has joined #ruby
tchebb1 has joined #ruby
mmitchell has joined #ruby
Juul has quit [Quit: Leaving]
frihd has joined #ruby
<Gate> hoffmanc: in rspec? mock.should_not_receive :message
<harushimo> this is bothering me. I'm looking at the ruby docs for a method which may be useful
mando has quit [Remote host closed the connection]
tchebb has quit [Ping timeout: 246 seconds]
<harushimo> I know you can do it with each do. I may be calling the wrong method
<thmzlt> harushimo: what are you trying to do with the gist?
<harushimo> I'm trying re arrange letters to make a new words
<thmzlt> harushimo: I mean what do you want that method to return
<harushimo> if I get word_list = [cars], it should return [scars, cars, racs]
lggr has quit [Ping timeout: 260 seconds]
chin-tastic has quit [Ping timeout: 246 seconds]
<harushimo> Is there a method rearranges letters?
timonv has quit [Remote host closed the connection]
<harushimo> I've been looking at the ruby docs too
<thmzlt> harushimo: you mean rearrange randomly?
<harushimo> yes but it has to be a real word
netrealm has quit [Ping timeout: 276 seconds]
LennyLinux has quit [Remote host closed the connection]
<harushimo> as you can see in my gist with the example for cars
swarley has joined #ruby
<harushimo> I'm just using one right now. I have another test case setup with 4 words
<Vinz_> harushimo: Why cars would return scars ?
cburyta has quit [Remote host closed the connection]
<hoffmanc> thmzlt, thanks
Neomex has joined #ruby
Neomex has quit [Client Quit]
<harushimo> its an anagram
<Vinz_> I don't see where you add a letter to the word(d)
<Vinz_> s*
tvw has quit [Ping timeout: 245 seconds]
<Vinz_> Yup, but scars is not an anagram of cars
<thmzlt> harushimo: it is not
<harushimo> oh sorry
<harushimo> it would be scar
lggr has joined #ruby
shadoi has quit [Quit: Leaving.]
<harushimo> I added extra letter
<harushimo> I'm so sorry about that
shadoi has joined #ruby
<harushimo> what method would I use to do this?
<harushimo> I can't use to reverse because it would just reverse the letters
Asher has joined #ruby
<bperry> finding anagrams can be very computationally expensive harushimo
<swarley> to find anagrams?
<thmzlt> harushimo: you need a dictionary
<swarley> use permutation
<thmzlt> harushimo: once you have that, use Array#permutation
<swarley> unix dictionaries are generally someone by default...
* swarley cant remember where
nitti has quit [Remote host closed the connection]
Playb3yond has quit [Quit: Colloquy for iPhone]
sagax has joined #ruby
<harushimo> ["cars"] this is an array correct? I have seen arrays into two different languages
<Vinz_> http://pastie.org/5031401 harushimo
zii has quit [Read error: Connection reset by peer]
<thmzlt> "car".split('').permutation("car".size).to_a.map(&:join)
<thmzlt> => ["car", "cra", "acr", "arc", "rca", "rac"]
_bart has quit [Quit: _bart]
<bperry> harushimo: that is actually two arrays
<thmzlt> harushimo: ^^
<Muz> thmzlt: And why was that sent as a NOTICE to the channel?
<bperry> "cars" is an array of characters
<Vinz_> Wut
<swarley> technically "car" is shorthand for ['c','a','r']
<harushimo> right
<swarley> in C languages
<thmzlt> Muz: sorry, my mistake
zii has joined #ruby
zii has joined #ruby
zii has quit [Changing host]
LennyLinux has joined #ruby
<Vinz_> harushimo: Look at the pastie, it's doing what you want
<elektronaut> my batphone just went off
<harushimo> I don't need to use each do on the list
<harushimo> I see that
<swarley> k, /usr/share/dict/american-english
cburyta has joined #ruby
<swarley> or /usr/share/dict/words
etehtsea has joined #ruby
hvq has joined #ruby
hvq has quit [Remote host closed the connection]
hvq has joined #ruby
remi has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
<remi> is there a reference for the format of versions that can be used in Gemfile or .gemspec files? eg. "~> 1.4" or ">= 3.0.0"
<harushimo> here is my question about anagrams, why can't we use each do loop on the program? wouldn't that be better
danishman has quit [Ping timeout: 246 seconds]
<harushimo> would it take longer in the runtime?
<rking> Urr, so I'm trying to define a one-off method like: def anobj.m; closed_var = true end
<rking> But of course def's don't close.
LennyLinux has quit [Remote host closed the connection]
<swarley> $dictionary = File.read("/usr/share/dict/words").split(/\n/); def anagram(word); word.split(//).permutation(word.length).to_a.map(&:join).select {|w| $dictionary.include? w }; end
<rking> Oh wait, I'll get a block if I define_method
LennyLinux has joined #ruby
lggr has joined #ruby
<\n> hi
<remi> elektronaut: exactly what I was looking for: thanks a lot!
MikeyV27_ has joined #ruby
<swarley> err
<swarley> def anagram(word); (word.split(//).permutation(word.length).to_a.map(&:join).select {|w| $dictionary.include? w }).uniq - word; end
daniel_-_ has quit [Ping timeout: 245 seconds]
<harushimo> awesome
<harushimo> thanks
bigmcq77 has quit [Quit: Computer has gone to sleep.]
<harushimo> what is permutation doing?
<harushimo> is that checking the order of the word
<thmzlt> harushimo: it gives you permutations
asobrasil has quit [Ping timeout: 255 seconds]
<harushimo> then you are doing the comparsion with an dictionary
<harushimo> is that coming from the dictionary on OS
heisenmink is now known as awestroke
<swarley> yeah, thats assuming a unix dictionary is present
<thmzlt> harushimo: not all permutations are valid words
samphippen has quit [Quit: Computer has gone to sleep.]
<harushimo> oh okay
<harushimo> got it
<thmzlt> harushimo: "srca" is a valid permutation of "cars"
jrist-afk is now known as jrist
Xeago has joined #ruby
irleif has joined #ruby
MikeyV27 has quit [Ping timeout: 246 seconds]
anachronistic has quit [Quit: anachronistic]
MikeyV27_ has quit [Ping timeout: 246 seconds]
dblandin has joined #ruby
sailias has quit [Quit: Leaving.]
lggr has quit [Ping timeout: 240 seconds]
<shevy> Guys I have something like this: http://pastie.org/5031468
<shevy> how could I get a handle on any of these constants? (the names will be different and dynamic actually)
<swarley> oh i messed up again
centipedefarmer has joined #ruby
<swarley> shevy; what do you mean?
<swarley> like, the values of the constants?
<shevy> yeah
<swarley> Foo.const_get(:Constant1
<shevy> with .constants I only have an array with string-names of those constants
<swarley> )
<swarley> [28] pry(main)> Foo.const_get(:Constant1)
<swarley> => [1, 2, 3]
<shevy> cool that works nicely, thanks swarley
<swarley> you can use a string as well
<swarley> no problem
<swarley> also
<swarley> harushimo;
<pothibo> Foo::Constant1 works too
<harushimo> ok
<harushimo> thanks
stephenjudkins_ has joined #ruby
elico has joined #ruby
und3f has quit [Quit: Leaving.]
<swarley> no i was giong to say i made a mistake in that code
<swarley> here is the code that works
joshman_ has quit [Ping timeout: 246 seconds]
<swarley> def anagram(word); word.split(//).permutation(word.length).to_a.map(&:join).select {|w| $dictionary.include? w } - [word]; end
<harushimo> cool
lggr has joined #ruby
<swarley> [34] pry(main)> anagram("cars")
<swarley> => ["arcs", "scar"]
asobrasil has joined #ruby
<harushimo> nice
kn330 has joined #ruby
nanderoo has quit [Remote host closed the connection]
<swarley> you could package a dictionary file in your __DATA__ section if you absolutely needed to
stephenjudkins has quit [Ping timeout: 264 seconds]
stephenjudkins_ is now known as stephenjudkins
reset has joined #ruby
xyzodiac has joined #ruby
<swarley> i halfway want to make something that simulates type assurance for methods
<harushimo> its okay
<swarley> i mean in general
<harushimo> right
Tearan has quit [Quit: Sleepy Badger....]
<thmzlt> swarley: like what?
Puck6633 has quit [Read error: Connection reset by peer]
<swarley> like, define(String, Integer, Integer) {|x,y,z|
ncr100 has quit [Quit: Lost terminal]
krawchyk has quit [Remote host closed the connection]
<swarley> or include the names like
<swarley> define(:method, :x => Integer) { return x + 5 }
JonnieCache has joined #ruby
vitoravelino`afk is now known as vitoravelino
lggr has quit [Ping timeout: 260 seconds]
<thmzlt> swarley: for method dispatch?
<swarley> nah, just type assurance
<swarley> you could do it in dispatch though
daniel_-_ has joined #ruby
<thmzlt> swarley: I'd say that's a code smell
<harushimo> ok
<swarley> but i would probably make order matter to avoid dispatch
netrealm has joined #ruby
<swarley> so you could still call methods like method(5)
Beoran has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
geekbri has quit [Remote host closed the connection]
<centipedefarmer> hey got a question about something really oldballs. this isn't my paste but i believe it shows the exact same problem i'm havng: http://pastebin.com/UptHKVP2
Russell^^ has quit [Quit: Russell^^]
lggr has joined #ruby
<Beoran> centipedefarmer,
<centipedefarmer> started after moving the app to a different server and presumably a newer version of Passenger. Of course the _real_ answer is "update this app to use rails 3 and ruby 1.9" but in the meantime, i need it running again. has anyone else seen this?
<Beoran> loks like fastercvs and phhusion passenger are not agreeing with each other :
no_worries has quit [Ping timeout: 245 seconds]
sent-hil has quit [Ping timeout: 260 seconds]
<centipedefarmer> correct. this << m ethod in fastercsv tries to call << no the IO streram you give it
<Beoran> ah, then pass in a string stream in stead
<centipedefarmer> and this app is giving it passenger's response for that
<centipedefarmer> it's funny, my app's stack tracke is really similar to that, right down to the method name "stream_csv" -- i get the feeling this may have been a common practice some years back
<centipedefarmer> well the point is that it should make the browser download the content as a csv file
<Beoran> sure, but you'll have to buffer it manually now, it seems
<centipedefarmer> i'll show you this stream_csv method, just a sec
kjellski has joined #ruby
nitti has joined #ruby
samphippen has joined #ruby
<centipedefarmer> i'm not totally understanding why "response" is being passed to that FasterCSV.new....... i mean is that really necessary?
reuf has joined #ruby
bigmcq77 has joined #ruby
<centipedefarmer> esp since the Proc is just getting passed to render :text anyway>?
Juul has joined #ruby
<centipedefarmer> i think the guy who wrote this was obsessed with the << operator and tried to manufacture reasons to use it :D
adeponte has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
twoism has joined #ruby
no_worries has joined #ruby
dakine has joined #ruby
<Beoran> centipedefarmer, let me see
jasond has quit [Remote host closed the connection]
lggr has joined #ruby
ngoldman has quit [Remote host closed the connection]
JonnieCache has quit [Ping timeout: 255 seconds]
sepp2k1 has quit [Remote host closed the connection]
twoism has quit [Ping timeout: 240 seconds]
uris has joined #ruby
nitti has quit [Ping timeout: 264 seconds]
<Beoran> centipedefarmer,
<Beoran> csv = FasterCSV.new(output, :row_sep => "\r\n"); yield csv
kaawee has joined #ruby
<centipedefarmer> yeah that's in there
<Beoran> I feel like too much magic is going on :p
<centipedefarmer> likewise
<Beoran> where does that output come from anyway?
<centipedefarmer> but it's not of my making
<centipedefarmer> yeah, good question...
<Beoran> but you can change itt I hope
gregorg has quit [Read error: Connection reset by peer]
<centipedefarmer> yeah well i have to change it, because now it doesn't work :D
<Beoran> probably .. i's Rail's right?
<centipedefarmer> yeah, 2.2.something i think
<Beoran> I suspect it's some kind of filter
<Beoran> anyway the filter is broken...
<Beoran> uoi could try to do output.to_s and see if that fixes anything...
<Beoran> since FasterCVS also accepts string input
<Beoran> it's a long shot though, I don't know Rails well, I prefer simper frameworks :)
<centipedefarmer> i'm beginning to as well
lggr has quit [Ping timeout: 255 seconds]
anachronistic has joined #ruby
remi has quit [Quit: leaving]
gregorg has joined #ruby
<centipedefarmer> when I searched for the error message, all I found was that pastie, and I was struck by the fact that they also had a method called stream_csv
eldariof has quit []
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<centipedefarmer> so that got me wondering if the technique being used here might have been cargo-culted from some 2005 blog post or something
samphippen has quit [Quit: Computer has gone to sleep.]
wallerdev has quit [Quit: wallerdev]
prtksxna has joined #ruby
pen has joined #ruby
banseljaj is now known as imami|afk
prtksxna has quit [Remote host closed the connection]
lggr has joined #ruby
gregorg has quit [Read error: Connection reset by peer]
SegFaultAX|work has quit [Ping timeout: 256 seconds]
fixl has joined #ruby
vlad_starkov has joined #ruby
macmartine has joined #ruby
answer_42 has quit [Quit: WeeChat 0.3.9]
<Beoran> centipedefarmer, I see
SegFaultAX|work has joined #ruby
ChampS666 has joined #ruby
saschagehlich has quit [Quit: saschagehlich]
s0ber has quit [Read error: Connection reset by peer]
cakehero has quit [Quit: Computer has gone to sleep.]
GoGoGarrett has quit [Remote host closed the connection]
<Beoran> Send data to the browser using send_data
Jrz has quit [Quit: Computer has gone to sleep.]
s0ber has joined #ruby
<Beoran> perhaps tha tway will work better?
<Beoran> or just use send_file
cakehero has joined #ruby
<waxjar> are there more exciting ruby communities than r/ruby? :/
<Beoran> and buffer theCSV to a Stringio buffer
<centipedefarmer> how about just the Ruby Community as a whole?
Jork1 has quit [Quit: Jork1]
<Beoran> waxjar what you mean exciting?
prtksxna has joined #ruby
prtksxna has quit [Remote host closed the connection]
gregorg has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
lggr has quit [Ping timeout: 244 seconds]
cburyta has quit [Remote host closed the connection]
<Beoran> True excitement requires a real life significant other , IMHO :)
<centipedefarmer> hm, this app uses rails 2.1.0, don't know if I have send_data available
<waxjar> haha, fair enough. i guess i mean something with a bit more substance, a bit bigger maybe
A124 has joined #ruby
reinaldob has quit [Remote host closed the connection]
_7894 has joined #ruby
emadb has joined #ruby
<waxjar> the weekly "which ruby book should i get?" is also starting to annoy me a bit, but oh well
no_worries has quit [Remote host closed the connection]
nadendla has left #ruby [#ruby]
CaptainJet has joined #ruby
lggr has joined #ruby
ChampS666 has quit [Ping timeout: 264 seconds]
mando has joined #ruby
<blazes816> the bdsm community has it's share of excitement
<centipedefarmer> oh me too
<waxjar> lol
<centipedefarmer> i can only read so fast, people
haxrbyte has joined #ruby
<centipedefarmer> and actually, for me personally, i read slow as shit :D
no_worries has joined #ruby
haxrbyte has quit [Remote host closed the connection]
<uris> is anyone using psycopg2 with postgresql 64 bit?
<uris> oops, sorry
<uris> wrong room
frihd has quit [Quit: Leaving.]
<A124> blazes816: Why's that?
stephenjudkins has quit [Quit: stephenjudkins]
<blazes816> o0
<blazes816> nature?
robotmay has quit [Remote host closed the connection]
haxrbyte has joined #ruby
swistak35 has joined #ruby
philcrissman has quit [Remote host closed the connection]
robotmay has joined #ruby
awestroke has quit [Remote host closed the connection]
<swarley> so, fun question here
robertotauille has quit [Quit: Leaving...]
<A124> I don't get it. Nverermind. I joined a min ago-
<swarley> i want to modify a local variable inside of a proc
<swarley> i doubt its possible
<swarley> suggestions?
<centipedefarmer> i think it's possible
twoism has joined #ruby
<swarley> i'm outside of the proc
<centipedefarmer> aren't procs closed over the environment they're created in?
<centipedefarmer> (which btw isn't necessarily where they're run)
adeponte has quit [Read error: Connection reset by peer]
sent-hil has joined #ruby
<blazes816> lol A124: waxjar: are there more exciting ruby communities than r/ruby?
gregorg has quit [Read error: Connection reset by peer]
emadb has quit [Quit: emadb]
robotmay has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 240 seconds]
adeponte has joined #ruby
<A124> blazes816: If you are code lover or don't like the offtopic and dumb questions, then #ruby-lang for sure. I like both. #ruby in general, but when something is needed and is strictly code related and asked precisely, blah blah blah.. xD
gregorg has joined #ruby
gregorg has quit [Changing host]
gregorg has joined #ruby
haxrbyte has quit [Ping timeout: 256 seconds]
_adeponte has joined #ruby
davidcelis has joined #ruby
adeponte has quit [Read error: Connection reset by peer]
davidcelis is now known as Guest99424
adeponte has joined #ruby
philcrissman has joined #ruby
Guest99424 has quit [Client Quit]
davidcel_ has joined #ruby
pskosinski has quit [Ping timeout: 246 seconds]
davidcel_ is now known as davidcelis
davidcelis has quit [Changing host]
davidcelis has joined #ruby
lggr has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
samphippen has joined #ruby
_adeponte has quit [Ping timeout: 246 seconds]
LouisGB has joined #ruby
<centipedefarmer> oh wow. wow wow. hahaha
mando has quit [Remote host closed the connection]
<centipedefarmer> apparently I ran into this problem before and since forgot about it
<centipedefarmer> want to see how i fixed it?
Axsuul has joined #ruby
reset has quit [Quit: Leaving...]
<centipedefarmer> I put this in an initializer:
<centipedefarmer> PhusionPassenger::Utils::UnseekableSocket.class_eval{ def <<(*args); puts(*args); end }
v0n has quit [Quit: Leaving]
LennyLinux has quit [Remote host closed the connection]
<centipedefarmer> holy crap i am evil
v0n has joined #ruby
reset has joined #ruby
Asher has quit [Quit: Leaving.]
lggr has quit [Ping timeout: 240 seconds]
<Spaceghostc2c> centipedefarmer: Welcome to the dark side. We have evals everywhere.
<centipedefarmer> looks like somehow that initializer got left out when i moved it probably because i didn't recognize what it was
thmzlt has quit [Read error: Connection reset by peer]
gregorg has quit [Ping timeout: 246 seconds]
thmzlt has joined #ruby
nwertman has joined #ruby
oldB has joined #ruby
gregorg has joined #ruby
oldB has quit [Client Quit]
xorgnak has quit [Remote host closed the connection]
krz has quit [Quit: krz]
lggr has joined #ruby
carloslopes has quit [Quit: Leaving.]
Spooner has joined #ruby
tommyvyo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
haxrbyte has joined #ruby
gregorg_taf has joined #ruby
nwertman has left #ruby [#ruby]
twoism has quit [Remote host closed the connection]
timonv has joined #ruby
nwertman has joined #ruby
twoism has joined #ruby
cardoni has quit [Quit: cardoni]
gmci has quit [Ping timeout: 240 seconds]
dblandin has left #ruby [#ruby]
elico has quit [Quit: elico]
gregorg has quit [Read error: Connection reset by peer]
dblandin has joined #ruby
dblandin has left #ruby [#ruby]
dblandin has joined #ruby
dblandin has left #ruby [#ruby]
[Neurotic] has joined #ruby
lggr has quit [Ping timeout: 276 seconds]
gmci has joined #ruby
evilsushi has quit [Quit: Lost terminal]
Asher has joined #ruby
margle has joined #ruby
reuf has quit [Quit: Leaving]
timonv has quit [Ping timeout: 256 seconds]
tvw has joined #ruby
linoj__ has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
bluOxigen has quit [Ping timeout: 244 seconds]
manizzle has quit [Ping timeout: 256 seconds]
nitti has joined #ruby
sagax has quit [Quit: Ухожу я от вас]
anachronistic has quit [Quit: anachronistic]
<harushimo> i'm out. I'll be back on tomorrow
<harushimo> thanks everyone
harushimo has quit [Quit: Leaving]
emergion has joined #ruby
Elhu has joined #ruby
whaley has joined #ruby
jbw has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 276 seconds]
frogprince_mac has quit [Quit: Leaving...]
hotovson has joined #ruby
uncommitted has left #ruby ["Leaving"]
<sent-hil> what's that document that's mostly in japanese that talks about ruby internals?
slainer68 has quit [Remote host closed the connection]
<QKO> does ruby have goto statements?
SegFaultAX|work has quit [Ping timeout: 276 seconds]
lggr has joined #ruby
<sent-hil> qko: you can fake it sort of (don't ask me how though)
Morkel has quit [Quit: Morkel]
philcrissman has quit [Remote host closed the connection]
Jork1 has joined #ruby
<waxjar> qko, throw and catch iirc
whaley has quit [Remote host closed the connection]
robustus has quit [Quit: ZNC - http://znc.in]
<QKO> waxjar: that is so ugly
jeffreybaird has quit [Quit: jeffreybaird]
<QKO> and I don't know about ruby, but if I throw catch in C# the runtime drops its pants
timonv has joined #ruby
<QKO> before pulling it back up and continueing
manizzle has joined #ruby
<waxjar> what do you need them for btw? i never had the need for a goto statement
bbttxu_ has quit [Quit: bbttxu_]
kyletcarey has joined #ruby
Asher1 has joined #ruby
Asher has quit [Read error: Connection reset by peer]
<QKO> well, common need in other languages is common exit code, error handling, jumping out of multiple loops, doing arbritary actions that are not neatly defined by language constructs'
Nisstyre-laptop has joined #ruby
Asher1 has quit [Client Quit]
<QKO> basically where the language itself would fail you, you could fall back to gotos
Asher has joined #ruby
<QKO> of course, you can also abuse gotos to write code that nobody can understand, but I feel that people that do such things aren't really programmers anyway...
<centipedefarmer> throw/catch might be different meaning for same words compared to c#
carlyle_ has quit [Remote host closed the connection]
<centipedefarmer> it's not for exception/error handling, in ruby that's begin/rescue
<centipedefarmer> in ruby throw/catch actually is a lot like a goto
<swarley> how does this look?
<swarley> [7] pry(main)> define :sprintf, :string => String, "args*" => [Object] {
<swarley> [7] pry(main)* string % args
<swarley> [7] pry(main)* }
<waxjar> i believe ruby's catch/throw work like goto statements, I'm not very familiar with them in any language tbh
<swarley> catch throw in other languages are like ruby's begin rescue
<swarley> well
<swarley> not really
<swarley> well, in a way yes
<centipedefarmer> not exactly, but the similar naming is confusing
<swarley> yeah
<swarley> but anyway
<swarley> how does that code look
<centipedefarmer> in java you throw an error and catch it, in ruby you raise an error and rescue it but you can throw a symbiol to be caught elsewhere in the code
<swarley> you invoke normally
<swarley> [8] pry(main)> sprintf "hello %c%c%c%c%c", 'w','o','r','l','d'
<swarley> => "hello world"
lggr has quit [Ping timeout: 256 seconds]
tvw has quit [Ping timeout: 245 seconds]
niklasb has joined #ruby
jbw has joined #ruby
ltsstar has quit [Quit: ltsstar]
r1ddl3r has joined #ruby
<swarley> just if you try to do something stupid it wont work
hotovson has quit [Remote host closed the connection]
<QKO> centipedefarmer: ah cool
Nisstyre-laptop has quit [Ping timeout: 264 seconds]
<swarley> [13] pry(main)> sprintf 1, :herp
<swarley> RuntimeError: Error, expected String as argument for string in sprintf
lggr has joined #ruby
margle has quit [Quit: Computer has gone to sleep.]
fixl has quit [Ping timeout: 260 seconds]
mva3212 has quit [Ping timeout: 260 seconds]
pjackson has joined #ruby
tjbiddle_ has joined #ruby
pjackson has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
Agis__ has joined #ruby
<knite> I've just installed a gem with sudo gem install the_gem. I'm trying to add it to my project with require 'the_gem', which fails. how do I troubleshoot this? I assume I need to add something to my $PATH, or set some other shell variable? I'm on OS X 10.7, ruby 1.8.7
pskosinski has joined #ruby
<xclite> knite, require 'rubygems'
<xclite> before requiring the gem
<xclite> if that doesn't work, come back and harass me
stephenjudkins has joined #ruby
h4mz1d has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
tjbiddle has quit [Ping timeout: 255 seconds]
v0n has quit [Ping timeout: 246 seconds]
timonv has quit [Remote host closed the connection]
tjbiddle_ has quit [Ping timeout: 248 seconds]
<knite> xclite: that seems to have done the trick, thanks! if you have a second or two, could you explain why that's necessary. my initial Googling didn't turn anything up. this is in my Rakefile, and the project I'm working on already had another require line in there which worked.
carlyle has joined #ruby
chichou has quit [Remote host closed the connection]
lggr has joined #ruby
<knite> xclite: ah, looks like the ruby equivalent of virtualenv is Bundler? I think I'll check that out instead of installing gems locally...
<knite> er, globally*
jimeh has quit [Ping timeout: 252 seconds]
<xclite> knite - I am guilty of insufficiently knowing the specifics, I just know that post 1.9 it's no longer necessary to require rubygems. Bundler is fantastic
dblandin has joined #ruby
<knite> xclite: oh, so that means the ruby version on OS X is somewhat out of date. I'll update to something more recent!
<xclite> knite, 1.8.7 is still pretty commonly used, but the newwer versions have some nice updates
<knite> xclite: the docs I'm reading must have assumed 1.9+, there was no mention anywhere of require-ing 'rubygems'. :-P
etehtsea has quit []
h4mz1d has quit [Ping timeout: 248 seconds]
<xclite> knite at this point it's the first thing i check
<xclite> 'oh my requires are failing, what does ruby -v say?'
<knite> must be a common newbie ruby trap, eh?
Jork1 has quit [Quit: Jork1]
<ElderFain_> os x ships with 1.8 till unfortunately
<knite> I'm emailing the library author now to suggest they update their quick start doc.
twoism has quit [Remote host closed the connection]
<ElderFain_> use rvm
<waxjar> rbenv :3
haxrbyte has quit [Remote host closed the connection]
<swarley> if you're new to ruby, do not use 1.8
<xclite> knite it gets even more fun with debian. As ElderFain_ says, RVM can help with the insanity
<swarley> that's starting a bad habit
nitti has quit [Remote host closed the connection]
Jork1 has joined #ruby
<Tarential> one more vote for rvm here, took care of my versioning headaches in minutes
thone has joined #ruby
mva3212 has joined #ruby
<knite> gah, so much new stuff to learn. my brain's already too full trying to learn Ruby (coming from Python), fake my way through Objective-C, and learn the iOS APIs.
<knite> (I've dived into iOS dev with RubyMotion, in case that wasn't obvious.)
emergion has quit [Quit: Computer has gone to sleep.]
<xclite> yeah i get tool fatigue sometimes
kirun has quit [Quit: Client exiting]
<ElderFain_> why would you do that lol
lggr has quit [Ping timeout: 240 seconds]
<xclite> gets annoying to have to learn everybody's dsl with the various libraries and whatnot
<ElderFain_> learn ruby while also learning objective c
<ElderFain_> just use objc
carlyle has quit [Remote host closed the connection]
<knite> ElderFain_: because I really dislike verbose languages like that. I did c/c++ back in school, so it's mostly learning the message passing style.
<knite> but I'd rather stab myself in the eye than write Java, PHP, C, etc.
nitti has joined #ruby
<ElderFain_> its about a lot more than that but whatever, enjoy your journey
thone_ has quit [Ping timeout: 240 seconds]
v0n has joined #ruby
<knite> ElderFain_: I'm sure it is. I've only been staring at obj-c source for a few days. :-P
<knite> I'm sure there is*
tommyvyo has joined #ruby
wpaulson has joined #ruby
<ElderFain_> if you want to do something with ios, go use the language for it. I don't see the point at all in learning ruby so you can avoid objc but thats what you really want to use
jlwestsr has quit [Ping timeout: 246 seconds]
<ElderFain_> i can see "i know ruby, so I want to do some ios stuff"
lggr has joined #ruby
<ElderFain_> but you are "i don't know ruby or objc, so I'm going to learn ruby to use objc"
dummies_freelanc has quit [Quit: Leaving.]
<ElderFain_> anyway, making my head hurt thinkin about it
Jork1 has quit [Quit: Jork1]
<swarley> objective c is just
<swarley> weird
Mon_Ouie has quit [Read error: Connection reset by peer]
<swarley> in ways its easier
<knite> well, I only have to learn enough obj-c to understand any source/tutorials I'm using.
<knite> I don't need to write it, just read it.
piotr__ has quit [Ping timeout: 256 seconds]
<knite> but yeah, it does hurt the brain a bit.
<knite> new concept overload.
twoism has joined #ruby
peregrine81 has quit [Ping timeout: 248 seconds]
cascalheira has joined #ruby
<swarley> obj c is stupid in some ways
<Eiam> swarley: you've just described every language in existence
<swarley> well
cardoni has joined #ruby
<swarley> objective c is like, C++, minus some work
twoism has quit [Remote host closed the connection]
<swarley> its like a filter over c
<swarley> well, that's exactly what it is
Mon_Ouie has joined #ruby
wpaulson_ has joined #ruby
tjbiddle has joined #ruby
skogis has quit [Ping timeout: 255 seconds]
thedeadghost has quit [Ping timeout: 256 seconds]
pskosinski has quit [Quit: A few unofficial Red Eclipse 1.3.1 (r4131) servers: http://altred.tk/toggle.rb (and no more global banning for saying that main dev is not very smart, what is truth anyway)]
peregrine81 has joined #ruby
alanp_ has joined #ruby
cdzombak has quit []
alanp has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 255 seconds]
wpaulson has quit [Ping timeout: 245 seconds]
wpaulson_ is now known as wpaulson
joelsbeard has joined #ruby
cardoni has quit [Client Quit]
mmitchell has quit [Remote host closed the connection]
jrist is now known as jrist-afk
dblandin has quit [Ping timeout: 245 seconds]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
lggr has joined #ruby
eml_ has quit [Ping timeout: 256 seconds]
dnstbr has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
swarley has quit [Ping timeout: 260 seconds]
netrealm has quit [Ping timeout: 276 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
cespare has joined #ruby
weeb1e_ has quit [Ping timeout: 268 seconds]
xaq has joined #ruby
dblandin has joined #ruby
triskt has joined #ruby
invisime has quit [Quit: Leaving.]
samuel02 has quit [Remote host closed the connection]
skogis has joined #ruby
thinkclay has quit [Quit: Leaving.]
jenrzzz has joined #ruby
samuel02 has joined #ruby
Forevernade has joined #ruby
lggr has quit [Ping timeout: 276 seconds]
Goles has joined #ruby
rehat has quit [Remote host closed the connection]
weeb1e has joined #ruby
ForevernadeAFK has quit [Ping timeout: 245 seconds]
<triskt> Hello! I've hit my wall of Google skills and hope someone might be able to help. I'm trying to read hex payloads from a file and put them into PacketFU. If I put in quoted hex it works fine (it dumps the hex to the wire), but whenever I try to pull it from a file it inserts the ASCII
thinkclay has joined #ruby
alfism has quit [Quit: alfism]
Agis__ has quit [Quit: Agis__]
<triskt> here is the file I'm pulling from http://pastebin.com/ybgLdEKx
h4mz1d has joined #ruby
lggr has joined #ruby
samuel02 has quit [Ping timeout: 260 seconds]
centipedefarmer has left #ruby ["Leaving"]
centipedefarmer has joined #ruby
joelsbeard has quit [Quit: Lost terminal]
yxhuvud has quit [Ping timeout: 246 seconds]
<Eiam> wow.. its.. nothing like c++
vaxgeek has joined #ruby
skogis has quit [Ping timeout: 260 seconds]
<vaxgeek> fellows -- does anyone know how to make bundler emit a list of dependencies without having the bundle installed?
tjbiddle_ has joined #ruby
Jork1 has joined #ruby
zenformatics has joined #ruby
tjbiddle has quit [Ping timeout: 256 seconds]
tjbiddle_ is now known as tjbiddle
zenformatics2 has quit [Ping timeout: 260 seconds]
asobrasil has left #ruby [#ruby]
lggr has quit [Ping timeout: 240 seconds]
chrisja has quit [Quit: leaving]
emmanuelux has quit [Quit: emmanuelux]
<waxjar> read the Gemfile?
<waxjar> or do you need it as an Array or w/e?
Foxandxss has joined #ruby
slainer68 has joined #ruby
lggr has joined #ruby
h4mz1d has quit [Ping timeout: 255 seconds]
josh^ has joined #ruby
nateberkopec has quit [Quit: Leaving...]
Jork1 has quit [Quit: Jork1]
A124 has quit [Quit: Leaving.]
xyzodiac has joined #ruby
bbttxu_ has joined #ruby
DrShoggoth has quit [Quit: Leaving]
twoism has joined #ruby
kjellski has quit [Quit: This computer has gone to sleep]
vitoravelino is now known as vitoravelino`afk
kjellski has joined #ruby
mneorr has quit [Remote host closed the connection]
bapa has quit [Read error: Operation timed out]
twoism has quit [Remote host closed the connection]
twoism has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
<r1ddl3r> new with ruby, any advice for a newbie
kjellski has quit [Client Quit]
<Muz> Ask real questions.
_7894 has quit [Ping timeout: 240 seconds]
Asher1 has joined #ruby
Asher has quit [Read error: Connection reset by peer]
Asher1 has quit [Client Quit]
Asher has joined #ruby
<vaxgeek> hey waxjar
<vaxgeek> here's the situation
<vaxgeek> i was working on a project, "sys-admin" was getting pulled in as a dep
<vaxgeek> but as a user of bundler, I can't tell which gem required it
triskt has quit [Ping timeout: 245 seconds]
<vaxgeek> i ended up going to another machine where the bundle HAD installed correctly and then just looking at Gemfile.lock
<vaxgeek> i just think it's a curious omission that bundler doesn't tell you WHY a gem was pulled in
<vaxgeek> makes it hard to debug when you have a broken bundle
Guedes0 has joined #ruby
lggr has joined #ruby
manizzle has quit [Ping timeout: 260 seconds]
ckrailo has joined #ruby
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
JonnieCache has joined #ruby
Tearan has joined #ruby
no_worries has quit [Remote host closed the connection]
Guedes0 is now known as DGuedes
dblandin has quit [Quit: dblandin]
no_worries has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
Juul has quit [Quit: Leaving]
chichou has joined #ruby
twoism has quit [Remote host closed the connection]
pen has quit [Remote host closed the connection]
dagnachewa has joined #ruby
nitti has quit [Remote host closed the connection]
lledet has joined #ruby
<ElderFain_> is there a way to say in a .map { |key,value| value} to shorthand it like .map(&:value) ?
forced_request has joined #ruby
lggr has joined #ruby
<ElderFain_> in the case of a hash
jamjam has quit [Ping timeout: 245 seconds]
Eplemosen has quit [Quit: Hexchat FTW! http://www.hexchat.org/]
emergion has joined #ruby
JonnieCache has quit [Read error: Operation timed out]
F1skr has joined #ruby
twoism has joined #ruby
hotovson_ has joined #ruby
Jork1 has joined #ruby
danm_408 has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
emergion has quit [Ping timeout: 276 seconds]
<reactormonk> ElderFain_, .values
Asher1 has joined #ruby
Asher has quit [Read error: Connection reset by peer]
stephenjudkins has quit [Ping timeout: 252 seconds]
<ElderFain_> hmm
<ElderFain_> derp?
<reactormonk> ElderFain_, your_hash.values
<ElderFain_> yah
stephenjudkins has joined #ruby
<ElderFain_> im derpy cannot believe I didn't see that ;)
manizzle has joined #ruby
stephenjudkins has quit [Client Quit]
lggr has joined #ruby
rabidpraxis has quit [Remote host closed the connection]
r1ddl3r has left #ruby [#ruby]
uris has quit [Quit: Ex-Chat]
M- has joined #ruby
Asher1 has quit [Read error: Connection reset by peer]
Asher has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
ddd1 has joined #ruby
r1ddl3r has joined #ruby
ddd has quit [Ping timeout: 245 seconds]
ddd1 is now known as ddd
SegFaultAX|work has joined #ruby
carlyle has joined #ruby
samuel02 has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
xaq has quit [Remote host closed the connection]
fflush has joined #ruby
hadees has quit [Quit: hadees]
<fflush> Bonjour
anachronistic has joined #ruby
Asher has quit [Read error: Connection reset by peer]
Asher1 has joined #ruby
jenrzzz has joined #ruby
lggr has joined #ruby
thedeadghost has joined #ruby
mgrayson has quit [Quit: mgrayson]
Criztian has quit [Remote host closed the connection]
<Spooner> r1ddl3r : Yeah, that was a bit of an openended question (with no information, for example, whether you are new to programming or not). In general, I point people to this online tutorial http://pine.fm/LearnToProgram/
anachronistic has quit [Client Quit]
Asher1 has quit [Read error: Connection reset by peer]
Asher has joined #ruby
Asher has quit [Read error: Connection reset by peer]
Asher1 has joined #ruby
dblandin has joined #ruby
samuel02 has quit [Ping timeout: 260 seconds]
Asher1 has quit [Client Quit]
Asher has joined #ruby
chussenot has joined #ruby
chichou has quit [Remote host closed the connection]
hsbt is now known as hsbt_away
brianpWins has quit [Quit: brianpWins]
bier has quit [Ping timeout: 276 seconds]
lggr has quit [Ping timeout: 256 seconds]
Jork1 has quit [Quit: Jork1]
stephenjudkins has joined #ruby
vitoravelino`afk is now known as vitoravelino
v0n has quit [Ping timeout: 246 seconds]
cantonic has quit [Quit: cantonic]
macmartine has joined #ruby
mmitchell has joined #ruby
slainer68 has quit [Remote host closed the connection]
lggr has joined #ruby
netrealm has joined #ruby
r1ddl3r has quit [Quit: Leaving.]
<aces1up> what is the more elegant way of doing this http://codepad.org/jlcHepN4 using .map?
synthetix has joined #ruby
thmzlt has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 245 seconds]
<blazes816> server_data = @settings.each_with_object{|var, var_args, data| data[var] = var_args[:value] }
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
timonv has joined #ruby
codeFiend has quit [Quit: codeFiend]
dblandin has quit [Quit: dblandin]
Forevernade has quit [Read error: Connection reset by peer]
sneakyness_wk has quit [Quit: LOOK AT THAT BUTT]
thmzlt has joined #ruby
STyler has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 260 seconds]
STyler has joined #ruby
<blazes816> aces1up: ^
<blazes816> (just in case you didn't see it)
nari has joined #ruby
bier has joined #ruby
hadees has joined #ruby
timonv has quit [Ping timeout: 256 seconds]
thmzlt has quit [Remote host closed the connection]
r1ddl3r has joined #ruby
<greenarrow> Ìû
lggr has joined #ruby
fmcgeough has joined #ruby
r1ddl3r has quit [Client Quit]
ddd has quit [Ping timeout: 245 seconds]
twoism has quit [Ping timeout: 260 seconds]
lkba has quit [Ping timeout: 246 seconds]
synthetix has quit [Read error: Connection reset by peer]
baroquebobcat has quit [Quit: baroquebobcat]
ddd has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
horofox has quit [Quit: horofox]
fflush has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
Jake232 has joined #ruby
jhchabran has quit [Read error: No route to host]
xnm has joined #ruby
xnm has quit [Client Quit]
lggr has joined #ruby
danm_408 has left #ruby [#ruby]
duracrisis has joined #ruby
duracrisis has quit [Changing host]
duracrisis has joined #ruby
bradleyprice has quit [Remote host closed the connection]
bmxpert1 has joined #ruby
wpaulson has joined #ruby
Forevernade has joined #ruby
sent-hil has quit [Remote host closed the connection]
dblandin has joined #ruby
bbttxu_ has quit [Quit: bbttxu_]
kringa has quit [Ping timeout: 276 seconds]
lggr has quit [Ping timeout: 246 seconds]
mmitchell has quit [Remote host closed the connection]
tiripamwe has joined #ruby
chussenot has quit [Quit: chussenot]
`gregorg` has joined #ruby
d2dchat has joined #ruby
lggr has joined #ruby
gregorg_taf has quit [Read error: Connection reset by peer]
slainer68 has joined #ruby
hgf has joined #ruby
rburton- has joined #ruby
AuroraX has joined #ruby
marcux has joined #ruby
cantonic has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
pettsson has quit [Ping timeout: 252 seconds]
LouisGB has quit [Ping timeout: 240 seconds]
daniel_-_ has quit [Quit: WeeChat 0.3.9]
hvq has quit [Quit: Instantbird 1.2 -- http://www.instantbird.com]
thinkclay has quit [Quit: Leaving.]
lggr has joined #ruby
slainer68 has quit [Ping timeout: 260 seconds]
carlyle has quit [Remote host closed the connection]
manizzle is now known as WeLoveCP
lavaca has left #ruby [#ruby]
WeLoveCP is now known as manizzle_
niklasb has quit [Read error: Operation timed out]
Tearan has quit [Quit: Sleepy Badger....]
timonv has joined #ruby
F1skr has quit [Quit: WeeChat 0.3.9]
jaredrhine has joined #ruby
Tearan has joined #ruby
x0F has quit [Read error: Connection reset by peer]
elaptics is now known as elaptics`away
Orcris has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
atmosx has quit [Quit: WeeChat 0.3.8]
x0F has joined #ruby
irleif has joined #ruby
lggr has quit [Ping timeout: 255 seconds]