apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com
cads2 has quit [Ping timeout: 248 seconds]
cads has quit [Ping timeout: 264 seconds]
mary5030 has joined #ruby
RORgasm has joined #ruby
dmiller has joined #ruby
inimit has joined #ruby
_ffio_ has joined #ruby
ffio_ has quit [Ping timeout: 240 seconds]
momomomomo has quit [Quit: momomomomo]
pierre1 has joined #ruby
RORgasm has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
Ziarkaen has joined #ruby
jarin has joined #ruby
nbouscal has joined #ruby
vlad_starkov has quit [Ping timeout: 246 seconds]
TheDick has joined #ruby
dmiller has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby
dmiller has joined #ruby
axsuul has joined #ruby
axsuul has quit [Excess Flood]
laserspewpewpew has joined #ruby
laserspewpewpew has left #ruby [#ruby]
io_syl_ has quit [Quit: Computer has gone to sleep.]
wmoxam has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
iliketurtles has joined #ruby
platzhirsch1 has left #ruby [#ruby]
emergion has joined #ruby
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
cj3kim has quit [Remote host closed the connection]
io_syl_ has joined #ruby
cj3kim has joined #ruby
blarghmatey has quit [Ping timeout: 256 seconds]
Mars` has quit [Read error: Operation timed out]
YaNakilon has joined #ruby
zigomir__ has quit [Ping timeout: 276 seconds]
Mars` has joined #ruby
michaeldeol has quit [Remote host closed the connection]
tommyvyo has quit [Quit:]
lebek has joined #ruby
_veer has quit [Ping timeout: 256 seconds]
arya_ has quit [Ping timeout: 240 seconds]
michaeldeol has joined #ruby
tvw has quit []
tommyvyo has joined #ruby
michaeldeol has quit [Remote host closed the connection]
pierre1 has quit [Remote host closed the connection]
arya_ has joined #ruby
jmimi has joined #ruby
lebek has quit [Client Quit]
agjacome has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
DonRichie has quit [Ping timeout: 245 seconds]
jefflyne has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
DonRichie has joined #ruby
Notte has quit [Remote host closed the connection]
sambao21 has joined #ruby
havenwood has quit [Remote host closed the connection]
scrollback has quit [Remote host closed the connection]
scrollback has joined #ruby
scrollback has quit [Remote host closed the connection]
scrollback has joined #ruby
jonahR has joined #ruby
airtonix_ is now known as airtonix
jonahR has quit [Client Quit]
agjacome_ has joined #ruby
marr has quit [Ping timeout: 240 seconds]
agjacome_ has quit [Client Quit]
lethan has joined #ruby
nbouscal has quit [Ping timeout: 248 seconds]
bradhe has joined #ruby
agjacome has quit [Ping timeout: 264 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
Chat6997 has joined #ruby
<Chat6997> Hi
sambao21 has joined #ruby
eka has joined #ruby
RobW_ has joined #ruby
Chat6997 has quit [Client Quit]
<Kelet> Hi
<Kelet> Bye
bradhe has quit [Ping timeout: 260 seconds]
io_syl_ has quit [Quit: Computer has gone to sleep.]
blarghmatey has joined #ruby
emergion has joined #ruby
johnkary has joined #ruby
emergion has quit [Read error: Connection reset by peer]
emergion has joined #ruby
emergion has quit [Max SendQ exceeded]
emergion has joined #ruby
emergion has quit [Max SendQ exceeded]
emergion has joined #ruby
guns has joined #ruby
emergion has quit [Max SendQ exceeded]
emergion has joined #ruby
smathieu has joined #ruby
emergion has quit [Max SendQ exceeded]
emergion has joined #ruby
sailias has quit [Read error: Connection reset by peer]
<guns> I used to be able to monkey patch Integer#inspect for verbose feedback at the REPL, but this no longer works in 2.0. Is there a new way to accomplish this?
sailias has joined #ruby
horofox_ has joined #ruby
emergion has quit [Max SendQ exceeded]
emergion has joined #ruby
emergion has quit [Max SendQ exceeded]
smathieu has quit [Ping timeout: 276 seconds]
<guns> Nothing seems to work: direct eval, module_eval, Integer.send :include, MyInspect
hogeo has joined #ruby
wmoxam has quit [Ping timeout: 240 seconds]
sailias has quit [Ping timeout: 246 seconds]
wmoxam has joined #ruby
iliketurtles has quit [Ping timeout: 264 seconds]
Bry8Star{T2 has quit [Remote host closed the connection]
Rylai has joined #ruby
sailias has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
Bry8Star{T2 has joined #ruby
iliketurtles has joined #ruby
GeissT has joined #ruby
nitish has joined #ruby
itsdavem has joined #ruby
itsdavem has quit [Remote host closed the connection]
lebek has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
Spooner has quit [Remote host closed the connection]
Davey has joined #ruby
bklane has quit [Remote host closed the connection]
cj3kim has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
Sargun has quit [Quit: Lost terminal]
scrollback has quit [Remote host closed the connection]
scrollback has joined #ruby
lethan has quit [Remote host closed the connection]
voodoofish has quit [Read error: Connection reset by peer]
sevenseacat has joined #ruby
choobie has quit [Quit: choobie]
horofox_ has quit [Quit: horofox_]
tommyvyo has quit [Quit:]
JZTech101 has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC]
jalcine has quit [Excess Flood]
allaire has joined #ruby
kofno has joined #ruby
kofno has quit [Remote host closed the connection]
buzzybron has joined #ruby
jalcine has joined #ruby
paxcoder has joined #ruby
axeman- has joined #ruby
Meatant has joined #ruby
<paxcoder> is there a function like File.readlines which returns integers instead of strings?
kofno has joined #ruby
<Paradox> i got a chuckle out of that
allaire has quit [Quit: allaire]
<paxcoder> something more convenient than File.readlines("QuickSort.txt").map{|x| x.to_i()} perhaps
<paxcoder> and no, removing "()" doesn't count :-P
<sevenseacat> does map(&:to_i) count?
horofox_ has joined #ruby
lebek has quit [Ping timeout: 248 seconds]
tommyvyo has joined #ruby
bradhe has joined #ruby
<paxcoder> sevenseacat, there are a lot of numbers in a file, so I was hoping it wouldn't be necessary to convert them from strings (on the surface, anyway)
eka has quit [Quit: Computer has gone to sleep.]
TIJ has quit [Ping timeout: 260 seconds]
<sevenseacat> guess that's a no
machuga|away is now known as machuga
Guest53987 is now known as ned
sambao21 has quit [Quit: Computer has gone to sleep.]
ned is now known as Guest29225
CaptainJet has quit []
arya_ has quit [Ping timeout: 276 seconds]
Domon has joined #ruby
bradhe has quit [Ping timeout: 248 seconds]
buzzybron has quit [Read error: Connection reset by peer]
buzzybron has joined #ruby
ThePicard has quit [Ping timeout: 240 seconds]
<Columcille> So I'm working on learning Ruby and I'm running into a question about threads I haven't been able to track down a clear answer to
<Columcille> are Ruby threads truly asynchronous or do they just essentially simulate background processing?
<Kelet> Columcille, I believe that depends on the implementation
<Kelet> Ruby 2.0, JRuby, IronRuby, Rubinius, etc
<Columcille> Ruby 2.0
arya__ has joined #ruby
c0rn has joined #ruby
lscott3 has joined #ruby
<Kelet> Columcille, Before ruby 1.9 ruby used something called Green Threads https://en.wikipedia.org/wiki/Green_threads
<Columcille> *nod*
<Kelet> Which I believe JRuby still uses, because Java uses them IIRC
<Kelet> IronRuby uses whatever .NET uses I'm guessing.
romdi`` has quit [Quit: Leaving]
<Columcille> which if I gather right, fibers essentially take up that functionality with a bit more flexibility
sambao21 has joined #ruby
<Columcille> but I'm trying to figure out how 1.9/2.0 does it differently; your links may provide the info.
<Kelet> Hmm I thought 1.9 and 2.0 were largely the same
<Kelet> and the break was between 1.8 and 1.9
* Kelet shrugs
larissa has joined #ruby
<Columcille> sorry, I wasn't clear
<Kelet> I don't use threading much in Ruby explicitly so maybe someone else can chime in
Astralum has joined #ruby
<Columcille> I mean 1.9 & 2.0 do it differently than 1.8 - I'm not sure how they do it differently.
<Columcille> I meant 1.9/2.0 to put those two together as opposed to 1.8
RORgasm has joined #ruby
idiocrash has quit [Remote host closed the connection]
c0rn has quit [Ping timeout: 240 seconds]
kofno has quit [Remote host closed the connection]
<Columcille> I'm learning Ruby on a pathway to learning Rails so I may never use threading but the book I'm reading is discussing it and from other coding I've done I found it interesting, was curious how Ruby pulls it off.
<Kelet> 1.8 uses Green Threads which is basically user-space emulation of multithreading (which is usually handled by the kernel, natively).
Astral_ has quit [Ping timeout: 240 seconds]
<Kelet> 1.9/2.0 use a Global Interpreter Lock, which is _different_
havenwood has joined #ruby
<Columcille> heh how do you have all these links if you don't use threading?
<Columcille> Thanks for the links, BTW
<Kelet> Supposedly the GIL allows for faster execution of single-threaded applications, and more compatibility with non-thread safe C libraries
<havenwood> Thread ALL THE THINGS! \o/
<Kelet> Columcille, I remember people bringing up a stink when the switch was made
<Kelet> as you can imagine
<Kelet> Some people didin't like it
<Columcille> what, people complaining about change?
<Kelet> Luckily we have alternative implementations of Ruby that still use green threads and other mechanisms
TheFuzzball has quit [Quit: Computer has gone to sleep.]
<Kelet> So ionno, sometimes it's nice to have the JVM under your feet. I've used JRuby for quite a few projects.
RORgasm has quit [Ping timeout: 248 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
<Kelet> IronRuby is probably similar but for the CLR .NET stuff
<Kelet> and Rubinius - well, I guess it has it's own VM, and it's mostly written in Ruby. Sounds nice.
tommyvyo has quit [Quit:]
<havenwood> dun forget MagLev and Topaz!
<Kelet> Hmm never heard of it - interesting, thanks havenwood
<havenwood> Nice to see MagLev support for Ruby 1.9 coming along, and Topaz is moving forwards briskly.
allaire has joined #ruby
Ziarkaen has quit [Remote host closed the connection]
<Kelet> > Topaz is written in Python
<Kelet> hehe
mansi has joined #ruby
<havenwood> Kelet: Check out a benchmark, shows how much work Topaz guys have put into performance: https://gist.github.com/havenwood/4724778
<havenwood> IronRuby doesn't perform well on that one ^
<Kelet> Oh my!
<havenwood> (On Mono.)
sambao21 has joined #ruby
c0rn has joined #ruby
Astralum has quit [Read error: Connection reset by peer]
<havenwood> Crystal is crazy fast, but not *really* Ruby, just extremely similar.
Astralum has joined #ruby
<havenwood> Kelet: MagLev is really quite fast, but still has a GIL last I checked.
tommyvyo has joined #ruby
<havenwood> Kelet: The persistent memory store is what makes it stand out. STM with native Ruby objects.
<Kelet> I don't mind the GIL, I've never had it noticably hinder my lightly multithreaded apps :)
bklane has joined #ruby
<Kelet> Wow crystal looks interesting
* Kelet adds 5 new bookmarks
ntus1017 has joined #ruby
<Kelet> Crystal is actually quite interesting because the compiler is written in Ruby and thus is actually something I might be able to hack on during a rainy day.
<Kelet> (Even though it's "not ruby", it still looks nice)
seraph has joined #ruby
robustus has quit [Ping timeout: 248 seconds]
<Kelet> I guess I'm just glad to see a lot of traction made between implementations, and to see there are so many that have reasonable conformance
jozefg has joined #ruby
robustus has joined #ruby
gr33n7007h has quit [Quit: Leaving]
io_syl_ has joined #ruby
<havenwood> Kelet: The Ruby installers/switchers really have quite good support for the lot as well.
<havenwood> topaz and mruby haven't tagged releases yet, but really nice way to grab any version of ruby, jruby, rubinius or maglev is ruby-install: https://github.com/postmodern/ruby-install#readme
dawkirst has quit [Ping timeout: 240 seconds]
<havenwood> mruby is another great one to keep an eye on, what Matz seems to be spending his time on
axsuul has joined #ruby
dawkirst has joined #ruby
maroloccio has joined #ruby
Heero has joined #ruby
<Kelet> Ah yeah, I actually tried mruby out
mercwithamouth has joined #ruby
sepp2k has quit [Quit: Leaving.]
n1x has quit [Ping timeout: 248 seconds]
<havenwood> nice
freerobby has joined #ruby
lebek has joined #ruby
<havenwood> emscriptn is nuts
Mars` has quit [Ping timeout: 256 seconds]
cyong has joined #ruby
<Kelet> I've actually got a few hobby roguelike games I'm working on in which I'm going to embed an interpreter. I was thinking Lua because it's so lightweight but I might give mruby a go.
<Kelet> It's still in testing, but seems reasonably stable.
<Kelet> And looks to support at least up to ruby 1.8.x judging by the expressions which can/can't run
jrhorn424 has joined #ruby
hadees has quit [Read error: Connection reset by peer]
nbouscal has joined #ruby
scrollback has quit [Remote host closed the connection]
itsdavem has joined #ruby
TheDick_ has joined #ruby
scrollback has joined #ruby
vlad_starkov has joined #ruby
TheDick has quit [Ping timeout: 240 seconds]
TheDick_ is now known as TheDick
bradhe has joined #ruby
Kruppe has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
itsdavem has quit [Ping timeout: 245 seconds]
locriani has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 248 seconds]
niklasb has quit [Ping timeout: 276 seconds]
n1x has joined #ruby
mary5030 has quit [Remote host closed the connection]
jefflyne has quit [Ping timeout: 245 seconds]
mary5030 has joined #ruby
io_syl_ has quit [Quit: Computer has gone to sleep.]
_veer has joined #ruby
Guest29225 is now known as ned
jefflyne has joined #ruby
GeekOnCoffee has joined #ruby
tommyvyo has quit [Quit:]
mary5030 has quit [Ping timeout: 260 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
maroloccio has quit [Quit: WeeChat 0.4.0]
DanKnox is now known as DanKnox_away
ssvo has joined #ruby
kofno has joined #ruby
kung has joined #ruby
asteve has joined #ruby
seraph has left #ruby [#ruby]
Alina-malina has quit [Ping timeout: 260 seconds]
CaptainJet has joined #ruby
justsee has joined #ruby
justsee has quit [Client Quit]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
hogeo has quit [Remote host closed the connection]
TheDick has quit [Quit: TheDick]
justsee has quit [Client Quit]
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
pr0ggie has quit [Ping timeout: 276 seconds]
horofox_ has quit [Quit: horofox_]
hackeron_ has quit [Read error: Operation timed out]
hackeron has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
Shirakawasuna has quit [Quit: Leaving]
nanoxd_ has joined #ruby
jasongoldstein has joined #ruby
huoxito has quit [Quit: Leaving]
nanoxd has quit [Read error: Operation timed out]
voodoofish has joined #ruby
<jasongoldstein> Hey, I'm having a dumb problem (new to ruby) trying to use data_mapper with sinatra. Anyone know what this traceback means? https://gist.github.com/whatisjasongoldstein/900438a4e4bbc54760d6
machuga is now known as machuga|away
blarghmatey has quit [Ping timeout: 264 seconds]
iliketurtles has joined #ruby
<sevenseacat> you have something wrong in sqlite configuration somewhere
<heftig> my guess is that the compilation of the sqlite3 gem failed
RobW_ has quit [Quit: RobW_]
wsterling has joined #ruby
axeman- has quit [Remote host closed the connection]
TonyMergue has quit [Read error: Connection reset by peer]
<jasongoldstein> Hmm… uninstalling and reinstalling the sqlite3 (there were two versions of it, which is weird) didn't change anything
<jasongoldstein> *sqlite3 gem
Mattix has joined #ruby
jmimi has quit [Ping timeout: 245 seconds]
viszu has quit [Quit: Leaving.]
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kofno has quit [Remote host closed the connection]
io_syl_ has joined #ruby
momomomomo has joined #ruby
gr33n7007h has joined #ruby
EPIK has quit [Ping timeout: 276 seconds]
dmiller has quit [Remote host closed the connection]
Heero` has joined #ruby
Heero has quit [Quit: Leaving]
nemesit|znc has quit [Ping timeout: 246 seconds]
echevemaster has quit [Read error: Connection reset by peer]
wmoxam has quit [Ping timeout: 245 seconds]
allaire has quit [Quit: allaire]
juniorzoid has quit [Quit: WeeChat 0.3.8]
hamakn has joined #ruby
allaire has joined #ruby
buzzybron has quit [Read error: Connection reset by peer]
guns has quit [Quit: guns]
buzzybron has joined #ruby
io_syl_ has quit [Quit: Computer has gone to sleep.]
Heero` has quit [Quit: Leaving]
threesome has joined #ruby
tommyvyo has joined #ruby
Michae___ has joined #ruby
RobW_ has joined #ruby
atno has joined #ruby
bklane has quit [Remote host closed the connection]
marcgg has quit [Read error: No route to host]
marcgg has joined #ruby
jmimi has joined #ruby
justsee has quit [Quit: leaving]
itsdavem has joined #ruby
justsee has joined #ruby
blandflakes has joined #ruby
darth_chatri has joined #ruby
Alina-malina has joined #ruby
mary5030 has joined #ruby
justsee has quit [Client Quit]
justsee has joined #ruby
thecommongeek has joined #ruby
bklane has joined #ruby
moos3 has joined #ruby
justsee has quit [Client Quit]
ntus1017 has quit [Remote host closed the connection]
justsee has joined #ruby
justsee has quit [Client Quit]
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
itsdavem has quit [Ping timeout: 276 seconds]
roadt__ has joined #ruby
wallerdev has quit [Quit: wallerdev]
sabayonuser3 has joined #ruby
jalcine has quit [Excess Flood]
Michae___ has quit [Remote host closed the connection]
tommyvyo has quit [Quit:]
sabayonuser3 is now known as toffic
dmiller_ has joined #ruby
Michae___ has joined #ruby
osvico has quit []
toffic has left #ruby ["Leaving"]
Guest84217 has joined #ruby
lebek has quit [Ping timeout: 240 seconds]
mansi has quit [Remote host closed the connection]
Guest84217 is now known as jalcine
jalcine has quit [Changing host]
jalcine has joined #ruby
c0rn has joined #ruby
mansi has joined #ruby
cheese1756 has left #ruby ["Leaving"]
c0rn_ has joined #ruby
gr33n7007h has quit [Quit: Leaving]
mansi has quit [Ping timeout: 248 seconds]
c0rn has quit [Ping timeout: 240 seconds]
dmiller_ has quit [Ping timeout: 245 seconds]
wmoxam has joined #ruby
freerobby has quit [Quit: Leaving.]
Michae___ has quit [Remote host closed the connection]
eldariof has joined #ruby
paxcoder has left #ruby ["Leaving"]
Es0teric has joined #ruby
RORgasm has joined #ruby
geekles has joined #ruby
freerobby has joined #ruby
johnkary has quit [Quit: @johnkary]
philcrissman has joined #ruby
RORgasm has quit [Ping timeout: 240 seconds]
nanoxd_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nanoxd has joined #ruby
hogeo has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
fridim_ has joined #ruby
kenneth has quit [Quit: kenneth]
arietis has joined #ruby
io_syl_ has joined #ruby
marcgg has quit [Read error: Connection reset by peer]
marcgg has joined #ruby
marcgg has quit [Read error: Connection reset by peer]
marcgg_ has joined #ruby
fridim_ has quit [Ping timeout: 276 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
marcdel has joined #ruby
arya__ has quit [Ping timeout: 245 seconds]
marcdel has quit [Client Quit]
RobW_ has quit [Quit: RobW_]
RobW_ has joined #ruby
diabel232 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Meatant has quit [Ping timeout: 248 seconds]
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
arya_ has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
dmiller has joined #ruby
Guga_ has quit [Quit: ~]
wsterling has quit [Remote host closed the connection]
Mendon has quit [Ping timeout: 276 seconds]
havenwood has quit [Remote host closed the connection]
dmiller has quit [Ping timeout: 245 seconds]
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
allaire has quit [Quit: allaire]
Fire-Dragon-DoL has quit [Quit: Leaving.]
Es0teric has joined #ruby
c0rn_ has quit [Quit: Computer has gone to sleep.]
arjun_ has joined #ruby
wmoxam has quit [Ping timeout: 256 seconds]
bradhe has quit [Ping timeout: 248 seconds]
c0rn has joined #ruby
arjun_ has quit [Client Quit]
tommyvyo has joined #ruby
c0rn_ has joined #ruby
itsdavem has joined #ruby
CaptainJet has quit [Ping timeout: 246 seconds]
jarin has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
dhruvasagar has joined #ruby
codemannew has quit [Ping timeout: 260 seconds]
lindenle has joined #ruby
macmartine has joined #ruby
c0rn has quit [Ping timeout: 245 seconds]
bean has joined #ruby
havenwood has joined #ruby
DeanH has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
itsdavem has quit [Ping timeout: 276 seconds]
DeanH has joined #ruby
momomomomo has quit [Quit: momomomomo]
maroloccio has joined #ruby
icecandy has joined #ruby
thecommongeek has quit [Quit: Leaving]
pr0ggie has joined #ruby
r0bby has joined #ruby
hogeo has quit [Remote host closed the connection]
iliketurtles has quit [Quit: zzzzz…..]
robbyoconnor has quit [Ping timeout: 276 seconds]
kenneth has joined #ruby
io_syl_ has quit [Quit: Computer has gone to sleep.]
bklane has quit [Remote host closed the connection]
Mars` has joined #ruby
cha1tanya has joined #ruby
kenneth has quit [Client Quit]
pr0ggie has quit [Ping timeout: 245 seconds]
iliketurtles has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
Afhbl has joined #ruby
_ffio_ has quit [Quit: WeeChat 0.4.1]
freerobby has quit [Quit: Leaving.]
Zeeraw has joined #ruby
Kruppe has quit [Remote host closed the connection]
Zeeraw has quit [Client Quit]
Es0teric has joined #ruby
kenneth has joined #ruby
tonini has joined #ruby
kenneth has quit [Client Quit]
ffio has joined #ruby
splittingred has quit [Quit: splittingred]
Mattix has quit [Remote host closed the connection]
Es0teric has quit [Client Quit]
ayaz has joined #ruby
devoldmx has quit [Ping timeout: 276 seconds]
mansi has joined #ruby
Mars` has quit [Ping timeout: 256 seconds]
axeman- has joined #ruby
c0rn_ has quit [Quit: Computer has gone to sleep.]
DanKnox_away is now known as DanKnox
wargasm has quit [Ping timeout: 248 seconds]
darth_chatri has quit [Quit: Leaving.]
mansi has quit [Ping timeout: 264 seconds]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
eldariof has quit [Ping timeout: 276 seconds]
cyong has quit [Quit: Leaving.]
pr0ggie has joined #ruby
stkowski_ has joined #ruby
stkowski has quit [Ping timeout: 240 seconds]
stkowski_ is now known as stkowski
mary5030 has quit [Ping timeout: 260 seconds]
ffio has quit [Quit: WeeChat 0.4.1]
vlad_starkov has joined #ruby
dawkirst has quit [Quit: Leaving]
vlad_starkov has quit [Remote host closed the connection]
timonv has joined #ruby
darth_chatri has joined #ruby
macmartine has quit [Quit: Computer has gone to sleep.]
devoldmx has joined #ruby
n1x has quit [Ping timeout: 246 seconds]
saarinen has joined #ruby
choobie has joined #ruby
choobie has joined #ruby
choobie has quit [Changing host]
apeiros_ has quit [Ping timeout: 245 seconds]
CrozzCyborg has quit [Quit: ...]
zets has quit [Read error: Connection reset by peer]
dmiller_ has joined #ruby
zets has joined #ruby
cj3kim has quit [Remote host closed the connection]
subbyyy has quit [Ping timeout: 260 seconds]
CrozzCyborg has joined #ruby
pr0ggie has quit [Ping timeout: 245 seconds]
dmiller_ has quit [Ping timeout: 240 seconds]
ananthakumaran has joined #ruby
jimg has joined #ruby
Notte has joined #ruby
macmartine has joined #ruby
homelinen has quit [Ping timeout: 256 seconds]
n1x has joined #ruby
homelinen has joined #ruby
RobW_ has quit [Quit: RobW_]
itsdavem has joined #ruby
wsterling has joined #ruby
noop has joined #ruby
lindenle has quit [Quit: This computer has gone to sleep]
cj3kim has joined #ruby
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
wsterling has quit [Ping timeout: 264 seconds]
smathieu has joined #ruby
itsdavem has quit [Ping timeout: 256 seconds]
ayaz has quit [Ping timeout: 256 seconds]
d4rkstalk3r has joined #ruby
daidoji has quit []
tagrudev has joined #ruby
echevemaster has joined #ruby
ayaz has joined #ruby
renderful has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 245 seconds]
seo has joined #ruby
smathieu has quit [Remote host closed the connection]
seo is now known as Guest58131
workmad3 has joined #ruby
smathieu has joined #ruby
intuxicated has quit [Ping timeout: 276 seconds]
homelinen has quit [Ping timeout: 264 seconds]
ayaz has quit [Ping timeout: 276 seconds]
klaut has joined #ruby
smathieu has quit [Ping timeout: 248 seconds]
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
wesside has quit [Quit: Computer has gone to sleep.]
ffio has joined #ruby
maroloccio has quit [Quit: WeeChat 0.4.0]
RobW_ has joined #ruby
anay has joined #ruby
RobW_ has quit [Client Quit]
Guest58131 is now known as jungjoo
sayan has joined #ruby
smathieu has joined #ruby
timonv has quit [Remote host closed the connection]
RORgasm_ has joined #ruby
KevinSjoberg has joined #ruby
anay has quit [Remote host closed the connection]
jimg has quit [Remote host closed the connection]
darth_chatri1 has joined #ruby
darth_chatri has quit [Ping timeout: 260 seconds]
codecop has joined #ruby
graph has joined #ruby
saarinen has quit [Quit: saarinen]
stkowski has quit [Quit: stkowski]
jimg has joined #ruby
aganov has joined #ruby
RORgasm_ has quit [Ping timeout: 264 seconds]
Synthead has joined #ruby
smrtz|nix has joined #ruby
Speed has joined #ruby
<smrtz|nix> I'm trying to follow 'learn ruby the hard way' but it's using 1.9.2, and I'm on 2.0. Will it matter considering I've no previous expereince with ruby?
anay has joined #ruby
smathieu has quit [Remote host closed the connection]
<sebastianb> If you really want to, you can always install version 1.9.2
smathieu has joined #ruby
renderful has joined #ruby
jimg has left #ruby [#ruby]
<smrtz|nix> sebastianb: I could, but I've already installed 2.0. Is there really that big of a diffrence?
<sebastianb> You have to wait for someone smarter to answer that question
matti has quit [Ping timeout: 248 seconds]
<sebastianb> All I can think of is different hash notation, but that's probably not everything\
ayaz has joined #ruby
<smrtz|nix> sebastianb: can you reccomend a ruby 2 tutorial?
<sebastianb> Not really, but afair 'Eloquent Ruby' was a good book
<sebastianb> it's for 1.9.3 I think
smathieu has quit [Ping timeout: 245 seconds]
<smrtz|nix> well if there's not a big difrence, I'll just stick to learn ruby the hard way. I liked his python version, so I'll probobly like this.
homelinen has joined #ruby
homelinen has joined #ruby
ffio has quit [Quit: WeeChat 0.4.1]
<smrtz|nix> actually, no, that was a lie. I hated it, but I felt like I was learning it, and fast, but the tutorial was hard, hence the name.
<sebastianb> have fun :)
<smrtz|nix> haha I will thanks.
codesoda has quit [Remote host closed the connection]
<Notte> you could use The Ruby Programming Language book if you like. It's one of the best imo.
himsin has joined #ruby
Mars` has joined #ruby
<sebastianb> also, if you already know python you can check out this site:
r0bby has quit [Ping timeout: 248 seconds]
vlad_starkov has joined #ruby
CrozzCyborg has quit [Remote host closed the connection]
larissa has quit [Quit: Leaving]
n1x has quit [Read error: Connection reset by peer]
ssvo has quit [Ping timeout: 276 seconds]
tonini has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 264 seconds]
timonv has joined #ruby
Nies has quit [Ping timeout: 276 seconds]
darth_chatri1 has quit [Quit: Leaving.]
ffio has joined #ruby
icco has quit [Ping timeout: 240 seconds]
DanKnox is now known as DanKnox_away
redgirl has quit [Quit: This computer has gone to sleep]
Hanmac has joined #ruby
icco has joined #ruby
ewnd9 has joined #ruby
Nies has joined #ruby
DeanH has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Zeeraw has joined #ruby
itsdavem has joined #ruby
havenwood has quit [Remote host closed the connection]
ayaz has quit [Ping timeout: 276 seconds]
diabel232 has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
smathieu has joined #ruby
itsdavem has quit [Ping timeout: 256 seconds]
blaxter_ has joined #ruby
apeiros has joined #ruby
icco has quit [Ping timeout: 240 seconds]
andikr has joined #ruby
saarinen has joined #ruby
Synthead has quit [Read error: Connection reset by peer]
tonini has joined #ruby
Iszak has joined #ruby
apeiros has quit [Remote host closed the connection]
icco has joined #ruby
monkegjinni has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
Afhbl has quit [Remote host closed the connection]
smathieu has quit [Ping timeout: 245 seconds]
lscott3 has quit [Quit: Sleep]
Shirakawasuna has joined #ruby
klaut has quit [Remote host closed the connection]
jprovazn has joined #ruby
saarinen has quit [Quit: saarinen]
goodgame has joined #ruby
n1x has joined #ruby
mercwithamouth has quit [Ping timeout: 246 seconds]
blaxter_ has quit [Ping timeout: 248 seconds]
apeiros has joined #ruby
pranny has joined #ruby
ewnd9 has quit [Remote host closed the connection]
thams has quit [Quit: thams]
jrendell has joined #ruby
Cooler_ has quit [Read error: Connection reset by peer]
yebyen has quit [Read error: Connection reset by peer]
yebyen has joined #ruby
Cooler_ has joined #ruby
filipe has joined #ruby
yebyen is now known as Guest2009
iliketurtles has quit [Ping timeout: 248 seconds]
tatsuya_o has joined #ruby
threesome has quit [Ping timeout: 248 seconds]
avril14th has joined #ruby
alup has joined #ruby
icco has quit [Ping timeout: 252 seconds]
codesoda has joined #ruby
inimit has quit [Quit: inimit]
icco has joined #ruby
Spami has joined #ruby
darth_chatri has joined #ruby
yugui_zzz_ has quit [Ping timeout: 264 seconds]
emergion has joined #ruby
vlad_starkov has joined #ruby
yugui_zzz has joined #ruby
blaxter_ has joined #ruby
ayaz has joined #ruby
soc42 has joined #ruby
dawkirst has joined #ruby
Kelet_ has joined #ruby
homelinen has quit [Ping timeout: 248 seconds]
tobyo has quit [Ping timeout: 240 seconds]
smrtz|nix has quit [Quit: Changing server]
homelinen has joined #ruby
Iszak has quit [Quit: Computer has gone to sleep.]
Kelet has quit [Ping timeout: 260 seconds]
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
maxmanders has joined #ruby
jbpros has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
JohnBat26 has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
Afhbl has joined #ruby
Afhbl has quit [Remote host closed the connection]
Iszak has joined #ruby
Afhbl has joined #ruby
jbpros has quit [Client Quit]
obs has joined #ruby
ayaz has quit [Ping timeout: 276 seconds]
timonv has quit [Remote host closed the connection]
ehaliewicz has quit [Remote host closed the connection]
dmiller_ has joined #ruby
blaxter_ has quit [Ping timeout: 256 seconds]
Mars` has quit [Ping timeout: 264 seconds]
emergion has joined #ruby
pupperwares1 has joined #ruby
Notte has quit [Remote host closed the connection]
ckrailo has joined #ruby
dmiller_ has quit [Ping timeout: 248 seconds]
pupperwares has quit [Ping timeout: 276 seconds]
io_syl has quit [Quit: io_syl]
noop has quit [Ping timeout: 260 seconds]
timonv has joined #ruby
noop has joined #ruby
blaxter_ has joined #ruby
thepumpk_ has quit [Remote host closed the connection]
ayaz has joined #ruby
threesome has joined #ruby
ayaz has quit [Client Quit]
itsdavem has joined #ruby
jbpros has joined #ruby
leonid__ has joined #ruby
intuxicated has joined #ruby
itsdavem has quit [Ping timeout: 276 seconds]
relix has joined #ruby
Afhbl has quit [Remote host closed the connection]
gennio has joined #ruby
<gennio> Reckity knick knack the rep tep hegger. Isn't it awful how it's jeckally jewish?
<gennio> Partinks spee spaga speel scrap. Ruda Trooda. Ejection request. Heffy the jello wup. Juffo-wup! rab locid rebbasmoth. The Proteus Animal Plannable. Poo da Boo! need 10-15 people straight Groaning my grurch nords. Ruh ninna knaw knife
<gennio> agrillio mellish. Blakes my bog. kedda mah go go mageezik Renna manuck to the ruthafied sneffal The Rump Shaking Rider Crew - Fuck You! Wren a men a menna menna moo, filling my jolts and filling my shoe, plenk a peek a pokie zal nawl knife
<gennio> Shaar nag lililly linomp nip. Many mini minotaur taurs, hate tar tar sauce. I am a robibbob meme. Have you ever thought about where the bird goes? Squirnish Mernish. Jelly jolaggalan joo! Chuh lap lap rillip. Oh I grew three years. I'm old now.
<gennio> Does anyone heck teck the rooga beega bagga? Hebber master hoon a ferr fee. Hilly a mackhole. The shiny dot in the middle of a liddle light, of the middle of a lep lep lains! Gotta get that schit ass shcrap biteoad. Ruproudj a malef loo
<gennio> Moistie bather. riberian schmecklef Mulla Malee loo lup the new flood wars. Chuddy dip, chuddy dip, chuddy microchip. Bucka lucka loo, bucky lucky blay. Bucka lucky blay lee.
<gennio> Burpaline: The wonder world. Salmy magoo goal greggats Rump duh duh duh dump, duh duh duh demp doop dump, runna nuh nah Riggity ass gaggags i nick Roddan raldwell Roady carewell reggal mahole Rup tup shmelly smelly shmebb ub. Roady farewell rose bose mahaggal. A pocahontas watch
<gennio> Blubbity ash hoosh her mellopath. a Maticake for my buddy andy Oh we-heh-heh-hell I'm thinking about the greg nargs, I'm thinkin about you! End midal too walkin' with a dolphin. I went up that street, you went up another street, we all up the presidio. I'm goin out with arsenio!
<gennio> fuckin bone screllalidge moink. ruggity fucker fagger. rum dum dacka lacka rum dum jay Go out with jay, another blue jay we fixed my astercoil plather I'm hickin' my dagger Rum dickily toon witherspoons. I'm a falcons baleiva work with the yake my 7'9'er forever tumchy tither
gennio was kicked from #ruby by apeiros [go]
gennio has joined #ruby
<gennio> i wrote my life story on my poop pad. one of the greatest art exhibits of 1999 was in a new york museum of art. In it, cow poop or fecal matter was put on a copy of the painting called "The Last Supper". This was thought to be a form of modern art. chumpin up the rears. Rubb blillick bath.
<gennio> The shiny dot in the middle of the light blue circle or ring is glowing silver in color like steel or real silver. Eating pings, eating pies, Snow quibbicker bather I'm a niner! That's right I'M A NINER! Dipoke when we dip oh blip we dip, chucka hand oh blip we dip. yxoukcil polk jhaggel.
gennio was kicked from #ruby by apeiros [go]
gunio has joined #ruby
<gunio> Reckity knick knack the rep tep hegger. Isn't it awful how it's jeckally jewish?
<gunio> Partinks spee spaga speel scrap. Ruda Trooda. Ejection request. Heffy the jello wup. Juffo-wup! rab locid rebbasmoth. The Proteus Animal Plannable. Poo da Boo! need 10-15 people straight Groaning my grurch nords. Ruh ninna knaw knife
<gunio> agrillio mellish. Blakes my bog. kedda mah go go mageezik Renna manuck to the ruthafied sneffal The Rump Shaking Rider Crew - Fuck You! Wren a men a menna menna moo, filling my jolts and filling my shoe, plenk a peek a pokie zal nawl knife
SeySayux has quit [Ping timeout: 240 seconds]
bean has quit [Read error: Connection reset by peer]
<gunio> Shaar nag lililly linomp nip. Many mini minotaur taurs, hate tar tar sauce. I am a robibbob meme. Have you ever thought about where the bird goes? Squirnish Mernish. Jelly jolaggalan joo! Chuh lap lap rillip. Oh I grew three years. I'm old now.
<gunio> Does anyone heck teck the rooga beega bagga? Hebber master hoon a ferr fee. Hilly a mackhole. The shiny dot in the middle of a liddle light, of the middle of a lep lep lains! Gotta get that schit ass shcrap biteoad. Ruproudj a malef loo
<gunio> Moistie bather. riberian schmecklef Mulla Malee loo lup the new flood wars. Chuddy dip, chuddy dip, chuddy microchip. Bucka lucka loo, bucky lucky blay. Bucka lucky blay lee.
<gunio> Burpaline: The wonder world. Salmy magoo goal greggats Rump duh duh duh dump, duh duh duh demp doop dump, runna nuh nah Riggity ass gaggags i nick Roddan raldwell Roady carewell reggal mahole Rup tup shmelly smelly shmebb ub. Roady farewell rose bose mahaggal. A pocahontas watch
<gunio> Blubbity ash hoosh her mellopath. a Maticake for my buddy andy Oh we-heh-heh-hell I'm thinking about the greg nargs, I'm thinkin about you! End midal too walkin' with a dolphin. I went up that street, you went up another street, we all up the presidio. I'm goin out with arsenio!
<gunio> fuckin bone screllalidge moink. ruggity fucker fagger. rum dum dacka lacka rum dum jay Go out with jay, another blue jay we fixed my astercoil plather I'm hickin' my dagger Rum dickily toon witherspoons. I'm a falcons baleiva work with the yake my 7'9'er forever tumchy tither
gunio was kicked from #ruby by apeiros [gunio]
bean has joined #ruby
Tylerjd has joined #ruby
dash_ has joined #ruby
SeySayux has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
sayan has quit [Ping timeout: 245 seconds]
radic has quit [Ping timeout: 240 seconds]
pedestrian has joined #ruby
codesoda has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
shaunbaker has joined #ruby
dash__ has joined #ruby
troessner has joined #ruby
intuxicated has quit [Remote host closed the connection]
gstamp has quit [Quit: Computer has gone to sleep.]
dash_ has quit [Ping timeout: 240 seconds]
radic has joined #ruby
homelinen has quit [Ping timeout: 276 seconds]
Coffers has joined #ruby
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
fossgeek has joined #ruby
cj3kim has quit [Remote host closed the connection]
intuxicated has joined #ruby
<fossgeek> puts "Hello World!"
<fossgeek> does anybody here use pry?
intuxicated has quit [Remote host closed the connection]
KevinSjoberg has joined #ruby
<Hanmac> fossgeek: there is a pry channel but what is your question?
<fossgeek> I asked there but dint get any reply
RORgasm has joined #ruby
cha1tanya has quit [Ping timeout: 276 seconds]
homelinen has joined #ruby
<fossgeek> Actually I am unable to generate gist from within pry
ffio has quit [Ping timeout: 246 seconds]
<fossgeek> I followed steps given in this video http://vimeo.com/26391171
elaptics`away is now known as elaptics
<fossgeek> when I do gist-method String#each_line
marr has joined #ruby
<fossgeek> I get the following error
<fossgeek> SyntaxError: unexpected tCONSTANT, expecting keyword_do or '{' or '('
<fossgeek> gist-method String#each_line
<fossgeek> ^
arya_ has quit [Ping timeout: 260 seconds]
ferr has joined #ruby
ayaz has joined #ruby
RORgasm has quit [Ping timeout: 260 seconds]
icecandy has quit [Remote host closed the connection]
homelinen has quit [Ping timeout: 276 seconds]
lkba has quit [Ping timeout: 248 seconds]
homelinen has joined #ruby
arya_ has joined #ruby
buibex has joined #ruby
n1x has quit [Ping timeout: 245 seconds]
intuxicated has joined #ruby
wesside has joined #ruby
mengu has joined #ruby
ybart has joined #ruby
darth_chatri has quit [Quit: Leaving.]
ssvo has joined #ruby
blaxter_ is now known as blaxter
ffio has joined #ruby
DaniG2k has joined #ruby
YaNakilon has quit [Ping timeout: 276 seconds]
ffio has quit [Client Quit]
Squarepy has quit [Read error: Connection reset by peer]
ssvo has quit [Ping timeout: 276 seconds]
sayan has joined #ruby
ffio has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
YaNakilon has joined #ruby
TonyMergue has joined #ruby
arya_ has quit [Ping timeout: 260 seconds]
ferr_ has joined #ruby
radic has quit [Ping timeout: 246 seconds]
<Hanmac> fossgeek did you read the documentation at https://github.com/pry/pry ? you need the gist or the pry-gist gem
ferr has quit [Ping timeout: 240 seconds]
contradictioned_ has joined #ruby
krainboltgreene has joined #ruby
skattyadz has joined #ruby
arya_ has joined #ruby
YaNakilon has quit [Ping timeout: 240 seconds]
ferr_ has quit [Ping timeout: 240 seconds]
pranny1 has joined #ruby
yacks has quit [Quit: Leaving]
ferdev has quit [Quit: ferdev]
cj3kim has joined #ruby
pranny has quit [Ping timeout: 240 seconds]
scrollback has quit [Remote host closed the connection]
scrollback has joined #ruby
ybart has quit [Quit: ybart]
n1x has joined #ruby
Zai00 has joined #ruby
himsin has quit [Quit: himsin]
sayan has quit [Ping timeout: 248 seconds]
emergion has joined #ruby
ephemerian has joined #ruby
Tylerjd has quit [Quit: Don't ever forget your towel!]
trepidaciousMBR has joined #ruby
cj3kim has quit [Ping timeout: 240 seconds]
ghr has joined #ruby
buibex has quit [Remote host closed the connection]
intuxicated has quit [Remote host closed the connection]
cha1tanya has joined #ruby
Giorgio has joined #ruby
arya_ has quit []
rdark has joined #ruby
skattyadz has quit [Quit: skattyadz]
radic has joined #ruby
buibex has joined #ruby
arya_ has joined #ruby
ferdev has joined #ruby
scrollback has quit [Remote host closed the connection]
pen has quit [Remote host closed the connection]
scrollback has joined #ruby
robbyoconnor has joined #ruby
ericmathison has quit [Ping timeout: 264 seconds]
scrollback has quit [Remote host closed the connection]
sayan has joined #ruby
jbpros has quit [Quit: jbpros]
scrollback has joined #ruby
scrollback has quit [Remote host closed the connection]
ferdev has quit [Client Quit]
razi has joined #ruby
klaut has joined #ruby
ferdev has joined #ruby
darth_chatri has joined #ruby
senayar has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
ybart has joined #ruby
codesoda has joined #ruby
pen has joined #ruby
jungjoo has quit [Remote host closed the connection]
matrixis1 is now known as matrixise
monkegji_ has joined #ruby
codesoda has quit [Ping timeout: 252 seconds]
YaNakilon has joined #ruby
monkegjinni has quit [Ping timeout: 246 seconds]
schickung has joined #ruby
scrollback has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
arya_ has quit [Ping timeout: 248 seconds]
eka has joined #ruby
graph has quit [Read error: Connection reset by peer]
graph has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Hanmac has quit [Quit: Leaving.]
blackmesa has joined #ruby
jbpros has joined #ruby
soc42 has quit [Remote host closed the connection]
tvw has joined #ruby
<fossgeek> hanmac Found the reason on pry channel. the commands were unified recently, but the docs are probably out of date. I just need to do gist instead of gist -m or gist-method. Thanks for the help anyways
maxmanders has quit [Ping timeout: 256 seconds]
maxmanders has joined #ruby
icecandy has joined #ruby
ybart has quit [Quit: ybart]
fossgeek has quit [Ping timeout: 246 seconds]
lkba has joined #ruby
emergion has joined #ruby
Hanmac has joined #ruby
tommyvyo has quit [Quit:]
krainboltgreene has quit [Quit: krainboltgreene]
spacebug has quit [Read error: Connection reset by peer]
spacebug_ has quit [Read error: Connection reset by peer]
spacebug has joined #ruby
spacebug_ has joined #ruby
sarbull has joined #ruby
gyre007 has joined #ruby
lunarjar has quit [Quit: Bye]
lunarjar has joined #ruby
nitish has quit [Remote host closed the connection]
s0ber has quit [Ping timeout: 245 seconds]
ybart has joined #ruby
Speed has joined #ruby
stormbytes has joined #ruby
ntus1017 has joined #ruby
krainboltgreene has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
tonini has quit [Remote host closed the connection]
nomenkun has joined #ruby
stormbytes has left #ruby [#ruby]
graph has quit [Ping timeout: 260 seconds]
Myrth has joined #ruby
<Myrth> hi, how do i find where gem installed the files? thanks
<Myrth> gem/bundle
<krainboltgreene> gem env <something
<krainboltgreene> Can't remember what
nomenkun has quit [Remote host closed the connection]
nomenkun has joined #ruby
cj3kim has joined #ruby
scrollback has quit [Remote host closed the connection]
kevinykchan has joined #ruby
scrollback has joined #ruby
<Myrth> krainboltgreene
<Myrth> thanks!
nomenkun has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
Neomex has joined #ruby
Giorgio has quit [Ping timeout: 276 seconds]
ybart has quit [Ping timeout: 245 seconds]
Shirakawasuna has quit [Quit: Leaving]
fossgeek has joined #ruby
kevinykchan has quit [Read error: Connection reset by peer]
monkegji_ has quit [Ping timeout: 245 seconds]
cj3kim has quit [Read error: Connection reset by peer]
Squarepy has joined #ruby
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
moura has joined #ruby
moura has quit [Max SendQ exceeded]
buibex has quit [Write error: Broken pipe]
vlad_starkov has joined #ruby
scrollback has quit [Remote host closed the connection]
buibex has joined #ruby
scrollback has joined #ruby
ffio has quit [Quit: WeeChat 0.4.1]
kevinykchan has joined #ruby
buibex has quit [Read error: Connection reset by peer]
buibex_ has joined #ruby
DrCode has quit [Remote host closed the connection]
TIJ has joined #ruby
Spooner has joined #ruby
gildo has joined #ruby
DrCode has joined #ruby
noocode has joined #ruby
<noocode> hello, how do i setup sinatra to use utf8-german encoding?
DaniG2k has quit [Quit: Leaving.]
axsuul has quit [Ping timeout: 264 seconds]
northelks has joined #ruby
radic has quit [Ping timeout: 260 seconds]
niklasb has joined #ruby
darth_chatri has quit [Quit: Leaving.]
radic has joined #ruby
pen has quit [Remote host closed the connection]
RORgasm has joined #ruby
moura has joined #ruby
sevenseacat has quit [Remote host closed the connection]
moura has quit [Max SendQ exceeded]
Cisco_Walker_ has joined #ruby
RORgasm has quit [Ping timeout: 240 seconds]
Astral__ has quit [Read error: Connection reset by peer]
Astral_ has joined #ruby
yacks has joined #ruby
Astral__ has joined #ruby
troessner has quit [Ping timeout: 276 seconds]
troessner has joined #ruby
jarin has joined #ruby
ewnd9 has joined #ruby
d4rkstalk3r has quit [Ping timeout: 245 seconds]
Astralum has quit [Ping timeout: 241 seconds]
Astral_ has quit [Read error: Connection reset by peer]
ssvo has joined #ruby
Squarepy has quit [Quit: Leaving]
ssvo has quit [Ping timeout: 264 seconds]
Myrth has quit [Ping timeout: 256 seconds]
ananthakumaran1 has joined #ruby
dhruvasa1ar has joined #ruby
jmimi has left #ruby [#ruby]
s0ber has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
ananthakumaran has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby
dmiller_ has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
ismlages has quit [Ping timeout: 240 seconds]
darth_chatri has joined #ruby
nomenkun has quit [Remote host closed the connection]
TheFuzzball has joined #ruby
s0ber has quit [Ping timeout: 240 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
dmiller_ has quit [Ping timeout: 276 seconds]
mikecmpbll has joined #ruby
`p has quit [Read error: Connection reset by peer]
`p has joined #ruby
senayar_ has joined #ruby
senayar has quit [Read error: Connection reset by peer]
Zai00 has quit [Quit: Zai00]
k610 has joined #ruby
tonini has joined #ruby
icecandy has quit [Remote host closed the connection]
senayar has joined #ruby
Zolo has joined #ruby
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
yashshah has joined #ruby
neku has joined #ruby
Zai00 has joined #ruby
senayar has quit [Remote host closed the connection]
S0da has joined #ruby
senayar_ has quit [Read error: Connection reset by peer]
KevinSjoberg has quit [Ping timeout: 260 seconds]
senayar has joined #ruby
ffio has joined #ruby
eka has joined #ruby
crazy has joined #ruby
leonid__ has quit [Ping timeout: 248 seconds]
KevinSjoberg has joined #ruby
<crazy> wana upload multiple images
emergion has joined #ruby
byprdct has joined #ruby
scrollback has quit [Remote host closed the connection]
radic_ has joined #ruby
ewnd9 has quit [Ping timeout: 248 seconds]
fixl has joined #ruby
S0da has quit [Ping timeout: 240 seconds]
radic has quit [Ping timeout: 240 seconds]
S0da has joined #ruby
fermion has joined #ruby
gildo has quit [Ping timeout: 240 seconds]
stim has joined #ruby
jrhorn424 has quit [Quit: Textual IRC Client: www.textualapp.com]
Domon has quit [Remote host closed the connection]
luminous has joined #ruby
radic__ has joined #ruby
<luminous> hello, I have a ruby app running on 1.8, and I need to upgrade ruby to 1.9 to run the app with a new plugin. I would have thought this was easy as installing ruby1.9.3 (ubuntu) and then re-running bundle install.. but my old ruby 1.8.x is still 'active' - how do I tell bundler that it had 1.9.3 available and should reinstall all gems to use it?
emergion has quit [Quit: Computer has gone to sleep.]
ewnd9 has joined #ruby
radic_ has quit [Ping timeout: 248 seconds]
darth_chatri has quit [Quit: Leaving.]
vlad_sta_ has joined #ruby
yashshah has quit [Ping timeout: 245 seconds]
vlad_st__ has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
leonid__ has joined #ruby
Niteside0351 has quit [Ping timeout: 256 seconds]
osvico has joined #ruby
mneorr has joined #ruby
RyanHirsch has quit [Quit: Computer has gone to sleep.]
kevinykchan has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
S0da has quit [Remote host closed the connection]
vlad_sta_ has quit [Ping timeout: 246 seconds]
pr0ggie has joined #ruby
darth_chatri has joined #ruby
<bhaak> luminous: selecting which ruby version to run is outside of bundler's domain. i think it just takes the first executable it finds. it depends on your environemnt and how you have set it up but the solution can range from "setting up the paths manually" or "install a local ruby version" to "use a ruby version manager like rvm or rbenv" (most people will probably recommend the latter option)
alexwh has joined #ruby
ewnd9 has quit [Remote host closed the connection]
Squarepy has joined #ruby
cj3kim has quit [Ping timeout: 256 seconds]
Simone has joined #ruby
<luminous> ok, so I'll try to ensure the path/binaries are located properly to 1.9.3
<luminous> thanks bhaak
neku has quit [Read error: No route to host]
Hanmac has quit [Quit: Leaving.]
jp- has quit [Quit: OK, I believe you… but my tommy gun don't]
blarghmatey has joined #ruby
<r0bgl33s0n> luminous: bundle exec ruby <command>
Giorgio has joined #ruby
<crazy> hey all, i need to upload multiple images i'm using carrierwave gem but only one image is uploading,where to i change the code
deadalus has quit [Ping timeout: 246 seconds]
buibex_ has quit [Remote host closed the connection]
jibi has joined #ruby
<luminous> r0bgl33s0n: where "ruby" is... ?
buibex has joined #ruby
seich- has quit [Ping timeout: 240 seconds]
dEPy has joined #ruby
<r0bgl33s0n> luminous: that'll execute whichever ruby your project is bundled with
jbpros has quit [Quit: jbpros]
<luminous> r0bgl33s0n: I think it is just using the system's
vlad_st__ has quit [Remote host closed the connection]
blarghmatey has quit [Ping timeout: 260 seconds]
<r0bgl33s0n> like i said, it uses whichever ruby you are project is bundled with
pr0ggie has quit [Max SendQ exceeded]
justsee has left #ruby [#ruby]
pr0ggie has joined #ruby
codesoda has joined #ruby
mljsimone|away is now known as mljsimone
thepumpkin has joined #ruby
realDAB has joined #ruby
kung has quit [Quit: Bye!]
jasongoldstein has left #ruby [#ruby]
seich- has joined #ruby
tacos1de has quit [Ping timeout: 240 seconds]
monkegjinni has joined #ruby
deadalus has joined #ruby
realDAB has quit [Client Quit]
monkegji_ has joined #ruby
<Schmidt> luminous: if I remember correctly the ruby binary is just a symlink in ubuntu pointing to ruby1.8.7, you can change the symlink to point to your 1.9.3 one (you might have to do it for other ruby apps like gem aswell).
ewag has joined #ruby
tacos1de has joined #ruby
monkegjinni has quit [Ping timeout: 256 seconds]
ffio has quit [Quit: WeeChat 0.4.1]
jibi has quit [Ping timeout: 245 seconds]
radic_ has joined #ruby
Hanmac has joined #ruby
ffio has joined #ruby
allaire has joined #ruby
allaire has quit [Max SendQ exceeded]
thepumpkin has quit [Remote host closed the connection]
scrollback has joined #ruby
Notte has joined #ruby
radic__ has quit [Ping timeout: 256 seconds]
kofno has joined #ruby
Squarepy has quit [Quit: Leaving]
noocode has quit [Quit: leaving]
Neomex has quit [Quit: Neomex]
radic_ has quit [Ping timeout: 245 seconds]
radic_ has joined #ruby
wmoxam has joined #ruby
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
renderful has quit [Remote host closed the connection]
nomenkun has joined #ruby
fossgeek has quit [Ping timeout: 245 seconds]
eka has joined #ruby
jozefg has quit [Quit: jozefg]
allsystemsarego has joined #ruby
allsystemsarego has quit [Changing host]
allsystemsarego has joined #ruby
jibi has joined #ruby
realDAB has joined #ruby
icecandy has joined #ruby
nomenkun has quit [Ping timeout: 246 seconds]
braoru has joined #ruby
eka has quit [Client Quit]
icecandy has quit [Remote host closed the connection]
devoldmx3 has joined #ruby
monkegji_ has quit [Ping timeout: 245 seconds]
ldnunes has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
pr0ggie has quit [Ping timeout: 260 seconds]
wmoxam has quit [Ping timeout: 248 seconds]
eka has joined #ruby
dhruvasa1ar has quit [Ping timeout: 256 seconds]
thepumpkin has joined #ruby
vlad_starkov has joined #ruby
supp_ort has joined #ruby
<supp_ort> hi
bklane has joined #ruby
k610 has quit [Ping timeout: 248 seconds]
heidar has joined #ruby
yashshah has joined #ruby
Michae___ has joined #ruby
blackmesa has joined #ruby
gildo has joined #ruby
S0da has joined #ruby
radic__ has joined #ruby
jbpros has joined #ruby
radic_ has quit [Ping timeout: 257 seconds]
viszu has joined #ruby
wesside_ has joined #ruby
RORgasm has joined #ruby
TonyMergue1 has joined #ruby
wesside has quit [Read error: Connection reset by peer]
lkba has quit [Ping timeout: 240 seconds]
monkegjinni has joined #ruby
TonyMergue has quit [Ping timeout: 240 seconds]
S0da has quit [Ping timeout: 246 seconds]
TheDick has joined #ruby
realDAB has quit [Quit: realDAB]
Todd has joined #ruby
chase-work has joined #ruby
em0ral has joined #ruby
RORgasm has quit [Ping timeout: 256 seconds]
<em0ral> Hello
jonathanwallace has quit [Ping timeout: 245 seconds]
monkegji_ has joined #ruby
_serial_ has joined #ruby
Michae___ has quit [Remote host closed the connection]
<Todd> morning
GeneralKosh has joined #ruby
manutter has joined #ruby
cjsarette has quit [Ping timeout: 245 seconds]
cj3kim has joined #ruby
monkegjinni has quit [Ping timeout: 276 seconds]
osvico has quit [Ping timeout: 276 seconds]
Dekade has quit [Disconnected by services]
GeneralKosh is now known as Dekade
mark_locklear has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
sepp2k has joined #ruby
_serial_ has quit [Client Quit]
wallerdev has joined #ruby
sumark has quit [Remote host closed the connection]
wallerdev has quit [Client Quit]
sumark has joined #ruby
S0da has joined #ruby
k610 has joined #ruby
monkegji_ has quit [Ping timeout: 245 seconds]
TheDick_ has joined #ruby
nezumi has quit [Read error: Operation timed out]
sailias has joined #ruby
<crazy> how to increase the height of text_field_tag
machuga|away is now known as machuga
Simone has quit [Quit: Leaving...]
TheDick has quit [Ping timeout: 266 seconds]
samuel02 has joined #ruby
<apeiros> crazy: I assume you talk about #rubyonrails - styling of html elements is done via CSS
TheDick has joined #ruby
<apeiros> but a text_field_tag is always a single line high
thepumpkin has quit [Remote host closed the connection]
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<crazy> <@apeiros> ya single line but that is very thin and little bit scrolling has done
TheDick_ has quit [Ping timeout: 248 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> crazy: the plain nick is sufficient. no need for <> or @
<apeiros> as said, CSS is your friend then. i.e., not really ruby related.
subbyyy has joined #ruby
monkegjinni has joined #ruby
krainboltgreene has quit [Ping timeout: 240 seconds]
leonid__ has quit [Ping timeout: 264 seconds]
huoxito has joined #ruby
sailias has quit [Ping timeout: 276 seconds]
dmiller has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
monkegji_ has joined #ruby
mikecmpbll has joined #ruby
neku has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegji_ has quit [Read error: Connection reset by peer]
anonymuse has joined #ruby
monkegji_ has joined #ruby
stim has quit [Ping timeout: 240 seconds]
Mattix has joined #ruby
breakingthings has joined #ruby
razi has quit [Ping timeout: 248 seconds]
dawkirst has quit [Quit: Leaving]
thepumpkin has joined #ruby
dawkirst has joined #ruby
swordsmanz has joined #ruby
Kar- has joined #ruby
dmiller has quit [Remote host closed the connection]
codesoda has quit [Remote host closed the connection]
leonid__ has joined #ruby
devoldmx has joined #ruby
shaunbaker has quit [Remote host closed the connection]
Squarepy has joined #ruby
jp- has joined #ruby
pupperwares1 has quit [Quit: Leaving.]
devoldmx3 has quit [Ping timeout: 248 seconds]
cibs has quit [Quit: leaving]
<supp_ort> 35 m single, looking for long relation ship with ruby female developer
thibauts has quit [Ping timeout: 246 seconds]
s3m73x has quit [Remote host closed the connection]
<supp_ort> or perl
<tagrudev> {}
RORgasm has joined #ruby
carloslopes has joined #ruby
burlyscudd has joined #ruby
Maoko has joined #ruby
leonid__ has quit [Ping timeout: 260 seconds]
angusiguess has joined #ruby
Iszak has quit [Quit: Computer has gone to sleep.]
tk_ has joined #ruby
mmitchell has joined #ruby
dmiller has joined #ruby
kirun has joined #ruby
D4T has joined #ruby
n1x has quit [Ping timeout: 248 seconds]
jlast has joined #ruby
KevinSjoberg has joined #ruby
TheDick_ has joined #ruby
dmiller has quit [Remote host closed the connection]
mengu has quit [Read error: Connection reset by peer]
mengu has joined #ruby
pranny1 has quit [Quit: Leaving.]
blackmesa has quit [Ping timeout: 240 seconds]
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
TheDick has quit [Ping timeout: 276 seconds]
TheDick_ is now known as TheDick
anay has quit [Remote host closed the connection]
norm has joined #ruby
DeanH has joined #ruby
DeanH has quit [Max SendQ exceeded]
baordog has joined #ruby
yashshah has quit [Ping timeout: 276 seconds]
ravster has joined #ruby
norm has quit [Client Quit]
matti has joined #ruby
goodgame has quit [Quit: Quitte]
cha1tanya has quit [Ping timeout: 245 seconds]
leonid__ has joined #ruby
subbyyy has quit [Ping timeout: 264 seconds]
Davey has joined #ruby
viszu has quit [Quit: Leaving.]
jerius has joined #ruby
TheDick_ has joined #ruby
senayar_ has joined #ruby
senayar has quit [Read error: Connection reset by peer]
asobrasil has joined #ruby
TheDick has quit [Ping timeout: 264 seconds]
TheDick_ is now known as TheDick
devoldmx has quit [Ping timeout: 276 seconds]
m4rc has joined #ruby
darth_chatri has quit [Quit: Leaving.]
<m4rc> sup
s3m73x has joined #ruby
pupperwares has joined #ruby
lscott3 has joined #ruby
lscott3 has quit [Client Quit]
pupperwares has quit [Client Quit]
Todd has quit [Ping timeout: 256 seconds]
pupperwares has joined #ruby
devoldmx has joined #ruby
pupperwares has quit [Read error: Connection reset by peer]
kofno has quit [Remote host closed the connection]
devoldmx3 has joined #ruby
thams has joined #ruby
finges has quit [Quit: WeeChat 0.4.1]
pupperwares has joined #ruby
badquanta has quit [Ping timeout: 260 seconds]
pupperwares has quit [Read error: Connection reset by peer]
burlyscudd has quit [Quit: Leaving.]
wesside_ has quit [Quit: Computer has gone to sleep.]
kofno has joined #ruby
v0n has joined #ruby
pygospa has quit [Ping timeout: 246 seconds]
mercwithamouth has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
nlisgo has joined #ruby
devoldmx3 has quit [Ping timeout: 264 seconds]
em0ral has quit [Ping timeout: 256 seconds]
pygospa has joined #ruby
<nlisgo> what is the command to merge 2 literal hashs
ntus1017 has quit [Remote host closed the connection]
<nlisgo> ?
<nlisgo> with symbols for keys
<nlisgo> sorry, I'm new to ruby
Squarepy has quit [Ping timeout: 248 seconds]
Todd has joined #ruby
nomenkun has joined #ruby
devdazed has quit [Quit: Bye]
Iszak has joined #ruby
fredjean_ has joined #ruby
Iszak has quit [Client Quit]
cmarques has joined #ruby
fredjean_ has quit [Client Quit]
badelat has joined #ruby
fredjean has quit [Ping timeout: 264 seconds]
burlyscudd has joined #ruby
xargoon has quit [Ping timeout: 240 seconds]
DonRichie has quit [Quit: Verlassend]
codecop has quit [Remote host closed the connection]
nomenkun has quit [Remote host closed the connection]
jbpros has quit [Quit: jbpros]
shaunbaker has joined #ruby
sailias has joined #ruby
nomenkun has joined #ruby
tonini has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
xargoon has joined #ruby
chase-work has quit [Quit: Computer has gone to sleep.]
everming_ has joined #ruby
everming_ has left #ruby [#ruby]
pentameter has joined #ruby
axl_ has joined #ruby
badelat has quit [Read error: Connection timed out]
jbpros has joined #ruby
devoldmx has joined #ruby
badelat has joined #ruby
crazy has left #ruby [#ruby]
pentameter has quit [Remote host closed the connection]
wsterling has joined #ruby
pentameter has joined #ruby
obs has quit [Read error: Connection reset by peer]
s3m73x has quit [Remote host closed the connection]
obs has joined #ruby
tvw has quit []
dmiller has joined #ruby
TIJ has quit [Ping timeout: 245 seconds]
jonathanwallace has joined #ruby
<nlisgo> atmosx: I'll give it a go :)
RobW_ has joined #ruby
rickruby has quit [Remote host closed the connection]
devdazed has joined #ruby
tonini has joined #ruby
shaunbaker has quit [Remote host closed the connection]
neku has quit [Quit: Leaving...]
chrisja has joined #ruby
fernandoaleman has joined #ruby
burlyscudd has quit [Quit: Leaving.]
dmiller has quit [Ping timeout: 248 seconds]
ffio has quit [Quit: WeeChat 0.4.1]
mikecmpbll has quit [Quit: Computer has gone to sleep.]
freerobby has joined #ruby
badquanta has joined #ruby
burlyscudd has joined #ruby
anay has joined #ruby
m4rc has quit []
seo_ has joined #ruby
seo_ is now known as Guest81936
allaire has joined #ruby
jbpros has quit [Quit: jbpros]
denver has joined #ruby
jbpros has joined #ruby
yashshah has joined #ruby
shaunbaker has joined #ruby
realDAB has joined #ruby
n1x has joined #ruby
diabel232 has quit [Quit: Textual IRC Client: www.textualapp.com]
monkegji_ has quit [Ping timeout: 276 seconds]
sambao21 has joined #ruby
avril14th has quit [Excess Flood]
ffio has joined #ruby
platzhirsch has joined #ruby
<platzhirsch> Anyone knows a library in Ruby which implement things like value normalization?
jbpros has quit [Ping timeout: 264 seconds]
avril14th has joined #ruby
fridim_ has joined #ruby
dash__ has quit [Ping timeout: 256 seconds]
vlad_starkov has quit [Remote host closed the connection]
denver has quit [Remote host closed the connection]
ananthakumaran1 has quit [Quit: Leaving.]
razi has joined #ruby
thibauts has joined #ruby
dash_ has joined #ruby
n1x has quit [Max SendQ exceeded]
chase-work has joined #ruby
TheDick_ has joined #ruby
intuxicated has joined #ruby
burz has joined #ruby
mikecmpbll has joined #ruby
elux has joined #ruby
jonkri has joined #ruby
jonkri has joined #ruby
TheDick has quit [Ping timeout: 256 seconds]
TheDick_ is now known as TheDick
waj has joined #ruby
kpshek has joined #ruby
asteve has joined #ruby
monkegjinni has joined #ruby
fridim_ has quit [Ping timeout: 276 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
monkegji_ has joined #ruby
ffio has quit [Quit: WeeChat 0.4.1]
neku has joined #ruby
niklasb has quit [Ping timeout: 245 seconds]
wmoxam has joined #ruby
razi has quit [Quit: Leaving.]
TIJ has joined #ruby
nettoweb has joined #ruby
realDAB has quit [Quit: realDAB]
heftig has quit [Ping timeout: 252 seconds]
braoru has quit [Quit: Leaving]
jnoob22 has joined #ruby
sayan has quit [Ping timeout: 245 seconds]
heftig has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
cj3kim has joined #ruby
intuxicated has quit [Read error: No route to host]
realDAB has joined #ruby
sambao21 has joined #ruby
TheDick_ has joined #ruby
TheDick has quit [Ping timeout: 246 seconds]
TheDick_ is now known as TheDick
pco has joined #ruby
cj3kim has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
<pco> Hi, I have an array that essentially looks like this: [key1, value1,
<pco> key2, value2] [16:14]
<pco>
troessner has quit [Ping timeout: 245 seconds]
<pco> I want to run a function on every value and then create a hash out of it
mary5030 has joined #ruby
<pco> So far I have Hash[aArray.map{|k,v| [k, v.to_s]}] is that okay?
<pco> Can I really map over an arbitrary number of array elements?
<bnagy> Hash[] will turn arrays with even numbers of elems into a Hash
buzzybron1 has joined #ruby
theRoUS has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<pco> bnagy: Yes. but will map{|k,v|...} really iterate over the array two items at a time?
<bnagy> no
buzzybron has quit [Ping timeout: 245 seconds]
wsterling has quit [Remote host closed the connection]
denver has joined #ruby
<bnagy> >> Hash[[1,2,3,4].each_cons(2).map {|a,b| [a,b.to_s]}]
<eval-in> bnagy => {1=>"2", 2=>"3", 3=>"4"} (https://eval.in/37504)
<bnagy> but it's getting stupid at that point
<bnagy> ugh that's also wrong
RORgasm_ has joined #ruby
RORgasm has quit [Read error: Connection reset by peer]
<bnagy> each_slice, not cons
<pco> x.each_slice(2).map{|k,v| [k,v]} should work
neku has quit [Quit: Linkinus - http://linkinus.com]
<bnagy> well if you're not doing to to_s then it's a hugely wasteful construct
<pco> well, sure, just to prove my point
<bnagy> >> Hash[*[1,2,3,4]]
<eval-in> bnagy => {1=>2, 3=>4} (https://eval.in/37505)
DanKnox_away is now known as DanKnox
Zeeo has joined #ruby
<pco> >> Hash[[1, 2, 3, 4, 5, 6].each_slice(2).map{|k,v| [k,v.to_s]}]
<eval-in> pco => {1=>"2", 3=>"4", 5=>"6"} (https://eval.in/37506)
<pco> yaay!
<pco> So is this a non-horrible way of solving the problem?
<bnagy> 50-50
<pco> why? :-)
<bnagy> I don't really like it - in real code I think I'd just create a hash and then process the array
burlyscudd has quit [Quit: Leaving.]
<bnagy> h={};a.each_slice(2) {|a,b| ...
andikr has quit [Remote host closed the connection]
<pco> I would like to keep the amount of state to a minimum if possible
MrThePlague has joined #ruby
MrThePlague has joined #ruby
<bnagy> lol
tonini has quit [Remote host closed the connection]
Cyrus has quit [Quit: Cyrus.sleep()]
tobyo has joined #ruby
mansi has joined #ruby
troessner has joined #ruby
ffio has joined #ruby
mengu has quit [Ping timeout: 240 seconds]
<pco> what's funny about that?
<pco> Hash[*aArray].each{|k, v| hash2[k] = v.to_s}
<bnagy> what do you think you're winning by 'minimising state'?
<pco> is also possible but that means modifying a hash by iterating over it :/
<bnagy> no, that second one is even worse
cha1tanya has joined #ruby
<pco> minimizing sources of error
<bnagy> yeah no
<bnagy> you get errors by writing overly complex one liners
<bnagy> plus, without benching it, you're creating two intermediate enumerators, and only then turning it into the final hash
<joshu_> hi anyone built a REST API using just ruby, rack?
<bnagy> whereas just using each_slice is lazy
tk_ has quit [Quit: ばいばい]
<bnagy> well potentially lazy, anyway
kobain has joined #ruby
<bnagy> and a lot easier to read
<pco> bnagy: aArray.each_slice(2){|k, v| hash2[k] = v.to_s} is more readable, you're right
<bnagy> aArray is a non-ruby variable name, btw
<Notte> pco: Hash[a.each_slice(2).to_a]
* bnagy rolls his eyes
<Notte> ahah
sailias has quit [Ping timeout: 248 seconds]
<pco> Notte: yeah, we had that already, it becomes unreadable quite quickly
<pco> Hash[aArray.each_slice(2).map{|k,v| [k, v.to_s]}]
Michael_ has joined #ruby
<pco> bnagy: I know about the variable names. it's company policy. don't ask
TIJ has quit [Quit: Konversation terminated!]
waj has left #ruby [#ruby]
denver has quit [Remote host closed the connection]
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
<Notte> first letter indentifies the type?
Zolo has quit [Remote host closed the connection]
<pco> no, it's hungarian(?) notation, a means argument
nbouscal has joined #ruby
mvangala_ has quit [Remote host closed the connection]
monkegji_ has quit [Remote host closed the connection]
<bnagy> I think now is a good time to go to bed
<pco> thanks. good night!
s3m73x has joined #ruby
Guest81936 has quit [Remote host closed the connection]
nbouscal has quit [Client Quit]
<dawkirst> Is there an easy way to interact with a command line application in Ruby (with both stdin and stdout)?
krainboltgreene has joined #ruby
lunarjar has quit [Quit: Bye]
lunarjar has joined #ruby
realDAB has quit [Quit: realDAB]
sayan has joined #ruby
nettoweb has quit [Quit: nettoweb]
mvangala has joined #ruby
JMcAfreak has joined #ruby
devoldmx has quit [Ping timeout: 248 seconds]
ffio has quit [Quit: WeeChat 0.4.1]
alex__c2022 has joined #ruby
<dawkirst> pco, ty
realDAB has joined #ruby
[narcan] has quit [Quit: Linkinus - http://linkinus.com]
<pco> welcome, I don't think thre is an eays way, you just need to see which method fits your needs
gener1c has joined #ruby
dhruvasagar has joined #ruby
sailias has joined #ruby
<pco> Notte: So you think the one-liner is more elegant?
jprovazn has quit [Quit: Leaving]
burlyscudd has joined #ruby
robscomputer has joined #ruby
<Notte> dawkirst: there's an opscode's gem for that but i can't remember the name.
pedestrian has quit [Quit: WeeChat 0.4.1]
buzzybron1 has quit [Quit: Leaving.]
ffio has joined #ruby
robscomputer has quit [Remote host closed the connection]
<Notte> pco: it's a matter of opinion i think
mansi has quit [Read error: Connection reset by peer]
<Notte> but yes
mansi has joined #ruby
arya_ has joined #ruby
jprovazn has joined #ruby
sailias has quit [Ping timeout: 256 seconds]
nomenkun has quit [Remote host closed the connection]
tagrudev has quit [Remote host closed the connection]
<pco> Thanks. That makes me feel better about the hour I spent building it ;)
robscomputer has joined #ruby
nlisgo has quit [Quit: nlisgo]
aganov has quit [Quit: aganov]
senayar has joined #ruby
realDAB has quit [Quit: realDAB]
senayar_ has quit [Ping timeout: 245 seconds]
splittingred has joined #ruby
anay has quit [Remote host closed the connection]
tkuchiki has joined #ruby
burlyscudd has quit [Ping timeout: 264 seconds]
Solnse has joined #ruby
Mattix has quit [Quit: Leaving]
DeanH has joined #ruby
Uranio has joined #ruby
Todd has quit [Ping timeout: 246 seconds]
carloslopes has quit [Remote host closed the connection]
bhaak has quit [Ping timeout: 256 seconds]
jonathanwallace has quit [Quit: WeeChat 0.4.0]
DanKnox is now known as DanKnox_away
Squarepy has joined #ruby
jonathanwallace has joined #ruby
enebo has joined #ruby
bhaak has joined #ruby
burlyscudd has joined #ruby
tkuchiki has quit [Ping timeout: 276 seconds]
thams has quit [Quit: thams]
buibex has quit [Remote host closed the connection]
carloslopes has joined #ruby
devoldmx has joined #ruby
cj3kim has joined #ruby
ffranz has joined #ruby
_maes_ has joined #ruby
yashshah has quit [Ping timeout: 261 seconds]
bklane has quit [Ping timeout: 245 seconds]
DanKnox_away is now known as DanKnox
<Zeeo> hey guys, is there any reasonable explaination for not having any output when running rspec?
tatsuya_o has quit [Remote host closed the connection]
Todd has joined #ruby
Michae___ has joined #ruby
sailias has joined #ruby
chrishough has joined #ruby
realDAB has joined #ruby
S0da has quit [Read error: Connection reset by peer]
alup has quit [Quit: Leaving]
ssvo has joined #ruby
cj3kim has quit [Ping timeout: 276 seconds]
bklane has joined #ruby
krainboltgreene has quit [Ping timeout: 276 seconds]
senayar has quit [Remote host closed the connection]
brennanMKE has joined #ruby
senayar has joined #ruby
Michael_ has quit [Ping timeout: 245 seconds]
brbcoding has joined #ruby
angusiguess has quit [Ping timeout: 261 seconds]
threesome has quit [Ping timeout: 245 seconds]
adambeynon has joined #ruby
anay has joined #ruby
rhys has joined #ruby
GeissT has quit [Quit: MillBroChat AdIRC User]
lnemeth has joined #ruby
ssvo has quit [Ping timeout: 246 seconds]
denver has joined #ruby
axeman- has quit [Remote host closed the connection]
RobW_ has quit [Quit: RobW_]
cha1tanya has quit [Ping timeout: 248 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
shaunbaker has quit [Remote host closed the connection]
tylersmith has quit [Write error: Broken pipe]
ffranz has quit [Ping timeout: 264 seconds]
TheDick_ has joined #ruby
cortexman has joined #ruby
cortexman has quit [Max SendQ exceeded]
sambao21 has joined #ruby
cortexman has joined #ruby
cortexman has quit [Max SendQ exceeded]
Michae___ has quit [Remote host closed the connection]
TheDick has quit [Ping timeout: 248 seconds]
TheDick_ is now known as TheDick
rehat has joined #ruby
elux has quit [Quit: Bye!]
rehat has left #ruby [#ruby]
JohnBat26 has quit [Ping timeout: 264 seconds]
cortexman has joined #ruby
sambao21 has quit [Client Quit]
wsterling has joined #ruby
baroquebobcat has joined #ruby
lnemeth has quit [Quit: Leaving]
BizarreCake has joined #ruby
zastern has joined #ruby
D4T has quit [Quit: Textual IRC Client: www.textualapp.com]
ckrailo has joined #ruby
Zeeraw has quit [Quit: Computer has gone to sleep.]
carloslopes has quit [Remote host closed the connection]
cha1tanya has joined #ruby
ffio has quit [Quit: WeeChat 0.4.1]
wsterling has quit [Ping timeout: 245 seconds]
Mon_Ouie has joined #ruby
TheDick_ has joined #ruby
noop has quit [Ping timeout: 260 seconds]
noop has joined #ruby
sambao21 has joined #ruby
fredjean has joined #ruby
TheDick_ is now known as TheDick
TheDick has quit [Ping timeout: 256 seconds]
ssvo has joined #ruby
aspiers has joined #ruby
ffio has joined #ruby
bamdad has joined #ruby
pr0ggie has joined #ruby
burlyscudd has quit [Quit: Leaving.]
ffranz has joined #ruby
codecop has joined #ruby
shouya has joined #ruby
realDAB has quit [Quit: realDAB]
shouya1 has quit [Ping timeout: 246 seconds]
stormbytes has joined #ruby
cortexman has quit [Quit: Leaving.]
sambao21 has quit [Quit: Computer has gone to sleep.]
BrianJ has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
relix has joined #ruby
yan_ has joined #ruby
realDAB has joined #ruby
ffio has quit [Quit: WeeChat 0.4.1]
ffio has joined #ruby
Michael_ has joined #ruby
bklane has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 240 seconds]
nbouscal has joined #ruby
jprovazn has quit [Quit: Leaving]
jrendell has quit [Quit: jrendell]
geggam has joined #ruby
leonid__ has quit [Ping timeout: 248 seconds]
dhruvasagar has quit [Ping timeout: 245 seconds]
acrussell has joined #ruby
Eiam has joined #ruby
ffio has quit [Client Quit]
ewnd9 has joined #ruby
r0bgl33s0n has quit [Quit: WeeChat 0.3.8]
RobW_ has joined #ruby
bradhe has joined #ruby
lindenle has joined #ruby
platzhirsch has left #ruby [#ruby]
burlyscudd has joined #ruby
trose has joined #ruby
<Maoko> How would I include a gem in my ruby app?
<Maoko> Tried doing these two lines: require 'rubygems' and require 'curb' and it fails upon loadin curb.
nomenkun has joined #ruby
acrussell has left #ruby [#ruby]
bradhe has quit [Ping timeout: 245 seconds]
tylersmith has joined #ruby
chase-work has quit [Quit: Textual IRC Client: www.textualapp.com]
cortexman has joined #ruby
cortexman has quit [Max SendQ exceeded]
cortexman has joined #ruby
cortexman has left #ruby [#ruby]
<stormbytes> what kind of app Maoko?
<stormbytes> and how are you running it?
eregon has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
eregon has joined #ruby
mikecmpbll has joined #ruby
<waxjar> have you installed the gem with gem install first Maoko
ffio has joined #ruby
badelat has quit [Remote host closed the connection]
eregon has quit [Remote host closed the connection]
sarbull has quit [Remote host closed the connection]
burlyscudd1 has joined #ruby
burlyscudd has quit [Read error: Connection reset by peer]
<Maoko> just something generate from bundle. Running a module from it via irb and yup, gem is installed and declared in the gemfile.lock
jefflyne has joined #ruby
jefflyne has quit [Max SendQ exceeded]
<Maoko> Mmm. Would it be better to upload it on github and show you the code?
jefflyne has joined #ruby
eregon has joined #ruby
<waxjar> the exact error message would be more helpful i think
bklane has joined #ruby
<Maoko> 2.0.0-p195 :001 > require './adblock_parser/lib/adblock_parser/receive_hosts.rb'
<Maoko> LoadError: cannot load such file -- curb
<Maoko> That's it
sambao21 has quit [Quit: Computer has gone to sleep.]
ffio_ has joined #ruby
zchrykng has joined #ruby
<Maoko> The whole reason behind it is to parse hosts, merge them and put into etc/hosts
sambao21 has joined #ruby
cmarques has quit [Ping timeout: 261 seconds]
sethetter has joined #ruby
k610 has quit [Quit: Leaving]
<sethetter> Is there a flag I can pass when compiling/configuring ruby to set what compiler on my system to use?
ffio has quit [Ping timeout: 276 seconds]
schickung has quit [Quit: schickung]
<Mon_Ouie> ./configure CC=your-c-compiler?
vlad_starkov has joined #ruby
Todd has quit [Ping timeout: 240 seconds]
<stormbytes> are you running the app via bundle exec?
<Maoko> me?
<stormbytes> yea
<Maoko> Not yet, just include the module directly via irb
<sethetter> Mon_Ouie: thanks
<stormbytes> hmm
adman65 has joined #ruby
<trose> hey, i'm looking for the most active repo for the ruby oauth library
<stormbytes> well i'm new at this but had a similar problem the other day, runnign an app via bundle exec
<stormbytes> so thought you might be having the same issue
<Maoko> Nope, unfortunately not.
DanKnox is now known as DanKnox_away
<Maoko> Will do a bit lurking then
<adman65> anyone with have experience with Eventmachine? I'm trying to wrap calls to some class in EM.run but it's blowing up when it get's nested
AntelopeSalad_ has joined #ruby
JZTech101 has joined #ruby
zigomir__ has joined #ruby
<adman65> I'm trying to connect parts of my app to AMQP, but of course it doesn't run inside an event loop, so i have stuff like def publish ; EM.run { xxxx } end which works fine until to things try to publish at the same time
AntelopeSalad has quit [Read error: Connection reset by peer]
Voodoofish430 has joined #ruby
angusiguess has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
gyre008 has joined #ruby
sambao21 has joined #ruby
vlad_starkov has quit [Ping timeout: 276 seconds]
carloslopes has joined #ruby
RichardBaker has joined #ruby
Zeeraw has joined #ruby
Todd has joined #ruby
zphobic has quit [Read error: Operation timed out]
realDAB has quit [Quit: realDAB]
gyre007 has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
kevinykchan has joined #ruby
l33_ has joined #ruby
wsterling has joined #ruby
mneorr_ has joined #ruby
DestinyAwaits has joined #ruby
<Maoko> Aha! Got it. This could be because I have a Gemfile at the root path not within subdir where my module is.
Desert_eagle has quit [Quit: Leaving]
<Maoko> However can I just nest gemfile from the main for using within modules?
tylersmith has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
Maoko has quit [Read error: Connection reset by peer]
elux has joined #ruby
nlisgo has joined #ruby
mneorr has quit [Ping timeout: 240 seconds]
zphobic has joined #ruby
rbennacer has joined #ruby
kpshek has quit []
dhruvasagar has joined #ruby
<stormbytes> over my head man
Michael_ has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
djbkd has joined #ruby
senayar_ has joined #ruby
Michael_ has joined #ruby
DeanH has quit [Read error: Connection reset by peer]
senayar has quit [Ping timeout: 246 seconds]
ffio_ has quit [Quit: WeeChat 0.4.1]
rsahae has joined #ruby
manutter has quit [Read error: Connection reset by peer]
yashshah has joined #ruby
sleetdrop has joined #ruby
cj3kim has quit [Ping timeout: 240 seconds]
S0da has joined #ruby
nomenkun has quit [Remote host closed the connection]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
burz has quit [Remote host closed the connection]
realDAB has joined #ruby
tatsuya_o has joined #ruby
supp_ort has quit [Quit: Leaving]
bigoldrock has joined #ruby
Warlock has joined #ruby
thams has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
miskander has joined #ruby
blackmesa has joined #ruby
Coffers has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
dhruvasagar has quit [Ping timeout: 264 seconds]
smathieu has joined #ruby
Spami has quit [Quit: Leaving]
RORgasm_ has quit [Read error: Connection reset by peer]
RORgasm has joined #ruby
ybart has joined #ruby
ephemerian has quit [Quit: Leaving.]
Al_ has joined #ruby
JZTech101 has quit [Ping timeout: 256 seconds]
manutter has joined #ruby
ffio has joined #ruby
chrishough has quit [Quit: chrishough]
Spami has joined #ruby
maxmanders has quit [Ping timeout: 276 seconds]
guiguidoc has quit [Ping timeout: 276 seconds]
ferdev has quit [Quit: ferdev]
Appineer has joined #ruby
ffio has quit [Client Quit]
Appineer has left #ruby [#ruby]
dmiller has joined #ruby
blitz has joined #ruby
maxmanders has joined #ruby
bradhe has quit [Remote host closed the connection]
Zeeraw has quit [Quit: Computer has gone to sleep.]
bradhe has joined #ruby
radic__ has quit [Ping timeout: 240 seconds]
bradhe has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
burlyscudd has joined #ruby
burlyscudd1 has quit [Read error: Connection reset by peer]
mansi_ has joined #ruby
mansi has quit [Read error: Connection reset by peer]
dmiller has quit [Ping timeout: 240 seconds]
mansi_ has quit [Remote host closed the connection]
zeade has joined #ruby
mansi has joined #ruby
Roa has joined #ruby
Roa has quit [Client Quit]
JohnBat26 has joined #ruby
Roa has joined #ruby
Fire-Dragon-DoL has joined #ruby
Roa is now known as Roa
lnormous has joined #ruby
viszu has joined #ruby
g0bl1n has joined #ruby
realDAB has quit [Quit: realDAB]
maxmanders has quit [Quit: Computer has gone to sleep.]
stkowski has joined #ruby
nettoweb has joined #ruby
dash_ has quit [Ping timeout: 248 seconds]
yan_ has left #ruby [#ruby]
angusiguess has quit [Ping timeout: 256 seconds]
Squarepy has quit [Quit: Leaving]
RobW_ has quit [Quit: RobW_]
mansi has quit [Ping timeout: 276 seconds]
Iszak has joined #ruby
axeman- has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Ry0_ has joined #ruby
dash_ has joined #ruby
ffio has joined #ruby
zmike123 has joined #ruby
inimit has joined #ruby
ferdev has joined #ruby
iliketurtles has joined #ruby
havenwood has joined #ruby
burlyscudd has quit [Quit: Leaving.]
alex__c2022 has quit [Quit: alex__c2022]
nlisgo has left #ruby [#ruby]
zz_jinie is now known as jinie
tatsuya_o has quit [Remote host closed the connection]
angusiguess has joined #ruby
xardas has joined #ruby
xardas has quit [Changing host]
xardas has joined #ruby
avril14th has quit [Remote host closed the connection]
Notte has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
senayar_ has quit [Remote host closed the connection]
m8 has joined #ruby
JZTech101 has joined #ruby
allaire has quit [Quit: allaire]
cmarques has joined #ruby
ybart has quit [Quit: ybart]
nomenkun has joined #ruby
ultimoo has joined #ruby
Mattix has joined #ruby
rupee has joined #ruby
c0rn has joined #ruby
moos3 has quit [Ping timeout: 240 seconds]
sepp2k has quit [Quit: Leaving.]
twoism has joined #ruby
TheDick_ has joined #ruby
io_syl has joined #ruby
fernandoaleman has quit [Quit: Leaving.]
klaut has quit [Remote host closed the connection]
sailias has quit [Read error: Connection reset by peer]
sailias has joined #ruby
allaire has joined #ruby
TheDick_ is now known as TheDick
iliketurtles has quit [Quit: zzzzz…..]
mansi has joined #ruby
vlad_starkov has joined #ruby
sleetdrop has quit [Quit: Computer has gone to sleep.]
Zeeraw has joined #ruby
nomenkun has quit [Ping timeout: 246 seconds]
mahmoudimus has joined #ruby
brian_eno has joined #ruby
bamdad has quit [Quit: bamdad]
DanKnox_away is now known as DanKnox
smathieu_ has joined #ruby
huoxito has quit [Quit: Leaving]
miskander has quit [Quit: miskander]
troessner has quit [Quit: Leaving]
rgoodwin has left #ruby ["Textual IRC Client: www.textualapp.com"]
mercwithamouth has quit [Ping timeout: 245 seconds]
Kruppe has joined #ruby
DanKnox is now known as DanKnox_away
smathieu has quit [Ping timeout: 246 seconds]
ericmathison has joined #ruby
DanKnox_away is now known as DanKnox
jrendell has joined #ruby
Iszak has quit [Quit: Textual IRC Client: www.textualapp.com]
vlad_starkov has quit [Ping timeout: 276 seconds]
marcdel has joined #ruby
stormbytes has quit [Quit: Linkinus - http://linkinus.com]
passcod has joined #ruby
spider-mario has joined #ruby
Kruppe has quit [Read error: Operation timed out]
trepidaciousMBR has quit [Quit: trepidaciousMBR]
Al_ has quit [Quit: Al_]
krz has joined #ruby
krz has joined #ruby
krz has quit [Changing host]
michaeldeol has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
lebek has joined #ruby
DestinyAwaits has quit [Quit: Leaving]
rsahae has quit [Quit: rsahae]
Giorgio has quit [Ping timeout: 246 seconds]
Giorgio has joined #ruby
tylersmith has joined #ruby
radic has joined #ruby
Zai00 has quit [Quit: Zai00]
ozzloy has quit [Quit: leaving]
rsahae has joined #ruby
banghouse2 has joined #ruby
atyz has joined #ruby
smathieu has joined #ruby
jonathanwallace has joined #ruby
rsahae has quit [Client Quit]
lebek has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rodacato has joined #ruby
Ry0_ has quit [Remote host closed the connection]
sambao21 has joined #ruby
raz has joined #ruby
banghouse2 is now known as banghouse
Ry0_ has joined #ruby
ewnd9 has quit [Remote host closed the connection]
smathieu_ has quit [Ping timeout: 276 seconds]
blaxter has quit [Ping timeout: 264 seconds]
freerobby has quit [Quit: Leaving.]
moos3 has joined #ruby
freerobby has joined #ruby
<raz> hrmpf
<raz> String === String is false
<raz> how do i compare two classes in a 'case' block? (which uses === for the test)
<raz> i.e. case self; when String ... (where self would be the String-class, not an instance of String)
c0rn has quit [Ping timeout: 246 seconds]
tommyvyo has joined #ruby
tatsuya_o has joined #ruby
ozzloy has joined #ruby
pedestrian has joined #ruby
mmitchell has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
mercwithamouth has joined #ruby
alex__c2022 has joined #ruby
x1337807x has joined #ruby
trose has left #ruby [#ruby]
lkba has joined #ruby
KevinSjoberg has joined #ruby
c0rn has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
zeropx has joined #ruby
dankest has joined #ruby
<waxjar> raz: you can give it an object and check for type with when.
<waxjar> case "test"; when String then "hi" end
TheDick_ has joined #ruby
rodacato has quit []
tbrock has joined #ruby
rodacato has joined #ruby
iliketurtles has joined #ruby
buchowski has joined #ruby
juan8a has joined #ruby
KevinSjoberg has quit [Client Quit]
interactionjaxsn has quit [Remote host closed the connection]
headius has joined #ruby
interactionjaxsn has joined #ruby
TheDick has quit [Ping timeout: 240 seconds]
TheDick_ is now known as TheDick
juan8a has quit [Client Quit]
mercwithamouth has quit [Ping timeout: 256 seconds]
jonkri has quit [Quit: jonkri]
tatsuya_o has quit [Remote host closed the connection]
bricker has joined #ruby
mary5030 has quit [Remote host closed the connection]
interactionjaxsn has quit [Ping timeout: 240 seconds]
jchysk has joined #ruby
anderson has quit [Ping timeout: 256 seconds]
anay has quit [Remote host closed the connection]
felixjet_ has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
marr has quit [Ping timeout: 246 seconds]
cj3kim has joined #ruby
Synthead has joined #ruby
robscomputer has quit [Remote host closed the connection]
robscomputer has joined #ruby
fernandoaleman has joined #ruby
S0da has quit [Read error: Connection reset by peer]
RobW_ has joined #ruby
`p has quit [Remote host closed the connection]
burlyscudd has joined #ruby
cj3kim has quit [Ping timeout: 246 seconds]
Giorgio has quit [Ping timeout: 256 seconds]
alvaro_o has joined #ruby
burlyscudd has quit [Ping timeout: 240 seconds]
Synthead has quit [Read error: Connection reset by peer]
Ry0_ has quit [Remote host closed the connection]
ffio has quit [Quit: WeeChat 0.4.1]
Todd has quit [Ping timeout: 276 seconds]
kenneth has joined #ruby
Notte has joined #ruby
monban_ is now known as monban
Todd has joined #ruby
<monban> I'm having a heck of a time with encoding in Ruby 2.0
Synthead has joined #ruby
gildo has quit [Ping timeout: 248 seconds]
<monban> I have a string coming from an external source (windows registry) that is coming in as utf-8, but I know it's not utf-8. Ruby doesn't complain when I do .encode('utf-8') on it, but when I try to run to_ymal on it, yaml complains (correctly) that it has invalid character sequence
interact_ has joined #ruby
saarinen has joined #ruby
TheDick_ has joined #ruby
<monban> how do I force Ruby to re-encode it as utf8? I am happy to throw away the invalide characters (using invalid: :replace, undef:
<monban> :replace)
<Hanmac> monban: there is also "force_encoding"
<monban> well yes, but that basically just changes the encoding stored in the sting and doesn't touch the contents
anderson has joined #ruby
<monban> I really want the parser to run on it, see the invalid characters, and toss them out
rbennacer has left #ruby ["Leaving"]
eldariof has joined #ruby
<monban> it's almost as if Ruby doesn't notice that there are invalid character sequences, but yaml does
sailias has quit [Ping timeout: 276 seconds]
TheDick has quit [Ping timeout: 240 seconds]
TheDick_ is now known as TheDick
jkline has joined #ruby
arietis has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Gate_ is now known as Gate
g0bl1n has quit [Ping timeout: 256 seconds]
mercwithamouth has joined #ruby
digitalcake has joined #ruby
noop has quit [Ping timeout: 246 seconds]
radic has quit [Ping timeout: 240 seconds]
Zolo has joined #ruby
tonini has joined #ruby
theRoUS has quit [Ping timeout: 256 seconds]
radic has joined #ruby
Ry0_ has joined #ruby
goshakkk has joined #ruby
brianpWins has joined #ruby
gildo has joined #ruby
mmitchell has joined #ruby
smathieu has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
sailias has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
iliketurtles has joined #ruby
Dreamer3 has quit [Ping timeout: 240 seconds]
TheDick_ has joined #ruby
smathieu has joined #ruby
TheDick has quit [Read error: Connection reset by peer]
obs has quit [Quit: Konversation terminated!]
TheDick has joined #ruby
workmad3 has joined #ruby
bklane has quit [Remote host closed the connection]
marcin_m has joined #ruby
Dreamer3 has joined #ruby
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
saarinen has joined #ruby
pitzips has joined #ruby
<marcin_m> Guys someone try to compile vim with ruby 2.0 ?
kevinykchan has quit [Quit: Computer has gone to sleep.]
TheDick_ has quit [Ping timeout: 240 seconds]
axeman- has quit [Remote host closed the connection]
<end_guy> no
TheDick_ has joined #ruby
ToApolytoXaos has joined #ruby
angusigu1ss has joined #ruby
kobain has quit [Ping timeout: 264 seconds]
<marcin_m> Thats bad cause I cannot compile vim with ruby 2.0. What is the problem with 2.0 ?
angusiguess has quit [Ping timeout: 240 seconds]
TheDick has quit [Ping timeout: 252 seconds]
TheDick_ is now known as TheDick
jonahR has joined #ruby
Ry0_ has quit [Remote host closed the connection]
jblack has joined #ruby
<digitalcake> I'm having an issue with param_name and kaminari https://gist.github.com/digitalcake/b0f124159f99db7ea27e
<havenwood> marcin_m: What does Ruby have to do with compiling vim?
<digitalcake> basicly I'm trying to pass an object to param_name like this page_param: "active[page]"
<digitalcake> which kinda works
<marcin_m> havenwood: nothing, I know but I was thinking someone of you guys had the same problem
<digitalcake> it works initially but does not work if your passing a param
theRoUS has joined #ruby
bklane has joined #ruby
<havenwood> marcin_m: building yourself or using a package manager?
intuxicated has joined #ruby
<marcin_m> myself
TheDick_ has joined #ruby
<marcin_m> cause from package is only 1.9.2 or 1.8
Spami has joined #ruby
Spami has joined #ruby
Ry0_ has joined #ruby
Evixion has quit [Read error: Connection reset by peer]
TheDick has quit [Ping timeout: 240 seconds]
TheDick__ has joined #ruby
TheDick_ has quit [Ping timeout: 256 seconds]
Evixion has joined #ruby
echevemaster has quit [Quit: Leaving]
neonlex has joined #ruby
rodacato has quit [Remote host closed the connection]
invsblduck has quit [Changing host]
invsblduck has joined #ruby
robscomputer has quit [Ping timeout: 264 seconds]
kpshek has joined #ruby
<havenwood> marcin_m: hrm, i dunno
roadt__ has quit [Ping timeout: 256 seconds]
rsahae has joined #ruby
sideshowcoder_ has joined #ruby
echevemaster has joined #ruby
rsahae has quit [Client Quit]
rsahae has joined #ruby
neonlex has quit [Ping timeout: 248 seconds]
jonathanwallace1 has joined #ruby
<havenwood> marcin_m: I can't test it right now, cause I'm on a Mavericks system and can't build it for other reasons. :P
advorak has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Spami has quit [Quit: This computer has gone to sleep]
devoldmx3 has joined #ruby
x1337807x has joined #ruby
<marcin_m> Shit :)
jonathanwallace has quit [Ping timeout: 256 seconds]
Vivekananda has joined #ruby
<advorak> Is there a ruby gem for grabbing screenshots (preferably of a particular area of the screen) and spitting it out to a file object? (I'm only turning up information on taking screenshots of websites)
threesome has joined #ruby
vlad_starkov has joined #ruby
<havenwood> advorak: Do you need it to work cross-platform, or targeting a specific platform?
jonathanwallace2 has joined #ruby
<marcin_m> havenwood: but I didnt find any useful links that someone tried to compile vim with 2.0, that strange
<advorak> havenwood: sorry, Linux. I'm running this within a vnc instance.
<havenwood> advorak: which distro?
jonathanwallace1 has quit [Ping timeout: 240 seconds]
<advorak> havenwood: currently LinuxMint. I'd ideally like this to work on any dist ..
devoldmx has quit [Ping timeout: 256 seconds]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> advorak: ah, kk - hmm
robscomputer has joined #ruby
<marcin_m> yes but it is from march, now we have July. I think it is already patched
mark_locklear has quit [Ping timeout: 246 seconds]
<havenwood> marcin_m: yeah, may be other bugs lingering, dunno
<marcin_m> havenwood: anyway thanks for interesting
Appineer has joined #ruby
yashshah has quit [Ping timeout: 240 seconds]
cha1tanya has quit [Ping timeout: 240 seconds]
ffio has joined #ruby
Appineer has left #ruby [#ruby]
gchristensen has joined #ruby
Mattix has quit [Quit: Leaving]
maxmanders has joined #ruby
Guest2009 is now known as yebyen
marcin_m has left #ruby [#ruby]
<gchristensen> Hi, using rest-client, is there a way to set a before-execution-hook to a local object, and not to the global rest-client?
diabel232 has joined #ruby
burlyscudd has joined #ruby
bklane has quit [Remote host closed the connection]
rsahae has quit [Quit: rsahae]
rezzack has joined #ruby
michaeldeol has quit [Remote host closed the connection]
tommyvyo has quit [Quit:]
michaeldeol has joined #ruby
havenwood has quit [Remote host closed the connection]
burlyscudd has quit [Ping timeout: 246 seconds]
camt has joined #ruby
michaeldeol has quit [Remote host closed the connection]
ravster has quit [Quit: Leaving.]
bklane has joined #ruby
cha1tanya has joined #ruby
axeman- has joined #ruby
viszu has quit [Ping timeout: 246 seconds]
marr has joined #ruby
havenwood has joined #ruby
Ry0_ has quit [Remote host closed the connection]
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
mary5030 has joined #ruby
Spami has joined #ruby
nomenkun has joined #ruby
BizarreCake has quit [Ping timeout: 256 seconds]
theRoUS has quit [Ping timeout: 252 seconds]
burlyscudd has joined #ruby
n1x has joined #ruby
michaeldeol has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
Synthead has quit [Ping timeout: 245 seconds]
buchowski has quit [Ping timeout: 250 seconds]
axsuul has joined #ruby
geekles has quit [Ping timeout: 256 seconds]
micah` has quit [Ping timeout: 246 seconds]
jericon has quit [Ping timeout: 246 seconds]
ananthakumaran has quit [Quit: Leaving.]
Hanmac has quit [Quit: Leaving.]
jericon has joined #ruby
micah` has joined #ruby
Todd has quit [Ping timeout: 256 seconds]
marcdel has joined #ruby
rodacato has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
nomenkun_ has joined #ruby
nomenkun has quit [Ping timeout: 256 seconds]
bradhe has quit [Remote host closed the connection]
TonyMergue has joined #ruby
bradhe has joined #ruby
TonyMergue1 has quit [Ping timeout: 260 seconds]
iliketurtles has quit [Quit: zzzzz…..]
krz has quit [Quit: krz]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
Warlock has quit [Quit: Lost terminal]
bradhe has quit [Ping timeout: 252 seconds]
DrShoggoth has quit [Ping timeout: 256 seconds]
wesbos has joined #ruby
<wesbos> Can someone tell me what this does?
<wesbos> use Rack::SSL, :exclude => lambda { |env| !development? }
AlHafoudh has joined #ruby
<wesbos> I want to only use SSL when I'm not in development
mary5030_ has joined #ruby
<Morrolan> Currently you are setting the *exclusion* to *not development*, so you are setting it to only use SSL when in development.
theRoUS has joined #ruby
pedda has joined #ruby
viszu has joined #ruby
<havenwood> wesbos: use Rack::SSL, exclude: ->{ |env| development? }
<wesbos> Morrolan: oh that sounds like the oppsoite
mary5030 has quit [Ping timeout: 252 seconds]
<wesbos> opposite of what I want
bklane has quit [Remote host closed the connection]
<Morrolan> wesbos: I would think so. :D
thepumpkin has quit [Remote host closed the connection]
mark_locklear has joined #ruby
cj3kim has joined #ruby
viszu has quit [Client Quit]
<wesbos> what is the opposite? Sorry I'm not a ruby dev, jsut trying to get my teams application running locally
LaPetiteFromage has joined #ruby
<wesbos> oh just development
<wesbos> not !development
<havenwood> wesbos: you get what the bang (!) does, right?
rodacato has quit [Remote host closed the connection]
<wesbos> duh haha
<Morrolan> 'development?', that is. :)
<wesbos> easy peasy
<havenwood> covergirl
<havenwood> damn my ex for making me watch that show
DrShoggoth has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
forrest has joined #ruby
thepumpkin has joined #ruby
wesbos has left #ruby ["Linkinus - http://linkinus.com"]
rodacato has joined #ruby
Notte has quit [Remote host closed the connection]
burlyscudd has quit [Quit: Leaving.]
mercwithamouth has quit [Ping timeout: 246 seconds]
rodacato has quit [Remote host closed the connection]
bradhe has joined #ruby
dankest has quit [Quit: dankest]
bklane has joined #ruby
Michael_ has quit [Read error: Connection reset by peer]
burlyscudd has joined #ruby
romdi has joined #ruby
Michael_ has joined #ruby
RichardBaker has joined #ruby
tonini has quit [Remote host closed the connection]
colonolGron has joined #ruby
sayan has quit [Ping timeout: 256 seconds]
Todd has joined #ruby
allsystemsarego has quit [Quit: Leaving]
havenwood has quit [Remote host closed the connection]
kobain has joined #ruby
scrollback has quit [Remote host closed the connection]
scrollback has joined #ruby
michaeldeol has quit [Remote host closed the connection]
zmike123 has quit [Read error: Operation timed out]
vlad_starkov has quit [Read error: Connection reset by peer]
rodacato has joined #ruby
vlad_starkov has joined #ruby
michaeldeol has joined #ruby
brianpWins has quit [Quit: brianpWins]
DrShoggoth has quit [Ping timeout: 256 seconds]
deol has joined #ruby
michaeldeol has quit [Read error: Connection reset by peer]
jbpros has joined #ruby
rodacato has quit [Remote host closed the connection]
TheDick has joined #ruby
Hanmac has joined #ruby
atno has quit [Read error: No route to host]
tommyvyo has joined #ruby
atno has joined #ruby
TheDick__ has quit [Ping timeout: 246 seconds]
thepumpkin has quit [Remote host closed the connection]
QKO_ has quit [Changing host]
QKO_ has joined #ruby
thepumpkin has joined #ruby
sailias has quit [Ping timeout: 240 seconds]
denver has quit [Ping timeout: 240 seconds]
<bricker> Is it bad practice to have a class that only defines class methods? I want to be able to use inheritance but the class is just utility really.
Spami has quit [Quit: This computer has gone to sleep]
<nettoweb> Date.today.month.to_s => 7
<nettoweb> how to display 07 instead of 7
<nettoweb> ?
obs has joined #ruby
havenwood has joined #ruby
sayan has joined #ruby
<waxjar> bricker: use a Module instead of a class, extend it instead of inheriting from it
<havenwood> yay for modules!
<spider-mario> nettoweb : Date.today.month.to_s.rjust(2, '0')
denver has joined #ruby
<spider-mario> (rjust → right-justify)
<canton7> >> "%02d" % 7
brandon has joined #ruby
<eval-in> canton7 => "07" (https://eval.in/37566)
<spider-mario> or that works as well
brandon is now known as Guest78807
<spider-mario> not as chainable but possibly prettier
denver has quit [Remote host closed the connection]
<bricker> waxjar: Good idea. And is "extend self" considered bad practice? I've seen it done instead of explicitly defining everything as class methods.
<spider-mario> after all, TIMTOWTDI
brianpWins has joined #ruby
<spider-mario> (aren’t we part of the perl family? :p)
raz has left #ruby ["*fump*"]
eldariof has quit [Ping timeout: 276 seconds]
<havenwood> bricker: I like class << self or just a bunch of self.'s. I think extend is kinda sloppy in that you have duplicate class and instance methods.
TheDick_ has joined #ruby
LaPetiteFromage has quit [Quit: LaPetiteFromage]
Guest78807 has quit [Client Quit]
atno has quit [Remote host closed the connection]
horofox has joined #ruby
chrisja has quit [Quit: leaving]
gildo has quit [Read error: Operation timed out]
stan_br has joined #ruby
fragmachine has joined #ruby
<stan_br> hi all
vlad_starkov has quit [Read error: Connection reset by peer]
TheDick has quit [Ping timeout: 252 seconds]
goshakkk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TheDick_ is now known as TheDick
vlad_starkov has joined #ruby
Hanmac has quit [Ping timeout: 248 seconds]
BrianJ has joined #ruby
<fragmachine> hello
<fragmachine> harro
<stan_br> I need to read some txt files inside a zip file (of a certain pattern in its name). Its working fine with the zip/zip library, but now I also need to read some zip files inside this zip file... search for the same text files. So its a bunch of zip files inside of a zip file... is there a simple way to read its content within ruby?
LaPetiteFromage has joined #ruby
maasha has joined #ruby
burlyscudd has quit [Ping timeout: 248 seconds]
<maasha> evening
<bricker> havenwood: good point. Thanks for your advice.
<maasha> So ... I thought this was trivial. I wanted to create a Triangle class that if fed three angles or sides would return any requested angle or side. It turns out to be rather complex aside from the trigonometry.
angusigu1ss has quit [Ping timeout: 252 seconds]
anonymuse has quit [Remote host closed the connection]
<maasha> Maybe there is an elegant solution?
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iliketurtles has joined #ruby
iliketurtles has quit [Max SendQ exceeded]
anonymuse has joined #ruby
fermion has quit [Quit: Textual IRC Client: www.textualapp.com]
Davey has quit [Quit: Computer has gone to sleep.]
anonymuse has quit [Read error: Connection reset by peer]
iliketurtles has joined #ruby
anonymuse has joined #ruby
PhatBaja has joined #ruby
brianpWins has quit [Quit: brianpWins]
<havenwood> maasha: Can you give an example input and output?
devoldmx has joined #ruby
devoldmx27 has joined #ruby
CaptainJet has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
sailias has joined #ruby
<maasha> t = Triangle.new(angle_A: 30, angle_B: 60, side_c: 6); t.side_a = <whatever>
devoldmx3 has quit [Ping timeout: 246 seconds]
johnnyfuchs has joined #ruby
<maasha> also, for certain triangles there can be two solutions. I think in those cases both should be returned in an array.
digitalcake1 has joined #ruby
sideshowcoder_ has left #ruby [#ruby]
brianpWins has joined #ruby
twoism has quit [Read error: Connection reset by peer]
devoldmx has quit [Ping timeout: 248 seconds]
c0rn has quit [Quit: Computer has gone to sleep.]
devoldmx27 has quit [Ping timeout: 256 seconds]
twoism has joined #ruby
Meatant has joined #ruby
Newbcake has joined #ruby
digitalcake has quit [Ping timeout: 240 seconds]
<maasha> so there are six basic triangle types - and up to six possibles for a single type. trying to do this with if-then-else statements is messy.
zz_pinage404 is now known as pinage404
codecop has quit [Remote host closed the connection]
devoldmx has joined #ruby
TheDick_ has joined #ruby
x1337807x has joined #ruby
bklane has quit [Remote host closed the connection]
angusiguess has joined #ruby
goshakkk has joined #ruby
mansi_ has joined #ruby
TheDick__ has joined #ruby
mansi has quit [Read error: Connection reset by peer]
ahawkins has joined #ruby
krainboltgreene has joined #ruby
TheDick has quit [Ping timeout: 240 seconds]
TheDick__ is now known as TheDick
TheDick_ has quit [Ping timeout: 246 seconds]
smathieu has quit [Remote host closed the connection]
tonini has joined #ruby
rsahae has joined #ruby
bklane has joined #ruby
adman65 has quit [Ping timeout: 248 seconds]
<havenwood> maasha: Here's a start, doesn't do angles yet: https://gist.github.com/havenwood/6003024
Michael_ has quit [Read error: Connection reset by peer]
Michael_ has joined #ruby
pinage404 is now known as zz_pinage404
MrPoT4tO_ has joined #ruby
manutter has quit [Read error: Connection reset by peer]
manutter has joined #ruby
<maasha> havenwood: it will get more messy ...
robbyoconnor has joined #ruby
tonini has quit [Ping timeout: 240 seconds]
Hanmac2 has joined #ruby
Newbacke has joined #ruby
Notte has joined #ruby
jalcine has quit [Ping timeout: 240 seconds]
Newbcake has quit [Remote host closed the connection]
SeySayux has quit [Ping timeout: 240 seconds]
wildcard0 has quit [Ping timeout: 240 seconds]
axsuul has quit [Ping timeout: 240 seconds]
seich- has quit [Ping timeout: 240 seconds]
1JTAAC97S has joined #ruby
1JTAAC97S has quit [Client Quit]
spider-mario has quit [Ping timeout: 240 seconds]
Nightmare has quit [Ping timeout: 240 seconds]
cj3kim has quit [Read error: Connection reset by peer]
Nightmare has joined #ruby
spider-mario_ has joined #ruby
Nightmare has quit [Changing host]
Nightmare has joined #ruby
zigomir__ has quit [Ping timeout: 240 seconds]
lunarjar has quit [Ping timeout: 240 seconds]
YaNakilon has quit [Ping timeout: 240 seconds]
jalcine has joined #ruby
jalcine has quit [Excess Flood]
wmoxam has quit [Ping timeout: 240 seconds]
breakingthings has quit [Ping timeout: 240 seconds]
_veer has quit [Ping timeout: 240 seconds]
YaNakilon has joined #ruby
wildcard0 has joined #ruby
cj3kim has joined #ruby
timonv has quit [Remote host closed the connection]
zigomir__ has joined #ruby
SeySayux has joined #ruby
pentameter has quit [Ping timeout: 240 seconds]
spider-mario_ is now known as spider-mario
pentameter has joined #ruby
_veer has joined #ruby
wmoxam has joined #ruby
breakingthings has joined #ruby
lunarjar has joined #ruby
niklasb has joined #ruby
byprdct has quit [Ping timeout: 248 seconds]
seich- has joined #ruby
headius has quit [Read error: Connection reset by peer]
DrShoggoth has joined #ruby
mercwithamouth has joined #ruby
headius has joined #ruby
c0rn has joined #ruby
Uranio has quit [Quit: while you reading this, a kitty dies]
Hanmac2 has quit [Ping timeout: 246 seconds]
ToApolytoXaos has quit [Quit: Leaving]
Michael_ has quit [Remote host closed the connection]
smathieu has joined #ruby
brbcoding has quit []
ewnd9 has joined #ruby
<maasha> havenwood: hm, it doesnt do the trick AFAICT
Zai00 has joined #ruby
ericfilkins has joined #ruby
ericfilkins has left #ruby [#ruby]
georgehrke has joined #ruby
georgehrke has quit [Client Quit]
<havenwood> triangle = CosSinCalc::Triangle.new({ a: 1, b: 2, c: 2}, {}); triangle.calculate!; triangle.angle :a; #=> 0.5053605102841573
asteve has joined #ruby
ericfilkins_ has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister`sleep has joined #ruby
d2dchat has joined #ruby
<havenwood> maasha: ^
zchrykng has quit []
maxmanders has joined #ruby
<ericfilkins_> I created an erb iteration that goes through all the phototags on a image and finds the x-y coordinates, but I'm stuck on how to show the tags again after i refresh the page
pipework has joined #ruby
<maasha> havenwood: wft :o) - I didn't see that from the code!
krainboltgreene has quit [Ping timeout: 248 seconds]
<havenwood> maasha: ah, yeah - its in a subdir of the file I linked you :)
<havenwood> maasha: First {} for the known sides and second {} for known angles.
bricker_ has joined #ruby
gemmy has joined #ruby
twoism_ has joined #ruby
saarinen has quit [Quit: saarinen]
<MrPoT4tO_> hello, can someone help me with a method I'm doing to roll a dice?
<havenwood> MrPoT4tO_: Ask away!
bricker has quit [Ping timeout: 246 seconds]
jalcine has joined #ruby
<MrPoT4tO_> i want to return an array that keeps track of the number of times certain number shows up when you roll the dice, but my method doesn't wanna return said array
<havenwood> MrPoT4tO_: Paste a Gist of the code?
x1337807x has joined #ruby
<MrPoT4tO_> on it
twoism has quit [Ping timeout: 240 seconds]
<maasha> havenwood: I see. Thanks. This solution is not really trivial either - but I doubt it could be more simple.
sayan has quit [Read error: Connection reset by peer]
<MrPoT4tO_> http://pastebin.com/XPK72bXi this is the method
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> MrPoT4tO_: You might need to paste more of the class. :P
<havenwood> MrPoT4tO_: rand(1..6)
dankest has joined #ruby
<MrPoT4tO_> it's not a class i'm doing, it's just a simple file. (We arent' using objects to its full potential yet in the class ... at least for now)
<MrPoT4tO_> so it's more like the standard top-to-bottom programming with ruby
rodacato has joined #ruby
<MrPoT4tO_> i know, doesn't make sense
advorak has quit [Ping timeout: 252 seconds]
tatsuya_o has joined #ruby
CaptainJet has quit []
<MrPoT4tO_> this is the error it gives me when i run this one: in `rollDice': undefined method `+' for nil:NilClass (NoMethodError)
axeman- has quit [Remote host closed the connection]
machuga is now known as machuga|away
dmiller_ has joined #ruby
<havenwood> MrPoT4tO_: Take a look at this, is it along the lines of what you're looking to do?: https://gist.github.com/havenwood/6003266
carloslopes has quit [Remote host closed the connection]
<MrPoT4tO_> if that one does what I was asked to (keep count of how many times X numbers show up when you roll a dice), pretty much
<havenwood> MrPoT4tO_: yup, it does
<MrPoT4tO_> alright, thanks :)
colonolGron has quit [Quit: Lost terminal]
felixjet has joined #ruby
<havenwood> MrPoT4tO_: dice.rolls returns a hash, with the dice number as the key and the value as how many times its been rolled.
bklane has quit [Remote host closed the connection]
<havenwood> MrPoT4tO_: E.g.: {1=>5, 2=>17, ...}
<MrPoT4tO_> yeah, like what i was trying to do with the array ... alright, will give that a try. Thanks man
postmodern has joined #ruby
dmiller_ has quit [Ping timeout: 240 seconds]
c0rn has quit [Quit: Computer has gone to sleep.]
sideshowcoder_ has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
sideshowcoder_ has left #ruby [#ruby]
c0rn has joined #ruby
CaptainJet has joined #ruby
zeromodulus has joined #ruby
Spami has joined #ruby
ericfilkins_ has quit [Ping timeout: 250 seconds]
rahult has joined #ruby
kpshek has quit [Ping timeout: 246 seconds]
nomenkun_ has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 246 seconds]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
esing has joined #ruby
kpshek has joined #ruby
Zeeo has quit [Ping timeout: 260 seconds]
mark_locklear has quit [Ping timeout: 246 seconds]
<esing> hi, can I triple code this in ruby? """cd 'path with spaces';ls"""
<esing> s\code\quote
maasha has quit [Ping timeout: 250 seconds]
ebobby has joined #ruby
sahoal has joined #ruby
rahult has quit [Quit: Back to the world of zombies]
<yebyen> esing: you can also just use single (double) quotes
smrtz|nix has joined #ruby
<yebyen> eg "cd 'path with spaces';ls"
rahult has joined #ruby
<gemmy> Hello, 3 days with ruby, it's great, but I'm stuck, why executes the lambda before push the buttons?
<gemmy> the code
Nies has quit [Quit: Saliendo]
devoldmx has joined #ruby
dhruvasagar has joined #ruby
jonahR has quit [Quit: jonahR]
<smrtz|nix> Hey, I'm on this tutorial: http://ruby.learncodethehardway.org/book/ex13.html Working on the extra credit, Can someone explain the third bullet point please? "Compine STDIN.gets.chomp() with ARGv to make a script that gets more impout from a user.
mercwithamouth has quit [Ping timeout: 256 seconds]
<esing> yeban Good to know, thank you
spider-mario has quit [Remote host closed the connection]
<havenwood> smrtz|nix: Maybe something like: arg = ARGV.first; puts "Type the following: #{arg}"; puts gets.chomp == arg ? 'Success' : 'Failure'
cdelo has joined #ruby
<havenwood> smrtz|nix: Do you know what #gets.chomp does?
<smrtz|nix> havenwood: yeah, but I've never seen it as STDIN.gets.chomp().
mercwithamouth has joined #ruby
<yebyen> gemmy: just hazard a guess byt try &: instead of &
<havenwood> smrtz|nix: Ahh, kk
<smrtz|nix> havenwood: is it just another way of writing it?
<havenwood> smrtz|nix: So $stdin and STDIN both point to standard input (keyboard in this case).
bklane has joined #ruby
<havenwood> smrtz|nix: Yes, chomp will be the same as STDIN.chomp unless you modify STDIN.
<smrtz|nix> havenwood: ok, so I need to add that to specify that it's getting imput rom the keyboard, vs another file?
<gemmy> yebyen: &: what does &: mean?
<smrtz|nix> from*
<havenwood> smrtz|nix: In real use, you'd omit STDIN unless you're doing something more fancy.
<smrtz|nix> havenwood: Ok, thanks!
dash_ has quit [Quit: Time to beer :)]
brotatos has joined #ruby
<havenwood> err, I wrote chomp above and meant gets.
goshakkk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<yebyen> gemmy: i'm afraid when you say &lambda it's calling the lambda rather than passing it... :say_hello is a reference (symbol) to the lambda
<smrtz|nix> havenwood: I figured.
<havenwood> smrtz|nix: So write `puts` and `gets` instead of `STDOUT.puts` and `STDIN.gets`.
<smrtz|nix> I didn't mean to hit enter there. havenwood can you help me find the error in that please?
<havenwood> smrtz|nix: and `warn` instead of `STDERR.puts`
<gemmy> ah! ok
<smrtz|nix> havenwood: I haven't learned about Stderr.puts yet, just standard output for errors?
baordog has quit [Remote host closed the connection]
AlHafoudh has quit [Quit: Computer has gone to sleep.]
burlyscudd has joined #ruby
<havenwood> smrtz|nix: Yeah, the Unix stdin, stdout, stderr (fs 0, 1, 2).
<smrtz|nix> Ok, thanks
aedorn has joined #ruby
sailias has quit [Ping timeout: 240 seconds]
grzywacz has joined #ruby
atmosx has quit [Ping timeout: 240 seconds]
tmi has joined #ruby
<gemmy> yebyen: hum, when I type Button.new("Say hello", :say_hello)
<smrtz|nix> havenwood: I fixed the error inhttp://bpaste.net/show/114570/ , but I still don't understand what was wrong with my old version. Can you point it out please?
<gemmy> ./lambda.rb:28:in `initialize': wrong number of arguments (2 for 1) (ArgumentError)
<yebyen> gemmy: &:say_hello
<yebyen> it may not work at all
deol has quit [Remote host closed the connection]
<yebyen> i am not familiar with tcl/tk and ruby
<yebyen> downloading activetcl 8.5 now
<yebyen> it looks cool
atmosx has joined #ruby
michaeldeol has joined #ruby
<havenwood> smrtz|nix: Other than the weird interpolation on ln 10 I don't see any probs.
<gemmy> I come from Perl, Tck/Tk it's very fun, like ruby
john2496 has joined #ruby
<atmosx> close
krainboltgreene has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
<john2496> very stupid rails question, how do i generate the schema from my models?
atmosx has left #ruby [#ruby]
<ericwood> I used to write Tkinter stuff with python
<ericwood> it was painful
<smrtz|nix> havenwood: what's the weird interpolation?
tatsuya_o has quit [Remote host closed the connection]
cj3kim has joined #ruby
<havenwood> smrtz|nix: "you gave me: %s" % var
michaeldeol has quit [Remote host closed the connection]
kirun has quit [Quit: Client exiting]
gyre008 has quit [Remote host closed the connection]
v0n has quit [Ping timeout: 260 seconds]
<smrtz|nix> havenwood: what's wrong with that? sorry if that's a dumb question, I'm new to programmin.
<havenwood> smrtz|nix: The idiomatic Ruby way is: "you gave me: #{var}"
jonahR has joined #ruby
geekles has joined #ruby
<yebyen> gemmy: have a look at this maybe, they're doing it a different way
<gemmy> k
<havenwood> smrtz|nix: Zed just pretends its Python and moves along. :P For idiomatic Ruby you might want to try another tutorial, but nothing wrong with going through the Hard Way series. Just remember it isn't necessarily good Ruby.
pipework has quit [Remote host closed the connection]
<smrtz|nix> havenwood: Oh, why is that better than using formatting sequances?
esing has quit []
<yebyen> gemmy: you are passing two arguments to the constructor for button, it only takes one... look at the section on binding events
<yebyen> time to go now
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<gemmy> yebyen: thanks i'll double check this
rsahae has quit [Quit: rsahae]
<havenwood> smrtz|nix: There are many ways to do things. It isn't wrong to use the less-used way, just not idiomatic. Fewer Rubyists may be familiar with it and you may run into more quirks, but often the *other* ways are fine too.
peta_ has joined #ruby
goshakkk has joined #ruby
<havenwood> smrtz|nix: The preferred way in Ruby is often encouraged with semantic sugar.
<havenwood> smrtz|nix: But always optional. :)
<smrtz|nix> havenwood: thanks for all the help.
<havenwood> smrtz|nix: de nada
bklane_ has joined #ruby
bklane has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby
burlyscudd has quit [Quit: Leaving.]
rsahae has joined #ruby
theRoUS has quit [Ping timeout: 240 seconds]
arya__ has joined #ruby
Todd has quit [Remote host closed the connection]
ldnunes has quit [Quit: Leaving]
monkegjinni has joined #ruby
jonathanwallace2 has quit [Quit: WeeChat 0.4.0]
burlyscudd has joined #ruby
<fragmachine> I'm gonna chime in here and say, Ruby has the nicest IRC in the programming world
arya_ has quit [Ping timeout: 248 seconds]
<end_guy> Thanks fragmachine! We try to make it nice :)
Meatant has quit [Quit: bbl]
jonathanwallace has joined #ruby
nomenkun has joined #ruby
<fragmachine> thankyou?
lebek has joined #ruby
Hanmac2 has joined #ruby
<fragmachine> My school teaches VB
smathieu has quit [Remote host closed the connection]
<fragmachine> they say it's good for beginners
<havenwood> john2496: Rails channel is #RubyOnRails by the way!, but maybe?: rake db:schema:dump
<fragmachine> I think they should try Ruby
jp- has quit [Quit: OK, I believe you… but my tommy gun don't]
<fragmachine> It's my favourite language
dhruvasagar has quit [Ping timeout: 246 seconds]
devoldmx has quit [Ping timeout: 252 seconds]
smathieu has joined #ruby
<fragmachine> Ruby got me into programming
comrade_ has joined #ruby
threesome has quit [Ping timeout: 246 seconds]
devoldmx has joined #ruby
comrade_ has quit [Client Quit]
<smrtz|nix> does ruby 1.9.x care about whitespace? I know ruby 2 does since I just spent 5 minutes debugging that, hah
<havenwood> smrtz|nix: all Ruby versions care about whitespace
nomenkun has quit [Ping timeout: 252 seconds]
tmi has quit [Quit: tmi]
Hanmac2 has quit [Read error: Operation timed out]
forced_request has joined #ruby
<fragmachine> I guess you could always put in semi colons
poga has joined #ruby
MrZYX|off is now known as MrZYX
lebek has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister`sleep has quit [Read error: Connection reset by peer]
devoldmx has quit [Ping timeout: 256 seconds]
<havenwood> fragmachine: seems Ruby would be a really nice choice for university, dunno why more don't go that route
jozefg has joined #ruby
breakingthings has quit [Quit: breakingthings]
cj3kim has quit [Remote host closed the connection]
goleldar has joined #ruby
<aedorn> havenwood: If it's not an MS bias, it's a Python bias.
<fragmachine> havenwood: I think they have a deal with Microsoft. Or I'm pretty sure my school does.
<havenwood> aedorn: mm, yeah - i guess they have a point that python is simpler - but Ruby is nicer!!
<havenwood> fragmachine: aha, the horror! :O
<havenwood> fragmachine: They should teach Clojure then, its on the CLR. :P
<aedorn> I don't know about simpler ... =(
ehaliewicz has joined #ruby
<havenwood> aedorn: Simpler grammar at least.
<havenwood> aedorn: Not nearly as intuitive for me though.
<fragmachine> Ruby follows the principle of least surprise, other programming languages don't!
<aedorn> Guess it just depends. I've been watching a couple of people learn Python, and a couple of others learn Ruby from no experience. Ruby ones are doing far better, despite more resources for Python.
<havenwood> aedorn: interesting
<fragmachine> Ruby is a good language to learn with
<fragmachine> It's a good language hands down
<fragmachine> well, for most things
jibi has quit [Quit: .]
xardas has quit [Ping timeout: 276 seconds]
Zolo has quit [Remote host closed the connection]
arya__ has quit [Ping timeout: 248 seconds]
<fragmachine> Why teach Visual Basic?
<aedorn> Obviously not saying Python is bad, but as a first language I have my suspicions at the moment.
<fragmachine> I'll be honest, I want to learn Python
tjbiddle has joined #ruby
<sam113101_> test
<fragmachine> sam113101_: success
<gemmy> Basic, n.: A programming language. Related to certain social diseases in
jlast has quit [Remote host closed the connection]
<gemmy> that those who have it will not admit it in polite company.
kpshek has quit [Ping timeout: 246 seconds]
<fragmachine> Visual Basic - has dialog boxes
<fragmachine> Visual Basic - fuck convention, this is our loop
kpshek has joined #ruby
<Deele> how do I make my ruby work with 5.x mysql server, it is cursing that is was compiled for 6.x, and cant work with 5.x
jlast has joined #ruby
thepumpk_ has joined #ruby
<havenwood> Deele: Have you tried reinstalling the mysql2 gem?
<Deele> I have mysql gem, not mysql2
<havenwood> Deele: gem pristine mysql
<havenwood> in that case ^
Nisstyre has quit [Quit: Leaving]
aspiers has quit [Ping timeout: 256 seconds]
thepumpkin has quit [Ping timeout: 240 seconds]
bklane_ has quit [Read error: Connection reset by peer]
interact_ has quit [Remote host closed the connection]
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
bklane has joined #ruby
<Deele> havenwood I have mysql2 and mysql, I require mysql2 but it still "This gem was compiled for 6.0.0 but the client library is 5.1.61."
asobrasil has left #ruby [#ruby]
<Deele> running on win7 with community mysql
Synthead has joined #ruby
mary5030_ has quit [Ping timeout: 246 seconds]
<havenwood> Deele: I'd uninstall all gems with mysql in the name, and reinstall em. If that doesn't solve it and you don't want to hunt down the problem, maybe reinstall Ruby entirely.
<smrtz|nix> havenwood: I'm reading something that says you need to specift STDIN.gets when you use ARGV, is that true?
mary5030 has joined #ruby
<havenwood> Deele: Do you by any chance have multiple versions of MySQL installed?
<Deele> havenwood no, that one is running from portable device
<havenwood> smrtz|nix: If it is true, it is news to me. And I can't think of why at all that would be true.
Michael_ has joined #ruby
mary5030_ has joined #ruby
rahult has joined #ruby
<smrtz|nix> havenwood: thanks.
relix has joined #ruby
relix has quit [Max SendQ exceeded]
RyanHirsch has joined #ruby
relix has joined #ruby
<smrtz|nix> Can you explain how gets works and what chomp does please?
<havenwood> smrtz|nix: But it does appear to be true... >.>
<smrtz|nix> does chomp just trim whitespace?
<smrtz|nix> havenwood: really? weird. I can't see why?
<gemmy> How to pass a lambda expression as a parameter to a method?
<smrtz|nix> havenwood: Important: Also notice that we're using STDIN.gets instead of plain 'ol gets. That is because if there is stuff in ARGV, the default gets method tries to treat the first one as a file and read from that. To read from the user's input (i.e., stdin) in such a situation, you have to use it STDIN.gets explicitly. Do you understand this?
<havenwood> smrtz|nix: oh, stdin changes
mary5030_ has quit [Remote host closed the connection]
wmoxam has quit [Ping timeout: 252 seconds]
anderson has quit [Ping timeout: 264 seconds]
<havenwood> gemmy: just by its name, bareword
CaptainJet has quit []
ewnd9 has quit [Ping timeout: 246 seconds]
<smrtz|nix> havenwood: cool, can you put it in lamens terms for me please?
mary5030 has quit [Ping timeout: 240 seconds]
d2dchat has quit [Remote host closed the connection]
<gemmy> ahhh, havenwood thanks! obrigado! gracias!
AntelopeSalad_ has quit []
<havenwood> smrtz|nix: Kernel#gets reads from ARGF, which gets set if ARGV has contents.
relix has quit [Ping timeout: 240 seconds]
<havenwood> smrtz|nix: So the methods on Kernel are available from main, you can just type them without prefixing `Kernel.`.
BlakeRG has joined #ruby
<smrtz|nix> havenwood: havenwood I'm followning all the examples in this tutorial, but I'm still a little fuzzy on some of the details. You think I'll figure the weird stuff out as I go, as long as I keep moving forward with the basic consept.
<havenwood> smrtz|nix: Basically, `gets` is `Kernel.gets` and it tries to read from ARGF if you've set ARGV, so you need to specify `$stdin.gets` or `STDIN.gets` instead of `gets` or `Kernel.gets` if you use ARGV.
jbpros has quit [Quit: jbpros]
<havenwood> smrtz|nix: Yeah, i just keep going past what i don't understand and fill in the gaps later. :) At least it might start giving you hints as to how those parts you don't get yet work.
MrPoT4tO_ has quit [Remote host closed the connection]
RyanHirsch has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Remote host closed the connection]
<smrtz|nix> havenwood: is there a diffrence between $stdin or STDIN? and thanks, I'm trying to learn this fast, and it's going well, but theres a lot of stuff I still don't understand.
<havenwood> smrtz|nix: So you can temporarily set `STDIN = something_else`, then put it back to normal by `STDIN = $stdin`.
<matled> smrtz|nix: $stdin is a variable that you can freely assign, STDIN is the file descriptor 0 which can be reopened
<matled> havenwood: you can NOT STDIN = foo, you can do $stdin = foo.
<havenwood> matled: i said it backwards, oops
<havenwood> smrtz|nix: what matled said, i inverted
<matled> just wanted to make sure smrtz doesn't get confused :)
m8 has quit [Quit: Sto andando via]
l33_ has quit [Remote host closed the connection]
locriani has joined #ruby
maxmanders has joined #ruby
Synthead has quit [Ping timeout: 245 seconds]
dayepa has quit [Quit: dayepa]
<smrtz|nix> havenwood: matled ok, thanks, I get it more now, but I'm still not 100% I"m just going to keep going and hope I figure it out.
<havenwood> smrtz|nix: I'd recommend checking out Zenspider's quick ref on pre-defined variables: http://zenspider.com/Languages/Ruby/QuickRef.html#pre-defined-variables
<matled> smrtz|nix: I'd recommend to use $stdin if you don't care about file descriptors
cj3kim has joined #ruby
saarinen has joined #ruby
<smrtz|nix> havenwood: checking that out now. matled I don't even know what that is yet.
<havenwood> smrtz|nix: Suffice it to say, there are a bunch of CONSTANTs and $globals that get predefined and a bunch of the globals are perl-esque gibberish. :p
Synthead has joined #ruby
devoldmx has joined #ruby
forrest has quit [Quit: Leaving]
atmosx has joined #ruby
<smrtz|nix> This "qickRef" isn't so quick.
<havenwood> smrtz|nix: Definitely read up on file descriptors, i think Jesse Storimer has some really good articles
obs has quit [Quit: Konversation terminated!]
maxmanders has quit [Client Quit]
Michael_ has quit [Remote host closed the connection]
<Deele> havenwood it turns out, libmysql.dll file is in fault
brianpWins has quit [Quit: brianpWins]
<Deele> I had been using earlier mysql version dll file, now, I downloaded latest 6.1.0, but curses continue, because gem is for 6.0.0
Astral__ has quit [Ping timeout: 245 seconds]
digitalcake1 has quit [Quit: Leaving.]
alex__c2022 has quit [Quit: alex__c2022]
bklane has quit [Read error: Connection reset by peer]
<Deele> it is said, that gem had librmysql.dll file in that package coming together, but
c0rn has quit [Quit: Computer has gone to sleep.]
<Deele> I cant find one in that gem directory
Zai00 has quit [Quit: Zai00]
bklane has joined #ruby
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bklane has quit [Read error: Connection reset by peer]
bklane has joined #ruby
john2496 has quit []
alex__c2022 has joined #ruby
Evixion has quit []
Astralum has joined #ruby
cj3kim has quit [Ping timeout: 240 seconds]
AlHafoudh has joined #ruby
locriani has quit [Remote host closed the connection]
locriani has joined #ruby
rsahae has quit [Quit: rsahae]
splittingred has quit [Quit: splittingred]
bklane has quit [Ping timeout: 248 seconds]
locriani_ has joined #ruby
ffranz has quit [Quit: Leaving]
locriani has quit [Read error: Connection reset by peer]
atyz has quit [Quit: Linkinus - http://linkinus.com]
ewnd9 has joined #ruby
LaPetiteFromage has quit [Quit: LaPetiteFromage]
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kpshek has quit []
devoldmx3 has joined #ruby
<smrtz|nix> This new exersize is about playing with files, so that should help.
Synthead has quit [Ping timeout: 245 seconds]
rsahae has joined #ruby
mansi_ has quit [Remote host closed the connection]
TIJ has joined #ruby
mansi has joined #ruby
<havenwood> smrtz|nix: Ah, storimer file descriptor stuff i was thinking of is in his unix processes book: http://www.jstorimer.com/products/working-with-unix-processes
eka has quit [Quit: Computer has gone to sleep.]
Synthead has joined #ruby
<smrtz|nix> havenwood: yeah, I found that, but I'm not going tp pay money for this hobby, I need it to be free.
devoldmx27 has joined #ruby
devoldmx has quit [Ping timeout: 248 seconds]
thepumpk_ has quit [Remote host closed the connection]
<havenwood> smrtz|nix: I think he said if you write him a postcard he'll give it to you for free. (<- that practice is actually pretty common in the Ruby community.)
<havenwood> smrtz|nix: If you care to get a copy, an email might even work as opposed to the traditional postcard.
<havenwood> smrtz|nix: But i'm sure there's plenty of good info on file descriptors out there for free. ;)
<smrtz|nix> havenwood: yeah, I've got an open tab for the wikipedia page, I plan on reading through that tonight to get an idea what they even are. Can I have the link to the postcard page please?
mary5030 has joined #ruby
axl_ has quit [Quit: axl_]
mansi has quit [Ping timeout: 276 seconds]
<Deele> nothing is for free
devoldmx3 has quit [Ping timeout: 252 seconds]
fernandoaleman has quit [Quit: Leaving.]
<smrtz|nix> can you explain ARGV.first please?
<smrtz|nix> just the first sting only right?
Synthead has quit [Ping timeout: 245 seconds]
<havenwood> smrtz|nix: I dunno where storimer posted that policy, but i've heard him offer copies for free for at-need. Here's an example of Avdi's version of the posicy: http://devblog.avdi.org/2012/06/05/confident-ruby-beta/
headius has quit [Quit: headius]
<havenwood> smrtz|nix: "Send me a handwritten picture postcard from wherever you are, with your email address, and I’ll send you a copy of the book."
<smrtz|nix> thanks
romdi` has joined #ruby
<havenwood> smrtz|nix: ARGV is an array. Empty on if nothing passed to it. #first is a method on Array, which returns the first element of the array
niklasb has quit [Read error: Operation timed out]
mmitchell has quit [Read error: Connection reset by peer]
Synthead has joined #ruby
<havenwood> smrtz|nix: ARGV.first == ARGV[0]
reset has joined #ruby
mmitchell has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
thepumpkin has joined #ruby
<smrtz|nix> and ARGV[$0] is just the name of the file run?
<havenwood> smrtz|nix: just: $0
Hanmac2 has joined #ruby
<smrtz|nix> it's not in the array? Ok, thanks.
<havenwood> smrtz|nix: $0 is one of the pre-defined variables (listed in the quick ref)
x1337807x has joined #ruby
<havenwood> smrtz|nix: Name of the script being run.
<smrtz|nix> havenwood: I'll have to read that tonight aswell.
Myrth has joined #ruby
pr0ggie has quit [Ping timeout: 246 seconds]
samuel02 has quit [Remote host closed the connection]
romdi has quit [Ping timeout: 276 seconds]
rodacato has quit [Remote host closed the connection]
devoldmx has joined #ruby
lnormous has quit [Read error: Operation timed out]
<smrtz|nix> I'm getting thee errors when running this file: ex15.rb:4:in `initialize': no implicit conversion of nil into String (TypeError) from ex15.rb:4:in `open' from ex15.rb:4:in `<main>
michaeldeol has quit [Remote host closed the connection]
<smrtz|nix> can you help me find the errors please? http://bpaste.net/show/114585/
TheDick_ has joined #ruby
c0rn has joined #ruby
<havenwood> smrtz|nix: `file_again` is getting set to `nil` and File.open takes a string
<havenwood> smrtz|nix: balks at nil
Hanmac2 has quit [Ping timeout: 240 seconds]
ericfilkins has joined #ruby
BlakeRG has quit [Quit: BlakeRG]
devoldmx27 has quit [Ping timeout: 240 seconds]
<havenwood> smrtz|nix: or `filename`, rather, not `file_again`
ericfilkins has quit [Client Quit]
<havenwood> smrtz|nix: TL;DR: if you call the program with no argument, ARGV is empty, so ARGV.first is `nil` which File.open explodes on cause it takes strings not nils.
TheDick has quit [Ping timeout: 246 seconds]
TheDick_ is now known as TheDick
<havenwood> (My TLDR was longer than the reading. >.> Fail.)
jonathanwallace has quit [Quit: WeeChat 0.4.0]
Asher has quit [Quit: Leaving.]
bradhe has quit [Remote host closed the connection]
poga has quit [Remote host closed the connection]
<smrtz|nix> havenwood: right, I need to run it with the file, I always forget the dumb stuf.
chxane has quit [Quit: Leaving]
bradhe has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
renderful has joined #ruby
jozefg has quit [Quit: jozefg]
choobie has quit [Ping timeout: 256 seconds]
pedda has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shadoi1 has joined #ruby
peta_ has quit [Quit: peta_]
TheDick_ has joined #ruby
jerius has quit [Ping timeout: 264 seconds]
goshakkk has quit [Quit: Textual IRC Client: www.textualapp.com]
michaeldeol has joined #ruby
krainboltgreene has quit [Quit: krainboltgreene]
bradhe has quit [Ping timeout: 276 seconds]
shadoi has quit [Ping timeout: 245 seconds]
TheDick has quit [Ping timeout: 252 seconds]
TheDick has joined #ruby
AntelopeSalad has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
c0rn has quit [Ping timeout: 276 seconds]
RyanHirsch has joined #ruby
<djbkd> curious if anybody has investigated this behavior in ruby 1.9.3 p429 (or heck, even 2.0) where such a patch is necessary anymore? http://timetobleed.com/fix-a-bug-in-rubys-configurein-and-get-a-30-performance-boost/
TheDick_ has quit [Ping timeout: 276 seconds]
kofno has quit [Remote host closed the connection]
horofox has quit [Quit: horofox]
codemannew has joined #ruby
bklane has joined #ruby
rodacato_ has joined #ruby
saarinen has quit [Quit: saarinen]
Spami has quit [Quit: This computer has gone to sleep]
workmad3 has quit [Ping timeout: 240 seconds]
EPIK has joined #ruby
jozefg has joined #ruby
dmiller has joined #ruby
RobW_ has quit [Quit: RobW_]
jonathanwallace has joined #ruby
<havenwood> djbkd: Shouldn't be a problem at all 1.9+.
kofno has joined #ruby
TheDick_ has joined #ruby
burlyscudd has quit [Quit: Leaving.]
emergion has joined #ruby
<djbkd> ok, i might run it through strace just out of curiousity, but thanks havenwood
<havenwood> djbkd: i'd be curious to see your results!
pedestrian has quit [Quit: WeeChat 0.4.1]
smrtz|nix has quit [Quit: Lost terminal]
marcdel has quit [Ping timeout: 252 seconds]
dmiller has quit [Ping timeout: 276 seconds]
TheDick__ has joined #ruby
TheDick has quit [Ping timeout: 246 seconds]
TheDick__ is now known as TheDick
c0rn has joined #ruby
chxane has joined #ruby
TheDick_ has quit [Ping timeout: 276 seconds]
rodacato_ has quit [Remote host closed the connection]
rodacato has joined #ruby
`p has joined #ruby
L8D_ has joined #ruby
<L8D_> how can I define a method_missing for Hash that will fetch the key from self
<L8D_> like: def method_missing method_id; self[method_id]; end
<L8D_> then: h = {a_key: 1}; h.a_key #=> 1
tkuchiki has joined #ruby
vlad_starkov has joined #ruby
rhys has quit [Quit: Leaving]
rahult has joined #ruby
<havenwood> L8D_: You could convert the Hash to an OpenStruct: http://www.ruby-doc.org/stdlib-2.0/libdoc/ostruct/rdoc/OpenStruct.html
ssvo has quit [Ping timeout: 276 seconds]
ehaliewicz has quit [Read error: No route to host]
<L8D_> sweet thanks!
twoism has joined #ruby
freerobby has quit [Quit: Leaving.]
twoism__ has joined #ruby
cofin has joined #ruby
twoism_ has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
tkuchiki has quit [Ping timeout: 256 seconds]
<L8D_> But...how does one "convert" an already existing hash to an openstruct?
vlad_starkov has quit [Ping timeout: 240 seconds]
devoldmx has quit [Ping timeout: 240 seconds]
johnkary has joined #ruby
robbyoconnor has quit [Ping timeout: 248 seconds]
sahoal has quit [Quit: sahoal]
splittingred has joined #ruby
<havenwood> L8D_: OpenStruct.new {i_iz: 'hash'}
<havenwood> err, parens not optional
<havenwood> OpenStruct.new({i_iz: 'hash'})
<L8D_> awezome
<havenwood> L8D_: class Hash; def to_ostruct; OpenStruct.new self; end; end
L8D_ has quit [Quit: Reconnecting]
L8D has joined #ruby
<L8D> thanks
sethette1 has joined #ruby
<havenwood> yeah, no need to monkeypatch ostruct though, it does a good job on its own ;)
twoism has quit [Ping timeout: 276 seconds]
splittingred has quit [Client Quit]
enebo has quit [Quit: enebo]
TheFuzzball has quit [Ping timeout: 256 seconds]
<havenwood> err, monkeypatch hash to add to_ostruct, nvm - just OpenStruct.new(hash_here) is perfect
tkuchiki has joined #ruby
anonymuse has quit [Remote host closed the connection]
gemmy has left #ruby [#ruby]
anonymuse has joined #ruby
<havenwood> L8D: There is a recursive-open-struct gem if you end up with Hashes within Hashes you want to convert to OpenStructs within OpenStructs: https://github.com/aetherknight/recursive-open-struct#readme
asteve has joined #ruby
<L8D> So since, I'm already here...Something I've never understood about classes is how a class can define a "default" value for when the class is refernced without any methods
mneorr_ has quit [Remote host closed the connection]
<L8D> like Hashes and Strings and Numbers and all that
sethetter has quit [Ping timeout: 245 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
TheFuzzball has joined #ruby
<L8D> because you can't simply def self
<L8D> or def self=
nfk has quit [Quit: yawn]
anonymuse has quit [Read error: Operation timed out]
<L8D> And there isn't anything in the Class documentation either
MrPoT4tO has joined #ruby
DonRichie has joined #ruby
sambao21 has joined #ruby
rodacato has quit [Remote host closed the connection]
c0rn has quit [Quit: Computer has gone to sleep.]
dmiller has joined #ruby
tobyo has quit [Ping timeout: 246 seconds]
goleldar has quit [Ping timeout: 240 seconds]
goleldar has joined #ruby
devoldmx has joined #ruby
pentameter has quit [Remote host closed the connection]
grzywacz has quit [Read error: Operation timed out]
c0rn has joined #ruby
tkuchiki has quit [Ping timeout: 246 seconds]
geggam has quit [Remote host closed the connection]
gstamp has joined #ruby
DrShoggoth has quit [Ping timeout: 246 seconds]
<havenwood> L8D: You mean how are class literals implemented?
fredjean has quit [Quit: Computer has gone to sleep.]
<L8D> o.O
<L8D> I guess so
<L8D> I've never head or learned of "class literals"
MrPoT4tO has quit [Quit: http://quassel-irc.org - AEIOU]
Kar- has quit [Remote host closed the connection]
rodacato has joined #ruby
Mon_Ouie has quit [Ping timeout: 248 seconds]
<havenwood> L8D: literals are just what you call "", {}, [], etc
MrPoT4tO has joined #ruby
MrPoT4tO has quit [Client Quit]
<L8D> Oh...Well then no, that's not the wuestion
<L8D> *question
<havenwood> L8D: Ah, like how do you set a default Hash value?
wsterling has quit [Remote host closed the connection]
<L8D> No
<L8D> Like how I can set the default value for when the class is referenced with no methods
<havenwood> L8D: oh, what an instance of a class looks like?
<havenwood> L8D: Like when you say String, you get String back.
<havenwood> L8D: You mean an instance of String?
<havenwood> L8D: #inspect
<L8D> something like: class A;def self;"asdf";end;a = A.new;A #=> "asdf"
jozefg has left #ruby [#ruby]
<havenwood> L8D: Its an instance of String. String <- is a constant. You say String, you get; #=> String
c0rn has quit [Quit: Computer has gone to sleep.]
<L8D> no...
predator117 has joined #ruby
<havenwood> L8D: String.new 'hi'; #=> "hi" # this is an instance of String
<L8D> then I guess yes
<L8D> How can I define the instance of a class
<L8D> and change it
rodacato has quit [Remote host closed the connection]
niftylettuce has quit [Quit: Connection closed for inactivity]
dankest has quit [Quit: dankest]
<havenwood> L8D: class Lie; def inspect; 'true'; end; end; Lie.new; #=> true
TonyMergue has quit [Read error: Connection reset by peer]
predator217 has quit [Ping timeout: 256 seconds]
gyre007 has joined #ruby
osvico has joined #ruby
<L8D> thanks, thats what I was looking for
sethette1 has quit [Ping timeout: 240 seconds]
allaire has quit [Quit: allaire]
AntelopeSalad has quit [Read error: Connection reset by peer]
tommyvyo has quit [Quit:]
emergion has joined #ruby
Hanmac2 has joined #ruby
mansi has joined #ruby
AntelopeSalad has joined #ruby
taion809 has joined #ruby
dankest has joined #ruby
sailias has joined #ruby
PhatBaja has quit [Quit: Leaving.]
TheDick has quit [Quit: TheDick]
banghouse has quit [Ping timeout: 246 seconds]
zigomir__ has quit [Ping timeout: 240 seconds]
banghouse has joined #ruby
banghouse has quit [Remote host closed the connection]
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Hanmac2 has quit [Ping timeout: 240 seconds]
banghouse has joined #ruby
banghouse is now known as Guest98634
mansi has quit [Ping timeout: 240 seconds]
cj3kim has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
rickruby has joined #ruby
Inoperable has joined #ruby
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
cj3kim has quit [Read error: Connection reset by peer]
havenwood has quit [Remote host closed the connection]
Spooner has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
johnkary has quit [Quit: @johnkary]
eka has joined #ruby
staafl has quit [Ping timeout: 276 seconds]
Es0teric has joined #ruby
rgarver has joined #ruby
dEPy has quit [Remote host closed the connection]
Kruppe has joined #ruby
EPIK is now known as kreeves
Michae___ has joined #ruby
c0rn has joined #ruby
JoeTheGuest has joined #ruby
nezumi has joined #ruby
tbrock has quit [Quit: Textual IRC Client: www.textualapp.com]
Davey has joined #ruby
tommyvyo has joined #ruby
bricker_ is now known as bricker
cofin has quit [Quit: cofin]
horofox has joined #ruby
robbyoconnor has joined #ruby
eka has quit [Ping timeout: 240 seconds]
forced_request has quit [Read error: Connection reset by peer]
cmarques has quit [Ping timeout: 246 seconds]
aeontech has joined #ruby
forced_request has joined #ruby
momomomomo has joined #ruby
kreeves has quit [Changing host]
kreeves has joined #ruby
eka has joined #ruby
allaire has joined #ruby
alainus has left #ruby ["Leaving"]
allaire has quit [Max SendQ exceeded]
allaire has joined #ruby
ewnd9 has quit [Read error: Operation timed out]
cofin has joined #ruby
saarinen has joined #ruby
horofox has quit [Quit: horofox]
ixti has joined #ruby
r0bby has joined #ruby
saarinen has quit [Client Quit]
elux has quit [Quit: Leaving...]
Synthead has quit [Ping timeout: 245 seconds]
MrZYX is now known as MrZYX|off
arya_ has joined #ruby
hammond has quit [Ping timeout: 240 seconds]
TheDick has joined #ruby
robbyoconnor has quit [Ping timeout: 252 seconds]
_maes_ has joined #ruby
codemannew has quit [Ping timeout: 240 seconds]
rsahae has quit [Quit: rsahae]
twoism__ has quit [Remote host closed the connection]
rgarver has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]